(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"+rOU":function(t,e,n){"use strict";n.d(e,"a",function(){return v}),n.d(e,"b",function(){return y}),n.d(e,"c",function(){return w}),n.d(e,"d",function(){return p}),n.d(e,"e",function(){return g}),n.d(e,"f",function(){return _}),n.d(e,"g",function(){return b});var r=n("JX7q"),i=n("ReuC"),o=n("Ji7U"),a=n("md7G"),s=n("foSv"),c=n("1OyB"),u=n("vuIU"),l=n("fXoL"),h=n("ofXK");function f(t){function e(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}return function(){var n,r=Object(s.a)(t);if(e()){var i=Object(s.a)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(a.a)(this,n)}}var d=function(){function t(){Object(c.a)(this,t)}return Object(u.a)(t,[{key:"attach",value:function(t){return this._attachedHost=t,t.attach(this)}},{key:"detach",value:function(){var t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}},{key:"isAttached",get:function(){return null!=this._attachedHost}},{key:"setAttachedHost",value:function(t){this._attachedHost=t}}]),t}(),p=function(t){Object(o.a)(n,t);var e=f(n);function n(t,r,i,o){var a;return Object(c.a)(this,n),(a=e.call(this)).component=t,a.viewContainerRef=r,a.injector=i,a.componentFactoryResolver=o,a}return n}(d),b=function(t){Object(o.a)(n,t);var e=f(n);function n(t,r,i){var o;return Object(c.a)(this,n),(o=e.call(this)).templateRef=t,o.viewContainerRef=r,o.context=i,o}return Object(u.a)(n,[{key:"origin",get:function(){return this.templateRef.elementRef}},{key:"attach",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=e,Object(i.a)(Object(s.a)(n.prototype),"attach",this).call(this,t)}},{key:"detach",value:function(){return this.context=void 0,Object(i.a)(Object(s.a)(n.prototype),"detach",this).call(this)}}]),n}(d),m=function(t){Object(o.a)(n,t);var e=f(n);function n(t){var r;return Object(c.a)(this,n),(r=e.call(this)).element=t instanceof l.l?t.nativeElement:t,r}return n}(d),v=function(){function t(){Object(c.a)(this,t),this._isDisposed=!1,this.attachDomPortal=null}return Object(u.a)(t,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(t){return t instanceof p?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof b?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof m?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}},{key:"detach",value:function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}},{key:"dispose",value:function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}},{key:"setDisposeFn",value:function(t){this._disposeFn=t}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),t}(),g=function(t){Object(o.a)(n,t);var e=f(n);function n(t,o,a,u,l){var h,f;return Object(c.a)(this,n),(f=e.call(this)).outletElement=t,f._componentFactoryResolver=o,f._appRef=a,f._defaultInjector=u,f.attachDomPortal=function(t){var e=t.element,o=f._document.createComment("dom-portal");e.parentNode.insertBefore(o,e),f.outletElement.appendChild(e),f._attachedPortal=t,Object(i.a)((h=Object(r.a)(f),Object(s.a)(n.prototype)),"setDisposeFn",h).call(h,function(){o.parentNode&&o.parentNode.replaceChild(e,o)})},f._document=l,f}return Object(u.a)(n,[{key:"attachComponentPortal",value:function(t){var e,n=this,r=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);return t.viewContainerRef?(e=t.viewContainerRef.createComponent(r,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(function(){return e.destroy()})):(e=r.create(t.injector||this._defaultInjector),this._appRef.attachView(e.hostView),this.setDisposeFn(function(){n._appRef.detachView(e.hostView),e.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(e)),this._attachedPortal=t,e}},{key:"attachTemplatePortal",value:function(t){var e=this,n=t.viewContainerRef,r=n.createEmbeddedView(t.templateRef,t.context);return r.rootNodes.forEach(function(t){return e.outletElement.appendChild(t)}),r.detectChanges(),this.setDisposeFn(function(){var t=n.indexOf(r);-1!==t&&n.remove(t)}),this._attachedPortal=t,r}},{key:"dispose",value:function(){Object(i.a)(Object(s.a)(n.prototype),"dispose",this).call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(t){return t.hostView.rootNodes[0]}}]),n}(v),y=function(){var t=function(t){Object(o.a)(n,t);var e=f(n);function n(t,r){return Object(c.a)(this,n),e.call(this,t,r)}return n}(b);return t.\u0275fac=function(e){return new(e||t)(l.Sb(l.N),l.Sb(l.S))},t.\u0275dir=l.Nb({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[l.Bb]}),t}(),w=function(){var t=function(t){Object(o.a)(n,t);var e=f(n);function n(t,o,a){var u,h;return Object(c.a)(this,n),(h=e.call(this))._componentFactoryResolver=t,h._viewContainerRef=o,h._isInitialized=!1,h.attached=new l.n,h.attachDomPortal=function(t){var e=t.element,o=h._document.createComment("dom-portal");t.setAttachedHost(Object(r.a)(h)),e.parentNode.insertBefore(o,e),h._getRootNode().appendChild(e),h._attachedPortal=t,Object(i.a)((u=Object(r.a)(h),Object(s.a)(n.prototype)),"setDisposeFn",u).call(u,function(){o.parentNode&&o.parentNode.replaceChild(e,o)})},h._document=a,h}return Object(u.a)(n,[{key:"portal",get:function(){return this._attachedPortal},set:function(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&Object(i.a)(Object(s.a)(n.prototype),"detach",this).call(this),t&&Object(i.a)(Object(s.a)(n.prototype),"attach",this).call(this,t),this._attachedPortal=t)}},{key:"attachedRef",get:function(){return this._attachedRef}},{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){Object(i.a)(Object(s.a)(n.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(t){t.setAttachedHost(this);var e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,r=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),o=e.createComponent(r,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(o.hostView.rootNodes[0]),Object(i.a)(Object(s.a)(n.prototype),"setDisposeFn",this).call(this,function(){return o.destroy()}),this._attachedPortal=t,this._attachedRef=o,this.attached.emit(o),o}},{key:"attachTemplatePortal",value:function(t){var e=this;t.setAttachedHost(this);var r=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return Object(i.a)(Object(s.a)(n.prototype),"setDisposeFn",this).call(this,function(){return e._viewContainerRef.clear()}),this._attachedPortal=t,this._attachedRef=r,this.attached.emit(r),r}},{key:"_getRootNode",value:function(){var t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}]),n}(v);return t.\u0275fac=function(e){return new(e||t)(l.Sb(l.j),l.Sb(l.S),l.Sb(h.e))},t.\u0275dir=l.Nb({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[l.Bb]}),t}(),_=function(){var t=function t(){Object(c.a)(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=l.Qb({type:t}),t.\u0275inj=l.Pb({}),t}()},"/1cH":function(t,e,n){"use strict";n.d(e,"a",function(){return l}),n("KQm4"),n("vuIU"),n("Ji7U"),n("md7G"),n("foSv");var r=n("1OyB"),i=(n("u47x"),n("8LU1"),n("nLfN"),n("fXoL")),o=n("FKr1"),a=(n("quSY"),n("XNiG"),n("NXyV"),n("VRyK"),n("LRne"),n("xgIS"),n("ofXK")),s=n("rDax"),c=n("vxfF");n("FtGj"),n("+rOU"),n("3Pt+"),n("kmnG"),n("IzEk"),n("eIep"),n("pLZG"),n("lJxs"),n("vkgz"),n("3E0/"),n("cH1L");var u={provide:new i.r("mat-autocomplete-scroll-strategy"),deps:[s.a],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},l=function(){var t=function t(){Object(r.a)(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Qb({type:t}),t.\u0275inj=i.Pb({providers:[u],imports:[[s.d,o.i,o.e,a.c],c.b,o.i,o.e]}),t}()},"/6Yf":function(t,e,n){"use strict";n.d(e,"a",function(){return o}),n.d(e,"b",function(){return c});var r=n("mrSG"),i=n("qOnz"),o=function(){function t(t,e,n){this.name=t,this.instanceFactory=e,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}return t.prototype.setInstantiationMode=function(t){return this.instantiationMode=t,this},t.prototype.setMultipleInstances=function(t){return this.multipleInstances=t,this},t.prototype.setServiceProps=function(t){return this.serviceProps=t,this},t.prototype.setInstanceCreatedCallback=function(t){return this.onInstanceCreated=t,this},t}(),a="[DEFAULT]",s=function(){function t(t,e){this.name=t,this.container=e,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.onInitCallbacks=new Set}return t.prototype.get=function(t){void 0===t&&(t=a);var e=this.normalizeInstanceIdentifier(t);if(!this.instancesDeferred.has(e)){var n=new i.a;if(this.instancesDeferred.set(e,n),this.isInitialized(e)||this.shouldAutoInitialize())try{var r=this.getOrInitializeService({instanceIdentifier:e});r&&n.resolve(r)}catch(o){}}return this.instancesDeferred.get(e).promise},t.prototype.getImmediate=function(t){var e=Object(r.a)({identifier:a,optional:!1},t),n=e.optional,i=this.normalizeInstanceIdentifier(e.identifier);if(!this.isInitialized(i)&&!this.shouldAutoInitialize()){if(n)return null;throw Error("Service "+this.name+" is not available")}try{return this.getOrInitializeService({instanceIdentifier:i})}catch(o){if(n)return null;throw o}},t.prototype.getComponent=function(){return this.component},t.prototype.setComponent=function(t){var e,n;if(t.name!==this.name)throw Error("Mismatching Component "+t.name+" for Provider "+this.name+".");if(this.component)throw Error("Component for "+this.name+" has already been provided");if(this.component=t,this.shouldAutoInitialize()){if(function(t){return"EAGER"===t.instantiationMode}(t))try{this.getOrInitializeService({instanceIdentifier:a})}catch(h){}try{for(var i=Object(r.i)(this.instancesDeferred.entries()),o=i.next();!o.done;o=i.next()){var s=Object(r.g)(o.value,2),c=s[1],u=this.normalizeInstanceIdentifier(s[0]);try{var l=this.getOrInitializeService({instanceIdentifier:u});c.resolve(l)}catch(h){}}}catch(f){e={error:f}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}}},t.prototype.clearInstance=function(t){void 0===t&&(t=a),this.instancesDeferred.delete(t),this.instances.delete(t)},t.prototype.delete=function(){return Object(r.b)(this,void 0,void 0,function(){var t;return Object(r.e)(this,function(e){switch(e.label){case 0:return t=Array.from(this.instances.values()),[4,Promise.all(Object(r.h)(Object(r.h)([],Object(r.g)(t.filter(function(t){return"INTERNAL"in t}).map(function(t){return t.INTERNAL.delete()}))),Object(r.g)(t.filter(function(t){return"_delete"in t}).map(function(t){return t._delete()}))))];case 1:return e.sent(),[2]}})})},t.prototype.isComponentSet=function(){return null!=this.component},t.prototype.isInitialized=function(t){return void 0===t&&(t=a),this.instances.has(t)},t.prototype.initialize=function(t){var e,n;void 0===t&&(t={});var i=t.instanceIdentifier,o=t.options,s=void 0===o?{}:o,c=this.normalizeInstanceIdentifier(void 0===i?a:i);if(this.isInitialized(c))throw Error(this.name+"("+c+") has already been initialized");if(!this.isComponentSet())throw Error("Component "+this.name+" has not been registered yet");var u=this.getOrInitializeService({instanceIdentifier:c,options:s});try{for(var l=Object(r.i)(this.instancesDeferred.entries()),h=l.next();!h.done;h=l.next()){var f=Object(r.g)(h.value,2),d=f[1];c===this.normalizeInstanceIdentifier(f[0])&&d.resolve(u)}}catch(p){e={error:p}}finally{try{h&&!h.done&&(n=l.return)&&n.call(l)}finally{if(e)throw e.error}}return this.invokeOnInitCallbacks(u,c),u},t.prototype.onInit=function(t){var e=this;return this.onInitCallbacks.add(t),function(){e.onInitCallbacks.delete(t)}},t.prototype.invokeOnInitCallbacks=function(t,e){var n,i;try{for(var o=Object(r.i)(this.onInitCallbacks),a=o.next();!a.done;a=o.next()){var s=a.value;try{s(t,e)}catch(c){}}}catch(u){n={error:u}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}},t.prototype.getOrInitializeService=function(t){var e,n=t.instanceIdentifier,r=t.options,i=void 0===r?{}:r,o=this.instances.get(n);if(!o&&this.component&&(o=this.component.instanceFactory(this.container,{instanceIdentifier:(e=n,e===a?void 0:e),options:i}),this.instances.set(n,o),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,n,o)}catch(s){}return o||null},t.prototype.normalizeInstanceIdentifier=function(t){return this.component?this.component.multipleInstances?t:a:t},t.prototype.shouldAutoInitialize=function(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode},t}(),c=function(){function t(t){this.name=t,this.providers=new Map}return t.prototype.addComponent=function(t){var e=this.getProvider(t.name);if(e.isComponentSet())throw new Error("Component "+t.name+" has already been registered with "+this.name);e.setComponent(t)},t.prototype.addOrOverwriteComponent=function(t){this.getProvider(t.name).isComponentSet()&&this.providers.delete(t.name),this.addComponent(t)},t.prototype.getProvider=function(t){if(this.providers.has(t))return this.providers.get(t);var e=new s(t,this);return this.providers.set(t,e),e},t.prototype.getProviders=function(){return Array.from(this.providers.values())},t}()},"/t3+":function(t,e,n){"use strict";n.d(e,"a",function(){return v}),n.d(e,"b",function(){return g});var r=n("vuIU"),i=n("Ji7U"),o=n("md7G"),a=n("foSv"),s=n("1OyB"),c=n("FKr1"),u=n("ofXK"),l=n("fXoL"),h=n("nLfN"),f=["*",[["mat-toolbar-row"]]],d=["*","mat-toolbar-row"],p=function t(e){Object(s.a)(this,t),this._elementRef=e},b=Object(c.p)(p),m=function(){var t=function t(){Object(s.a)(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=l.Nb({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t}(),v=function(){var t=function(t){Object(i.a)(n,t);var e=function(t){function e(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}return function(){var n,r=Object(a.a)(t);if(e()){var i=Object(a.a)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(o.a)(this,n)}}(n);function n(t,r,i){var o;return Object(s.a)(this,n),(o=e.call(this,t))._platform=r,o._document=i,o}return Object(r.a)(n,[{key:"ngAfterViewInit",value:function(){var t=this;this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(function(){return t._checkToolbarMixedModes()}))}},{key:"_checkToolbarMixedModes",value:function(){}}]),n}(b);return t.\u0275fac=function(e){return new(e||t)(l.Sb(l.l),l.Sb(h.a),l.Sb(u.e))},t.\u0275cmp=l.Mb({type:t,selectors:[["mat-toolbar"]],contentQueries:function(t,e,n){var r;1&t&&l.Lb(n,m,1),2&t&&l.zc(r=l.hc())&&(e._toolbarRows=r)},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,e){2&t&&l.Kb("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[l.Bb],ngContentSelectors:d,decls:2,vars:0,template:function(t,e){1&t&&(l.pc(f),l.oc(0),l.oc(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),t}(),g=function(){var t=function t(){Object(s.a)(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=l.Qb({type:t}),t.\u0275inj=l.Pb({imports:[[c.e],c.e]}),t}()},"/uUt":function(t,e,n){"use strict";n.d(e,"a",function(){return u});var r=n("Ji7U"),i=n("md7G"),o=n("foSv"),a=n("1OyB"),s=n("vuIU"),c=n("7o/Q");function u(t,e){return function(n){return n.lift(new l(t,e))}}var l=function(){function t(e,n){Object(a.a)(this,t),this.compare=e,this.keySelector=n}return Object(s.a)(t,[{key:"call",value:function(t,e){return e.subscribe(new h(t,this.compare,this.keySelector))}}]),t}(),h=function(t){Object(r.a)(n,t);var e=function(t){function e(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}return function(){var n,r=Object(o.a)(t);if(e()){var a=Object(o.a)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Object(i.a)(this,n)}}(n);function n(t,r,i){var o;return Object(a.a)(this,n),(o=e.call(this,t)).keySelector=i,o.hasKey=!1,"function"==typeof r&&(o.compare=r),o}return Object(s.a)(n,[{key:"compare",value:function(t,e){return t===e}},{key:"_next",value:function(t){var e;try{var n=this.keySelector;e=n?n(t):t}catch(i){return this.destination.error(i)}var r=!1;if(this.hasKey)try{r=(0,this.compare)(this.key,e)}catch(i){return this.destination.error(i)}else this.hasKey=!0;r||(this.key=e,this.destination.next(t))}}]),n}(c.a)},0:function(t,e,n){t.exports=n("zUnb")},"0EQZ":function(t,e,n){"use strict";n.d(e,"a",function(){return d}),n.d(e,"b",function(){return b}),n.d(e,"c",function(){return p}),n.d(e,"d",function(){return m}),n.d(e,"e",function(){return f});var r=n("vuIU"),i=n("Ji7U"),o=n("md7G"),a=n("foSv"),s=n("1OyB"),c=n("7+OI"),u=n("LRne"),l=n("XNiG"),h=n("fXoL");function f(t){return t&&"function"==typeof t.connect}var d=function(t){Object(i.a)(n,function t(){Object(s.a)(this,t)});var e=function(t){function e(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}return function(){var n,r=Object(a.a)(t);if(e()){var i=Object(a.a)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(o.a)(this,n)}}(n);function n(t){var r;return Object(s.a)(this,n),(r=e.call(this))._data=t,r}return Object(r.a)(n,[{key:"connect",value:function(){return Object(c.a)(this._data)?this._data:Object(u.a)(this._data)}},{key:"disconnect",value:function(){}}]),n}(),p=function(){function t(){Object(s.a)(this,t),this.viewCacheSize=20,this._viewCache=[]}return Object(r.a)(t,[{key:"applyChanges",value:function(t,e,n,r,i){var o=this;t.forEachOperation(function(t,a,s){var c,u;null==t.previousIndex?u=(c=o._insertView(function(){return n(t,a,s)},s,e,r(t)))?1:0:null==s?(o._detachAndCacheView(a,e),u=3):(c=o._moveView(a,s,e,r(t)),u=2),i&&i({context:null==c?void 0:c.context,operation:u,record:t})})}},{key:"detach",value:function(){var t=!0,e=!1,n=void 0;try{for(var r,i=this._viewCache[Symbol.iterator]();!(t=(r=i.next()).done);t=!0)r.value.destroy()}catch(o){e=!0,n=o}finally{try{t||null==i.return||i.return()}finally{if(e)throw n}}this._viewCache=[]}},{key:"_insertView",value:function(t,e,n,r){var i=this._insertViewFromCache(e,n);if(!i){var o=t();return n.createEmbeddedView(o.templateRef,o.context,o.index)}i.context.$implicit=r}},{key:"_detachAndCacheView",value:function(t,e){var n=e.detach(t);this._maybeCacheView(n,e)}},{key:"_moveView",value:function(t,e,n,r){var i=n.get(t);return n.move(i,e),i.context.$implicit=r,i}},{key:"_maybeCacheView",value:function(t,e){if(this._viewCache.length0&&void 0!==arguments[0]&&arguments[0],r=arguments.length>1?arguments[1]:void 0,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];Object(s.a)(this,t),this._multiple=n,this._emitChanges=i,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new l.a,r&&r.length&&(n?r.forEach(function(t){return e._markSelected(t)}):this._markSelected(r[0]),this._selectedToEmit.length=0)}return Object(r.a)(t,[{key:"selected",get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}},{key:"select",value:function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r enter",Object(w.e)("150ms cubic-bezier(0, 0, 0.2, 1)",Object(w.m)({transform:"none",opacity:1}))),Object(w.n)("* => void, * => exit",Object(w.e)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",Object(w.m)({opacity:0})))])},C=function(){var t=function(t){Object(i.a)(n,t);var e=x(n);function n(t,r,i,o,a,c){var u;return Object(s.a)(this,n),(u=e.call(this))._elementRef=t,u._focusTrapFactory=r,u._changeDetectorRef=i,u._config=a,u._focusMonitor=c,u._animationStateChanged=new l.n,u._elementFocusedBeforeDialogWasOpened=null,u._closeInteractionType=null,u.attachDomPortal=function(t){return u._portalOutlet.hasAttached(),u._portalOutlet.attachDomPortal(t)},u._ariaLabelledBy=a.ariaLabelledBy||null,u._document=o,u}return Object(r.a)(n,[{key:"_initializeWithAttachedContent",value:function(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}},{key:"attachComponentPortal",value:function(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(t)}},{key:"attachTemplatePortal",value:function(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(t)}},{key:"_recaptureFocus",value:function(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}},{key:"_trapFocus",value:function(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}},{key:"_restoreFocus",value:function(){var t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){var e=this._getActiveElement(),n=this._elementRef.nativeElement;e&&e!==this._document.body&&e!==n&&!n.contains(e)||(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}},{key:"_setupFocusTrap",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}},{key:"_capturePreviouslyFocusedElement",value:function(){this._document&&(this._elementFocusedBeforeDialogWasOpened=this._getActiveElement())}},{key:"_focusDialogContainer",value:function(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}},{key:"_containsFocus",value:function(){var t=this._elementRef.nativeElement,e=this._getActiveElement();return t===e||t.contains(e)}},{key:"_getActiveElement",value:function(){var t,e=this._document.activeElement;return(null===(t=null==e?void 0:e.shadowRoot)||void 0===t?void 0:t.activeElement)||e}}]),n}(u.a);return t.\u0275fac=function(e){return new(e||t)(l.Sb(l.l),l.Sb(k.i),l.Sb(l.h),l.Sb(d.e,8),l.Sb(S),l.Sb(k.h))},t.\u0275dir=l.Nb({type:t,viewQuery:function(t,e){var n;1&t&&l.Sc(u.c,3),2&t&&l.zc(n=l.hc())&&(e._portalOutlet=n.first)},features:[l.Bb]}),t}(),j=function(){var t=function(t){Object(i.a)(n,t);var e=x(n);function n(){var t;return Object(s.a)(this,n),(t=e.apply(this,arguments))._state="enter",t}return Object(r.a)(n,[{key:"_onAnimationDone",value:function(t){var e=t.toState,n=t.totalTime;"enter"===e?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:n})):"exit"===e&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:n}))}},{key:"_onAnimationStart",value:function(t){var e=t.toState,n=t.totalTime;"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:n}):"exit"!==e&&"void"!==e||this._animationStateChanged.next({state:"closing",totalTime:n})}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}}]),n}(C);return t.\u0275fac=function(e){return T(e||t)},t.\u0275cmp=l.Mb({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&l.Jc("@dialogContainer.start",function(t){return e._onAnimationStart(t)})("@dialogContainer.done",function(t){return e._onAnimationDone(t)}),2&t&&(l.bc("id",e._id),l.Fb("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),l.Kc("@dialogContainer",e._state))},features:[l.Bb],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&l.Lc(0,O,0,0,"ng-template",0)},directives:[u.c],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[E.dialogContainer]}}),t}(),T=l.ac(j),I=0,A=function(){function t(e,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-".concat(I++);Object(s.a)(this,t),this._overlayRef=e,this._containerInstance=n,this.id=i,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new p.a,this._afterClosed=new p.a,this._beforeClosed=new p.a,this._state=0,n._id=i,n._animationStateChanged.pipe(Object(v.a)(function(t){return"opened"===t.state}),Object(g.a)(1)).subscribe(function(){r._afterOpened.next(),r._afterOpened.complete()}),n._animationStateChanged.pipe(Object(v.a)(function(t){return"closed"===t.state}),Object(g.a)(1)).subscribe(function(){clearTimeout(r._closeFallbackTimeout),r._finishDialogClose()}),e.detachments().subscribe(function(){r._beforeClosed.next(r._result),r._beforeClosed.complete(),r._afterClosed.next(r._result),r._afterClosed.complete(),r.componentInstance=null,r._overlayRef.dispose()}),e.keydownEvents().pipe(Object(v.a)(function(t){return t.keyCode===_.g&&!r.disableClose&&!Object(_.s)(t)})).subscribe(function(t){t.preventDefault(),R(r,"keyboard")}),e.backdropClick().subscribe(function(){r.disableClose?r._containerInstance._recaptureFocus():R(r,"mouse")})}return Object(r.a)(t,[{key:"close",value:function(t){var e=this;this._result=t,this._containerInstance._animationStateChanged.pipe(Object(v.a)(function(t){return"closing"===t.state}),Object(g.a)(1)).subscribe(function(n){e._beforeClosed.next(t),e._beforeClosed.complete(),e._overlayRef.detachBackdrop(),e._closeFallbackTimeout=setTimeout(function(){return e._finishDialogClose()},n.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}},{key:"afterOpened",value:function(){return this._afterOpened}},{key:"afterClosed",value:function(){return this._afterClosed}},{key:"beforeClosed",value:function(){return this._beforeClosed}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}},{key:"updatePosition",value:function(t){var e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}},{key:"updateSize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._overlayRef.updateSize({width:t,height:e}),this._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(t){return this._overlayRef.addPanelClass(t),this}},{key:"removePanelClass",value:function(t){return this._overlayRef.removePanelClass(t),this}},{key:"getState",value:function(){return this._state}},{key:"_finishDialogClose",value:function(){this._state=2,this._overlayRef.dispose()}},{key:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}]),t}();function R(t,e,n){return void 0!==t._containerInstance&&(t._containerInstance._closeInteractionType=e),t.close(n)}var P=new l.r("MatDialogData"),L=new l.r("mat-dialog-default-options"),N=new l.r("mat-dialog-scroll-strategy"),D={provide:N,deps:[c.a],useFactory:function(t){return function(){return t.scrollStrategies.block()}}},M=function(){var t=function(){function t(e,n,r,i,o,a,c,u,l){var h=this;Object(s.a)(this,t),this._overlay=e,this._injector=n,this._defaultOptions=r,this._parentDialog=i,this._overlayContainer=o,this._dialogRefConstructor=c,this._dialogContainerType=u,this._dialogDataToken=l,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new p.a,this._afterOpenedAtThisLevel=new p.a,this._ariaHiddenElements=new Map,this.afterAllClosed=Object(b.a)(function(){return h.openDialogs.length?h._getAfterAllClosed():h._getAfterAllClosed().pipe(Object(y.a)(void 0))}),this._scrollStrategy=a}return Object(r.a)(t,[{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}},{key:"_getAfterAllClosed",value:function(){var t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}},{key:"open",value:function(t,e){var n=this;(e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new S)).id&&this.getDialogById(e.id);var r=this._createOverlay(e),i=this._attachDialogContainer(r,e),o=this._attachDialogContent(t,i,r,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(o),o.afterClosed().subscribe(function(){return n._removeOpenDialog(o)}),this.afterOpened.next(o),i._initializeWithAttachedContent(),o}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(t){return this.openDialogs.find(function(e){return e.id===t})}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_createOverlay",value:function(t){var e=this._getOverlayConfig(t);return this._overlay.create(e)}},{key:"_getOverlayConfig",value:function(t){var e=new c.b({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}},{key:"_attachDialogContainer",value:function(t,e){var n=l.s.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:S,useValue:e}]}),r=new u.d(this._dialogContainerType,e.viewContainerRef,n,e.componentFactoryResolver);return t.attach(r).instance}},{key:"_attachDialogContent",value:function(t,e,n,r){var i=new this._dialogRefConstructor(n,e,r.id);if(t instanceof l.N)e.attachTemplatePortal(new u.g(t,null,{$implicit:r.data,dialogRef:i}));else{var o=this._createInjector(r,i,e),a=e.attachComponentPortal(new u.d(t,r.viewContainerRef,o));i.componentInstance=a.instance}return i.updateSize(r.width,r.height).updatePosition(r.position),i}},{key:"_createInjector",value:function(t,e,n){var r=t&&t.viewContainerRef&&t.viewContainerRef.injector,i=[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:t.data},{provide:this._dialogRefConstructor,useValue:e}];return!t.direction||r&&r.get(f.b,null)||i.push({provide:f.b,useValue:{value:t.direction,change:Object(m.a)()}}),l.s.create({parent:r||this._injector,providers:i})}},{key:"_removeOpenDialog",value:function(t){var e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(t,e){t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var t=this._overlayContainer.getContainerElement();if(t.parentElement)for(var e=t.parentElement.children,n=e.length-1;n>-1;n--){var r=e[n];r===t||"SCRIPT"===r.nodeName||"STYLE"===r.nodeName||r.hasAttribute("aria-live")||(this._ariaHiddenElements.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}}},{key:"_closeDialogs",value:function(t){for(var e=t.length;e--;)t[e].close()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.Sb(c.a),l.Sb(l.s),l.Sb(void 0),l.Sb(void 0),l.Sb(c.c),l.Sb(void 0),l.Sb(l.P),l.Sb(l.P),l.Sb(l.r))},t.\u0275dir=l.Nb({type:t}),t}(),F=function(){var t=function(t){Object(i.a)(n,t);var e=x(n);function n(t,r,i,o,a,c,u){return Object(s.a)(this,n),e.call(this,t,r,o,c,u,a,A,j,P)}return n}(M);return t.\u0275fac=function(e){return new(e||t)(l.cc(c.a),l.cc(l.s),l.cc(d.h,8),l.cc(L,8),l.cc(N),l.cc(t,12),l.cc(c.c))},t.\u0275prov=l.Ob({token:t,factory:t.\u0275fac}),t}(),V=0,U=function(){var t=function(){function t(e,n,r){Object(s.a)(this,t),this.dialogRef=e,this._elementRef=n,this._dialog=r,this.type="button"}return Object(r.a)(t,[{key:"ngOnInit",value:function(){this.dialogRef||(this.dialogRef=z(this._elementRef,this._dialog.openDialogs))}},{key:"ngOnChanges",value:function(t){var e=t._matDialogClose||t._matDialogCloseResult;e&&(this.dialogResult=e.currentValue)}},{key:"_onButtonClick",value:function(t){R(this.dialogRef,0===t.screenX&&0===t.screenY?"keyboard":"mouse",this.dialogResult)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.Sb(A,8),l.Sb(l.l),l.Sb(F))},t.\u0275dir=l.Nb({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(t,e){1&t&&l.gc("click",function(t){return e._onButtonClick(t)}),2&t&&l.Fb("aria-label",e.ariaLabel||null)("type",e.type)},inputs:{type:"type",dialogResult:["mat-dialog-close","dialogResult"],ariaLabel:["aria-label","ariaLabel"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[l.Cb]}),t}(),B=function(){var t=function(){function t(e,n,r){Object(s.a)(this,t),this._dialogRef=e,this._elementRef=n,this._dialog=r,this.id="mat-dialog-title-".concat(V++)}return Object(r.a)(t,[{key:"ngOnInit",value:function(){var t=this;this._dialogRef||(this._dialogRef=z(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(function(){var e=t._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=t.id)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.Sb(A,8),l.Sb(l.l),l.Sb(F))},t.\u0275dir=l.Nb({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,e){2&t&&l.bc("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),t}(),q=function(){var t=function t(){Object(s.a)(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=l.Nb({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),t}(),X=function(){var t=function t(){Object(s.a)(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=l.Nb({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),t}();function z(t,e){for(var n=t.nativeElement.parentElement;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?e.find(function(t){return t.id===n.id}):null}var H=function(){var t=function t(){Object(s.a)(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=l.Qb({type:t}),t.\u0275inj=l.Pb({providers:[F,D],imports:[[c.d,u.f,h.e],h.e]}),t}()},"0MNC":function(t,e,n){"use strict";n.d(e,"a",function(){return x}),n.d(e,"b",function(){return S}),n.d(e,"c",function(){return y});var r,i=n("vuIU"),o=n("1OyB"),a=n("fXoL"),s=n("8LU1"),c=n("XNiG"),u=n("itXk"),l=n("GyhO"),h=n("HDdC"),f=n("IzEk"),d=n("zP0r"),p=n("Kj3r"),b=n("lJxs"),m=n("JX91"),v=n("1G5W"),g=n("nLfN"),y=function(){var t=function t(){Object(o.a)(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=a.Qb({type:t}),t.\u0275inj=a.Pb({}),t}(),w=new Set,_=function(){var t=function(){function t(e){Object(o.a)(this,t),this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):k}return Object(i.a)(t,[{key:"matchMedia",value:function(t){return this._platform.WEBKIT&&function(t){if(!w.has(t))try{r||((r=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(r)),r.sheet&&(r.sheet.insertRule("@media ".concat(t," {.fx-query-test{ }}"),0),w.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.cc(g.a))},t.\u0275prov=Object(a.Ob)({factory:function(){return new t(Object(a.cc)(g.a))},token:t,providedIn:"root"}),t}();function k(t){return{matches:"all"===t||""===t,media:t,addListener:function(){},removeListener:function(){}}}var x=function(){var t=function(){function t(e,n){Object(o.a)(this,t),this._mediaMatcher=e,this._zone=n,this._queries=new Map,this._destroySubject=new c.a}return Object(i.a)(t,[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(t){var e=this;return O(Object(s.a)(t)).some(function(t){return e._registerQuery(t).mql.matches})}},{key:"observe",value:function(t){var e=this,n=O(Object(s.a)(t)).map(function(t){return e._registerQuery(t).observable}),r=Object(u.a)(n);return(r=Object(l.a)(r.pipe(Object(f.a)(1)),r.pipe(Object(d.a)(1),Object(p.a)(0)))).pipe(Object(b.a)(function(t){var e={matches:!1,breakpoints:{}};return t.forEach(function(t){var n=t.matches,r=t.query;e.matches=e.matches||n,e.breakpoints[r]=n}),e}))}},{key:"_registerQuery",value:function(t){var e=this;if(this._queries.has(t))return this._queries.get(t);var n=this._mediaMatcher.matchMedia(t),r={observable:new h.a(function(t){var r=function(n){return e._zone.run(function(){return t.next(n)})};return n.addListener(r),function(){n.removeListener(r)}}).pipe(Object(m.a)(n),Object(b.a)(function(e){return{query:t,matches:e.matches}}),Object(v.a)(this._destroySubject)),mql:n};return this._queries.set(t,r),r}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.cc(_),a.cc(a.B))},t.\u0275prov=Object(a.Ob)({factory:function(){return new t(Object(a.cc)(_),Object(a.cc)(a.B))},token:t,providedIn:"root"}),t}();function O(t){return t.map(function(t){return t.split(",")}).reduce(function(t,e){return t.concat(e)}).map(function(t){return t.trim()})}var S={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},"1G5W":function(t,e,n){"use strict";n.d(e,"a",function(){return u});var r=n("Ji7U"),i=n("md7G"),o=n("foSv"),a=n("1OyB"),s=n("vuIU"),c=n("zx2A");function u(t){return function(e){return e.lift(new l(t))}}var l=function(){function t(e){Object(a.a)(this,t),this.notifier=e}return Object(s.a)(t,[{key:"call",value:function(t,e){var n=new h(t),r=Object(c.c)(this.notifier,new c.a(n));return r&&!n.seenValue?(n.add(r),e.subscribe(n)):n}}]),t}(),h=function(t){Object(r.a)(n,t);var e=function(t){function e(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}return function(){var n,r=Object(o.a)(t);if(e()){var a=Object(o.a)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Object(i.a)(this,n)}}(n);function n(t){var r;return Object(a.a)(this,n),(r=e.call(this,t)).seenValue=!1,r}return Object(s.a)(n,[{key:"notifyNext",value:function(){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),n}(c.b)},"1OyB":function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,"a",function(){return r})},"25BE":function(t,e,n){"use strict";function r(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}n.d(e,"a",function(){return r})},"2QA8":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}()},"2Vo4":function(t,e,n){"use strict";n.d(e,"a",function(){return h});var r=n("1OyB"),i=n("vuIU"),o=n("ReuC"),a=n("Ji7U"),s=n("md7G"),c=n("foSv"),u=n("XNiG"),l=n("9ppp"),h=function(t){Object(a.a)(n,t);var e=function(t){function e(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}return function(){var n,r=Object(c.a)(t);if(e()){var i=Object(c.a)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(s.a)(this,n)}}(n);function n(t){var i;return Object(r.a)(this,n),(i=e.call(this))._value=t,i}return Object(i.a)(n,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(t){var e=Object(o.a)(Object(c.a)(n.prototype),"_subscribe",this).call(this,t);return e&&!e.closed&&t.next(this._value),e}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new l.a;return this._value}},{key:"next",value:function(t){Object(o.a)(Object(c.a)(n.prototype),"next",this).call(this,this._value=t)}}]),n}(u.a)},"2fFW":function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=!1,i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){var e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else r&&console.log("RxJS: Back to a better error behavior. Thank you. <3");r=t},get useDeprecatedSynchronousErrorHandling(){return r}}},"3E0/":function(t,e,n){"use strict";n.d(e,"a",function(){return f});var r=n("Ji7U"),i=n("md7G"),o=n("foSv"),a=n("1OyB"),s=n("vuIU"),c=n("D0XW");function u(t){return t instanceof Date&&!isNaN(+t)}var l=n("7o/Q"),h=n("WMd4");function f(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.a,n=u(t),r=n?+t-e.now():Math.abs(t);return function(t){return t.lift(new d(r,e))}}var d=function(){function t(e,n){Object(a.a)(this,t),this.delay=e,this.scheduler=n}return Object(s.a)(t,[{key:"call",value:function(t,e){return e.subscribe(new p(t,this.delay,this.scheduler))}}]),t}(),p=function(t){Object(r.a)(n,t);var e=function(t){function e(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}return function(){var n,r=Object(o.a)(t);if(e()){var a=Object(o.a)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Object(i.a)(this,n)}}(n);function n(t,r,i){var o;return Object(a.a)(this,n),(o=e.call(this,t)).delay=r,o.scheduler=i,o.queue=[],o.active=!1,o.errored=!1,o}return Object(s.a)(n,[{key:"_schedule",value:function(t){this.active=!0,this.destination.add(t.schedule(n.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}},{key:"scheduleNotification",value:function(t){if(!0!==this.errored){var e=this.scheduler,n=new b(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}}},{key:"_next",value:function(t){this.scheduleNotification(h.a.createNext(t))}},{key:"_error",value:function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(h.a.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(t){for(var e=t.source,n=e.queue,r=t.scheduler,i=t.destination;n.length>0&&n[0].time-r.now()<=0;)n.shift().notification.observe(i);if(n.length>0){var o=Math.max(0,n[0].time-r.now());this.schedule(t,o)}else this.unsubscribe(),e.active=!1}}]),n}(l.a),b=function t(e,n){Object(a.a)(this,t),this.time=e,this.notification=n}},"3N8a":function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n("1OyB"),i=n("vuIU"),o=n("Ji7U"),a=n("md7G"),s=n("foSv"),c=function(t){Object(o.a)(n,t);var e=function(t){function e(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}return function(){var n,r=Object(s.a)(t);if(e()){var i=Object(s.a)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(a.a)(this,n)}}(n);function n(t,i){var o;return Object(r.a)(this,n),(o=e.call(this,t,i)).scheduler=t,o.work=i,o.pending=!1,o}return Object(i.a)(n,[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=t;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this}},{key:"requestAsyncId",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(t.flush.bind(t,this),n)}},{key:"recycleAsyncId",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}},{key:"execute",value:function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(t,e){var n=!1,r=void 0;try{this.work(t)}catch(i){n=!0,r=!!i&&i||new Error(i)}if(n)return this.unsubscribe(),r}},{key:"_unsubscribe",value:function(){var t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}]),n}(function(t){Object(o.a)(n,t);var e=function(t){function e(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}return function(){var n,r=Object(s.a)(t);if(e()){var i=Object(s.a)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(a.a)(this,n)}}(n);function n(t,i){return Object(r.a)(this,n),e.call(this)}return Object(i.a)(n,[{key:"schedule",value:function(t){return this}}]),n}(n("quSY").a))},"3Pt+":function(t,e,n){"use strict";n.d(e,"a",function(){return Ut}),n.d(e,"b",function(){return w}),n.d(e,"c",function(){return Qt}),n.d(e,"d",function(){return yt}),n.d(e,"e",function(){return Rt}),n.d(e,"f",function(){return Dt}),n.d(e,"g",function(){return wt}),n.d(e,"h",function(){return Lt}),n.d(e,"i",function(){return Gt}),n.d(e,"j",function(){return Ht}),n.d(e,"k",function(){return Xt}),n.d(e,"l",function(){return x}),n.d(e,"m",function(){return v}),n.d(e,"n",function(){return G}),n.d(e,"o",function(){return W}),n.d(e,"p",function(){return Q}),n.d(e,"q",function(){return Ot}),n.d(e,"r",function(){return Ct}),n.d(e,"s",function(){return Kt}),n.d(e,"t",function(){return Vt}),n.d(e,"u",function(){return E}),n.d(e,"v",function(){return jt});var r=n("JX7q"),i=n("KQm4"),o=n("vuIU"),a=n("Ji7U"),s=n("md7G"),c=n("foSv"),u=n("1OyB"),l=n("fXoL"),h=n("ofXK"),f=n("Cfvw"),d=n("cp0P"),p=n("lJxs");function b(t){function e(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}return function(){var n,r=Object(c.a)(t);if(e()){var i=Object(c.a)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(s.a)(this,n)}}var m=function t(){Object(u.a)(this,t)},v=new l.r("NgValueAccessor"),g={provide:v,useExisting:Object(l.W)(function(){return w}),multi:!0},y=new l.r("CompositionEventMode"),w=function(){var t=function(){function t(e,n,r){var i;Object(u.a)(this,t),this._renderer=e,this._elementRef=n,this._compositionMode=r,this.onChange=function(t){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(i=Object(h.y)()?Object(h.y)().getUserAgent():"",!/android (\d+)/.test(i.toLowerCase())))}return Object(o.a)(t,[{key:"writeValue",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}},{key:"registerOnChange",value:function(t){this.onChange=t}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}},{key:"_handleInput",value:function(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}},{key:"_compositionStart",value:function(){this._composing=!0}},{key:"_compositionEnd",value:function(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.Sb(l.G),l.Sb(l.l),l.Sb(y,8))},t.\u0275dir=l.Nb({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,e){1&t&&l.gc("input",function(t){return e._handleInput(t.target.value)})("blur",function(){return e.onTouched()})("compositionstart",function(){return e._compositionStart()})("compositionend",function(t){return e._compositionEnd(t.target.value)})},features:[l.Db([g])]}),t}();function _(t){return null==t||0===t.length}function k(t){return null!=t&&"number"==typeof t.length}var x=new l.r("NgValidators"),O=new l.r("NgAsyncValidators"),S=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,E=function(){function t(){Object(u.a)(this,t)}return Object(o.a)(t,null,[{key:"min",value:function(t){return e=t,function(t){if(_(t.value)||_(e))return null;var n=parseFloat(t.value);return!isNaN(n)&&ne?{max:{max:e,actual:t.value}}:null};var e}},{key:"required",value:function(t){return C(t)}},{key:"requiredTrue",value:function(t){return j(t)}},{key:"email",value:function(t){return function(t){return _(t.value)||S.test(t.value)?null:{email:!0}}(t)}},{key:"minLength",value:function(t){return T(t)}},{key:"maxLength",value:function(t){return I(t)}},{key:"pattern",value:function(t){return(e=t)?("string"==typeof e?(r="","^"!==e.charAt(0)&&(r+="^"),r+=e,"$"!==e.charAt(e.length-1)&&(r+="$"),n=new RegExp(r)):(r=e.toString(),n=e),function(t){if(_(t.value))return null;var e=t.value;return n.test(e)?null:{pattern:{requiredPattern:r,actualValue:e}}}):A;var e,n,r}},{key:"nullValidator",value:function(t){return null}},{key:"compose",value:function(t){return M(t)}},{key:"composeAsync",value:function(t){return V(t)}}]),t}();function C(t){return _(t.value)?{required:!0}:null}function j(t){return!0===t.value?null:{required:!0}}function T(t){return function(e){return _(e.value)||!k(e.value)?null:e.value.lengtht?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}}function A(t){return null}function R(t){return null!=t}function P(t){var e=Object(l.vb)(t)?Object(f.a)(t):t;return Object(l.ub)(e),e}function L(t){var e={};return t.forEach(function(t){e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function N(t,e){return e.map(function(e){return e(t)})}function D(t){return t.map(function(t){return function(t){return!t.validate}(t)?t:function(e){return t.validate(e)}})}function M(t){if(!t)return null;var e=t.filter(R);return 0==e.length?null:function(t){return L(N(t,e))}}function F(t){return null!=t?M(D(t)):null}function V(t){if(!t)return null;var e=t.filter(R);return 0==e.length?null:function(t){var n=N(t,e).map(P);return Object(d.a)(n).pipe(Object(p.a)(L))}}function U(t){return null!=t?V(D(t)):null}function B(t,e){return null===t?[e]:Array.isArray(t)?[].concat(Object(i.a)(t),[e]):[t,e]}function q(t){return t._rawValidators}function X(t){return t._rawAsyncValidators}var z=function(){var t=function(){function t(){Object(u.a)(this,t),this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}return Object(o.a)(t,[{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}},{key:"_setValidators",value:function(t){this._rawValidators=t||[],this._composedValidatorFn=F(this._rawValidators)}},{key:"_setAsyncValidators",value:function(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=U(this._rawAsyncValidators)}},{key:"validator",get:function(){return this._composedValidatorFn||null}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn||null}},{key:"_registerOnDestroy",value:function(t){this._onDestroyCallbacks.push(t)}},{key:"_invokeOnDestroyCallbacks",value:function(){this._onDestroyCallbacks.forEach(function(t){return t()}),this._onDestroyCallbacks=[]}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.control&&this.control.reset(t)}},{key:"hasError",value:function(t,e){return!!this.control&&this.control.hasError(t,e)}},{key:"getError",value:function(t,e){return this.control?this.control.getError(t,e):null}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=l.Nb({type:t}),t}(),H=function(){var t=function(t){Object(a.a)(n,t);var e=b(n);function n(){return Object(u.a)(this,n),e.apply(this,arguments)}return Object(o.a)(n,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),n}(z);return t.\u0275fac=function(e){return Y(e||t)},t.\u0275dir=l.Nb({type:t,features:[l.Bb]}),t}(),Y=l.ac(H),G=function(t){Object(a.a)(n,t);var e=b(n);function n(){var t;return Object(u.a)(this,n),(t=e.apply(this,arguments))._parent=null,t.name=null,t.valueAccessor=null,t}return n}(z),K=function(){function t(e){Object(u.a)(this,t),this._cd=e}return Object(o.a)(t,[{key:"is",value:function(t){var e,n;return!!(null===(n=null===(e=this._cd)||void 0===e?void 0:e.control)||void 0===n?void 0:n[t])}}]),t}(),W=function(){var t=function(t){Object(a.a)(n,t);var e=b(n);function n(t){return Object(u.a)(this,n),e.call(this,t)}return n}(K);return t.\u0275fac=function(e){return new(e||t)(l.Sb(G,2))},t.\u0275dir=l.Nb({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&l.Kb("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[l.Bb]}),t}(),Q=function(){var t=function(t){Object(a.a)(n,t);var e=b(n);function n(t){return Object(u.a)(this,n),e.call(this,t)}return n}(K);return t.\u0275fac=function(e){return new(e||t)(l.Sb(H,10))},t.\u0275dir=l.Nb({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&l.Kb("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[l.Bb]}),t}();function Z(t,e){return[].concat(Object(i.a)(e.path),[t])}function J(t,e){et(t,e,!0),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(function(n){t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&rt(t,e)})}(t,e),function(t,e){var n=function(t,n){e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)};t.registerOnChange(n),e._registerOnDestroy(function(){t._unregisterOnChange(n)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(function(){t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&rt(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){var n=function(t){e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(n),e._registerOnDestroy(function(){t._unregisterOnDisabledChange(n)})}}(t,e)}function $(t,e){var n=function(){};e.valueAccessor&&(e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n)),nt(t,e,!0),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(function(){}))}function tt(t,e){t.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function et(t,e,n){var r=q(t);null!==e.validator?t.setValidators(B(r,e.validator)):"function"==typeof r&&t.setValidators([r]);var i=X(t);if(null!==e.asyncValidator?t.setAsyncValidators(B(i,e.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]),n){var o=function(){return t.updateValueAndValidity()};tt(e._rawValidators,o),tt(e._rawAsyncValidators,o)}}function nt(t,e,n){var r=!1;if(null!==t){if(null!==e.validator){var i=q(t);if(Array.isArray(i)&&i.length>0){var o=i.filter(function(t){return t!==e.validator});o.length!==i.length&&(r=!0,t.setValidators(o))}}if(null!==e.asyncValidator){var a=X(t);if(Array.isArray(a)&&a.length>0){var s=a.filter(function(t){return t!==e.asyncValidator});s.length!==a.length&&(r=!0,t.setAsyncValidators(s))}}}if(n){var c=function(){};tt(e._rawValidators,c),tt(e._rawAsyncValidators,c)}return r}function rt(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function it(t,e){et(t,e,!1)}function ot(t,e){if(!t.hasOwnProperty("model"))return!1;var n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}function at(t,e){t._syncPendingControls(),e.forEach(function(t){var e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function st(t,e){if(!e)return null;Array.isArray(e);var n=void 0,r=void 0,i=void 0;return e.forEach(function(t){t.constructor===w?n=t:Object.getPrototypeOf(t.constructor)===m?r=t:i=t}),i||r||n||null}function ct(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var ut="VALID",lt="INVALID",ht="PENDING",ft="DISABLED";function dt(t){return(vt(t)?t.validators:t)||null}function pt(t){return Array.isArray(t)?F(t):t||null}function bt(t,e){return(vt(e)?e.asyncValidators:t)||null}function mt(t){return Array.isArray(t)?U(t):t||null}function vt(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}var gt=function(){function t(e,n){Object(u.a)(this,t),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=e,this._rawAsyncValidators=n,this._composedValidatorFn=pt(this._rawValidators),this._composedAsyncValidatorFn=mt(this._rawAsyncValidators)}return Object(o.a)(t,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(t){this._rawValidators=this._composedValidatorFn=t}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return this.status===ut}},{key:"invalid",get:function(){return this.status===lt}},{key:"pending",get:function(){return this.status==ht}},{key:"disabled",get:function(){return this.status===ft}},{key:"enabled",get:function(){return this.status!==ft}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"setValidators",value:function(t){this._rawValidators=t,this._composedValidatorFn=pt(t)}},{key:"setAsyncValidators",value:function(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=mt(t)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(t){return t.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(t){t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"markAsDirty",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}},{key:"markAsPristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(t){t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"markAsPending",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status=ht,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}},{key:"disable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this._parentMarkedDirty(t.onlySelf);this.status=ft,this.errors=null,this._forEachChild(function(e){e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(function(t){return t(!0)})}},{key:"enable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this._parentMarkedDirty(t.onlySelf);this.status=ut,this._forEachChild(function(e){e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(function(t){return t(!1)})}},{key:"_updateAncestors",value:function(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(t){this._parent=t}},{key:"updateValueAndValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==ut&&this.status!==ht||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}},{key:"_updateTreeValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(e){return e._updateTreeValidity(t)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?ft:ut}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(t){var e=this;if(this.asyncValidator){this.status=ht,this._hasOwnPendingAsyncValidator=!0;var n=P(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){e._hasOwnPendingAsyncValidator=!1,e.setErrors(n,{emitEvent:t})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}},{key:"get",value:function(t){return function(t,e,n){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;var r=t;return e.forEach(function(t){r=r instanceof wt?r.controls.hasOwnProperty(t)?r.controls[t]:null:r instanceof _t&&r.at(t)||null}),r}(this,t)}},{key:"getError",value:function(t,e){var n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}},{key:"hasError",value:function(t,e){return!!this.getError(t,e)}},{key:"root",get:function(){for(var t=this;t._parent;)t=t._parent;return t}},{key:"_updateControlsErrors",value:function(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}},{key:"_initObservables",value:function(){this.valueChanges=new l.n,this.statusChanges=new l.n}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?ft:this.errors?lt:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ht)?ht:this._anyControlsHaveStatus(lt)?lt:ut}},{key:"_anyControlsHaveStatus",value:function(t){return this._anyControls(function(e){return e.status===t})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(t){return t.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(t){return t.touched})}},{key:"_updatePristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"_updateTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"_isBoxedValue",value:function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}},{key:"_registerOnCollectionChange",value:function(t){this._onCollectionChange=t}},{key:"_setUpdateStrategy",value:function(t){vt(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}},{key:"_parentMarkedDirty",value:function(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}]),t}(),yt=function(t){Object(a.a)(n,t);var e=b(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return Object(u.a)(this,n),(t=e.call(this,dt(i),bt(o,i)))._onChange=[],t._applyFormState(r),t._setUpdateStrategy(i),t._initObservables(),t.updateValueAndValidity({onlySelf:!0,emitEvent:!!o}),t}return Object(o.a)(n,[{key:"setValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=t,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(function(t){return t(e.value,!1!==n.emitViewToModelChange)}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(t,e)}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(t){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(t){this._onChange.push(t)}},{key:"_unregisterOnChange",value:function(t){ct(this._onChange,t)}},{key:"registerOnDisabledChange",value:function(t){this._onDisabledChange.push(t)}},{key:"_unregisterOnDisabledChange",value:function(t){ct(this._onDisabledChange,t)}},{key:"_forEachChild",value:function(t){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}]),n}(gt),wt=function(t){Object(a.a)(n,t);var e=b(n);function n(t,r,i){var o;return Object(u.a)(this,n),(o=e.call(this,dt(r),bt(i,r))).controls=t,o._initObservables(),o._setUpdateStrategy(r),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!i}),o}return Object(o.a)(n,[{key:"registerControl",value:function(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}},{key:"addControl",value:function(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"removeControl",value:function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setControl",value:function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"contains",value:function(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}},{key:"setValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(t),Object.keys(t).forEach(function(r){e._throwIfControlMissing(r),e.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=t&&(Object.keys(t).forEach(function(r){e.controls[r]&&e.controls[r].patchValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(t,e,n){return t[n]=e instanceof yt?e.value:e.getRawValue(),t})}},{key:"_syncPendingControls",value:function(){var t=this._reduceChildren(!1,function(t,e){return!!e._syncPendingControls()||t});return t&&this.updateValueAndValidity({onlySelf:!0}),t}},{key:"_throwIfControlMissing",value:function(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error("Cannot find form control with name: ".concat(t,"."))}},{key:"_forEachChild",value:function(t){var e=this;Object.keys(this.controls).forEach(function(n){var r=e.controls[n];r&&t(r,n)})}},{key:"_setUpControls",value:function(){var t=this;this._forEachChild(function(e){e.setParent(t),e._registerOnCollectionChange(t._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(t){for(var e=0,n=Object.keys(this.controls);e0||this.disabled}},{key:"_checkAllValuesPresent",value:function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control with name: '".concat(n,"'."))})}}]),n}(gt),_t=function(t){Object(a.a)(n,t);var e=b(n);function n(t,r,i){var o;return Object(u.a)(this,n),(o=e.call(this,dt(r),bt(i,r))).controls=t,o._initObservables(),o._setUpdateStrategy(r),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!i}),o}return Object(o.a)(n,[{key:"at",value:function(t){return this.controls[t]}},{key:"push",value:function(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"insert",value:function(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}},{key:"removeAt",value:function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),this.updateValueAndValidity()}},{key:"setControl",value:function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(t),t.forEach(function(t,r){e._throwIfControlMissing(r),e.at(r).setValue(t,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=t&&(t.forEach(function(t,r){e.at(r)&&e.at(r).patchValue(t,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}},{key:"getRawValue",value:function(){return this.controls.map(function(t){return t instanceof yt?t.value:t.getRawValue()})}},{key:"clear",value:function(){this.controls.length<1||(this._forEachChild(function(t){return t._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity())}},{key:"_syncPendingControls",value:function(){var t=this.controls.reduce(function(t,e){return!!e._syncPendingControls()||t},!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}},{key:"_throwIfControlMissing",value:function(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error("Cannot find form control at index ".concat(t))}},{key:"_forEachChild",value:function(t){this.controls.forEach(function(e,n){t(e,n)})}},{key:"_updateValue",value:function(){var t=this;this.value=this.controls.filter(function(e){return e.enabled||t.disabled}).map(function(t){return t.value})}},{key:"_anyControls",value:function(t){return this.controls.some(function(e){return e.enabled&&t(e)})}},{key:"_setUpControls",value:function(){var t=this;this._forEachChild(function(e){return t._registerControl(e)})}},{key:"_checkAllValuesPresent",value:function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control at index: ".concat(n,"."))})}},{key:"_allControlsDisabled",value:function(){var t=!0,e=!1,n=void 0;try{for(var r,i=this.controls[Symbol.iterator]();!(t=(r=i.next()).done);t=!0)if(r.value.enabled)return!1}catch(o){e=!0,n=o}finally{try{t||null==i.return||i.return()}finally{if(e)throw n}}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}]),n}(gt),kt={provide:H,useExisting:Object(l.W)(function(){return Ot})},xt=function(){return Promise.resolve(null)}(),Ot=function(){var t=function(t){Object(a.a)(n,t);var e=b(n);function n(t,r){var i;return Object(u.a)(this,n),(i=e.call(this)).submitted=!1,i._directives=[],i.ngSubmit=new l.n,i.form=new wt({},F(t),U(r)),i}return Object(o.a)(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}},{key:"addControl",value:function(t){var e=this;xt.then(function(){var n=e._findContainer(t.path);t.control=n.registerControl(t.name,t.control),J(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),e._directives.push(t)})}},{key:"getControl",value:function(t){return this.form.get(t.path)}},{key:"removeControl",value:function(t){var e=this;xt.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name),ct(e._directives,t)})}},{key:"addFormGroup",value:function(t){var e=this;xt.then(function(){var n=e._findContainer(t.path),r=new wt({});it(r,t),n.registerControl(t.name,r),r.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(t){var e=this;xt.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)})}},{key:"getFormGroup",value:function(t){return this.form.get(t.path)}},{key:"updateModel",value:function(t,e){var n=this;xt.then(function(){n.form.get(t.path).setValue(e)})}},{key:"setValue",value:function(t){this.control.setValue(t)}},{key:"onSubmit",value:function(t){return this.submitted=!0,at(this.form,this._directives),this.ngSubmit.emit(t),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(t),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(t){return t.pop(),t.length?this.form.get(t):this.form}}]),n}(H);return t.\u0275fac=function(e){return new(e||t)(l.Sb(x,10),l.Sb(O,10))},t.\u0275dir=l.Nb({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&l.gc("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[l.Db([kt]),l.Bb]}),t}(),St={provide:G,useExisting:Object(l.W)(function(){return Ct})},Et=function(){return Promise.resolve(null)}(),Ct=function(){var t=function(t){Object(a.a)(n,t);var e=b(n);function n(t,i,o,a){var s;return Object(u.a)(this,n),(s=e.call(this)).control=new yt,s._registered=!1,s.update=new l.n,s._parent=t,s._setValidators(i),s._setAsyncValidators(o),s.valueAccessor=st(Object(r.a)(s),a),s}return Object(o.a)(n,[{key:"ngOnChanges",value:function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),ot(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"path",get:function(){return this._parent?Z(this.name,this._parent):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"viewToModelUpdate",value:function(t){this.viewModel=t,this.update.emit(t)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){J(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}},{key:"_updateValue",value:function(t){var e=this;Et.then(function(){e.control.setValue(t,{emitViewToModelChange:!1})})}},{key:"_updateDisabled",value:function(t){var e=this,n=t.isDisabled.currentValue,r=""===n||n&&"false"!==n;Et.then(function(){r&&!e.control.disabled?e.control.disable():!r&&e.control.disabled&&e.control.enable()})}}]),n}(G);return t.\u0275fac=function(e){return new(e||t)(l.Sb(H,9),l.Sb(x,10),l.Sb(O,10),l.Sb(v,10))},t.\u0275dir=l.Nb({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[l.Db([St]),l.Bb,l.Cb]}),t}(),jt=function(){var t=function t(){Object(u.a)(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=l.Nb({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t}(),Tt=function(){var t=function t(){Object(u.a)(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=l.Qb({type:t}),t.\u0275inj=l.Pb({}),t}(),It=new l.r("NgModelWithFormControlWarning"),At={provide:G,useExisting:Object(l.W)(function(){return Rt})},Rt=function(){var t=function(t){Object(a.a)(n,t);var e=b(n);function n(t,i,o,a){var s;return Object(u.a)(this,n),(s=e.call(this))._ngModelWarningConfig=a,s.update=new l.n,s._ngModelWarningSent=!1,s._setValidators(t),s._setAsyncValidators(i),s.valueAccessor=st(Object(r.a)(s),o),s}return Object(o.a)(n,[{key:"isDisabled",set:function(t){}},{key:"ngOnChanges",value:function(t){if(this._isControlChanged(t)){var e=t.form.previousValue;e&&$(e,this),J(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}ot(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.form&&$(this.form,this)}},{key:"path",get:function(){return[]}},{key:"control",get:function(){return this.form}},{key:"viewToModelUpdate",value:function(t){this.viewModel=t,this.update.emit(t)}},{key:"_isControlChanged",value:function(t){return t.hasOwnProperty("form")}}]),n}(G);return t.\u0275fac=function(e){return new(e||t)(l.Sb(x,10),l.Sb(O,10),l.Sb(v,10),l.Sb(It,8))},t.\u0275dir=l.Nb({type:t,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[l.Db([At]),l.Bb,l.Cb]}),t._ngModelWarningSentOnce=!1,t}(),Pt={provide:H,useExisting:Object(l.W)(function(){return Lt})},Lt=function(){var t=function(t){Object(a.a)(n,t);var e=b(n);function n(t,r){var i;return Object(u.a)(this,n),(i=e.call(this)).validators=t,i.asyncValidators=r,i.submitted=!1,i._onCollectionChange=function(){return i._updateDomValue()},i.directives=[],i.form=null,i.ngSubmit=new l.n,i._setValidators(t),i._setAsyncValidators(r),i}return Object(o.a)(n,[{key:"ngOnChanges",value:function(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"ngOnDestroy",value:function(){this.form&&(nt(this.form,this,!1),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(function(){}))}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"addControl",value:function(t){var e=this.form.get(t.path);return J(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}},{key:"getControl",value:function(t){return this.form.get(t.path)}},{key:"removeControl",value:function(t){$(t.control||null,t),ct(this.directives,t)}},{key:"addFormGroup",value:function(t){this._setUpFormContainer(t)}},{key:"removeFormGroup",value:function(t){this._cleanUpFormContainer(t)}},{key:"getFormGroup",value:function(t){return this.form.get(t.path)}},{key:"addFormArray",value:function(t){this._setUpFormContainer(t)}},{key:"removeFormArray",value:function(t){this._cleanUpFormContainer(t)}},{key:"getFormArray",value:function(t){return this.form.get(t.path)}},{key:"updateModel",value:function(t,e){this.form.get(t.path).setValue(e)}},{key:"onSubmit",value:function(t){return this.submitted=!0,at(this.form,this.directives),this.ngSubmit.emit(t),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(t),this.submitted=!1}},{key:"_updateDomValue",value:function(){var t=this;this.directives.forEach(function(e){var n=e.control,r=t.form.get(e.path);n!==r&&($(n||null,e),r instanceof yt&&(J(r,e),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_setUpFormContainer",value:function(t){var e=this.form.get(t.path);it(e,t),e.updateValueAndValidity({emitEvent:!1})}},{key:"_cleanUpFormContainer",value:function(t){if(this.form){var e=this.form.get(t.path);e&&function(t,e){return nt(t,e,!1)}(e,t)&&e.updateValueAndValidity({emitEvent:!1})}}},{key:"_updateRegistrations",value:function(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){et(this.form,this,!1),this._oldForm&&nt(this._oldForm,this,!1)}},{key:"_checkFormPresent",value:function(){}}]),n}(H);return t.\u0275fac=function(e){return new(e||t)(l.Sb(x,10),l.Sb(O,10))},t.\u0275dir=l.Nb({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&l.gc("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[l.Db([Pt]),l.Bb,l.Cb]}),t}(),Nt={provide:G,useExisting:Object(l.W)(function(){return Dt})},Dt=function(){var t=function(t){Object(a.a)(n,t);var e=b(n);function n(t,i,o,a,s){var c;return Object(u.a)(this,n),(c=e.call(this))._ngModelWarningConfig=s,c._added=!1,c.update=new l.n,c._ngModelWarningSent=!1,c._parent=t,c._setValidators(i),c._setAsyncValidators(o),c.valueAccessor=st(Object(r.a)(c),a),c}return Object(o.a)(n,[{key:"isDisabled",set:function(t){}},{key:"ngOnChanges",value:function(t){this._added||this._setUpControl(),ot(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(t){this.viewModel=t,this.update.emit(t)}},{key:"path",get:function(){return Z(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"_checkParentType",value:function(){}},{key:"_setUpControl",value:function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}]),n}(G);return t.\u0275fac=function(e){return new(e||t)(l.Sb(H,13),l.Sb(x,10),l.Sb(O,10),l.Sb(v,10),l.Sb(It,8))},t.\u0275dir=l.Nb({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[l.Db([Nt]),l.Bb,l.Cb]}),t._ngModelWarningSentOnce=!1,t}(),Mt={provide:x,useExisting:Object(l.W)(function(){return Vt}),multi:!0},Ft={provide:x,useExisting:Object(l.W)(function(){return Ut}),multi:!0},Vt=function(){var t=function(){function t(){Object(u.a)(this,t),this._required=!1}return Object(o.a)(t,[{key:"required",get:function(){return this._required},set:function(t){this._required=null!=t&&!1!==t&&"false"!=="".concat(t),this._onChange&&this._onChange()}},{key:"validate",value:function(t){return this.required?C(t):null}},{key:"registerOnValidatorChange",value:function(t){this._onChange=t}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=l.Nb({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&l.Fb("required",e.required?"":null)},inputs:{required:"required"},features:[l.Db([Mt])]}),t}(),Ut=function(){var t=function(t){Object(a.a)(n,t);var e=b(n);function n(){return Object(u.a)(this,n),e.apply(this,arguments)}return Object(o.a)(n,[{key:"validate",value:function(t){return this.required?j(t):null}}]),n}(Vt);return t.\u0275fac=function(e){return Bt(e||t)},t.\u0275dir=l.Nb({type:t,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&l.Fb("required",e.required?"":null)},features:[l.Db([Ft]),l.Bb]}),t}(),Bt=l.ac(Ut),qt={provide:x,useExisting:Object(l.W)(function(){return Xt}),multi:!0},Xt=function(){var t=function(){function t(){Object(u.a)(this,t),this._validator=A}return Object(o.a)(t,[{key:"ngOnChanges",value:function(t){"minlength"in t&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(t){return null==this.minlength?null:this._validator(t)}},{key:"registerOnValidatorChange",value:function(t){this._onChange=t}},{key:"_createValidator",value:function(){this._validator=T("number"==typeof this.minlength?this.minlength:parseInt(this.minlength,10))}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=l.Nb({type:t,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&l.Fb("minlength",e.minlength?e.minlength:null)},inputs:{minlength:"minlength"},features:[l.Db([qt]),l.Cb]}),t}(),zt={provide:x,useExisting:Object(l.W)(function(){return Ht}),multi:!0},Ht=function(){var t=function(){function t(){Object(u.a)(this,t),this._validator=A}return Object(o.a)(t,[{key:"ngOnChanges",value:function(t){"maxlength"in t&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(t){return null!=this.maxlength?this._validator(t):null}},{key:"registerOnValidatorChange",value:function(t){this._onChange=t}},{key:"_createValidator",value:function(){this._validator=I("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=l.Nb({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&l.Fb("maxlength",e.maxlength?e.maxlength:null)},inputs:{maxlength:"maxlength"},features:[l.Db([zt]),l.Cb]}),t}(),Yt=function(){var t=function t(){Object(u.a)(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=l.Qb({type:t}),t.\u0275inj=l.Pb({imports:[[Tt]]}),t}(),Gt=function(){var t=function t(){Object(u.a)(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=l.Qb({type:t}),t.\u0275inj=l.Pb({imports:[Yt]}),t}(),Kt=function(){var t=function(){function t(){Object(u.a)(this,t)}return Object(o.a)(t,null,[{key:"withConfig",value:function(e){return{ngModule:t,providers:[{provide:It,useValue:e.warnOnNgModelWithFormControl}]}}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=l.Qb({type:t}),t.\u0275inj=l.Pb({imports:[Yt]}),t}();function Wt(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}var Qt=function(){var t=function(){function t(){Object(u.a)(this,t)}return Object(o.a)(t,[{key:"group",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this._reduceControls(t),r=null,i=null,o=void 0;return null!=e&&(Wt(e)?(r=null!=e.validators?e.validators:null,i=null!=e.asyncValidators?e.asyncValidators:null,o=null!=e.updateOn?e.updateOn:void 0):(r=null!=e.validator?e.validator:null,i=null!=e.asyncValidator?e.asyncValidator:null)),new wt(n,{asyncValidators:i,updateOn:o,validators:r})}},{key:"control",value:function(t,e,n){return new yt(t,e,n)}},{key:"array",value:function(t,e,n){var r=this,i=t.map(function(t){return r._createControl(t)});return new _t(i,e,n)}},{key:"_reduceControls",value:function(t){var e=this,n={};return Object.keys(t).forEach(function(r){n[r]=e._createControl(t[r])}),n}},{key:"_createControl",value:function(t){return t instanceof yt||t instanceof wt||t instanceof _t?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(l.Ob)({factory:function(){return new t},token:t,providedIn:Kt}),t}()},"3UD+":function(t,e){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}},"3UWI":function(t,e,n){"use strict";n.d(e,"a",function(){return p});var r=n("D0XW"),i=n("Ji7U"),o=n("md7G"),a=n("foSv"),s=n("1OyB"),c=n("vuIU"),u=n("zx2A");function l(t){return function(e){return e.lift(new h(t))}}var h=function(){function t(e){Object(s.a)(this,t),this.durationSelector=e}return Object(c.a)(t,[{key:"call",value:function(t,e){return e.subscribe(new f(t,this.durationSelector))}}]),t}(),f=function(t){Object(i.a)(n,t);var e=function(t){function e(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}return function(){var n,r=Object(a.a)(t);if(e()){var i=Object(a.a)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(o.a)(this,n)}}(n);function n(t,r){var i;return Object(s.a)(this,n),(i=e.call(this,t)).durationSelector=r,i.hasValue=!1,i}return Object(c.a)(n,[{key:"_next",value:function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var e;try{e=(0,this.durationSelector)(t)}catch(r){return this.destination.error(r)}var n=Object(u.c)(e,new u.a(this));!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}},{key:"clearThrottle",value:function(){var t=this.value,e=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))}},{key:"notifyNext",value:function(){this.clearThrottle()}},{key:"notifyComplete",value:function(){this.clearThrottle()}}]),n}(u.b),d=n("PqYM");function p(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.a;return l(function(){return Object(d.a)(t,e)})}},"4I5i":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(){function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t}()},"5+tZ":function(t,e,n){"use strict";n.d(e,"a",function(){return h});var r=n("Ji7U"),i=n("md7G"),o=n("foSv"),a=n("1OyB"),s=n("vuIU"),c=n("lJxs"),u=n("Cfvw"),l=n("zx2A");function h(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof e?function(r){return r.pipe(h(function(n,r){return Object(u.a)(t(n,r)).pipe(Object(c.a)(function(t,i){return e(n,t,r,i)}))},n))}:("number"==typeof e&&(n=e),function(e){return e.lift(new f(t,n))})}var f=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;Object(a.a)(this,t),this.project=e,this.concurrent=n}return Object(s.a)(t,[{key:"call",value:function(t,e){return e.subscribe(new d(t,this.project,this.concurrent))}}]),t}(),d=function(t){Object(r.a)(n,t);var e=function(t){function e(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}return function(){var n,r=Object(o.a)(t);if(e()){var a=Object(o.a)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Object(i.a)(this,n)}}(n);function n(t,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return Object(a.a)(this,n),(i=e.call(this,t)).project=r,i.concurrent=o,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return Object(s.a)(n,[{key:"_next",value:function(t){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(l.b)},"5RNC":function(t,e,n){"use strict";n.d(e,"a",function(){return s}),n("vuIU"),n("Ji7U"),n("md7G"),n("foSv");var r=n("1OyB"),i=n("ofXK"),o=n("fXoL"),a=n("FKr1");n("8LU1"),n("FtGj"),n("3Pt+"),n("R1ws"),n("nLfN"),n("quSY"),n("u47x"),n("cH1L");var s=function(){var t=function t(){Object(r.a)(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.Qb({type:t}),t.\u0275inj=o.Pb({imports:[[i.c,a.e],a.e]}),t}()},"7+OI":function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("HDdC");function i(t){return!!t&&(t instanceof r.a||"function"==typeof t.lift&&"function"==typeof t.subscribe)}},"7Hc7":function(t,e,n){"use strict";n.d(e,"b",function(){return m}),n.d(e,"a",function(){return v});var r=n("1OyB"),i=n("vuIU"),o=n("ReuC"),a=n("Ji7U"),s=n("md7G"),c=n("foSv"),u=1,l=function(){return Promise.resolve()}(),h={};function f(t){return t in h&&(delete h[t],!0)}var d=function(t){var e=u++;return h[e]=!0,l.then(function(){return f(e)&&t()}),e},p=function(t){f(t)},b=function(t){Object(a.a)(n,t);var e=function(t){function e(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}return function(){var n,r=Object(c.a)(t);if(e()){var i=Object(c.a)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(s.a)(this,n)}}(n);function n(t,i){var o;return Object(r.a)(this,n),(o=e.call(this,t,i)).scheduler=t,o.work=i,o}return Object(i.a)(n,[{key:"requestAsyncId",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==r&&r>0?Object(o.a)(Object(c.a)(n.prototype),"requestAsyncId",this).call(this,t,e,r):(t.actions.push(this),t.scheduled||(t.scheduled=d(t.flush.bind(t,null))))}},{key:"recycleAsyncId",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==r&&r>0||null===r&&this.delay>0)return Object(o.a)(Object(c.a)(n.prototype),"recycleAsyncId",this).call(this,t,e,r);0===t.actions.length&&(p(e),t.scheduled=void 0)}}]),n}(n("3N8a").a),m=new(function(t){Object(a.a)(n,t);var e=function(t){function e(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}return function(){var n,r=Object(c.a)(t);if(e()){var i=Object(c.a)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(s.a)(this,n)}}(n);function n(){return Object(r.a)(this,n),e.apply(this,arguments)}return Object(i.a)(n,[{key:"flush",value:function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,i=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++r1&&void 0!==arguments[1]?arguments[1]:0;return a(t)?Number(t):e}function a(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function s(t){return Array.isArray(t)?t:[t]}function c(t){return null==t?"":"string"==typeof t?t:"".concat(t,"px")}function u(t){return t instanceof r.l?t.nativeElement:t}function l(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\s+/,n=[];if(null!=t){var r=Array.isArray(t)?t:"".concat(t).split(e),i=!0,o=!1,a=void 0;try{for(var s,c=r[Symbol.iterator]();!(i=(s=c.next()).done);i=!0){var u=s.value,l="".concat(u).trim();l&&n.push(l)}}catch(h){o=!0,a=h}finally{try{i||null==c.return||c.return()}finally{if(o)throw a}}}return n}},"9ppp":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(){function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t}()},BsWD:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("a3WO");function i(t,e){if(t){if("string"==typeof t)return Object(r.a)(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(t,e):void 0}}},Cfvw:function(t,e,n){"use strict";n.d(e,"a",function(){return h});var r=n("HDdC"),i=n("SeVD"),o=n("quSY"),a=n("kJWO"),s=n("jZKg"),c=n("Lhse"),u=n("c2HN"),l=n("I55L");function h(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[a.a]}(t))return function(t,e){return new r.a(function(n){var r=new o.a;return r.add(e.schedule(function(){var i=t[a.a]();r.add(i.subscribe({next:function(t){r.add(e.schedule(function(){return n.next(t)}))},error:function(t){r.add(e.schedule(function(){return n.error(t)}))},complete:function(){r.add(e.schedule(function(){return n.complete()}))}}))})),r})}(t,e);if(Object(u.a)(t))return function(t,e){return new r.a(function(n){var r=new o.a;return r.add(e.schedule(function(){return t.then(function(t){r.add(e.schedule(function(){n.next(t),r.add(e.schedule(function(){return n.complete()}))}))},function(t){r.add(e.schedule(function(){return n.error(t)}))})})),r})}(t,e);if(Object(l.a)(t))return Object(s.a)(t,e);if(function(t){return t&&"function"==typeof t[c.a]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new r.a(function(n){var r,i=new o.a;return i.add(function(){r&&"function"==typeof r.return&&r.return()}),i.add(e.schedule(function(){r=t[c.a](),i.add(e.schedule(function(){if(!n.closed){var t,e;try{var i=r.next();t=i.value,e=i.done}catch(o){return void n.error(o)}e?n.complete():(n.next(t),this.schedule())}}))})),i})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof r.a?t:new r.a(Object(i.a)(t))}},D0XW:function(t,e,n){"use strict";n.d(e,"b",function(){return i}),n.d(e,"a",function(){return o});var r=n("3N8a"),i=new(n("IjjT").a)(r.a),o=i},DH7j:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(){return Array.isArray||function(t){return t&&"number"==typeof t.length}}()},DSFK:function(t,e,n){"use strict";function r(t){if(Array.isArray(t))return t}n.d(e,"a",function(){return r})},EQ5u:function(t,e,n){"use strict";n.d(e,"a",function(){return p}),n.d(e,"b",function(){return b});var r=n("ReuC"),i=n("1OyB"),o=n("vuIU"),a=n("Ji7U"),s=n("md7G"),c=n("foSv"),u=n("XNiG"),l=n("HDdC"),h=(n("7o/Q"),n("quSY")),f=n("x+ZX");function d(t){function e(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}return function(){var n,r=Object(c.a)(t);if(e()){var i=Object(c.a)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(s.a)(this,n)}}var p=function(t){Object(a.a)(n,t);var e=d(n);function n(t,r){var o;return Object(i.a)(this,n),(o=e.call(this)).source=t,o.subjectFactory=r,o._refCount=0,o._isComplete=!1,o}return Object(o.a)(n,[{key:"_subscribe",value:function(t){return this.getSubject().subscribe(t)}},{key:"getSubject",value:function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new h.a).add(this.source.subscribe(new m(this.getSubject(),this))),t.closed&&(this._connection=null,t=h.a.EMPTY)),t}},{key:"refCount",value:function(){return Object(f.a)()(this)}}]),n}(l.a),b=function(){var t=p.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}}(),m=function(t){Object(a.a)(n,t);var e=d(n);function n(t,r){var o;return Object(i.a)(this,n),(o=e.call(this,t)).connectable=r,o}return Object(o.a)(n,[{key:"_error",value:function(t){this._unsubscribe(),Object(r.a)(Object(c.a)(n.prototype),"_error",this).call(this,t)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),Object(r.a)(Object(c.a)(n.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value: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()}}}]),n}(u.b)},EY2u:function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return o});var r=n("HDdC"),i=new r.a(function(t){return t.complete()});function o(t){return t?function(t){return new r.a(function(e){return t.schedule(function(){return e.complete()})})}(t):i}},FKr1:function(t,e,n){"use strict";n.d(e,"a",function(){return A}),n.d(e,"b",function(){return $}),n.d(e,"c",function(){return W}),n.d(e,"d",function(){return z}),n.d(e,"e",function(){return S}),n.d(e,"f",function(){return R}),n.d(e,"g",function(){return N}),n.d(e,"h",function(){return rt}),n.d(e,"i",function(){return at}),n.d(e,"j",function(){return et}),n.d(e,"k",function(){return H}),n.d(e,"l",function(){return Y}),n.d(e,"m",function(){return B}),n.d(e,"n",function(){return it}),n.d(e,"o",function(){return ot}),n.d(e,"p",function(){return C}),n.d(e,"q",function(){return j}),n.d(e,"r",function(){return E}),n.d(e,"s",function(){return I}),n.d(e,"t",function(){return T}),n.d(e,"u",function(){return P}),n("JX7q"),n("ReuC");var r=n("Ji7U"),i=n("md7G"),o=n("foSv"),a=n("vuIU"),s=n("1OyB"),c=n("fXoL"),u=n("u47x"),l=n("cH1L"),h=new c.R("11.2.13"),f=n("ofXK"),d=n("8LU1"),p=n("XNiG"),b=(n("HDdC"),n("nLfN")),m=n("JX91"),v=n("R1ws"),g=n("FtGj");function y(t){function e(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}return function(){var n,r=Object(o.a)(t);if(e()){var a=Object(o.a)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Object(i.a)(this,n)}}function w(t,e){if(1&t&&c.Tb(0,"mat-pseudo-checkbox",4),2&t){var n=c.kc();c.qc("state",n.selected?"checked":"unchecked")("disabled",n.disabled)}}function _(t,e){if(1&t&&(c.Yb(0,"span",5),c.Nc(1),c.Xb()),2&t){var n=c.kc();c.Eb(1),c.Pc("(",n.group.label,")")}}var k=["*"],x=new c.R("11.2.13"),O=new c.r("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),S=function(){var t=function(){function t(e,n,r){Object(s.a)(this,t),this._hasDoneGlobalChecks=!1,this._document=r,e._applyBodyHighContrastModeCssClasses(),this._sanityChecks=n,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}return Object(a.a)(t,[{key:"_getWindow",value:function(){var t=this._document.defaultView||window;return"object"==typeof t&&t?t:null}},{key:"_checksAreEnabled",value:function(){return Object(c.Y)()&&!this._isTestEnv()}},{key:"_isTestEnv",value:function(){var t=this._getWindow();return t&&(t.__karma__||t.jasmine)}},{key:"_checkDoctypeIsDefined",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}},{key:"_checkThemeIsPresent",value:function(){if(this._checksAreEnabled()&&!1!==this._sanityChecks&&this._sanityChecks.theme&&this._document.body&&"function"==typeof getComputedStyle){var t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);var e=getComputedStyle(t);e&&"none"!==e.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(t)}}},{key:"_checkCdkVersionMatch",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&x.full!==h.full&&console.warn("The Angular Material version ("+x.full+") does not match the Angular CDK version ("+h.full+").\nPlease ensure the versions of these two packages exactly match.")}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.cc(u.j),c.cc(O,8),c.cc(f.e))},t.\u0275mod=c.Qb({type:t}),t.\u0275inj=c.Pb({imports:[[l.a],l.a]}),t}();function E(t){return function(t){Object(r.a)(n,t);var e=y(n);function n(){var t;Object(s.a)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o1&&void 0!==arguments[1]?arguments[1]:0,n=function(t){Object(r.a)(i,t);var n=y(i);function i(){var t;Object(s.a)(this,i);for(var r=arguments.length,o=new Array(r),a=0;a2&&void 0!==arguments[2]?arguments[2]:"mat";t.changes.pipe(Object(m.a)(t)).subscribe(function(t){var r=t.length;L(e,"".concat(n,"-2-line"),!1),L(e,"".concat(n,"-3-line"),!1),L(e,"".concat(n,"-multi-line"),!1),2===r||3===r?L(e,"".concat(n,"-").concat(r,"-line"),!0):r>3&&L(e,"".concat(n,"-multi-line"),!0)})}function L(t,e,n){var r=t.nativeElement.classList;n?r.add(e):r.remove(e)}var N=function(){var t=function t(){Object(s.a)(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.Qb({type:t}),t.\u0275inj=c.Pb({imports:[[S],S]}),t}(),D=function(){function t(e,n,r){Object(s.a)(this,t),this._renderer=e,this.element=n,this.config=r,this.state=3}return Object(a.a)(t,[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}]),t}(),M={enterDuration:450,exitDuration:400},F=Object(b.f)({passive:!0}),V=["mousedown","touchstart"],U=["mouseup","mouseleave","touchend","touchcancel"],B=function(){function t(e,n,r,i){Object(s.a)(this,t),this._target=e,this._ngZone=n,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,i.isBrowser&&(this._containerElement=Object(d.d)(r))}return Object(a.a)(t,[{key:"fadeInRipple",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=Object.assign(Object.assign({},M),r.animation);r.centered&&(t=i.left+i.width/2,e=i.top+i.height/2);var a=r.radius||X(t,e,i),s=t-i.left,c=e-i.top,u=o.enterDuration,l=document.createElement("div");l.classList.add("mat-ripple-element"),l.style.left="".concat(s-a,"px"),l.style.top="".concat(c-a,"px"),l.style.height="".concat(2*a,"px"),l.style.width="".concat(2*a,"px"),null!=r.color&&(l.style.backgroundColor=r.color),l.style.transitionDuration="".concat(u,"ms"),this._containerElement.appendChild(l),q(l),l.style.transform="scale(1)";var h=new D(this,l,r);return h.state=0,this._activeRipples.add(h),r.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(function(){var t=h===n._mostRecentTransientRipple;h.state=1,r.persistent||t&&n._isPointerDown||h.fadeOut()},u),h}},{key:"fadeOutRipple",value:function(t){var e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),e){var n=t.element,r=Object.assign(Object.assign({},M),t.config.animation);n.style.transitionDuration="".concat(r.exitDuration,"ms"),n.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(function(){t.state=3,n.parentNode.removeChild(n)},r.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach(function(t){return t.fadeOut()})}},{key:"fadeOutAllNonPersistent",value:function(){this._activeRipples.forEach(function(t){t.config.persistent||t.fadeOut()})}},{key:"setupTriggerEvents",value:function(t){var e=Object(d.d)(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(V))}},{key:"handleEvent",value:function(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(U),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(t){var e=Object(u.l)(t),n=this._lastTouchStartEvent&&Date.now()1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular(function(){return setTimeout(t,e)})}},{key:"_registerEvents",value:function(t){var e=this;this._ngZone.runOutsideAngular(function(){t.forEach(function(t){e._triggerElement.addEventListener(t,e,F)})})}},{key:"_removeTriggerEvents",value:function(){var t=this;this._triggerElement&&(V.forEach(function(e){t._triggerElement.removeEventListener(e,t,F)}),this._pointerUpEventsRegistered&&U.forEach(function(e){t._triggerElement.removeEventListener(e,t,F)}))}}]),t}();function q(t){window.getComputedStyle(t).getPropertyValue("opacity")}function X(t,e,n){var r=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),i=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(r*r+i*i)}var z=new c.r("mat-ripple-global-options"),H=function(){var t=function(){function t(e,n,r,i,o){Object(s.a)(this,t),this._elementRef=e,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=i||{},this._rippleRenderer=new B(this,n,e,r)}return Object(a.a)(t,[{key:"disabled",get:function(){return this._disabled},set:function(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}},{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"fadeOutAllNonPersistent",value:function(){this._rippleRenderer.fadeOutAllNonPersistent()}},{key:"rippleConfig",get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.Sb(c.l),c.Sb(c.B),c.Sb(b.a),c.Sb(z,8),c.Sb(v.a,8))},t.\u0275dir=c.Nb({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&c.Kb("mat-ripple-unbounded",e.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),t}(),Y=function(){var t=function t(){Object(s.a)(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.Qb({type:t}),t.\u0275inj=c.Pb({imports:[[S,b.b],S]}),t}(),G=function(){var t=function t(e){Object(s.a)(this,t),this._animationMode=e,this.state="unchecked",this.disabled=!1};return t.\u0275fac=function(e){return new(e||t)(c.Sb(v.a,8))},t.\u0275cmp=c.Mb({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&c.Kb("mat-pseudo-checkbox-indeterminate","indeterminate"===e.state)("mat-pseudo-checkbox-checked","checked"===e.state)("mat-pseudo-checkbox-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,e){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),t}(),K=function(){var t=function t(){Object(s.a)(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.Qb({type:t}),t.\u0275inj=c.Pb({imports:[[S]]}),t}(),W=new c.r("MAT_OPTION_PARENT_COMPONENT"),Q=E(function t(){Object(s.a)(this,t)}),Z=0,J=function(){var t=function(t){Object(r.a)(n,t);var e=y(n);function n(t){var r,i;return Object(s.a)(this,n),(r=e.call(this))._labelId="mat-optgroup-label-".concat(Z++),r._inert=null!==(i=null==t?void 0:t.inertGroups)&&void 0!==i&&i,r}return n}(Q);return t.\u0275fac=function(e){return new(e||t)(c.Sb(W,8))},t.\u0275dir=c.Nb({type:t,inputs:{label:"label"},features:[c.Bb]}),t}(),$=new c.r("MatOptgroup"),tt=0,et=function t(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Object(s.a)(this,t),this.source=e,this.isUserInput=n},nt=function(){var t=function(){function t(e,n,r,i){Object(s.a)(this,t),this._element=e,this._changeDetectorRef=n,this._parent=r,this.group=i,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-".concat(tt++),this.onSelectionChange=new c.n,this._stateChanges=new p.a}return Object(a.a)(t,[{key:"multiple",get:function(){return this._parent&&this._parent.multiple}},{key:"selected",get:function(){return this._selected}},{key:"disabled",get:function(){return this.group&&this.group.disabled||this._disabled},set:function(t){this._disabled=Object(d.b)(t)}},{key:"disableRipple",get:function(){return this._parent&&this._parent.disableRipple}},{key:"active",get:function(){return this._active}},{key:"viewValue",get:function(){return(this._getHostElement().textContent||"").trim()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"focus",value:function(t,e){var n=this._getHostElement();"function"==typeof n.focus&&n.focus(e)}},{key:"setActiveStyles",value:function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}},{key:"setInactiveStyles",value:function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}},{key:"getLabel",value:function(){return this.viewValue}},{key:"_handleKeydown",value:function(t){t.keyCode!==g.f&&t.keyCode!==g.n||Object(g.s)(t)||(this._selectViaInteraction(),t.preventDefault())}},{key:"_selectViaInteraction",value:function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}},{key:"_getAriaSelected",value:function(){return this.selected||!this.multiple&&null}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"ngAfterViewChecked",value:function(){if(this._selected){var t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new et(this,t))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.Sb(c.l),c.Sb(c.h),c.Sb(void 0),c.Sb(J))},t.\u0275dir=c.Nb({type:t,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),t}(),rt=function(){var t=function(t){Object(r.a)(n,t);var e=y(n);function n(t,r,i,o){return Object(s.a)(this,n),e.call(this,t,r,i,o)}return n}(nt);return t.\u0275fac=function(e){return new(e||t)(c.Sb(c.l),c.Sb(c.h),c.Sb(W,8),c.Sb($,8))},t.\u0275cmp=c.Mb({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&c.gc("click",function(){return e._selectViaInteraction()})("keydown",function(t){return e._handleKeydown(t)}),2&t&&(c.bc("id",e.id),c.Fb("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),c.Kb("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},exportAs:["matOption"],features:[c.Bb],ngContentSelectors:k,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(t,e){1&t&&(c.pc(),c.Lc(0,w,1,2,"mat-pseudo-checkbox",0),c.Yb(1,"span",1),c.oc(2),c.Xb(),c.Lc(3,_,2,1,"span",2),c.Tb(4,"div",3)),2&t&&(c.qc("ngIf",e.multiple),c.Eb(3),c.qc("ngIf",e.group&&e.group._inert),c.Eb(1),c.qc("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[f.l,H,G],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t}();function it(t,e,n){if(n.length){for(var r=e.toArray(),i=n.toArray(),o=0,a=0;an+r?Math.max(0,t-r+e):n}var at=function(){var t=function t(){Object(s.a)(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.Qb({type:t}),t.\u0275inj=c.Pb({imports:[[Y,f.c,S,K]]}),t}()},FtGj:function(t,e,n){"use strict";n.d(e,"a",function(){return y}),n.d(e,"b",function(){return r}),n.d(e,"c",function(){return m}),n.d(e,"d",function(){return b}),n.d(e,"e",function(){return l}),n.d(e,"f",function(){return o}),n.d(e,"g",function(){return a}),n.d(e,"h",function(){return h}),n.d(e,"i",function(){return f}),n.d(e,"j",function(){return g}),n.d(e,"k",function(){return u}),n.d(e,"l",function(){return c}),n.d(e,"m",function(){return p}),n.d(e,"n",function(){return s}),n.d(e,"o",function(){return i}),n.d(e,"p",function(){return d}),n.d(e,"q",function(){return w}),n.d(e,"r",function(){return v}),n.d(e,"s",function(){return _});var r=8,i=9,o=13,a=27,s=32,c=33,u=34,l=35,h=36,f=37,d=38,p=39,b=40,m=46,v=48,g=57,y=65,w=90;function _(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}var j,T="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},I=I||{},A=T||self;function R(){}function P(t){var e=typeof t;return"array"==(e="object"!=e?e:t?Array.isArray(t)?"array":e:"null")||"object"==e&&"number"==typeof t.length}function L(t){var e=typeof t;return"object"==e&&null!=t||"function"==e}var N="closure_uid_"+(1e9*Math.random()>>>0),D=0;function M(t,e,n){return t.call.apply(t.bind,arguments)}function F(t,e,n){if(!t)throw Error();if(2e?1:0}t:{var $=A.navigator;if($){var tt=$.userAgent;if(tt){W=tt;break t}}W=""}function et(t,e,n){for(var r in t)e.call(n,t[r],r,t)}function nt(t){var e={};for(var n in t)e[n]=t[n];return e}var rt="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function it(t,e){for(var n,r,i=1;iparseFloat(bt)){at=String(vt);break t}}at=bt}var gt={};function yt(t){return function(t,e){var n=gt;return Object.prototype.hasOwnProperty.call(n,t)?n[t]:n[t]=e()}(t,function(){for(var e=0,n=Q(String(at)).split("."),r=Q(String(t)).split("."),i=Math.max(n.length,r.length),o=0;0==e&&o=t.keyCode)&&(t.keyCode=-1)}catch(e){}};var Ct="closure_listenable_"+(1e6*Math.random()|0),jt=0;function Tt(t,e,n,r,i){this.listener=t,this.proxy=null,this.src=e,this.type=n,this.capture=!!r,this.ca=i,this.key=++jt,this.Y=this.Z=!1}function It(t){t.Y=!0,t.listener=null,t.proxy=null,t.src=null,t.ca=null}function At(t){this.src=t,this.a={},this.b=0}function Rt(t,e){var n=e.type;if(n in t.a){var r,i=t.a[n],o=z(i,e);(r=0<=o)&&Array.prototype.splice.call(i,o,1),r&&(It(e),0==t.a[n].length&&(delete t.a[n],t.b--))}}function Pt(t,e,n,r){for(var i=0;i>>0);function Yt(t){return"function"==typeof t?t:(t[Ht]||(t[Ht]=function(e){return t.handleEvent(e)}),t[Ht])}function Gt(){X.call(this),this.c=new At(this),this.J=this,this.C=null}function Kt(t,e){var n,r=t.C;if(r)for(n=[];r;r=r.C)n.push(r);if(t=t.J,r=e.type||e,"string"==typeof e)e=new Ot(e,t);else if(e instanceof Ot)e.target=e.target||t;else{var i=e;it(e=new Ot(r,t),i)}if(i=!0,n)for(var o=n.length-1;0<=o;o--){var a=e.a=n[o];i=Wt(a,r,!0,e)&&i}if(i=Wt(a=e.a=t,r,!0,e)&&i,i=Wt(a,r,!1,e)&&i,n)for(o=0;oe.b&&(e.b++,t.next=e.a,e.a=t)}ie=!1}function se(t,e){Gt.call(this),this.b=t||1,this.a=e||A,this.f=V(this.Za,this),this.g=B()}function ce(t){t.aa=!1,t.M&&(t.a.clearTimeout(t.M),t.M=null)}function ue(t,e,n){if("function"==typeof t)n&&(t=V(t,n));else{if(!t||"function"!=typeof t.handleEvent)throw Error("Invalid listener argument");t=V(t.handleEvent,t)}return 2147483647r.length)){var i=r[1];if(Array.isArray(i)&&!(1>i.length)){var o=i[0];if("noop"!=o&&"stop"!=o&&"close"!=o)for(var a=1;ae.length?Ve:(e=e.substr(r,n),t.D=r+n,e))}function ze(t){t.T=B()+t.P,He(t,t.P)}function He(t,e){if(null!=t.o)throw Error("WatchDog timer not null");t.o=Ee(V(t.Va,t),e)}function Ye(t){t.o&&(A.clearTimeout(t.o),t.o=null)}function Ge(t){0==t.g.v||t.A||hr(t.g,t)}function Ke(t){Ye(t);var e=t.F;e&&"function"==typeof e.ja&&e.ja(),t.F=null,ce(t.R),be(t.J),t.a&&(e=t.a,t.a=null,e.abort(),e.ja())}function We(t,e){try{var n=t.g;if(0!=n.v&&(n.a==t||Tn(n.b,t)))if(n.I=t.N,!t.C&&Tn(n.b,t)&&3==n.v){try{var r=n.ka.a.parse(e)}catch($f){r=null}if(Array.isArray(r)&&3==r.length){var i=r;if(0==i[0]){t:if(!n.j){if(n.a){if(!(n.a.u+3e3i[2]&&n.H&&0==n.o&&!n.m&&(n.m=Ee(V(n.Sa,n),6e3));if(1>=jn(n.b)&&n.ea){try{n.ea()}catch($f){}n.ea=void 0}}else dr(n,11)}else if((t.C||n.a==t)&&lr(n),!K(e))for(e=r=n.ka.a.parse(e),r=0;re||3==e&&!ht&&!this.a.$())){this.A||4!=e||7==n||ke(8==n||0>=r?3:2),Ye(this);var i=this.a.W();this.N=i;var o=this.a.$();if(this.b=200==i,function(t,e,n,r,i,o,a){t.info(function(){return"XMLHTTP RESP ("+r+") [ attempt "+i+"]: "+e+"\n"+n+"\n"+o+" "+a})}(this.c,this.m,this.l,this.f,this.S,e,i),this.b){if(this.U&&!this.C){e:{if(this.a){var a,s=this.a;if((a=s.a?s.a.getResponseHeader("X-HTTP-Initial-Response"):null)&&!K(a)){var c=a;break e}}c=null}if(!c){this.b=!1,this.h=3,Oe(12),Ke(this),Ge(this);break t}ve(this.c,this.f,c,"Initial handshake response via X-HTTP-Initial-Response"),this.C=!0,We(this,c)}this.I?(qe(this,e,o),ht&&this.b&&3==e&&(pe(this.J,this.R,"tick",this.Wa),this.R.start())):(ve(this.c,this.f,o,null),We(this,o)),4==e&&Ke(this),this.b&&!this.A&&(4==e?hr(this.g,this):(this.b=!1,ze(this)))}else 400==i&&0e)throw Error("Bad port number "+e);t.h=e}else t.h=null}function sn(t,e,n){e instanceof gn?(t.b=e,function(t,e){e&&!t.f&&(yn(t),t.c=null,t.a.forEach(function(t,e){var n=e.toLowerCase();e!=n&&(wn(this,e),kn(this,n,t))},t)),t.f=e}(t.b,t.a)):(n||(e=hn(e,mn)),t.b=new gn(e,t.a))}function cn(t,e,n){t.b.set(e,n)}function un(t){return cn(t,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^B()).toString(36)),t}function ln(t,e){return t?e?decodeURI(t.replace(/%25/g,"%2525")):decodeURIComponent(t):""}function hn(t,e,n){return"string"==typeof t?(t=encodeURI(t).replace(e,fn),n&&(t=t.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t):null}function fn(t){return"%"+((t=t.charCodeAt(0))>>4&15).toString(16)+(15&t).toString(16)}en.prototype.toString=function(){var t=[],e=this.f;e&&t.push(hn(e,dn,!0),":");var n=this.c;return(n||"file"==e)&&(t.push("//"),(e=this.j)&&t.push(hn(e,dn,!0),"@"),t.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.h)&&t.push(":",String(n))),(n=this.g)&&(this.c&&"/"!=n.charAt(0)&&t.push("/"),t.push(hn(n,"/"==n.charAt(0)?bn:pn,!0))),(n=this.b.toString())&&t.push("?",n),(n=this.i)&&t.push("#",hn(n,vn)),t.join("")};var dn=/[#\/\?@]/g,pn=/[#\?:]/g,bn=/[#\?]/g,mn=/[#\?@]/g,vn=/#/g;function gn(t,e){this.b=this.a=null,this.c=t||null,this.f=!!e}function yn(t){t.a||(t.a=new Ze,t.b=0,t.c&&function(t,e){if(t){t=t.split("&");for(var n=0;n2*t.c&&Je(t)))}function _n(t,e){return yn(t),e=xn(t,e),$e(t.a.b,e)}function kn(t,e,n){wn(t,e),0=t.f}function jn(t){return t.b?1:t.a?t.a.size:0}function Tn(t,e){return t.b?t.b==e:!!t.a&&t.a.has(e)}function In(t,e){t.a?t.a.add(e):t.b=e}function An(t,e){t.b&&t.b==e?t.b=null:t.a&&t.a.has(e)&&t.a.delete(e)}function Rn(t){var e,n;if(null!=t.b)return t.c.concat(t.b.s);if(null!=t.a&&0!==t.a.size){var r=t.c;try{for(var i=C(t.a.values()),o=i.next();!o.done;o=i.next())r=r.concat(o.value.s)}catch(a){e={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return r}return G(t.c)}function Pn(){}function Ln(){this.a=new Pn}function Nn(t,e,n){var r=n||"";try{Qe(t,function(t,n){var i=t;L(t)&&(i=Qt(t)),e.push(r+n+"="+encodeURIComponent(i))})}catch(Md){throw e.push(r+"type="+encodeURIComponent("_badmap")),Md}}function Dn(t,e,n,r,i){try{e.onload=null,e.onerror=null,e.onabort=null,e.ontimeout=null,i(r)}catch(o){}}Sn.prototype.cancel=function(){var t,e;if(this.c=Rn(this),this.b)this.b.cancel(),this.b=null;else if(this.a&&0!==this.a.size){try{for(var n=C(this.a.values()),r=n.next();!r.done;r=n.next())r.value.cancel()}catch(i){t={error:i}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}this.a.clear()}},Pn.prototype.stringify=function(t){return A.JSON.stringify(t,void 0)},Pn.prototype.parse=function(t){return A.JSON.parse(t,void 0)};var Mn=A.JSON.parse;function Fn(t){Gt.call(this),this.headers=new Ze,this.H=t||null,this.b=!1,this.s=this.a=null,this.B="",this.h=0,this.f="",this.g=this.A=this.l=this.u=!1,this.o=0,this.m=null,this.I=Vn,this.D=this.F=!1}q(Fn,Gt);var Vn="",Un=/^https?$/i,Bn=["POST","PUT"];function qn(t){return"content-type"==t.toLowerCase()}function Xn(t,e){t.b=!1,t.a&&(t.g=!0,t.a.abort(),t.g=!1),t.f=e,t.h=5,zn(t),Yn(t)}function zn(t){t.u||(t.u=!0,Kt(t,"complete"),Kt(t,"error"))}function Hn(t){if(t.b&&void 0!==I&&(!t.s[1]||4!=Kn(t)||2!=t.W()))if(t.l&&4==Kn(t))ue(t.za,0,t);else if(Kt(t,"readystatechange"),4==Kn(t)){t.b=!1;try{var e,n=t.W();t:switch(n){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var r=!0;break t;default:r=!1}if(!(e=r)){var i;if(i=0===n){var o=String(t.B).match(tn)[1]||null;if(!o&&A.self&&A.self.location){var a=A.self.location.protocol;o=a.substr(0,a.length-1)}i=!Un.test(o?o.toLowerCase():"")}e=i}if(e)Kt(t,"complete"),Kt(t,"success");else{t.h=6;try{var s=2(u-=o))o=Math.max(0,i[c].b-100),s=!1;else try{Nn(l,a,"req"+u+"_")}catch(Gr){r&&r(l)}}if(s){r=a.join("&");break t}}return t=t.g.splice(0,n),e.s=t,r}function ar(t){t.a||t.j||(t.T=1,re(t.Aa,t),t.o=0)}function sr(t){return!(t.a||t.j||3<=t.o||(t.T++,t.j=Ee(V(t.Aa,t),fr(t,t.o)),t.o++,0))}function cr(t){null!=t.s&&(A.clearTimeout(t.s),t.s=null)}function ur(t){t.a=new De(t,t.c,"rpc",t.T),null===t.i&&(t.a.B=t.l),t.a.O=0;var e=nn(t.la);cn(e,"RID","rpc"),cn(e,"SID",t.J),cn(e,"CI",t.H?"0":"1"),cn(e,"AID",t.P),ir(t,e),cn(e,"TYPE","xmlhttp"),t.i&&t.l&&Wn(e,t.i,t.l),t.D&&t.a.setTimeout(t.D);var n=t.a;t=t.ga,n.H=1,n.i=un(nn(e)),n.j=null,n.I=!0,Be(n,t)}function lr(t){null!=t.m&&(A.clearTimeout(t.m),t.m=null)}function hr(t,e){var n=null;if(t.a==e){lr(t),cr(t),t.a=null;var r=2}else{if(!Tn(t.b,e))return;n=e.s,An(t.b,e),r=1}if(t.I=e.N,0!=t.v)if(e.b)if(1==r){n=e.j?e.j.length:0,e=B()-e.u;var i=t.u;Kt(r=we(),new Se(r,n,e,i)),nr(t)}else ar(t);else if(3==(i=e.h)||0==i&&0=t.b.f-(t.h?1:0)||(t.h?(t.g=e.s.concat(t.g),0):1==t.v||2==t.v||t.u>=(t.La?0:t.Ma)||(t.h=Ee(V(t.Ba,t,e),fr(t,t.u)),t.u++,0)))}(t,e)||2==r&&sr(t)))switch(n&&0e?null:"string"==typeof t?t.charAt(e):t[e]}(i.L()),n=A.FormData&&t instanceof A.FormData,!(0<=z(Bn,e))||r||n||i.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),i.forEach(function(t,e){this.a.setRequestHeader(e,t)},this),this.I&&(this.a.responseType=this.I),"withCredentials"in this.a&&this.a.withCredentials!==this.F&&(this.a.withCredentials=this.F);try{Gn(this),0=this.N)){var t=2*this.N;this.c.info("BP detection timer enabled: "+t),this.s=Ee(V(this.Ta,this),t)}},j.Ta=function(){this.s&&(this.s=null,this.c.info("BP detection timeout reached."),this.c.info("Buffering proxy detected and switch to long-polling!"),this.H=!1,this.F=!0,Oe(10),$n(this),ur(this))},j.Sa=function(){null!=this.m&&(this.m=null,$n(this),sr(this),Oe(19))},j.Ya=function(t){t?(this.c.info("Successfully pinged google.com"),Oe(2)):(this.c.info("Failed to ping google.com"),Oe(1))},(j=vr.prototype).ta=function(){},j.sa=function(){},j.ra=function(){},j.qa=function(){},j.Ja=function(){},gr.prototype.a=function(t,e){return new yr(t,e)},q(yr,Gt),yr.prototype.g=function(){this.a.f=this.f,this.m&&(this.a.C=!0);var t=this.a,e=this.o,n=this.b||void 0;Oe(0),t.fa=e,t.V=n||{},t.H=t.S,t.B=br(t,null,t.fa),nr(t)},yr.prototype.close=function(){Jn(this.a)},yr.prototype.h=function(t){if("string"==typeof t){var e={};e.__data__=t,er(this.a,e)}else this.l?((e={}).__data__=Qt(t),er(this.a,e)):er(this.a,t)},yr.prototype.G=function(){this.a.f=null,delete this.f,Jn(this.a),delete this.a,yr.X.G.call(this)},q(wr,Pe),q(_r,Le),q(kr,vr),kr.prototype.ta=function(){Kt(this.a,"a")},kr.prototype.sa=function(t){Kt(this.a,new wr(t))},kr.prototype.ra=function(t){Kt(this.a,new _r(t))},kr.prototype.qa=function(){Kt(this.a,"b")},gr.prototype.createWebChannel=gr.prototype.a,yr.prototype.send=yr.prototype.h,yr.prototype.open=yr.prototype.g,yr.prototype.close=yr.prototype.close,Ce.NO_ERROR=0,Ce.TIMEOUT=8,Ce.HTTP_ERROR=6,je.COMPLETE="complete",Ie.EventType=Re,Re.OPEN="a",Re.CLOSE="b",Re.ERROR="c",Re.MESSAGE="d",Gt.prototype.listen=Gt.prototype.va,Fn.prototype.listenOnce=Fn.prototype.wa,Fn.prototype.getLastError=Fn.prototype.Qa,Fn.prototype.getLastErrorCode=Fn.prototype.ua,Fn.prototype.getStatus=Fn.prototype.W,Fn.prototype.getResponseJson=Fn.prototype.Pa,Fn.prototype.getResponseText=Fn.prototype.$,Fn.prototype.send=Fn.prototype.ba;var xr=Ce,Or=je,Sr=ge,Er=Ie,Cr=Fn,jr=n("mrSG"),Tr=function(){function t(t,e){var n=this;this.previousValue=t,e&&(e.sequenceNumberHandler=function(t){return n.t(t)},this.i=function(t){return e.writeSequenceNumber(t)})}return t.prototype.t=function(t){return this.previousValue=Math.max(t,this.previousValue),this.previousValue},t.prototype.next=function(){var t=++this.previousValue;return this.i&&this.i(t),t},t}();Tr.o=-1;var Ir={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"},Ar=function(t){function e(e,n){var r=this;return(r=t.call(this,n)||this).code=e,r.message=n,r.name="FirebaseError",r.toString=function(){return r.name+": [code="+r.code+"]: "+r.message},r}return Object(jr.d)(e,t),e}(Error),Rr=new S.b("@firebase/firestore");function Pr(){return Rr.logLevel}function Lr(t){for(var e=[],n=1;ne?1:0}function zr(t,e,n){return t.length===e.length&&t.every(function(t,r){return n(t,e[r])})}function Hr(t){return t+"\0"}var Yr=function(){function t(t,e){if(this.seconds=t,this.nanoseconds=e,e<0)throw new Ar(Ir.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+e);if(e>=1e9)throw new Ar(Ir.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+e);if(t<-62135596800)throw new Ar(Ir.INVALID_ARGUMENT,"Timestamp seconds out of range: "+t);if(t>=253402300800)throw new Ar(Ir.INVALID_ARGUMENT,"Timestamp seconds out of range: "+t)}return t.now=function(){return t.fromMillis(Date.now())},t.fromDate=function(e){return t.fromMillis(e.getTime())},t.fromMillis=function(e){var n=Math.floor(e/1e3);return new t(n,Math.floor(1e6*(e-1e3*n)))},t.prototype.toDate=function(){return new Date(this.toMillis())},t.prototype.toMillis=function(){return 1e3*this.seconds+this.nanoseconds/1e6},t.prototype._compareTo=function(t){return this.seconds===t.seconds?Xr(this.nanoseconds,t.nanoseconds):Xr(this.seconds,t.seconds)},t.prototype.isEqual=function(t){return t.seconds===this.seconds&&t.nanoseconds===this.nanoseconds},t.prototype.toString=function(){return"Timestamp(seconds="+this.seconds+", nanoseconds="+this.nanoseconds+")"},t.prototype.toJSON=function(){return{seconds:this.seconds,nanoseconds:this.nanoseconds}},t.prototype.valueOf=function(){return String(this.seconds- -62135596800).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")},t}(),Gr=function(){function t(t){this.timestamp=t}return t.fromTimestamp=function(e){return new t(e)},t.min=function(){return new t(new Yr(0,0))},t.prototype.compareTo=function(t){return this.timestamp._compareTo(t.timestamp)},t.prototype.isEqual=function(t){return this.timestamp.isEqual(t.timestamp)},t.prototype.toMicroseconds=function(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3},t.prototype.toString=function(){return"SnapshotVersion("+this.timestamp.toString()+")"},t.prototype.toTimestamp=function(){return this.timestamp},t}();function Kr(t){var e=0;for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e++;return e}function Wr(t,e){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e(n,t[n])}function Qr(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}var Zr=function(){function t(t,e,n){void 0===e?e=0:e>t.length&&Fr(),void 0===n?n=t.length-e:n>t.length-e&&Fr(),this.segments=t,this.offset=e,this.len=n}return Object.defineProperty(t.prototype,"length",{get:function(){return this.len},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(e){return 0===t.comparator(this,e)},t.prototype.child=function(e){var n=this.segments.slice(this.offset,this.limit());return e instanceof t?e.forEach(function(t){n.push(t)}):n.push(e),this.construct(n)},t.prototype.limit=function(){return this.offset+this.length},t.prototype.popFirst=function(t){return this.construct(this.segments,this.offset+(t=void 0===t?1:t),this.length-t)},t.prototype.popLast=function(){return this.construct(this.segments,this.offset,this.length-1)},t.prototype.firstSegment=function(){return this.segments[this.offset]},t.prototype.lastSegment=function(){return this.get(this.length-1)},t.prototype.get=function(t){return this.segments[this.offset+t]},t.prototype.isEmpty=function(){return 0===this.length},t.prototype.isPrefixOf=function(t){if(t.lengtho)return 1}return t.lengthe.length?1:0},t}(),Jr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(jr.d)(e,t),e.prototype.construct=function(t,n,r){return new e(t,n,r)},e.prototype.canonicalString=function(){return this.toArray().join("/")},e.prototype.toString=function(){return this.canonicalString()},e.fromString=function(){for(var t=[],n=0;n=0)throw new Ar(Ir.INVALID_ARGUMENT,"Invalid segment ("+a+"). Paths must not contain // in them.");r.push.apply(r,a.split("/").filter(function(t){return t.length>0}))}return new e(r)},e.emptyPath=function(){return new e([])},e}(Zr),$r=/^[_a-zA-Z][_a-zA-Z0-9]*$/,ti=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(jr.d)(e,t),e.prototype.construct=function(t,n,r){return new e(t,n,r)},e.isValidIdentifier=function(t){return $r.test(t)},e.prototype.canonicalString=function(){return this.toArray().map(function(t){return t=t.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),e.isValidIdentifier(t)||(t="`"+t+"`"),t}).join(".")},e.prototype.toString=function(){return this.canonicalString()},e.prototype.isKeyField=function(){return 1===this.length&&"__name__"===this.get(0)},e.keyField=function(){return new e(["__name__"])},e.fromServerFormat=function(t){for(var n=[],r="",i=0,o=function(){if(0===r.length)throw new Ar(Ir.INVALID_ARGUMENT,"Invalid field path ("+t+"). Paths must not be empty, begin with '.', end with '.', or contain '..'");n.push(r),r=""},a=!1;i=Number.MIN_SAFE_INTEGER}var di=function(){function t(t){this.path=t}return t.fromPath=function(e){return new t(Jr.fromString(e))},t.fromName=function(e){return new t(Jr.fromString(e).popFirst(5))},t.prototype.hasCollectionId=function(t){return this.path.length>=2&&this.path.get(this.path.length-2)===t},t.prototype.isEqual=function(t){return null!==t&&0===Jr.comparator(this.path,t.path)},t.prototype.toString=function(){return this.path.toString()},t.comparator=function(t,e){return Jr.comparator(t.path,e.path)},t.isDocumentKey=function(t){return t.length%2==0},t.fromSegments=function(e){return new t(new Jr(e.slice()))},t}();function pi(t){return"nullValue"in t?0:"booleanValue"in t?1:"integerValue"in t||"doubleValue"in t?2:"timestampValue"in t?3:"stringValue"in t?5:"bytesValue"in t?6:"referenceValue"in t?7:"geoPointValue"in t?8:"arrayValue"in t?9:"mapValue"in t?si(t)?4:10:Fr()}function bi(t,e){var n=pi(t);if(n!==pi(e))return!1;switch(n){case 0:return!0;case 1:return t.booleanValue===e.booleanValue;case 4:return ui(t).isEqual(ui(e));case 3:return function(t,e){if("string"==typeof t.timestampValue&&"string"==typeof e.timestampValue&&t.timestampValue.length===e.timestampValue.length)return t.timestampValue===e.timestampValue;var n=ii(t.timestampValue),r=ii(e.timestampValue);return n.seconds===r.seconds&&n.nanos===r.nanos}(t,e);case 5:return t.stringValue===e.stringValue;case 6:return function(t,e){return ai(t.bytesValue).isEqual(ai(e.bytesValue))}(t,e);case 7:return t.referenceValue===e.referenceValue;case 8:return function(t,e){return oi(t.geoPointValue.latitude)===oi(e.geoPointValue.latitude)&&oi(t.geoPointValue.longitude)===oi(e.geoPointValue.longitude)}(t,e);case 2:return function(t,e){if("integerValue"in t&&"integerValue"in e)return oi(t.integerValue)===oi(e.integerValue);if("doubleValue"in t&&"doubleValue"in e){var n=oi(t.doubleValue),r=oi(e.doubleValue);return n===r?hi(n)===hi(r):isNaN(n)&&isNaN(r)}return!1}(t,e);case 9:return zr(t.arrayValue.values||[],e.arrayValue.values||[],bi);case 10:return function(t,e){var n=t.mapValue.fields||{},r=e.mapValue.fields||{};if(Kr(n)!==Kr(r))return!1;for(var i in n)if(n.hasOwnProperty(i)&&(void 0===r[i]||!bi(n[i],r[i])))return!1;return!0}(t,e);default:return Fr()}}function mi(t,e){return void 0!==(t.values||[]).find(function(t){return bi(t,e)})}function vi(t,e){var n=pi(t),r=pi(e);if(n!==r)return Xr(n,r);switch(n){case 0:return 0;case 1:return Xr(t.booleanValue,e.booleanValue);case 2:return function(t,e){var n=oi(t.integerValue||t.doubleValue),r=oi(e.integerValue||e.doubleValue);return nr?1:n===r?0:isNaN(n)?isNaN(r)?0:-1:1}(t,e);case 3:return gi(t.timestampValue,e.timestampValue);case 4:return gi(ui(t),ui(e));case 5:return Xr(t.stringValue,e.stringValue);case 6:return function(t,e){var n=ai(t),r=ai(e);return n.compareTo(r)}(t.bytesValue,e.bytesValue);case 7:return function(t,e){for(var n=t.split("/"),r=e.split("/"),i=0;i":return t>0;case">=":return t>=0;default:return Fr()}},e.prototype.g=function(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0},e}(function(){}),Mi=function(t){function e(e,n,r){var i=this;return(i=t.call(this,e,n,r)||this).key=di.fromName(r.referenceValue),i}return Object(jr.d)(e,t),e.prototype.matches=function(t){var e=di.comparator(t.key,this.key);return this.m(e)},e}(Di),Fi=function(t){function e(e,n){var r=this;return(r=t.call(this,e,"in",n)||this).keys=Ui(0,n),r}return Object(jr.d)(e,t),e.prototype.matches=function(t){return this.keys.some(function(e){return e.isEqual(t.key)})},e}(Di),Vi=function(t){function e(e,n){var r=this;return(r=t.call(this,e,"not-in",n)||this).keys=Ui(0,n),r}return Object(jr.d)(e,t),e.prototype.matches=function(t){return!this.keys.some(function(e){return e.isEqual(t.key)})},e}(Di);function Ui(t,e){var n;return((null===(n=e.arrayValue)||void 0===n?void 0:n.values)||[]).map(function(t){return di.fromName(t.referenceValue)})}var Bi=function(t){function e(e,n){return t.call(this,e,"array-contains",n)||this}return Object(jr.d)(e,t),e.prototype.matches=function(t){var e=t.data.field(this.field);return xi(e)&&mi(e.arrayValue,this.value)},e}(Di),qi=function(t){function e(e,n){return t.call(this,e,"in",n)||this}return Object(jr.d)(e,t),e.prototype.matches=function(t){var e=t.data.field(this.field);return null!==e&&mi(this.value.arrayValue,e)},e}(Di),Xi=function(t){function e(e,n){return t.call(this,e,"not-in",n)||this}return Object(jr.d)(e,t),e.prototype.matches=function(t){if(mi(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;var e=t.data.field(this.field);return null!==e&&!mi(this.value.arrayValue,e)},e}(Di),zi=function(t){function e(e,n){return t.call(this,e,"array-contains-any",n)||this}return Object(jr.d)(e,t),e.prototype.matches=function(t){var e=this,n=t.data.field(this.field);return!(!xi(n)||!n.arrayValue.values)&&n.arrayValue.values.some(function(t){return mi(e.value.arrayValue,t)})},e}(Di),Hi=function(t,e){this.position=t,this.before=e};function Yi(t){return(t.before?"b":"a")+":"+t.position.map(function(t){return yi(t)}).join(",")}var Gi=function(t,e){void 0===e&&(e="asc"),this.field=t,this.dir=e};function Ki(t,e){return t.dir===e.dir&&t.field.isEqual(e.field)}function Wi(t,e,n){for(var r=0,i=0;i0?t.explicitOrderBy[0].field:null}function ro(t){for(var e=0,n=t.filters;e0?e.explicitOrderBy[e.explicitOrderBy.length-1].dir:"asc";e.p.push(new Gi(ti.keyField(),c))}}}return e.p}function ao(t){var e=Ur(t);if(!e.T)if("F"===e.limitType)e.T=Ri(e.path,e.collectionGroup,oo(e),e.filters,e.limit,e.startAt,e.endAt);else{for(var n=[],r=0,i=oo(e);r0&&(e+=", orderBy: ["+t.orderBy.map(function(t){return function(t){return t.field.canonicalString()+" ("+t.dir+")"}(t)}).join(", ")+"]"),t.startAt&&(e+=", startAt: "+Yi(t.startAt)),t.endAt&&(e+=", endAt: "+Yi(t.endAt)),"Target("+e+")"}(ao(t))+"; limitType="+t.limitType+")"}function ho(t,e){return e.isFoundDocument()&&function(t,e){var n=e.key.path;return null!==t.collectionGroup?e.key.hasCollectionId(t.collectionGroup)&&t.path.isPrefixOf(n):di.isDocumentKey(t.path)?t.path.isEqual(n):t.path.isImmediateParentOf(n)}(t,e)&&function(t,e){for(var n=0,r=t.explicitOrderBy;n0&&(e=e.right)}return null},t.prototype.indexOf=function(t){for(var e=0,n=this.root;!n.isEmpty();){var r=this.comparator(t,n.key);if(0===r)return e+n.left.size;r<0?n=n.left:(e+=n.left.size+1,n=n.right)}return-1},t.prototype.isEmpty=function(){return this.root.isEmpty()},Object.defineProperty(t.prototype,"size",{get:function(){return this.root.size},enumerable:!1,configurable:!0}),t.prototype.minKey=function(){return this.root.minKey()},t.prototype.maxKey=function(){return this.root.maxKey()},t.prototype.inorderTraversal=function(t){return this.root.inorderTraversal(t)},t.prototype.forEach=function(t){this.inorderTraversal(function(e,n){return t(e,n),!1})},t.prototype.toString=function(){var t=[];return this.inorderTraversal(function(e,n){return t.push(e+":"+n),!1}),"{"+t.join(", ")+"}"},t.prototype.reverseTraversal=function(t){return this.root.reverseTraversal(t)},t.prototype.getIterator=function(){return new $o(this.root,null,this.comparator,!1)},t.prototype.getIteratorFrom=function(t){return new $o(this.root,t,this.comparator,!1)},t.prototype.getReverseIterator=function(){return new $o(this.root,null,this.comparator,!0)},t.prototype.getReverseIteratorFrom=function(t){return new $o(this.root,t,this.comparator,!0)},t}(),$o=function(){function t(t,e,n,r){this.isReverse=r,this.nodeStack=[];for(var i=1;!t.isEmpty();)if(i=e?n(t.key,e):1,r&&(i*=-1),i<0)t=this.isReverse?t.left:t.right;else{if(0===i){this.nodeStack.push(t);break}this.nodeStack.push(t),t=this.isReverse?t.right:t.left}}return t.prototype.getNext=function(){var t=this.nodeStack.pop(),e={key:t.key,value:t.value};if(this.isReverse)for(t=t.left;!t.isEmpty();)this.nodeStack.push(t),t=t.right;else for(t=t.right;!t.isEmpty();)this.nodeStack.push(t),t=t.left;return e},t.prototype.hasNext=function(){return this.nodeStack.length>0},t.prototype.peek=function(){if(0===this.nodeStack.length)return null;var t=this.nodeStack[this.nodeStack.length-1];return{key:t.key,value:t.value}},t}(),ta=function(){function t(e,n,r,i,o){this.key=e,this.value=n,this.color=null!=r?r:t.RED,this.left=null!=i?i:t.EMPTY,this.right=null!=o?o:t.EMPTY,this.size=this.left.size+1+this.right.size}return t.prototype.copy=function(e,n,r,i,o){return new t(null!=e?e:this.key,null!=n?n:this.value,null!=r?r:this.color,null!=i?i:this.left,null!=o?o:this.right)},t.prototype.isEmpty=function(){return!1},t.prototype.inorderTraversal=function(t){return this.left.inorderTraversal(t)||t(this.key,this.value)||this.right.inorderTraversal(t)},t.prototype.reverseTraversal=function(t){return this.right.reverseTraversal(t)||t(this.key,this.value)||this.left.reverseTraversal(t)},t.prototype.min=function(){return this.left.isEmpty()?this:this.left.min()},t.prototype.minKey=function(){return this.min().key},t.prototype.maxKey=function(){return this.right.isEmpty()?this.key:this.right.maxKey()},t.prototype.insert=function(t,e,n){var r=this,i=n(t,r.key);return(r=i<0?r.copy(null,null,null,r.left.insert(t,e,n),null):0===i?r.copy(null,e,null,null,null):r.copy(null,null,null,null,r.right.insert(t,e,n))).fixUp()},t.prototype.removeMin=function(){if(this.left.isEmpty())return t.EMPTY;var e=this;return e.left.isRed()||e.left.left.isRed()||(e=e.moveRedLeft()),(e=e.copy(null,null,null,e.left.removeMin(),null)).fixUp()},t.prototype.remove=function(e,n){var r,i=this;if(n(e,i.key)<0)i.left.isEmpty()||i.left.isRed()||i.left.left.isRed()||(i=i.moveRedLeft()),i=i.copy(null,null,null,i.left.remove(e,n),null);else{if(i.left.isRed()&&(i=i.rotateRight()),i.right.isEmpty()||i.right.isRed()||i.right.left.isRed()||(i=i.moveRedRight()),0===n(e,i.key)){if(i.right.isEmpty())return t.EMPTY;r=i.right.min(),i=i.copy(r.key,r.value,null,null,i.right.removeMin())}i=i.copy(null,null,null,null,i.right.remove(e,n))}return i.fixUp()},t.prototype.isRed=function(){return this.color},t.prototype.fixUp=function(){var t=this;return t.right.isRed()&&!t.left.isRed()&&(t=t.rotateLeft()),t.left.isRed()&&t.left.left.isRed()&&(t=t.rotateRight()),t.left.isRed()&&t.right.isRed()&&(t=t.colorFlip()),t},t.prototype.moveRedLeft=function(){var t=this.colorFlip();return t.right.left.isRed()&&(t=(t=(t=t.copy(null,null,null,null,t.right.rotateRight())).rotateLeft()).colorFlip()),t},t.prototype.moveRedRight=function(){var t=this.colorFlip();return t.left.left.isRed()&&(t=(t=t.rotateRight()).colorFlip()),t},t.prototype.rotateLeft=function(){var e=this.copy(null,null,t.RED,null,this.right.left);return this.right.copy(null,null,this.color,e,null)},t.prototype.rotateRight=function(){var e=this.copy(null,null,t.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,e)},t.prototype.colorFlip=function(){var t=this.left.copy(null,null,!this.left.color,null,null),e=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,t,e)},t.prototype.checkMaxDepth=function(){var t=this.check();return Math.pow(2,t)<=this.size+1},t.prototype.check=function(){if(this.isRed()&&this.left.isRed())throw Fr();if(this.right.isRed())throw Fr();var t=this.left.check();if(t!==this.right.check())throw Fr();return t+(this.isRed()?0:1)},t}();ta.EMPTY=null,ta.RED=!0,ta.BLACK=!1,ta.EMPTY=new(function(){function t(){this.size=0}return Object.defineProperty(t.prototype,"key",{get:function(){throw Fr()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){throw Fr()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){throw Fr()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"left",{get:function(){throw Fr()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){throw Fr()},enumerable:!1,configurable:!0}),t.prototype.copy=function(t,e,n,r,i){return this},t.prototype.insert=function(t,e,n){return new ta(t,e)},t.prototype.remove=function(t,e){return this},t.prototype.isEmpty=function(){return!0},t.prototype.inorderTraversal=function(t){return!1},t.prototype.reverseTraversal=function(t){return!1},t.prototype.minKey=function(){return null},t.prototype.maxKey=function(){return null},t.prototype.isRed=function(){return!1},t.prototype.checkMaxDepth=function(){return!0},t.prototype.check=function(){return 0},t}());var ea=function(){function t(t){this.comparator=t,this.data=new Jo(this.comparator)}return t.prototype.has=function(t){return null!==this.data.get(t)},t.prototype.first=function(){return this.data.minKey()},t.prototype.last=function(){return this.data.maxKey()},Object.defineProperty(t.prototype,"size",{get:function(){return this.data.size},enumerable:!1,configurable:!0}),t.prototype.indexOf=function(t){return this.data.indexOf(t)},t.prototype.forEach=function(t){this.data.inorderTraversal(function(e,n){return t(e),!1})},t.prototype.forEachInRange=function(t,e){for(var n=this.data.getIteratorFrom(t[0]);n.hasNext();){var r=n.getNext();if(this.comparator(r.key,t[1])>=0)return;e(r.key)}},t.prototype.forEachWhile=function(t,e){var n;for(n=void 0!==e?this.data.getIteratorFrom(e):this.data.getIterator();n.hasNext();)if(!t(n.getNext().key))return},t.prototype.firstAfterOrEqual=function(t){var e=this.data.getIteratorFrom(t);return e.hasNext()?e.getNext().key:null},t.prototype.getIterator=function(){return new na(this.data.getIterator())},t.prototype.getIteratorFrom=function(t){return new na(this.data.getIteratorFrom(t))},t.prototype.add=function(t){return this.copy(this.data.remove(t).insert(t,!0))},t.prototype.delete=function(t){return this.has(t)?this.copy(this.data.remove(t)):this},t.prototype.isEmpty=function(){return this.data.isEmpty()},t.prototype.unionWith=function(t){var e=this;return e.size0&&(this.F=!0,this.C=t)},t.prototype.M=function(){var t=la(),e=la(),n=la();return this.D.forEach(function(r,i){switch(i){case 0:t=t.add(r);break;case 2:e=e.add(r);break;case 1:n=n.add(r);break;default:Fr()}}),new pa(this.C,this.N,t,e,n)},t.prototype.L=function(){this.F=!1,this.D=_a()},t.prototype.B=function(t,e){this.F=!0,this.D=this.D.insert(t,e)},t.prototype.q=function(t){this.F=!0,this.D=this.D.remove(t)},t.prototype.U=function(){this.S+=1},t.prototype.K=function(){this.S-=1},t.prototype.j=function(){this.F=!0,this.N=!0},t}(),ya=function(){function t(t){this.W=t,this.G=new Map,this.H=ia(),this.J=wa(),this.Y=new ea(Xr)}return t.prototype.X=function(t){for(var e=0,n=t.v;e0?t.targetIds.forEach(e):this.G.forEach(function(t,r){n.st(r)&&e(r)})},t.prototype.rt=function(t){var e=t.targetId,n=t.V.count,r=this.ot(e);if(r){var i=r.target;if(Ni(i))if(0===n){var o=new di(i.path);this.tt(e,o,Ii.newNoDocument(o,Gr.min()))}else Vr(1===n);else this.ct(e)!==n&&(this.it(e),this.Y=this.Y.add(e))}},t.prototype.ut=function(t){var e=this,n=new Map;this.G.forEach(function(r,i){var o=e.ot(i);if(o){if(r.current&&Ni(o.target)){var a=new di(o.target.path);null!==e.H.get(a)||e.at(i,a)||e.tt(i,a,Ii.newNoDocument(a,t))}r.$&&(n.set(i,r.M()),r.L())}});var r=la();this.J.forEach(function(t,n){var i=!0;n.forEachWhile(function(t){var n=e.ot(t);return!n||2===n.purpose||(i=!1,!1)}),i&&(r=r.add(t))});var i=new da(t,n,this.Y,this.H,r);return this.H=ia(),this.J=wa(),this.Y=new ea(Xr),i},t.prototype.Z=function(t,e){if(this.st(t)){var n=this.at(t,e.key)?2:0;this.nt(t).B(e.key,n),this.H=this.H.insert(e.key,e),this.J=this.J.insert(e.key,this.ht(e.key).add(t))}},t.prototype.tt=function(t,e,n){if(this.st(t)){var r=this.nt(t);this.at(t,e)?r.B(e,1):r.q(e),this.J=this.J.insert(e,this.ht(e).delete(t)),n&&(this.H=this.H.insert(e,n))}},t.prototype.removeTarget=function(t){this.G.delete(t)},t.prototype.ct=function(t){var e=this.nt(t).M();return this.W.getRemoteKeysForTarget(t).size+e.addedDocuments.size-e.removedDocuments.size},t.prototype.U=function(t){this.nt(t).U()},t.prototype.nt=function(t){var e=this.G.get(t);return e||(e=new ga,this.G.set(t,e)),e},t.prototype.ht=function(t){var e=this.J.get(t);return e||(e=new ea(Xr),this.J=this.J.insert(t,e)),e},t.prototype.st=function(t){var e=null!==this.ot(t);return e||Lr("WatchChangeAggregator","Detected inactive target",t),e},t.prototype.ot=function(t){var e=this.G.get(t);return e&&e.k?null:this.W.lt(t)},t.prototype.it=function(t){var e=this;this.G.set(t,new ga),this.W.getRemoteKeysForTarget(t).forEach(function(n){e.tt(t,n,null)})},t.prototype.at=function(t,e){return this.W.getRemoteKeysForTarget(t).has(e)},t}();function wa(){return new Jo(di.comparator)}function _a(){return new Jo(di.comparator)}var ka={asc:"ASCENDING",desc:"DESCENDING"},xa={"<":"LESS_THAN","<=":"LESS_THAN_OR_EQUAL",">":"GREATER_THAN",">=":"GREATER_THAN_OR_EQUAL","==":"EQUAL","!=":"NOT_EQUAL","array-contains":"ARRAY_CONTAINS",in:"IN","not-in":"NOT_IN","array-contains-any":"ARRAY_CONTAINS_ANY"},Oa=function(t,e){this.databaseId=t,this.I=e};function Sa(t,e){return t.I?new Date(1e3*e.seconds).toISOString().replace(/\.\d*/,"").replace("Z","")+"."+("000000000"+e.nanoseconds).slice(-9)+"Z":{seconds:""+e.seconds,nanos:e.nanoseconds}}function Ea(t,e){return t.I?e.toBase64():e.toUint8Array()}function Ca(t,e){return Sa(t,e.toTimestamp())}function ja(t){return Vr(!!t),Gr.fromTimestamp(function(t){var e=ii(t);return new Yr(e.seconds,e.nanos)}(t))}function Ta(t,e){return function(t){return new Jr(["projects",t.projectId,"databases",t.database])}(t).child("documents").child(e).canonicalString()}function Ia(t){var e=Jr.fromString(t);return Vr(ts(e)),e}function Aa(t,e){return Ta(t.databaseId,e.path)}function Ra(t,e){var n=Ia(e);if(n.get(1)!==t.databaseId.projectId)throw new Ar(Ir.INVALID_ARGUMENT,"Tried to deserialize key from different project: "+n.get(1)+" vs "+t.databaseId.projectId);if(n.get(3)!==t.databaseId.database)throw new Ar(Ir.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+n.get(3)+" vs "+t.databaseId.database);return new di(Da(n))}function Pa(t,e){return Ta(t.databaseId,e)}function La(t){var e=Ia(t);return 4===e.length?Jr.emptyPath():Da(e)}function Na(t){return new Jr(["projects",t.databaseId.projectId,"databases",t.databaseId.database]).canonicalString()}function Da(t){return Vr(t.length>4&&"documents"===t.get(4)),t.popFirst(5)}function Ma(t,e,n){return{name:Aa(t,e),fields:n.value.mapValue.fields}}function Fa(t,e,n){var r=Ra(t,e.name),i=ja(e.updateTime),o=new ji({mapValue:{fields:e.fields}}),a=Ii.newFoundDocument(r,i,o);return n&&a.setHasCommittedMutations(),n?a.setHasCommittedMutations():a}function Va(t,e){var n;if(e instanceof Uo)n={update:Ma(t,e.key,e.value)};else if(e instanceof Go)n={delete:Aa(t,e.key)};else if(e instanceof Bo)n={update:Ma(t,e.key,e.data),updateMask:$a(e.fieldMask)};else{if(!(e instanceof Ko))return Fr();n={verify:Aa(t,e.key)}}return e.fieldTransforms.length>0&&(n.updateTransforms=e.fieldTransforms.map(function(t){return function(t,e){var n=e.transform;if(n instanceof ko)return{fieldPath:e.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(n instanceof xo)return{fieldPath:e.field.canonicalString(),appendMissingElements:{values:n.elements}};if(n instanceof So)return{fieldPath:e.field.canonicalString(),removeAllFromArray:{values:n.elements}};if(n instanceof Co)return{fieldPath:e.field.canonicalString(),increment:n.A};throw Fr()}(0,t)})),e.precondition.isNone||(n.currentDocument=function(t,e){return void 0!==e.updateTime?{updateTime:Ca(t,e.updateTime)}:void 0!==e.exists?{exists:e.exists}:Fr()}(t,e.precondition)),n}function Ua(t,e){var n=e.currentDocument?function(t){return void 0!==t.updateTime?Ro.updateTime(ja(t.updateTime)):void 0!==t.exists?Ro.exists(t.exists):Ro.none()}(e.currentDocument):Ro.none(),r=e.updateTransforms?e.updateTransforms.map(function(e){return function(t,e){var n=null;"setToServerValue"in e?(Vr("REQUEST_TIME"===e.setToServerValue),n=new ko):"appendMissingElements"in e?n=new xo(e.appendMissingElements.values||[]):"removeAllFromArray"in e?n=new So(e.removeAllFromArray.values||[]):"increment"in e?n=new Co(t,e.increment):Fr();var r=ti.fromServerFormat(e.fieldPath);return new Io(r,n)}(t,e)}):[];if(e.update){var i=Ra(t,e.update.name),o=new ji({mapValue:{fields:e.update.fields}});if(e.updateMask){var a=function(t){return new ei((t.fieldPaths||[]).map(function(t){return ti.fromServerFormat(t)}))}(e.updateMask);return new Bo(i,o,a,n,r)}return new Uo(i,o,n,r)}if(e.delete){var s=Ra(t,e.delete);return new Go(s,n)}if(e.verify){var c=Ra(t,e.verify);return new Ko(c,n)}return Fr()}function Ba(t,e){return{documents:[Pa(t,e.path)]}}function qa(t,e){var n={structuredQuery:{}},r=e.path;null!==e.collectionGroup?(n.parent=Pa(t,r),n.structuredQuery.from=[{collectionId:e.collectionGroup,allDescendants:!0}]):(n.parent=Pa(t,r.popLast()),n.structuredQuery.from=[{collectionId:r.lastSegment()}]);var i=function(t){if(0!==t.length){var e=t.map(function(t){return function(t){if("=="===t.op){if(Si(t.value))return{unaryFilter:{field:Wa(t.field),op:"IS_NAN"}};if(Oi(t.value))return{unaryFilter:{field:Wa(t.field),op:"IS_NULL"}}}else if("!="===t.op){if(Si(t.value))return{unaryFilter:{field:Wa(t.field),op:"IS_NOT_NAN"}};if(Oi(t.value))return{unaryFilter:{field:Wa(t.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:Wa(t.field),op:Ka(t.op),value:t.value}}}(t)});return 1===e.length?e[0]:{compositeFilter:{op:"AND",filters:e}}}}(e.filters);i&&(n.structuredQuery.where=i);var o=function(t){if(0!==t.length)return t.map(function(t){return function(t){return{field:Wa(t.field),direction:Ga(t.dir)}}(t)})}(e.orderBy);o&&(n.structuredQuery.orderBy=o);var a=function(t,e){return t.I||li(e)?e:{value:e}}(t,e.limit);return null!==a&&(n.structuredQuery.limit=a),e.startAt&&(n.structuredQuery.startAt=Ha(e.startAt)),e.endAt&&(n.structuredQuery.endAt=Ha(e.endAt)),n}function Xa(t){var e=La(t.parent),n=t.structuredQuery,r=n.from?n.from.length:0,i=null;if(r>0){Vr(1===r);var o=n.from[0];o.allDescendants?i=o.collectionId:e=e.child(o.collectionId)}var a=[];n.where&&(a=za(n.where));var s=[];n.orderBy&&(s=n.orderBy.map(function(t){return function(t){return new Gi(Qa(t.field),function(t){switch(t){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}}(t.direction))}(t)}));var c=null;n.limit&&(c=function(t){var e;return li(e="object"==typeof t?t.value:t)?null:e}(n.limit));var u=null;n.startAt&&(u=Ya(n.startAt));var l=null;return n.endAt&&(l=Ya(n.endAt)),Ji(e,i,s,a,c,"F",u,l)}function za(t){return t?void 0!==t.unaryFilter?[Ja(t)]:void 0!==t.fieldFilter?[Za(t)]:void 0!==t.compositeFilter?t.compositeFilter.filters.map(function(t){return za(t)}).reduce(function(t,e){return t.concat(e)}):Fr():[]}function Ha(t){return{before:t.before,values:t.position}}function Ya(t){return new Hi(t.values||[],!!t.before)}function Ga(t){return ka[t]}function Ka(t){return xa[t]}function Wa(t){return{fieldPath:t.canonicalString()}}function Qa(t){return ti.fromServerFormat(t.fieldPath)}function Za(t){return Di.create(Qa(t.fieldFilter.field),function(t){switch(t){case"EQUAL":return"==";case"NOT_EQUAL":return"!=";case"GREATER_THAN":return">";case"GREATER_THAN_OR_EQUAL":return">=";case"LESS_THAN":return"<";case"LESS_THAN_OR_EQUAL":return"<=";case"ARRAY_CONTAINS":return"array-contains";case"IN":return"in";case"NOT_IN":return"not-in";case"ARRAY_CONTAINS_ANY":return"array-contains-any";case"OPERATOR_UNSPECIFIED":default:return Fr()}}(t.fieldFilter.op),t.fieldFilter.value)}function Ja(t){switch(t.unaryFilter.op){case"IS_NAN":var e=Qa(t.unaryFilter.field);return Di.create(e,"==",{doubleValue:NaN});case"IS_NULL":var n=Qa(t.unaryFilter.field);return Di.create(n,"==",{nullValue:"NULL_VALUE"});case"IS_NOT_NAN":var r=Qa(t.unaryFilter.field);return Di.create(r,"!=",{doubleValue:NaN});case"IS_NOT_NULL":var i=Qa(t.unaryFilter.field);return Di.create(i,"!=",{nullValue:"NULL_VALUE"});case"OPERATOR_UNSPECIFIED":default:return Fr()}}function $a(t){var e=[];return t.fields.forEach(function(t){return e.push(t.canonicalString())}),{fieldPaths:e}}function ts(t){return t.length>=4&&"projects"===t.get(0)&&"databases"===t.get(2)}function es(t){for(var e="",n=0;n0&&(e=rs(e)),e=ns(t.get(n),e);return rs(e)}function ns(t,e){for(var n=e,r=t.length,i=0;i=2),2===e)return Vr("\x01"===t.charAt(0)&&"\x01"===t.charAt(1)),Jr.emptyPath();for(var n=e-2,r=[],i="",o=0;on)&&Fr(),t.charAt(a+1)){case"\x01":var s=t.substring(o,a),c=void 0;0===i.length?c=s:(c=i+=s,i=""),r.push(c);break;case"\x10":i+=t.substring(o,a),i+="\0";break;case"\x11":i+=t.substring(o,a+1);break;default:Fr()}o=a+2}return new Jr(r)}var os=function(t,e){this.seconds=t,this.nanoseconds=e},as=function(t,e,n){this.ownerId=t,this.allowTabSynchronization=e,this.leaseTimestampMs=n};as.store="owner",as.key="owner";var ss=function(t,e,n){this.userId=t,this.lastAcknowledgedBatchId=e,this.lastStreamToken=n};ss.store="mutationQueues",ss.keyPath="userId";var cs=function(t,e,n,r,i){this.userId=t,this.batchId=e,this.localWriteTimeMs=n,this.baseMutations=r,this.mutations=i};cs.store="mutations",cs.keyPath="batchId",cs.userMutationsIndex="userMutationsIndex",cs.userMutationsKeyPath=["userId","batchId"];var us=function(){function t(){}return t.prefixForUser=function(t){return[t]},t.prefixForPath=function(t,e){return[t,es(e)]},t.key=function(t,e,n){return[t,es(e),n]},t}();us.store="documentMutations",us.PLACEHOLDER=new us;var ls=function(t,e){this.path=t,this.readTime=e},hs=function(t,e){this.path=t,this.version=e},fs=function(t,e,n,r,i,o){this.unknownDocument=t,this.noDocument=e,this.document=n,this.hasCommittedMutations=r,this.readTime=i,this.parentPath=o};fs.store="remoteDocuments",fs.readTimeIndex="readTimeIndex",fs.readTimeIndexPath="readTime",fs.collectionReadTimeIndex="collectionReadTimeIndex",fs.collectionReadTimeIndexPath=["parentPath","readTime"];var ds=function(t){this.byteSize=t};ds.store="remoteDocumentGlobal",ds.key="remoteDocumentGlobalKey";var ps=function(t,e,n,r,i,o,a){this.targetId=t,this.canonicalId=e,this.readTime=n,this.resumeToken=r,this.lastListenSequenceNumber=i,this.lastLimboFreeSnapshotVersion=o,this.query=a};ps.store="targets",ps.keyPath="targetId",ps.queryTargetsIndexName="queryTargetsIndex",ps.queryTargetsKeyPath=["canonicalId","targetId"];var bs=function(t,e,n){this.targetId=t,this.path=e,this.sequenceNumber=n};bs.store="targetDocuments",bs.keyPath=["targetId","path"],bs.documentTargetsIndex="documentTargetsIndex",bs.documentTargetsKeyPath=["path","targetId"];var ms=function(t,e,n,r){this.highestTargetId=t,this.highestListenSequenceNumber=e,this.lastRemoteSnapshotVersion=n,this.targetCount=r};ms.key="targetGlobalKey",ms.store="targetGlobal";var vs=function(t,e){this.collectionId=t,this.parent=e};vs.store="collectionParents",vs.keyPath=["collectionId","parent"];var gs=function(t,e,n,r){this.clientId=t,this.updateTimeMs=e,this.networkEnabled=n,this.inForeground=r};gs.store="clientMetadata",gs.keyPath="clientId";var ys=function(t,e,n){this.bundleId=t,this.createTime=e,this.version=n};ys.store="bundles",ys.keyPath="bundleId";var ws=function(t,e,n){this.name=t,this.readTime=e,this.bundledQuery=n};ws.store="namedQueries",ws.keyPath="name";var _s=Object(jr.h)(Object(jr.h)([],Object(jr.h)(Object(jr.h)([],Object(jr.h)(Object(jr.h)([],Object(jr.h)(Object(jr.h)([],[ss.store,cs.store,us.store,fs.store,ps.store,as.store,ms.store,bs.store]),[gs.store])),[ds.store])),[vs.store])),[ys.store,ws.store]),ks="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.",xs=function(){function t(){this.onCommittedListeners=[]}return t.prototype.addOnCommittedListener=function(t){this.onCommittedListeners.push(t)},t.prototype.raiseOnCommittedEvent=function(){this.onCommittedListeners.forEach(function(t){return t()})},t}(),Os=function(){var t=this;this.promise=new Promise(function(e,n){t.resolve=e,t.reject=n})},Ss=function(){function t(t){var e=this;this.nextCallback=null,this.catchCallback=null,this.result=void 0,this.error=void 0,this.isDone=!1,this.callbackAttached=!1,t(function(t){e.isDone=!0,e.result=t,e.nextCallback&&e.nextCallback(t)},function(t){e.isDone=!0,e.error=t,e.catchCallback&&e.catchCallback(t)})}return t.prototype.catch=function(t){return this.next(void 0,t)},t.prototype.next=function(e,n){var r=this;return this.callbackAttached&&Fr(),this.callbackAttached=!0,this.isDone?this.error?this.wrapFailure(n,this.error):this.wrapSuccess(e,this.result):new t(function(t,i){r.nextCallback=function(n){r.wrapSuccess(e,n).next(t,i)},r.catchCallback=function(e){r.wrapFailure(n,e).next(t,i)}})},t.prototype.toPromise=function(){var t=this;return new Promise(function(e,n){t.next(e,n)})},t.prototype.wrapUserFunction=function(e){try{var n=e();return n instanceof t?n:t.resolve(n)}catch(e){return t.reject(e)}},t.prototype.wrapSuccess=function(e,n){return e?this.wrapUserFunction(function(){return e(n)}):t.resolve(n)},t.prototype.wrapFailure=function(e,n){return e?this.wrapUserFunction(function(){return e(n)}):t.reject(n)},t.resolve=function(e){return new t(function(t,n){t(e)})},t.reject=function(e){return new t(function(t,n){n(e)})},t.waitFor=function(e){return new t(function(t,n){var r=0,i=0,o=!1;e.forEach(function(e){++r,e.next(function(){++i,o&&i===r&&t()},function(t){return n(t)})}),o=!0,i===r&&t()})},t.or=function(e){for(var n=t.resolve(!1),r=function(e){n=n.next(function(n){return n?t.resolve(n):e()})},i=0,o=e;i0||e.indexOf("Trident/")>0||e.indexOf("Edge/")>0||r||o)},t.gt=function(){var t;return"undefined"!=typeof process&&"YES"===(null===(t=process.env)||void 0===t?void 0:t.Tt)},t.It=function(t,e){return t.store(e)},t._t=function(t){var e=t.match(/i(?:phone|pad|pod) os ([\d_]+)/i),n=e?e[1].split("_").slice(0,2).join("."):"-1";return Number(n)},t.Et=function(t){var e=t.match(/Android ([\d.]+)/i),n=e?e[1].split(".").slice(0,2).join("."):"-1";return Number(n)},t.prototype.At=function(t){return Object(jr.b)(this,void 0,void 0,function(){var e,n=this;return Object(jr.e)(this,function(r){switch(r.label){case 0:return this.db?[3,2]:(Lr("SimpleDb","Opening database:",this.name),e=this,[4,new Promise(function(e,r){var i=indexedDB.open(n.name,n.version);i.onsuccess=function(t){e(t.target.result)},i.onblocked=function(){r(new Ts(t,"Cannot upgrade IndexedDB schema while another tab is open. Close all tabs that access Firestore and reload this page to proceed."))},i.onerror=function(e){var n=e.target.error;r("VersionError"===n.name?new Ar(Ir.FAILED_PRECONDITION,"A newer version of the Firestore SDK was previously used and so the persisted data is not compatible with the version of the SDK you are now using. The SDK will operate with persistence disabled. If you need persistence, please re-upgrade to a newer version of the SDK or else clear the persisted IndexedDB data for your app to start fresh."):new Ts(t,n))},i.onupgradeneeded=function(t){Lr("SimpleDb",'Database "'+n.name+'" requires upgrade from version:',t.oldVersion),n.wt.Rt(t.target.result,i.transaction,t.oldVersion,n.version).next(function(){Lr("SimpleDb","Database upgrade to version "+n.version+" complete")})}})]);case 1:e.db=r.sent(),r.label=2;case 2:return[2,(this.bt&&(this.db.onversionchange=function(t){return n.bt(t)}),this.db)]}})})},t.prototype.vt=function(t){this.bt=t,this.db&&(this.db.onversionchange=function(e){return t(e)})},t.prototype.runTransaction=function(t,e,n,r){return Object(jr.b)(this,void 0,void 0,function(){var i,o,a,s,c;return Object(jr.e)(this,function(u){switch(u.label){case 0:i="readonly"===e,o=0,a=function(){var e,a,c,u,l;return Object(jr.e)(this,function(h){switch(h.label){case 0:++o,h.label=1;case 1:return h.trys.push([1,4,,5]),[4,s.At(t)];case 2:return s.db=h.sent(),e=Es.open(s.db,t,i?"readonly":"readwrite",n),a=r(e).catch(function(t){return e.abort(t),Ss.reject(t)}).toPromise(),c={},a.catch(function(){}),[4,e.dt];case 3:return[2,(c.value=(h.sent(),a),c)];case 4:return Lr("SimpleDb","Transaction failed with error:",(u=h.sent()).message,"Retrying:",l="FirebaseError"!==u.name&&o<3),s.close(),l?[3,5]:[2,{value:Promise.reject(u)}];case 5:return[2]}})},s=this,u.label=1;case 1:return[5,a()];case 2:if("object"==typeof(c=u.sent()))return[2,c.value];u.label=3;case 3:return[3,1];case 4:return[2]}})})},t.prototype.close=function(){this.db&&this.db.close(),this.db=void 0},t}(),js=function(){function t(t){this.Pt=t,this.Vt=!1,this.St=null}return Object.defineProperty(t.prototype,"isDone",{get:function(){return this.Vt},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Dt",{get:function(){return this.St},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cursor",{set:function(t){this.Pt=t},enumerable:!1,configurable:!0}),t.prototype.done=function(){this.Vt=!0},t.prototype.Ct=function(t){this.St=t},t.prototype.delete=function(){return Rs(this.Pt.delete())},t}(),Ts=function(t){function e(e,n){var r=this;return(r=t.call(this,Ir.UNAVAILABLE,"IndexedDB transaction '"+e+"' failed: "+n)||this).name="IndexedDbTransactionError",r}return Object(jr.d)(e,t),e}(Ar);function Is(t){return"IndexedDbTransactionError"===t.name}var As=function(){function t(t){this.store=t}return t.prototype.put=function(t,e){var n;return void 0!==e?(Lr("SimpleDb","PUT",this.store.name,t,e),n=this.store.put(e,t)):(Lr("SimpleDb","PUT",this.store.name,"",t),n=this.store.put(t)),Rs(n)},t.prototype.add=function(t){return Lr("SimpleDb","ADD",this.store.name,t,t),Rs(this.store.add(t))},t.prototype.get=function(t){var e=this;return Rs(this.store.get(t)).next(function(n){return void 0===n&&(n=null),Lr("SimpleDb","GET",e.store.name,t,n),n})},t.prototype.delete=function(t){return Lr("SimpleDb","DELETE",this.store.name,t),Rs(this.store.delete(t))},t.prototype.count=function(){return Lr("SimpleDb","COUNT",this.store.name),Rs(this.store.count())},t.prototype.Nt=function(t,e){var n=this.cursor(this.options(t,e)),r=[];return this.xt(n,function(t,e){r.push(e)}).next(function(){return r})},t.prototype.Ft=function(t,e){Lr("SimpleDb","DELETE ALL",this.store.name);var n=this.options(t,e);n.kt=!1;var r=this.cursor(n);return this.xt(r,function(t,e,n){return n.delete()})},t.prototype.$t=function(t,e){var n;e?n=t:(n={},e=t);var r=this.cursor(n);return this.xt(r,e)},t.prototype.Ot=function(t){var e=this.cursor({});return new Ss(function(n,r){e.onerror=function(t){var e=Ls(t.target.error);r(e)},e.onsuccess=function(e){var r=e.target.result;r?t(r.primaryKey,r.value).next(function(t){t?r.continue():n()}):n()}})},t.prototype.xt=function(t,e){var n=[];return new Ss(function(r,i){t.onerror=function(t){i(t.target.error)},t.onsuccess=function(t){var i=t.target.result;if(i){var o=new js(i),a=e(i.primaryKey,i.value,o);if(a instanceof Ss){var s=a.catch(function(t){return o.done(),Ss.reject(t)});n.push(s)}o.isDone?r():null===o.Dt?i.continue():i.continue(o.Dt)}else r()}}).next(function(){return Ss.waitFor(n)})},t.prototype.options=function(t,e){var n;return void 0!==t&&("string"==typeof t?n=t:e=t),{index:n,range:e}},t.prototype.cursor=function(t){var e="next";if(t.reverse&&(e="prev"),t.index){var n=this.store.index(t.index);return t.kt?n.openKeyCursor(t.range,e):n.openCursor(t.range,e)}return this.store.openCursor(t.range,e)},t}();function Rs(t){return new Ss(function(e,n){t.onsuccess=function(t){e(t.target.result)},t.onerror=function(t){var e=Ls(t.target.error);n(e)}})}var Ps=!1;function Ls(t){var e=Cs._t(Object(O.i)());if(e>=12.2&&e<13){var n="An internal error was encountered in the Indexed Database server";if(t.message.indexOf(n)>=0){var r=new Ar("internal","IOS_INDEXEDDB_BUG1: IndexedDb has thrown '"+n+"'. This is likely due to an unavoidable bug in iOS. See https://stackoverflow.com/q/56496296/110915 for details and a potential workaround.");return Ps||(Ps=!0,setTimeout(function(){throw r},0)),r}}return t}var Ns=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).Mt=e,r.currentSequenceNumber=n,r}return Object(jr.d)(e,t),e}(xs);function Ds(t,e){var n=Ur(t);return Cs.It(n.Mt,e)}var Ms=function(){function t(t,e,n,r){this.batchId=t,this.localWriteTime=e,this.baseMutations=n,this.mutations=r}return t.prototype.applyToRemoteDocument=function(t,e){for(var n=e.mutationResults,r=0;r=r),o=Gs(n.R,e)),i.done()}).next(function(){return o})},t.prototype.getHighestUnacknowledgedBatchId=function(t){var e=IDBKeyRange.upperBound([this.userId,Number.POSITIVE_INFINITY]),n=-1;return lc(t).$t({index:cs.userMutationsIndex,range:e,reverse:!0},function(t,e,r){n=e.batchId,r.done()}).next(function(){return n})},t.prototype.getAllMutationBatches=function(t){var e=this,n=IDBKeyRange.bound([this.userId,-1],[this.userId,Number.POSITIVE_INFINITY]);return lc(t).Nt(cs.userMutationsIndex,n).next(function(t){return t.map(function(t){return Gs(e.R,t)})})},t.prototype.getAllMutationBatchesAffectingDocumentKey=function(t,e){var n=this,r=us.prefixForPath(this.userId,e.path),i=IDBKeyRange.lowerBound(r),o=[];return hc(t).$t({range:i},function(r,i,a){var s=r[0],c=r[2],u=is(r[1]);if(s===n.userId&&e.path.isEqual(u))return lc(t).get(c).next(function(t){if(!t)throw Fr();Vr(t.userId===n.userId),o.push(Gs(n.R,t))});a.done()}).next(function(){return o})},t.prototype.getAllMutationBatchesAffectingDocumentKeys=function(t,e){var n=this,r=new ea(Xr),i=[];return e.forEach(function(e){var o=us.prefixForPath(n.userId,e.path),a=IDBKeyRange.lowerBound(o),s=hc(t).$t({range:a},function(t,i,o){var a=t[0],s=t[2],c=is(t[1]);a===n.userId&&e.path.isEqual(c)?r=r.add(s):o.done()});i.push(s)}),Ss.waitFor(i).next(function(){return n.Wt(t,r)})},t.prototype.getAllMutationBatchesAffectingQuery=function(t,e){var n=this,r=e.path,i=r.length+1,o=us.prefixForPath(this.userId,r),a=IDBKeyRange.lowerBound(o),s=new ea(Xr);return hc(t).$t({range:a},function(t,e,o){var a=t[0],c=t[2],u=is(t[1]);a===n.userId&&r.isPrefixOf(u)?u.length===i&&(s=s.add(c)):o.done()}).next(function(){return n.Wt(t,s)})},t.prototype.Wt=function(t,e){var n=this,r=[],i=[];return e.forEach(function(e){i.push(lc(t).get(e).next(function(t){if(null===t)throw Fr();Vr(t.userId===n.userId),r.push(Gs(n.R,t))}))}),Ss.waitFor(i).next(function(){return r})},t.prototype.removeMutationBatch=function(t,e){var n=this;return ac(t.Mt,this.userId,e).next(function(r){return t.addOnCommittedListener(function(){n.Gt(e.batchId)}),Ss.forEach(r,function(e){return n.referenceDelegate.markPotentiallyOrphaned(t,e)})})},t.prototype.Gt=function(t){delete this.Qt[t]},t.prototype.performConsistencyCheck=function(t){var e=this;return this.checkEmpty(t).next(function(n){if(!n)return Ss.resolve();var r=IDBKeyRange.lowerBound(us.prefixForUser(e.userId)),i=[];return hc(t).$t({range:r},function(t,n,r){if(t[0]===e.userId){var o=is(t[1]);i.push(o)}else r.done()}).next(function(){Vr(0===i.length)})})},t.prototype.containsKey=function(t,e){return uc(t,this.userId,e)},t.prototype.zt=function(t){var e=this;return fc(t).get(this.userId).next(function(t){return t||new ss(e.userId,-1,"")})},t}();function uc(t,e,n){var r=us.prefixForPath(e,n.path),i=r[1],o=IDBKeyRange.lowerBound(r),a=!1;return hc(t).$t({range:o,kt:!0},function(t,n,r){t[0]===e&&t[1]===i&&(a=!0),r.done()}).next(function(){return a})}function lc(t){return Ds(t,cs.store)}function hc(t){return Ds(t,us.store)}function fc(t){return Ds(t,ss.store)}var dc=function(){function t(t){this.Ht=t}return t.prototype.next=function(){return this.Ht+=2,this.Ht},t.Jt=function(){return new t(0)},t.Yt=function(){return new t(-1)},t}(),pc=function(){function t(t,e){this.referenceDelegate=t,this.R=e}return t.prototype.allocateTargetId=function(t){var e=this;return this.Xt(t).next(function(n){var r=new dc(n.highestTargetId);return n.highestTargetId=r.next(),e.Zt(t,n).next(function(){return n.highestTargetId})})},t.prototype.getLastRemoteSnapshotVersion=function(t){return this.Xt(t).next(function(t){return Gr.fromTimestamp(new Yr(t.lastRemoteSnapshotVersion.seconds,t.lastRemoteSnapshotVersion.nanoseconds))})},t.prototype.getHighestSequenceNumber=function(t){return this.Xt(t).next(function(t){return t.highestListenSequenceNumber})},t.prototype.setTargetsMetadata=function(t,e,n){var r=this;return this.Xt(t).next(function(i){return i.highestListenSequenceNumber=e,n&&(i.lastRemoteSnapshotVersion=n.toTimestamp()),e>i.highestListenSequenceNumber&&(i.highestListenSequenceNumber=e),r.Zt(t,i)})},t.prototype.addTargetData=function(t,e){var n=this;return this.te(t,e).next(function(){return n.Xt(t).next(function(r){return r.targetCount+=1,n.ee(e,r),n.Zt(t,r)})})},t.prototype.updateTargetData=function(t,e){return this.te(t,e)},t.prototype.removeTargetData=function(t,e){var n=this;return this.removeMatchingKeysForTargetId(t,e.targetId).next(function(){return bc(t).delete(e.targetId)}).next(function(){return n.Xt(t)}).next(function(e){return Vr(e.targetCount>0),e.targetCount-=1,n.Zt(t,e)})},t.prototype.removeTargets=function(t,e,n){var r=this,i=0,o=[];return bc(t).$t(function(a,s){var c=Ks(s);c.sequenceNumber<=e&&null===n.get(c.targetId)&&(i++,o.push(r.removeTargetData(t,c)))}).next(function(){return Ss.waitFor(o)}).next(function(){return i})},t.prototype.forEachTarget=function(t,e){return bc(t).$t(function(t,n){var r=Ks(n);e(r)})},t.prototype.Xt=function(t){return mc(t).get(ms.key).next(function(t){return Vr(null!==t),t})},t.prototype.Zt=function(t,e){return mc(t).put(ms.key,e)},t.prototype.te=function(t,e){return bc(t).put(Ws(this.R,e))},t.prototype.ee=function(t,e){var n=!1;return t.targetId>e.highestTargetId&&(e.highestTargetId=t.targetId,n=!0),t.sequenceNumber>e.highestListenSequenceNumber&&(e.highestListenSequenceNumber=t.sequenceNumber,n=!0),n},t.prototype.getTargetCount=function(t){return this.Xt(t).next(function(t){return t.targetCount})},t.prototype.getTargetData=function(t,e){var n=Pi(e),r=IDBKeyRange.bound([n,Number.NEGATIVE_INFINITY],[n,Number.POSITIVE_INFINITY]),i=null;return bc(t).$t({range:r,index:ps.queryTargetsIndexName},function(t,n,r){var o=Ks(n);Li(e,o.target)&&(i=o,r.done())}).next(function(){return i})},t.prototype.addMatchingKeys=function(t,e,n){var r=this,i=[],o=vc(t);return e.forEach(function(e){var a=es(e.path);i.push(o.put(new bs(n,a))),i.push(r.referenceDelegate.addReference(t,n,e))}),Ss.waitFor(i)},t.prototype.removeMatchingKeys=function(t,e,n){var r=this,i=vc(t);return Ss.forEach(e,function(e){var o=es(e.path);return Ss.waitFor([i.delete([n,o]),r.referenceDelegate.removeReference(t,n,e)])})},t.prototype.removeMatchingKeysForTargetId=function(t,e){var n=vc(t),r=IDBKeyRange.bound([e],[e+1],!1,!0);return n.delete(r)},t.prototype.getMatchingKeysForTargetId=function(t,e){var n=IDBKeyRange.bound([e],[e+1],!1,!0),r=vc(t),i=la();return r.$t({range:n,kt:!0},function(t,e,n){var r=is(t[1]),o=new di(r);i=i.add(o)}).next(function(){return i})},t.prototype.containsKey=function(t,e){var n=es(e.path),r=IDBKeyRange.bound([n],[Hr(n)],!1,!0),i=0;return vc(t).$t({index:bs.documentTargetsIndex,kt:!0,range:r},function(t,e,n){0!==t[0]&&(i++,n.done())}).next(function(){return i>0})},t.prototype.lt=function(t,e){return bc(t).get(e).next(function(t){return t?Ks(t):null})},t}();function bc(t){return Ds(t,ps.store)}function mc(t){return Ds(t,ms.store)}function vc(t){return Ds(t,bs.store)}function gc(t){return Object(jr.b)(this,void 0,void 0,function(){return Object(jr.e)(this,function(e){if(t.code!==Ir.FAILED_PRECONDITION||t.message!==ks)throw t;return Lr("LocalStore","Unexpectedly lost primary lease"),[2]})})}function yc(t,e){var n=t[1],r=e[1],i=Xr(t[0],e[0]);return 0===i?Xr(n,r):i}var wc=function(){function t(t){this.ne=t,this.buffer=new ea(yc),this.se=0}return t.prototype.ie=function(){return++this.se},t.prototype.re=function(t){var e=[t,this.ie()];if(this.buffer.sizeu.params.maximumSequenceNumbersToCollect?(Lr("LruGarbageCollector","Capping sequence numbers to collect down to the maximum of "+u.params.maximumSequenceNumbersToCollect+" from "+e),r=u.params.maximumSequenceNumbersToCollect):r=e,o=Date.now(),u.nthSequenceNumber(t,r)}).next(function(r){return n=r,a=Date.now(),u.removeTargets(t,n,e)}).next(function(e){return i=e,s=Date.now(),u.removeOrphanedDocuments(t,n)}).next(function(t){return c=Date.now(),Pr()<=S.a.DEBUG&&Lr("LruGarbageCollector","LRU Garbage Collection\n\tCounted targets in "+(o-l)+"ms\n\tDetermined least recently used "+r+" in "+(a-o)+"ms\n\tRemoved "+i+" targets in "+(s-a)+"ms\n\tRemoved "+t+" documents in "+(c-s)+"ms\nTotal Duration: "+(c-l)+"ms"),Ss.resolve({didRun:!0,sequenceNumbersCollected:r,targetsRemoved:i,documentsRemoved:t})})},t}(),xc=function(){function t(t,e){this.db=t,this.garbageCollector=function(t,e){return new kc(t,e)}(this,e)}return t.prototype.he=function(t){var e=this.de(t);return this.db.getTargetCache().getTargetCount(t).next(function(t){return e.next(function(e){return t+e})})},t.prototype.de=function(t){var e=0;return this.le(t,function(t){e++}).next(function(){return e})},t.prototype.forEachTarget=function(t,e){return this.db.getTargetCache().forEachTarget(t,e)},t.prototype.le=function(t,e){return this.we(t,function(t,n){return e(n)})},t.prototype.addReference=function(t,e,n){return Oc(t,n)},t.prototype.removeReference=function(t,e,n){return Oc(t,n)},t.prototype.removeTargets=function(t,e,n){return this.db.getTargetCache().removeTargets(t,e,n)},t.prototype.markPotentiallyOrphaned=function(t,e){return Oc(t,e)},t.prototype._e=function(t,e){return function(t,e){var n=!1;return fc(t).Ot(function(r){return uc(t,r,e).next(function(t){return t&&(n=!0),Ss.resolve(!t)})}).next(function(){return n})}(t,e)},t.prototype.removeOrphanedDocuments=function(t,e){var n=this,r=this.db.getRemoteDocumentCache().newChangeBuffer(),i=[],o=0;return this.we(t,function(a,s){if(s<=e){var c=n._e(t,a).next(function(e){if(!e)return o++,r.getEntry(t,a).next(function(){return r.removeEntry(a),vc(t).delete([0,es(a.path)])})});i.push(c)}}).next(function(){return Ss.waitFor(i)}).next(function(){return r.apply(t)}).next(function(){return o})},t.prototype.removeTarget=function(t,e){var n=e.withSequenceNumber(t.currentSequenceNumber);return this.db.getTargetCache().updateTargetData(t,n)},t.prototype.updateLimboDocument=function(t,e){return Oc(t,e)},t.prototype.we=function(t,e){var n,r=vc(t),i=Tr.o;return r.$t({index:bs.documentTargetsIndex},function(t,r){var o=r.path,a=r.sequenceNumber;0===t[0]?(i!==Tr.o&&e(new di(is(n)),i),i=a,n=o):i=Tr.o}).next(function(){i!==Tr.o&&e(new di(is(n)),i)})},t.prototype.getCacheSize=function(t){return this.db.getRemoteDocumentCache().getSize(t)},t}();function Oc(t,e){return vc(t).put(function(t,e){return new bs(0,es(t.path),e)}(e,t.currentSequenceNumber))}var Sc=function(){function t(t,e){this.mapKeyFn=t,this.equalsFn=e,this.inner={}}return t.prototype.get=function(t){var e=this.mapKeyFn(t),n=this.inner[e];if(void 0!==n)for(var r=0,i=n;r=0&&r<=11);var o=new Es("createOrUpgrade",e);n<1&&r>=1&&(function(t){t.createObjectStore(as.store)}(t),function(t){t.createObjectStore(ss.store,{keyPath:ss.keyPath}),t.createObjectStore(cs.store,{keyPath:cs.keyPath,autoIncrement:!0}).createIndex(cs.userMutationsIndex,cs.userMutationsKeyPath,{unique:!0}),t.createObjectStore(us.store)}(t),Pc(t),function(t){t.createObjectStore(fs.store)}(t));var a=Ss.resolve();return n<3&&r>=3&&(0!==n&&(function(t){t.deleteObjectStore(bs.store),t.deleteObjectStore(ps.store),t.deleteObjectStore(ms.store)}(t),Pc(t)),a=a.next(function(){return function(t){var e=t.store(ms.store),n=new ms(0,0,Gr.min().toTimestamp(),0);return e.put(ms.key,n)}(o)})),n<4&&r>=4&&(0!==n&&(a=a.next(function(){return function(t,e){return e.store(cs.store).Nt().next(function(n){t.deleteObjectStore(cs.store),t.createObjectStore(cs.store,{keyPath:cs.keyPath,autoIncrement:!0}).createIndex(cs.userMutationsIndex,cs.userMutationsKeyPath,{unique:!0});var r=e.store(cs.store),i=n.map(function(t){return r.put(t)});return Ss.waitFor(i)})}(t,o)})),a=a.next(function(){!function(t){t.createObjectStore(gs.store,{keyPath:gs.keyPath})}(t)})),n<5&&r>=5&&(a=a.next(function(){return i.Re(o)})),n<6&&r>=6&&(a=a.next(function(){return function(t){t.createObjectStore(ds.store)}(t),i.be(o)})),n<7&&r>=7&&(a=a.next(function(){return i.ve(o)})),n<8&&r>=8&&(a=a.next(function(){return i.Pe(t,o)})),n<9&&r>=9&&(a=a.next(function(){!function(t){t.objectStoreNames.contains("remoteDocumentChanges")&&t.deleteObjectStore("remoteDocumentChanges")}(t),function(t){var e=t.objectStore(fs.store);e.createIndex(fs.readTimeIndex,fs.readTimeIndexPath,{unique:!1}),e.createIndex(fs.collectionReadTimeIndex,fs.collectionReadTimeIndexPath,{unique:!1})}(e)})),n<10&&r>=10&&(a=a.next(function(){return i.Ve(o)})),n<11&&r>=11&&(a=a.next(function(){!function(t){t.createObjectStore(ys.store,{keyPath:ys.keyPath})}(t),function(t){t.createObjectStore(ws.store,{keyPath:ws.keyPath})}(t)})),a},t.prototype.be=function(t){var e=0;return t.store(fs.store).$t(function(t,n){e+=sc(n)}).next(function(){var n=new ds(e);return t.store(ds.store).put(ds.key,n)})},t.prototype.Re=function(t){var e=this,n=t.store(ss.store),r=t.store(cs.store);return n.Nt().next(function(n){return Ss.forEach(n,function(n){var i=IDBKeyRange.bound([n.userId,-1],[n.userId,n.lastAcknowledgedBatchId]);return r.Nt(cs.userMutationsIndex,i).next(function(r){return Ss.forEach(r,function(r){Vr(r.userId===n.userId);var i=Gs(e.R,r);return ac(t,n.userId,i).next(function(){})})})})})},t.prototype.ve=function(t){var e=t.store(bs.store),n=t.store(fs.store);return t.store(ms.store).get(ms.key).next(function(t){var r=[];return n.$t(function(n,i){var o=new Jr(n),a=function(t){return[0,es(t)]}(o);r.push(e.get(a).next(function(n){return n?Ss.resolve():function(n){return e.put(new bs(0,es(n),t.highestListenSequenceNumber))}(o)}))}).next(function(){return Ss.waitFor(r)})})},t.prototype.Pe=function(t,e){t.createObjectStore(vs.store,{keyPath:vs.keyPath});var n=e.store(vs.store),r=new ec,i=function(t){if(r.add(t)){var e=t.lastSegment(),i=t.popLast();return n.put({collectionId:e,parent:es(i)})}};return e.store(fs.store).$t({kt:!0},function(t,e){var n=new Jr(t);return i(n.popLast())}).next(function(){return e.store(us.store).$t({kt:!0},function(t,e){var n=is(t[1]);return i(n.popLast())})})},t.prototype.Ve=function(t){var e=this,n=t.store(ps.store);return n.$t(function(t,r){var i=Ks(r),o=Ws(e.R,i);return n.put(o)})},t}();function Pc(t){t.createObjectStore(bs.store,{keyPath:bs.keyPath}).createIndex(bs.documentTargetsIndex,bs.documentTargetsKeyPath,{unique:!0}),t.createObjectStore(ps.store,{keyPath:ps.keyPath}).createIndex(ps.queryTargetsIndexName,ps.queryTargetsKeyPath,{unique:!0}),t.createObjectStore(ms.store)}var Lc="Failed to obtain exclusive access to the persistence layer. To allow shared access, multi-tab synchronization has to be enabled in all tabs. If you are using `experimentalForceOwningTab:true`, make sure that only one tab has persistence enabled at any given time.",Nc=function(){function t(e,n,r,i,o,a,s,c,u,l){if(this.allowTabSynchronization=e,this.persistenceKey=n,this.clientId=r,this.Se=o,this.window=a,this.document=s,this.De=u,this.Ce=l,this.Ne=null,this.xe=!1,this.isPrimary=!1,this.networkEnabled=!0,this.Fe=null,this.inForeground=!1,this.ke=null,this.$e=null,this.Oe=Number.NEGATIVE_INFINITY,this.Me=function(t){return Promise.resolve()},!t.yt())throw new Ar(Ir.UNIMPLEMENTED,"This platform is either missing IndexedDB or is known to have an incomplete implementation. Offline persistence has been disabled.");this.referenceDelegate=new xc(this,i),this.Le=n+"main",this.R=new Us(c),this.Be=new Cs(this.Le,11,new Rc(this.R)),this.qe=new pc(this.referenceDelegate,this.R),this.Ut=new nc,this.Ue=function(t,e){return new Cc(t,e)}(this.R,this.Ut),this.Qe=new Zs,this.window&&this.window.localStorage?this.Ke=this.window.localStorage:(this.Ke=null,!1===l&&Nr("IndexedDbPersistence","LocalStorage is unavailable. As a result, persistence may not work reliably. In particular enablePersistence() could fail immediately after refreshing the page."))}return t.prototype.start=function(){var t=this;return this.je().then(function(){if(!t.isPrimary&&!t.allowTabSynchronization)throw new Ar(Ir.FAILED_PRECONDITION,Lc);return t.We(),t.Ge(),t.ze(),t.runTransaction("getHighestListenSequenceNumber","readonly",function(e){return t.qe.getHighestSequenceNumber(e)})}).then(function(e){t.Ne=new Tr(e,t.De)}).then(function(){t.xe=!0}).catch(function(e){return t.Be&&t.Be.close(),Promise.reject(e)})},t.prototype.He=function(t){var e=this;return this.Me=function(n){return Object(jr.b)(e,void 0,void 0,function(){return Object(jr.e)(this,function(e){return this.started?[2,t(n)]:[2]})})},t(this.isPrimary)},t.prototype.setDatabaseDeletedListener=function(t){var e=this;this.Be.vt(function(n){return Object(jr.b)(e,void 0,void 0,function(){return Object(jr.e)(this,function(e){switch(e.label){case 0:return null===n.newVersion?[4,t()]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}})})})},t.prototype.setNetworkEnabled=function(t){var e=this;this.networkEnabled!==t&&(this.networkEnabled=t,this.Se.enqueueAndForget(function(){return Object(jr.b)(e,void 0,void 0,function(){return Object(jr.e)(this,function(t){switch(t.label){case 0:return this.started?[4,this.je()]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}})})}))},t.prototype.je=function(){var t=this;return this.runTransaction("updateClientMetadataAndTryBecomePrimary","readwrite",function(e){return Mc(e).put(new gs(t.clientId,Date.now(),t.networkEnabled,t.inForeground)).next(function(){if(t.isPrimary)return t.Je(e).next(function(e){e||(t.isPrimary=!1,t.Se.enqueueRetryable(function(){return t.Me(!1)}))})}).next(function(){return t.Ye(e)}).next(function(n){return t.isPrimary&&!n?t.Xe(e).next(function(){return!1}):!!n&&t.Ze(e).next(function(){return!0})})}).catch(function(e){if(Is(e))return Lr("IndexedDbPersistence","Failed to extend owner lease: ",e),t.isPrimary;if(!t.allowTabSynchronization)throw e;return Lr("IndexedDbPersistence","Releasing owner lease after error during lease refresh",e),!1}).then(function(e){t.isPrimary!==e&&t.Se.enqueueRetryable(function(){return t.Me(e)}),t.isPrimary=e})},t.prototype.Je=function(t){var e=this;return Dc(t).get(as.key).next(function(t){return Ss.resolve(e.tn(t))})},t.prototype.en=function(t){return Mc(t).delete(this.clientId)},t.prototype.nn=function(){return Object(jr.b)(this,void 0,void 0,function(){var t,e,n,r=this;return Object(jr.e)(this,function(i){switch(i.label){case 0:return!this.isPrimary||this.sn(this.Oe,18e5)?[3,2]:(this.Oe=Date.now(),[4,this.runTransaction("maybeGarbageCollectMultiClientState","readwrite-primary",function(t){var e=Ds(t,gs.store);return e.Nt().next(function(t){var n=r.rn(t,18e5),i=t.filter(function(t){return-1===n.indexOf(t)});return Ss.forEach(i,function(t){return e.delete(t.clientId)}).next(function(){return i})})}).catch(function(){return[]})]);case 1:if(t=i.sent(),this.Ke)for(e=0,n=t;en&&(Nr("Detected an update time that is in the future: "+t+" > "+n),1))},t.prototype.We=function(){var t=this;null!==this.document&&"function"==typeof this.document.addEventListener&&(this.ke=function(){t.Se.enqueueAndForget(function(){return t.inForeground="visible"===t.document.visibilityState,t.je()})},this.document.addEventListener("visibilitychange",this.ke),this.inForeground="visible"===this.document.visibilityState)},t.prototype.an=function(){this.ke&&(this.document.removeEventListener("visibilitychange",this.ke),this.ke=null)},t.prototype.Ge=function(){var t,e=this;"function"==typeof(null===(t=this.window)||void 0===t?void 0:t.addEventListener)&&(this.Fe=function(){e.un(),e.Se.enqueueAndForget(function(){return e.shutdown()})},this.window.addEventListener("pagehide",this.Fe))},t.prototype.hn=function(){this.Fe&&(this.window.removeEventListener("pagehide",this.Fe),this.Fe=null)},t.prototype.cn=function(t){var e;try{var n=null!==(null===(e=this.Ke)||void 0===e?void 0:e.getItem(this.on(t)));return Lr("IndexedDbPersistence","Client '"+t+"' "+(n?"is":"is not")+" zombied in LocalStorage"),n}catch(t){return Nr("IndexedDbPersistence","Failed to get zombied client id.",t),!1}},t.prototype.un=function(){if(this.Ke)try{this.Ke.setItem(this.on(this.clientId),String(Date.now()))}catch(t){Nr("Failed to set zombie client id.",t)}},t.prototype.ln=function(){if(this.Ke)try{this.Ke.removeItem(this.on(this.clientId))}catch(t){}},t.prototype.on=function(t){return"firestore_zombie_"+this.persistenceKey+"_"+t},t}();function Dc(t){return Ds(t,as.store)}function Mc(t){return Ds(t,gs.store)}function Fc(t,e){var n=t.projectId;return t.isDefaultDatabase||(n+="."+t.database),"firestore/"+e+"/"+n+"/"}var Vc=function(t,e){this.progress=t,this.wn=e},Uc=function(){function t(t,e,n){this.Ue=t,this._n=e,this.Ut=n}return t.prototype.mn=function(t,e){var n=this;return this._n.getAllMutationBatchesAffectingDocumentKey(t,e).next(function(r){return n.yn(t,e,r)})},t.prototype.yn=function(t,e,n){return this.Ue.getEntry(t,e).next(function(t){for(var e=0,r=n;e0)},t.prototype.Dn=function(t,e){return Pr()<=S.a.DEBUG&&Lr("QueryEngine","Using full collection scan to execute query:",lo(e)),this.Sn.getDocumentsMatchingQuery(t,e,Gr.min())},t}(),Xc=function(){function t(t,e,n,r){this.persistence=t,this.xn=e,this.R=r,this.Fn=new Jo(Xr),this.kn=new Sc(function(t){return Pi(t)},Li),this.$n=Gr.min(),this._n=t.getMutationQueue(n),this.On=t.getRemoteDocumentCache(),this.qe=t.getTargetCache(),this.Mn=new Uc(this.On,this._n,this.persistence.getIndexManager()),this.Qe=t.getBundleCache(),this.xn.Vn(this.Mn)}return t.prototype.collectGarbage=function(t){var e=this;return this.persistence.runTransaction("Collect garbage","readwrite-primary",function(n){return t.collect(n,e.Fn)})},t}();function zc(t,e,n,r){return new Xc(t,e,n,r)}function Hc(t,e){return Object(jr.b)(this,void 0,void 0,function(){var n,r,i,o;return Object(jr.e)(this,function(a){switch(a.label){case 0:return n=Ur(t),r=n._n,i=n.Mn,[4,n.persistence.runTransaction("Handle user change","readonly",function(t){var o;return n._n.getAllMutationBatches(t).next(function(a){return o=a,r=n.persistence.getMutationQueue(e),i=new Uc(n.On,r,n.persistence.getIndexManager()),r.getAllMutationBatches(t)}).next(function(e){for(var n=[],r=[],a=la(),s=0,c=o;s0){var u=s.withResumeToken(c,r).withSequenceNumber(t.currentSequenceNumber);i=i.insert(o,u),function(t,e,n){return Vr(e.resumeToken.approximateByteSize()>0),0===t.resumeToken.approximateByteSize()||e.snapshotVersion.toMicroseconds()-t.snapshotVersion.toMicroseconds()>=3e8||n.addedDocuments.size+n.modifiedDocuments.size+n.removedDocuments.size>0}(s,u,e)&&a.push(n.qe.updateTargetData(t,u))}}});var s=ia();if(e.documentUpdates.forEach(function(r,i){e.resolvedLimboDocuments.has(r)&&a.push(n.persistence.referenceDelegate.updateLimboDocument(t,r))}),a.push(Wc(t,o,e.documentUpdates,r,void 0).next(function(t){s=t})),!r.isEqual(Gr.min())){var c=n.qe.getLastRemoteSnapshotVersion(t).next(function(e){return n.qe.setTargetsMetadata(t,t.currentSequenceNumber,r)});a.push(c)}return Ss.waitFor(a).next(function(){return o.apply(t)}).next(function(){return n.Mn.En(t,s)}).next(function(){return s})}).then(function(t){return n.Fn=i,t})}function Wc(t,e,n,r,i){var o=la();return n.forEach(function(t){return o=o.add(t)}),e.getEntries(t,o).next(function(t){var o=ia();return n.forEach(function(n,a){var s=t.get(n),c=(null==i?void 0:i.get(n))||r;a.isNoDocument()&&a.version.isEqual(Gr.min())?(e.removeEntry(n,c),o=o.insert(n,a)):!s.isValidDocument()||a.version.compareTo(s.version)>0||0===a.version.compareTo(s.version)&&s.hasPendingWrites?(e.addEntry(a,c),o=o.insert(n,a)):Lr("LocalStore","Ignoring outdated watch update for ",n,". Current version:",s.version," Watch version:",a.version)}),o})}function Qc(t,e){var n=Ur(t);return n.persistence.runTransaction("Get next mutation batch","readonly",function(t){return void 0===e&&(e=-1),n._n.getNextMutationBatchAfterBatchId(t,e)})}function Zc(t,e){var n=Ur(t);return n.persistence.runTransaction("Allocate target","readwrite",function(t){var r;return n.qe.getTargetData(t,e).next(function(i){return i?Ss.resolve(r=i):n.qe.allocateTargetId(t).next(function(i){return r=new Vs(e,i,0,t.currentSequenceNumber),n.qe.addTargetData(t,r).next(function(){return r})})})}).then(function(t){var r=n.Fn.get(t.targetId);return(null===r||t.snapshotVersion.compareTo(r.snapshotVersion)>0)&&(n.Fn=n.Fn.insert(t.targetId,t),n.kn.set(e,t.targetId)),t})}function Jc(t,e,n){return Object(jr.b)(this,void 0,void 0,function(){var r,i,o,a;return Object(jr.e)(this,function(s){switch(s.label){case 0:r=Ur(t),i=r.Fn.get(e),o=n?"readwrite":"readwrite-primary",s.label=1;case 1:return s.trys.push([1,4,,5]),n?[3,3]:[4,r.persistence.runTransaction("Release target",o,function(t){return r.persistence.referenceDelegate.removeTarget(t,i)})];case 2:s.sent(),s.label=3;case 3:return[3,5];case 4:if(!Is(a=s.sent()))throw a;return Lr("LocalStore","Failed to update sequence numbers for target "+e+": "+a),[3,5];case 5:return r.Fn=r.Fn.remove(e),r.kn.delete(i.target),[2]}})})}function $c(t,e,n){var r=Ur(t),i=Gr.min(),o=la();return r.persistence.runTransaction("Execute query","readonly",function(t){return function(t,e,n){var r=Ur(t),i=r.kn.get(n);return void 0!==i?Ss.resolve(r.Fn.get(i)):r.qe.getTargetData(e,n)}(r,t,ao(e)).next(function(e){if(e)return i=e.lastLimboFreeSnapshotVersion,r.qe.getMatchingKeysForTargetId(t,e.targetId).next(function(t){o=t})}).next(function(){return r.xn.getDocumentsMatchingQuery(t,e,n?i:Gr.min(),n?o:la())}).next(function(t){return{documents:t,Bn:o}})})}function tu(t,e){var n=Ur(t),r=Ur(n.qe),i=n.Fn.get(e);return i?Promise.resolve(i.target):n.persistence.runTransaction("Get target data","readonly",function(t){return r.lt(t,e).next(function(t){return t?t.target:null})})}function eu(t){var e=Ur(t);return e.persistence.runTransaction("Get new document changes","readonly",function(t){return function(t,e,n){var r=Ur(t),i=ia(),o=Xs(n),a=Ic(e),s=IDBKeyRange.lowerBound(o,!0);return a.$t({index:fs.readTimeIndex,range:s},function(t,e){var n=Bs(r.R,e);i=i.insert(n.key,n),o=e.readTime}).next(function(){return{wn:i,readTime:zs(o)}})}(e.On,t,e.$n)}).then(function(t){var n=t.wn;return e.$n=t.readTime,n})}function nu(t){return Object(jr.b)(this,void 0,void 0,function(){var e;return Object(jr.e)(this,function(n){return[2,(e=Ur(t)).persistence.runTransaction("Synchronize last document change read time","readonly",function(t){return function(t){var e=Ic(t),n=Gr.min();return e.$t({index:fs.readTimeIndex,reverse:!0},function(t,e,r){e.readTime&&(n=zs(e.readTime)),r.done()}).next(function(){return n})}(t)}).then(function(t){e.$n=t})]})})}function ru(t,e,n,r){return Object(jr.b)(this,void 0,void 0,function(){var i,o,a,s,c,u,l,h,f,d;return Object(jr.e)(this,function(p){switch(p.label){case 0:for(i=Ur(t),o=la(),a=ia(),s=ca(),c=0,u=n;c=0)return i.Qe.saveNamedQuery(t,e);var a=r.withResumeToken(ni.EMPTY_BYTE_STRING,o);return i.Fn=i.Fn.insert(a.targetId,a),i.qe.updateTargetData(t,a).next(function(){return i.qe.removeMatchingKeysForTargetId(t,r.targetId)}).next(function(){return i.qe.addMatchingKeys(t,n,r.targetId)}).next(function(){return i.Qe.saveNamedQuery(t,e)})})]}})})}var ou=function(){function t(t){this.R=t,this.Kn=new Map,this.jn=new Map}return t.prototype.getBundleMetadata=function(t,e){return Ss.resolve(this.Kn.get(e))},t.prototype.saveBundleMetadata=function(t,e){var n;return this.Kn.set(e.id,{id:(n=e).id,version:n.version,createTime:ja(n.createTime)}),Ss.resolve()},t.prototype.getNamedQuery=function(t,e){return Ss.resolve(this.jn.get(e))},t.prototype.saveNamedQuery=function(t,e){return this.jn.set(e.name,function(t){return{name:t.name,query:Qs(t.bundledQuery),readTime:ja(t.readTime)}}(e)),Ss.resolve()},t}(),au=function(){function t(){this.Wn=new ea(su.Gn),this.zn=new ea(su.Hn)}return t.prototype.isEmpty=function(){return this.Wn.isEmpty()},t.prototype.addReference=function(t,e){var n=new su(t,e);this.Wn=this.Wn.add(n),this.zn=this.zn.add(n)},t.prototype.Jn=function(t,e){var n=this;t.forEach(function(t){return n.addReference(t,e)})},t.prototype.removeReference=function(t,e){this.Yn(new su(t,e))},t.prototype.Xn=function(t,e){var n=this;t.forEach(function(t){return n.removeReference(t,e)})},t.prototype.Zn=function(t){var e=this,n=new di(new Jr([])),r=new su(n,t),i=new su(n,t+1),o=[];return this.zn.forEachInRange([r,i],function(t){e.Yn(t),o.push(t.key)}),o},t.prototype.ts=function(){var t=this;this.Wn.forEach(function(e){return t.Yn(e)})},t.prototype.Yn=function(t){this.Wn=this.Wn.delete(t),this.zn=this.zn.delete(t)},t.prototype.es=function(t){var e=new di(new Jr([])),n=new su(e,t),r=new su(e,t+1),i=la();return this.zn.forEachInRange([n,r],function(t){i=i.add(t.key)}),i},t.prototype.containsKey=function(t){var e=new su(t,0),n=this.Wn.firstAfterOrEqual(e);return null!==n&&t.isEqual(n.key)},t}(),su=function(){function t(t,e){this.key=t,this.ns=e}return t.Gn=function(t,e){return di.comparator(t.key,e.key)||Xr(t.ns,e.ns)},t.Hn=function(t,e){return Xr(t.ns,e.ns)||di.comparator(t.key,e.key)},t}(),cu=function(){function t(t,e){this.Ut=t,this.referenceDelegate=e,this._n=[],this.ss=1,this.rs=new ea(su.Gn)}return t.prototype.checkEmpty=function(t){return Ss.resolve(0===this._n.length)},t.prototype.addMutationBatch=function(t,e,n,r){var i=this.ss;this.ss++;var o=new Ms(i,e,n,r);this._n.push(o);for(var a=0,s=r;ar?this._n[r]:null)},t.prototype.getHighestUnacknowledgedBatchId=function(){return Ss.resolve(0===this._n.length?-1:this.ss-1)},t.prototype.getAllMutationBatches=function(t){return Ss.resolve(this._n.slice())},t.prototype.getAllMutationBatchesAffectingDocumentKey=function(t,e){var n=this,r=new su(e,0),i=new su(e,Number.POSITIVE_INFINITY),o=[];return this.rs.forEachInRange([r,i],function(t){var e=n.os(t.ns);o.push(e)}),Ss.resolve(o)},t.prototype.getAllMutationBatchesAffectingDocumentKeys=function(t,e){var n=this,r=new ea(Xr);return e.forEach(function(t){var e=new su(t,0),i=new su(t,Number.POSITIVE_INFINITY);n.rs.forEachInRange([e,i],function(t){r=r.add(t.ns)})}),Ss.resolve(this.us(r))},t.prototype.getAllMutationBatchesAffectingQuery=function(t,e){var n=e.path,r=n.length+1,i=n;di.isDocumentKey(i)||(i=i.child(""));var o=new su(new di(i),0),a=new ea(Xr);return this.rs.forEachWhile(function(t){var e=t.key.path;return!!n.isPrefixOf(e)&&(e.length===r&&(a=a.add(t.ns)),!0)},o),Ss.resolve(this.us(a))},t.prototype.us=function(t){var e=this,n=[];return t.forEach(function(t){var r=e.os(t);null!==r&&n.push(r)}),n},t.prototype.removeMutationBatch=function(t,e){var n=this;Vr(0===this.hs(e.batchId,"removed")),this._n.shift();var r=this.rs;return Ss.forEach(e.mutations,function(i){var o=new su(i.key,e.batchId);return r=r.delete(o),n.referenceDelegate.markPotentiallyOrphaned(t,i.key)}).next(function(){n.rs=r})},t.prototype.Gt=function(t){},t.prototype.containsKey=function(t,e){var n=new su(e,0),r=this.rs.firstAfterOrEqual(n);return Ss.resolve(e.isEqual(r&&r.key))},t.prototype.performConsistencyCheck=function(t){return Ss.resolve()},t.prototype.hs=function(t,e){return this.cs(t)},t.prototype.cs=function(t){return 0===this._n.length?0:t-this._n[0].batchId},t.prototype.os=function(t){var e=this.cs(t);return e<0||e>=this._n.length?null:this._n[e]},t}(),uu=function(){function t(t,e){this.Ut=t,this.ls=e,this.docs=new Jo(di.comparator),this.size=0}return t.prototype.addEntry=function(t,e,n){var r=e.key,i=this.docs.get(r),o=i?i.size:0,a=this.ls(e);return this.docs=this.docs.insert(r,{document:e.clone(),size:a,readTime:n}),this.size+=a-o,this.Ut.addToCollectionParentIndex(t,r.path.popLast())},t.prototype.removeEntry=function(t){var e=this.docs.get(t);e&&(this.docs=this.docs.remove(t),this.size-=e.size)},t.prototype.getEntry=function(t,e){var n=this.docs.get(e);return Ss.resolve(n?n.document.clone():Ii.newInvalidDocument(e))},t.prototype.getEntries=function(t,e){var n=this,r=ia();return e.forEach(function(t){var e=n.docs.get(t);r=r.insert(t,e?e.document.clone():Ii.newInvalidDocument(t))}),Ss.resolve(r)},t.prototype.getDocumentsMatchingQuery=function(t,e,n){for(var r=ia(),i=new di(e.path.child("")),o=this.docs.getIteratorFrom(i);o.hasNext();){var a=o.getNext(),s=a.value,c=s.document,u=s.readTime;if(!e.path.isPrefixOf(a.key.path))break;u.compareTo(n)<=0||ho(e,c)&&(r=r.insert(c.key,c.clone()))}return Ss.resolve(r)},t.prototype.fs=function(t,e){return Ss.forEach(this.docs,function(t){return e(t)})},t.prototype.newChangeBuffer=function(t){return new lu(this)},t.prototype.getSize=function(t){return Ss.resolve(this.size)},t}(),lu=function(t){function e(e){var n=this;return(n=t.call(this)||this).Ie=e,n}return Object(jr.d)(e,t),e.prototype.applyChanges=function(t){var e=this,n=[];return this.changes.forEach(function(r,i){i.document.isValidDocument()?n.push(e.Ie.addEntry(t,i.document,e.getReadTime(r))):e.Ie.removeEntry(r)}),Ss.waitFor(n)},e.prototype.getFromCache=function(t,e){return this.Ie.getEntry(t,e)},e.prototype.getAllFromCache=function(t,e){return this.Ie.getEntries(t,e)},e}(Ec),hu=function(){function t(t){this.persistence=t,this.ds=new Sc(function(t){return Pi(t)},Li),this.lastRemoteSnapshotVersion=Gr.min(),this.highestTargetId=0,this.ws=0,this._s=new au,this.targetCount=0,this.ys=dc.Jt()}return t.prototype.forEachTarget=function(t,e){return this.ds.forEach(function(t,n){return e(n)}),Ss.resolve()},t.prototype.getLastRemoteSnapshotVersion=function(t){return Ss.resolve(this.lastRemoteSnapshotVersion)},t.prototype.getHighestSequenceNumber=function(t){return Ss.resolve(this.ws)},t.prototype.allocateTargetId=function(t){return this.highestTargetId=this.ys.next(),Ss.resolve(this.highestTargetId)},t.prototype.setTargetsMetadata=function(t,e,n){return n&&(this.lastRemoteSnapshotVersion=n),e>this.ws&&(this.ws=e),Ss.resolve()},t.prototype.te=function(t){this.ds.set(t.target,t);var e=t.targetId;e>this.highestTargetId&&(this.ys=new dc(e),this.highestTargetId=e),t.sequenceNumber>this.ws&&(this.ws=t.sequenceNumber)},t.prototype.addTargetData=function(t,e){return this.te(e),this.targetCount+=1,Ss.resolve()},t.prototype.updateTargetData=function(t,e){return this.te(e),Ss.resolve()},t.prototype.removeTargetData=function(t,e){return this.ds.delete(e.target),this._s.Zn(e.targetId),this.targetCount-=1,Ss.resolve()},t.prototype.removeTargets=function(t,e,n){var r=this,i=0,o=[];return this.ds.forEach(function(a,s){s.sequenceNumber<=e&&null===n.get(s.targetId)&&(r.ds.delete(a),o.push(r.removeMatchingKeysForTargetId(t,s.targetId)),i++)}),Ss.waitFor(o).next(function(){return i})},t.prototype.getTargetCount=function(t){return Ss.resolve(this.targetCount)},t.prototype.getTargetData=function(t,e){var n=this.ds.get(e)||null;return Ss.resolve(n)},t.prototype.addMatchingKeys=function(t,e,n){return this._s.Jn(e,n),Ss.resolve()},t.prototype.removeMatchingKeys=function(t,e,n){this._s.Xn(e,n);var r=this.persistence.referenceDelegate,i=[];return r&&e.forEach(function(e){i.push(r.markPotentiallyOrphaned(t,e))}),Ss.waitFor(i)},t.prototype.removeMatchingKeysForTargetId=function(t,e){return this._s.Zn(e),Ss.resolve()},t.prototype.getMatchingKeysForTargetId=function(t,e){var n=this._s.es(e);return Ss.resolve(n)},t.prototype.containsKey=function(t,e){return Ss.resolve(this._s.containsKey(e))},t}(),fu=function(){function t(t,e){var n=this;this.gs={},this.Ne=new Tr(0),this.xe=!1,this.xe=!0,this.referenceDelegate=t(this),this.qe=new hu(this),this.Ut=new tc,this.Ue=function(t,e){return new uu(t,function(t){return n.referenceDelegate.ps(t)})}(this.Ut),this.R=new Us(e),this.Qe=new ou(this.R)}return t.prototype.start=function(){return Promise.resolve()},t.prototype.shutdown=function(){return this.xe=!1,Promise.resolve()},Object.defineProperty(t.prototype,"started",{get:function(){return this.xe},enumerable:!1,configurable:!0}),t.prototype.setDatabaseDeletedListener=function(){},t.prototype.setNetworkEnabled=function(){},t.prototype.getIndexManager=function(){return this.Ut},t.prototype.getMutationQueue=function(t){var e=this.gs[t.toKey()];return e||(e=new cu(this.Ut,this.referenceDelegate),this.gs[t.toKey()]=e),e},t.prototype.getTargetCache=function(){return this.qe},t.prototype.getRemoteDocumentCache=function(){return this.Ue},t.prototype.getBundleCache=function(){return this.Qe},t.prototype.runTransaction=function(t,e,n){var r=this;Lr("MemoryPersistence","Starting transaction:",t);var i=new du(this.Ne.next());return this.referenceDelegate.Es(),n(i).next(function(t){return r.referenceDelegate.Ts(i).next(function(){return t})}).toPromise().then(function(t){return i.raiseOnCommittedEvent(),t})},t.prototype.Is=function(t,e){return Ss.or(Object.values(this.gs).map(function(n){return function(){return n.containsKey(t,e)}}))},t}(),du=function(t){function e(e){var n=this;return(n=t.call(this)||this).currentSequenceNumber=e,n}return Object(jr.d)(e,t),e}(xs),pu=function(){function t(t){this.persistence=t,this.As=new au,this.Rs=null}return t.bs=function(e){return new t(e)},Object.defineProperty(t.prototype,"vs",{get:function(){if(this.Rs)return this.Rs;throw Fr()},enumerable:!1,configurable:!0}),t.prototype.addReference=function(t,e,n){return this.As.addReference(n,e),this.vs.delete(n.toString()),Ss.resolve()},t.prototype.removeReference=function(t,e,n){return this.As.removeReference(n,e),this.vs.add(n.toString()),Ss.resolve()},t.prototype.markPotentiallyOrphaned=function(t,e){return this.vs.add(e.toString()),Ss.resolve()},t.prototype.removeTarget=function(t,e){var n=this;this.As.Zn(e.targetId).forEach(function(t){return n.vs.add(t.toString())});var r=this.persistence.getTargetCache();return r.getMatchingKeysForTargetId(t,e.targetId).next(function(t){t.forEach(function(t){return n.vs.add(t.toString())})}).next(function(){return r.removeTargetData(t,e)})},t.prototype.Es=function(){this.Rs=new Set},t.prototype.Ts=function(t){var e=this,n=this.persistence.getRemoteDocumentCache().newChangeBuffer();return Ss.forEach(this.vs,function(r){var i=di.fromPath(r);return e.Ps(t,i).next(function(t){t||n.removeEntry(i)})}).next(function(){return e.Rs=null,n.apply(t)})},t.prototype.updateLimboDocument=function(t,e){var n=this;return this.Ps(t,e).next(function(t){t?n.vs.delete(e.toString()):n.vs.add(e.toString())})},t.prototype.ps=function(t){return 0},t.prototype.Ps=function(t,e){var n=this;return Ss.or([function(){return Ss.resolve(n.As.containsKey(e))},function(){return n.persistence.getTargetCache().containsKey(t,e)},function(){return n.persistence.Is(t,e)}])},t}(),bu=function(){function t(t){this.uid=t}return t.prototype.isAuthenticated=function(){return null!=this.uid},t.prototype.toKey=function(){return this.isAuthenticated()?"uid:"+this.uid:"anonymous-user"},t.prototype.isEqual=function(t){return t.uid===this.uid},t}();function mu(t,e){return"firestore_clients_"+t+"_"+e}function vu(t,e,n){var r="firestore_mutations_"+t+"_"+n;return e.isAuthenticated()&&(r+="_"+e.uid),r}function gu(t,e){return"firestore_targets_"+t+"_"+e}bu.UNAUTHENTICATED=new bu(null),bu.GOOGLE_CREDENTIALS=new bu("google-credentials-uid"),bu.FIRST_PARTY=new bu("first-party-uid");var yu=function(){function t(t,e,n,r){this.user=t,this.batchId=e,this.state=n,this.error=r}return t.Vs=function(e,n,r){var i,o=JSON.parse(r),a="object"==typeof o&&-1!==["pending","acknowledged","rejected"].indexOf(o.state)&&(void 0===o.error||"object"==typeof o.error);return a&&o.error&&(a="string"==typeof o.error.message&&"string"==typeof o.error.code)&&(i=new Ar(o.error.code,o.error.message)),a?new t(e,n,o.state,i):(Nr("SharedClientState","Failed to parse mutation state for ID '"+n+"': "+r),null)},t.prototype.Ss=function(){var t={state:this.state,updateTimeMs:Date.now()};return this.error&&(t.error={code:this.error.code,message:this.error.message}),JSON.stringify(t)},t}(),wu=function(){function t(t,e,n){this.targetId=t,this.state=e,this.error=n}return t.Vs=function(e,n){var r,i=JSON.parse(n),o="object"==typeof i&&-1!==["not-current","current","rejected"].indexOf(i.state)&&(void 0===i.error||"object"==typeof i.error);return o&&i.error&&(o="string"==typeof i.error.message&&"string"==typeof i.error.code)&&(r=new Ar(i.error.code,i.error.message)),o?new t(e,i.state,r):(Nr("SharedClientState","Failed to parse target state for ID '"+e+"': "+n),null)},t.prototype.Ss=function(){var t={state:this.state,updateTimeMs:Date.now()};return this.error&&(t.error={code:this.error.code,message:this.error.message}),JSON.stringify(t)},t}(),_u=function(){function t(t,e){this.clientId=t,this.activeTargetIds=e}return t.Vs=function(e,n){for(var r=JSON.parse(n),i="object"==typeof r&&r.activeTargetIds instanceof Array,o=fa(),a=0;i&&a0){var r=a.getResponseJson().error;if(r&&r.status&&r.message){var s=function(t){var e=t.toLowerCase().replace(/_/g,"-");return Object.values(Ir).indexOf(e)>=0?e:Ir.UNKNOWN}(r.status);o(new Ar(s,r.message))}else o(new Ar(Ir.UNKNOWN,"Server responded with status "+a.getStatus()))}else o(new Ar(Ir.UNAVAILABLE,"Connection failed."));break;default:Fr()}}finally{Lr("Connection",'RPC "'+t+'" completed.')}});var s=JSON.stringify(r);a.send(e,"POST",s,n,15)})},e.prototype.Oi=function(t,e){var n=[this.Di,"/","google.firestore.v1.Firestore","/",t,"/channel"],r=new gr,i=we(),o={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:"projects/"+this.databaseId.projectId+"/databases/"+this.databaseId.database},sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling,detectBufferingProxy:this.autoDetectLongPolling};this.Fi(o.initMessageHeaders,e),Object(O.n)()||Object(O.p)()||Object(O.l)()||Object(O.m)()||Object(O.q)()||Object(O.k)()||(o.httpHeadersOverwriteParam="$httpHeaders");var a=n.join("");Lr("Connection","Creating WebChannel: "+a,o);var s=r.createWebChannel(a,o),c=!1,u=!1,l=new Tu({Ei:function(t){u?Lr("Connection","Not sending because WebChannel is closed:",t):(c||(Lr("Connection","Opening WebChannel transport."),s.open(),c=!0),Lr("Connection","WebChannel sending:",t),s.send(t))},Ti:function(){return s.close()}}),h=function(t,e,n){t.listen(e,function(t){try{n(t)}catch(t){setTimeout(function(){throw t},0)}})};return h(s,Er.EventType.OPEN,function(){u||Lr("Connection","WebChannel transport opened.")}),h(s,Er.EventType.CLOSE,function(){u||(u=!0,Lr("Connection","WebChannel transport closed"),l.Vi())}),h(s,Er.EventType.ERROR,function(t){u||(u=!0,Dr("Connection","WebChannel transport errored:",t),l.Vi(new Ar(Ir.UNAVAILABLE,"The operation could not be completed")))}),h(s,Er.EventType.MESSAGE,function(t){var e;if(!u){var n=t.data[0];Vr(!!n);var r=n.error||(null===(e=n[0])||void 0===e?void 0:e.error);if(r){Lr("Connection","WebChannel received error:",r);var i=r.status,o=function(t){var e=Ho[t];if(void 0!==e)return Zo(e)}(i),a=r.message;void 0===o&&(o=Ir.INTERNAL,a="Unknown error status: "+i+" with message "+r.message),u=!0,l.Vi(new Ar(o,a)),s.close()}else Lr("Connection","WebChannel received:",n),l.Si(n)}}),h(i,Sr.STAT_EVENT,function(t){10===t.stat?Lr("Connection","Detected buffering proxy"):11===t.stat&&Lr("Connection","Detected no buffering proxy")}),setTimeout(function(){l.Pi()},0),l},e}(function(){function t(t){this.databaseInfo=t,this.databaseId=t.databaseId,this.Di=(t.ssl?"https":"http")+"://"+t.host,this.Ci="projects/"+this.databaseId.projectId+"/databases/"+this.databaseId.database+"/documents"}return t.prototype.Ni=function(t,e,n,r){var i=this.xi(t,e);Lr("RestConnection","Sending: ",i,n);var o={};return this.Fi(o,r),this.ki(t,i,o,n).then(function(t){return Lr("RestConnection","Received: ",t),t},function(e){throw Dr("RestConnection",t+" failed with error: ",e,"url: ",i,"request:",n),e})},t.prototype.$i=function(t,e,n,r){return this.Ni(t,e,n,r)},t.prototype.Fi=function(t,e){if(t["X-Goog-Api-Client"]="gl-js/ fire/8.6.3",t["Content-Type"]="text/plain",this.databaseInfo.appId&&(t["X-Firebase-GMPID"]=this.databaseInfo.appId),e)for(var n in e.authHeaders)e.authHeaders.hasOwnProperty(n)&&(t[n]=e.authHeaders[n])},t.prototype.xi=function(t,e){return this.Di+"/v1/"+e+":"+ju[t]},t}());function Au(){return"undefined"!=typeof window?window:null}function Ru(){return"undefined"!=typeof document?document:null}function Pu(t){return new Oa(t,!0)}var Lu=function(){function t(t,e,n,r,i){void 0===n&&(n=1e3),void 0===r&&(r=1.5),void 0===i&&(i=6e4),this.Se=t,this.timerId=e,this.Mi=n,this.Li=r,this.Bi=i,this.qi=0,this.Ui=null,this.Qi=Date.now(),this.reset()}return t.prototype.reset=function(){this.qi=0},t.prototype.Ki=function(){this.qi=this.Bi},t.prototype.ji=function(t){var e=this;this.cancel();var n=Math.floor(this.qi+this.Wi()),r=Math.max(0,Date.now()-this.Qi),i=Math.max(0,n-r);i>0&&Lr("ExponentialBackoff","Backing off for "+i+" ms (base delay: "+this.qi+" ms, delay with jitter: "+n+" ms, last attempt: "+r+" ms ago)"),this.Ui=this.Se.enqueueAfterDelay(this.timerId,i,function(){return e.Qi=Date.now(),t()}),this.qi*=this.Li,this.qithis.Bi&&(this.qi=this.Bi)},t.prototype.Gi=function(){null!==this.Ui&&(this.Ui.skipDelay(),this.Ui=null)},t.prototype.cancel=function(){null!==this.Ui&&(this.Ui.cancel(),this.Ui=null)},t.prototype.Wi=function(){return(Math.random()-.5)*this.qi},t}(),Nu=function(){function t(t,e,n,r,i,o){this.Se=t,this.zi=n,this.Hi=r,this.Ji=i,this.listener=o,this.state=0,this.Yi=0,this.Xi=null,this.stream=null,this.Zi=new Lu(t,e)}return t.prototype.tr=function(){return 1===this.state||2===this.state||4===this.state},t.prototype.er=function(){return 2===this.state},t.prototype.start=function(){3!==this.state?this.auth():this.nr()},t.prototype.stop=function(){return Object(jr.b)(this,void 0,void 0,function(){return Object(jr.e)(this,function(t){switch(t.label){case 0:return this.tr()?[4,this.close(0)]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}})})},t.prototype.sr=function(){this.state=0,this.Zi.reset()},t.prototype.ir=function(){var t=this;this.er()&&null===this.Xi&&(this.Xi=this.Se.enqueueAfterDelay(this.zi,6e4,function(){return t.rr()}))},t.prototype.cr=function(t){this.ur(),this.stream.send(t)},t.prototype.rr=function(){return Object(jr.b)(this,void 0,void 0,function(){return Object(jr.e)(this,function(t){return this.er()?[2,this.close(0)]:[2]})})},t.prototype.ur=function(){this.Xi&&(this.Xi.cancel(),this.Xi=null)},t.prototype.close=function(t,e){return Object(jr.b)(this,void 0,void 0,function(){return Object(jr.e)(this,function(n){switch(n.label){case 0:return this.ur(),this.Zi.cancel(),this.Yi++,3!==t?this.Zi.reset():e&&e.code===Ir.RESOURCE_EXHAUSTED?(Nr(e.toString()),Nr("Using maximum backoff delay to prevent overloading the backend."),this.Zi.Ki()):e&&e.code===Ir.UNAUTHENTICATED&&this.Ji.invalidateToken(),null!==this.stream&&(this.ar(),this.stream.close(),this.stream=null),this.state=t,[4,this.listener.Ri(e)];case 1:return n.sent(),[2]}})})},t.prototype.ar=function(){},t.prototype.auth=function(){var t=this;this.state=1;var e=this.hr(this.Yi),n=this.Yi;this.Ji.getToken().then(function(e){t.Yi===n&&t.lr(e)},function(n){e(function(){var e=new Ar(Ir.UNKNOWN,"Fetching auth token failed: "+n.message);return t.dr(e)})})},t.prototype.lr=function(t){var e=this,n=this.hr(this.Yi);this.stream=this.wr(t),this.stream.Ii(function(){n(function(){return e.state=2,e.listener.Ii()})}),this.stream.Ri(function(t){n(function(){return e.dr(t)})}),this.stream.onMessage(function(t){n(function(){return e.onMessage(t)})})},t.prototype.nr=function(){var t=this;this.state=4,this.Zi.ji(function(){return Object(jr.b)(t,void 0,void 0,function(){return Object(jr.e)(this,function(t){return this.state=0,this.start(),[2]})})})},t.prototype.dr=function(t){return Lr("PersistentStream","close with error: "+t),this.stream=null,this.close(3,t)},t.prototype.hr=function(t){var e=this;return function(n){e.Se.enqueueAndForget(function(){return e.Yi===t?n():(Lr("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve())})}},t}(),Du=function(t){function e(e,n,r,i,o){var a=this;return(a=t.call(this,e,"listen_stream_connection_backoff","listen_stream_idle",n,r,o)||this).R=i,a}return Object(jr.d)(e,t),e.prototype.wr=function(t){return this.Hi.Oi("Listen",t)},e.prototype.onMessage=function(t){this.Zi.reset();var e=function(t,e){var n;if("targetChange"in e){var r=function(t){return"NO_CHANGE"===t?0:"ADD"===t?1:"REMOVE"===t?2:"CURRENT"===t?3:"RESET"===t?4:Fr()}(e.targetChange.targetChangeType||"NO_CHANGE"),i=e.targetChange.targetIds||[],o=function(t,e){return t.I?(Vr(void 0===e||"string"==typeof e),ni.fromBase64String(e||"")):(Vr(void 0===e||e instanceof Uint8Array),ni.fromUint8Array(e||new Uint8Array))}(t,e.targetChange.resumeToken),a=(s=e.targetChange.cause)&&function(t){var e=void 0===t.code?Ir.UNKNOWN:Zo(t.code);return new Ar(e,t.message||"")}(s);n=new va(r,i,o,a||null)}else if("documentChange"in e){i=Ra(t,(r=e.documentChange).document.name),o=ja(r.document.updateTime);var s=new ji({mapValue:{fields:r.document.fields}}),c=(a=Ii.newFoundDocument(i,o,s),r.targetIds||[]);n=new ba(c,r.removedTargetIds||[],a.key,a)}else if("documentDelete"in e)i=Ra(t,(r=e.documentDelete).document),o=r.readTime?ja(r.readTime):Gr.min(),s=Ii.newNoDocument(i,o),n=new ba([],a=r.removedTargetIds||[],s.key,s);else if("documentRemove"in e)i=Ra(t,(r=e.documentRemove).document),n=new ba([],o=r.removedTargetIds||[],i,null);else{if(!("filter"in e))return Fr();var u=e.filter;i=new Wo(r=u.count||0),n=new ma(o=u.targetId,i)}return n}(this.R,t),n=function(t){if(!("targetChange"in t))return Gr.min();var e=t.targetChange;return e.targetIds&&e.targetIds.length?Gr.min():e.readTime?ja(e.readTime):Gr.min()}(t);return this.listener._r(e,n)},e.prototype.mr=function(t){var e={};e.database=Na(this.R),e.addTarget=function(t,e){var n,r=e.target;return(n=Ni(r)?{documents:Ba(t,r)}:{query:qa(t,r)}).targetId=e.targetId,e.resumeToken.approximateByteSize()>0?n.resumeToken=Ea(t,e.resumeToken):e.snapshotVersion.compareTo(Gr.min())>0&&(n.readTime=Sa(t,e.snapshotVersion.toTimestamp())),n}(this.R,t);var n=function(t,e){var n=function(t,e){switch(e){case 0:return null;case 1:return"existence-filter-mismatch";case 2:return"limbo-document";default:return Fr()}}(0,e.purpose);return null==n?null:{"goog-listen-tags":n}}(0,t);n&&(e.labels=n),this.cr(e)},e.prototype.yr=function(t){var e={};e.database=Na(this.R),e.removeTarget=t,this.cr(e)},e}(Nu),Mu=function(t){function e(e,n,r,i,o){var a=this;return(a=t.call(this,e,"write_stream_connection_backoff","write_stream_idle",n,r,o)||this).R=i,a.gr=!1,a}return Object(jr.d)(e,t),Object.defineProperty(e.prototype,"pr",{get:function(){return this.gr},enumerable:!1,configurable:!0}),e.prototype.start=function(){this.gr=!1,this.lastStreamToken=void 0,t.prototype.start.call(this)},e.prototype.ar=function(){this.gr&&this.Er([])},e.prototype.wr=function(t){return this.Hi.Oi("Write",t)},e.prototype.onMessage=function(t){if(Vr(!!t.streamToken),this.lastStreamToken=t.streamToken,this.gr){this.Zi.reset();var e=function(t,e){return t&&t.length>0?(Vr(void 0!==e),t.map(function(t){return function(t,e){var n=ja(t.updateTime?t.updateTime:e);return n.isEqual(Gr.min())&&(n=ja(e)),new Ao(n,t.transformResults||[])}(t,e)})):[]}(t.writeResults,t.commitTime),n=ja(t.commitTime);return this.listener.Tr(n,e)}return Vr(!t.writeResults||0===t.writeResults.length),this.gr=!0,this.listener.Ir()},e.prototype.Ar=function(){var t={};t.database=Na(this.R),this.cr(t)},e.prototype.Er=function(t){var e=this,n={streamToken:this.lastStreamToken,writes:t.map(function(t){return Va(e.R,t)})};this.cr(n)},e}(Nu),Fu=function(t){function e(e,n,r){var i=this;return(i=t.call(this)||this).credentials=e,i.Hi=n,i.R=r,i.Rr=!1,i}return Object(jr.d)(e,t),e.prototype.br=function(){if(this.Rr)throw new Ar(Ir.FAILED_PRECONDITION,"The client has already been terminated.")},e.prototype.Ni=function(t,e,n){var r=this;return this.br(),this.credentials.getToken().then(function(i){return r.Hi.Ni(t,e,n,i)}).catch(function(t){throw"FirebaseError"===t.name?(t.code===Ir.UNAUTHENTICATED&&r.credentials.invalidateToken(),t):new Ar(Ir.UNKNOWN,t.toString())})},e.prototype.$i=function(t,e,n){var r=this;return this.br(),this.credentials.getToken().then(function(i){return r.Hi.$i(t,e,n,i)}).catch(function(t){throw"FirebaseError"===t.name?(t.code===Ir.UNAUTHENTICATED&&r.credentials.invalidateToken(),t):new Ar(Ir.UNKNOWN,t.toString())})},e.prototype.terminate=function(){this.Rr=!0},e}(function(){}),Vu=function(){function t(t,e){this.asyncQueue=t,this.onlineStateHandler=e,this.state="Unknown",this.vr=0,this.Pr=null,this.Vr=!0}return t.prototype.Sr=function(){var t=this;0===this.vr&&(this.Dr("Unknown"),this.Pr=this.asyncQueue.enqueueAfterDelay("online_state_timeout",1e4,function(){return t.Pr=null,t.Cr("Backend didn't respond within 10 seconds."),t.Dr("Offline"),Promise.resolve()}))},t.prototype.Nr=function(t){"Online"===this.state?this.Dr("Unknown"):(this.vr++,this.vr>=1&&(this.Fr(),this.Cr("Connection failed 1 times. Most recent error: "+t.toString()),this.Dr("Offline")))},t.prototype.set=function(t){this.Fr(),this.vr=0,"Online"===t&&(this.Vr=!1),this.Dr(t)},t.prototype.Dr=function(t){t!==this.state&&(this.state=t,this.onlineStateHandler(t))},t.prototype.Cr=function(t){var e="Could not reach Cloud Firestore backend. "+t+"\nThis typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.";this.Vr?(Nr(e),this.Vr=!1):Lr("OnlineStateTracker",e)},t.prototype.Fr=function(){null!==this.Pr&&(this.Pr.cancel(),this.Pr=null)},t}(),Uu=function(t,e,n,r,i){var o=this;this.localStore=t,this.datastore=e,this.asyncQueue=n,this.remoteSyncer={},this.kr=[],this.$r=new Map,this.Or=new Set,this.Mr=[],this.Lr=i,this.Lr.di(function(t){n.enqueueAndForget(function(){return Object(jr.b)(o,void 0,void 0,function(){return Object(jr.e)(this,function(t){switch(t.label){case 0:return Wu(this)?(Lr("RemoteStore","Restarting streams for network reachability change."),[4,function(t){return Object(jr.b)(this,void 0,void 0,function(){var e;return Object(jr.e)(this,function(n){switch(n.label){case 0:return(e=Ur(t)).Or.add(4),[4,qu(e)];case 1:return n.sent(),e.Br.set("Unknown"),e.Or.delete(4),[4,Bu(e)];case 2:return n.sent(),[2]}})})}(this)]):[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}})})})}),this.Br=new Vu(n,r)};function Bu(t){return Object(jr.b)(this,void 0,void 0,function(){var e,n;return Object(jr.e)(this,function(r){switch(r.label){case 0:if(!Wu(t))return[3,4];e=0,n=t.Mr,r.label=1;case 1:return e0}function Wu(t){return 0===Ur(t).Or.size}function Qu(t){t.qr=void 0}function Zu(t){return Object(jr.b)(this,void 0,void 0,function(){return Object(jr.e)(this,function(e){return t.$r.forEach(function(e,n){Hu(t,e)}),[2]})})}function Ju(t,e){return Object(jr.b)(this,void 0,void 0,function(){return Object(jr.e)(this,function(n){return Qu(t),Ku(t)?(t.Br.Nr(e),Gu(t)):t.Br.set("Unknown"),[2]})})}function $u(t,e,n){return Object(jr.b)(this,void 0,void 0,function(){var r,i,o;return Object(jr.e)(this,function(a){switch(a.label){case 0:if(t.Br.set("Online"),!(e instanceof va&&2===e.state&&e.cause))return[3,6];a.label=1;case 1:return a.trys.push([1,3,,5]),[4,function(t,e){return Object(jr.b)(this,void 0,void 0,function(){var n,r,i,o;return Object(jr.e)(this,function(a){switch(a.label){case 0:n=e.cause,r=0,i=e.targetIds,a.label=1;case 1:return r=0?[4,function(t,e){var n=t.qr.ut(e);return n.targetChanges.forEach(function(n,r){if(n.resumeToken.approximateByteSize()>0){var i=t.$r.get(r);i&&t.$r.set(r,i.withResumeToken(n.resumeToken,e))}}),n.targetMismatches.forEach(function(e){var n=t.$r.get(e);if(n){t.$r.set(e,n.withResumeToken(ni.EMPTY_BYTE_STRING,n.snapshotVersion)),Yu(t,e);var r=new Vs(n.target,e,1,n.sequenceNumber);Hu(t,r)}}),t.remoteSyncer.applyRemoteEvent(n)}(t,n)]:[3,10];case 9:a.sent(),a.label=10;case 10:return[3,13];case 11:return Lr("RemoteStore","Failed to raise snapshot:",o=a.sent()),[4,tl(t,o)];case 12:return a.sent(),[3,13];case 13:return[2]}})})}function tl(t,e,n){return Object(jr.b)(this,void 0,void 0,function(){var r=this;return Object(jr.e)(this,function(i){switch(i.label){case 0:if(!Is(e))throw e;return t.Or.add(1),[4,qu(t)];case 1:return i.sent(),t.Br.set("Offline"),n||(n=function(){return Gc(t.localStore)}),t.asyncQueue.enqueueRetryable(function(){return Object(jr.b)(r,void 0,void 0,function(){return Object(jr.e)(this,function(e){switch(e.label){case 0:return Lr("RemoteStore","Retrying IndexedDB access"),[4,n()];case 1:return e.sent(),t.Or.delete(1),[4,Bu(t)];case 2:return e.sent(),[2]}})})}),[2]}})})}function el(t,e){return e().catch(function(n){return tl(t,n,e)})}function nl(t){return Object(jr.b)(this,void 0,void 0,function(){var e,n,r,i,o;return Object(jr.e)(this,function(a){switch(a.label){case 0:e=Ur(t),n=hl(e),r=e.kr.length>0?e.kr[e.kr.length-1].batchId:-1,a.label=1;case 1:if(!function(t){return Wu(t)&&t.kr.length<10}(e))return[3,7];a.label=2;case 2:return a.trys.push([2,4,,6]),[4,Qc(e.localStore,r)];case 3:return null===(i=a.sent())?(0===e.kr.length&&n.ir(),[3,7]):(r=i.batchId,function(t,e){t.kr.push(e);var n=hl(t);n.er()&&n.pr&&n.Er(e.mutations)}(e,i),[3,6]);case 4:return o=a.sent(),[4,tl(e,o)];case 5:return a.sent(),[3,6];case 6:return[3,1];case 7:return rl(e)&&il(e),[2]}})})}function rl(t){return Wu(t)&&!hl(t).tr()&&t.kr.length>0}function il(t){hl(t).start()}function ol(t){return Object(jr.b)(this,void 0,void 0,function(){return Object(jr.e)(this,function(e){return hl(t).Ar(),[2]})})}function al(t){return Object(jr.b)(this,void 0,void 0,function(){var e,n,r;return Object(jr.e)(this,function(i){for(e=hl(t),n=0,r=t.kr;n0&&(Lr("RemoteStore","Stopping write stream with "+t.kr.length+" pending writes"),t.kr=[]),e.label=4;case 4:return[2]}})})})),t.Qr}var fl=function(){function t(t,e,n,r,i){this.asyncQueue=t,this.timerId=e,this.targetTimeMs=n,this.op=r,this.removalCallback=i,this.deferred=new Os,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.deferred.promise.catch(function(t){})}return t.createAndSchedule=function(e,n,r,i,o){var a=new t(e,n,Date.now()+r,i,o);return a.start(r),a},t.prototype.start=function(t){var e=this;this.timerHandle=setTimeout(function(){return e.handleDelayElapsed()},t)},t.prototype.skipDelay=function(){return this.handleDelayElapsed()},t.prototype.cancel=function(t){null!==this.timerHandle&&(this.clearTimeout(),this.deferred.reject(new Ar(Ir.CANCELLED,"Operation cancelled"+(t?": "+t:""))))},t.prototype.handleDelayElapsed=function(){var t=this;this.asyncQueue.enqueueAndForget(function(){return null!==t.timerHandle?(t.clearTimeout(),t.op().then(function(e){return t.deferred.resolve(e)})):Promise.resolve()})},t.prototype.clearTimeout=function(){null!==this.timerHandle&&(this.removalCallback(this),clearTimeout(this.timerHandle),this.timerHandle=null)},t}();function dl(t,e){if(Nr("AsyncQueue",e+": "+t),Is(t))return new Ar(Ir.UNAVAILABLE,e+": "+t);throw t}var pl=function(){function t(t){this.comparator=t?function(e,n){return t(e,n)||di.comparator(e.key,n.key)}:function(t,e){return di.comparator(t.key,e.key)},this.keyedMap=aa(),this.sortedSet=new Jo(this.comparator)}return t.emptySet=function(e){return new t(e.comparator)},t.prototype.has=function(t){return null!=this.keyedMap.get(t)},t.prototype.get=function(t){return this.keyedMap.get(t)},t.prototype.first=function(){return this.sortedSet.minKey()},t.prototype.last=function(){return this.sortedSet.maxKey()},t.prototype.isEmpty=function(){return this.sortedSet.isEmpty()},t.prototype.indexOf=function(t){var e=this.keyedMap.get(t);return e?this.sortedSet.indexOf(e):-1},Object.defineProperty(t.prototype,"size",{get:function(){return this.sortedSet.size},enumerable:!1,configurable:!0}),t.prototype.forEach=function(t){this.sortedSet.inorderTraversal(function(e,n){return t(e),!1})},t.prototype.add=function(t){var e=this.delete(t.key);return e.copy(e.keyedMap.insert(t.key,t),e.sortedSet.insert(t,null))},t.prototype.delete=function(t){var e=this.get(t);return e?this.copy(this.keyedMap.remove(t),this.sortedSet.remove(e)):this},t.prototype.isEqual=function(e){if(!(e instanceof t))return!1;if(this.size!==e.size)return!1;for(var n=this.sortedSet.getIterator(),r=e.sortedSet.getIterator();n.hasNext();){var i=n.getNext().key,o=r.getNext().key;if(!i.isEqual(o))return!1}return!0},t.prototype.toString=function(){var t=[];return this.forEach(function(e){t.push(e.toString())}),0===t.length?"DocumentSet ()":"DocumentSet (\n "+t.join(" \n")+"\n)"},t.prototype.copy=function(e,n){var r=new t;return r.comparator=this.comparator,r.keyedMap=e,r.sortedSet=n,r},t}(),bl=function(){function t(){this.Kr=new Jo(di.comparator)}return t.prototype.track=function(t){var e=t.doc.key,n=this.Kr.get(e);n?0!==t.type&&3===n.type?this.Kr=this.Kr.insert(e,t):3===t.type&&1!==n.type?this.Kr=this.Kr.insert(e,{type:n.type,doc:t.doc}):2===t.type&&2===n.type?this.Kr=this.Kr.insert(e,{type:2,doc:t.doc}):2===t.type&&0===n.type?this.Kr=this.Kr.insert(e,{type:0,doc:t.doc}):1===t.type&&0===n.type?this.Kr=this.Kr.remove(e):1===t.type&&2===n.type?this.Kr=this.Kr.insert(e,{type:1,doc:n.doc}):0===t.type&&1===n.type?this.Kr=this.Kr.insert(e,{type:2,doc:t.doc}):Fr():this.Kr=this.Kr.insert(e,t)},t.prototype.jr=function(){var t=[];return this.Kr.inorderTraversal(function(e,n){t.push(n)}),t},t}(),ml=function(){function t(t,e,n,r,i,o,a,s){this.query=t,this.docs=e,this.oldDocs=n,this.docChanges=r,this.mutatedKeys=i,this.fromCache=o,this.syncStateChanged=a,this.excludesMetadataChanges=s}return t.fromInitialDocuments=function(e,n,r,i){var o=[];return n.forEach(function(t){o.push({type:0,doc:t})}),new t(e,n,pl.emptySet(n),o,r,i,!0,!1)},Object.defineProperty(t.prototype,"hasPendingWrites",{get:function(){return!this.mutatedKeys.isEmpty()},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(t){if(!(this.fromCache===t.fromCache&&this.syncStateChanged===t.syncStateChanged&&this.mutatedKeys.isEqual(t.mutatedKeys)&&co(this.query,t.query)&&this.docs.isEqual(t.docs)&&this.oldDocs.isEqual(t.oldDocs)))return!1;var e=this.docChanges,n=t.docChanges;if(e.length!==n.length)return!1;for(var r=0;r=0&&(o.listeners.splice(a,1),i=0===o.listeners.length),i?[2,(n.queries.delete(r),n.onUnlisten(r))]:[2]})})}function _l(t,e){for(var n=Ur(t),r=!1,i=0,o=e;i0||!!(t.syncStateChanged||this.Xr&&this.Xr.hasPendingWrites!==t.hasPendingWrites)&&!0===this.options.includeMetadataChanges},t.prototype.no=function(t){t=ml.fromInitialDocuments(t.query,t.docs,t.mutatedKeys,t.fromCache),this.Yr=!0,this.Jr.next(t)},t}(),Sl=function(){function t(t,e){this.payload=t,this.byteLength=e}return t.prototype.io=function(){return"metadata"in this.payload},t}(),El=function(){function t(t){this.R=t}return t.prototype.qn=function(t){return Ra(this.R,t)},t.prototype.Un=function(t){return t.metadata.exists?Fa(this.R,t.document,!1):Ii.newNoDocument(this.qn(t.metadata.name),this.Qn(t.metadata.readTime))},t.prototype.Qn=function(t){return ja(t)},t}();!function(){function t(t,e,n){this.ro=t,this.localStore=e,this.R=n,this.queries=[],this.documents=[],this.progress=function(t){return{taskState:"Running",documentsLoaded:0,bytesLoaded:0,totalDocuments:t.totalDocuments,totalBytes:t.totalBytes}}(t)}t.prototype.oo=function(t){this.progress.bytesLoaded+=t.byteLength;var e=this.progress.documentsLoaded;return t.payload.namedQuery?this.queries.push(t.payload.namedQuery):t.payload.documentMetadata?(this.documents.push({metadata:t.payload.documentMetadata}),t.payload.documentMetadata.exists||++e):t.payload.document&&(this.documents[this.documents.length-1].document=t.payload.document,++e),e!==this.progress.documentsLoaded?(this.progress.documentsLoaded=e,Object.assign({},this.progress)):null},t.prototype.co=function(t){for(var e=new Map,n=new El(this.R),r=0,i=t;r0||u&&n.lo(h,u)<0)&&(s=!0)):!l&&h?(r.track({type:0,doc:h}),p=!0):l&&!h&&(r.track({type:1,doc:l}),p=!0,(c||u)&&(s=!0)),p&&(h?(a=a.add(h),o=d?o.add(t):o.delete(t)):(a=a.delete(t),o=o.delete(t)))}),to(this.query)||eo(this.query))for(;a.size>this.query.limit;){var l=to(this.query)?a.last():a.first();a=a.delete(l.key),o=o.delete(l.key),r.track({type:1,doc:l})}return{fo:a,mo:r,Nn:s,mutatedKeys:o}},t.prototype.yo=function(t,e){return t.hasLocalMutations&&e.hasCommittedMutations&&!e.hasLocalMutations},t.prototype.applyChanges=function(t,e,n){var r=this,i=this.fo;this.fo=t.fo,this.mutatedKeys=t.mutatedKeys;var o=t.mo.jr();o.sort(function(t,e){return function(t,e){var n=function(t){switch(t){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return Fr()}};return n(t)-n(e)}(t.type,e.type)||r.lo(t.doc,e.doc)}),this.po(n);var a=e?this.Eo():[],s=0===this.ho.size&&this.current?1:0,c=s!==this.ao;return this.ao=s,0!==o.length||c?{snapshot:new ml(this.query,t.fo,i,o,t.mutatedKeys,0===s,c,!1),To:a}:{To:a}},t.prototype.zr=function(t){return this.current&&"Offline"===t?(this.current=!1,this.applyChanges({fo:this.fo,mo:new bl,mutatedKeys:this.mutatedKeys,Nn:!1},!1)):{To:[]}},t.prototype.Io=function(t){return!this.uo.has(t)&&!!this.fo.has(t)&&!this.fo.get(t).hasLocalMutations},t.prototype.po=function(t){var e=this;t&&(t.addedDocuments.forEach(function(t){return e.uo=e.uo.add(t)}),t.modifiedDocuments.forEach(function(t){}),t.removedDocuments.forEach(function(t){return e.uo=e.uo.delete(t)}),this.current=t.current)},t.prototype.Eo=function(){var t=this;if(!this.current)return[];var e=this.ho;this.ho=la(),this.fo.forEach(function(e){t.Io(e.key)&&(t.ho=t.ho.add(e.key))});var n=[];return e.forEach(function(e){t.ho.has(e)||n.push(new jl(e))}),this.ho.forEach(function(t){e.has(t)||n.push(new Cl(t))}),n},t.prototype.Ao=function(t){this.uo=t.Bn,this.ho=la();var e=this._o(t.documents);return this.applyChanges(e,!0)},t.prototype.Ro=function(){return ml.fromInitialDocuments(this.query,this.fo,this.mutatedKeys,0===this.ao)},t}(),Il=function(t,e,n){this.query=t,this.targetId=e,this.view=n},Al=function(t){this.key=t,this.bo=!1},Rl=function(){function t(t,e,n,r,i,o){this.localStore=t,this.remoteStore=e,this.eventManager=n,this.sharedClientState=r,this.currentUser=i,this.maxConcurrentLimboResolutions=o,this.vo={},this.Po=new Sc(function(t){return uo(t)},co),this.Vo=new Map,this.So=new Set,this.Do=new Jo(di.comparator),this.Co=new Map,this.No=new au,this.xo={},this.Fo=new Map,this.ko=dc.Yt(),this.onlineState="Unknown",this.$o=void 0}return Object.defineProperty(t.prototype,"isPrimaryClient",{get:function(){return!0===this.$o},enumerable:!1,configurable:!0}),t}();function Pl(t,e){return Object(jr.b)(this,void 0,void 0,function(){var n,r,i,o,a;return Object(jr.e)(this,function(s){switch(s.label){case 0:return n=ch(t),(i=n.Po.get(e))?(n.sharedClientState.addLocalQueryTarget(i.targetId),r=i.view.Ro(),[3,4]):[3,1];case 1:return[4,Zc(n.localStore,ao(e))];case 2:return o=s.sent(),a=n.sharedClientState.addLocalQueryTarget(o.targetId),[4,Ll(n,e,o.targetId,"current"===a)];case 3:r=s.sent(),n.isPrimaryClient&&Xu(n.remoteStore,o),s.label=4;case 4:return[2,r]}})})}function Ll(t,e,n,r){return Object(jr.b)(this,void 0,void 0,function(){var i,o,a,s,c,u;return Object(jr.e)(this,function(l){switch(l.label){case 0:return t.Oo=function(e,n,r){return function(t,e,n,r){return Object(jr.b)(this,void 0,void 0,function(){var i,o,a;return Object(jr.e)(this,function(s){switch(s.label){case 0:return(i=e.view._o(n)).Nn?[4,$c(t.localStore,e.query,!1).then(function(t){return e.view._o(t.documents,i)})]:[3,2];case 1:i=s.sent(),s.label=2;case 2:return o=r&&r.targetChanges.get(e.targetId),a=e.view.applyChanges(i,t.isPrimaryClient,o),[2,(Gl(t,e.targetId,a.To),a.snapshot)]}})})}(t,e,n,r)},[4,$c(t.localStore,e,!0)];case 1:return i=l.sent(),o=new Tl(e,i.Bn),a=o._o(i.documents),s=pa.createSynthesizedTargetChangeForCurrentChange(n,r&&"Offline"!==t.onlineState),c=o.applyChanges(a,t.isPrimaryClient,s),Gl(t,n,c.To),u=new Il(e,n,o),[2,(t.Po.set(e,u),t.Vo.has(n)?t.Vo.get(n).push(e):t.Vo.set(n,[e]),c.snapshot)]}})})}function Nl(t,e){return Object(jr.b)(this,void 0,void 0,function(){var n,r,i;return Object(jr.e)(this,function(o){switch(o.label){case 0:return n=Ur(t),r=n.Po.get(e),(i=n.Vo.get(r.targetId)).length>1?[2,(n.Vo.set(r.targetId,i.filter(function(t){return!co(t,e)})),void n.Po.delete(e))]:n.isPrimaryClient?(n.sharedClientState.removeLocalQueryTarget(r.targetId),n.sharedClientState.isActiveQueryTarget(r.targetId)?[3,2]:[4,Jc(n.localStore,r.targetId,!1).then(function(){n.sharedClientState.clearQueryState(r.targetId),zu(n.remoteStore,r.targetId),Hl(n,r.targetId)}).catch(gc)]):[3,3];case 1:o.sent(),o.label=2;case 2:return[3,5];case 3:return Hl(n,r.targetId),[4,Jc(n.localStore,r.targetId,!0)];case 4:o.sent(),o.label=5;case 5:return[2]}})})}function Dl(t,e,n){return Object(jr.b)(this,void 0,void 0,function(){var r,i,o,a;return Object(jr.e)(this,function(s){switch(s.label){case 0:r=uh(t),s.label=1;case 1:return s.trys.push([1,5,,6]),[4,function(t,e){var n,r=Ur(t),i=Yr.now(),o=e.reduce(function(t,e){return t.add(e.key)},la());return r.persistence.runTransaction("Locally write mutations","readwrite",function(t){return r.Mn.pn(t,o).next(function(o){n=o;for(var a=[],s=0,c=e;s0?r.bo=!0:t.modifiedDocuments.size>0?Vr(r.bo):t.removedDocuments.size>0&&(Vr(r.bo),r.bo=!1))}),[4,Ql(n,r,e)];case 3:return i.sent(),[3,6];case 4:return[4,gc(i.sent())];case 5:return i.sent(),[3,6];case 6:return[2]}})})}function Fl(t,e,n){var r=Ur(t);if(r.isPrimaryClient&&0===n||!r.isPrimaryClient&&1===n){var i=[];r.Po.forEach(function(t,n){var r=n.view.zr(e);r.snapshot&&i.push(r.snapshot)}),function(t,e){var n=Ur(t);n.onlineState=e;var r=!1;n.queries.forEach(function(t,n){for(var i=0,o=n.listeners;i0&&t.Do.size0)throw new Ar(Ir.INVALID_ARGUMENT,"Firestore transactions require all reads to be executed before all writes.");return[4,function(t,e){return Object(jr.b)(this,void 0,void 0,function(){var n,r,i,o,a,s;return Object(jr.e)(this,function(c){switch(c.label){case 0:return n=Ur(t),r=Na(n.R)+"/documents",i={documents:e.map(function(t){return Aa(n.R,t)})},[4,n.$i("BatchGetDocuments",r,i)];case 1:return o=c.sent(),a=new Map,o.forEach(function(t){var e=function(t,e){return"found"in e?function(t,e){Vr(!!e.found);var n=Ra(t,e.found.name),r=ja(e.found.updateTime),i=new ji({mapValue:{fields:e.found.fields}});return Ii.newFoundDocument(n,r,i)}(t,e):"missing"in e?function(t,e){Vr(!!e.missing),Vr(!!e.readTime);var n=Ra(t,e.missing),r=ja(e.readTime);return Ii.newNoDocument(n,r)}(t,e):Fr()}(n.R,t);a.set(e.key.toString(),e)}),s=[],[2,(e.forEach(function(t){var e=a.get(t.toString());Vr(!!e),s.push(e)}),s)]}})})}(this.datastore,t)];case 1:return[2,((e=r.sent()).forEach(function(t){return n.recordVersion(t)}),e)]}})})},t.prototype.set=function(t,e){this.write(e.toMutation(t,this.precondition(t))),this.writtenDocs.add(t.toString())},t.prototype.update=function(t,e){try{this.write(e.toMutation(t,this.preconditionForUpdate(t)))}catch(t){this.lastWriteError=t}this.writtenDocs.add(t.toString())},t.prototype.delete=function(t){this.write(new Go(t,this.precondition(t))),this.writtenDocs.add(t.toString())},t.prototype.commit=function(){return Object(jr.b)(this,void 0,void 0,function(){var t,e=this;return Object(jr.e)(this,function(n){switch(n.label){case 0:if(this.ensureCommitNotCalled(),this.lastWriteError)throw this.lastWriteError;return t=this.readVersions,this.mutations.forEach(function(e){t.delete(e.key.toString())}),t.forEach(function(t,n){var r=di.fromPath(n);e.mutations.push(new Ko(r,e.precondition(r)))}),[4,function(t,e){return Object(jr.b)(this,void 0,void 0,function(){var n,r,i;return Object(jr.e)(this,function(o){switch(o.label){case 0:return n=Ur(t),r=Na(n.R)+"/documents",i={writes:e.map(function(t){return Va(n.R,t)})},[4,n.Ni("Commit",r,i)];case 1:return o.sent(),[2]}})})}(this.datastore,this.mutations)];case 1:return n.sent(),this.committed=!0,[2]}})})},t.prototype.recordVersion=function(t){var e;if(t.isFoundDocument())e=t.version;else{if(!t.isNoDocument())throw Fr();e=Gr.min()}var n=this.readVersions.get(t.key.toString());if(n){if(!e.isEqual(n))throw new Ar(Ir.ABORTED,"Document version changed between two reads.")}else this.readVersions.set(t.key.toString(),e)},t.prototype.precondition=function(t){var e=this.readVersions.get(t.toString());return!this.writtenDocs.has(t.toString())&&e?Ro.updateTime(e):Ro.none()},t.prototype.preconditionForUpdate=function(t){var e=this.readVersions.get(t.toString());if(!this.writtenDocs.has(t.toString())&&e){if(e.isEqual(Gr.min()))throw new Ar(Ir.INVALID_ARGUMENT,"Can't update a document that doesn't exist.");return Ro.updateTime(e)}return Ro.exists(!0)},t.prototype.write=function(t){this.ensureCommitNotCalled(),this.mutations.push(t)},t.prototype.ensureCommitNotCalled=function(){},t}()),mh=function(){function t(t,e,n,r){this.asyncQueue=t,this.datastore=e,this.updateFunction=n,this.deferred=r,this.ec=5,this.Zi=new Lu(this.asyncQueue,"transaction_retry")}return t.prototype.run=function(){this.nc()},t.prototype.nc=function(){var t=this;this.Zi.ji(function(){return Object(jr.b)(t,void 0,void 0,function(){var t,e,n=this;return Object(jr.e)(this,function(r){return t=new bh(this.datastore),(e=this.sc(t))&&e.then(function(e){n.asyncQueue.enqueueAndForget(function(){return t.commit().then(function(){n.deferred.resolve(e)}).catch(function(t){n.ic(t)})})}).catch(function(t){n.ic(t)}),[2]})})})},t.prototype.sc=function(t){try{var e=this.updateFunction(t);return!li(e)&&e.catch&&e.then?e:(this.deferred.reject(Error("Transaction callback must return a Promise")),null)}catch(t){return this.deferred.reject(t),null}},t.prototype.ic=function(t){var e=this;this.ec>0&&this.rc(t)?(this.ec-=1,this.asyncQueue.enqueueAndForget(function(){return e.nc(),Promise.resolve()})):this.deferred.reject(t)},t.prototype.rc=function(t){if("FirebaseError"===t.name){var e=t.code;return"aborted"===e||"failed-precondition"===e||!Qo(e)}return!1},t}(),vh=function(){function t(t,e,n){var r=this;this.credentials=t,this.asyncQueue=e,this.databaseInfo=n,this.user=bu.UNAUTHENTICATED,this.clientId=qr.u(),this.credentialListener=function(){return Promise.resolve()},this.credentials.setChangeListener(e,function(t){return Object(jr.b)(r,void 0,void 0,function(){return Object(jr.e)(this,function(e){switch(e.label){case 0:return Lr("FirestoreClient","Received user=",t.uid),[4,this.credentialListener(t)];case 1:return e.sent(),this.user=t,[2]}})})})}return t.prototype.getConfiguration=function(){return Object(jr.b)(this,void 0,void 0,function(){return Object(jr.e)(this,function(t){return[2,{asyncQueue:this.asyncQueue,databaseInfo:this.databaseInfo,clientId:this.clientId,credentials:this.credentials,initialUser:this.user,maxConcurrentLimboResolutions:100}]})})},t.prototype.setCredentialChangeListener=function(t){this.credentialListener=t},t.prototype.verifyNotTerminated=function(){if(this.asyncQueue.isShuttingDown)throw new Ar(Ir.FAILED_PRECONDITION,"The client has already been terminated.")},t.prototype.terminate=function(){var t=this;this.asyncQueue.enterRestrictedMode();var e=new Os;return this.asyncQueue.enqueueAndForgetEvenWhileRestricted(function(){return Object(jr.b)(t,void 0,void 0,function(){var t,n;return Object(jr.e)(this,function(r){switch(r.label){case 0:return r.trys.push([0,5,,6]),this.onlineComponents?[4,this.onlineComponents.terminate()]:[3,2];case 1:r.sent(),r.label=2;case 2:return this.offlineComponents?[4,this.offlineComponents.terminate()]:[3,4];case 3:r.sent(),r.label=4;case 4:return this.credentials.removeChangeListener(),e.resolve(),[3,6];case 5:return t=r.sent(),n=dl(t,"Failed to shutdown persistence"),e.reject(n),[3,6];case 6:return[2]}})})}),e.promise},t}();function gh(t,e){return Object(jr.b)(this,void 0,void 0,function(){var n,r,i=this;return Object(jr.e)(this,function(o){switch(o.label){case 0:return t.asyncQueue.verifyOperationInProgress(),Lr("FirestoreClient","Initializing OfflineComponentProvider"),[4,t.getConfiguration()];case 1:return n=o.sent(),[4,e.initialize(n)];case 2:return o.sent(),r=n.initialUser,t.setCredentialChangeListener(function(t){return Object(jr.b)(i,void 0,void 0,function(){return Object(jr.e)(this,function(n){switch(n.label){case 0:return r.isEqual(t)?[3,2]:[4,Hc(e.localStore,t)];case 1:n.sent(),r=t,n.label=2;case 2:return[2]}})})}),e.persistence.setDatabaseDeletedListener(function(){return t.terminate()}),t.offlineComponents=e,[2]}})})}function yh(t,e){return Object(jr.b)(this,void 0,void 0,function(){var n,r;return Object(jr.e)(this,function(i){switch(i.label){case 0:return t.asyncQueue.verifyOperationInProgress(),[4,wh(t)];case 1:return n=i.sent(),Lr("FirestoreClient","Initializing OnlineComponentProvider"),[4,t.getConfiguration()];case 2:return r=i.sent(),[4,e.initialize(n,r)];case 3:return i.sent(),t.setCredentialChangeListener(function(t){return function(t,e){return Object(jr.b)(this,void 0,void 0,function(){var n,r;return Object(jr.e)(this,function(i){switch(i.label){case 0:return(n=Ur(t)).asyncQueue.verifyOperationInProgress(),Lr("RemoteStore","RemoteStore received new credentials"),r=Wu(n),n.Or.add(3),[4,qu(n)];case 1:return i.sent(),r&&n.Br.set("Unknown"),[4,n.remoteSyncer.handleCredentialChange(e)];case 2:return i.sent(),n.Or.delete(3),[4,Bu(n)];case 3:return i.sent(),[2]}})})}(e.remoteStore,t)}),t.onlineComponents=e,[2]}})})}function wh(t){return Object(jr.b)(this,void 0,void 0,function(){return Object(jr.e)(this,function(e){switch(e.label){case 0:return t.offlineComponents?[3,2]:(Lr("FirestoreClient","Using default OfflineComponentProvider"),[4,gh(t,new lh)]);case 1:e.sent(),e.label=2;case 2:return[2,t.offlineComponents]}})})}function _h(t){return Object(jr.b)(this,void 0,void 0,function(){return Object(jr.e)(this,function(e){switch(e.label){case 0:return t.onlineComponents?[3,2]:(Lr("FirestoreClient","Using default OnlineComponentProvider"),[4,yh(t,new dh)]);case 1:e.sent(),e.label=2;case 2:return[2,t.onlineComponents]}})})}function kh(t){return wh(t).then(function(t){return t.persistence})}function xh(t){return wh(t).then(function(t){return t.localStore})}function Oh(t){return _h(t).then(function(t){return t.remoteStore})}function Sh(t){return _h(t).then(function(t){return t.syncEngine})}function Eh(t){return Object(jr.b)(this,void 0,void 0,function(){var e,n;return Object(jr.e)(this,function(r){switch(r.label){case 0:return[4,_h(t)];case 1:return e=r.sent(),[2,((n=e.eventManager).onListen=Pl.bind(null,e.syncEngine),n.onUnlisten=Nl.bind(null,e.syncEngine),n)]}})})}function Ch(t,e,n){var r=this;void 0===n&&(n={});var i=new Os;return t.asyncQueue.enqueueAndForget(function(){return Object(jr.b)(r,void 0,void 0,function(){var r;return Object(jr.e)(this,function(o){switch(o.label){case 0:return r=function(t,e,n,r,i){var o=new ph({next:function(o){e.enqueueAndForget(function(){return wl(t,a)});var s=o.docs.has(n);!s&&o.fromCache?i.reject(new Ar(Ir.UNAVAILABLE,"Failed to get document because the client is offline.")):s&&o.fromCache&&r&&"server"===r.source?i.reject(new Ar(Ir.UNAVAILABLE,'Failed to get document from server. (However, this document does exist in the local cache. Run again without setting source to "server" to retrieve the cached document.)')):i.resolve(o)},error:function(t){return i.reject(t)}}),a=new Ol($i(n.path),o,{includeMetadataChanges:!0,so:!0});return yl(t,a)},[4,Eh(t)];case 1:return[2,r.apply(void 0,[o.sent(),t.asyncQueue,e,n,i])]}})})}),i.promise}function jh(t,e,n){var r=this;void 0===n&&(n={});var i=new Os;return t.asyncQueue.enqueueAndForget(function(){return Object(jr.b)(r,void 0,void 0,function(){var r;return Object(jr.e)(this,function(o){switch(o.label){case 0:return r=function(t,e,n,r,i){var o=new ph({next:function(n){e.enqueueAndForget(function(){return wl(t,a)}),n.fromCache&&"server"===r.source?i.reject(new Ar(Ir.UNAVAILABLE,'Failed to get documents from server. (However, these documents may exist in the local cache. Run again without setting source to "server" to retrieve the cached documents.)')):i.resolve(n)},error:function(t){return i.reject(t)}}),a=new Ol(n,o,{includeMetadataChanges:!0,so:!0});return yl(t,a)},[4,Eh(t)];case 1:return[2,r.apply(void 0,[o.sent(),t.asyncQueue,e,n,i])]}})})}),i.promise}var Th=function(t,e,n,r,i,o,a){this.databaseId=t,this.appId=e,this.persistenceKey=n,this.host=r,this.ssl=i,this.forceLongPolling=o,this.autoDetectLongPolling=a},Ih=function(){function t(t,e){this.projectId=t,this.database=e||"(default)"}return Object.defineProperty(t.prototype,"isDefaultDatabase",{get:function(){return"(default)"===this.database},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(e){return e instanceof t&&e.projectId===this.projectId&&e.database===this.database},t}(),Ah=new Map,Rh=function(t,e){this.user=e,this.type="OAuth",this.authHeaders={},this.authHeaders.Authorization="Bearer "+t},Ph=function(){function t(){this.changeListener=null}return t.prototype.getToken=function(){return Promise.resolve(null)},t.prototype.invalidateToken=function(){},t.prototype.setChangeListener=function(t,e){this.changeListener=e,t.enqueueRetryable(function(){return e(bu.UNAUTHENTICATED)})},t.prototype.removeChangeListener=function(){this.changeListener=null},t}(),Lh=function(){function t(t){this.token=t,this.changeListener=null}return t.prototype.getToken=function(){return Promise.resolve(this.token)},t.prototype.invalidateToken=function(){},t.prototype.setChangeListener=function(t,e){var n=this;this.changeListener=e,t.enqueueRetryable(function(){return e(n.token.user)})},t.prototype.removeChangeListener=function(){this.changeListener=null},t}(),Nh=function(){function t(t){var e=this;this.currentUser=bu.UNAUTHENTICATED,this.oc=new Os,this.cc=0,this.changeListener=function(){return Promise.resolve()},this.uc=!1,this.forceRefresh=!1,this.auth=null,this.asyncQueue=null,this.ac=function(){e.cc++,e.currentUser=e.hc(),e.oc.resolve(),e.uc&&e.asyncQueue.enqueueRetryable(function(){return e.changeListener(e.currentUser)})};var n=function(t){Lr("FirebaseCredentialsProvider","Auth detected"),e.auth=t,e.lc(),e.auth.addAuthTokenListener(e.ac)};t.onInit(function(t){return n(t)}),setTimeout(function(){if(!e.auth){var r=t.getImmediate({optional:!0});r?n(r):e.uc&&(Lr("FirebaseCredentialsProvider","Auth not yet detected"),e.asyncQueue.enqueueRetryable(function(){return e.changeListener(e.currentUser)}))}},0)}return t.prototype.getToken=function(){var t=this,e=this.cc,n=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(n).then(function(n){return t.cc!==e?(Lr("FirebaseCredentialsProvider","getToken aborted due to token change."),t.getToken()):n?(Vr("string"==typeof n.accessToken),new Rh(n.accessToken,t.currentUser)):null}):Promise.resolve(null)},t.prototype.invalidateToken=function(){this.forceRefresh=!0},t.prototype.setChangeListener=function(t,e){this.uc=!0,this.asyncQueue=t,this.changeListener=e},t.prototype.removeChangeListener=function(){this.auth&&this.auth.removeAuthTokenListener(this.ac),this.changeListener=function(){return Promise.resolve()}},t.prototype.hc=function(){var t=this.auth&&this.auth.getUid();return Vr(null===t||"string"==typeof t),new bu(t)},t.prototype.lc=function(){var t=this;this.uc&&(this.uc=!1,this.asyncQueue.enqueueRetryable(function(){return Object(jr.b)(t,void 0,void 0,function(){return Object(jr.e)(this,function(t){switch(t.label){case 0:return[4,this.oc.promise];case 1:return t.sent(),[4,this.changeListener(this.currentUser)];case 2:return t.sent(),this.uc=!0,[2]}})})}))},t}(),Dh=function(){function t(t,e,n){this.fc=t,this.dc=e,this.wc=n,this.type="FirstParty",this.user=bu.FIRST_PARTY}return Object.defineProperty(t.prototype,"authHeaders",{get:function(){var t={"X-Goog-AuthUser":this.dc},e=this.fc.auth.getAuthHeaderValueForFirstParty([]);return e&&(t.Authorization=e),this.wc&&(t["X-Goog-Iam-Authorization-Token"]=this.wc),t},enumerable:!1,configurable:!0}),t}(),Mh=function(){function t(t,e,n){this.fc=t,this.dc=e,this.wc=n}return t.prototype.getToken=function(){return Promise.resolve(new Dh(this.fc,this.dc,this.wc))},t.prototype.setChangeListener=function(t,e){t.enqueueRetryable(function(){return e(bu.FIRST_PARTY)})},t.prototype.removeChangeListener=function(){},t.prototype.invalidateToken=function(){},t}();function Fh(t,e,n){if(!n)throw new Ar(Ir.INVALID_ARGUMENT,"Function "+t+"() cannot be called with an empty "+e+".")}function Vh(t,e){if(void 0===e)return{merge:!1};if(void 0!==e.mergeFields&&void 0!==e.merge)throw new Ar(Ir.INVALID_ARGUMENT,"Invalid options passed to function "+t+'(): You cannot specify both "merge" and "mergeFields".');return e}function Uh(t,e,n,r){if(!0===e&&!0===r)throw new Ar(Ir.INVALID_ARGUMENT,t+" and "+n+" cannot be used together.")}function Bh(t){if(!di.isDocumentKey(t))throw new Ar(Ir.INVALID_ARGUMENT,"Invalid document reference. Document references must have an even number of segments, but "+t+" has "+t.length+".")}function qh(t){if(di.isDocumentKey(t))throw new Ar(Ir.INVALID_ARGUMENT,"Invalid collection reference. Collection references must have an odd number of segments, but "+t+" has "+t.length+".")}function Xh(t){if(void 0===t)return"undefined";if(null===t)return"null";if("string"==typeof t)return t.length>20&&(t=t.substring(0,20)+"..."),JSON.stringify(t);if("number"==typeof t||"boolean"==typeof t)return""+t;if("object"==typeof t){if(t instanceof Array)return"an array";var e=function(t){if(t.constructor){var e=/function\s+([^\s(]+)\s*\(/.exec(t.constructor.toString());if(e&&e.length>1)return e[1]}return null}(t);return e?"a custom "+e+" object":"an object"}return"function"==typeof t?"a function":Fr()}function zh(t,e){if("_delegate"in t&&(t=t._delegate),!(t instanceof e)){if(e.name===t.constructor.name)throw new Ar(Ir.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");var n=Xh(t);throw new Ar(Ir.INVALID_ARGUMENT,"Expected type '"+e.name+"', but it was: "+n)}return t}function Hh(t,e){if(e<=0)throw new Ar(Ir.INVALID_ARGUMENT,"Function "+t+"() requires a positive number, but it was: "+e+".")}var Yh=function(){function t(t){var e;if(void 0===t.host){if(void 0!==t.ssl)throw new Ar(Ir.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host="firestore.googleapis.com",this.ssl=!0}else this.host=t.host,this.ssl=null===(e=t.ssl)||void 0===e||e;if(this.credentials=t.credentials,this.ignoreUndefinedProperties=!!t.ignoreUndefinedProperties,void 0===t.cacheSizeBytes)this.cacheSizeBytes=41943040;else{if(-1!==t.cacheSizeBytes&&t.cacheSizeBytes<1048576)throw new Ar(Ir.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=t.cacheSizeBytes}this.experimentalForceLongPolling=!!t.experimentalForceLongPolling,this.experimentalAutoDetectLongPolling=!!t.experimentalAutoDetectLongPolling,Uh("experimentalForceLongPolling",t.experimentalForceLongPolling,"experimentalAutoDetectLongPolling",t.experimentalAutoDetectLongPolling)}return t.prototype.isEqual=function(t){return this.host===t.host&&this.ssl===t.ssl&&this.credentials===t.credentials&&this.cacheSizeBytes===t.cacheSizeBytes&&this.experimentalForceLongPolling===t.experimentalForceLongPolling&&this.experimentalAutoDetectLongPolling===t.experimentalAutoDetectLongPolling&&this.ignoreUndefinedProperties===t.ignoreUndefinedProperties},t}(),Gh=function(){function t(t,e){this.type="firestore-lite",this._persistenceKey="(lite)",this._settings=new Yh({}),this._settingsFrozen=!1,t instanceof Ih?(this._databaseId=t,this._credentials=new Ph):(this._app=t,this._databaseId=function(t){if(!Object.prototype.hasOwnProperty.apply(t.options,["projectId"]))throw new Ar(Ir.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new Ih(t.options.projectId)}(t),this._credentials=new Nh(e))}return Object.defineProperty(t.prototype,"app",{get:function(){if(!this._app)throw new Ar(Ir.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this._app},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_initialized",{get:function(){return this._settingsFrozen},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_terminated",{get:function(){return void 0!==this._terminateTask},enumerable:!1,configurable:!0}),t.prototype._setSettings=function(t){if(this._settingsFrozen)throw new Ar(Ir.FAILED_PRECONDITION,"Firestore has already been started and its settings can no longer be changed. You can only modify settings before calling any other methods on a Firestore object.");this._settings=new Yh(t),void 0!==t.credentials&&(this._credentials=function(t){if(!t)return new Ph;switch(t.type){case"gapi":var e=t.client;return Vr(!("object"!=typeof e||null===e||!e.auth||!e.auth.getAuthHeaderValueForFirstParty)),new Mh(e,t.sessionIndex||"0",t.iamToken||null);case"provider":return t.client;default:throw new Ar(Ir.INVALID_ARGUMENT,"makeCredentialsProvider failed due to invalid credential type")}}(t.credentials))},t.prototype._getSettings=function(){return this._settings},t.prototype._freezeSettings=function(){return this._settingsFrozen=!0,this._settings},t.prototype._delete=function(){return this._terminateTask||(this._terminateTask=this._terminate()),this._terminateTask},t.prototype.toJSON=function(){return{app:this._app,databaseId:this._databaseId,settings:this._settings}},t.prototype._terminate=function(){return(t=Ah.get(this))&&(Lr("ComponentProvider","Removing Datastore"),Ah.delete(this),t.terminate()),Promise.resolve();var t},t}(),Kh=function(){function t(t,e,n){this.converter=e,this._key=n,this.type="document",this.firestore=t}return Object.defineProperty(t.prototype,"_path",{get:function(){return this._key.path},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this._key.path.lastSegment()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return this._key.path.canonicalString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return new Qh(this.firestore,this.converter,this._key.path.popLast())},enumerable:!1,configurable:!0}),t.prototype.withConverter=function(e){return new t(this.firestore,e,this._key)},t}(),Wh=function(){function t(t,e,n){this.converter=e,this._query=n,this.type="query",this.firestore=t}return t.prototype.withConverter=function(e){return new t(this.firestore,e,this._query)},t}(),Qh=function(t){function e(e,n,r){var i=this;return(i=t.call(this,e,n,$i(r))||this)._path=r,i.type="collection",i}return Object(jr.d)(e,t),Object.defineProperty(e.prototype,"id",{get:function(){return this._query.path.lastSegment()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return this._query.path.canonicalString()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){var t=this._path.popLast();return t.isEmpty()?null:new Kh(this.firestore,null,new di(t))},enumerable:!1,configurable:!0}),e.prototype.withConverter=function(t){return new e(this.firestore,t,this._path)},e}(Wh);function Zh(t,e){for(var n,r=[],i=2;i0&&this.Zi.ji(function(){return e.vc()}),n.label=5;case 5:return[2]}})})},t.prototype.bc=function(t){var e=this,n=this._c.then(function(){return e.Tc=!0,t().catch(function(t){throw e.Ec=t,e.Tc=!1,Nr("INTERNAL UNHANDLED ERROR: ",function(t){var e=t.message||"";return t.stack&&(e=t.stack.includes(t.message)?t.stack:t.message+"\n"+t.stack),e}(t)),t}).then(function(t){return e.Tc=!1,t})});return this._c=n,n},t.prototype.enqueueAfterDelay=function(t,e,n){var r=this;this.Rc(),this.Ic.indexOf(t)>-1&&(e=0);var i=fl.createAndSchedule(this,t,e,n,function(t){return r.Pc(t)});return this.gc.push(i),i},t.prototype.Rc=function(){this.Ec&&Fr()},t.prototype.verifyOperationInProgress=function(){},t.prototype.Vc=function(){return Object(jr.b)(this,void 0,void 0,function(){var t;return Object(jr.e)(this,function(e){switch(e.label){case 0:return[4,t=this._c];case 1:e.sent(),e.label=2;case 2:if(t!==this._c)return[3,0];e.label=3;case 3:return[2]}})})},t.prototype.Sc=function(t){for(var e=0,n=this.gc;e90)throw new Ar(Ir.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+t);if(!isFinite(e)||e<-180||e>180)throw new Ar(Ir.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+e);this._lat=t,this._long=e}return Object.defineProperty(t.prototype,"latitude",{get:function(){return this._lat},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"longitude",{get:function(){return this._long},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(t){return this._lat===t._lat&&this._long===t._long},t.prototype.toJSON=function(){return{latitude:this._lat,longitude:this._long}},t.prototype._compareTo=function(t){return Xr(this._lat,t._lat)||Xr(this._long,t._long)},t}(),df=/^__.*__$/,pf=function(){function t(t,e,n){this.data=t,this.fieldMask=e,this.fieldTransforms=n}return t.prototype.toMutation=function(t,e){return null!==this.fieldMask?new Bo(t,this.data,this.fieldMask,e,this.fieldTransforms):new Uo(t,this.data,e,this.fieldTransforms)},t}(),bf=function(){function t(t,e,n){this.data=t,this.fieldMask=e,this.fieldTransforms=n}return t.prototype.toMutation=function(t,e){return new Bo(t,this.data,this.fieldMask,e,this.fieldTransforms)},t}();function mf(t){switch(t){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw Fr()}}var vf=function(){function t(t,e,n,r,i,o){this.settings=t,this.databaseId=e,this.R=n,this.ignoreUndefinedProperties=r,void 0===i&&this.Nc(),this.fieldTransforms=i||[],this.fieldMask=o||[]}return Object.defineProperty(t.prototype,"path",{get:function(){return this.settings.path},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"xc",{get:function(){return this.settings.xc},enumerable:!1,configurable:!0}),t.prototype.Fc=function(e){return new t(Object.assign(Object.assign({},this.settings),e),this.databaseId,this.R,this.ignoreUndefinedProperties,this.fieldTransforms,this.fieldMask)},t.prototype.kc=function(t){var e,n=null===(e=this.path)||void 0===e?void 0:e.child(t),r=this.Fc({path:n,$c:!1});return r.Oc(t),r},t.prototype.Mc=function(t){var e,n=null===(e=this.path)||void 0===e?void 0:e.child(t),r=this.Fc({path:n,$c:!1});return r.Nc(),r},t.prototype.Lc=function(t){return this.Fc({path:void 0,$c:!0})},t.prototype.Bc=function(t){return Mf(t,this.settings.methodName,this.settings.qc||!1,this.path,this.settings.Uc)},t.prototype.contains=function(t){return void 0!==this.fieldMask.find(function(e){return t.isPrefixOf(e)})||void 0!==this.fieldTransforms.find(function(e){return t.isPrefixOf(e.field)})},t.prototype.Nc=function(){if(this.path)for(var t=0;t=0;--f)if(!Ff(l,s[f])){var d=s[f],p=c[f];p=Object(O.h)(p);var b=a.Mc(d);if(p instanceof _f)l.push(d);else{var m=If(p,b);null!=m&&(l.push(d),h.set(d,m))}}var v=new ei(l);return new bf(h,v,a.fieldTransforms)}function Tf(t,e,n,r){return void 0===r&&(r=!1),If(n,t.Qc(r?4:3,e))}function If(t,e){if(Rf(t=Object(O.h)(t)))return Pf("Unsupported field value:",e,t),Af(t,e);if(t instanceof hf)return function(t,e){if(!mf(e.xc))throw e.Bc(t._methodName+"() can only be used with update() and set()");if(!e.path)throw e.Bc(t._methodName+"() is not currently supported inside arrays");var n=t._toFieldTransform(e);n&&e.fieldTransforms.push(n)}(t,e),null;if(void 0===t&&e.ignoreUndefinedProperties)return null;if(e.path&&e.fieldMask.push(e.path),t instanceof Array){if(e.settings.$c&&4!==e.xc)throw e.Bc("Nested arrays are not supported");return function(t,e){for(var n=[],r=0,i=0,o=t;i0&&e.fieldMask.push(e.path):Wr(t,function(t,r){var i=If(r,e.kc(t));null!=i&&(n[t]=i)}),{mapValue:{fields:n}}}function Rf(t){return!("object"!=typeof t||null===t||t instanceof Array||t instanceof Date||t instanceof Yr||t instanceof ff||t instanceof lf||t instanceof Kh||t instanceof hf)}function Pf(t,e,n){if(!Rf(n)||!function(t){return"object"==typeof t&&null!==t&&(Object.getPrototypeOf(t)===Object.prototype||null===Object.getPrototypeOf(t))}(n)){var r=Xh(n);throw e.Bc("an object"===r?t+" a custom object":t+" "+r)}}function Lf(t,e,n){if((e=Object(O.h)(e))instanceof uf)return e._internalPath;if("string"==typeof e)return Df(t,e);throw Mf("Field path arguments must be of type string or FieldPath.",t,!1,void 0,n)}var Nf=new RegExp("[~\\*/\\[\\]]");function Df(t,e,n){if(e.search(Nf)>=0)throw Mf("Invalid field path ("+e+"). Paths must not contain '~', '*', '/', '[', or ']'",t,!1,void 0,n);try{return(new(uf.bind.apply(uf,Object(jr.h)([void 0],e.split(".")))))._internalPath}catch(r){throw Mf("Invalid field path ("+e+"). Paths must not be empty, begin with '.', end with '.', or contain '..'",t,!1,void 0,n)}}function Mf(t,e,n,r,i){var o=r&&!r.isEmpty(),a=void 0!==i,s="Function "+e+"() called with invalid data";n&&(s+=" (via `toFirestore()`)");var c="";return(o||a)&&(c+=" (found",o&&(c+=" in field "+r),a&&(c+=" in document "+i),c+=")"),new Ar(Ir.INVALID_ARGUMENT,(s+=". ")+t+c)}function Ff(t,e){return t.some(function(t){return t.isEqual(e)})}var Vf=function(){function t(t,e,n,r,i){this._firestore=t,this._userDataWriter=e,this._key=n,this._document=r,this._converter=i}return Object.defineProperty(t.prototype,"id",{get:function(){return this._key.path.lastSegment()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ref",{get:function(){return new Kh(this._firestore,this._converter,this._key)},enumerable:!1,configurable:!0}),t.prototype.exists=function(){return null!==this._document},t.prototype.data=function(){if(this._document){if(this._converter){var t=new Uf(this._firestore,this._userDataWriter,this._key,this._document,null);return this._converter.fromFirestore(t)}return this._userDataWriter.convertValue(this._document.data.value)}},t.prototype.get=function(t){if(this._document){var e=this._document.data.field(Bf("DocumentSnapshot.get",t));if(null!==e)return this._userDataWriter.convertValue(e)}},t}(),Uf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(jr.d)(e,t),e.prototype.data=function(){return t.prototype.data.call(this)},e}(Vf);function Bf(t,e){return"string"==typeof e?Df(t,e):e instanceof uf?e._internalPath:e._delegate._internalPath}var qf=function(){function t(t,e){this.hasPendingWrites=t,this.fromCache=e}return t.prototype.isEqual=function(t){return this.hasPendingWrites===t.hasPendingWrites&&this.fromCache===t.fromCache},t}(),Xf=function(t){function e(e,n,r,i,o,a){var s=this;return(s=t.call(this,e,n,r,i,a)||this)._firestore=e,s._firestoreImpl=e,s.metadata=o,s}return Object(jr.d)(e,t),e.prototype.exists=function(){return t.prototype.exists.call(this)},e.prototype.data=function(t){if(void 0===t&&(t={}),this._document){if(this._converter){var e=new zf(this._firestore,this._userDataWriter,this._key,this._document,this.metadata,null);return this._converter.fromFirestore(e,t)}return this._userDataWriter.convertValue(this._document.data.value,t.serverTimestamps)}},e.prototype.get=function(t,e){if(void 0===e&&(e={}),this._document){var n=this._document.data.field(Bf("DocumentSnapshot.get",t));if(null!==n)return this._userDataWriter.convertValue(n,e.serverTimestamps)}},e}(Vf),zf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(jr.d)(e,t),e.prototype.data=function(e){return void 0===e&&(e={}),t.prototype.data.call(this,e)},e}(Xf),Hf=function(){function t(t,e,n,r){this._firestore=t,this._userDataWriter=e,this._snapshot=r,this.metadata=new qf(r.hasPendingWrites,r.fromCache),this.query=n}return Object.defineProperty(t.prototype,"docs",{get:function(){var t=[];return this.forEach(function(e){return t.push(e)}),t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this._snapshot.docs.size},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"empty",{get:function(){return 0===this.size},enumerable:!1,configurable:!0}),t.prototype.forEach=function(t,e){var n=this;this._snapshot.docs.forEach(function(r){t.call(e,new zf(n._firestore,n._userDataWriter,r.key,r,new qf(n._snapshot.mutatedKeys.has(r.key),n._snapshot.fromCache),n.query.converter))})},t.prototype.docChanges=function(t){void 0===t&&(t={});var e=!!t.includeMetadataChanges;if(e&&this._snapshot.excludesMetadataChanges)throw new Ar(Ir.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this._cachedChanges&&this._cachedChangesIncludeMetadataChanges===e||(this._cachedChanges=function(t,e){if(t._snapshot.oldDocs.isEmpty()){var n=0;return t._snapshot.docChanges.map(function(e){return{type:"added",doc:new zf(t._firestore,t._userDataWriter,e.doc.key,e.doc,new qf(t._snapshot.mutatedKeys.has(e.doc.key),t._snapshot.fromCache),t.query.converter),oldIndex:-1,newIndex:n++}})}var r=t._snapshot.oldDocs;return t._snapshot.docChanges.filter(function(t){return e||3!==t.type}).map(function(e){var n=new zf(t._firestore,t._userDataWriter,e.doc.key,e.doc,new qf(t._snapshot.mutatedKeys.has(e.doc.key),t._snapshot.fromCache),t.query.converter),i=-1,o=-1;return 0!==e.type&&(i=r.indexOf(e.doc.key),r=r.delete(e.doc.key)),1!==e.type&&(o=(r=r.add(e.doc)).indexOf(e.doc.key)),{type:Yf(e.type),doc:n,oldIndex:i,newIndex:o}})}(this,e),this._cachedChangesIncludeMetadataChanges=e),this._cachedChanges},t}();function Yf(t){switch(t){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return Fr()}}function Gf(t,e){return t instanceof Xf&&e instanceof Xf?t._firestore===e._firestore&&t._key.isEqual(e._key)&&(null===t._document?null===e._document:t._document.isEqual(e._document))&&t._converter===e._converter:t instanceof Hf&&e instanceof Hf&&t._firestore===e._firestore&&tf(t.query,e.query)&&t.metadata.isEqual(e.metadata)&&t._snapshot.isEqual(e._snapshot)}function Kf(t){if(eo(t)&&0===t.explicitOrderBy.length)throw new Ar(Ir.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}var Wf=function(){};function Qf(t){for(var e=[],n=1;n, or >=) must be on the same field. But you have inequality filters on '"+n.toString()+"' and '"+e.field.toString()+"'");var r=no(t);null!==r&&od(0,e.field,r)}var i=function(t,e){for(var n=0,r=t.filters;n=0)return i.op}return null}(t,function(t){switch(t){case"!=":return["!=","not-in"];case"array-contains":return["array-contains","array-contains-any","not-in"];case"in":return["array-contains-any","in","not-in"];case"array-contains-any":return["array-contains","array-contains-any","in","not-in"];case"not-in":return["array-contains","array-contains-any","in","not-in","!="];default:return[]}}(e.op));if(null!==i)throw new Ar(Ir.INVALID_ARGUMENT,i===e.op?"Invalid query. You cannot use more than one '"+e.op.toString()+"' filter.":"Invalid query. You cannot use '"+e.op.toString()+"' filters with '"+i.toString()+"' filters.")}(t,h),h}(t._query,0,e,t.firestore._databaseId,this.Wc,this.Gc,this.zc);return new Wh(t.firestore,t.converter,function(t,e){var n=t.filters.concat([e]);return new Zi(t.path,t.collectionGroup,t.explicitOrderBy.slice(),n,t.limit,t.limitType,t.startAt,t.endAt)}(t._query,n))},e}(Wf),Jf=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).Wc=e,r.Hc=n,r.type="orderBy",r}return Object(jr.d)(e,t),e.prototype._apply=function(t){var e=function(t,e,n){if(null!==t.startAt)throw new Ar(Ir.INVALID_ARGUMENT,"Invalid query. You must not call startAt() or startAfter() before calling orderBy().");if(null!==t.endAt)throw new Ar(Ir.INVALID_ARGUMENT,"Invalid query. You must not call endAt() or endBefore() before calling orderBy().");var r=new Gi(e,n);return function(t,e){if(null===no(t)){var n=ro(t);null!==n&&od(0,n,e.field)}}(t,r),r}(t._query,this.Wc,this.Hc);return new Wh(t.firestore,t.converter,function(t,e){var n=t.explicitOrderBy.concat([e]);return new Zi(t.path,t.collectionGroup,n,t.filters.slice(),t.limit,t.limitType,t.startAt,t.endAt)}(t._query,e))},e}(Wf),$f=function(t){function e(e,n,r){var i=this;return(i=t.call(this)||this).type=e,i.Jc=n,i.Yc=r,i}return Object(jr.d)(e,t),e.prototype._apply=function(t){return new Wh(t.firestore,t.converter,so(t._query,this.Jc,this.Yc))},e}(Wf),td=function(t){function e(e,n,r){var i=this;return(i=t.call(this)||this).type=e,i.Xc=n,i.Zc=r,i}return Object(jr.d)(e,t),e.prototype._apply=function(t){var e=nd(t,this.type,this.Xc,this.Zc);return new Wh(t.firestore,t.converter,function(t,e){return new Zi(t.path,t.collectionGroup,t.explicitOrderBy.slice(),t.filters.slice(),t.limit,t.limitType,e,t.endAt)}(t._query,e))},e}(Wf),ed=function(t){function e(e,n,r){var i=this;return(i=t.call(this)||this).type=e,i.Xc=n,i.Zc=r,i}return Object(jr.d)(e,t),e.prototype._apply=function(t){var e=nd(t,this.type,this.Xc,this.Zc);return new Wh(t.firestore,t.converter,function(t,e){return new Zi(t.path,t.collectionGroup,t.explicitOrderBy.slice(),t.filters.slice(),t.limit,t.limitType,t.startAt,e)}(t._query,e))},e}(Wf);function nd(t,e,n,r){if(n[0]=Object(O.h)(n[0]),n[0]instanceof Vf)return function(t,e,n,r,i){if(!r)throw new Ar(Ir.NOT_FOUND,"Can't use a DocumentSnapshot that doesn't exist for "+n+"().");for(var o=[],a=0,s=oo(t);aa.length)throw new Ar(Ir.INVALID_ARGUMENT,"Too many arguments provided to "+r+"(). The number of arguments must be less than or equal to the number of orderBy() clauses");for(var s=[],c=0;c10)throw new Ar(Ir.INVALID_ARGUMENT,"Invalid Query. '"+e.toString()+"' filters support a maximum of 10 elements in the value array.")}function od(t,e,n){if(!n.isEqual(e))throw new Ar(Ir.INVALID_ARGUMENT,"Invalid query. You have a where filter with an inequality (<, <=, !=, not-in, >, or >=) on field '"+e.toString()+"' and so you must also use '"+e.toString()+"' as your first argument to orderBy(), but your first orderBy() is on field '"+n.toString()+"' instead.")}var ad=function(){function t(){}return t.prototype.convertValue=function(t,e){switch(void 0===e&&(e="none"),pi(t)){case 0:return null;case 1:return t.booleanValue;case 2:return oi(t.integerValue||t.doubleValue);case 3:return this.convertTimestamp(t.timestampValue);case 4:return this.convertServerTimestamp(t,e);case 5:return t.stringValue;case 6:return this.convertBytes(ai(t.bytesValue));case 7:return this.convertReference(t.referenceValue);case 8:return this.convertGeoPoint(t.geoPointValue);case 9:return this.convertArray(t.arrayValue,e);case 10:return this.convertObject(t.mapValue,e);default:throw Fr()}},t.prototype.convertObject=function(t,e){var n=this,r={};return Wr(t.fields,function(t,i){r[t]=n.convertValue(i,e)}),r},t.prototype.convertGeoPoint=function(t){return new ff(oi(t.latitude),oi(t.longitude))},t.prototype.convertArray=function(t,e){var n=this;return(t.values||[]).map(function(t){return n.convertValue(t,e)})},t.prototype.convertServerTimestamp=function(t,e){switch(e){case"previous":var n=ci(t);return null==n?null:this.convertValue(n,e);case"estimate":return this.convertTimestamp(ui(t));default:return null}},t.prototype.convertTimestamp=function(t){var e=ii(t);return new Yr(e.seconds,e.nanos)},t.prototype.convertDocumentKey=function(t,e){var n=Jr.fromString(t);Vr(ts(n));var r=new Ih(n.get(1),n.get(3)),i=new di(n.popFirst(5));return r.isEqual(e)||Nr("Document "+i+" contains a document reference within a different database ("+r.projectId+"/"+r.database+") which is not supported. It will be treated as a reference in the current database ("+e.projectId+"/"+e.database+") instead."),i},t}();function sd(t,e,n){return t?n&&(n.merge||n.mergeFields)?t.toFirestore(e,n):t.toFirestore(e):e}var cd=function(t){function e(e){var n=this;return(n=t.call(this)||this).firestore=e,n}return Object(jr.d)(e,t),e.prototype.convertBytes=function(t){return new lf(t)},e.prototype.convertReference=function(t){var e=this.convertDocumentKey(t,this.firestore._databaseId);return new Kh(this.firestore,null,e)},e}(ad),ud=function(){function t(t,e){this._firestore=t,this._commitHandler=e,this._mutations=[],this._committed=!1,this._dataReader=yf(t)}return t.prototype.set=function(t,e,n){this._verifyNotCommitted();var r=ld(t,this._firestore),i=sd(r.converter,e,n),o=wf(this._dataReader,"WriteBatch.set",r._key,i,null!==r.converter,n);return this._mutations.push(o.toMutation(r._key,Ro.none())),this},t.prototype.update=function(t,e,n){for(var r=[],i=3;i0?this._commitHandler(this._mutations):Promise.resolve()},t.prototype._verifyNotCommitted=function(){if(this._committed)throw new Ar(Ir.FAILED_PRECONDITION,"A write batch can no longer be used after commit() has been called.")},t}();function ld(t,e){if((t=Object(O.h)(t)).firestore!==e)throw new Ar(Ir.INVALID_ARGUMENT,"Provided document reference is from a different Firestore instance.");return t}var hd=function(t){function e(e){var n=this;return(n=t.call(this)||this).firestore=e,n}return Object(jr.d)(e,t),e.prototype.convertBytes=function(t){return new lf(t)},e.prototype.convertReference=function(t){var e=this.convertDocumentKey(t,this.firestore._databaseId);return new Kh(this.firestore,null,e)},e}(ad);function fd(t,e,n){for(var r=[],i=3;i=0)throw new Ar(Ir.INVALID_ARGUMENT,"Invalid collection ID '"+e+"' passed to function collectionGroup(). Collection IDs must not contain '/'.");return new Wh(t,null,function(t){return new Zi(Jr.emptyPath(),t)}(e))}(this._delegate,t))}catch(t){throw Cd(t,"collectionGroup()","Firestore.collectionGroup()")}},t.prototype.runTransaction=function(t){var e=this;return function(t,e){return function(t,e){var n=this,r=new Os;return t.asyncQueue.enqueueAndForget(function(){return Object(jr.b)(n,void 0,void 0,function(){var n;return Object(jr.e)(this,function(i){switch(i.label){case 0:return[4,function(t){return _h(t).then(function(t){return t.datastore})}(t)];case 1:return n=i.sent(),new mh(t.asyncQueue,n,e,r).run(),[2]}})})}),r.promise}(of(t),function(n){return e(new md(t,n))})}(this._delegate,function(n){return t(new xd(e,n))})},t.prototype.batch=function(){var t=this;return of(this._delegate),new Od(new ud(this._delegate,function(e){return pd(t._delegate,e)}))},t.prototype.loadBundle=function(t){throw new Ar(Ir.FAILED_PRECONDITION,'"loadBundle()" does not exist, have you imported "firebase/firestore/bundle"?')},t.prototype.namedQuery=function(t){throw new Ar(Ir.FAILED_PRECONDITION,'"namedQuery()" does not exist, have you imported "firebase/firestore/bundle"?')},t}(),kd=function(t){function e(e){var n=this;return(n=t.call(this)||this).firestore=e,n}return Object(jr.d)(e,t),e.prototype.convertBytes=function(t){return new yd(new lf(t))},e.prototype.convertReference=function(t){var e=this.convertDocumentKey(t,this.firestore._databaseId);return Ed.nu(e,this.firestore,null)},e}(ad),xd=function(){function t(t,e){this._firestore=t,this._delegate=e,this._userDataWriter=new kd(t)}return t.prototype.get=function(t){var e=this,n=Dd(t);return this._delegate.get(n).then(function(t){return new Id(e._firestore,new Xf(e._firestore._delegate,e._userDataWriter,t._key,t._document,t.metadata,n.converter))})},t.prototype.set=function(t,e,n){var r=Dd(t);return n?(Vh("Transaction.set",n),this._delegate.set(r,e,n)):this._delegate.set(r,e),this},t.prototype.update=function(t,e,n){for(var r,i=[],o=3;o1&&void 0!==arguments[1]?arguments[1]:u.b;return new l.a(function(n){var r;return null!=e?e.schedule(function(){r=t.onSnapshot({includeMetadataChanges:!0},n)}):r=t.onSnapshot({includeMetadataChanges:!0},n),function(){null!=r&&r()}})}(t,e)}function zd(t,e){return Xd(t,e).pipe(Object(b.a)(function(t){return{payload:t,type:"query"}}))}function Hd(t,e){return zd(t,e).pipe(Object(d.a)(void 0),Object(p.a)(),Object(b.a)(function(t){var e=Object(s.a)(t,2),n=e[0],r=e[1],i=r.payload.docChanges(),o=i.map(function(t){return{type:t.type,payload:t}});return n&&JSON.stringify(n.payload.metadata)!==JSON.stringify(r.payload.metadata)&&r.payload.docs.forEach(function(t,e){var r=i.find(function(e){return e.doc.ref.isEqual(t.ref)}),a=null==n?void 0:n.payload.docs.find(function(e){return e.ref.isEqual(t.ref)});r&&JSON.stringify(r.doc.metadata)===JSON.stringify(t.metadata)||!r&&a&&JSON.stringify(a.metadata)===JSON.stringify(t.metadata)||o.push({type:"modified",payload:{oldIndex:e,newIndex:e,type:"modified",doc:t}})}),o}))}function Yd(t,e,n){return Hd(t,n).pipe(Object(m.a)(function(t,n){return function(t,e,n){return e.forEach(function(e){n.indexOf(e.type)>-1&&(t=function(t,e){switch(e.type){case"added":if(!t[e.newIndex]||!t[e.newIndex].doc.ref.isEqual(e.doc.ref))return Gd(t,e.newIndex,0,e);break;case"modified":if(null==t[e.oldIndex]||t[e.oldIndex].doc.ref.isEqual(e.doc.ref)){if(e.oldIndex!==e.newIndex){var n=t.slice();return n.splice(e.oldIndex,1),n.splice(e.newIndex,0,e),n}return Gd(t,e.newIndex,1,e)}break;case"removed":if(t[e.oldIndex]&&t[e.oldIndex].doc.ref.isEqual(e.doc.ref))return Gd(t,e.oldIndex,1)}return t}(t,e))}),t}(t,n.map(function(t){return t.payload}),e)},[]),Object(v.a)(),Object(b.a)(function(t){return t.map(function(t){return{type:t.type,payload:t}})}))}function Gd(t,e,n){for(var r=t.slice(),i=arguments.length,o=new Array(i>3?i-3:0),a=3;a0&&(e=e.pipe(Object(b.a)(function(e){return e.filter(function(e){return t.indexOf(e.type)>-1})}))),e.pipe(Object(d.a)(void 0),Object(p.a)(),Object(g.a)(function(t){var e=Object(s.a)(t,2);return e[1].length>0||!e[0]}),Object(b.a)(function(t){return Object(s.a)(t,2)[1]}),this.afs.keepUnstableUntilFirst)}},{key:"auditTrail",value:function(t){return this.stateChanges(t).pipe(Object(m.a)(function(t,e){return[].concat(Object(i.a)(t),Object(i.a)(e))},[]))}},{key:"snapshotChanges",value:function(t){var e=Kd(t);return Yd(this.query,e,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst)}},{key:"valueChanges",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return zd(this.query,this.afs.schedulers.outsideAngular).pipe(Object(b.a)(function(e){return e.payload.docs.map(function(e){return t.idField?Object.assign(Object.assign({},e.data()),Object(r.a)({},t.idField,e.id)):e.data()})}),this.afs.keepUnstableUntilFirst)}},{key:"get",value:function(t){return Object(h.a)(this.query.get(t)).pipe(Object(y.b)(this.afs.schedulers.insideAngular))}},{key:"add",value:function(t){return this.ref.add(t)}},{key:"doc",value:function(t){return new Qd(this.ref.doc(t),this.afs)}}]),t}(),Qd=function(){function t(e,n){Object(o.a)(this,t),this.ref=e,this.afs=n}return Object(a.a)(t,[{key:"set",value:function(t,e){return this.ref.set(t,e)}},{key:"update",value:function(t){return this.ref.update(t)}},{key:"delete",value:function(){return this.ref.delete()}},{key:"collection",value:function(t,e){var n=np(this.ref.collection(t),e);return new Wd(n.ref,n.query,this.afs)}},{key:"snapshotChanges",value:function(){return Xd(this.ref,this.afs.schedulers.outsideAngular).pipe(Object(d.a)(void 0),Object(p.a)(),Object(b.a)(function(t){var e=Object(s.a)(t,2),n=e[0],r=e[1];return r.exists?(null==n?void 0:n.exists)?{payload:r,type:"modified"}:{payload:r,type:"added"}:{payload:r,type:"removed"}})).pipe(this.afs.keepUnstableUntilFirst)}},{key:"valueChanges",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.snapshotChanges().pipe(Object(b.a)(function(e){var n=e.payload;return t.idField?Object.assign(Object.assign({},n.data()),Object(r.a)({},t.idField,n.id)):n.data()}))}},{key:"get",value:function(t){return Object(h.a)(this.ref.get(t)).pipe(Object(y.b)(this.afs.schedulers.insideAngular))}}]),t}(),Zd=function(){function t(e,n){Object(o.a)(this,t),this.query=e,this.afs=n}return Object(a.a)(t,[{key:"stateChanges",value:function(t){return t&&0!==t.length?Hd(this.query,this.afs.schedulers.outsideAngular).pipe(Object(b.a)(function(e){return e.filter(function(e){return t.indexOf(e.type)>-1})}),Object(g.a)(function(t){return t.length>0}),this.afs.keepUnstableUntilFirst):Hd(this.query,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst)}},{key:"auditTrail",value:function(t){return this.stateChanges(t).pipe(Object(m.a)(function(t,e){return[].concat(Object(i.a)(t),Object(i.a)(e))},[]))}},{key:"snapshotChanges",value:function(t){var e=Kd(t);return Yd(this.query,e,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst)}},{key:"valueChanges",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=zd(this.query,this.afs.schedulers.outsideAngular);return e.pipe(Object(b.a)(function(e){return e.payload.docs.map(function(e){return t.idField?Object.assign(Object(r.a)({},t.idField,e.id),e.data()):e.data()})}),this.afs.keepUnstableUntilFirst)}},{key:"get",value:function(t){return Object(h.a)(this.query.get(t)).pipe(Object(y.b)(this.afs.schedulers.insideAngular))}}]),t}(),Jd=new c.r("angularfire2.enableFirestorePersistence"),$d=new c.r("angularfire2.firestore.persistenceSettings"),tp=new c.r("angularfire2.firestore.settings"),ep=new c.r("angularfire2.firestore.use-emulator");function np(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(t){return t},n=e(t);return{query:n,ref:t}}var rp=function(){var t=function(){function t(e,n,r,a,c,u,l,d,p){Object(o.a)(this,t),this.schedulers=new w.d(u),this.keepUnstableUntilFirst=Object(w.h)(this.schedulers);var b=Object(w.g)(e,u,n);!k.a.auth&&p&&Object(w.j)();var m=d,v=Object(w.f)("".concat(b.name,".firestore"),"AngularFirestore",b,function(){var t=u.runOutsideAngular(function(){return b.firestore()});return a&&t.settings(a),m&&t.useEmulator.apply(t,Object(i.a)(m)),r&&!Object(_.v)(c)?[t,u.runOutsideAngular(function(){try{return Object(h.a)(t.enablePersistence(l||void 0).then(function(){return!0},function(){return!1}))}catch(Md){return"undefined"!=typeof console&&console.warn(Md),Object(f.a)(!1)}})]:[t,Object(f.a)(!1)]},[a,m,r]),g=Object(s.a)(v,2);this.firestore=g[0],this.persistenceEnabled$=g[1]}return Object(a.a)(t,[{key:"collection",value:function(t,e){var n=np("string"==typeof t?this.firestore.collection(t):t,e),r=n.ref,i=n.query,o=this.schedulers.ngZone.run(function(){return r});return new Wd(o,i,this)}},{key:"collectionGroup",value:function(t,e){var n=e||function(t){return t},r=this.firestore.collectionGroup(t);return new Zd(n(r),this)}},{key:"doc",value:function(t){var e;e="string"==typeof t?this.firestore.doc(t):t;var n=this.schedulers.ngZone.run(function(){return e});return new Qd(n,this)}},{key:"createId",value:function(){return this.firestore.collection("_").doc().id}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.cc(w.c),c.cc(w.b,8),c.cc(Jd,8),c.cc(tp,8),c.cc(c.D),c.cc(c.B),c.cc($d,8),c.cc(ep,8),c.cc(qd.c,8))},t.\u0275prov=c.Ob({factory:function(){return new t(c.cc(w.c),c.cc(w.b,8),c.cc(Jd,8),c.cc(tp,8),c.cc(c.D),c.cc(c.B),c.cc($d,8),c.cc(ep,8),c.cc(qd.c,8))},token:t,providedIn:"any"}),t}(),ip=function(){var t=function(){function t(){Object(o.a)(this,t)}return Object(a.a)(t,null,[{key:"enablePersistence",value:function(e){return{ngModule:t,providers:[{provide:Jd,useValue:!0},{provide:$d,useValue:e}]}}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.Qb({type:t}),t.\u0275inj=c.Pb({providers:[rp]}),t}()},I55L:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t}},IjjT:function(t,e,n){"use strict";n.d(e,"a",function(){return h});var r=n("1OyB"),i=n("vuIU"),o=n("JX7q"),a=n("ReuC"),s=n("Ji7U"),c=n("md7G"),u=n("foSv"),l=function(){var t=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.now;Object(r.a)(this,t),this.SchedulerAction=e,this.now=n}return Object(i.a)(t,[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,t).schedule(n,e)}}]),t}();return t.now=function(){return Date.now()},t}(),h=function(t){Object(s.a)(n,t);var e=function(t){function e(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}return function(){var n,r=Object(u.a)(t);if(e()){var i=Object(u.a)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(c.a)(this,n)}}(n);function n(t){var i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.now;return Object(r.a)(this,n),(i=e.call(this,t,function(){return n.delegate&&n.delegate!==Object(o.a)(i)?n.delegate.now():a()})).actions=[],i.active=!1,i.scheduled=void 0,i}return Object(i.a)(n,[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0;return n.delegate&&n.delegate!==this?n.delegate.schedule(t,e,r):Object(a.a)(Object(u.a)(n.prototype),"schedule",this).call(this,t,e,r)}},{key:"flush",value:function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}}]),n}(l)},IzEk:function(t,e,n){"use strict";n.d(e,"a",function(){return h});var r=n("Ji7U"),i=n("md7G"),o=n("foSv"),a=n("1OyB"),s=n("vuIU"),c=n("7o/Q"),u=n("4I5i"),l=n("EY2u");function h(t){return function(e){return 0===t?Object(l.b)():e.lift(new f(t))}}var f=function(){function t(e){if(Object(a.a)(this,t),this.total=e,this.total<0)throw new u.a}return Object(s.a)(t,[{key:"call",value:function(t,e){return e.subscribe(new d(t,this.total))}}]),t}(),d=function(t){Object(r.a)(n,t);var e=function(t){function e(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}return function(){var n,r=Object(o.a)(t);if(e()){var a=Object(o.a)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Object(i.a)(this,n)}}(n);function n(t,r){var i;return Object(a.a)(this,n),(i=e.call(this,t)).total=r,i.count=0,i}return Object(s.a)(n,[{key:"_next",value:function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}]),n}(c.a)},JIr8:function(t,e,n){"use strict";n.d(e,"a",function(){return l});var r=n("ReuC"),i=n("Ji7U"),o=n("md7G"),a=n("foSv"),s=n("1OyB"),c=n("vuIU"),u=n("zx2A");function l(t){return function(e){var n=new h(t),r=e.lift(n);return n.caught=r}}var h=function(){function t(e){Object(s.a)(this,t),this.selector=e}return Object(c.a)(t,[{key:"call",value:function(t,e){return e.subscribe(new f(t,this.selector,this.caught))}}]),t}(),f=function(t){Object(i.a)(n,t);var e=function(t){function e(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}return function(){var n,r=Object(a.a)(t);if(e()){var i=Object(a.a)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(o.a)(this,n)}}(n);function n(t,r,i){var o;return Object(s.a)(this,n),(o=e.call(this,t)).selector=r,o.caught=i,o}return Object(c.a)(n,[{key:"error",value:function(t){if(!this.isStopped){var e;try{e=this.selector(t,this.caught)}catch(s){return void Object(r.a)(Object(a.a)(n.prototype),"error",this).call(this,s)}this._unsubscribeAndRecycle();var i=new u.a(this);this.add(i);var o=Object(u.c)(e,i);o!==i&&this.add(o)}}}]),n}(u.b)},JX7q:function(t,e,n){"use strict";function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}n.d(e,"a",function(){return r})},JX91:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("GyhO"),i=n("z+Ro");function o(){for(var t=arguments.length,e=new Array(t),n=0;n1&&void 0!==arguments[1]?arguments[1]:u.a;return function(n){return n.lift(new h(t,e))}}var h=function(){function t(e,n){Object(a.a)(this,t),this.dueTime=e,this.scheduler=n}return Object(s.a)(t,[{key:"call",value:function(t,e){return e.subscribe(new f(t,this.dueTime,this.scheduler))}}]),t}(),f=function(t){Object(r.a)(n,t);var e=function(t){function e(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}return function(){var n,r=Object(o.a)(t);if(e()){var a=Object(o.a)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Object(i.a)(this,n)}}(n);function n(t,r,i){var o;return Object(a.a)(this,n),(o=e.call(this,t)).dueTime=r,o.scheduler=i,o.debouncedSubscription=null,o.lastValue=null,o.hasValue=!1,o}return Object(s.a)(n,[{key:"_next",value:function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(d,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}},{key:"clearDebounce",value:function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}]),n}(c.a);function d(t){t.debouncedNext()}},Kqap:function(t,e,n){"use strict";n.d(e,"a",function(){return u});var r=n("Ji7U"),i=n("md7G"),o=n("foSv"),a=n("1OyB"),s=n("vuIU"),c=n("7o/Q");function u(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new l(t,e,n))}}var l=function(){function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];Object(a.a)(this,t),this.accumulator=e,this.seed=n,this.hasSeed=r}return Object(s.a)(t,[{key:"call",value:function(t,e){return e.subscribe(new h(t,this.accumulator,this.seed,this.hasSeed))}}]),t}(),h=function(t){Object(r.a)(n,t);var e=function(t){function e(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}return function(){var n,r=Object(o.a)(t);if(e()){var a=Object(o.a)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Object(i.a)(this,n)}}(n);function n(t,r,i,o){var s;return Object(a.a)(this,n),(s=e.call(this,t)).accumulator=r,s._seed=i,s.hasSeed=o,s.index=0,s}return Object(s.a)(n,[{key:"seed",get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t}},{key:"_next",value:function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}},{key:"_tryNext",value: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)}}]),n}(c.a)},LRne:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n("z+Ro"),i=n("yCtX"),o=n("jZKg");function a(){for(var t=arguments.length,e=new Array(t),n=0;n1&&void 0!==arguments[1]?arguments[1]:t;return this._fontCssClassesByAlias.set(t,e),this}},{key:"classNameForFontAlias",value:function(t){return this._fontCssClassesByAlias.get(t)||t}},{key:"setDefaultFontSetClass",value:function(t){return this._defaultFontSetClass=t,this}},{key:"getDefaultFontSetClass",value:function(){return this._defaultFontSetClass}},{key:"getSvgIconFromUrl",value:function(t){var e=this,n=this._sanitizer.sanitize(u.K.RESOURCE_URL,t);if(!n)throw C(t);var r=this._cachedIconsByUrl.get(n);return r?Object(d.a)(A(r)):this._loadSvgIconFromConfig(new T(t,null)).pipe(Object(v.a)(function(t){return e._cachedIconsByUrl.set(n,t)}),Object(g.a)(function(t){return A(t)}))}},{key:"getNamedSvgIcon",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=R(e,t),r=this._svgIconConfigs.get(n);if(r)return this._getSvgFromConfig(r);if(r=this._getIconConfigFromResolvers(e,t))return this._svgIconConfigs.set(n,r),this._getSvgFromConfig(r);var i=this._iconSetConfigs.get(e);return i?this._getSvgFromIconSetConfigs(t,i):Object(p.a)(E(n))}},{key:"ngOnDestroy",value:function(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}},{key:"_getSvgFromConfig",value:function(t){return t.svgText?Object(d.a)(A(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(Object(g.a)(function(t){return A(t)}))}},{key:"_getSvgFromIconSetConfigs",value:function(t,e){var n=this,r=this._extractIconWithNameFromAnySet(t,e);if(r)return Object(d.a)(r);var i=e.filter(function(t){return!t.svgText}).map(function(t){return n._loadSvgIconSetFromConfig(t).pipe(Object(y.a)(function(e){var r=n._sanitizer.sanitize(u.K.RESOURCE_URL,t.url),i="Loading icon set URL: ".concat(r," failed: ").concat(e.message);return n._errorHandler.handleError(new Error(i)),Object(d.a)(null)}))});return Object(b.a)(i).pipe(Object(g.a)(function(){var r=n._extractIconWithNameFromAnySet(t,e);if(!r)throw E(t);return r}))}},{key:"_extractIconWithNameFromAnySet",value:function(t,e){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.svgText&&r.svgText.indexOf(t)>-1){var i=this._svgElementFromConfig(r),o=this._extractSvgIconFromSet(i,t,r.options);if(o)return o}}return null}},{key:"_loadSvgIconFromConfig",value:function(t){var e=this;return this._fetchIcon(t).pipe(Object(v.a)(function(e){return t.svgText=e}),Object(g.a)(function(){return e._svgElementFromConfig(t)}))}},{key:"_loadSvgIconSetFromConfig",value:function(t){return t.svgText?Object(d.a)(null):this._fetchIcon(t).pipe(Object(v.a)(function(e){return t.svgText=e}))}},{key:"_extractSvgIconFromSet",value:function(t,e,n){var r=t.querySelector('[id="'.concat(e,'"]'));if(!r)return null;var i=r.cloneNode(!0);if(i.removeAttribute("id"),"svg"===i.nodeName.toLowerCase())return this._setSvgAttributes(i,n);if("symbol"===i.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(i),n);var o=this._svgElementFromString("");return o.appendChild(i),this._setSvgAttributes(o,n)}},{key:"_svgElementFromString",value:function(t){var e=this._document.createElement("DIV");e.innerHTML=t;var n=e.querySelector("svg");if(!n)throw Error(" tag not found");return n}},{key:"_toSvgElement",value:function(t){for(var e=this._svgElementFromString(""),n=t.attributes,r=0;r0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,s=-1;return Object(o.a)(e)?s=Number(e)<1?1:Number(e):Object(a.a)(e)&&(n=e),Object(a.a)(n)||(n=i.a),new r.a(function(e){var r=Object(o.a)(t)?t:+t-n.now();return n.schedule(c,r,{index:0,period:s,subscriber:e})})}function c(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)}}},R0Ic:function(t,e,n){"use strict";n.d(e,"a",function(){return s}),n.d(e,"b",function(){return o}),n.d(e,"c",function(){return a}),n.d(e,"d",function(){return _}),n.d(e,"e",function(){return u}),n.d(e,"f",function(){return m}),n.d(e,"g",function(){return b}),n.d(e,"h",function(){return d}),n.d(e,"i",function(){return g}),n.d(e,"j",function(){return l}),n.d(e,"k",function(){return y}),n.d(e,"l",function(){return f}),n.d(e,"m",function(){return h}),n.d(e,"n",function(){return p}),n.d(e,"o",function(){return c}),n.d(e,"p",function(){return v}),n.d(e,"q",function(){return k}),n.d(e,"r",function(){return x});var r=n("vuIU"),i=n("1OyB"),o=function t(){Object(i.a)(this,t)},a=function t(){Object(i.a)(this,t)},s="*";function c(t,e){return{type:7,name:t,definitions:e,options:{}}}function u(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:e,timings:t}}function l(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:t,options:e}}function h(t){return{type:6,styles:t,offset:null}}function f(t,e,n){return{type:0,name:t,styles:e,options:n}}function d(t){return{type:5,steps:t}}function p(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:t,animation:e,options:n}}function b(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:8,animation:t,options:e}}function m(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:t}}function v(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:10,animation:t,options:e}}function g(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:t,animation:e,options:n}}function y(t,e){return{type:12,timings:t,animation:e}}function w(t){Promise.resolve(null).then(t)}var _=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Object(i.a)(this,t),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+n}return Object(r.a)(t,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var t=this;w(function(){return t._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"reset",value:function(){}},{key:"setPosition",value:function(t){this._position=this.totalTime?t*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0}}]),t}(),k=function(){function t(e){var n=this;Object(i.a)(this,t),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;var r=0,o=0,a=0,s=this.players.length;0==s?w(function(){return n._onFinish()}):this.players.forEach(function(t){t.onDone(function(){++r==s&&n._onFinish()}),t.onDestroy(function(){++o==s&&n._onDestroy()}),t.onStart(function(){++a==s&&n._onStart()})}),this.totalTime=this.players.reduce(function(t,e){return Math.max(t,e.totalTime)},0)}return Object(r.a)(t,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(t){return t.init()})}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[])}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(t){return t.play()})}},{key:"pause",value:function(){this.players.forEach(function(t){return t.pause()})}},{key:"restart",value:function(){this.players.forEach(function(t){return t.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(t){return t.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(t){return t.destroy()}),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(t){return t.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(t){var e=t*this.totalTime;this.players.forEach(function(t){var n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})}},{key:"getPosition",value:function(){var t=this.players.reduce(function(t,e){return null===t||e.totalTime>t.totalTime?e:t},null);return null!=t?t.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(t){t.beforeDestroy&&t.beforeDestroy()})}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0}}]),t}(),x="!"},R1ws:function(t,e,n){"use strict";n.d(e,"a",function(){return Ge}),n.d(e,"b",function(){return Qe});var r=n("ODXe"),i=n("1OyB"),o=n("vuIU"),a=n("Ji7U"),s=n("md7G"),c=n("foSv"),u=n("fXoL"),l=n("jhN1"),h=n("R0Ic"),f=n("ReuC"),d=n("KQm4");function p(t){function e(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}return function(){var n,r=Object(c.a)(t);if(e()){var i=Object(c.a)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(s.a)(this,n)}}function b(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function m(t){switch(t.length){case 0:return new h.d;case 1:return t[0];default:return new h.q(t)}}function v(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=[],s=[],c=-1,u=null;if(r.forEach(function(t){var n=t.offset,r=n==c,l=r&&u||{};Object.keys(t).forEach(function(n){var r=n,s=t[n];if("offset"!==n)switch(r=e.normalizePropertyName(r,a),s){case h.r:s=i[n];break;case h.a:s=o[n];break;default:s=e.normalizeStyleValue(n,r,s,a)}l[r]=s}),r||s.push(l),u=l,c=n}),a.length){var l="\n - ";throw new Error("Unable to animate due to the following errors:".concat(l).concat(a.join(l)))}return s}function g(t,e,n,r){switch(e){case"start":t.onStart(function(){return r(n&&y(n,"start",t))});break;case"done":t.onDone(function(){return r(n&&y(n,"done",t))});break;case"destroy":t.onDestroy(function(){return r(n&&y(n,"destroy",t))})}}function y(t,e,n){var r=n.totalTime,i=w(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==r?t.totalTime:r,!!n.disabled),o=t._data;return null!=o&&(i._data=o),i}function w(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6?arguments[6]:void 0;return{element:t,triggerName:e,fromState:n,toState:r,phaseName:i,totalTime:o,disabled:!!a}}function _(t,e,n){var r;return t instanceof Map?(r=t.get(e))||t.set(e,r=n):(r=t[e])||(r=t[e]=n),r}function k(t){var e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}var x=function(t,e){return!1},O=function(t,e){return!1},S=function(t,e,n){return[]},E=b();(E||"undefined"!=typeof Element)&&(x=function(t,e){return t.contains(e)},O=function(){if(E||Element.prototype.matches)return function(t,e){return t.matches(e)};var t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?function(t,n){return e.apply(t,[n])}:O}(),S=function(t,e,n){var r=[];if(n)for(var i=t.querySelectorAll(e),o=0;o1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).forEach(function(n){e[n]=t[n]}),e}function Y(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e)for(var r in t)n[r]=t[r];else H(t,n);return n}function G(t,e,n){return n?e+":"+n+";":""}function K(t){for(var e="",n=0;n *";case":leave":return"* => void";case":increment":return function(t,e){return parseFloat(e)>parseFloat(t)};case":decrement":return function(t,e){return parseFloat(e) *"}}(t,n);if("function"==typeof r)return void e.push(r);t=r}var i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push('The provided transition expression "'.concat(t,'" is not supported')),e;var o=i[1],a=i[2],s=i[3];e.push(ht(o,s)),"<"!=a[0]||o==ct&&s==ct||e.push(ht(s,o))}(t,i,r)}):i.push(n),i),animation:o,queryCount:e.queryCount,depCount:e.depCount,options:gt(t.options)}}},{key:"visitSequence",value:function(t,e){var n=this;return{type:2,steps:t.steps.map(function(t){return at(n,t,e)}),options:gt(t.options)}}},{key:"visitGroup",value:function(t,e){var n=this,r=e.currentTime,i=0,o=t.steps.map(function(t){e.currentTime=r;var o=at(n,t,e);return i=Math.max(i,e.currentTime),o});return e.currentTime=i,{type:3,steps:o,options:gt(t.options)}}},{key:"visitAnimate",value:function(t,e){var n,r=function(t,e){var n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return yt(z(t,e).duration,0,"");var r=t;if(r.split(/\s+/).some(function(t){return"{"==t.charAt(0)&&"{"==t.charAt(1)})){var i=yt(0,0,"");return i.dynamic=!0,i.strValue=r,i}return yt((n=n||z(r,e)).duration,n.delay,n.easing)}(t.timings,e.errors);e.currentAnimateTimings=r;var i=t.styles?t.styles:Object(h.m)({});if(5==i.type)n=this.visitKeyframes(i,e);else{var o=t.styles,a=!1;if(!o){a=!0;var s={};r.easing&&(s.easing=r.easing),o=Object(h.m)(s)}e.currentTime+=r.duration+r.delay;var c=this.visitStyle(o,e);c.isEmptyStep=a,n=c}return e.currentAnimateTimings=null,{type:4,timings:r,style:n,options:null}}},{key:"visitStyle",value:function(t,e){var n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}},{key:"_makeStyleAst",value:function(t,e){var n=[];Array.isArray(t.styles)?t.styles.forEach(function(t){"string"==typeof t?t==h.a?n.push(t):e.errors.push("The provided style string value ".concat(t," is not allowed.")):n.push(t)}):n.push(t.styles);var r=!1,i=null;return n.forEach(function(t){if(vt(t)){var e=t,n=e.easing;if(n&&(i=n,delete e.easing),!r)for(var o in e)if(e[o].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:n,easing:i,offset:t.offset,containsDynamicStyles:r,options:null}}},{key:"_validateStyleAst",value:function(t,e){var n=this,r=e.currentAnimateTimings,i=e.currentTime,o=e.currentTime;r&&o>0&&(o-=r.duration+r.delay),t.styles.forEach(function(t){"string"!=typeof t&&Object.keys(t).forEach(function(r){if(n._driver.validateStyleProperty(r)){var a,s,c,u=e.collectedStyles[e.currentQuerySelector],l=u[r],h=!0;l&&(o!=i&&o>=l.startTime&&i<=l.endTime&&(e.errors.push('The CSS property "'.concat(r,'" that exists between the times of "').concat(l.startTime,'ms" and "').concat(l.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(o,'ms" and "').concat(i,'ms"')),h=!1),o=l.startTime),h&&(u[r]={startTime:o,endTime:i}),e.options&&(a=e.errors,s=e.options.params||{},(c=$(t[r])).length&&c.forEach(function(t){s.hasOwnProperty(t)||a.push("Unable to resolve the local animation param ".concat(t," in the given list of values"))}))}else e.errors.push('The provided animation property "'.concat(r,'" is not a supported CSS property for animations'))})})}},{key:"visitKeyframes",value:function(t,e){var n=this,r={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),r;var i=0,o=[],a=!1,s=!1,c=0,u=t.steps.map(function(t){var r=n._makeStyleAst(t,e),u=null!=r.offset?r.offset:function(t){if("string"==typeof t)return null;var e=null;if(Array.isArray(t))t.forEach(function(t){if(vt(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}});else if(vt(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}return e}(r.styles),l=0;return null!=u&&(i++,l=r.offset=u),s=s||l<0||l>1,a=a||l0&&i0?i==f?1:h*i:o[i],s=a*b;e.currentTime=d+p.delay+s,p.duration=s,n._validateStyleAst(t,e),t.offset=a,r.styles.push(t)}),r}},{key:"visitReference",value:function(t,e){return{type:8,animation:at(this,Z(t.animation),e),options:gt(t.options)}}},{key:"visitAnimateChild",value:function(t,e){return e.depCount++,{type:9,options:gt(t.options)}}},{key:"visitAnimateRef",value:function(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:gt(t.options)}}},{key:"visitQuery",value:function(t,e){var n=e.currentQuerySelector,i=t.options||{};e.queryCount++,e.currentQuery=t;var o=function(t){var e=!!t.split(/\s*,\s*/).find(function(t){return t==ft});return e&&(t=t.replace(dt,"")),[t=t.replace(/@\*/g,V).replace(/@\w+/g,function(t){return".ng-trigger-"+t.substr(1)}).replace(/:animating/g,B),e]}(t.selector),a=Object(r.a)(o,2),s=a[0],c=a[1];e.currentQuerySelector=n.length?n+" "+s:s,_(e.collectedStyles,e.currentQuerySelector,{});var u=at(this,Z(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:s,limit:i.limit||0,optional:!!i.optional,includeSelf:c,animation:u,originalSelector:t.selector,options:gt(t.options)}}},{key:"visitStagger",value:function(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");var n="full"===t.timings?{duration:0,delay:0,easing:"full"}:z(t.timings,e.errors,!0);return{type:12,animation:at(this,Z(t.animation),e),timings:n,options:null}}}]),t}(),mt=function t(e){Object(i.a)(this,t),this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null};function vt(t){return!Array.isArray(t)&&"object"==typeof t}function gt(t){var e;return t?(t=H(t)).params&&(t.params=(e=t.params)?H(e):null):t={},t}function yt(t,e,n){return{duration:t,delay:e,easing:n}}function wt(t,e,n,r,i,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:a,subTimeline:s}}var _t=function(){function t(){Object(i.a)(this,t),this._map=new Map}return Object(o.a)(t,[{key:"consume",value:function(t){var e=this._map.get(t);return e?this._map.delete(t):e=[],e}},{key:"append",value:function(t,e){var n,r=this._map.get(t);r||this._map.set(t,r=[]),(n=r).push.apply(n,Object(d.a)(e))}},{key:"has",value:function(t){return this._map.has(t)}},{key:"clear",value:function(){this._map.clear()}}]),t}(),kt=new RegExp(":enter","g"),xt=new RegExp(":leave","g");function Ot(t,e,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,c=arguments.length>8?arguments[8]:void 0,u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new St).buildKeyframes(t,e,n,r,i,o,a,s,c,u)}var St=function(){function t(){Object(i.a)(this,t)}return Object(o.a)(t,[{key:"buildKeyframes",value:function(t,e,n,r,i,o,a,s,c){var u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];c=c||new _t;var l=new Ct(t,e,c,r,i,u,[]);l.options=s,l.currentTimeline.setStyles([o],null,l.errors,s),at(this,n,l);var h=l.timelines.filter(function(t){return t.containsAnimation()});if(h.length&&Object.keys(a).length){var f=h[h.length-1];f.allowOnlyTimelineStyles()||f.setStyles([a],null,l.errors,s)}return h.length?h.map(function(t){return t.buildKeyframes()}):[wt(e,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(t,e){}},{key:"visitState",value:function(t,e){}},{key:"visitTransition",value:function(t,e){}},{key:"visitAnimateChild",value:function(t,e){var n=e.subInstructions.consume(e.element);if(n){var r=e.createSubContext(t.options),i=e.currentTimeline.currentTime,o=this._visitSubInstructions(n,r,r.options);i!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t}},{key:"visitAnimateRef",value:function(t,e){var n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}},{key:"_visitSubInstructions",value:function(t,e,n){var r=e.currentTimeline.currentTime,i=null!=n.duration?q(n.duration):null,o=null!=n.delay?q(n.delay):null;return 0!==i&&t.forEach(function(t){var n=e.appendInstructionToTimeline(t,i,o);r=Math.max(r,n.duration+n.delay)}),r}},{key:"visitReference",value:function(t,e){e.updateOptions(t.options,!0),at(this,t.animation,e),e.previousNode=t}},{key:"visitSequence",value:function(t,e){var n=this,r=e.subContextCount,i=e,o=t.options;if(o&&(o.params||o.delay)&&((i=e.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Et);var a=q(o.delay);i.delayNextStep(a)}t.steps.length&&(t.steps.forEach(function(t){return at(n,t,i)}),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),e.previousNode=t}},{key:"visitGroup",value:function(t,e){var n=this,r=[],i=e.currentTimeline.currentTime,o=t.options&&t.options.delay?q(t.options.delay):0;t.steps.forEach(function(a){var s=e.createSubContext(t.options);o&&s.delayNextStep(o),at(n,a,s),i=Math.max(i,s.currentTimeline.currentTime),r.push(s.currentTimeline)}),r.forEach(function(t){return e.currentTimeline.mergeTimelineCollectedStyles(t)}),e.transformIntoNewTimeline(i),e.previousNode=t}},{key:"_visitTiming",value:function(t,e){if(t.dynamic){var n=t.strValue;return z(e.params?tt(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}},{key:"visitAnimate",value:function(t,e){var n=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),r.snapshotCurrentStyles());var i=t.style;5==i.type?this.visitKeyframes(i,e):(e.incrementTime(n.duration),this.visitStyle(i,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}},{key:"visitStyle",value:function(t,e){var n=e.currentTimeline,r=e.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();var i=r&&r.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(i):n.setStyles(t.styles,i,e.errors,e.options),e.previousNode=t}},{key:"visitKeyframes",value:function(t,e){var n=e.currentAnimateTimings,r=e.currentTimeline.duration,i=n.duration,o=e.createSubContext().currentTimeline;o.easing=n.easing,t.styles.forEach(function(t){o.forwardTime((t.offset||0)*i),o.setStyles(t.styles,t.easing,e.errors,e.options),o.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(o),e.transformIntoNewTimeline(r+i),e.previousNode=t}},{key:"visitQuery",value:function(t,e){var n=this,r=e.currentTimeline.currentTime,i=t.options||{},o=i.delay?q(i.delay):0;o&&(6===e.previousNode.type||0==r&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Et);var a=r,s=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=s.length;var c=null;s.forEach(function(r,i){e.currentQueryIndex=i;var s=e.createSubContext(t.options,r);o&&s.delayNextStep(o),r===e.element&&(c=s.currentTimeline),at(n,t.animation,s),s.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,s.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),c&&(e.currentTimeline.mergeTimelineCollectedStyles(c),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}},{key:"visitStagger",value:function(t,e){var n=e.parentContext,r=e.currentTimeline,i=t.timings,o=Math.abs(i.duration),a=o*(e.currentQueryTotal-1),s=o*e.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":s=a-s;break;case"full":s=n.currentStaggerTime}var c=e.currentTimeline;s&&c.delayNextStep(s);var u=c.currentTime;at(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=r.currentTime-u+(r.startTime-n.currentTimeline.startTime)}}]),t}(),Et={},Ct=function(){function t(e,n,r,o,a,s,c,u){Object(i.a)(this,t),this._driver=e,this.element=n,this.subInstructions=r,this._enterClassName=o,this._leaveClassName=a,this.errors=s,this.timelines=c,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Et,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=u||new jt(this._driver,n,0),c.push(this.currentTimeline)}return Object(o.a)(t,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(t,e){var n=this;if(t){var r=t,i=this.options;null!=r.duration&&(i.duration=q(r.duration)),null!=r.delay&&(i.delay=q(r.delay));var o=r.params;if(o){var a=i.params;a||(a=this.options.params={}),Object.keys(o).forEach(function(t){e&&a.hasOwnProperty(t)||(a[t]=tt(o[t],a,n.errors))})}}}},{key:"_copyOptions",value:function(){var t={};if(this.options){var e=this.options.params;if(e){var n=t.params={};Object.keys(e).forEach(function(t){n[t]=e[t]})}}return t}},{key:"createSubContext",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,i=n||this.element,o=new t(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}},{key:"transformIntoNewTimeline",value:function(t){return this.previousNode=Et,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(t,e,n){var r={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},i=new Tt(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(i),r}},{key:"incrementTime",value:function(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}},{key:"delayNextStep",value:function(t){t>0&&this.currentTimeline.delayNextStep(t)}},{key:"invokeQuery",value:function(t,e,n,r,i,o){var a=[];if(r&&a.push(this.element),t.length>0){t=(t=t.replace(kt,"."+this._enterClassName)).replace(xt,"."+this._leaveClassName);var s=this._driver.query(this.element,t,1!=n);0!==n&&(s=n<0?s.slice(s.length+n,s.length):s.slice(0,n)),a.push.apply(a,Object(d.a)(s))}return i||0!=a.length||o.push('`query("'.concat(e,'")` returned zero elements. (Use `query("').concat(e,'", { optional: true })` if you wish to allow this.)')),a}}]),t}(),jt=function(){function t(e,n,r,o){Object(i.a)(this,t),this._driver=e,this.element=n,this.startTime=r,this._elementTimelineStylesLookup=o,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}return Object(o.a)(t,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"delayNextStep",value:function(t){var e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}},{key:"fork",value:function(e,n){return this.applyStylesToKeyframe(),new t(this._driver,e,n||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}},{key:"_updateStyle",value:function(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(t){var e=this;t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(function(t){e._backFill[t]=e._globalTimelineStyles[t]||h.a,e._currentKeyframe[t]=h.a}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(t,e,n,r){var i=this;e&&(this._previousKeyframe.easing=e);var o=r&&r.params||{},a=function(t,e){var n,r={};return t.forEach(function(t){"*"===t?(n=n||Object.keys(e)).forEach(function(t){r[t]=h.a}):Y(t,!1,r)}),r}(t,this._globalTimelineStyles);Object.keys(a).forEach(function(t){var e=tt(a[t],o,n);i._pendingStyles[t]=e,i._localTimelineStyles.hasOwnProperty(t)||(i._backFill[t]=i._globalTimelineStyles.hasOwnProperty(t)?i._globalTimelineStyles[t]:h.a),i._updateStyle(t,e)})}},{key:"applyStylesToKeyframe",value:function(){var t=this,e=this._pendingStyles,n=Object.keys(e);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){t._currentKeyframe[n]=e[n]}),Object.keys(this._localTimelineStyles).forEach(function(e){t._currentKeyframe.hasOwnProperty(e)||(t._currentKeyframe[e]=t._localTimelineStyles[e])}))}},{key:"snapshotCurrentStyles",value:function(){var t=this;Object.keys(this._localTimelineStyles).forEach(function(e){var n=t._localTimelineStyles[e];t._pendingStyles[e]=n,t._updateStyle(e,n)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"properties",get:function(){var t=[];for(var e in this._currentKeyframe)t.push(e);return t}},{key:"mergeTimelineCollectedStyles",value:function(t){var e=this;Object.keys(t._styleSummary).forEach(function(n){var r=e._styleSummary[n],i=t._styleSummary[n];(!r||i.time>r.time)&&e._updateStyle(n,i.value)})}},{key:"buildKeyframes",value:function(){var t=this;this.applyStylesToKeyframe();var e=new Set,n=new Set,r=1===this._keyframes.size&&0===this.duration,i=[];this._keyframes.forEach(function(o,a){var s=Y(o,!0);Object.keys(s).forEach(function(t){var r=s[t];r==h.r?e.add(t):r==h.a&&n.add(t)}),r||(s.offset=a/t.duration),i.push(s)});var o=e.size?et(e.values()):[],a=n.size?et(n.values()):[];if(r){var s=i[0],c=H(s);s.offset=0,c.offset=1,i=[s,c]}return wt(this.element,i,o,a,this.duration,this.startTime,this.easing,!1)}}]),t}(),Tt=function(t){Object(a.a)(n,t);var e=p(n);function n(t,r,o,a,s,c){var u,l=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return Object(i.a)(this,n),(u=e.call(this,t,r,c.delay)).element=r,u.keyframes=o,u.preStyleProps=a,u.postStyleProps=s,u._stretchStartingKeyframe=l,u.timings={duration:c.duration,delay:c.delay,easing:c.easing},u}return Object(o.a)(n,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var t=this.keyframes,e=this.timings,n=e.delay,r=e.duration,i=e.easing;if(this._stretchStartingKeyframe&&n){var o=[],a=r+n,s=n/a,c=Y(t[0],!1);c.offset=0,o.push(c);var u=Y(t[0],!1);u.offset=It(s),o.push(u);for(var l=t.length-1,h=1;h<=l;h++){var f=Y(t[h],!1);f.offset=It((n+f.offset*r)/a),o.push(f)}r=a,n=0,i="",t=o}return wt(this.element,t,this.preStyleProps,this.postStyleProps,r,n,i,!0)}}]),n}(jt);function It(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=Math.pow(10,e-1);return Math.round(t*n)/n}var At=function t(){Object(i.a)(this,t)},Rt=function(t){Object(a.a)(n,t);var e=p(n);function n(){return Object(i.a)(this,n),e.apply(this,arguments)}return Object(o.a)(n,[{key:"normalizePropertyName",value:function(t,e){return rt(t)}},{key:"normalizeStyleValue",value:function(t,e,n,r){var i="",o=n.toString().trim();if(Pt[e]&&0!==n&&"0"!==n)if("number"==typeof n)i="px";else{var a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push("Please provide a CSS unit value for ".concat(t,":").concat(n))}return o+i}}]),n}(At),Pt=function(){return t="width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","),e={},t.forEach(function(t){return e[t]=!0}),e;var t,e}();function Lt(t,e,n,r,i,o,a,s,c,u,l,h,f){return{type:0,element:t,triggerName:e,isRemovalTransition:i,fromState:n,fromStyles:o,toState:r,toStyles:a,timelines:s,queriedElements:c,preStyleProps:u,postStyleProps:l,totalTime:h,errors:f}}var Nt={},Dt=function(){function t(e,n,r){Object(i.a)(this,t),this._triggerName=e,this.ast=n,this._stateStyles=r}return Object(o.a)(t,[{key:"match",value:function(t,e,n,r){return function(t,e,n,r,i){return t.some(function(t){return t(e,n,r,i)})}(this.ast.matchers,t,e,n,r)}},{key:"buildStyles",value:function(t,e,n){var r=this._stateStyles["*"],i=this._stateStyles[t],o=r?r.buildStyles(e,n):{};return i?i.buildStyles(e,n):o}},{key:"build",value:function(t,e,n,r,i,o,a,s,c,u){var l=[],h=this.ast.options&&this.ast.options.params||Nt,f=this.buildStyles(n,a&&a.params||Nt,l),d=s&&s.params||Nt,p=this.buildStyles(r,d,l),b=new Set,m=new Map,v=new Map,g="void"===r,y={params:Object.assign(Object.assign({},h),d)},w=u?[]:Ot(t,e,this.ast.animation,i,o,f,p,y,c,l),k=0;if(w.forEach(function(t){k=Math.max(t.duration+t.delay,k)}),l.length)return Lt(e,this._triggerName,n,r,g,f,p,[],[],m,v,k,l);w.forEach(function(t){var n=t.element,r=_(m,n,{});t.preStyleProps.forEach(function(t){return r[t]=!0});var i=_(v,n,{});t.postStyleProps.forEach(function(t){return i[t]=!0}),n!==e&&b.add(n)});var x=et(b.values());return Lt(e,this._triggerName,n,r,g,f,p,w,x,m,v,k)}}]),t}(),Mt=function(){function t(e,n){Object(i.a)(this,t),this.styles=e,this.defaultParams=n}return Object(o.a)(t,[{key:"buildStyles",value:function(t,e){var n={},r=H(this.defaultParams);return Object.keys(t).forEach(function(e){var n=t[e];null!=n&&(r[e]=n)}),this.styles.styles.forEach(function(t){if("string"!=typeof t){var i=t;Object.keys(i).forEach(function(t){var o=i[t];o.length>1&&(o=tt(o,r,e)),n[t]=o})}}),n}}]),t}(),Ft=function(){function t(e,n){var r=this;Object(i.a)(this,t),this.name=e,this.ast=n,this.transitionFactories=[],this.states={},n.states.forEach(function(t){r.states[t.name]=new Mt(t.style,t.options&&t.options.params||{})}),Vt(this.states,"true","1"),Vt(this.states,"false","0"),n.transitions.forEach(function(t){r.transitionFactories.push(new Dt(e,t,r.states))}),this.fallbackTransition=new Dt(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(t,e){return!0}],options:null,queryCount:0,depCount:0},this.states)}return Object(o.a)(t,[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(t,e,n,r){return this.transitionFactories.find(function(i){return i.match(t,e,n,r)})||null}},{key:"matchStyles",value:function(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}]),t}();function Vt(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}var Ut=new _t,Bt=function(){function t(e,n,r){Object(i.a)(this,t),this.bodyNode=e,this._driver=n,this._normalizer=r,this._animations={},this._playersById={},this.players=[]}return Object(o.a)(t,[{key:"register",value:function(t,e){var n=[],r=pt(this._driver,e,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: ".concat(n.join("\n")));this._animations[t]=r}},{key:"_buildPlayer",value:function(t,e,n){var r=t.element,i=v(this._driver,this._normalizer,r,t.keyframes,e,n);return this._driver.animate(r,i,t.duration,t.delay,t.easing,[],!0)}},{key:"create",value:function(t,e){var n,r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=[],a=this._animations[t],s=new Map;if(a?(n=Ot(this._driver,e,a,D,M,{},{},i,Ut,o)).forEach(function(t){var e=_(s,t.element,{});t.postStyleProps.forEach(function(t){return e[t]=null})}):(o.push("The requested animation doesn't exist or has already been destroyed"),n=[]),o.length)throw new Error("Unable to create the animation due to the following errors: ".concat(o.join("\n")));s.forEach(function(t,e){Object.keys(t).forEach(function(n){t[n]=r._driver.computeStyle(e,n,h.a)})});var c=n.map(function(t){var e=s.get(t.element);return r._buildPlayer(t,{},e)}),u=m(c);return this._playersById[t]=u,u.onDestroy(function(){return r.destroy(t)}),this.players.push(u),u}},{key:"destroy",value:function(t){var e=this._getPlayer(t);e.destroy(),delete this._playersById[t];var n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}},{key:"_getPlayer",value:function(t){var e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by ".concat(t));return e}},{key:"listen",value:function(t,e,n,r){var i=w(e,"","","");return g(this._getPlayer(t),n,i,r),function(){}}},{key:"command",value:function(t,e,n,r){if("register"!=n)if("create"!=n){var i=this._getPlayer(t);switch(n){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}else this.create(t,e,r[0]||{});else this.register(t,r[0])}}]),t}(),qt="ng-animate-queued",Xt="ng-animate-disabled",zt=".ng-animate-disabled",Ht="ng-star-inserted",Yt=[],Gt={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Kt={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Wt=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";Object(i.a)(this,t),this.namespaceId=n;var r=e&&e.hasOwnProperty("value"),o=r?e.value:e;if(this.value=ee(o),r){var a=H(e);delete a.value,this.options=a}else this.options={};this.options.params||(this.options.params={})}return Object(o.a)(t,[{key:"params",get:function(){return this.options.params}},{key:"absorbOptions",value:function(t){var e=t.params;if(e){var n=this.options.params;Object.keys(e).forEach(function(t){null==n[t]&&(n[t]=e[t])})}}}]),t}(),Qt="void",Zt=new Wt(Qt),Jt=function(){function t(e,n,r){Object(i.a)(this,t),this.id=e,this.hostElement=n,this._engine=r,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,ae(n,this._hostClassName)}return Object(o.a)(t,[{key:"listen",value:function(t,e,n,r){var i,o=this;if(!this._triggers.hasOwnProperty(e))throw new Error('Unable to listen on the animation trigger event "'.concat(n,'" because the animation trigger "').concat(e,"\" doesn't exist!"));if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'.concat(e,'" because the provided event is undefined!'));if("start"!=(i=n)&&"done"!=i)throw new Error('The provided animation trigger event "'.concat(n,'" for the animation trigger "').concat(e,'" is not supported!'));var a=_(this._elementListeners,t,[]),s={name:e,phase:n,callback:r};a.push(s);var c=_(this._engine.statesByElement,t,{});return c.hasOwnProperty(e)||(ae(t,F),ae(t,"ng-trigger-"+e),c[e]=Zt),function(){o._engine.afterFlush(function(){var t=a.indexOf(s);t>=0&&a.splice(t,1),o._triggers[e]||delete c[e]})}}},{key:"register",value:function(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}},{key:"_getTrigger",value:function(t){var e=this._triggers[t];if(!e)throw new Error('The provided animation trigger "'.concat(t,'" has not been registered!'));return e}},{key:"trigger",value:function(t,e,n){var r=this,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=this._getTrigger(e),a=new te(this.id,e,t),s=this._engine.statesByElement.get(t);s||(ae(t,F),ae(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,s={}));var c=s[e],u=new Wt(n,this.id),l=n&&n.hasOwnProperty("value");!l&&c&&u.absorbOptions(c.options),s[e]=u,c||(c=Zt);var h=u.value===Qt;if(h||c.value!==u.value){var f=_(this._engine.playersByElement,t,[]);f.forEach(function(t){t.namespaceId==r.id&&t.triggerName==e&&t.queued&&t.destroy()});var d=o.matchTransition(c.value,u.value,t,u.params),p=!1;if(!d){if(!i)return;d=o.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:d,fromState:c,toState:u,player:a,isFallbackTransition:p}),p||(ae(t,qt),a.onStart(function(){se(t,qt)})),a.onDone(function(){var e=r.players.indexOf(a);e>=0&&r.players.splice(e,1);var n=r._engine.playersByElement.get(t);if(n){var i=n.indexOf(a);i>=0&&n.splice(i,1)}}),this.players.push(a),f.push(a),a}if(!le(c.params,u.params)){var b=[],m=o.matchStyles(c.value,c.params,b),v=o.matchStyles(u.value,u.params,b);b.length?this._engine.reportError(b):this._engine.afterFlush(function(){Q(t,m),W(t,v)})}}},{key:"deregister",value:function(t){var e=this;delete this._triggers[t],this._engine.statesByElement.forEach(function(e,n){delete e[t]}),this._elementListeners.forEach(function(n,r){e._elementListeners.set(r,n.filter(function(e){return e.name!=t}))})}},{key:"clearElementCache",value:function(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);var e=this._engine.playersByElement.get(t);e&&(e.forEach(function(t){return t.destroy()}),this._engine.playersByElement.delete(t))}},{key:"_signalRemovalForInnerTriggers",value:function(t,e){var n=this,r=this._engine.driver.query(t,V,!0);r.forEach(function(t){if(!t.__ng_removed){var r=n._engine.fetchNamespacesByElement(t);r.size?r.forEach(function(n){return n.triggerLeaveAnimation(t,e,!1,!0)}):n.clearElementCache(t)}}),this._engine.afterFlushAnimationsDone(function(){return r.forEach(function(t){return n.clearElementCache(t)})})}},{key:"triggerLeaveAnimation",value:function(t,e,n,r){var i=this,o=this._engine.statesByElement.get(t);if(o){var a=[];if(Object.keys(o).forEach(function(e){if(i._triggers[e]){var n=i.trigger(t,e,Qt,r);n&&a.push(n)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&m(a).onDone(function(){return i._engine.processLeaveNode(t)}),!0}return!1}},{key:"prepareLeaveAnimationListeners",value:function(t){var e=this,n=this._elementListeners.get(t),r=this._engine.statesByElement.get(t);if(n&&r){var i=new Set;n.forEach(function(n){var o=n.name;if(!i.has(o)){i.add(o);var a=e._triggers[o].fallbackTransition,s=r[o]||Zt,c=new Wt(Qt),u=new te(e.id,o,t);e._engine.totalQueuedPlayers++,e._queue.push({element:t,triggerName:o,transition:a,fromState:s,toState:c,player:u,isFallbackTransition:!0})}})}}},{key:"removeNode",value:function(t,e){var n=this,r=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),!this.triggerLeaveAnimation(t,e,!0)){var i=!1;if(r.totalAnimations){var o=r.players.length?r.playersByQueriedElement.get(t):[];if(o&&o.length)i=!0;else for(var a=t;a=a.parentNode;)if(r.statesByElement.get(a)){i=!0;break}}if(this.prepareLeaveAnimationListeners(t),i)r.markElementAsRemoved(this.id,t,!1,e);else{var s=t.__ng_removed;s&&s!==Gt||(r.afterFlush(function(){return n.clearElementCache(t)}),r.destroyInnerAnimations(t),r._onRemovalComplete(t,e))}}}},{key:"insertNode",value:function(t,e){ae(t,this._hostClassName)}},{key:"drainQueuedTransitions",value:function(t){var e=this,n=[];return this._queue.forEach(function(r){var i=r.player;if(!i.destroyed){var o=r.element,a=e._elementListeners.get(o);a&&a.forEach(function(e){if(e.name==r.triggerName){var n=w(o,r.triggerName,r.fromState.value,r.toState.value);n._data=t,g(r.player,e.phase,n,e.callback)}}),i.markedForDestroy?e._engine.afterFlush(function(){i.destroy()}):n.push(r)}}),this._queue=[],n.sort(function(t,n){var r=t.transition.ast.depCount,i=n.transition.ast.depCount;return 0==r||0==i?r-i:e._engine.driver.containsElement(t.element,n.element)?1:-1})}},{key:"destroy",value:function(t){this.players.forEach(function(t){return t.destroy()}),this._signalRemovalForInnerTriggers(this.hostElement,t)}},{key:"elementContainsData",value:function(t){var e=!1;return this._elementListeners.has(t)&&(e=!0),!!this._queue.find(function(e){return e.element===t})||e}}]),t}(),$t=function(){function t(e,n,r){Object(i.a)(this,t),this.bodyNode=e,this.driver=n,this._normalizer=r,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=function(t,e){}}return Object(o.a)(t,[{key:"_onRemovalComplete",value:function(t,e){this.onRemovalComplete(t,e)}},{key:"queuedPlayers",get:function(){var t=[];return this._namespaceList.forEach(function(e){e.players.forEach(function(e){e.queued&&t.push(e)})}),t}},{key:"createNamespace",value:function(t,e){var n=new Jt(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n}},{key:"_balanceNamespaceList",value:function(t,e){var n=this._namespaceList.length-1;if(n>=0){for(var r=!1,i=n;i>=0;i--)if(this.driver.containsElement(this._namespaceList[i].hostElement,e)){this._namespaceList.splice(i+1,0,t),r=!0;break}r||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}},{key:"register",value:function(t,e){var n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}},{key:"registerTrigger",value:function(t,e,n){var r=this._namespaceLookup[t];r&&r.register(e,n)&&this.totalAnimations++}},{key:"destroy",value:function(t,e){var n=this;if(t){var r=this._fetchNamespace(t);this.afterFlush(function(){n.namespacesByHostElement.delete(r.hostElement),delete n._namespaceLookup[t];var e=n._namespaceList.indexOf(r);e>=0&&n._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(function(){return r.destroy(e)})}}},{key:"_fetchNamespace",value:function(t){return this._namespaceLookup[t]}},{key:"fetchNamespacesByElement",value:function(t){var e=new Set,n=this.statesByElement.get(t);if(n)for(var r=Object.keys(n),i=0;i=0&&this.collectedLeaveElements.splice(o,1)}if(t){var a=this._fetchNamespace(t);a&&a.insertNode(e,n)}r&&this.collectEnterElement(e)}}},{key:"collectEnterElement",value:function(t){this.collectedEnterElements.push(t)}},{key:"markElementAsDisabled",value:function(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),ae(t,Xt)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),se(t,Xt))}},{key:"removeNode",value:function(t,e,n,r){if(ne(e)){var i=t?this._fetchNamespace(t):null;if(i?i.removeNode(e,r):this.markElementAsRemoved(t,e,!1,r),n){var o=this.namespacesByHostElement.get(e);o&&o.id!==t&&o.removeNode(e,r)}}else this._onRemovalComplete(e,r)}},{key:"markElementAsRemoved",value:function(t,e,n,r){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}}},{key:"listen",value:function(t,e,n,r,i){return ne(e)?this._fetchNamespace(t).listen(e,n,r,i):function(){}}},{key:"_buildInstruction",value:function(t,e,n,r,i){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,r,t.fromState.options,t.toState.options,e,i)}},{key:"destroyInnerAnimations",value:function(t){var e=this,n=this.driver.query(t,V,!0);n.forEach(function(t){return e.destroyActiveAnimationsForElement(t)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(t,B,!0)).forEach(function(t){return e.finishActiveQueriedAnimationOnElement(t)})}},{key:"destroyActiveAnimationsForElement",value:function(t){var e=this.playersByElement.get(t);e&&e.forEach(function(t){t.queued?t.markedForDestroy=!0:t.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(t){var e=this.playersByQueriedElement.get(t);e&&e.forEach(function(t){return t.finish()})}},{key:"whenRenderingDone",value:function(){var t=this;return new Promise(function(e){if(t.players.length)return m(t.players).onDone(function(){return e()});e()})}},{key:"processLeaveNode",value:function(t){var e=this,n=t.__ng_removed;if(n&&n.setForRemoval){if(t.__ng_removed=Gt,n.namespaceId){this.destroyInnerAnimations(t);var r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(t)}this._onRemovalComplete(t,n.setForRemoval)}this.driver.matchesElement(t,zt)&&this.markElementAsDisabled(t,!1),this.driver.query(t,zt,!0).forEach(function(t){e.markElementAsDisabled(t,!1)})}},{key:"flush",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(e,n){return t._balanceNamespaceList(e,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var r=0;r=0;I--)this._namespaceList[I].drainQueuedTransitions(e).forEach(function(t){var e=t.player,o=t.element;if(j.push(e),n.collectedEnterElements.length){var l=o.__ng_removed;if(l&&l.setForMove)return void e.destroy()}var h=!f||!n.driver.containsElement(f,o),d=E.get(o),p=v.get(o),b=n._buildInstruction(t,r,p,d,h);if(b.errors&&b.errors.length)T.push(b);else{if(h)return e.onStart(function(){return Q(o,b.fromStyles)}),e.onDestroy(function(){return W(o,b.toStyles)}),void i.push(e);if(t.isFallbackTransition)return e.onStart(function(){return Q(o,b.fromStyles)}),e.onDestroy(function(){return W(o,b.toStyles)}),void i.push(e);b.timelines.forEach(function(t){return t.stretchStartingKeyframe=!0}),r.append(o,b.timelines),a.push({instruction:b,player:e,element:o}),b.queriedElements.forEach(function(t){return _(s,t,[]).push(e)}),b.preStyleProps.forEach(function(t,e){var n=Object.keys(t);if(n.length){var r=c.get(e);r||c.set(e,r=new Set),n.forEach(function(t){return r.add(t)})}}),b.postStyleProps.forEach(function(t,e){var n=Object.keys(t),r=u.get(e);r||u.set(e,r=new Set),n.forEach(function(t){return r.add(t)})})}});if(T.length){var A=[];T.forEach(function(t){A.push("@".concat(t.triggerName," has failed due to:\n")),t.errors.forEach(function(t){return A.push("- ".concat(t,"\n"))})}),j.forEach(function(t){return t.destroy()}),this.reportError(A)}var R=new Map,P=new Map;a.forEach(function(t){var e=t.element;r.has(e)&&(P.set(e,e),n._beforeAnimationBuild(t.player.namespaceId,t.instruction,R))}),i.forEach(function(t){var e=t.element;n._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(function(t){_(R,e,[]).push(t),t.destroy()})});var L=y.filter(function(t){return he(t,c,u)}),N=new Map;ie(N,this.driver,k,u,h.a).forEach(function(t){he(t,c,u)&&L.push(t)});var F=new Map;b.forEach(function(t,e){ie(F,n.driver,new Set(t),c,h.r)}),L.forEach(function(t){var e=N.get(t),n=F.get(t);N.set(t,Object.assign(Object.assign({},e),n))});var V=[],U=[],q={};a.forEach(function(t){var e=t.element,a=t.player,s=t.instruction;if(r.has(e)){if(l.has(e))return a.onDestroy(function(){return W(e,s.toStyles)}),a.disabled=!0,a.overrideTotalTime(s.totalTime),void i.push(a);var c=q;if(P.size>1){for(var u=e,h=[];u=u.parentNode;){var f=P.get(u);if(f){c=f;break}h.push(u)}h.forEach(function(t){return P.set(t,c)})}var d=n._buildAnimation(a.namespaceId,s,R,o,F,N);if(a.setRealPlayer(d),c===q)V.push(a);else{var p=n.playersByElement.get(c);p&&p.length&&(a.parentPlayer=m(p)),i.push(a)}}else Q(e,s.fromStyles),a.onDestroy(function(){return W(e,s.toStyles)}),U.push(a),l.has(e)&&i.push(a)}),U.forEach(function(t){var e=o.get(t.element);if(e&&e.length){var n=m(e);t.setRealPlayer(n)}}),i.forEach(function(t){t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(var X=0;X0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new h.d(t.duration,t.delay)}}]),t}(),te=function(){function t(e,n,r){Object(i.a)(this,t),this.namespaceId=e,this.triggerName=n,this.element=r,this._player=new h.d,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return Object(o.a)(t,[{key:"setRealPlayer",value:function(t){var e=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(function(n){e._queuedCallbacks[n].forEach(function(e){return g(t,n,void 0,e)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(t){this.totalTime=t}},{key:"syncPlayerEvents",value:function(t){var e=this,n=this._player;n.triggerCallback&&t.onStart(function(){return n.triggerCallback("start")}),t.onDone(function(){return e.finish()}),t.onDestroy(function(){return e.destroy()})}},{key:"_queueEvent",value:function(t,e){_(this._queuedCallbacks,t,[]).push(e)}},{key:"onDone",value:function(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}},{key:"onStart",value:function(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}},{key:"onDestroy",value:function(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(t){this.queued||this._player.setPosition(t)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(t){var e=this._player;e.triggerCallback&&e.triggerCallback(t)}}]),t}();function ee(t){return null!=t?t:null}function ne(t){return t&&1===t.nodeType}function re(t,e){var n=t.style.display;return t.style.display=null!=e?e:"none",n}function ie(t,e,n,r,i){var o=[];n.forEach(function(t){return o.push(re(t))});var a=[];r.forEach(function(n,r){var o={};n.forEach(function(t){var n=o[t]=e.computeStyle(r,t,i);n&&0!=n.length||(r.__ng_removed=Kt,a.push(r))}),t.set(r,o)});var s=0;return n.forEach(function(t){return re(t,o[s++])}),a}function oe(t,e){var n=new Map;if(t.forEach(function(t){return n.set(t,[])}),0==e.length)return n;var r=new Set(e),i=new Map;function o(t){if(!t)return 1;var e=i.get(t);if(e)return e;var a=t.parentNode;return e=n.has(a)?a:r.has(a)?1:o(a),i.set(t,e),e}return e.forEach(function(t){var e=o(t);1!==e&&n.get(e).push(t)}),n}function ae(t,e){if(t.classList)t.classList.add(e);else{var n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function se(t,e){if(t.classList)t.classList.remove(e);else{var n=t.$$classes;n&&delete n[e]}}function ce(t,e,n){m(n).onDone(function(){return t.processLeaveNode(e)})}function ue(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(t)}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}}]),t}();function de(t,e){var n=null,r=null;return Array.isArray(e)&&e.length?(n=be(e[0]),e.length>1&&(r=be(e[e.length-1]))):e&&(n=be(e)),n||r?new pe(t,n,r):null}var pe=function(){var t=function(){function t(e,n,r){Object(i.a)(this,t),this._element=e,this._startStyles=n,this._endStyles=r,this._state=0;var o=t.initialStylesByElement.get(e);o||t.initialStylesByElement.set(e,o={}),this._initialStyles=o}return Object(o.a)(t,[{key:"start",value:function(){this._state<1&&(this._startStyles&&W(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(W(this._element,this._initialStyles),this._endStyles&&(W(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Q(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Q(this._element,this._endStyles),this._endStyles=null),W(this._element,this._initialStyles),this._state=3)}}]),t}();return t.initialStylesByElement=new WeakMap,t}();function be(t){for(var e=null,n=Object.keys(t),r=0;r=this._delay&&n>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),xe(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){var t,e,n,r;this._destroyed||(this._destroyed=!0,this.finish(),e=this._name,(r=ke(n=Se(t=this._element,"").split(","),e))>=0&&(n.splice(r,1),Oe(t,"",n.join(","))))}}]),t}();function we(t,e,n){Oe(t,"PlayState",n,_e(t,e))}function _e(t,e){var n=Se(t,"");return n.indexOf(",")>0?ke(n.split(","),e):ke([n],e)}function ke(t,e){for(var n=0;n=0)return n;return-1}function xe(t,e,n){n?t.removeEventListener(ge,e):t.addEventListener(ge,e)}function Oe(t,e,n,r){var i=ve+e;if(null!=r){var o=t.style[i];if(o.length){var a=o.split(",");a[r]=n,n=a.join(",")}}t.style[i]=n}function Se(t,e){return t.style[ve+e]||""}var Ee=function(){function t(e,n,r,o,a,s,c,u){Object(i.a)(this,t),this.element=e,this.keyframes=n,this.animationName=r,this._duration=o,this._delay=a,this._finalStyles=c,this._specialStyles=u,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=s||"linear",this.totalTime=o+a,this._buildStyler()}return Object(o.a)(t,[{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"destroy",value:function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(t){this._styler.setPosition(t)}},{key:"getPosition",value:function(){return this._styler.getPosition()}},{key:"hasStarted",value:function(){return this._state>=2}},{key:"init",value:function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}},{key:"pause",value:function(){this.init(),this._styler.pause()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"reset",value:function(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var t=this;this._styler=new ye(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return t.finish()})}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0}},{key:"beforeDestroy",value:function(){var t=this;this.init();var e={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach(function(r){"offset"!=r&&(e[r]=n?t._finalStyles[r]:st(t.element,r))})}this.currentSnapshot=e}}]),t}(),Ce=function(t){Object(a.a)(n,t);var e=p(n);function n(t,r){var o;return Object(i.a)(this,n),(o=e.call(this)).element=t,o._startingStyles={},o.__initialized=!1,o._styles=P(r),o}return Object(o.a)(n,[{key:"init",value:function(){var t=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(function(e){t._startingStyles[e]=t.element.style[e]}),Object(f.a)(Object(c.a)(n.prototype),"init",this).call(this))}},{key:"play",value:function(){var t=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(function(e){return t.element.style.setProperty(e,t._styles[e])}),Object(f.a)(Object(c.a)(n.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var t=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach(function(e){var n=t._startingStyles[e];n?t.element.style.setProperty(e,n):t.element.style.removeProperty(e)}),this._startingStyles=null,Object(f.a)(Object(c.a)(n.prototype),"destroy",this).call(this))}}]),n}(h.d),je="gen_css_kf_",Te=function(){function t(){Object(i.a)(this,t),this._count=0,this._head=document.querySelector("head")}return Object(o.a)(t,[{key:"validateStyleProperty",value:function(t){return T(t)}},{key:"matchesElement",value:function(t,e){return I(t,e)}},{key:"containsElement",value:function(t,e){return A(t,e)}},{key:"query",value:function(t,e,n){return R(t,e,n)}},{key:"computeStyle",value:function(t,e,n){return window.getComputedStyle(t)[e]}},{key:"buildKeyframeElement",value:function(t,e,n){n=n.map(function(t){return P(t)});var r="@keyframes ".concat(e," {\n"),i="";n.forEach(function(t){i=" ";var e=parseFloat(t.offset);r+="".concat(i).concat(100*e,"% {\n"),i+=" ",Object.keys(t).forEach(function(e){var n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(r+="".concat(i,"animation-timing-function: ").concat(n,";\n")));default:return void(r+="".concat(i).concat(e,": ").concat(n,";\n"))}}),r+="".concat(i,"}\n")}),r+="}\n";var o=document.createElement("style");return o.textContent=r,o}},{key:"animate",value:function(t,e,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=o.filter(function(t){return t instanceof Ee}),s={};it(n,r)&&a.forEach(function(t){var e=t.currentSnapshot;Object.keys(e).forEach(function(t){return s[t]=e[t]})});var c=Ie(e=ot(t,e,s));if(0==n)return new Ce(t,c);var u="".concat(je).concat(this._count++),l=this.buildKeyframeElement(t,u,e);document.querySelector("head").appendChild(l);var h=de(t,e),f=new Ee(t,e,u,n,r,i,c,h);return f.onDestroy(function(){return Ae(l)}),f}}]),t}();function Ie(t){var e={};return t&&(Array.isArray(t)?t:[t]).forEach(function(t){Object.keys(t).forEach(function(n){"offset"!=n&&"easing"!=n&&(e[n]=t[n])})}),e}function Ae(t){t.parentNode.removeChild(t)}var Re=function(){function t(e,n,r,o){Object(i.a)(this,t),this.element=e,this.keyframes=n,this.options=r,this._specialStyles=o,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=r.duration,this._delay=r.delay||0,this.time=this._duration+this._delay}return Object(o.a)(t,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var t=this;if(!this._initialized){this._initialized=!0;var e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",function(){return t._onFinish()})}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(t,e,n){return t.animate(e,n)}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"setPosition",value:function(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"totalTime",get:function(){return this._delay+this._duration}},{key:"beforeDestroy",value:function(){var t=this,e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(e[n]=t._finished?t._finalKeyframe[n]:st(t.element,n))}),this.currentSnapshot=e}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0}}]),t}(),Pe=function(){function t(){Object(i.a)(this,t),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Le().toString()),this._cssKeyframesDriver=new Te}return Object(o.a)(t,[{key:"validateStyleProperty",value:function(t){return T(t)}},{key:"matchesElement",value:function(t,e){return I(t,e)}},{key:"containsElement",value:function(t,e){return A(t,e)}},{key:"query",value:function(t,e,n){return R(t,e,n)}},{key:"computeStyle",value:function(t,e,n){return window.getComputedStyle(t)[e]}},{key:"overrideWebAnimationsSupport",value:function(t){this._isNativeImpl=t}},{key:"animate",value:function(t,e,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=arguments.length>6?arguments[6]:void 0,s=!a&&!this._isNativeImpl;if(s)return this._cssKeyframesDriver.animate(t,e,n,r,i,o);var c=0==r?"both":"forwards",u={duration:n,delay:r,fill:c};i&&(u.easing=i);var l={},h=o.filter(function(t){return t instanceof Re});it(n,r)&&h.forEach(function(t){var e=t.currentSnapshot;Object.keys(e).forEach(function(t){return l[t]=e[t]})});var f=de(t,e=ot(t,e=e.map(function(t){return Y(t,!1)}),l));return new Re(t,e,u,f)}}]),t}();function Le(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var Ne=n("ofXK");function De(t){function e(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}return function(){var n,r=Object(c.a)(t);if(e()){var i=Object(c.a)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(s.a)(this,n)}}var Me=function(){var t=function(t){Object(a.a)(n,t);var e=De(n);function n(t,r){var o;return Object(i.a)(this,n),(o=e.call(this))._nextAnimationId=0,o._renderer=t.createRenderer(r.body,{id:"0",encapsulation:u.T.None,styles:[],data:{animation:[]}}),o}return Object(o.a)(n,[{key:"build",value:function(t){var e=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(t)?Object(h.j)(t):t;return Ue(this._renderer,null,e,"register",[n]),new Fe(e,this._renderer)}}]),n}(h.b);return t.\u0275fac=function(e){return new(e||t)(u.cc(u.H),u.cc(Ne.e))},t.\u0275prov=u.Ob({token:t,factory:t.\u0275fac}),t}(),Fe=function(t){Object(a.a)(n,t);var e=De(n);function n(t,r){var o;return Object(i.a)(this,n),(o=e.call(this))._id=t,o._renderer=r,o}return Object(o.a)(n,[{key:"create",value:function(t,e){return new Ve(this._id,t,e||{},this._renderer)}}]),n}(h.c),Ve=function(){function t(e,n,r,o){Object(i.a)(this,t),this.id=e,this.element=n,this._renderer=o,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",r)}return Object(o.a)(t,[{key:"_listen",value:function(t,e){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(t),e)}},{key:"_command",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r=0&&t3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,r)}},{key:"removeChild",value:function(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}},{key:"selectRootElement",value:function(t,e){return this.delegate.selectRootElement(t,e)}},{key:"parentNode",value:function(t){return this.delegate.parentNode(t)}},{key:"nextSibling",value:function(t){return this.delegate.nextSibling(t)}},{key:"setAttribute",value:function(t,e,n,r){this.delegate.setAttribute(t,e,n,r)}},{key:"removeAttribute",value:function(t,e,n){this.delegate.removeAttribute(t,e,n)}},{key:"addClass",value:function(t,e){this.delegate.addClass(t,e)}},{key:"removeClass",value:function(t,e){this.delegate.removeClass(t,e)}},{key:"setStyle",value:function(t,e,n,r){this.delegate.setStyle(t,e,n,r)}},{key:"removeStyle",value:function(t,e,n){this.delegate.removeStyle(t,e,n)}},{key:"setProperty",value:function(t,e,n){e.charAt(0)==Be&&e==qe?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}},{key:"setValue",value:function(t,e){this.delegate.setValue(t,e)}},{key:"listen",value:function(t,e,n){return this.delegate.listen(t,e,n)}},{key:"disableAnimations",value:function(t,e){this.engine.disableAnimations(t,e)}}]),t}(),He=function(t){Object(a.a)(n,t);var e=De(n);function n(t,r,o,a){var s;return Object(i.a)(this,n),(s=e.call(this,r,o,a)).factory=t,s.namespaceId=r,s}return Object(o.a)(n,[{key:"setProperty",value:function(t,e,n){e.charAt(0)==Be?"."==e.charAt(1)&&e==qe?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)}},{key:"listen",value:function(t,e,n){var i,o,a=this;if(e.charAt(0)==Be){var s=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t),c=e.substr(1),u="";if(c.charAt(0)!=Be){var l=(o=(i=c).indexOf("."),[i.substring(0,o),i.substr(o+1)]),h=Object(r.a)(l,2);c=h[0],u=h[1]}return this.engine.listen(this.namespaceId,s,c,u,function(t){a.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)}}]),n}(ze),Ye=function(){var t=function(t){Object(a.a)(n,t);var e=De(n);function n(t,r,o){return Object(i.a)(this,n),e.call(this,t.body,r,o)}return n}(fe);return t.\u0275fac=function(e){return new(e||t)(u.cc(Ne.e),u.cc(N),u.cc(At))},t.\u0275prov=u.Ob({token:t,factory:t.\u0275fac}),t}(),Ge=new u.r("AnimationModuleType"),Ke=[{provide:h.b,useClass:Me},{provide:At,useFactory:function(){return new Rt}},{provide:fe,useClass:Ye},{provide:u.H,useFactory:function(t,e,n){return new Xe(t,e,n)},deps:[l.d,fe,u.B]}],We=[{provide:N,useFactory:function(){return"function"==typeof Le()?new Pe:new Te}},{provide:Ge,useValue:"BrowserAnimations"}].concat(Ke),Qe=([{provide:N,useClass:L},{provide:Ge,useValue:"NoopAnimations"}].concat(Ke),function(){var t=function t(){Object(i.a)(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=u.Qb({type:t}),t.\u0275inj=u.Pb({providers:We,imports:[l.a]}),t}())},ReuC:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("foSv");function i(t,e,n){return(i="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Object(r.a)(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}},STbY:function(t,e,n){"use strict";n.d(e,"a",function(){return G}),n.d(e,"b",function(){return X}),n.d(e,"c",function(){return $}),n.d(e,"d",function(){return Z});var r=n("ODXe"),i=n("KQm4"),o=n("JX7q"),a=n("Ji7U"),s=n("md7G"),c=n("foSv"),u=n("1OyB"),l=n("vuIU"),h=n("u47x"),f=n("8LU1"),d=n("FtGj"),p=n("fXoL"),b=n("XNiG"),m=n("quSY"),v=n("VRyK"),g=n("LRne"),y=n("7Hc7"),w=n("JX91"),_=n("eIep"),k=n("IzEk"),x=n("pLZG"),O=n("1G5W"),S=n("3E0/"),E=n("R0Ic"),C=n("+rOU"),j=n("ofXK"),T=n("FKr1"),I=n("rDax"),A=n("nLfN"),R=n("vxfF"),P=n("cH1L");function L(t){function e(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}return function(){var n,r=Object(c.a)(t);if(e()){var i=Object(c.a)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(s.a)(this,n)}}var N=["mat-menu-item",""],D=["*"];function M(t,e){if(1&t){var n=p.Zb();p.Yb(0,"div",0),p.gc("keydown",function(t){return p.Ec(n),p.kc()._handleKeydown(t)})("click",function(){return p.Ec(n),p.kc().closed.emit("click")})("@transformMenu.start",function(t){return p.Ec(n),p.kc()._onAnimationStart(t)})("@transformMenu.done",function(t){return p.Ec(n),p.kc()._onAnimationDone(t)}),p.Yb(1,"div",1),p.oc(2),p.Xb(),p.Xb()}if(2&t){var r=p.kc();p.qc("id",r.panelId)("ngClass",r._classList)("@transformMenu",r._panelAnimationState),p.Fb("aria-label",r.ariaLabel||null)("aria-labelledby",r.ariaLabelledby||null)("aria-describedby",r.ariaDescribedby||null)}}var F={transformMenu:Object(E.o)("transformMenu",[Object(E.l)("void",Object(E.m)({opacity:0,transform:"scale(0.8)"})),Object(E.n)("void => enter",Object(E.e)("120ms cubic-bezier(0, 0, 0.2, 1)",Object(E.m)({opacity:1,transform:"scale(1)"}))),Object(E.n)("* => void",Object(E.e)("100ms 25ms linear",Object(E.m)({opacity:0})))]),fadeInItems:Object(E.o)("fadeInItems",[Object(E.l)("showing",Object(E.m)({opacity:1})),Object(E.n)("void => *",[Object(E.m)({opacity:0}),Object(E.e)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},V=new p.r("MatMenuContent"),U=new p.r("MAT_MENU_PANEL"),B=function t(){Object(u.a)(this,t)},q=Object(T.q)(Object(T.r)(B)),X=function(){var t=function(t){Object(a.a)(n,t);var e=L(n);function n(t,r,i,a){var s;return Object(u.a)(this,n),(s=e.call(this))._elementRef=t,s._focusMonitor=i,s._parentMenu=a,s.role="menuitem",s._hovered=new b.a,s._focused=new b.a,s._highlighted=!1,s._triggersSubmenu=!1,a&&a.addItem&&a.addItem(Object(o.a)(s)),s}return Object(l.a)(n,[{key:"focus",value:function(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e),this._focused.next(this)}},{key:"ngAfterViewInit",value:function(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}},{key:"ngOnDestroy",value:function(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_checkDisabled",value:function(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}},{key:"_handleMouseEnter",value:function(){this._hovered.next(this)}},{key:"getLabel",value:function(){for(var t,e,n=this._elementRef.nativeElement.cloneNode(!0),r=n.querySelectorAll("mat-icon, .material-icons"),i=0;i0&&void 0!==arguments[0]?arguments[0]:"program";this.lazyContent?this._ngZone.onStable.pipe(Object(k.a)(1)).subscribe(function(){return t._focusFirstItem(e)}):this._focusFirstItem(e)}},{key:"_focusFirstItem",value:function(t){var e=this._keyManager;if(e.setFocusOrigin(t).setFirstItemActive(),!e.activeItem&&this._directDescendantItems.length)for(var n=this._directDescendantItems.first._getHostElement().parentElement;n;){if("menu"===n.getAttribute("role")){n.focus();break}n=n.parentElement}}},{key:"resetActiveItem",value:function(){this._keyManager.setActiveItem(-1)}},{key:"setElevation",value:function(t){var e=Math.min(4+t,24),n="mat-elevation-z".concat(e),r=Object.keys(this._classList).find(function(t){return t.startsWith("mat-elevation-z")});r&&r!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[n]=!0,this._previousElevation=n)}},{key:"setPositionClasses",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.xPosition,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.yPosition,n=this._classList;n["mat-menu-before"]="before"===t,n["mat-menu-after"]="after"===t,n["mat-menu-above"]="above"===e,n["mat-menu-below"]="below"===e}},{key:"_startAnimation",value:function(){this._panelAnimationState="enter"}},{key:"_resetAnimation",value:function(){this._panelAnimationState="void"}},{key:"_onAnimationDone",value:function(t){this._animationDone.next(t),this._isAnimating=!1}},{key:"_onAnimationStart",value:function(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}},{key:"_updateDirectDescendants",value:function(){var t=this;this._allItems.changes.pipe(Object(w.a)(this._allItems)).subscribe(function(e){t._directDescendantItems.reset(e.filter(function(e){return e._parentMenu===t})),t._directDescendantItems.notifyOnChanges()})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(p.Sb(p.l),p.Sb(p.B),p.Sb(z))},t.\u0275dir=p.Nb({type:t,contentQueries:function(t,e,n){var r;1&t&&(p.Lb(n,V,1),p.Lb(n,X,1),p.Lb(n,X,0)),2&t&&(p.zc(r=p.hc())&&(e.lazyContent=r.first),p.zc(r=p.hc())&&(e._allItems=r),p.zc(r=p.hc())&&(e.items=r))},viewQuery:function(t,e){var n;1&t&&p.Sc(p.N,1),2&t&&p.zc(n=p.hc())&&(e.templateRef=n.first)},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),t}(),G=function(){var t=function(t){Object(a.a)(n,t);var e=L(n);function n(t,r,i){return Object(u.a)(this,n),e.call(this,t,r,i)}return n}(Y);return t.\u0275fac=function(e){return new(e||t)(p.Sb(p.l),p.Sb(p.B),p.Sb(z))},t.\u0275cmp=p.Mb({type:t,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(t,e){2&t&&p.Fb("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[p.Db([{provide:U,useExisting:t}]),p.Bb],ngContentSelectors:D,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,e){1&t&&(p.pc(),p.Lc(0,M,3,6,"ng-template"))},directives:[j.j],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[F.transformMenu,F.fadeInItems]},changeDetection:0}),t}(),K=new p.r("mat-menu-scroll-strategy"),W={provide:K,deps:[I.a],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},Q=Object(A.f)({passive:!0}),Z=function(){var t=function(){function t(e,n,r,i,o,a,s,c){var l=this;Object(u.a)(this,t),this._overlay=e,this._element=n,this._viewContainerRef=r,this._menuItemInstance=a,this._dir=s,this._focusMonitor=c,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=m.a.EMPTY,this._hoverSubscription=m.a.EMPTY,this._menuCloseSubscription=m.a.EMPTY,this._handleTouchStart=function(t){Object(h.m)(t)||(l._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new p.n,this.onMenuOpen=this.menuOpened,this.menuClosed=new p.n,this.onMenuClose=this.menuClosed,this._scrollStrategy=i,this._parentMaterialMenu=o instanceof Y?o:void 0,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,Q),a&&(a._triggersSubmenu=this.triggersSubmenu())}return Object(l.a)(t,[{key:"_deprecatedMatMenuTriggerFor",get:function(){return this.menu},set:function(t){this.menu=t}},{key:"menu",get:function(){return this._menu},set:function(t){var e=this;t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.subscribe(function(t){e._destroyMenu(t),"click"!==t&&"tab"!==t||!e._parentMaterialMenu||e._parentMaterialMenu.closed.emit(t)})))}},{key:"ngAfterContentInit",value:function(){this._checkMenu(),this._handleHover()}},{key:"ngOnDestroy",value:function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Q),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}},{key:"menuOpen",get:function(){return this._menuOpen}},{key:"dir",get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"triggersSubmenu",value:function(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}},{key:"toggleMenu",value:function(){return this._menuOpen?this.closeMenu():this.openMenu()}},{key:"openMenu",value:function(){var t=this;if(!this._menuOpen){this._checkMenu();var e=this._createOverlay(),n=e.getConfig();this._setPosition(n.positionStrategy),n.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,e.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(function(){return t.closeMenu()}),this._initMenu(),this.menu instanceof Y&&this.menu._startAnimation()}}},{key:"closeMenu",value:function(){this.menu.close.emit()}},{key:"focus",value:function(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}},{key:"_destroyMenu",value:function(t){var e=this;if(this._overlayRef&&this.menuOpen){var n=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),!this.restoreFocus||"keydown"!==t&&this._openedBy&&this.triggersSubmenu()||this.focus(this._openedBy),this._openedBy=void 0,n instanceof Y?(n._resetAnimation(),n.lazyContent?n._animationDone.pipe(Object(x.a)(function(t){return"void"===t.toState}),Object(k.a)(1),Object(O.a)(n.lazyContent._attached)).subscribe({next:function(){return n.lazyContent.detach()},complete:function(){return e._setIsMenuOpen(!1)}}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),n.lazyContent&&n.lazyContent.detach())}}},{key:"_initMenu",value:function(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}},{key:"_setMenuElevation",value:function(){if(this.menu.setElevation){for(var t=0,e=this.menu.parentMenu;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}}},{key:"_setIsMenuOpen",value:function(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=t)}},{key:"_checkMenu",value:function(){}},{key:"_createOverlay",value:function(){if(!this._overlayRef){var t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}},{key:"_getOverlayConfig",value:function(){return new I.b({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}},{key:"_subscribeToPositions",value:function(t){var e=this;this.menu.setPositionClasses&&t.positionChanges.subscribe(function(t){e.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})}},{key:"_setPosition",value:function(t){var e="before"===this.menu.xPosition?["end","start"]:["start","end"],n=Object(r.a)(e,2),i=n[0],o=n[1],a="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],s=Object(r.a)(a,2),c=s[0],u=s[1],l=c,h=u,f=i,d=o,p=0;this.triggersSubmenu()?(d=i="before"===this.menu.xPosition?"start":"end",o=f="end"===i?"start":"end",p="bottom"===c?8:-8):this.menu.overlapTrigger||(l="top"===c?"bottom":"top",h="top"===u?"bottom":"top"),t.withPositions([{originX:i,originY:l,overlayX:f,overlayY:c,offsetY:p},{originX:o,originY:l,overlayX:d,overlayY:c,offsetY:p},{originX:i,originY:h,overlayX:f,overlayY:u,offsetY:-p},{originX:o,originY:h,overlayX:d,overlayY:u,offsetY:-p}])}},{key:"_menuClosingActions",value:function(){var t=this,e=this._overlayRef.backdropClick(),n=this._overlayRef.detachments(),r=this._parentMaterialMenu?this._parentMaterialMenu.closed:Object(g.a)(),i=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Object(x.a)(function(e){return e!==t._menuItemInstance}),Object(x.a)(function(){return t._menuOpen})):Object(g.a)();return Object(v.a)(e,r,i,n)}},{key:"_handleMousedown",value:function(t){Object(h.l)(t)||(this._openedBy=0===t.button?"mouse":void 0,this.triggersSubmenu()&&t.preventDefault())}},{key:"_handleKeydown",value:function(t){var e=t.keyCode;e!==d.f&&e!==d.n||(this._openedBy="keyboard"),this.triggersSubmenu()&&(e===d.m&&"ltr"===this.dir||e===d.i&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}},{key:"_handleClick",value:function(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}},{key:"_handleHover",value:function(){var t=this;this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(Object(x.a)(function(e){return e===t._menuItemInstance&&!e.disabled}),Object(S.a)(0,y.b)).subscribe(function(){t._openedBy="mouse",t.menu instanceof Y&&t.menu._isAnimating?t.menu._animationDone.pipe(Object(k.a)(1),Object(S.a)(0,y.b),Object(O.a)(t._parentMaterialMenu._hovered())).subscribe(function(){return t.openMenu()}):t.openMenu()}))}},{key:"_getPortal",value:function(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new C.g(this.menu.templateRef,this._viewContainerRef)),this._portal}}]),t}();return t.\u0275fac=function(e){return new(e||t)(p.Sb(I.a),p.Sb(p.l),p.Sb(p.S),p.Sb(K),p.Sb(U,8),p.Sb(X,10),p.Sb(P.b,8),p.Sb(h.h))},t.\u0275dir=p.Nb({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&p.gc("mousedown",function(t){return e._handleMousedown(t)})("keydown",function(t){return e._handleKeydown(t)})("click",function(t){return e._handleClick(t)}),2&t&&p.Fb("aria-expanded",e.menuOpen||null)("aria-controls",e.menuOpen?e.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),t}(),J=function(){var t=function t(){Object(u.a)(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=p.Qb({type:t}),t.\u0275inj=p.Pb({providers:[W],imports:[T.e]}),t}(),$=function(){var t=function t(){Object(u.a)(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=p.Qb({type:t}),t.\u0275inj=p.Pb({providers:[W],imports:[[j.c,T.e,T.l,I.d,J],R.b,T.e,J]}),t}()},SeVD:function(t,e,n){"use strict";n.d(e,"a",function(){return l});var r=n("ngJS"),i=n("NJ4a"),o=n("Lhse"),a=n("kJWO"),s=n("I55L"),c=n("c2HN"),u=n("XoHu"),l=function(t){if(t&&"function"==typeof t[a.a])return l=t,function(t){var e=l[a.a]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(Object(s.a)(t))return Object(r.a)(t);if(Object(c.a)(t))return n=t,function(t){return n.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,i.a),t};if(t&&"function"==typeof t[o.a])return e=t,function(t){for(var n=e[o.a]();;){var r=void 0;try{r=n.next()}catch(i){return t.error(i),t}if(r.done){t.complete();break}if(t.next(r.value),t.closed)break}return"function"==typeof n.return&&t.add(function(){n.return&&n.return()}),t};var e,n,l,h=Object(u.a)(t)?"an invalid object":"'".concat(t,"'"),f="You provided ".concat(h," where a stream was expected.")+" You can provide an Observable, Promise, Array, or Iterable.";throw new TypeError(f)}},SpAZ:function(t,e,n){"use strict";function r(t){return t}n.d(e,"a",function(){return r})},SxV6:function(t,e,n){"use strict";n.d(e,"a",function(){return u});var r=n("sVev"),i=n("pLZG"),o=n("IzEk"),a=n("xbPD"),s=n("XDbj"),c=n("SpAZ");function u(t,e){var n=arguments.length>=2;return function(u){return u.pipe(t?Object(i.a)(function(e,n){return t(e,n,u)}):c.a,Object(o.a)(1),n?Object(a.a)(e):Object(s.a)(function(){return new r.a}))}}},T5bk:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("DSFK"),i=n("25BE"),o=n("BsWD"),a=n("PYwp");function s(t){return Object(r.a)(t)||Object(i.a)(t)||Object(o.a)(t)||Object(a.a)()}},THVI:function(t,e,n){"use strict";n.d(e,"a",function(){return d});var r=n("fXoL"),i=n("mB2O"),o=n("0MNC"),a=n("zkoq"),s=n("ofXK"),c=n("Wp6s"),u=n("bTqV"),l=n("NFeN");function h(t,e){if(1&t){var n=r.Zb();r.Yb(0,"button",12),r.gc("click",function(){r.Ec(n);var t=e.index;return r.kc(2).onRatingClick(t+1)}),r.Yb(1,"mat-icon"),r.Nc(2),r.Xb(),r.Xb()}if(2&t){var i=e.index,o=r.kc(2);r.qc("id","star_"+i),r.Eb(2),r.Pc(" ",o.showIcon(i)," ")}}function f(t,e){if(1&t&&(r.Yb(0,"mat-grid-tile",4),r.Yb(1,"mat-card",5),r.Yb(2,"mat-card-header"),r.Yb(3,"mat-card-title"),r.Nc(4),r.Xb(),r.Xb(),r.Tb(5,"img",6),r.Yb(6,"mat-card-content",7),r.Yb(7,"p"),r.Nc(8),r.Xb(),r.Yb(9,"h4",8),r.Nc(10),r.lc(11,"currency"),r.Xb(),r.Xb(),r.Yb(12,"mat-card-actions"),r.Yb(13,"button",9),r.Nc(14,"Buy"),r.Xb(),r.Yb(15,"button",10),r.Yb(16,"mat-icon"),r.Nc(17,"favorite"),r.Xb(),r.Xb(),r.Lc(18,h,3,2,"button",11),r.Xb(),r.Xb(),r.Xb()),2&t){var n=e.$implicit,i=r.kc();r.qc("colspan",1)("rowspan",1),r.Eb(4),r.Pc(" ",n.name," "),r.Eb(1),r.sc("src","assets/images/",null==n?null:n.image,"",r.Fc),r.Eb(3),r.Oc(n.description),r.Eb(2),r.Pc(" ",r.nc(11,7,n.price,"USD",!0)," "),r.Eb(8),r.qc("ngForOf",i.ratingArr)}}var d=function(){function t(t,e){this.productService=t,this.breakpointObserver=e,this.ratingArr=[1,2,3,4,5],this.rating=3}return t.prototype.ngOnInit=function(){this.getProducts()},t.prototype.getProducts=function(){var t=this;this.productService.getProducts().subscribe(function(e){t.products=e})},t.prototype.onRatingClick=function(t){console.log(t)},t.prototype.showIcon=function(t){return this.rating>=t+1?"star":"star_border"},t.\u0275fac=function(e){return new(e||t)(r.Sb(i.a),r.Sb(o.a))},t.\u0275cmp=r.Mb({type:t,selectors:[["app-product-list"]],decls:4,vars:1,consts:[[1,"grid-container"],[1,"mat-h1"],["cols","3","rowHeight","600px"],[3,"colspan","rowspan",4,"ngFor","ngForOf"],[3,"colspan","rowspan"],[1,"dashboard-card"],["mat-card-image","",3,"src"],[1,"dashboard-card-content"],[1,"price",2,"text-align","right"],["mat-raised-button","","color","primary"],["mat-icon-button","","color","warn"],["mat-icon-button","","color","primary","matTooltipPosition","above",3,"id","click",4,"ngFor","ngForOf"],["mat-icon-button","","color","primary","matTooltipPosition","above",3,"id","click"]],template:function(t,e){1&t&&(r.Yb(0,"div",0),r.Tb(1,"h1",1),r.Yb(2,"mat-grid-list",2),r.Lc(3,f,19,11,"mat-grid-tile",3),r.Xb(),r.Xb()),2&t&&(r.Eb(3),r.qc("ngForOf",e.products))},directives:[a.a,s.k,a.c,c.a,c.f,c.j,c.g,c.d,c.b,u.b,l.a],pipes:[s.d],styles:[""]}),t}()},UXun:function(t,e,n){"use strict";n.d(e,"a",function(){return v});var r=n("1OyB"),i=n("vuIU"),o=n("ReuC"),a=n("Ji7U"),s=n("md7G"),c=n("foSv"),u=n("XNiG"),l=n("qgXg"),h=n("quSY"),f=n("pxpQ"),d=n("9ppp"),p=n("Ylt2"),b=function(t){Object(a.a)(n,t);var e=function(t){function e(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}return function(){var n,r=Object(c.a)(t);if(e()){var i=Object(c.a)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(s.a)(this,n)}}(n);function n(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,a=arguments.length>2?arguments[2]:void 0;return Object(r.a)(this,n),(t=e.call(this)).scheduler=a,t._events=[],t._infiniteTimeWindow=!1,t._bufferSize=i<1?1:i,t._windowTime=o<1?1:o,o===Number.POSITIVE_INFINITY?(t._infiniteTimeWindow=!0,t.next=t.nextInfiniteTimeWindow):t.next=t.nextTimeWindow,t}return Object(i.a)(n,[{key:"nextInfiniteTimeWindow",value:function(t){if(!this.isStopped){var e=this._events;e.push(t),e.length>this._bufferSize&&e.shift()}Object(o.a)(Object(c.a)(n.prototype),"next",this).call(this,t)}},{key:"nextTimeWindow",value:function(t){this.isStopped||(this._events.push(new m(this._getNow(),t)),this._trimBufferThenGetEvents()),Object(o.a)(Object(c.a)(n.prototype),"next",this).call(this,t)}},{key:"_subscribe",value:function(t){var e,n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,o=r.length;if(this.closed)throw new d.a;if(this.isStopped||this.hasError?e=h.a.EMPTY:(this.observers.push(t),e=new p.a(this,t)),i&&t.add(t=new f.a(t,i)),n)for(var a=0;ae&&(o=Math.max(o,i-e)),o>0&&r.splice(0,o),r}}]),n}(u.a),m=function t(e,n){Object(r.a)(this,t),this.time=e,this.value=n};function v(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(function(t){var e,n,r=t.bufferSize,i=void 0===r?Number.POSITIVE_INFINITY:r,o=t.windowTime,a=void 0===o?Number.POSITIVE_INFINITY:o,s=t.refCount,c=t.scheduler,u=0,l=!1,h=!1;return function(t){var r;u++,!e||l?(l=!1,e=new b(i,a,c),r=e.subscribe(this),n=t.subscribe({next:function(t){e.next(t)},error:function(t){l=!0,e.error(t)},complete:function(){h=!0,n=void 0,e.complete()}}),h&&(n=void 0)):r=e.subscribe(this),this.add(function(){u--,r.unsubscribe(),r=void 0,n&&!h&&s&&0===u&&(n.unsubscribe(),n=void 0,e=void 0)})}}(r))}}},UbJi:function(t,e,n){"use strict";n.d(e,"a",function(){return C}),n.d(e,"b",function(){return j}),n.d(e,"c",function(){return _});var r=n("ODXe"),i=n("1OyB"),o=n("fXoL"),a=n("XNiG"),s=n("LRne"),c=n("HDdC"),u=n("Cfvw"),l=n("VRyK"),h=n("pxpQ"),f=n("eIep"),d=n("lJxs"),p=n("UXun"),b=n("SxV6");function m(t,e){return e?Object(f.a)(function(){return t},e):Object(f.a)(function(){return t})}var v=n("tf+s"),g=n("pLZG"),y=n("spgP"),w=n("ofXK"),_=new o.r("angularfire2.auth.use-emulator"),k=new o.r("angularfire2.auth.settings"),x=new o.r("angularfire2.auth.tenant-id"),O=new o.r("angularfire2.auth.langugage-code"),S=new o.r("angularfire2.auth.use-device-language"),E=new o.r("angularfire.auth.persistence"),C=function(){var t=function t(e,o,_,k,x,O,S,E,C,j){Object(i.a)(this,t);var T=new y.d(k),I=Object(y.h)(T),A=new a.a,R=Object(s.a)(void 0).pipe(Object(h.b)(T.outsideAngular),Object(f.a)(function(){return k.runOutsideAngular(function(){return n.e(5).then(n.bind(null,"6nsN"))})}),Object(d.a)(function(){return Object(y.g)(e,k,o)}),Object(d.a)(function(t){return k.runOutsideAngular(function(){var e=x,n=O;return Object(y.f)("".concat(t.name,".auth"),"AngularFireAuth",t,function(){var i=k.runOutsideAngular(function(){return t.auth()});if(e&&i.useEmulator("http://".concat(e.join(":"))),S&&(i.tenantId=S),i.languageCode=E,C&&i.useDeviceLanguage(),n)for(var o=0,a=Object.entries(n);o1&&"number"==typeof s[s.length-1]&&(t=s.pop())):"number"==typeof u&&(t=s.pop()),null===e&&1===s.length&&s[0]instanceof r.a?s[0]:Object(o.a)(t)(Object(a.a)(s,e))}},WMd4:function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n("1OyB"),i=n("vuIU"),o=n("EY2u"),a=n("LRne"),s=n("z6cu"),c=function(){var t=function(){function t(e,n,i){Object(r.a)(this,t),this.kind=e,this.value=n,this.error=i,this.hasValue="N"===e}return Object(i.a)(t,[{key:"observe",value: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()}}},{key:"do",value: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()}}},{key:"accept",value:function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return Object(a.a)(this.value);case"E":return Object(s.a)(this.error);case"C":return Object(o.b)()}throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}},{key:"createError",value:function(e){return new t("E",void 0,e)}},{key:"createComplete",value:function(){return t.completeNotification}}]),t}();return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}()},Wp6s:function(t,e,n){"use strict";n.d(e,"a",function(){return g}),n.d(e,"b",function(){return p}),n.d(e,"c",function(){return v}),n.d(e,"d",function(){return h}),n.d(e,"e",function(){return b}),n.d(e,"f",function(){return y}),n.d(e,"g",function(){return m}),n.d(e,"h",function(){return w}),n.d(e,"i",function(){return d}),n.d(e,"j",function(){return f});var r=n("1OyB"),i=n("R1ws"),o=n("FKr1"),a=n("fXoL"),s=["*",[["mat-card-footer"]]],c=["*","mat-card-footer"],u=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],l=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"],h=function(){var t=function t(){Object(r.a)(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=a.Nb({type:t,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),t}(),f=function(){var t=function t(){Object(r.a)(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=a.Nb({type:t,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),t}(),d=function(){var t=function t(){Object(r.a)(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=a.Nb({type:t,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),t}(),p=function(){var t=function t(){Object(r.a)(this,t),this.align="start"};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=a.Nb({type:t,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(t,e){2&t&&a.Kb("mat-card-actions-align-end","end"===e.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),t}(),b=function(){var t=function t(){Object(r.a)(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=a.Nb({type:t,selectors:[["mat-card-footer"]],hostAttrs:[1,"mat-card-footer"]}),t}(),m=function(){var t=function t(){Object(r.a)(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=a.Nb({type:t,selectors:[["","mat-card-image",""],["","matCardImage",""]],hostAttrs:[1,"mat-card-image"]}),t}(),v=function(){var t=function t(){Object(r.a)(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=a.Nb({type:t,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-card-avatar"]}),t}(),g=function(){var t=function t(e){Object(r.a)(this,t),this._animationMode=e};return t.\u0275fac=function(e){return new(e||t)(a.Sb(i.a,8))},t.\u0275cmp=a.Mb({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(t,e){2&t&&a.Kb("_mat-animation-noopable","NoopAnimations"===e._animationMode)},exportAs:["matCard"],ngContentSelectors:c,decls:2,vars:0,template:function(t,e){1&t&&(a.pc(s),a.oc(0),a.oc(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),t}(),y=function(){var t=function t(){Object(r.a)(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=a.Mb({type:t,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:l,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(t,e){1&t&&(a.pc(u),a.oc(0),a.Yb(1,"div",0),a.oc(2,1),a.Xb(),a.oc(3,2))},encapsulation:2,changeDetection:0}),t}(),w=function(){var t=function t(){Object(r.a)(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=a.Qb({type:t}),t.\u0275inj=a.Pb({imports:[[o.e],o.e]}),t}()},XDbj:function(t,e,n){"use strict";n.d(e,"a",function(){return l});var r=n("Ji7U"),i=n("md7G"),o=n("foSv"),a=n("1OyB"),s=n("vuIU"),c=n("sVev"),u=n("7o/Q");function l(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d;return function(e){return e.lift(new h(t))}}var h=function(){function t(e){Object(a.a)(this,t),this.errorFactory=e}return Object(s.a)(t,[{key:"call",value:function(t,e){return e.subscribe(new f(t,this.errorFactory))}}]),t}(),f=function(t){Object(r.a)(n,t);var e=function(t){function e(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}return function(){var n,r=Object(o.a)(t);if(e()){var a=Object(o.a)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Object(i.a)(this,n)}}(n);function n(t,r){var i;return Object(a.a)(this,n),(i=e.call(this,t)).errorFactory=r,i.hasValue=!1,i}return Object(s.a)(n,[{key:"_next",value:function(t){this.hasValue=!0,this.destination.next(t)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var t;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)}}]),n}(u.a);function d(){return new c.a}},XNiG:function(t,e,n){"use strict";n.d(e,"b",function(){return m}),n.d(e,"a",function(){return v});var r=n("vuIU"),i=n("ReuC"),o=n("1OyB"),a=n("Ji7U"),s=n("md7G"),c=n("foSv"),u=n("HDdC"),l=n("7o/Q"),h=n("quSY"),f=n("9ppp"),d=n("Ylt2"),p=n("2QA8");function b(t){function e(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}return function(){var n,r=Object(c.a)(t);if(e()){var i=Object(c.a)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(s.a)(this,n)}}var m=function(t){Object(a.a)(n,t);var e=b(n);function n(t){var r;return Object(o.a)(this,n),(r=e.call(this,t)).destination=t,r}return n}(l.a),v=function(){var t=function(t){Object(a.a)(n,t);var e=b(n);function n(){var t;return Object(o.a)(this,n),(t=e.call(this)).observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return Object(r.a)(n,[{key:p.a,value:function(){return new m(this)}},{key:"lift",value:function(t){var e=new g(this,this);return e.operator=t,e}},{key:"next",value:function(t){if(this.closed)throw new f.a;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),i=0;i=0}},Ylt2:function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n("1OyB"),i=n("vuIU"),o=n("Ji7U"),a=n("md7G"),s=n("foSv"),c=function(t){Object(o.a)(n,t);var e=function(t){function e(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}return function(){var n,r=Object(s.a)(t);if(e()){var i=Object(s.a)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(a.a)(this,n)}}(n);function n(t,i){var o;return Object(r.a)(this,n),(o=e.call(this)).subject=t,o.subscriber=i,o.closed=!1,o}return Object(i.a)(n,[{key:"unsubscribe",value:function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}}}]),n}(n("quSY").a)},Zy1z:function(t,e,n){"use strict";n.d(e,"a",function(){return u});var r=n("Ji7U"),i=n("md7G"),o=n("foSv"),a=n("1OyB"),s=n("vuIU"),c=n("7o/Q");function u(){return function(t){return t.lift(new l)}}var l=function(){function t(){Object(a.a)(this,t)}return Object(s.a)(t,[{key:"call",value:function(t,e){return e.subscribe(new h(t))}}]),t}(),h=function(t){Object(r.a)(n,t);var e=function(t){function e(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}return function(){var n,r=Object(o.a)(t);if(e()){var a=Object(o.a)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Object(i.a)(this,n)}}(n);function n(t){var r;return Object(a.a)(this,n),(r=e.call(this,t)).hasPrev=!1,r}return Object(s.a)(n,[{key:"_next",value:function(t){var e;this.hasPrev?e=[this.prev,t]:this.hasPrev=!0,this.prev=t,e&&this.destination.next(e)}}]),n}(c.a)},a3WO:function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return Object(r.a)(i.a,t)}},bOdf:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("5+tZ");function i(t,e){return Object(r.a)(t,e,1)}},bSwM:function(t,e,n){"use strict";n.d(e,"a",function(){return C}),n.d(e,"b",function(){return R}),n.d(e,"c",function(){return T});var r=n("vuIU"),i=n("Ji7U"),o=n("md7G"),a=n("foSv"),s=n("1OyB"),c=n("8LU1"),u=n("fXoL"),l=n("3Pt+"),h=n("FKr1"),f=n("R1ws"),d=n("GU7r"),p=n("u47x");function b(t){function e(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}return function(){var n,r=Object(a.a)(t);if(e()){var i=Object(a.a)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(o.a)(this,n)}}var m=["input"],v=function(){return{enterDuration:150}},g=["*"],y=new u.r("mat-checkbox-default-options",{providedIn:"root",factory:w});function w(){return{color:"accent",clickAction:"check-indeterminate"}}var _=0,k=w(),x={provide:l.m,useExisting:Object(u.W)(function(){return C}),multi:!0},O=function t(){Object(s.a)(this,t)},S=function t(e){Object(s.a)(this,t),this._elementRef=e},E=Object(h.t)(Object(h.p)(Object(h.q)(Object(h.r)(S)))),C=function(){var t=function(t){Object(i.a)(n,t);var e=b(n);function n(t,r,i,o,a,c,l){var h;return Object(s.a)(this,n),(h=e.call(this,t))._changeDetectorRef=r,h._focusMonitor=i,h._ngZone=o,h._animationMode=c,h._options=l,h.ariaLabel="",h.ariaLabelledby=null,h._uniqueId="mat-checkbox-".concat(++_),h.id=h._uniqueId,h.labelPosition="after",h.name=null,h.change=new u.n,h.indeterminateChange=new u.n,h._onTouched=function(){},h._currentAnimationClass="",h._currentCheckState=0,h._controlValueAccessorChangeFn=function(){},h._checked=!1,h._disabled=!1,h._indeterminate=!1,h._options=h._options||k,h.color=h.defaultColor=h._options.color||k.color,h.tabIndex=parseInt(a)||0,h}return Object(r.a)(n,[{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"required",get:function(){return this._required},set:function(t){this._required=Object(c.b)(t)}},{key:"ngAfterViewInit",value:function(){var t=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(e){e||Promise.resolve().then(function(){t._onTouched(),t._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}},{key:"ngAfterViewChecked",value:function(){}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"checked",get:function(){return this._checked},set:function(t){t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled},set:function(t){var e=Object(c.b)(t);e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}},{key:"indeterminate",get:function(){return this._indeterminate},set:function(t){var e=t!=this._indeterminate;this._indeterminate=Object(c.b)(t),e&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}},{key:"writeValue",value:function(t){this.checked=!!t}},{key:"registerOnChange",value:function(t){this._controlValueAccessorChangeFn=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t}},{key:"_getAriaChecked",value:function(){return this.checked?"true":this.indeterminate?"mixed":"false"}},{key:"_transitionCheckState",value:function(t){var e=this._currentCheckState,n=this._elementRef.nativeElement;if(e!==t&&(this._currentAnimationClass.length>0&&n.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(e,t),this._currentCheckState=t,this._currentAnimationClass.length>0)){n.classList.add(this._currentAnimationClass);var r=this._currentAnimationClass;this._ngZone.runOutsideAngular(function(){setTimeout(function(){n.classList.remove(r)},1e3)})}}},{key:"_emitChangeEvent",value:function(){var t=new O;t.source=this,t.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(t),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}},{key:"toggle",value:function(){this.checked=!this.checked}},{key:"_onInputClick",value:function(t){var e,n=this,r=null===(e=this._options)||void 0===e?void 0:e.clickAction;t.stopPropagation(),this.disabled||"noop"===r?this.disabled||"noop"!==r||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==r&&Promise.resolve().then(function(){n._indeterminate=!1,n.indeterminateChange.emit(n._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}},{key:"focus",value:function(t,e){t?this._focusMonitor.focusVia(this._inputElement,t,e):this._inputElement.nativeElement.focus(e)}},{key:"_onInteractionEvent",value:function(t){t.stopPropagation()}},{key:"_getAnimationClassForCheckStateTransition",value:function(t,e){if("NoopAnimations"===this._animationMode)return"";var n="";switch(t){case 0:if(1===e)n="unchecked-checked";else{if(3!=e)return"";n="unchecked-indeterminate"}break;case 2:n=1===e?"unchecked-checked":"unchecked-indeterminate";break;case 1:n=2===e?"checked-unchecked":"checked-indeterminate";break;case 3:n=1===e?"indeterminate-checked":"indeterminate-unchecked"}return"mat-checkbox-anim-".concat(n)}},{key:"_syncIndeterminate",value:function(t){var e=this._inputElement;e&&(e.nativeElement.indeterminate=t)}}]),n}(E);return t.\u0275fac=function(e){return new(e||t)(u.Sb(u.l),u.Sb(u.h),u.Sb(p.h),u.Sb(u.B),u.dc("tabindex"),u.Sb(f.a,8),u.Sb(y,8))},t.\u0275cmp=u.Mb({type:t,selectors:[["mat-checkbox"]],viewQuery:function(t,e){var n;1&t&&(u.Sc(m,1),u.Sc(h.k,1)),2&t&&(u.zc(n=u.hc())&&(e._inputElement=n.first),u.zc(n=u.hc())&&(e.ripple=n.first))},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(t,e){2&t&&(u.bc("id",e.id),u.Fb("tabindex",null),u.Kb("mat-checkbox-indeterminate",e.indeterminate)("mat-checkbox-checked",e.checked)("mat-checkbox-disabled",e.disabled)("mat-checkbox-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",ariaDescribedby:["aria-describedby","ariaDescribedby"],value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[u.Db([x]),u.Bb],ngContentSelectors:g,decls:17,vars:20,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(t,e){if(1&t&&(u.pc(),u.Yb(0,"label",0,1),u.Yb(2,"span",2),u.Yb(3,"input",3,4),u.gc("change",function(t){return e._onInteractionEvent(t)})("click",function(t){return e._onInputClick(t)}),u.Xb(),u.Yb(5,"span",5),u.Tb(6,"span",6),u.Xb(),u.Tb(7,"span",7),u.Yb(8,"span",8),u.jc(),u.Yb(9,"svg",9),u.Tb(10,"path",10),u.Xb(),u.ic(),u.Tb(11,"span",11),u.Xb(),u.Xb(),u.Yb(12,"span",12,13),u.gc("cdkObserveContent",function(){return e._onLabelTextChange()}),u.Yb(14,"span",14),u.Nc(15,"\xa0"),u.Xb(),u.oc(16),u.Xb(),u.Xb()),2&t){var n=u.Ac(1),r=u.Ac(13);u.Fb("for",e.inputId),u.Eb(2),u.Kb("mat-checkbox-inner-container-no-side-margin",!r.textContent||!r.textContent.trim()),u.Eb(1),u.qc("id",e.inputId)("required",e.required)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex),u.Fb("value",e.value)("name",e.name)("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby)("aria-checked",e._getAriaChecked())("aria-describedby",e.ariaDescribedby),u.Eb(2),u.qc("matRippleTrigger",n)("matRippleDisabled",e._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",u.tc(19,v))}},directives:[h.k,d.a],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-frame{border-style:dotted}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),t}(),j={provide:l.l,useExisting:Object(u.W)(function(){return T}),multi:!0},T=function(){var t=function(t){Object(i.a)(n,t);var e=b(n);function n(){return Object(s.a)(this,n),e.apply(this,arguments)}return n}(l.a);return t.\u0275fac=function(e){return I(e||t)},t.\u0275dir=u.Nb({type:t,selectors:[["mat-checkbox","required","","formControlName",""],["mat-checkbox","required","","formControl",""],["mat-checkbox","required","","ngModel",""]],features:[u.Db([j]),u.Bb]}),t}(),I=u.ac(T),A=function(){var t=function t(){Object(s.a)(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=u.Qb({type:t}),t.\u0275inj=u.Pb({}),t}(),R=function(){var t=function t(){Object(s.a)(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=u.Qb({type:t}),t.\u0275inj=u.Pb({imports:[[h.l,h.e,d.c,A],h.e,A]}),t}()},bTqV:function(t,e,n){"use strict";n.d(e,"a",function(){return w}),n.d(e,"b",function(){return y}),n.d(e,"c",function(){return _});var r=n("vuIU"),i=n("Ji7U"),o=n("md7G"),a=n("foSv"),s=n("1OyB"),c=n("FKr1"),u=n("R1ws"),l=n("fXoL"),h=n("u47x");function f(t){function e(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}return function(){var n,r=Object(a.a)(t);if(e()){var i=Object(a.a)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(o.a)(this,n)}}var d=["mat-button",""],p=["*"],b=".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n",m=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],v=function t(e){Object(s.a)(this,t),this._elementRef=e},g=Object(c.p)(Object(c.r)(Object(c.q)(v))),y=function(){var t=function(t){Object(i.a)(n,t);var e=f(n);function n(t,r,i){var o;Object(s.a)(this,n),(o=e.call(this,t))._focusMonitor=r,o._animationMode=i,o.isRoundButton=o._hasHostAttributes("mat-fab","mat-mini-fab"),o.isIconButton=o._hasHostAttributes("mat-icon-button");var a=!0,c=!1,u=void 0;try{for(var l,h=m[Symbol.iterator]();!(a=(l=h.next()).done);a=!0){var f=l.value;o._hasHostAttributes(f)&&o._getHostElement().classList.add(f)}}catch(d){c=!0,u=d}finally{try{a||null==h.return||h.return()}finally{if(c)throw u}}return t.nativeElement.classList.add("mat-button-base"),o.isRoundButton&&(o.color="accent"),o}return Object(r.a)(n,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(t,e){t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100;return Math.max(e,Math.min(n,t))}var x=function(){var t=function t(){Object(s.a)(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.Qb({type:t}),t.\u0275inj=c.Pb({imports:[[u.c,l.e],l.e]}),t}()},c2HN:function(t,e,n){"use strict";function r(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.d(e,"a",function(){return r})},cH1L:function(t,e,n){"use strict";n.d(e,"a",function(){return u}),n.d(e,"b",function(){return c});var r=n("1OyB"),i=n("vuIU"),o=n("fXoL"),a=n("ofXK"),s=new o.r("cdk-dir-doc",{providedIn:"root",factory:function(){return Object(o.X)(a.e)}}),c=function(){var t=function(){function t(e){if(Object(r.a)(this,t),this.value="ltr",this.change=new o.n,e){var n=(e.body?e.body.dir:null)||(e.documentElement?e.documentElement.dir:null);this.value="ltr"===n||"rtl"===n?n:"ltr"}}return Object(i.a)(t,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.cc(s,8))},t.\u0275prov=Object(o.Ob)({factory:function(){return new t(Object(o.cc)(s,8))},token:t,providedIn:"root"}),t}(),u=function(){var t=function t(){Object(r.a)(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.Qb({type:t}),t.\u0275inj=o.Pb({}),t}()},cp0P:function(t,e,n){"use strict";n.d(e,"a",function(){return u});var r=n("KQm4"),i=n("HDdC"),o=n("DH7j"),a=n("lJxs"),s=n("XoHu"),c=n("Cfvw");function u(){for(var t=arguments.length,e=new Array(t),n=0;n visible",Object(v.e)("150ms cubic-bezier(0, 0, 0.2, 1)")),Object(v.n)("* => void, * => hidden",Object(v.e)("75ms cubic-bezier(0.4, 0.0, 1, 1)",Object(v.m)({opacity:0})))])},T=function(){var t=function(t){Object(r.a)(n,t);var e=function(t){function e(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}return function(){var n,r=Object(o.a)(t);if(e()){var a=Object(o.a)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Object(i.a)(this,n)}}(n);function n(t,r,i,o,a){var c;return Object(s.a)(this,n),(c=e.call(this))._ngZone=t,c._elementRef=r,c._changeDetectorRef=i,c._platform=o,c.snackBarConfig=a,c._announceDelay=150,c._destroyed=!1,c._onAnnounce=new p.a,c._onExit=new p.a,c._onEnter=new p.a,c._animationState="void",c.attachDomPortal=function(t){return c._assertNotAttached(),c._applySnackBarClasses(),c._portalOutlet.attachDomPortal(t)},c._live="assertive"!==a.politeness||a.announcementMessage?"off"===a.politeness?"off":"polite":"assertive",c._platform.FIREFOX&&("polite"===c._live&&(c._role="status"),"assertive"===c._live&&(c._role="alert")),c}return Object(a.a)(n,[{key:"attachComponentPortal",value:function(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(t)}},{key:"attachTemplatePortal",value:function(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(t)}},{key:"onAnimationEnd",value:function(t){var e=t.toState;if(("void"===e&&"void"!==t.fromState||"hidden"===e)&&this._completeExit(),"visible"===e){var n=this._onEnter;this._ngZone.run(function(){n.next(),n.complete()})}}},{key:"enter",value:function(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}},{key:"exit",value:function(){return this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._onExit}},{key:"ngOnDestroy",value:function(){this._destroyed=!0,this._completeExit()}},{key:"_completeExit",value:function(){var t=this;this._ngZone.onMicrotaskEmpty.pipe(Object(b.a)(1)).subscribe(function(){t._onExit.next(),t._onExit.complete()})}},{key:"_applySnackBarClasses",value:function(){var t=this._elementRef.nativeElement,e=this.snackBarConfig.panelClass;e&&(Array.isArray(e)?e.forEach(function(e){return t.classList.add(e)}):t.classList.add(e)),"center"===this.snackBarConfig.horizontalPosition&&t.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&t.classList.add("mat-snack-bar-top")}},{key:"_assertNotAttached",value:function(){this._portalOutlet.hasAttached()}},{key:"_screenReaderAnnounce",value:function(){var t=this;this._announceTimeoutId||this._ngZone.runOutsideAngular(function(){t._announceTimeoutId=setTimeout(function(){var e=t._elementRef.nativeElement.querySelector("[aria-hidden]"),n=t._elementRef.nativeElement.querySelector("[aria-live]");if(e&&n){var r=null;t._platform.isBrowser&&document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&(r=document.activeElement),e.removeAttribute("aria-hidden"),n.appendChild(e),null==r||r.focus(),t._onAnnounce.next(),t._onAnnounce.complete()}},t._announceDelay)})}}]),n}(u.a);return t.\u0275fac=function(e){return new(e||t)(h.Sb(h.B),h.Sb(h.l),h.Sb(h.h),h.Sb(w.a),h.Sb(O))},t.\u0275cmp=h.Mb({type:t,selectors:[["snack-bar-container"]],viewQuery:function(t,e){var n;1&t&&h.Sc(u.c,3),2&t&&h.zc(n=h.hc())&&(e._portalOutlet=n.first)},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(t,e){1&t&&h.Jc("@state.done",function(t){return e.onAnimationEnd(t)}),2&t&&h.Kc("@state",e._animationState)},features:[h.Bb],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(t,e){1&t&&(h.Yb(0,"div",0),h.Lc(1,k,0,0,"ng-template",1),h.Xb(),h.Tb(2,"div")),2&t&&(h.Eb(2),h.Fb("aria-live",e._live)("role",e._role))},directives:[u.c],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[j.snackBarState]}}),t}(),I=function(){var t=function t(){Object(s.a)(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=h.Qb({type:t}),t.\u0275inj=h.Pb({imports:[[c.d,u.f,l.c,d.c,f.e],f.e]}),t}(),A=new h.r("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new O}}),R=function(){var t=function(){function t(e,n,r,i,o,a){Object(s.a)(this,t),this._overlay=e,this._live=n,this._injector=r,this._breakpointObserver=i,this._parentSnackBar=o,this._defaultConfig=a,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=C,this.snackBarContainerComponent=T,this.handsetCssClass="mat-snack-bar-handset"}return Object(a.a)(t,[{key:"_openedSnackBarRef",get:function(){var t=this._parentSnackBar;return t?t._openedSnackBarRef:this._snackBarRefAtThisLevel},set:function(t){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=t:this._snackBarRefAtThisLevel=t}},{key:"openFromComponent",value:function(t,e){return this._attach(t,e)}},{key:"openFromTemplate",value:function(t,e){return this._attach(t,e)}},{key:"open",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,r=Object.assign(Object.assign({},this._defaultConfig),n);return r.data={message:t,action:e},r.announcementMessage===t&&(r.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,r)}},{key:"dismiss",value:function(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}},{key:"ngOnDestroy",value:function(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}},{key:"_attachSnackBarContainer",value:function(t,e){var n=h.s.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:O,useValue:e}]}),r=new u.d(this.snackBarContainerComponent,e.viewContainerRef,n),i=t.attach(r);return i.instance.snackBarConfig=e,i.instance}},{key:"_attach",value:function(t,e){var n=this,r=Object.assign(Object.assign(Object.assign({},new O),this._defaultConfig),e),i=this._createOverlay(r),o=this._attachSnackBarContainer(i,r),a=new E(o,i);if(t instanceof h.N){var s=new u.g(t,null,{$implicit:r.data,snackBarRef:a});a.instance=o.attachTemplatePortal(s)}else{var c=this._createInjector(r,a),l=new u.d(t,void 0,c),f=o.attachComponentPortal(l);a.instance=f.instance}return this._breakpointObserver.observe(y.b.HandsetPortrait).pipe(Object(m.a)(i.detachments())).subscribe(function(t){var e=i.overlayElement.classList;t.matches?e.add(n.handsetCssClass):e.remove(n.handsetCssClass)}),r.announcementMessage&&o._onAnnounce.subscribe(function(){n._live.announce(r.announcementMessage,r.politeness)}),this._animateSnackBar(a,r),this._openedSnackBarRef=a,this._openedSnackBarRef}},{key:"_animateSnackBar",value:function(t,e){var n=this;t.afterDismissed().subscribe(function(){n._openedSnackBarRef==t&&(n._openedSnackBarRef=null),e.announcementMessage&&n._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(function(){t.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):t.containerInstance.enter(),e.duration&&e.duration>0&&t.afterOpened().subscribe(function(){return t._dismissAfter(e.duration)})}},{key:"_createOverlay",value:function(t){var e=new c.b;e.direction=t.direction;var n=this._overlay.position().global(),r="rtl"===t.direction,i="left"===t.horizontalPosition||"start"===t.horizontalPosition&&!r||"end"===t.horizontalPosition&&r,o=!i&&"center"!==t.horizontalPosition;return i?n.left("0"):o?n.right("0"):n.centerHorizontally(),"top"===t.verticalPosition?n.top("0"):n.bottom("0"),e.positionStrategy=n,this._overlay.create(e)}},{key:"_createInjector",value:function(t,e){return h.s.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:E,useValue:e},{provide:x,useValue:t.data}]})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(h.cc(c.a),h.cc(g.k),h.cc(h.s),h.cc(y.a),h.cc(t,12),h.cc(A))},t.\u0275prov=Object(h.Ob)({factory:function(){return new t(Object(h.cc)(c.a),Object(h.cc)(g.k),Object(h.cc)(h.o),Object(h.cc)(y.a),Object(h.cc)(t,12),Object(h.cc)(A))},token:t,providedIn:I}),t}()},eIep:function(t,e,n){"use strict";n.d(e,"a",function(){return f});var r=n("ReuC"),i=n("Ji7U"),o=n("md7G"),a=n("foSv"),s=n("1OyB"),c=n("vuIU"),u=n("lJxs"),l=n("Cfvw"),h=n("zx2A");function f(t,e){return"function"==typeof e?function(n){return n.pipe(f(function(n,r){return Object(l.a)(t(n,r)).pipe(Object(u.a)(function(t,i){return e(n,t,r,i)}))}))}:function(e){return e.lift(new d(t))}}var d=function(){function t(e){Object(s.a)(this,t),this.project=e}return Object(c.a)(t,[{key:"call",value:function(t,e){return e.subscribe(new p(t,this.project))}}]),t}(),p=function(t){Object(i.a)(n,t);var e=function(t){function e(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}return function(){var n,r=Object(a.a)(t);if(e()){var i=Object(a.a)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(o.a)(this,n)}}(n);function n(t,r){var i;return Object(s.a)(this,n),(i=e.call(this,t)).project=r,i.index=0,i}return Object(c.a)(n,[{key:"_next",value:function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this._innerSub(e)}},{key:"_innerSub",value:function(t){var e=this.innerSubscription;e&&e.unsubscribe();var n=new h.a(this),r=this.destination;r.add(n),this.innerSubscription=Object(h.c)(t,n),this.innerSubscription!==n&&r.add(this.innerSubscription)}},{key:"_complete",value:function(){var t=this.innerSubscription;t&&!t.closed||Object(r.a)(Object(a.a)(n.prototype),"_complete",this).call(this),this.unsubscribe()}},{key:"_unsubscribe",value:function(){this.innerSubscription=void 0}},{key:"notifyComplete",value:function(){this.innerSubscription=void 0,this.isStopped&&Object(r.a)(Object(a.a)(n.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(t){this.destination.next(t)}}]),n}(h.b)},eNwd:function(t,e,n){"use strict";n.d(e,"a",function(){return l});var r=n("1OyB"),i=n("vuIU"),o=n("ReuC"),a=n("Ji7U"),s=n("md7G"),c=n("foSv"),u=function(t){Object(a.a)(n,t);var e=function(t){function e(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}return function(){var n,r=Object(c.a)(t);if(e()){var i=Object(c.a)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(s.a)(this,n)}}(n);function n(t,i){var o;return Object(r.a)(this,n),(o=e.call(this,t,i)).scheduler=t,o.work=i,o}return Object(i.a)(n,[{key:"requestAsyncId",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==r&&r>0?Object(o.a)(Object(c.a)(n.prototype),"requestAsyncId",this).call(this,t,e,r):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(function(){return t.flush(null)})))}},{key:"recycleAsyncId",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==r&&r>0||null===r&&this.delay>0)return Object(o.a)(Object(c.a)(n.prototype),"recycleAsyncId",this).call(this,t,e,r);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}}]),n}(n("3N8a").a),l=new(function(t){Object(a.a)(n,t);var e=function(t){function e(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}return function(){var n,r=Object(c.a)(t);if(e()){var i=Object(c.a)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(s.a)(this,n)}}(n);function n(){return Object(r.a)(this,n),e.apply(this,arguments)}return Object(i.a)(n,[{key:"flush",value:function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,i=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++r0;)e=e[15],t--;return e}(t,re.lFrame.contextLView))[8]}function Re(){return re.lFrame.selectedIndex}function Pe(t){re.lFrame.selectedIndex=t}function Le(){var t=re.lFrame;return Kt(t.tView,t.selectedIndex)}function Ne(){re.lFrame.currentNamespace=Ut}function De(){re.lFrame.currentNamespace=null}function Me(t,e){for(var n=e.directiveStart,r=e.directiveEnd;n=r)break}else e[s]<0&&(t[18]+=65536),(a>11>16&&(3&t[2])===e){t[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}}var Xe=-1,ze=function t(e,n,r){Object(h.a)(this,t),this.factory=e,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r};function He(t,e,n){for(var r=Xt(t),i=0;ie){a=o-1;break}}}for(;o>16,r=e;n>0;)r=r[15],n--;return r}var $e=!0;function tn(t){var e=$e;return $e=t,e}var en=0;function nn(t,e){var n=on(t,e);if(-1!==n)return n;var r=e[1];r.firstCreatePass&&(t.injectorIndex=e.length,rn(r.data,t),rn(e,null),rn(r.blueprint,null));var i=an(t,e),o=t.injectorIndex;if(Qe(i))for(var a=Ze(i),s=Je(i,e),c=s[1].data,u=0;u<8;u++)e[o+u]=s[a+u]|c[a+u];return e[o+8]=i,o}function rn(t,e){t.push(0,0,0,0,0,0,0,0,e)}function on(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function an(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;for(var n=0,r=null,i=e;null!==i;){var o=i[1],a=o.type;if(null===(r=2===a?o.declTNode:1===a?i[6]:null))return Xe;if(n++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return Xe}function sn(t,e,n){!function(t,e,n){var r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(ht)&&(r=n[ht]),null==r&&(r=n[ht]=en++);var i=255&r;e.data[t+(i>>5)]|=1<3&&void 0!==arguments[3]?arguments[3]:z.Default,i=arguments.length>4?arguments[4]:void 0;if(null!==t){var o=mn(n);if("function"==typeof o){if(!Oe(e,t,r))return r&z.Host?cn(i,n,r):un(e,n,r,i);try{var a=o();if(null!=a||r&z.Optional)return a;P(n)}finally{Te()}}else if("number"==typeof o){var s=null,c=on(t,e),u=Xe,l=r&z.Host?e[16][6]:null;for((-1===c||r&z.SkipSelf)&&((u=-1===c?an(t,e):e[c+8])!==Xe&&gn(r,!1)?(s=e[1],c=Ze(u),e=Je(u,e)):c=-1);-1!==c;){var h=e[1];if(vn(o,c,h.data)){var f=dn(c,e,n,s,r,l);if(f!==hn)return f}(u=e[c+8])!==Xe&&gn(r,e[1].data[c+8]===l)&&vn(o,c,e)?(s=h,c=Ze(u),e=Je(u,e)):c=-1}}}return un(e,n,r,i)}var hn={};function fn(){return new yn(ce(),oe())}function dn(t,e,n,r,i,o){var a=e[1],s=a.data[t+8],c=pn(s,a,n,null==r?It(s)&&$e:r!=a&&0!=(3&s.type),i&z.Host&&o===s);return null!==c?bn(e,a,c,s):hn}function pn(t,e,n,r,i){for(var o=t.providerIndexes,a=e.data,s=1048575&o,c=t.directiveStart,u=o>>20,l=i?s+u:t.directiveEnd,h=r?s:s+u;h=c&&f.type===n)return h}if(i){var d=a[c];if(d&&Rt(d)&&d.type===n)return c}return null}function bn(t,e,n,r){var i=t[n],o=e.data;if(i instanceof ze){var a=i;a.resolving&&function(t,e){throw new I("200","Circular dependency in DI detected for ".concat(t).concat(""))}(R(o[n]));var s=tn(a.canSeeViewProviders);a.resolving=!0;var c=a.injectImpl?Y(a.injectImpl):null;Oe(t,r,z.Default);try{i=t[n]=a.factory(void 0,o,t,r),e.firstCreatePass&&n>=r.directiveStart&&function(t,e,n){var r=e.type.prototype,i=r.ngOnInit,o=r.ngDoCheck;if(r.ngOnChanges){var a=Dt(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,a)}i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,i),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,o))}(n,o[n],e)}finally{null!==c&&Y(c),tn(s),a.resolving=!1,Te()}}return i}function mn(t){if("string"==typeof t)return t.charCodeAt(0)||0;var e=t.hasOwnProperty(ht)?t[ht]:void 0;return"number"==typeof e?e>=0?255&e:fn:e}function vn(t,e,n){return!!(n[e+(t>>5)]&1<=t.length?t.push(n):t.splice(e,0,n)}function Ln(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function Nn(t,e){for(var n=[],r=0;r=0?t[1|r]=n:function(t,e,n,r){var i=t.length;if(i==e)t.push(n,r);else if(1===i)t.push(r,t[0]),t[0]=n;else{for(i--,t.push(t[i-1],t[i]);i>e;)t[i]=t[i-2],i--;t[e]=n,t[e+1]=r}}(t,r=~r,e,n),r}function Mn(t,e){var n=Fn(t,e);if(n>=0)return t[1|n]}function Fn(t,e){return function(t,e,n){for(var r=0,i=t.length>>1;i!==r;){var o=r+(i-r>>1),a=t[o<<1];if(e===a)return o<<1;a>e?i=o:r=o+1}return~(i<<1)}(t,e)}var Vn={},Un=/\n/gm,Bn="__source",qn=k({provide:String,useValue:k}),Xn=void 0;function zn(t){var e=Xn;return Xn=t,e}function Hn(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:z.Default;if(void 0===Xn)throw new Error("inject() must be called from an injection context");return null===Xn?G(t,void 0,e):Xn.get(t,e&z.Optional?null:void 0,e)}function Yn(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:z.Default;return(H()||Hn)(j(t),e)}var Gn=Yn;function Kn(t){for(var e=[],n=0;n3&&void 0!==arguments[3]?arguments[3]:null;t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;var i=O(e);if(Array.isArray(e))i=e.map(O).join(" -> ");else if("object"==typeof e){var o=[];for(var a in e)if(e.hasOwnProperty(a)){var s=e[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):O(s)))}i="{".concat(o.join(", "),"}")}return"".concat(n).concat(r?"("+r+")":"","[").concat(i,"]: ").concat(t.replace(Un,"\n "))}("\n"+t.message,i,n,r),t.ngTokenPath=i,t.ngTempTokenPath=null,t}var Zn,Jn=Wn(En("Inject",function(t){return{token:t}}),-1),$n=Wn(En("Optional"),8),tr=Wn(En("SkipSelf"),4);function er(t){var e;return(null===(e=function(){if(void 0===Zn&&(Zn=null,et.trustedTypes))try{Zn=et.trustedTypes.createPolicy("angular",{createHTML:function(t){return t},createScript:function(t){return t},createScriptURL:function(t){return t}})}catch(e){}return Zn}())||void 0===e?void 0:e.createHTML(t))||t}var nr=function(){function t(e){Object(h.a)(this,t),this.changingThisBreaksApplicationSecurity=e}return Object(l.a)(t,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity)+" (see https://g.co/ng/security#xss)"}}]),t}(),rr=function(t){Object(f.a)(n,t);var e=_(n);function n(){return Object(h.a)(this,n),e.apply(this,arguments)}return Object(l.a)(n,[{key:"getTypeName",value:function(){return"HTML"}}]),n}(nr),ir=function(t){Object(f.a)(n,t);var e=_(n);function n(){return Object(h.a)(this,n),e.apply(this,arguments)}return Object(l.a)(n,[{key:"getTypeName",value:function(){return"Style"}}]),n}(nr),or=function(t){Object(f.a)(n,t);var e=_(n);function n(){return Object(h.a)(this,n),e.apply(this,arguments)}return Object(l.a)(n,[{key:"getTypeName",value:function(){return"Script"}}]),n}(nr),ar=function(t){Object(f.a)(n,t);var e=_(n);function n(){return Object(h.a)(this,n),e.apply(this,arguments)}return Object(l.a)(n,[{key:"getTypeName",value:function(){return"URL"}}]),n}(nr),sr=function(t){Object(f.a)(n,t);var e=_(n);function n(){return Object(h.a)(this,n),e.apply(this,arguments)}return Object(l.a)(n,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),n}(nr);function cr(t){return t instanceof nr?t.changingThisBreaksApplicationSecurity:t}function ur(t,e){var n=lr(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error("Required a safe ".concat(e,", got a ").concat(n," (see https://g.co/ng/security#xss)"))}return n===e}function lr(t){return t instanceof nr&&t.getTypeName()||null}function hr(t){return new rr(t)}function fr(t){return new ir(t)}function dr(t){return new or(t)}function pr(t){return new ar(t)}function br(t){return new sr(t)}var mr=function(){function t(e){Object(h.a)(this,t),this.inertDocumentHelper=e}return Object(l.a)(t,[{key:"getInertBodyElement",value:function(t){t=""+t;try{var e=(new window.DOMParser).parseFromString(er(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(n){return null}}}]),t}(),vr=function(){function t(e){if(Object(h.a)(this,t),this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);var r=this.inertDocument.createElement("body");n.appendChild(r)}}return Object(l.a)(t,[{key:"getInertBodyElement",value:function(t){var e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=er(t),e;var n=this.inertDocument.createElement("body");return n.innerHTML=er(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}},{key:"stripCustomNsAttrs",value:function(t){for(var e=t.attributes,n=e.length-1;0"),!0}},{key:"endElement",value:function(t){var e=t.nodeName.toLowerCase();jr.hasOwnProperty(e)&&!Or.hasOwnProperty(e)&&(this.buf.push(""))}},{key:"chars",value:function(t){this.buf.push(Dr(t))}},{key:"checkClobberedElement",value: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: ".concat(t.outerHTML));return e}}]),t}(),Lr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Nr=/([^\#-~ |!])/g;function Dr(t){return t.replace(/&/g,"&").replace(Lr,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Nr,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}function Mr(t,e){var n=null;try{xr=xr||function(t){var e=new vr(t);return function(){try{return!!(new window.DOMParser).parseFromString(er(""),"text/html")}catch(t){return!1}}()?new mr(e):e}(t);var r=e?String(e):"";n=xr.getInertBodyElement(r);var i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=xr.getInertBodyElement(r)}while(r!==o);return er((new Pr).sanitizeChildren(Fr(n)||n))}finally{if(n)for(var a=Fr(n)||n;a.firstChild;)a.removeChild(a.firstChild)}}function Fr(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Vr=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function Ur(t){var e,n=(e=oe())&&e[12];return n?n.sanitize(Vr.URL,t)||"":ur(t,"URL")?cr(t):wr(A(t))}function Br(t){return t.ngDebugContext}function qr(t){return t.ngOriginalError}function Xr(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r0&&(t[r-1][4]=i[4]);var a=Ln(t,Et+e);ki(i[1],n=i,n[11],2,null,null),n[0]=null,n[6]=null;var s=a[19];null!==s&&s.detachView(a[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}}function ci(t,e){if(!(256&e[2])){var n=e[11];Xt(n)&&n.destroyNode&&ki(t,e,n,3,null,null),function(t){var e=t[13];if(!e)return ui(t[1],t);for(;e;){var n=null;if(Ct(e))n=e[13];else{var r=e[10];r&&(n=r)}if(!n){for(;e&&!e[4]&&e!==t;)Ct(e)&&ui(e[1],e),e=e[3];null===e&&(e=t),Ct(e)&&ui(e[1],e),n=e&&e[4]}e=n}}(e)}}function ui(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){var n;if(null!=t&&null!=(n=t.destroyHooks))for(var r=0;r=0?r[i=u]():r[i=-u].unsubscribe(),o+=2}else{var l=r[i=n[o+1]];n[o].call(l)}if(null!==r){for(var h=i+1;ho?"":i[l+1].toLowerCase();var f=8&r?h:null;if(f&&-1!==Ci(f,u,0)||2&r&&u!==h){if(Pi(r))return!1;a=!0}}}}else{if(!a&&!Pi(r)&&!Pi(c))return!1;if(a&&Pi(c))continue;a=!1,r=c|1&r}}return Pi(r)||a}function Pi(t){return 0==(1&t)}function Li(t,e,n,r){if(null===e)return-1;var i=0;if(r||!n){for(var o=!1;i-1)for(n++;n2&&void 0!==arguments[2]&&arguments[2],r=0;r0?'="'+s+'"':"")+"]"}else 8&r?i+="."+a:4&r&&(i+=" "+a);else""===i||Pi(a)||(e+=Mi(o,i),i=""),r=a,o=o||!Pi(r);n++}return""!==i&&(e+=Mi(o,i)),e}var Vi={};function Ui(t){Bi(ae(),oe(),Re()+t,de())}function Bi(t,e,n,r){if(!r)if(3==(3&e[2])){var i=t.preOrderCheckHooks;null!==i&&Fe(e,i,n)}else{var o=t.preOrderHooks;null!==o&&Ve(e,o,0,n)}Pe(n)}function qi(t,e){return t<<17|e<<2}function Xi(t){return t>>17&32767}function zi(t){return 2|t}function Hi(t){return(131068&t)>>2}function Yi(t,e){return-131069&t|e<<2}function Gi(t){return 1|t}function Ki(t,e){var n=t.contentQueries;if(null!==n)for(var r=0;rSt&&Bi(t,e,St,de()),n(r,i)}finally{Pe(o)}}function no(t,e,n){if(Tt(e))for(var r=e.directiveEnd,i=e.directiveStart;i2&&void 0!==arguments[2]?arguments[2]:Gt,r=e.localNames;if(null!==r)for(var i=e.index+1,o=0;o0;){var n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(s)!=c&&s.push(c),s.push(r,i,a)}}function fo(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function po(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function bo(t,e,n){if(n){if(e.exportAs)for(var r=0;r0&&xo(n)}}function xo(t){for(var e=ti(t);null!==e;e=ei(e))for(var n=Et;n0&&xo(r)}var o=t[1].components;if(null!==o)for(var a=0;a0&&xo(s)}}function Oo(t,e){var n=Qt(e,t),r=n[1];!function(t,e){for(var n=e.length;n1&&void 0!==arguments[1]?arguments[1]:Vn;if(e===Vn){var n=new Error("NullInjectorError: No provider for ".concat(O(t),"!"));throw n.name="NullInjectorError",n}return e}}]),t}(),Uo=new jn("Set Injector scope."),Bo={},qo={},Xo=[],zo=void 0;function Ho(){return void 0===zo&&(zo=new Vo),zo}function Yo(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0;return new Go(t,n,e||Ho(),r)}var Go=function(){function t(e,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;Object(h.a)(this,t),this.parent=r,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var a=[];n&&Rn(n,function(t){return i.processProvider(t,e,n)}),Rn([e],function(t){return i.processInjectorType(t,[],a)}),this.records.set(Fo,Qo(void 0,this));var s=this.records.get(Uo);this.scope=null!=s?s.value:null,this.source=o||("object"==typeof e?null:O(e))}return Object(l.a)(t,[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value: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()}}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Vn,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:z.Default;this.assertNotDestroyed();var r=zn(this);try{if(!(n&z.SkipSelf)){var i=this.records.get(t);if(void 0===i){var o=$o(t)&&D(t);i=o&&this.injectableDefInScope(o)?Qo(Ko(t),Bo):null,this.records.set(t,i)}if(null!=i)return this.hydrate(t,i)}var a=n&z.Self?Ho():this.parent;return a.get(t,e=n&z.Optional&&e===Vn?null:e)}catch(c){if("NullInjectorError"===c.name){var s=c.ngTempTokenPath=c.ngTempTokenPath||[];if(s.unshift(O(t)),r)throw c;return Qn(c,t,"R3InjectorError",this.source)}throw c}finally{zn(r)}}},{key:"_resolveInjectorDefTypes",value:function(){var t=this;this.injectorDefTypes.forEach(function(e){return t.get(e)})}},{key:"toString",value:function(){var t=[];return this.records.forEach(function(e,n){return t.push(O(n))}),"R3Injector[".concat(t.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(t,e,n){var r=this;if(!(t=j(t)))return!1;var i=F(t),o=null==i&&t.ngModule||void 0,a=void 0===o?t:o,s=-1!==n.indexOf(a);if(void 0!==o&&(i=F(o)),null==i)return!1;if(null!=i.imports&&!s){var c;n.push(a);try{Rn(i.imports,function(t){r.processInjectorType(t,e,n)&&(void 0===c&&(c=[]),c.push(t))})}finally{}if(void 0!==c)for(var u=function(t){var e=c[t],n=e.ngModule,i=e.providers;Rn(i,function(t){return r.processProvider(t,n,i||Xo)})},l=0;l0){var n=Nn(e,"?");throw new Error("Can't resolve all parameters for ".concat(O(t),": (").concat(n.join(", "),")."))}var r=function(t){var e=t&&(t[U]||t[q]);if(e){var n=function(t){if(t.hasOwnProperty("name"))return t.name;var e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(n,'" that inherits its @Injectable decorator but does not provide one itself.\n')+'This will become an error in a future version of Angular. Please add @Injectable() to the "'.concat(n,'" class.')),e}return null}(t);return null!==r?function(){return r.factory(t)}:function(){return new t}}(t);throw new Error("unreachable")}function Wo(t,e,n){var r,i=void 0;if(Jo(t)){var o=j(t);return Pt(o)||Ko(o)}if(Zo(t))i=function(){return j(t.useValue)};else if((r=t)&&r.useFactory)i=function(){return t.useFactory.apply(t,Object(a.a)(Kn(t.deps||[])))};else if(function(t){return!(!t||!t.useExisting)}(t))i=function(){return Yn(j(t.useExisting))};else{var s=j(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return Pt(s)||Ko(s);i=function(){return u(s,Object(a.a)(Kn(t.deps)))}}return i}function Qo(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:t,value:e,multi:n?[]:void 0}}function Zo(t){return null!==t&&"object"==typeof t&&qn in t}function Jo(t){return"function"==typeof t}function $o(t){return"function"==typeof t||"object"==typeof t&&t instanceof jn}var ta=function(t,e,n){return function(t){var e=Yo(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,arguments.length>3?arguments[3]:void 0);return e._resolveInjectorDefTypes(),e}({name:n},e,t,n)},ea=function(){var t=function(){function t(){Object(h.a)(this,t)}return Object(l.a)(t,null,[{key:"create",value:function(t,e){return Array.isArray(t)?ta(t,e,""):ta(t.providers,t.parent,t.name||"")}}]),t}();return t.THROW_IF_NOT_FOUND=Vn,t.NULL=new Vo,t.\u0275prov=L({token:t,providedIn:"any",factory:function(){return Yn(Fo)}}),t.__NG_ELEMENT_ID__=-1,t}();function na(t,e){Me(Zt(t)[1],ce())}function ra(t){for(var e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0,r=[t];e;){var i=void 0;if(Rt(t))i=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");i=e.\u0275dir}if(i){if(n){r.push(i);var o=t;o.inputs=ia(t.inputs),o.declaredInputs=ia(t.declaredInputs),o.outputs=ia(t.outputs);var a=i.hostBindings;a&&sa(t,a);var s=i.viewQuery,c=i.contentQueries;if(s&&oa(t,s),c&&aa(t,c),x(t.inputs,i.inputs),x(t.declaredInputs,i.declaredInputs),x(t.outputs,i.outputs),Rt(i)&&i.data.animation){var u=t.data;u.animation=(u.animation||[]).concat(i.data.animation)}}var l=i.features;if(l)for(var h=0;h=0;r--){var i=t[r];i.hostVars=e+=i.hostVars,i.hostAttrs=Ke(i.hostAttrs,n=Ke(n,i.hostAttrs))}}(r)}function ia(t){return t===nt?{}:t===it?[]:t}function oa(t,e){var n=t.viewQuery;t.viewQuery=n?function(t,r){e(t,r),n(t,r)}:e}function aa(t,e){var n=t.contentQueries;t.contentQueries=n?function(t,r,i){e(t,r,i),n(t,r,i)}:e}function sa(t,e){var n=t.hostBindings;t.hostBindings=n?function(t,r){e(t,r),n(t,r)}:e}var ca=null;function ua(){if(!ca){var t=et.Symbol;if(t&&t.iterator)ca=t.iterator;else for(var e=Object.getOwnPropertyNames(Map.prototype),n=0;n1&&void 0!==arguments[1]?arguments[1]:z.Default,n=oe();if(null===n)return Yn(t,e);var r=ce();return ln(r,n,j(t),e)}function Oa(){throw new Error("invalid")}function Sa(t,e,n){var r=oe();return ba(r,ve(),e)&&uo(ae(),Le(),r,t,e,r[11],n,!1),Sa}function Ea(t,e,n,r,i){var o=i?"class":"style";No(t,n,e.inputs[o],o,r)}function Ca(t,e,n,r){var i=oe(),o=ae(),a=St+t,s=i[11],c=i[a]=oi(s,e,re.lFrame.currentNamespace),u=o.firstCreatePass?function(t,e,n,r,i,o,a){var s=e.consts,c=Qi(e,t,2,i,te(s,o));return lo(e,n,c,te(s,a)),null!==c.attrs&&Mo(c,c.attrs,!1),null!==c.mergedAttrs&&Mo(c,c.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,c),c}(a,o,i,0,e,n,r):o.data[a];le(u,!0);var l=u.mergedAttrs;null!==l&&He(s,c,l);var h=u.classes;null!==h&&Ei(s,c,h);var f=u.styles;null!==f&&Si(s,c,f),64!=(64&u.flags)&&vi(o,i,c,u),0===re.lFrame.elementDepthCount&&Hr(c,i),re.lFrame.elementDepthCount++,At(u)&&(ro(o,i,u),no(o,u,i)),null!==r&&io(i,u)}function ja(){var t=ce();he()?fe():le(t=t.parent,!1);var e=t;re.lFrame.elementDepthCount--;var n=ae();n.firstCreatePass&&(Me(n,t),Tt(t)&&n.queries.elementEnd(t)),null!=e.classesWithoutHost&&function(t){return 0!=(16&t.flags)}(e)&&Ea(n,e,oe(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function(t){return 0!=(32&t.flags)}(e)&&Ea(n,e,oe(),e.stylesWithoutHost,!1)}function Ta(t,e,n,r){Ca(t,e,n,r),ja()}function Ia(t,e,n){var r=oe(),i=ae(),o=t+St,a=i.firstCreatePass?function(t,e,n,r,i){var o=e.consts,a=te(o,r),s=Qi(e,t,8,"ng-container",a);return null!==a&&Mo(s,a,!0),lo(e,n,s,te(o,i)),null!==e.queries&&e.queries.elementStart(e,s),s}(o,i,r,e,n):i.data[o];le(a,!0);var s=r[o]=r[11].createComment("");vi(i,r,s,a),Hr(s,r),At(a)&&(ro(i,r,a),no(i,a,r)),null!=n&&io(r,a)}function Aa(){var t=ce(),e=ae();he()?fe():le(t=t.parent,!1),e.firstCreatePass&&(Me(e,t),Tt(t)&&e.queries.elementEnd(t))}function Ra(t,e,n){Ia(t,e,n),Aa()}function Pa(){return oe()}function La(t){return!!t&&"function"==typeof t.then}function Na(t){return!!t&&"function"==typeof t.subscribe}var Da=Na;function Ma(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=oe(),o=ae(),a=ce();return Ua(o,i,i[11],a,t,e,n,r),Ma}function Fa(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=ce(),o=oe(),a=ae(),s=we(a.data),c=Po(s,i,o);return Ua(a,o,c,i,t,e,n,r),Fa}function Va(t,e,n,r){var i=t.cleanup;if(null!=i)for(var o=0;oc?s[c]:null}"string"==typeof a&&(o+=2)}return null}function Ua(t,e,n,r,i,o){var a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7?arguments[7]:void 0,c=At(r),u=t.firstCreatePass,l=u&&Ro(t),h=Ao(e),f=!0;if(3&r.type){var d=Gt(r,e),p=s?s(d):nt,b=p.target||d,m=h.length,v=s?function(t){return s(Ht(t[r.index])).target}:r.index;if(Xt(n)){var g=null;if(!s&&c&&(g=Va(t,e,i,r.index)),null!==g){var y=g.__ngLastListenerFn__||g;y.__ngNextListenerFn__=o,g.__ngLastListenerFn__=o,f=!1}else{o=qa(r,e,0,o,!1);var w=n.listen(p.name||b,i,o);h.push(o,w),l&&l.push(i,v,m,m+1)}}else o=qa(r,e,0,o,!0),b.addEventListener(i,o,a),h.push(o),l&&l.push(i,v,m,a)}else o=qa(r,e,0,o,!1);var _,k=r.outputs;if(f&&null!==k&&(_=k[i])){var x=_.length;if(x)for(var O=0;O0&&void 0!==arguments[0]?arguments[0]:1;return Ae(t)}function za(t,e){for(var n=null,r=function(t){var e=t.attrs;if(null!=e){var n=e.indexOf(5);if(0==(1&n))return e[n+1]}return null}(t),i=0;i1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,r=oe(),i=ae(),o=Qi(i,St+t,16,null,n||null);null===o.projection&&(o.projection=e),fe(),64!=(64&o.flags)&&xi(i,r,o)}function Ga(t,e,n){return Ka(t,"",e,"",n),Ga}function Ka(t,e,n,r,i){var o=oe(),a=ya(o,e,n,r);return a!==Vi&&uo(ae(),Le(),o,t,a,o[11],i,!1),Ka}function Wa(t,e,n,r,i){for(var o=t[n+1],a=null===e,s=r?Xi(o):Hi(o),c=!1;0!==s&&(!1===c||a);){var u=t[s+1];Qa(t[s],e)&&(c=!0,t[s+1]=r?Gi(u):zi(u)),s=r?Xi(u):Hi(u)}c&&(t[n+1]=r?zi(o):Gi(o))}function Qa(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&Fn(t,e)>=0}var Za={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Ja(t){return t.substring(Za.key,Za.keyEnd)}function $a(t,e){var n=Za.textEnd;return n===e?-1:(e=Za.keyEnd=function(t,e,n){for(;e32;)e++;return e}(t,Za.key=e,n),ts(t,e,n))}function ts(t,e,n){for(;e=0;n=$a(e,n))Dn(t,Ja(e),!0)}function os(t,e,n,r){var i=oe(),o=ae(),a=ge(2);o.firstUpdatePass&&cs(o,t,a,r),e!==Vi&&ba(i,a,e)&&hs(o,o.data[Re()],i,i[11],t,i[a+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=O(cr(t)))),t}(e,n),r,a)}function as(t,e,n,r){var i=ae(),o=ge(2);i.firstUpdatePass&&cs(i,null,o,r);var a=oe();if(n!==Vi&&ba(a,o,n)){var s=i.data[Re()];if(ps(s,r)&&!ss(i,o)){var c=r?s.classesWithoutHost:s.stylesWithoutHost;null!==c&&(n=S(c,n||"")),Ea(i,s,a,n,r)}else!function(t,e,n,r,i,o,a,s){i===Vi&&(i=rt);for(var c=0,u=0,l=0=t.expandoStartIndex}function cs(t,e,n,r){var i=t.data;if(null===i[n+1]){var o=i[Re()],a=ss(t,n);ps(o,r)&&null===e&&!a&&(e=!1),e=function(t,e,n,r){var i=we(t),o=r?e.residualClasses:e.residualStyles;if(null===i)0===(r?e.classBindings:e.styleBindings)&&(n=ls(n=us(null,t,e,n,r),e.attrs,r),o=null);else{var a=e.directiveStylingLast;if(-1===a||t[a]!==i)if(n=us(i,t,e,n,r),null===o){var s=function(t,e,n){var r=n?e.classBindings:e.styleBindings;if(0!==Hi(r))return t[Xi(r)]}(t,e,r);void 0!==s&&Array.isArray(s)&&function(t,e,n,r){t[Xi(n?e.classBindings:e.styleBindings)]=r}(t,e,r,s=ls(s=us(null,t,e,s[1],r),e.attrs,r))}else o=function(t,e,n){for(var r=void 0,i=e.directiveEnd,o=1+e.directiveStylingLast;o0)&&(l=!0):u=n,i)if(0!==c){var h=Xi(t[s+1]);t[r+1]=qi(h,s),0!==h&&(t[h+1]=Yi(t[h+1],r)),t[s+1]=131071&t[s+1]|r<<17}else t[r+1]=qi(s,0),0!==s&&(t[s+1]=Yi(t[s+1],r)),s=r;else t[r+1]=qi(c,0),0===s?s=r:t[c+1]=Yi(t[c+1],r),c=r;l&&(t[r+1]=zi(t[r+1])),Wa(t,u,r,!0),Wa(t,u,r,!1),function(t,e,n,r,i){var o=i?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof e&&Fn(o,e)>=0&&(n[r+1]=Gi(n[r+1]))}(e,u,t,r,o),a=qi(s,c),o?e.classBindings=a:e.styleBindings=a}(i,o,e,n,a,r)}}function us(t,e,n,r,i){var o=null,a=n.directiveEnd,s=n.directiveStylingLast;for(-1===s?s=n.directiveStart:s++;s0;){var c=t[i],u=Array.isArray(c),l=u?c[1]:c,h=null===l,f=n[i+1];f===Vi&&(f=h?rt:void 0);var d=h?Mn(f,r):l===r?f:void 0;if(u&&!ds(d)&&(d=Mn(c,r)),ds(d)&&(s=d,a))return s;var p=t[i+1];i=a?Xi(p):Hi(p)}if(null!==e){var b=o?e.residualClasses:e.residualStyles;null!=b&&(s=Mn(b,r))}return s}function ds(t){return void 0!==t}function ps(t,e){return 0!=(t.flags&(e?16:32))}function bs(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=oe(),r=ae(),i=t+St,o=r.firstCreatePass?Qi(r,i,1,e,null):r.data[i],a=n[i]=ii(n[11],e);vi(r,n,a,o),le(o,!1)}function ms(t){return vs("",t,""),ms}function vs(t,e,n){var r=oe(),i=ya(r,t,e,n);return i!==Vi&&Do(r,Re(),i),vs}function gs(t,e,n,r,i){var o=oe(),a=wa(o,t,e,n,r,i);return a!==Vi&&Do(o,Re(),a),gs}function ys(t,e,n,r,i,o,a,s,c,u,l){var h=oe(),f=function(t,e,n,r,i,o,a,s,c,u,l,h){var f=me(),d=va(t,f,n,i,a,c);return d=ba(t,f+4,l)||d,ge(5),d?e+A(n)+r+A(i)+o+A(a)+s+A(c)+u+A(l)+h:Vi}(h,t,e,n,r,i,o,a,s,c,u,l);return f!==Vi&&Do(h,Re(),f),ys}function ws(t,e,n){as(Dn,is,ya(oe(),t,e,n),!0)}function _s(t,e,n,r,i){as(Dn,is,wa(oe(),t,e,n,r,i),!0)}function ks(t,e,n,r,i,o,a,s,c){as(Dn,is,function(t,e,n,r,i,o,a,s,c,u){var l=va(t,me(),n,i,a,c);return ge(4),l?e+A(n)+r+A(i)+o+A(a)+s+A(c)+u:Vi}(oe(),t,e,n,r,i,o,a,s,c),!0)}function xs(t,e,n){var r=oe();return ba(r,ve(),e)&&uo(ae(),Le(),r,t,e,r[11],n,!0),xs}function Os(t,e,n){var r=oe();if(ba(r,ve(),e)){var i=ae(),o=Le();uo(i,o,r,t,e,Po(we(i.data),o,r),n,!0)}return Os}var Ss=void 0,Es=["en",[["a","p"],["AM","PM"],Ss],[["AM","PM"],Ss,Ss],[["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"]],Ss,[["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"]],Ss,[["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}",Ss,"{1} 'at' {0}",Ss],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}],Cs={};function js(t,e,n){"string"!=typeof e&&(n=e,e=t[Ps.LocaleId]),e=e.toLowerCase().replace(/_/g,"-"),Cs[e]=t,n&&(Cs[e][Ps.ExtraData]=n)}function Ts(t){var e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t),n=Rs(e);if(n)return n;var r=e.split("-")[0];if(n=Rs(r))return n;if("en"===r)return Es;throw new Error('Missing locale data for the locale "'.concat(t,'".'))}function Is(t){return Ts(t)[Ps.CurrencyCode]||null}function As(t){return Ts(t)[Ps.PluralCase]}function Rs(t){return t in Cs||(Cs[t]=et.ng&&et.ng.common&&et.ng.common.locales&&et.ng.common.locales[t]),Cs[t]}var Ps=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({}),Ls="en-US";function Ns(t){var e,n;n="Expected localeId to be defined",null==(e=t)&&function(t,e,n,r){throw new Error("ASSERTION ERROR: ".concat(t)+" [Expected=> ".concat(null," ").concat("!="," ").concat(e," <=Actual]"))}(n,e),"string"==typeof t&&t.toLowerCase().replace(/_/g,"-")}function Ds(t,e,n){var r=ae();if(r.firstCreatePass){var i=Rt(t);Ms(n,r.data,r.blueprint,i,!0),Ms(e,r.data,r.blueprint,i,!1)}}function Ms(t,e,n,r,i){if(t=j(t),Array.isArray(t))for(var o=0;o>20;if(Jo(t)||!t.multi){var p=new ze(u,i,xa),b=Us(c,e,i?h:h+d,f);-1===b?(sn(nn(l,s),a,c),Fs(a,t,e.length),e.push(c),l.directiveStart++,l.directiveEnd++,i&&(l.providerIndexes+=1048576),n.push(p),s.push(p)):(n[b]=p,s[b]=p)}else{var m=Us(c,e,h+d,f),v=Us(c,e,h,h+d),g=v>=0&&n[v];if(i&&!g||!i&&!(m>=0&&n[m])){sn(nn(l,s),a,c);var y=function(t,e,n,r,i){var o=new ze(t,n,xa);return o.multi=[],o.index=e,o.componentProviders=0,Vs(o,i,r&&!n),o}(i?qs:Bs,n.length,i,r,u);!i&&g&&(n[v].providerFactory=y),Fs(a,t,e.length,0),e.push(c),l.directiveStart++,l.directiveEnd++,i&&(l.providerIndexes+=1048576),n.push(y),s.push(y)}else Fs(a,t,m>-1?m:v,Vs(n[i?v:m],u,!i&&r));!i&&r&&g&&n[v].componentProviders++}}}function Fs(t,e,n,r){var i=Jo(e);if(i||e.useClass){var o=(e.useClass||e).prototype.ngOnDestroy;if(o){var a=t.destroyHooks||(t.destroyHooks=[]);if(!i&&e.multi){var s=a.indexOf(n);-1===s?a.push(n,[r,o]):a[s+1].push(r,o)}else a.push(n,o)}}}function Vs(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function Us(t,e,n,r){for(var i=n;i1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,r){return Ds(n,r?r(t):t,e)}}}var Hs=function t(){Object(h.a)(this,t)},Ys=function t(){Object(h.a)(this,t)},Gs=function(){function t(){Object(h.a)(this,t)}return Object(l.a)(t,[{key:"resolveComponentFactory",value:function(t){throw function(t){var e=Error("No component factory found for ".concat(O(t),". Did you add it to @NgModule.entryComponents?"));return e.ngComponent=t,e}(t)}}]),t}(),Ks=function(){var t=function t(){Object(h.a)(this,t)};return t.NULL=new Gs,t}();function Ws(){}function Qs(t,e){return new Js(Gt(t,e))}var Zs=function(){return Qs(ce(),oe())},Js=function(){var t=function t(e){Object(h.a)(this,t),this.nativeElement=e};return t.__NG_ELEMENT_ID__=Zs,t}();function $s(t){return t instanceof Js?t.nativeElement:t}var tc=function t(){Object(h.a)(this,t)},ec=function(){var t=function t(){Object(h.a)(this,t)};return t.__NG_ELEMENT_ID__=function(){return nc()},t}(),nc=function(){var t=oe(),e=Qt(ce().index,t);return function(t){return t[11]}(Ct(e)?e:t)},rc=function(){var t=function t(){Object(h.a)(this,t)};return t.\u0275prov=L({token:t,providedIn:"root",factory:function(){return null}}),t}(),ic=function t(e){Object(h.a)(this,t),this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")},oc=new ic("11.2.14"),ac=function(){function t(){Object(h.a)(this,t)}return Object(l.a)(t,[{key:"supports",value:function(t){return ha(t)}},{key:"create",value:function(t){return new cc(t)}}]),t}(),sc=function(t,e){return e},cc=function(){function t(e){Object(h.a)(this,t),this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||sc}return Object(l.a)(t,[{key:"forEachItem",value:function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)}},{key:"forEachOperation",value:function(t){for(var e=this._itHead,n=this._removalsHead,r=0,i=null;e||n;){var o=!n||e&&e.currentIndex4&&void 0!==arguments[4]&&arguments[4];null!==n;){var o=e[n.index];if(null!==o&&r.push(Ht(o)),jt(o))for(var s=Et;s-1&&(si(t,n),Ln(e,n))}this._attachedToViewContainer=!1}ci(this._lView[1],this._lView)}},{key:"onDestroy",value:function(t){so(this._lView[1],this._lView,null,t)}},{key:"markForCheck",value:function(){Eo(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){Co(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(t,e,n){pe(!0);try{Co(t,e,n)}finally{pe(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){var t;this._appRef=null,ki(this._lView[1],t=this._lView,t[11],2,null,null)}},{key:"attachToAppRef",value:function(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}]),t}(),kc=function(t){Object(f.a)(n,t);var e=_(n);function n(t){var r;return Object(h.a)(this,n),(r=e.call(this,t))._view=t,r}return Object(l.a)(n,[{key:"detectChanges",value:function(){jo(this._view)}},{key:"checkNoChanges",value:function(){!function(t){pe(!0);try{jo(t)}finally{pe(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),n}(_c),xc=Sc,Oc=function(){var t=function t(){Object(h.a)(this,t)};return t.__NG_ELEMENT_ID__=xc,t.__ChangeDetectorRef__=!0,t}();function Sc(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Ec(ce(),oe(),t)}function Ec(t,e,n){if(!n&&It(t)){var r=Qt(t.index,e);return new _c(r,r)}return 47&t.type?new _c(e[16],e):null}var Cc=[new dc],jc=new vc([new ac]),Tc=new yc(Cc),Ic=function(){return Pc(ce(),oe())},Ac=function(){var t=function t(){Object(h.a)(this,t)};return t.__NG_ELEMENT_ID__=Ic,t}(),Rc=function(t){Object(f.a)(n,t);var e=_(n);function n(t,r,i){var o;return Object(h.a)(this,n),(o=e.call(this))._declarationLView=t,o._declarationTContainer=r,o.elementRef=i,o}return Object(l.a)(n,[{key:"createEmbeddedView",value:function(t){var e=this._declarationTContainer.tViews,n=Wi(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];var r=this._declarationLView[19];return null!==r&&(n[19]=r.createEmbeddedView(e)),Ji(e,n,t),new _c(n)}}]),n}(Ac);function Pc(t,e){return 4&t.type?new Rc(e,t,Qs(t,e)):null}var Lc=function t(){Object(h.a)(this,t)},Nc=function t(){Object(h.a)(this,t)},Dc=function(){return Bc(ce(),oe())},Mc=function(){var t=function t(){Object(h.a)(this,t)};return t.__NG_ELEMENT_ID__=Dc,t}(),Fc=function(t){Object(f.a)(n,t);var e=_(n);function n(t,r,i){var o;return Object(h.a)(this,n),(o=e.call(this))._lContainer=t,o._hostTNode=r,o._hostLView=i,o}return Object(l.a)(n,[{key:"element",get:function(){return Qs(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new yn(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var t=an(this._hostTNode,this._hostLView);if(Qe(t)){var e=Je(t,this._hostLView),n=Ze(t);return new yn(e[1].data[n+8],e)}return new yn(null,this._hostLView)}},{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(t){var e=Vc(this._lContainer);return null!==e&&e[t]||null}},{key:"length",get:function(){return this._lContainer.length-Et}},{key:"createEmbeddedView",value:function(t,e,n){var r=t.createEmbeddedView(e||{});return this.insert(r,n),r}},{key:"createComponent",value:function(t,e,n,r,i){var o=n||this.parentInjector;if(!i&&null==t.ngModule&&o){var a=o.get(Lc,null);a&&(i=a)}var s=t.create(o,r,void 0,i);return this.insert(s.hostView,e),s}},{key:"insert",value:function(t,e){var n=t._lView,r=n[1];if(jt(n[3])){var i=this.indexOf(t);if(-1!==i)this.detach(i);else{var o=n[3],a=new Fc(o,o[6],o[3]);a.detach(a.indexOf(t))}}var s=this._adjustIndex(e),c=this._lContainer;!function(t,e,n,r){var i=Et+r,o=n.length;r>0&&(n[i-1][4]=e),r1&&void 0!==arguments[1]?arguments[1]:0;return null==t?this.length+e:t}}]),n}(Mc);function Vc(t){return t[8]}function Uc(t){return t[8]||(t[8]=[])}function Bc(t,e){var n,r=e[t.index];if(jt(r))n=r;else{var i;if(8&t.type)i=Ht(r);else{var o=e[11];i=o.createComment("");var a=Gt(t,e);hi(o,pi(o,a),i,function(t,e){return Xt(t)?t.nextSibling(e):e.nextSibling}(o,a),!1)}e[t.index]=n=_o(r,e,i,t),So(e,n)}return new Fc(n,t,e)}var qc={},Xc=function(t){Object(f.a)(n,t);var e=_(n);function n(t){var r;return Object(h.a)(this,n),(r=e.call(this)).ngModule=t,r}return Object(l.a)(n,[{key:"resolveComponentFactory",value:function(t){var e=xt(t);return new Yc(e,this.ngModule)}}]),n}(Ks);function zc(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}var Hc=new jn("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return Yr}}),Yc=function(t){Object(f.a)(n,t);var e=_(n);function n(t,r){var i;return Object(h.a)(this,n),(i=e.call(this)).componentDef=t,i.ngModule=r,i.componentType=t.type,i.selector=t.selectors.map(Fi).join(","),i.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],i.isBoundToModule=!!r,i}return Object(l.a)(n,[{key:"inputs",get:function(){return zc(this.componentDef.inputs)}},{key:"outputs",get:function(){return zc(this.componentDef.outputs)}},{key:"create",value:function(t,e,n,r){var i,o,a=(r=r||this.ngModule)?function(t,e){return{get:function(n,r,i){var o=t.get(n,qc,i);return o!==qc||r===qc?o:e.get(n,r,i)}}}(t,r.injector):t,s=a.get(tc,zt),c=a.get(rc,null),u=s.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",h=n?function(t,e,n){if(Xt(t))return t.selectRootElement(e,n===Q.ShadowDom);var r="string"==typeof e?t.querySelector(e):e;return r.textContent="",r}(u,n,this.componentDef.encapsulation):oi(s.createRenderer(null,this.componentDef),l,function(t){var e=t.toLowerCase();return"svg"===e?Ut:"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),f=this.componentDef.onPush?576:528,d={components:[],scheduler:Yr,clean:Io,playerHandler:null,flags:0},p=ao(0,null,null,1,0,null,null,null,null,null),b=Wi(null,p,d,f,null,null,s,u,c,a);Se(b);try{var m=function(t,e,n,r,i,o){var a=n[1];n[20]=t;var s=Qi(a,20,2,"#host",null),c=s.mergedAttrs=e.hostAttrs;null!==c&&(Mo(s,c,!0),null!==t&&(He(i,t,c),null!==s.classes&&Ei(i,t,s.classes),null!==s.styles&&Si(i,t,s.styles)));var u=r.createRenderer(t,e),l=Wi(n,oo(e),null,e.onPush?64:16,n[20],s,r,u,null,null);return a.firstCreatePass&&(sn(nn(s,n),a,e.type),po(a,s),mo(s,n.length,1)),So(n,l),n[20]=l}(h,this.componentDef,b,s,u);if(h)if(n)He(u,h,["ng-version",oc.full]);else{var v=function(t){for(var e=[],n=[],r=1,i=2;r0&&Ei(u,h,y.join(" "))}if(o=Kt(p,St),void 0!==e)for(var w=o.projection=[],_=0;_1&&void 0!==arguments[1]?arguments[1]:ea.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:z.Default;return t===ea||t===Lc||t===Fo?this:this._r3Injector.get(t,e,n)}},{key:"destroy",value:function(){var t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(function(t){return t()}),this.destroyCbs=null}},{key:"onDestroy",value:function(t){this.destroyCbs.push(t)}}]),n}(Lc),Qc=function(t){Object(f.a)(n,t);var e=_(n);function n(t){var r,i,o;return Object(h.a)(this,n),(r=e.call(this)).moduleType=t,null!==Ot(t)&&(i=t,o=new Set,function t(e){var n=Ot(e,!0),r=n.id;null!==r&&(function(t,e,n){if(e&&e!==n)throw new Error("Duplicate module registered for ".concat(t," - ").concat(O(e)," vs ").concat(O(e.name)))}(r,Kc.get(r),e),Kc.set(r,e));var i=Qr(n.imports),a=!0,s=!1,c=void 0;try{for(var u,l=i[Symbol.iterator]();!(a=(u=l.next()).done);a=!0){var h=u.value;o.has(h)||(o.add(h),t(h))}}catch(f){s=!0,c=f}finally{try{a||null==l.return||l.return()}finally{if(s)throw c}}}(i)),r}return Object(l.a)(n,[{key:"create",value:function(t){return new Wc(this.moduleType,t)}}]),n}(Nc);function Zc(t,e,n){var r=be()+t,i=oe();return i[r]===Vi?da(i,r,n?e.call(n):e()):pa(i,r)}function Jc(t,e,n,r){return iu(oe(),be(),t,e,n,r)}function $c(t,e,n,r,i){return function(t,e,n,r,i,o,a){var s=e+n;return ma(t,s,i,o)?da(t,s+2,a?r.call(a,i,o):r(i,o)):ru(t,s+2)}(oe(),be(),t,e,n,r,i)}function tu(t,e,n,r,i,o){return ou(oe(),be(),t,e,n,r,i,o)}function eu(t,e,n,r,i,o,a){return function(t,e,n,r,i,o,a,s,c){var u=e+n;return va(t,u,i,o,a,s)?da(t,u+4,c?r.call(c,i,o,a,s):r(i,o,a,s)):ru(t,u+4)}(oe(),be(),t,e,n,r,i,o,a)}function nu(t,e,n,r,i,o,a,s){var c=be()+t,u=oe(),l=va(u,c,n,r,i,o);return ba(u,c+4,a)||l?da(u,c+5,s?e.call(s,n,r,i,o,a):e(n,r,i,o,a)):pa(u,c+5)}function ru(t,e){var n=t[e];return n===Vi?void 0:n}function iu(t,e,n,r,i,o){var a=e+n;return ba(t,a,i)?da(t,a+1,o?r.call(o,i):r(i)):ru(t,a+1)}function ou(t,e,n,r,i,o,a,s){var c=e+n;return function(t,e,n,r,i){var o=ma(t,e,n,r);return ba(t,e+2,i)||o}(t,c,i,o,a)?da(t,c+3,s?r.call(s,i,o,a):r(i,o,a)):ru(t,c+3)}function au(t,e){var n,r=ae(),i=t+St;r.firstCreatePass?(n=function(t,e){if(e)for(var n=e.length-1;n>=0;n--){var r=e[n];if(t===r.name)return r}throw new I("302","The pipe '".concat(t,"' could not be found!"))}(e,r.pipeRegistry),r.data[i]=n,n.onDestroy&&(r.destroyHooks||(r.destroyHooks=[])).push(i,n.onDestroy)):n=r.data[i];var o=n.factory||(n.factory=Pt(n.type)),a=Y(xa);try{var s=tn(!1),c=o();return tn(s),function(t,e,n,r){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=r}(r,oe(),i,c),c}finally{Y(a)}}function su(t,e,n){var r=t+St,i=oe(),o=Wt(i,r);return lu(i,uu(i,r)?iu(i,be(),e,o.transform,n,o):o.transform(n))}function cu(t,e,n,r,i){var o=t+St,a=oe(),s=Wt(a,o);return lu(a,uu(a,o)?ou(a,be(),e,s.transform,n,r,i,s):s.transform(n,r,i))}function uu(t,e){return t[1].data[e].pure}function lu(t,e){return la.isWrapped(e)&&(e=la.unwrap(e),t[me()]=Vi),e}function hu(t){return function(e){setTimeout(t,void 0,e)}}var fu=function(t){Object(f.a)(n,t);var e=_(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Object(h.a)(this,n),(t=e.call(this)).__isAsync=r,t}return Object(l.a)(n,[{key:"emit",value:function(t){Object(r.a)(Object(p.a)(n.prototype),"next",this).call(this,t)}},{key:"subscribe",value:function(t,e,i){var o,a,s,c=t,u=e||function(){return null},l=i;if(t&&"object"==typeof t){var h=t;c=null===(o=h.next)||void 0===o?void 0:o.bind(h),u=null===(a=h.error)||void 0===a?void 0:a.bind(h),l=null===(s=h.complete)||void 0===s?void 0:s.bind(h)}this.__isAsync&&(u=hu(u),c&&(c=hu(c)),l&&(l=hu(l)));var f=Object(r.a)(Object(p.a)(n.prototype),"subscribe",this).call(this,{next:c,error:u,complete:l});return t instanceof m.a&&t.add(f),f}}]),n}(v.a);function du(){return this._results[ua()]()}var pu=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Object(h.a)(this,t),this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var n=ua(),r=t.prototype;r[n]||(r[n]=du)}return Object(l.a)(t,[{key:"changes",get:function(){return this._changes||(this._changes=new fu)}},{key:"get",value:function(t){return this._results[t]}},{key:"map",value:function(t){return this._results.map(t)}},{key:"filter",value:function(t){return this._results.filter(t)}},{key:"find",value:function(t){return this._results.find(t)}},{key:"reduce",value:function(t,e){return this._results.reduce(t,e)}},{key:"forEach",value:function(t){this._results.forEach(t)}},{key:"some",value:function(t){return this._results.some(t)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(t,e){var n=this;n.dirty=!1;var r=An(t);(this._changesDetected=!function(t,e,n){if(t.length!==e.length)return!1;for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:[];Object(h.a)(this,t),this.queries=e}return Object(l.a)(t,[{key:"createEmbeddedView",value:function(e){var n=e.queries;if(null!==n){for(var r=null!==e.contentQueries?e.contentQueries[0]:n.length,i=[],o=0;o2&&void 0!==arguments[2]?arguments[2]:null;Object(h.a)(this,t),this.predicate=e,this.flags=n,this.read=r},gu=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];Object(h.a)(this,t),this.queries=e}return Object(l.a)(t,[{key:"elementStart",value:function(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:-1;Object(h.a)(this,t),this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return Object(l.a)(t,[{key:"elementStart",value:function(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}},{key:"elementEnd",value:function(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(t,e){this.elementStart(t,e)}},{key:"embeddedTView",value:function(e,n){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,n),new t(this.metadata)):null}},{key:"isApplyingToNode",value:function(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){for(var e=this._declarationNodeIndex,n=t.parent;null!==n&&8&n.type&&n.index!==e;)n=n.parent;return e===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(t,e){var n=this.metadata.predicate;if(Array.isArray(n))for(var r=0;r0)r.push(a[s/2]);else{for(var u=o[s+1],l=e[-c],h=Et;h0&&void 0!==arguments[0]?arguments[0]:z.Default,e=Sc(!0);if(null!=e||t&z.Optional)return e;P("ChangeDetectorRef")}var Pu=Cn("Input",function(t){return{bindingPropertyName:t}}),Lu=new jn("Application Initializer"),Nu=function(){var t=function(){function t(e){var n=this;Object(h.a)(this,t),this.appInits=e,this.resolve=Ws,this.reject=Ws,this.initialized=!1,this.done=!1,this.donePromise=new Promise(function(t,e){n.resolve=t,n.reject=e})}return Object(l.a)(t,[{key:"runInitializers",value:function(){var t=this;if(!this.initialized){var e=[],n=function(){t.done=!0,t.resolve()};if(this.appInits)for(var r=0;r0&&(i=setTimeout(function(){r._callbacks=r._callbacks.filter(function(t){return t.timeoutId!==i}),t(r._didWork,r.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:n})}},{key:"whenStable",value: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()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(t,e,n){return[]}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Yn(el))},t.\u0275prov=L({token:t,factory:t.\u0275fac}),t}(),ul=function(){var t=function(){function t(){Object(h.a)(this,t),this._applications=new Map,fl.addToWindow(this)}return Object(l.a)(t,[{key:"registerApplication",value:function(t,e){this._applications.set(t,e)}},{key:"unregisterApplication",value:function(t){this._applications.delete(t)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(t){return this._applications.get(t)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return fl.findTestabilityInTree(this,t,e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=L({token:t,factory:t.\u0275fac}),t}();function ll(t){fl=t}var hl,fl=new(function(){function t(){Object(h.a)(this,t)}return Object(l.a)(t,[{key:"addToWindow",value:function(t){}},{key:"findTestabilityInTree",value:function(t,e,n){return null}}]),t}()),dl=!0,pl=!1;function bl(){return pl=!0,dl}function ml(){if(pl)throw new Error("Cannot enable prod mode after platform setup.");dl=!1}var vl=function(t,e,n){var r=new Qc(n);return Promise.resolve(r)},gl=new jn("AllowMultipleToken"),yl=function t(e,n){Object(h.a)(this,t),this.name=e,this.token=n};function wl(t){if(hl&&!hl.destroyed&&!hl.injector.get(gl,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");hl=t.get(Ol);var e=t.get(Vu,null);return e&&e.forEach(function(t){return t()}),hl}function _l(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r="Platform: ".concat(e),i=new jn(r);return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=xl();if(!o||o.injector.get(gl,!1))if(t)t(n.concat(e).concat({provide:i,useValue:!0}));else{var a=n.concat(e).concat({provide:i,useValue:!0},{provide:Uo,useValue:"platform"});wl(ea.create({providers:a,name:r}))}return kl(i)}}function kl(t){var e=xl();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}function xl(){return hl&&!hl.destroyed?hl:null}var Ol=function(){var t=function(){function t(e){Object(h.a)(this,t),this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return Object(l.a)(t,[{key:"bootstrapModuleFactory",value:function(t,e){var n,r,i=this,o=(r={ngZoneEventCoalescing:e&&e.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:e&&e.ngZoneRunCoalescing||!1},"noop"===(n=e?e.ngZone:void 0)?new sl:("zone.js"===n?void 0:n)||new el({enableLongStackTrace:bl(),shouldCoalesceEventChangeDetection:!!(null==r?void 0:r.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==r?void 0:r.ngZoneRunCoalescing)})),a=[{provide:el,useValue:o}];return o.run(function(){var e=ea.create({providers:a,parent:i.injector,name:t.moduleType.name}),n=t.create(e),r=n.injector.get(zr,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return o.runOutsideAngular(function(){var t=o.onError.subscribe({next:function(t){r.handleError(t)}});n.onDestroy(function(){Cl(i._modules,n),t.unsubscribe()})}),function(t,e,r){try{var o=((a=n.injector.get(Nu)).runInitializers(),a.donePromise.then(function(){return Ns(n.injector.get(Xu,Ls)||Ls),i._moduleDoBootstrap(n),n}));return La(o)?o.catch(function(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}):o}catch(s){throw e.runOutsideAngular(function(){return t.handleError(s)}),s}var a}(r,o)})}},{key:"bootstrapModule",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=Sl({},n);return vl(0,0,t).then(function(t){return e.bootstrapModuleFactory(t,r)})}},{key:"_moduleDoBootstrap",value:function(t){var e=t.injector.get(El);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module ".concat(O(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)}},{key:"onDestroy",value:function(t){this._destroyListeners.push(t)}},{key:"injector",get:function(){return this._injector}},{key:"destroy",value: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}},{key:"destroyed",get:function(){return this._destroyed}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Yn(ea))},t.\u0275prov=L({token:t,factory:t.\u0275fac}),t}();function Sl(t,e){return Array.isArray(e)?e.reduce(Sl,t):Object.assign(Object.assign({},t),e)}var El=function(){var t=function(){function t(e,n,r,i,o){var a=this;Object(h.a)(this,t),this._zone=e,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=i,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){a._zone.run(function(){a.tick()})}});var s=new g.a(function(t){a._stable=a._zone.isStable&&!a._zone.hasPendingMacrotasks&&!a._zone.hasPendingMicrotasks,a._zone.runOutsideAngular(function(){t.next(a._stable),t.complete()})}),c=new g.a(function(t){var e;a._zone.runOutsideAngular(function(){e=a._zone.onStable.subscribe(function(){el.assertNotInAngularZone(),tl(function(){a._stable||a._zone.hasPendingMacrotasks||a._zone.hasPendingMicrotasks||(a._stable=!0,t.next(!0))})})});var n=a._zone.onUnstable.subscribe(function(){el.assertInAngularZone(),a._stable&&(a._stable=!1,a._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});this.isStable=Object(y.a)(s,c.pipe(Object(w.a)()))}return Object(l.a)(t,[{key:"bootstrap",value: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 Ys?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var i=n.isBoundToModule?void 0:this._injector.get(Lc),o=n.create(ea.NULL,[],e||n.selector,i),a=o.location.nativeElement,s=o.injector.get(cl,null),c=s&&o.injector.get(ul);return s&&c&&c.registerApplication(a,s),o.onDestroy(function(){r.detachView(o.hostView),Cl(r.components,o),c&&c.unregisterApplication(a)}),this._loadComponent(o),o}},{key:"tick",value:function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var e=!0,n=!1,r=void 0;try{for(var i,o=this._views[Symbol.iterator]();!(e=(i=o.next()).done);e=!0)i.value.detectChanges()}catch(a){n=!0,r=a}finally{try{e||null==o.return||o.return()}finally{if(n)throw r}}}catch(s){this._zone.runOutsideAngular(function(){return t._exceptionHandler.handleError(s)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(t){var e=t;this._views.push(e),e.attachToAppRef(this)}},{key:"detachView",value:function(t){var e=t;Cl(this._views,e),e.detachFromAppRef()}},{key:"_loadComponent",value:function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Bu,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(t){return t.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Yn(el),Yn(ea),Yn(zr),Yn(Ks),Yn(Nu))},t.\u0275prov=L({token:t,factory:t.\u0275fac}),t}();function Cl(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var jl=function t(){Object(h.a)(this,t)},Tl=function t(){Object(h.a)(this,t)},Il={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Al=function(){var t=function(){function t(e,n){Object(h.a)(this,t),this._compiler=e,this._config=n||Il}return Object(l.a)(t,[{key:"load",value:function(t){return this.loadAndCompile(t)}},{key:"loadAndCompile",value:function(t){var e=this,r=t.split("#"),i=Object(o.a)(r,2),a=i[0],s=i[1];return void 0===s&&(s="default"),n("zn8P")(a).then(function(t){return t[s]}).then(function(t){return Rl(t,a,s)}).then(function(t){return e._compiler.compileModuleAsync(t)})}},{key:"loadFactory",value:function(t){var e=t.split("#"),r=Object(o.a)(e,2),i=r[0],a=r[1],s="NgFactory";return void 0===a&&(a="default",s=""),n("zn8P")(this._config.factoryPathPrefix+i+this._config.factoryPathSuffix).then(function(t){return t[a+s]}).then(function(t){return Rl(t,i,a)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Yn(Ju),Yn(Tl,8))},t.\u0275prov=L({token:t,factory:t.\u0275fac}),t}();function Rl(t,e,n){if(!t)throw new Error("Cannot find '".concat(n,"' in '").concat(e,"'"));return t}var Pl=function(t){return null},Ll=_l(null,"core",[{provide:Uu,useValue:"unknown"},{provide:Ol,deps:[ea]},{provide:ul,deps:[]},{provide:qu,deps:[]}]),Nl=[{provide:El,useClass:El,deps:[el,ea,zr,Ks,Nu]},{provide:Hc,deps:[el],useFactory:function(t){var e=[];return t.onStable.subscribe(function(){for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Nu,useClass:Nu,deps:[[new $n,Lu]]},{provide:Ju,useClass:Ju,deps:[]},Mu,{provide:vc,useFactory:function(){return jc},deps:[]},{provide:yc,useFactory:function(){return Tc},deps:[]},{provide:Xu,useFactory:function(t){return Ns(t=t||"undefined"!=typeof $localize&&$localize.locale||Ls),t},deps:[[new Jn(Xu),new $n,new tr]]},{provide:zu,useValue:"USD"}],Dl=function(){var t=function t(e){Object(h.a)(this,t)};return t.\u0275fac=function(e){return new(e||t)(Yn(El))},t.\u0275mod=gt({type:t}),t.\u0275inj=N({providers:Nl}),t}()},foSv:function(t,e,n){"use strict";function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",function(){return r})},gRHU:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("2fFW"),i=n("NJ4a"),o={closed:!0,next:function(t){},error:function(t){if(r.a.useDeprecatedSynchronousErrorHandling)throw t;Object(i.a)(t)},complete:function(){}}},itXk:function(t,e,n){"use strict";n.d(e,"a",function(){return g});var r=n("Ji7U"),i=n("md7G"),o=n("foSv"),a=n("1OyB"),s=n("vuIU"),c=n("z+Ro"),u=n("DH7j"),l=n("7o/Q"),h=function(t){Object(r.a)(n,t);var e=function(t){function e(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}return function(){var n,r=Object(o.a)(t);if(e()){var a=Object(o.a)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Object(i.a)(this,n)}}(n);function n(){return Object(a.a)(this,n),e.apply(this,arguments)}return Object(s.a)(n,[{key:"notifyNext",value:function(t,e,n,r,i){this.destination.next(e)}},{key:"notifyError",value:function(t,e){this.destination.error(t)}},{key:"notifyComplete",value:function(t){this.destination.complete()}}]),n}(l.a),f=function(t){Object(r.a)(n,t);var e=function(t){function e(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}return function(){var n,r=Object(o.a)(t);if(e()){var a=Object(o.a)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Object(i.a)(this,n)}}(n);function n(t,r,i){var o;return Object(a.a)(this,n),(o=e.call(this)).parent=t,o.outerValue=r,o.outerIndex=i,o.index=0,o}return Object(s.a)(n,[{key:"_next",value:function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}},{key:"_error",value:function(t){this.parent.notifyError(t,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),n}(l.a),d=n("SeVD"),p=n("HDdC");function b(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new f(t,n,r);if(!i.closed)return e instanceof p.a?e.subscribe(i):Object(d.a)(e)(i)}var m=n("yCtX"),v={};function g(){for(var t=arguments.length,e=new Array(t),n=0;n1&&void 0!==arguments[1])||arguments[1],r=t.findTestabilityInTree(e,n);if(null==r)throw new Error("Could not find testability for element.");return r},l.sb.getAllAngularTestabilities=function(){return t.getAllTestabilities()},l.sb.getAllAngularRootElements=function(){return t.getAllRootElements()},l.sb.frameworkStabilizers||(l.sb.frameworkStabilizers=[]),l.sb.frameworkStabilizers.push(function(t){var e=l.sb.getAllAngularTestabilities(),n=e.length,r=!1,i=function(e){r=r||e,0==--n&&t(r)};e.forEach(function(t){t.whenStable(i)})})}},{key:"findTestabilityInTree",value:function(t,e,n){if(null==e)return null;var r=t.getTestability(e);return null!=r?r:n?Object(u.y)().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}],[{key:"init",value:function(){Object(l.ab)(new t)}}]),t}(),g=new l.r("EventManagerPlugins"),y=function(){var t=function(){function t(e,n){var r=this;Object(i.a)(this,t),this._zone=n,this._eventNameToPlugin=new Map,e.forEach(function(t){return t.manager=r}),this._plugins=e.slice().reverse()}return Object(o.a)(t,[{key:"addEventListener",value:function(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}},{key:"addGlobalEventListener",value:function(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(t){var e=this._eventNameToPlugin.get(t);if(e)return e;for(var n=this._plugins,r=0;r-1&&(e.splice(n,1),o+=t+".")}),o+=i,0!=e.length||0===i.length)return null;var a={};return a.domEventName=r,a.fullKey=o,a}},{key:"getEventFullKey",value:function(t){var e="",n=function(t){var e=t.key;if(null==e){if(null==(e=t.keyIdentifier))return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&F.hasOwnProperty(e)&&(e=F[e]))}return M[e]||e}(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),D.forEach(function(r){r!=n&&(0,V[r])(t)&&(e+=r+".")}),e+=n}},{key:"eventCallback",value:function(t,e,r){return function(i){n.getEventFullKey(i)===t&&r.runGuarded(function(){return e(i)})}}},{key:"_normalizeKey",value:function(t){switch(t){case"esc":return"escape";default:return t}}}]),n}(w);return t.\u0275fac=function(e){return new(e||t)(l.cc(u.e))},t.\u0275prov=l.Ob({token:t,factory:t.\u0275fac}),t}(),B=function(){var t=function t(){Object(i.a)(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(l.Ob)({factory:function(){return Object(l.cc)(X)},token:t,providedIn:"root"}),t}();function q(t){return new X(t.get(u.e))}var X=function(){var t=function(t){Object(a.a)(n,t);var e=h(n);function n(t){var r;return Object(i.a)(this,n),(r=e.call(this))._doc=t,r}return Object(o.a)(n,[{key:"sanitize",value:function(t,e){if(null==e)return null;switch(t){case l.K.NONE:return e;case l.K.HTML:return Object(l.hb)(e,"HTML")?Object(l.Ab)(e):Object(l.fb)(this._doc,String(e)).toString();case l.K.STYLE:return Object(l.hb)(e,"Style")?Object(l.Ab)(e):e;case l.K.SCRIPT:if(Object(l.hb)(e,"Script"))return Object(l.Ab)(e);throw new Error("unsafe value used in a script context");case l.K.URL:return Object(l.rb)(e),Object(l.hb)(e,"URL")?Object(l.Ab)(e):Object(l.gb)(String(e));case l.K.RESOURCE_URL:if(Object(l.hb)(e,"ResourceURL"))return Object(l.Ab)(e);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(t," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(t){return Object(l.ib)(t)}},{key:"bypassSecurityTrustStyle",value:function(t){return Object(l.lb)(t)}},{key:"bypassSecurityTrustScript",value:function(t){return Object(l.kb)(t)}},{key:"bypassSecurityTrustUrl",value:function(t){return Object(l.mb)(t)}},{key:"bypassSecurityTrustResourceUrl",value:function(t){return Object(l.jb)(t)}}]),n}(B);return t.\u0275fac=function(e){return new(e||t)(l.cc(u.e))},t.\u0275prov=Object(l.Ob)({factory:function(){return q(Object(l.cc)(l.o))},token:t,providedIn:"root"}),t}(),z=[{provide:l.D,useValue:u.x},{provide:l.E,useValue:function(){d.makeCurrent(),v.init()},multi:!0},{provide:u.e,useFactory:function(){return Object(l.yb)(document),document},deps:[]}],H=Object(l.U)(l.Z,"browser",z),Y=[[],{provide:l.cb,useValue:"root"},{provide:l.m,useFactory:function(){return new l.m},deps:[]},{provide:g,useClass:N,multi:!0,deps:[u.e,l.B,l.D]},{provide:g,useClass:U,multi:!0,deps:[u.e]},[],{provide:A,useClass:A,deps:[y,k,l.c]},{provide:l.H,useExisting:A},{provide:_,useExisting:k},{provide:k,useClass:k,deps:[u.e]},{provide:l.O,useClass:l.O,deps:[l.B]},{provide:y,useClass:y,deps:[g,l.B]},[]],G=function(){var t=function(){function t(e){if(Object(i.a)(this,t),e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return Object(o.a)(t,null,[{key:"withServerTransition",value:function(e){return{ngModule:t,providers:[{provide:l.c,useValue:e.appId},{provide:b,useExisting:l.c},m]}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.cc(t,12))},t.\u0275mod=l.Qb({type:t}),t.\u0275inj=l.Pb({providers:Y,imports:[u.c,l.f]}),t}();"undefined"!=typeof window&&window},kJWO:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}()},kmnG:function(t,e,n){"use strict";n.d(e,"a",function(){return it}),n.d(e,"b",function(){return X}),n.d(e,"c",function(){return ot}),n.d(e,"d",function(){return H}),n.d(e,"e",function(){return at}),n.d(e,"f",function(){return K}),n.d(e,"g",function(){return W}),n.d(e,"h",function(){return $});var r=n("KQm4"),i=n("vuIU"),o=n("Ji7U"),a=n("md7G"),s=n("foSv"),c=n("1OyB"),u=n("GU7r"),l=n("ofXK"),h=n("fXoL"),f=n("FKr1"),d=n("8LU1"),p=n("XNiG"),b=n("VRyK"),m=n("xgIS"),v=n("JX91"),g=n("1G5W"),y=n("IzEk"),w=n("R0Ic"),_=n("R1ws"),k=n("cH1L"),x=n("nLfN"),O=["underline"],S=["connectionContainer"],E=["inputContainer"],C=["label"];function j(t,e){1&t&&(h.Wb(0),h.Yb(1,"div",14),h.Tb(2,"div",15),h.Tb(3,"div",16),h.Tb(4,"div",17),h.Xb(),h.Yb(5,"div",18),h.Tb(6,"div",15),h.Tb(7,"div",16),h.Tb(8,"div",17),h.Xb(),h.Vb())}function T(t,e){1&t&&(h.Yb(0,"div",19),h.oc(1,1),h.Xb())}function I(t,e){if(1&t&&(h.Wb(0),h.oc(1,2),h.Yb(2,"span"),h.Nc(3),h.Xb(),h.Vb()),2&t){var n=h.kc(2);h.Eb(3),h.Oc(n._control.placeholder)}}function A(t,e){1&t&&h.oc(0,3,["*ngSwitchCase","true"])}function R(t,e){1&t&&(h.Yb(0,"span",23),h.Nc(1," *"),h.Xb())}function P(t,e){if(1&t){var n=h.Zb();h.Yb(0,"label",20,21),h.gc("cdkObserveContent",function(){return h.Ec(n),h.kc().updateOutlineGap()}),h.Lc(2,I,4,1,"ng-container",12),h.Lc(3,A,1,0,"ng-content",12),h.Lc(4,R,2,0,"span",22),h.Xb()}if(2&t){var r=h.kc();h.Kb("mat-empty",r._control.empty&&!r._shouldAlwaysFloat())("mat-form-field-empty",r._control.empty&&!r._shouldAlwaysFloat())("mat-accent","accent"==r.color)("mat-warn","warn"==r.color),h.qc("cdkObserveContentDisabled","outline"!=r.appearance)("id",r._labelId)("ngSwitch",r._hasLabel()),h.Fb("for",r._control.id)("aria-owns",r._control.id),h.Eb(2),h.qc("ngSwitchCase",!1),h.Eb(1),h.qc("ngSwitchCase",!0),h.Eb(1),h.qc("ngIf",!r.hideRequiredMarker&&r._control.required&&!r._control.disabled)}}function L(t,e){1&t&&(h.Yb(0,"div",24),h.oc(1,4),h.Xb())}function N(t,e){if(1&t&&(h.Yb(0,"div",25,26),h.Tb(2,"span",27),h.Xb()),2&t){var n=h.kc();h.Eb(2),h.Kb("mat-accent","accent"==n.color)("mat-warn","warn"==n.color)}}function D(t,e){if(1&t&&(h.Yb(0,"div"),h.oc(1,5),h.Xb()),2&t){var n=h.kc();h.qc("@transitionMessages",n._subscriptAnimationState)}}function M(t,e){if(1&t&&(h.Yb(0,"div",31),h.Nc(1),h.Xb()),2&t){var n=h.kc(2);h.qc("id",n._hintLabelId),h.Eb(1),h.Oc(n.hintLabel)}}function F(t,e){if(1&t&&(h.Yb(0,"div",28),h.Lc(1,M,2,2,"div",29),h.oc(2,6),h.Tb(3,"div",30),h.oc(4,7),h.Xb()),2&t){var n=h.kc();h.qc("@transitionMessages",n._subscriptAnimationState),h.Eb(1),h.qc("ngIf",n.hintLabel)}}var V=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],U=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],B=0,q=new h.r("MatError"),X=function(){var t=function t(){Object(c.a)(this,t),this.id="mat-error-".concat(B++)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=h.Nb({type:t,selectors:[["mat-error"]],hostAttrs:["role","alert",1,"mat-error"],hostVars:1,hostBindings:function(t,e){2&t&&h.Fb("id",e.id)},inputs:{id:"id"},features:[h.Db([{provide:q,useExisting:t}])]}),t}(),z={transitionMessages:Object(w.o)("transitionMessages",[Object(w.l)("enter",Object(w.m)({opacity:1,transform:"translateY(0%)"})),Object(w.n)("void => enter",[Object(w.m)({opacity:0,transform:"translateY(-5px)"}),Object(w.e)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},H=function(){var t=function t(){Object(c.a)(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=h.Nb({type:t}),t}(),Y=0,G=new h.r("MatHint"),K=function(){var t=function t(){Object(c.a)(this,t),this.align="start",this.id="mat-hint-".concat(Y++)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=h.Nb({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,e){2&t&&(h.Fb("id",e.id)("align",null),h.Kb("mat-form-field-hint-end","end"===e.align))},inputs:{align:"align",id:"id"},features:[h.Db([{provide:G,useExisting:t}])]}),t}(),W=function(){var t=function t(){Object(c.a)(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=h.Nb({type:t,selectors:[["mat-label"]]}),t}(),Q=function(){var t=function t(){Object(c.a)(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=h.Nb({type:t,selectors:[["mat-placeholder"]]}),t}(),Z=new h.r("MatPrefix"),J=new h.r("MatSuffix"),$=function(){var t=function t(){Object(c.a)(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=h.Nb({type:t,selectors:[["","matSuffix",""]],features:[h.Db([{provide:J,useExisting:t}])]}),t}(),tt=0,et=function t(e){Object(c.a)(this,t),this._elementRef=e},nt=Object(f.p)(et,"primary"),rt=new h.r("MAT_FORM_FIELD_DEFAULT_OPTIONS"),it=new h.r("MatFormField"),ot=function(){var t=function(t){Object(o.a)(n,t);var e=function(t){function e(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}return function(){var n,r=Object(s.a)(t);if(e()){var i=Object(s.a)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(a.a)(this,n)}}(n);function n(t,r,i,o,a,s,u,l){var h;return Object(c.a)(this,n),(h=e.call(this,t))._elementRef=t,h._changeDetectorRef=r,h._dir=o,h._defaults=a,h._platform=s,h._ngZone=u,h._outlineGapCalculationNeededImmediately=!1,h._outlineGapCalculationNeededOnStable=!1,h._destroyed=new p.a,h._showAlwaysAnimate=!1,h._subscriptAnimationState="",h._hintLabel="",h._hintLabelId="mat-hint-".concat(tt++),h._labelId="mat-form-field-label-".concat(tt++),h.floatLabel=h._getDefaultFloatLabelState(),h._animationsEnabled="NoopAnimations"!==l,h.appearance=a&&a.appearance?a.appearance:"legacy",h._hideRequiredMarker=!(!a||null==a.hideRequiredMarker)&&a.hideRequiredMarker,h}return Object(i.a)(n,[{key:"appearance",get:function(){return this._appearance},set:function(t){var e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)}},{key:"hideRequiredMarker",get:function(){return this._hideRequiredMarker},set:function(t){this._hideRequiredMarker=Object(d.b)(t)}},{key:"_shouldAlwaysFloat",value:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}},{key:"_canLabelFloat",value:function(){return"never"!==this.floatLabel}},{key:"hintLabel",get:function(){return this._hintLabel},set:function(t){this._hintLabel=t,this._processHints()}},{key:"floatLabel",get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}},{key:"_control",get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(t){this._explicitFormFieldControl=t}},{key:"getLabelId",value:function(){return this._hasFloatingLabel()?this._labelId:null}},{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var t=this;this._validateControlChild();var e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(e.controlType)),e.stateChanges.pipe(Object(v.a)(null)).subscribe(function(){t._validatePlaceholders(),t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Object(g.a)(this._destroyed)).subscribe(function(){return t._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){t._ngZone.onStable.pipe(Object(g.a)(t._destroyed)).subscribe(function(){t._outlineGapCalculationNeededOnStable&&t.updateOutlineGap()})}),Object(b.a)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){t._outlineGapCalculationNeededOnStable=!0,t._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Object(v.a)(null)).subscribe(function(){t._processHints(),t._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Object(v.a)(null)).subscribe(function(){t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Object(g.a)(this._destroyed)).subscribe(function(){"function"==typeof requestAnimationFrame?t._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return t.updateOutlineGap()})}):t.updateOutlineGap()})}},{key:"ngAfterContentChecked",value:function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}},{key:"ngAfterViewInit",value:function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_shouldForward",value:function(t){var e=this._control?this._control.ngControl:null;return e&&e[t]}},{key:"_hasPlaceholder",value:function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}},{key:"_hasLabel",value:function(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}},{key:"_shouldLabelFloat",value:function(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}},{key:"_hideControlPlaceholder",value:function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}},{key:"_hasFloatingLabel",value:function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}},{key:"_getDisplayedMessages",value:function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}},{key:"_animateAndLockLabel",value:function(){var t=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Object(m.a)(this._label.nativeElement,"transitionend").pipe(Object(y.a)(1)).subscribe(function(){t._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var t=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&t.push.apply(t,Object(r.a)(this._control.userAriaDescribedBy.split(" "))),"hint"===this._getDisplayedMessages()){var e=this._hintChildren?this._hintChildren.find(function(t){return"start"===t.align}):null,n=this._hintChildren?this._hintChildren.find(function(t){return"end"===t.align}):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),n&&t.push(n.id)}else this._errorChildren&&t.push.apply(t,Object(r.a)(this._errorChildren.map(function(t){return t.id})));this._control.setDescribedByIds(t)}}},{key:"_validateControlChild",value:function(){}},{key:"updateOutlineGap",value:function(){var t=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&t&&t.children.length&&t.textContent.trim()&&this._platform.isBrowser)if(this._isAttachedToDOM()){var e=0,n=0,r=this._connectionContainerRef.nativeElement,i=r.querySelectorAll(".mat-form-field-outline-start"),o=r.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var a=r.getBoundingClientRect();if(0===a.width&&0===a.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);for(var s=this._getStartEnd(a),c=t.children,u=this._getStartEnd(c[0].getBoundingClientRect()),l=0,h=0;h0?.75*l+10:0}for(var f=0;f=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),C(n),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;C(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:T(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),b}},t}(t.exports);try{regeneratorRuntime=r}catch(i){Function("r","regeneratorRuntime = r")(r)}},mB2O:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("mrSG"),i=n("lJxs"),o=n("fXoL"),a=n("I/3d"),s=function(){function t(t){this.fs=t}return t.prototype.getProducts=function(){return this.fs.collection("products").snapshotChanges().pipe(Object(i.a)(function(t){return t.map(function(t){var e=t.payload.doc.data(),n=t.payload.doc.id,i=e.avRating/5*100,o=e.name.toLowerCase().replace("/s/g","-").replace(" ","-");return Object(r.a)({id:n,avRating:i,slug:o},e)})}))},t.prototype.getSingleProduct=function(t){return this.fs.doc("products/"+t).snapshotChanges().pipe(Object(i.a)(function(t){var e=t.payload.data();return e.avRating=e.avRating/5*100,e.id=t.payload.id,e}))},t.prototype.getProductReviews=function(t){return this.fs.collection("reviews",function(e){return e.where("productId","==",t)}).snapshotChanges().pipe(Object(i.a)(function(t){return t.map(function(t){return t.payload.doc.data()})}))},t.prototype.postReview=function(t){this.fs.collection("reviews").add({username:t.username,summary:t.summary,review:t.review,productId:t.productId})},t.prototype.postRating=function(t){this.fs.collection("ratings").add({productId:t.productId,ratingValue:t.ratingValue})},t.prototype.getProductRating=function(t){return this.fs.collection("ratings",function(e){return e.where("productId","==",t)}).snapshotChanges().pipe(Object(i.a)(function(t){return t.map(function(t){return t.payload.doc.data()})}))},t.prototype.setProductRating=function(t,e){this.fs.doc("products/"+t).update({avRating:e})},t.\u0275fac=function(e){return new(e||t)(o.cc(a.a))},t.\u0275prov=o.Ob({token:t,factory:t.\u0275fac,providedIn:"root"}),t}()},md7G:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}n.d(e,"a",function(){return o});var i=n("JX7q");function o(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?Object(i.a)(t):e}},mrSG:function(t,e,n){"use strict";n.d(e,"d",function(){return i}),n.d(e,"a",function(){return o}),n.d(e,"c",function(){return a}),n.d(e,"f",function(){return s}),n.d(e,"b",function(){return c}),n.d(e,"e",function(){return u}),n.d(e,"i",function(){return l}),n.d(e,"g",function(){return h}),n.d(e,"h",function(){return f});var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function s(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function c(t,e,n,r){return new(n||(n=Promise))(function(i,o){function a(t){try{c(r.next(t))}catch(e){o(e)}}function s(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(a,s)}c((r=r.apply(t,e||[])).next())})}function u(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function h(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function f(t,e){for(var n=0,r=e.length,i=t.length;n0&&void 0!==arguments[0]&&arguments[0],e=this._platformLocation.pathname+O(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?"".concat(e).concat(n):e}},{key:"pushState",value:function(t,e,n,r){var i=this.prepareExternalUrl(n+O(r));this._platformLocation.pushState(t,e,i)}},{key:"replaceState",value:function(t,e,n,r){var i=this.prepareExternalUrl(n+O(r));this._platformLocation.replaceState(t,e,i)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(S);return t.\u0275fac=function(e){return new(e||t)(u.cc(m),u.cc(C,8))},t.\u0275prov=u.Ob({token:t,factory:t.\u0275fac}),t}(),T=function(){var t=function(t){Object(o.a)(n,t);var e=l(n);function n(t,r){var i;return Object(c.a)(this,n),(i=e.call(this))._platformLocation=t,i._baseHref="",null!=r&&(i._baseHref=r),i}return Object(i.a)(n,[{key:"onPopState",value:function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t}},{key:"prepareExternalUrl",value:function(t){var e=k(this._baseHref,t);return e.length>0?"#"+e:e}},{key:"pushState",value:function(t,e,n,r){var i=this.prepareExternalUrl(n+O(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(t,e,i)}},{key:"replaceState",value:function(t,e,n,r){var i=this.prepareExternalUrl(n+O(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,i)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(S);return t.\u0275fac=function(e){return new(e||t)(u.cc(m),u.cc(C,8))},t.\u0275prov=u.Ob({token:t,factory:t.\u0275fac}),t}(),I=function(){var t=function(){function t(e,n){var r=this;Object(c.a)(this,t),this._subject=new u.n,this._urlChangeListeners=[],this._platformStrategy=e;var i=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=x(R(i)),this._platformStrategy.onPopState(function(t){r._subject.emit({url:r.path(!0),pop:!0,state:t.state,type:t.type})})}return Object(i.a)(t,[{key:"path",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(t))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(t+O(e))}},{key:"normalize",value:function(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,R(e)))}},{key:"prepareExternalUrl",value:function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}},{key:"go",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+O(e)),n)}},{key:"replaceState",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+O(e)),n)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"onUrlChange",value:function(t){var e=this;this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(t){e._notifyUrlChangeListeners(t.url,t.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(n){return n(t,e)})}},{key:"subscribe",value:function(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.cc(S),u.cc(m))},t.normalizeQueryParams=O,t.joinWithSlash=k,t.stripTrailingSlash=x,t.\u0275prov=Object(u.Ob)({factory:A,token:t,providedIn:"root"}),t}();function A(){return new I(Object(u.cc)(S),Object(u.cc)(m))}function R(t){return t.replace(/\/index.html$/,"")}var P={ADP:[void 0,void 0,0],AFN:[void 0,void 0,0],ALL:[void 0,void 0,0],AMD:[void 0,void 0,2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,"\u0440.",2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:[void 0,"\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RUR:[void 0,"\u0440."],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["CFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]},L=function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t}({}),N=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}({}),D=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 M(t,e){var n=Object(u.nb)(t),r=n[u.db.NumberSymbols][e];if(void 0===r){if(e===D.CurrencyDecimal)return n[u.db.NumberSymbols][D.Decimal];if(e===D.CurrencyGroup)return n[u.db.NumberSymbols][D.Group]}return r}function F(t){return Object(u.nb)(t)[u.db.Currencies]}var V=u.qb;function U(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"en",r=F(n)[t]||P[t]||[],i=r[1];return"narrow"===e&&"string"==typeof i?i:r[0]||t}var B=/^(\d+)?\.((\d+)(-(\d+))?)?$/,q=".",X="0",z="#";function H(t,e,n,r,i){var o=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-",n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=t.split(";"),i=r[0],o=r[1],a=-1!==i.indexOf(q)?i.split(q):[i.substring(0,i.lastIndexOf(X)+1),i.substring(i.lastIndexOf(X)+1)],s=a[0],c=a[1]||"";n.posPre=s.substr(0,s.indexOf(z));for(var u=0;u6&&void 0!==arguments[6]&&arguments[6],s="",c=!1;if(isFinite(t)){var u=G(t);a&&(u=Y(u));var l=e.minInt,h=e.minFrac,f=e.maxFrac;if(o){var d=o.match(B);if(null===d)throw new Error("".concat(o," is not a valid digit info"));var p=d[1],b=d[3],m=d[5];null!=p&&(l=W(p)),null!=b&&(h=W(b)),null!=m?f=W(m):null!=b&&h>f&&(f=h)}K(u,h,f);var v=u.digits,g=u.integerLen,y=u.exponent,w=[];for(c=v.every(function(t){return!t});g0?w=v.splice(g,v.length):(w=v,v=[0]);var _=[];for(v.length>=e.lgSize&&_.unshift(v.splice(-e.lgSize,v.length).join(""));v.length>e.gSize;)_.unshift(v.splice(-e.gSize,v.length).join(""));v.length&&_.unshift(v.join("")),s=_.join(M(n,r)),w.length&&(s+=M(n,i)+w.join("")),y&&(s+=M(n,D.Exponential)+"+"+y)}else s=M(n,D.Infinity);return t<0&&!c?e.negPre+s+e.negSuf:e.posPre+s+e.posSuf}(t,o,e,D.CurrencyGroup,D.CurrencyDecimal,i).replace("\xa4",n).replace("\xa4","").trim()}function Y(t){if(0===t.digits[0])return t;var e=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(0===e?t.digits.push(0,0):1===e&&t.digits.push(0),t.integerLen+=2),t}function G(t){var e,n,r,i,o,a=Math.abs(t)+"",s=0;for((n=a.indexOf(q))>-1&&(a=a.replace(q,"")),(r=a.search(/e/i))>0?(n<0&&(n=r),n+=+a.slice(r+1),a=a.substring(0,r)):n<0&&(n=a.length),r=0;a.charAt(r)===X;r++);if(r===(o=a.length))e=[0],n=1;else{for(o--;a.charAt(o)===X;)o--;for(n-=r,e=[],i=0;r<=o;r++,i++)e[i]=Number(a.charAt(r))}return n>22&&(e=e.splice(0,21),s=n-1,n=1),{digits:e,exponent:s,integerLen:n}}function K(t,e,n){if(e>n)throw new Error("The minimum number of digits after fraction (".concat(e,") is higher than the maximum (").concat(n,")."));var r=t.digits,i=r.length-t.integerLen,o=Math.min(Math.max(e,i),n),a=o+t.integerLen,s=r[a];if(a>0){r.splice(Math.max(t.integerLen,a));for(var c=a;c=5)if(a-1<0){for(var l=0;l>a;l--)r.unshift(0),t.integerLen++;r.unshift(1),t.integerLen++}else r[a-1]++;for(;i=f?r.pop():h=!1),e>=10?1:0},0);d&&(r.unshift(d),t.integerLen++)}function W(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}var Q=function t(){Object(c.a)(this,t)},Z=function(){var t=function(t){Object(o.a)(n,t);var e=l(n);function n(t){var r;return Object(c.a)(this,n),(r=e.call(this)).locale=t,r}return Object(i.a)(n,[{key:"getPluralCategory",value:function(t,e){switch(V(e||this.locale)(t)){case N.Zero:return"zero";case N.One:return"one";case N.Two:return"two";case N.Few:return"few";case N.Many:return"many";default:return"other"}}}]),n}(Q);return t.\u0275fac=function(e){return new(e||t)(u.cc(u.w))},t.\u0275prov=u.Ob({token:t,factory:t.\u0275fac}),t}();function J(t,e){e=encodeURIComponent(e);var n=!0,i=!1,o=void 0;try{for(var a,s=t.split(";")[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var c=a.value,u=c.indexOf("="),l=-1==u?[c,""]:[c.slice(0,u),c.slice(u+1)],h=Object(r.a)(l,2),f=h[1];if(h[0].trim()===e)return decodeURIComponent(f)}}catch(d){i=!0,o=d}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return null}var $=function(){var t=function(){function t(e,n,r,i){Object(c.a)(this,t),this._iterableDiffers=e,this._keyValueDiffers=n,this._ngEl=r,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return Object(i.a)(t,[{key:"klass",set:function(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(Object(u.tb)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}},{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){var e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}},{key:"_applyKeyValueChanges",value:function(t){var e=this;t.forEachAddedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachRemovedItem(function(t){t.previousValue&&e._toggleClass(t.key,!1)})}},{key:"_applyIterableChanges",value:function(t){var e=this;t.forEachAddedItem(function(t){if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat(Object(u.zb)(t.item)));e._toggleClass(t.item,!0)}),t.forEachRemovedItem(function(t){return e._toggleClass(t.item,!1)})}},{key:"_applyClasses",value:function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return e._toggleClass(t,!0)}):Object.keys(t).forEach(function(n){return e._toggleClass(n,!!t[n])}))}},{key:"_removeClasses",value:function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return e._toggleClass(t,!1)}):Object.keys(t).forEach(function(t){return e._toggleClass(t,!1)}))}},{key:"_toggleClass",value:function(t,e){var n=this;(t=t.trim())&&t.split(/\s+/g).forEach(function(t){e?n._renderer.addClass(n._ngEl.nativeElement,t):n._renderer.removeClass(n._ngEl.nativeElement,t)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.Sb(u.u),u.Sb(u.v),u.Sb(u.l),u.Sb(u.G))},t.\u0275dir=u.Nb({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t}(),tt=function(){function t(e,n,r,i){Object(c.a)(this,t),this.$implicit=e,this.ngForOf=n,this.index=r,this.count=i}return Object(i.a)(t,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),t}(),et=function(){var t=function(){function t(e,n,r){Object(c.a)(this,t),this._viewContainer=e,this._template=n,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return Object(i.a)(t,[{key:"ngForOf",set:function(t){this._ngForOf=t,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(t){this._trackByFn=t}},{key:"ngForTemplate",set:function(t){t&&(this._template=t)}},{key:"ngDoCheck",value: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 '".concat(t,"' of type '").concat((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)}}},{key:"_applyChanges",value:function(t){var e=this,n=[];t.forEachOperation(function(t,r,i){if(null==t.previousIndex){var o=e._viewContainer.createEmbeddedView(e._template,new tt(null,e._ngForOf,-1,-1),null===i?void 0:i),a=new nt(t,o);n.push(a)}else if(null==i)e._viewContainer.remove(null===r?void 0:r);else if(null!==r){var s=e._viewContainer.get(r);e._viewContainer.move(s,i);var c=new nt(t,s);n.push(c)}});for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:"USD";Object(c.a)(this,t),this._locale=e,this._defaultCurrencyCode=n}return Object(i.a)(t,[{key:"transform",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"symbol",i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;if(!gt(e))return null;o=o||this._locale,"boolean"==typeof r&&(r=r?"symbol":"code");var a=n||this._defaultCurrencyCode;"code"!==r&&(a="symbol"===r||"symbol-narrow"===r?U(a,"symbol"===r?"wide":"narrow",o):r);try{var s=yt(e);return H(s,o,a,n,i)}catch(c){throw ft(t,c.message)}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.Sb(u.w),u.Sb(u.k))},t.\u0275pipe=u.Rb({name:"currency",type:t,pure:!0}),t}();function gt(t){return!(null==t||""===t||t!=t)}function yt(t){if("string"==typeof t&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if("number"!=typeof t)throw new Error("".concat(t," is not a number"));return t}var wt=function(){var t=function t(){Object(c.a)(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=u.Qb({type:t}),t.\u0275inj=u.Pb({providers:[{provide:Q,useClass:Z}]}),t}(),_t="browser";function kt(t){return t===_t}function xt(t){return"server"===t}var Ot=function(){var t=function t(){Object(c.a)(this,t)};return t.\u0275prov=Object(u.Ob)({token:t,providedIn:"root",factory:function(){return new St(Object(u.cc)(b),window)}}),t}(),St=function(){function t(e,n){Object(c.a)(this,t),this.document=e,this.window=n,this.offset=function(){return[0,0]}}return Object(i.a)(t,[{key:"setOffset",value:function(t){this.offset=Array.isArray(t)?function(){return t}:t}},{key:"getScrollPosition",value:function(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}},{key:"scrollToPosition",value:function(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}},{key:"scrollToAnchor",value:function(t){if(this.supportsScrolling()){var e=function(t,e){var n=t.getElementById(e)||t.getElementsByName(e)[0];if(n)return n;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow))for(var r=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),i=r.currentNode;i;){var o=i.shadowRoot;if(o){var a=o.getElementById(e)||o.querySelector('[name="'.concat(e,'"]'));if(a)return a}i=r.nextNode()}return null}(this.document,t);e&&(this.scrollToElement(e),this.attemptFocus(e))}}},{key:"setHistoryScrollRestoration",value:function(t){if(this.supportScrollRestoration()){var e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}},{key:"scrollToElement",value:function(t){var e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(n-i[0],r-i[1])}},{key:"attemptFocus",value:function(t){return t.focus(),this.document.activeElement===t}},{key:"supportScrollRestoration",value:function(){try{if(!this.supportsScrolling())return!1;var t=Et(this.window.history)||Et(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(e){return!1}}},{key:"supportsScrolling",value:function(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}]),t}();function Et(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}},pLZG:function(t,e,n){"use strict";n.d(e,"a",function(){return u});var r=n("Ji7U"),i=n("md7G"),o=n("foSv"),a=n("1OyB"),s=n("vuIU"),c=n("7o/Q");function u(t,e){return function(n){return n.lift(new l(t,e))}}var l=function(){function t(e,n){Object(a.a)(this,t),this.predicate=e,this.thisArg=n}return Object(s.a)(t,[{key:"call",value:function(t,e){return e.subscribe(new h(t,this.predicate,this.thisArg))}}]),t}(),h=function(t){Object(r.a)(n,t);var e=function(t){function e(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}return function(){var n,r=Object(o.a)(t);if(e()){var a=Object(o.a)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Object(i.a)(this,n)}}(n);function n(t,r,i){var o;return Object(a.a)(this,n),(o=e.call(this,t)).predicate=r,o.thisArg=i,o.count=0,o}return Object(s.a)(n,[{key:"_next",value:function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}]),n}(c.a)},pxpQ:function(t,e,n){"use strict";n.d(e,"b",function(){return l}),n.d(e,"a",function(){return f});var r=n("Ji7U"),i=n("md7G"),o=n("foSv"),a=n("1OyB"),s=n("vuIU"),c=n("7o/Q"),u=n("WMd4");function l(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(n){return n.lift(new h(t,e))}}var h=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Object(a.a)(this,t),this.scheduler=e,this.delay=n}return Object(s.a)(t,[{key:"call",value:function(t,e){return e.subscribe(new f(t,this.scheduler,this.delay))}}]),t}(),f=function(t){Object(r.a)(n,t);var e=function(t){function e(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}return function(){var n,r=Object(o.a)(t);if(e()){var a=Object(o.a)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Object(i.a)(this,n)}}(n);function n(t,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Object(a.a)(this,n),(i=e.call(this,t)).scheduler=r,i.delay=o,i}return Object(s.a)(n,[{key:"scheduleMessage",value:function(t){this.destination.add(this.scheduler.schedule(n.dispatch,this.delay,new d(t,this.destination)))}},{key:"_next",value:function(t){this.scheduleMessage(u.a.createNext(t))}},{key:"_error",value:function(t){this.scheduleMessage(u.a.createError(t)),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleMessage(u.a.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(t){t.notification.observe(t.destination),this.unsubscribe()}}]),n}(c.a),d=function t(e,n){Object(a.a)(this,t),this.notification=e,this.destination=n}},"q/0M":function(t,e,n){"use strict";function r(){for(var t=0,e=0,n=arguments.length;e=(null!=r?r:e.logLevel)&&t({level:a[n].toLowerCase(),message:s,args:i,type:e.name})}},r=0,i=o;r-1}},{key:"_isBadInput",value:function(){var t=this._elementRef.nativeElement.validity;return t&&t.badInput}},{key:"empty",get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"shouldLabelFloat",get:function(){if(this._isNativeSelect){var t=this._elementRef.nativeElement,e=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&e&&e.label)}return this.focused||!this.empty}},{key:"setDescribedByIds",value:function(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}},{key:"onContainerClick",value:function(){this.focused||this.focus()}}]),n}(x);return t.\u0275fac=function(e){return new(e||t)(u.Sb(u.l),u.Sb(c.a),u.Sb(g.n,10),u.Sb(g.q,8),u.Sb(g.h,8),u.Sb(m.a),u.Sb(y,10),u.Sb(p),u.Sb(u.B),u.Sb(v.a,8))},t.\u0275dir=u.Nb({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(t,e){1&t&&u.gc("focus",function(){return e._focusChanged(!0)})("blur",function(){return e._focusChanged(!1)})("input",function(){return e._onInput()}),2&t&&(u.bc("disabled",e.disabled)("required",e.required),u.Fb("id",e.id)("data-placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-invalid",e.errorState&&!e.empty)("aria-required",e.required),u.Kb("mat-input-server",e._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[u.Db([{provide:v.d,useExisting:t}]),u.Bb,u.Cb]}),t}(),S=function(){var t=function t(){Object(r.a)(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=u.Qb({type:t}),t.\u0275inj=u.Pb({providers:[m.a],imports:[[b,v.e,m.e],b,v.e]}),t}()},qOnz:function(t,e,n){"use strict";n.d(e,"a",function(){return s}),n.d(e,"b",function(){return y}),n.d(e,"c",function(){return k}),n.d(e,"d",function(){return c}),n.d(e,"e",function(){return x}),n.d(e,"f",function(){return o}),n.d(e,"g",function(){return a}),n.d(e,"h",function(){return E}),n.d(e,"i",function(){return u}),n.d(e,"j",function(){return f}),n.d(e,"k",function(){return d}),n.d(e,"l",function(){return b}),n.d(e,"m",function(){return m}),n.d(e,"n",function(){return l}),n.d(e,"o",function(){return h}),n.d(e,"p",function(){return p}),n.d(e,"q",function(){return v});var r=n("mrSG"),i={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray:function(t,e){if(!Array.isArray(t))throw Error("encodeByteArray takes an array as a parameter");this.init_();for(var n=e?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[],i=0;i>6,h=63&u;c||(h=64,a||(l=64)),r.push(n[o>>2],n[(3&o)<<4|s>>4],n[l],n[h])}return r.join("")},encodeString:function(t,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(t):this.encodeByteArray(function(t){for(var e=[],n=0,r=0;r>6|192,e[n++]=63&i|128):55296==(64512&i)&&r+1>18|240,e[n++]=i>>12&63|128,e[n++]=i>>6&63|128,e[n++]=63&i|128):(e[n++]=i>>12|224,e[n++]=i>>6&63|128,e[n++]=63&i|128)}return e}(t),e)},decodeString:function(t,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(t):function(t){for(var e=[],n=0,r=0;n191&&i<224){var o=t[n++];e[r++]=String.fromCharCode((31&i)<<6|63&o)}else if(i>239&&i<365){var a=((7&i)<<18|(63&(o=t[n++]))<<12|(63&(s=t[n++]))<<6|63&t[n++])-65536;e[r++]=String.fromCharCode(55296+(a>>10)),e[r++]=String.fromCharCode(56320+(1023&a))}else{o=t[n++];var s=t[n++];e[r++]=String.fromCharCode((15&i)<<12|(63&o)<<6|63&s)}}return e.join("")}(this.decodeStringToByteArray(t,e))},decodeStringToByteArray:function(t,e){this.init_();for(var n=e?this.charToByteMapWebSafe_:this.charToByteMap_,r=[],i=0;i>4),64!==s&&(r.push(a<<4&240|s>>2),64!==c&&r.push(s<<6&192|c))}return r},init_:function(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(var t=0;t=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(t)]=t,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(t)]=t)}}};function o(t){return a(void 0,t)}function a(t,e){if(!(e instanceof Object))return e;switch(e.constructor){case Date:return new Date(e.getTime());case Object:void 0===t&&(t={});break;case Array:t=[];break;default:return e}for(var n in e)e.hasOwnProperty(n)&&"__proto__"!==n&&(t[n]=a(t[n],e[n]));return t}var s=function(){function t(){var t=this;this.reject=function(){},this.resolve=function(){},this.promise=new Promise(function(e,n){t.resolve=e,t.reject=n})}return t.prototype.wrapCallback=function(t){var e=this;return function(n,r){n?e.reject(n):e.resolve(r),"function"==typeof t&&(e.promise.catch(function(){}),1===t.length?t(n):t(n,r))}},t}();function c(t,e){if(t.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');var n=e||"demo-project",o=t.iat||0,a=t.sub||t.user_id;if(!a)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");var s=Object(r.a)({iss:"https://securetoken.google.com/"+n,aud:n,iat:o,exp:o+3600,auth_time:o,sub:a,user_id:a,firebase:{sign_in_provider:"custom",identities:{}}},t);return[i.encodeString(JSON.stringify({alg:"none",type:"JWT"}),!1),i.encodeString(JSON.stringify(s),!1),""].join(".")}function u(){return"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function l(){return"undefined"!=typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(u())}function h(){try{return"[object process]"===Object.prototype.toString.call(global.process)}catch(t){return!1}}function f(){return"object"==typeof self&&self.self===self}function d(){var t="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof t&&void 0!==t.id}function p(){return"object"==typeof navigator&&"ReactNative"===navigator.product}function b(){return u().indexOf("Electron/")>=0}function m(){var t=u();return t.indexOf("MSIE ")>=0||t.indexOf("Trident/")>=0}function v(){return u().indexOf("MSAppHost/")>=0}var g=function(t){function e(n,r,i){var o=t.call(this,r)||this;return o.code=n,o.customData=i,o.name="FirebaseError",Object.setPrototypeOf(o,e.prototype),Error.captureStackTrace&&Error.captureStackTrace(o,y.prototype.create),o}return Object(r.d)(e,t),e}(Error),y=function(){function t(t,e,n){this.service=t,this.serviceName=e,this.errors=n}return t.prototype.create=function(t){for(var e=[],n=1;n"})}var _=/\{\$([^}]+)}/g;function k(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function x(t,e){var n=new O(t,e);return n.subscribe.bind(n)}var O=function(){function t(t,e){var n=this;this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=e,this.task.then(function(){t(n)}).catch(function(t){n.error(t)})}return t.prototype.next=function(t){this.forEachObserver(function(e){e.next(t)})},t.prototype.error=function(t){this.forEachObserver(function(e){e.error(t)}),this.close(t)},t.prototype.complete=function(){this.forEachObserver(function(t){t.complete()}),this.close()},t.prototype.subscribe=function(t,e,n){var r,i=this;if(void 0===t&&void 0===e&&void 0===n)throw new Error("Missing Observer.");void 0===(r=function(t,e){if("object"!=typeof t||null===t)return!1;for(var n=0,r=["next","error","complete"];n1&&void 0!==arguments[1]?arguments[1]:0;return e>0?Object(o.a)(Object(c.a)(n.prototype),"schedule",this).call(this,t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}},{key:"execute",value:function(t,e){return e>0||this.closed?Object(o.a)(Object(c.a)(n.prototype),"execute",this).call(this,t,e):this._execute(t,e)}},{key:"requestAsyncId",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==r&&r>0||null===r&&this.delay>0?Object(o.a)(Object(c.a)(n.prototype),"requestAsyncId",this).call(this,t,e,r):t.flush(this)}}]),n}(n("3N8a").a),l=new(function(t){Object(a.a)(n,t);var e=function(t){function e(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}return function(){var n,r=Object(c.a)(t);if(e()){var i=Object(c.a)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(s.a)(this,n)}}(n);function n(){return Object(r.a)(this,n),e.apply(this,arguments)}return n}(n("IjjT").a))(u),h=l},quSY:function(t,e,n){"use strict";n.d(e,"a",function(){return u});var r=n("1OyB"),i=n("vuIU"),o=n("DH7j"),a=n("XoHu"),s=n("n6bG"),c=function(){function t(t){return Error.call(this),this.message=t?"".concat(t.length," errors occurred during unsubscription:\n").concat(t.map(function(t,e){return"".concat(e+1,") ").concat(t.toString())}).join("\n ")):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}(),u=function(){var t,e=function(){function t(e){Object(r.a)(this,t),this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}return Object(i.a)(t,[{key:"unsubscribe",value:function(){var e;if(!this.closed){var n=this._parentOrParents,r=this._ctorUnsubscribe,i=this._unsubscribe,u=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(var h=0;he.height||t.scrollWidth>e.width}}]),t}(),S=function(){function t(e,n,r,i){var o=this;Object(c.a)(this,t),this._scrollDispatcher=e,this._ngZone=n,this._viewportRuler=r,this._config=i,this._scrollSubscription=null,this._detach=function(){o.disable(),o._overlayRef.hasAttached()&&o._ngZone.run(function(){return o._overlayRef.detach()})}}return Object(u.a)(t,[{key:"attach",value:function(t){this._overlayRef=t}},{key:"enable",value:function(){var t=this;if(!this._scrollSubscription){var e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(function(){var e=t._viewportRuler.getViewportScrollPosition().top;Math.abs(e-t._initialScrollPosition)>t._config.threshold?t._detach():t._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),t}(),E=function(){function t(){Object(c.a)(this,t)}return Object(u.a)(t,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),t}();function C(t,e){return e.some(function(e){return t.bottome.bottom||t.righte.right})}function j(t,e){return e.some(function(e){return t.tope.bottom||t.lefte.right})}var T=function(){function t(e,n,r,i){Object(c.a)(this,t),this._scrollDispatcher=e,this._viewportRuler=n,this._ngZone=r,this._config=i,this._scrollSubscription=null}return Object(u.a)(t,[{key:"attach",value:function(t){this._overlayRef=t}},{key:"enable",value:function(){var t=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(t._overlayRef.updatePosition(),t._config&&t._config.autoClose){var e=t._overlayRef.overlayElement.getBoundingClientRect(),n=t._viewportRuler.getViewportSize(),r=n.width,i=n.height;C(e,[{width:r,height:i,bottom:i,right:r,top:0,left:0}])&&(t.disable(),t._ngZone.run(function(){return t._overlayRef.detach()}))}}))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),t}(),I=function(){var t=function t(e,n,r,i){var o=this;Object(c.a)(this,t),this._scrollDispatcher=e,this._viewportRuler=n,this._ngZone=r,this.noop=function(){return new E},this.close=function(t){return new S(o._scrollDispatcher,o._ngZone,o._viewportRuler,t)},this.block=function(){return new O(o._viewportRuler,o._document)},this.reposition=function(t){return new T(o._scrollDispatcher,o._viewportRuler,o._ngZone,t)},this._document=i};return t.\u0275fac=function(e){return new(e||t)(h.cc(l.c),h.cc(l.e),h.cc(h.B),h.cc(p.e))},t.\u0275prov=Object(h.Ob)({factory:function(){return new t(Object(h.cc)(l.c),Object(h.cc)(l.e),Object(h.cc)(h.B),Object(h.cc)(p.e))},token:t,providedIn:"root"}),t}(),A=function t(e){if(Object(c.a)(this,t),this.scrollStrategy=new E,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e)for(var n=0,r=Object.keys(e);n-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this.detach()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(h.cc(p.e))},t.\u0275prov=Object(h.Ob)({factory:function(){return new t(Object(h.cc)(p.e))},token:t,providedIn:"root"}),t}(),N=function(){var t=function(t){Object(o.a)(n,t);var e=k(n);function n(t){var r;return Object(c.a)(this,n),(r=e.call(this,t))._keydownListener=function(t){for(var e=r._attachedOverlays,n=e.length-1;n>-1;n--)if(e[n]._keydownEvents.observers.length>0){e[n]._keydownEvents.next(t);break}},r}return Object(u.a)(n,[{key:"add",value:function(t){Object(i.a)(Object(s.a)(n.prototype),"add",this).call(this,t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}]),n}(L);return t.\u0275fac=function(e){return new(e||t)(h.cc(p.e))},t.\u0275prov=Object(h.Ob)({factory:function(){return new t(Object(h.cc)(p.e))},token:t,providedIn:"root"}),t}(),D=function(){var t=function(t){Object(o.a)(n,t);var e=k(n);function n(t,r){var i;return Object(c.a)(this,n),(i=e.call(this,t))._platform=r,i._cursorStyleIsSet=!1,i._clickListener=function(t){for(var e=t.composedPath?t.composedPath()[0]:t.target,n=i._attachedOverlays.slice(),r=n.length-1;r>-1;r--){var o=n[r];if(!(o._outsidePointerEvents.observers.length<1)&&o.hasAttached()){if(o.overlayElement.contains(e))break;o._outsidePointerEvents.next(t)}}},i}return Object(u.a)(n,[{key:"add",value:function(t){if(Object(i.a)(Object(s.a)(n.prototype),"add",this).call(this,t),!this._isAttached){var e=this._document.body;e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=e.style.cursor,e.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}},{key:"detach",value:function(){if(this._isAttached){var t=this._document.body;t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}]),n}(L);return t.\u0275fac=function(e){return new(e||t)(h.cc(p.e),h.cc(f.a))},t.\u0275prov=Object(h.Ob)({factory:function(){return new t(Object(h.cc)(p.e),Object(h.cc)(f.a))},token:t,providedIn:"root"}),t}(),M=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine),F=function(){var t=function(){function t(e,n){Object(c.a)(this,t),this._platform=n,this._document=e}return Object(u.a)(t,[{key:"ngOnDestroy",value:function(){var t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){var t="cdk-overlay-container";if(this._platform.isBrowser||M)for(var e=this._document.querySelectorAll(".".concat(t,'[platform="server"], ')+".".concat(t,'[platform="test"]')),n=0;nb&&(b=k,p=_)}}catch(x){v=!0,g=x}finally{try{m||null==w.return||w.return()}finally{if(v)throw g}}return this._isPushed=!1,void this._applyPosition(p.position,p.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(t.position,t.originPoint);this._applyPosition(t.position,t.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&X(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(U),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}},{key:"withScrollableContainers",value:function(t){return this._scrollables=t,this}},{key:"withPositions",value:function(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(t){return this._viewportMargin=t,this}},{key:"withFlexibleDimensions",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=t,this}},{key:"withGrowAfterOpen",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=t,this}},{key:"withPush",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=t,this}},{key:"withLockedPosition",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=t,this}},{key:"setOrigin",value:function(t){return this._origin=t,this}},{key:"withDefaultOffsetX",value:function(t){return this._offsetX=t,this}},{key:"withDefaultOffsetY",value:function(t){return this._offsetY=t,this}},{key:"withTransformOriginOn",value:function(t){return this._transformOriginSelector=t,this}},{key:"_getOriginPoint",value:function(t,e){var n;if("center"==e.originX)n=t.left+t.width/2;else{var r=this._isRtl()?t.right:t.left,i=this._isRtl()?t.left:t.right;n="start"==e.originX?r:i}return{x:n,y:"center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom}}},{key:"_getOverlayPoint",value:function(t,e,n){var r;return r="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,{x:t.x+r,y:t.y+("center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height)}}},{key:"_getOverlayFit",value:function(t,e,n,r){var i=H(e),o=t.x,a=t.y,s=this._getOffset(r,"x"),c=this._getOffset(r,"y");s&&(o+=s),c&&(a+=c);var u=0-a,l=a+i.height-n.height,h=this._subtractOverflows(i.width,0-o,o+i.width-n.width),f=this._subtractOverflows(i.height,u,l),d=h*f;return{visibleArea:d,isCompletelyWithinViewport:i.width*i.height===d,fitsInViewportVertically:f===i.height,fitsInViewportHorizontally:h==i.width}}},{key:"_canFitWithFlexibleDimensions",value:function(t,e,n){if(this._hasFlexibleDimensions){var r=n.bottom-e.y,i=n.right-e.x,o=z(this._overlayRef.getConfig().minHeight),a=z(this._overlayRef.getConfig().minWidth);return(t.fitsInViewportVertically||null!=o&&o<=r)&&(t.fitsInViewportHorizontally||null!=a&&a<=i)}return!1}},{key:"_pushOverlayOnScreen",value:function(t,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};var r,i,o=H(e),a=this._viewportRect,s=Math.max(t.x+o.width-a.width,0),c=Math.max(t.y+o.height-a.height,0),u=Math.max(a.top-n.top-t.y,0),l=Math.max(a.left-n.left-t.x,0);return this._previousPushAmount={x:r=o.width<=a.width?l||-s:t.xh&&!this._isInitialRender&&!this._growAfterOpen&&(r=t.y-h/2)}if("end"===e.overlayX&&!u||"start"===e.overlayX&&u)s=c.width-t.x+this._viewportMargin,o=t.x-this._viewportMargin;else if("start"===e.overlayX&&!u||"end"===e.overlayX&&u)a=t.x,o=c.right-t.x;else{var f=Math.min(c.right-t.x+c.left,t.x),d=this._lastBoundingBoxSize.width;a=t.x-f,(o=2*f)>d&&!this._isInitialRender&&!this._growAfterOpen&&(a=t.x-d/2)}return{top:r,left:a,bottom:i,right:s,width:o,height:n}}},{key:"_setBoundingBoxStyles",value:function(t,e){var n=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));var r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{var i=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;r.height=Object(b.c)(n.height),r.top=Object(b.c)(n.top),r.bottom=Object(b.c)(n.bottom),r.width=Object(b.c)(n.width),r.left=Object(b.c)(n.left),r.right=Object(b.c)(n.right),r.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",r.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",i&&(r.maxHeight=Object(b.c)(i)),o&&(r.maxWidth=Object(b.c)(o))}this._lastBoundingBoxSize=n,X(this._boundingBox.style,r)}},{key:"_resetBoundingBoxStyles",value:function(){X(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){X(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(t,e){var n={},r=this._hasExactPosition(),i=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(r){var a=this._viewportRuler.getViewportScrollPosition();X(n,this._getExactOverlayY(e,t,a)),X(n,this._getExactOverlayX(e,t,a))}else n.position="static";var s="",c=this._getOffset(e,"x"),u=this._getOffset(e,"y");c&&(s+="translateX(".concat(c,"px) ")),u&&(s+="translateY(".concat(u,"px)")),n.transform=s.trim(),o.maxHeight&&(r?n.maxHeight=Object(b.c)(o.maxHeight):i&&(n.maxHeight="")),o.maxWidth&&(r?n.maxWidth=Object(b.c)(o.maxWidth):i&&(n.maxWidth="")),X(this._pane.style,n)}},{key:"_getExactOverlayY",value:function(t,e,n){var r={top:"",bottom:""},i=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(i=this._pushOverlayOnScreen(i,this._overlayRect,n));var o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return i.y-=o,"bottom"===t.overlayY?r.bottom="".concat(this._document.documentElement.clientHeight-(i.y+this._overlayRect.height),"px"):r.top=Object(b.c)(i.y),r}},{key:"_getExactOverlayX",value:function(t,e,n){var r={left:"",right:""},i=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(i=this._pushOverlayOnScreen(i,this._overlayRect,n)),"right"==(this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left")?r.right="".concat(this._document.documentElement.clientWidth-(i.x+this._overlayRect.width),"px"):r.left=Object(b.c)(i.x),r}},{key:"_getScrollVisibility",value:function(){var t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(function(t){return t.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:j(t,n),isOriginOutsideView:C(t,n),isOverlayClipped:j(e,n),isOverlayOutsideView:C(e,n)}}},{key:"_subtractOverflows",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}},{key:"left",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}},{key:"right",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}},{key:"width",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}},{key:"height",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}},{key:"centerHorizontally",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(t),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(t),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),r=n.width,i=n.height,o=n.maxWidth,a=n.maxHeight,s=!("100%"!==r&&"100vw"!==r||o&&"100%"!==o&&"100vw"!==o),c=!("100%"!==i&&"100vh"!==i||a&&"100%"!==a&&"100vh"!==a);t.position=this._cssPosition,t.marginLeft=s?"0":this._leftOffset,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,s?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=c?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove(G),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}}]),t}(),W=function(){var t=function(){function t(e,n,r,i){Object(c.a)(this,t),this._viewportRuler=e,this._document=n,this._platform=r,this._overlayContainer=i}return Object(u.a)(t,[{key:"global",value:function(){return new K}},{key:"connectedTo",value:function(t,e,n){return new Y(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(t){return new q(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(h.cc(l.e),h.cc(p.e),h.cc(f.a),h.cc(F))},t.\u0275prov=Object(h.Ob)({factory:function(){return new t(Object(h.cc)(l.e),Object(h.cc)(p.e),Object(h.cc)(f.a),Object(h.cc)(F))},token:t,providedIn:"root"}),t}(),Q=0,Z=function(){var t=function(){function t(e,n,r,i,o,a,s,u,l,h,f){Object(c.a)(this,t),this.scrollStrategies=e,this._overlayContainer=n,this._componentFactoryResolver=r,this._positionBuilder=i,this._keyboardDispatcher=o,this._injector=a,this._ngZone=s,this._document=u,this._directionality=l,this._location=h,this._outsideClickDispatcher=f}return Object(u.a)(t,[{key:"create",value:function(t){var e=this._createHostElement(),n=this._createPaneElement(e),r=this._createPortalOutlet(n),i=new A(t);return i.direction=i.direction||this._directionality.value,new V(r,e,n,i,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(t){var e=this._document.createElement("div");return e.id="cdk-overlay-".concat(Q++),e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}},{key:"_createHostElement",value:function(){var t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}},{key:"_createPortalOutlet",value:function(t){return this._appRef||(this._appRef=this._injector.get(h.g)),new m.e(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(h.cc(I),h.cc(F),h.cc(h.j),h.cc(W),h.cc(N),h.cc(h.s),h.cc(h.B),h.cc(p.e),h.cc(d.b),h.cc(p.h),h.cc(D))},t.\u0275prov=h.Ob({token:t,factory:t.\u0275fac}),t}(),J={provide:new h.r("cdk-connected-overlay-scroll-strategy"),deps:[Z],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},$=function(){var t=function t(){Object(c.a)(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=h.Qb({type:t}),t.\u0275inj=h.Pb({providers:[Z,J],imports:[[d.a,m.f,l.d],l.d]}),t}()},rePB:function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",function(){return r})},s4An:function(t,e,n){"use strict";function r(t,e){return(r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}n.d(e,"a",function(){return r})},sVev:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(){function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t}()},spgP:function(t,e,n){"use strict";(function(t){n.d(e,"a",function(){return I}),n.d(e,"b",function(){return x}),n.d(e,"c",function(){return k}),n.d(e,"d",function(){return v}),n.d(e,"e",function(){return _}),n.d(e,"f",function(){return j}),n.d(e,"g",function(){return S}),n.d(e,"h",function(){return g}),n.d(e,"i",function(){return w}),n.d(e,"j",function(){return E});var r=n("T5bk"),i=n("KQm4"),o=n("1OyB"),a=n("vuIU"),s=n("qgXg"),c=n("D0XW"),u=n("vkgz"),l=n("tf+s"),h=n("pxpQ"),f=n("fXoL"),d=n("Jgta");function p(){}var b=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.b;Object(o.a)(this,t),this.zone=e,this.delegate=n}return Object(a.a)(t,[{key:"now",value:function(){return this.delegate.now()}},{key:"schedule",value:function(t,e,n){var r=this.zone;return this.delegate.schedule(function(e){var n=this;r.runGuarded(function(){t.apply(n,[e])})},e,n)}}]),t}(),m=function(){function t(e){Object(o.a)(this,t),this.zone=e,this.task=null}return Object(a.a)(t,[{key:"call",value:function(t,e){var n=this.unscheduleTask.bind(this);return this.task=this.zone.run(function(){return Zone.current.scheduleMacroTask("firebaseZoneBlock",p,{},p,p)}),e.pipe(Object(u.a)({next:n,complete:n,error:n})).subscribe(t).add(n)}},{key:"unscheduleTask",value:function(){var t=this;setTimeout(function(){null!=t.task&&"scheduled"===t.task.state&&(t.task.invoke(),t.task=null)},10)}}]),t}(),v=function t(e){Object(o.a)(this,t),this.ngZone=e,this.outsideAngular=e.runOutsideAngular(function(){return new b(Zone.current)}),this.insideAngular=e.run(function(){return new b(Zone.current,c.b)})};function g(t){return function(e){return(e=e.lift(new m(t.ngZone))).pipe(Object(l.a)(t.outsideAngular),Object(h.b)(t.insideAngular))}}var y=["ngOnDestroy"],w=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return new Proxy(t,{get:function(o,a){return n.runOutsideAngular(function(){var o;if(t[a])return(null===(o=null==r?void 0:r.spy)||void 0===o?void 0:o.get)&&r.spy.get(a,t[a]),t[a];if(y.indexOf(a)>-1)return function(){};var s=e.toPromise().then(function(t){var e=t&&t[a];return"function"==typeof e?e.bind(t):e&&e.then?e.then(function(t){return n.run(function(){return t})}):n.run(function(){return e})});return new Proxy(function(){},{get:function(t,e){return s[e]},apply:function(t,e,n){return s.then(function(t){var e,o=t&&t.apply(void 0,Object(i.a)(n));return(null===(e=null==r?void 0:r.spy)||void 0===e?void 0:e.apply)&&r.spy.apply(a,n,o),o})}})})}})},_=function(t,e){e.forEach(function(e){Object.getOwnPropertyNames(e.prototype||e).forEach(function(n){Object.defineProperty(t.prototype,n,Object.getOwnPropertyDescriptor(e.prototype||e,n))})})},k=new f.r("angularfire2.app.options"),x=new f.r("angularfire2.app.nameOrConfig"),O=new f.R("6.1.5");function S(e,n,r){var i="object"==typeof r&&r||{};i.name=i.name||"string"==typeof r&&r||"[DEFAULT]";var o=d.a.apps.filter(function(t){return t&&t.name===i.name})[0]||n.runOutsideAngular(function(){return d.a.initializeApp(e,i)});try{if(JSON.stringify(e)!==JSON.stringify(o.options)){var a=!!t.hot;C("error","".concat(o.name," Firebase App already initialized with different options").concat(a?", you may need to reload as Firebase is not HMR aware.":"."))}}catch(s){}return o}var E=function(){C("warn","You may need to import 'firebase/auth' manually in your component rather than rely on AngularFireAuth's dynamic import, when using the emulator suite https://github.com/angular/angularfire/issues/2656")},C=function(t){if(Object(f.Y)()&&"undefined"!=typeof console){for(var e,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i>>0),g=0;function y(t,e,n){return t.call.apply(t.bind,arguments)}function w(t,e,n){if(!t)throw Error();if(2t.b&&(t.b++,e.next=t.a,t.a=e)}function V(){this.b=this.a=null}j=R("__EID__")?"__EID__":void 0,O(L,Error),L.prototype.name="CustomError",O(N,L),N.prototype.name="AssertionError",M.prototype.get=function(){if(0/g,it=/"/g,ot=/'/g,at=/\x00/g,st=/[\x00&<>"']/;function ct(t,e){return-1!=t.indexOf(e)}function ut(t,e){return te?1:0}t:{var lt=s.navigator;if(lt){var ht=lt.userAgent;if(ht){$=ht;break t}}$=""}function ft(t){return ct($,t)}function dt(t,e){for(var n in t)e.call(void 0,t[n],n,t)}function pt(t){for(var e in t)return!1;return!0}function bt(t){var e,n={};for(e in t)n[e]=t[e];return n}var mt="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function vt(t,e){for(var n,r,i=1;i"}else o=void 0===t?"undefined":null===t?"null":typeof t;D("Argument is not a %s (or a non-Element, non-Location mock); got: %s",e,o)}}function yt(t,e){this.a=t===xt&&e||"",this.b=kt}function wt(t){return t instanceof yt&&t.constructor===yt&&t.b===kt?t.a:(D("expected object of type Const, got '"+t+"'"),"type_error:Const")}yt.prototype.sa=!0,yt.prototype.ra=function(){return this.a},yt.prototype.toString=function(){return"Const{"+this.a+"}"};var _t,kt={},xt={};function Ot(){if(void 0===_t){var t=null,e=s.trustedTypes;if(e&&e.createPolicy){try{t=e.createPolicy("goog#html",{createHTML:S,createScript:S,createScriptURL:S})}catch(n){s.console&&s.console.error(n.message)}_t=t}else _t=t}return _t}function St(t,e){this.a=e===It?t:""}function Et(t){return t instanceof St&&t.constructor===St?t.a:(D("expected object of type TrustedResourceUrl, got '"+t+"' of type "+f(t)),"type_error:TrustedResourceUrl")}function Ct(t,e){var n=wt(t);if(!Tt.test(n))throw Error("Invalid TrustedResourceUrl format: "+n);return function(t){var e=Ot();return new St(t=e?e.createScriptURL(t):t,It)}(t=n.replace(jt,function(t,r){if(!Object.prototype.hasOwnProperty.call(e,r))throw Error('Found marker, "'+r+'", in format string, "'+n+'", but no valid label mapping found in args: '+JSON.stringify(e));return(t=e[r])instanceof yt?wt(t):encodeURIComponent(String(t))}))}St.prototype.sa=!0,St.prototype.ra=function(){return this.a.toString()},St.prototype.toString=function(){return"TrustedResourceUrl{"+this.a+"}"};var jt=/%{(\w+)}/g,Tt=/^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^/\\]|[^:/\\%]+\/|[^:/\\%]*[?#]|about:blank#)/i,It={};function At(t,e){this.a=e===Ft?t:""}function Rt(t){return t instanceof At&&t.constructor===At?t.a:(D("expected object of type SafeUrl, got '"+t+"' of type "+f(t)),"type_error:SafeUrl")}At.prototype.sa=!0,At.prototype.ra=function(){return this.a.toString()},At.prototype.toString=function(){return"SafeUrl{"+this.a+"}"};var Pt=/^(?:audio\/(?:3gpp2|3gpp|aac|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)|font\/\w+|image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon)|text\/csv|video\/(?:mpeg|mp4|ogg|webm|quicktime|x-matroska))(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i,Lt=/^data:(.*);base64,[a-z0-9+\/]+=*$/i,Nt=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i;function Dt(t){if(t instanceof At)return t;if(t="object"==typeof t&&t.sa?t.ra():String(t),Nt.test(t))t=new At(t,Ft);else{var e=(t=(t=String(t)).replace(/(%0A|%0D)/g,"")).match(Lt);t=e&&Pt.test(e[1])?new At(t,Ft):null}return t}function Mt(t){return t instanceof At?t:(t="object"==typeof t&&t.sa?t.ra():String(t),Nt.test(t)||(t="about:invalid#zClosurez"),new At(t,Ft))}var Ft={},Vt=new At("about:invalid#zClosurez",Ft);function Ut(t,e,n){this.a=n===Bt?t:""}Ut.prototype.sa=!0,Ut.prototype.ra=function(){return this.a.toString()},Ut.prototype.toString=function(){return"SafeHtml{"+this.a+"}"};var Bt={};function qt(t,e,n,r){return t=t instanceof At?t:Mt(t),e=e||s,n=n instanceof yt?wt(n):n||"",e.open(Rt(t),n,r,void 0)}function Xt(t,e){for(var n=t.split("%s"),r="",i=Array.prototype.slice.call(arguments,1);i.length&&1")&&(t=t.replace(rt,">")),-1!=t.indexOf('"')&&(t=t.replace(it,""")),-1!=t.indexOf("'")&&(t=t.replace(ot,"'")),-1!=t.indexOf("\0")&&(t=t.replace(at,"�"))),t}function Ht(t){return Ht[" "](t),t}Ht[" "]=h;var Yt,Gt,Kt=ft("Opera"),Wt=ft("Trident")||ft("MSIE"),Qt=ft("Edge"),Zt=Qt||Wt,Jt=ft("Gecko")&&!(ct($.toLowerCase(),"webkit")&&!ft("Edge"))&&!(ft("Trident")||ft("MSIE"))&&!ft("Edge"),$t=ct($.toLowerCase(),"webkit")&&!ft("Edge");function te(){var t=s.document;return t?t.documentMode:void 0}t:{var ee="",ne=(Gt=$,Jt?/rv:([^\);]+)(\)|;)/.exec(Gt):Qt?/Edge\/([\d\.]+)/.exec(Gt):Wt?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(Gt):$t?/WebKit\/(\S+)/.exec(Gt):Kt?/(?:Version)[ \/]?(\S+)/.exec(Gt):void 0);if(ne&&(ee=ne?ne[1]:""),Wt){var re=te();if(null!=re&&re>parseFloat(ee)){Yt=String(re);break t}}Yt=ee}var ie={};function oe(t){return function(t,e){var n=ie;return Object.prototype.hasOwnProperty.call(n,t)?n[t]:n[t]=e()}(t,function(){for(var e=0,n=tt(String(Yt)).split("."),r=tt(String(t)).split("."),i=Math.max(n.length,r.length),o=0;0==e&&o=t.keyCode)&&(t.keyCode=-1)}catch(e){}},Ze.prototype.g=function(){return this.a};var $e="closure_listenable_"+(1e6*Math.random()|0),tn=0;function en(t,e,n,r,i){this.listener=t,this.proxy=null,this.src=e,this.type=n,this.capture=!!r,this.Va=i,this.key=++tn,this.va=this.Pa=!1}function nn(t){t.va=!0,t.listener=null,t.proxy=null,t.src=null,t.Va=null}function rn(t){this.src=t,this.a={},this.b=0}function on(t,e){var n=e.type;n in t.a&&W(t.a[n],e)&&(nn(e),0==t.a[n].length&&(delete t.a[n],t.b--))}function an(t,e,n,r){for(var i=0;ir.keyCode||null!=r.returnValue)){t:{var i=!1;if(0==r.keyCode)try{r.keyCode=-1;break t}catch(a){i=!0}(i||null==r.returnValue)&&(r.returnValue=!0)}for(r=[],i=e.b;i;i=i.parentNode)r.push(i);for(t=t.type,i=r.length-1;0<=i;i--){e.b=r[i];var o=bn(r[i],t,!0,e);n=n&&o}for(i=0;i>>0);function wn(t){return p(t)?t:(t[yn]||(t[yn]=function(e){return t.handleEvent(e)}),t[yn])}function _n(){qe.call(this),this.v=new rn(this),this.ac=this,this.gb=null}function kn(t,e,n,r,i){t.v.add(String(e),n,!1,r,i)}function xn(t,e,n,r,i){t.v.add(String(e),n,!0,r,i)}function On(t,e,n,r){if(!(e=t.v.a[String(e)]))return!0;e=e.concat();for(var i=!0,o=0;oe)throw Error("Bad port number "+e);t.g=e}else t.g=null}function Dn(t,e,n){e instanceof Wn?(t.b=e,function(t,e){e&&!t.f&&(Qn(t),t.c=null,t.a.forEach(function(t,e){var n=e.toLowerCase();e!=n&&(Jn(this,e),tr(this,n,t))},t)),t.f=e}(t.b,t.i)):(n||(e=qn(e,Gn)),t.b=new Wn(e,t.i))}function Mn(t,e,n){t.b.set(e,n)}function Fn(t,e){return t.b.get(e)}function Vn(t){return t instanceof Pn?new Pn(t):new Pn(t,void 0)}function Un(t,e,n,r){var i=new Pn(null,void 0);return t&&Ln(i,t),e&&(i.a=e),n&&Nn(i,n),r&&(i.f=r),i}function Bn(t,e){return t?e?decodeURI(t.replace(/%25/g,"%2525")):decodeURIComponent(t):""}function qn(t,e,n){return"string"==typeof t?(t=encodeURI(t).replace(e,Xn),n&&(t=t.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t):null}function Xn(t){return"%"+((t=t.charCodeAt(0))>>4&15).toString(16)+(15&t).toString(16)}Pn.prototype.toString=function(){var t=[],e=this.c;e&&t.push(qn(e,zn,!0),":");var n=this.a;return(n||"file"==e)&&(t.push("//"),(e=this.l)&&t.push(qn(e,zn,!0),"@"),t.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.g)&&t.push(":",String(n))),(n=this.f)&&(this.a&&"/"!=n.charAt(0)&&t.push("/"),t.push(qn(n,"/"==n.charAt(0)?Yn:Hn,!0))),(n=this.b.toString())&&t.push("?",n),(n=this.h)&&t.push("#",qn(n,Kn)),t.join("")},Pn.prototype.resolve=function(t){var e=new Pn(this),n=!!t.c;n?Ln(e,t.c):n=!!t.l,n?e.l=t.l:n=!!t.a,n?e.a=t.a:n=null!=t.g;var r=t.f;if(n)Nn(e,t.g);else if(n=!!t.f){if("/"!=r.charAt(0))if(this.a&&!this.f)r="/"+r;else{var i=e.f.lastIndexOf("/");-1!=i&&(r=e.f.substr(0,i+1)+r)}if(".."==(i=r)||"."==i)r="";else if(ct(i,"./")||ct(i,"/.")){r=0==i.lastIndexOf("/",0),i=i.split("/");for(var o=[],a=0;a2*t.c&&In(t)))}function $n(t,e){return Qn(t),e=nr(t,e),An(t.a.b,e)}function tr(t,e,n){Jn(t,e),0',t=new Ut(t=(r=Ot())?r.createHTML(t):t,null,Bt),r=a.document)&&(r.write(function(t){return t instanceof Ut&&t.constructor===Ut?t.a:(D("expected object of type SafeHtml, got '"+t+"' of type "+f(t)),"type_error:SafeHtml")}(t)),r.close())):(a=qt(e,r,n,a))&&t.noopener&&(a.opener=null),a)try{a.focus()}catch(s){}return a}var mr=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,vr=/^[^@]+@[^@]+$/;function gr(){var t=null;return new we(function(e){"complete"==s.document.readyState?e():(t=function(){e()},hn(window,"load",t))}).o(function(e){throw fn(window,"load",t),e})}function yr(t){return t=t||Tr(),!("file:"!==Lr()&&"ionic:"!==Lr()||!t.toLowerCase().match(/iphone|ipad|ipod|android/))}function wr(){var t=s.window;try{return!(!t||t==t.top)}catch(e){return!1}}function _r(){return void 0!==s.WorkerGlobalScope&&"function"==typeof s.importScripts}function kr(){return r.a.INTERNAL.hasOwnProperty("reactNative")?"ReactNative":r.a.INTERNAL.hasOwnProperty("node")?"Node":_r()?"Worker":"Browser"}function xr(){var t=kr();return"ReactNative"===t||"Node"===t}var Or="Firefox",Sr="Chrome";function Er(t){var e=t.toLowerCase();return ct(e,"opera/")||ct(e,"opr/")||ct(e,"opios/")?"Opera":ct(e,"iemobile")?"IEMobile":ct(e,"msie")||ct(e,"trident/")?"IE":ct(e,"edge/")?"Edge":ct(e,"firefox/")?Or:ct(e,"silk/")?"Silk":ct(e,"blackberry")?"Blackberry":ct(e,"webos")?"Webos":!ct(e,"safari/")||ct(e,"chrome/")||ct(e,"crios/")||ct(e,"android")?!ct(e,"chrome/")&&!ct(e,"crios/")||ct(e,"edge/")?ct(e,"android")?"Android":(t=t.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/))&&2==t.length?t[1]:"Other":Sr:"Safari"}var Cr={md:"FirebaseCore-web",od:"FirebaseUI-web"};function jr(t,e){e=e||[];var n,r=[],i={};for(n in Cr)i[Cr[n]]=!0;for(n=0;ne)throw Error("Short delay should be less than long delay!");this.a=t,this.c=e,t=Tr(),e=kr(),this.b=dr(t)||"ReactNative"===e}function Xr(){var t=s.document;return!t||void 0===t.visibilityState||"visible"==t.visibilityState}function zr(t){try{var e=new Date(parseInt(t,10));if(!isNaN(e.getTime())&&!/[^0-9]/.test(t))return e.toUTCString()}catch(n){}return null}function Hr(){return!(!Ir("fireauth.oauthhelper",s)&&!Ir("fireauth.iframe",s))}qr.prototype.get=function(){var t=s.navigator;return!t||"boolean"!=typeof t.onLine||!Pr()&&"chrome-extension:"!==Lr()&&void 0===t.connection||t.onLine?this.b?this.c:this.a:Math.min(5e3,this.a)};var Yr,Gr={};function Kr(t){Gr[t]||(Gr[t]=!0,"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(t))}try{var Wr={};Object.defineProperty(Wr,"abcd",{configurable:!0,enumerable:!0,value:1}),Object.defineProperty(Wr,"abcd",{configurable:!0,enumerable:!0,value:2}),Yr=2==Wr.abcd}catch(Gt){Yr=!1}function Qr(t,e,n){Yr?Object.defineProperty(t,e,{configurable:!0,enumerable:!0,value:n}):t[e]=n}function Zr(t,e){if(e)for(var n in e)e.hasOwnProperty(n)&&Qr(t,n,e[n])}function Jr(t){var e={};return Zr(e,t),e}function $r(t){var e=t;if("object"==typeof t&&null!=t)for(var n in e="length"in t?[]:{},t)Qr(e,n,$r(t[n]));return e}function ti(t){var e=t&&(t[oi]?"phone":null);if(!(e&&t&&t[ii]))throw new E("internal-error","Internal assert: invalid MultiFactorInfo object");Qr(this,"uid",t[ii]),Qr(this,"displayName",t[ni]||null);var n=null;t[ri]&&(n=new Date(t[ri]).toUTCString()),Qr(this,"enrollmentTime",n),Qr(this,"factorId",e)}function ei(t){try{var e=new ai(t)}catch(n){e=null}return e}ti.prototype.w=function(){return{uid:this.uid,displayName:this.displayName,factorId:this.factorId,enrollmentTime:this.enrollmentTime}};var ni="displayName",ri="enrolledAt",ii="mfaEnrollmentId",oi="phoneInfo";function ai(t){ti.call(this,t),Qr(this,"phoneNumber",t[oi])}function si(t){var e={},n=t[hi],r=t[di],i=t[pi];if(t=ei(t[fi]),!i||i!=ui&&i!=li&&!n||i==li&&!r||i==ci&&!t)throw Error("Invalid checkActionCode response!");i==li?(e[mi]=n||null,e[gi]=n||null,e[bi]=r):(e[mi]=r||null,e[gi]=r||null,e[bi]=n||null),e[vi]=t||null,Qr(this,wi,i),Qr(this,yi,$r(e))}O(ai,ti),ai.prototype.w=function(){var t=ai.ab.w.call(this);return t.phoneNumber=this.phoneNumber,t};var ci="REVERT_SECOND_FACTOR_ADDITION",ui="EMAIL_SIGNIN",li="VERIFY_AND_CHANGE_EMAIL",hi="email",fi="mfaInfo",di="newEmail",pi="requestType",bi="email",mi="fromEmail",vi="multiFactorInfo",gi="previousEmail",yi="data",wi="operation";function _i(t){var e=Fn(t=Vn(t),ki)||null,n=Fn(t,xi)||null,r=Fn(t,Ei)||null;if(r=r&&ji[r]||null,!e||!n||!r)throw new E("argument-error",ki+", "+xi+"and "+Ei+" are required in a valid action code URL.");Zr(this,{apiKey:e,operation:r,code:n,continueUrl:Fn(t,Oi)||null,languageCode:Fn(t,Si)||null,tenantId:Fn(t,Ci)||null})}var ki="apiKey",xi="oobCode",Oi="continueUrl",Si="languageCode",Ei="mode",Ci="tenantId",ji={recoverEmail:"RECOVER_EMAIL",resetPassword:"PASSWORD_RESET",revertSecondFactorAddition:ci,signIn:ui,verifyAndChangeEmail:li,verifyEmail:"VERIFY_EMAIL"};function Ti(t){try{return new _i(t)}catch(e){return null}}function Ii(t){var e=t[Ni];if(void 0===e)throw new E("missing-continue-uri");if("string"!=typeof e||"string"==typeof e&&!e.length)throw new E("invalid-continue-uri");this.h=e,this.b=this.a=null,this.g=!1;var n=t[Ai];if(n&&"object"==typeof n){e=n[Fi];var r=n[Di];if(n=n[Mi],"string"==typeof e&&e.length){if(this.a=e,void 0!==r&&"boolean"!=typeof r)throw new E("argument-error",Di+" property must be a boolean when specified.");if(this.g=!!r,void 0!==n&&("string"!=typeof n||"string"==typeof n&&!n.length))throw new E("argument-error",Mi+" property must be a non empty string when specified.");this.b=n||null}else{if(void 0!==e)throw new E("argument-error",Fi+" property must be a non empty string when specified.");if(void 0!==r||void 0!==n)throw new E("missing-android-pkg-name")}}else if(void 0!==n)throw new E("argument-error",Ai+" property must be a non null object when specified.");if(this.f=null,(e=t[Li])&&"object"==typeof e){if("string"==typeof(e=e[Vi])&&e.length)this.f=e;else if(void 0!==e)throw new E("argument-error",Vi+" property must be a non empty string when specified.")}else if(void 0!==e)throw new E("argument-error",Li+" property must be a non null object when specified.");if(void 0!==(e=t[Pi])&&"boolean"!=typeof e)throw new E("argument-error",Pi+" property must be a boolean when specified.");if(this.c=!!e,void 0!==(t=t[Ri])&&("string"!=typeof t||"string"==typeof t&&!t.length))throw new E("argument-error",Ri+" property must be a non empty string when specified.");this.i=t||null}var Ai="android",Ri="dynamicLinkDomain",Pi="handleCodeInApp",Li="iOS",Ni="url",Di="installApp",Mi="minimumVersion",Fi="packageName",Vi="bundleId";function Ui(t){var e={};for(var n in e.continueUrl=t.h,e.canHandleCodeInApp=t.c,(e.androidPackageName=t.a)&&(e.androidMinimumVersion=t.b,e.androidInstallApp=t.g),e.iOSBundleId=t.f,e.dynamicLinkDomain=t.i,e)null===e[n]&&delete e[n];return e}var Bi=null;function qi(t){var e=zi(t);if(!(e&&e.sub&&e.iss&&e.aud&&e.exp))throw Error("Invalid JWT");this.h=t,this.a=e.exp,this.i=e.sub,t=Date.now()/1e3,this.g=e.iat||(t>this.a?this.a:t),this.b=e.provider_id||e.firebase&&e.firebase.sign_in_provider||null,this.f=e.firebase&&e.firebase.tenant||null,this.c=!!e.is_anonymous||"anonymous"==this.b}function Xi(t){try{return new qi(t)}catch(e){return null}}function zi(t){if(!t)return null;if(3!=(t=t.split(".")).length)return null;for(var e=(4-(t=t[1]).length%4)%4,n=0;nn;n++)for(var r=t.concat(e[n].split("")),i=0;i>4),64!=a&&(e(o<<4&240|a>>2),64!=s&&e(a<<6&192|s))}}(t,function(t){e.push(t)}),e}(t);for(t=[],n=e=0;ei)t[n++]=String.fromCharCode(i);else if(191i){var o=r[e++];t[n++]=String.fromCharCode((31&i)<<6|63&o)}else if(239i){o=r[e++];var a=r[e++],s=((7&i)<<18|(63&o)<<12|(63&a)<<6|63&r[e++])-65536;t[n++]=String.fromCharCode(55296+(s>>10)),t[n++]=String.fromCharCode(56320+(1023&s))}else o=r[e++],a=r[e++],t[n++]=String.fromCharCode((15&i)<<12|(63&o)<<6|63&a)}return JSON.parse(t.join(""))}catch(c){}return null}qi.prototype.T=function(){return this.f},qi.prototype.l=function(){return this.c},qi.prototype.toString=function(){return this.h};var Hi="oauth_consumer_key oauth_nonce oauth_signature oauth_signature_method oauth_timestamp oauth_token oauth_version".split(" "),Yi=["client_id","response_type","scope","redirect_uri","state"],Gi={nd:{Ja:"locale",ua:700,ta:600,fa:"facebook.com",Xa:Yi},pd:{Ja:null,ua:500,ta:750,fa:"github.com",Xa:Yi},qd:{Ja:"hl",ua:515,ta:680,fa:"google.com",Xa:Yi},wd:{Ja:"lang",ua:485,ta:705,fa:"twitter.com",Xa:Hi},kd:{Ja:"locale",ua:640,ta:600,fa:"apple.com",Xa:[]}};function Ki(t){for(var e in Gi)if(Gi[e].fa==t)return Gi[e];return null}function Wi(t){var e={};e["facebook.com"]=to,e["google.com"]=no,e["github.com"]=eo,e["twitter.com"]=ro;var n=t&&t[Zi];try{if(n)return e[n]?new e[n](t):new $i(t);if(void 0!==t[Qi])return new Ji(t)}catch(r){}return null}var Qi="idToken",Zi="providerId";function Ji(t){var e=t[Zi];if(!e&&t[Qi]){var n=Xi(t[Qi]);n&&n.b&&(e=n.b)}if(!e)throw Error("Invalid additional user info!");"anonymous"!=e&&"custom"!=e||(e=null),n=!1,void 0!==t.isNewUser?n=!!t.isNewUser:"identitytoolkit#SignupNewUserResponse"===t.kind&&(n=!0),Qr(this,"providerId",e),Qr(this,"isNewUser",n)}function $i(t){Ji.call(this,t),Qr(this,"profile",$r((t=Fr(t.rawUserInfo||"{}"))||{}))}function to(t){if($i.call(this,t),"facebook.com"!=this.providerId)throw Error("Invalid provider ID!")}function eo(t){if($i.call(this,t),"github.com"!=this.providerId)throw Error("Invalid provider ID!");Qr(this,"username",this.profile&&this.profile.login||null)}function no(t){if($i.call(this,t),"google.com"!=this.providerId)throw Error("Invalid provider ID!")}function ro(t){if($i.call(this,t),"twitter.com"!=this.providerId)throw Error("Invalid provider ID!");Qr(this,"username",t.screenName||null)}function io(t){var e=Vn(t),n=Fn(e,"link"),r=Fn(Vn(n),"link");return e=Fn(e,"deep_link_id"),Fn(Vn(e),"link")||e||r||n||t}function oo(t,e){if(!t&&!e)throw new E("internal-error","Internal assert: no raw session string available");if(t&&e)throw new E("internal-error","Internal assert: unable to determine the session type");this.a=t||null,this.b=e||null,this.type=this.a?ao:so}O($i,Ji),O(to,$i),O(eo,$i),O(no,$i),O(ro,$i);var ao="enroll",so="signin";function co(){}function uo(t,e){return t.then(function(t){if(t[Qa]){var n=Xi(t[Qa]);if(!n||e!=n.i)throw new E("user-mismatch");return t}throw new E("user-mismatch")}).o(function(t){throw t&&t.code&&t.code==T+"user-not-found"?new E("user-mismatch"):t})}function lo(t,e){if(!e)throw new E("internal-error","failed to construct a credential");this.a=e,Qr(this,"providerId",t),Qr(this,"signInMethod",t)}function ho(t){return{pendingToken:t.a,requestUri:"http://localhost"}}function fo(t){if(t&&t.providerId&&t.signInMethod&&0==t.providerId.indexOf("saml.")&&t.pendingToken)try{return new lo(t.providerId,t.pendingToken)}catch(e){}return null}function po(t,e,n){if(this.a=null,e.idToken||e.accessToken)e.idToken&&Qr(this,"idToken",e.idToken),e.accessToken&&Qr(this,"accessToken",e.accessToken),e.nonce&&!e.pendingToken&&Qr(this,"nonce",e.nonce),e.pendingToken&&(this.a=e.pendingToken);else{if(!e.oauthToken||!e.oauthTokenSecret)throw new E("internal-error","failed to construct a credential");Qr(this,"accessToken",e.oauthToken),Qr(this,"secret",e.oauthTokenSecret)}Qr(this,"providerId",t),Qr(this,"signInMethod",n)}function bo(t){var e={};return t.idToken&&(e.id_token=t.idToken),t.accessToken&&(e.access_token=t.accessToken),t.secret&&(e.oauth_token_secret=t.secret),e.providerId=t.providerId,t.nonce&&!t.a&&(e.nonce=t.nonce),e={postBody:Zn(e).toString(),requestUri:"http://localhost"},t.a&&(delete e.postBody,e.pendingToken=t.a),e}function mo(t){if(t&&t.providerId&&t.signInMethod){var e={idToken:t.oauthIdToken,accessToken:t.oauthTokenSecret?null:t.oauthAccessToken,oauthTokenSecret:t.oauthTokenSecret,oauthToken:t.oauthTokenSecret&&t.oauthAccessToken,nonce:t.nonce,pendingToken:t.pendingToken};try{return new po(t.providerId,e,t.signInMethod)}catch(n){}}return null}function vo(t,e){this.Qc=e||[],Zr(this,{providerId:t,isOAuthProvider:!0}),this.Ib={},this.pb=(Ki(t)||{}).Ja||null,this.ob=null}function go(t){if("string"!=typeof t||0!=t.indexOf("saml."))throw new E("argument-error",'SAML provider IDs must be prefixed with "saml."');vo.call(this,t,[])}function yo(t){vo.call(this,t,Yi),this.a=[]}function wo(){yo.call(this,"facebook.com")}function _o(t){if(!t)throw new E("argument-error","credential failed: expected 1 argument (the OAuth access token).");var e=t;return b(t)&&(e=t.accessToken),(new wo).credential({accessToken:e})}function ko(){yo.call(this,"github.com")}function xo(t){if(!t)throw new E("argument-error","credential failed: expected 1 argument (the OAuth access token).");var e=t;return b(t)&&(e=t.accessToken),(new ko).credential({accessToken:e})}function Oo(){yo.call(this,"google.com"),this.Ca("profile")}function So(t,e){var n=t;return b(t)&&(n=t.idToken,e=t.accessToken),(new Oo).credential({idToken:n,accessToken:e})}function Eo(){vo.call(this,"twitter.com",Hi)}function Co(t,e){var n=t;if(b(n)||(n={oauthToken:t,oauthTokenSecret:e}),!n.oauthToken||!n.oauthTokenSecret)throw new E("argument-error","credential failed: expected 2 arguments (the OAuth access token and secret).");return new po("twitter.com",n,"twitter.com")}function jo(t,e,n){this.a=t,this.f=e,Qr(this,"providerId","password"),Qr(this,"signInMethod",n===Io.EMAIL_LINK_SIGN_IN_METHOD?Io.EMAIL_LINK_SIGN_IN_METHOD:Io.EMAIL_PASSWORD_SIGN_IN_METHOD)}function To(t){return t&&t.email&&t.password?new jo(t.email,t.password,t.signInMethod):null}function Io(){Zr(this,{providerId:"password",isOAuthProvider:!1})}function Ao(t,e){if(!(e=Ro(e)))throw new E("argument-error","Invalid email link!");return new jo(t,e.code,Io.EMAIL_LINK_SIGN_IN_METHOD)}function Ro(t){return(t=Ti(t=io(t)))&&t.operation===ui?t:null}function Po(t){if(!(t.eb&&t.cb||t.La&&t.ea))throw new E("internal-error");this.a=t,Qr(this,"providerId","phone"),this.fa="phone",Qr(this,"signInMethod","phone")}function Lo(t){if(t&&"phone"===t.providerId&&(t.verificationId&&t.verificationCode||t.temporaryProof&&t.phoneNumber)){var e={};return z(["verificationId","verificationCode","temporaryProof","phoneNumber"],function(n){t[n]&&(e[n]=t[n])}),new Po(e)}return null}function No(t){return t.a.La&&t.a.ea?{temporaryProof:t.a.La,phoneNumber:t.a.ea}:{sessionInfo:t.a.eb,code:t.a.cb}}function Do(t){try{this.a=t||r.a.auth()}catch(e){throw new E("argument-error","Either an instance of firebase.auth.Auth must be passed as an argument to the firebase.auth.PhoneAuthProvider constructor, or the default firebase App instance must be initialized via firebase.initializeApp().")}Zr(this,{providerId:"phone",isOAuthProvider:!1})}function Mo(t,e){if(!t)throw new E("missing-verification-id");if(!e)throw new E("missing-verification-code");return new Po({eb:t,cb:e})}function Fo(t){if(t.temporaryProof&&t.phoneNumber)return new Po({La:t.temporaryProof,ea:t.phoneNumber});var e=t&&t.providerId;if(!e||"password"===e)return null;var n=t&&t.oauthAccessToken,r=t&&t.oauthTokenSecret,i=t&&t.nonce,o=t&&t.oauthIdToken,a=t&&t.pendingToken;try{switch(e){case"google.com":return So(o,n);case"facebook.com":return _o(n);case"github.com":return xo(n);case"twitter.com":return Co(n,r);default:return n||r||o||a?a?0==e.indexOf("saml.")?new lo(e,a):new po(e,{pendingToken:a,idToken:t.oauthIdToken,accessToken:t.oauthAccessToken},e):new yo(e).credential({idToken:o,accessToken:n,rawNonce:i}):null}}catch(s){return null}}function Vo(t){if(!t.isOAuthProvider)throw new E("invalid-oauth-provider")}function Uo(t,e,n,r,i,o,a){if(this.c=t,this.b=e||null,this.g=n||null,this.f=r||null,this.i=o||null,this.h=a||null,this.a=i||null,!this.g&&!this.a)throw new E("invalid-auth-event");if(this.g&&this.a)throw new E("invalid-auth-event");if(this.g&&!this.f)throw new E("invalid-auth-event")}function Bo(t){return(t=t||{}).type?new Uo(t.type,t.eventId,t.urlResponse,t.sessionId,t.error&&C(t.error),t.postBody,t.tenantId):null}function qo(){this.b=null,this.a=[]}oo.prototype.Ha=function(){return Ce(this.a?this.a:this.b)},oo.prototype.w=function(){return this.type==ao?{multiFactorSession:{idToken:this.a}}:{multiFactorSession:{pendingCredential:this.b}}},co.prototype.ka=function(){},co.prototype.b=function(){},co.prototype.c=function(){},co.prototype.w=function(){},lo.prototype.ka=function(t){return vs(t,ho(this))},lo.prototype.b=function(t,e){var n=ho(this);return n.idToken=e,gs(t,n)},lo.prototype.c=function(t,e){return uo(ys(t,ho(this)),e)},lo.prototype.w=function(){return{providerId:this.providerId,signInMethod:this.signInMethod,pendingToken:this.a}},po.prototype.ka=function(t){return vs(t,bo(this))},po.prototype.b=function(t,e){var n=bo(this);return n.idToken=e,gs(t,n)},po.prototype.c=function(t,e){return uo(ys(t,bo(this)),e)},po.prototype.w=function(){var t={providerId:this.providerId,signInMethod:this.signInMethod};return this.idToken&&(t.oauthIdToken=this.idToken),this.accessToken&&(t.oauthAccessToken=this.accessToken),this.secret&&(t.oauthTokenSecret=this.secret),this.nonce&&(t.nonce=this.nonce),this.a&&(t.pendingToken=this.a),t},vo.prototype.Ka=function(t){return this.Ib=bt(t),this},O(go,vo),O(yo,vo),yo.prototype.Ca=function(t){return K(this.a,t)||this.a.push(t),this},yo.prototype.Qb=function(){return J(this.a)},yo.prototype.credential=function(t,e){var n;if(!(n=b(t)?{idToken:t.idToken||null,accessToken:t.accessToken||null,nonce:t.rawNonce||null}:{idToken:t||null,accessToken:e||null}).idToken&&!n.accessToken)throw new E("argument-error","credential failed: must provide the ID token and/or the access token.");return new po(this.providerId,n,this.providerId)},O(wo,yo),Qr(wo,"PROVIDER_ID","facebook.com"),Qr(wo,"FACEBOOK_SIGN_IN_METHOD","facebook.com"),O(ko,yo),Qr(ko,"PROVIDER_ID","github.com"),Qr(ko,"GITHUB_SIGN_IN_METHOD","github.com"),O(Oo,yo),Qr(Oo,"PROVIDER_ID","google.com"),Qr(Oo,"GOOGLE_SIGN_IN_METHOD","google.com"),O(Eo,vo),Qr(Eo,"PROVIDER_ID","twitter.com"),Qr(Eo,"TWITTER_SIGN_IN_METHOD","twitter.com"),jo.prototype.ka=function(t){return this.signInMethod==Io.EMAIL_LINK_SIGN_IN_METHOD?tc(t,Cs,{email:this.a,oobCode:this.f}):tc(t,Ws,{email:this.a,password:this.f})},jo.prototype.b=function(t,e){return this.signInMethod==Io.EMAIL_LINK_SIGN_IN_METHOD?tc(t,js,{idToken:e,email:this.a,oobCode:this.f}):tc(t,Bs,{idToken:e,email:this.a,password:this.f})},jo.prototype.c=function(t,e){return uo(this.ka(t),e)},jo.prototype.w=function(){return{email:this.a,password:this.f,signInMethod:this.signInMethod}},Zr(Io,{PROVIDER_ID:"password"}),Zr(Io,{EMAIL_LINK_SIGN_IN_METHOD:"emailLink"}),Zr(Io,{EMAIL_PASSWORD_SIGN_IN_METHOD:"password"}),Po.prototype.ka=function(t){return t.fb(No(this))},Po.prototype.b=function(t,e){var n=No(this);return n.idToken=e,tc(t,Zs,n)},Po.prototype.c=function(t,e){var n=No(this);return n.operation="REAUTH",uo(t=tc(t,Js,n),e)},Po.prototype.w=function(){var t={providerId:"phone"};return this.a.eb&&(t.verificationId=this.a.eb),this.a.cb&&(t.verificationCode=this.a.cb),this.a.La&&(t.temporaryProof=this.a.La),this.a.ea&&(t.phoneNumber=this.a.ea),t},Do.prototype.fb=function(t,e){var n=this.a.a;return Ce(e.verify()).then(function(r){if("string"!=typeof r)throw new E("argument-error","An implementation of firebase.auth.ApplicationVerifier.prototype.verify() must return a firebase.Promise that resolves with a string.");switch(e.type){case"recaptcha":var i=b(t)?t.session:null,o=b(t)?t.phoneNumber:t;return(i&&i.type==ao?i.Ha().then(function(t){return function(t,e){return tc(t,Xs,e).then(function(t){return t.phoneSessionInfo.sessionInfo})}(n,{idToken:t,phoneEnrollmentInfo:{phoneNumber:o,recaptchaToken:r}})}):i&&i.type==so?i.Ha().then(function(e){return function(t,e){return tc(t,zs,e).then(function(t){return t.phoneResponseInfo.sessionInfo})}(n,{mfaPendingCredential:e,mfaEnrollmentId:t.multiFactorHint&&t.multiFactorHint.uid||t.multiFactorUid,phoneSignInInfo:{recaptchaToken:r}})}):function(t,e){return tc(t,Vs,e)}(n,{phoneNumber:o,recaptchaToken:r})).then(function(t){return"function"==typeof e.reset&&e.reset(),t},function(t){throw"function"==typeof e.reset&&e.reset(),t});default:throw new E("argument-error",'Only firebase.auth.ApplicationVerifiers with type="recaptcha" are currently supported.')}})},Zr(Do,{PROVIDER_ID:"phone"}),Zr(Do,{PHONE_SIGN_IN_METHOD:"phone"}),Uo.prototype.getUid=function(){var t=[];return t.push(this.c),this.b&&t.push(this.b),this.f&&t.push(this.f),this.h&&t.push(this.h),t.join("-")},Uo.prototype.T=function(){return this.h},Uo.prototype.w=function(){return{type:this.c,eventId:this.b,urlResponse:this.g,sessionId:this.f,postBody:this.i,tenantId:this.h,error:this.a&&this.a.w()}};var Xo,zo=null;function Ho(t){var e="unauthorized-domain",n=void 0,r=Vn(t);t=r.a,"chrome-extension"==(r=r.c)?n=Xt("This chrome extension ID (chrome-extension://%s) is not authorized to run this operation. Add it to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.",t):"http"==r||"https"==r?n=Xt("This domain (%s) is not authorized to run this operation. Add it to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.",t):e="operation-not-supported-in-this-environment",E.call(this,e,n)}function Yo(t,e,n){E.call(this,t,n),(t=e||{}).Jb&&Qr(this,"email",t.Jb),t.ea&&Qr(this,"phoneNumber",t.ea),t.credential&&Qr(this,"credential",t.credential),t.Zb&&Qr(this,"tenantId",t.Zb)}function Go(t){if(t.code){var e=t.code||"";0==e.indexOf(T)&&(e=e.substring(T.length));var n={credential:Fo(t),Zb:t.tenantId};if(t.email)n.Jb=t.email;else if(t.phoneNumber)n.ea=t.phoneNumber;else if(!n.credential)return new E(e,t.message||void 0);return new Yo(e,n,t.message)}return null}function Ko(){}function Wo(){}function Qo(t){if(!t.f&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var e=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],n=0;n=sa(this).value)for(p(e)&&(e=e()),t=new ta(t,String(e),this.f),n&&(t.a=n),n=this;n;)n=n.a};var ca={},ua=null;function la(t){var e;if(ua||(ua=new ea(""),ca[""]=ua,ua.c=oa),!(e=ca[t])){e=new ea(t);var n=t.lastIndexOf("."),r=t.substr(n+1);(n=la(t.substr(0,n))).b||(n.b={}),n.b[r]=e,e.a=n,ca[t]=e}return e}function ha(t,e){t&&t.log(aa,e,void 0)}function fa(t){this.f=t}function da(t){_n.call(this),this.u=t,this.h=void 0,this.readyState=pa,this.status=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.l=new Headers,this.b=null,this.s="GET",this.f="",this.a=!1,this.i=la("goog.net.FetchXmlHttp"),this.m=this.c=this.g=null}O(fa,Ko),fa.prototype.a=function(){return new da(this.f)},fa.prototype.b=function(t){return function(){return t}}({}),O(da,_n);var pa=0;function ba(t){t.c.read().then(t.pc.bind(t)).catch(t.Ua.bind(t))}function ma(t){t.readyState=4,t.g=null,t.c=null,t.m=null,va(t)}function va(t){t.onreadystatechange&&t.onreadystatechange.call(t)}function ga(t){_n.call(this),this.headers=new Tn,this.D=t||null,this.c=!1,this.C=this.a=null,this.h=this.R=this.l="",this.f=this.O=this.i=this.J=!1,this.g=0,this.s=null,this.m=ya,this.u=this.S=!1}(t=da.prototype).open=function(t,e){if(this.readyState!=pa)throw this.abort(),Error("Error reopening a connection");this.s=t,this.f=e,this.readyState=1,va(this)},t.send=function(t){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.a=!0;var e={headers:this.l,method:this.s,credentials:this.h,cache:void 0};t&&(e.body=t),this.u.fetch(new Request(this.f,e)).then(this.uc.bind(this),this.Ua.bind(this))},t.abort=function(){this.response=this.responseText="",this.l=new Headers,this.status=0,this.c&&this.c.cancel("Request was aborted."),1<=this.readyState&&this.a&&4!=this.readyState&&(this.a=!1,ma(this)),this.readyState=pa},t.uc=function(t){this.a&&(this.g=t,this.b||(this.status=this.g.status,this.statusText=this.g.statusText,this.b=t.headers,this.readyState=2,va(this)),this.a&&(this.readyState=3,va(this),this.a&&("arraybuffer"===this.responseType?t.arrayBuffer().then(this.sc.bind(this),this.Ua.bind(this)):void 0!==s.ReadableStream&&"body"in t?(this.response=this.responseText="",this.c=t.body.getReader(),this.m=new TextDecoder,ba(this)):t.text().then(this.tc.bind(this),this.Ua.bind(this)))))},t.pc=function(t){if(this.a){var e=this.m.decode(t.value?t.value:new Uint8Array(0),{stream:!t.done});e&&(this.response=this.responseText+=e),t.done?ma(this):va(this),3==this.readyState&&ba(this)}},t.tc=function(t){this.a&&(this.response=this.responseText=t,ma(this))},t.sc=function(t){this.a&&(this.response=t,ma(this))},t.Ua=function(t){var e=this.i;e&&e.log(ia,"Failed to fetch url "+this.f,t instanceof Error?t:Error(t)),this.a&&ma(this)},t.setRequestHeader=function(t,e){this.l.append(t,e)},t.getResponseHeader=function(t){return this.b?this.b.get(t.toLowerCase())||"":((t=this.i)&&t.log(ia,"Attempting to get response header but no headers have been received for url: "+this.f,void 0),"")},t.getAllResponseHeaders=function(){if(!this.b){var t=this.i;return t&&t.log(ia,"Attempting to get all response headers but no headers have been received for url: "+this.f,void 0),""}t=[];for(var e=this.b.entries(),n=e.next();!n.done;)t.push((n=n.value)[0]+": "+n[1]),n=e.next();return t.join("\r\n")},Object.defineProperty(da.prototype,"withCredentials",{get:function(){return"include"===this.h},set:function(t){this.h=t?"include":"same-origin"}}),O(ga,_n);var ya="";ga.prototype.b=la("goog.net.XhrIo");var wa=/^https?$/i,_a=["POST","PUT"];function ka(t){return"content-type"==t.toLowerCase()}function xa(t,e){t.c=!1,t.a&&(t.f=!0,t.a.abort(),t.f=!1),t.h=e,Oa(t),Ea(t)}function Oa(t){t.J||(t.J=!0,t.dispatchEvent("complete"),t.dispatchEvent("error"))}function Sa(t){if(t.c&&void 0!==a)if(t.C[1]&&4==ja(t)&&2==Ta(t))ha(t.b,Ia(t,"Local request error detected and ignored"));else if(t.i&&4==ja(t))Sn(t.Vb,0,t);else if(t.dispatchEvent("readystatechange"),4==ja(t)){ha(t.b,Ia(t,"Request complete")),t.c=!1;try{var e,n=Ta(t);t:switch(n){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var r=!0;break t;default:r=!1}if(!(e=r)){var i;if(i=0===n){var o=String(t.l).match(Rn)[1]||null;if(!o&&s.self&&s.self.location){var c=s.self.location.protocol;o=c.substr(0,c.length-1)}i=!wa.test(o?o.toLowerCase():"")}e=i}if(e)t.dispatchEvent("complete"),t.dispatchEvent("success");else{try{var u=2=e.l&&e.cancel())}this.u?this.u.call(this.s,this):this.v=!0,this.a||(t=new Fa(this),Pa(this),Ra(this,!1,t))}},Aa.prototype.m=function(t,e){this.i=!1,Ra(this,t,e)},Aa.prototype.then=function(t,e,n){var r,i,o=new we(function(t,e){r=t,i=e});return La(this,r,function(t){t instanceof Fa?o.cancel():i(t)}),o.then(t,e,n)},Aa.prototype.$goog_Thenable=!0,O(Ma,L),Ma.prototype.message="Deferred has already fired",Ma.prototype.name="AlreadyCalledError",O(Fa,L),Fa.prototype.message="Deferred was canceled",Fa.prototype.name="CanceledError",Va.prototype.c=function(){throw delete Ua[this.a],this.b};var Ua={};function Ba(t){var e={},n=e.document||document,r=Et(t).toString(),i=pe(document,"SCRIPT"),o={Wb:i,Ma:void 0},a=new Aa(o),c=null,h=null!=e.timeout?e.timeout:5e3;return 0t||Wt&&ae&&!(9e?null:"string"==typeof t?t.charAt(e):t[e]}(o.Y()),r=s.FormData&&e instanceof s.FormData,!K(_a,n)||i||r||o.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),o.forEach(function(t,e){this.a.setRequestHeader(e,t)},t),t.m&&(t.a.responseType=t.m),"withCredentials"in t.a&&t.a.withCredentials!==t.S&&(t.a.withCredentials=t.S);try{Ca(t),0e;e++){var o=(0|n[e-16])+(((i=0|n[e-15])>>>7|i<<25)^(i>>>18|i<<14)^i>>>3)|0,a=(0|n[e-7])+(((r=0|n[e-2])>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)|0;n[e]=o+a|0}r=0|t.a[0],i=0|t.a[1];var s=0|t.a[2],c=0|t.a[3],u=0|t.a[4],l=0|t.a[5],h=0|t.a[6];for(o=0|t.a[7],e=0;64>e;e++){var f=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&i^r&s^i&s)|0;a=(o=o+((u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7))|0)+((a=(a=u&l^~u&h)+(0|iu[e])|0)+(0|n[e])|0)|0,o=h,h=l,l=u,u=c+a|0,c=s,s=i,i=r,r=a+f|0}t.a[0]=t.a[0]+r|0,t.a[1]=t.a[1]+i|0,t.a[2]=t.a[2]+s|0,t.a[3]=t.a[3]+c|0,t.a[4]=t.a[4]+u|0,t.a[5]=t.a[5]+l|0,t.a[6]=t.a[6]+h|0,t.a[7]=t.a[7]+o|0}function pu(t,e,n){void 0===n&&(n=e.length);var r=0,i=t.c;if("string"==typeof e)for(;r=o&&o==(0|o)))throw Error("message must be a byte array");t.f[i++]=o,i==t.b&&(du(t),i=0)}}t.c=i,t.g+=n}su.prototype.reset=function(){this.g=this.c=0,this.a=s.Int32Array?new Int32Array(this.h):J(this.h)};var bu=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function mu(){su.call(this,8,vu)}O(mu,su);var vu=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];function gu(t,e,n,r,i,o){this.v=t,this.i=e,this.l=n,this.m=r||null,this.u=i||null,this.s=o,this.h=e+":"+n,this.C=new au,this.g=new ru(this.h),this.f=null,this.b=[],this.a=this.c=null}function yu(t){return new E("invalid-cordova-configuration",t)}function wu(t,e){for(var n=0;ne.c?56-e.c:e.b-(e.c-56));for(var r=63;56<=r;r--)e.f[r]=255&n,n/=256;for(du(e),r=n=0;r>i&255;return function(t){return Y(t,function(t){return 1<(t=t.toString(16)).length?t:"0"+t}).join("")}(t)}(o),l.sessionId=o;var h=bc(t.v,t.i,t.l,e,n,null,r,t.m,l,t.u,i,t.s);return t.ma().then(function(){var e=t.h;return t.C.a.set(ou,a.w(),e)}).then(function(){var e=Ir("cordova.plugins.browsertab.isAvailable",s);if("function"!=typeof e)throw new E("invalid-cordova-configuration");var n=null;e(function(e){if(e){if("function"!=typeof(n=Ir("cordova.plugins.browsertab.openUrl",s)))throw new E("invalid-cordova-configuration");n(h)}else{if("function"!=typeof(n=Ir("cordova.InAppBrowser.open",s)))throw new E("invalid-cordova-configuration");e=Tr(),t.a=n(h,e.match(/(iPad|iPhone|iPod).*OS 7_\d/i)||e.match(/(iPad|iPhone|iPod).*OS 8_\d/i)?"_blank":"_system","location=yes")}})})}(i,t,e,n,r)}).then(function(){return new we(function(t,e){c=function(){var e=Ir("cordova.plugins.browsertab.close",s);return t(),"function"==typeof e&&e(),i.a&&"function"==typeof i.a.close&&(i.a.close(),i.a=null),!1},i.Ea(c),l=function(){Xr()&&u()},o.addEventListener("resume",u=function(){a||(a=En(2e3).then(function(){e(new E("redirect-cancelled-by-user"))}))},!1),Tr().toLowerCase().match(/android/)||o.addEventListener("visibilitychange",l,!1)}).o(function(t){return ku(i).then(function(){throw t})})}).oa(function(){u&&o.removeEventListener("resume",u,!1),l&&o.removeEventListener("visibilitychange",l,!1),a&&a.cancel(),c&&i.Sa(c),i.c=null})},t.Ea=function(t){this.b.push(t),_u(this).o(function(e){"auth/invalid-cordova-configuration"===e.code&&(e=new Uo("unknown",null,null,null,new E("no-auth-event")),t(e))})},t.Sa=function(t){Q(this.b,function(e){return e==t})};var Ou={name:"pendingRedirect",F:"session"};function Su(t){return eu(t.b,Ou,t.a)}function Eu(t,e,n,r){this.i={},this.u=0,this.D=t,this.v=e,this.m=n,this.J=r,this.h=[],this.f=!1,this.l=_(this.s,this),this.b=new Bu,this.C=new Yu,this.g=new xu(Vu(this.v,this.m)),this.c={},this.c.unknown=this.b,this.c.signInViaRedirect=this.b,this.c.linkViaRedirect=this.b,this.c.reauthViaRedirect=this.b,this.c.signInViaPopup=this.C,this.c.linkViaPopup=this.C,this.c.reauthViaPopup=this.C,this.a=Cu(this.D,this.v,this.m,j,this.J)}function Cu(t,e,n,i,o){var a=r.a.SDK_VERSION||null;return yr()?new gu(t,e,n,a,i,o):new hc(t,e,n,a,i,o)}function ju(t){t.f||(t.f=!0,t.a.Ea(t.l));var e=t.a;return t.a.ma().o(function(n){throw t.a==e&&t.reset(),n})}function Tu(t){t.a.Xb()&&ju(t).o(function(e){var n=new Uo("unknown",null,null,null,new E("operation-not-supported-in-this-environment"));Nu(e)&&t.s(n)}),t.a.Tb()||qu(t.b)}function Iu(t,e){K(t.h,e)||t.h.push(e),t.f||function(t){return t.b.get(Ou,t.a).then(function(t){return"pending"==t})}(t.g).then(function(e){e?Su(t.g).then(function(){ju(t).o(function(e){var n=new Uo("unknown",null,null,null,new E("operation-not-supported-in-this-environment"));Nu(e)&&t.s(n)})}):Tu(t)}).o(function(){Tu(t)})}function Au(t,e){Q(t.h,function(t){return t==e})}Eu.prototype.reset=function(){this.f=!1,this.a.Sa(this.l),this.a=Cu(this.D,this.v,this.m,null,this.J),this.i={}},Eu.prototype.s=function(t){if(!t)throw new E("invalid-auth-event");if(6e5<=Date.now()-this.u&&(this.i={},this.u=0),t&&t.getUid()&&this.i.hasOwnProperty(t.getUid()))return!1;for(var e=!1,n=0;nt.f&&(t.a=t.f),e)}(t,e)).then(function(){return function(){var t=s.document,e=null;return Xr()||!t?Ce():new we(function(n){e=function(){Xr()&&(t.removeEventListener("visibilitychange",e,!1),n())},t.addEventListener("visibilitychange",e,!1)}).o(function(n){throw t.removeEventListener("visibilitychange",e,!1),n})}()}).then(function(){return t.h()}).then(function(){ul(t,!0)}).o(function(e){t.i(e)&&ul(t,!1)})}function ll(t){this.f=t,this.b=this.a=null,this.c=Date.now()}function hl(t,e){void 0===e&&(e=t.b?(e=t.b).a-e.g:0),t.c=Date.now()+1e3*e}function fl(t,e){t.b=Xi(e[Qa]||""),t.a=e.refreshToken,hl(t,void 0!==(e=e.expiresIn)?Number(e):void 0)}function dl(t,e){this.a=t||null,this.b=e||null,Zr(this,{lastSignInTime:zr(e||null),creationTime:zr(t||null)})}function pl(t,e,n,r,i,o){Zr(this,{uid:t,displayName:r||null,photoURL:i||null,email:n||null,phoneNumber:o||null,providerId:e})}function bl(t,e,n){this.J=[],this.l=t.apiKey,this.m=t.appName,this.s=t.authDomain||null;var i=r.a.SDK_VERSION?jr(r.a.SDK_VERSION):null;this.a=new Ka(this.l,R(j),i),t.emulatorConfig&&ns(this.a,t.emulatorConfig),this.b=new ll(this.a),xl(this,e[Qa]),fl(this.b,e),Qr(this,"refreshToken",this.b.a),El(this,n||{}),_n.call(this),this.R=!1,this.s&&Rr()&&(this.i=Uu(this.s,this.l,this.m)),this.S=[],this.h=null,this.u=function(t){return new cl(function(){return t.I(!0)},function(t){return!(!t||"auth/network-request-failed"!=t.code)},function(){var e=t.b.c-Date.now()-3e5;return 0this.c-3e4?this.a?function(t,e){return function(t,e){return new we(function(n,r){"refresh_token"==e.grant_type&&e.refresh_token||"authorization_code"==e.grant_type&&e.code?os(t,t.l+"?key="+encodeURIComponent(t.c),function(t){t?t.error?r(nc(t)):t.access_token&&t.refresh_token?n(t):r(new E("internal-error")):r(new E("network-request-failed"))},"POST",Zn(e).toString(),t.g,t.m.get()):r(new E("internal-error"))})}(t.f,e).then(function(e){return t.b=Xi(e.access_token),t.a=e.refresh_token,hl(t,e.expires_in),{accessToken:t.b.toString(),refreshToken:t.a}}).o(function(e){throw"auth/user-token-expired"==e.code&&(t.a=null),e})}(this,{grant_type:"refresh_token",refresh_token:this.a}):Ce(null):Ce({accessToken:this.b.toString(),refreshToken:this.a})},dl.prototype.w=function(){return{lastLoginAt:this.b,createdAt:this.a}},O(bl,_n),bl.prototype.wa=function(t){this.ya=t,es(this.a,t)},bl.prototype.la=function(){return this.ya},bl.prototype.Ga=function(){return J(this.$)},bl.prototype.hb=function(){this.u.b&&(this.u.stop(),this.u.start())},Qr(bl.prototype,"providerId","firebase"),(t=bl.prototype).reload=function(){var t=this;return ql(this,jl(this).then(function(){return Ll(t).then(function(){return Ol(t)}).then(Cl)}))},t.oc=function(t){return this.I(t).then(function(t){return new Qu(t)})},t.I=function(t){var e=this;return ql(this,jl(this).then(function(){return e.b.getToken(t)}).then(function(t){if(!t)throw new E("internal-error");return t.accessToken!=e.za&&(xl(e,t.accessToken),e.dispatchEvent(new ol("tokenChanged"))),Rl(e,"refreshToken",t.refreshToken),t.accessToken}))},t.Kc=function(t){if(!(t=t.users)||!t.length)throw new E("internal-error");El(this,{uid:(t=t[0]).localId,displayName:t.displayName,photoURL:t.photoUrl,email:t.email,emailVerified:!!t.emailVerified,phoneNumber:t.phoneNumber,lastLoginAt:t.lastLoginAt,createdAt:t.createdAt,tenantId:t.tenantId});for(var e=function(t){return(t=t.providerUserInfo)&&t.length?Y(t,function(t){return new pl(t.rawId,t.providerId,t.email,t.displayName,t.photoUrl,t.phoneNumber)}):[]}(t),n=0;nthis.u&&(this.u=0),0==this.u&&lh(this)&&kl(lh(this)),this.removeAuthTokenListener(t)},t.addAuthTokenListener=function(t){var e=this;this.s.push(t),dh(this,this.h.then(function(){e.l||K(e.s,t)&&t(hh(e))}))},t.removeAuthTokenListener=function(t){Q(this.s,function(e){return e==t})},t.delete=function(){this.l=!0;for(var t=0;ti||i>=Fh.length)throw new E("internal-error","Argument validator received an unsupported number of arguments.");n=Fh[i],r=(r?"":n+" argument ")+(e.name?'"'+e.name+'" ':"")+"must be "+e.K+".";break t}r=null}}if(r)throw new E("argument-error",t+" failed: "+r)}(t=jh.prototype).Ia=function(){var t=this;return this.f?this.f:this.f=Lh(this,Ce().then(function(){if(Pr()&&!_r())return gr();throw new E("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment.")}).then(function(){return t.m.g(t.u())}).then(function(e){return t.g=e,tc(t.s,Ms,{})}).then(function(e){t.a[Ah]=e.recaptchaSiteKey}).o(function(e){throw t.f=null,e}))},t.render=function(){Nh(this);var t=this;return Lh(this,this.Ia().then(function(){if(null===t.c){var e=t.v;if(!t.i){var n=ce(e);e=function(t,e,n){var r=arguments,i=document,o=String(r[0]),a=r[1];if(!se&&a&&(a.name||a.type)){if(o=["<",o],a.name&&o.push(' name="',zt(a.name),'"'),a.type){o.push(' type="',zt(a.type),'"');var s={};vt(s,a),delete s.type,a=s}o.push(">"),o=o.join("")}return o=pe(i,o),a&&("string"==typeof a?o.className=a:Array.isArray(a)?o.className=a.join(" "):ue(o,a)),21&&void 0!==arguments[1]?arguments[1]:0,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.a;return Object(r.a)(this,n),(i=e.call(this)).source=t,i.delayTime=o,i.scheduler=a,(!Object(l.a)(o)||o<0)&&(i.delayTime=0),a&&"function"==typeof a.schedule||(i.scheduler=u.a),i}return Object(i.a)(n,[{key:"_subscribe",value:function(t){return this.scheduler.schedule(n.dispatch,this.delayTime,{source:this.source,subscriber:t})}}],[{key:"create",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.a;return new n(t,e,r)}},{key:"dispatch",value:function(t){return this.add(t.source.subscribe(t.subscriber))}}]),n}(c.a);function f(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(n){return n.lift(new d(t,e))}}var d=function(){function t(e,n){Object(r.a)(this,t),this.scheduler=e,this.delay=n}return Object(i.a)(t,[{key:"call",value:function(t,e){return new h(e,this.delay,this.scheduler).subscribe(t)}}]),t}()},"tk/3":function(t,e,n){"use strict";n.d(e,"a",function(){return N}),n.d(e,"b",function(){return Q});var r=n("Ji7U"),i=n("md7G"),o=n("foSv"),a=n("ODXe"),s=n("KQm4"),c=n("vuIU"),u=n("1OyB"),l=n("fXoL"),h=n("LRne"),f=n("HDdC"),d=n("bOdf"),p=n("pLZG"),b=n("lJxs"),m=n("ofXK");function v(t){function e(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}return function(){var n,r=Object(o.a)(t);if(e()){var a=Object(o.a)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Object(i.a)(this,n)}}var g=function t(){Object(u.a)(this,t)},y=function t(){Object(u.a)(this,t)},w=function(){function t(e){var n=this;Object(u.a)(this,t),this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?function(){n.headers=new Map,e.split("\n").forEach(function(t){var e=t.indexOf(":");if(e>0){var r=t.slice(0,e),i=r.toLowerCase(),o=t.slice(e+1).trim();n.maybeSetNormalizedName(r,i),n.headers.has(i)?n.headers.get(i).push(o):n.headers.set(i,[o])}})}:function(){n.headers=new Map,Object.keys(e).forEach(function(t){var r=e[t],i=t.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(n.headers.set(i,r),n.maybeSetNormalizedName(t,i))})}:this.headers=new Map}return Object(c.a)(t,[{key:"has",value:function(t){return this.init(),this.headers.has(t.toLowerCase())}},{key:"get",value:function(t){this.init();var e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(t){return this.init(),this.headers.get(t.toLowerCase())||null}},{key:"append",value:function(t,e){return this.clone({name:t,value:e,op:"a"})}},{key:"set",value:function(t,e){return this.clone({name:t,value:e,op:"s"})}},{key:"delete",value:function(t,e){return this.clone({name:t,value:e,op:"d"})}},{key:"maybeSetNormalizedName",value:function(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}},{key:"init",value:function(){var e=this;this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(t){return e.applyUpdate(t)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(t){var e=this;t.init(),Array.from(t.headers.keys()).forEach(function(n){e.headers.set(n,t.headers.get(n)),e.normalizedNames.set(n,t.normalizedNames.get(n))})}},{key:"clone",value:function(e){var n=new t;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n}},{key:"applyUpdate",value:function(t){var e=t.name.toLowerCase();switch(t.op){case"a":case"s":var n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);var r=("a"===t.op?this.headers.get(e):void 0)||[];r.push.apply(r,Object(s.a)(n)),this.headers.set(e,r);break;case"d":var i=t.value;if(i){var o=this.headers.get(e);if(!o)return;0===(o=o.filter(function(t){return-1===i.indexOf(t)})).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,o)}else this.headers.delete(e),this.normalizedNames.delete(e)}}},{key:"forEach",value:function(t){var e=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return t(e.normalizedNames.get(n),e.headers.get(n))})}}]),t}(),_=function(){function t(){Object(u.a)(this,t)}return Object(c.a)(t,[{key:"encodeKey",value:function(t){return x(t)}},{key:"encodeValue",value:function(t){return x(t)}},{key:"decodeKey",value:function(t){return decodeURIComponent(t)}},{key:"decodeValue",value:function(t){return decodeURIComponent(t)}}]),t}();function k(t,e){var n=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(function(t){var r=t.indexOf("="),i=-1==r?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,r)),e.decodeValue(t.slice(r+1))],o=Object(a.a)(i,2),s=o[0],c=o[1],u=n.get(s)||[];u.push(c),n.set(s,u)}),n}function x(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 O=function(){function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Object(u.a)(this,t),this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new _,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=k(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(function(t){var r=n.fromObject[t];e.map.set(t,Array.isArray(r)?r:[r])})):this.map=null}return Object(c.a)(t,[{key:"has",value:function(t){return this.init(),this.map.has(t)}},{key:"get",value:function(t){this.init();var e=this.map.get(t);return e?e[0]:null}},{key:"getAll",value:function(t){return this.init(),this.map.get(t)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(t,e){return this.clone({param:t,value:e,op:"a"})}},{key:"appendAll",value:function(t){var e=[];return Object.keys(t).forEach(function(n){var r=t[n];Array.isArray(r)?r.forEach(function(t){e.push({param:n,value:t,op:"a"})}):e.push({param:n,value:r,op:"a"})}),this.clone(e)}},{key:"set",value:function(t,e){return this.clone({param:t,value:e,op:"s"})}},{key:"delete",value:function(t,e){return this.clone({param:t,value:e,op:"d"})}},{key:"toString",value:function(){var t=this;return this.init(),this.keys().map(function(e){var n=t.encoder.encodeKey(e);return t.map.get(e).map(function(e){return n+"="+t.encoder.encodeValue(e)}).join("&")}).filter(function(t){return""!==t}).join("&")}},{key:"clone",value:function(e){var n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(e),n}},{key:"init",value:function(){var t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(e){return t.map.set(e,t.cloneFrom.map.get(e))}),this.updates.forEach(function(e){switch(e.op){case"a":case"s":var n=("a"===e.op?t.map.get(e.param):void 0)||[];n.push(e.value),t.map.set(e.param,n);break;case"d":if(void 0===e.value){t.map.delete(e.param);break}var r=t.map.get(e.param)||[],i=r.indexOf(e.value);-1!==i&&r.splice(i,1),r.length>0?t.map.set(e.param,r):t.map.delete(e.param)}}),this.cloneFrom=this.updates=null)}}]),t}();function S(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function E(t){return"undefined"!=typeof Blob&&t instanceof Blob}function C(t){return"undefined"!=typeof FormData&&t instanceof FormData}var j=function(){function t(e,n,r,i){var o;if(Object(u.a)(this,t),this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==r?r:null,o=i):o=r,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.params&&(this.params=o.params)),this.headers||(this.headers=new w),this.params){var a=this.params.toString();if(0===a.length)this.urlWithParams=n;else{var s=n.indexOf("?");this.urlWithParams=n+(-1===s?"?":s0&&void 0!==arguments[0]?arguments[0]:{},n=e.method||this.method,r=e.url||this.url,i=e.responseType||this.responseType,o=void 0!==e.body?e.body:this.body,a=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,s=void 0!==e.reportProgress?e.reportProgress:this.reportProgress,c=e.headers||this.headers,u=e.params||this.params;return void 0!==e.setHeaders&&(c=Object.keys(e.setHeaders).reduce(function(t,n){return t.set(n,e.setHeaders[n])},c)),e.setParams&&(u=Object.keys(e.setParams).reduce(function(t,n){return t.set(n,e.setParams[n])},u)),new t(n,r,o,{params:u,headers:c,reportProgress:s,responseType:i,withCredentials:a})}}]),t}(),T=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({}),I=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";Object(u.a)(this,t),this.headers=e.headers||new w,this.status=void 0!==e.status?e.status:n,this.statusText=e.statusText||r,this.url=e.url||null,this.ok=this.status>=200&&this.status<300},A=function(t){Object(r.a)(n,t);var e=v(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(u.a)(this,n),(t=e.call(this,r)).type=T.ResponseHeader,t}return Object(c.a)(n,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}]),n}(I),R=function(t){Object(r.a)(n,t);var e=v(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(u.a)(this,n),(t=e.call(this,r)).type=T.Response,t.body=void 0!==r.body?r.body:null,t}return Object(c.a)(n,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}]),n}(I),P=function(t){Object(r.a)(n,t);var e=v(n);function n(t){var r;return Object(u.a)(this,n),(r=e.call(this,t,0,"Unknown Error")).name="HttpErrorResponse",r.ok=!1,r.message=r.status>=200&&r.status<300?"Http failure during parsing for ".concat(t.url||"(unknown url)"):"Http failure response for ".concat(t.url||"(unknown url)",": ").concat(t.status," ").concat(t.statusText),r.error=t.error||null,r}return n}(I);function L(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}var N=function(){var t=function(){function t(e){Object(u.a)(this,t),this.handler=e}return Object(c.a)(t,[{key:"request",value:function(t,e){var n,r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t instanceof j)n=t;else{var o=void 0;o=i.headers instanceof w?i.headers:new w(i.headers);var a=void 0;i.params&&(a=i.params instanceof O?i.params:new O({fromObject:i.params})),n=new j(t,e,void 0!==i.body?i.body:null,{headers:o,params:a,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}var s=Object(h.a)(n).pipe(Object(d.a)(function(t){return r.handler.handle(t)}));if(t instanceof j||"events"===i.observe)return s;var c=s.pipe(Object(p.a)(function(t){return t instanceof R}));switch(i.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return c.pipe(Object(b.a)(function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return c.pipe(Object(b.a)(function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return c.pipe(Object(b.a)(function(t){if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return c.pipe(Object(b.a)(function(t){return t.body}))}case"response":return c;default:throw new Error("Unreachable: unhandled observe type ".concat(i.observe,"}"))}}},{key:"delete",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",t,e)}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",t,e)}},{key:"head",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",t,e)}},{key:"jsonp",value:function(t,e){return this.request("JSONP",t,{params:(new O).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",t,e)}},{key:"patch",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",t,L(n,e))}},{key:"post",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",t,L(n,e))}},{key:"put",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",t,L(n,e))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.cc(g))},t.\u0275prov=l.Ob({token:t,factory:t.\u0275fac}),t}(),D=function(){function t(e,n){Object(u.a)(this,t),this.next=e,this.interceptor=n}return Object(c.a)(t,[{key:"handle",value:function(t){return this.interceptor.intercept(t,this.next)}}]),t}(),M=new l.r("HTTP_INTERCEPTORS"),F=function(){var t=function(){function t(){Object(u.a)(this,t)}return Object(c.a)(t,[{key:"intercept",value:function(t,e){return e.handle(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=l.Ob({token:t,factory:t.\u0275fac}),t}(),V=/^\)\]\}',?\n/,U=function t(){Object(u.a)(this,t)},B=function(){var t=function(){function t(){Object(u.a)(this,t)}return Object(c.a)(t,[{key:"build",value:function(){return new XMLHttpRequest}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=l.Ob({token:t,factory:t.\u0275fac}),t}(),q=function(){var t=function(){function t(e){Object(u.a)(this,t),this.xhrFactory=e}return Object(c.a)(t,[{key:"handle",value:function(t){var e=this;if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new f.a(function(n){var r=e.xhrFactory.build();if(r.open(t.method,t.urlWithParams),t.withCredentials&&(r.withCredentials=!0),t.headers.forEach(function(t,e){return r.setRequestHeader(t,e.join(","))}),t.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){var i=t.detectContentTypeHeader();null!==i&&r.setRequestHeader("Content-Type",i)}if(t.responseType){var o=t.responseType.toLowerCase();r.responseType="json"!==o?o:"text"}var a=t.serializeBody(),s=null,c=function(){if(null!==s)return s;var e=1223===r.status?204:r.status,n=r.statusText||"OK",i=new w(r.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(r)||t.url;return s=new A({headers:i,status:e,statusText:n,url:o})},u=function(){var e=c(),i=e.headers,o=e.status,a=e.statusText,s=e.url,u=null;204!==o&&(u=void 0===r.response?r.responseText:r.response),0===o&&(o=u?200:0);var l=o>=200&&o<300;if("json"===t.responseType&&"string"==typeof u){var h=u;u=u.replace(V,"");try{u=""!==u?JSON.parse(u):null}catch(f){u=h,l&&(l=!1,u={error:f,text:u})}}l?(n.next(new R({body:u,headers:i,status:o,statusText:a,url:s||void 0})),n.complete()):n.error(new P({error:u,headers:i,status:o,statusText:a,url:s||void 0}))},l=function(t){var e=c(),i=new P({error:t,status:r.status||0,statusText:r.statusText||"Unknown Error",url:e.url||void 0});n.error(i)},h=!1,f=function(e){h||(n.next(c()),h=!0);var i={type:T.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(i.total=e.total),"text"===t.responseType&&r.responseText&&(i.partialText=r.responseText),n.next(i)},d=function(t){var e={type:T.UploadProgress,loaded:t.loaded};t.lengthComputable&&(e.total=t.total),n.next(e)};return r.addEventListener("load",u),r.addEventListener("error",l),r.addEventListener("timeout",l),r.addEventListener("abort",l),t.reportProgress&&(r.addEventListener("progress",f),null!==a&&r.upload&&r.upload.addEventListener("progress",d)),r.send(a),n.next({type:T.Sent}),function(){r.removeEventListener("error",l),r.removeEventListener("abort",l),r.removeEventListener("load",u),r.removeEventListener("timeout",l),t.reportProgress&&(r.removeEventListener("progress",f),null!==a&&r.upload&&r.upload.removeEventListener("progress",d)),r.readyState!==r.DONE&&r.abort()}})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.cc(U))},t.\u0275prov=l.Ob({token:t,factory:t.\u0275fac}),t}(),X=new l.r("XSRF_COOKIE_NAME"),z=new l.r("XSRF_HEADER_NAME"),H=function t(){Object(u.a)(this,t)},Y=function(){var t=function(){function t(e,n,r){Object(u.a)(this,t),this.doc=e,this.platform=n,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return Object(c.a)(t,[{key:"getToken",value:function(){if("server"===this.platform)return null;var t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Object(m.z)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.cc(m.e),l.cc(l.D),l.cc(X))},t.\u0275prov=l.Ob({token:t,factory:t.\u0275fac}),t}(),G=function(){var t=function(){function t(e,n){Object(u.a)(this,t),this.tokenService=e,this.headerName=n}return Object(c.a)(t,[{key:"intercept",value:function(t,e){var n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);var r=this.tokenService.getToken();return null===r||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,r)})),e.handle(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.cc(H),l.cc(z))},t.\u0275prov=l.Ob({token:t,factory:t.\u0275fac}),t}(),K=function(){var t=function(){function t(e,n){Object(u.a)(this,t),this.backend=e,this.injector=n,this.chain=null}return Object(c.a)(t,[{key:"handle",value:function(t){if(null===this.chain){var e=this.injector.get(M,[]);this.chain=e.reduceRight(function(t,e){return new D(t,e)},this.backend)}return this.chain.handle(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.cc(y),l.cc(l.s))},t.\u0275prov=l.Ob({token:t,factory:t.\u0275fac}),t}(),W=function(){var t=function(){function t(){Object(u.a)(this,t)}return Object(c.a)(t,null,[{key:"disable",value:function(){return{ngModule:t,providers:[{provide:G,useClass:F}]}}},{key:"withOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:t,providers:[e.cookieName?{provide:X,useValue:e.cookieName}:[],e.headerName?{provide:z,useValue:e.headerName}:[]]}}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=l.Qb({type:t}),t.\u0275inj=l.Pb({providers:[G,{provide:M,useExisting:G,multi:!0},{provide:H,useClass:Y},{provide:X,useValue:"XSRF-TOKEN"},{provide:z,useValue:"X-XSRF-TOKEN"}]}),t}(),Q=function(){var t=function t(){Object(u.a)(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=l.Qb({type:t}),t.\u0275inj=l.Pb({providers:[N,{provide:g,useClass:K},q,{provide:y,useExisting:q},B,{provide:U,useExisting:B}],imports:[[W.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t}()},tyNb:function(t,e,n){"use strict";n.d(e,"a",function(){return Jt}),n.d(e,"b",function(){return Sn}),n.d(e,"c",function(){return Cn}),n.d(e,"d",function(){return jn}),n.d(e,"e",function(){return Bn}),n.d(e,"f",function(){return In});var r=n("rePB"),i=n("JX7q"),o=n("KQm4"),a=n("vuIU"),s=n("Ji7U"),c=n("md7G"),u=n("foSv"),l=n("1OyB"),h=n("ofXK"),f=n("fXoL"),d=n("Cfvw"),p=n("LRne"),b=n("2Vo4"),m=n("itXk"),v=n("HDdC"),g=n("sVev"),y=n("GyhO"),w=n("NXyV"),_=n("EY2u"),k=n("EQ5u"),x=n("XNiG"),O=n("lJxs"),S=n("eIep"),E=n("IzEk"),C=n("JX91"),j=n("Kqap"),T=n("pLZG"),I=n("JIr8"),A=n("bOdf"),R=n("7o/Q"),P=n("4I5i");function L(t){return function(e){return 0===t?Object(_.b)():e.lift(new N(t))}}var N=function(){function t(e){if(Object(l.a)(this,t),this.total=e,this.total<0)throw new P.a}return Object(a.a)(t,[{key:"call",value:function(t,e){return e.subscribe(new D(t,this.total))}}]),t}(),D=function(t){Object(s.a)(n,t);var e=function(t){function e(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}return function(){var n,r=Object(u.a)(t);if(e()){var i=Object(u.a)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(c.a)(this,n)}}(n);function n(t,r){var i;return Object(l.a)(this,n),(i=e.call(this,t)).total=r,i.ring=new Array,i.count=0,i}return Object(a.a)(n,[{key:"_next",value:function(t){var e=this.ring,n=this.total,r=this.count++;e.length0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i2&&void 0!==arguments[2]?arguments[2]:"imperative",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return Object(l.a)(this,n),(i=e.call(this,t,r)).navigationTrigger=o,i.restoredState=a,i}return Object(a.a)(n,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(G),W=function(t){Object(s.a)(n,t);var e=Y(n);function n(t,r,i){var o;return Object(l.a)(this,n),(o=e.call(this,t,r)).urlAfterRedirects=i,o}return Object(a.a)(n,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),n}(G),Q=function(t){Object(s.a)(n,t);var e=Y(n);function n(t,r,i){var o;return Object(l.a)(this,n),(o=e.call(this,t,r)).reason=i,o}return Object(a.a)(n,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(G),Z=function(t){Object(s.a)(n,t);var e=Y(n);function n(t,r,i){var o;return Object(l.a)(this,n),(o=e.call(this,t,r)).error=i,o}return Object(a.a)(n,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),n}(G),J=function(t){Object(s.a)(n,t);var e=Y(n);function n(t,r,i,o){var a;return Object(l.a)(this,n),(a=e.call(this,t,r)).urlAfterRedirects=i,a.state=o,a}return Object(a.a)(n,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(G),$=function(t){Object(s.a)(n,t);var e=Y(n);function n(t,r,i,o){var a;return Object(l.a)(this,n),(a=e.call(this,t,r)).urlAfterRedirects=i,a.state=o,a}return Object(a.a)(n,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(G),tt=function(t){Object(s.a)(n,t);var e=Y(n);function n(t,r,i,o,a){var s;return Object(l.a)(this,n),(s=e.call(this,t,r)).urlAfterRedirects=i,s.state=o,s.shouldActivate=a,s}return Object(a.a)(n,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),n}(G),et=function(t){Object(s.a)(n,t);var e=Y(n);function n(t,r,i,o){var a;return Object(l.a)(this,n),(a=e.call(this,t,r)).urlAfterRedirects=i,a.state=o,a}return Object(a.a)(n,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(G),nt=function(t){Object(s.a)(n,t);var e=Y(n);function n(t,r,i,o){var a;return Object(l.a)(this,n),(a=e.call(this,t,r)).urlAfterRedirects=i,a.state=o,a}return Object(a.a)(n,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(G),rt=function(){function t(e){Object(l.a)(this,t),this.route=e}return Object(a.a)(t,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),t}(),it=function(){function t(e){Object(l.a)(this,t),this.route=e}return Object(a.a)(t,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),t}(),ot=function(){function t(e){Object(l.a)(this,t),this.snapshot=e}return Object(a.a)(t,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),at=function(){function t(e){Object(l.a)(this,t),this.snapshot=e}return Object(a.a)(t,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),st=function(){function t(e){Object(l.a)(this,t),this.snapshot=e}return Object(a.a)(t,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),ct=function(){function t(e){Object(l.a)(this,t),this.snapshot=e}return Object(a.a)(t,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),ut=function(){function t(e,n,r){Object(l.a)(this,t),this.routerEvent=e,this.position=n,this.anchor=r}return Object(a.a)(t,[{key:"toString",value:function(){var t=this.position?"".concat(this.position[0],", ").concat(this.position[1]):null;return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(t,"')")}}]),t}(),lt="primary",ht=function(){function t(e){Object(l.a)(this,t),this.params=e||{}}return Object(a.a)(t,[{key:"has",value:function(t){return Object.prototype.hasOwnProperty.call(this.params,t)}},{key:"get",value:function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e[0]:e}return null}},{key:"getAll",value:function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e:[e]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),t}();function ft(t){return new ht(t)}function dt(t){var e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function pt(t,e,n){var r=n.path.split("/");if(r.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.length0?t[t.length-1]:null}function yt(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function wt(t){return Object(f.ub)(t)?t:Object(f.vb)(t)?Object(d.a)(Promise.resolve(t)):Object(p.a)(t)}function _t(t,e,n){return n?function(t,e){return bt(t,e)}(t.queryParams,e.queryParams)&&kt(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(function(n){return mt(t[n],e[n])})}(t.queryParams,e.queryParams)&&xt(t.root,e.root)}function kt(t,e){if(!jt(t.segments,e.segments))return!1;if(t.numberOfChildren!==e.numberOfChildren)return!1;for(var n in e.children){if(!t.children[n])return!1;if(!kt(t.children[n],e.children[n]))return!1}return!0}function xt(t,e){return Ot(t,e,e.segments)}function Ot(t,e,n){if(t.segments.length>n.length)return!!jt(t.segments.slice(0,n.length),n)&&!e.hasChildren();if(t.segments.length===n.length){if(!jt(t.segments,n))return!1;for(var r in e.children){if(!t.children[r])return!1;if(!xt(t.children[r],e.children[r]))return!1}return!0}var i=n.slice(0,t.segments.length),o=n.slice(t.segments.length);return!!jt(t.segments,i)&&!!t.children.primary&&Ot(t.children.primary,e,o)}var St=function(){function t(e,n,r){Object(l.a)(this,t),this.root=e,this.queryParams=n,this.fragment=r}return Object(a.a)(t,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=ft(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return At.serialize(this)}}]),t}(),Et=function(){function t(e,n){var r=this;Object(l.a)(this,t),this.segments=e,this.children=n,this.parent=null,yt(n,function(t,e){return t.parent=r})}return Object(a.a)(t,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return Rt(this)}}]),t}(),Ct=function(){function t(e,n){Object(l.a)(this,t),this.path=e,this.parameters=n}return Object(a.a)(t,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=ft(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return Vt(this)}}]),t}();function jt(t,e){return t.length===e.length&&t.every(function(t,n){return t.path===e[n].path})}var Tt=function t(){Object(l.a)(this,t)},It=function(){function t(){Object(l.a)(this,t)}return Object(a.a)(t,[{key:"parse",value:function(t){var e=new zt(t);return new St(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}},{key:"serialize",value:function(t){var e,n,r="/".concat(Pt(t.root,!0)),i=(e=t.queryParams,(n=Object.keys(e).map(function(t){var n=e[t];return Array.isArray(n)?n.map(function(e){return"".concat(Nt(t),"=").concat(Nt(e))}).join("&"):"".concat(Nt(t),"=").concat(Nt(n))})).length?"?".concat(n.join("&")):""),o="string"==typeof t.fragment?"#".concat(encodeURI(t.fragment)):"";return"".concat(r).concat(i).concat(o)}}]),t}(),At=new It;function Rt(t){return t.segments.map(function(t){return Vt(t)}).join("/")}function Pt(t,e){if(!t.hasChildren())return Rt(t);if(e){var n=t.children.primary?Pt(t.children.primary,!1):"",r=[];return yt(t.children,function(t,e){e!==lt&&r.push("".concat(e,":").concat(Pt(t,!1)))}),r.length>0?"".concat(n,"(").concat(r.join("//"),")"):n}var i=function(t,e){var n=[];return yt(t.children,function(t,r){r===lt&&(n=n.concat(e(t,r)))}),yt(t.children,function(t,r){r!==lt&&(n=n.concat(e(t,r)))}),n}(t,function(e,n){return n===lt?[Pt(t.children.primary,!1)]:["".concat(n,":").concat(Pt(e,!1))]});return 1===Object.keys(t.children).length&&null!=t.children.primary?"".concat(Rt(t),"/").concat(i[0]):"".concat(Rt(t),"/(").concat(i.join("//"),")")}function Lt(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Nt(t){return Lt(t).replace(/%3B/gi,";")}function Dt(t){return Lt(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Mt(t){return decodeURIComponent(t)}function Ft(t){return Mt(t.replace(/\+/g,"%20"))}function Vt(t){return"".concat(Dt(t.path)).concat((e=t.parameters,Object.keys(e).map(function(t){return";".concat(Dt(t),"=").concat(Dt(e[t]))}).join("")));var e}var Ut=/^[^\/()?;=#]+/;function Bt(t){var e=t.match(Ut);return e?e[0]:""}var qt=/^[^=?&#]+/,Xt=/^[^?&#]+/,zt=function(){function t(e){Object(l.a)(this,t),this.url=e,this.remaining=e}return Object(a.a)(t,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Et([],{}):new Et([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value: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.primary=new Et(t,e)),n}},{key:"parseSegment",value:function(){var t=Bt(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(t),new Ct(Mt(t),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t}},{key:"parseParam",value:function(t){var e=Bt(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=Bt(this.remaining);r&&this.capture(n=r)}t[Mt(e)]=Mt(n)}}},{key:"parseQueryParam",value:function(t){var e,n=(e=this.remaining.match(qt))?e[0]:"";if(n){this.capture(n);var r="";if(this.consumeOptional("=")){var i=function(t){var e=t.match(Xt);return e?e[0]:""}(this.remaining);i&&this.capture(r=i)}var o=Ft(n),a=Ft(r);if(t.hasOwnProperty(o)){var s=t[o];Array.isArray(s)||(t[o]=s=[s]),s.push(a)}else t[o]=a}}},{key:"parseParens",value:function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=Bt(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '".concat(this.url,"'"));var i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=lt);var o=this.parseChildren();e[i]=1===Object.keys(o).length?o.primary:new Et([],o),this.consumeOptional("//")}return e}},{key:"peekStartsWith",value:function(t){return this.remaining.startsWith(t)}},{key:"consumeOptional",value:function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}},{key:"capture",value:function(t){if(!this.consumeOptional(t))throw new Error('Expected "'.concat(t,'".'))}}]),t}(),Ht=function(){function t(e){Object(l.a)(this,t),this._root=e}return Object(a.a)(t,[{key:"root",get:function(){return this._root.value}},{key:"parent",value:function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}},{key:"children",value:function(t){var e=Yt(t,this._root);return e?e.children.map(function(t){return t.value}):[]}},{key:"firstChild",value:function(t){var e=Yt(t,this._root);return e&&e.children.length>0?e.children[0].value:null}},{key:"siblings",value:function(t){var e=Gt(t,this._root);return e.length<2?[]:e[e.length-2].children.map(function(t){return t.value}).filter(function(e){return e!==t})}},{key:"pathFromRoot",value:function(t){return Gt(t,this._root).map(function(t){return t.value})}}]),t}();function Yt(t,e){if(t===e.value)return e;var n=!0,r=!1,i=void 0;try{for(var o,a=e.children[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=Yt(t,o.value);if(s)return s}}catch(c){r=!0,i=c}finally{try{n||null==a.return||a.return()}finally{if(r)throw i}}return null}function Gt(t,e){if(t===e.value)return[e];var n=!0,r=!1,i=void 0;try{for(var o,a=e.children[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=Gt(t,o.value);if(s.length)return s.unshift(e),s}}catch(c){r=!0,i=c}finally{try{n||null==a.return||a.return()}finally{if(r)throw i}}return[]}var Kt=function(){function t(e,n){Object(l.a)(this,t),this.value=e,this.children=n}return Object(a.a)(t,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),t}();function Wt(t){var e={};return t&&t.children.forEach(function(t){return e[t.value.outlet]=t}),e}var Qt=function(t){Object(s.a)(n,t);var e=Y(n);function n(t,r){var o;return Object(l.a)(this,n),(o=e.call(this,t)).snapshot=r,re(Object(i.a)(o),t),o}return Object(a.a)(n,[{key:"toString",value:function(){return this.snapshot.toString()}}]),n}(Ht);function Zt(t,e){var n=function(t,e){var n=new ee([],{},{},"",{},lt,e,null,t.root,-1,{});return new ne("",new Kt(n,[]))}(t,e),r=new b.a([new Ct("",{})]),i=new b.a({}),o=new b.a({}),a=new b.a({}),s=new b.a(""),c=new Jt(r,i,a,s,o,lt,e,n.root);return c.snapshot=n.root,new Qt(new Kt(c,[]),n)}var Jt=function(){function t(e,n,r,i,o,a,s,c){Object(l.a)(this,t),this.url=e,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=s,this._futureSnapshot=c}return Object(a.a)(t,[{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe(Object(O.a)(function(t){return ft(t)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(O.a)(function(t){return ft(t)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),t}();function $t(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",n=t.pathFromRoot,r=0;if("always"!==e)for(r=n.length-1;r>=1;){var i=n[r],o=n[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(o.component)break;r--}}return te(n.slice(r))}function te(t){return t.reduce(function(t,e){return{params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}},{params:{},data:{},resolve:{}})}var ee=function(){function t(e,n,r,i,o,a,s,c,u,h,f){Object(l.a)(this,t),this.url=e,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=s,this.routeConfig=c,this._urlSegment=u,this._lastPathIndex=h,this._resolve=f}return Object(a.a)(t,[{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=ft(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=ft(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){var t=this.url.map(function(t){return t.toString()}).join("/"),e=this.routeConfig?this.routeConfig.path:"";return"Route(url:'".concat(t,"', path:'").concat(e,"')")}}]),t}(),ne=function(t){Object(s.a)(n,t);var e=Y(n);function n(t,r){var o;return Object(l.a)(this,n),(o=e.call(this,r)).url=t,re(Object(i.a)(o),r),o}return Object(a.a)(n,[{key:"toString",value:function(){return ie(this._root)}}]),n}(Ht);function re(t,e){e.value._routerState=t,e.children.forEach(function(e){return re(t,e)})}function ie(t){var e=t.children.length>0?" { ".concat(t.children.map(ie).join(", ")," } "):"";return"".concat(t.value).concat(e)}function oe(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,bt(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),bt(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(var n=0;ni;){if(o-=i,!(r=r.parent))throw new Error("Invalid number of '../'");i=r.segments.length}return new be(r,!1,i-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,t.numberOfDoubleDots)}(a,e,t),c=s.processChildren?ve(s.segmentGroup,s.index,a.commands):me(s.segmentGroup,s.index,a.commands);return fe(s.segmentGroup,c,e,r,i)}function le(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function he(t){return"object"==typeof t&&null!=t&&t.outlets}function fe(t,e,n,r,i){var o={};return r&&yt(r,function(t,e){o[e]=Array.isArray(t)?t.map(function(t){return"".concat(t)}):"".concat(t)}),new St(n.root===t?e:de(n.root,t,e),o,i)}function de(t,e,n){var r={};return yt(t.children,function(t,i){r[i]=t===e?n:de(t,e,n)}),new Et(t.segments,r)}var pe=function(){function t(e,n,r){if(Object(l.a)(this,t),this.isAbsolute=e,this.numberOfDoubleDots=n,this.commands=r,e&&r.length>0&&le(r[0]))throw new Error("Root segment cannot have matrix parameters");var i=r.find(he);if(i&&i!==gt(r))throw new Error("{outlets:{}} has to be the last command")}return Object(a.a)(t,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),t}(),be=function t(e,n,r){Object(l.a)(this,t),this.segmentGroup=e,this.processChildren=n,this.index=r};function me(t,e,n){if(t||(t=new Et([],{})),0===t.segments.length&&t.hasChildren())return ve(t,e,n);var r=function(t,e,n){for(var r=0,i=e,o={match:!1,pathIndex:0,commandIndex:0};i=n.length)return o;var a=t.segments[i],s=n[r];if(he(s))break;var c="".concat(s),u=r0&&void 0===c)break;if(c&&u&&"object"==typeof u&&void 0===u.outlets){if(!_e(c,u,a))return o;r+=2}else{if(!_e(c,{},a))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(t,e,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex1&&void 0!==arguments[1]?arguments[1]:"",n=0;n0)?Object.assign({},De):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};var i=(e.matcher||pt)(n,t,e);if(!i)return Object.assign({},De);var o={};yt(i.posParams,function(t,e){o[e]=t.path});var a=i.consumed.length>0?Object.assign(Object.assign({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:a,positionalParamSegments:null!==(r=i.posParams)&&void 0!==r?r:{}}}function Fe(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(n.length>0&&Be(t,n,r)){var o=new Et(e,Ue(t,e,r,new Et(n,t.children)));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:[]}}if(0===n.length&&qe(t,n,r)){var a=new Et(t.segments,Ve(t,e,n,r,t.children,i));return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:n}}var s=new Et(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}function Ve(t,e,n,r,i,o){var a={},s=!0,c=!1,u=void 0;try{for(var l,h=r[Symbol.iterator]();!(s=(l=h.next()).done);s=!0){var f=l.value;if(Xe(t,n,f)&&!i[Le(f)]){var d=new Et([],{});d._sourceSegment=t,d._segmentIndexShift="legacy"===o?t.segments.length:e.length,a[Le(f)]=d}}}catch(p){c=!0,u=p}finally{try{s||null==h.return||h.return()}finally{if(c)throw u}}return Object.assign(Object.assign({},i),a)}function Ue(t,e,n,r){var i={};i.primary=r,r._sourceSegment=t,r._segmentIndexShift=e.length;var o=!0,a=!1,s=void 0;try{for(var c,u=n[Symbol.iterator]();!(o=(c=u.next()).done);o=!0){var l=c.value;if(""===l.path&&Le(l)!==lt){var h=new Et([],{});h._sourceSegment=t,h._segmentIndexShift=e.length,i[Le(l)]=h}}}catch(f){a=!0,s=f}finally{try{o||null==u.return||u.return()}finally{if(a)throw s}}return i}function Be(t,e,n){return n.some(function(n){return Xe(t,e,n)&&Le(n)!==lt})}function qe(t,e,n){return n.some(function(n){return Xe(t,e,n)})}function Xe(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path}function ze(t,e,n,r){return!!(Le(t)===r||r!==lt&&Xe(e,n,t))&&("**"===t.path||Me(e,t,n).matched)}function He(t,e,n){return 0===e.length&&!t.children[n]}var Ye=function t(e){Object(l.a)(this,t),this.segmentGroup=e||null},Ge=function t(e){Object(l.a)(this,t),this.urlTree=e};function Ke(t){return new v.a(function(e){return e.error(new Ye(t))})}function We(t){return new v.a(function(e){return e.error(new Ge(t))})}function Qe(t){return new v.a(function(e){return e.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(t,"'")))})}var Ze=function(){function t(e,n,r,i,o){Object(l.a)(this,t),this.configLoader=n,this.urlSerializer=r,this.urlTree=i,this.config=o,this.allowRedirects=!0,this.ngModule=e.get(f.z)}return Object(a.a)(t,[{key:"apply",value:function(){var t=this,e=Fe(this.urlTree.root,[],[],this.config).segmentGroup,n=new Et(e.segments,e.children);return this.expandSegmentGroup(this.ngModule,this.config,n,lt).pipe(Object(O.a)(function(e){return t.createUrlTree(Je(e),t.urlTree.queryParams,t.urlTree.fragment)})).pipe(Object(I.a)(function(e){if(e instanceof Ge)return t.allowRedirects=!1,t.match(e.urlTree);if(e instanceof Ye)throw t.noMatchError(e);throw e}))}},{key:"match",value:function(t){var e=this;return this.expandSegmentGroup(this.ngModule,this.config,t.root,lt).pipe(Object(O.a)(function(n){return e.createUrlTree(Je(n),t.queryParams,t.fragment)})).pipe(Object(I.a)(function(t){if(t instanceof Ye)throw e.noMatchError(t);throw t}))}},{key:"noMatchError",value:function(t){return new Error("Cannot match any routes. URL Segment: '".concat(t.segmentGroup,"'"))}},{key:"createUrlTree",value:function(t,e,n){var i=t.segments.length>0?new Et([],Object(r.a)({},lt,t)):t;return new St(i,e,n)}},{key:"expandSegmentGroup",value:function(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(Object(O.a)(function(t){return new Et([],t)})):this.expandSegment(t,n,e,n.segments,r,!0)}},{key:"expandChildren",value:function(t,e,n){for(var r=this,i=[],o=0,a=Object.keys(n.children);o=2;return function(r){return r.pipe(t?Object(T.a)(function(e,n){return t(e,n,r)}):V.a,L(1),n?Object(F.a)(e):Object(M.a)(function(){return new g.a}))}}())}},{key:"expandSegment",value:function(t,e,n,r,i,o){var a=this;return Object(d.a)(n).pipe(Object(A.a)(function(s){return a.expandSegmentAgainstRoute(t,e,n,s,r,i,o).pipe(Object(I.a)(function(t){if(t instanceof Ye)return Object(p.a)(null);throw t}))}),Object(U.a)(function(t){return!!t}),Object(I.a)(function(t,n){if(t instanceof g.a||"EmptyError"===t.name){if(He(e,r,i))return Object(p.a)(new Et([],{}));throw new Ye(e)}throw t}))}},{key:"expandSegmentAgainstRoute",value:function(t,e,n,r,i,o,a){return ze(r,e,i,o)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,i,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o):Ke(e):Ke(e)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(t,e,n,r,i,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(t,e,n,r){var i=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?We(o):this.lineralizeSegments(n,o).pipe(Object(B.a)(function(n){var o=new Et(n,{});return i.expandSegment(t,o,e,n,r,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(t,e,n,r,i,o){var a=this,s=Me(e,r,i),c=s.consumedSegments,u=s.lastChild,l=s.positionalParamSegments;if(!s.matched)return Ke(e);var h=this.applyRedirectCommands(c,r.redirectTo,l);return r.redirectTo.startsWith("/")?We(h):this.lineralizeSegments(r,h).pipe(Object(B.a)(function(r){return a.expandSegment(t,e,n,r.concat(i.slice(u)),o,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(t,e,n,r,i){var o=this;if("**"===n.path)return n.loadChildren?(n._loadedConfig?Object(p.a)(n._loadedConfig):this.configLoader.load(t.injector,n)).pipe(Object(O.a)(function(t){return n._loadedConfig=t,new Et(r,{})})):Object(p.a)(new Et(r,{}));var a=Me(e,n,r),s=a.consumedSegments,c=a.lastChild;if(!a.matched)return Ke(e);var u=r.slice(c);return this.getChildConfig(t,n,r).pipe(Object(B.a)(function(t){var r=t.module,a=t.routes,c=Fe(e,s,u,a),l=c.segmentGroup,h=c.slicedSegments,f=new Et(l.segments,l.children);if(0===h.length&&f.hasChildren())return o.expandChildren(r,a,f).pipe(Object(O.a)(function(t){return new Et(s,t)}));if(0===a.length&&0===h.length)return Object(p.a)(new Et(s,{}));var d=Le(n)===i;return o.expandSegment(r,f,a,h,d?lt:i,!0).pipe(Object(O.a)(function(t){return new Et(s.concat(t.segments),t.children)}))}))}},{key:"getChildConfig",value:function(t,e,n){var r=this;return e.children?Object(p.a)(new Oe(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Object(p.a)(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe(Object(B.a)(function(n){return n?r.configLoader.load(t.injector,e).pipe(Object(O.a)(function(t){return e._loadedConfig=t,t})):function(t){return new v.a(function(e){return e.error(dt("Cannot load children because the guard of the route \"path: '".concat(t.path,"'\" returned false")))})}(e)})):Object(p.a)(new Oe([],t))}},{key:"runCanLoadGuards",value:function(t,e,n){var r=this,i=e.canLoad;if(!i||0===i.length)return Object(p.a)(!0);var o=i.map(function(r){var i,o=t.get(r);if(function(t){return t&&Se(t.canLoad)}(o))i=o.canLoad(e,n);else{if(!Se(o))throw new Error("Invalid CanLoad guard");i=o(e,n)}return wt(i)});return Object(p.a)(o).pipe(je(),Object(q.a)(function(t){if(Ee(t)){var e=dt('Redirecting to "'.concat(r.urlSerializer.serialize(t),'"'));throw e.url=t,e}}),Object(O.a)(function(t){return!0===t}))}},{key:"lineralizeSegments",value:function(t,e){for(var n=[],r=e.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Object(p.a)(n);if(r.numberOfChildren>1||!r.children.primary)return Qe(t.redirectTo);r=r.children.primary}}},{key:"applyRedirectCommands",value:function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}},{key:"applyRedirectCreatreUrlTree",value:function(t,e,n,r){var i=this.createSegmentGroup(t,e.root,n,r);return new St(i,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}},{key:"createQueryParams",value:function(t,e){var n={};return yt(t,function(t,r){if("string"==typeof t&&t.startsWith(":")){var i=t.substring(1);n[r]=e[i]}else n[r]=t}),n}},{key:"createSegmentGroup",value:function(t,e,n,r){var i=this,o=this.createSegments(t,e.segments,n,r),a={};return yt(e.children,function(e,o){a[o]=i.createSegmentGroup(t,e,n,r)}),new Et(o,a)}},{key:"createSegments",value:function(t,e,n,r){var i=this;return e.map(function(e){return e.path.startsWith(":")?i.findPosParam(t,e,r):i.findOrReturn(e,n)})}},{key:"findPosParam",value:function(t,e,n){var r=n[e.path.substring(1)];if(!r)throw new Error("Cannot redirect to '".concat(t,"'. Cannot find '").concat(e.path,"'."));return r}},{key:"findOrReturn",value:function(t,e){var n=0,r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var c=a.value;if(c.path===t.path)return e.splice(n),c;n++}}catch(u){i=!0,o=u}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return t}}]),t}();function Je(t){for(var e={},n=0,r=Object.keys(t.children);n0||o.hasChildren())&&(e[i]=o)}return function(t){if(1===t.numberOfChildren&&t.children.primary){var e=t.children.primary;return new Et(t.segments.concat(e.segments),e.children)}return t}(new Et(t.segments,e))}var $e=function t(e){Object(l.a)(this,t),this.path=e,this.route=this.path[this.path.length-1]},tn=function t(e,n){Object(l.a)(this,t),this.component=e,this.route=n};function en(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 nn(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=Wt(e);return t.children.forEach(function(t){rn(t,o[t.value.outlet],n,r.concat([t.value]),i),delete o[t.value.outlet]}),yt(o,function(t,e){return an(t,n.getContext(e),i)}),i}function rn(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=t.value,a=e?e.value:null,s=n?n.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){var c=on(a,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new $e(r)):(o.data=a.data,o._resolvedData=a._resolvedData),nn(t,e,o.component?s?s.children:null:n,r,i),c&&s&&s.outlet&&s.outlet.isActivated&&i.canDeactivateChecks.push(new tn(s.outlet.component,a))}else a&&an(e,s,i),i.canActivateChecks.push(new $e(r)),nn(t,null,o.component?s?s.children:null:n,r,i);return i}function on(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!jt(t.url,e.url);case"pathParamsOrQueryParamsChange":return!jt(t.url,e.url)||!bt(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ae(t,e)||!bt(t.queryParams,e.queryParams);case"paramsChange":default:return!ae(t,e)}}function an(t,e,n){var r=Wt(t),i=t.value;yt(r,function(t,r){an(t,i.component?e?e.children.getContext(r):null:e,n)}),n.canDeactivateChecks.push(new tn(i.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,i))}var sn=function t(){Object(l.a)(this,t)};function cn(t){return new v.a(function(e){return e.error(t)})}var un=function(){function t(e,n,r,i,o,a){Object(l.a)(this,t),this.rootComponentType=e,this.config=n,this.urlTree=r,this.url=i,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=a}return Object(a.a)(t,[{key:"recognize",value:function(){var t=Fe(this.urlTree.root,[],[],this.config.filter(function(t){return void 0===t.redirectTo}),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,lt);if(null===e)return null;var n=new ee([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},lt,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Kt(n,e),i=new ne(this.url,r);return this.inheritParamsAndData(i._root),i}},{key:"inheritParamsAndData",value:function(t){var e=this,n=t.value,r=$t(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(function(t){return e.inheritParamsAndData(t)})}},{key:"processSegmentGroup",value:function(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}},{key:"processChildren",value:function(t,e){for(var n=[],r=0,i=Object.keys(e.children);r0?gt(n).parameters:{};i=new ee(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,dn(t),Le(t),t.component,t,hn(e),fn(e)+n.length,pn(t))}else{var c=Me(e,t,n);if(!c.matched)return null;o=c.consumedSegments,a=n.slice(c.lastChild),i=new ee(o,c.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,dn(t),Le(t),t.component,t,hn(e),fn(e)+o.length,pn(t))}var u=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),l=Fe(e,o,a,u.filter(function(t){return void 0===t.redirectTo}),this.relativeLinkResolution),h=l.segmentGroup,f=l.slicedSegments;if(0===f.length&&h.hasChildren()){var d=this.processChildren(u,h);return null===d?null:[new Kt(i,d)]}if(0===u.length&&0===f.length)return[new Kt(i,[])];var p=Le(t)===r,b=this.processSegment(u,h,f,p?lt:r);return null===b?null:[new Kt(i,b)]}}]),t}();function ln(t){var e=[],n=new Set,r=!0,i=!1,a=void 0;try{for(var s,c=function(){var t=s.value;if(!function(t){var e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}(t))return e.push(t),"continue";var r,i=e.find(function(e){return t.value.routeConfig===e.value.routeConfig});void 0!==i?((r=i.children).push.apply(r,Object(o.a)(t.children)),n.add(i)):e.push(t)},u=t[Symbol.iterator]();!(r=(s=u.next()).done);r=!0)c()}catch(v){i=!0,a=v}finally{try{r||null==u.return||u.return()}finally{if(i)throw a}}var l=!0,h=!1,f=void 0;try{for(var d,p=n[Symbol.iterator]();!(l=(d=p.next()).done);l=!0){var b=d.value,m=ln(b.children);e.push(new Kt(b.value,m))}}catch(v){h=!0,f=v}finally{try{l||null==p.return||p.return()}finally{if(h)throw f}}return e.filter(function(t){return!n.has(t)})}function hn(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function fn(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 dn(t){return t.data||{}}function pn(t){return t.resolve||{}}function bn(t){return Object(S.a)(function(e){var n=t(e);return n?Object(d.a)(n).pipe(Object(O.a)(function(){return e})):Object(p.a)(e)})}var mn=function(t){Object(s.a)(n,t);var e=Y(n);function n(){return Object(l.a)(this,n),e.apply(this,arguments)}return n}(function(){function t(){Object(l.a)(this,t)}return Object(a.a)(t,[{key:"shouldDetach",value:function(t){return!1}},{key:"store",value:function(t,e){}},{key:"shouldAttach",value:function(t){return!1}},{key:"retrieve",value:function(t){return null}},{key:"shouldReuseRoute",value:function(t,e){return t.routeConfig===e.routeConfig}}]),t}()),vn=new f.r("ROUTES"),gn=function(){function t(e,n,r,i){Object(l.a)(this,t),this.loader=e,this.compiler=n,this.onLoadStartListener=r,this.onLoadEndListener=i}return Object(a.a)(t,[{key:"load",value:function(t,e){var n=this;if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);var r=this.loadModuleFactory(e.loadChildren).pipe(Object(O.a)(function(r){n.onLoadEndListener&&n.onLoadEndListener(e);var i=r.create(t);return new Oe(vt(i.injector.get(vn,void 0,f.q.Self|f.q.Optional)).map(Pe),i)}),Object(I.a)(function(t){throw e._loader$=void 0,t}));return e._loader$=new k.a(r,function(){return new x.a}).pipe(Object(X.a)()),e._loader$}},{key:"loadModuleFactory",value:function(t){var e=this;return"string"==typeof t?Object(d.a)(this.loader.load(t)):wt(t()).pipe(Object(B.a)(function(t){return t instanceof f.x?Object(p.a)(t):Object(d.a)(e.compiler.compileModuleAsync(t))}))}}]),t}(),yn=function t(){Object(l.a)(this,t),this.outlet=null,this.route=null,this.resolver=null,this.children=new wn,this.attachRef=null},wn=function(){function t(){Object(l.a)(this,t),this.contexts=new Map}return Object(a.a)(t,[{key:"onChildOutletCreated",value:function(t,e){var n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}},{key:"onChildOutletDestroyed",value:function(t){var e=this.getContext(t);e&&(e.outlet=null)}},{key:"onOutletDeactivated",value:function(){var t=this.contexts;return this.contexts=new Map,t}},{key:"onOutletReAttached",value:function(t){this.contexts=t}},{key:"getOrCreateContext",value:function(t){var e=this.getContext(t);return e||(e=new yn,this.contexts.set(t,e)),e}},{key:"getContext",value:function(t){return this.contexts.get(t)||null}}]),t}(),_n=function(){function t(){Object(l.a)(this,t)}return Object(a.a)(t,[{key:"shouldProcessUrl",value:function(t){return!0}},{key:"extract",value:function(t){return t}},{key:"merge",value:function(t,e){return t}}]),t}();function kn(t){throw t}function xn(t,e,n){return e.parse("/")}function On(t,e){return Object(p.a)(null)}var Sn=function(){var t=function(){function t(e,n,r,i,o,a,s,c){var u=this;Object(l.a)(this,t),this.rootComponentType=e,this.urlSerializer=n,this.rootContexts=r,this.location=i,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new x.a,this.errorHandler=kn,this.malformedUriErrorHandler=xn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:On,afterPreactivation:On},this.urlHandlingStrategy=new _n,this.routeReuseStrategy=new mn,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.ngModule=o.get(f.z),this.console=o.get(f.bb);var h=o.get(f.B);this.isNgZoneEnabled=h instanceof f.B&&f.B.isInAngularZone(),this.resetConfig(c),this.currentUrlTree=new St(new Et([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new gn(a,s,function(t){return u.triggerEvent(new rt(t))},function(t){return u.triggerEvent(new it(t))}),this.routerState=Zt(this.currentUrlTree,this.rootComponentType),this.transitions=new b.a({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 Object(a.a)(t,[{key:"setupNavigations",value:function(t){var e=this,n=this.events;return t.pipe(Object(T.a)(function(t){return 0!==t.id}),Object(O.a)(function(t){return Object.assign(Object.assign({},t),{extractedUrl:e.urlHandlingStrategy.extract(t.rawUrl)})}),Object(S.a)(function(t){var r,i,o,a=!1,s=!1;return Object(p.a)(t).pipe(Object(q.a)(function(t){e.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:e.lastSuccessfulNavigation?Object.assign(Object.assign({},e.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Object(S.a)(function(t){var r,i,o,a,s=!e.navigated||t.extractedUrl.toString()!==e.browserUrlTree.toString();if(("reload"===e.onSameUrlNavigation||s)&&e.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Object(p.a)(t).pipe(Object(S.a)(function(t){var r=e.transitions.getValue();return n.next(new K(t.id,e.serializeUrl(t.extractedUrl),t.source,t.restoredState)),r!==e.transitions.getValue()?_.a:Promise.resolve(t)}),(r=e.ngModule.injector,i=e.configLoader,o=e.urlSerializer,a=e.config,Object(S.a)(function(t){return function(t,e,n,r,i){return new Ze(t,e,n,r,i).apply()}(r,i,o,t.extractedUrl,a).pipe(Object(O.a)(function(e){return Object.assign(Object.assign({},t),{urlAfterRedirects:e})}))})),Object(q.a)(function(t){e.currentNavigation=Object.assign(Object.assign({},e.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,n,r,i,o){return Object(B.a)(function(r){return function(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";try{var a=new un(t,e,n,r,i,o).recognize();return null===a?cn(new sn):Object(p.a)(a)}catch(s){return cn(s)}}(t,n,r.urlAfterRedirects,(a=r.urlAfterRedirects,e.serializeUrl(a)),i,o).pipe(Object(O.a)(function(t){return Object.assign(Object.assign({},r),{targetSnapshot:t})}));var a})}(e.rootComponentType,e.config,0,e.paramsInheritanceStrategy,e.relativeLinkResolution),Object(q.a)(function(t){"eager"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),e.browserUrlTree=t.urlAfterRedirects);var r=new J(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);n.next(r)}));if(s&&e.rawUrlTree&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){var c=t.extractedUrl,u=t.source,l=t.restoredState,h=t.extras,f=new K(t.id,e.serializeUrl(c),u,l);n.next(f);var d=Zt(c,e.rootComponentType).snapshot;return Object(p.a)(Object.assign(Object.assign({},t),{targetSnapshot:d,urlAfterRedirects:c,extras:Object.assign(Object.assign({},h),{skipLocationChange:!1,replaceUrl:!1})}))}return e.rawUrlTree=t.rawUrl,e.browserUrlTree=t.urlAfterRedirects,t.resolve(null),_.a}),bn(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})}),Object(q.a)(function(t){var n=new $(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}),Object(O.a)(function(t){return Object.assign(Object.assign({},t),{guards:(n=t.targetSnapshot,r=t.currentSnapshot,i=e.rootContexts,o=n._root,nn(o,r?r._root:null,i,[o.value]))});var n,r,i,o}),function(t,e){return Object(B.a)(function(n){var r=n.targetSnapshot,i=n.currentSnapshot,o=n.guards,a=o.canActivateChecks,s=o.canDeactivateChecks;return 0===s.length&&0===a.length?Object(p.a)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,r){return Object(d.a)(t).pipe(Object(B.a)(function(t){return function(t,e,n,r,i){var o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||0===o.length)return Object(p.a)(!0);var a=o.map(function(o){var a,s=en(o,e,i);if(function(t){return t&&Se(t.canDeactivate)}(s))a=wt(s.canDeactivate(t,e,n,r));else{if(!Se(s))throw new Error("Invalid CanDeactivate guard");a=wt(s(t,e,n,r))}return a.pipe(Object(U.a)())});return Object(p.a)(a).pipe(je())}(t.component,t.route,n,e,r)}),Object(U.a)(function(t){return!0!==t},!0))}(s,r,i,t).pipe(Object(B.a)(function(n){return n&&"boolean"==typeof n?function(t,e,n,r){return Object(d.a)(e).pipe(Object(A.a)(function(e){return Object(y.a)(function(t,e){return null!==t&&e&&e(new ot(t)),Object(p.a)(!0)}(e.route.parent,r),function(t,e){return null!==t&&e&&e(new st(t)),Object(p.a)(!0)}(e.route,r),function(t,e,n){var r=e[e.length-1],i=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 Object(w.a)(function(){var i=e.guards.map(function(i){var o,a=en(i,e.node,n);if(function(t){return t&&Se(t.canActivateChild)}(a))o=wt(a.canActivateChild(r,t));else{if(!Se(a))throw new Error("Invalid CanActivateChild guard");o=wt(a(r,t))}return o.pipe(Object(U.a)())});return Object(p.a)(i).pipe(je())})});return Object(p.a)(i).pipe(je())}(t,e.path,n),function(t,e,n){var r=e.routeConfig?e.routeConfig.canActivate:null;if(!r||0===r.length)return Object(p.a)(!0);var i=r.map(function(r){return Object(w.a)(function(){var i,o=en(r,e,n);if(function(t){return t&&Se(t.canActivate)}(o))i=wt(o.canActivate(e,t));else{if(!Se(o))throw new Error("Invalid CanActivate guard");i=wt(o(e,t))}return i.pipe(Object(U.a)())})});return Object(p.a)(i).pipe(je())}(t,e.route,n))}),Object(U.a)(function(t){return!0!==t},!0))}(r,a,t,e):Object(p.a)(n)}),Object(O.a)(function(t){return Object.assign(Object.assign({},n),{guardsResult:t})}))})}(e.ngModule.injector,function(t){return e.triggerEvent(t)}),Object(q.a)(function(t){if(Ee(t.guardsResult)){var n=dt('Redirecting to "'.concat(e.serializeUrl(t.guardsResult),'"'));throw n.url=t.guardsResult,n}var r=new tt(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);e.triggerEvent(r)}),Object(T.a)(function(t){if(!t.guardsResult){e.resetUrlToCurrentUrlTree();var r=new Q(t.id,e.serializeUrl(t.extractedUrl),"");return n.next(r),t.resolve(!1),!1}return!0}),bn(function(t){if(t.guards.canActivateChecks.length)return Object(p.a)(t).pipe(Object(q.a)(function(t){var n=new et(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}),Object(S.a)(function(t){var r,i,o=!1;return Object(p.a)(t).pipe((r=e.paramsInheritanceStrategy,i=e.ngModule.injector,Object(B.a)(function(t){var e=t.targetSnapshot,n=t.guards.canActivateChecks;if(!n.length)return Object(p.a)(t);var o=0;return Object(d.a)(n).pipe(Object(A.a)(function(t){return function(t,e,n,r){return function(t,e,n,r){var i=Object.keys(t);if(0===i.length)return Object(p.a)({});var o={};return Object(d.a)(i).pipe(Object(B.a)(function(i){return function(t,e,n,r){var i=en(t,e,r);return wt(i.resolve?i.resolve(e,n):i(e,n))}(t[i],e,n,r).pipe(Object(q.a)(function(t){o[i]=t}))}),L(1),Object(B.a)(function(){return Object.keys(o).length===i.length?Object(p.a)(o):_.a}))}(t._resolve,t,e,r).pipe(Object(O.a)(function(e){return t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),$t(t,n).resolve),null}))}(t.route,e,r,i)}),Object(q.a)(function(){return o++}),L(1),Object(B.a)(function(e){return o===n.length?Object(p.a)(t):_.a}))})),Object(q.a)({next:function(){return o=!0},complete:function(){if(!o){var r=new Q(t.id,e.serializeUrl(t.extractedUrl),"At least one route resolver didn't emit any value.");n.next(r),t.resolve(!1)}}}))}),Object(q.a)(function(t){var n=new nt(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}))}),bn(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})}),Object(O.a)(function(t){var n,r,i,o=(i=se(e.routeReuseStrategy,(n=t.targetSnapshot)._root,(r=t.currentRouterState)?r._root:void 0),new Qt(i,n));return Object.assign(Object.assign({},t),{targetRouterState:o})}),Object(q.a)(function(t){e.currentUrlTree=t.urlAfterRedirects,e.rawUrlTree=e.urlHandlingStrategy.merge(e.currentUrlTree,t.rawUrl),e.routerState=t.targetRouterState,"deferred"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(e.rawUrlTree,!!t.extras.replaceUrl,t.id,t.extras.state),e.browserUrlTree=t.urlAfterRedirects)}),(r=e.rootContexts,i=e.routeReuseStrategy,o=function(t){return e.triggerEvent(t)},Object(O.a)(function(t){return new ke(i,t.targetRouterState,t.currentRouterState,o).activate(r),t})),Object(q.a)({next:function(){a=!0},complete:function(){a=!0}}),Object(z.a)(function(){if(!a&&!s){e.resetUrlToCurrentUrlTree();var r=new Q(t.id,e.serializeUrl(t.extractedUrl),"Navigation ID ".concat(t.id," is not equal to the current navigation id ").concat(e.navigationId));n.next(r),t.resolve(!1)}e.currentNavigation=null}),Object(I.a)(function(r){if(s=!0,(c=r)&&c.ngNavigationCancelingError){var i=Ee(r.url);i||(e.navigated=!0,e.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));var o=new Q(t.id,e.serializeUrl(t.extractedUrl),r.message);n.next(o),i?setTimeout(function(){var n=e.urlHandlingStrategy.merge(r.url,e.rawUrlTree);e.scheduleNavigation(n,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===e.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{e.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);var a=new Z(t.id,e.serializeUrl(t.extractedUrl),r);n.next(a);try{t.resolve(e.errorHandler(r))}catch(u){t.reject(u)}}var c;return _.a}))}))}},{key:"resetRootComponentType",value:function(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}},{key:"setTransition",value:function(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var t=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(e){var n=t.extractLocationChangeInfoFromEvent(e);t.shouldScheduleNavigation(t.lastLocationChangeInfo,n)&&setTimeout(function(){var e=n.source,r=n.state,i=n.urlTree,o={replaceUrl:!0};if(r){var a=Object.assign({},r);delete a.navigationId,0!==Object.keys(a).length&&(o.state=a)}t.scheduleNavigation(i,e,r,o)},0),t.lastLocationChangeInfo=n}))}},{key:"extractLocationChangeInfoFromEvent",value:function(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}},{key:"shouldScheduleNavigation",value:function(t,e){if(!t)return!0;var n=e.urlTree.toString()===t.urlTree.toString();return!(e.transitionId===t.transitionId&&n&&("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source))}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(t){this.events.next(t)}},{key:"resetConfig",value:function(t){Ie(t),this.config=t.map(Pe),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}},{key:"createUrlTree",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.relativeTo,r=e.queryParams,i=e.fragment,o=e.queryParamsHandling,a=e.preserveFragment,s=n||this.routerState.root,c=a?this.currentUrlTree.fragment:i,u=null;switch(o){case"merge":u=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=r||null}return null!==u&&(u=this.removeEmptyProps(u)),ue(s,this.currentUrlTree,t,u,c)}},{key:"navigateByUrl",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},n=Ee(t)?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,e)}},{key:"navigate",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return En(t),this.navigateByUrl(this.createUrlTree(t,e),e)}},{key:"serializeUrl",value:function(t){return this.urlSerializer.serialize(t)}},{key:"parseUrl",value:function(t){var e;try{e=this.urlSerializer.parse(t)}catch(n){e=this.malformedUriErrorHandler(n,this.urlSerializer,t)}return e}},{key:"isActive",value:function(t,e){if(Ee(t))return _t(this.currentUrlTree,t,e);var n=this.parseUrl(t);return _t(this.currentUrlTree,n,e)}},{key:"removeEmptyProps",value:function(t){return Object.keys(t).reduce(function(e,n){var r=t[n];return null!=r&&(e[n]=r),e},{})}},{key:"processNavigations",value:function(){var t=this;this.navigations.subscribe(function(e){t.navigated=!0,t.lastSuccessfulId=e.id,t.events.next(new W(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(t.currentUrlTree))),t.lastSuccessfulNavigation=t.currentNavigation,e.resolve(!0)},function(e){t.console.warn("Unhandled Navigation Error: ")})}},{key:"scheduleNavigation",value:function(t,e,n,r,i){if(this.disposed)return Promise.resolve(!1);var o,a,s,c=this.getTransition(),u="imperative"!==e&&"imperative"===(null==c?void 0:c.source),l=(this.lastSuccessfulId===c.id||this.currentNavigation?c.rawUrl:c.urlAfterRedirects).toString()===t.toString();if(u&&l)return Promise.resolve(!0);i?(o=i.resolve,a=i.reject,s=i.promise):s=new Promise(function(t,e){o=t,a=e});var h=++this.navigationId;return this.setTransition({id:h,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:r,resolve:o,reject:a,promise:s,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),s.catch(function(t){return Promise.reject(t)})}},{key:"setBrowserUrl",value:function(t,e,n,r){var i=this.urlSerializer.serialize(t);r=r||{},this.location.isCurrentPathEqualTo(i)||e?this.location.replaceState(i,"",Object.assign(Object.assign({},r),{navigationId:n})):this.location.go(i,"",Object.assign(Object.assign({},r),{navigationId:n}))}},{key:"resetStateAndUrl",value:function(t,e,n){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(f.cc(f.P),f.cc(Tt),f.cc(wn),f.cc(h.h),f.cc(f.s),f.cc(f.y),f.cc(f.i),f.cc(void 0))},t.\u0275prov=f.Ob({token:t,factory:t.\u0275fac}),t}();function En(t){for(var e=0;e2&&void 0!==arguments[2]?arguments[2]:{};Object(l.a)(this,t),this.router=e,this.viewportScroller=n,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}return Object(a.a)(t,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var t=this;return this.router.events.subscribe(function(e){e instanceof K?(t.store[t.lastId]=t.viewportScroller.getScrollPosition(),t.lastSource=e.navigationTrigger,t.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof W&&(t.lastId=e.id,t.scheduleScrollEvent(e,t.router.parseUrl(e.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var t=this;return this.router.events.subscribe(function(e){e instanceof ut&&(e.position?"top"===t.options.scrollPositionRestoration?t.viewportScroller.scrollToPosition([0,0]):"enabled"===t.options.scrollPositionRestoration&&t.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===t.options.anchorScrolling?t.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==t.options.scrollPositionRestoration&&t.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(t,e){this.router.triggerEvent(new ut(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(f.cc(Sn),f.cc(h.t),f.cc(void 0))},t.\u0275prov=f.Ob({token:t,factory:t.\u0275fac}),t}(),Mn=new f.r("ROUTER_CONFIGURATION"),Fn=new f.r("ROUTER_FORROOT_GUARD"),Vn=[h.h,{provide:Tt,useClass:It},{provide:Sn,useFactory:function(t,e,n,r,i,o,a){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},c=arguments.length>8?arguments[8]:void 0,u=arguments.length>9?arguments[9]:void 0,l=new Sn(null,t,e,n,r,i,o,vt(a));if(c&&(l.urlHandlingStrategy=c),u&&(l.routeReuseStrategy=u),Yn(s,l),s.enableTracing){var f=Object(h.y)();l.events.subscribe(function(t){f.logGroup("Router Event: ".concat(t.constructor.name)),f.log(t.toString()),f.log(t),f.logGroupEnd()})}return l},deps:[Tt,wn,h.h,f.s,f.y,f.i,vn,Mn,[function t(){Object(l.a)(this,t)},new f.C],[function t(){Object(l.a)(this,t)},new f.C]]},wn,{provide:Jt,useFactory:function(t){return t.routerState.root},deps:[Sn]},{provide:f.y,useClass:f.M},Nn,Ln,Pn,{provide:Mn,useValue:{enableTracing:!1}}];function Un(){return new f.A("Router",Sn)}var Bn=function(){var t=function(){function t(e,n){Object(l.a)(this,t)}return Object(a.a)(t,null,[{key:"forRoot",value:function(e,n){return{ngModule:t,providers:[Vn,Hn(e),{provide:Fn,useFactory:zn,deps:[[Sn,new f.C,new f.L]]},{provide:Mn,useValue:n||{}},{provide:h.i,useFactory:Xn,deps:[h.s,[new f.p(h.a),new f.C],Mn]},{provide:Dn,useFactory:qn,deps:[Sn,h.t,Mn]},{provide:Rn,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Ln},{provide:f.A,multi:!0,useFactory:Un},[Gn,{provide:f.d,multi:!0,useFactory:Kn,deps:[Gn]},{provide:Qn,useFactory:Wn,deps:[Gn]},{provide:f.b,multi:!0,useExisting:Qn}]]}}},{key:"forChild",value:function(e){return{ngModule:t,providers:[Hn(e)]}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(f.cc(Fn,8),f.cc(Sn,8))},t.\u0275mod=f.Qb({type:t}),t.\u0275inj=f.Pb({}),t}();function qn(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new Dn(t,e,n)}function Xn(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new h.f(t,e):new h.r(t,e)}function zn(t){return"guarded"}function Hn(t){return[{provide:f.a,multi:!0,useValue:t},{provide:vn,multi:!0,useValue:t}]}function Yn(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}var Gn=function(){var t=function(){function t(e){Object(l.a)(this,t),this.injector=e,this.initNavigation=!1,this.resultOfPreactivationDone=new x.a}return Object(a.a)(t,[{key:"appInitializer",value:function(){var t=this;return this.injector.get(h.g,Promise.resolve(null)).then(function(){var e=null,n=new Promise(function(t){return e=t}),r=t.injector.get(Sn),i=t.injector.get(Mn);return"disabled"===i.initialNavigation?(r.setUpLocationChangeListener(),e(!0)):"enabled"===i.initialNavigation||"enabledBlocking"===i.initialNavigation?(r.hooks.afterPreactivation=function(){return t.initNavigation?Object(p.a)(null):(t.initNavigation=!0,e(!0),t.resultOfPreactivationDone)},r.initialNavigation()):e(!0),n})}},{key:"bootstrapListener",value:function(t){var e=this.injector.get(Mn),n=this.injector.get(Nn),r=this.injector.get(Dn),i=this.injector.get(Sn),o=this.injector.get(f.g);t===o.components[0]&&("enabledNonBlocking"!==e.initialNavigation&&void 0!==e.initialNavigation||i.initialNavigation(),n.setUpPreloading(),r.init(),i.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}]),t}();return t.\u0275fac=function(e){return new(e||t)(f.cc(f.s))},t.\u0275prov=f.Ob({token:t,factory:t.\u0275fac}),t}();function Kn(t){return t.appInitializer.bind(t)}function Wn(t){return t.bootstrapListener.bind(t)}var Qn=new f.r("Router Initializer")},u47x:function(t,e,n){"use strict";n.d(e,"a",function(){return dt}),n.d(e,"b",function(){return M}),n.d(e,"c",function(){return P}),n.d(e,"d",function(){return ct}),n.d(e,"e",function(){return z}),n.d(e,"f",function(){return J}),n.d(e,"g",function(){return F}),n.d(e,"h",function(){return at}),n.d(e,"i",function(){return X}),n.d(e,"j",function(){return ft}),n.d(e,"k",function(){return et}),n.d(e,"l",function(){return nt}),n.d(e,"m",function(){return rt});var r=n("ODXe"),i=n("JX7q"),o=n("ReuC"),a=n("Ji7U"),s=n("md7G"),c=n("foSv"),u=n("1OyB"),l=n("vuIU"),h=n("ofXK"),f=n("fXoL"),d=n("XNiG"),p=n("quSY"),b=n("LRne"),m=n("FtGj"),v=n("vkgz"),g=n("Kj3r"),y=n("pLZG"),w=n("lJxs"),_=n("IzEk"),k=n("8LU1"),x=n("nLfN"),O=n("GU7r");function S(t){function e(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}return function(){var n,r=Object(c.a)(t);if(e()){var i=Object(c.a)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(s.a)(this,n)}}function E(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}var C="cdk-describedby-message-container",j="cdk-describedby-message",T="cdk-describedby-host",I=0,A=new Map,R=null,P=function(){var t=function(){function t(e){Object(u.a)(this,t),this._document=e}return Object(l.a)(t,[{key:"describe",value:function(t,e,n){if(this._canBeDescribed(t,e)){var r=L(e,n);"string"!=typeof e?(N(e),A.set(r,{messageElement:e,referenceCount:0})):A.has(r)||this._createMessageElement(e,n),this._isElementDescribedByMessage(t,r)||this._addMessageReference(t,r)}}},{key:"removeDescription",value:function(t,e,n){if(e&&this._isElementNode(t)){var r=L(e,n);if(this._isElementDescribedByMessage(t,r)&&this._removeMessageReference(t,r),"string"==typeof e){var i=A.get(r);i&&0===i.referenceCount&&this._deleteMessageElement(r)}R&&0===R.childNodes.length&&this._deleteMessagesContainer()}}},{key:"ngOnDestroy",value:function(){for(var t=this._document.querySelectorAll("[".concat(T,"]")),e=0;e-1&&e!==n._activeItemIndex&&(n._activeItemIndex=e)}})}return Object(l.a)(t,[{key:"skipPredicate",value:function(t){return this._skipPredicateFn=t,this}},{key:"withWrap",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=t,this}},{key:"withVerticalOrientation",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=t,this}},{key:"withHorizontalOrientation",value:function(t){return this._horizontal=t,this}},{key:"withAllowedModifierKeys",value:function(t){return this._allowedModifierKeys=t,this}},{key:"withTypeAhead",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Object(v.a)(function(e){return t._pressedLetters.push(e)}),Object(g.a)(e),Object(y.a)(function(){return t._pressedLetters.length>0}),Object(w.a)(function(){return t._pressedLetters.join("")})).subscribe(function(e){for(var n=t._getItemsArray(),r=1;r0&&void 0!==arguments[0])||arguments[0];return this._homeAndEnd=t,this}},{key:"setActiveItem",value:function(t){var e=this._activeItem;this.updateActiveItem(t),this._activeItem!==e&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(t){var e=this,n=t.keyCode,r=["altKey","ctrlKey","metaKey","shiftKey"].every(function(n){return!t[n]||e._allowedModifierKeys.indexOf(n)>-1});switch(n){case m.o:return void this.tabOut.next();case m.d:if(this._vertical&&r){this.setNextItemActive();break}return;case m.p:if(this._vertical&&r){this.setPreviousItemActive();break}return;case m.m:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case m.i:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case m.h:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case m.e:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;default:return void((r||Object(m.s)(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(n>=m.a&&n<=m.q||n>=m.r&&n<=m.j)&&this._letterKeyStream.next(String.fromCharCode(n))))}this._pressedLetters=[],t.preventDefault()}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}},{key:"isTyping",value:function(){return this._pressedLetters.length>0}},{key:"setFirstItemActive",value:function(){this._setActiveItemByIndex(0,1)}},{key:"setLastItemActive",value:function(){this._setActiveItemByIndex(this._items.length-1,-1)}},{key:"setNextItemActive",value:function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}},{key:"setPreviousItemActive",value:function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}},{key:"updateActiveItem",value:function(t){var e=this._getItemsArray(),n="number"==typeof t?t:e.indexOf(t),r=e[n];this._activeItem=null==r?null:r,this._activeItemIndex=n}},{key:"_setActiveItemByDelta",value:function(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}},{key:"_setActiveInWrapMode",value:function(t){for(var e=this._getItemsArray(),n=1;n<=e.length;n++){var r=(this._activeItemIndex+t*n+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}}},{key:"_setActiveInDefaultMode",value:function(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}},{key:"_setActiveItemByIndex",value:function(t,e){var n=this._getItemsArray();if(n[t]){for(;this._skipPredicateFn(n[t]);)if(!n[t+=e])return;this.setActiveItem(t)}}},{key:"_getItemsArray",value:function(){return this._items instanceof f.F?this._items.toArray():this._items}}]),t}(),M=function(t){Object(a.a)(n,t);var e=S(n);function n(){return Object(u.a)(this,n),e.apply(this,arguments)}return Object(l.a)(n,[{key:"setActiveItem",value:function(t){this.activeItem&&this.activeItem.setInactiveStyles(),Object(o.a)(Object(c.a)(n.prototype),"setActiveItem",this).call(this,t),this.activeItem&&this.activeItem.setActiveStyles()}}]),n}(D),F=function(t){Object(a.a)(n,t);var e=S(n);function n(){var t;return Object(u.a)(this,n),(t=e.apply(this,arguments))._origin="program",t}return Object(l.a)(n,[{key:"setFocusOrigin",value:function(t){return this._origin=t,this}},{key:"setActiveItem",value:function(t){Object(o.a)(Object(c.a)(n.prototype),"setActiveItem",this).call(this,t),this.activeItem&&this.activeItem.focus(this._origin)}}]),n}(D),V=function(){var t=function(){function t(e){Object(u.a)(this,t),this._platform=e}return Object(l.a)(t,[{key:"isDisabled",value:function(t){return t.hasAttribute("disabled")}},{key:"isVisible",value:function(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}},{key:"isTabbable",value:function(t){if(!this._platform.isBrowser)return!1;var e,n=function(t){try{return t.frameElement}catch(e){return null}}((e=t).ownerDocument&&e.ownerDocument.defaultView||window);if(n){if(-1===B(n))return!1;if(!this.isVisible(n))return!1}var r=t.nodeName.toLowerCase(),i=B(t);return t.hasAttribute("contenteditable")?-1!==i:"iframe"!==r&&"object"!==r&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){var e=t.nodeName.toLowerCase(),n="input"===e&&t.type;return"text"===n||"password"===n||"select"===e||"textarea"===e}(t))&&("audio"===r?!!t.hasAttribute("controls")&&-1!==i:"video"===r?-1!==i&&(null!==i||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}},{key:"isFocusable",value:function(t,e){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){var e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||U(t))}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(f.cc(x.a))},t.\u0275prov=Object(f.Ob)({factory:function(){return new t(Object(f.cc)(x.a))},token:t,providedIn:"root"}),t}();function U(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;var e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function B(t){if(!U(t))return null;var e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}var q=function(){function t(e,n,r,i){var o=this,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];Object(u.a)(this,t),this._element=e,this._checker=n,this._ngZone=r,this._document=i,this._hasAttached=!1,this.startAnchorListener=function(){return o.focusLastTabbableElement()},this.endAnchorListener=function(){return o.focusFirstTabbableElement()},this._enabled=!0,a||this.attachAnchors()}return Object(l.a)(t,[{key:"enabled",get:function(){return this._enabled},set:function(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}},{key:"destroy",value:function(){var t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}},{key:"attachAnchors",value:function(){var t=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){t._startAnchor||(t._startAnchor=t._createAnchor(),t._startAnchor.addEventListener("focus",t.startAnchorListener)),t._endAnchor||(t._endAnchor=t._createAnchor(),t._endAnchor.addEventListener("focus",t.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}},{key:"focusInitialElementWhenReady",value:function(){var t=this;return new Promise(function(e){t._executeOnStable(function(){return e(t.focusInitialElement())})})}},{key:"focusFirstTabbableElementWhenReady",value:function(){var t=this;return new Promise(function(e){t._executeOnStable(function(){return e(t.focusFirstTabbableElement())})})}},{key:"focusLastTabbableElementWhenReady",value:function(){var t=this;return new Promise(function(e){t._executeOnStable(function(){return e(t.focusLastTabbableElement())})})}},{key:"_getRegionBoundary",value:function(t){for(var e=this._element.querySelectorAll("[cdk-focus-region-".concat(t,"], ")+"[cdkFocusRegion".concat(t,"], ")+"[cdk-focus-".concat(t,"]")),n=0;n=0;n--){var r=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(r)return r}return null}},{key:"_createAnchor",value:function(){var t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}},{key:"_toggleAnchorTabIndex",value:function(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}},{key:"_executeOnStable",value:function(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(Object(_.a)(1)).subscribe(t)}}]),t}(),X=function(){var t=function(){function t(e,n,r){Object(u.a)(this,t),this._checker=e,this._ngZone=n,this._document=r}return Object(l.a)(t,[{key:"create",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new q(t,this._checker,this._ngZone,this._document,e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(f.cc(V),f.cc(f.B),f.cc(h.e))},t.\u0275prov=Object(f.Ob)({factory:function(){return new t(Object(f.cc)(V),Object(f.cc)(f.B),Object(f.cc)(h.e))},token:t,providedIn:"root"}),t}(),z=function(){var t=function(){function t(e,n,r){Object(u.a)(this,t),this._elementRef=e,this._focusTrapFactory=n,this._previouslyFocusedElement=null,this._document=r,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}return Object(l.a)(t,[{key:"enabled",get:function(){return this.focusTrap.enabled},set:function(t){this.focusTrap.enabled=Object(k.b)(t)}},{key:"autoCapture",get:function(){return this._autoCapture},set:function(t){this._autoCapture=Object(k.b)(t)}},{key:"ngOnDestroy",value:function(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}},{key:"ngAfterContentInit",value:function(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}},{key:"ngDoCheck",value:function(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}},{key:"ngOnChanges",value:function(t){var e=t.autoCapture;e&&!e.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}},{key:"_captureFocus",value:function(){var t,e,n=null===(t=this._document)||void 0===t?void 0:t.activeElement;this._previouslyFocusedElement=(null===(e=null==n?void 0:n.shadowRoot)||void 0===e?void 0:e.activeElement)||n,this.focusTrap.focusInitialElementWhenReady()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(f.Sb(f.l),f.Sb(X),f.Sb(h.e))},t.\u0275dir=f.Nb({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[f.Cb]}),t}(),H=function(t){Object(a.a)(n,t);var e=S(n);function n(t,r,o,a,s,c,l){var h;return Object(u.a)(this,n),(h=e.call(this,t,r,o,a,l.defer))._focusTrapManager=s,h._inertStrategy=c,h._focusTrapManager.register(Object(i.a)(h)),h}return Object(l.a)(n,[{key:"enabled",get:function(){return this._enabled},set:function(t){this._enabled=t,this._enabled?this._focusTrapManager.register(this):this._focusTrapManager.deregister(this)}},{key:"destroy",value:function(){this._focusTrapManager.deregister(this),Object(o.a)(Object(c.a)(n.prototype),"destroy",this).call(this)}},{key:"_enable",value:function(){this._inertStrategy.preventFocus(this),this.toggleAnchors(!0)}},{key:"_disable",value:function(){this._inertStrategy.allowFocus(this),this.toggleAnchors(!1)}}]),n}(q),Y="undefined"!=typeof Element&&!!Element.prototype.closest;function G(t,e){return t.matches?t.matches(e):t.msMatchesSelector(e)}var K=function(){function t(){Object(u.a)(this,t),this._listener=null}return Object(l.a)(t,[{key:"preventFocus",value:function(t){var e=this;this._listener&&t._document.removeEventListener("focus",this._listener,!0),this._listener=function(n){return e._trapFocus(t,n)},t._ngZone.runOutsideAngular(function(){t._document.addEventListener("focus",e._listener,!0)})}},{key:"allowFocus",value:function(t){this._listener&&(t._document.removeEventListener("focus",this._listener,!0),this._listener=null)}},{key:"_trapFocus",value:function(t,e){var n=e.target,r=t._element;r.contains(n)||null!==function(t,e){if(!(t instanceof Node))return null;for(var n=t;null!=n&&!(n instanceof Element);)n=n.parentNode;return n&&(Y?n.closest(e):function(t,e){for(var n=t;null!=n&&!(n instanceof Element&&G(n,"div.cdk-overlay-pane"));)n=n.parentNode;return n||null}(n))}(n,"div.cdk-overlay-pane")||setTimeout(function(){t.enabled&&!r.contains(t._document.activeElement)&&t.focusFirstTabbableElement()})}}]),t}(),W=function t(){Object(u.a)(this,t),this.defer=!1},Q=new f.r("FOCUS_TRAP_INERT_STRATEGY"),Z=function(){var t=function(){function t(){Object(u.a)(this,t),this._focusTrapStack=[]}return Object(l.a)(t,[{key:"register",value:function(t){this._focusTrapStack=this._focusTrapStack.filter(function(e){return e!==t});var e=this._focusTrapStack;e.length&&e[e.length-1]._disable(),e.push(t),t._enable()}},{key:"deregister",value:function(t){t._disable();var e=this._focusTrapStack,n=e.indexOf(t);-1!==n&&(e.splice(n,1),e.length&&e[e.length-1]._enable())}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(f.Ob)({factory:function(){return new t},token:t,providedIn:"root"}),t}(),J=function(){var t=function(){function t(e,n,r,i,o){Object(u.a)(this,t),this._checker=e,this._ngZone=n,this._focusTrapManager=r,this._document=i,this._inertStrategy=o||new K}return Object(l.a)(t,[{key:"create",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new W;return"boolean"==typeof n?(e=new W).defer=n:e=n,new H(t,this._checker,this._ngZone,this._document,this._focusTrapManager,this._inertStrategy,e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(f.cc(V),f.cc(f.B),f.cc(Z),f.cc(h.e),f.cc(Q,8))},t.\u0275prov=Object(f.Ob)({factory:function(){return new t(Object(f.cc)(V),Object(f.cc)(f.B),Object(f.cc)(Z),Object(f.cc)(h.e),Object(f.cc)(Q,8))},token:t,providedIn:"root"}),t}(),$=new f.r("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),tt=new f.r("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),et=function(){var t=function(){function t(e,n,r,i){Object(u.a)(this,t),this._ngZone=n,this._defaultOptions=i,this._document=r,this._liveElement=e||this._createLiveElement()}return Object(l.a)(t,[{key:"announce",value:function(t){for(var e,n,r=this,i=this._defaultOptions,o=arguments.length,a=new Array(o>1?o-1:0),s=1;s1&&void 0!==arguments[1]&&arguments[1],n=Object(k.d)(t);if(!this._platform.isBrowser||1!==n.nodeType)return Object(b.a)(null);var r=Object(x.c)(n)||this._getDocument(),i=this._elementInfo.get(n);if(i)return e&&(i.checkChildren=!0),i.subject;var o={checkChildren:e,subject:new d.a,rootNode:r};return this._elementInfo.set(n,o),this._registerGlobalListeners(o),o.subject}},{key:"stopMonitoring",value:function(t){var e=Object(k.d)(t),n=this._elementInfo.get(e);n&&(n.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(n))}},{key:"focusVia",value:function(t,e,n){var i=this,o=Object(k.d)(t);o===this._getDocument().activeElement?this._getClosestElementsInfo(o).forEach(function(t){var n=Object(r.a)(t,2);return i._originChanged(n[0],e,n[1])}):(this._setOriginForCurrentEventQueue(e),"function"==typeof o.focus&&o.focus(n))}},{key:"ngOnDestroy",value:function(){var t=this;this._elementInfo.forEach(function(e,n){return t.stopMonitoring(n)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(t,e,n){n?t.classList.add(e):t.classList.remove(e)}},{key:"_getFocusOrigin",value:function(t){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"}},{key:"_setClasses",value:function(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}},{key:"_setOriginForCurrentEventQueue",value:function(t){var e=this;this._ngZone.runOutsideAngular(function(){e._origin=t,0===e._detectionMode&&(e._originTimeoutId=setTimeout(function(){return e._origin=null},1))})}},{key:"_wasCausedByTouch",value:function(t){var e=st(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}},{key:"_onFocus",value:function(t,e){var n=this._elementInfo.get(e);n&&(n.checkChildren||e===st(t))&&this._originChanged(e,this._getFocusOrigin(t),n)}},{key:"_onBlur",value:function(t,e){var n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(n.subject,null))}},{key:"_emitOrigin",value:function(t,e){this._ngZone.run(function(){return t.next(e)})}},{key:"_registerGlobalListeners",value:function(t){var e=this;if(this._platform.isBrowser){var n=t.rootNode,r=this._rootNodeFocusListenerCount.get(n)||0;r||this._ngZone.runOutsideAngular(function(){n.addEventListener("focus",e._rootNodeFocusAndBlurListener,ot),n.addEventListener("blur",e._rootNodeFocusAndBlurListener,ot)}),this._rootNodeFocusListenerCount.set(n,r+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(function(){var t=e._getDocument(),n=e._getWindow();t.addEventListener("keydown",e._documentKeydownListener,ot),t.addEventListener("mousedown",e._documentMousedownListener,ot),t.addEventListener("touchstart",e._documentTouchstartListener,ot),n.addEventListener("focus",e._windowFocusListener)})}}},{key:"_removeGlobalListeners",value:function(t){var e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){var n=this._rootNodeFocusListenerCount.get(e);n>1?this._rootNodeFocusListenerCount.set(e,n-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,ot),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,ot),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){var r=this._getDocument(),i=this._getWindow();r.removeEventListener("keydown",this._documentKeydownListener,ot),r.removeEventListener("mousedown",this._documentMousedownListener,ot),r.removeEventListener("touchstart",this._documentTouchstartListener,ot),i.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}},{key:"_originChanged",value:function(t,e,n){this._setClasses(t,e),this._emitOrigin(n.subject,e),this._lastFocusOrigin=e}},{key:"_getClosestElementsInfo",value:function(t){var e=[];return this._elementInfo.forEach(function(n,r){(r===t||n.checkChildren&&r.contains(t))&&e.push([r,n])}),e}}]),t}();return t.\u0275fac=function(e){return new(e||t)(f.cc(f.B),f.cc(x.a),f.cc(h.e,8),f.cc(it,8))},t.\u0275prov=Object(f.Ob)({factory:function(){return new t(Object(f.cc)(f.B),Object(f.cc)(x.a),Object(f.cc)(h.e,8),Object(f.cc)(it,8))},token:t,providedIn:"root"}),t}();function st(t){return t.composedPath?t.composedPath()[0]:t.target}var ct=function(){var t=function(){function t(e,n){Object(u.a)(this,t),this._elementRef=e,this._focusMonitor=n,this.cdkFocusChange=new f.n}return Object(l.a)(t,[{key:"ngAfterViewInit",value:function(){var t=this,e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,1===e.nodeType&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(function(e){return t.cdkFocusChange.emit(e)})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(f.Sb(f.l),f.Sb(at))},t.\u0275dir=f.Nb({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),t}(),ut="cdk-high-contrast-black-on-white",lt="cdk-high-contrast-white-on-black",ht="cdk-high-contrast-active",ft=function(){var t=function(){function t(e,n){Object(u.a)(this,t),this._platform=e,this._document=n}return Object(l.a)(t,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);var e=this._document.defaultView||window,n=e&&e.getComputedStyle?e.getComputedStyle(t):null,r=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),r){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(this._platform.isBrowser&&this._document.body){var t=this._document.body.classList;t.remove(ht),t.remove(ut),t.remove(lt);var e=this.getHighContrastMode();1===e?(t.add(ht),t.add(ut)):2===e&&(t.add(ht),t.add(lt))}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(f.cc(x.a),f.cc(h.e))},t.\u0275prov=Object(f.Ob)({factory:function(){return new t(Object(f.cc)(x.a),Object(f.cc)(h.e))},token:t,providedIn:"root"}),t}(),dt=function(){var t=function t(e){Object(u.a)(this,t),e._applyBodyHighContrastModeCssClasses()};return t.\u0275fac=function(e){return new(e||t)(f.cc(ft))},t.\u0275mod=f.Qb({type:t}),t.\u0275inj=f.Pb({imports:[[x.b,O.c]]}),t}()},vkgz:function(t,e,n){"use strict";n.d(e,"a",function(){return f});var r=n("JX7q"),i=n("Ji7U"),o=n("md7G"),a=n("foSv"),s=n("1OyB"),c=n("vuIU"),u=n("7o/Q");function l(){}var h=n("n6bG");function f(t,e,n){return function(r){return r.lift(new d(t,e,n))}}var d=function(){function t(e,n,r){Object(s.a)(this,t),this.nextOrObserver=e,this.error=n,this.complete=r}return Object(c.a)(t,[{key:"call",value:function(t,e){return e.subscribe(new p(t,this.nextOrObserver,this.error,this.complete))}}]),t}(),p=function(t){Object(i.a)(n,t);var e=function(t){function e(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}return function(){var n,r=Object(a.a)(t);if(e()){var i=Object(a.a)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(o.a)(this,n)}}(n);function n(t,i,o,a){var c;return Object(s.a)(this,n),(c=e.call(this,t))._tapNext=l,c._tapError=l,c._tapComplete=l,c._tapError=o||l,c._tapComplete=a||l,Object(h.a)(i)?(c._context=Object(r.a)(c),c._tapNext=i):i&&(c._context=i,c._tapNext=i.next||l,c._tapError=i.error||l,c._tapComplete=i.complete||l),c}return Object(c.a)(n,[{key:"_next",value:function(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}},{key:"_error",value:function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}]),n}(u.a)},vuIU:function(t,e,n){"use strict";function r(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new u.a(function(n){t._globalSubscription||t._addGlobalListener();var r=e>0?t._scrolled.pipe(Object(h.a)(e)).subscribe(n):t._scrolled.subscribe(n);return t._scrolledCount++,function(){r.unsubscribe(),t._scrolledCount--,t._scrolledCount||t._removeGlobalListener()}}):Object(c.a)()}},{key:"ngOnDestroy",value:function(){var t=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(e,n){return t.deregister(n)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(t,e){var n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(Object(f.a)(function(t){return!t||n.indexOf(t)>-1}))}},{key:"getAncestorScrollContainers",value:function(t){var e=this,n=[];return this.scrollContainers.forEach(function(r,i){e._scrollableContainsElement(i,t)&&n.push(i)}),n}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(t,e){var n=Object(o.d)(e),r=t.getElementRef().nativeElement;do{if(n==r)return!0}while(n=n.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var t=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){var e=t._getWindow();return Object(l.a)(e.document,"scroll").subscribe(function(){return t._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.cc(a.B),a.cc(p.a),a.cc(b.e,8))},t.\u0275prov=Object(a.Ob)({factory:function(){return new t(Object(a.cc)(a.B),Object(a.cc)(p.a),Object(a.cc)(b.e,8))},token:t,providedIn:"root"}),t}(),g=function(){var t=function(){function t(e,n,i,o){var a=this;Object(r.a)(this,t),this.elementRef=e,this.scrollDispatcher=n,this.ngZone=i,this.dir=o,this._destroyed=new s.a,this._elementScrolled=new u.a(function(t){return a.ngZone.runOutsideAngular(function(){return Object(l.a)(a.elementRef.nativeElement,"scroll").pipe(Object(d.a)(a._destroyed)).subscribe(t)})})}return Object(i.a)(t,[{key:"ngOnInit",value:function(){this.scrollDispatcher.register(this)}},{key:"ngOnDestroy",value:function(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}},{key:"elementScrolled",value:function(){return this._elementScrolled}},{key:"getElementRef",value:function(){return this.elementRef}},{key:"scrollTo",value:function(t){var e=this.elementRef.nativeElement,n=this.dir&&"rtl"==this.dir.value;null==t.left&&(t.left=n?t.end:t.start),null==t.right&&(t.right=n?t.start:t.end),null!=t.bottom&&(t.top=e.scrollHeight-e.clientHeight-t.bottom),n&&0!=Object(p.d)()?(null!=t.left&&(t.right=e.scrollWidth-e.clientWidth-t.left),2==Object(p.d)()?t.left=t.right:1==Object(p.d)()&&(t.left=t.right?-t.right:t.right)):null!=t.right&&(t.left=e.scrollWidth-e.clientWidth-t.right),this._applyScrollToOptions(t)}},{key:"_applyScrollToOptions",value:function(t){var e=this.elementRef.nativeElement;Object(p.g)()?e.scrollTo(t):(null!=t.top&&(e.scrollTop=t.top),null!=t.left&&(e.scrollLeft=t.left))}},{key:"measureScrollOffset",value:function(t){var e="left",n="right",r=this.elementRef.nativeElement;if("top"==t)return r.scrollTop;if("bottom"==t)return r.scrollHeight-r.clientHeight-r.scrollTop;var i=this.dir&&"rtl"==this.dir.value;return"start"==t?t=i?n:e:"end"==t&&(t=i?e:n),i&&2==Object(p.d)()?t==e?r.scrollWidth-r.clientWidth-r.scrollLeft:r.scrollLeft:i&&1==Object(p.d)()?t==e?r.scrollLeft+r.scrollWidth-r.clientWidth:-r.scrollLeft:t==e?r.scrollLeft:r.scrollWidth-r.clientWidth-r.scrollLeft}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Sb(a.l),a.Sb(v),a.Sb(a.B),a.Sb(m.b,8))},t.\u0275dir=a.Nb({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t}(),y=function(){var t=function(){function t(e,n,i){var o=this;Object(r.a)(this,t),this._platform=e,this._change=new s.a,this._changeListener=function(t){o._change.next(t)},this._document=i,n.runOutsideAngular(function(){if(e.isBrowser){var t=o._getWindow();t.addEventListener("resize",o._changeListener),t.addEventListener("orientationchange",o._changeListener)}o.change().subscribe(function(){return o._updateViewportSize()})})}return Object(i.a)(t,[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}},{key:"getViewportRect",value:function(){var t=this.getViewportScrollPosition(),e=this.getViewportSize(),n=e.width,r=e.height;return{top:t.top,left:t.left,bottom:t.top+r,right:t.left+n,height:r,width:n}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var t=this._document,e=this._getWindow(),n=t.documentElement,r=n.getBoundingClientRect();return{top:-r.top||t.body.scrollTop||e.scrollY||n.scrollTop||0,left:-r.left||t.body.scrollLeft||e.scrollX||n.scrollLeft||0}}},{key:"change",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return t>0?this._change.pipe(Object(h.a)(t)):this._change}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_updateViewportSize",value:function(){var t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.cc(p.a),a.cc(a.B),a.cc(b.e,8))},t.\u0275prov=Object(a.Ob)({factory:function(){return new t(Object(a.cc)(p.a),Object(a.cc)(a.B),Object(a.cc)(b.e,8))},token:t,providedIn:"root"}),t}(),w=function(){var t=function t(){Object(r.a)(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=a.Qb({type:t}),t.\u0275inj=a.Pb({}),t}(),_=function(){var t=function t(){Object(r.a)(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=a.Qb({type:t}),t.\u0275inj=a.Pb({imports:[[m.a,p.b,w],m.a,w]}),t}()},w1tV:function(t,e,n){"use strict";n.d(e,"a",function(){return s}),n("1OyB"),n("vuIU");var r=n("EQ5u"),i=n("x+ZX"),o=n("XNiG");function a(){return new o.a}function s(){return function(t){return Object(i.a)()((e=a,function(t){var n;n="function"==typeof e?e:function(){return e};var i=Object.create(t,r.b);return i.source=t,i.subjectFactory=n,i})(t));var e}}},"x+ZX":function(t,e,n){"use strict";n.d(e,"a",function(){return u});var r=n("Ji7U"),i=n("md7G"),o=n("foSv"),a=n("1OyB"),s=n("vuIU"),c=n("7o/Q");function u(){return function(t){return t.lift(new l(t))}}var l=function(){function t(e){Object(a.a)(this,t),this.connectable=e}return Object(s.a)(t,[{key:"call",value:function(t,e){var n=this.connectable;n._refCount++;var r=new h(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i}}]),t}(),h=function(t){Object(r.a)(n,t);var e=function(t){function e(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}return function(){var n,r=Object(o.a)(t);if(e()){var a=Object(o.a)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Object(i.a)(this,n)}}(n);function n(t,r){var i;return Object(a.a)(this,n),(i=e.call(this,t)).connectable=r,i}return Object(s.a)(n,[{key:"_unsubscribe",value: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}}]),n}(c.a)},xbPD:function(t,e,n){"use strict";n.d(e,"a",function(){return u});var r=n("Ji7U"),i=n("md7G"),o=n("foSv"),a=n("1OyB"),s=n("vuIU"),c=n("7o/Q");function u(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(e){return e.lift(new l(t))}}var l=function(){function t(e){Object(a.a)(this,t),this.defaultValue=e}return Object(s.a)(t,[{key:"call",value:function(t,e){return e.subscribe(new h(t,this.defaultValue))}}]),t}(),h=function(t){Object(r.a)(n,t);var e=function(t){function e(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}return function(){var n,r=Object(o.a)(t);if(e()){var a=Object(o.a)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Object(i.a)(this,n)}}(n);function n(t,r){var i;return Object(a.a)(this,n),(i=e.call(this,t)).defaultValue=r,i.isEmpty=!0,i}return Object(s.a)(n,[{key:"_next",value:function(t){this.isEmpty=!1,this.destination.next(t)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),n}(c.a)},xgIS:function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n("KQm4"),i=n("HDdC"),o=n("DH7j"),a=n("n6bG"),s=n("lJxs");function c(t,e,n,l){return Object(a.a)(n)&&(l=n,n=void 0),l?c(t,e,n).pipe(Object(s.a)(function(t){return Object(o.a)(t)?l.apply(void 0,Object(r.a)(t)):l(t)})):new i.a(function(r){u(t,e,function(t){r.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},r,n)})}function u(t,e,n,r,i){var o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){var a=t;t.addEventListener(e,n,i),o=function(){return a.removeEventListener(e,n,i)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){var s=t;t.on(e,n),o=function(){return s.off(e,n)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){var c=t;t.addListener(e,n),o=function(){return c.removeListener(e,n)}}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(var l=0,h=t.length;l=0&&p.warn("\n Warning: You are trying to load Firebase while using Firebase Performance standalone script.\n You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code.\n ")}var y=m.initializeApp;m.initializeApp=function(){for(var t=[],e=0;ethis.total&&this.destination.next(t)}}]),n}(c.a)},zUnb:function(t,e,n){"use strict";n.r(e);var r=n("jhN1"),i=n("fXoL"),o=n("ODXe"),a=n("1OyB"),s=n("vuIU"),c=n("ofXK"),u=n("LRne"),l=n("2Vo4"),h=n("XNiG"),f=n("3Pt+"),d=new i.r("recaptcha-language"),p=new i.r("recaptcha-base-url"),b=new i.r("recaptcha-nonce-tag"),m=new i.r("recaptcha-settings"),v=new i.r("recaptcha-v3-site-key"),g=function(){var t=function(){function t(e,n,r,i,o){Object(a.a)(this,t),this.platformId=e,this.language=n,this.baseUrl=r,this.nonce=i,this.v3SiteKey=o,this.init(),this.ready=Object(c.u)(this.platformId)?t.ready.asObservable():Object(u.a)()}return Object(s.a)(t,[{key:"init",value:function(){if(!t.ready&&Object(c.u)(this.platformId)){var e=new l.a(null);t.ready=e,function(t,e,n,r,i){window.ng2recaptchaloaded=function(){e(grecaptcha)};var o=document.createElement("script");o.innerHTML="",o.src="".concat(r||"https://www.google.com/recaptcha/api.js","?render=").concat(t,"&onload=ng2recaptchaloaded").concat(n),i&&(o.nonce=i),o.async=!0,o.defer=!0,document.head.appendChild(o)}(this.v3SiteKey||"explicit",function(t){return e.next(t)},this.language?"&hl="+this.language:"",this.baseUrl,this.nonce)}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(i.cc(i.D),i.cc(d,8),i.cc(p,8),i.cc(b,8),i.cc(v,8))},t.\u0275prov=i.Ob({token:t,factory:t.\u0275fac}),t.ready=null,t}(),y=function(){var t=function t(){Object(a.a)(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Qb({type:t}),t.\u0275inj=i.Pb({}),t}(),w=function(){var t=function t(){Object(a.a)(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Qb({type:t}),t.\u0275inj=i.Pb({providers:[g],imports:[[y]]}),t}(),_=function(){var t=function t(){Object(a.a)(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Qb({type:t}),t.\u0275inj=i.Pb({imports:[[f.i,y]]}),t}(),k=n("R1ws"),x=n("/1cH"),O=n("bTqV"),S=n("Wp6s"),E=n("bSwM"),C=n("0IaG"),j=n("f0Cb"),T=n("kmnG"),I=n("zkoq"),A=n("NFeN"),R=n("qFsG"),P=n("STbY"),L=n("XhcP"),N=n("5RNC"),D=n("dNgK"),M=n("/t3+"),F=n("rePB"),V=n("1G5W"),U=n("IzEk"),B=n("Ji7U"),q=n("md7G"),X=n("foSv");n("7o/Q"),n("D0XW"),n("zx2A");var z=n("lJxs"),H=(n("Zy1z"),n("/uUt")),Y=(n("w1tV"),n("pLZG")),G=(n("zP0r"),n("PqYM")),K=n("VRyK"),W=n("xgIS"),Q=n("eNwd"),Z=n("HDdC"),J=n("R0Ic"),$=n("u47x"),tt=n("tyNb"),et=n("mrSG"),nt=["*"],rt=["mdbBtn",""];function it(t,e){if(1&t){var n=i.Zb();i.Yb(0,"div",6),i.Yb(1,"a",7),i.gc("click",function(){return i.Ec(n),i.kc().previousSlide()}),i.Tb(2,"i",8),i.Xb(),i.Yb(3,"a",7),i.gc("click",function(){return i.Ec(n),i.kc().nextSlide()}),i.Tb(4,"i",9),i.Xb(),i.Xb()}if(2&t){var r=i.kc();i.Eb(1),i.Kb("disabled",0===r.activeSlide&&r.noWrap),i.Eb(2),i.Kb("disabled",r.isLast(r.activeSlide)&&r.noWrap)}}function ot(t,e){if(1&t){var n=i.Zb();i.Yb(0,"li",12),i.gc("click",function(){i.Ec(n);var t=e.index;return i.kc(2).selectSlide(t)}),i.Xb()}2&t&&i.Kb("active",!0===e.$implicit.active)}function at(t,e){if(1&t&&(i.Yb(0,"ol",10),i.Lc(1,ot,1,2,"li",11),i.Xb()),2&t){var n=i.kc();i.Eb(1),i.qc("ngForOf",n.slides)}}function st(t,e){if(1&t){var n=i.Zb();i.Yb(0,"li",12),i.gc("click",function(){i.Ec(n);var t=e.index;return i.kc(2).selectSlide(t)}),i.Tb(1,"img",13),i.Xb()}if(2&t){var r=e.$implicit,o=i.kc(2);i.Kb("active",!0===r.active),i.Eb(1),i.rc("src",o.getImg(r),i.Fc)}}function ct(t,e){if(1&t&&(i.Yb(0,"ol",10),i.Lc(1,st,2,3,"li",11),i.Xb()),2&t){var n=i.kc();i.Eb(1),i.qc("ngForOf",n.slides)}}function ut(t,e){if(1&t){var n=i.Zb();i.Yb(0,"a",14),i.gc("click",function(){return i.Ec(n),i.kc().previousSlide()}),i.Tb(1,"span",15),i.Yb(2,"span",16),i.Nc(3,"Previous"),i.Xb(),i.Xb()}if(2&t){var r=i.kc();i.Kb("disabled",0===r.activeSlide&&r.noWrap)}}function lt(t,e){if(1&t){var n=i.Zb();i.Yb(0,"a",17),i.gc("click",function(){return i.Ec(n),i.kc().nextSlide()}),i.Tb(1,"span",18),i.Yb(2,"span",16),i.Nc(3,"Next"),i.Xb(),i.Xb()}if(2&t){var r=i.kc();i.Kb("disabled",r.isLast(r.activeSlide)&&r.noWrap)}}var ht=["input"],ft=function(t,e,n,r){return{"custom-control custom-checkbox":t,"form-check":e,"custom-control-inline":n,"form-check-inline":r}},dt=function(t,e,n){return{"filled-in":t,"custom-control-input":e,"form-check-input":n}},pt=function(t,e,n,r,i){return{"custom-control-label":t,"form-check-label":e,"label-before":n,"checkbox-rounded":r,disabled:i}},bt=function(t,e,n,r,i){return{fas:t,far:e,fab:n,fal:r,fad:i}},mt=function(){var t=function t(){Object(a.a)(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Qb({type:t}),t.\u0275inj=i.Pb({}),t}(),vt=function(){var t=function t(){Object(a.a)(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Qb({type:t}),t.\u0275inj=i.Pb({imports:[[c.c]]}),t}(),gt=function(){var t=function(){function t(e,n){Object(a.a)(this,t),this.el=e,this.renderer=n,this.color="",this.rounded=!1,this.gradient="",this.outline=!1,this.flat=!1,this.size="",this.block=!1,this.floating=!1}return Object(s.a)(t,[{key:"ngOnInit",value:function(){this.colorClass="btn-"+this.color,this.gradientClass=this.gradient+"-gradient",this.outlineClass="btn-outline-"+this.color,this.flatClass="btn-flat",this.roundedClass="btn-rounded",this.sizeClass="btn-"+this.size,this.blockClass="btn-block",this.floatingClass="btn-floating",this.renderer.addClass(this.el.nativeElement,"btn"),this.initClasses()}},{key:"ngOnChanges",value:function(t){if(t.color&&(this.renderer.removeClass(this.el.nativeElement,this.colorClass),this.color&&""!==this.color&&(this.colorClass="btn-"+this.color,this.renderer.addClass(this.el.nativeElement,this.colorClass)),this.outline)){var e=this.outlineClass;this.outlineClass="btn-outline-"+this.color,this.renderer.removeClass(this.el.nativeElement,e),this.renderer.addClass(this.el.nativeElement,this.outlineClass)}t.gradient&&(this.renderer.removeClass(this.el.nativeElement,this.gradientClass),""!==this.gradient&&(this.gradientClass=this.gradient+"-gradient",this.renderer.addClass(this.el.nativeElement,this.gradientClass))),t.outline&&(this.outline||this.renderer.removeClass(this.el.nativeElement,this.outlineClass),this.outline&&(this.renderer.removeClass(this.el.nativeElement,this.colorClass),this.renderer.addClass(this.el.nativeElement,this.outlineClass)),this.outlineClass="btn-outline-"+this.color),t.flat&&(this.renderer.removeClass(this.el.nativeElement,this.flatClass),this.flat&&(this.color&&this.renderer.removeClass(this.el.nativeElement,this.colorClass),this.gradient&&this.renderer.removeClass(this.el.nativeElement,this.gradientClass),this.outline&&this.renderer.removeClass(this.el.nativeElement,this.outlineClass),this.rounded&&this.renderer.removeClass(this.el.nativeElement,this.roundedClass),this.renderer.addClass(this.el.nativeElement,this.flatClass))),t.rounded&&(this.renderer.removeClass(this.el.nativeElement,this.roundedClass),this.rounded&&(this.roundedClass="btn-rounded",this.renderer.addClass(this.el.nativeElement,this.roundedClass))),t.size&&(this.renderer.removeClass(this.el.nativeElement,this.sizeClass),""!==this.size&&(this.sizeClass="btn-"+this.size,this.renderer.addClass(this.el.nativeElement,this.sizeClass))),t.block&&(this.renderer.removeClass(this.el.nativeElement,this.blockClass),this.block&&(this.blockClass="btn-block",this.renderer.addClass(this.el.nativeElement,this.blockClass))),t.floating&&(this.floating||(this.renderer.removeClass(this.el.nativeElement,this.floatingClass),this.renderer.addClass(this.el.nativeElement,"btn")),this.floating&&(this.floatingClass="btn-floating",this.renderer.addClass(this.el.nativeElement,this.floatingClass),this.renderer.removeClass(this.el.nativeElement,"btn")))}},{key:"initClasses",value:function(){""!==this.color&&this.renderer.addClass(this.el.nativeElement,this.colorClass),this.rounded&&this.renderer.addClass(this.el.nativeElement,this.roundedClass),this.gradient&&(""!==this.color&&this.renderer.removeClass(this.el.nativeElement,this.colorClass),this.renderer.addClass(this.el.nativeElement,this.gradientClass)),this.outline&&(this.renderer.removeClass(this.el.nativeElement,this.colorClass),this.renderer.addClass(this.el.nativeElement,this.outlineClass)),this.flat&&(this.color&&this.renderer.removeClass(this.el.nativeElement,this.colorClass),this.gradient&&this.renderer.removeClass(this.el.nativeElement,this.gradientClass),this.outline&&this.renderer.removeClass(this.el.nativeElement,this.outlineClass),this.rounded&&this.renderer.removeClass(this.el.nativeElement,this.roundedClass),this.renderer.addClass(this.el.nativeElement,this.flatClass)),this.size&&this.renderer.addClass(this.el.nativeElement,this.sizeClass),this.block&&this.renderer.addClass(this.el.nativeElement,this.blockClass),this.floating&&(this.renderer.addClass(this.el.nativeElement,this.floatingClass),this.renderer.removeClass(this.el.nativeElement,"btn"))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(i.Sb(i.l),i.Sb(i.G))},t.\u0275cmp=i.Mb({type:t,selectors:[["","mdbBtn",""]],inputs:{color:"color",rounded:"rounded",gradient:"gradient",outline:"outline",flat:"flat",size:"size",block:"block",floating:"floating"},features:[i.Cb],attrs:rt,ngContentSelectors:nt,decls:1,vars:0,template:function(t,e){1&t&&(i.pc(),i.oc(0))},styles:[".btn{box-shadow:0 2px 5px 0 rgba(0,0,0,.16),0 2px 10px 0 rgba(0,0,0,.12);padding:.84rem 2.14rem;font-size:.81rem;transition:all .2s ease-in-out;margin:.375rem;border:0;border-radius:.125rem;cursor:pointer;text-transform:uppercase;white-space:normal;word-wrap:break-word;color:inherit}.btn:active,.btn:focus,.btn:hover{outline:0}.btn:active,.btn:focus,.btn:hover,.btn:not([disabled]):not(.disabled).active,.btn:not([disabled]):not(.disabled):active{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn .fab,.btn .far,.btn .fas{position:relative;font-size:.9rem}.btn .fab.right,.btn .far.right,.btn .fas.right{margin-left:.3rem}.btn .fab.left,.btn .far.left,.btn .fas.left{margin-right:.3rem}.btn.btn-lg .fab,.btn.btn-lg .far,.btn.btn-lg .fas{font-size:1rem}.btn.btn-md .fab,.btn.btn-md .far,.btn.btn-md .fas{font-size:.8rem}.btn.btn-sm .fab,.btn.btn-sm .far,.btn.btn-sm .fas{font-size:.7rem}.btn.btn-tb{padding:.3rem 1rem}.btn.disabled:active,.btn.disabled:focus,.btn.disabled:hover,.btn:disabled:active,.btn:disabled:focus,.btn:disabled:hover{box-shadow:0 2px 5px 0 rgba(0,0,0,.16),0 2px 10px 0 rgba(0,0,0,.12)}.btn.btn-block{margin:inherit}.btn.btn-link{color:#000;box-shadow:none;background-color:transparent}.btn.btn-link:active,.btn.btn-link:focus,.btn.btn-link:hover{box-shadow:none!important;background-color:transparent}.btn[class*=btn-outline-]{padding-top:.7rem;padding-bottom:.7rem}.btn[class*=btn-outline-].btn-lg{padding-top:.88rem;padding-bottom:.88rem}.btn[class*=btn-outline-].btn-md{padding-top:.58rem;padding-bottom:.58rem}.btn[class*=btn-outline-].btn-sm{padding-top:.38rem;padding-bottom:.38rem}.btn-group .btn{margin:0}.btn-floating .fa-lg,.btn .fa-lg{font-size:1.33333em!important}.btn-floating .fa-xs,.btn .fa-xs{font-size:.75em!important}.btn-floating .fa-sm,.btn .fa-sm{font-size:.875em!important}.btn-floating .fa-1x,.btn .fa-1x{font-size:1em!important}.btn-floating .fa-2x,.btn .fa-2x{font-size:2em!important}.btn-floating .fa-3x,.btn .fa-3x{font-size:3em!important}.btn-floating .fa-4x,.btn .fa-4x{font-size:4em!important}.btn-floating .fa-5x,.btn .fa-5x{font-size:5em!important}.btn-floating .fa-6x,.btn .fa-6x{font-size:6em!important}.btn-floating .fa-7x,.btn .fa-7x{font-size:7em!important}.btn-floating .fa-8x,.btn .fa-8x{font-size:8em!important}.btn-floating .fa-9x,.btn .fa-9x{font-size:9em!important}.btn-floating .fa-10x,.btn .fa-10x{font-size:10em!important}.btn-primary{background-color:#4285f4!important;color:#fff}.btn-primary:hover{background-color:#5a95f5;color:#fff}.btn-primary.focus,.btn-primary:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-primary.active,.btn-primary:active,.btn-primary:focus{background-color:#0b51c5}.btn-primary.dropdown-toggle{background-color:#4285f4!important}.btn-primary.dropdown-toggle:focus,.btn-primary.dropdown-toggle:hover{background-color:#5a95f5!important}.btn-primary:not([disabled]):not(.disabled).active,.btn-primary:not([disabled]):not(.disabled):active,.show>.btn-primary.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:#0b51c5!important}.btn-primary:not([disabled]):not(.disabled).active:focus,.btn-primary:not([disabled]):not(.disabled):active:focus,.show>.btn-primary.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.primary-ic{color:#4285f4!important}.primary-ic:focus,.primary-ic:hover{color:#4285f4}table.table a.btn.btn-primary{color:#fff}.btn-outline-primary{border:2px solid #4285f4!important;background-color:transparent!important;color:#4285f4!important}.btn-outline-primary.active,.btn-outline-primary:active,.btn-outline-primary:active:focus,.btn-outline-primary:focus,.btn-outline-primary:hover{border-color:#4285f4!important;background-color:transparent!important;color:#4285f4!important}.btn-outline-primary:not([disabled]):not(.disabled).active,.btn-outline-primary:not([disabled]):not(.disabled):active,.show>.btn-outline-primary.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:transparent!important;border-color:#4285f4!important}.btn-outline-primary:not([disabled]):not(.disabled).active:focus,.btn-outline-primary:not([disabled]):not(.disabled):active:focus,.show>.btn-outline-primary.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-danger{background-color:#ff3547!important;color:#fff}.btn-danger:hover{background-color:#ff4f5e;color:#fff}.btn-danger.focus,.btn-danger:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-danger.active,.btn-danger:active,.btn-danger:focus{background-color:#ce0012}.btn-danger.dropdown-toggle{background-color:#ff3547!important}.btn-danger.dropdown-toggle:focus,.btn-danger.dropdown-toggle:hover{background-color:#ff4f5e!important}.btn-danger:not([disabled]):not(.disabled).active,.btn-danger:not([disabled]):not(.disabled):active,.show>.btn-danger.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:#ce0012!important}.btn-danger:not([disabled]):not(.disabled).active:focus,.btn-danger:not([disabled]):not(.disabled):active:focus,.show>.btn-danger.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.danger-ic{color:#ff3547!important}.danger-ic:focus,.danger-ic:hover{color:#ff3547}table.table a.btn.btn-danger{color:#fff}.btn-outline-danger{border:2px solid #ff3547!important;background-color:transparent!important;color:#ff3547!important}.btn-outline-danger.active,.btn-outline-danger:active,.btn-outline-danger:active:focus,.btn-outline-danger:focus,.btn-outline-danger:hover{border-color:#ff3547!important;background-color:transparent!important;color:#ff3547!important}.btn-outline-danger:not([disabled]):not(.disabled).active,.btn-outline-danger:not([disabled]):not(.disabled):active,.show>.btn-outline-danger.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:transparent!important;border-color:#ff3547!important}.btn-outline-danger:not([disabled]):not(.disabled).active:focus,.btn-outline-danger:not([disabled]):not(.disabled):active:focus,.show>.btn-outline-danger.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-warning{background-color:#fb3!important;color:#fff}.btn-warning:hover{background-color:#ffc44d;color:#fff}.btn-warning.focus,.btn-warning:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-warning.active,.btn-warning:active,.btn-warning:focus{background-color:#c80}.btn-warning.dropdown-toggle{background-color:#fb3!important}.btn-warning.dropdown-toggle:focus,.btn-warning.dropdown-toggle:hover{background-color:#ffc44d!important}.btn-warning:not([disabled]):not(.disabled).active,.btn-warning:not([disabled]):not(.disabled):active,.show>.btn-warning.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:#c80!important}.btn-warning:not([disabled]):not(.disabled).active:focus,.btn-warning:not([disabled]):not(.disabled):active:focus,.show>.btn-warning.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.warning-ic{color:#fb3!important}.warning-ic:focus,.warning-ic:hover{color:#fb3}table.table a.btn.btn-warning{color:#fff}.btn-outline-warning{border:2px solid #fb3!important;background-color:transparent!important;color:#fb3!important}.btn-outline-warning.active,.btn-outline-warning:active,.btn-outline-warning:active:focus,.btn-outline-warning:focus,.btn-outline-warning:hover{border-color:#fb3!important;background-color:transparent!important;color:#fb3!important}.btn-outline-warning:not([disabled]):not(.disabled).active,.btn-outline-warning:not([disabled]):not(.disabled):active,.show>.btn-outline-warning.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:transparent!important;border-color:#fb3!important}.btn-outline-warning:not([disabled]):not(.disabled).active:focus,.btn-outline-warning:not([disabled]):not(.disabled):active:focus,.show>.btn-outline-warning.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-success{background-color:#00c851!important;color:#fff}.btn-success:hover{background-color:#00e25b;color:#fff}.btn-success.focus,.btn-success:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-success.active,.btn-success:active,.btn-success:focus{background-color:#006228}.btn-success.dropdown-toggle{background-color:#00c851!important}.btn-success.dropdown-toggle:focus,.btn-success.dropdown-toggle:hover{background-color:#00e25b!important}.btn-success:not([disabled]):not(.disabled).active,.btn-success:not([disabled]):not(.disabled):active,.show>.btn-success.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:#006228!important}.btn-success:not([disabled]):not(.disabled).active:focus,.btn-success:not([disabled]):not(.disabled):active:focus,.show>.btn-success.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.success-ic{color:#00c851!important}.success-ic:focus,.success-ic:hover{color:#00c851}table.table a.btn.btn-success{color:#fff}.btn-outline-success{border:2px solid #00c851!important;background-color:transparent!important;color:#00c851!important}.btn-outline-success.active,.btn-outline-success:active,.btn-outline-success:active:focus,.btn-outline-success:focus,.btn-outline-success:hover{border-color:#00c851!important;background-color:transparent!important;color:#00c851!important}.btn-outline-success:not([disabled]):not(.disabled).active,.btn-outline-success:not([disabled]):not(.disabled):active,.show>.btn-outline-success.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:transparent!important;border-color:#00c851!important}.btn-outline-success:not([disabled]):not(.disabled).active:focus,.btn-outline-success:not([disabled]):not(.disabled):active:focus,.show>.btn-outline-success.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-info{background-color:#33b5e5!important;color:#fff}.btn-info:hover{background-color:#4abde8;color:#fff}.btn-info.focus,.btn-info:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-info.active,.btn-info:active,.btn-info:focus{background-color:#14799e}.btn-info.dropdown-toggle{background-color:#33b5e5!important}.btn-info.dropdown-toggle:focus,.btn-info.dropdown-toggle:hover{background-color:#4abde8!important}.btn-info:not([disabled]):not(.disabled).active,.btn-info:not([disabled]):not(.disabled):active,.show>.btn-info.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:#14799e!important}.btn-info:not([disabled]):not(.disabled).active:focus,.btn-info:not([disabled]):not(.disabled):active:focus,.show>.btn-info.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.info-ic{color:#33b5e5!important}.info-ic:focus,.info-ic:hover{color:#33b5e5}table.table a.btn.btn-info{color:#fff}.btn-outline-info{border:2px solid #33b5e5!important;background-color:transparent!important;color:#33b5e5!important}.btn-outline-info.active,.btn-outline-info:active,.btn-outline-info:active:focus,.btn-outline-info:focus,.btn-outline-info:hover{border-color:#33b5e5!important;background-color:transparent!important;color:#33b5e5!important}.btn-outline-info:not([disabled]):not(.disabled).active,.btn-outline-info:not([disabled]):not(.disabled):active,.show>.btn-outline-info.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:transparent!important;border-color:#33b5e5!important}.btn-outline-info:not([disabled]):not(.disabled).active:focus,.btn-outline-info:not([disabled]):not(.disabled):active:focus,.show>.btn-outline-info.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-default{background-color:#2bbbad!important;color:#fff}.btn-default:hover{background-color:#30cfc0;color:#fff}.btn-default.focus,.btn-default:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-default.active,.btn-default:active,.btn-default:focus{background-color:#186860}.btn-default.dropdown-toggle{background-color:#2bbbad!important}.btn-default.dropdown-toggle:focus,.btn-default.dropdown-toggle:hover{background-color:#30cfc0!important}.btn-default:not([disabled]):not(.disabled).active,.btn-default:not([disabled]):not(.disabled):active,.show>.btn-default.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:#186860!important}.btn-default:not([disabled]):not(.disabled).active:focus,.btn-default:not([disabled]):not(.disabled):active:focus,.show>.btn-default.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.default-ic{color:#2bbbad!important}.default-ic:focus,.default-ic:hover{color:#2bbbad}table.table a.btn.btn-default{color:#fff}.btn-outline-default{border:2px solid #2bbbad!important;background-color:transparent!important;color:#2bbbad!important}.btn-outline-default.active,.btn-outline-default:active,.btn-outline-default:active:focus,.btn-outline-default:focus,.btn-outline-default:hover{border-color:#2bbbad!important;background-color:transparent!important;color:#2bbbad!important}.btn-outline-default:not([disabled]):not(.disabled).active,.btn-outline-default:not([disabled]):not(.disabled):active,.show>.btn-outline-default.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:transparent!important;border-color:#2bbbad!important}.btn-outline-default:not([disabled]):not(.disabled).active:focus,.btn-outline-default:not([disabled]):not(.disabled):active:focus,.show>.btn-outline-default.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-secondary{background-color:#a6c!important;color:#fff}.btn-secondary:hover{background-color:#b579d2;color:#fff}.btn-secondary.focus,.btn-secondary:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-secondary.active,.btn-secondary:active,.btn-secondary:focus{background-color:#739}.btn-secondary.dropdown-toggle{background-color:#a6c!important}.btn-secondary.dropdown-toggle:focus,.btn-secondary.dropdown-toggle:hover{background-color:#b579d2!important}.btn-secondary:not([disabled]):not(.disabled).active,.btn-secondary:not([disabled]):not(.disabled):active,.show>.btn-secondary.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:#739!important}.btn-secondary:not([disabled]):not(.disabled).active:focus,.btn-secondary:not([disabled]):not(.disabled):active:focus,.show>.btn-secondary.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.secondary-ic{color:#a6c!important}.secondary-ic:focus,.secondary-ic:hover{color:#a6c}table.table a.btn.btn-secondary{color:#fff}.btn-outline-secondary{border:2px solid #a6c!important;background-color:transparent!important;color:#a6c!important}.btn-outline-secondary.active,.btn-outline-secondary:active,.btn-outline-secondary:active:focus,.btn-outline-secondary:focus,.btn-outline-secondary:hover{border-color:#a6c!important;background-color:transparent!important;color:#a6c!important}.btn-outline-secondary:not([disabled]):not(.disabled).active,.btn-outline-secondary:not([disabled]):not(.disabled):active,.show>.btn-outline-secondary.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:transparent!important;border-color:#a6c!important}.btn-outline-secondary:not([disabled]):not(.disabled).active:focus,.btn-outline-secondary:not([disabled]):not(.disabled):active:focus,.show>.btn-outline-secondary.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-elegant{background-color:#2e2e2e!important;color:#fff}.btn-elegant:hover{background-color:#3b3b3b;color:#fff}.btn-elegant.focus,.btn-elegant:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-elegant.active,.btn-elegant:active,.btn-elegant:focus{background-color:#000}.btn-elegant.dropdown-toggle{background-color:#2e2e2e!important}.btn-elegant.dropdown-toggle:focus,.btn-elegant.dropdown-toggle:hover{background-color:#3b3b3b!important}.btn-elegant:not([disabled]):not(.disabled).active,.btn-elegant:not([disabled]):not(.disabled):active,.show>.btn-elegant.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:#000!important}.btn-elegant:not([disabled]):not(.disabled).active:focus,.btn-elegant:not([disabled]):not(.disabled):active:focus,.show>.btn-elegant.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.elegant-ic{color:#2e2e2e!important}.elegant-ic:focus,.elegant-ic:hover{color:#2e2e2e}table.table a.btn.btn-elegant{color:#fff}.btn-outline-elegant{border:2px solid #2e2e2e!important;background-color:transparent!important;color:#2e2e2e!important}.btn-outline-elegant.active,.btn-outline-elegant:active,.btn-outline-elegant:active:focus,.btn-outline-elegant:focus,.btn-outline-elegant:hover{border-color:#2e2e2e!important;background-color:transparent!important;color:#2e2e2e!important}.btn-outline-elegant:not([disabled]):not(.disabled).active,.btn-outline-elegant:not([disabled]):not(.disabled):active,.show>.btn-outline-elegant.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:transparent!important;border-color:#2e2e2e!important}.btn-outline-elegant:not([disabled]):not(.disabled).active:focus,.btn-outline-elegant:not([disabled]):not(.disabled):active:focus,.show>.btn-outline-elegant.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-unique{background-color:#880e4f!important;color:#fff}.btn-unique:hover{background-color:#9f105c;color:#fff}.btn-unique.focus,.btn-unique:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-unique.active,.btn-unique:active,.btn-unique:focus{background-color:#2c0419}.btn-unique.dropdown-toggle{background-color:#880e4f!important}.btn-unique.dropdown-toggle:focus,.btn-unique.dropdown-toggle:hover{background-color:#9f105c!important}.btn-unique:not([disabled]):not(.disabled).active,.btn-unique:not([disabled]):not(.disabled):active,.show>.btn-unique.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:#2c0419!important}.btn-unique:not([disabled]):not(.disabled).active:focus,.btn-unique:not([disabled]):not(.disabled):active:focus,.show>.btn-unique.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.unique-ic{color:#880e4f!important}.unique-ic:focus,.unique-ic:hover{color:#880e4f}table.table a.btn.btn-unique{color:#fff}.btn-outline-unique{border:2px solid #880e4f!important;background-color:transparent!important;color:#880e4f!important}.btn-outline-unique.active,.btn-outline-unique:active,.btn-outline-unique:active:focus,.btn-outline-unique:focus,.btn-outline-unique:hover{border-color:#880e4f!important;background-color:transparent!important;color:#880e4f!important}.btn-outline-unique:not([disabled]):not(.disabled).active,.btn-outline-unique:not([disabled]):not(.disabled):active,.show>.btn-outline-unique.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:transparent!important;border-color:#880e4f!important}.btn-outline-unique:not([disabled]):not(.disabled).active:focus,.btn-outline-unique:not([disabled]):not(.disabled):active:focus,.show>.btn-outline-unique.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-dark-green{background-color:#388e3c!important;color:#fff}.btn-dark-green:hover{background-color:#3fa044;color:#fff}.btn-dark-green.focus,.btn-dark-green:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-dark-green.active,.btn-dark-green:active,.btn-dark-green:focus{background-color:#1b451d}.btn-dark-green.dropdown-toggle{background-color:#388e3c!important}.btn-dark-green.dropdown-toggle:focus,.btn-dark-green.dropdown-toggle:hover{background-color:#3fa044!important}.btn-dark-green:not([disabled]):not(.disabled).active,.btn-dark-green:not([disabled]):not(.disabled):active,.show>.btn-dark-green.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:#1b451d!important}.btn-dark-green:not([disabled]):not(.disabled).active:focus,.btn-dark-green:not([disabled]):not(.disabled):active:focus,.show>.btn-dark-green.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.dark-green-ic{color:#388e3c!important}.dark-green-ic:focus,.dark-green-ic:hover{color:#388e3c}table.table a.btn.btn-dark-green{color:#fff}.btn-outline-dark-green{border:2px solid #388e3c!important;background-color:transparent!important;color:#388e3c!important}.btn-outline-dark-green.active,.btn-outline-dark-green:active,.btn-outline-dark-green:active:focus,.btn-outline-dark-green:focus,.btn-outline-dark-green:hover{border-color:#388e3c!important;background-color:transparent!important;color:#388e3c!important}.btn-outline-dark-green:not([disabled]):not(.disabled).active,.btn-outline-dark-green:not([disabled]):not(.disabled):active,.show>.btn-outline-dark-green.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:transparent!important;border-color:#388e3c!important}.btn-outline-dark-green:not([disabled]):not(.disabled).active:focus,.btn-outline-dark-green:not([disabled]):not(.disabled):active:focus,.show>.btn-outline-dark-green.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-mdb-color{background-color:#59698d!important;color:#fff}.btn-mdb-color:hover{background-color:#63759d;color:#fff}.btn-mdb-color.focus,.btn-mdb-color:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-mdb-color.active,.btn-mdb-color:active,.btn-mdb-color:focus{background-color:#323a4e}.btn-mdb-color.dropdown-toggle{background-color:#59698d!important}.btn-mdb-color.dropdown-toggle:focus,.btn-mdb-color.dropdown-toggle:hover{background-color:#63759d!important}.btn-mdb-color:not([disabled]):not(.disabled).active,.btn-mdb-color:not([disabled]):not(.disabled):active,.show>.btn-mdb-color.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:#323a4e!important}.btn-mdb-color:not([disabled]):not(.disabled).active:focus,.btn-mdb-color:not([disabled]):not(.disabled):active:focus,.show>.btn-mdb-color.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.mdb-color-ic{color:#59698d!important}.mdb-color-ic:focus,.mdb-color-ic:hover{color:#59698d}table.table a.btn.btn-mdb-color{color:#fff}.btn-outline-mdb-color{border:2px solid #59698d!important;background-color:transparent!important;color:#59698d!important}.btn-outline-mdb-color.active,.btn-outline-mdb-color:active,.btn-outline-mdb-color:active:focus,.btn-outline-mdb-color:focus,.btn-outline-mdb-color:hover{border-color:#59698d!important;background-color:transparent!important;color:#59698d!important}.btn-outline-mdb-color:not([disabled]):not(.disabled).active,.btn-outline-mdb-color:not([disabled]):not(.disabled):active,.show>.btn-outline-mdb-color.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:transparent!important;border-color:#59698d!important}.btn-outline-mdb-color:not([disabled]):not(.disabled).active:focus,.btn-outline-mdb-color:not([disabled]):not(.disabled):active:focus,.show>.btn-outline-mdb-color.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-red{background-color:#d32f2f!important;color:#fff}.btn-red:hover{background-color:#d74444;color:#fff}.btn-red.focus,.btn-red:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-red.active,.btn-red:active,.btn-red:focus{background-color:#811b1b}.btn-red.dropdown-toggle{background-color:#d32f2f!important}.btn-red.dropdown-toggle:focus,.btn-red.dropdown-toggle:hover{background-color:#d74444!important}.btn-red:not([disabled]):not(.disabled).active,.btn-red:not([disabled]):not(.disabled):active,.show>.btn-red.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:#811b1b!important}.btn-red:not([disabled]):not(.disabled).active:focus,.btn-red:not([disabled]):not(.disabled):active:focus,.show>.btn-red.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.red-ic{color:#d32f2f!important}.red-ic:focus,.red-ic:hover{color:#d32f2f}table.table a.btn.btn-red{color:#fff}.btn-outline-red{border:2px solid #d32f2f!important;background-color:transparent!important;color:#d32f2f!important}.btn-outline-red.active,.btn-outline-red:active,.btn-outline-red:active:focus,.btn-outline-red:focus,.btn-outline-red:hover{border-color:#d32f2f!important;background-color:transparent!important;color:#d32f2f!important}.btn-outline-red:not([disabled]):not(.disabled).active,.btn-outline-red:not([disabled]):not(.disabled):active,.show>.btn-outline-red.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:transparent!important;border-color:#d32f2f!important}.btn-outline-red:not([disabled]):not(.disabled).active:focus,.btn-outline-red:not([disabled]):not(.disabled):active:focus,.show>.btn-outline-red.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-pink{background-color:#ec407a!important;color:#fff}.btn-pink:hover{background-color:#ee578a;color:#fff}.btn-pink.focus,.btn-pink:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-pink.active,.btn-pink:active,.btn-pink:focus{background-color:#b41249}.btn-pink.dropdown-toggle{background-color:#ec407a!important}.btn-pink.dropdown-toggle:focus,.btn-pink.dropdown-toggle:hover{background-color:#ee578a!important}.btn-pink:not([disabled]):not(.disabled).active,.btn-pink:not([disabled]):not(.disabled):active,.show>.btn-pink.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:#b41249!important}.btn-pink:not([disabled]):not(.disabled).active:focus,.btn-pink:not([disabled]):not(.disabled):active:focus,.show>.btn-pink.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.pink-ic{color:#ec407a!important}.pink-ic:focus,.pink-ic:hover{color:#ec407a}table.table a.btn.btn-pink{color:#fff}.btn-outline-pink{border:2px solid #ec407a!important;background-color:transparent!important;color:#ec407a!important}.btn-outline-pink.active,.btn-outline-pink:active,.btn-outline-pink:active:focus,.btn-outline-pink:focus,.btn-outline-pink:hover{border-color:#ec407a!important;background-color:transparent!important;color:#ec407a!important}.btn-outline-pink:not([disabled]):not(.disabled).active,.btn-outline-pink:not([disabled]):not(.disabled):active,.show>.btn-outline-pink.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:transparent!important;border-color:#ec407a!important}.btn-outline-pink:not([disabled]):not(.disabled).active:focus,.btn-outline-pink:not([disabled]):not(.disabled):active:focus,.show>.btn-outline-pink.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-purple{background-color:#8e24aa!important;color:#fff}.btn-purple:hover{background-color:#a028bf;color:#fff}.btn-purple.focus,.btn-purple:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-purple.active,.btn-purple:active,.btn-purple:focus{background-color:#481256}.btn-purple.dropdown-toggle{background-color:#8e24aa!important}.btn-purple.dropdown-toggle:focus,.btn-purple.dropdown-toggle:hover{background-color:#a028bf!important}.btn-purple:not([disabled]):not(.disabled).active,.btn-purple:not([disabled]):not(.disabled):active,.show>.btn-purple.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:#481256!important}.btn-purple:not([disabled]):not(.disabled).active:focus,.btn-purple:not([disabled]):not(.disabled):active:focus,.show>.btn-purple.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.purple-ic{color:#8e24aa!important}.purple-ic:focus,.purple-ic:hover{color:#8e24aa}table.table a.btn.btn-purple{color:#fff}.btn-outline-purple{border:2px solid #8e24aa!important;background-color:transparent!important;color:#8e24aa!important}.btn-outline-purple.active,.btn-outline-purple:active,.btn-outline-purple:active:focus,.btn-outline-purple:focus,.btn-outline-purple:hover{border-color:#8e24aa!important;background-color:transparent!important;color:#8e24aa!important}.btn-outline-purple:not([disabled]):not(.disabled).active,.btn-outline-purple:not([disabled]):not(.disabled):active,.show>.btn-outline-purple.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:transparent!important;border-color:#8e24aa!important}.btn-outline-purple:not([disabled]):not(.disabled).active:focus,.btn-outline-purple:not([disabled]):not(.disabled):active:focus,.show>.btn-outline-purple.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-deep-purple{background-color:#512da8!important;color:#fff}.btn-deep-purple:hover{background-color:#5b32bc;color:#fff}.btn-deep-purple.focus,.btn-deep-purple:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-deep-purple.active,.btn-deep-purple:active,.btn-deep-purple:focus{background-color:#2a1758}.btn-deep-purple.dropdown-toggle{background-color:#512da8!important}.btn-deep-purple.dropdown-toggle:focus,.btn-deep-purple.dropdown-toggle:hover{background-color:#5b32bc!important}.btn-deep-purple:not([disabled]):not(.disabled).active,.btn-deep-purple:not([disabled]):not(.disabled):active,.show>.btn-deep-purple.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:#2a1758!important}.btn-deep-purple:not([disabled]):not(.disabled).active:focus,.btn-deep-purple:not([disabled]):not(.disabled):active:focus,.show>.btn-deep-purple.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.deep-purple-ic{color:#512da8!important}.deep-purple-ic:focus,.deep-purple-ic:hover{color:#512da8}table.table a.btn.btn-deep-purple{color:#fff}.btn-outline-deep-purple{border:2px solid #512da8!important;background-color:transparent!important;color:#512da8!important}.btn-outline-deep-purple.active,.btn-outline-deep-purple:active,.btn-outline-deep-purple:active:focus,.btn-outline-deep-purple:focus,.btn-outline-deep-purple:hover{border-color:#512da8!important;background-color:transparent!important;color:#512da8!important}.btn-outline-deep-purple:not([disabled]):not(.disabled).active,.btn-outline-deep-purple:not([disabled]):not(.disabled):active,.show>.btn-outline-deep-purple.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:transparent!important;border-color:#512da8!important}.btn-outline-deep-purple:not([disabled]):not(.disabled).active:focus,.btn-outline-deep-purple:not([disabled]):not(.disabled):active:focus,.show>.btn-outline-deep-purple.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-indigo{background-color:#3f51b5!important;color:#fff}.btn-indigo:hover{background-color:#4d5ec1;color:#fff}.btn-indigo.focus,.btn-indigo:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-indigo.active,.btn-indigo:active,.btn-indigo:focus{background-color:#252f69}.btn-indigo.dropdown-toggle{background-color:#3f51b5!important}.btn-indigo.dropdown-toggle:focus,.btn-indigo.dropdown-toggle:hover{background-color:#4d5ec1!important}.btn-indigo:not([disabled]):not(.disabled).active,.btn-indigo:not([disabled]):not(.disabled):active,.show>.btn-indigo.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:#252f69!important}.btn-indigo:not([disabled]):not(.disabled).active:focus,.btn-indigo:not([disabled]):not(.disabled):active:focus,.show>.btn-indigo.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.indigo-ic{color:#3f51b5!important}.indigo-ic:focus,.indigo-ic:hover{color:#3f51b5}table.table a.btn.btn-indigo{color:#fff}.btn-outline-indigo{border:2px solid #3f51b5!important;background-color:transparent!important;color:#3f51b5!important}.btn-outline-indigo.active,.btn-outline-indigo:active,.btn-outline-indigo:active:focus,.btn-outline-indigo:focus,.btn-outline-indigo:hover{border-color:#3f51b5!important;background-color:transparent!important;color:#3f51b5!important}.btn-outline-indigo:not([disabled]):not(.disabled).active,.btn-outline-indigo:not([disabled]):not(.disabled):active,.show>.btn-outline-indigo.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:transparent!important;border-color:#3f51b5!important}.btn-outline-indigo:not([disabled]):not(.disabled).active:focus,.btn-outline-indigo:not([disabled]):not(.disabled):active:focus,.show>.btn-outline-indigo.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-blue{background-color:#1976d2!important;color:#fff}.btn-blue:hover{background-color:#2083e4;color:#fff}.btn-blue.focus,.btn-blue:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-blue.active,.btn-blue:active,.btn-blue:focus{background-color:#0e4377}.btn-blue.dropdown-toggle{background-color:#1976d2!important}.btn-blue.dropdown-toggle:focus,.btn-blue.dropdown-toggle:hover{background-color:#2083e4!important}.btn-blue:not([disabled]):not(.disabled).active,.btn-blue:not([disabled]):not(.disabled):active,.show>.btn-blue.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:#0e4377!important}.btn-blue:not([disabled]):not(.disabled).active:focus,.btn-blue:not([disabled]):not(.disabled):active:focus,.show>.btn-blue.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.blue-ic{color:#1976d2!important}.blue-ic:focus,.blue-ic:hover{color:#1976d2}table.table a.btn.btn-blue{color:#fff}.btn-outline-blue{border:2px solid #1976d2!important;background-color:transparent!important;color:#1976d2!important}.btn-outline-blue.active,.btn-outline-blue:active,.btn-outline-blue:active:focus,.btn-outline-blue:focus,.btn-outline-blue:hover{border-color:#1976d2!important;background-color:transparent!important;color:#1976d2!important}.btn-outline-blue:not([disabled]):not(.disabled).active,.btn-outline-blue:not([disabled]):not(.disabled):active,.show>.btn-outline-blue.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:transparent!important;border-color:#1976d2!important}.btn-outline-blue:not([disabled]):not(.disabled).active:focus,.btn-outline-blue:not([disabled]):not(.disabled):active:focus,.show>.btn-outline-blue.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-light-blue{background-color:#82b1ff!important;color:#fff}.btn-light-blue:hover{background-color:#9cc1ff;color:#fff}.btn-light-blue.focus,.btn-light-blue:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-light-blue.active,.btn-light-blue:active,.btn-light-blue:focus{background-color:#1c71ff}.btn-light-blue.dropdown-toggle{background-color:#82b1ff!important}.btn-light-blue.dropdown-toggle:focus,.btn-light-blue.dropdown-toggle:hover{background-color:#9cc1ff!important}.btn-light-blue:not([disabled]):not(.disabled).active,.btn-light-blue:not([disabled]):not(.disabled):active,.show>.btn-light-blue.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:#1c71ff!important}.btn-light-blue:not([disabled]):not(.disabled).active:focus,.btn-light-blue:not([disabled]):not(.disabled):active:focus,.show>.btn-light-blue.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.light-blue-ic{color:#82b1ff!important}.light-blue-ic:focus,.light-blue-ic:hover{color:#82b1ff}table.table a.btn.btn-light-blue{color:#fff}.btn-outline-light-blue{border:2px solid #82b1ff!important;background-color:transparent!important;color:#82b1ff!important}.btn-outline-light-blue.active,.btn-outline-light-blue:active,.btn-outline-light-blue:active:focus,.btn-outline-light-blue:focus,.btn-outline-light-blue:hover{border-color:#82b1ff!important;background-color:transparent!important;color:#82b1ff!important}.btn-outline-light-blue:not([disabled]):not(.disabled).active,.btn-outline-light-blue:not([disabled]):not(.disabled):active,.show>.btn-outline-light-blue.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:transparent!important;border-color:#82b1ff!important}.btn-outline-light-blue:not([disabled]):not(.disabled).active:focus,.btn-outline-light-blue:not([disabled]):not(.disabled):active:focus,.show>.btn-outline-light-blue.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-cyan{background-color:#00bcd4!important;color:#fff}.btn-cyan:hover{background-color:#00d3ee;color:#fff}.btn-cyan.focus,.btn-cyan:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-cyan.active,.btn-cyan:active,.btn-cyan:focus{background-color:#00626e}.btn-cyan.dropdown-toggle{background-color:#00bcd4!important}.btn-cyan.dropdown-toggle:focus,.btn-cyan.dropdown-toggle:hover{background-color:#00d3ee!important}.btn-cyan:not([disabled]):not(.disabled).active,.btn-cyan:not([disabled]):not(.disabled):active,.show>.btn-cyan.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:#00626e!important}.btn-cyan:not([disabled]):not(.disabled).active:focus,.btn-cyan:not([disabled]):not(.disabled):active:focus,.show>.btn-cyan.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.cyan-ic{color:#00bcd4!important}.cyan-ic:focus,.cyan-ic:hover{color:#00bcd4}table.table a.btn.btn-cyan{color:#fff}.btn-outline-cyan{border:2px solid #00bcd4!important;background-color:transparent!important;color:#00bcd4!important}.btn-outline-cyan.active,.btn-outline-cyan:active,.btn-outline-cyan:active:focus,.btn-outline-cyan:focus,.btn-outline-cyan:hover{border-color:#00bcd4!important;background-color:transparent!important;color:#00bcd4!important}.btn-outline-cyan:not([disabled]):not(.disabled).active,.btn-outline-cyan:not([disabled]):not(.disabled):active,.show>.btn-outline-cyan.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:transparent!important;border-color:#00bcd4!important}.btn-outline-cyan:not([disabled]):not(.disabled).active:focus,.btn-outline-cyan:not([disabled]):not(.disabled):active:focus,.show>.btn-outline-cyan.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-teal{background-color:#00796b!important;color:#fff}.btn-teal:hover{background-color:#009382;color:#fff}.btn-teal.focus,.btn-teal:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-teal.active,.btn-teal:active,.btn-teal:focus{background-color:#001311}.btn-teal.dropdown-toggle{background-color:#00796b!important}.btn-teal.dropdown-toggle:focus,.btn-teal.dropdown-toggle:hover{background-color:#009382!important}.btn-teal:not([disabled]):not(.disabled).active,.btn-teal:not([disabled]):not(.disabled):active,.show>.btn-teal.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:#001311!important}.btn-teal:not([disabled]):not(.disabled).active:focus,.btn-teal:not([disabled]):not(.disabled):active:focus,.show>.btn-teal.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.teal-ic{color:#00796b!important}.teal-ic:focus,.teal-ic:hover{color:#00796b}table.table a.btn.btn-teal{color:#fff}.btn-outline-teal{border:2px solid #00796b!important;background-color:transparent!important;color:#00796b!important}.btn-outline-teal.active,.btn-outline-teal:active,.btn-outline-teal:active:focus,.btn-outline-teal:focus,.btn-outline-teal:hover{border-color:#00796b!important;background-color:transparent!important;color:#00796b!important}.btn-outline-teal:not([disabled]):not(.disabled).active,.btn-outline-teal:not([disabled]):not(.disabled):active,.show>.btn-outline-teal.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:transparent!important;border-color:#00796b!important}.btn-outline-teal:not([disabled]):not(.disabled).active:focus,.btn-outline-teal:not([disabled]):not(.disabled):active:focus,.show>.btn-outline-teal.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-green{background-color:#388e3c!important;color:#fff}.btn-green:hover{background-color:#3fa044;color:#fff}.btn-green.focus,.btn-green:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-green.active,.btn-green:active,.btn-green:focus{background-color:#1b451d}.btn-green.dropdown-toggle{background-color:#388e3c!important}.btn-green.dropdown-toggle:focus,.btn-green.dropdown-toggle:hover{background-color:#3fa044!important}.btn-green:not([disabled]):not(.disabled).active,.btn-green:not([disabled]):not(.disabled):active,.show>.btn-green.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:#1b451d!important}.btn-green:not([disabled]):not(.disabled).active:focus,.btn-green:not([disabled]):not(.disabled):active:focus,.show>.btn-green.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.green-ic{color:#388e3c!important}.green-ic:focus,.green-ic:hover{color:#388e3c}table.table a.btn.btn-green{color:#fff}.btn-outline-green{border:2px solid #388e3c!important;background-color:transparent!important;color:#388e3c!important}.btn-outline-green.active,.btn-outline-green:active,.btn-outline-green:active:focus,.btn-outline-green:focus,.btn-outline-green:hover{border-color:#388e3c!important;background-color:transparent!important;color:#388e3c!important}.btn-outline-green:not([disabled]):not(.disabled).active,.btn-outline-green:not([disabled]):not(.disabled):active,.show>.btn-outline-green.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:transparent!important;border-color:#388e3c!important}.btn-outline-green:not([disabled]):not(.disabled).active:focus,.btn-outline-green:not([disabled]):not(.disabled):active:focus,.show>.btn-outline-green.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-light-green{background-color:#8bc34a!important;color:#fff}.btn-light-green:hover{background-color:#97c95d;color:#fff}.btn-light-green.focus,.btn-light-green:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-light-green.active,.btn-light-green:active,.btn-light-green:focus{background-color:#577d2a}.btn-light-green.dropdown-toggle{background-color:#8bc34a!important}.btn-light-green.dropdown-toggle:focus,.btn-light-green.dropdown-toggle:hover{background-color:#97c95d!important}.btn-light-green:not([disabled]):not(.disabled).active,.btn-light-green:not([disabled]):not(.disabled):active,.show>.btn-light-green.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:#577d2a!important}.btn-light-green:not([disabled]):not(.disabled).active:focus,.btn-light-green:not([disabled]):not(.disabled):active:focus,.show>.btn-light-green.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.light-green-ic{color:#8bc34a!important}.light-green-ic:focus,.light-green-ic:hover{color:#8bc34a}table.table a.btn.btn-light-green{color:#fff}.btn-outline-light-green{border:2px solid #8bc34a!important;background-color:transparent!important;color:#8bc34a!important}.btn-outline-light-green.active,.btn-outline-light-green:active,.btn-outline-light-green:active:focus,.btn-outline-light-green:focus,.btn-outline-light-green:hover{border-color:#8bc34a!important;background-color:transparent!important;color:#8bc34a!important}.btn-outline-light-green:not([disabled]):not(.disabled).active,.btn-outline-light-green:not([disabled]):not(.disabled):active,.show>.btn-outline-light-green.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:transparent!important;border-color:#8bc34a!important}.btn-outline-light-green:not([disabled]):not(.disabled).active:focus,.btn-outline-light-green:not([disabled]):not(.disabled):active:focus,.show>.btn-outline-light-green.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-lime{background-color:#afb42b!important;color:#fff}.btn-lime:hover{background-color:#c3c930;color:#fff}.btn-lime.focus,.btn-lime:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-lime.active,.btn-lime:active,.btn-lime:focus{background-color:#5f6217}.btn-lime.dropdown-toggle{background-color:#afb42b!important}.btn-lime.dropdown-toggle:focus,.btn-lime.dropdown-toggle:hover{background-color:#c3c930!important}.btn-lime:not([disabled]):not(.disabled).active,.btn-lime:not([disabled]):not(.disabled):active,.show>.btn-lime.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:#5f6217!important}.btn-lime:not([disabled]):not(.disabled).active:focus,.btn-lime:not([disabled]):not(.disabled):active:focus,.show>.btn-lime.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.lime-ic{color:#afb42b!important}.lime-ic:focus,.lime-ic:hover{color:#afb42b}table.table a.btn.btn-lime{color:#fff}.btn-outline-lime{border:2px solid #afb42b!important;background-color:transparent!important;color:#afb42b!important}.btn-outline-lime.active,.btn-outline-lime:active,.btn-outline-lime:active:focus,.btn-outline-lime:focus,.btn-outline-lime:hover{border-color:#afb42b!important;background-color:transparent!important;color:#afb42b!important}.btn-outline-lime:not([disabled]):not(.disabled).active,.btn-outline-lime:not([disabled]):not(.disabled):active,.show>.btn-outline-lime.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:transparent!important;border-color:#afb42b!important}.btn-outline-lime:not([disabled]):not(.disabled).active:focus,.btn-outline-lime:not([disabled]):not(.disabled):active:focus,.show>.btn-outline-lime.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-yellow{background-color:#fbc02d!important;color:#fff}.btn-yellow:hover{background-color:#fbc846;color:#fff}.btn-yellow.focus,.btn-yellow:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-yellow.active,.btn-yellow:active,.btn-yellow:focus{background-color:#be8904}.btn-yellow.dropdown-toggle{background-color:#fbc02d!important}.btn-yellow.dropdown-toggle:focus,.btn-yellow.dropdown-toggle:hover{background-color:#fbc846!important}.btn-yellow:not([disabled]):not(.disabled).active,.btn-yellow:not([disabled]):not(.disabled):active,.show>.btn-yellow.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:#be8904!important}.btn-yellow:not([disabled]):not(.disabled).active:focus,.btn-yellow:not([disabled]):not(.disabled):active:focus,.show>.btn-yellow.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.yellow-ic{color:#fbc02d!important}.yellow-ic:focus,.yellow-ic:hover{color:#fbc02d}table.table a.btn.btn-yellow{color:#fff}.btn-outline-yellow{border:2px solid #fbc02d!important;background-color:transparent!important;color:#fbc02d!important}.btn-outline-yellow.active,.btn-outline-yellow:active,.btn-outline-yellow:active:focus,.btn-outline-yellow:focus,.btn-outline-yellow:hover{border-color:#fbc02d!important;background-color:transparent!important;color:#fbc02d!important}.btn-outline-yellow:not([disabled]):not(.disabled).active,.btn-outline-yellow:not([disabled]):not(.disabled):active,.show>.btn-outline-yellow.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:transparent!important;border-color:#fbc02d!important}.btn-outline-yellow:not([disabled]):not(.disabled).active:focus,.btn-outline-yellow:not([disabled]):not(.disabled):active:focus,.show>.btn-outline-yellow.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-amber{background-color:#ffa000!important;color:#fff}.btn-amber:hover{background-color:#ffaa1a;color:#fff}.btn-amber.focus,.btn-amber:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-amber.active,.btn-amber:active,.btn-amber:focus{background-color:#996000}.btn-amber.dropdown-toggle{background-color:#ffa000!important}.btn-amber.dropdown-toggle:focus,.btn-amber.dropdown-toggle:hover{background-color:#ffaa1a!important}.btn-amber:not([disabled]):not(.disabled).active,.btn-amber:not([disabled]):not(.disabled):active,.show>.btn-amber.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:#996000!important}.btn-amber:not([disabled]):not(.disabled).active:focus,.btn-amber:not([disabled]):not(.disabled):active:focus,.show>.btn-amber.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.amber-ic{color:#ffa000!important}.amber-ic:focus,.amber-ic:hover{color:#ffa000}table.table a.btn.btn-amber{color:#fff}.btn-outline-amber{border:2px solid #ffa000!important;background-color:transparent!important;color:#ffa000!important}.btn-outline-amber.active,.btn-outline-amber:active,.btn-outline-amber:active:focus,.btn-outline-amber:focus,.btn-outline-amber:hover{border-color:#ffa000!important;background-color:transparent!important;color:#ffa000!important}.btn-outline-amber:not([disabled]):not(.disabled).active,.btn-outline-amber:not([disabled]):not(.disabled):active,.show>.btn-outline-amber.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:transparent!important;border-color:#ffa000!important}.btn-outline-amber:not([disabled]):not(.disabled).active:focus,.btn-outline-amber:not([disabled]):not(.disabled):active:focus,.show>.btn-outline-amber.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-orange{background-color:#f57c00!important;color:#fff}.btn-orange:hover{background-color:#ff8910;color:#fff}.btn-orange.focus,.btn-orange:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-orange.active,.btn-orange:active,.btn-orange:focus{background-color:#8f4800}.btn-orange.dropdown-toggle{background-color:#f57c00!important}.btn-orange.dropdown-toggle:focus,.btn-orange.dropdown-toggle:hover{background-color:#ff8910!important}.btn-orange:not([disabled]):not(.disabled).active,.btn-orange:not([disabled]):not(.disabled):active,.show>.btn-orange.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:#8f4800!important}.btn-orange:not([disabled]):not(.disabled).active:focus,.btn-orange:not([disabled]):not(.disabled):active:focus,.show>.btn-orange.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.orange-ic{color:#f57c00!important}.orange-ic:focus,.orange-ic:hover{color:#f57c00}table.table a.btn.btn-orange{color:#fff}.btn-outline-orange{border:2px solid #f57c00!important;background-color:transparent!important;color:#f57c00!important}.btn-outline-orange.active,.btn-outline-orange:active,.btn-outline-orange:active:focus,.btn-outline-orange:focus,.btn-outline-orange:hover{border-color:#f57c00!important;background-color:transparent!important;color:#f57c00!important}.btn-outline-orange:not([disabled]):not(.disabled).active,.btn-outline-orange:not([disabled]):not(.disabled):active,.show>.btn-outline-orange.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:transparent!important;border-color:#f57c00!important}.btn-outline-orange:not([disabled]):not(.disabled).active:focus,.btn-outline-orange:not([disabled]):not(.disabled):active:focus,.show>.btn-outline-orange.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-deep-orange{background-color:#ff7043!important;color:#fff}.btn-deep-orange:hover{background-color:#ff835d;color:#fff}.btn-deep-orange.focus,.btn-deep-orange:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-deep-orange.active,.btn-deep-orange:active,.btn-deep-orange:focus{background-color:#dc3500}.btn-deep-orange.dropdown-toggle{background-color:#ff7043!important}.btn-deep-orange.dropdown-toggle:focus,.btn-deep-orange.dropdown-toggle:hover{background-color:#ff835d!important}.btn-deep-orange:not([disabled]):not(.disabled).active,.btn-deep-orange:not([disabled]):not(.disabled):active,.show>.btn-deep-orange.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:#dc3500!important}.btn-deep-orange:not([disabled]):not(.disabled).active:focus,.btn-deep-orange:not([disabled]):not(.disabled):active:focus,.show>.btn-deep-orange.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.deep-orange-ic{color:#ff7043!important}.deep-orange-ic:focus,.deep-orange-ic:hover{color:#ff7043}table.table a.btn.btn-deep-orange{color:#fff}.btn-outline-deep-orange{border:2px solid #ff7043!important;background-color:transparent!important;color:#ff7043!important}.btn-outline-deep-orange.active,.btn-outline-deep-orange:active,.btn-outline-deep-orange:active:focus,.btn-outline-deep-orange:focus,.btn-outline-deep-orange:hover{border-color:#ff7043!important;background-color:transparent!important;color:#ff7043!important}.btn-outline-deep-orange:not([disabled]):not(.disabled).active,.btn-outline-deep-orange:not([disabled]):not(.disabled):active,.show>.btn-outline-deep-orange.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:transparent!important;border-color:#ff7043!important}.btn-outline-deep-orange:not([disabled]):not(.disabled).active:focus,.btn-outline-deep-orange:not([disabled]):not(.disabled):active:focus,.show>.btn-outline-deep-orange.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-brown{background-color:#795548!important;color:#fff}.btn-brown:hover{background-color:#896052;color:#fff}.btn-brown.focus,.btn-brown:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-brown.active,.btn-brown:active,.btn-brown:focus{background-color:#392822}.btn-brown.dropdown-toggle{background-color:#795548!important}.btn-brown.dropdown-toggle:focus,.btn-brown.dropdown-toggle:hover{background-color:#896052!important}.btn-brown:not([disabled]):not(.disabled).active,.btn-brown:not([disabled]):not(.disabled):active,.show>.btn-brown.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:#392822!important}.btn-brown:not([disabled]):not(.disabled).active:focus,.btn-brown:not([disabled]):not(.disabled):active:focus,.show>.btn-brown.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.brown-ic{color:#795548!important}.brown-ic:focus,.brown-ic:hover{color:#795548}table.table a.btn.btn-brown{color:#fff}.btn-outline-brown{border:2px solid #795548!important;background-color:transparent!important;color:#795548!important}.btn-outline-brown.active,.btn-outline-brown:active,.btn-outline-brown:active:focus,.btn-outline-brown:focus,.btn-outline-brown:hover{border-color:#795548!important;background-color:transparent!important;color:#795548!important}.btn-outline-brown:not([disabled]):not(.disabled).active,.btn-outline-brown:not([disabled]):not(.disabled):active,.show>.btn-outline-brown.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:transparent!important;border-color:#795548!important}.btn-outline-brown:not([disabled]):not(.disabled).active:focus,.btn-outline-brown:not([disabled]):not(.disabled):active:focus,.show>.btn-outline-brown.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-grey{background-color:#616161!important;color:#fff}.btn-grey:hover{background-color:#6e6e6e;color:#fff}.btn-grey.focus,.btn-grey:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-grey.active,.btn-grey:active,.btn-grey:focus{background-color:#2e2e2e}.btn-grey.dropdown-toggle{background-color:#616161!important}.btn-grey.dropdown-toggle:focus,.btn-grey.dropdown-toggle:hover{background-color:#6e6e6e!important}.btn-grey:not([disabled]):not(.disabled).active,.btn-grey:not([disabled]):not(.disabled):active,.show>.btn-grey.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:#2e2e2e!important}.btn-grey:not([disabled]):not(.disabled).active:focus,.btn-grey:not([disabled]):not(.disabled):active:focus,.show>.btn-grey.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.grey-ic{color:#616161!important}.grey-ic:focus,.grey-ic:hover{color:#616161}table.table a.btn.btn-grey{color:#fff}.btn-outline-grey{border:2px solid #616161!important;background-color:transparent!important;color:#616161!important}.btn-outline-grey.active,.btn-outline-grey:active,.btn-outline-grey:active:focus,.btn-outline-grey:focus,.btn-outline-grey:hover{border-color:#616161!important;background-color:transparent!important;color:#616161!important}.btn-outline-grey:not([disabled]):not(.disabled).active,.btn-outline-grey:not([disabled]):not(.disabled):active,.show>.btn-outline-grey.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:transparent!important;border-color:#616161!important}.btn-outline-grey:not([disabled]):not(.disabled).active:focus,.btn-outline-grey:not([disabled]):not(.disabled):active:focus,.show>.btn-outline-grey.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-blue-grey{background-color:#78909c!important;color:#fff}.btn-blue-grey:hover{background-color:#879ca7;color:#fff}.btn-blue-grey.focus,.btn-blue-grey:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-blue-grey.active,.btn-blue-grey:active,.btn-blue-grey:focus{background-color:#4a5b64}.btn-blue-grey.dropdown-toggle{background-color:#78909c!important}.btn-blue-grey.dropdown-toggle:focus,.btn-blue-grey.dropdown-toggle:hover{background-color:#879ca7!important}.btn-blue-grey:not([disabled]):not(.disabled).active,.btn-blue-grey:not([disabled]):not(.disabled):active,.show>.btn-blue-grey.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:#4a5b64!important}.btn-blue-grey:not([disabled]):not(.disabled).active:focus,.btn-blue-grey:not([disabled]):not(.disabled):active:focus,.show>.btn-blue-grey.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.blue-grey-ic{color:#78909c!important}.blue-grey-ic:focus,.blue-grey-ic:hover{color:#78909c}table.table a.btn.btn-blue-grey{color:#fff}.btn-outline-blue-grey{border:2px solid #78909c!important;background-color:transparent!important;color:#78909c!important}.btn-outline-blue-grey.active,.btn-outline-blue-grey:active,.btn-outline-blue-grey:active:focus,.btn-outline-blue-grey:focus,.btn-outline-blue-grey:hover{border-color:#78909c!important;background-color:transparent!important;color:#78909c!important}.btn-outline-blue-grey:not([disabled]):not(.disabled).active,.btn-outline-blue-grey:not([disabled]):not(.disabled):active,.show>.btn-outline-blue-grey.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:transparent!important;border-color:#78909c!important}.btn-outline-blue-grey:not([disabled]):not(.disabled).active:focus,.btn-outline-blue-grey:not([disabled]):not(.disabled):active:focus,.show>.btn-outline-blue-grey.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-dark{background-color:#212121!important;color:#fff}.btn-dark:hover{background-color:#2e2e2e;color:#fff}.btn-dark.focus,.btn-dark:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-dark.active,.btn-dark:active,.btn-dark:focus{background-color:#000}.btn-dark.dropdown-toggle{background-color:#212121!important}.btn-dark.dropdown-toggle:focus,.btn-dark.dropdown-toggle:hover{background-color:#2e2e2e!important}.btn-dark:not([disabled]):not(.disabled).active,.btn-dark:not([disabled]):not(.disabled):active,.show>.btn-dark.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:#000!important}.btn-dark:not([disabled]):not(.disabled).active:focus,.btn-dark:not([disabled]):not(.disabled):active:focus,.show>.btn-dark.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.dark-ic{color:#212121!important}.dark-ic:focus,.dark-ic:hover{color:#212121}table.table a.btn.btn-dark{color:#fff}.btn-outline-dark{border:2px solid #212121!important;background-color:transparent!important;color:#212121!important}.btn-outline-dark.active,.btn-outline-dark:active,.btn-outline-dark:active:focus,.btn-outline-dark:focus,.btn-outline-dark:hover{border-color:#212121!important;background-color:transparent!important;color:#212121!important}.btn-outline-dark:not([disabled]):not(.disabled).active,.btn-outline-dark:not([disabled]):not(.disabled):active,.show>.btn-outline-dark.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:transparent!important;border-color:#212121!important}.btn-outline-dark:not([disabled]):not(.disabled).active:focus,.btn-outline-dark:not([disabled]):not(.disabled):active:focus,.show>.btn-outline-dark.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-light{background-color:#e0e0e0!important;color:#000}.btn-light:hover{background-color:#ededed;color:#000}.btn-light.focus,.btn-light:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-light.active,.btn-light:active,.btn-light:focus{background-color:#adadad}.btn-light.dropdown-toggle{background-color:#e0e0e0!important}.btn-light.dropdown-toggle:focus,.btn-light.dropdown-toggle:hover{background-color:#ededed!important}.btn-light:not([disabled]):not(.disabled).active,.btn-light:not([disabled]):not(.disabled):active,.show>.btn-light.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:#adadad!important}.btn-light:not([disabled]):not(.disabled).active:focus,.btn-light:not([disabled]):not(.disabled):active:focus,.show>.btn-light.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.light-ic{color:#e0e0e0!important}.light-ic:focus,.light-ic:hover{color:#e0e0e0}table.table a.btn.btn-light{color:#000}.btn-outline-light{border:2px solid #e0e0e0!important;background-color:transparent!important;color:#e0e0e0!important}.btn-outline-light.active,.btn-outline-light:active,.btn-outline-light:active:focus,.btn-outline-light:focus,.btn-outline-light:hover{border-color:#e0e0e0!important;background-color:transparent!important;color:#e0e0e0!important}.btn-outline-light:not([disabled]):not(.disabled).active,.btn-outline-light:not([disabled]):not(.disabled):active,.show>.btn-outline-light.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:transparent!important;border-color:#e0e0e0!important}.btn-outline-light:not([disabled]):not(.disabled).active:focus,.btn-outline-light:not([disabled]):not(.disabled):active:focus,.show>.btn-outline-light.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-white{background-color:#fff!important;color:#000}.btn-white:hover{background-color:#fff;color:#000}.btn-white.focus,.btn-white:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-white.active,.btn-white:active,.btn-white:focus{background-color:#ccc}.btn-white.dropdown-toggle,.btn-white.dropdown-toggle:focus,.btn-white.dropdown-toggle:hover{background-color:#fff!important}.btn-white:not([disabled]):not(.disabled).active,.btn-white:not([disabled]):not(.disabled):active,.show>.btn-white.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:#ccc!important}.btn-white:not([disabled]):not(.disabled).active:focus,.btn-white:not([disabled]):not(.disabled):active:focus,.show>.btn-white.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.white-ic{color:#fff!important}.white-ic:focus,.white-ic:hover{color:#fff}a.btn:not([href]):not([tabindex]),a.btn:not([href]):not([tabindex]):focus,a.btn:not([href]):not([tabindex]):hover,table.table a.btn.btn-white{color:#000}.btn-outline-white{border:2px solid #fff!important;background-color:transparent!important;color:#fff!important}.btn-outline-white.active,.btn-outline-white:active,.btn-outline-white:active:focus,.btn-outline-white:focus,.btn-outline-white:hover{border-color:#fff!important;background-color:transparent!important;color:#fff!important}.btn-outline-white:not([disabled]):not(.disabled).active,.btn-outline-white:not([disabled]):not(.disabled):active,.show>.btn-outline-white.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:transparent!important;border-color:#fff!important}.btn-outline-white:not([disabled]):not(.disabled).active:focus,.btn-outline-white:not([disabled]):not(.disabled):active:focus,.show>.btn-outline-white.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-black{background-color:#000!important;color:#fff}.btn-black:hover{background-color:#0d0d0d;color:#fff}.btn-black.focus,.btn-black:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-black.active,.btn-black:active,.btn-black:focus{background-color:#000}.btn-black.dropdown-toggle{background-color:#000!important}.btn-black.dropdown-toggle:focus,.btn-black.dropdown-toggle:hover{background-color:#0d0d0d!important}.btn-black:not([disabled]):not(.disabled).active,.btn-black:not([disabled]):not(.disabled):active,.show>.btn-black.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:#000!important}.btn-black:not([disabled]):not(.disabled).active:focus,.btn-black:not([disabled]):not(.disabled):active:focus,.show>.btn-black.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.black-ic{color:#000!important}.black-ic:focus,.black-ic:hover{color:#000}a.btn:not([href]):not([tabindex]),a.btn:not([href]):not([tabindex]):focus,a.btn:not([href]):not([tabindex]):hover,table.table a.btn.btn-black{color:#fff}.btn-outline-black{border:2px solid #000!important;background-color:transparent!important;color:#000!important}.btn-outline-black.active,.btn-outline-black:active,.btn-outline-black:active:focus,.btn-outline-black:focus,.btn-outline-black:hover{border-color:#000!important;background-color:transparent!important;color:#000!important}.btn-outline-black:not([disabled]):not(.disabled).active,.btn-outline-black:not([disabled]):not(.disabled):active,.show>.btn-outline-black.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:transparent!important;border-color:#000!important}.btn-outline-black:not([disabled]):not(.disabled).active:focus,.btn-outline-black:not([disabled]):not(.disabled):active:focus,.show>.btn-outline-black.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-warning:not(:disabled):not(.disabled).active,.btn-warning:not(:disabled):not(.disabled):active,.show>.btn-warning.dropdown-toggle{color:#fff}.btn.purple-gradient{transition:.5s ease;color:#fff}.btn.purple-gradient:active,.btn.purple-gradient:active:focus .btn.purple-gradient.active,.btn.purple-gradient:focus,.btn.purple-gradient:hover{background:linear-gradient(#ff88ce,#8f8bf7)}.btn.peach-gradient{transition:.5s ease;color:#fff}.btn.peach-gradient:active,.btn.peach-gradient:active:focus .btn.peach-gradient.active,.btn.peach-gradient:focus,.btn.peach-gradient:hover{background:linear-gradient(#ffdf89,#fc7b7b)}.btn.aqua-gradient{transition:.5s ease;color:#fff}.btn.aqua-gradient:active,.btn.aqua-gradient:active:focus .btn.aqua-gradient.active,.btn.aqua-gradient:focus,.btn.aqua-gradient:hover{background:linear-gradient(#3aa2ff,#1fffac)}.btn.blue-gradient{transition:.5s ease;color:#fff}.btn.blue-gradient:active,.btn.blue-gradient:active:focus .btn.blue-gradient.active,.btn.blue-gradient:focus,.btn.blue-gradient:hover{background:linear-gradient(#5ed1fc,#3647b3)}.btn mdb-icon{position:relative;font-size:.9rem}.btn mdb-icon.right{margin-left:.3rem}.btn mdb-icon.left{margin-right:.3rem}.btn.btn-lg{padding:1rem 2.4rem;font-size:.94rem}.btn.btn-lg mdb-icon{font-size:1rem}.btn.btn-md{padding:.7rem 1.6rem;font-size:.7rem}.btn.btn-md mdb-icon{font-size:.8rem}.btn.btn-sm{padding:.5rem 1.6rem;font-size:.64rem}.btn.btn-sm mdb-icon{font-size:.7rem}"],encapsulation:2}),t}(),yt={provide:f.m,useExisting:Object(i.W)(function(){return wt}),multi:!0},wt=function(){var t=function(){function t(){Object(a.a)(this,t),this.btnCheckboxTrue=!0,this.btnCheckboxFalse=!1,this.state=!1,this.onChange=Function.prototype,this.onTouched=Function.prototype}return Object(s.a)(t,[{key:"onClick",value:function(){this.isDisabled||(this.toggle(!this.state),this.onChange(this.value))}},{key:"ngOnInit",value:function(){this.toggle(this.trueValue===this.value)}},{key:"trueValue",get:function(){return void 0===this.btnCheckboxTrue||this.btnCheckboxTrue}},{key:"falseValue",get:function(){return void 0!==this.btnCheckboxFalse&&this.btnCheckboxFalse}},{key:"toggle",value:function(t){this.state=t,this.value=this.state?this.trueValue:this.falseValue}},{key:"writeValue",value:function(t){this.state=this.trueValue===t,this.value=t?this.trueValue:this.falseValue}},{key:"setDisabledState",value:function(t){this.isDisabled=t}},{key:"registerOnChange",value:function(t){this.onChange=t}},{key:"registerOnTouched",value:function(t){this.onTouched=t}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Nb({type:t,selectors:[["","mdbCheckbox",""]],hostVars:2,hostBindings:function(t,e){1&t&&i.gc("click",function(){return e.onClick()}),2&t&&i.Kb("active",e.state)},inputs:{btnCheckboxTrue:"btnCheckboxTrue",btnCheckboxFalse:"btnCheckboxFalse"},features:[i.Db([yt])]}),t}(),_t={provide:f.m,useExisting:Object(i.W)(function(){return kt}),multi:!0},kt=function(){var t=function(){function t(e,n){Object(a.a)(this,t),this.el=e,this.renderer=n,this.onChange=Function.prototype,this.onTouched=Function.prototype,this.radioElementsArray=[],this.disabled=!1}return Object(s.a)(t,[{key:"isActive",get:function(){return this.mdbRadio===this.value}},{key:"onClick",value:function(t){var e=this;if(!this.disabled){try{this.el.nativeElement.parentElement.childNodes.forEach(function(t){e.radioElementsArray.push(t)}),this.radioElementsArray.forEach(function(t){e.renderer.removeClass(t,"active")}),this.renderer.addClass(t.target,"active")}catch(n){}this.el.nativeElement.attributes.disabled||(this.value=this.uncheckable&&this.mdbRadio===this.value?void 0:this.mdbRadio,this.onTouched(),this.onChange(this.value))}}},{key:"ngOnInit",value:function(){this.uncheckable=void 0!==this.uncheckable}},{key:"onBlur",value:function(){this.onTouched()}},{key:"writeValue",value:function(t){this.value=t}},{key:"registerOnChange",value:function(t){this.onChange=t}},{key:"registerOnTouched",value:function(t){this.onTouched=t}}]),t}();return t.\u0275fac=function(e){return new(e||t)(i.Sb(i.l),i.Sb(i.G))},t.\u0275dir=i.Nb({type:t,selectors:[["","mdbRadio",""]],hostVars:4,hostBindings:function(t,e){1&t&&i.gc("click",function(t){return e.onClick(t)}),2&t&&i.Kb("disabled",e.disabled)("active",e.isActive)},inputs:{disabled:"disabled",value:"value",uncheckable:"uncheckable",mdbRadio:"mdbRadio"},features:[i.Db([_t])]}),t}(),xt=function(){var t=function(){function t(){Object(a.a)(this,t)}return Object(s.a)(t,null,[{key:"forRoot",value:function(){return{ngModule:t,providers:[]}}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Qb({type:t}),t.\u0275inj=i.Pb({}),t}(),Ot=function(){var t=function(){function t(){Object(a.a)(this,t)}return Object(s.a)(t,null,[{key:"forRoot",value:function(){return{ngModule:t,providers:[]}}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Qb({type:t}),t.\u0275inj=i.Pb({imports:[[c.c]]}),t}(),St="undefined"!=typeof window&&window||{},Et=St.document;function Ct(){return"bs4"===St.__theme}var jt=function(){var t=function t(e){Object(a.a)(this,t),this.animated=!1,this.directionNext=!1,this.directionLeft=!1,this.directionPrev=!1,this.directionRight=!1,this.el=null,this.el=e};return t.\u0275fac=function(e){return new(e||t)(i.Sb(i.l))},t.\u0275cmp=i.Mb({type:t,selectors:[["mdb-slide"],["mdb-carousel-item"]],hostVars:14,hostBindings:function(t,e){2&t&&i.Kb("animated",e.animated)("carousel-item-next",e.directionNext)("carousel-item-left",e.directionLeft)("carousel-item-prev",e.directionPrev)("carousel-item-right",e.directionRight)("carousel-item",e.el)("active",e.active)},inputs:{active:"active"},ngContentSelectors:nt,decls:1,vars:0,template:function(t,e){1&t&&(i.pc(),i.oc(0))},encapsulation:2}),t}(),Tt=function(){var t=function t(){Object(a.a)(this,t),this.interval=5e3,this.noPause=!1,this.noWrap=!1,this.keyboard=!1};return t.\u0275prov=i.Ob({token:t,factory:t.\u0275fac=function(e){return new(e||t)}}),t}(),It=function(t){return t[t.UNKNOWN=0]="UNKNOWN",t[t.NEXT=1]="NEXT",t[t.PREV=2]="PREV",t}({}),At=function(){var t=function(){function t(e,n,r,o,s){Object(a.a)(this,t),this.el=n,this.cdRef=o,this.renderer=s,this.SWIPE_ACTION={LEFT:"swipeleft",RIGHT:"swiperight"},this._destroy$=new h.a,this.destroyed=!1,this.animationEnd=!0,this.isBrowser=!1,this.isControls=!0,this.class="",this.type="",this.animation="",this.allowSwipe=!0,this.activeSlideChange=new i.n(!1),this.isBrowser=Object(c.u)(r),Object.assign(this,e)}return Object(s.a)(t,[{key:"slides",get:function(){return this._slidesList.toArray()}},{key:"activeSlide",get:function(){return this._currentActiveSlide},set:function(t){this._slidesList&&t!==this._currentActiveSlide&&this._select(t)}},{key:"checkNavigation",value:function(){return"carousel-multi-item"!==this.type}},{key:"checkDots",value:function(){return"carousel-thumbnails"!==this.type}},{key:"getImg",value:function(t){return t.el.nativeElement.querySelector("img").src}},{key:"interval",get:function(){return this._interval},set:function(t){this._interval=t,this.restartTimer()}},{key:"isBs4",get:function(){return!Ct()}},{key:"ngOnDestroy",value:function(){this.destroyed=!0,this._destroy$.next(),this._destroy$.complete()}},{key:"ngAfterViewInit",value:function(){var t=this;this.play(),this._slidesList.changes.pipe(Object(V.a)(this._destroy$)).subscribe(function(e){t._slidesList=e,setTimeout(function(){t._select(0)},0)}),this.activeSlideIndex?setTimeout(function(){t._select(t.activeSlideIndex),t.activeSlideChange.emit({relatedTarget:t.activeSlide})},0):setTimeout(function(){t._select(0)},0),this.isControls&&(this.carouselIndicators=this.el.nativeElement.querySelectorAll(".carousel-indicators > li"),this.carouselIndicators.length&&this.activeSlideIndex?this.renderer.addClass(this.carouselIndicators[this.activeSlideIndex],"active"):this.carouselIndicators.length&&this.renderer.addClass(this.carouselIndicators[0],"active"))}},{key:"swipe",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.SWIPE_ACTION.RIGHT;this.allowSwipe&&(t===this.SWIPE_ACTION.RIGHT&&(this.previousSlide(),this.cdRef.markForCheck()),t===this.SWIPE_ACTION.LEFT&&(this.nextSlide(),this.cdRef.markForCheck()))}},{key:"nextSlide",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.restartTimer();var e=this.el.nativeElement.getElementsByTagName("video"),n=It.NEXT,r=this.findNextSlideIndex(n,t);if(e.length>0)for(var i=0;i0&&void 0!==arguments[0]&&arguments[0];this.restartTimer();var e=this.el.nativeElement.getElementsByTagName("video"),n=It.PREV,r=this.findNextSlideIndex(n,t);if(e.length>0)for(var i=0;it&&this.slideAnimation(t,It.PREV):"fade"===this.animation?t!==this.activeSlide&&this.fadeAnimation(t):this.animation||setTimeout(function(){var n=t=this.slides.length}},{key:"findNextSlideIndex",value:function(t,e){var n=0;if(e||!this.isLast(this.activeSlide)||t===It.PREV||!this.noWrap){switch(t){case It.NEXT:n=this.isLast(this._currentActiveSlide)?!e&&this.noWrap?this._currentActiveSlide:0:this._currentActiveSlide+1;break;case It.PREV:n=this._currentActiveSlide>0?this._currentActiveSlide-1:!e&&this.noWrap?this._currentActiveSlide:this.slides.length-1;break;default:throw new Error("Unknown direction")}return n}}},{key:"_select",value:function(t){if(isNaN(t))this.pause();else{var e=this.slides[this._currentActiveSlide];e&&(e.active=!1);var n=this.slides[t];n&&(this._currentActiveSlide=t,n.active=!0,this.activeSlide=t),this.cdRef.markForCheck()}}},{key:"restartTimer",value:function(){var t=this;if(this.resetTimer(),this.isBrowser){var e=+this.interval;!isNaN(e)&&e>0&&(this.currentInterval=setInterval(function(){var e=+t.interval;t.isPlaying&&!isNaN(t.interval)&&e>0&&t.slides.length?t.nextSlide():t.pause()},e))}}},{key:"resetTimer",value:function(){this.isBrowser&&this.currentInterval&&(clearInterval(this.currentInterval),this.currentInterval=void 0)}},{key:"hasClass",value:function(t,e){return t.classList?t.classList.contains(e):!!t.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))}},{key:"classAdd",value:function(t,e){t.classList?t.classList.add(e):this.hasClass(t,e)||(t.className+=" "+e)}},{key:"removeClass",value:function(t,e){if(t.classList)t.classList.remove(e);else if(this.hasClass(t,e)){var n=new RegExp("(\\s|^)"+e+"(\\s|$)");t.className=t.className.replace(n," ")}}},{key:"keyboardControl",value:function(t){this.keyboard&&(39===t.keyCode&&this.nextSlide(),37===t.keyCode&&this.previousSlide())}},{key:"focus",value:function(){this.el.nativeElement.focus()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(i.Sb(Tt),i.Sb(i.l),i.Sb(i.D),i.Sb(i.h),i.Sb(i.G))},t.\u0275cmp=i.Mb({type:t,selectors:[["mdb-carousel"]],contentQueries:function(t,e,n){var r;1&t&&i.Lb(n,jt,0),2&t&&i.zc(r=i.hc())&&(e._slidesList=r)},hostBindings:function(t,e){1&t&&i.gc("mouseleave",function(){return e.play()})("mouseenter",function(){return e.pause()})("keyup",function(t){return e.keyboardControl(t)})("click",function(){return e.focus()})},inputs:{isControls:"isControls",class:"class",type:"type",animation:"animation",allowSwipe:"allowSwipe",activeSlide:"activeSlide",interval:"interval",noWrap:"noWrap",noPause:"noPause",keyboard:"keyboard",activeSlideIndex:"activeSlideIndex"},outputs:{activeSlideChange:"activeSlideChange"},ngContentSelectors:nt,decls:8,vars:9,consts:[["tabindex","0",3,"swipeleft","swiperight","mouseenter","mouseleave","mouseup"],["class","controls-top",4,"ngIf"],["class","carousel-indicators",4,"ngIf"],[1,"carousel-inner"],["class","carousel-control-prev",3,"disabled","click",4,"ngIf"],["class","carousel-control-next",3,"disabled","click",4,"ngIf"],[1,"controls-top"],["mdbBtn","","floating","true",3,"click"],[1,"fas","fa-chevron-left"],[1,"fas","fa-chevron-right"],[1,"carousel-indicators"],[3,"active","click",4,"ngFor","ngForOf"],[3,"click"],[1,"d-block","w-100","img-fluid",3,"src"],[1,"carousel-control-prev",3,"click"],["aria-hidden","true",1,"carousel-control-prev-icon"],[1,"sr-only"],[1,"carousel-control-next",3,"click"],["aria-hidden","true",1,"carousel-control-next-icon"]],template:function(t,e){1&t&&(i.pc(),i.Yb(0,"div",0),i.gc("swipeleft",function(t){return e.swipe(t.type)})("swiperight",function(t){return e.swipe(t.type)})("mouseenter",function(){return e.pause()})("mouseleave",function(){return e.play()})("mouseup",function(){return e.play()}),i.Lc(1,it,5,4,"div",1),i.Lc(2,at,2,1,"ol",2),i.Lc(3,ct,2,1,"ol",2),i.Yb(4,"div",3),i.oc(5),i.Xb(),i.Lc(6,ut,4,2,"a",4),i.Lc(7,lt,4,2,"a",5),i.Xb()),2&t&&(i.Ib("carousel ",e.class," ",e.type,""),i.Eb(1),i.qc("ngIf",e.slides.length>1&&!e.checkNavigation()&&e.isControls),i.Eb(1),i.qc("ngIf",e.slides.length>1&&e.checkDots()&&e.isControls),i.Eb(1),i.qc("ngIf",e.slides.length>1&&!e.checkDots()&&e.isControls),i.Eb(3),i.qc("ngIf",e.slides.length>1&&e.checkNavigation()&&e.isControls),i.Eb(1),i.qc("ngIf",e.slides.length>1&&e.checkNavigation()&&e.isControls))},directives:[c.l,gt,c.k],styles:[".carousel .carousel-control-next-icon,.carousel .carousel-control-prev-icon{width:2.25rem;height:2.25rem}.carousel .carousel-indicators li{width:.625rem;height:.625rem;border-radius:50%;cursor:pointer}.carousel-fade .carousel-item{opacity:0;transition-duration:.6s;transition-property:opacity}.carousel-fade .carousel-item-next.carousel-item-left,.carousel-fade .carousel-item-prev.carousel-item-right,.carousel-fade .carousel-item.active{opacity:1}.carousel-fade .carousel-item-left.active,.carousel-fade .carousel-item-right.active{opacity:0}.carousel-fade .carousel-item-left.active,.carousel-fade .carousel-item-next,.carousel-fade .carousel-item-prev,.carousel-fade .carousel-item-prev.active,.carousel-fade .carousel-item.active{transform:translateX(0)}@supports (transform-style:preserve-3d){.carousel-fade .carousel-item-left.active,.carousel-fade .carousel-item-next,.carousel-fade .carousel-item-prev,.carousel-fade .carousel-item-prev.active,.carousel-fade .carousel-item.active{transform:translateZ(0)}}.carousel-control-next,.carousel-control-prev,.carousel-item-next,.carousel-item-prev,.carousel-item.active{display:flex;overflow:hidden}.carousel,.carousel-multi-item,.carousel-thumbnails{outline:none}.carousel-fade .carousel-inner .carousel-item{opacity:0;transition-property:opacity}.carousel-fade .carousel-inner .active{opacity:1;transition:all .6s}.carousel-fade .carousel-inner>.carousel-item.active,.carousel-fade .carousel-inner>.carousel-item.next.left,.carousel-fade .carousel-inner>.carousel-item.prev.right{opacity:1;transition:all .6s;transform:translateZ(0)}"],encapsulation:2,changeDetection:0}),t}(),Rt=function(){var t=function(){function t(){Object(a.a)(this,t)}return Object(s.a)(t,null,[{key:"forRoot",value:function(){return{ngModule:t,providers:[]}}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Qb({type:t}),t.\u0275inj=i.Pb({providers:[Tt],imports:[[c.c,xt]]}),t}(),Pt=function(){var t=function t(){Object(a.a)(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Qb({type:t}),t.\u0275inj=i.Pb({}),t}(),Lt={provide:f.m,useExisting:Object(i.W)(function(){return Mt}),multi:!0},Nt=0,Dt=function t(){Object(a.a)(this,t)},Mt=function(){var t=function(){function t(e){Object(a.a)(this,t),this._cdRef=e,this.defaultId="mdb-checkbox-".concat(++Nt),this.id=this.defaultId,this.checked=!1,this.filledIn=!1,this.indeterminate=!1,this.rounded=!1,this.checkboxPosition="left",this.default=!1,this.inline=!1,this.change=new i.n,this.checkboxClicked=new h.a,this.onChange=function(t){},this.onTouched=function(){}}return Object(s.a)(t,[{key:"onLabelClick",value:function(t){t.stopPropagation(),this.checkboxClicked.next(!0)}},{key:"onDocumentClick",value:function(){this.checkboxClicked.next(!1)}},{key:"ngOnInit",value:function(){!this.indeterminate||this.filledIn||this.rounded||(this.inputEl.indeterminate=!0)}},{key:"ngOnChanges",value:function(t){t.hasOwnProperty("checked")&&(this.checked=t.checked.currentValue)}},{key:"changeEvent",get:function(){var t=new Dt;return t.element=this,t.checked=this.checked,t}},{key:"toggle",value:function(){this.disabled||(this.checked=!this.checked,this.indeterminate=!1,this.onChange(this.checked),this._cdRef.markForCheck())}},{key:"onCheckboxClick",value:function(t){t.stopPropagation(),this.toggle()}},{key:"onCheckboxChange",value:function(t){var e=this;t.stopPropagation(),Object(G.a)(0).subscribe(function(){return e.change.emit(e.changeEvent)})}},{key:"onBlur",value:function(){var t=this;this.checkboxClicked.pipe(Object(U.a)(1)).subscribe(function(e){e||t.onTouched()})}},{key:"writeValue",value:function(t){this.value=t,this.checked=!!t,this._cdRef.markForCheck()}},{key:"registerOnChange",value:function(t){this.onChange=t}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t}}]),t}();return t.\u0275fac=function(e){return new(e||t)(i.Sb(i.h))},t.\u0275cmp=i.Mb({type:t,selectors:[["mdb-checkbox"]],viewQuery:function(t,e){var n;1&t&&i.Sc(ht,3),2&t&&i.zc(n=i.hc())&&(e.inputEl=n.first)},hostBindings:function(t,e){1&t&&i.gc("click",function(t){return e.onLabelClick(t)})("click",function(){return e.onDocumentClick()},!1,i.Cc)},inputs:{id:"id",checked:"checked",filledIn:"filledIn",indeterminate:"indeterminate",rounded:"rounded",checkboxPosition:"checkboxPosition",default:"default",inline:"inline",value:"value",disabled:"disabled",class:"class",required:"required",name:"name",tabIndex:"tabIndex"},outputs:{change:"change"},features:[i.Db([Lt]),i.Cb],ngContentSelectors:nt,decls:5,vars:27,consts:[[3,"ngClass"],["type","checkbox",1,"custom-control-input",3,"ngClass","id","checked","disabled","required","indeterminate","tabIndex","blur","click","change"],["input",""]],template:function(t,e){1&t&&(i.pc(),i.Yb(0,"div",0),i.Yb(1,"input",1,2),i.gc("blur",function(){return e.onBlur()})("click",function(t){return e.onCheckboxClick(t)})("change",function(t){return e.onCheckboxChange(t)}),i.Xb(),i.Yb(3,"label",0),i.oc(4),i.Xb(),i.Xb()),2&t&&(i.qc("ngClass",i.xc(12,ft,e.default,!e.default,e.inline,e.inline&&!e.default)),i.Eb(1),i.qc("ngClass",i.wc(17,dt,e.filledIn||e.rounded,e.default,!e.default))("id",e.id)("checked",e.checked)("disabled",e.disabled)("required",e.required)("indeterminate",e.indeterminate)("tabIndex",e.tabIndex),i.Fb("name",e.name)("value",e.value),i.Eb(2),i.qc("ngClass",i.yc(21,pt,e.default,!e.default,"right"===e.checkboxPosition,e.rounded,e.disabled)),i.Fb("for",e.id))},directives:[c.j],styles:[".form-check-label.label-before:after,.form-check-label.label-before:before{top:0!important;right:0!important;left:auto!important}.custom-control-label.label-before:after,.custom-control-label.label-before:before{top:.25rem!important;right:0!important;left:auto!important}.custom-control-label.label-before{position:absolute}.custom-control-inline .label-before{position:relative}.form-check-label.label-before{padding-left:0!important;padding-right:35px}.custom-control-label.label-before{padding-left:0!important;padding-right:25px!important}.form-check-input[type=checkbox]:checked+.label-before:before,label.btn input[type=checkbox]:checked+.label-before:before{top:-4px!important;right:10px!important;left:auto!important}.form-check-input[type=checkbox]:indeterminate+.label-before:before,label.btn input[type=checkbox]:indeterminate+.label-before:before{top:-11px!important;right:16px!important;left:auto!important}.form-check-input[type=checkbox].filled-in+.label-before:before,.form-check-input[type=checkbox].filled-in:checked+.label-before:before,label.btn input[type=checkbox].filled-in+.label-before:before,label.btn input[type=checkbox].filled-in:checked+.label-before:before{top:0!important;right:10px!important;left:auto!important}.form-check-input[type=checkbox].filled-in+.label-before:after,label.btn input[type=checkbox].filled-in+.label-before:after{top:0!important;left:auto!important}.checkbox-rounded:after{border-radius:50%!important}mdb-checkbox .form-check{padding-left:0!important}"],encapsulation:2,changeDetection:0}),t}(),Ft=function(){var t=function t(){Object(a.a)(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Qb({type:t}),t.\u0275inj=i.Pb({imports:[[c.c,f.i]]}),t}(),Vt=function(){var t=function(){function t(){Object(a.a)(this,t)}return Object(s.a)(t,null,[{key:"forRoot",value:function(){return{ngModule:t,providers:[]}}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Qb({type:t}),t.\u0275inj=i.Pb({}),t}(),Ut=function(){function t(e,n){Object(a.a)(this,t),this.open=e,this.close=n||e}return Object(s.a)(t,[{key:"isManual",value:function(){return"manual"===this.open||"manual"===this.close}}]),t}(),Bt={hover:["mouseover","mouseout"],focus:["focusin","focusout"]};"undefined"!=typeof window&&window,"undefined"==typeof console||console;var qt=function t(e,n,r){Object(a.a)(this,t),this.nodes=e,this.viewRef=n,this.componentRef=r},Xt=function(){function t(e,n,r,o,s,c,u,l){Object(a.a)(this,t),this._viewContainerRef=e,this._renderer=n,this._elementRef=r,this._injector=o,this._componentFactoryResolver=s,this._ngZone=c,this._applicationRef=u,this._posService=l,this.onBeforeShow=new i.n,this.onShown=new i.n,this.onBeforeHide=new i.n,this.onHidden=new i.n,this.shown=new i.n,this.hidden=new i.n,this._providers=[],this._isHiding=!1,this.containerDefaultSelector="body",this._listenOpts={},this._globalListener=Function.prototype}return Object(s.a)(t,[{key:"isShown",get:function(){return!this._isHiding&&!!this._componentRef}},{key:"attach",value:function(t){return this._componentFactory=this._componentFactoryResolver.resolveComponentFactory(t),this}},{key:"to",value:function(t){return this.container=t||this.container,this}},{key:"position",value:function(t){return this.attachment=t.attachment||this.attachment,this._elementRef=t.target||this._elementRef,this}},{key:"provide",value:function(t){return this._providers.push(t),this}},{key:"show",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this._subscribePositioning(),this._innerComponent=null,!this._componentRef){this.onBeforeShow.emit(),this._contentRef=this._getContentRef(t.content,t.data);var e=i.s.create({providers:this._providers,parent:this._injector});if(this._componentRef=this._componentFactory.create(e,this._contentRef.nodes),this._applicationRef.attachView(this._componentRef.hostView),this.instance=this._componentRef.instance,Object.assign(this._componentRef.instance,t),this.container instanceof i.l&&this.container.nativeElement.appendChild(this._componentRef.location.nativeElement),"string"==typeof this.container&&"undefined"!=typeof document){var n=document.querySelector(this.container)||document.querySelector(this.containerDefaultSelector);n&&n.appendChild(this._componentRef.location.nativeElement)}!this.container&&this._elementRef&&this._elementRef.nativeElement.parentElement&&this._elementRef.nativeElement.parentElement.appendChild(this._componentRef.location.nativeElement),this._contentRef.componentRef&&(this._innerComponent=this._contentRef.componentRef.instance,this._contentRef.componentRef.changeDetectorRef.markForCheck(),this._contentRef.componentRef.changeDetectorRef.detectChanges()),this._componentRef.changeDetectorRef.markForCheck(),this._componentRef.changeDetectorRef.detectChanges(),this.onShown.emit(this._componentRef.instance)}return this._registerOutsideClick(),this._componentRef}},{key:"hide",value:function(){if(!this._componentRef)return this;this._posService.deletePositionElement(this._componentRef.location),this.onBeforeHide.emit(this._componentRef.instance);var t=this._componentRef.location.nativeElement;return t.parentNode.removeChild(t),this._contentRef.componentRef&&this._contentRef.componentRef.destroy(),this._componentRef.destroy(),this._viewContainerRef&&this._contentRef.viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._contentRef.viewRef)),this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._contentRef=null,this._componentRef=null,this._removeGlobalListener(),this.onHidden.emit(),this}},{key:"toggle",value:function(){this.isShown?this.hide():this.show()}},{key:"dispose",value:function(){this.isShown&&this.hide(),this._unsubscribePositioning(),this._unregisterListenersFn&&this._unregisterListenersFn()}},{key:"listen",value:function(t){var e=this;this.triggers=t.triggers||this.triggers,this._listenOpts.outsideClick=t.outsideClick,this._listenOpts.outsideEsc=t.outsideEsc,t.target=t.target||this._elementRef.nativeElement;var n=this._listenOpts.hide=function(){return t.hide?t.hide():void e.hide()},r=this._listenOpts.show=function(n){t.show?t.show(n):e.show(n),n()};return this._unregisterListenersFn=function(t,e){var n=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Bt,n=(t||"").trim();if(0===n.length)return[];var r=n.split(/\s+/).map(function(t){return t.split(":")}).map(function(t){var n=e[t[0]]||t;return new Ut(n[0],n[1])}),i=r.filter(function(t){return t.isManual()});if(i.length>1)throw new Error("Triggers parse error: only one manual trigger is allowed");if(1===i.length&&r.length>1)throw new Error("Triggers parse error: manual trigger can't be mixed with other triggers");return r}(e.triggers),r=e.target;if(1===n.length&&n[0].isManual())return Function.prototype;var i=[],o=[],a=function(){o.forEach(function(t){return i.push(t())}),o.length=0};return n.forEach(function(n){var s=n.open===n.close,c=s?e.toggle:e.show;s||o.push(function(){return t.listen(r,n.close,e.hide)}),i.push(t.listen(r,n.open,function(){return c(a)}))}),function(){i.forEach(function(t){return t()})}}(this._renderer,{target:t.target,triggers:t.triggers,show:r,hide:n,toggle:function(t){e.isShown?n():r(t)}}),this}},{key:"_removeGlobalListener",value:function(){this._globalListener&&(this._globalListener(),this._globalListener=null)}},{key:"attachInline",value:function(t,e){return this._inlineViewRef=t.createEmbeddedView(e),this}},{key:"_registerOutsideClick",value:function(){var t=this;if(this._componentRef&&this._componentRef.location){if(this._listenOpts&&this._listenOpts.outsideClick){var e=this._componentRef.location.nativeElement;setTimeout(function(){var n;t._globalListener=(n={targets:[e,t._elementRef.nativeElement],outsideClick:t._listenOpts.outsideClick,hide:function(){return t._listenOpts.hide()}}).outsideClick?t._renderer.listen("document","click",function(t){n.target&&n.target.contains(t.target)||n.targets&&n.targets.some(function(e){return e.contains(t.target)})||n.hide()}):Function.prototype})}var n;this._listenOpts.outsideEsc&&(this._globalListener=(n={targets:[this._componentRef.location.nativeElement,this._elementRef.nativeElement],outsideEsc:this._listenOpts.outsideEsc,hide:function(){return t._listenOpts.hide()}}).outsideEsc?this._renderer.listen("document","keyup.esc",function(t){n.target&&n.target.contains(t.target)||n.targets&&n.targets.some(function(e){return e.contains(t.target)})||n.hide()}):Function.prototype)}}},{key:"getInnerComponent",value:function(){return this._innerComponent}},{key:"_subscribePositioning",value:function(){var t=this;!this._zoneSubscription&&this.attachment&&(this.onShown.subscribe(function(){t._posService.position({element:t._componentRef.location,target:t._elementRef,attachment:t.attachment,appendToBody:"body"===t.container})}),this._zoneSubscription=this._ngZone.onStable.subscribe(function(){t._componentRef&&t._posService.calcPosition()}))}},{key:"_unsubscribePositioning",value:function(){this._zoneSubscription&&(this._zoneSubscription.unsubscribe(),this._zoneSubscription=null)}},{key:"_getContentRef",value:function(t,e){if(!t)return new qt([]);if(t instanceof i.N){if(this._viewContainerRef){var n=this._viewContainerRef.createEmbeddedView(t);return n.markForCheck(),new qt([n.rootNodes],n)}var r=t.createEmbeddedView({});return this._applicationRef.attachView(r),new qt([r.rootNodes],r)}if("function"==typeof t){var o=this._componentFactoryResolver.resolveComponentFactory(t),a=i.s.create({providers:this._providers,parent:this._injector}),s=o.create(a);return Object.assign(s.instance,e),this._applicationRef.attachView(s.hostView),new qt([[s.location.nativeElement]],s.hostView,s)}return new qt([[this._renderer.createText("".concat(t))]])}}]),t}();function zt(t,e){if(1!==t.nodeType)return[];var n=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?n[e]:n}function Ht(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function Yt(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=zt(t),n=e.overflowX,r=e.overflowY;return/(auto|scroll|overlay)/.test(String(e.overflow)+String(r)+String(n))?t:Yt(Ht(t))}var Gt="undefined"!=typeof window&&"undefined"!=typeof document,Kt=Gt&&!(!window.MSInputMethodContext||!document.documentMode),Wt=Gt&&!(!window.MSInputMethodContext||!/MSIE 10/.test(navigator.userAgent));function Qt(t){return 11===t?Kt:10===t?Wt:Kt||Wt}function Zt(t){if(!t)return document.documentElement;for(var e,n=Qt(10)?document.body:null,r=t.offsetParent||null;r===n&&t.nextElementSibling&&"BODY"!==t.nodeName;)r=(e=t.nextElementSibling).offsetParent;var i=r&&r.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(r.nodeName)&&"static"===zt(r,"position")?Zt(r):r:e?e.ownerDocument.documentElement:document.documentElement}function Jt(t){return null!==t.parentNode?Jt(t.parentNode):t}function $t(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?t:e,i=n?e:t,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var a,s,c=o.commonAncestorContainer;if(t!==c&&e!==c||r.contains(i))return"BODY"===(s=(a=c).nodeName)||"HTML"!==s&&Zt(a.firstElementChild)!==a?Zt(c):c;var u=Jt(t);return u.host?$t(u.host,e):$t(t,Jt(e).host)}function te(t,e){var n="x"===e?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(t["border".concat(n,"Width")])+parseFloat(t["border".concat(r,"Width")])}function ee(t,e,n,r){return Math.max(e["offset".concat(t)],e["scroll".concat(t)],n["client".concat(t)],n["offset".concat(t)],n["scroll".concat(t)],Qt(10)?parseInt(n["offset".concat(t)],10)+parseInt(r["margin".concat("Height"===t?"Top":"Left")],10)+parseInt(r["margin".concat("Height"===t?"Bottom":"Right")],10):0)}function ne(t){var e=t.body,n=t.documentElement,r=Qt(10)&&getComputedStyle(n);return{height:ee("Height",e,n,r),width:ee("Width",e,n,r)}}function re(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===e?"scrollTop":"scrollLeft",r=t.nodeName;if("BODY"===r||"HTML"===r){var i=t.ownerDocument.documentElement,o=t.ownerDocument.scrollingElement||i;return o[n]}return t[n]}function ie(t){return Object.assign(Object.assign({},t),{right:t.left+t.width,bottom:t.top+t.height})}function oe(t){var e={};try{if(Qt(10)){e=t.getBoundingClientRect();var n=re(t,"top"),r=re(t,"left");e.top+=n,e.left+=r,e.bottom+=n,e.right+=r}else e=t.getBoundingClientRect()}catch(u){return}var i={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},o="HTML"===t.nodeName?ne(t.ownerDocument):{},a=t.offsetWidth-(o.width||t.clientWidth||i.right-i.left),s=t.offsetHeight-(o.height||t.clientHeight||i.bottom-i.top);if(a||s){var c=zt(t);a-=te(c,"x"),s-=te(c,"y"),i.width-=a,i.height-=s}return ie(i)}function ae(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=re(e,"top"),i=re(e,"left"),o=n?-1:1;return t.top+=r*o,t.bottom+=r*o,t.left+=i*o,t.right+=i*o,t}function se(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Qt(10),i="HTML"===e.nodeName,o=oe(t),a=oe(e),s=Yt(t),c=zt(e),u=parseFloat(c.borderTopWidth),l=parseFloat(c.borderLeftWidth);n&&i&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var h=ie({top:o.top-a.top-u,left:o.left-a.left-l,width:o.width,height:o.height});if(h.marginTop=0,h.marginLeft=0,!r&&i){var f=parseFloat(c.marginTop),d=parseFloat(c.marginLeft);h.top-=u-f,h.bottom-=u-f,h.left-=l-d,h.right-=l-d,h.marginTop=f,h.marginLeft=d}return(r&&!n?e.contains(s):e===s&&"BODY"!==s.nodeName)&&(h=ae(h,e)),h}function ce(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.ownerDocument.documentElement,r=se(t,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=e?0:re(n),s=e?0:re(n,"left"),c={top:a-Number(r.top)+Number(r.marginTop),left:s-Number(r.left)+Number(r.marginLeft),width:i,height:o};return ie(c)}function ue(t){var e=t.nodeName;return"BODY"!==e&&"HTML"!==e&&("fixed"===zt(t,"position")||ue(Ht(t)))}function le(t){if(!t||!t.parentElement||Qt())return document.documentElement;for(var e=t.parentElement;e&&"none"===zt(e,"transform");)e=e.parentElement;return e||document.documentElement}function he(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},a=i?le(t):$t(t,e);if("viewport"===r)o=ce(a,i);else{var s;"scrollParent"===r?"BODY"===(s=Yt(Ht(e))).nodeName&&(s=t.ownerDocument.documentElement):s="window"===r?t.ownerDocument.documentElement:r;var c=se(s,a,i);if("HTML"!==s.nodeName||ue(a))o=c;else{var u=ne(t.ownerDocument),l=u.height,h=u.width;o.top+=c.top-c.marginTop,o.bottom=Number(l)+Number(c.top),o.left+=c.left-c.marginLeft,o.right=Number(h)+Number(c.left)}}return o.left+=n,o.top+=n,o.right-=n,o.bottom-=n,o}function fe(t){return t.width*t.height}function de(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:["top","left","bottom","right"],o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"viewport",a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0;if(-1===t.indexOf("auto"))return t;var s=he(n,r,a,o),c={top:{width:s.width,height:e.top-s.top},right:{width:s.right-e.right,height:s.height},bottom:{width:s.width,height:s.bottom-e.bottom},left:{width:e.left-s.left,height:s.height}},u=Object.keys(c).map(function(t){return Object.assign(Object.assign({key:t},c[t]),{area:fe(c[t])})}).sort(function(t,e){return e.area-t.area}),l=u.filter(function(t){return t.width>=n.clientWidth&&t.height>=n.clientHeight}),h=(l=i.reduce(function(t,e){return Object.assign(Object.assign({},t),Object(F.a)({},e,l[e]))},{})).length>0?l[0].key:u[0].key,f=t.split(" ")[1];return n.className=n.className.replace(/auto/g,h),h+(f?"-".concat(f):"")}function pe(t){var e=t.ownerDocument.defaultView.getComputedStyle(t),n=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),r=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:Number(t.offsetWidth)+r,height:Number(t.offsetHeight)+n}}function be(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=n?le(t):$t(t,e);return se(e,r,n)}function me(t,e,n){var r=n.split(" ")[0],i=pe(t),o={width:i.width,height:i.height},a=-1!==["right","left"].indexOf(r),s=a?"top":"left",c=a?"left":"top",u=a?"height":"width",l=a?"width":"height";return o[s]=e[s]+e[u]/2-i[u]/2,o[c]=r===c?e[c]-i[l]:e[function(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,function(t){return e[t]})}(c)],o}function ve(t,e){return t&&t.modifiers&&t.modifiers[e]&&t.modifiers[e].enabled}function ge(t,e,n){Object.keys(e).forEach(function(r){var i,o="";-1!==["width","height","top","right","bottom","left"].indexOf(r)&&""!==(i=e[r])&&!isNaN(parseFloat(i))&&isFinite(i)&&(o="px"),n?n.setStyle(t,r,"".concat(String(e[r])).concat(o)):t.style[r]=String(e[r])+o})}function ye(t){var e,n=t.offsets.target,r=t.instance.target.querySelector(".arrow");if(!r)return t;var i=-1!==["left","right"].indexOf(t.placement),o=i?"height":"width",a=i?"Top":"Left",s=a.toLowerCase(),c=i?"left":"top",u=i?"bottom":"right",l=pe(r)[o];t.offsets.host[u]-ln[u]&&(n[s]+=Number(t.offsets.host[s])+Number(l)-Number(n[u])),n=ie(n);var h=Number(t.offsets.host[s])+Number(t.offsets.host[o]/2-l/2),f=zt(t.instance.target),d=parseFloat(f["margin".concat(a)]),p=parseFloat(f["border".concat(a,"Width")]),b=h-n[s]-d-p;return b=Math.max(Math.min(n[o]-l,b),0),t.offsets.arrow=(e={},Object(F.a)(e,s,Math.round(b)),Object(F.a)(e,c,""),e),t.instance.arrow=r,t}function we(t){if(t.offsets.target=ie(t.offsets.target),!ve(t.options,"flip"))return t.offsets.target=Object.assign(Object.assign({},t.offsets.target),me(t.instance.target,t.offsets.host,t.placement)),t;var e=he(t.instance.target,t.instance.host,0,"viewport",!1),n=t.placement.split(" ")[0],r=t.placement.split(" ")[1]||"",i=t.offsets.host,o=t.instance.target,a=t.instance.host,s=r?de("auto",i,o,a,["top","bottom"]):de("auto",i,o,a),c=[n,s];return c.forEach(function(i,o){if(n!==i||c.length===o+1)return t;var a="left"===(n=t.placement.split(" ")[0])&&Math.floor(t.offsets.target.right)>Math.floor(t.offsets.host.left)||"right"===n&&Math.floor(t.offsets.target.left)Math.floor(t.offsets.host.top)||"bottom"===n&&Math.floor(t.offsets.target.top)Math.floor(e.right),l=Math.floor(t.offsets.target.top)Math.floor(e.bottom),f="left"===n&&s||"right"===n&&u||"top"===n&&l||"bottom"===n&&h,d=-1!==["top","bottom"].indexOf(n),p=d&&"left"===r&&s||d&&"right"===r&&u||!d&&"left"===r&&l||!d&&"right"===r&&h;(a||f||p)&&((a||f)&&(n=c[o+1]),p&&(r=function(t){return"right"===t?"left":"left"===t?"right":t}(r)),t.placement=n+(r?" ".concat(r):""),t.offsets.target=Object.assign(Object.assign({},t.offsets.target),me(t.instance.target,t.offsets.host,t.placement)))}),t}function _e(t){if(!ve(t.options,"preventOverflow"))return t;var e=t.instance.target.style,n=e.top,r=e.left,i=e.transform;e.top="",e.left="",e.transform="";var o=he(t.instance.target,t.instance.host,0,"scrollParent",!1);e.top=n,e.left=r,e.transform=i;var a,s={primary:function(e){var n=t.offsets.target[e];return t.offsets.target[e]o[e]&&(r=Math.min(t.offsets.target[n],o[e]-("right"===e?t.offsets.target.width:t.offsets.target.height))),Object(F.a)({},n,r)}};return["left","right","top","bottom"].forEach(function(e){a=-1!==["left","top"].indexOf(e)?"primary":"secondary",t.offsets.target=Object.assign(Object.assign({},t.offsets.target),s[a](e))}),t}function ke(t){var e=t.placement,n=e.split(" ")[0],r=e.split(" ")[1];if(r){var i=t.offsets,o=i.host,a=i.target,s=-1!==["bottom","top"].indexOf(n),c=s?"left":"top",u=s?"width":"height",l={left:Object(F.a)({},c,o[c]),right:Object(F.a)({},c,o[c]+o[u]-o[u])};t.offsets.target=Object.assign(Object.assign({},a),l[r])}return t}var xe=new(function(){function t(){Object(a.a)(this,t)}return Object(s.a)(t,[{key:"position",value:function(t,e){return this.offset(t,e)}},{key:"offset",value:function(t,e){return be(e,t)}},{key:"positionElements",value:function(t,e,n,r,i){return[we,ke,_e,ye].reduce(function(t,e){return e(t)},function(t,e,n,r){var i=be(t,e),o=!!n.match(/auto/g),a=n.match(/auto\s(left|right|top|bottom)/g)?n.split(" ")[1]||"":n;return{options:r,instance:{target:t,host:e,arrow:null},offsets:{target:me(t,i,a),host:i,arrow:null},positionFixed:!1,placement:a=de(a,i,t,e),placementAuto:o}}(e,t,n,i))}}]),t}()),Oe=function(){var t=function(){function t(e,n,r){var i=this;Object(a.a)(this,t),this._ngZone=r,this.update$$=new h.a,this.positionElements=new Map,Object(c.u)(n)&&this._ngZone.runOutsideAngular(function(){Object(K.a)(Object(W.a)(window,"scroll"),Object(W.a)(window,"resize"),Object(u.a)(0,Q.a),i.update$$).subscribe(function(){i.positionElements.forEach(function(t){var n,r,o,a,s,c;n=Se(t.target),r=Se(t.element),o=t.attachment,a=t.appendToBody,s=i.options,c=e.createRenderer(null,null),function(t,e){var n=t.instance.target,r=function(t){return{width:t.offsets.target.width,height:t.offsets.target.height,left:Math.floor(t.offsets.target.left),top:Math.round(t.offsets.target.top),bottom:Math.round(t.offsets.target.bottom),right:Math.floor(t.offsets.target.right)}}(t);ge(n,{"will-change":"transform",top:"0px",left:"0px",transform:"translate3d(".concat(r.left,"px, ").concat(r.top,"px, 0px)")},e),t.instance.arrow&&ge(t.instance.arrow,t.offsets.arrow,e),t.placementAuto&&(e?(e.setAttribute(n,"class",n.className.replace(/bs-popover-auto/g,"bs-popover-".concat(t.placement))),e.setAttribute(n,"class",n.className.replace(/bs-tooltip-auto/g,"bs-tooltip-".concat(t.placement))),e.setAttribute(n,"class",n.className.replace(/\sauto/g,"s".concat(t.placement))),n.className.match(/popover/g)&&e.addClass(n,"popover-auto"),n.className.match(/tooltip/g)&&e.addClass(n,"tooltip-auto")):(n.className=n.className.replace(/bs-popover-auto/g,"bs-popover-".concat(t.placement)),n.className=n.className.replace(/bs-tooltip-auto/g,"bs-tooltip-".concat(t.placement)),n.className=n.className.replace(/\sauto/g,"s".concat(t.placement)),n.className.match(/popover/g)&&n.classList.add("popover-auto"),n.className.match(/tooltip/g)&&n.classList.add("tooltip-auto"))),e?e.setAttribute(n,"class",n.className.replace(/left|right|top|bottom/g,"".concat(t.placement.split(" ")[0]))):n.className=n.className.replace(/left|right|top|bottom/g,"".concat(t.placement.split(" ")[0]))}(xe.positionElements(n,r,o,a,s),c)})})})}return Object(s.a)(t,[{key:"position",value:function(t){this.addPositionElement(t)}},{key:"addPositionElement",value:function(t){this.positionElements.set(Se(t.element),t)}},{key:"calcPosition",value:function(){this.update$$.next()}},{key:"deletePositionElement",value:function(t){this.positionElements.delete(Se(t))}},{key:"setOptions",value:function(t){this.options=t}}]),t}();return t.\u0275fac=function(e){return new(e||t)(i.cc(i.H),i.cc(i.D),i.cc(i.B))},t.\u0275prov=i.Ob({token:t,factory:t.\u0275fac}),t}();function Se(t){return t&&"string"==typeof t?document.querySelector(t):t instanceof i.l?t.nativeElement:t}var Ee=function(){var t=function(){function t(e,n,r,i,o){Object(a.a)(this,t),this._componentFactoryResolver=e,this._ngZone=n,this._injector=r,this._posService=i,this._applicationRef=o}return Object(s.a)(t,[{key:"createLoader",value:function(t,e,n){return new Xt(e,n,t,this._injector,this._componentFactoryResolver,this._ngZone,this._applicationRef,this._posService)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(i.cc(i.j),i.cc(i.B),i.cc(i.s),i.cc(Oe),i.cc(i.g))},t.\u0275prov=i.Ob({token:t,factory:t.\u0275fac}),t}(),Ce=function(){var t=function t(){Object(a.a)(this,t),this.autoClose=!0};return t.\u0275prov=i.Ob({token:t,factory:t.\u0275fac=function(e){return new(e||t)}}),t}(),je=function(){var t=function t(){var e=this;Object(a.a)(this,t),this.direction="down",this.isOpenChange=new i.n,this.isDisabledChange=new i.n,this.toggleClick=new i.n,this.dropdownMenu=new Promise(function(t){e.resolveDropdownMenu=t})};return t.\u0275prov=i.Ob({token:t,factory:t.\u0275fac=function(e){return new(e||t)}}),t}(),Te=function(){var t=function(){function t(){Object(a.a)(this,t)}return Object(s.a)(t,null,[{key:"forRoot",value:function(e){return{ngModule:t,providers:[Ee,Oe,je,{provide:Ce,useValue:e||{autoClose:!0}}]}}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Qb({type:t}),t.\u0275inj=i.Pb({}),t}(),Ie=function(){function t(){Object(a.a)(this,t)}return Object(s.a)(t,[{key:"focusTrapModal",value:function(t,e){var n,r,i;r=(n=e.nativeElement.querySelectorAll("a[href], button, textarea, input, select, form, mdb-select, mdb-auto-completer, mdb-checkbox, mdb-range-input"))[0],i=n[n.length-1],"Tab"!==t.key&&9!==t.keyCode||(t.shiftKey?Et&&Et.activeElement===r&&(i.focus(),t.preventDefault()):Et&&Et.activeElement===i&&(r.focus(),t.preventDefault()))}},{key:"getClosestEl",value:function(t,e){for(;t&&t!==Et;t=t.parentNode)if(t.matches&&t.matches(e))return t;return null}},{key:"getCoords",value:function(t){var e=t.getBoundingClientRect(),n=Et.body,r=Et.documentElement,i=e.left+(St.pageXOffset||r.scrollLeft||n.scrollLeft)-(r.clientLeft||n.clientLeft||0);return{top:Math.round(e.top+(St.pageYOffset||r.scrollTop||n.scrollTop)-(r.clientTop||n.clientTop||0)),left:Math.round(i)}}}],[{key:"reflow",value:function(t){}},{key:"getStyles",value:function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=St),e.getComputedStyle(t)}}]),t}(),Ae=function(){var t=function(){function t(e,n){Object(a.a)(this,t),this._el=e,this._renderer=n,this.fab=!1,this.far=!1,this.fal=!1,this.fad=!1,this.fas=!0,this.sizeClass="",this.utils=new Ie}return Object(s.a)(t,[{key:"ngOnInit",value:function(){var t=this;this.size&&(this.sizeClass="fa-".concat(this.size));var e=this._el.nativeElement.classList;this.fab=e.contains("fab"),this.far=e.contains("far"),this.fas=e.contains("fas"),this.fal=e.contains("fal"),this.fad=e.contains("fad");var n=this.utils.getClosestEl(this._el.nativeElement,".md-form")||this.utils.getClosestEl(this._el.nativeElement,".md-outline");n&&n.childNodes.forEach(function(e){t._renderer.listen(e,"focus",function(){t._renderer.addClass(t._el.nativeElement,"active")}),t._renderer.listen(e,"blur",function(){t._renderer.removeClass(t._el.nativeElement,"active")})})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(i.Sb(i.l),i.Sb(i.G))},t.\u0275cmp=i.Mb({type:t,selectors:[["mdb-icon"]],inputs:{icon:"icon",size:"size",class:"class",classInside:"classInside"},decls:1,vars:13,consts:[[3,"ngClass"]],template:function(t,e){1&t&&i.Tb(0,"i",0),2&t&&(i.Jb("fa-",e.icon," ",e.class," ",e.classInside," ",e.sizeClass,""),i.qc("ngClass",i.yc(7,bt,e.fas,e.far,e.fab,e.fal,e.fad)))},directives:[c.j],encapsulation:2,changeDetection:0}),t}(),Re=function(){var t=function t(e,n){Object(a.a)(this,t),this._el=e,this._r=n,this._r.addClass(this._el.nativeElement,"fab")};return t.\u0275fac=function(e){return new(e||t)(i.Sb(i.l),i.Sb(i.G))},t.\u0275dir=i.Nb({type:t,selectors:[["","fab",""],["","brands",""]]}),t}(),Pe=function(){var t=function t(){Object(a.a)(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Qb({type:t}),t.\u0275inj=i.Pb({imports:[[c.c]]}),t}(),Le=function(){var t=function t(){Object(a.a)(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Qb({type:t}),t.\u0275inj=i.Pb({imports:[[c.c]]}),t}(),Ne=function(){var t=function(){function t(){Object(a.a)(this,t)}return Object(s.a)(t,null,[{key:"forRoot",value:function(){return{ngModule:t,providers:[]}}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Qb({type:t}),t.\u0275inj=i.Pb({}),t}(),De=function(){var t=function t(){Object(a.a)(this,t)};return t.\u0275prov=i.Ob({token:t,factory:t.\u0275fac=function(e){return new(e||t)}}),t}(),Me=function(){var t=function(){function t(){Object(a.a)(this,t)}return Object(s.a)(t,[{key:"hide",value:function(){}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Ob({token:t,factory:t.\u0275fac}),t}(),Fe={backdrop:!0,keyboard:!0,focus:!0,show:!1,ignoreBackdropClick:!1,class:"",containerClass:"",animated:!0,scroll:!1,data:{}},Ve="modal-open",Ue="in",Be="show",qe=function(){var t=function(){function t(e,n){Object(a.a)(this,t),this.element=e,this.renderer=n,this.classNameBackDrop=!0,this._isShown=!1}return Object(s.a)(t,[{key:"isAnimated",get:function(){return this._isAnimated},set:function(t){this._isAnimated=t}},{key:"isShown",get:function(){return this._isShown},set:function(t){this._isShown=t,t?(this.renderer.addClass(this.element.nativeElement,"".concat(Ue)),Ct()||this.renderer.addClass(this.element.nativeElement,"".concat(Be))):(this.renderer.removeClass(this.element.nativeElement,"".concat(Ue)),Ct()||this.renderer.removeClass(this.element.nativeElement,"".concat(Be)))}},{key:"ngOnInit",value:function(){this.renderer.addClass(this.element.nativeElement,"".concat("fade")),Ie.reflow(this.element.nativeElement),this.isShown=!0}}]),t}();return t.\u0275fac=function(e){return new(e||t)(i.Sb(i.l),i.Sb(i.G))},t.\u0275cmp=i.Mb({type:t,selectors:[["mdb-modal-backdrop"]],hostVars:2,hostBindings:function(t,e){2&t&&i.Kb("modal-backdrop",e.classNameBackDrop)},decls:0,vars:0,template:function(t,e){},encapsulation:2}),t}(),Xe=function(){var t=function(){function t(e,n,r){Object(a.a)(this,t),this._renderer=r,this.modalClass="modal",this.tabindex=-1,this.role="dialog",this.modal=!0,this.isShown=!1,this.isModalHiding=!1,this._element=n,this.config=Object.assign({},e)}return Object(s.a)(t,[{key:"onClick",value:function(t){this.config.ignoreBackdropClick||"static"===this.config.backdrop||t.target!==this._element.nativeElement||(this.mdbModalService.setDismissReason("backdrop-click"),this.hide())}},{key:"onEsc",value:function(){this.config.keyboard&&this.level===this.mdbModalService.getModalsCount()&&(this.mdbModalService.setDismissReason("esc"),this.hide())}},{key:"ngOnInit",value:function(){var t=this;this.config.animated&&this._renderer.addClass(this._element.nativeElement,"fade"),this._renderer.setStyle(this._element.nativeElement,"display","block"),window&&-1!==window.navigator.userAgent.indexOf("Edge")&&this.config&&-1===this.config.toString().indexOf("side-modal")||window&&-1!==window.navigator.userAgent.indexOf("Edge")&&this.config&&-1===this.config.toString().indexOf("modal-full-height")?(this.isShown=!0,this._renderer.addClass(this._element.nativeElement,Ct()?Ue:Be),this._renderer.setStyle(this._element.nativeElement,"transition","transform 0.3s ease-out"),this._renderer.setStyle(this._element.nativeElement,"transform","translate(0, 25px)")):setTimeout(function(){t.isShown=!0,t._renderer.addClass(t._element.nativeElement,Ct()?Ue:Be)},this.isAnimated?150:0),document&&document.body&&(1===this.mdbModalService.getModalsCount()&&(this.mdbModalService.checkScrollbar(),this.mdbModalService.setScrollbar()),this._renderer.addClass(document.body,Ve)),this.config.containerClass&&this.updateContainerClass(),this.config.scroll&&this._renderer.setStyle(this._element.nativeElement,"overflow-y","auto")}},{key:"focusModalElement",value:function(){this.config.focus&&this._element.nativeElement.focus()}},{key:"updateContainerClass",value:function(){if(this.config.containerClass)for(var t=this.config.containerClass.split(" "),e=0;e.modal-content{position:absolute;bottom:0}.modal .modal-dialog.modal-top-left{top:10px;left:10px}.modal .modal-dialog.modal-top-right{top:10px;right:10px}.modal .modal-dialog.modal-bottom-left{left:10px;bottom:10px}.modal .modal-dialog.modal-bottom-right{right:10px;bottom:10px}}.modal .modal-side.modal-top{top:0}.modal .modal-side.modal-left{left:0}.modal .modal-side.modal-right{right:0}.modal .modal-side.modal-bottom{bottom:0}.modal .modal-side.modal-top-left{top:10px;left:10px}.modal .modal-side.modal-top-right{top:10px;right:10px}.modal .modal-side.modal-bottom-left{left:10px;bottom:10px}.modal .modal-side.modal-bottom-right{right:10px;bottom:10px}.modal.fade.top:not(.show) .modal-dialog{transform:translate3d(0,-25%,0)}.modal.fade.left:not(.show) .modal-dialog{transform:translate3d(-25%,0,0)}.modal.fade.right:not(.show) .modal-dialog{transform:translate3d(25%,0,0)}.modal.fade.bottom:not(.show) .modal-dialog{transform:translate3d(0,25%,0)}.modal.fade.in{opacity:1}.modal.fade.in .modal-dialog{transform:translate(0)}.modal.fade.in .modal-dialog .relative{display:inline-block}.modal.modal-scrolling{position:relative}.modal.modal-scrolling .modal-dialog{position:fixed;z-index:1050}.modal.modal-content-clickable{top:auto;bottom:auto}.modal.modal-content-clickable .modal-dialog{position:fixed}.modal .modal-fluid{width:100%;max-width:100%}.modal .modal-fluid .modal-content{width:100%}.modal .modal-frame{position:absolute;width:100%;max-width:100%;margin:0}@media (max-width:767px){.modal .modal-frame{padding:.5rem}}.modal .modal-frame.modal-bottom{bottom:0}.modal .modal-full-height{display:flex;position:absolute;width:400px;min-height:100%;margin:0;top:0;right:0}@media (max-width:576px){.modal .modal-full-height{width:100%;padding:.5rem}}@media (max-width:992px){.modal .modal-full-height{width:100%;height:unset;position:unset}}@media (max-width:992px){.modal .modal-full-height.modal-left,.modal .modal-full-height.modal-right,.modal .modal-full-height.modal-top{margin:1.75rem auto;min-height:unset}}@media (max-width:768px){.modal .modal-full-height.modal-bottom{margin-top:1.75rem}}@media (min-width:768px) and (max-width:992px){.modal .modal-full-height.modal-bottom{margin-bottom:1.75rem}.modal .modal-full-height.modal-bottom .modal-content{bottom:1rem}}@media (max-width:992px){.modal .modal-full-height.modal-bottom,.modal .modal-full-height.modal-left,.modal .modal-full-height.modal-right,.modal .modal-full-height.modal-top{margin-left:auto;margin-right:auto}}.modal .modal-full-height.modal-bottom,.modal .modal-full-height.modal-top{display:block;width:100%;height:auto}.modal .modal-full-height.modal-top{bottom:auto}.modal .modal-full-height.modal-bottom{bottom:0}.modal .modal-full-height .modal-content{width:100%}.modal .modal-full-height.modal-lg{max-width:90%;width:90%}@media (min-width:992px){.modal .modal-full-height.modal-lg{max-width:800px;width:800px}}@media (min-width:1200px){.modal .modal-full-height.modal-lg{max-width:1000px;width:1000px}}.modal .modal-side{position:absolute;right:10px;bottom:10px;margin:0;min-width:100px}@media (max-width:768px){.modal .modal-side{padding-left:.5rem}}.modal-dialog.cascading-modal{margin-top:10%}.modal-dialog.cascading-modal .modal-header{text-align:center;margin:-2rem 1rem 1rem;padding:1.5rem;border:none;flex-direction:column}.modal-dialog.cascading-modal .modal-header .close{margin-right:2.5rem}.modal-dialog.cascading-modal .modal-header.white-text .close{color:#fff;opacity:1}.modal-dialog.cascading-modal .modal-header .title{width:100%;margin-bottom:0;font-size:1.25rem}.modal-dialog.cascading-modal .modal-header .title .fa{margin-right:9px}.modal-dialog.cascading-modal .modal-header .social-buttons{margin-top:1.5rem}.modal-dialog.cascading-modal .modal-header .social-buttons a{font-size:1rem}.modal-dialog.cascading-modal .modal-c-tabs .md-tabs{margin:-1.5rem 1rem 0}.modal-dialog.cascading-modal .modal-c-tabs .tab-content{padding:1.7rem 0 0}.modal-dialog.cascading-modal .modal-body,.modal-dialog.cascading-modal .modal-footer{color:#616161;padding-right:2rem;padding-left:2rem}.modal-dialog.cascading-modal .modal-body .additional-option,.modal-dialog.cascading-modal .modal-footer .additional-option{text-align:center;margin-top:1rem}.modal-dialog.cascading-modal.modal-avatar{margin-top:6rem}.modal-dialog.cascading-modal.modal-avatar .modal-header{margin:-6rem 2rem -1rem}.modal-dialog.cascading-modal.modal-avatar .modal-header img{width:130px}.modal-dialog.modal-notify .heading{margin:0;padding:.3rem;color:#fff;font-size:1.15rem}.modal-dialog.modal-notify .modal-header{border:0}.modal-dialog.modal-notify .close{opacity:1}.modal-dialog.modal-notify .modal-body{padding:1.5rem;color:#616161}.modal-dialog.modal-notify .btn-outline-secondary-modal{background-color:transparent}.modal-dialog.modal-notify.modal-info .modal-header{background-color:#5394ff}.modal-dialog.modal-notify.modal-info .fa{color:#5394ff}.modal-dialog.modal-notify.modal-info .badge{background-color:#5394ff}.modal-dialog.modal-notify.modal-info .btn-primary-modal{background:#5394ff}.modal-dialog.modal-notify.modal-info .btn-primary-modal:active,.modal-dialog.modal-notify.modal-info .btn-primary-modal:focus,.modal-dialog.modal-notify.modal-info .btn-primary-modal:hover{background-color:#6da4ff!important}.modal-dialog.modal-notify.modal-info .btn-primary-modal.active{background-color:#0059ec!important}.modal-dialog.modal-notify.modal-info .btn-outline-secondary-modal{border:2px solid #5394ff;color:#5394ff!important}.modal-dialog.modal-notify.modal-warning .modal-header{background-color:#ff8e38}.modal-dialog.modal-notify.modal-warning .fa{color:#ff8e38}.modal-dialog.modal-notify.modal-warning .badge{background-color:#ff8e38}.modal-dialog.modal-notify.modal-warning .btn-primary-modal{background:#ff8e38}.modal-dialog.modal-notify.modal-warning .btn-primary-modal:active,.modal-dialog.modal-notify.modal-warning .btn-primary-modal:focus,.modal-dialog.modal-notify.modal-warning .btn-primary-modal:hover{background-color:#ff9c52!important}.modal-dialog.modal-notify.modal-warning .btn-primary-modal.active{background-color:#d15a00!important}.modal-dialog.modal-notify.modal-warning .btn-outline-secondary-modal{border:2px solid #ff8e38;color:#ff8e38!important}.modal-dialog.modal-notify.modal-success .modal-header{background-color:#01d36b}.modal-dialog.modal-notify.modal-success .fa{color:#01d36b}.modal-dialog.modal-notify.modal-success .badge{background-color:#01d36b}.modal-dialog.modal-notify.modal-success .btn-primary-modal{background:#01d36b}.modal-dialog.modal-notify.modal-success .btn-primary-modal:active,.modal-dialog.modal-notify.modal-success .btn-primary-modal:focus,.modal-dialog.modal-notify.modal-success .btn-primary-modal:hover{background-color:#01ec78!important}.modal-dialog.modal-notify.modal-success .btn-primary-modal.active{background-color:#016d38!important}.modal-dialog.modal-notify.modal-success .btn-outline-secondary-modal{border:2px solid #01d36b;color:#01d36b!important}.modal-dialog.modal-notify.modal-danger .modal-header{background-color:#ff4b4b}.modal-dialog.modal-notify.modal-danger .fa{color:#ff4b4b}.modal-dialog.modal-notify.modal-danger .badge{background-color:#ff4b4b}.modal-dialog.modal-notify.modal-danger .btn-primary-modal{background:#ff4b4b}.modal-dialog.modal-notify.modal-danger .btn-primary-modal:active,.modal-dialog.modal-notify.modal-danger .btn-primary-modal:focus,.modal-dialog.modal-notify.modal-danger .btn-primary-modal:hover{background-color:#ff6565!important}.modal-dialog.modal-notify.modal-danger .btn-primary-modal.active{background-color:#e40000!important}.modal-dialog.modal-notify.modal-danger .btn-outline-secondary-modal{border:2px solid #ff4b4b;color:#ff4b4b!important}.modal-sm .modal-content{margin:0 auto;max-width:300px}@media (min-width:768px){.modal-sm{max-width:300px}}.modal .modal-fluid,.modal .modal-frame{width:100%;max-width:100%}.modal-ext .modal-content .modal-header{text-align:center}.modal-ext .modal-content .options{float:left}.modal-ext .modal-content .modal-body .text-xs-center fieldset{margin-top:20px}.modal-ext .modal-content .call{margin-top:1rem}.modal-ext .modal-content .modal-body{padding:2rem 2rem 1rem}.modal-content:not(.card-image) .close{position:absolute;right:15px}.modal-cart li p{margin:5px;font-weight:400}.modal-cart li p .badge{margin-left:10px;margin-top:3px;font-weight:400;position:absolute}.modal-cart li p .quantity{font-size:16px;margin-right:7px;font-weight:300}.modal-cart .cartPageLink{margin-left:10px}.modal-cart .cartPageLink a{text-decoration:underline;color:#666}.modal-cart .total{float:right;font-weight:400}.cf-phone{margin-left:7px}.side-modal{position:fixed;width:400px;height:100%;width:100%;z-index:9999}.side-modal .modal-dialog{position:absolute;bottom:10px;right:10px;width:400px;margin:10px}@media (max-width:760px){.side-modal .modal-dialog{display:none}}.side-modal .modal-header{padding:1rem}.side-modal .modal-header .heading{margin:0;padding:0}.side-modal .modal-content{border:none}.modal-dynamic>:first-child{display:flex;flex-direction:column;height:100%}.side-modal.fade:not(.show) .modal-dialog{transform:translate3d(25%,0,0)}.transparent-bd{opacity:0!important}.modal-backdrop,.modal-backdrop.in{opacity:.5}#exampleModalScroll{overflow-x:hidden;overflow-y:auto}.modal-open .modal{overflow-x:hidden;overflow-y:hidden}.form-dark .card-image{background-size:100%}"],encapsulation:2}),t}(),ze=function(){var t=function(){function t(e,n){Object(a.a)(this,t),this.clf=n,this.config=Fe,this.open=new i.n,this.opened=new i.n,this.close=new i.n,this.closed=new i.n,this.isBodyOverflowing=!1,this.originalBodyPadding=0,this.scrollbarWidth=0,this.modalsCount=0,this.lastDismissReason="",this.loaders=[],this._backdropLoader=this.clf.createLoader(this.el,this.vcr,this.renderer),this.renderer=e.createRenderer(null,null)}return Object(s.a)(t,[{key:"show",value:function(t,e){return this.modalsCount++,this._createLoaders(),this.config=Object.assign({},Fe,e),this._showBackdrop(),this.lastDismissReason=null,this._showModal(t)}},{key:"hide",value:function(t){var e=this;1===this.modalsCount&&(this._hideBackdrop(),this.resetScrollbar()),this.modalsCount=this.modalsCount>=1?this.modalsCount-1:0,setTimeout(function(){e._hideModal(t),e.removeLoaders(t)},this.config.animated?150:0)}},{key:"_showBackdrop",value:function(){var t=this.config.backdrop||"static"===this.config.backdrop,e=!this.backdropRef||!this.backdropRef.instance.isShown;1===this.modalsCount&&(this.removeBackdrop(),t&&e&&(this._backdropLoader.attach(qe).to("body").show({isAnimated:this.config.animated}),this.backdropRef=this._backdropLoader._componentRef))}},{key:"_hideBackdrop",value:function(){var t=this;this.backdropRef&&(this.backdropRef.instance.isShown=!1,setTimeout(function(){return t.removeBackdrop()},this.config.animated?150:0))}},{key:"_showModal",value:function(t){var e=this.loaders[this.loaders.length-1],n=new Me,r=e.provide({provide:De,useValue:this.config}).provide({provide:Me,useValue:n}).attach(Xe).to("body").show({content:t,isAnimated:this.config.animated,data:this.config.data,mdbModalService:this});return r.instance.focusModalElement(),r.instance.level=this.getModalsCount(),n.hide=function(){r.instance.hide()},n.content=e.getInnerComponent()||null,n}},{key:"_hideModal",value:function(t){var e=this.loaders[t-1];e&&e.hide()}},{key:"getModalsCount",value:function(){return this.modalsCount}},{key:"setDismissReason",value:function(t){this.lastDismissReason=t}},{key:"removeBackdrop",value:function(){this._backdropLoader.hide(),this.backdropRef=null}},{key:"checkScrollbar",value:function(){this.isBodyOverflowing=document.body.clientWidth0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;Object(a.a)(this,t),this.matches=e,this.mediaQuery=n,this.mqAlias=r,this.suffix=i,this.priority=o,this.property=""}return Object(s.a)(t,[{key:"clone",value:function(){return new t(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}]),t}(),fn=function(){var t=function(){function t(){Object(a.a)(this,t),this.stylesheet=new Map}return Object(s.a)(t,[{key:"addStyleToElement",value:function(t,e,n){var r=this.stylesheet.get(t);r?r.set(e,n):this.stylesheet.set(t,new Map([[e,n]]))}},{key:"clearStyles",value:function(){this.stylesheet.clear()}},{key:"getStyleForElement",value:function(t,e){var n=this.stylesheet.get(t),r="";if(n){var i=n.get(e);"number"!=typeof i&&"string"!=typeof i||(r=i+"")}return r}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(i.Ob)({factory:function(){return new t},token:t,providedIn:"root"}),t}(),dn={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[]},pn=new i.r("Flex Layout token, config options for the library",{providedIn:"root",factory:function(){return dn}}),bn=new i.r("FlexLayoutServerLoaded",{providedIn:"root",factory:function(){return!1}}),mn=new i.r("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:function(){return null}});function vn(t,e){return t=t?t.clone():new hn,e&&(t.mqAlias=e.alias,t.mediaQuery=e.mediaQuery,t.suffix=e.suffix,t.priority=e.priority),t}var gn="inline",yn=["row","column","row-reverse","column-reverse"];function wn(t){var e=function(t){var e=(t=t?t.toLowerCase():"").split(" "),n=Object(o.a)(e,3),r=n[0],i=n[1],a=n[2];return yn.find(function(t){return t===r})||(r=yn[0]),i===gn&&(i=a!==gn?a:"",a=gn),[r,_n(i),!!a]}(t),n=Object(o.a)(e,3);return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{display:arguments.length>2&&void 0!==arguments[2]&&arguments[2]?"inline-flex":"flex","box-sizing":"border-box","flex-direction":t,"flex-wrap":e||null}}(n[0],n[1],n[2])}function _n(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}var kn=function(){var t=function(){function t(e,n,r,i){Object(a.a)(this,t),this.elementRef=e,this.styleBuilder=n,this.styler=r,this.marshal=i,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new h.a,this.styleCache=new Map}return Object(s.a)(t,[{key:"parentElement",get:function(){return this.elementRef.nativeElement.parentElement}},{key:"nativeElement",get:function(){return this.elementRef.nativeElement}},{key:"activatedValue",get:function(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)},set:function(t){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,t,this.marshal.activatedAlias)}},{key:"ngOnChanges",value:function(t){var e=this;Object.keys(t).forEach(function(n){if(-1!==e.inputs.indexOf(n)){var r=n.split(".").slice(1).join(".");e.setValue(t[n].currentValue,r)}})}},{key:"ngOnDestroy",value:function(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}},{key:"init",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),t)}},{key:"addStyles",value:function(t,e){var n=this.styleBuilder,r=n.shouldCache,i=this.styleCache.get(t);i&&r||(i=n.buildStyles(t,e),r&&this.styleCache.set(t,i)),this.mru=Object.assign({},i),this.applyStyleToElement(i),n.sideEffect(t,i,e)}},{key:"clearStyles",value:function(){var t=this;Object.keys(this.mru).forEach(function(e){t.mru[e]=""}),this.applyStyleToElement(this.mru),this.mru={}}},{key:"triggerUpdate",value:function(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}},{key:"getFlexFlowDirection",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t){var n=this.styler.getFlowDirection(t),r=Object(o.a)(n,2),i=r[0],a=r[1];if(!a&&e){var s=wn(i),c=[t];this.styler.applyStyleToElements(s,c)}return i.trim()}return"row"}},{key:"hasWrap",value:function(t){return this.styler.hasWrap(t)}},{key:"applyStyleToElement",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.nativeElement;this.styler.applyStyleToElement(n,t,e)}},{key:"setValue",value:function(t,e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,t,e)}},{key:"updateWithValue",value:function(t){this.currentValue!==t&&(this.addStyles(t),this.currentValue=t)}}]),t}();return t.\u0275fac=function(t){i.fc()},t.\u0275dir=i.Nb({type:t,features:[i.Cb]}),t}(),xn=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],On="(orientation: portrait) and (max-width: 599.98px)",Sn="(orientation: landscape) and (max-width: 959.98px)",En="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",Cn="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",jn="(orientation: portrait) and (min-width: 840px)",Tn="(orientation: landscape) and (min-width: 1280px)",In={HANDSET:"".concat(On,", ").concat(Sn),TABLET:"".concat(En," , ").concat(Cn),WEB:"".concat(jn,", ").concat(Tn," "),HANDSET_PORTRAIT:"".concat(On),TABLET_PORTRAIT:"".concat(En," "),WEB_PORTRAIT:"".concat(jn),HANDSET_LANDSCAPE:"".concat(Sn),TABLET_LANDSCAPE:"".concat(Cn),WEB_LANDSCAPE:"".concat(Tn)},An=[{alias:"handset",priority:2e3,mediaQuery:In.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:In.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:In.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:In.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:In.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:In.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:In.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:In.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:In.WEB_PORTRAIT,overlapping:!0}];function Rn(t){if(null==t)throw TypeError("Cannot convert undefined or null to object");for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r0?t.charAt(0):"",n=t.length>1?t.slice(1):"";return e.toUpperCase()+n}function Nn(t){return t.forEach(function(t){t.suffix||(t.suffix=t.alias.replace(Pn,"|").split("|").map(Ln).join(""),t.overlapping=!!t.overlapping)}),t}var Dn=new i.r("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:function(){var t=Object(i.X)(mn),e=Object(i.X)(pn),n=[].concat.apply([],(t||[]).map(function(t){return Array.isArray(t)?t:[t]}));return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n={};return t.forEach(function(t){n[t.alias]=t}),e.forEach(function(t){n[t.alias]?Rn(n[t.alias],t):n[t.alias]=t}),Nn(Object.keys(n).map(function(t){return n[t]}))}((e.disableDefaultBps?[]:xn).concat(e.addOrientationBps?An:[]),n)}});function Mn(t,e){return(e&&e.priority||0)-(t&&t.priority||0)}function Fn(t,e){return(t.priority||0)-(e.priority||0)}var Vn=function(){var t=function(){function t(e){Object(a.a)(this,t),this.findByMap=new Map,this.items=Object(an.a)(e).sort(Fn)}return Object(s.a)(t,[{key:"findByAlias",value:function(t){return t?this.findWithPredicate(t,function(e){return e.alias==t}):null}},{key:"findByQuery",value:function(t){return this.findWithPredicate(t,function(e){return e.mediaQuery==t})}},{key:"overlappings",get:function(){return this.items.filter(function(t){return 1==t.overlapping})}},{key:"aliases",get:function(){return this.items.map(function(t){return t.alias})}},{key:"suffixes",get:function(){return this.items.map(function(t){return t.suffix?t.suffix:""})}},{key:"findWithPredicate",value:function(t,e){var n=this.findByMap.get(t);return n||(n=this.items.find(e)||null,this.findByMap.set(t,n)),n||null}}]),t}();return t.\u0275fac=function(e){return new(e||t)(i.cc(Dn))},t.\u0275prov=Object(i.Ob)({factory:function(){return new t(Object(i.cc)(Dn))},token:t,providedIn:"root"}),t}(),Un=function(){var t=function(){function t(e,n,r){Object(a.a)(this,t),this._zone=e,this._platformId=n,this._document=r,this.source=new l.a(new hn(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}return Object(s.a)(t,[{key:"activations",get:function(){var t=[];return this.registry.forEach(function(e,n){e.matches&&t.push(n)}),t}},{key:"isActive",value:function(t){var e=this.registry.get(t);return e?e.matches:this.registerQuery(t).some(function(t){return t.matches})}},{key:"observe",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t&&t.length){var r=this._observable$.pipe(Object(Y.a)(function(e){return!n||t.indexOf(e.mediaQuery)>-1})),i=new Z.a(function(n){var r=e.registerQuery(t);if(r.length){var i=r.pop();r.forEach(function(t){n.next(t)}),e.source.next(i)}n.complete()});return Object(K.a)(i,r)}return this._observable$}},{key:"registerQuery",value:function(t){var e=this,n=Array.isArray(t)?t:[t],r=[];return function(t,e){var n=t.filter(function(t){return!Bn[t]});if(n.length>0){var r=n.join(", ");try{var i=e.createElement("style");if(i.setAttribute("type","text/css"),!i.styleSheet){var o="\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ".concat(r," {.fx-query-test{ }}\n");i.appendChild(e.createTextNode(o))}e.head.appendChild(i),n.forEach(function(t){return Bn[t]=i})}catch(a){console.error(a)}}}(n,this._document),n.forEach(function(t){var n=function(n){e._zone.run(function(){return e.source.next(new hn(n.matches,t))})},i=e.registry.get(t);i||((i=e.buildMQL(t)).addListener(n),e.pendingRemoveListenerFns.push(function(){return i.removeListener(n)}),e.registry.set(t,i)),i.matches&&r.push(new hn(!0,t))}),r}},{key:"ngOnDestroy",value:function(){for(var t;t=this.pendingRemoveListenerFns.pop();)t()}},{key:"buildMQL",value:function(t){return function(t,e){return e&&window.matchMedia("all").addListener?window.matchMedia(t):{matches:"all"===t||""===t,media:t,addListener:function(){},removeListener:function(){},onchange:null,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){return!1}}}(t,Object(c.u)(this._platformId))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(i.cc(i.B),i.cc(i.D),i.cc(c.e))},t.\u0275prov=Object(i.Ob)({factory:function(){return new t(Object(i.cc)(i.B),Object(i.cc)(i.D),Object(i.cc)(c.e))},token:t,providedIn:"root"}),t}(),Bn={},qn="print",Xn={alias:qn,mediaQuery:qn,priority:1e3},zn=function(){var t=function(){function t(e,n,r){Object(a.a)(this,t),this.breakpoints=e,this.layoutConfig=n,this._document=r,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.isPrinting=!1,this.queue=new Hn,this.deactivations=[]}return Object(s.a)(t,[{key:"withPrintQuery",value:function(t){return[].concat(Object(an.a)(t),[qn])}},{key:"isPrintEvent",value:function(t){return t.mediaQuery.startsWith(qn)}},{key:"printAlias",get:function(){return this.layoutConfig.printWithBreakpoints||[]}},{key:"printBreakPoints",get:function(){var t=this;return this.printAlias.map(function(e){return t.breakpoints.findByAlias(e)}).filter(function(t){return null!==t})}},{key:"getEventBreakpoints",value:function(t){var e=this.breakpoints.findByQuery(t.mediaQuery);return(e?[].concat(Object(an.a)(this.printBreakPoints),[e]):this.printBreakPoints).sort(Mn)}},{key:"updateEvent",value:function(t){var e=this.breakpoints.findByQuery(t.mediaQuery);return this.isPrintEvent(t)&&(e=this.getEventBreakpoints(t)[0],t.mediaQuery=e?e.mediaQuery:""),vn(t,e)}},{key:"registerBeforeAfterPrintHooks",value:function(t){var e=this;if(this._document.defaultView&&!this.registeredBeforeAfterPrintHooks){this.registeredBeforeAfterPrintHooks=!0;var n=function(){e.isPrinting||(e.isPrintingBeforeAfterEvent=!0,e.startPrinting(t,e.getEventBreakpoints(new hn(!0,qn))),t.updateStyles())},r=function(){e.isPrintingBeforeAfterEvent=!1,e.isPrinting&&(e.stopPrinting(t),t.updateStyles())};this._document.defaultView.addEventListener("beforeprint",n),this._document.defaultView.addEventListener("afterprint",r),this.beforePrintEventListeners.push(n),this.afterPrintEventListeners.push(r)}}},{key:"interceptEvents",value:function(t){var e=this;return this.registerBeforeAfterPrintHooks(t),function(n){e.isPrintEvent(n)?n.matches&&!e.isPrinting?(e.startPrinting(t,e.getEventBreakpoints(n)),t.updateStyles()):n.matches||!e.isPrinting||e.isPrintingBeforeAfterEvent||(e.stopPrinting(t),t.updateStyles()):e.collectActivations(n)}}},{key:"blockPropagation",value:function(){var t=this;return function(e){return!(t.isPrinting||t.isPrintEvent(e))}}},{key:"startPrinting",value:function(t,e){this.isPrinting=!0,t.activatedBreakpoints=this.queue.addPrintBreakpoints(e)}},{key:"stopPrinting",value:function(t){t.activatedBreakpoints=this.deactivations,this.deactivations=[],this.queue.clear(),this.isPrinting=!1}},{key:"collectActivations",value:function(t){if(!this.isPrinting||this.isPrintingBeforeAfterEvent)if(t.matches)this.isPrintingBeforeAfterEvent||(this.deactivations=[]);else{var e=this.breakpoints.findByQuery(t.mediaQuery);e&&(this.deactivations.push(e),this.deactivations.sort(Mn))}}},{key:"ngOnDestroy",value:function(){var t=this;this._document.defaultView&&(this.beforePrintEventListeners.forEach(function(e){return t._document.defaultView.removeEventListener("beforeprint",e)}),this.afterPrintEventListeners.forEach(function(e){return t._document.defaultView.removeEventListener("afterprint",e)}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(i.cc(Vn),i.cc(pn),i.cc(c.e))},t.\u0275prov=Object(i.Ob)({factory:function(){return new t(Object(i.cc)(Vn),Object(i.cc)(pn),Object(i.cc)(c.e))},token:t,providedIn:"root"}),t}(),Hn=function(){function t(){Object(a.a)(this,t),this.printBreakpoints=[]}return Object(s.a)(t,[{key:"addPrintBreakpoints",value:function(t){var e=this;return t.push(Xn),t.sort(Mn),t.forEach(function(t){return e.addBreakpoint(t)}),this.printBreakpoints}},{key:"addBreakpoint",value:function(t){t&&void 0===this.printBreakpoints.find(function(e){return e.mediaQuery===t.mediaQuery})&&(this.printBreakpoints=function(t){return!!t&&t.mediaQuery.startsWith(qn)}(t)?[t].concat(Object(an.a)(this.printBreakpoints)):[].concat(Object(an.a)(this.printBreakpoints),[t]))}},{key:"clear",value:function(){this.printBreakpoints=[]}}]),t}();function Yn(t){for(var e in t){var n=t[e]||"";switch(e){case"display":t.display="flex"===n?["-webkit-flex","flex"]:"inline-flex"===n?["-webkit-inline-flex","inline-flex"]:n;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":t["-webkit-"+e]=n;break;case"flex-direction":t["-webkit-flex-direction"]=n=n||"row",t["flex-direction"]=n;break;case"order":t.order=t["-webkit-"+e]=isNaN(+n)?"0":n}}return t}var Gn=function(){var t=function(){function t(e,n,r,i){Object(a.a)(this,t),this._serverStylesheet=e,this._serverModuleLoaded=n,this._platformId=r,this.layoutConfig=i}return Object(s.a)(t,[{key:"applyStyleToElement",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r={};"string"==typeof e&&(r[e]=n,e=r),r=this.layoutConfig.disableVendorPrefixes?e:Yn(e),this._applyMultiValueStyleToElement(r,t)}},{key:"applyStyleToElements",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=this.layoutConfig.disableVendorPrefixes?t:Yn(t);n.forEach(function(t){e._applyMultiValueStyleToElement(r,t)})}},{key:"getFlowDirection",value:function(t){var e="flex-direction",n=this.lookupStyle(t,e);return[n||"row",this.lookupInlineStyle(t,e)||Object(c.v)(this._platformId)&&this._serverModuleLoaded?n:""]}},{key:"hasWrap",value:function(t){return"wrap"===this.lookupStyle(t,"flex-wrap")}},{key:"lookupAttributeValue",value:function(t,e){return t.getAttribute(e)||""}},{key:"lookupInlineStyle",value:function(t,e){return Object(c.u)(this._platformId)?t.style.getPropertyValue(e):this._getServerStyle(t,e)}},{key:"lookupStyle",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r="";if(t){var i=r=this.lookupInlineStyle(t,e);i||(Object(c.u)(this._platformId)?n||(r=getComputedStyle(t).getPropertyValue(e)):this._serverModuleLoaded&&(r=this._serverStylesheet.getStyleForElement(t,e)))}return r?r.trim():""}},{key:"_applyMultiValueStyleToElement",value:function(t,e){var n=this;Object.keys(t).sort().forEach(function(r){var i=t[r],o=Array.isArray(i)?i:[i];o.sort();var a=!0,s=!1,u=void 0;try{for(var l,h=o[Symbol.iterator]();!(a=(l=h.next()).done);a=!0){var f=l.value;f=f?f+"":"",Object(c.u)(n._platformId)||!n._serverModuleLoaded?Object(c.u)(n._platformId)?e.style.setProperty(r,f):n._setServerStyle(e,r,f):n._serverStylesheet.addStyleToElement(e,r,f)}}catch(d){s=!0,u=d}finally{try{a||null==h.return||h.return()}finally{if(s)throw u}}})}},{key:"_setServerStyle",value:function(t,e,n){e=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();var r=this._readStyleAttribute(t);r[e]=n||"",this._writeStyleAttribute(t,r)}},{key:"_getServerStyle",value:function(t,e){return this._readStyleAttribute(t)[e]||""}},{key:"_readStyleAttribute",value:function(t){var e={},n=t.getAttribute("style");if(n)for(var r=n.split(/;+/g),i=0;i0){var a=o.indexOf(":");if(-1===a)throw new Error("Invalid CSS style: ".concat(o));e[o.substr(0,a).trim()]=o.substr(a+1).trim()}}return e}},{key:"_writeStyleAttribute",value:function(t,e){var n="";for(var r in e)e[r]&&(n+=r+":"+e[r]+";");t.setAttribute("style",n)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(i.cc(fn),i.cc(bn),i.cc(i.D),i.cc(pn))},t.\u0275prov=Object(i.Ob)({factory:function(){return new t(Object(i.cc)(fn),Object(i.cc)(bn),Object(i.cc)(i.D),Object(i.cc)(pn))},token:t,providedIn:"root"}),t}(),Kn=function(){function t(){Object(a.a)(this,t),this.shouldCache=!0}return Object(s.a)(t,[{key:"sideEffect",value:function(t,e,n){}}]),t}();function Wn(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"1",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"1",r=[e,n,t],i=t.indexOf("calc");if(i>0){r[2]=Qn(t.substring(i).trim());var o=t.substr(0,i).trim().split(" ");2==o.length&&(r[0]=o[0],r[1]=o[1])}else if(0==i)r[2]=Qn(t.trim());else{var a=t.split(" ");r=3===a.length?a:[e,n,t]}return r}function Qn(t){return t.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}var Zn=function(){var t=function(){function t(e,n,r){Object(a.a)(this,t),this.matchMedia=e,this.breakpoints=n,this.hook=r,this.activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new h.a,this.observeActivations()}return Object(s.a)(t,[{key:"activatedAlias",get:function(){return this.activatedBreakpoints[0]?this.activatedBreakpoints[0].alias:""}},{key:"onMediaChange",value:function(t){var e=this.findByQuery(t.mediaQuery);e&&((t=vn(t,e)).matches&&-1===this.activatedBreakpoints.indexOf(e)?(this.activatedBreakpoints.push(e),this.activatedBreakpoints.sort(Mn),this.updateStyles()):t.matches||-1===this.activatedBreakpoints.indexOf(e)||(this.activatedBreakpoints.splice(this.activatedBreakpoints.indexOf(e),1),this.activatedBreakpoints.sort(Mn),this.updateStyles()))}},{key:"init",value:function(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];Jn(this.updateMap,t,e,n),Jn(this.clearMap,t,e,r),this.buildElementKeyMap(t,e),this.watchExtraTriggers(t,e,i)}},{key:"getValue",value:function(t,e,n){var r=this.elementMap.get(t);if(r){var i=void 0!==n?r.get(n):this.getActivatedValues(r,e);if(i)return i.get(e)}}},{key:"hasValue",value:function(t,e){var n=this.elementMap.get(t);if(n){var r=this.getActivatedValues(n,e);if(r)return void 0!==r.get(e)||!1}return!1}},{key:"setValue",value:function(t,e,n,r){var i=this.elementMap.get(t);if(i){var o=(i.get(r)||new Map).set(e,n);i.set(r,o),this.elementMap.set(t,i)}else i=(new Map).set(r,(new Map).set(e,n)),this.elementMap.set(t,i);var a=this.getValue(t,e);void 0!==a&&this.updateElement(t,e,a)}},{key:"trackValue",value:function(t,e){return this.subject.asObservable().pipe(Object(Y.a)(function(n){return n.element===t&&n.key===e}))}},{key:"updateStyles",value:function(){var t=this;this.elementMap.forEach(function(e,n){var r=new Set(t.elementKeyMap.get(n)),i=t.getActivatedValues(e);i&&i.forEach(function(e,i){t.updateElement(n,i,e),r.delete(i)}),r.forEach(function(r){if(i=t.getActivatedValues(e,r)){var o=i.get(r);t.updateElement(n,r,o)}else t.clearElement(n,r)})})}},{key:"clearElement",value:function(t,e){var n=this.clearMap.get(t);if(n){var r=n.get(e);r&&(r(),this.subject.next({element:t,key:e,value:""}))}}},{key:"updateElement",value:function(t,e,n){var r=this.updateMap.get(t);if(r){var i=r.get(e);i&&(i(n),this.subject.next({element:t,key:e,value:n}))}}},{key:"releaseElement",value:function(t){var e=this.watcherMap.get(t);e&&(e.forEach(function(t){return t.unsubscribe()}),this.watcherMap.delete(t));var n=this.elementMap.get(t);n&&(n.forEach(function(t,e){return n.delete(e)}),this.elementMap.delete(t))}},{key:"triggerUpdate",value:function(t,e){var n=this,r=this.elementMap.get(t);if(r){var i=this.getActivatedValues(r,e);i&&(e?this.updateElement(t,e,i.get(e)):i.forEach(function(e,r){return n.updateElement(t,r,e)}))}}},{key:"buildElementKeyMap",value:function(t,e){var n=this.elementKeyMap.get(t);n||(n=new Set,this.elementKeyMap.set(t,n)),n.add(e)}},{key:"watchExtraTriggers",value:function(t,e,n){var r=this;if(n&&n.length){var i=this.watcherMap.get(t);if(i||(i=new Map,this.watcherMap.set(t,i)),!i.get(e)){var o=K.a.apply(void 0,Object(an.a)(n)).subscribe(function(){var n=r.getValue(t,e);r.updateElement(t,e,n)});i.set(e,o)}}}},{key:"findByQuery",value:function(t){return this.breakpoints.findByQuery(t)}},{key:"getActivatedValues",value:function(t,e){for(var n=0;n0&&void 0!==arguments[0])||arguments[0];if(""!==t){var e=Object(c.v)(this.platformId);this.addStyles(t?"true":"false",{display:this.display,isServer:e}),e&&this.serverModuleLoaded&&this.nativeElement.style.setProperty("display",""),this.marshal.triggerUpdate(this.parentElement,"layout-gap")}}}]),n}(kn);return t.\u0275fac=function(e){return new(e||t)(i.Sb(i.l),i.Sb(ar),i.Sb(Gn),i.Sb(Zn),i.Sb(pn),i.Sb(i.D),i.Sb(bn))},t.\u0275dir=i.Nb({type:t,features:[i.Bb,i.Cb]}),t}(),ur=new WeakMap,lr=["fxShow","fxShow.print","fxShow.xs","fxShow.sm","fxShow.md","fxShow.lg","fxShow.xl","fxShow.lt-sm","fxShow.lt-md","fxShow.lt-lg","fxShow.lt-xl","fxShow.gt-xs","fxShow.gt-sm","fxShow.gt-md","fxShow.gt-lg","fxHide","fxHide.print","fxHide.xs","fxHide.sm","fxHide.md","fxHide.lg","fxHide.xl","fxHide.lt-sm","fxHide.lt-md","fxHide.lt-lg","fxHide.lt-xl","fxHide.gt-xs","fxHide.gt-sm","fxHide.gt-md","fxHide.gt-lg"],hr=function(){var t=function(t){Object(B.a)(n,t);var e=er(n);function n(){var t;return Object(a.a)(this,n),(t=e.apply(this,arguments)).inputs=lr,t}return n}(cr);return t.\u0275fac=function(e){return fr(e||t)},t.\u0275dir=i.Nb({type:t,selectors:[["","fxShow",""],["","fxShow.print",""],["","fxShow.xs",""],["","fxShow.sm",""],["","fxShow.md",""],["","fxShow.lg",""],["","fxShow.xl",""],["","fxShow.lt-sm",""],["","fxShow.lt-md",""],["","fxShow.lt-lg",""],["","fxShow.lt-xl",""],["","fxShow.gt-xs",""],["","fxShow.gt-sm",""],["","fxShow.gt-md",""],["","fxShow.gt-lg",""],["","fxHide",""],["","fxHide.print",""],["","fxHide.xs",""],["","fxHide.sm",""],["","fxHide.md",""],["","fxHide.lg",""],["","fxHide.xl",""],["","fxHide.lt-sm",""],["","fxHide.lt-md",""],["","fxHide.lt-lg",""],["","fxHide.lt-xl",""],["","fxHide.gt-xs",""],["","fxHide.gt-sm",""],["","fxHide.gt-md",""],["","fxHide.gt-lg",""]],inputs:{fxShow:"fxShow","fxShow.print":"fxShow.print","fxShow.xs":"fxShow.xs","fxShow.sm":"fxShow.sm","fxShow.md":"fxShow.md","fxShow.lg":"fxShow.lg","fxShow.xl":"fxShow.xl","fxShow.lt-sm":"fxShow.lt-sm","fxShow.lt-md":"fxShow.lt-md","fxShow.lt-lg":"fxShow.lt-lg","fxShow.lt-xl":"fxShow.lt-xl","fxShow.gt-xs":"fxShow.gt-xs","fxShow.gt-sm":"fxShow.gt-sm","fxShow.gt-md":"fxShow.gt-md","fxShow.gt-lg":"fxShow.gt-lg",fxHide:"fxHide","fxHide.print":"fxHide.print","fxHide.xs":"fxHide.xs","fxHide.sm":"fxHide.sm","fxHide.md":"fxHide.md","fxHide.lg":"fxHide.lg","fxHide.xl":"fxHide.xl","fxHide.lt-sm":"fxHide.lt-sm","fxHide.lt-md":"fxHide.lt-md","fxHide.lt-lg":"fxHide.lt-lg","fxHide.lt-xl":"fxHide.lt-xl","fxHide.gt-xs":"fxHide.gt-xs","fxHide.gt-sm":"fxHide.gt-sm","fxHide.gt-md":"fxHide.gt-md","fxHide.gt-lg":"fxHide.gt-lg"},features:[i.Bb]}),t}(),fr=i.ac(hr),dr=function t(e,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];Object(a.a)(this,t),this.key=e,this.value=n,this.key=r?e.replace(/['"]/g,"").trim():e.trim(),this.value=r?n.replace(/['"]/g,"").trim():n.trim(),this.value=this.value.replace(/;/,"")};function pr(t){var e=typeof t;return"object"===e?t.constructor===Array?"array":t.constructor===Set?"set":"object":e}function br(t){var e=t.split(":"),n=Object($n.a)(e),r=n[0],i=n.slice(1);return new dr(r,i.join(":"))}function mr(t,e){return e.key&&(t[e.key]=e.value),t}var vr=function(){var t=function(t){Object(B.a)(n,t);var e=er(n);function n(t,r,i,o,s,u,l,h,f){var d;Object(a.a)(this,n),(d=e.call(this,t,null,r,i)).sanitizer=o,d.ngStyleInstance=l,d.DIRECTIVE_KEY="ngStyle",d.ngStyleInstance||(d.ngStyleInstance=new c.m(t,s,u)),d.init();var p=d.nativeElement.getAttribute("style")||"";return d.fallbackStyles=d.buildStyleMap(p),d.isServer=h&&Object(c.v)(f),d}return Object(s.a)(n,[{key:"updateWithValue",value:function(t){var e=this.buildStyleMap(t);this.ngStyleInstance.ngStyle=Object.assign(Object.assign({},this.fallbackStyles),e),this.isServer&&this.applyStyleToElement(e),this.ngStyleInstance.ngDoCheck()}},{key:"clearStyles",value:function(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}},{key:"buildStyleMap",value:function(t){var e,n,r,o=this,a=function(t){return o.sanitizer.sanitize(i.K.STYLE,t)||""};if(t)switch(pr(t)){case"string":return _r(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:";";return String(t).trim().split(e).map(function(t){return t.trim()}).filter(function(t){return""!==t})}(t),a);case"array":return _r(t,a);case"set":default:return n=a,r=[],"set"===pr(e=t)?e.forEach(function(t){return r.push(t)}):Object.keys(e).forEach(function(t){r.push("".concat(t,":").concat(e[t]))}),function(t,e){return t.map(br).filter(function(t){return!!t}).map(function(t){return e&&(t.value=e(t.value)),t}).reduce(mr,{})}(r,n)}return{}}},{key:"ngDoCheck",value:function(){this.ngStyleInstance.ngDoCheck()}}]),n}(kn);return t.\u0275fac=function(e){return new(e||t)(i.Sb(i.l),i.Sb(Gn),i.Sb(Zn),i.Sb(r.b),i.Sb(i.v),i.Sb(i.G),i.Sb(c.m,10),i.Sb(bn),i.Sb(i.D))},t.\u0275dir=i.Nb({type:t,features:[i.Bb]}),t}(),gr=["ngStyle","ngStyle.xs","ngStyle.sm","ngStyle.md","ngStyle.lg","ngStyle.xl","ngStyle.lt-sm","ngStyle.lt-md","ngStyle.lt-lg","ngStyle.lt-xl","ngStyle.gt-xs","ngStyle.gt-sm","ngStyle.gt-md","ngStyle.gt-lg"],yr=function(){var t=function(t){Object(B.a)(n,t);var e=er(n);function n(){var t;return Object(a.a)(this,n),(t=e.apply(this,arguments)).inputs=gr,t}return n}(vr);return t.\u0275fac=function(e){return wr(e||t)},t.\u0275dir=i.Nb({type:t,selectors:[["","ngStyle",""],["","ngStyle.xs",""],["","ngStyle.sm",""],["","ngStyle.md",""],["","ngStyle.lg",""],["","ngStyle.xl",""],["","ngStyle.lt-sm",""],["","ngStyle.lt-md",""],["","ngStyle.lt-lg",""],["","ngStyle.lt-xl",""],["","ngStyle.gt-xs",""],["","ngStyle.gt-sm",""],["","ngStyle.gt-md",""],["","ngStyle.gt-lg",""]],inputs:{ngStyle:"ngStyle","ngStyle.xs":"ngStyle.xs","ngStyle.sm":"ngStyle.sm","ngStyle.md":"ngStyle.md","ngStyle.lg":"ngStyle.lg","ngStyle.xl":"ngStyle.xl","ngStyle.lt-sm":"ngStyle.lt-sm","ngStyle.lt-md":"ngStyle.lt-md","ngStyle.lt-lg":"ngStyle.lt-lg","ngStyle.lt-xl":"ngStyle.lt-xl","ngStyle.gt-xs":"ngStyle.gt-xs","ngStyle.gt-sm":"ngStyle.gt-sm","ngStyle.gt-md":"ngStyle.gt-md","ngStyle.gt-lg":"ngStyle.gt-lg"},features:[i.Bb]}),t}(),wr=i.ac(yr);function _r(t,e){return t.map(br).filter(function(t){return!!t}).map(function(t){return e&&(t.value=e(t.value)),t}).reduce(mr,{})}var kr=function(){var t=function t(){Object(a.a)(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Qb({type:t}),t.\u0275inj=i.Pb({imports:[[ln]]}),t}(),xr=n("JX7q"),Or=n("ReuC"),Sr=n("cH1L");function Er(t){function e(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}return function(){var n,r=Object(X.a)(t);if(e()){var i=Object(X.a)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(q.a)(this,n)}}var Cr="inline",jr=["row","column","row-reverse","column-reverse"];function Tr(t){var e=(t=t?t.toLowerCase():"").split(" "),n=Object(o.a)(e,3),r=n[0],i=n[1],a=n[2];return jr.find(function(t){return t===r})||(r=jr[0]),i===Cr&&(i=a!==Cr?a:"",a=Cr),[r,Ar(i),!!a]}function Ir(t){var e=Tr(t);return Object(o.a)(e,1)[0].indexOf("row")>-1}function Ar(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}var Rr=function(){var t=function(t){Object(B.a)(n,t);var e=Er(n);function n(){return Object(a.a)(this,n),e.apply(this,arguments)}return Object(s.a)(n,[{key:"buildStyles",value:function(t){return e=Tr(t),function(t){return{display:arguments.length>2&&void 0!==arguments[2]&&arguments[2]?"inline-flex":"flex","box-sizing":"border-box","flex-direction":t,"flex-wrap":(arguments.length>1&&void 0!==arguments[1]?arguments[1]:null)||null}}((n=Object(o.a)(e,3))[0],n[1],n[2]);var e,n}}]),n}(Kn);return t.\u0275fac=function(e){return Pr(e||t)},t.\u0275prov=Object(i.Ob)({factory:function(){return new t},token:t,providedIn:"root"}),t}(),Pr=i.ac(Rr),Lr=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"],Nr=function(){var t=function(t){Object(B.a)(n,t);var e=Er(n);function n(t,r,i,o){var s;return Object(a.a)(this,n),(s=e.call(this,t,i,r,o)).DIRECTIVE_KEY="layout",s.styleCache=Fr,s.init(),s}return n}(kn);return t.\u0275fac=function(e){return new(e||t)(i.Sb(i.l),i.Sb(Gn),i.Sb(Rr),i.Sb(Zn))},t.\u0275dir=i.Nb({type:t,features:[i.Bb]}),t}(),Dr=function(){var t=function(t){Object(B.a)(n,t);var e=Er(n);function n(){var t;return Object(a.a)(this,n),(t=e.apply(this,arguments)).inputs=Lr,t}return n}(Nr);return t.\u0275fac=function(e){return Mr(e||t)},t.\u0275dir=i.Nb({type:t,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[i.Bb]}),t}(),Mr=i.ac(Dr),Fr=new Map,Vr={"margin-left":null,"margin-right":null,"margin-top":null,"margin-bottom":null},Ur=function(){var t=function(t){Object(B.a)(n,t);var e=Er(n);function n(t){var r;return Object(a.a)(this,n),(r=e.call(this))._styler=t,r}return Object(s.a)(n,[{key:"buildStyles",value:function(t,e){return t.endsWith(Wr)?(n=t=t.slice(0,t.indexOf(Wr)),r=e.directionality,i=n.split(" "),s=(a=Object(o.a)(i,2))[0],u="0px",l=(c=function(t){return"-".concat(t)})(a[1]||s),h="0px","rtl"===r?h=c(s):u=c(s),{margin:"0px ".concat(u," ").concat(l," ").concat(h)}):{};var n,r,i,a,s,c,u,l,h}},{key:"sideEffect",value:function(t,e,n){var r,i,a,s,c,u,l,h,f=n.items;if(t.endsWith(Wr)){var d=(r=t=t.slice(0,t.indexOf(Wr)),i=n.directionality,a=r.split(" "),c=(s=Object(o.a)(a,2))[0],u="0px",l=s[1]||c,h="0px","rtl"===i?h=c:u=c,{padding:"0px ".concat(u," ").concat(l," ").concat(h)});this._styler.applyStyleToElements(d,n.items)}else{var p=f.pop(),b=function(t,e){var n=Qr(e.directionality,e.layout),r=Object.assign({},Vr);return r[n]=t,r}(t,n);this._styler.applyStyleToElements(b,f),this._styler.applyStyleToElements(Vr,[p])}}}]),n}(Kn);return t.\u0275fac=function(e){return new(e||t)(i.cc(Gn))},t.\u0275prov=Object(i.Ob)({factory:function(){return new t(Object(i.cc)(Gn))},token:t,providedIn:"root"}),t}(),Br=["fxLayoutGap","fxLayoutGap.xs","fxLayoutGap.sm","fxLayoutGap.md","fxLayoutGap.lg","fxLayoutGap.xl","fxLayoutGap.lt-sm","fxLayoutGap.lt-md","fxLayoutGap.lt-lg","fxLayoutGap.lt-xl","fxLayoutGap.gt-xs","fxLayoutGap.gt-sm","fxLayoutGap.gt-md","fxLayoutGap.gt-lg"],qr=function(){var t=function(t){Object(B.a)(n,t);var e=Er(n);function n(t,r,i,o,s,c){var u;Object(a.a)(this,n),(u=e.call(this,t,s,o,c)).zone=r,u.directionality=i,u.styleUtils=o,u.layout="row",u.DIRECTIVE_KEY="layout-gap",u.observerSubject=new h.a;var l=[u.directionality.change,u.observerSubject.asObservable()];return u.init(l),u.marshal.trackValue(u.nativeElement,"layout").pipe(Object(V.a)(u.destroySubject)).subscribe(u.onLayoutChange.bind(Object(xr.a)(u))),u}return Object(s.a)(n,[{key:"childrenNodes",get:function(){for(var t=this.nativeElement.children,e=[],n=t.length;n--;)e[n]=t[n];return e}},{key:"ngAfterContentInit",value:function(){this.buildChildObservable(),this.triggerUpdate()}},{key:"ngOnDestroy",value:function(){Object(Or.a)(Object(X.a)(n.prototype),"ngOnDestroy",this).call(this),this.observer&&this.observer.disconnect()}},{key:"onLayoutChange",value:function(t){var e=this,n=t.value.split(" ");this.layout=n[0],jr.find(function(t){return t===e.layout})||(this.layout="row"),this.triggerUpdate()}},{key:"updateWithValue",value:function(t){var e=this,n=this.childrenNodes.filter(function(t){return 1===t.nodeType&&e.willDisplay(t)}).sort(function(t,n){var r=+e.styler.lookupStyle(t,"order"),i=+e.styler.lookupStyle(n,"order");return isNaN(r)||isNaN(i)||r===i?0:r>i?1:-1});if(n.length>0){var r=this.directionality.value,i=this.layout;"row"===i&&"rtl"===r?this.styleCache=Hr:"row"===i&&"rtl"!==r?this.styleCache=Gr:"column"===i&&"rtl"===r?this.styleCache=Yr:"column"===i&&"rtl"!==r&&(this.styleCache=Kr),this.addStyles(t,{directionality:r,items:n,layout:i})}}},{key:"clearStyles",value:function(){var t=Object.keys(this.mru).length>0,e=t?"padding":Qr(this.directionality.value,this.layout);t&&Object(Or.a)(Object(X.a)(n.prototype),"clearStyles",this).call(this),this.styleUtils.applyStyleToElements(Object(F.a)({},e,""),this.childrenNodes)}},{key:"willDisplay",value:function(t){var e=this.marshal.getValue(t,"show-hide");return!0===e||void 0===e&&"none"!==this.styleUtils.lookupStyle(t,"display")}},{key:"buildChildObservable",value:function(){var t=this;this.zone.runOutsideAngular(function(){"undefined"!=typeof MutationObserver&&(t.observer=new MutationObserver(function(e){e.some(function(t){return t.addedNodes&&t.addedNodes.length>0||t.removedNodes&&t.removedNodes.length>0})&&t.observerSubject.next()}),t.observer.observe(t.nativeElement,{childList:!0}))})}}]),n}(kn);return t.\u0275fac=function(e){return new(e||t)(i.Sb(i.l),i.Sb(i.B),i.Sb(Sr.b),i.Sb(Gn),i.Sb(Ur),i.Sb(Zn))},t.\u0275dir=i.Nb({type:t,features:[i.Bb]}),t}(),Xr=function(){var t=function(t){Object(B.a)(n,t);var e=Er(n);function n(){var t;return Object(a.a)(this,n),(t=e.apply(this,arguments)).inputs=Br,t}return n}(qr);return t.\u0275fac=function(e){return zr(e||t)},t.\u0275dir=i.Nb({type:t,selectors:[["","fxLayoutGap",""],["","fxLayoutGap.xs",""],["","fxLayoutGap.sm",""],["","fxLayoutGap.md",""],["","fxLayoutGap.lg",""],["","fxLayoutGap.xl",""],["","fxLayoutGap.lt-sm",""],["","fxLayoutGap.lt-md",""],["","fxLayoutGap.lt-lg",""],["","fxLayoutGap.lt-xl",""],["","fxLayoutGap.gt-xs",""],["","fxLayoutGap.gt-sm",""],["","fxLayoutGap.gt-md",""],["","fxLayoutGap.gt-lg",""]],inputs:{fxLayoutGap:"fxLayoutGap","fxLayoutGap.xs":"fxLayoutGap.xs","fxLayoutGap.sm":"fxLayoutGap.sm","fxLayoutGap.md":"fxLayoutGap.md","fxLayoutGap.lg":"fxLayoutGap.lg","fxLayoutGap.xl":"fxLayoutGap.xl","fxLayoutGap.lt-sm":"fxLayoutGap.lt-sm","fxLayoutGap.lt-md":"fxLayoutGap.lt-md","fxLayoutGap.lt-lg":"fxLayoutGap.lt-lg","fxLayoutGap.lt-xl":"fxLayoutGap.lt-xl","fxLayoutGap.gt-xs":"fxLayoutGap.gt-xs","fxLayoutGap.gt-sm":"fxLayoutGap.gt-sm","fxLayoutGap.gt-md":"fxLayoutGap.gt-md","fxLayoutGap.gt-lg":"fxLayoutGap.gt-lg"},features:[i.Bb]}),t}(),zr=i.ac(Xr),Hr=new Map,Yr=new Map,Gr=new Map,Kr=new Map,Wr=" grid";function Qr(t,e){switch(e){case"column":return"margin-bottom";case"column-reverse":return"margin-top";case"row":return"rtl"===t?"margin-left":"margin-right";case"row-reverse":return"rtl"===t?"margin-right":"margin-left";default:return"rtl"===t?"margin-left":"margin-right"}}function Zr(t){if(null==t)throw TypeError("Cannot convert undefined or null to object");for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r-1?"column":"row",c=Ir(s)?"max-width":"max-height",u=Ir(s)?"min-width":"min-height",l=String(a).indexOf("calc")>-1,h=l||"auto"===a,f=String(a).indexOf("%")>-1&&!l,d=String(a).indexOf("px")>-1||String(a).indexOf("rem")>-1||String(a).indexOf("em")>-1||String(a).indexOf("vw")>-1||String(a).indexOf("vh")>-1,p=l||d;o="0"==o?0:o;var b=!(i="0"==i?0:i)&&!o,m={},v={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(a||""){case"":a="row"===s?"0%":!1!==this.layoutConfig.useColumnBasisZero?"0.000000001px":"auto";break;case"initial":case"nogrow":i=0,a="auto";break;case"grow":a="100%";break;case"noshrink":o=0,a="auto";break;case"auto":break;case"none":i=0,o=0,a="auto";break;default:p||f||isNaN(a)||(a+="%"),"0%"===a&&(p=!0),"0px"===a&&(a="0%"),m=Zr(v,l?{"flex-grow":i,"flex-shrink":o,"flex-basis":p?a:"100%"}:{flex:"".concat(i," ").concat(o," ").concat(p?a:"100%")})}return m.flex||m["flex-grow"]||(m=Zr(v,l?{"flex-grow":i,"flex-shrink":o,"flex-basis":a}:{flex:"".concat(i," ").concat(o," ").concat(a)})),"0%"!==a&&"0px"!==a&&"0.000000001px"!==a&&"auto"!==a&&(m[u]=b||p&&i?a:null,m[c]=b||!h&&o?a:null),m[u]||m[c]?e.hasWrap&&(m[l?"flex-basis":"flex"]=m[c]?l?m[c]:"".concat(i," ").concat(o," ").concat(m[c]):l?m[u]:"".concat(i," ").concat(o," ").concat(m[u])):m=Zr(v,l?{"flex-grow":i,"flex-shrink":o,"flex-basis":a}:{flex:"".concat(i," ").concat(o," ").concat(a)}),Zr(m,{"box-sizing":"border-box"})}}]),n}(Kn);return t.\u0275fac=function(e){return new(e||t)(i.cc(pn))},t.\u0275prov=Object(i.Ob)({factory:function(){return new t(Object(i.cc)(pn))},token:t,providedIn:"root"}),t}(),$r=["fxFlex","fxFlex.xs","fxFlex.sm","fxFlex.md","fxFlex.lg","fxFlex.xl","fxFlex.lt-sm","fxFlex.lt-md","fxFlex.lt-lg","fxFlex.lt-xl","fxFlex.gt-xs","fxFlex.gt-sm","fxFlex.gt-md","fxFlex.gt-lg"],ti=function(){var t=function(t){Object(B.a)(n,t);var e=Er(n);function n(t,r,i,o,s){var c;return Object(a.a)(this,n),(c=e.call(this,t,o,r,s)).layoutConfig=i,c.marshal=s,c.DIRECTIVE_KEY="flex",c.direction=void 0,c.wrap=void 0,c.flexGrow="1",c.flexShrink="1",c.init(),c}return Object(s.a)(n,[{key:"shrink",get:function(){return this.flexShrink},set:function(t){this.flexShrink=t||"1",this.triggerReflow()}},{key:"grow",get:function(){return this.flexGrow},set:function(t){this.flexGrow=t||"1",this.triggerReflow()}},{key:"ngOnInit",value:function(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe(Object(V.a)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe(Object(V.a)(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}},{key:"onLayoutChange",value:function(t){var e=t.value.split(" ");this.direction=e[0],this.wrap=void 0!==e[1]&&"wrap"===e[1],this.triggerUpdate()}},{key:"updateWithValue",value:function(t){void 0===this.direction&&(this.direction=this.getFlexFlowDirection(this.parentElement,!1!==this.layoutConfig.addFlexToParent)),void 0===this.wrap&&(this.wrap=this.hasWrap(this.parentElement));var e=this.direction,n=e.startsWith("row"),r=this.wrap;n&&r?this.styleCache=oi:n&&!r?this.styleCache=ri:!n&&r?this.styleCache=ai:n||r||(this.styleCache=ii);var i=Wn(String(t).replace(";",""),this.flexGrow,this.flexShrink);this.addStyles(i.join(" "),{direction:e,hasWrap:r})}},{key:"triggerReflow",value:function(){var t=this.activatedValue;if(void 0!==t){var e=Wn(t+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,e.join(" "))}}}]),n}(kn);return t.\u0275fac=function(e){return new(e||t)(i.Sb(i.l),i.Sb(Gn),i.Sb(pn),i.Sb(Jr),i.Sb(Zn))},t.\u0275dir=i.Nb({type:t,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[i.Bb]}),t}(),ei=function(){var t=function(t){Object(B.a)(n,t);var e=Er(n);function n(){var t;return Object(a.a)(this,n),(t=e.apply(this,arguments)).inputs=$r,t}return n}(ti);return t.\u0275fac=function(e){return ni(e||t)},t.\u0275dir=i.Nb({type:t,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},features:[i.Bb]}),t}(),ni=i.ac(ei),ri=new Map,ii=new Map,oi=new Map,ai=new Map,si=(new Map,new Map,new Map,new Map,new Map,function(){var t=function(t){Object(B.a)(n,t);var e=Er(n);function n(){return Object(a.a)(this,n),e.apply(this,arguments)}return Object(s.a)(n,[{key:"buildStyles",value:function(t){var e={};switch(t=t||"stretch"){case"start":e["align-self"]="flex-start";break;case"end":e["align-self"]="flex-end";break;default:e["align-self"]=t}return e}}]),n}(Kn);return t.\u0275fac=function(e){return ci(e||t)},t.\u0275prov=Object(i.Ob)({factory:function(){return new t},token:t,providedIn:"root"}),t}()),ci=i.ac(si),ui=["fxFlexAlign","fxFlexAlign.xs","fxFlexAlign.sm","fxFlexAlign.md","fxFlexAlign.lg","fxFlexAlign.xl","fxFlexAlign.lt-sm","fxFlexAlign.lt-md","fxFlexAlign.lt-lg","fxFlexAlign.lt-xl","fxFlexAlign.gt-xs","fxFlexAlign.gt-sm","fxFlexAlign.gt-md","fxFlexAlign.gt-lg"],li=function(){var t=function(t){Object(B.a)(n,t);var e=Er(n);function n(t,r,i,o){var s;return Object(a.a)(this,n),(s=e.call(this,t,i,r,o)).DIRECTIVE_KEY="flex-align",s.styleCache=hi,s.init(),s}return n}(kn);return t.\u0275fac=function(e){return new(e||t)(i.Sb(i.l),i.Sb(Gn),i.Sb(si),i.Sb(Zn))},t.\u0275dir=i.Nb({type:t,features:[i.Bb]}),t}(),hi=new Map,fi=function(){var t=function(t){Object(B.a)(n,t);var e=Er(n);function n(){var t;return Object(a.a)(this,n),(t=e.apply(this,arguments)).inputs=ui,t}return n}(li);return t.\u0275fac=function(e){return di(e||t)},t.\u0275dir=i.Nb({type:t,selectors:[["","fxFlexAlign",""],["","fxFlexAlign.xs",""],["","fxFlexAlign.sm",""],["","fxFlexAlign.md",""],["","fxFlexAlign.lg",""],["","fxFlexAlign.xl",""],["","fxFlexAlign.lt-sm",""],["","fxFlexAlign.lt-md",""],["","fxFlexAlign.lt-lg",""],["","fxFlexAlign.lt-xl",""],["","fxFlexAlign.gt-xs",""],["","fxFlexAlign.gt-sm",""],["","fxFlexAlign.gt-md",""],["","fxFlexAlign.gt-lg",""]],inputs:{fxFlexAlign:"fxFlexAlign","fxFlexAlign.xs":"fxFlexAlign.xs","fxFlexAlign.sm":"fxFlexAlign.sm","fxFlexAlign.md":"fxFlexAlign.md","fxFlexAlign.lg":"fxFlexAlign.lg","fxFlexAlign.xl":"fxFlexAlign.xl","fxFlexAlign.lt-sm":"fxFlexAlign.lt-sm","fxFlexAlign.lt-md":"fxFlexAlign.lt-md","fxFlexAlign.lt-lg":"fxFlexAlign.lt-lg","fxFlexAlign.lt-xl":"fxFlexAlign.lt-xl","fxFlexAlign.gt-xs":"fxFlexAlign.gt-xs","fxFlexAlign.gt-sm":"fxFlexAlign.gt-sm","fxFlexAlign.gt-md":"fxFlexAlign.gt-md","fxFlexAlign.gt-lg":"fxFlexAlign.gt-lg"},features:[i.Bb]}),t}(),di=i.ac(fi),pi=(new Map,function(){var t=function(t){Object(B.a)(n,t);var e=Er(n);function n(){return Object(a.a)(this,n),e.apply(this,arguments)}return Object(s.a)(n,[{key:"buildStyles",value:function(t,e){var n={},r=t.split(" "),i=Object(o.a)(r,2),a=i[1];switch(i[0]){case"center":n["justify-content"]="center";break;case"space-around":n["justify-content"]="space-around";break;case"space-between":n["justify-content"]="space-between";break;case"space-evenly":n["justify-content"]="space-evenly";break;case"end":case"flex-end":n["justify-content"]="flex-end";break;case"start":case"flex-start":default:n["justify-content"]="flex-start"}switch(a){case"start":case"flex-start":n["align-items"]=n["align-content"]="flex-start";break;case"center":n["align-items"]=n["align-content"]="center";break;case"end":case"flex-end":n["align-items"]=n["align-content"]="flex-end";break;case"space-between":n["align-content"]="space-between",n["align-items"]="stretch";break;case"space-around":n["align-content"]="space-around",n["align-items"]="stretch";break;case"baseline":n["align-content"]="stretch",n["align-items"]="baseline";break;case"stretch":default:n["align-items"]=n["align-content"]="stretch"}return Zr(n,{display:e.inline?"inline-flex":"flex","flex-direction":e.layout,"box-sizing":"border-box","max-width":"stretch"===a?Ir(e.layout)?null:"100%":null,"max-height":"stretch"===a&&Ir(e.layout)?"100%":null})}}]),n}(Kn);return t.\u0275fac=function(e){return bi(e||t)},t.\u0275prov=Object(i.Ob)({factory:function(){return new t},token:t,providedIn:"root"}),t}()),bi=i.ac(pi),mi=["fxLayoutAlign","fxLayoutAlign.xs","fxLayoutAlign.sm","fxLayoutAlign.md","fxLayoutAlign.lg","fxLayoutAlign.xl","fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg"],vi=function(){var t=function(t){Object(B.a)(n,t);var e=Er(n);function n(t,r,i,o){var s;return Object(a.a)(this,n),(s=e.call(this,t,i,r,o)).DIRECTIVE_KEY="layout-align",s.layout="row",s.inline=!1,s.init(),s.marshal.trackValue(s.nativeElement,"layout").pipe(Object(V.a)(s.destroySubject)).subscribe(s.onLayoutChange.bind(Object(xr.a)(s))),s}return Object(s.a)(n,[{key:"updateWithValue",value:function(t){var e=this.layout||"row",n=this.inline;"row"===e&&n?this.styleCache=Oi:"row"!==e||n?"row-reverse"===e&&n?this.styleCache=Ei:"row-reverse"!==e||n?"column"===e&&n?this.styleCache=Si:"column"!==e||n?"column-reverse"===e&&n?this.styleCache=Ci:"column-reverse"!==e||n||(this.styleCache=xi):this.styleCache=_i:this.styleCache=ki:this.styleCache=wi,this.addStyles(t,{layout:e,inline:n})}},{key:"onLayoutChange",value:function(t){var e=this,n=t.value.split(" ");this.layout=n[0],this.inline=t.value.includes("inline"),jr.find(function(t){return t===e.layout})||(this.layout="row"),this.triggerUpdate()}}]),n}(kn);return t.\u0275fac=function(e){return new(e||t)(i.Sb(i.l),i.Sb(Gn),i.Sb(pi),i.Sb(Zn))},t.\u0275dir=i.Nb({type:t,features:[i.Bb]}),t}(),gi=function(){var t=function(t){Object(B.a)(n,t);var e=Er(n);function n(){var t;return Object(a.a)(this,n),(t=e.apply(this,arguments)).inputs=mi,t}return n}(vi);return t.\u0275fac=function(e){return yi(e||t)},t.\u0275dir=i.Nb({type:t,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[i.Bb]}),t}(),yi=i.ac(gi),wi=new Map,_i=new Map,ki=new Map,xi=new Map,Oi=new Map,Si=new Map,Ei=new Map,Ci=new Map,ji=function(){var t=function t(){Object(a.a)(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Qb({type:t}),t.\u0275inj=i.Pb({imports:[[ln,Sr.a]]}),t}();new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map;var Ti,Ii=function(){var t=function t(){Object(a.a)(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Qb({type:t}),t.\u0275inj=i.Pb({imports:[[ln]]}),t}(),Ai=(new i.R("12.0.0-beta.34"),function(){var t=function(){function t(e,n){Object(a.a)(this,t),Object(c.v)(n)&&!e&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}return Object(s.a)(t,null,[{key:"withConfig",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return{ngModule:t,providers:e.serverLoaded?[{provide:pn,useValue:Object.assign(Object.assign({},dn),e)},{provide:mn,useValue:n,multi:!0},{provide:bn,useValue:!0}]:[{provide:pn,useValue:Object.assign(Object.assign({},dn),e)},{provide:mn,useValue:n,multi:!0}]}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(i.cc(bn),i.cc(i.D))},t.\u0275mod=i.Qb({type:t}),t.\u0275inj=i.Pb({imports:[[ji,kr,Ii],ji,kr,Ii]}),t}()),Ri=function(){var t=function(){function t(){Object(a.a)(this,t)}return Object(s.a)(t,[{key:"nativeWindow",get:function(){return"undefined"!=typeof window?window:void 0}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Ob({token:t,factory:t.\u0275fac}),t}(),Pi=function(){var t=function t(){Object(a.a)(this,t),this.enabled=!0,this.whitelistPage=[],this.blacklistPage=[]};return t.\u0275prov=i.Ob({token:t,factory:t.\u0275fac=function(e){return new(e||t)}}),t}(),Li=function(){var t=function(){function t(e,n){Object(a.a)(this,t),this.popupOpenSource=new h.a,this.popupCloseSource=new h.a,this.initializeSource=new h.a,this.statusChangeSource=new h.a,this.revokeChoiceSource=new h.a,this.noCookieLawSource=new h.a,this.popupOpen$=this.popupOpenSource.asObservable(),this.popupClose$=this.popupCloseSource.asObservable(),this.initialize$=this.initializeSource.asObservable(),this.statusChange$=this.statusChangeSource.asObservable(),this.revokeChoice$=this.revokeChoiceSource.asObservable(),this.noCookieLaw$=this.noCookieLawSource.asObservable(),this.window=e.nativeWindow,this.init(n)}return Object(s.a)(t,[{key:"checkPopupInstantiated",value:function(t){if(null==this.popupInstance)throw new Error("Cookie popup has not yet been instantiated. Cannot invoke ".concat(t,"()"))}},{key:"init",value:function(t){var e=this;this.window&&(this.cookieconsent=this.window.cookieconsent,this.config=t,this.config.onPopupOpen=function(){return e.popupOpenSource.next()},this.config.onPopupClose=function(){return e.popupCloseSource.next()},this.config.onInitialise=function(t){return e.initializeSource.next({status:t})},this.config.onStatusChange=function(t,n){e.statusChangeSource.next({status:t,chosenBefore:n})},this.config.onRevokeChoice=function(){return e.revokeChoiceSource.next()},this.config.onNoCookieLaw=function(t,n){e.noCookieLawSource.next({countryCode:t,country:n})},this.cookieconsent.initialise(this.config,function(t){return e.popupInstance=t}))}},{key:"getConfig",value:function(){return this.config}},{key:"getStatus",value:function(){return this.cookieconsent.status}},{key:"getTransition",value:function(){return this.cookieconsent.hasTransition}},{key:"clearStatus",value:function(){return this.checkPopupInstantiated("clearStatus"),this.popupInstance.clearStatus()}},{key:"open",value:function(){return this.checkPopupInstantiated("open"),this.popupInstance.open()}},{key:"close",value:function(t){return this.checkPopupInstantiated("close"),this.popupInstance.close(t)}},{key:"destroy",value:function(){this.checkPopupInstantiated("destroy"),this.popupInstance.destroy()}},{key:"fadeIn",value:function(){this.checkPopupInstantiated("fadeIn"),this.popupInstance.fadeIn()}},{key:"fadeOut",value:function(){this.checkPopupInstantiated("fadeOut"),this.popupInstance.fadeOut()}},{key:"isOpen",value:function(){return this.checkPopupInstantiated("isOpen"),this.popupInstance.isOpen()}},{key:"toggleRevokeButton",value:function(t){this.checkPopupInstantiated("toggleRevokeButton"),this.popupInstance.toggleRevokeButton(t)}},{key:"hasAnswered",value:function(){return this.checkPopupInstantiated("hasAnswered"),this.popupInstance.hasAnswered()}},{key:"hasConsented",value:function(){return this.checkPopupInstantiated("hasConsented"),this.popupInstance.hasConsented()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(i.cc(Ri),i.cc(Pi))},t.\u0275prov=i.Ob({token:t,factory:t.\u0275fac}),t}(),Ni=function(){var t=function(){function t(){Object(a.a)(this,t)}return Object(s.a)(t,null,[{key:"forRoot",value:function(e){return{ngModule:t,providers:[Ri,{provide:Pi,useValue:e},Li]}}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Qb({type:t}),t.\u0275inj=i.Pb({imports:[[c.c]]}),t}(),Di=n("tk/3"),Mi=function(){var t=function(){function t(){Object(a.a)(this,t)}return Object(s.a)(t,[{key:"init",value:function(t){try{return Promise.resolve(FB.init(t))}catch(e){return Promise.reject(e)}}},{key:"api",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"get",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new Promise(function(r,i){try{FB.api(t,e,n,function(t){t?t.error?i(t.error):r(t):i()})}catch(o){i(o)}})}},{key:"ui",value:function(t){return new Promise(function(e,n){try{FB.ui(t,function(t){t?t.error?n(t.error):e(t):n()})}catch(r){n(r)}})}},{key:"getLoginStatus",value:function(t){return new Promise(function(e,n){try{FB.getLoginStatus(function(t){t?e(t):n()},t)}catch(r){n(r)}})}},{key:"login",value:function(t){return new Promise(function(e,n){try{FB.login(function(t){t.authResponse?e(t):n()},t)}catch(r){n(r)}})}},{key:"logout",value:function(){return new Promise(function(t,e){try{FB.logout(function(e){t(e)})}catch(n){e(n)}})}},{key:"getAuthResponse",value:function(){try{return FB.getAuthResponse()}catch(t){console.error("ngx-facebook-sdk: ",t)}}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(i.Ob)({factory:function(){return new t},token:t,providedIn:"root"}),t}(),Fi=function(){var t=Ti=function(){function t(){Object(a.a)(this,t)}return Object(s.a)(t,null,[{key:"forRoot",value:function(){return{ngModule:Ti,providers:[Mi]}}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Qb({type:t}),t.\u0275inj=i.Pb({}),t}(),Vi=n("0MNC");function Ui(t,e){if(1&t&&(i.Yb(0,"mat-grid-tile",4),i.Yb(1,"mat-card",5),i.Yb(2,"mat-card-header"),i.Yb(3,"mat-card-title"),i.Nc(4),i.Yb(5,"button",6),i.Yb(6,"mat-icon"),i.Nc(7,"more_vert"),i.Xb(),i.Xb(),i.Yb(8,"mat-menu",7,8),i.Yb(10,"button",9),i.Nc(11,"Expand"),i.Xb(),i.Yb(12,"button",9),i.Nc(13,"Remove"),i.Xb(),i.Xb(),i.Xb(),i.Xb(),i.Yb(14,"mat-card-content",10),i.Yb(15,"div"),i.Nc(16,"Card Content Here"),i.Xb(),i.Xb(),i.Xb(),i.Xb()),2&t){var n=e.$implicit,r=i.Ac(9);i.qc("colspan",n.cols)("rowspan",n.rows),i.Eb(4),i.Pc(" ",n.title," "),i.Eb(1),i.qc("matMenuTriggerFor",r)}}var Bi=function(){function t(t){this.breakpointObserver=t,this.cards=this.breakpointObserver.observe(Vi.b.Handset).pipe(Object(z.a)(function(t){return t.matches?[{title:"Card 1",cols:1,rows:1},{title:"Card 2",cols:1,rows:1},{title:"Card 3",cols:1,rows:1},{title:"Card 4",cols:1,rows:1}]:[{title:"Card 1",cols:2,rows:1},{title:"Card 2",cols:1,rows:1},{title:"Card 3",cols:1,rows:2},{title:"Card 4",cols:1,rows:1}]}))}return t.\u0275fac=function(e){return new(e||t)(i.Sb(Vi.a))},t.\u0275cmp=i.Mb({type:t,selectors:[["app-dashboard"]],decls:6,vars:3,consts:[[1,"grid-container"],[1,"mat-h1"],["cols","2","rowHeight","350px"],[3,"colspan","rowspan",4,"ngFor","ngForOf"],[3,"colspan","rowspan"],[1,"dashboard-card"],["mat-icon-button","","aria-label","Toggle menu",1,"more-button",3,"matMenuTriggerFor"],["xPosition","before"],["menu","matMenu"],["mat-menu-item",""],[1,"dashboard-card-content"]],template:function(t,e){1&t&&(i.Yb(0,"div",0),i.Yb(1,"h1",1),i.Nc(2,"Dashboard"),i.Xb(),i.Yb(3,"mat-grid-list",2),i.Lc(4,Ui,17,4,"mat-grid-tile",3),i.lc(5,"async"),i.Xb(),i.Xb()),2&t&&(i.Eb(4),i.qc("ngForOf",i.mc(5,1,e.cards)))},directives:[I.a,c.k,I.c,S.a,S.f,S.j,O.b,P.d,A.a,P.a,P.b,S.d],pipes:[c.b],styles:[".grid-container[_ngcontent-%COMP%]{margin:20px}.dashboard-card[_ngcontent-%COMP%]{position:absolute;top:15px;left:15px;right:15px;bottom:15px}.more-button[_ngcontent-%COMP%]{position:absolute;top:5px;right:10px}.dashboard-card-content[_ngcontent-%COMP%]{text-align:center}"]}),t}(),qi=function(){function t(){}return t.prototype.ngOnInit=function(){},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Mb({type:t,selectors:[["app-error-unauthorized"]],decls:2,vars:0,template:function(t,e){1&t&&(i.Yb(0,"p"),i.Nc(1,"error-unauthorized works!"),i.Xb())},styles:[""]}),t}(),Xi=n("bv9b"),zi=function(){function t(){}return t.prototype.ngOnInit=function(){},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Mb({type:t,selectors:[["app-error404"]],decls:7,vars:0,consts:[["fxLayout","column wrap","fxLayoutGap","60px","fxLayoutAlign","center center"],["fxFlex",""],["mode","indeterminate"]],template:function(t,e){1&t&&(i.Yb(0,"section",0),i.Yb(1,"div",1),i.Nc(2," 404 We are searching for your page... "),i.Xb(),i.Yb(3,"div",1),i.Tb(4,"mat-progress-bar",2),i.Xb(),i.Yb(5,"div",1),i.Nc(6," ... But we can not find it. "),i.Xb(),i.Xb())},directives:[Dr,Xr,gi,ei,Xi.a],styles:["section[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:first-child, section[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(3){color:blue;font-size:50px}section[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:first-child{margin-top:20px}section[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(2){width:50%}"]}),t}(),Hi=n("o0o1"),Yi=n.n(Hi),Gi=(n("t6oF"),n("UbJi")),Ki=n("Jgta"),Wi=n("I/3d"),Qi=n("GU7r"),Zi=n("+rOU"),Ji=n("FKr1"),$i=n("quSY"),to=n("JX91"),eo=n("nLfN"),no=n("FtGj"),ro=n("vxfF");function io(t){function e(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}return function(){var n,r=Object(X.a)(t);if(e()){var i=Object(X.a)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(q.a)(this,n)}}function oo(t,e){1&t&&i.oc(0)}var ao=["*"];function so(t,e){}var co=function(t){return{animationDuration:t}},uo=function(t,e){return{value:t,params:e}},lo=["tabBodyWrapper"],ho=["tabHeader"];function fo(t,e){}function po(t,e){if(1&t&&i.Lc(0,fo,0,0,"ng-template",9),2&t){var n=i.kc().$implicit;i.qc("cdkPortalOutlet",n.templateLabel)}}function bo(t,e){if(1&t&&i.Nc(0),2&t){var n=i.kc().$implicit;i.Oc(n.textLabel)}}function mo(t,e){if(1&t){var n=i.Zb();i.Yb(0,"div",6),i.gc("click",function(){i.Ec(n);var t=e.$implicit,r=e.index,o=i.kc(),a=i.Ac(1);return o._handleClick(t,a,r)})("cdkFocusChange",function(t){i.Ec(n);var r=e.index;return i.kc()._tabFocusChanged(t,r)}),i.Yb(1,"div",7),i.Lc(2,po,1,1,"ng-template",8),i.Lc(3,bo,1,1,"ng-template",8),i.Xb(),i.Xb()}if(2&t){var r=e.$implicit,o=e.index,a=i.kc();i.Kb("mat-tab-label-active",a.selectedIndex==o),i.qc("id",a._getTabLabelId(o))("disabled",r.disabled)("matRippleDisabled",r.disabled||a.disableRipple),i.Fb("tabIndex",a._getTabIndex(r,o))("aria-posinset",o+1)("aria-setsize",a._tabs.length)("aria-controls",a._getTabContentId(o))("aria-selected",a.selectedIndex==o)("aria-label",r.ariaLabel||null)("aria-labelledby",!r.ariaLabel&&r.ariaLabelledby?r.ariaLabelledby:null),i.Eb(2),i.qc("ngIf",r.templateLabel),i.Eb(1),i.qc("ngIf",!r.templateLabel)}}function vo(t,e){if(1&t){var n=i.Zb();i.Yb(0,"mat-tab-body",10),i.gc("_onCentered",function(){return i.Ec(n),i.kc()._removeTabBodyWrapperHeight()})("_onCentering",function(t){return i.Ec(n),i.kc()._setTabBodyWrapperHeight(t)}),i.Xb()}if(2&t){var r=e.$implicit,o=e.index,a=i.kc();i.Kb("mat-tab-body-active",a.selectedIndex==o),i.qc("id",a._getTabContentId(o))("content",r.content)("position",r.position)("origin",r.origin)("animationDuration",a.animationDuration),i.Fb("aria-labelledby",a._getTabLabelId(o))}}var go=["tabListContainer"],yo=["tabList"],wo=["nextPaginator"],_o=["previousPaginator"],ko=new i.r("MatInkBarPositioner",{providedIn:"root",factory:function(){return function(t){return{left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"}}}}),xo=function(){var t=function(){function t(e,n,r,i){Object(a.a)(this,t),this._elementRef=e,this._ngZone=n,this._inkBarPositioner=r,this._animationMode=i}return Object(s.a)(t,[{key:"alignToElement",value:function(t){var e=this;this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return e._setStyles(t)})}):this._setStyles(t)}},{key:"show",value:function(){this._elementRef.nativeElement.style.visibility="visible"}},{key:"hide",value:function(){this._elementRef.nativeElement.style.visibility="hidden"}},{key:"_setStyles",value:function(t){var e=this._inkBarPositioner(t),n=this._elementRef.nativeElement;n.style.left=e.left,n.style.width=e.width}}]),t}();return t.\u0275fac=function(e){return new(e||t)(i.Sb(i.l),i.Sb(i.B),i.Sb(ko),i.Sb(k.a,8))},t.\u0275dir=i.Nb({type:t,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(t,e){2&t&&i.Kb("_mat-animation-noopable","NoopAnimations"===e._animationMode)}}),t}(),Oo=new i.r("MatTabContent"),So=new i.r("MatTabLabel"),Eo=function(){var t=function(t){Object(B.a)(n,t);var e=io(n);function n(){return Object(a.a)(this,n),e.apply(this,arguments)}return n}(Zi.b);return t.\u0275fac=function(e){return Co(e||t)},t.\u0275dir=i.Nb({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[i.Db([{provide:So,useExisting:t}]),i.Bb]}),t}(),Co=i.ac(Eo),jo=function t(){Object(a.a)(this,t)},To=Object(Ji.r)(jo),Io=new i.r("MAT_TAB_GROUP"),Ao=function(){var t=function(t){Object(B.a)(n,t);var e=io(n);function n(t,r){var i;return Object(a.a)(this,n),(i=e.call(this))._viewContainerRef=t,i._closestTabGroup=r,i.textLabel="",i._contentPortal=null,i._stateChanges=new h.a,i.position=null,i.origin=null,i.isActive=!1,i}return Object(s.a)(n,[{key:"templateLabel",get:function(){return this._templateLabel},set:function(t){this._setTemplateLabelInput(t)}},{key:"content",get:function(){return this._contentPortal}},{key:"ngOnChanges",value:function(t){(t.hasOwnProperty("textLabel")||t.hasOwnProperty("disabled"))&&this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"ngOnInit",value:function(){this._contentPortal=new Zi.g(this._explicitContent||this._implicitContent,this._viewContainerRef)}},{key:"_setTemplateLabelInput",value:function(t){t&&(this._templateLabel=t)}}]),n}(To);return t.\u0275fac=function(e){return new(e||t)(i.Sb(i.S),i.Sb(Io))},t.\u0275cmp=i.Mb({type:t,selectors:[["mat-tab"]],contentQueries:function(t,e,n){var r;1&t&&(i.Lb(n,So,1),i.Lb(n,Oo,3,i.N)),2&t&&(i.zc(r=i.hc())&&(e.templateLabel=r.first),i.zc(r=i.hc())&&(e._explicitContent=r.first))},viewQuery:function(t,e){var n;1&t&&i.Sc(i.N,3),2&t&&i.zc(n=i.hc())&&(e._implicitContent=n.first)},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[i.Bb,i.Cb],ngContentSelectors:ao,decls:1,vars:0,template:function(t,e){1&t&&(i.pc(),i.Lc(0,oo,1,0,"ng-template"))},encapsulation:2}),t}(),Ro={translateTab:Object(J.o)("translateTab",[Object(J.l)("center, void, left-origin-center, right-origin-center",Object(J.m)({transform:"none"})),Object(J.l)("left",Object(J.m)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),Object(J.l)("right",Object(J.m)({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),Object(J.n)("* => left, * => right, left => center, right => center",Object(J.e)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),Object(J.n)("void => left-origin-center",[Object(J.m)({transform:"translate3d(-100%, 0, 0)"}),Object(J.e)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),Object(J.n)("void => right-origin-center",[Object(J.m)({transform:"translate3d(100%, 0, 0)"}),Object(J.e)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},Po=function(){var t=function(t){Object(B.a)(n,t);var e=io(n);function n(t,r,i,o){var s;return Object(a.a)(this,n),(s=e.call(this,t,r,o))._host=i,s._centeringSub=$i.a.EMPTY,s._leavingSub=$i.a.EMPTY,s}return Object(s.a)(n,[{key:"ngOnInit",value:function(){var t=this;Object(Or.a)(Object(X.a)(n.prototype),"ngOnInit",this).call(this),this._centeringSub=this._host._beforeCentering.pipe(Object(to.a)(this._host._isCenterPosition(this._host._position))).subscribe(function(e){e&&!t.hasAttached()&&t.attach(t._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(function(){t.detach()})}},{key:"ngOnDestroy",value:function(){Object(Or.a)(Object(X.a)(n.prototype),"ngOnDestroy",this).call(this),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}]),n}(Zi.c);return t.\u0275fac=function(e){return new(e||t)(i.Sb(i.j),i.Sb(i.S),i.Sb(Object(i.W)(function(){return No})),i.Sb(c.e))},t.\u0275dir=i.Nb({type:t,selectors:[["","matTabBodyHost",""]],features:[i.Bb]}),t}(),Lo=function(){var t=function(){function t(e,n,r){var o=this;Object(a.a)(this,t),this._elementRef=e,this._dir=n,this._dirChangeSubscription=$i.a.EMPTY,this._translateTabComplete=new h.a,this._onCentering=new i.n,this._beforeCentering=new i.n,this._afterLeavingCenter=new i.n,this._onCentered=new i.n(!0),this.animationDuration="500ms",n&&(this._dirChangeSubscription=n.change.subscribe(function(t){o._computePositionAnimationState(t),r.markForCheck()})),this._translateTabComplete.pipe(Object(H.a)(function(t,e){return t.fromState===e.fromState&&t.toState===e.toState})).subscribe(function(t){o._isCenterPosition(t.toState)&&o._isCenterPosition(o._position)&&o._onCentered.emit(),o._isCenterPosition(t.fromState)&&!o._isCenterPosition(o._position)&&o._afterLeavingCenter.emit()})}return Object(s.a)(t,[{key:"position",set:function(t){this._positionIndex=t,this._computePositionAnimationState()}},{key:"ngOnInit",value:function(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}},{key:"ngOnDestroy",value:function(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}},{key:"_onTranslateTabStarted",value:function(t){var e=this._isCenterPosition(t.toState);this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_isCenterPosition",value:function(t){return"center"==t||"left-origin-center"==t||"right-origin-center"==t}},{key:"_computePositionAnimationState",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._getLayoutDirection();this._position=this._positionIndex<0?"ltr"==t?"left":"right":this._positionIndex>0?"ltr"==t?"right":"left":"center"}},{key:"_computePositionFromOrigin",value:function(t){var e=this._getLayoutDirection();return"ltr"==e&&t<=0||"rtl"==e&&t>0?"left-origin-center":"right-origin-center"}}]),t}();return t.\u0275fac=function(e){return new(e||t)(i.Sb(i.l),i.Sb(Sr.b,8),i.Sb(i.h))},t.\u0275dir=i.Nb({type:t,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),t}(),No=function(){var t=function(t){Object(B.a)(n,t);var e=io(n);function n(t,r,i){return Object(a.a)(this,n),e.call(this,t,r,i)}return n}(Lo);return t.\u0275fac=function(e){return new(e||t)(i.Sb(i.l),i.Sb(Sr.b,8),i.Sb(i.h))},t.\u0275cmp=i.Mb({type:t,selectors:[["mat-tab-body"]],viewQuery:function(t,e){var n;1&t&&i.Sc(Zi.c,1),2&t&&i.zc(n=i.hc())&&(e._portalHost=n.first)},hostAttrs:[1,"mat-tab-body"],features:[i.Bb],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(t,e){1&t&&(i.Yb(0,"div",0,1),i.gc("@translateTab.start",function(t){return e._onTranslateTabStarted(t)})("@translateTab.done",function(t){return e._translateTabComplete.next(t)}),i.Lc(2,so,0,0,"ng-template",2),i.Xb()),2&t&&i.qc("@translateTab",i.vc(3,uo,e._position,i.uc(1,co,e.animationDuration)))},directives:[Po],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[Ro.translateTab]}}),t}(),Do=new i.r("MAT_TABS_CONFIG"),Mo=0,Fo=function t(){Object(a.a)(this,t)},Vo=function t(e){Object(a.a)(this,t),this._elementRef=e},Uo=Object(Ji.p)(Object(Ji.q)(Vo),"primary"),Bo=function(){var t=function(t){Object(B.a)(n,t);var e=io(n);function n(t,r,o,s){var c;return Object(a.a)(this,n),(c=e.call(this,t))._changeDetectorRef=r,c._animationMode=s,c._tabs=new i.F,c._indexToSelect=0,c._tabBodyWrapperHeight=0,c._tabsSubscription=$i.a.EMPTY,c._tabLabelSubscription=$i.a.EMPTY,c._selectedIndex=null,c.headerPosition="above",c.selectedIndexChange=new i.n,c.focusChange=new i.n,c.animationDone=new i.n,c.selectedTabChange=new i.n(!0),c._groupId=Mo++,c.animationDuration=o&&o.animationDuration?o.animationDuration:"500ms",c.disablePagination=!(!o||null==o.disablePagination)&&o.disablePagination,c.dynamicHeight=!(!o||null==o.dynamicHeight)&&o.dynamicHeight,c}return Object(s.a)(n,[{key:"dynamicHeight",get:function(){return this._dynamicHeight},set:function(t){this._dynamicHeight=Object(tr.b)(t)}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(t){this._indexToSelect=Object(tr.e)(t,null)}},{key:"animationDuration",get:function(){return this._animationDuration},set:function(t){this._animationDuration=/^\d+$/.test(t)?t+"ms":t}},{key:"backgroundColor",get:function(){return this._backgroundColor},set:function(t){var e=this._elementRef.nativeElement;e.classList.remove("mat-background-".concat(this.backgroundColor)),t&&e.classList.add("mat-background-".concat(t)),this._backgroundColor=t}},{key:"ngAfterContentChecked",value:function(){var t=this,e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){var n=null==this._selectedIndex;if(!n){this.selectedTabChange.emit(this._createChangeEvent(e));var r=this._tabBodyWrapper.nativeElement;r.style.minHeight=r.clientHeight+"px"}Promise.resolve().then(function(){t._tabs.forEach(function(t,n){return t.isActive=n===e}),n||(t.selectedIndexChange.emit(e),t._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach(function(n,r){n.position=r-e,null==t._selectedIndex||0!=n.position||n.origin||(n.origin=e-t._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._changeDetectorRef.markForCheck())}},{key:"ngAfterContentInit",value:function(){var t=this;this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(function(){if(t._clampTabIndex(t._indexToSelect)===t._selectedIndex)for(var e=t._tabs.toArray(),n=0;n.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),t}(),Xo=function t(){Object(a.a)(this,t)},zo=Object(Ji.r)(Xo),Ho=function(){var t=function(t){Object(B.a)(n,t);var e=io(n);function n(t){var r;return Object(a.a)(this,n),(r=e.call(this)).elementRef=t,r}return Object(s.a)(n,[{key:"focus",value:function(){this.elementRef.nativeElement.focus()}},{key:"getOffsetLeft",value:function(){return this.elementRef.nativeElement.offsetLeft}},{key:"getOffsetWidth",value:function(){return this.elementRef.nativeElement.offsetWidth}}]),n}(zo);return t.\u0275fac=function(e){return new(e||t)(i.Sb(i.l))},t.\u0275dir=i.Nb({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(t,e){2&t&&(i.Fb("aria-disabled",!!e.disabled),i.Kb("mat-tab-disabled",e.disabled))},inputs:{disabled:"disabled"},features:[i.Bb]}),t}(),Yo=Object(eo.f)({passive:!0}),Go=function(){var t=function(){function t(e,n,r,o,s,c,u){var l=this;Object(a.a)(this,t),this._elementRef=e,this._changeDetectorRef=n,this._viewportRuler=r,this._dir=o,this._ngZone=s,this._platform=c,this._animationMode=u,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new h.a,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new h.a,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new i.n,this.indexFocused=new i.n,s.runOutsideAngular(function(){Object(W.a)(e.nativeElement,"mouseleave").pipe(Object(V.a)(l._destroyed)).subscribe(function(){l._stopInterval()})})}return Object(s.a)(t,[{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(t){t=Object(tr.e)(t),this._selectedIndex!=t&&(this._selectedIndexChanged=!0,this._selectedIndex=t,this._keyManager&&this._keyManager.updateActiveItem(t))}},{key:"ngAfterViewInit",value:function(){var t=this;Object(W.a)(this._previousPaginator.nativeElement,"touchstart",Yo).pipe(Object(V.a)(this._destroyed)).subscribe(function(){t._handlePaginatorPress("before")}),Object(W.a)(this._nextPaginator.nativeElement,"touchstart",Yo).pipe(Object(V.a)(this._destroyed)).subscribe(function(){t._handlePaginatorPress("after")})}},{key:"ngAfterContentInit",value:function(){var t=this,e=this._dir?this._dir.change:Object(u.a)(null),n=this._viewportRuler.change(150),r=function(){t.updatePagination(),t._alignInkBarToSelectedTab()};this._keyManager=new $.g(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(r):r(),Object(K.a)(e,n,this._items.changes).pipe(Object(V.a)(this._destroyed)).subscribe(function(){t._ngZone.run(function(){return Promise.resolve().then(r)}),t._keyManager.withHorizontalOrientation(t._getLayoutDirection())}),this._keyManager.change.pipe(Object(V.a)(this._destroyed)).subscribe(function(e){t.indexFocused.emit(e),t._setTabFocus(e)})}},{key:"ngAfterContentChecked",value:function(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}},{key:"_handleKeydown",value:function(t){if(!Object(no.s)(t))switch(t.keyCode){case no.f:case no.n:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(t));break;default:this._keyManager.onKeydown(t)}}},{key:"_onContentChanges",value:function(){var t=this,e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",this._ngZone.run(function(){t.updatePagination(),t._alignInkBarToSelectedTab(),t._changeDetectorRef.markForCheck()}))}},{key:"updatePagination",value:function(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}},{key:"focusIndex",get:function(){return this._keyManager?this._keyManager.activeItemIndex:0},set:function(t){this._isValidIndex(t)&&this.focusIndex!==t&&this._keyManager&&this._keyManager.setActiveItem(t)}},{key:"_isValidIndex",value:function(t){if(!this._items)return!0;var e=this._items?this._items.toArray()[t]:null;return!!e&&!e.disabled}},{key:"_setTabFocus",value:function(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._items&&this._items.length){this._items.toArray()[t].focus();var e=this._tabListContainer.nativeElement,n=this._getLayoutDirection();e.scrollLeft="ltr"==n?0:e.scrollWidth-e.offsetWidth}}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_updateTabScrollPosition",value:function(){if(!this.disablePagination){var t=this.scrollDistance,e="ltr"===this._getLayoutDirection()?-t:t;this._tabList.nativeElement.style.transform="translateX(".concat(Math.round(e),"px)"),(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}}},{key:"scrollDistance",get:function(){return this._scrollDistance},set:function(t){this._scrollTo(t)}},{key:"_scrollHeader",value:function(t){return this._scrollTo(this._scrollDistance+("before"==t?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}},{key:"_handlePaginatorClick",value:function(t){this._stopInterval(),this._scrollHeader(t)}},{key:"_scrollToLabel",value:function(t){if(!this.disablePagination){var e=this._items?this._items.toArray()[t]:null;if(e){var n,r,i=this._tabListContainer.nativeElement.offsetWidth,o=e.elementRef.nativeElement,a=o.offsetLeft,s=o.offsetWidth;"ltr"==this._getLayoutDirection()?r=(n=a)+s:n=(r=this._tabList.nativeElement.offsetWidth-a)-s;var c=this.scrollDistance,u=this.scrollDistance+i;nu&&(this.scrollDistance+=r-u+60)}}}},{key:"_checkPaginationEnabled",value:function(){if(this.disablePagination)this._showPaginationControls=!1;else{var t=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;t||(this.scrollDistance=0),t!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=t}}},{key:"_checkScrollingControls",value:function(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}},{key:"_getMaxScrollDistance",value:function(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}},{key:"_alignInkBarToSelectedTab",value:function(){var t=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,e=t?t.elementRef.nativeElement:null;e?this._inkBar.alignToElement(e):this._inkBar.hide()}},{key:"_stopInterval",value:function(){this._stopScrolling.next()}},{key:"_handlePaginatorPress",value:function(t,e){var n=this;e&&null!=e.button&&0!==e.button||(this._stopInterval(),Object(G.a)(650,100).pipe(Object(V.a)(Object(K.a)(this._stopScrolling,this._destroyed))).subscribe(function(){var e=n._scrollHeader(t),r=e.distance;(0===r||r>=e.maxScrollDistance)&&n._stopInterval()}))}},{key:"_scrollTo",value:function(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};var e=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(e,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:e,distance:this._scrollDistance}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(i.Sb(i.l),i.Sb(i.h),i.Sb(ro.e),i.Sb(Sr.b,8),i.Sb(i.B),i.Sb(eo.a),i.Sb(k.a,8))},t.\u0275dir=i.Nb({type:t,inputs:{disablePagination:"disablePagination"}}),t}(),Ko=function(){var t=function(t){Object(B.a)(n,t);var e=io(n);function n(t,r,i,o,s,c,u){var l;return Object(a.a)(this,n),(l=e.call(this,t,r,i,o,s,c,u))._disableRipple=!1,l}return Object(s.a)(n,[{key:"disableRipple",get:function(){return this._disableRipple},set:function(t){this._disableRipple=Object(tr.b)(t)}},{key:"_itemSelected",value:function(t){t.preventDefault()}}]),n}(Go);return t.\u0275fac=function(e){return new(e||t)(i.Sb(i.l),i.Sb(i.h),i.Sb(ro.e),i.Sb(Sr.b,8),i.Sb(i.B),i.Sb(eo.a),i.Sb(k.a,8))},t.\u0275dir=i.Nb({type:t,inputs:{disableRipple:"disableRipple"},features:[i.Bb]}),t}(),Wo=function(){var t=function(t){Object(B.a)(n,t);var e=io(n);function n(t,r,i,o,s,c,u){return Object(a.a)(this,n),e.call(this,t,r,i,o,s,c,u)}return n}(Ko);return t.\u0275fac=function(e){return new(e||t)(i.Sb(i.l),i.Sb(i.h),i.Sb(ro.e),i.Sb(Sr.b,8),i.Sb(i.B),i.Sb(eo.a),i.Sb(k.a,8))},t.\u0275cmp=i.Mb({type:t,selectors:[["mat-tab-header"]],contentQueries:function(t,e,n){var r;1&t&&i.Lb(n,Ho,0),2&t&&i.zc(r=i.hc())&&(e._items=r)},viewQuery:function(t,e){var n;1&t&&(i.Sc(xo,3),i.Sc(go,3),i.Sc(yo,3),i.Sc(wo,1),i.Sc(_o,1)),2&t&&(i.zc(n=i.hc())&&(e._inkBar=n.first),i.zc(n=i.hc())&&(e._tabListContainer=n.first),i.zc(n=i.hc())&&(e._tabList=n.first),i.zc(n=i.hc())&&(e._nextPaginator=n.first),i.zc(n=i.hc())&&(e._previousPaginator=n.first))},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(t,e){2&t&&i.Kb("mat-tab-header-pagination-controls-enabled",e._showPaginationControls)("mat-tab-header-rtl","rtl"==e._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[i.Bb],ngContentSelectors:ao,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(t,e){1&t&&(i.pc(),i.Yb(0,"div",0,1),i.gc("click",function(){return e._handlePaginatorClick("before")})("mousedown",function(t){return e._handlePaginatorPress("before",t)})("touchend",function(){return e._stopInterval()}),i.Tb(2,"div",2),i.Xb(),i.Yb(3,"div",3,4),i.gc("keydown",function(t){return e._handleKeydown(t)}),i.Yb(5,"div",5,6),i.gc("cdkObserveContent",function(){return e._onContentChanges()}),i.Yb(7,"div",7),i.oc(8),i.Xb(),i.Tb(9,"mat-ink-bar"),i.Xb(),i.Xb(),i.Yb(10,"div",8,9),i.gc("mousedown",function(t){return e._handlePaginatorPress("after",t)})("click",function(){return e._handlePaginatorClick("after")})("touchend",function(){return e._stopInterval()}),i.Tb(12,"div",2),i.Xb()),2&t&&(i.Kb("mat-tab-header-pagination-disabled",e._disableScrollBefore),i.qc("matRippleDisabled",e._disableScrollBefore||e.disableRipple),i.Eb(5),i.Kb("_mat-animation-noopable","NoopAnimations"===e._animationMode),i.Eb(5),i.Kb("mat-tab-header-pagination-disabled",e._disableScrollAfter),i.qc("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[Ji.k,Qi.a,xo],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),t}(),Qo=function(){var t=function t(){Object(a.a)(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Qb({type:t}),t.\u0275inj=i.Pb({imports:[[c.c,Ji.e,Zi.f,Ji.l,Qi.c,$.a],Ji.e]}),t}(),Zo=function(t){return t.primary="primary",t.accent="accent",t.warn="warn",t}({}),Jo=function(t){return t.at_least_eight_chars="minChar",t.at_least_one_lower_case_char="lowerCase",t.at_least_one_upper_case_char="upperCase",t.at_least_one_digit_char="digit",t.at_least_one_special_char=" specialChar",t.at_custom_chars="customChars",t}({}),$o=function(){var t=function(){function t(){Object(a.a)(this,t),this._type="text"}return Object(s.a)(t,[{key:"type",get:function(){return this.isVisible?"text":"password"}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Mb({type:t,selectors:[["mat-pass-toggle-visibility"]],inputs:{isVisible:"isVisible",tabindex:"tabindex"},decls:3,vars:2,consts:[["mat-icon-button","","matRipple","","matRippleCentered","true","matRipple","","type","button",1,"mat-icon-button","cdk-focused","cdk-mouse-focused",3,"click"]],template:function(t,e){1&t&&(i.Yb(0,"button",0),i.gc("click",function(){return e.isVisible=!e.isVisible}),i.Yb(1,"mat-icon"),i.Nc(2),i.Xb(),i.Xb()),2&t&&(i.Fb("tabindex",e.tabindex?e.tabindex:null),i.Eb(2),i.Oc(e.isVisible?"visibility":"visibility_off"))},directives:[Ji.k,A.a],styles:[""],encapsulation:2}),t}(),ta=function(){function t(){Object(a.a)(this,t)}return Object(s.a)(t,[{key:"isUndefinedOrEmpty",value:function(t){}},{key:"validate",value:function(t,e){var n=this;return function(r){if(n.isUndefinedOrEmpty(r),!e.test(r.value)){var i={};return i[t]={actualValue:r.value,requiredPattern:e},i}}}},{key:"confirm",value:function(t){var e=this;return function(n){if(e.isUndefinedOrEmpty(n),n.value!==t)return{notConfirmed:{password:t,passwordConfirmation:n.value}}}}}]),t}(),ea={lowerCase:RegExp(/^(?=.*?[a-z])/),upperCase:RegExp(/^(?=.*?[A-Z])/),digit:RegExp(/^(?=.*?[0-9])/),specialChar:RegExp(/^(?=.*?[" !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~"])/)},na=function(){var t=function(){function t(){Object(a.a)(this,t),this.enableLengthRule=!0,this.enableLowerCaseLetterRule=!0,this.enableUpperCaseLetterRule=!0,this.enableDigitRule=!0,this.enableSpecialCharRule=!0,this.min=8,this.max=30,this.warnThreshold=21,this.accentThreshold=81,this.onStrengthChanged=new i.n,this.criteriaMap=new Map,this.passwordFormControl=new f.d,this.passwordConfirmationFormControl=new f.d,this.validatorsArray=[],this.matPasswordStrengthValidator=new ta,this._strength=0,this.propagateChange=function(t){}}return Object(s.a)(t,[{key:"strength",get:function(){return this._strength?this._strength:0}},{key:"color",get:function(){return this._strength0?this.calculatePasswordStrength():this.reset():this.calculatePasswordStrength())}},{key:"parseCustomValidatorsRegex",value:function(){return this.customValidator instanceof RegExp?this.customValidator:"string"==typeof this.customValidator?RegExp(this.customValidator):void 0}},{key:"setRulesAndValidators",value:function(){var t=this;this.validatorsArray=[],this.criteriaMap=new Map,this.passwordConfirmationFormControl.setValidators(f.u.compose([f.u.required,this.matPasswordStrengthValidator.confirm(this.password)])),this.validatorsArray.push(f.u.required),this.enableLengthRule&&(this.criteriaMap.set(Jo.at_least_eight_chars,RegExp("^.{".concat(this.min,",").concat(this.max,"}$"))),this.validatorsArray.push(f.u.minLength(this.min)),this.validatorsArray.push(f.u.maxLength(this.max))),this.enableLowerCaseLetterRule&&(this.criteriaMap.set(Jo.at_least_one_lower_case_char,ea.lowerCase),this.validatorsArray.push(f.u.pattern(ea.lowerCase))),this.enableUpperCaseLetterRule&&(this.criteriaMap.set(Jo.at_least_one_upper_case_char,ea.upperCase),this.validatorsArray.push(f.u.pattern(ea.upperCase))),this.enableDigitRule&&(this.criteriaMap.set(Jo.at_least_one_digit_char,ea.digit),this.validatorsArray.push(f.u.pattern(ea.digit))),this.enableSpecialCharRule&&(this.criteriaMap.set(Jo.at_least_one_special_char,ea.specialChar),this.validatorsArray.push(f.u.pattern(ea.specialChar))),this.customValidator&&(this.criteriaMap.set(Jo.at_custom_chars,this.parseCustomValidatorsRegex()),this.validatorsArray.push(f.u.pattern(this.parseCustomValidatorsRegex()))),this.criteriaMap.forEach(function(e,n){t.validatorsArray.push(t.matPasswordStrengthValidator.validate(n,e))}),this.passwordFormControl.setValidators(f.u.compose(Object(an.a)(this.validatorsArray))),this.Validators=f.u.compose(Object(an.a)(this.validatorsArray))}},{key:"calculatePasswordStrength",value:function(){var t=[],e=100/this.criteriaMap.size;t.push(!!this.enableLengthRule&&this._containAtLeastMinChars(),!!this.enableLowerCaseLetterRule&&this._containAtLeastOneLowerCaseLetter(),!!this.enableUpperCaseLetterRule&&this._containAtLeastOneUpperCaseLetter(),!!this.enableDigitRule&&this._containAtLeastOneDigit(),!!this.enableSpecialCharRule&&this._containAtLeastOneSpecialChar(),!!this.customValidator&&this._containCustomChars()),this._strength=t.filter(function(t){return t}).length*e,this.propagateChange(this.strength),this.onStrengthChanged.emit(this.strength),this.setRulesAndValidators()}},{key:"reset",value:function(){this._strength=0,this.containAtLeastMinChars=this.containAtLeastOneLowerCaseLetter=this.containAtLeastOneUpperCaseLetter=this.containAtLeastOneDigit=this.containAtCustomChars=this.containAtLeastOneSpecialChar=!1}},{key:"writeValue",value:function(t){t&&(this._strength=t)}},{key:"registerOnChange",value:function(t){this.propagateChange=t}},{key:"registerOnTouched",value:function(t){}},{key:"setDisabledState",value:function(t){}},{key:"_containAtLeastMinChars",value:function(){return this.containAtLeastMinChars=this.password.length>=this.min,this.containAtLeastMinChars}},{key:"_containAtLeastOneLowerCaseLetter",value:function(){return this.containAtLeastOneLowerCaseLetter=this.criteriaMap.get(Jo.at_least_one_lower_case_char).test(this.password),this.containAtLeastOneLowerCaseLetter}},{key:"_containAtLeastOneUpperCaseLetter",value:function(){return this.containAtLeastOneUpperCaseLetter=this.criteriaMap.get(Jo.at_least_one_upper_case_char).test(this.password),this.containAtLeastOneUpperCaseLetter}},{key:"_containAtLeastOneDigit",value:function(){return this.containAtLeastOneDigit=this.criteriaMap.get(Jo.at_least_one_digit_char).test(this.password),this.containAtLeastOneDigit}},{key:"_containAtLeastOneSpecialChar",value:function(){return this.containAtLeastOneSpecialChar=this.criteriaMap.get(Jo.at_least_one_special_char).test(this.password),this.containAtLeastOneSpecialChar}},{key:"_containCustomChars",value:function(){return this.containAtCustomChars=this.criteriaMap.get(Jo.at_custom_chars).test(this.password),this.containAtCustomChars}},{key:"ngAfterContentChecked",value:function(){this.password&&this.calculatePasswordStrength()}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Mb({type:t,selectors:[["mat-password-strength"]],inputs:{enableLengthRule:"enableLengthRule",enableLowerCaseLetterRule:"enableLowerCaseLetterRule",enableUpperCaseLetterRule:"enableUpperCaseLetterRule",enableDigitRule:"enableDigitRule",enableSpecialCharRule:"enableSpecialCharRule",min:"min",max:"max",warnThreshold:"warnThreshold",accentThreshold:"accentThreshold",password:"password",externalError:"externalError",customValidator:"customValidator"},outputs:{onStrengthChanged:"onStrengthChanged"},exportAs:["matPasswordStrength"],features:[i.Db([{provide:f.m,useExisting:Object(i.W)(function(){return t}),multi:!0}]),i.Cb],decls:1,vars:2,consts:[["mode","determinate",3,"color","value"]],template:function(t,e){1&t&&i.Tb(0,"mat-progress-bar",0),2&t&&i.qc("color",e.color)("value",e.strength)},directives:[Xi.a],styles:[".green [_nghost-%COMP%] .mat-progress-bar.mat-primary .mat-progress-bar-fill:after{background-color:#43a047}"],changeDetection:0}),t}();function ra(t,e,n){var r={timing:t,delay:0,rotateX:e,rotateY:n};return Object(J.g)([Object(J.m)({"backface-visibility":"visible"}),Object(J.e)("{{ timing }}s {{ delay }}s ease-in",Object(J.h)([Object(J.m)({opacity:0,transform:"perspective(400px) rotate3d({{ rotateX }}, {{ rotateY }}, 0, 90deg)",offset:0}),Object(J.m)({opacity:1,transform:"perspective(400px) rotate3d({{ rotateX }}, {{ rotateY }}, 0, -20deg)",offset:.4}),Object(J.m)({transform:"perspective(400px) rotate3d({{ rotateX }}, {{ rotateY }}, 0, 10deg)",offset:.6}),Object(J.m)({transform:"perspective(400px) rotate3d({{ rotateX }}, {{ rotateY }}, 0, -5deg)",offset:.8}),Object(J.m)({transform:"perspective(400px) rotate3d(0, 0, 0, 0)",offset:1})]))],{params:r})}ra(1,1,0),ra(1,0,1),Object(J.g)(Object(J.e)("{{ timing }}s {{ delay }}s",Object(J.h)([Object(J.m)({transform:"translate3d(0, 0, 0)",offset:0}),Object(J.m)({transform:"translate3d(-10px, 0, 0)",offset:.1}),Object(J.m)({transform:"translate3d(10px, 0, 0)",offset:.2}),Object(J.m)({transform:"translate3d(-10px, 0, 0)",offset:.3}),Object(J.m)({transform:"translate3d(10px, 0, 0)",offset:.4}),Object(J.m)({transform:"translate3d(-10px, 0, 0)",offset:.5}),Object(J.m)({transform:"translate3d(10px, 0, 0)",offset:.6}),Object(J.m)({transform:"translate3d(-10px, 0, 0)",offset:.7}),Object(J.m)({transform:"translate3d(10px, 0, 0)",offset:.8}),Object(J.m)({transform:"translate3d(-10px, 0, 0)",offset:.9}),Object(J.m)({transform:"translate3d(0, 0, 0)",offset:1})])),{params:{timing:1,delay:0}});var ia=function(){var t=function(){function t(){Object(a.a)(this,t)}return Object(s.a)(t,null,[{key:"forRoot",value:function(){return{ngModule:t,providers:[]}}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Qb({type:t}),t.\u0275inj=i.Pb({imports:[[c.c,Xi.b,S.h,A.b,Ji.l]]}),t}(),oa=n("spgP");n("0EQZ");var aa=new i.r("mat-chips-default-options"),sa={separatorKeyCodes:[no.f]},ca=function(){var t=function t(){Object(a.a)(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Qb({type:t}),t.\u0275inj=i.Pb({providers:[Ji.a,{provide:aa,useValue:sa}],imports:[[Ji.e]]}),t}(),ua=n("Xa2L"),la=n("rDax"),ha={tooltipState:Object(J.o)("state",[Object(J.l)("initial, void, hidden",Object(J.m)({opacity:0,transform:"scale(0)"})),Object(J.l)("visible",Object(J.m)({transform:"scale(1)"})),Object(J.n)("* => visible",Object(J.e)("200ms cubic-bezier(0, 0, 0.2, 1)",Object(J.h)([Object(J.m)({opacity:0,transform:"scale(0)",offset:0}),Object(J.m)({opacity:.5,transform:"scale(0.99)",offset:.5}),Object(J.m)({opacity:1,transform:"scale(1)",offset:1})]))),Object(J.n)("* => hidden",Object(J.e)("100ms cubic-bezier(0, 0, 0.2, 1)",Object(J.m)({opacity:0})))])},fa=Object(eo.f)({passive:!0}),da=new i.r("mat-tooltip-scroll-strategy"),pa={provide:da,deps:[la.a],useFactory:function(t){return function(){return t.scrollStrategies.reposition({scrollThrottle:20})}}},ba=new i.r("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),ma=function(){var t=function(){function t(e,n,r,i,o,s,c,u,l,f,d,p){var b=this;Object(a.a)(this,t),this._overlay=e,this._elementRef=n,this._scrollDispatcher=r,this._viewContainerRef=i,this._ngZone=o,this._platform=s,this._ariaDescriber=c,this._focusMonitor=u,this._dir=f,this._defaultOptions=d,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new h.a,this._handleKeydown=function(t){b._isTooltipVisible()&&t.keyCode===no.g&&!Object(no.s)(t)&&(t.preventDefault(),t.stopPropagation(),b._ngZone.run(function(){return b.hide(0)}))},this._scrollStrategy=l,d&&(d.position&&(this.position=d.position),d.touchGestures&&(this.touchGestures=d.touchGestures)),o.runOutsideAngular(function(){n.nativeElement.addEventListener("keydown",b._handleKeydown)})}return Object(s.a)(t,[{key:"position",get:function(){return this._position},set:function(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(),this._tooltipInstance&&this._tooltipInstance.show(0),this._overlayRef.updatePosition()))}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=Object(tr.b)(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},{key:"message",get:function(){return this._message},set:function(t){var e=this;this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=t?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(function(){Promise.resolve().then(function(){e._ariaDescriber.describe(e._elementRef.nativeElement,e.message,"tooltip")})}))}},{key:"tooltipClass",get:function(){return this._tooltipClass},set:function(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}},{key:"ngAfterViewInit",value:function(){var t=this;this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Object(V.a)(this._destroyed)).subscribe(function(e){e?"keyboard"===e&&t._ngZone.run(function(){return t.show()}):t._ngZone.run(function(){return t.hide(0)})})}},{key:"ngOnDestroy",value:function(){var t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(function(e){var n=Object(o.a)(e,2);t.removeEventListener(n[0],n[1],fa)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}},{key:"show",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.showDelay;if(!this.disabled&&this.message&&(!this._isTooltipVisible()||this._tooltipInstance._showTimeoutId||this._tooltipInstance._hideTimeoutId)){var n=this._createOverlay();this._detach(),this._portal=this._portal||new Zi.d(va,this._viewContainerRef),this._tooltipInstance=n.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Object(V.a)(this._destroyed)).subscribe(function(){return t._detach()}),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(e)}}},{key:"hide",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay;this._tooltipInstance&&this._tooltipInstance.hide(t)}},{key:"toggle",value:function(){this._isTooltipVisible()?this.hide():this.show()}},{key:"_isTooltipVisible",value:function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}},{key:"_createOverlay",value:function(){var t=this;if(this._overlayRef)return this._overlayRef;var e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),n=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".mat-tooltip").withFlexibleDimensions(!1).withViewportMargin(8).withScrollableContainers(e);return n.positionChanges.pipe(Object(V.a)(this._destroyed)).subscribe(function(e){t._tooltipInstance&&e.scrollableViewProperties.isOverlayClipped&&t._tooltipInstance.isVisible()&&t._ngZone.run(function(){return t.hide(0)})}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:n,panelClass:"mat-tooltip-panel",scrollStrategy:this._scrollStrategy()}),this._updatePosition(),this._overlayRef.detachments().pipe(Object(V.a)(this._destroyed)).subscribe(function(){return t._detach()}),this._overlayRef}},{key:"_detach",value:function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}},{key:"_updatePosition",value:function(){var t=this._overlayRef.getConfig().positionStrategy,e=this._getOrigin(),n=this._getOverlayPosition();t.withPositions([Object.assign(Object.assign({},e.main),n.main),Object.assign(Object.assign({},e.fallback),n.fallback)])}},{key:"_getOrigin",value:function(){var t,e=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n||"below"==n?t={originX:"center",originY:"above"==n?"top":"bottom"}:"before"==n||"left"==n&&e||"right"==n&&!e?t={originX:"start",originY:"center"}:("after"==n||"right"==n&&e||"left"==n&&!e)&&(t={originX:"end",originY:"center"});var r=this._invertPosition(t.originX,t.originY);return{main:t,fallback:{originX:r.x,originY:r.y}}}},{key:"_getOverlayPosition",value:function(){var t,e=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n?t={overlayX:"center",overlayY:"bottom"}:"below"==n?t={overlayX:"center",overlayY:"top"}:"before"==n||"left"==n&&e||"right"==n&&!e?t={overlayX:"end",overlayY:"center"}:("after"==n||"right"==n&&e||"left"==n&&!e)&&(t={overlayX:"start",overlayY:"center"});var r=this._invertPosition(t.overlayX,t.overlayY);return{main:t,fallback:{overlayX:r.x,overlayY:r.y}}}},{key:"_updateTooltipMessage",value:function(){var t=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Object(U.a)(1),Object(V.a)(this._destroyed)).subscribe(function(){t._tooltipInstance&&t._overlayRef.updatePosition()}))}},{key:"_setTooltipClass",value:function(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}},{key:"_invertPosition",value:function(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}}},{key:"_setupPointerEnterEventsIfNeeded",value:function(){var t=this;!this._disabled&&this.message&&this._viewInitialized&&!this._passiveListeners.length&&(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",function(){t._setupPointerExitEventsIfNeeded(),t.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(){t._setupPointerExitEventsIfNeeded(),clearTimeout(t._touchstartTimeout),t._touchstartTimeout=setTimeout(function(){return t.show()},500)}])),this._addListeners(this._passiveListeners))}},{key:"_setupPointerExitEventsIfNeeded",value:function(){var t,e=this;if(!this._pointerExitEventsInitialized){this._pointerExitEventsInitialized=!0;var n=[];if(this._platformSupportsMouseEvents())n.push(["mouseleave",function(){return e.hide()}],["wheel",function(t){return e._wheelListener(t)}]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var r=function(){clearTimeout(e._touchstartTimeout),e.hide(e._defaultOptions.touchendHideDelay)};n.push(["touchend",r],["touchcancel",r])}this._addListeners(n),(t=this._passiveListeners).push.apply(t,n)}}},{key:"_addListeners",value:function(t){var e=this;t.forEach(function(t){var n=Object(o.a)(t,2);e._elementRef.nativeElement.addEventListener(n[0],n[1],fa)})}},{key:"_platformSupportsMouseEvents",value:function(){return!this._platform.IOS&&!this._platform.ANDROID}},{key:"_wheelListener",value:function(t){if(this._isTooltipVisible()){var e=(this._document||document).elementFromPoint(t.clientX,t.clientY),n=this._elementRef.nativeElement;e===n||n.contains(e)||this.hide()}}},{key:"_disableNativeGesturesIfNecessary",value:function(){var t=this.touchGestures;if("off"!==t){var e=this._elementRef.nativeElement,n=e.style;("on"===t||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName)&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),"on"!==t&&e.draggable||(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(i.Sb(la.a),i.Sb(i.l),i.Sb(ro.c),i.Sb(i.S),i.Sb(i.B),i.Sb(eo.a),i.Sb($.c),i.Sb($.h),i.Sb(da),i.Sb(Sr.b,8),i.Sb(ba,8),i.Sb(c.e))},t.\u0275dir=i.Nb({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]}),t}(),va=function(){var t=function(){function t(e,n){Object(a.a)(this,t),this._changeDetectorRef=e,this._breakpointObserver=n,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new h.a,this._isHandset=this._breakpointObserver.observe(Vi.b.Handset)}return Object(s.a)(t,[{key:"show",value:function(t){var e=this;this._hideTimeoutId&&(clearTimeout(this._hideTimeoutId),this._hideTimeoutId=null),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(function(){e._visibility="visible",e._showTimeoutId=null,e._markForCheck()},t)}},{key:"hide",value:function(t){var e=this;this._showTimeoutId&&(clearTimeout(this._showTimeoutId),this._showTimeoutId=null),this._hideTimeoutId=setTimeout(function(){e._visibility="hidden",e._hideTimeoutId=null,e._markForCheck()},t)}},{key:"afterHidden",value:function(){return this._onHide}},{key:"isVisible",value:function(){return"visible"===this._visibility}},{key:"ngOnDestroy",value:function(){this._onHide.complete()}},{key:"_animationStart",value:function(){this._closeOnInteraction=!1}},{key:"_animationDone",value:function(t){var e=t.toState;"hidden"!==e||this.isVisible()||this._onHide.next(),"visible"!==e&&"hidden"!==e||(this._closeOnInteraction=!0)}},{key:"_handleBodyInteraction",value:function(){this._closeOnInteraction&&this.hide(0)}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(i.Sb(i.h),i.Sb(Vi.a))},t.\u0275cmp=i.Mb({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&i.gc("click",function(){return e._handleBodyInteraction()},!1,i.Bc)("auxclick",function(){return e._handleBodyInteraction()},!1,i.Bc),2&t&&i.Ic("zoom","visible"===e._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){var n;1&t&&(i.Yb(0,"div",0),i.gc("@state.start",function(){return e._animationStart()})("@state.done",function(t){return e._animationDone(t)}),i.lc(1,"async"),i.Nc(2),i.Xb()),2&t&&(i.Kb("mat-tooltip-handset",null==(n=i.mc(1,5,e._isHandset))?null:n.matches),i.qc("ngClass",e.tooltipClass)("@state",e._visibility),i.Eb(2),i.Oc(e.message))},directives:[c.j],pipes:[c.b],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[ha.tooltipState]},changeDetection:0}),t}(),ga=function(){var t=function t(){Object(a.a)(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Qb({type:t}),t.\u0275inj=i.Pb({providers:[pa],imports:[[$.a,c.c,la.d,Ji.e],Ji.e,ro.b]}),t}(),ya=["defaultVerifyEmail"];function wa(t,e){1&t&&i.Ub(0)}function _a(t,e){1&t&&i.Tb(0,"mat-progress-bar",12)}function ka(t,e){if(1&t){var n=i.Zb();i.Yb(0,"button",13),i.gc("click",function(){return i.Ec(n),i.kc(2).continue()}),i.Nc(1),i.Xb()}if(2&t){var r=i.kc().verifyEmailGoBackText;i.Eb(1),i.Pc(" ",r," ")}}function xa(t,e){if(1&t){var n=i.Zb();i.Yb(0,"mat-card",2),i.Yb(1,"mat-card-content",3),i.Yb(2,"mat-icon"),i.Nc(3,"email"),i.Xb(),i.Yb(4,"p",4),i.Yb(5,"span",5),i.Nc(6),i.Xb(),i.Yb(7,"span",6),i.Nc(8),i.Xb(),i.Xb(),i.Yb(9,"p",7),i.Nc(10),i.Xb(),i.Lc(11,_a,1,0,"mat-progress-bar",8),i.Xb(),i.Yb(12,"mat-card-actions",3),i.Lc(13,ka,2,1,"button",9),i.Yb(14,"button",10),i.gc("click",function(){return i.Ec(n),i.kc().sendNewVerificationEmail()}),i.Nc(15),i.Xb(),i.Yb(16,"button",11),i.gc("click",function(){return i.Ec(n),i.kc().signOut.emit()}),i.Nc(17),i.Xb(),i.Xb(),i.Xb()}if(2&t){var r=e.email,o=e.goBackURL,a=e.sendNewVerificationEmailText,s=e.signOutText,c=e.verifyEmailConfirmationText,u=e.verifyEmailTitleText,l=i.kc();i.Eb(6),i.Oc(u),i.Eb(2),i.Oc(r),i.Eb(2),i.Oc(c),i.Eb(1),i.qc("ngIf",l.isLoading),i.Eb(2),i.qc("ngIf",o),i.Eb(2),i.Oc(a),i.Eb(2),i.Oc(s)}}function Oa(t,e){if(1&t){var n=i.Zb();i.Yb(0,"mat-checkbox",5),i.gc("ngModelChange",function(t){return i.Ec(n),i.kc().checkTOS=t}),i.Nc(1," I agree to the "),i.Yb(2,"span"),i.Nc(3,"\xa0"),i.Xb(),i.Yb(4,"a",6),i.Nc(5," Terms of Service and Conditions "),i.Xb(),i.Xb()}if(2&t){var r=i.kc();i.qc("ngModel",r.checkTOS),i.Eb(4),i.qc("href",r.data.tosUrl,i.Fc)}}function Sa(t,e){if(1&t){var n=i.Zb();i.Yb(0,"mat-checkbox",5),i.gc("ngModelChange",function(t){return i.Ec(n),i.kc().checkPrivacyPolicy=t}),i.Nc(1," I have read and agree to the "),i.Yb(2,"span"),i.Nc(3,"\xa0"),i.Xb(),i.Yb(4,"a",6),i.Nc(5," Privacy "),i.Xb(),i.Xb()}if(2&t){var r=i.kc();i.qc("ngModel",r.checkPrivacyPolicy),i.Eb(4),i.qc("href",r.data.privacyPolicyUrl,i.Fc)}}function Ea(t,e){if(1&t){var n=i.Zb();i.Yb(0,"div",4),i.Yb(1,"ngx-auth-firebaseui-email-confirmation",5),i.gc("signOut",function(){return i.Ec(n),i.kc(2).signOut()}),i.Xb(),i.Xb()}if(2&t){var r=i.kc().ngIf,o=i.kc();i.Eb(1),i.qc("email",r.email)("goBackURL",o.goBackURL)("messageOnEmailConfirmationSuccess",o.messageOnEmailConfirmationSuccess)("sendNewVerificationEmailText",o.sendNewVerificationEmailText)("signOutText",o.signOutText)("template",o.verifyEmailTemplate)("verifyEmailConfirmationText",o.verifyEmailConfirmationText)("verifyEmailGoBackText",o.verifyEmailGoBackText)("verifyEmailTitleText",o.verifyEmailTitleText)}}function Ca(t,e){if(1&t&&i.Tb(0,"img",15),2&t){var n=i.kc(2).ngIf;i.qc("src",null==n?null:n.photoURL,i.Fc)}}function ja(t,e){1&t&&(i.Yb(0,"mat-icon",16),i.Nc(1,"account_circle"),i.Xb())}function Ta(t,e){1&t&&i.Tb(0,"mat-progress-bar",17)}function Ia(t,e){if(1&t&&(i.Yb(0,"a",18),i.Nc(1),i.Xb()),2&t){var n=i.kc(3);i.qc("routerLink",n.goBackURL),i.Eb(1),i.Oc(n.verifyEmailGoBackText)}}function Aa(t,e){if(1&t){var n=i.Zb();i.Yb(0,"div",6),i.Lc(1,Ca,1,1,"img",7),i.Lc(2,ja,2,0,"ng-template",null,8,i.Mc),i.Yb(4,"div",9),i.Nc(5),i.Xb(),i.Yb(6,"div",10),i.Nc(7),i.Xb(),i.Yb(8,"div",11),i.Lc(9,Ta,1,0,"mat-progress-bar",12),i.Lc(10,Ia,2,2,"a",13),i.Yb(11,"button",14),i.gc("click",function(){return i.Ec(n),i.kc(2).signOut()}),i.Nc(12),i.Xb(),i.Xb(),i.Xb()}if(2&t){var r=i.Ac(3),o=i.kc().ngIf,a=i.kc();i.Eb(1),i.qc("ngIf",null==o?null:o.photoURL)("ngIfElse",r),i.Eb(4),i.Oc(null==o?null:o.displayName),i.Eb(2),i.Oc(null==o?null:o.email),i.Eb(2),i.qc("ngIf",a.isLoading),i.Eb(1),i.qc("ngIf",a.verifyEmailGoBackText),i.Eb(2),i.Oc(a.signOutText)}}function Ra(t,e){if(1&t&&(i.Wb(0),i.Lc(1,Ea,2,9,"div",2),i.Lc(2,Aa,13,7,"ng-template",null,3,i.Mc),i.Vb()),2&t){var n=e.ngIf,r=i.Ac(3),o=i.kc();i.Eb(1),i.qc("ngIf",!1!==o.config.enableEmailVerification&&(o.config.guardProtectedRoutesUntilEmailIsVerified&&!n.emailVerified||o.authProcess.emailConfirmationSent&&!n.emailVerified))("ngIfElse",r)}}function Pa(t,e){if(1&t&&(i.Yb(0,"mat-error"),i.Nc(1),i.Xb()),2&t){var n=i.kc(2);i.Eb(1),i.Pc(" ",n.emailErrorRequiredText," ")}}function La(t,e){if(1&t&&(i.Yb(0,"mat-error"),i.Nc(1),i.Xb()),2&t){var n=i.kc(2);i.Eb(1),i.Pc(" ",n.emailErrorPatternText," ")}}function Na(t,e){if(1&t&&(i.Yb(0,"mat-error"),i.Nc(1),i.Xb()),2&t){var n=i.kc(2);i.Eb(1),i.Pc(" ",n.passwordErrorRequiredText," ")}}function Da(t,e){if(1&t&&(i.Yb(0,"mat-error"),i.Nc(1),i.Xb()),2&t){var n=i.kc(2);i.Eb(1),i.Pc(" ",n.passwordErrorMinLengthText," ")}}function Ma(t,e){if(1&t&&(i.Yb(0,"mat-error"),i.Nc(1),i.Xb()),2&t){var n=i.kc(2);i.Eb(1),i.Pc(" ",n.passwordErrorMaxLengthText," ")}}var Fa=function(){return{x:"-50px"}},Va=function(t){return{value:"*",params:t}};function Ua(t,e){if(1&t){var n=i.Zb();i.Yb(0,"button",37),i.gc("click",function(){return i.Ec(n),i.kc(2).createForgotPasswordTab()}),i.Nc(1),i.Xb()}if(2&t){var r=i.kc(2);i.qc("@animate",i.uc(4,Va,i.tc(3,Fa)))("color",r.color),i.Eb(1),i.Pc(" ",r.forgotPasswordButtonText," ")}}var Ba=function(){return{z:"50px",delay:"50ms",scale:"0.2"}};function qa(t,e){1&t&&(i.Yb(0,"mat-card-footer"),i.Tb(1,"mat-progress-bar",17),i.Xb()),2&t&&(i.Eb(1),i.qc("@animate",i.uc(2,Va,i.tc(1,Ba))))}function Xa(t,e){if(1&t&&(i.Yb(0,"mat-error"),i.Nc(1),i.Xb()),2&t){var n=i.kc(3);i.Eb(1),i.Pc(" ",n.nameErrorRequiredText," ")}}function za(t,e){if(1&t&&(i.Yb(0,"mat-error"),i.Nc(1),i.Xb()),2&t){var n=i.kc(3);i.Eb(1),i.Pc(" ",n.nameErrorMinLengthText," ")}}function Ha(t,e){if(1&t&&(i.Yb(0,"mat-error"),i.Nc(1),i.Xb()),2&t){var n=i.kc(3);i.Eb(1),i.Pc(" ",n.nameErrorMaxLengthText," ")}}function Ya(t,e){if(1&t&&(i.Yb(0,"mat-error"),i.Nc(1),i.Xb()),2&t){var n=i.kc(3);i.Eb(1),i.Pc(" ",n.emailErrorRequiredText," ")}}function Ga(t,e){if(1&t&&(i.Yb(0,"mat-error"),i.Nc(1),i.Xb()),2&t){var n=i.kc(3);i.Eb(1),i.Pc(" ",n.emailErrorPatternText," ")}}function Ka(t,e){if(1&t&&(i.Yb(0,"mat-error",48),i.Nc(1),i.Xb()),2&t){var n=i.kc(3);i.Eb(1),i.Pc(" ",n.passwordErrorRequiredText," ")}}function Wa(t,e){if(1&t&&(i.Yb(0,"mat-error",48),i.Nc(1),i.Xb()),2&t){var n=i.kc(3);i.Eb(1),i.Pc(" ",n.passwordErrorMinLengthText," ")}}function Qa(t,e){if(1&t&&(i.Yb(0,"mat-error",48),i.Nc(1),i.Xb()),2&t){var n=i.kc(3);i.Eb(1),i.Pc(" ",n.passwordErrorMaxLengthText," ")}}var Za=function(){return{x:"-100px"}};function Ja(t,e){if(1&t){var n=i.Zb();i.Yb(0,"button",49),i.gc("click",function(){i.Ec(n);var t=i.kc(3);return t.processLegalSignUP(t.authProvider.ANONYMOUS)}),i.Yb(1,"mat-icon"),i.Nc(2,"fingerprint"),i.Xb(),i.Nc(3),i.Xb()}if(2&t){var r=i.kc(3);i.qc("@animate",i.uc(4,Va,i.tc(3,Za)))("color",r.color),i.Eb(3),i.Pc(" ",r.guestButtonText," ")}}function $a(t,e){1&t&&(i.Yb(0,"mat-card-footer"),i.Tb(1,"mat-progress-bar",17),i.Xb()),2&t&&(i.Eb(1),i.qc("@animate",i.uc(2,Va,i.tc(1,Ba))))}var ts=function(){return{value:"50"}},es=function(){return{x:"50px"}},ns=function(){return{x:"100px"}};function rs(t,e){if(1&t){var n=i.Zb();i.Yb(0,"mat-tab",20),i.Yb(1,"mat-card"),i.Yb(2,"mat-card-title"),i.Nc(3),i.Xb(),i.Yb(4,"mat-card-content",22),i.Yb(5,"form",21),i.gc("ngSubmit",function(){i.Ec(n);var t=i.kc(2);return t.signUpFormGroup.valid&&t.processLegalSignUP(t.authProvider.EmailAndPassword)}),i.Yb(6,"div",22),i.Yb(7,"mat-form-field",23),i.Yb(8,"mat-label"),i.Nc(9),i.Xb(),i.Tb(10,"input",38),i.Yb(11,"mat-icon",25),i.Nc(12,"person"),i.Xb(),i.Yb(13,"mat-hint",30),i.Nc(14),i.Xb(),i.Lc(15,Xa,2,1,"mat-error",26),i.Lc(16,za,2,1,"mat-error",26),i.Lc(17,Ha,2,1,"mat-error",26),i.Xb(),i.Yb(18,"mat-form-field",23),i.Yb(19,"mat-label"),i.Nc(20),i.Xb(),i.Tb(21,"input",39),i.Yb(22,"mat-icon",25),i.Nc(23,"email"),i.Xb(),i.Lc(24,Ya,2,1,"mat-error",26),i.Lc(25,Ga,2,1,"mat-error",26),i.Xb(),i.Yb(26,"div",40),i.Yb(27,"mat-form-field",23),i.Yb(28,"mat-label"),i.Nc(29),i.Xb(),i.Tb(30,"input",41),i.Tb(31,"mat-pass-toggle-visibility",28,42),i.Yb(33,"mat-icon",25),i.Nc(34,"lock"),i.Xb(),i.Yb(35,"mat-hint",30),i.Nc(36),i.Xb(),i.Lc(37,Ka,2,1,"mat-error",43),i.Lc(38,Wa,2,1,"mat-error",43),i.Lc(39,Qa,2,1,"mat-error",43),i.Xb(),i.Tb(40,"mat-password-strength",44,45),i.Xb(),i.Yb(42,"button",46),i.Nc(43),i.Xb(),i.Xb(),i.Xb(),i.Lc(44,Ja,4,6,"button",47),i.Xb(),i.Lc(45,$a,2,4,"mat-card-footer",26),i.Xb(),i.Xb()}if(2&t){var r=i.Ac(32),o=i.kc(2);i.qc("label",o.registerTabText),i.Eb(3),i.Oc(o.registerCardTitleText),i.Eb(2),i.qc("@animateStagger",i.tc(52,ts))("formGroup",o.signUpFormGroup),i.Eb(2),i.qc("@animate",i.uc(54,Va,i.tc(53,es)))("appearance",o.appearance),i.Eb(2),i.Oc(o.nameText),i.Eb(1),i.qc("formControl",o.sigUpNameFormControl)("maxlength",o.config.nameMaxLength)("minlength",o.config.nameMinLength),i.Eb(1),i.qc("color",o.color),i.Eb(3),i.Qc(" ",null==o.signUpFormGroup.value.name?null:o.signUpFormGroup.value.name.length," / ",o.config.nameMaxLength," "),i.Eb(1),i.qc("ngIf",o.sigUpNameFormControl.hasError("required")),i.Eb(1),i.qc("ngIf",o.sigUpNameFormControl.hasError("minlength")),i.Eb(1),i.qc("ngIf",o.sigUpNameFormControl.hasError("maxlength")),i.Eb(1),i.qc("@animate",i.uc(57,Va,i.tc(56,es)))("appearance",o.appearance),i.Eb(2),i.Oc(o.emailText),i.Eb(1),i.qc("formControl",o.sigUpEmailFormControl),i.Eb(1),i.qc("color",o.color),i.Eb(2),i.qc("ngIf",o.sigUpEmailFormControl.hasError("required")),i.Eb(1),i.qc("ngIf",o.sigUpEmailFormControl.hasError("pattern")),i.Eb(2),i.qc("@animate",i.uc(60,Va,i.tc(59,es)))("appearance",o.appearance),i.Eb(2),i.Oc(o.passwordText),i.Eb(1),i.qc("formControl",o.sigUpPasswordFormControl)("maxlength",o.max)("minlength",o.min)("type",r.type),i.Eb(3),i.qc("color",o.color),i.Eb(3),i.Qc(" ",null==o.signUpFormGroup.value.password?null:o.signUpFormGroup.value.password.length," / ",o.max," "),i.Eb(1),i.qc("ngIf",o.sigUpPasswordFormControl.hasError("required")),i.Eb(1),i.qc("ngIf",o.sigUpPasswordFormControl.hasError("minlength")),i.Eb(1),i.qc("ngIf",o.sigUpPasswordFormControl.hasError("maxlength")),i.Eb(1),i.qc("customValidator",o.customValidator)("enableDigitRule",o.enableDigitRule)("enableLengthRule",o.enableLengthRule)("enableLowerCaseLetterRule",o.enableLowerCaseLetterRule)("enableSpecialCharRule",o.enableSpecialCharRule)("enableUpperCaseLetterRule",o.enableUpperCaseLetterRule)("externalError",o.sigUpPasswordFormControl.dirty)("max",o.max)("min",o.min)("password",o.signUpFormGroup.value.password),i.Eb(2),i.qc("@animate",i.uc(63,Va,i.tc(62,ns)))("color",o.color)("disabled",o.signUpFormGroup.invalid),i.Eb(1),i.Pc(" ",o.registerButtonText," "),i.Eb(1),i.qc("ngIf",o.guestEnabled),i.Eb(1),i.qc("ngIf",o.isLoading)}}function is(t,e){if(1&t){var n=i.Zb();i.Yb(0,"button",56),i.gc("click",function(){return i.Ec(n),i.kc(3).passwordResetWished=!1}),i.Nc(1),i.Yb(2,"mat-icon"),i.Nc(3,"close"),i.Xb(),i.Xb()}if(2&t){var r=i.kc(3);i.Eb(1),i.Pc(" ",r.resetPasswordTabText," ")}}function os(t,e){if(1&t&&(i.Yb(0,"mat-error"),i.Nc(1),i.Xb()),2&t){var n=i.kc(3);i.Eb(1),i.Pc(" ",n.resetPasswordErrorRequiredText," ")}}function as(t,e){if(1&t&&(i.Yb(0,"mat-error"),i.Nc(1),i.Xb()),2&t){var n=i.kc(3);i.Eb(1),i.Pc(" ",n.resetPasswordErrorPatternText," ")}}function ss(t,e){if(1&t&&(i.Yb(0,"p"),i.Nc(1),i.Xb()),2&t){var n=i.kc(3);i.Eb(1),i.Oc(n.resetPasswordInstructionsText)}}function cs(t,e){1&t&&i.Tb(0,"mat-progress-bar",17)}var us=function(){return{duration:"300ms",y:"100px"}};function ls(t,e){if(1&t){var n=i.Zb();i.Yb(0,"mat-tab",50),i.Lc(1,is,4,1,"ng-template",51),i.Yb(2,"form",21),i.gc("ngSubmit",function(){i.Ec(n);var t=i.kc(2);return t.resetPasswordFormGroup.valid&&t.resetPassword()}),i.Yb(3,"mat-card",52),i.Yb(4,"mat-card-content"),i.Yb(5,"mat-form-field",53),i.Yb(6,"mat-label"),i.Nc(7),i.Xb(),i.Tb(8,"input",54),i.Yb(9,"mat-icon",25),i.Nc(10,"email"),i.Xb(),i.Lc(11,os,2,1,"mat-error",26),i.Lc(12,as,2,1,"mat-error",26),i.Xb(),i.Lc(13,ss,2,1,"p",26),i.Xb(),i.Yb(14,"mat-card-actions",32),i.Lc(15,cs,1,0,"mat-progress-bar",12),i.Yb(16,"button",55),i.Nc(17),i.Xb(),i.Xb(),i.Xb(),i.Xb(),i.Xb()}if(2&t){var r=i.kc(2);i.Eb(2),i.qc("@animateStagger",i.tc(14,ts))("formGroup",r.resetPasswordFormGroup),i.Eb(3),i.qc("@animate",i.uc(16,Va,i.tc(15,us)))("appearance",r.appearance),i.Eb(2),i.Pc(" ",r.resetPasswordInputText," "),i.Eb(1),i.qc("title",r.resetPasswordInputText),i.Eb(1),i.qc("color",r.color),i.Eb(2),i.qc("ngIf",r.resetPasswordEmailFormControl.hasError("required")),i.Eb(1),i.qc("ngIf",r.resetPasswordEmailFormControl.hasError("pattern")),i.Eb(1),i.qc("ngIf",r.passReset),i.Eb(2),i.qc("ngIf",r.isLoading),i.Eb(1),i.qc("@animate",i.uc(19,Va,i.tc(18,es)))("color",r.color),i.Eb(1),i.Pc(" ",r.resetPasswordActionButtonText," ")}}function hs(t,e){if(1&t&&i.Tb(0,"ngx-auth-firebaseui-providers",57),2&t){var n=i.kc(2);i.qc("providers",n.providers)("theme",n.providersTheme)("tosUrl",n.tosUrl)("privacyPolicyUrl",n.privacyPolicyUrl)}}function fs(t,e){if(1&t){var n=i.Zb();i.Yb(0,"mat-tab-group",19),i.gc("selectedTabChange",function(t){return i.Ec(n),i.kc().onTabChange(t)}),i.Yb(1,"mat-tab",20),i.Yb(2,"mat-card"),i.Yb(3,"mat-card-title"),i.Nc(4),i.Xb(),i.Yb(5,"mat-card-content"),i.Yb(6,"form",21),i.gc("ngSubmit",function(){return i.Ec(n),i.kc().signIn()}),i.Yb(7,"div",22),i.Yb(8,"mat-form-field",23),i.Yb(9,"mat-label"),i.Nc(10),i.Xb(),i.Tb(11,"input",24),i.Yb(12,"mat-icon",25),i.Nc(13,"email"),i.Xb(),i.Lc(14,Pa,2,1,"mat-error",26),i.Lc(15,La,2,1,"mat-error",26),i.Xb(),i.Yb(16,"mat-form-field",23),i.Yb(17,"mat-label"),i.Nc(18),i.Xb(),i.Tb(19,"input",27),i.Tb(20,"mat-pass-toggle-visibility",28,29),i.Yb(22,"mat-icon",25),i.Nc(23,"lock"),i.Xb(),i.Yb(24,"mat-hint",30),i.Nc(25),i.Xb(),i.Lc(26,Na,2,1,"mat-error",26),i.Lc(27,Da,2,1,"mat-error",26),i.Lc(28,Ma,2,1,"mat-error",26),i.Xb(),i.Yb(29,"button",31),i.Nc(30),i.Xb(),i.Xb(),i.Xb(),i.Yb(31,"div",32),i.Lc(32,Ua,2,6,"button",33),i.Xb(),i.Xb(),i.Lc(33,qa,2,4,"mat-card-footer",26),i.Xb(),i.Xb(),i.Lc(34,rs,46,65,"mat-tab",34),i.Lc(35,ls,18,21,"mat-tab",35),i.Xb(),i.Tb(36,"mat-divider"),i.Lc(37,hs,1,4,"ngx-auth-firebaseui-providers",36)}if(2&t){var r=i.Ac(21),o=i.kc();i.qc("color",o.color)("selectedIndex",o.tabIndex),i.Eb(1),i.qc("label",o.signInTabText),i.Eb(3),i.Oc(o.signInCardTitleText),i.Eb(2),i.qc("@animateStagger",i.tc(33,ts))("formGroup",o.signInFormGroup),i.Eb(2),i.qc("@animate",i.uc(35,Va,i.tc(34,us)))("appearance",o.appearance),i.Eb(2),i.Oc(o.emailText),i.Eb(2),i.qc("color",o.color),i.Eb(2),i.qc("ngIf",o.signInEmailFormControl.hasError("required")),i.Eb(1),i.qc("ngIf",o.signInEmailFormControl.hasError("pattern")),i.Eb(1),i.qc("@animate",i.uc(38,Va,i.tc(37,us)))("appearance",o.appearance),i.Eb(2),i.Oc(o.passwordText),i.Eb(1),i.qc("maxlength",o.max)("minlength",o.min)("type",null==r?null:r.type),i.Eb(3),i.qc("color",o.color),i.Eb(3),i.Qc(" ",o.signInFormGroup.value.password.length," / ",o.max," "),i.Eb(1),i.qc("ngIf",o.sigInPasswordFormControl.hasError("required")),i.Eb(1),i.qc("ngIf",o.sigInPasswordFormControl.hasError("minlength")),i.Eb(1),i.qc("ngIf",o.sigInPasswordFormControl.hasError("maxlength")),i.Eb(1),i.qc("@animate",i.uc(41,Va,i.tc(40,es)))("color",o.color)("disabled",o.signInFormGroup.invalid),i.Eb(1),i.Pc(" ",o.loginButtonText," "),i.Eb(2),i.qc("ngIf",o.resetPasswordEnabled),i.Eb(1),i.qc("ngIf",o.isLoading),i.Eb(1),i.qc("ngIf",o.registrationEnabled),i.Eb(1),i.qc("ngIf",o.passwordResetWished),i.Eb(2),i.qc("ngIf",2!==o.tabIndex)}}function ds(t,e){if(1&t&&(i.Yb(0,"span"),i.Nc(1),i.Xb()),2&t){var n=i.kc(2);i.Eb(1),i.Oc(n.displayNameInitials||"")}}function ps(t,e){if(1&t&&(i.Yb(0,"button",12),i.Lc(1,ds,2,1,"span",13),i.Xb()),2&t){var n=i.kc(),r=i.Ac(2);i.Ic("background-image","url("+(null==n.user?null:n.user.photoURL)+")"),i.qc("matMenuTriggerFor",r)("matTooltip",null==n.user?null:n.user.displayName),i.Eb(1),i.qc("ngIf",!(null!=n.user&&n.user.photoURL))}}function bs(t,e){if(1&t&&(i.Yb(0,"span"),i.Nc(1),i.Xb()),2&t){var n=i.kc(2);i.Eb(1),i.Oc(n.displayNameInitials||"")}}function ms(t,e){if(1&t&&(i.Yb(0,"button",14),i.Lc(1,bs,2,1,"span",13),i.Xb()),2&t){var n=i.kc();i.Ic("background-image",null!=n.user&&n.user.photoURL?"url("+(null==n.user?null:n.user.photoURL)+")":""),i.Eb(1),i.qc("ngIf",!(null!=n.user&&n.user.photoURL))}}function vs(t,e){if(1&t&&(i.Yb(0,"div",15),i.Yb(1,"button",16),i.gc("click",function(){var t=e.$implicit;return null==t?null:t.callback()}),i.Yb(2,"mat-icon"),i.Nc(3),i.Xb(),i.Nc(4),i.Xb(),i.Xb()),2&t){var n=e.$implicit;i.Eb(3),i.Oc(null==n?null:n.icon),i.Eb(1),i.Pc(" ",null==n?null:n.text,"")}}function gs(t,e){if(1&t){var n=i.Zb();i.Yb(0,"button",17),i.gc("click",function(){return i.Ec(n),i.kc().openProfile()}),i.Nc(1),i.Xb()}if(2&t){var r=i.kc();i.Eb(1),i.Pc("",r.textProfile," ")}}function ys(t,e){if(1&t){var n=i.Zb();i.Yb(0,"button",18),i.gc("click",function(){return i.Ec(n),i.kc().signOut()}),i.Nc(1),i.Xb()}if(2&t){var r=i.kc();i.Eb(1),i.Pc("",r.textSignOut," ")}}var ws=function(t){return{"padding-top.px":t}},_s=function(t){return{"padding-bottom.px":t}};function ks(t,e){if(1&t&&(i.Yb(0,"div",17),i.Tb(1,"img",18),i.Xb()),2&t){var n=i.kc();i.Eb(1),i.qc("@animate",i.uc(3,Va,i.tc(2,es)))("src",n.logoUrl,i.Fc)}}function xs(t,e){if(1&t&&(i.Yb(0,"mat-error"),i.Nc(1),i.Xb()),2&t){var n=i.kc();i.Eb(1),i.Pc(" ",n.emailErrorRequiredText," ")}}function Os(t,e){if(1&t&&(i.Yb(0,"mat-error"),i.Nc(1),i.Xb()),2&t){var n=i.kc();i.Eb(1),i.Pc(" ",n.emailErrorPatternText," ")}}function Ss(t,e){if(1&t){var n=i.Zb();i.Yb(0,"button",19),i.gc("click",function(){return i.Ec(n),i.kc().onResetPasswordRequested.emit()}),i.Nc(1),i.Xb()}if(2&t){var r=i.kc();i.qc("@animate",i.uc(4,Va,i.tc(3,Fa)))("color",r.color),i.Eb(1),i.Pc(" ",r.forgotPasswordText," ")}}function Es(t,e){if(1&t&&(i.Yb(0,"div",20),i.Yb(1,"span",21),i.Nc(2),i.Xb(),i.Xb()),2&t){var n=i.kc();i.qc("@animate",i.uc(3,Va,i.tc(2,Ba))),i.Eb(2),i.Oc(n.orLabelText)}}var Cs=function(){return{value:"100"}};function js(t,e){if(1&t){var n=i.Zb();i.Yb(0,"div",22),i.Yb(1,"span",21),i.Nc(2),i.Xb(),i.Yb(3,"button",23),i.gc("click",function(){return i.Ec(n),i.kc().onCreateAccountRequested.emit()}),i.Nc(4),i.Xb(),i.Xb()}if(2&t){var r=i.kc();i.qc("@animateStagger",i.tc(6,Cs)),i.Eb(1),i.qc("@animate",i.uc(8,Va,i.tc(7,ns))),i.Eb(1),i.Pc(" ",r.dontHaveAnAccountText," "),i.Eb(1),i.qc("@animate",i.uc(11,Va,i.tc(10,Za)))("color",r.color),i.Eb(1),i.Oc(r.createAccountButtonText)}}function Ts(t,e){if(1&t&&(i.Yb(0,"div",17),i.Tb(1,"img",18),i.Xb()),2&t){var n=i.kc();i.Eb(1),i.qc("@animate",i.uc(3,Va,i.tc(2,es)))("src",n.logoUrl,i.Fc)}}function Is(t,e){if(1&t&&(i.Yb(0,"mat-error"),i.Nc(1),i.Xb()),2&t){var n=i.kc();i.Eb(1),i.Pc(" ",n.emailErrorRequiredText," ")}}function As(t,e){if(1&t&&(i.Yb(0,"mat-error"),i.Nc(1),i.Xb()),2&t){var n=i.kc();i.Eb(1),i.Pc(" ",n.emailErrorPatternText," ")}}function Rs(t,e){if(1&t&&(i.Yb(0,"mat-error"),i.Nc(1),i.Xb()),2&t){var n=i.kc();i.Eb(1),i.Pc(" ",n.passwordErrorRequiredText," ")}}function Ps(t,e){if(1&t&&(i.Yb(0,"mat-error"),i.Nc(1),i.Xb()),2&t){var n=i.kc();i.Eb(1),i.Pc(" ",n.passwordErrorMinLengthText," ")}}function Ls(t,e){if(1&t&&(i.Yb(0,"mat-error"),i.Nc(1),i.Xb()),2&t){var n=i.kc();i.Eb(1),i.Pc(" ",n.passwordErrorMaxLengthText," ")}}function Ns(t,e){if(1&t&&(i.Yb(0,"mat-error"),i.Nc(1),i.Xb()),2&t){var n=i.kc();i.Eb(1),i.Pc(" ",n.passwordConfirmationErrorRequiredText," ")}}function Ds(t,e){if(1&t&&(i.Yb(0,"mat-error"),i.Nc(1),i.Xb()),2&t){var n=i.kc();i.Eb(1),i.Pc(" ",n.passwordErrorMatchText," ")}}function Ms(t,e){if(1&t&&(i.Yb(0,"div"),i.Yb(1,"mat-checkbox",19),i.Yb(2,"span"),i.Nc(3),i.Xb(),i.Yb(4,"a",20),i.Nc(5),i.Xb(),i.Xb(),i.Xb()),2&t){var n=i.kc();i.Eb(1),i.rc("aria-label",n.termsAndConditionsText),i.Eb(2),i.Oc(n.termsAndConditionsText),i.Eb(1),i.qc("href",n.tosUrl,i.Fc),i.Eb(1),i.Pc(" ",n.termsAndConditionsLinkText," ")}}function Fs(t,e){if(1&t&&(i.Yb(0,"div"),i.Yb(1,"mat-checkbox",21),i.Yb(2,"span"),i.Nc(3),i.Xb(),i.Yb(4,"a",20),i.Nc(5),i.Xb(),i.Xb(),i.Xb()),2&t){var n=i.kc();i.Eb(1),i.rc("aria-label",n.privacyPolicyText),i.Eb(2),i.Oc(n.privacyPolicyText),i.Eb(1),i.qc("href",n.privacyPolicyUrl,i.Fc),i.Eb(1),i.Pc(" ",n.privacyPolicyLinkText," ")}}function Vs(t,e){1&t&&i.Tb(0,"div")}function Us(t,e){1&t&&i.Tb(0,"img",10),2&t&&i.qc("src",e.ngIf,i.Fc)}function Bs(t,e){1&t&&i.Tb(0,"div")}function qs(t,e){if(1&t&&(i.Yb(0,"mat-icon",11),i.Nc(1," verified_user "),i.Xb()),2&t){var n=i.kc(3);i.qc("matTooltip",n.emailVerifiedText)}}function Xs(t,e){if(1&t&&(i.Yb(0,"mat-icon",12),i.Nc(1," warning "),i.Xb()),2&t){var n=i.kc(3);i.qc("matTooltip",n.emailNotVerifiedText)}}function zs(t,e){1&t&&i.Tb(0,"mat-card-content")}function Hs(t,e){if(1&t&&(i.Yb(0,"mat-error"),i.Nc(1),i.Xb()),2&t){var n=i.kc(4);i.Eb(1),i.Pc(" ",n.nameErrorRequiredText," ")}}function Ys(t,e){if(1&t&&(i.Yb(0,"mat-error"),i.Nc(1),i.Xb()),2&t){var n=i.kc(4);i.Eb(1),i.Qc(" ",n.emailErrorRequiredText," ",n.updateEmailFormControl.value," ")}}function Gs(t,e){if(1&t&&(i.Yb(0,"mat-error"),i.Nc(1),i.Xb()),2&t){var n=i.kc(4);i.Eb(1),i.Qc(" ",n.emailErrorPatternText," ",n.updateEmailFormControl.value," ")}}function Ks(t,e){if(1&t&&(i.Yb(0,"mat-error"),i.Nc(1),i.Xb()),2&t){var n=i.kc(5);i.Eb(1),i.Pc(" ",n.phoneErrorPatternText," ")}}function Ws(t,e){if(1&t&&(i.Yb(0,"mat-form-field",16),i.Yb(1,"mat-label"),i.Nc(2),i.Xb(),i.Tb(3,"input",23),i.Yb(4,"mat-icon",18),i.Nc(5,"phone"),i.Xb(),i.Yb(6,"mat-hint",19),i.Nc(7),i.Xb(),i.Lc(8,Ks,2,1,"mat-error",3),i.Xb()),2&t){var n=i.kc(4);i.qc("appearance",n.appearance),i.Eb(2),i.Oc(n.phoneText),i.Eb(1),i.qc("formControl",n.updatePhoneNumberFormControl)("placeholder",n.phoneText),i.Eb(4),i.Pc(" ",n.phoneHintText," "),i.Eb(1),i.qc("ngIf",n.updatePhoneNumberFormControl.hasError("pattern"))}}function Qs(t,e){if(1&t){var n=i.Zb();i.Yb(0,"form",13),i.gc("submit",function(){return i.Ec(n),i.kc(3).save()}),i.Yb(1,"mat-card-content",4),i.Yb(2,"div",14),i.Yb(3,"button",15),i.gc("click",function(){return i.Ec(n),i.kc(3).changeEditMode()}),i.Nc(4),i.Xb(),i.Xb(),i.Yb(5,"mat-form-field",16),i.Yb(6,"mat-label"),i.Nc(7),i.Xb(),i.Tb(8,"input",17),i.Yb(9,"mat-icon",18),i.Nc(10,"person"),i.Xb(),i.Yb(11,"mat-hint",19),i.Nc(12),i.Xb(),i.Lc(13,Hs,2,1,"mat-error",3),i.Xb(),i.Yb(14,"mat-form-field",16),i.Yb(15,"mat-label"),i.Nc(16),i.Xb(),i.Tb(17,"input",17),i.Yb(18,"mat-icon",18),i.Nc(19,"email"),i.Xb(),i.Lc(20,Ys,2,2,"mat-error",3),i.Lc(21,Gs,2,2,"mat-error",3),i.Xb(),i.Lc(22,Ws,9,6,"mat-form-field",20),i.Xb(),i.Yb(23,"mat-card-actions",21),i.Yb(24,"button",22),i.Nc(25),i.Xb(),i.Xb(),i.Xb()}if(2&t){var r=i.kc(3);i.qc("formGroup",r.updateFormGroup),i.Eb(4),i.Pc(" ",r.cancelButtonText," "),i.Eb(1),i.qc("appearance",r.appearance),i.Eb(2),i.Oc(r.nameText),i.Eb(1),i.qc("formControl",r.updateNameFormControl)("placeholder",r.nameText),i.Eb(4),i.Qc(" ",null==r.updateNameFormControl.value?null:r.updateNameFormControl.value.length," / ",r.config.nameMaxLength," "),i.Eb(1),i.qc("ngIf",r.updateNameFormControl.hasError("required")),i.Eb(1),i.qc("appearance",r.appearance),i.Eb(2),i.Oc(r.emailText),i.Eb(1),i.qc("formControl",r.updateEmailFormControl)("placeholder",r.emailText),i.Eb(3),i.qc("ngIf",r.updateEmailFormControl.hasError("required")),i.Eb(1),i.qc("ngIf",r.updateEmailFormControl.hasError("pattern")),i.Eb(1),i.qc("ngIf",!1),i.Eb(3),i.Pc(" ",r.saveChangesButtonText," ")}}function Zs(t,e){if(1&t){var n=i.Zb();i.Yb(0,"button",29),i.gc("click",function(){return i.Ec(n),i.kc(4).changeEditMode()}),i.Nc(1),i.Xb()}if(2&t){var r=i.kc(4);i.Eb(1),i.Pc(" ",r.editButtonText," ")}}function Js(t,e){if(1&t&&(i.Yb(0,"mat-form-field",16),i.Yb(1,"mat-label"),i.Nc(2),i.Xb(),i.Tb(3,"input",25),i.Yb(4,"mat-icon",26),i.Nc(5,"phone"),i.Xb(),i.Xb()),2&t){var n=i.kc(2).ngIf,r=i.kc(2);i.qc("appearance",r.appearance),i.Eb(2),i.Oc(r.phoneText),i.Eb(1),i.qc("disabled",!r.editMode)("value",n.phoneNumber)("placeholder",r.phoneText)}}function $s(t,e){if(1&t){var n=i.Zb();i.Yb(0,"button",30),i.gc("click",function(){return i.Ec(n),i.kc(4).signOut()}),i.Nc(1),i.Xb()}if(2&t){var r=i.kc(4);i.Eb(1),i.Oc(r.signoutButtonText)}}function tc(t,e){if(1&t){var n=i.Zb();i.Yb(0,"button",31),i.gc("click",function(){return i.Ec(n),i.kc(4).deleteAccount()}),i.Nc(1),i.Xb()}if(2&t){var r=i.kc(4);i.Eb(1),i.Oc(r.deleteAccountButtonText)}}function ec(t,e){if(1&t&&(i.Yb(0,"div",14),i.Lc(1,Zs,2,1,"button",24),i.Xb(),i.Yb(2,"mat-form-field",16),i.Yb(3,"mat-label"),i.Nc(4),i.Xb(),i.Tb(5,"input",25),i.Yb(6,"mat-icon",26),i.Nc(7,"person"),i.Xb(),i.Xb(),i.Yb(8,"mat-form-field",16),i.Yb(9,"mat-label"),i.Nc(10),i.Xb(),i.Tb(11,"input",25),i.Yb(12,"mat-icon",26),i.Nc(13,"email"),i.Xb(),i.Xb(),i.Lc(14,Js,6,5,"mat-form-field",20),i.Yb(15,"mat-card-actions",21),i.Lc(16,$s,2,1,"button",27),i.Lc(17,tc,2,1,"button",28),i.Xb()),2&t){var n=i.kc().ngIf,r=i.kc(2);i.Eb(1),i.qc("ngIf",r.canEditAccount),i.Eb(1),i.qc("appearance",r.appearance),i.Eb(2),i.Oc(r.nameText),i.Eb(1),i.qc("disabled",!r.editMode)("value",n.displayName)("placeholder",r.nameText),i.Eb(3),i.qc("appearance",r.appearance),i.Eb(2),i.Oc(r.emailText),i.Eb(1),i.qc("disabled",!r.editMode)("value",n.email)("placeholder",r.emailText),i.Eb(3),i.qc("ngIf",!1),i.Eb(2),i.qc("ngIf",r.canLogout),i.Eb(1),i.qc("ngIf",r.canDeleteAccount)}}function nc(t,e){if(1&t&&(i.Yb(0,"mat-card"),i.Yb(1,"mat-card-header",4),i.Lc(2,Us,1,1,"img",5),i.lc(3,"async"),i.Lc(4,Bs,1,0,"div",0),i.Lc(5,qs,2,1,"ng-template",null,6,i.Mc),i.Lc(7,Xs,2,1,"ng-template",null,7,i.Mc),i.Xb(),i.Lc(9,zs,1,0,"mat-card-content",0),i.Lc(10,Qs,26,17,"ng-template",null,8,i.Mc),i.Lc(12,ec,18,14,"ng-template",null,9,i.Mc),i.Xb()),2&t){var n=e.ngIf,r=i.Ac(6),o=i.Ac(8),a=i.Ac(11),s=i.Ac(13),c=i.kc(2);i.Eb(2),i.qc("ngIf",i.mc(3,7,null==c.authProcess?null:c.authProcess.getUserPhotoUrl())),i.Eb(2),i.qc("ngIf",n.emailVerified)("ngIfThen",r)("ngIfElse",o),i.Eb(5),i.qc("ngIf",c.editMode)("ngIfThen",a)("ngIfElse",s)}}function rc(t,e){if(1&t&&(i.Lc(0,nc,14,9,"mat-card",3),i.lc(1,"async")),2&t){var n=i.kc();i.qc("ngIf",i.mc(1,1,n.auth.user))}}function ic(t,e){if(1&t&&(i.Yb(0,"mat-card",32),i.Yb(1,"mat-card-content",33),i.Yb(2,"mat-icon",34),i.Nc(3,"warning"),i.Xb(),i.Yb(4,"span"),i.Nc(5),i.Xb(),i.Xb(),i.Xb()),2&t){var n=i.kc();i.Eb(5),i.Oc(n.notLoggedInText)}}var oc=function(){return{"space-full-xs":!0}};function ac(t,e){if(1&t){var n=i.Zb();i.Yb(0,"button",11),i.gc("click",function(){i.Ec(n);var t=i.kc(2);return t.processLegalSignUP(t.authProvider.Google)}),i.Tb(1,"mat-icon",12),i.Nc(2," Google "),i.Xb()}2&t&&i.qc("@animate",i.uc(3,Va,i.tc(2,us)))("ngClass.xs",i.tc(5,oc))}function sc(t,e){if(1&t){var n=i.Zb();i.Yb(0,"button",13),i.gc("click",function(){i.Ec(n);var t=i.kc(2);return t.processLegalSignUP(t.authProvider.Apple)}),i.Tb(1,"mat-icon",14),i.Nc(2," Apple "),i.Xb()}2&t&&i.qc("@animate",i.uc(3,Va,i.tc(2,us)))("ngClass.xs",i.tc(5,oc))}function cc(t,e){if(1&t){var n=i.Zb();i.Yb(0,"button",15),i.gc("click",function(){i.Ec(n);var t=i.kc(2);return t.processLegalSignUP(t.authProvider.Facebook)}),i.Tb(1,"mat-icon",16),i.Nc(2," Facebook "),i.Xb()}2&t&&i.qc("@animate",i.uc(3,Va,i.tc(2,us)))("ngClass.xs",i.tc(5,oc))}function uc(t,e){if(1&t){var n=i.Zb();i.Yb(0,"button",17),i.gc("click",function(){i.Ec(n);var t=i.kc(2);return t.processLegalSignUP(t.authProvider.Twitter)}),i.Tb(1,"mat-icon",18),i.Nc(2," Twitter "),i.Xb()}2&t&&i.qc("@animate",i.uc(3,Va,i.tc(2,us)))("ngClass.xs",i.tc(5,oc))}function lc(t,e){if(1&t){var n=i.Zb();i.Yb(0,"button",11),i.gc("click",function(){i.Ec(n);var t=i.kc(2);return t.processLegalSignUP(t.authProvider.Github)}),i.Tb(1,"mat-icon",19),i.Nc(2," GitHub "),i.Xb()}2&t&&i.qc("@animate",i.uc(3,Va,i.tc(2,us)))("ngClass.xs",i.tc(5,oc))}function hc(t,e){if(1&t){var n=i.Zb();i.Yb(0,"button",11),i.gc("click",function(){i.Ec(n);var t=i.kc(2);return t.processLegalSignUP(t.authProvider.Microsoft)}),i.Tb(1,"mat-icon",20),i.Nc(2," Microsoft "),i.Xb()}2&t&&i.qc("@animate",i.uc(3,Va,i.tc(2,us)))("ngClass.xs",i.tc(5,oc))}function fc(t,e){if(1&t){var n=i.Zb();i.Yb(0,"button",11),i.gc("click",function(){i.Ec(n);var t=i.kc(2);return t.processLegalSignUP(t.authProvider.Yahoo)}),i.Tb(1,"mat-icon",21),i.Nc(2," Yahoo "),i.Xb()}2&t&&i.qc("@animate",i.uc(3,Va,i.tc(2,us)))("ngClass.xs",i.tc(5,oc))}function dc(t,e){if(1&t&&(i.Yb(0,"div",6),i.Lc(1,ac,3,6,"button",7),i.Lc(2,sc,3,6,"button",8),i.Lc(3,cc,3,6,"button",9),i.Lc(4,uc,3,6,"button",10),i.Lc(5,lc,3,6,"button",7),i.Lc(6,hc,3,6,"button",7),i.Lc(7,fc,3,6,"button",7),i.Xb()),2&t){var n=i.kc();i.qc("fxLayoutAlign","row"==n.layout?"space-around center":"stretch")("fxLayout",n.layout),i.Eb(1),i.qc("ngIf",n.providers===n.authProvider.ALL||n.providers.includes(n.authProvider.Google)),i.Eb(1),i.qc("ngIf",n.providers===n.authProvider.ALL||n.providers.includes(n.authProvider.Apple)),i.Eb(1),i.qc("ngIf",n.providers===n.authProvider.ALL||n.providers.includes(n.authProvider.Facebook)),i.Eb(1),i.qc("ngIf",n.providers===n.authProvider.ALL||n.providers.includes(n.authProvider.Twitter)),i.Eb(1),i.qc("ngIf",n.providers===n.authProvider.ALL||n.providers.includes(n.authProvider.Github)),i.Eb(1),i.qc("ngIf",n.providers===n.authProvider.ALL||n.providers.includes(n.authProvider.Microsoft)),i.Eb(1),i.qc("ngIf",n.providers===n.authProvider.ALL||n.providers.includes(n.authProvider.Yahoo))}}function pc(t,e){if(1&t){var n=i.Zb();i.Yb(0,"button",30),i.gc("click",function(){i.Ec(n);var t=i.kc(2);return t.processLegalSignUP(t.authProvider.Google)}),i.Nc(1," Google "),i.Xb()}2&t&&i.qc("@animate",i.uc(3,Va,i.tc(2,us)))("ngClass.xs",i.tc(5,oc))}function bc(t,e){if(1&t){var n=i.Zb();i.Yb(0,"button",31),i.gc("click",function(){i.Ec(n);var t=i.kc(2);return t.processLegalSignUP(t.authProvider.Apple)}),i.Nc(1," Apple "),i.Xb()}2&t&&i.qc("@animate",i.uc(3,Va,i.tc(2,us)))("ngClass.xs",i.tc(5,oc))}function mc(t,e){if(1&t){var n=i.Zb();i.Yb(0,"button",32),i.gc("click",function(){i.Ec(n);var t=i.kc(2);return t.processLegalSignUP(t.authProvider.Facebook)}),i.Nc(1," Facebook "),i.Xb()}2&t&&i.qc("@animate",i.uc(3,Va,i.tc(2,us)))("ngClass.xs",i.tc(5,oc))}function vc(t,e){if(1&t){var n=i.Zb();i.Yb(0,"button",33),i.gc("click",function(){i.Ec(n);var t=i.kc(2);return t.processLegalSignUP(t.authProvider.Twitter)}),i.Nc(1," Twitter "),i.Xb()}2&t&&i.qc("@animate",i.uc(3,Va,i.tc(2,us)))("ngClass.xs",i.tc(5,oc))}function gc(t,e){if(1&t){var n=i.Zb();i.Yb(0,"button",34),i.gc("click",function(){i.Ec(n);var t=i.kc(2);return t.processLegalSignUP(t.authProvider.Github)}),i.Nc(1," GitHub "),i.Xb()}2&t&&i.qc("@animate",i.uc(3,Va,i.tc(2,us)))("ngClass.xs",i.tc(5,oc))}function yc(t,e){if(1&t){var n=i.Zb();i.Yb(0,"button",35),i.gc("click",function(){i.Ec(n);var t=i.kc(2);return t.processLegalSignUP(t.authProvider.Microsoft)}),i.Nc(1," Microsoft "),i.Xb()}2&t&&i.qc("@animate",i.uc(3,Va,i.tc(2,us)))("ngClass.xs",i.tc(5,oc))}function wc(t,e){if(1&t){var n=i.Zb();i.Yb(0,"button",36),i.gc("click",function(){i.Ec(n);var t=i.kc(2);return t.processLegalSignUP(t.authProvider.Yahoo)}),i.Nc(1," Yahoo "),i.Xb()}2&t&&i.qc("@animate",i.uc(3,Va,i.tc(2,us)))("ngClass.xs",i.tc(5,oc))}function _c(t,e){if(1&t&&(i.Yb(0,"div",22),i.Lc(1,pc,2,6,"button",23),i.Lc(2,bc,2,6,"button",24),i.Lc(3,mc,2,6,"button",25),i.Lc(4,vc,2,6,"button",26),i.Lc(5,gc,2,6,"button",27),i.Lc(6,yc,2,6,"button",28),i.Lc(7,wc,2,6,"button",29),i.Xb()),2&t){var n=i.kc();i.qc("fxLayoutAlign","row"==n.layout?"space-around center":"stretch")("fxLayout",n.layout),i.Eb(1),i.qc("ngIf",n.providers===n.authProvider.ALL||n.providers.includes(n.authProvider.Google)),i.Eb(1),i.qc("ngIf",n.providers===n.authProvider.ALL||n.providers.includes(n.authProvider.Apple)),i.Eb(1),i.qc("ngIf",n.providers===n.authProvider.ALL||n.providers.includes(n.authProvider.Facebook)),i.Eb(1),i.qc("ngIf",n.providers===n.authProvider.ALL||n.providers.includes(n.authProvider.Twitter)),i.Eb(1),i.qc("ngIf",n.providers===n.authProvider.ALL||n.providers.includes(n.authProvider.Github)),i.Eb(1),i.qc("ngIf",n.providers===n.authProvider.ALL||n.providers.includes(n.authProvider.Microsoft)),i.Eb(1),i.qc("ngIf",n.providers===n.authProvider.ALL||n.providers.includes(n.authProvider.Yahoo))}}function kc(t,e){if(1&t){var n=i.Zb();i.Yb(0,"button",44),i.gc("click",function(){i.Ec(n);var t=i.kc(2);return t.processLegalSignUP(t.authProvider.Google)}),i.Nc(1," Google "),i.Xb()}2&t&&i.qc("@animate",i.uc(3,Va,i.tc(2,us)))("ngClass.xs",i.tc(5,oc))}function xc(t,e){if(1&t){var n=i.Zb();i.Yb(0,"button",45),i.gc("click",function(){i.Ec(n);var t=i.kc(2);return t.processLegalSignUP(t.authProvider.Apple)}),i.Nc(1," Apple "),i.Xb()}2&t&&i.qc("@animate",i.uc(3,Va,i.tc(2,us)))("ngClass.xs",i.tc(5,oc))}function Oc(t,e){if(1&t){var n=i.Zb();i.Yb(0,"button",46),i.gc("click",function(){i.Ec(n);var t=i.kc(2);return t.processLegalSignUP(t.authProvider.Facebook)}),i.Nc(1," Facebook "),i.Xb()}2&t&&i.qc("@animate",i.uc(3,Va,i.tc(2,us)))("ngClass.xs",i.tc(5,oc))}function Sc(t,e){if(1&t){var n=i.Zb();i.Yb(0,"button",47),i.gc("click",function(){i.Ec(n);var t=i.kc(2);return t.processLegalSignUP(t.authProvider.Twitter)}),i.Nc(1," Twitter "),i.Xb()}2&t&&i.qc("@animate",i.uc(3,Va,i.tc(2,us)))("ngClass.xs",i.tc(5,oc))}function Ec(t,e){if(1&t){var n=i.Zb();i.Yb(0,"button",48),i.gc("click",function(){i.Ec(n);var t=i.kc(2);return t.processLegalSignUP(t.authProvider.Github)}),i.Nc(1," GitHub "),i.Xb()}2&t&&i.qc("@animate",i.uc(3,Va,i.tc(2,us)))("ngClass.xs",i.tc(5,oc))}function Cc(t,e){if(1&t){var n=i.Zb();i.Yb(0,"button",49),i.gc("click",function(){i.Ec(n);var t=i.kc(2);return t.processLegalSignUP(t.authProvider.Microsoft)}),i.Nc(1," Microsoft "),i.Xb()}2&t&&i.qc("@animate",i.uc(3,Va,i.tc(2,us)))("ngClass.xs",i.tc(5,oc))}function jc(t,e){if(1&t){var n=i.Zb();i.Yb(0,"button",50),i.gc("click",function(){i.Ec(n);var t=i.kc(2);return t.processLegalSignUP(t.authProvider.Yahoo)}),i.Nc(1," Yahoo "),i.Xb()}2&t&&i.qc("@animate",i.uc(3,Va,i.tc(2,us)))("ngClass.xs",i.tc(5,oc))}function Tc(t,e){if(1&t&&(i.Yb(0,"div",22),i.Lc(1,kc,2,6,"button",37),i.Lc(2,xc,2,6,"button",38),i.Lc(3,Oc,2,6,"button",39),i.Lc(4,Sc,2,6,"button",40),i.Lc(5,Ec,2,6,"button",41),i.Lc(6,Cc,2,6,"button",42),i.Lc(7,jc,2,6,"button",43),i.Xb()),2&t){var n=i.kc();i.qc("fxLayoutAlign","row"==n.layout?"space-around center":"stretch")("fxLayout",n.layout),i.Eb(1),i.qc("ngIf",n.providers===n.authProvider.ALL||n.providers.includes(n.authProvider.Google)),i.Eb(1),i.qc("ngIf",n.providers===n.authProvider.ALL||n.providers.includes(n.authProvider.Apple)),i.Eb(1),i.qc("ngIf",n.providers===n.authProvider.ALL||n.providers.includes(n.authProvider.Facebook)),i.Eb(1),i.qc("ngIf",n.providers===n.authProvider.ALL||n.providers.includes(n.authProvider.Twitter)),i.Eb(1),i.qc("ngIf",n.providers===n.authProvider.ALL||n.providers.includes(n.authProvider.Github)),i.Eb(1),i.qc("ngIf",n.providers===n.authProvider.ALL||n.providers.includes(n.authProvider.Microsoft)),i.Eb(1),i.qc("ngIf",n.providers===n.authProvider.ALL||n.providers.includes(n.authProvider.Yahoo))}}function Ic(t,e){if(1&t){var n=i.Zb();i.Yb(0,"button",59),i.gc("click",function(){i.Ec(n);var t=i.kc(2);return t.processLegalSignUP(t.authProvider.Google)}),i.Nc(1," Google "),i.Xb()}2&t&&i.qc("@animate",i.uc(3,Va,i.tc(2,us)))("ngClass.xs",i.tc(5,oc))}function Ac(t,e){if(1&t){var n=i.Zb();i.Yb(0,"button",60),i.gc("click",function(){i.Ec(n);var t=i.kc(2);return t.processLegalSignUP(t.authProvider.Apple)}),i.Nc(1," Apple "),i.Xb()}2&t&&i.qc("@animate",i.uc(3,Va,i.tc(2,us)))("ngClass.xs",i.tc(5,oc))}function Rc(t,e){if(1&t){var n=i.Zb();i.Yb(0,"button",61),i.gc("click",function(){i.Ec(n);var t=i.kc(2);return t.processLegalSignUP(t.authProvider.Facebook)}),i.Nc(1," Facebook "),i.Xb()}2&t&&i.qc("@animate",i.uc(3,Va,i.tc(2,us)))("ngClass.xs",i.tc(5,oc))}function Pc(t,e){if(1&t){var n=i.Zb();i.Yb(0,"button",62),i.gc("click",function(){i.Ec(n);var t=i.kc(2);return t.processLegalSignUP(t.authProvider.Twitter)}),i.Nc(1," Twitter "),i.Xb()}2&t&&i.qc("@animate",i.uc(3,Va,i.tc(2,us)))("ngClass.xs",i.tc(5,oc))}function Lc(t,e){if(1&t){var n=i.Zb();i.Yb(0,"button",63),i.gc("click",function(){i.Ec(n);var t=i.kc(2);return t.processLegalSignUP(t.authProvider.Github)}),i.Nc(1," GitHub "),i.Xb()}2&t&&i.qc("@animate",i.uc(3,Va,i.tc(2,us)))("ngClass.xs",i.tc(5,oc))}function Nc(t,e){if(1&t){var n=i.Zb();i.Yb(0,"button",64),i.gc("click",function(){i.Ec(n);var t=i.kc(2);return t.processLegalSignUP(t.authProvider.Microsoft)}),i.Nc(1," Microsoft "),i.Xb()}2&t&&i.qc("@animate",i.uc(3,Va,i.tc(2,us)))("ngClass.xs",i.tc(5,oc))}function Dc(t,e){if(1&t){var n=i.Zb();i.Yb(0,"button",65),i.gc("click",function(){i.Ec(n);var t=i.kc(2);return t.processLegalSignUP(t.authProvider.Yahoo)}),i.Nc(1," Yahoo "),i.Xb()}2&t&&i.qc("@animate",i.uc(3,Va,i.tc(2,us)))("ngClass.xs",i.tc(5,oc))}function Mc(t,e){if(1&t&&(i.Yb(0,"div",51),i.Lc(1,Ic,2,6,"button",52),i.Lc(2,Ac,2,6,"button",53),i.Lc(3,Rc,2,6,"button",54),i.Lc(4,Pc,2,6,"button",55),i.Lc(5,Lc,2,6,"button",56),i.Lc(6,Nc,2,6,"button",57),i.Lc(7,Dc,2,6,"button",58),i.Xb()),2&t){var n=i.kc();i.qc("fxLayoutAlign","row"==n.layout?"space-around center":"stretch")("fxLayout",n.layout),i.Eb(1),i.qc("ngIf",n.providers===n.authProvider.ALL||n.providers.includes(n.authProvider.Google)),i.Eb(1),i.qc("ngIf",n.providers===n.authProvider.ALL||n.providers.includes(n.authProvider.Apple)),i.Eb(1),i.qc("ngIf",n.providers===n.authProvider.ALL||n.providers.includes(n.authProvider.Facebook)),i.Eb(1),i.qc("ngIf",n.providers===n.authProvider.ALL||n.providers.includes(n.authProvider.Twitter)),i.Eb(1),i.qc("ngIf",n.providers===n.authProvider.ALL||n.providers.includes(n.authProvider.Github)),i.Eb(1),i.qc("ngIf",n.providers===n.authProvider.ALL||n.providers.includes(n.authProvider.Microsoft)),i.Eb(1),i.qc("ngIf",n.providers===n.authProvider.ALL||n.providers.includes(n.authProvider.Yahoo))}}function Fc(t,e){if(1&t){var n=i.Zb();i.Yb(0,"button",74),i.gc("click",function(){i.Ec(n);var t=i.kc(2);return t.processLegalSignUP(t.authProvider.Google)}),i.Tb(1,"mat-icon",75),i.Xb()}2&t&&i.qc("@animate",i.uc(2,Va,i.tc(1,us)))}function Vc(t,e){if(1&t){var n=i.Zb();i.Yb(0,"button",76),i.gc("click",function(){i.Ec(n);var t=i.kc(2);return t.processLegalSignUP(t.authProvider.Apple)}),i.Tb(1,"mat-icon",14),i.Xb()}2&t&&i.qc("@animate",i.uc(2,Va,i.tc(1,us)))}function Uc(t,e){if(1&t){var n=i.Zb();i.Yb(0,"button",77),i.gc("click",function(){i.Ec(n);var t=i.kc(2);return t.processLegalSignUP(t.authProvider.Facebook)}),i.Tb(1,"mat-icon",16),i.Xb()}2&t&&i.qc("@animate",i.uc(2,Va,i.tc(1,us)))}function Bc(t,e){if(1&t){var n=i.Zb();i.Yb(0,"button",78),i.gc("click",function(){i.Ec(n);var t=i.kc(2);return t.processLegalSignUP(t.authProvider.Twitter)}),i.Tb(1,"mat-icon",18),i.Xb()}2&t&&i.qc("@animate",i.uc(2,Va,i.tc(1,us)))}function qc(t,e){if(1&t){var n=i.Zb();i.Yb(0,"button",79),i.gc("click",function(){i.Ec(n);var t=i.kc(2);return t.processLegalSignUP(t.authProvider.Github)}),i.Tb(1,"mat-icon",19),i.Xb()}2&t&&i.qc("@animate",i.uc(2,Va,i.tc(1,us)))}function Xc(t,e){if(1&t){var n=i.Zb();i.Yb(0,"button",80),i.gc("click",function(){i.Ec(n);var t=i.kc(2);return t.processLegalSignUP(t.authProvider.Microsoft)}),i.Tb(1,"mat-icon",20),i.Xb()}2&t&&i.qc("@animate",i.uc(2,Va,i.tc(1,us)))}function zc(t,e){if(1&t){var n=i.Zb();i.Yb(0,"button",81),i.gc("click",function(){i.Ec(n);var t=i.kc(2);return t.processLegalSignUP(t.authProvider.Yahoo)}),i.Tb(1,"mat-icon",21),i.Xb()}2&t&&i.qc("@animate",i.uc(2,Va,i.tc(1,us)))}function Hc(t,e){if(1&t&&(i.Yb(0,"div",66),i.Lc(1,Fc,2,4,"button",67),i.Lc(2,Vc,2,4,"button",68),i.Lc(3,Uc,2,4,"button",69),i.Lc(4,Bc,2,4,"button",70),i.Lc(5,qc,2,4,"button",71),i.Lc(6,Xc,2,4,"button",72),i.Lc(7,zc,2,4,"button",73),i.Xb()),2&t){var n=i.kc();i.qc("fxLayoutAlign","row"==n.layout?"space-around center":"stretch")("fxLayout",n.layout),i.Eb(1),i.qc("ngIf",n.providers===n.authProvider.ALL||n.providers.includes(n.authProvider.Google)),i.Eb(1),i.qc("ngIf",n.providers===n.authProvider.ALL||n.providers.includes(n.authProvider.Apple)),i.Eb(1),i.qc("ngIf",n.providers===n.authProvider.ALL||n.providers.includes(n.authProvider.Facebook)),i.Eb(1),i.qc("ngIf",n.providers===n.authProvider.ALL||n.providers.includes(n.authProvider.Twitter)),i.Eb(1),i.qc("ngIf",n.providers===n.authProvider.ALL||n.providers.includes(n.authProvider.Github)),i.Eb(1),i.qc("ngIf",n.providers===n.authProvider.ALL||n.providers.includes(n.authProvider.Microsoft)),i.Eb(1),i.qc("ngIf",n.providers===n.authProvider.ALL||n.providers.includes(n.authProvider.Yahoo))}}function Yc(t,e){if(1&t){var n=i.Zb();i.Yb(0,"button",90),i.gc("click",function(){i.Ec(n);var t=i.kc(2);return t.processLegalSignUP(t.authProvider.Google)}),i.Tb(1,"mat-icon",75),i.Xb()}2&t&&i.qc("@animate",i.uc(2,Va,i.tc(1,us)))}function Gc(t,e){if(1&t){var n=i.Zb();i.Yb(0,"button",91),i.gc("click",function(){i.Ec(n);var t=i.kc(2);return t.processLegalSignUP(t.authProvider.Apple)}),i.Tb(1,"mat-icon",14),i.Xb()}2&t&&i.qc("@animate",i.uc(2,Va,i.tc(1,us)))}function Kc(t,e){if(1&t){var n=i.Zb();i.Yb(0,"button",92),i.gc("click",function(){i.Ec(n);var t=i.kc(2);return t.processLegalSignUP(t.authProvider.Facebook)}),i.Tb(1,"mat-icon",16),i.Xb()}2&t&&i.qc("@animate",i.uc(2,Va,i.tc(1,us)))}function Wc(t,e){if(1&t){var n=i.Zb();i.Yb(0,"button",93),i.gc("click",function(){i.Ec(n);var t=i.kc(2);return t.processLegalSignUP(t.authProvider.Twitter)}),i.Tb(1,"mat-icon",94),i.Xb()}2&t&&i.qc("@animate",i.uc(2,Va,i.tc(1,us)))}function Qc(t,e){if(1&t){var n=i.Zb();i.Yb(0,"button",95),i.gc("click",function(){i.Ec(n);var t=i.kc(2);return t.processLegalSignUP(t.authProvider.Github)}),i.Tb(1,"mat-icon",19),i.Xb()}2&t&&i.qc("@animate",i.uc(2,Va,i.tc(1,us)))}function Zc(t,e){if(1&t){var n=i.Zb();i.Yb(0,"button",96),i.gc("click",function(){i.Ec(n);var t=i.kc(2);return t.processLegalSignUP(t.authProvider.Microsoft)}),i.Tb(1,"mat-icon",20),i.Xb()}2&t&&i.qc("@animate",i.uc(2,Va,i.tc(1,us)))}function Jc(t,e){if(1&t){var n=i.Zb();i.Yb(0,"button",97),i.gc("click",function(){i.Ec(n);var t=i.kc(2);return t.processLegalSignUP(t.authProvider.Yahoo)}),i.Tb(1,"mat-icon",21),i.Xb()}2&t&&i.qc("@animate",i.uc(2,Va,i.tc(1,us)))}function $c(t,e){if(1&t&&(i.Yb(0,"div",82),i.Lc(1,Yc,2,4,"button",83),i.Lc(2,Gc,2,4,"button",84),i.Lc(3,Kc,2,4,"button",85),i.Lc(4,Wc,2,4,"button",86),i.Lc(5,Qc,2,4,"button",87),i.Lc(6,Zc,2,4,"button",88),i.Lc(7,Jc,2,4,"button",89),i.Xb()),2&t){var n=i.kc();i.qc("fxLayoutAlign","row"==n.layout?"space-around center":"stretch")("fxLayout",n.layout),i.Eb(1),i.qc("ngIf",n.providers===n.authProvider.ALL||n.providers.includes(n.authProvider.Google)),i.Eb(1),i.qc("ngIf",n.providers===n.authProvider.ALL||n.providers.includes(n.authProvider.Apple)),i.Eb(1),i.qc("ngIf",n.providers===n.authProvider.ALL||n.providers.includes(n.authProvider.Facebook)),i.Eb(1),i.qc("ngIf",n.providers===n.authProvider.ALL||n.providers.includes(n.authProvider.Twitter)),i.Eb(1),i.qc("ngIf",n.providers===n.authProvider.ALL||n.providers.includes(n.authProvider.Github)),i.Eb(1),i.qc("ngIf",n.providers===n.authProvider.ALL||n.providers.includes(n.authProvider.Microsoft)),i.Eb(1),i.qc("ngIf",n.providers===n.authProvider.ALL||n.providers.includes(n.authProvider.Yahoo))}}var tu=function(t){return t.NONE="account",t.CHECK="account-check",t.EDIT="account-edit",t.OFF="account-off",t.REMOVE="account-remove",t}({}),eu=new i.r("NgxAuthFirebaseUIConfigToken"),nu=new i.r("UserProvidedConfigToken"),ru=function(){var t=function(){function t(e){Object(a.a)(this,t),this.afs=e}return Object(s.a)(t,[{key:"getUserDocRefByUID",value:function(t){return this.afs.doc("".concat("users","/").concat(t))}},{key:"deleteUserData",value:function(t){return this.getUserDocRefByUID(t).delete()}},{key:"updateUserData",value:function(t){return this.getUserDocRefByUID(t.uid).set({uid:t.uid,email:t.email,displayName:t.displayName,photoURL:t.photoURL,phoneNumber:t.phoneNumber,providerId:t.providerId},{merge:!0})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(i.cc(Wi.a))},t.\u0275prov=Object(i.Ob)({factory:function(){return new t(Object(i.cc)(Wi.a))},token:t,providedIn:"root"}),t}(),iu=new Ki.a.auth.FacebookAuthProvider,ou=new Ki.a.auth.GoogleAuthProvider,au=new Ki.a.auth.OAuthProvider("apple.com"),su=new Ki.a.auth.TwitterAuthProvider,cu=new Ki.a.auth.GithubAuthProvider,uu=new Ki.a.auth.OAuthProvider("microsoft.com"),lu=new Ki.a.auth.OAuthProvider("yahoo.com"),hu=function(t){return t.ALL="all",t.ANONYMOUS="anonymous",t.EmailAndPassword="firebase",t.Google="google",t.Apple="apple",t.Facebook="facebook",t.Twitter="twitter",t.Github="github",t.Microsoft="microsoft",t.Yahoo="yahoo",t.PhoneNumber="phoneNumber",t}({}),fu=function(){var t=function(){function t(e,n,r,o,s){Object(a.a)(this,t),this.afa=e,this.config=n,this.snackBar=r,this.fireStoreService=o,this.matSnackBarConfig=s,this.onSuccessEmitter=new i.n,this.onErrorEmitter=new i.n,this._user$=new l.a(null)}return Object(s.a)(t,[{key:"user$",get:function(){return this._user$.asObservable()}},{key:"listenToUserEvents",value:function(){var t=this;this.afa.user.subscribe(function(e){t._user$.next(e),t.user=e})}},{key:"resetPassword",value:function(t){return Object(et.b)(this,void 0,void 0,Yi.a.mark(function e(){return Yi.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,console.log("Password reset email sent"),e.next=4,this.afa.sendPasswordResetEmail(t);case 4:return e.abrupt("return",e.sent);case 7:return e.prev=7,e.t0=e.catch(0),e.abrupt("return",this.notifyError(e.t0));case 10:case"end":return e.stop()}},e,this,[[0,7]])}))}},{key:"signInWith",value:function(t,e){return Object(et.b)(this,void 0,void 0,Yi.a.mark(function n(){var r;return Yi.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:n.prev=0,n.t0=t,n.next=n.t0===hu.ANONYMOUS?4:n.t0===hu.EmailAndPassword?8:n.t0===hu.Google?12:n.t0===hu.Apple?16:n.t0===hu.Facebook?20:n.t0===hu.Twitter?24:n.t0===hu.Github?28:n.t0===hu.Microsoft?32:n.t0===hu.Yahoo?36:n.t0===hu.PhoneNumber?40:41;break;case 4:return n.next=6,this.afa.signInAnonymously();case 6:return r=n.sent,n.abrupt("break",42);case 8:return n.next=10,this.afa.signInWithEmailAndPassword(e.email,e.password);case 10:return r=n.sent,n.abrupt("break",42);case 12:return n.next=14,this.afa.signInWithPopup(ou);case 14:return r=n.sent,n.abrupt("break",42);case 16:return n.next=18,this.afa.signInWithPopup(au);case 18:return r=n.sent,n.abrupt("break",42);case 20:return n.next=22,this.afa.signInWithPopup(iu);case 22:return r=n.sent,n.abrupt("break",42);case 24:return n.next=26,this.afa.signInWithPopup(su);case 26:return r=n.sent,n.abrupt("break",42);case 28:return n.next=30,this.afa.signInWithPopup(cu);case 30:return r=n.sent,n.abrupt("break",42);case 32:return n.next=34,this.afa.signInWithPopup(uu);case 34:return r=n.sent,n.abrupt("break",42);case 36:return n.next=38,this.afa.signInWithPopup(lu);case 38:return r=n.sent,n.abrupt("break",42);case 40:return n.abrupt("break",42);case 41:throw new Error("".concat(hu[t]," is not available as auth provider"));case 42:return n.next=44,this.handleSuccess(r);case 44:n.next=49;break;case 46:n.prev=46,n.t1=n.catch(0),this.handleError(n.t1);case 49:case"end":return n.stop()}},n,this,[[0,46]])}))}},{key:"signUp",value:function(t,e){return Object(et.b)(this,void 0,void 0,Yi.a.mark(function n(){var r,i;return Yi.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,this.afa.createUserWithEmailAndPassword(e.email,e.password);case 3:return i=(r=n.sent).user,n.next=7,this.updateProfile(t,i.photoURL);case 7:if(!this.config.enableFirestoreSync){n.next=10;break}return n.next=10,this.fireStoreService.getUserDocRefByUID(i.uid).set({uid:i.uid,displayName:t,email:i.email,photoURL:i.photoURL});case 10:if(!this.config.enableEmailVerification){n.next=13;break}return n.next=13,i.sendEmailVerification();case 13:return this.emailConfirmationSent=!0,this.emailToConfirm=e.email,n.next=17,this.handleSuccess(r);case 17:n.next=22;break;case 19:n.prev=19,n.t0=n.catch(0),this.handleError(n.t0);case 22:case"end":return n.stop()}},n,this,[[0,19]])}))}},{key:"sendNewVerificationEmail",value:function(){return Object(et.b)(this,void 0,void 0,Yi.a.mark(function t(){return Yi.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(this.user){t.next=2;break}return t.abrupt("return",Promise.reject(new Error("No signed in user")));case 2:return t.abrupt("return",this.user.sendEmailVerification());case 3:case"end":return t.stop()}},t,this)}))}},{key:"signOut",value:function(){return Object(et.b)(this,void 0,void 0,Yi.a.mark(function t(){return Yi.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.afa.signOut();case 3:t.next=8;break;case 5:t.prev=5,t.t0=t.catch(0),this.notifyError(t.t0);case 8:case"end":return t.stop()}},t,this,[[0,5]])}))}},{key:"updateProfile",value:function(t,e){return this.afa.currentUser.then(function(n){return n.updateProfile(e?{displayName:t,photoURL:e}:{displayName:t})})}},{key:"parseUserInfo",value:function(t){return{uid:t.uid,displayName:t.displayName,email:t.email,phoneNumber:t.phoneNumber,photoURL:t.photoURL,providerId:t.providerData.length>0?t.providerData[0].providerId:null}}},{key:"getUserPhotoUrl",value:function(){var t=this;return this._user$.pipe(Object(z.a)(function(e){return e?e.photoURL?e.photoURL:t.getPhotoPath(e.emailVerified?tu.CHECK:e.isAnonymous?tu.OFF:tu.NONE):null}))}},{key:"getPhotoPath",value:function(t){return"assets/user/".concat(t,".svg")}},{key:"signInWithPhoneNumber",value:function(){}},{key:"handleSuccess",value:function(t){return Object(et.b)(this,void 0,void 0,Yi.a.mark(function e(){var n;return Yi.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.onSuccessEmitter.next(this.config.useRawUserCredential?t:t.user),!this.config.enableFirestoreSync){e.next=10;break}return e.prev=2,e.next=5,this.fireStoreService.updateUserData(this.parseUserInfo(t.user));case 5:e.next=10;break;case 7:e.prev=7,e.t0=e.catch(2),console.error("Error occurred while updating user data with firestore: ".concat(e.t0));case 10:this.config.toastMessageOnAuthSuccess&&(n="Hello ".concat(t.user.displayName?t.user.displayName:"","!"),this.showToast(this.messageOnAuthSuccess||n));case 11:case"end":return e.stop()}},e,this,[[2,7]])}))}},{key:"handleError",value:function(t){this.notifyError(t),console.error(t)}},{key:"reloadUserInfo",value:function(){return this._user$.pipe(Object(U.a)(1)).subscribe(function(t){return t&&t.reload()})}},{key:"getMessageOnAuthError",value:function(t){return t.toString()||"Sorry, something went wrong. Please retry later."}},{key:"showToast",value:function(t){t&&this.snackBar.open(t,this.matSnackBarConfig.duration?null:"OK")}},{key:"showErrorToast",value:function(t){this.config.toastMessageOnAuthError&&this.showToast(this.getMessageOnAuthError(t))}},{key:"notifyError",value:function(t){this.onErrorEmitter.emit(t),this.showErrorToast(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(i.cc(Gi.a),i.cc(Object(i.W)(function(){return eu})),i.cc(D.b),i.cc(ru),i.cc(D.a))},t.\u0275prov=Object(i.Ob)({factory:function(){return new t(Object(i.cc)(Gi.a),Object(i.cc)(eu),Object(i.cc)(D.b),Object(i.cc)(ru),Object(i.cc)(D.a))},token:t,providedIn:"root"}),t}(),du=function(){var t=function(){function t(e,n,r){Object(a.a)(this,t),this.authProcess=e,this.router=n,this.changeDetectorRef=r,this.signOut=new i.n}return Object(s.a)(t,[{key:"ngOnChanges",value:function(t){t.verifyEmailTemplate&&null==t.verifyEmailTemplate.currentValue&&(this.verifyEmailTemplate=this.defaultTemplate,console.log("ngOnChanges - defaultTemplate:",this.verifyEmailTemplate)),this.verifyEmailContext=this.createTemplateContext()}},{key:"ngOnInit",value:function(){this.verifyEmailTemplate||(console.log("ngOnInit - defaultTemplate"),this.verifyEmailTemplate=this.defaultTemplate),this.verifyEmailContext=this.createTemplateContext(),console.log("verifyEmailTemplate:",this.verifyEmailTemplate),console.log("verifyEmailContext:",this.verifyEmailContext)}},{key:"continue",value:function(){return Object(et.b)(this,void 0,void 0,Yi.a.mark(function t(){return Yi.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.authProcess.reloadUserInfo();case 3:return t.next=5,this.router.navigate([this.goBackURL]);case 5:t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),this.authProcess.notifyError(t.t0);case 10:case"end":return t.stop()}},t,this,[[0,7]])}))}},{key:"sendNewVerificationEmail",value:function(){return Object(et.b)(this,void 0,void 0,Yi.a.mark(function t(){return Yi.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,this.isLoading=!0,this.changeDetectorRef.markForCheck(),t.next=5,this.authProcess.sendNewVerificationEmail();case 5:this.authProcess.showToast(this.verifyEmailContext.messageOnEmailConfirmationSuccess),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),this.authProcess.notifyError(t.t0);case 11:return t.prev=11,this.isLoading=!1,this.changeDetectorRef.markForCheck(),t.finish(11);case 15:case"end":return t.stop()}},t,this,[[0,8,11,15]])}))}},{key:"createTemplateContext",value:function(){return{email:this.email,goBackURL:this.goBackURL,verifyEmailTitleText:this.verifyEmailTitleText||"Confirm your e-mail address!",verifyEmailConfirmationText:this.verifyEmailConfirmationText||'A confirmation e-mail has been sent. Check your inbox and click on the link "Confirm my e-mail" to confirm your e-mail address.',verifyEmailGoBackText:this.verifyEmailGoBackText||"Go back",sendNewVerificationEmailText:this.sendNewVerificationEmailText||"Send new confirmation e-mail",signOutText:this.signOutText||"Sign out",messageOnEmailConfirmationSuccess:this.messageOnEmailConfirmationSuccess||"A new confirmation e-mail has been sent. Please check your inbox."}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(i.Sb(fu),i.Sb(tt.b),i.Sb(i.h))},t.\u0275cmp=i.Mb({type:t,selectors:[["ngx-auth-firebaseui-email-confirmation"]],viewQuery:function(t,e){var n;1&t&&i.Sc(ya,3),2&t&&i.zc(n=i.hc())&&(e.defaultTemplate=n.first)},inputs:{email:"email",goBackURL:"goBackURL",verifyEmailTitleText:"verifyEmailTitleText",verifyEmailConfirmationText:"verifyEmailConfirmationText",verifyEmailGoBackText:"verifyEmailGoBackText",sendNewVerificationEmailText:"sendNewVerificationEmailText",signOutText:"signOutText",messageOnEmailConfirmationSuccess:"messageOnEmailConfirmationSuccess",template:"template"},outputs:{signOut:"signOut"},features:[i.Cb],decls:3,vars:2,consts:[[4,"ngTemplateOutlet","ngTemplateOutletContext"],["defaultVerifyEmail",""],[1,"verify-email"],["fxLayout","column","fxLayoutAlign","center center"],["fxLayout","column","fxLayoutAlign","center center",1,"title"],[1,"mat-subheading-2"],[1,"mat-body-2"],[1,"subtitle"],["mode","indeterminate",4,"ngIf"],["class","go-back-button action-button","mat-stroked-button","",3,"click",4,"ngIf"],["mat-stroked-button","",1,"send-new-mail-button","action-button",3,"click"],["color","warn","mat-stroked-button","",1,"sign-out-button","action-button",3,"click"],["mode","indeterminate"],["mat-stroked-button","",1,"go-back-button","action-button",3,"click"]],template:function(t,e){1&t&&(i.Lc(0,wa,1,0,"ng-container",0),i.Lc(1,xa,18,7,"ng-template",null,1,i.Mc)),2&t&&i.qc("ngTemplateOutlet",e.verifyEmailTemplate)("ngTemplateOutletContext",e.verifyEmailContext)},directives:[c.q,S.a,S.d,Dr,gi,A.a,c.l,S.b,O.b,Xi.a],styles:[".material-icons[_ngcontent-%COMP%]{font-size:4rem}.verify-email[_ngcontent-%COMP%]{width:360px}.verify-email[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{color:#444;height:4rem;width:4rem}.verify-email[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{margin-top:16px}.verify-email[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .mat-subheading-2[_ngcontent-%COMP%]{margin-bottom:0}.verify-email[_ngcontent-%COMP%] .subtitle[_ngcontent-%COMP%]{margin:16px auto;text-align:justify}.verify-email[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{-webkit-margin-after:1em;-webkit-margin-before:1em;-webkit-margin-end:0;-webkit-margin-start:0;display:block}.verify-email[_ngcontent-%COMP%] mat-card-actions[_ngcontent-%COMP%]{margin-top:1rem;text-align:center}.verify-email[_ngcontent-%COMP%] mat-card-actions[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{width:100%}.verify-email[_ngcontent-%COMP%] mat-card-actions[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%] + .action-button[_ngcontent-%COMP%]{margin-top:1rem}"],changeDetection:0}),t}(),pu=function(){var t=function(){function t(e,n){Object(a.a)(this,t),this.dialogRef=e,this.data=n,this._disableConfirmActionButton=!1}return Object(s.a)(t,[{key:"disableConfirmActionButton",get:function(){return this.data.tosUrl&&this.data.privacyPolicyUrl?this._disableConfirmActionButton=!(this.checkTOS&&this.checkPrivacyPolicy):this.data.tosUrl&&!this.data.privacyPolicyUrl?this._disableConfirmActionButton=!this.checkTOS:!this.data.tosUrl&&this.data.privacyPolicyUrl&&(this._disableConfirmActionButton=!this.checkPrivacyPolicy),this._disableConfirmActionButton}},{key:"closeDialog",value:function(){this.dialogRef.close({checked:!this.disableConfirmActionButton,authProvider:this.data.authProvider})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(i.Sb(C.h),i.Sb(C.a))},t.\u0275cmp=i.Mb({type:t,selectors:[["ngx-auth-firebaseui-legality-dialog"]],decls:11,vars:3,consts:[["matDialogTitle",""],["fxLayout","column","fxLayoutAlign","start"],[3,"ngModel","ngModelChange",4,"ngIf"],["color","warn","id","decline-action","mat-raised-button","","matDialogClose",""],["color","primary","id","confirm-action","mat-raised-button","",3,"disabled","click"],[3,"ngModel","ngModelChange"],["target","_blank",3,"href"]],template:function(t,e){1&t&&(i.Yb(0,"h1",0),i.Nc(1,"Legal requirements"),i.Xb(),i.Yb(2,"mat-dialog-content"),i.Yb(3,"div",1),i.Lc(4,Oa,6,2,"mat-checkbox",2),i.Lc(5,Sa,6,2,"mat-checkbox",2),i.Xb(),i.Xb(),i.Yb(6,"mat-dialog-actions"),i.Yb(7,"button",3),i.Nc(8,"Decline "),i.Xb(),i.Yb(9,"button",4),i.gc("click",function(){return e.closeDialog()}),i.Nc(10,"Confirm "),i.Xb(),i.Xb()),2&t&&(i.Eb(4),i.qc("ngIf",e.data.tosUrl),i.Eb(1),i.qc("ngIf",e.data.privacyPolicyUrl),i.Eb(4),i.qc("disabled",e.disableConfirmActionButton))},directives:[C.i,C.f,Dr,gi,c.l,C.c,O.b,C.d,E.a,f.o,f.r],styles:[".mat-checkbox-label{display:flex;flex-wrap:wrap}mat-dialog-content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin-top:1.5rem}mat-dialog-actions[_ngcontent-%COMP%]{margin-top:1rem}"]}),t}(),bu=Object(J.g)([Object(J.m)({opacity:"{{opacity}}",transform:"scale({{scale}}) translate3d({{x}}, {{y}}, {{z}})"}),Object(J.e)("{{duration}} {{delay}} cubic-bezier(0.0, 0.0, 0.2, 1)",Object(J.m)("*"))],{params:{duration:"200ms",delay:"0ms",opacity:"0",scale:"1",x:"0",y:"0",z:"0"}}),mu=[Object(J.o)("animate",[Object(J.n)("void => *",[Object(J.p)(bu)])]),Object(J.o)("animateStagger",[Object(J.l)("50",Object(J.m)("*")),Object(J.l)("100",Object(J.m)("*")),Object(J.l)("200",Object(J.m)("*")),Object(J.n)("void => 50",Object(J.i)("@*",[Object(J.k)("50ms",[Object(J.f)()])],{optional:!0})),Object(J.n)("void => 100",Object(J.i)("@*",[Object(J.k)("100ms",[Object(J.f)()])],{optional:!0})),Object(J.n)("void => 200",Object(J.i)("@*",[Object(J.k)("200ms",[Object(J.f)()])],{optional:!0}))])],vu=new RegExp(['^(([^<>()[\\]\\.,;:\\s@"]+(\\.[^<>()\\[\\]\\.,;:\\s@"]+)*)','|(".+"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.',"[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+","[a-zA-Z]{2,}))$"].join("")),gu=new RegExp(["^[+]{0,1}[(]{0,1}[0-9]{1,4}[)]{0,1}[-\\s\\.]{0,1}[(]{0,1}[0-9]{1,4}[)]{0,1}[-\\s\\./0-9]{4,12}$"].join("")),yu=function(){var t=function(){function t(e,n,r,o,s,c,u){Object(a.a)(this,t),this.platformId=e,this.config=n,this.auth=r,this.authProcess=o,this.dialog=s,this.activatedRoute=c,this.changeDetectorRef=u,this.providers=hu.ALL,this.registrationEnabled=!0,this.resetPasswordEnabled=!0,this.guestEnabled=!0,this.selectedTabChange=new i.n,this.enableLengthRule=!0,this.enableLowerCaseLetterRule=!0,this.enableUpperCaseLetterRule=!0,this.enableDigitRule=!0,this.enableSpecialCharRule=!0,this.onStrengthChanged=new i.n,this.signOutText="Sign out",this.resetPasswordTabText="Reset e-mail address to password",this.resetPasswordInputText="Reset e-mail address to password",this.resetPasswordErrorRequiredText="E-mail is required to reset the password!",this.resetPasswordErrorPatternText="Please enter a valid e-mail address",this.resetPasswordActionButtonText="Reset",this.resetPasswordInstructionsText="Reset requested. Check your e-mail instructions.",this.signInTabText="Sign in",this.signInCardTitleText="Signing in",this.loginButtonText="Log In",this.forgotPasswordButtonText="Forgot Password ?",this.nameText="Name",this.nameErrorRequiredText="Name is required",this.nameErrorMinLengthText="The name is too short!",this.nameErrorMaxLengthText="The name is too long!",this.emailText="E-mail",this.emailErrorRequiredText="E-mail is required",this.emailErrorPatternText="Please enter a valid e-mail address",this.passwordText="Password",this.passwordErrorRequiredText="Password is required",this.passwordErrorMinLengthText="The password is too short!",this.passwordErrorMaxLengthText="The password is too long!",this.registerTabText="Register",this.registerCardTitleText="Registration",this.registerButtonText="Register",this.guestButtonText="continue as guest",this.emailConfirmationTitle="Confirm your e-mail address!",this.emailConfirmationText='A confirmation e-mail has been sent to you. Check your inbox and click on the link "Confirm my e-mail" to confirm your e-mail address.',this.authProvider=hu,this.authenticationError=!1,this.passReset=!1,this.authProviders=hu,this.onSuccess=o.onSuccessEmitter,this.onError=o.onErrorEmitter}return Object(s.a)(t,[{key:"color",get:function(){return this.authenticationError?"warn":"primary"}},{key:"ngOnInit",value:function(){var t=this;Object(c.u)(this.platformId)&&(this.onErrorSubscription=this.onError.subscribe(function(){return t.authenticationError=!0})),this.min=null!=this.min?Math.max(this.min,this.config.passwordMinLength):this.config.passwordMinLength,this.max=null!=this.max?Math.min(this.max,this.config.passwordMaxLength):this.config.passwordMaxLength,this.goBackURL=this.chooseBackUrl(),this.updateAuthSnackbarMessages(),this._initSignInFormGroupBuilder(),this._initSignUpFormGroupBuilder(),this._initResetPasswordFormGroupBuilder()}},{key:"ngAfterViewInit",value:function(){var t=this;this.passwordStrength&&this.passwordStrength.onStrengthChanged.subscribe(function(e){t.onStrengthChanged.emit(e)})}},{key:"ngOnChanges",value:function(t){(t.messageOnAuthSuccess||t.messageOnAuthError)&&this.updateAuthSnackbarMessages(),t.min&&(this.min=null!=this.min?Math.max(this.min,this.config.passwordMinLength):this.config.passwordMinLength),t.max&&(this.max=null!=this.max?Math.min(this.max,this.config.passwordMaxLength):this.config.passwordMaxLength),t.goBackURL&&(this.goBackURL=this.chooseBackUrl())}},{key:"ngOnDestroy",value:function(){this.onErrorSubscription&&this.onErrorSubscription.unsubscribe()}},{key:"onTabChange",value:function(t){this.selectedTabChange.emit(t),this.tabIndex=t.index}},{key:"signOut",value:function(){return Object(et.b)(this,void 0,void 0,Yi.a.mark(function t(){return Yi.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,this.isLoading=!0,this.changeDetectorRef.markForCheck(),t.next=5,this.authProcess.signOut();case 5:return t.prev=5,this.isLoading=!1,this.tabIndex=0,this.changeDetectorRef.markForCheck(),t.finish(5);case 10:case"end":return t.stop()}},t,this,[[0,,5,10]])}))}},{key:"signIn",value:function(){return Object(et.b)(this,void 0,void 0,Yi.a.mark(function t(){return Yi.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(this.signInFormGroup.valid){t.next=2;break}return t.abrupt("return");case 2:return t.prev=2,this.isLoading=!0,this.changeDetectorRef.markForCheck(),t.next=7,this.authProcess.signInWith(this.authProviders.EmailAndPassword,{email:this.signInFormGroup.value.email,password:this.signInFormGroup.value.password});case 7:return t.prev=7,this.isLoading=!1,this.changeDetectorRef.markForCheck(),t.finish(7);case 11:case"end":return t.stop()}},t,this,[[2,,7,11]])}))}},{key:"updateAuthSnackbarMessages",value:function(){this.authProcess.messageOnAuthSuccess=this.messageOnAuthSuccess,this.authProcess.messageOnAuthError=this.messageOnAuthError}},{key:"createForgotPasswordTab",value:function(){this.passwordResetWished=!0,this.tabIndex=2,this.changeDetectorRef.markForCheck()}},{key:"processLegalSignUP",value:function(t){var e=this;this.tosUrl||this.privacyPolicyUrl?(this.dialogRef=this.dialog.open(pu,{data:{tosUrl:this.tosUrl,privacyPolicyUrl:this.privacyPolicyUrl,authProvider:t}}),this.dialogRef.afterClosed().subscribe(function(t){t&&t.checked&&e._afterSignUpMiddleware(t.authProvider).then(function(){return e.signUpFormGroup.reset()}),e.dialogRef=null})):this._afterSignUpMiddleware(t).then(function(){return e.signUpFormGroup.reset()})}},{key:"signUp",value:function(){return Object(et.b)(this,void 0,void 0,Yi.a.mark(function t(){return Yi.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,this.isLoading=!0,this.changeDetectorRef.markForCheck(),t.next=5,this.authProcess.signUp(this.signUpFormGroup.value.name,{email:this.signUpFormGroup.value.email,password:this.signUpFormGroup.value.password});case 5:return t.abrupt("return",t.sent);case 6:return t.prev=6,this.isLoading=!1,this.changeDetectorRef.markForCheck(),t.finish(6);case 10:case"end":return t.stop()}},t,this,[[0,,6,10]])}))}},{key:"signUpAnonymously",value:function(){return Object(et.b)(this,void 0,void 0,Yi.a.mark(function t(){return Yi.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,this.isLoading=!0,this.changeDetectorRef.markForCheck(),t.next=5,this.authProcess.signInWith(this.authProvider.ANONYMOUS);case 5:return t.prev=5,this.isLoading=!1,this.changeDetectorRef.markForCheck(),t.finish(5);case 9:case"end":return t.stop()}},t,this,[[0,,5,9]])}))}},{key:"resetPassword",value:function(){var t=this;this.authProcess.resetPassword(this.resetPasswordEmailFormControl.value).then(function(){t.passReset=!0,t.changeDetectorRef.markForCheck()})}},{key:"chooseBackUrl",value:function(){return this.activatedRoute.snapshot.queryParams.redirectUrl||this.goBackURL||"/"}},{key:"_initSignInFormGroupBuilder",value:function(){this.signInFormGroup=new f.g({}),this.signInFormGroup.registerControl("email",this.signInEmailFormControl=new f.d("",[f.u.required,f.u.pattern(vu)])),this.signInFormGroup.registerControl("password",this.sigInPasswordFormControl=new f.d("",[f.u.required,f.u.minLength(this.min),f.u.maxLength(this.max)]))}},{key:"_initSignUpFormGroupBuilder",value:function(){this.signUpFormGroup=new f.g({name:this.sigUpNameFormControl=new f.d("",[f.u.required,f.u.minLength(this.config.nameMinLength),f.u.maxLength(this.config.nameMaxLength)]),email:this.sigUpEmailFormControl=new f.d("",[f.u.required,f.u.pattern(vu)]),password:this.sigUpPasswordFormControl=new f.d("",[f.u.required,f.u.minLength(this.min),f.u.maxLength(this.max)])})}},{key:"_initResetPasswordFormGroupBuilder",value:function(){this.resetPasswordFormGroup=new f.g({email:this.resetPasswordEmailFormControl=new f.d("",[f.u.required,f.u.pattern(vu)])})}},{key:"_afterSignUpMiddleware",value:function(t){return t===this.authProvider.ANONYMOUS?this.signUpAnonymously():this.signUp()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(i.Sb(i.D),i.Sb(Object(i.W)(function(){return eu})),i.Sb(Gi.a),i.Sb(fu),i.Sb(C.b),i.Sb(tt.a),i.Sb(i.h))},t.\u0275cmp=i.Mb({type:t,selectors:[["ngx-auth-firebaseui"]],viewQuery:function(t,e){var n;1&t&&(i.Sc(qo,1),i.Sc(na,1)),2&t&&(i.zc(n=i.hc())&&(e.matTabGroup=n.first),i.zc(n=i.hc())&&(e.passwordStrength=n.first))},inputs:{providers:"providers",registrationEnabled:"registrationEnabled",resetPasswordEnabled:"resetPasswordEnabled",guestEnabled:"guestEnabled",enableLengthRule:"enableLengthRule",enableLowerCaseLetterRule:"enableLowerCaseLetterRule",enableUpperCaseLetterRule:"enableUpperCaseLetterRule",enableDigitRule:"enableDigitRule",enableSpecialCharRule:"enableSpecialCharRule",signOutText:"signOutText",resetPasswordTabText:"resetPasswordTabText",resetPasswordInputText:"resetPasswordInputText",resetPasswordErrorRequiredText:"resetPasswordErrorRequiredText",resetPasswordErrorPatternText:"resetPasswordErrorPatternText",resetPasswordActionButtonText:"resetPasswordActionButtonText",resetPasswordInstructionsText:"resetPasswordInstructionsText",signInTabText:"signInTabText",signInCardTitleText:"signInCardTitleText",loginButtonText:"loginButtonText",forgotPasswordButtonText:"forgotPasswordButtonText",nameText:"nameText",nameErrorRequiredText:"nameErrorRequiredText",nameErrorMinLengthText:"nameErrorMinLengthText",nameErrorMaxLengthText:"nameErrorMaxLengthText",emailText:"emailText",emailErrorRequiredText:"emailErrorRequiredText",emailErrorPatternText:"emailErrorPatternText",passwordText:"passwordText",passwordErrorRequiredText:"passwordErrorRequiredText",passwordErrorMinLengthText:"passwordErrorMinLengthText",passwordErrorMaxLengthText:"passwordErrorMaxLengthText",registerTabText:"registerTabText",registerCardTitleText:"registerCardTitleText",registerButtonText:"registerButtonText",guestButtonText:"guestButtonText",emailConfirmationTitle:"emailConfirmationTitle",emailConfirmationText:"emailConfirmationText",min:"min",max:"max",goBackURL:"goBackURL",tabIndex:"tabIndex",providersTheme:"providersTheme",appearance:"appearance",tosUrl:"tosUrl",privacyPolicyUrl:"privacyPolicyUrl",messageOnAuthSuccess:"messageOnAuthSuccess",messageOnAuthError:"messageOnAuthError",messageOnEmailConfirmationSuccess:"messageOnEmailConfirmationSuccess",customValidator:"customValidator",verifyEmailTemplate:"verifyEmailTemplate",verifyEmailTitleText:"verifyEmailTitleText",verifyEmailConfirmationText:"verifyEmailConfirmationText",verifyEmailGoBackText:"verifyEmailGoBackText",sendNewVerificationEmailText:"sendNewVerificationEmailText"},outputs:{selectedTabChange:"selectedTabChange",onStrengthChanged:"onStrengthChanged",onSuccess:"onSuccess",onError:"onError"},features:[i.Cb],decls:4,vars:4,consts:[[4,"ngIf","ngIfElse"],["showForm",""],["fxLayout","row","fxLayoutAlign","center center",4,"ngIf","ngIfElse"],["signedInUser",""],["fxLayout","row","fxLayoutAlign","center center"],[3,"email","goBackURL","messageOnEmailConfirmationSuccess","sendNewVerificationEmailText","signOutText","template","verifyEmailConfirmationText","verifyEmailGoBackText","verifyEmailTitleText","signOut"],["fxLayout","column","fxLayoutAlign","center center",1,"signed-in-container"],["class","account-circle",3,"src",4,"ngIf","ngIfElse"],["noPhoto",""],[1,"user-display-name","mat-title"],[1,"user-email","mat-body-2"],[1,"actions"],["mode","indeterminate",4,"ngIf"],["class","go-back-button action-button","color","primary","mat-stroked-button","",3,"routerLink",4,"ngIf"],["color","warn","mat-stroked-button","",1,"sign-out-button","action-button",3,"click"],[1,"account-circle",3,"src"],[1,"account-circle"],["mode","indeterminate"],["color","primary","mat-stroked-button","",1,"go-back-button","action-button",3,"routerLink"],[3,"color","selectedIndex","selectedTabChange"],[3,"label"],[3,"formGroup","ngSubmit"],["fxLayout","column","fxLayoutAlign","center"],[3,"appearance"],["formControlName","email","matInput","","required","","autocomplete","username"],["matSuffix","",3,"color"],[4,"ngIf"],["formControlName","password","autocomplete","current-password","matInput","","required","",3,"maxlength","minlength","type"],["matSuffix",""],["togglePass",""],["align","end","aria-live","polite"],["mat-raised-button","","type","submit",1,"space-top",2,"margin-top","20px",3,"color","disabled"],["fxLayoutAlign","center"],["class","space-top","mat-button","",3,"color","click",4,"ngIf"],[3,"label",4,"ngIf"],["class","reset-password-tab",4,"ngIf"],[3,"providers","theme","tosUrl","privacyPolicyUrl",4,"ngIf"],["mat-button","",1,"space-top",3,"color","click"],["matInput","","required","",3,"formControl","maxlength","minlength"],["matInput","","required","","type","email","autocomplete","username",3,"formControl"],["fxLayout","column"],["matInput","","name","password","autocomplete","new-password","required","",3,"formControl","maxlength","minlength","type"],["toggle",""],["class","cut-text",4,"ngIf"],[3,"customValidator","enableDigitRule","enableLengthRule","enableLowerCaseLetterRule","enableSpecialCharRule","enableUpperCaseLetterRule","externalError","max","min","password"],["passwordStrength",""],["mat-raised-button","","type","submit",2,"margin-top","20px",3,"color","disabled"],["mat-button","","style","margin-top: 20px",3,"color","click",4,"ngIf"],[1,"cut-text"],["mat-button","",2,"margin-top","20px",3,"color","click"],[1,"reset-password-tab"],["mat-tab-label",""],[1,"reset-password-card"],[1,"full-width",3,"appearance"],["formControlName","email","matInput","","required","",3,"title"],["mat-raised-button","","type","submit",3,"color"],["mat-icon-button","",1,"reset-password-tab__close-button",3,"click"],[3,"providers","theme","tosUrl","privacyPolicyUrl"]],template:function(t,e){if(1&t&&(i.Lc(0,Ra,4,2,"ng-container",0),i.lc(1,"async"),i.Lc(2,fs,38,43,"ng-template",null,1,i.Mc)),2&t){var n=i.Ac(3);i.qc("ngIf",i.mc(1,2,e.authProcess.user$))("ngIfElse",n)}},directives:function(){return[c.l,Dr,gi,du,O.b,A.a,Xi.a,O.a,tt.d,qo,Ao,S.a,S.j,S.d,f.v,f.p,f.h,T.c,T.g,f.b,R.a,f.o,f.f,f.t,T.h,f.j,f.k,$o,T.f,j.a,T.b,S.e,f.e,na,Eo,S.b,Cu]},pipes:function(){return[c.b]},styles:[".mat-card[_ngcontent-%COMP%]{margin:2rem}.space-top[_ngcontent-%COMP%]{margin-top:.5rem}.full-width[_ngcontent-%COMP%]{width:100%}.cut-text[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.signed-in-container[_ngcontent-%COMP%] .account-circle[_ngcontent-%COMP%]{font-size:12rem;height:12rem;width:12rem}.signed-in-container[_ngcontent-%COMP%] img.account-circle[_ngcontent-%COMP%]{-o-object-fit:cover;border-radius:50%;object-fit:cover}.signed-in-container[_ngcontent-%COMP%] .sign-out-button[_ngcontent-%COMP%]{margin-top:2rem}.signed-in-container[_ngcontent-%COMP%] .user-display-name[_ngcontent-%COMP%]{margin-top:1rem}.signed-in-container[_ngcontent-%COMP%] .user-email[_ngcontent-%COMP%]{margin-top:-1rem}.signed-in-container[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{margin-top:2rem}.signed-in-container[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%], .signed-in-container[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] mat-progress-bar[_ngcontent-%COMP%]{width:100%}.signed-in-container[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-top:1rem}.reset-password-tab[_ngcontent-%COMP%] mat-progress-bar[_ngcontent-%COMP%]{margin-bottom:1rem}.reset-password-tab__close-button[_ngcontent-%COMP%]{align-items:center;display:flex;justify-content:space-between;width:100%}.reset-password-tab__close-button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:18px;position:relative;top:-1px}"],data:{animation:mu},changeDetection:0}),t}(),wu=function(){var t=function(){function t(e,n,r){Object(a.a)(this,t),this.afa=e,this.dialog=n,this.authProcess=r,this.layout="default",this.canLogout=!0,this.canViewAccount=!0,this.canDeleteAccount=!0,this.canEditAccount=!0,this.textProfile="Profile",this.textSignOut="Sign Out",this.onSignOut=new i.n}return Object(s.a)(t,[{key:"ngOnInit",value:function(){var t=this;this.user$=this.afa.user,this.user$.subscribe(function(e){t.user=e,t.displayNameInitials=e?t.getDisplayNameInitials(e.displayName):null})}},{key:"getDisplayNameInitials",value:function(t){if(!t)return null;var e=t.match(/\b\w/g)||[];return((e.shift()||"")+(e.pop()||"")).toUpperCase()}},{key:"openProfile",value:function(){var t=this,e=this.dialog.open(Ou).componentInstance;e.canDeleteAccount=this.canDeleteAccount,e.canEditAccount=this.canEditAccount,e.onSignOut.pipe(Object(U.a)(1)).subscribe(function(e){return t.onSignOut.emit()}),e.onAccountEdited.pipe(Object(U.a)(1)).subscribe(function(e){return t.displayNameInitials=t.getDisplayNameInitials(t.authProcess.user.displayName)})}},{key:"signOut",value:function(){return Object(et.b)(this,void 0,void 0,Yi.a.mark(function t(){return Yi.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.afa.signOut();case 3:this.onSignOut.emit(),t.next=9;break;case 6:t.prev=6,t.t0=t.catch(0),console.error("An error happened while signing out!",t.t0);case 9:case"end":return t.stop()}},t,this,[[0,6]])}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(i.Sb(Gi.a),i.Sb(C.b),i.Sb(fu))},t.\u0275cmp=i.Mb({type:t,selectors:[["ngx-auth-firebaseui-avatar"]],inputs:{layout:"layout",canLogout:"canLogout",canViewAccount:"canViewAccount",canDeleteAccount:"canDeleteAccount",canEditAccount:"canEditAccount",textProfile:"textProfile",textSignOut:"textSignOut",links:"links"},outputs:{onSignOut:"onSignOut"},decls:14,vars:13,consts:[["class","ngx-auth-firebaseui-avatar-button","aria-label","Open x-positioned menu","mat-mini-fab","","style","background-size: cover",3,"matMenuTriggerFor","matTooltip","background-image",4,"ngIf"],["xPosition","before",1,"before","ngx-auth-firebaseui-avatar-menu"],["posXMenu","matMenu"],["fxLayout","row","fxLayout.xs","column",2,"padding-left","10px","padding-right","10px",3,"ngStyle"],["mat-fab","","style","background-size: cover",3,"background-image",4,"ngIf"],["fxLayout","column",2,"padding-left","10px","padding-right","10px"],["mat-card-title",""],["mat-card-subtitle","",2,"font-style","italic"],["fxFlex","100","fxLayout","column",3,"ngStyle"],["class","links-menu",4,"ngFor","ngForOf"],["color","primary","fxLayoutAlign","center","mat-raised-button","",3,"click",4,"ngIf"],["color","warn","fxLayoutAlign","center","mat-raised-button","",3,"click",4,"ngIf"],["aria-label","Open x-positioned menu","mat-mini-fab","",1,"ngx-auth-firebaseui-avatar-button",2,"background-size","cover",3,"matMenuTriggerFor","matTooltip"],[4,"ngIf"],["mat-fab","",2,"background-size","cover"],[1,"links-menu"],["mat-menu-item","",3,"click"],["color","primary","fxLayoutAlign","center","mat-raised-button","",3,"click"],["color","warn","fxLayoutAlign","center","mat-raised-button","",3,"click"]],template:function(t,e){1&t&&(i.Lc(0,ps,2,5,"button",0),i.Yb(1,"mat-menu",1,2),i.Yb(3,"div",3),i.Lc(4,ms,2,3,"button",4),i.Yb(5,"div",5),i.Yb(6,"strong",6),i.Nc(7),i.Xb(),i.Yb(8,"em",7),i.Nc(9),i.Xb(),i.Xb(),i.Xb(),i.Yb(10,"div",8),i.Lc(11,vs,5,2,"div",9),i.Lc(12,gs,2,1,"button",10),i.Lc(13,ys,2,1,"button",11),i.Xb(),i.Xb()),2&t&&(i.qc("ngIf",e.user),i.Eb(3),i.qc("ngStyle",i.uc(9,ws,"default"===e.layout?0:10)),i.Eb(1),i.qc("ngIf","default"===e.layout),i.Eb(3),i.Oc(null==e.user?null:e.user.displayName),i.Eb(2),i.Oc(null==e.user?null:e.user.email),i.Eb(1),i.qc("ngStyle",i.uc(11,_s,"default"===e.layout?0:10)),i.Eb(1),i.qc("ngForOf",e.links),i.Eb(1),i.qc("ngIf",e.canViewAccount),i.Eb(1),i.qc("ngIf",e.canLogout))},directives:[c.l,P.a,Dr,c.m,yr,S.j,S.i,ei,c.k,O.b,P.d,ma,P.b,A.a,gi],styles:[".mat-raised-button[_ngcontent-%COMP%]{margin:.2rem 1rem}.links-menu[_ngcontent-%COMP%]{text-align:center}"]}),t}(),_u=function(){var t=function(){function t(e,n,r){Object(a.a)(this,t),this.platformId=e,this.authProcess=n,this.formBuilder=r,this.providers=hu.ALL,this.registrationEnabled=!0,this.resetPasswordEnabled=!0,this.titleText="LOGIN TO YOUR ACCOUNT",this.rememberMeText="Remember Me",this.loginButtonText="LOGIN",this.orLabelText="OR",this.forgotPasswordText="Forgot Password?",this.dontHaveAnAccountText="Don't have an account?",this.createAccountButtonText="Create an account",this.emailText="Email",this.emailErrorRequiredText="Email is required",this.emailErrorPatternText="Please enter a valid email address",this.passwordText="Password",this.passwordErrorRequiredText="Password is required",this.onCreateAccountRequested=new i.n,this.onResetPasswordRequested=new i.n,this.onLoginButtonClicked=new i.n,this.authProviders=hu,this.authenticationError=!1,this.onSuccess=n.onSuccessEmitter,this.onError=n.onErrorEmitter}return Object(s.a)(t,[{key:"color",get:function(){return this.authenticationError?"warn":"primary"}},{key:"colorAccent",get:function(){return this.authenticationError?"warn":"accent"}},{key:"ngOnInit",value:function(){var t=this;Object(c.u)(this.platformId)&&(this.onErrorSubscription=this.onError.subscribe(function(){return t.authenticationError=!0})),this.updateAuthSnackbarMessages(),this.loginForm=this.formBuilder.group({email:["",[f.u.required,f.u.email]],password:["",f.u.required]})}},{key:"updateAuthSnackbarMessages",value:function(){this.authProcess.messageOnAuthSuccess=this.messageOnAuthSuccess,this.authProcess.messageOnAuthError=this.messageOnAuthError}},{key:"login",value:function(){return Object(et.b)(this,void 0,void 0,Yi.a.mark(function t(){return Yi.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return this.onLoginButtonClicked.emit(),t.next=3,this.authProcess.signInWith(this.authProviders.EmailAndPassword,{email:this.loginForm.controls.email.value,password:this.loginForm.controls.password.value});case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}},t,this)}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(i.Sb(i.D),i.Sb(fu),i.Sb(f.c))},t.\u0275cmp=i.Mb({type:t,selectors:[["ngx-auth-firebaseui-login"]],inputs:{providers:"providers",registrationEnabled:"registrationEnabled",resetPasswordEnabled:"resetPasswordEnabled",titleText:"titleText",rememberMeText:"rememberMeText",loginButtonText:"loginButtonText",orLabelText:"orLabelText",forgotPasswordText:"forgotPasswordText",dontHaveAnAccountText:"dontHaveAnAccountText",createAccountButtonText:"createAccountButtonText",emailText:"emailText",emailErrorRequiredText:"emailErrorRequiredText",emailErrorPatternText:"emailErrorPatternText",passwordText:"passwordText",passwordErrorRequiredText:"passwordErrorRequiredText",logoUrl:"logoUrl",appearance:"appearance",messageOnAuthSuccess:"messageOnAuthSuccess",messageOnAuthError:"messageOnAuthError"},outputs:{onCreateAccountRequested:"onCreateAccountRequested",onResetPasswordRequested:"onResetPasswordRequested",onLoginButtonClicked:"onLoginButtonClicked",onSuccess:"onSuccess",onError:"onError"},decls:26,vars:41,consts:[["fxLayout","column","id","login"],["fxLayout","column","fxLayoutAlign","center center","id","login-form-wrapper"],["id","login-form"],["class","logo",4,"ngIf"],[1,"title"],["name","loginForm","novalidate","",3,"formGroup"],[3,"appearance"],["formControlName","email","matInput","","autocomplete","username",3,"placeholder"],["matSuffix","",3,"color"],[4,"ngIf"],["formControlName","password","matInput","","type","password","autocomplete","current-password",3,"placeholder"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","space-between center",1,"remember-forgot-password"],["class","forgot-password","mat-button","","type","button",3,"color","click",4,"ngIf"],["aria-label","LOG IN","id","loginButton","mat-raised-button","",1,"submit-button",3,"color","disabled","click"],["class","separator",4,"ngIf"],["fxLayoutAlign","center center","layout","column","theme","raised",3,"providers"],["class","register","fxLayout","column","fxLayoutAlign","center center",4,"ngIf"],[1,"logo"],["alt","logo",3,"src"],["mat-button","","type","button",1,"forgot-password",3,"color","click"],[1,"separator"],[1,"text"],["fxLayout","column","fxLayoutAlign","center center",1,"register"],["id","createAccountButton","mat-button","","type","button",3,"color","click"]],template:function(t,e){if(1&t&&(i.Yb(0,"div",0),i.Yb(1,"div",1),i.Yb(2,"div",2),i.Lc(3,ks,2,5,"div",3),i.Yb(4,"div",4),i.Nc(5),i.Xb(),i.Yb(6,"form",5),i.Yb(7,"mat-form-field",6),i.Tb(8,"input",7),i.Yb(9,"mat-icon",8),i.Nc(10,"email"),i.Xb(),i.Lc(11,xs,2,1,"mat-error",9),i.Lc(12,Os,2,1,"mat-error",9),i.Xb(),i.Yb(13,"mat-form-field",6),i.Tb(14,"input",10),i.Yb(15,"mat-icon",8),i.Nc(16,"lock"),i.Xb(),i.Yb(17,"mat-error"),i.Nc(18),i.Xb(),i.Xb(),i.Yb(19,"div",11),i.Lc(20,Ss,2,6,"button",12),i.Xb(),i.Yb(21,"button",13),i.gc("click",function(){return e.login()}),i.Nc(22),i.Xb(),i.Xb(),i.Lc(23,Es,3,5,"div",14),i.Tb(24,"ngx-auth-firebaseui-providers",15),i.Lc(25,js,5,13,"div",16),i.Xb(),i.Xb(),i.Xb()),2&t){var n=null,r=null;i.Eb(2),i.qc("@animateStagger",i.tc(25,ts)),i.Eb(1),i.qc("ngIf",e.logoUrl),i.Eb(1),i.qc("@animate",i.uc(27,Va,i.tc(26,Fa))),i.Eb(1),i.Oc(e.titleText),i.Eb(1),i.qc("@animate",i.uc(30,Va,i.tc(29,us)))("formGroup",e.loginForm),i.Eb(1),i.qc("@animate",i.uc(33,Va,i.tc(32,es)))("appearance",e.appearance),i.Eb(1),i.qc("placeholder",e.emailText),i.Eb(1),i.qc("color",e.color),i.Eb(2),i.qc("ngIf",null==(n=e.loginForm.get("email"))?null:n.hasError("required")),i.Eb(1),i.qc("ngIf",!(null!=(r=e.loginForm.get("email"))&&r.hasError("required"))&&(null==(r=e.loginForm.get("email"))?null:r.hasError("email"))),i.Eb(1),i.qc("@animate",i.uc(36,Va,i.tc(35,es)))("appearance",e.appearance),i.Eb(1),i.qc("placeholder",e.passwordText),i.Eb(1),i.qc("color",e.color),i.Eb(3),i.Pc(" ",e.passwordErrorRequiredText," "),i.Eb(1),i.qc("@animate",i.uc(39,Va,i.tc(38,es))),i.Eb(1),i.qc("ngIf",e.resetPasswordEnabled),i.Eb(1),i.qc("color",e.colorAccent)("disabled",e.loginForm.invalid),i.Eb(1),i.Pc(" ",e.loginButtonText," "),i.Eb(1),i.qc("ngIf",e.providers.length>0),i.Eb(1),i.qc("providers",e.providers),i.Eb(1),i.qc("ngIf",e.registrationEnabled)}},directives:function(){return[Dr,gi,c.l,f.v,f.p,f.h,T.c,f.b,R.a,f.o,f.f,A.a,T.h,T.b,O.b,Cu]},styles:['ngx-auth-firebaseui-login #login-form-wrapper{flex:1 0 auto;padding:32px}@media screen and (max-width:599px){ngx-auth-firebaseui-login #login-form-wrapper{padding:16px}}ngx-auth-firebaseui-login #login-form-wrapper #login-form{max-width:384px;padding:32px;text-align:center;width:384px}@media screen and (max-width:599px){ngx-auth-firebaseui-login #login-form-wrapper #login-form{padding:24px;width:100%}}ngx-auth-firebaseui-login #login-form-wrapper #login-form .logo{height:150px;margin:32px auto;width:150px}ngx-auth-firebaseui-login #login-form-wrapper #login-form .title{font-size:20px;margin:16px 0 32px}ngx-auth-firebaseui-login #login-form-wrapper #login-form form{text-align:left;width:100%}ngx-auth-firebaseui-login #login-form-wrapper #login-form form mat-form-field{width:100%}ngx-auth-firebaseui-login #login-form-wrapper #login-form form mat-checkbox{margin:0}ngx-auth-firebaseui-login #login-form-wrapper #login-form form .remember-forgot-password{font-size:13px;margin-top:8px}ngx-auth-firebaseui-login #login-form-wrapper #login-form form .remember-forgot-password .remember-me{margin-bottom:16px}ngx-auth-firebaseui-login #login-form-wrapper #login-form form .remember-forgot-password .forgot-password{font-size:13px;font-weight:500;margin-bottom:16px}ngx-auth-firebaseui-login #login-form-wrapper #login-form form .submit-button{display:block;margin:16px auto;width:220px}@media screen and (max-width:599px){ngx-auth-firebaseui-login #login-form-wrapper #login-form form .submit-button{width:90%}}ngx-auth-firebaseui-login #login-form-wrapper #login-form .register{font-weight:500;margin:32px auto 24px}ngx-auth-firebaseui-login #login-form-wrapper #login-form .register .text{margin-right:8px}ngx-auth-firebaseui-login #login-form-wrapper #login-form .separator{font-size:15px;font-weight:600;margin:24px auto;overflow:hidden;position:relative;width:100px}ngx-auth-firebaseui-login #login-form-wrapper #login-form .separator .text{display:inline-flex;padding:0 8px;position:relative;z-index:9999}ngx-auth-firebaseui-login #login-form-wrapper #login-form .separator .text:after,ngx-auth-firebaseui-login #login-form-wrapper #login-form .separator .text:before{border-top:1px solid;content:"";display:block;position:absolute;top:10px;width:30px}ngx-auth-firebaseui-login #login-form-wrapper #login-form .separator .text:before{right:100%}ngx-auth-firebaseui-login #login-form-wrapper #login-form .separator .text:after{left:100%}ngx-auth-firebaseui-login #login-form-wrapper #login-form button.apple-raised,ngx-auth-firebaseui-login #login-form-wrapper #login-form button.facebook-raised,ngx-auth-firebaseui-login #login-form-wrapper #login-form button.github-raised,ngx-auth-firebaseui-login #login-form-wrapper #login-form button.google-raised,ngx-auth-firebaseui-login #login-form-wrapper #login-form button.microsoft-raised,ngx-auth-firebaseui-login #login-form-wrapper #login-form button.twitter-raised,ngx-auth-firebaseui-login #login-form-wrapper #login-form button.yahoo-raised{color:#fff;font-size:13px;margin-bottom:8px;text-transform:none;width:192px}@media screen and (max-width:599px){ngx-auth-firebaseui-login #login-form-wrapper #login-form button{width:80%}}'],encapsulation:2,data:{animation:mu}}),t}(),ku=function(t){if(!t.parent||!t)return null;var e=t.parent.get("password"),n=t.parent.get("passwordConfirm");return e&&n?""===n.value||e.value===n.value?null:{passwordsNotMatching:!0}:null},xu=function(){var t=function(){function t(e,n,r,o){Object(a.a)(this,t),this.platformId=e,this.config=n,this.formBuilder=r,this.authProcess=o,this.titleText="CREATE AN ACCOUNT",this.termsAndConditionsText="I read and accept the",this.termsAndConditionsLinkText="terms and conditions",this.privacyPolicyText="I read and accept the",this.privacyPolicyLinkText="privacy policy",this.createAccountButtonText="CREATE AN ACCOUNT",this.alreadyHaveAccountText="Already have an account?",this.loginButtonText="LOGIN",this.nameText="Name",this.nameErrorRequiredText="Name is required",this.emailText="Email",this.emailErrorRequiredText="Email is required",this.emailErrorPatternText="Please enter a valid email address",this.passwordText="Password",this.passwordErrorRequiredText="Password is required",this.passwordConfirmationText="Password Confirmation",this.passwordConfirmationErrorRequiredText="Password confirmation is required",this.passwordErrorMatchText="Password must match",this.passwordErrorMinLengthText="The password is too short!",this.passwordErrorMaxLengthText="The password is too long!",this.onLoginRequested=new i.n,this.onCreateAccountButtonClicked=new i.n,this.authenticationError=!1,this.unsubscribeAll=new h.a,this.onSuccess=o.onSuccessEmitter,this.onError=o.onErrorEmitter}return Object(s.a)(t,[{key:"color",get:function(){return this.authenticationError?"warn":"primary"}},{key:"colorAccent",get:function(){return this.authenticationError?"warn":"accent"}},{key:"ngOnInit",value:function(){var t=this;Object(c.u)(this.platformId)&&(this.onErrorSubscription=this.onError.subscribe(function(){return t.authenticationError=!0})),this.registerForm=this.formBuilder.group({name:["",f.u.required],email:["",[f.u.required,f.u.email]],password:["",[f.u.required,f.u.minLength(this.config.passwordMinLength),f.u.maxLength(this.config.passwordMaxLength)]],passwordConfirm:["",[f.u.required,ku]],tos:[""],privacyPolicy:[""]}),this.tosUrl&&this.registerForm.controls.tos.setValidators(f.u.requiredTrue),this.privacyPolicyUrl&&this.registerForm.controls.privacyPolicy.setValidators(f.u.requiredTrue),this.registerForm.controls.password.valueChanges.pipe(Object(V.a)(this.unsubscribeAll)).subscribe(function(){t.registerForm.controls.passwordConfirm.updateValueAndValidity()})}},{key:"ngOnDestroy",value:function(){this.unsubscribeAll.next(),this.unsubscribeAll.complete()}},{key:"createAccount",value:function(){return Object(et.b)(this,void 0,void 0,Yi.a.mark(function t(){return Yi.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return this.onCreateAccountButtonClicked.emit(),t.next=3,this.authProcess.signUp(this.registerForm.controls.name.value,{email:this.registerForm.controls.email.value,password:this.registerForm.controls.password.value});case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}},t,this)}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(i.Sb(i.D),i.Sb(Object(i.W)(function(){return eu})),i.Sb(f.c),i.Sb(fu))},t.\u0275cmp=i.Mb({type:t,selectors:[["ngx-auth-firebaseui-register"]],inputs:{titleText:"titleText",termsAndConditionsText:"termsAndConditionsText",termsAndConditionsLinkText:"termsAndConditionsLinkText",privacyPolicyText:"privacyPolicyText",privacyPolicyLinkText:"privacyPolicyLinkText",createAccountButtonText:"createAccountButtonText",alreadyHaveAccountText:"alreadyHaveAccountText",loginButtonText:"loginButtonText",nameText:"nameText",nameErrorRequiredText:"nameErrorRequiredText",emailText:"emailText",emailErrorRequiredText:"emailErrorRequiredText",emailErrorPatternText:"emailErrorPatternText",passwordText:"passwordText",passwordErrorRequiredText:"passwordErrorRequiredText",passwordConfirmationText:"passwordConfirmationText",passwordConfirmationErrorRequiredText:"passwordConfirmationErrorRequiredText",passwordErrorMatchText:"passwordErrorMatchText",passwordErrorMinLengthText:"passwordErrorMinLengthText",passwordErrorMaxLengthText:"passwordErrorMaxLengthText",logoUrl:"logoUrl",appearance:"appearance",tosUrl:"tosUrl",privacyPolicyUrl:"privacyPolicyUrl"},outputs:{onLoginRequested:"onLoginRequested",onCreateAccountButtonClicked:"onCreateAccountButtonClicked",onSuccess:"onSuccess",onError:"onError"},decls:41,vars:69,consts:[["fxLayout","column","id","register"],["fxLayout","column","fxLayoutAlign","center center","id","register-form-wrapper"],["id","register-form"],["class","logo",4,"ngIf"],[1,"title"],["name","registerForm","novalidate","",3,"formGroup"],[3,"appearance"],["formControlName","name","matInput","",3,"placeholder"],["matSuffix","",3,"color"],["formControlName","email","matInput","","autocomplete","username",3,"placeholder"],[4,"ngIf"],["formControlName","password","matInput","","type","password","autocomplete","new-password",3,"placeholder"],["formControlName","passwordConfirm","matInput","","type","password","autocomplete","new-password",3,"placeholder"],["aria-label","CREATE AN ACCOUNT","id","createAccountButton","mat-raised-button","",1,"submit-button",3,"color","disabled","click"],["fxLayout","column","fxLayoutAlign","center center",1,"register"],[1,"text"],["id","loginButton","mat-button","","type","button",3,"color","click"],[1,"logo"],["alt","logo",3,"src"],["formControlName","tos","required","",3,"aria-label"],["target","_blank",3,"href"],["formControlName","privacyPolicy","required","",3,"aria-label"]],template:function(t,e){if(1&t&&(i.Yb(0,"div",0),i.Yb(1,"div",1),i.Yb(2,"div",2),i.Lc(3,Ts,2,5,"div",3),i.Yb(4,"div",4),i.Nc(5),i.Xb(),i.Yb(6,"form",5),i.Yb(7,"mat-form-field",6),i.Tb(8,"input",7),i.Yb(9,"mat-icon",8),i.Nc(10,"person"),i.Xb(),i.Yb(11,"mat-error"),i.Nc(12),i.Xb(),i.Xb(),i.Yb(13,"mat-form-field",6),i.Tb(14,"input",9),i.Yb(15,"mat-icon",8),i.Nc(16,"email"),i.Xb(),i.Lc(17,Is,2,1,"mat-error",10),i.Lc(18,As,2,1,"mat-error",10),i.Xb(),i.Yb(19,"mat-form-field",6),i.Tb(20,"input",11),i.Yb(21,"mat-icon",8),i.Nc(22,"lock"),i.Xb(),i.Lc(23,Rs,2,1,"mat-error",10),i.Lc(24,Ps,2,1,"mat-error",10),i.Lc(25,Ls,2,1,"mat-error",10),i.Xb(),i.Yb(26,"mat-form-field",6),i.Tb(27,"input",12),i.Yb(28,"mat-icon",8),i.Nc(29,"lock"),i.Xb(),i.Lc(30,Ns,2,1,"mat-error",10),i.Lc(31,Ds,2,1,"mat-error",10),i.Xb(),i.Lc(32,Ms,6,4,"div",10),i.Lc(33,Fs,6,4,"div",10),i.Yb(34,"button",13),i.gc("click",function(){return e.createAccount()}),i.Nc(35),i.Xb(),i.Xb(),i.Yb(36,"div",14),i.Yb(37,"span",15),i.Nc(38),i.Xb(),i.Yb(39,"button",16),i.gc("click",function(){return e.onLoginRequested.emit()}),i.Nc(40),i.Xb(),i.Xb(),i.Xb(),i.Xb(),i.Xb()),2&t){var n=null,r=null,o=null,a=null,s=null,c=null,u=null;i.Eb(2),i.qc("@animateStagger",i.tc(41,ts)),i.Eb(1),i.qc("ngIf",e.logoUrl),i.Eb(1),i.qc("@animate",i.uc(43,Va,i.tc(42,Fa))),i.Eb(1),i.Oc(e.titleText),i.Eb(1),i.qc("@animate",i.uc(46,Va,i.tc(45,us)))("formGroup",e.registerForm),i.Eb(1),i.qc("@animate",i.uc(49,Va,i.tc(48,es)))("appearance",e.appearance),i.Eb(1),i.qc("placeholder",e.nameText),i.Eb(1),i.qc("color",e.color),i.Eb(3),i.Pc(" ",e.nameErrorRequiredText," "),i.Eb(1),i.qc("@animate",i.uc(52,Va,i.tc(51,es)))("appearance",e.appearance),i.Eb(1),i.qc("placeholder",e.emailText),i.Eb(1),i.qc("color",e.color),i.Eb(2),i.qc("ngIf",null==(n=e.registerForm.get("email"))?null:n.hasError("required")),i.Eb(1),i.qc("ngIf",null==(r=e.registerForm.get("email"))?null:r.hasError("email")),i.Eb(1),i.qc("@animate",i.uc(55,Va,i.tc(54,es)))("appearance",e.appearance),i.Eb(1),i.qc("placeholder",e.passwordText),i.Eb(1),i.qc("color",e.color),i.Eb(2),i.qc("ngIf",null==(o=e.registerForm.get("password"))?null:o.hasError("required")),i.Eb(1),i.qc("ngIf",null==(a=e.registerForm.get("password"))?null:a.hasError("minlength")),i.Eb(1),i.qc("ngIf",null==(s=e.registerForm.get("password"))?null:s.hasError("maxlength")),i.Eb(1),i.qc("@animate",i.uc(58,Va,i.tc(57,es)))("appearance",e.appearance),i.Eb(1),i.qc("placeholder",e.passwordConfirmationText),i.Eb(1),i.qc("color",e.color),i.Eb(2),i.qc("ngIf",null==(c=e.registerForm.get("passwordConfirm"))?null:c.hasError("required")),i.Eb(1),i.qc("ngIf",!(null!=(u=e.registerForm.get("passwordConfirm"))&&u.hasError("required"))&&(null==(u=e.registerForm.get("passwordConfirm"))?null:u.hasError("passwordsNotMatching"))),i.Eb(1),i.qc("ngIf",e.tosUrl),i.Eb(1),i.qc("ngIf",e.privacyPolicyUrl),i.Eb(1),i.qc("color",e.colorAccent)("disabled",e.registerForm.invalid),i.Eb(1),i.Pc(" ",e.createAccountButtonText," "),i.Eb(1),i.qc("@animate",i.uc(61,Va,i.tc(60,us))),i.Eb(1),i.qc("@animate",i.uc(64,Va,i.tc(63,ns))),i.Eb(1),i.Pc(" ",e.alreadyHaveAccountText," "),i.Eb(1),i.qc("@animate",i.uc(67,Va,i.tc(66,Za)))("color",e.colorAccent),i.Eb(1),i.Pc(" ",e.loginButtonText," ")}},directives:[Dr,gi,c.l,f.v,f.p,f.h,T.c,f.b,R.a,f.o,f.f,A.a,T.h,T.b,O.b,E.a,E.c,f.t],styles:['ngx-auth-firebaseui-register #register{background-size:cover;width:100%}ngx-auth-firebaseui-register #register #register-form-wrapper{flex:1 0 auto;padding:32px}@media screen and (max-width:599px){ngx-auth-firebaseui-register #register #register-form-wrapper{padding:16px}}ngx-auth-firebaseui-register #register #register-form-wrapper #register-form{max-width:384px;padding:32px;text-align:center;width:384px}@media screen and (max-width:599px){ngx-auth-firebaseui-register #register #register-form-wrapper #register-form{padding:24px;width:100%}}ngx-auth-firebaseui-register #register #register-form-wrapper #register-form .logo{margin:32px auto;width:128px}ngx-auth-firebaseui-register #register #register-form-wrapper #register-form .title{font-size:20px;margin:16px 0 32px}ngx-auth-firebaseui-register #register #register-form-wrapper #register-form form{text-align:left;width:100%}ngx-auth-firebaseui-register #register #register-form-wrapper #register-form form mat-form-field{width:100%}ngx-auth-firebaseui-register #register #register-form-wrapper #register-form form mat-checkbox{margin:0}ngx-auth-firebaseui-register #register #register-form-wrapper #register-form form .terms{margin:16px 0 32px}ngx-auth-firebaseui-register #register #register-form-wrapper #register-form form .terms a{font-size:16px;margin-left:4px}ngx-auth-firebaseui-register #register #register-form-wrapper #register-form form .submit-button{display:block;margin:16px auto;width:220px}@media screen and (max-width:599px){ngx-auth-firebaseui-register #register #register-form-wrapper #register-form form .submit-button{width:90%}}ngx-auth-firebaseui-register #register #register-form-wrapper #register-form .register{font-weight:500;margin:32px auto 24px}ngx-auth-firebaseui-register #register #register-form-wrapper #register-form .register .text{margin-right:8px}ngx-auth-firebaseui-register #register #register-form-wrapper #register-form .separator{font-size:15px;font-weight:600;margin:24px auto;overflow:hidden;position:relative;width:100px}ngx-auth-firebaseui-register #register #register-form-wrapper #register-form .separator .text{display:inline-flex;padding:0 8px;position:relative;z-index:9999}ngx-auth-firebaseui-register #register #register-form-wrapper #register-form .separator .text:after,ngx-auth-firebaseui-register #register #register-form-wrapper #register-form .separator .text:before{border-top:1px solid;content:"";display:block;position:absolute;top:10px;width:30px}ngx-auth-firebaseui-register #register #register-form-wrapper #register-form .separator .text:before{right:100%}ngx-auth-firebaseui-register #register #register-form-wrapper #register-form .separator .text:after{left:100%}ngx-auth-firebaseui-register #register #register-form-wrapper #register-form button.facebook,ngx-auth-firebaseui-register #register #register-form-wrapper #register-form button.google{color:#fff;font-size:13px;text-transform:none;width:192px}@media screen and (max-width:599px){ngx-auth-firebaseui-register #register #register-form-wrapper #register-form button{width:80%}}ngx-auth-firebaseui-register #register #register-form-wrapper #register-form button.google{background-color:#d73d32;margin-bottom:8px}ngx-auth-firebaseui-register #register #register-form-wrapper #register-form button.facebook{background-color:#3f5c9a}ngx-auth-firebaseui-register ::ng-deep .mat-checkbox-label{display:flex;flex-wrap:wrap}'],encapsulation:2,data:{animation:mu}}),t}(),Ou=function(){var t=function(){function t(e,n,r,o){Object(a.a)(this,t),this.auth=e,this.authProcess=n,this.fireStoreService=r,this.config=o,this.canLogout=!0,this.canEditAccount=!0,this.canDeleteAccount=!0,this.notLoggedInText="You are not logged in!",this.emailVerifiedText="email is verified",this.emailNotVerifiedText="email is not verified",this.cancelButtonText="cancel",this.saveChangesButtonText="Save changes",this.editButtonText="edit",this.signoutButtonText="Sign out",this.deleteAccountButtonText="Delete account",this.nameText="Name",this.nameErrorRequiredText="Name is required",this.emailText="Email",this.emailErrorRequiredText="Email is required",this.emailErrorPatternText="Please enter a valid email address",this.phoneText="Phone number",this.phoneHintText="\n The phone number is international. Therefore, it should start with a + sign or 00,\n followed by the country code, - and national number e.g: +49-12345678 or 0041-1234567890\n\n NOTE : the phone number must be a valid phone credential !!",this.phoneErrorPatternText="Please enter a valid phone number",this.onSignOut=new i.n,this.onAccountEdited=new i.n,this.onAccountDeleted=new i.n}return Object(s.a)(t,[{key:"changeEditMode",value:function(){var t=this;this.editMode?(this.reset(),this.editMode=!1):this.initUpdateFormGroup().subscribe(function(e){t.updateFormGroup=e,t.editMode=!0})}},{key:"reset",value:function(){this.updateFormGroup.reset(),this.updateFormGroup.disable(),this.updateFormGroup=null}},{key:"save",value:function(){return Object(et.b)(this,void 0,void 0,Yi.a.mark(function t(){var e,n;return Yi.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.updateFormGroup.dirty){t.next=30;break}if(this.editMode=!1,e=this.authProcess.user,n=[],t.prev=4,!this.updateNameFormControl.dirty){t.next=9;break}return t.next=8,e.updateProfile({displayName:this.updateNameFormControl.value});case 8:n.push("your name has been updated to ".concat(e.displayName));case 9:if(!this.updateEmailFormControl.dirty){t.next=13;break}return t.next=12,e.updateEmail(this.updateEmailFormControl.value);case 12:n.push("your email has been updated to ".concat(e.email));case 13:if(!this.updatePhoneNumberFormControl.dirty){t.next=18;break}return t.next=16,e.updatePhoneNumber(this.updatePhoneNumberFormControl.value);case 16:console.log("phone number = ",this.updatePhoneNumberFormControl.value),n.push("your phone number has been updated to ".concat(e.phoneNumber));case 18:if(!this.config.enableFirestoreSync){t.next=21;break}return t.next=21,this.fireStoreService.updateUserData(this.authProcess.parseUserInfo(e));case 21:t.next=27;break;case 23:t.prev=23,t.t0=t.catch(4),this.authProcess.showToast(t.t0&&t.t0.message?t.t0.message:t.t0),console.error(t.t0);case 27:n.length>0&&this.authProcess.showToast(n.join("\\n")),this.onAccountEdited.emit(),this.updateFormGroup.reset();case 30:case"end":return t.stop()}},t,this,[[4,23]])}))}},{key:"signOut",value:function(){var t=this;this.auth.signOut().then(function(){return t.onSignOut.emit()}).catch(function(t){return console.error("An error happened while signing out!",t)})}},{key:"deleteAccount",value:function(){return Object(et.b)(this,void 0,void 0,Yi.a.mark(function t(){var e;return Yi.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,e=this.authProcess.user,t.next=4,this.authProcess.user.delete();case 4:return t.next=6,this.fireStoreService.deleteUserData(e.uid);case 6:this.onAccountDeleted.emit(),this.editMode=!1,console.log("Your account has been successfully deleted!"),this.authProcess.showToast("Your account has been successfully deleted!"),t.next=16;break;case 12:t.prev=12,t.t0=t.catch(0),console.log("Error while delete user account",t.t0),this.authProcess.showToast("Error occurred while deleting your account: ".concat(t.t0.message));case 16:case"end":return t.stop()}},t,this,[[0,12]])}))}},{key:"initUpdateFormGroup",value:function(){var t=this;return this.authProcess.user$.pipe(Object(U.a)(1),Object(z.a)(function(e){var n=new f.g({name:t.updateNameFormControl=new f.d({value:e.displayName,disabled:t.editMode},[f.u.required,f.u.minLength(t.config.nameMinLength),f.u.maxLength(t.config.nameMaxLength)]),email:t.updateEmailFormControl=new f.d({value:e.email,disabled:t.editMode},[f.u.required,f.u.pattern(vu)]),phoneNumber:t.updatePhoneNumberFormControl=new f.d({value:e.phoneNumber,disabled:t.editMode},[f.u.pattern(gu)])});return n.enable(),n}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(i.Sb(Gi.a),i.Sb(fu),i.Sb(ru),i.Sb(Object(i.W)(function(){return eu})))},t.\u0275cmp=i.Mb({type:t,selectors:[["ngx-auth-firebaseui-user"]],inputs:{canLogout:"canLogout",canEditAccount:"canEditAccount",canDeleteAccount:"canDeleteAccount",notLoggedInText:"notLoggedInText",emailVerifiedText:"emailVerifiedText",emailNotVerifiedText:"emailNotVerifiedText",cancelButtonText:"cancelButtonText",saveChangesButtonText:"saveChangesButtonText",editButtonText:"editButtonText",signoutButtonText:"signoutButtonText",deleteAccountButtonText:"deleteAccountButtonText",nameText:"nameText",nameErrorRequiredText:"nameErrorRequiredText",emailText:"emailText",emailErrorRequiredText:"emailErrorRequiredText",emailErrorPatternText:"emailErrorPatternText",phoneText:"phoneText",phoneHintText:"phoneHintText",phoneErrorPatternText:"phoneErrorPatternText",editMode:"editMode",appearance:"appearance"},outputs:{onSignOut:"onSignOut",onAccountEdited:"onAccountEdited",onAccountDeleted:"onAccountDeleted"},decls:6,vars:5,consts:[[4,"ngIf","ngIfThen","ngIfElse"],["authenticated",""],["none",""],[4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center"],["mat-card-avatar","",3,"src",4,"ngIf"],["emailVerified",""],["emailNotVerified",""],["edit",""],["readonly",""],["mat-card-avatar","",3,"src"],["color","primary","matTooltipPosition","after",3,"matTooltip"],["color","warn","matTooltipPosition","after",3,"matTooltip"],[3,"formGroup","submit"],["fxLayoutAlign","center"],["color","warn","mat-raised-button","",1,"edit-button",3,"click"],[1,"full-width",3,"appearance"],["matInput","",3,"formControl","placeholder"],["matSuffix",""],["align","end","aria-live","polite"],["class","full-width",3,"appearance",4,"ngIf"],["fxLayout","column"],["color","primary","mat-button","","type","submit"],["matInput","","type","tel",3,"formControl","placeholder"],["class","edit-button","color","primary","mat-raised-button","",3,"click",4,"ngIf"],["matInput","",3,"disabled","value","placeholder"],["color","primary","matSuffix",""],["color","primary","mat-button","",3,"click",4,"ngIf"],["color","warn","mat-button","",3,"click",4,"ngIf"],["color","primary","mat-raised-button","",1,"edit-button",3,"click"],["color","primary","mat-button","",3,"click"],["color","warn","mat-button","",3,"click"],["fxLayout","row","fxLayoutAlign","center center",1,"none-card"],["fxLayout","row","fxLayoutAlign","center center"],["color","accent"]],template:function(t,e){if(1&t&&(i.Lc(0,Vs,1,0,"div",0),i.lc(1,"async"),i.Lc(2,rc,2,3,"ng-template",null,1,i.Mc),i.Lc(4,ic,6,1,"ng-template",null,2,i.Mc)),2&t){var n=i.Ac(3),r=i.Ac(5);i.qc("ngIf",i.mc(1,3,e.auth.authState))("ngIfThen",n)("ngIfElse",r)}},directives:[c.l,S.a,S.f,Dr,gi,S.c,A.a,ma,S.d,f.v,f.p,f.h,O.b,T.c,T.g,R.a,f.b,f.o,f.e,T.h,T.f,S.b,T.b],pipes:[c.b],styles:[".edit-button[_ngcontent-%COMP%]{margin:1rem}.full-width[_ngcontent-%COMP%]{width:100%}.cut-text[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.none-card[_ngcontent-%COMP%]{min-height:430px}.none-card[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:rgba(0,0,0,.54);font-size:24px;text-align:center}"]}),t}(),Su=function(t){return t.DEFAULT="default",t.CLASSIC="classic",t.STROKED="stroked",t.FAB="fab",t.MINI_FAB="mini-fab",t.RAISED="raised",t}({}),Eu=function(t){return t.ROW="row",t.COLUMN="column",t}({}),Cu=function(){var t=function(){function t(e,n){Object(a.a)(this,t),this.authProcess=e,this.dialog=n,this.layout=Eu.ROW,this.providers=hu.ALL,this.themes=Su,this.authProvider=hu,this.onSuccess=e.onSuccessEmitter,this.onError=e.onErrorEmitter}return Object(s.a)(t,[{key:"processLegalSignUP",value:function(t){var e=this;this.tosUrl||this.privacyPolicyUrl?(this.dialogRef=this.dialog.open(pu,{data:{tosUrl:this.tosUrl,privacyPolicyUrl:this.privacyPolicyUrl,authProvider:t}}),this.dialogRef.afterClosed().subscribe(function(n){n&&n.checked&&e.authProcess.signInWith(t),e.dialogRef=null})):this.authProcess.signInWith(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(i.Sb(fu),i.Sb(C.b))},t.\u0275cmp=i.Mb({type:t,selectors:[["ngx-auth-firebaseui-providers"]],inputs:{layout:"layout",providers:"providers",theme:"theme",tosUrl:"tosUrl",privacyPolicyUrl:"privacyPolicyUrl"},outputs:{onSuccess:"onSuccess",onError:"onError"},decls:7,vars:8,consts:[[3,"ngSwitch"],["fxLayout.xs","column",3,"fxLayoutAlign","fxLayout",4,"ngSwitchDefault"],["class","buttons-classic","fxLayout.xs","column",3,"fxLayoutAlign","fxLayout",4,"ngSwitchCase"],["class","buttons-raised","fxLayout.xs","column",3,"fxLayoutAlign","fxLayout",4,"ngSwitchCase"],["class","buttons-raised",3,"fxLayoutAlign","fxLayout",4,"ngSwitchCase"],["class","buttons-raised","fxLayoutAlign.xs","center center",3,"fxLayoutAlign","fxLayout",4,"ngSwitchCase"],["fxLayout.xs","column",3,"fxLayoutAlign","fxLayout"],["mat-button","",3,"ngClass.xs","click",4,"ngIf"],["class","apple-filled","mat-button","",3,"ngClass.xs","click",4,"ngIf"],["class","facebook-filled","mat-button","",3,"ngClass.xs","click",4,"ngIf"],["class","twitter-filled","mat-button","",3,"ngClass.xs","click",4,"ngIf"],["mat-button","",3,"ngClass.xs","click"],["svgIcon","google-colored"],["mat-button","",1,"apple-filled",3,"ngClass.xs","click"],["svgIcon","apple"],["mat-button","",1,"facebook-filled",3,"ngClass.xs","click"],["svgIcon","facebook"],["mat-button","",1,"twitter-filled",3,"ngClass.xs","click"],["svgIcon","twitter"],["svgIcon","github"],["svgIcon","microsoft"],["svgIcon","yahoo"],["fxLayout.xs","column",1,"buttons-classic",3,"fxLayoutAlign","fxLayout"],["class","google-classic","mat-button","",3,"ngClass.xs","click",4,"ngIf"],["class","apple-classic","mat-button","",3,"ngClass.xs","click",4,"ngIf"],["class","facebook-classic","mat-button","",3,"ngClass.xs","click",4,"ngIf"],["class","twitter-classic","mat-button","",3,"ngClass.xs","click",4,"ngIf"],["class","github-classic","mat-button","",3,"ngClass.xs","click",4,"ngIf"],["class","microsoft-classic","mat-button","",3,"ngClass.xs","click",4,"ngIf"],["class","yahoo-classic","mat-button","",3,"ngClass.xs","click",4,"ngIf"],["mat-button","",1,"google-classic",3,"ngClass.xs","click"],["mat-button","",1,"apple-classic",3,"ngClass.xs","click"],["mat-button","",1,"facebook-classic",3,"ngClass.xs","click"],["mat-button","",1,"twitter-classic",3,"ngClass.xs","click"],["mat-button","",1,"github-classic",3,"ngClass.xs","click"],["mat-button","",1,"microsoft-classic",3,"ngClass.xs","click"],["mat-button","",1,"yahoo-classic",3,"ngClass.xs","click"],["class","google-classic","mat-stroked-button","",3,"ngClass.xs","click",4,"ngIf"],["class","apple-classic","mat-stroked-button","",3,"ngClass.xs","click",4,"ngIf"],["class","facebook-classic","mat-stroked-button","",3,"ngClass.xs","click",4,"ngIf"],["class","twitter-classic","mat-stroked-button","",3,"ngClass.xs","click",4,"ngIf"],["class","github-classic","mat-stroked-button","",3,"ngClass.xs","click",4,"ngIf"],["class","microsoft-classic","mat-stroked-button","",3,"ngClass.xs","click",4,"ngIf"],["class","yahoo-classic","mat-stroked-button","",3,"ngClass.xs","click",4,"ngIf"],["mat-stroked-button","",1,"google-classic",3,"ngClass.xs","click"],["mat-stroked-button","",1,"apple-classic",3,"ngClass.xs","click"],["mat-stroked-button","",1,"facebook-classic",3,"ngClass.xs","click"],["mat-stroked-button","",1,"twitter-classic",3,"ngClass.xs","click"],["mat-stroked-button","",1,"github-classic",3,"ngClass.xs","click"],["mat-stroked-button","",1,"microsoft-classic",3,"ngClass.xs","click"],["mat-stroked-button","",1,"yahoo-classic",3,"ngClass.xs","click"],["fxLayout.xs","column",1,"buttons-raised",3,"fxLayoutAlign","fxLayout"],["class","google-raised","mat-raised-button","",3,"ngClass.xs","click",4,"ngIf"],["class","apple-raised","mat-raised-button","",3,"ngClass.xs","click",4,"ngIf"],["class","facebook-raised","mat-raised-button","",3,"ngClass.xs","click",4,"ngIf"],["class","twitter-raised","mat-raised-button","",3,"ngClass.xs","click",4,"ngIf"],["class","github-raised","mat-raised-button","",3,"ngClass.xs","click",4,"ngIf"],["class","microsoft-raised","mat-raised-button","",3,"ngClass.xs","click",4,"ngIf"],["class","yahoo-raised","mat-raised-button","",3,"ngClass.xs","click",4,"ngIf"],["mat-raised-button","",1,"google-raised",3,"ngClass.xs","click"],["mat-raised-button","",1,"apple-raised",3,"ngClass.xs","click"],["mat-raised-button","",1,"facebook-raised",3,"ngClass.xs","click"],["mat-raised-button","",1,"twitter-raised",3,"ngClass.xs","click"],["mat-raised-button","",1,"github-raised",3,"ngClass.xs","click"],["mat-raised-button","",1,"microsoft-raised",3,"ngClass.xs","click"],["mat-raised-button","",1,"yahoo-raised",3,"ngClass.xs","click"],[1,"buttons-raised",3,"fxLayoutAlign","fxLayout"],["class","google-raised","mat-fab","",3,"click",4,"ngIf"],["class","apple-raised","mat-fab","",3,"click",4,"ngIf"],["class","facebook-raised","mat-fab","",3,"click",4,"ngIf"],["class","twitter-raised","mat-fab","",3,"click",4,"ngIf"],["class","github-raised","mat-fab","",3,"click",4,"ngIf"],["class","microsoft","mat-fab","",3,"click",4,"ngIf"],["class","yahoo-raised","mat-fab","",3,"click",4,"ngIf"],["mat-fab","",1,"google-raised",3,"click"],["svgIcon","google"],["mat-fab","",1,"apple-raised",3,"click"],["mat-fab","",1,"facebook-raised",3,"click"],["mat-fab","",1,"twitter-raised",3,"click"],["mat-fab","",1,"github-raised",3,"click"],["mat-fab","",1,"microsoft",3,"click"],["mat-fab","",1,"yahoo-raised",3,"click"],["fxLayoutAlign.xs","center center",1,"buttons-raised",3,"fxLayoutAlign","fxLayout"],["class","google-raised","fxFlexAlign","center","mat-mini-fab","",3,"click",4,"ngIf"],["class","apple-raised","mat-mini-fab","",3,"click",4,"ngIf"],["class","facebook-raised","mat-mini-fab","",3,"click",4,"ngIf"],["class","twitter-raised","mat-mini-fab","",3,"click",4,"ngIf"],["class","github-raised","mat-mini-fab","",3,"click",4,"ngIf"],["class","microsoft","mat-mini-fab","",3,"click",4,"ngIf"],["class","yahoo-raised","mat-mini-fab","",3,"click",4,"ngIf"],["fxFlexAlign","center","mat-mini-fab","",1,"google-raised",3,"click"],["mat-mini-fab","",1,"apple-raised",3,"click"],["mat-mini-fab","",1,"facebook-raised",3,"click"],["mat-mini-fab","",1,"twitter-raised",3,"click"],["svgIcon","twitter",1,"icon-white"],["mat-mini-fab","",1,"github-raised",3,"click"],["mat-mini-fab","",1,"microsoft",3,"click"],["mat-mini-fab","",1,"yahoo-raised",3,"click"]],template:function(t,e){1&t&&(i.Yb(0,"div",0),i.Lc(1,dc,8,9,"div",1),i.Lc(2,_c,8,9,"div",2),i.Lc(3,Tc,8,9,"div",2),i.Lc(4,Mc,8,9,"div",3),i.Lc(5,Hc,8,9,"div",4),i.Lc(6,$c,8,9,"div",5),i.Xb()),2&t&&(i.qc("@animateStagger",i.tc(7,ts))("ngSwitch",e.theme),i.Eb(2),i.qc("ngSwitchCase",e.themes.CLASSIC),i.Eb(1),i.qc("ngSwitchCase",e.themes.STROKED),i.Eb(1),i.qc("ngSwitchCase",e.themes.RAISED),i.Eb(1),i.qc("ngSwitchCase",e.themes.FAB),i.Eb(1),i.qc("ngSwitchCase",e.themes.MINI_FAB))},directives:[c.n,c.p,c.o,Dr,gi,c.l,O.b,ir,A.a,fi],styles:["[_nghost-%COMP%]{display:block}.space-full-xs[_ngcontent-%COMP%]{margin:.4rem;width:100%}.apple-filled[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%] svg[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{fill:#000}.facebook-filled[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{fill:#385899}.twitter-filled[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{fill:#1da1f2}.buttons-raised[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#fff!important}.buttons-raised[_ngcontent-%COMP%] .google-raised[_ngcontent-%COMP%]{background-color:#db4437}.buttons-raised[_ngcontent-%COMP%] .apple-raised[_ngcontent-%COMP%]{background-color:#000}.buttons-raised[_ngcontent-%COMP%] .facebook-raised[_ngcontent-%COMP%]{background-color:#385899}.buttons-raised[_ngcontent-%COMP%] .twitter-raised[_ngcontent-%COMP%]{background-color:#1da1f2}.buttons-raised[_ngcontent-%COMP%] .github-raised[_ngcontent-%COMP%]{background-color:#000}.buttons-raised[_ngcontent-%COMP%] .microsoft-raised[_ngcontent-%COMP%]{background-color:#0078d4}.buttons-raised[_ngcontent-%COMP%] .yahoo-raised[_ngcontent-%COMP%]{background-color:#720e9e}.buttons-raised[_ngcontent-%COMP%] .phone-raised[_ngcontent-%COMP%]{background-color:#02bd7e}.buttons-classic[_ngcontent-%COMP%] button.google-classic[_ngcontent-%COMP%]{color:#db4437!important}.buttons-classic[_ngcontent-%COMP%] button.apple-classic[_ngcontent-%COMP%]{color:#000!important}.buttons-classic[_ngcontent-%COMP%] .facebook-classic[_ngcontent-%COMP%]{color:#385899!important}.buttons-classic[_ngcontent-%COMP%] .twitter-classic[_ngcontent-%COMP%]{color:#1da1f2!important}.buttons-classic[_ngcontent-%COMP%] .github-classic[_ngcontent-%COMP%]{color:#000!important}.buttons-classic[_ngcontent-%COMP%] .microsoft-classic[_ngcontent-%COMP%]{color:#0078d4!important}.buttons-classic[_ngcontent-%COMP%] .yahoo-classic[_ngcontent-%COMP%]{color:#720e9e!important}.buttons-classic[_ngcontent-%COMP%] .phone-classic[_ngcontent-%COMP%]{color:#02bd7e}.icon-white[_ngcontent-%COMP%]{color:#fff}.icon-white[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{fill:#fff}button.microsoft[_ngcontent-%COMP%]{background:#f8f9fa}"],data:{animation:mu}}),t}(),ju={enableFirestoreSync:!0,toastMessageOnAuthSuccess:!0,toastMessageOnAuthError:!0,authGuardFallbackURL:"/",authGuardLoggedInURL:"/",passwordMaxLength:60,passwordMinLength:8,nameMaxLength:50,nameMinLength:2,guardProtectedRoutesUntilEmailIsVerified:!0,enableEmailVerification:!0,useRawUserCredential:!1};function Tu(t){return Object.assign({},ju,t)}var Iu=function(){var t=function(){function t(e,n,r){Object(a.a)(this,t),this.config=e,this.router=n,this.authProcess=r}return Object(s.a)(t,[{key:"canActivate",value:function(t,e){var n=this;return this.authProcess.afa.user.pipe(Object(z.a)(function(t){return t?!(n.config.guardProtectedRoutesUntilEmailIsVerified&&!t.emailVerified&&!t.isAnonymous&&(n.config.authGuardFallbackURL&&n.router.navigate(["".concat(n.config.authGuardFallbackURL)],{queryParams:{redirectUrl:e.url}}),1)):(n.config.authGuardFallbackURL&&n.router.navigate(["/".concat(n.config.authGuardFallbackURL)],{queryParams:{redirectUrl:e.url}}),!1)}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(i.cc(eu),i.cc(tt.b),i.cc(fu))},t.\u0275prov=Object(i.Ob)({factory:function(){return new t(Object(i.cc)(eu),Object(i.cc)(tt.b),Object(i.cc)(fu))},token:t,providedIn:"root"}),t}(),Au=function(){var t=function(){function t(e,n,r){Object(a.a)(this,t),this.iconRegistry=e,this.sanitizer=n,r.listenToUserEvents(),this.registerProviderIcons()}return Object(s.a)(t,[{key:"registerProviderIcons",value:function(){this.iconRegistry.addSvgIcon("google",this.sanitizer.bypassSecurityTrustResourceUrl("/assets/mdi/google.svg")).addSvgIcon("apple",this.sanitizer.bypassSecurityTrustResourceUrl("/assets/mdi/apple.svg")).addSvgIcon("google-colored",this.sanitizer.bypassSecurityTrustResourceUrl("/assets/google.svg")).addSvgIcon("facebook",this.sanitizer.bypassSecurityTrustResourceUrl("/assets/mdi/facebook.svg")).addSvgIcon("twitter",this.sanitizer.bypassSecurityTrustResourceUrl("/assets/mdi/twitter.svg")).addSvgIcon("github",this.sanitizer.bypassSecurityTrustResourceUrl("/assets/mdi/github-circle.svg")).addSvgIcon("microsoft",this.sanitizer.bypassSecurityTrustResourceUrl("/assets/mdi/microsoft.svg")).addSvgIcon("yahoo",this.sanitizer.bypassSecurityTrustResourceUrl("/assets/mdi/yahoo.svg")).addSvgIcon("phone",this.sanitizer.bypassSecurityTrustResourceUrl("/assets/phone.svg"))}}],[{key:"forRoot",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return{ngModule:t,providers:[{provide:oa.c,useValue:e},{provide:oa.b,useFactory:n},{provide:nu,useValue:r},{provide:eu,useFactory:Tu,deps:[nu]},fu,ru,Iu]}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(i.cc(A.c),i.cc(r.b),i.cc(fu))},t.\u0275mod=i.Qb({type:t}),t.\u0275inj=i.Pb({imports:[[c.c,tt.e,Di.b,Ai,f.i,f.s,Qo,S.h,R.b,O.c,A.b,D.c,j.b,ca,ga,C.g,E.b,ua.b,Xi.b,C.g,P.c,ia,Gi.b,Wi.b],Gi.b,Wi.b]}),t}(),Ru=function(){function t(){}return t.prototype.ngOnInit=function(){},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Mb({type:t,selectors:[["app-home"]],decls:13,vars:1,consts:[[1,"carousel","slide","carousel-fade",3,"animation"],[1,"view","w-100"],["src","assets/images/img1.jpg","alt","First slide",1,"d-block","w-100","img-fluid"],["mdbWavesEffect","",1,"mask","rgba-black-light","waves-light"],["src","assets/images/img2.jpg","alt","Second slide",1,"d-block","w-100","img-fluid"],["mdbWavesEffect","",1,"mask","rgba-black-strong","waves-light"],[1,"view","w-100","h-75"],["src","assets/images/img3.jpg","alt","Third slide",1,"d-block","w-100","img-fluid"],["mdbWavesEffect","",1,"mask","rgba-black-slight","waves-light"]],template:function(t,e){1&t&&(i.Yb(0,"mdb-carousel",0),i.Yb(1,"mdb-carousel-item"),i.Yb(2,"div",1),i.Tb(3,"img",2),i.Tb(4,"div",3),i.Xb(),i.Xb(),i.Yb(5,"mdb-carousel-item"),i.Yb(6,"div",1),i.Tb(7,"img",4),i.Tb(8,"div",5),i.Xb(),i.Xb(),i.Yb(9,"mdb-carousel-item"),i.Yb(10,"div",6),i.Tb(11,"img",7),i.Tb(12,"div",8),i.Xb(),i.Xb(),i.Xb()),2&t&&i.qc("animation","fade")},directives:[At,jt,tn],styles:[""]}),t}(),Pu=function(){function t(t){this.router=t}return t.prototype.ngOnInit=function(){},t.prototype.onSignOut=function(){this.router.navigate(["/home"])},t.\u0275fac=function(e){return new(e||t)(i.Sb(tt.b))},t.\u0275cmp=i.Mb({type:t,selectors:[["app-profile"]],decls:1,vars:2,consts:[[3,"canLogout","canDeleteAccount","onSignOut"]],template:function(t,e){1&t&&(i.Yb(0,"ngx-auth-firebaseui-user",0),i.gc("onSignOut",function(){return e.onSignOut()}),i.Xb()),2&t&&i.qc("canLogout",!1)("canDeleteAccount",!1)},directives:[Ou],styles:[""]}),t}(),Lu=n("THVI"),Nu=n("mB2O");function Du(t,e){if(1&t){var n=i.Zb();i.Yb(0,"button",12),i.gc("click",function(){i.Ec(n);var t=e.index;return i.kc(2).onRatingClick(t+1)}),i.Yb(1,"mat-icon"),i.Nc(2),i.Xb(),i.Xb()}if(2&t){var r=e.index,o=i.kc(2);i.qc("id","star_"+r),i.Eb(2),i.Pc(" ",o.showIcon(r)," ")}}function Mu(t,e){if(1&t&&(i.Yb(0,"mat-grid-tile",4),i.Yb(1,"mat-card",5),i.Yb(2,"mat-card-header"),i.Yb(3,"mat-card-title"),i.Nc(4),i.Xb(),i.Xb(),i.Tb(5,"img",6),i.Yb(6,"mat-card-content",7),i.Yb(7,"p"),i.Nc(8),i.Xb(),i.Yb(9,"h4",8),i.Nc(10),i.lc(11,"currency"),i.Xb(),i.Xb(),i.Yb(12,"mat-card-actions"),i.Yb(13,"button",9),i.Nc(14,"Buy"),i.Xb(),i.Yb(15,"button",10),i.Yb(16,"mat-icon"),i.Nc(17,"favorite"),i.Xb(),i.Xb(),i.Lc(18,Du,3,2,"button",11),i.Xb(),i.Xb(),i.Xb()),2&t){var n=e.$implicit,r=i.kc();i.qc("colspan",1)("rowspan",1),i.Eb(4),i.Pc(" ",n.name," "),i.Eb(1),i.sc("src","assets/images/",null==n?null:n.image,"",i.Fc),i.Eb(3),i.Oc(n.description),i.Eb(2),i.Pc(" ",i.nc(11,7,n.price,"USD",!0)," "),i.Eb(8),i.qc("ngForOf",r.ratingArr)}}var Fu=function(){function t(t,e){this.productService=t,this.breakpointObserver=e,this.ratingArr=[1,2,3,4,5],this.rating=3}return t.prototype.ngOnInit=function(){this.getProducts()},t.prototype.getProducts=function(){var t=this;this.productService.getProducts().subscribe(function(e){t.products=e})},t.prototype.onRatingClick=function(t){console.log(t)},t.prototype.showIcon=function(t){return this.rating>=t+1?"star":"star_border"},t.\u0275fac=function(e){return new(e||t)(i.Sb(Nu.a),i.Sb(Vi.a))},t.\u0275cmp=i.Mb({type:t,selectors:[["app-services"]],decls:4,vars:1,consts:[[1,"grid-container"],[1,"mat-h1"],["cols","3","rowHeight","600px"],[3,"colspan","rowspan",4,"ngFor","ngForOf"],[3,"colspan","rowspan"],[1,"dashboard-card"],["mat-card-image","",3,"src"],[1,"dashboard-card-content"],[1,"price",2,"text-align","right"],["mat-raised-button","","color","primary"],["mat-icon-button","","color","warn"],["mat-icon-button","","color","primary","matTooltipPosition","above",3,"id","click",4,"ngFor","ngForOf"],["mat-icon-button","","color","primary","matTooltipPosition","above",3,"id","click"]],template:function(t,e){1&t&&(i.Yb(0,"div",0),i.Tb(1,"h1",1),i.Yb(2,"mat-grid-list",2),i.Lc(3,Mu,19,11,"mat-grid-tile",3),i.Xb(),i.Xb()),2&t&&(i.Eb(3),i.qc("ngForOf",e.products))},directives:[I.a,c.k,I.c,S.a,S.f,S.j,S.g,S.d,S.b,O.b,A.a],pipes:[c.d],styles:[""]}),t}(),Vu=function(){function t(){}return t.prototype.ngOnInit=function(){},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Mb({type:t,selectors:[["app-cookie-policy"]],decls:188,vars:0,consts:[[1,"page-wrapper"],[1,"page-header-wrapper"],[1,"page-header","page-header-policy",2,"background-image","url('assets/policy.jpg')"],[1,"row"],[1,"medium-10","large-9","columns"],[1,"page-header-title"],[1,"page-header-paragraph"],[1,"n-row","page-content"],[1,"small-12","medium-centered","columns"],[1,"section-wrapper"],[1,"post-content"],[1,"large-11","medium-centered","columns"],["href","https://www.aboutcookies.org/","target","_blank"],["href","mailto:privacy@globallogic.com"]],template:function(t,e){1&t&&(i.Yb(0,"div",0),i.Yb(1,"section",1),i.Yb(2,"div",2),i.Yb(3,"div",3),i.Yb(4,"div",4),i.Yb(5,"h1",5),i.Nc(6," COOKIES POLICY "),i.Xb(),i.Yb(7,"h3",6),i.Nc(8," GlobalLogic is a digital product development services company that helps businesses design, build, and deliver their next-generation products and digital experiences "),i.Xb(),i.Xb(),i.Xb(),i.Xb(),i.Xb(),i.Yb(9,"section",7),i.Yb(10,"div",8),i.Yb(11,"div",9),i.Yb(12,"div",10),i.Yb(13,"div",3),i.Yb(14,"div",11),i.Yb(15,"p"),i.Nc(16,"Last Updated: March 20, 2018"),i.Xb(),i.Yb(17,"p"),i.Yb(18,"strong"),i.Yb(19,"i"),i.Nc(20,"How do we use cookies?"),i.Xb(),i.Xb(),i.Xb(),i.Yb(21,"p"),i.Nc(22,"Our website uses cookies to distinguish you from other users of our website. This helps us to provide you with a good experience when you browse our website and also allows us to improve our site."),i.Xb(),i.Yb(23,"p"),i.Nc(24,"We also use cookies in our marketing emails (which you may receive if you have provided us with your consent to contact you in that way) to enable us to review how users interact with our marketing. This helps us to tailor it more appropriately and make it more user-friendly."),i.Xb(),i.Yb(25,"p"),i.Nc(26,"Details of the specific cookies we use are set out below."),i.Xb(),i.Yb(27,"p"),i.Yb(28,"strong"),i.Yb(29,"i"),i.Nc(30,"What are cookies and how do they work?"),i.Xb(),i.Xb(),i.Xb(),i.Yb(31,"p"),i.Nc(32,"Cookies are pieces of information that a website transfers to your hard drive to store and sometimes track information about you. Most web browsers automatically accept cookies, but if you prefer, you can change your browser to prevent that and your help screen or manual will tell you how to do this. However, you will not be able to take full advantage of our website if you do so. Cookies are specific to the server that created them and cannot be accessed by other servers, which means they cannot be used to track your movements around the web. Although they do identify a user\u2019s computer, cookies do not personally identify users and passwords and credit card information are not stored in cookies."),i.Xb(),i.Yb(33,"p"),i.Nc(34,"You can read more about cookies at "),i.Yb(35,"a",12),i.Nc(36,"www.AboutCookies.org"),i.Xb(),i.Xb(),i.Yb(37,"p"),i.Yb(38,"strong"),i.Yb(39,"i"),i.Nc(40,"What sort of cookies do we use?"),i.Xb(),i.Xb(),i.Xb(),i.Yb(41,"p"),i.Nc(42,"We use the following types of cookies:"),i.Xb(),i.Yb(43,"ul"),i.Yb(44,"li"),i.Yb(45,"strong"),i.Nc(46,"Strictly necessary cookies."),i.Xb(),i.Nc(47," These are cookies that are required for the operation of our website and under our terms with you. They include, for example, cookies that enable you to log into secure areas of our website, use a shopping cart or make use of e-billing services."),i.Xb(),i.Yb(48,"li"),i.Yb(49,"strong"),i.Nc(50,"Analytical/performance cookies."),i.Xb(),i.Nc(51," They allow us to recognise and count the number of visitors and to see how visitors move around our website when they are using it. This helps us for our legitimate purposes to improve the way our website works, for example, by ensuring that users are finding what they are looking for easily."),i.Xb(),i.Yb(52,"li"),i.Yb(53,"strong"),i.Nc(54,"Functionality cookies."),i.Xb(),i.Nc(55," These are used to recognise you when you return to our website. This enables us, subject to your choices and preferences, to personalise our content for you, greet you by name and remember your preferences (for example, your choice of language or region)."),i.Xb(),i.Yb(56,"li"),i.Yb(57,"strong"),i.Nc(58,"Targeting cookies."),i.Xb(),i.Nc(59," These cookies record your visit to our website, the pages you have visited and the links you have followed. We will use this information subject to your choices and preferences to make our website and the advertising displayed on it more relevant to your interests. We may also share this information with third parties for this purpose."),i.Xb(),i.Xb(),i.Yb(60,"p"),i.Yb(61,"strong"),i.Yb(62,"i"),i.Nc(63,"Where can you find more information about the cookies that we use?"),i.Xb(),i.Xb(),i.Xb(),i.Yb(64,"p"),i.Nc(65,"More information about the cookies we use can be found here:"),i.Xb(),i.Yb(66,"p"),i.Yb(67,"strong"),i.Nc(68,"PHPSESSID"),i.Xb(),i.Nc(69,": It contains a reference to a session stored on the web server which expires when you close your browser."),i.Tb(70,"br"),i.Yb(71,"strong"),i.Nc(72,"_ga:"),i.Xb(),i.Nc(73," Allows counting of user visits and traffic sources."),i.Tb(74,"br"),i.Yb(75,"strong"),i.Nc(76,"_gat_UA-*-*:"),i.Xb(),i.Nc(77," Allows counting of user visits and traffic sources. "),i.Tb(78,"br"),i.Yb(79,"strong"),i.Nc(80,"_gid:"),i.Xb(),i.Nc(81," Stores and updates a unique value for each page visited."),i.Tb(82,"br"),i.Yb(83,"strong"),i.Nc(84," __utmv*:"),i.Xb(),i.Nc(85," Cookie set by Google Analytics to analyse visitor information."),i.Tb(86,"br"),i.Yb(87,"strong"),i.Nc(88,"_mkto_trk:"),i.Xb(),i.Nc(89," Allows tracking of your usage of our Site. "),i.Tb(90,"br"),i.Yb(91,"strong"),i.Nc(92,"cookies-law:"),i.Xb(),i.Nc(93," Allows tracking consent to the usage of cookies whilst viewing our website. "),i.Tb(94,"br"),i.Yb(95,"strong"),i.Nc(96,"visitor_id*:"),i.Xb(),i.Nc(97," Visitor Cookie set by Pardot stores the activities of visitors and prospects."),i.Tb(98,"br"),i.Yb(99,"strong"),i.Nc(100,"visitor_id*-hash:"),i.Xb(),i.Nc(101," Cookie set by Pardot, used to assign a randomly generated number as a client identifier."),i.Tb(102,"br"),i.Yb(103,"strong"),i.Nc(104,"incap_ses_*_*:"),i.Xb(),i.Nc(105," These first party cookies are set by a third party service to filter out malicious requests."),i.Tb(106,"br"),i.Yb(107,"strong"),i.Nc(108,"visid_incap_*_*:"),i.Xb(),i.Nc(109," These first party cookies are set by a third party service to filter out malicious requests."),i.Tb(110,"br"),i.Yb(111,"strong"),i.Nc(112,"ip2location_redirection_first_visit:"),i.Xb(),i.Nc(113," IP2Location provides information on what country a visitor is coming from."),i.Xb(),i.Yb(114,"p"),i.Yb(115,"strong"),i.Yb(116,"i"),i.Nc(117,"When do our cookies expire?"),i.Xb(),i.Xb(),i.Xb(),i.Yb(118,"p"),i.Nc(119,"Except for strictly necessary cookies, all cookies used on our site will expire no later than 2 years after collected."),i.Xb(),i.Yb(120,"p"),i.Yb(121,"strong"),i.Yb(122,"i"),i.Nc(123,"How do you disable cookies?"),i.Xb(),i.Xb(),i.Xb(),i.Yb(124,"p"),i.Nc(125,"The effect of disabling cookies depends on which cookies you disable, but in general the website may not operate properly if cookies are switched off. See below for details of how to use common types of browser to disable cookies."),i.Xb(),i.Yb(126,"p"),i.Yb(127,"strong"),i.Yb(128,"i"),i.Nc(129,"Disabling cookies in Internet Explorer"),i.Xb(),i.Xb(),i.Xb(),i.Yb(130,"p"),i.Nc(131,"1. Choose the menu \u201ctools\u201d then \u201cInternet Options\u201d"),i.Tb(132,"br"),i.Nc(133," 2. Click on the \u201cprivacy\u201d tab"),i.Tb(134,"br"),i.Nc(135," 3. Select the setting the appropriate setting"),i.Xb(),i.Yb(136,"p"),i.Yb(137,"strong"),i.Yb(138,"i"),i.Nc(139,"Disabling cookies in Google Chrome"),i.Xb(),i.Xb(),i.Xb(),i.Yb(140,"p"),i.Nc(141,"1. Choose Settings> Advanced"),i.Tb(142,"br"),i.Nc(143," 2. Under \u201cPrivacy and security,\u201d click \u201cContent settings\u201d."),i.Tb(144,"br"),i.Nc(145," 3. Click \u201cCookies\u201d"),i.Xb(),i.Yb(146,"p"),i.Yb(147,"strong"),i.Yb(148,"i"),i.Nc(149,"Disabling cookies in Safari"),i.Xb(),i.Xb(),i.Xb(),i.Yb(150,"p"),i.Nc(151,"1. Choose Preferences > Privacy"),i.Tb(152,"br"),i.Nc(153," 2. Click on \u201cRemove all Website Data\u201d"),i.Xb(),i.Yb(154,"p"),i.Yb(155,"strong"),i.Yb(156,"i"),i.Nc(157,"Disabling cookies in Firefox"),i.Xb(),i.Xb(),i.Xb(),i.Yb(158,"p"),i.Nc(159,"1. Choose the menu \u201ctools\u201d then \u201cOptions\u201d"),i.Tb(160,"br"),i.Nc(161," 2. Click on the icon \u201cprivacy\u201d"),i.Tb(162,"br"),i.Nc(163," 3. Find the menu \u201ccookie\u201d and select the relevant options"),i.Xb(),i.Yb(164,"p"),i.Yb(165,"strong"),i.Yb(166,"i"),i.Nc(167,"Disabling cookies in Opera"),i.Xb(),i.Xb(),i.Xb(),i.Yb(168,"p"),i.Nc(169,"Opera 6.0 and subsequent:"),i.Xb(),i.Yb(170,"p"),i.Nc(171,"1. Choose the menu Files\u201d> \u201cPreferences\u201d"),i.Tb(172,"br"),i.Nc(173," 2. Privacy"),i.Xb(),i.Yb(174,"p"),i.Yb(175,"strong"),i.Yb(176,"i"),i.Nc(177,"Other help we may provide"),i.Xb(),i.Xb(),i.Xb(),i.Yb(178,"p"),i.Nc(179,"Where you have not set your permissions, we may also separately prompt you regarding our use of cookies on the Site."),i.Xb(),i.Yb(180,"p"),i.Yb(181,"strong"),i.Yb(182,"i"),i.Nc(183,"How to get help"),i.Xb(),i.Xb(),i.Xb(),i.Yb(184,"p"),i.Nc(185,"If you would like further information about our use of cookies, please contact us:"),i.Yb(186,"a",13),i.Nc(187,"privacy@globallogic.com"),i.Xb(),i.Xb(),i.Xb(),i.Xb(),i.Xb(),i.Xb(),i.Xb(),i.Xb(),i.Xb())},styles:[".page-wrapper[_ngcontent-%COMP%]{background-color:#eee}.page-wrapper[_ngcontent-%COMP%] .page-header-wrapper[_ngcontent-%COMP%]{margin-bottom:-5.625rem}.page-wrapper[_ngcontent-%COMP%] .page-header-wrapper[_ngcontent-%COMP%] .page-header[_ngcontent-%COMP%]{height:75vh!important;max-height:780px!important;padding:4.6875rem 2.1875rem;box-shadow:inset 0 -350px 350px -150px #000!important;-moz-box-shadow:inset 0 -350px 350px -150px #000!important;-webkit-box-shadow:inset 0 -350px 350px -150px #000!important}.page-wrapper[_ngcontent-%COMP%] .page-header-wrapper[_ngcontent-%COMP%] .n-row[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto;width:81.875rem}.page-wrapper[_ngcontent-%COMP%] .page-header-wrapper[_ngcontent-%COMP%] .page-content[_ngcontent-%COMP%]{box-shadow:0 2px 10px 2px rgba(0,0,0,.25);margin:0 3.125rem;background-color:#fff;position:relative}.page-header-wrapper[_ngcontent-%COMP%]{position:relative}.page-header[_ngcontent-%COMP%]{display:flex;align-items:flex-end;background-position:50%;height:100vh;max-height:1080px;padding:4.6875rem .9375rem;background-size:cover;overflow:hidden}.page-header-title[_ngcontent-%COMP%]{color:#fff;margin:0 0 1.25rem}.page-header-paragraph[_ngcontent-%COMP%]{line-height:1.375rem;color:#fff}.page-content[_ngcontent-%COMP%]{background-color:#fff;position:relative}@media screen and (min-width:48em){.page-header-paragraph[_ngcontent-%COMP%]{font-size:1.375rem;line-height:1.875rem}.page-header-title[_ngcontent-%COMP%]{font-size:3.75rem;line-height:4.25rem}}@media screen and (min-width:64em){.page-header-title[_ngcontent-%COMP%]{font-size:35px;text-transform:uppercase;line-height:36px}.page-header-paragraph[_ngcontent-%COMP%]{margin-bottom:2.5rem;font-size:20px;line-height:30px}.page-content[_ngcontent-%COMP%]{box-shadow:0 2px 10px 2px rgba(0,0,0,.25);margin:0 3.125rem}}@media screen and (min-width:90.0625em){.page-content[_ngcontent-%COMP%]{box-shadow:0 2px 10px 2px rgba(0,0,0,.25);margin:0 auto;max-width:81.875rem}}.page-content[_ngcontent-%COMP%]{box-shadow:0 2px 10px 2px rgba(0,0,0,.25);margin:0 3.125rem}.page-content[_ngcontent-%COMP%] .medium-centered[_ngcontent-%COMP%]{float:none;margin-left:auto;margin-right:auto}.page-content[_ngcontent-%COMP%] .small-12[_ngcontent-%COMP%]{width:100%}.page-content[_ngcontent-%COMP%] .section-wrapper[_ngcontent-%COMP%]{padding-bottom:50px;padding-top:65px}@media screen and (min-width:48em){.page-content[_ngcontent-%COMP%] .section-wrapper[_ngcontent-%COMP%]{padding:6.875rem .9375rem 4.375rem}.page-content[_ngcontent-%COMP%] .medium-centered[_ngcontent-%COMP%]{float:none;margin-left:auto;margin-right:auto}}@media screen and (min-width:64em){.page-content[_ngcontent-%COMP%] .large-11[_ngcontent-%COMP%]{width:91.66667%}}.page-wrapper[_ngcontent-%COMP%] .page-header-wrapper[_ngcontent-%COMP%] .page-header[_ngcontent-%COMP%]{box-shadow:inset 0 0 0 1000px rgba(0,0,0,.6)!important}"]}),t}();function Uu(t,e){if(1&t&&(i.Yb(0,"div",1),i.Tb(1,"mat-progress-spinner",4),i.Yb(2,"h1"),i.Nc(3),i.Xb(),i.Xb()),2&t){var n=i.kc();i.Eb(1),i.qc("value",n.errorPercentage),i.Eb(2),i.Pc("",n.errorPercentage,"%")}}var Bu=tt.e.forRoot([{path:"",redirectTo:"/home",pathMatch:"full"},{path:"home",component:Ru,pathMatch:"full"},{path:"dashboard",component:Bi,pathMatch:"full"},{path:"404",component:zi},{path:"500",component:function(){function t(){var t=this;this.errorPercentage=0,this.checkChanged=function(e){t.reportedError=e.checked,t.reportedError?t.startTimer():t.stopTimer()},this.startTimer=function(){t.timer=setInterval(function(){t.errorPercentage+=1,100===t.errorPercentage&&clearInterval(t.timer)},30)},this.stopTimer=function(){clearInterval(t.timer),t.errorPercentage=0}}return t.prototype.ngOnInit=function(){},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Mb({type:t,selectors:[["app-server-error"]],decls:10,vars:1,consts:[["fxLayout","column wrap","fxLayoutAlign","center center","fxLayoutGap","30px"],["fxFlex",""],["color","primary",3,"change"],["fxFlex","",4,"ngIf"],["mode","determinate",3,"value"]],template:function(t,e){1&t&&(i.Yb(0,"section",0),i.Yb(1,"div",1),i.Yb(2,"p"),i.Nc(3,"500 Server Error"),i.Xb(),i.Yb(4,"p"),i.Nc(5,"We are sorry for the inconvinience, plese report this error."),i.Xb(),i.Xb(),i.Yb(6,"div",1),i.Yb(7,"mat-checkbox",2),i.gc("change",function(t){return e.checkChanged(t)}),i.Nc(8,"I want to report this error."),i.Xb(),i.Xb(),i.Lc(9,Uu,4,2,"div",3),i.Xb()),2&t&&(i.Eb(9),i.qc("ngIf",e.reportedError))},directives:[Dr,gi,Xr,ei,E.a,c.l,ua.a],styles:["section[_ngcontent-%COMP%] div[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:first-child{font-size:50px;text-align:center;color:#f44336}section[_ngcontent-%COMP%] div[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:nth-child(2){font-size:20px;text-align:center;color:#3f51b5}mat-checkbox[_ngcontent-%COMP%]{color:#3f51b5}section[_ngcontent-%COMP%] div[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center;color:#3f51b5;position:relative;top:-85px}"]}),t}()},{path:"unauthorized",component:qi},{path:"services",component:Fu},{path:"products",component:Lu.a},{path:"cookie-policy",component:Vu},{path:"user/update",component:Pu,canActivate:[Iu]},{path:"auth",loadChildren:"app/components/auth/auth.module#AuthModule"},{path:"product",loadChildren:function(){return Promise.resolve().then(n.bind(null,"LuV0")).then(function(t){return t.ProductModule})},canActivate:[Iu]},{path:"**",redirectTo:"/home",pathMatch:"full"}],{relativeLinkResolution:"legacy"}),qu=function(){function t(){}return t.\u0275prov=i.Ob({token:t,factory:t.\u0275fac=function(e){return new(e||t)},providedIn:"root"}),t}(),Xu=function(){var t=function(){function t(e,n){Object(a.a)(this,t),this.document=e,this.platformId=n,this.documentIsAccessible=Object(c.u)(this.platformId)}return Object(s.a)(t,[{key:"check",value:function(t){return!!this.documentIsAccessible&&(t=encodeURIComponent(t),this.getCookieRegExp(t).test(this.document.cookie))}},{key:"get",value:function(t){if(this.documentIsAccessible&&this.check(t)){t=encodeURIComponent(t);var e=this.getCookieRegExp(t).exec(this.document.cookie);return decodeURIComponent(e[1])}return""}},{key:"getAll",value:function(){if(!this.documentIsAccessible)return{};var t={},e=this.document;if(e.cookie&&""!==e.cookie)for(var n=e.cookie.split(";"),r=0;r1&&(t=this.app_name.split(" ").slice(1).join(" ")),t},enumerable:!1,configurable:!0}),Object.defineProperty(t,"app_name",{get:function(){return this._app_name||(this.app_name=Wu),this._app_name},set:function(t){this._app_name=t,this._app_first=t.split(" ")[0],t.split(" ").length>1&&(this._app_second=t.split(" ").slice(1).join(" "))},enumerable:!1,configurable:!0}),Object.defineProperty(t,"app_url",{get:function(){return this._app_url||(this.app_url="https://www.ninjamatrixtechnologies.com"),this._app_url},set:function(t){this._app_url=t},enumerable:!1,configurable:!0}),t}();function Ju(t,e){if(1&t&&(i.Yb(0,"button",10),i.Nc(1),i.Xb()),2&t){var n=e.ngIf;i.Eb(1),i.Pc("Hi ",n.displayName,"!")}}function $u(t,e){if(1&t&&(i.Yb(0,"button",14),i.Nc(1),i.Xb()),2&t){var n=e.$implicit;i.rc("routerLink",n.route),i.Eb(1),i.Pc(" ",n.name," ")}}function tl(t,e){if(1&t){var n=i.Zb();i.Yb(0,"div"),i.Lc(1,$u,2,2,"button",11),i.Yb(2,"button",12),i.gc("click",function(){return i.Ec(n),i.kc().onLogout()}),i.Nc(3," Logout "),i.Xb(),i.Tb(4,"ngx-auth-firebaseui-avatar",13),i.Xb()}if(2&t){var r=i.kc();i.Eb(1),i.qc("ngForOf",r.nav_links_user),i.Eb(3),i.qc("canLogout",!1)}}function el(t,e){if(1&t&&(i.Yb(0,"button",14),i.Nc(1),i.Xb()),2&t){var n=e.$implicit;i.rc("routerLink",n.route),i.Eb(1),i.Pc(" ",n.name," ")}}function nl(t,e){if(1&t){var n=i.Zb();i.Yb(0,"div"),i.Lc(1,el,2,2,"button",11),i.Yb(2,"button",12),i.gc("click",function(){return i.Ec(n),i.kc().openLoginDialog()}),i.Nc(3," Login "),i.Xb(),i.Yb(4,"button",15),i.gc("click",function(){return i.Ec(n),i.kc().openRegisterDialog()}),i.Nc(5," Register "),i.Xb(),i.Xb()}if(2&t){var r=i.kc();i.Eb(1),i.qc("ngForOf",r.nav_links_no_user)}}function rl(t,e){if(1&t&&(i.Yb(0,"button",19),i.Nc(1),i.Xb()),2&t){var n=e.$implicit;i.rc("routerLink",n.route),i.Eb(1),i.Oc(n.name)}}function il(t,e){if(1&t){var n=i.Zb();i.Yb(0,"div"),i.Yb(1,"button",16),i.Nc(2),i.Xb(),i.Tb(3,"mat-divider"),i.Lc(4,rl,2,2,"button",17),i.Tb(5,"mat-divider"),i.Yb(6,"button",18),i.gc("click",function(){return i.Ec(n),i.kc().onLogout()}),i.Nc(7,"Logout"),i.Xb(),i.Xb()}if(2&t){var r=e.ngIf,o=i.kc();i.Eb(2),i.Pc("Hi ",r.displayName,"!"),i.Eb(2),i.qc("ngForOf",o.nav_links_user)}}function ol(t,e){if(1&t&&(i.Yb(0,"button",19),i.Nc(1),i.Xb()),2&t){var n=e.$implicit;i.rc("routerLink",n.route),i.Eb(1),i.Oc(n.name)}}function al(t,e){if(1&t){var n=i.Zb();i.Yb(0,"div"),i.Lc(1,ol,2,2,"button",17),i.Yb(2,"button",18),i.gc("click",function(){return i.Ec(n),i.kc().openLoginDialog()}),i.Nc(3,"Login"),i.Xb(),i.Yb(4,"button",18),i.gc("click",function(){return i.Ec(n),i.kc().openRegisterDialog()}),i.Nc(5,"Register"),i.Xb(),i.Xb()}if(2&t){var r=i.kc();i.Eb(1),i.qc("ngForOf",r.nav_links_no_user)}}var sl=function(){function t(t,e,n){this.cd=t,this.matDialog=e,this.auth=n,this.nav_links_user=[{route:"products",name:"Products"}],this.nav_links_no_user=[{route:"services",name:"Services"},{route:"products",name:"Products"}]}return t.prototype.ngOnInit=function(){this.env=Zu},t.prototype.openLoginDialog=function(){var t=new C.e;t.autoFocus=!1,t.disableClose=!0,t.hasBackdrop=!0,t.minWidth=400,this.matDialog.open(Ku,t)},t.prototype.openRegisterDialog=function(){var t=new C.e;t.autoFocus=!1,t.disableClose=!0,t.hasBackdrop=!0,t.maxHeight=700,t.minWidth=500,this.matDialog.open(Gu,t)},t.prototype.onLogout=function(){this.auth.signOut()},t.\u0275fac=function(e){return new(e||t)(i.Sb(i.h),i.Sb(C.b),i.Sb(Gi.a))},t.\u0275cmp=i.Mb({type:t,selectors:[["app-navbar"]],decls:21,vars:18,consts:[["color","primary",1,"mat-elevation-z3"],["mat-button","","routerLink","/"],[1,"mat-display-1"],[1,"spacer"],["class","nav-button","mat-button","","fxShow","false","fxShow.gt-sm","",4,"ngIf"],["fxLayout","row","fxShow","false","fxShow.gt-sm",""],[4,"ngIf"],["mat-button","","fxHide","false","fxHide.gt-sm","",3,"mat-menu-trigger-for"],["yPosition","below",3,"overlapTrigger"],["rootMenu","matMenu"],["mat-button","","fxShow","false","fxShow.gt-sm","",1,"nav-button"],["class","nav-button","mat-button","",3,"routerLink",4,"ngFor","ngForOf"],["mat-button","",1,"nav-button",3,"click"],[3,"canLogout"],["mat-button","",1,"nav-button",3,"routerLink"],["mat-button","","color","accent",1,"nav-button",3,"click"],["mat-menu-item","",1,"nav-menu-item"],["class","nav-menu-item","mat-menu-item","",3,"routerLink",4,"ngFor","ngForOf"],["mat-menu-item","",1,"nav-menu-item",3,"click"],["mat-menu-item","",1,"nav-menu-item",3,"routerLink"]],template:function(t,e){if(1&t&&(i.Yb(0,"mat-toolbar",0),i.Yb(1,"button",1),i.Yb(2,"h1",2),i.Nc(3),i.Xb(),i.Xb(),i.Tb(4,"span",3),i.Lc(5,Ju,2,1,"button",4),i.lc(6,"async"),i.Yb(7,"div",5),i.Lc(8,tl,5,2,"div",6),i.lc(9,"async"),i.Lc(10,nl,6,1,"div",6),i.lc(11,"async"),i.Xb(),i.Yb(12,"button",7),i.Yb(13,"mat-icon"),i.Nc(14,"menu"),i.Xb(),i.Xb(),i.Xb(),i.Yb(15,"mat-menu",8,9),i.Lc(17,il,8,2,"div",6),i.lc(18,"async"),i.Lc(19,al,6,1,"div",6),i.lc(20,"async"),i.Xb()),2&t){var n=i.Ac(16);i.Eb(3),i.Oc(e.env.app_name),i.Eb(2),i.qc("ngIf",i.mc(6,8,e.auth.user)),i.Eb(3),i.qc("ngIf",i.mc(9,10,e.auth.user)),i.Eb(2),i.qc("ngIf",!i.mc(11,12,e.auth.user)),i.Eb(2),i.qc("mat-menu-trigger-for",n),i.Eb(3),i.qc("overlapTrigger",!1),i.Eb(2),i.qc("ngIf",i.mc(18,14,e.auth.user)),i.Eb(2),i.qc("ngIf",!i.mc(20,16,e.auth.user))}},directives:[M.a,O.b,tt.c,c.l,Dr,hr,P.d,A.a,P.a,c.k,wu,P.b,j.a],pipes:[c.b],styles:[".spacer[_ngcontent-%COMP%]{flex:1 1 auto}.companyName[_ngcontent-%COMP%]{font-size:150%}div[_ngcontent-%COMP%]{overflow:inherit}a[_ngcontent-%COMP%]{text-decoration:none;white-space:normal}button[_ngcontent-%COMP%]{min-width:-webkit-min-content;min-width:-moz-min-content;min-width:min-content}[_nghost-%COMP%]{position:fixed;top:0;left:0;right:0;z-index:100}.custom-backdrop[_ngcontent-%COMP%]{background-color:#000}"],changeDetection:0}),t}(),cl=[{path:"login",component:function(){function t(){}return t.prototype.ngOnInit=function(){},t.prototype.printUser=function(t){console.log(t)},t.prototype.printError=function(t){console.error(t)},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Mb({type:t,selectors:[["app-login"]],decls:1,vars:0,consts:[[3,"onSuccess","onError"]],template:function(t,e){1&t&&(i.Yb(0,"ngx-auth-firebaseui",0),i.gc("onSuccess",function(t){return e.printUser(t)})("onError",function(t){return e.printError(t)}),i.Xb())},directives:[yu],styles:[""]}),t}()}],ul=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Qb({type:t}),t.\u0275inj=i.Pb({imports:[[tt.e.forChild(cl)],tt.e]}),t}(),ll=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Qb({type:t}),t.\u0275inj=i.Pb({imports:[[c.c,ul,Au]]}),t}(),hl=n("LuV0"),fl={cookie:{domain:"localhost"},palette:{popup:{background:"#ffffff"},button:{background:"#3f51b5"}},theme:"block",type:"info",layout:"my-custom-layout",layouts:{"my-custom-layout":"{{messagelink}}{{compliance}}"},elements:{messagelink:'We use cookies to provide you with a better on site experience.\n You can read more about our use of cookies in our {{cookiePolicyLink}}.\n Click OK to continue browsing the GlobalLogic site. Be aware you can disable Cookies at any time.'},content:{cookiePolicyLink:"Cookie Policy",cookiePolicyHref:Zu.app_url+"/cookies-policy",dismiss:"Ok"}},dl=function(){function t(t){}return t.\u0275fac=function(e){return new(e||t)(i.cc(i.s))},t.\u0275mod=i.Qb({type:t,bootstrap:[zu]}),t.\u0275inj=i.Pb({providers:[{provide:m,useValue:{siteKey:Zu.app_recaptcha}},qu,Xu],imports:[[r.a,Bu,Di.b,f.i,f.s,_,w,k.b,N.a,T.e,O.c,R.b,M.b,P.c,A.b,E.b,ua.b,M.b,Fi.forRoot(),L.a,j.b,S.h,I.b,D.c,C.g,Xi.b,x.a,on.forRoot(),Ni.forRoot(fl),Ai,oa.a.initializeApp(Qu),Gi.b,Wi.b,Au.forRoot(Qu,function(){return Wu},{enableFirestoreSync:!0,toastMessageOnAuthSuccess:!0,toastMessageOnAuthError:!0,authGuardFallbackURL:"/unauthorized",authGuardLoggedInURL:"/products",passwordMaxLength:60,passwordMinLength:8,nameMaxLength:50,nameMinLength:2,guardProtectedRoutesUntilEmailIsVerified:!0,enableEmailVerification:!0,useRawUserCredential:!0}),ll,hl.ProductModule,Vi.c]]}),t}();i.Gc(zu,[sl,tt.f,Yu],[]),Object(i.V)(),r.c().bootstrapModule(dl).catch(function(t){return console.error(t)})},zkoq:function(t,e,n){"use strict";n.d(e,"a",function(){return j}),n.d(e,"b",function(){return T}),n.d(e,"c",function(){return w});var r=n("ReuC"),i=n("Ji7U"),o=n("md7G"),a=n("foSv"),s=n("KQm4"),c=n("1OyB"),u=n("vuIU"),l=n("fXoL"),h=n("FKr1"),f=n("8LU1"),d=n("cH1L");function p(t){function e(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}return function(){var n,r=Object(a.a)(t);if(e()){var i=Object(a.a)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(o.a)(this,n)}}var b=["*"],m=".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-figure{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}\n",v=function(){function t(){Object(c.a)(this,t),this.columnIndex=0,this.rowIndex=0}return Object(u.a)(t,[{key:"rowCount",get:function(){return this.rowIndex+1}},{key:"rowspan",get:function(){var t=Math.max.apply(Math,Object(s.a)(this.tracker));return t>1?this.rowCount+t-1:this.rowCount}},{key:"update",value:function(t,e){var n=this;this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(t),this.tracker.fill(0,0,this.tracker.length),this.positions=e.map(function(t){return n._trackTile(t)})}},{key:"_trackTile",value:function(t){var e=this._findMatchingGap(t.colspan);return this._markTilePosition(e,t),this.columnIndex=e+t.colspan,new g(this.rowIndex,e)}},{key:"_findMatchingGap",value:function(t){var e=-1,n=-1;do{this.columnIndex+t>this.tracker.length?(this._nextRow(),e=this.tracker.indexOf(0,this.columnIndex),n=this._findGapEndIndex(e)):-1!=(e=this.tracker.indexOf(0,this.columnIndex))?(n=this._findGapEndIndex(e),this.columnIndex=e+1):(this._nextRow(),e=this.tracker.indexOf(0,this.columnIndex),n=this._findGapEndIndex(e))}while(n-e-1?new O(t):new x(t)}},{key:"_layoutTiles",value:function(){var t=this;this._tileCoordinator||(this._tileCoordinator=new v);var e=this._tileCoordinator,n=this._tiles.filter(function(e){return!e._gridList||e._gridList===t}),r=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,n),this._tileStyler.init(this.gutterSize,e,this.cols,r),n.forEach(function(n,r){var i=e.positions[r];t._tileStyler.setStyle(n,i.row,i.col)}),this._setListStyle(this._tileStyler.getComputedHeight())}},{key:"_setListStyle",value:function(t){t&&(this._element.nativeElement.style[t[0]]=t[1])}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.Sb(l.l),l.Sb(d.b,8))},t.\u0275cmp=l.Mb({type:t,selectors:[["mat-grid-list"]],contentQueries:function(t,e,n){var r;1&t&&l.Lb(n,w,1),2&t&&l.zc(r=l.hc())&&(e._tiles=r)},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(t,e){2&t&&l.Fb("cols",e.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[l.Db([{provide:y,useExisting:t}])],ngContentSelectors:b,decls:2,vars:0,template:function(t,e){1&t&&(l.pc(),l.Yb(0,"div"),l.oc(1),l.Xb())},styles:[m],encapsulation:2,changeDetection:0}),t}(),T=function(){var t=function t(){Object(c.a)(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=l.Qb({type:t}),t.\u0275inj=l.Pb({imports:[[h.g,h.e],h.g,h.e]}),t}()},zn8P: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="zn8P"},zx2A:function(t,e,n){"use strict";n.d(e,"a",function(){return f}),n.d(e,"b",function(){return d}),n.d(e,"c",function(){return p});var r=n("1OyB"),i=n("vuIU"),o=n("Ji7U"),a=n("md7G"),s=n("foSv"),c=n("7o/Q"),u=n("HDdC"),l=n("SeVD");function h(t){function e(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}return function(){var n,r=Object(s.a)(t);if(e()){var i=Object(s.a)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(a.a)(this,n)}}var f=function(t){Object(o.a)(n,t);var e=h(n);function n(t){var i;return Object(r.a)(this,n),(i=e.call(this)).parent=t,i}return Object(i.a)(n,[{key:"_next",value:function(t){this.parent.notifyNext(t)}},{key:"_error",value:function(t){this.parent.notifyError(t),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(),this.unsubscribe()}}]),n}(c.a),d=function(t){Object(o.a)(n,t);var e=h(n);function n(){return Object(r.a)(this,n),e.apply(this,arguments)}return Object(i.a)(n,[{key:"notifyNext",value:function(t){this.destination.next(t)}},{key:"notifyError",value:function(t){this.destination.error(t)}},{key:"notifyComplete",value:function(){this.destination.complete()}}]),n}(c.a);function p(t,e){if(!e.closed){if(t instanceof u.a)return t.subscribe(e);var n;try{n=Object(l.a)(t)(e)}catch(r){e.error(r)}return n}}}},[[0,0]]]);