var $localize=Object.assign(void 0===$localize?{}:$localize,{locale:"en"}); "use strict";(function(global){global.ng=global.ng||{};global.ng.common=global.ng.common||{};global.ng.common.locales=global.ng.common.locales||{};var u=undefined;function plural(n){var i=Math.floor(Math.abs(n)),v=n.toString().replace(/^[^.]*\.?/,"").length;if(i===1&&v===0)return 1;return 5}global.ng.common.locales["en"]=["en",[["a","p"],["AM","PM"],u],[["AM","PM"],u,u],[["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"]],u,[["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"]],u,[["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}",u,"{1} 'at' {0}",u],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",plural,[[["mi","n","in the morning","in the afternoon","in the evening","at night"],["midnight","noon","in the morning","in the afternoon","in the evening","at night"],u],[["midnight","noon","morning","afternoon","evening","night"],u,u],["00:00","12:00",["06:00","12:00"],["12:00","18:00"],["18:00","21:00"],["21:00","06:00"]]]]})(typeof globalThis!=="undefined"&&globalThis||typeof global!=="undefined"&&global||typeof window!=="undefined"&&window);; !function(){function e(){var t=u([":@@cookieText\u241f99c0f4b707a6c8994956931be785dbda3230ed12\u241f238058255513308473:We use cookies to analyse the use of our website. ",":START_LINK:See details",":CLOSE_LINK:"]);return e=function(){return t},t}function t(){var e=u([":@@footerRouterImprint\u241f88243abd8988ba30cc911172ad920d036a057993\u241f5891707175321515013:Imprint"]);return t=function(){return e},e}function n(){var e=u([":@@footerRouterLinkPrivacyPolicy\u241fb8d10cd55fae4e4ad4f87d28e18251694f159bf7\u241f8439955599488894226:Privacy Policy"]);return n=function(){return e},e}function r(){var e=u([":@@footerRouterLinkHome\u241f92eee6be6de0b11c924e3ab27db30257159c0a7c\u241f2821179408673282599:Home"]);return r=function(){return e},e}function i(){var e=u([":@@homeAboutUsParagraph1\u241f1cd7b02fcb17d79878e9386590982bb6cc9eea66\u241f135050624001144204:As a German software company founded in 2011 we publish apps for Android and iOS."]);return i=function(){return e},e}function o(){var e=u([":@@homeAboutUsTitle\u241f76f3dbd0b2d8f1d1003fcecfea9cf5b6f145e082\u241f2501489806101473286:About us"]);return o=function(){return e},e}function a(){var e=u([":@@metaDescriptionHome\u241fc90e087bf2e4f9335a03c133517c672ddddd265c\u241f3675358205927113436:We develop mobile apps."]);return a=function(){return e},e}function s(){var e=u([":@@metaTitleHome\u241fd5d407206098f53312df9afc0ec6e0b628567e27\u241f8594498756838294740:TeaCapps | Mobile apps"]);return s=function(){return e},e}function u(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||d(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||d(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e){var t="function"==typeof Map?new Map:void 0;return(h=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return p(e,arguments,S(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),g(r,e)})(e)}function f(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=d(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function d(e,t){if(e){if("string"==typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof t?function(r){return r.pipe(le((function(n,r){return oe(e(n,r)).pipe($((function(e,i){return t(n,e,r,i)})))}),n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new ce(e,n))})}var ce=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;E(this,e),this.project=t,this.concurrent=n}return T(e,[{key:"call",value:function(e,t){return t.subscribe(new he(e,this.project,this.concurrent))}}]),e}(),he=function(e){m(n,e);var t=_(n);function n(e,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return E(this,n),(i=t.call(this,e)).project=r,i.concurrent=o,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return T(n,[{key:"_next",value:function(e){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(se);function fe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return le(U,e)}function de(e,t){return t?ie(e,t):new z(X(e))}function ve(){return function(e){return e.lift(new ye(e))}}var pe,ye=function(){function e(t){E(this,e),this.connectable=t}return T(e,[{key:"call",value:function(e,t){var n=this.connectable;n._refCount++;var r=new me(e,n),i=t.subscribe(r);return r.closed||(r.connection=n.connect()),i}}]),e}(),me=function(e){m(n,e);var t=_(n);function n(e,r){var i;return E(this,n),(i=t.call(this,e)).connectable=r,i}return T(n,[{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null}}]),n}(L),ge={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(pe=function(e){m(n,e);var t=_(n);function n(e,r){var i;return E(this,n),(i=t.call(this)).source=e,i.subjectFactory=r,i._refCount=0,i._isComplete=!1,i}return T(n,[{key:"_subscribe",value:function(e){return this.getSubject().subscribe(e)}},{key:"getSubject",value:function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new N).add(this.source.subscribe(new _e(this.getSubject(),this))),e.closed&&(this._connection=null,e=N.EMPTY)),e}},{key:"refCount",value:function(){return ve()(this)}}]),n}(z).prototype)._subscribe},_isComplete:{value:pe._isComplete,writable:!0},getSubject:{value:pe.getSubject},connect:{value:pe.connect},refCount:{value:pe.refCount}},_e=function(e){m(n,e);var t=_(n);function n(e,r){var i;return E(this,n),(i=t.call(this,e)).connectable=r,i}return T(n,[{key:"_error",value:function(e){this._unsubscribe(),y(S(n.prototype),"_error",this).call(this,e)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),y(S(n.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}]),n}(Q);function ke(){return new W}function be(e){return{toString:e}.toString()}function we(e,t,n){return be((function(){var r=function(e){return function(){if(e){var t=e.apply(void 0,arguments);for(var n in t)this[n]=t[n]}}}(t);function i(){for(var e=arguments.length,t=new Array(e),n=0;n ".concat(n," ").concat(r," ").concat(t," <=Actual]")))}function Re(e){for(var t in e)if(e[t]===Re)return t;throw Error("Could not find renamed property on target object.")}function Oe(e,t){for(var n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function Pe(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Ne(e){return{factory:e.factory,providers:e.providers||[],imports:e.imports||[]}}function De(e){return je(e,Me)||je(e,Ue)}function je(e,t){return e.hasOwnProperty(t)?e[t]:null}function Le(e){return e&&(e.hasOwnProperty(Fe)||e.hasOwnProperty(He))?e[Fe]:null}var Me=Re({"\u0275prov":Re}),Fe=Re({"\u0275inj":Re}),Ue=Re({ngInjectableDef:Re}),He=Re({ngInjectorDef:Re}),ze=function(){function e(t,n){E(this,e),this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=Pe({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}return T(e,[{key:"toString",value:function(){return"InjectionToken "+this._desc}}]),e}(),Be=new ze("AnalyzeForEntryComponents"),Ve=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),qe="undefined"!=typeof globalThis&&globalThis,Ge="undefined"!=typeof window&&window,Qe="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,We="undefined"!=typeof global&&global,Ke=qe||We||Ge||Qe,Ze=Re({__forward_ref__:Re});function $e(e){return e.__forward_ref__=$e,e.toString=function(){return xe(this())},e}function Ye(e){return"function"==typeof(t=e)&&t.hasOwnProperty(Ze)&&t.__forward_ref__===$e?e():e;var t}var Je=Function;function Xe(e,t){e.forEach((function(e){return Array.isArray(e)?Xe(e,t):t(e)}))}function et(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function tt(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function nt(e,t){for(var n=[],r=0;r=0)return e[1|n]}function it(e,t){return function(e,t,n){for(var r=0,i=e.length>>1;i!==r;){var o=r+(i-r>>1),a=e[o<<1];if(t===a)return o<<1;a>t?i=o:r=o+1}return~(i<<1)}(e,t)}var ot,at=((ot={})[ot.Emulated=0]="Emulated",ot[ot.None=2]="None",ot[ot.ShadowDom=3]="ShadowDom",ot),st={},ut=[],lt=Re({"\u0275cmp":Re}),ct=Re({"\u0275dir":Re}),ht=Re({"\u0275pipe":Re}),ft=Re({"\u0275mod":Re}),dt=Re({"\u0275loc":Re}),vt=Re({"\u0275fac":Re}),pt=Re({__NG_ELEMENT_ID__:Re}),yt=0;function mt(e){return be((function(){var t={},n={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===Ve.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||ut,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||at.Emulated,id:"c",styles:e.styles||ut,_:null,setInput:null,schemas:e.schemas||null,tView:null},r=e.directives,i=e.features,o=e.pipes;return n.id+=yt++,n.inputs=wt(e.inputs,t),n.outputs=wt(e.outputs),i&&i.forEach((function(e){return e(n)})),n.directiveDefs=r?function(){return("function"==typeof r?r():r).map(gt)}:null,n.pipeDefs=o?function(){return("function"==typeof o?o():o).map(_t)}:null,n}))}function gt(e){return Et(e)||function(e){return e[ct]||null}(e)}function _t(e){return function(e){return e[ht]||null}(e)}var kt={};function bt(e){var t={type:e.type,bootstrap:e.bootstrap||ut,declarations:e.declarations||ut,imports:e.imports||ut,exports:e.exports||ut,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&be((function(){kt[e.id]=e.type})),t}function wt(e,t){if(null==e)return st;var n={};for(var r in e)if(e.hasOwnProperty(r)){var i=e[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,t&&(t[i]=o)}return n}var St=mt;function Et(e){return e[lt]||null}function Ct(e,t){var n=e[ft]||null;if(!n&&!0===t)throw new Error("Type ".concat(xe(e)," does not have '\u0275mod' property."));return n}function Tt(e){return"string"==typeof e?e:null==e?"":""+e}function xt(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Tt(e)}var At,It=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function Rt(e){var t=At;return At=e,t}function Ot(e,t,n){var r=De(e);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&It.Optional)return null;if(void 0!==t)return t;throw new Error("Injector: NOT_FOUND [".concat(xe(e),"]"))}var Pt={},Nt=/\n/gm,Dt=Re({provide:String,useValue:Re}),jt=void 0;function Lt(e){var t=jt;return jt=e,t}function Mt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:It.Default;if(void 0===jt)throw new Error("inject() must be called from an injection context");return null===jt?Ot(e,void 0,t):jt.get(e,t&It.Optional?null:void 0,t)}function Ft(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:It.Default;return(At||Mt)(Ye(e),t)}var Ut=Ft;function Ht(e){for(var t=[],n=0;n=r)break}else t[a]<0&&(e[18]+=65536),(o>11>16&&(3&e[2])===t&&(e[2]+=2048,o.call(a)):o.call(a)}hr.ngInherit=!0;var wr=function e(t,n,r){E(this,e),this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r};function Sr(e,t,n){for(var r=Zt(e),i=0;it){a=o-1;break}}}for(;o>16,r=t;n>0;)r=r[15],n--;return r}var Or=!0;function Pr(e){var t=Or;return Or=e,t}var Nr=0;function Dr(e,t){var n=Lr(e,t);if(-1!==n)return n;var r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,jr(r.data,e),jr(t,null),jr(r.blueprint,null));var i=Mr(e,t),o=e.injectorIndex;if(Ar(i))for(var a=Ir(i),s=Rr(i,t),u=s[1].data,l=0;l<8;l++)t[o+l]=s[a+l]|u[a+l];return t[o+8]=i,o}function jr(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Lr(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Mr(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=0,r=null,i=t;null!==i;){var o=i[1],a=o.type;if(null===(r=2===a?o.declTNode:1===a?i[6]:null))return-1;if(n++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function Fr(e,t,n){!function(e,t,n){var r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(pt)&&(r=n[pt]),null==r&&(r=n[pt]=Nr++);var i=255&r,o=1<3&&void 0!==arguments[3]?arguments[3]:It.Default,i=arguments.length>4?arguments[4]:void 0;if(null!==e){var o=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;var t=e.hasOwnProperty(pt)?e[pt]:void 0;return"number"==typeof t?t>=0?255&t:Vr:t}(n);if("function"==typeof o){if(!Tn(t,e,r))return r&It.Host?Ur(i,n,r):Hr(t,n,r,i);try{var a=o();if(null!=a||r&It.Optional)return a;lr(n)}finally{Pn()}}else if("number"==typeof o){var s=null,u=Lr(e,t),l=-1,c=r&It.Host?t[16][6]:null;for((-1===u||r&It.SkipSelf)&&(-1!==(l=-1===u?Mr(e,t):t[u+8])&&Kr(r,!1)?(s=t[1],u=Ir(l),t=Rr(l,t)):u=-1);-1!==u;){var h=t[1];if(Wr(o,u,h.data)){var f=qr(u,t,n,s,r,c);if(f!==Br)return f}-1!==(l=t[u+8])&&Kr(r,t[1].data[u+8]===c)&&Wr(o,u,t)?(s=h,u=Ir(l),t=Rr(l,t)):u=-1}}}return Hr(t,n,r,i)}var Br={};function Vr(){return new Zr(fn(),cn())}function qr(e,t,n,r,i,o){var a=t[1],s=a.data[e+8],u=Gr(s,a,n,null==r?Qt(s)&&Or:r!=a&&0!=(3&s.type),i&It.Host&&o===s);return null!==u?Qr(t,a,u,s):Br}function Gr(e,t,n,r,i){for(var o=e.providerIndexes,a=t.data,s=1048575&o,u=e.directiveStart,l=o>>20,c=i?s+l:e.directiveEnd,h=r?s:s+l;h=u&&f.type===n)return h}if(i){var d=a[u];if(d&&Kt(d)&&d.type===n)return u}return null}function Qr(e,t,n,r){var i=e[n],o=t.data;if(i instanceof wr){var a=i;a.resolving&&function(e,t){throw new ur("200","Circular dependency in DI detected for "+e)}(xt(o[n]));var s=Pr(a.canSeeViewProviders);a.resolving=!0;var u=a.injectImpl?Rt(a.injectImpl):null;Tn(e,r,It.Default);try{i=e[n]=a.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&function(e,t,n){var r=t.type.prototype,i=r.ngOnChanges,o=r.ngOnInit,a=r.ngDoCheck;if(i){var s=fr(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,o),a&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,a))}(n,o[n],t)}finally{null!==u&&Rt(u),Pr(s),a.resolving=!1,Pn()}}return i}function Wr(e,t,n){var r=64&e,i=32&e;return!!((128&e?r?i?n[t+7]:n[t+6]:i?n[t+5]:n[t+4]:r?i?n[t+3]:n[t+2]:i?n[t+1]:n[t])&1<1?t-1:0),r=1;r0&&(e[r-1][4]=i[4]);var a=tt(e,10+t);Oi(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 yi(e,t){if(!(256&t[2])){var n=t[11];Zt(n)&&n.destroyNode&&Oi(e,t,n,3,null,null),function(e){var t=e[13];if(!t)return mi(e[1],e);for(;t;){var n=null;if(Vt(t))n=t[13];else{var r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)Vt(t)&&mi(t[1],t),t=t[3];null===t&&(t=e),Vt(t)&&mi(t[1],t),n=t&&t[4]}t=n}}(t)}}function mi(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){var n;if(null!=e&&null!=(n=e.destroyHooks))for(var r=0;r=0?r[u]():r[-u].unsubscribe(),i+=2}else n[i].call(r[n[i+1]]);t[7]=null}}(e,t),1===t[1].type&&Zt(t[11])&&t[11].destroy();var n=t[17];if(null!==n&&qt(t[3])){n!==t[3]&&vi(n,t);var r=t[19];null!==r&&r.detachView(e)}}}function gi(e,t,n){return _i(e,t.parent,n)}function _i(e,t,n){for(var r=t;null!==r&&40&r.type;)r=(t=r).parent;if(null===r)return n[0];if(2&r.flags){var i=e.data[r.directiveStart].encapsulation;if(i===at.None||i===at.Emulated)return null}return Jt(r,n)}function ki(e,t,n,r,i){Zt(e)?e.insertBefore(t,n,r,i):t.insertBefore(n,r,i)}function bi(e,t,n){Zt(e)?e.appendChild(t,n):t.appendChild(n)}function wi(e,t,n,r,i){null!==r?ki(e,t,n,r,i):bi(e,t,n)}function Si(e,t){return Zt(e)?e.parentNode(t):t.parentNode}function Ei(e,t,n){return xi(e,t,n)}function Ci(e,t,n){return 40&e.type?Jt(e,n):null}var Ti,xi=Ci;function Ai(e,t){xi=e,Ti=t}function Ii(e,t,n,r){var i=gi(e,r,t),o=t[11],a=Ei(r.parent||t[6],r,t);if(null!=i)if(Array.isArray(n))for(var s=0;so?"":i[c+1].toLowerCase();var f=8&r?h:null;if(f&&-1!==ji(f,l,0)||2&r&&l!==h){if(Hi(r))return!1;a=!0}}}}else{if(!a&&!Hi(r)&&!Hi(u))return!1;if(a&&Hi(u))continue;a=!1,r=u|1&r}}return Hi(r)||a}function Hi(e){return 0==(1&e)}function zi(e,t,n,r){if(null===t)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||Hi(a)||(t+=qi(o,i),i=""),r=a,o=o||!Hi(r);n++}return""!==i&&(t+=qi(o,i)),t}var Qi={};function Wi(e){Ki(hn(),cn(),Dn()+e,gn())}function Ki(e,t,n,r){if(!r)if(3==(3&t[2])){var i=e.preOrderCheckHooks;null!==i&&mr(t,i,n)}else{var o=e.preOrderHooks;null!==o&&gr(t,o,0,n)}jn(n)}function Zi(e,t){return e<<17|t<<2}function $i(e){return e>>17&32767}function Yi(e){return 2|e}function Ji(e){return(131068&e)>>2}function Xi(e,t){return-131069&e|t<<2}function eo(e){return 1|e}function to(e,t){var n=e.contentQueries;if(null!==n)for(var r=0;r20&&Ki(e,t,20,gn()),n(r,i)}finally{jn(o)}}function co(e,t,n){ln()&&(function(e,t,n,r){var i=n.directiveStart,o=n.directiveEnd;e.firstCreatePass||Dr(n,t),ei(r,t);for(var a=n.initialInputs,s=i;s0;){var n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=u&&s.push(u),s.push(r,i,a)}}function _o(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function ko(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function bo(e,t,n){if(n){if(t.exportAs)for(var r=0;r0&&function e(t){for(var n=ui(t);null!==n;n=li(n))for(var r=10;r0&&e(i)}var a=t[1].components;if(null!==a)for(var s=0;s0&&e(u)}}(n)}}function Io(e,t){var n=en(t,e),r=n[1];!function(e,t){for(var n=t.length;n1&&void 0!==arguments[1]?arguments[1]:Pt;if(t===Pt){var n=new Error("NullInjectorError: No provider for ".concat(xe(e),"!"));throw n.name="NullInjectorError",n}return t}}]),e}(),Bo=new ze("Set Injector scope."),Vo={},qo={},Go=[],Qo=void 0;function Wo(){return void 0===Qo&&(Qo=new zo),Qo}function Ko(e){var t=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 Zo(e,n,t||Wo(),r)}var Zo=function(){function e(t,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;E(this,e),this.parent=r,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var a=[];n&&Xe(n,(function(e){return i.processProvider(e,t,n)})),Xe([t],(function(e){return i.processInjectorType(e,[],a)})),this.records.set(Ho,Jo(void 0,this));var s=this.records.get(Bo);this.scope=null!=s?s.value:null,this.source=o||("object"==typeof t?null:xe(t))}return T(e,[{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach((function(e){return e.ngOnDestroy()}))}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pt,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:It.Default;this.assertNotDestroyed();var r,i=Lt(this);try{if(!(n&It.SkipSelf)){var o=this.records.get(e);if(void 0===o){var a=("function"==typeof(r=e)||"object"==typeof r&&r instanceof ze)&&De(e);o=a&&this.injectableDefInScope(a)?Jo($o(e),Vo):null,this.records.set(e,o)}if(null!=o)return this.hydrate(e,o)}return(n&It.Self?Wo():this.parent).get(e,t=n&It.Optional&&t===Pt?null:t)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(xe(e)),i)throw s;return function(e,t,n,r){var i=e.ngTempTokenPath;throw t.__source&&i.unshift(t.__source),e.message=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var i=xe(t);if(Array.isArray(t))i=t.map(xe).join(" -> ");else if("object"==typeof t){var o=[];for(var a in t)if(t.hasOwnProperty(a)){var s=t[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):xe(s)))}i="{".concat(o.join(", "),"}")}return"".concat(n).concat(r?"("+r+")":"","[").concat(i,"]: ").concat(e.replace(Nt,"\n "))}("\n"+e.message,i,"R3InjectorError",r),e.ngTokenPath=i,e.ngTempTokenPath=null,e}(s,e,0,this.source)}throw s}finally{Lt(i)}}},{key:"_resolveInjectorDefTypes",value:function(){var e=this;this.injectorDefTypes.forEach((function(t){return e.get(t)}))}},{key:"toString",value:function(){var e=[];return this.records.forEach((function(t,n){return e.push(xe(n))})),"R3Injector[".concat(e.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(e,t,n){var r=this;if(!(e=Ye(e)))return!1;var i=Le(e),o=null==i&&e.ngModule||void 0,a=void 0===o?e:o,s=-1!==n.indexOf(a);if(void 0!==o&&(i=Le(o)),null==i)return!1;if(null!=i.imports&&!s){var u;n.push(a);try{Xe(i.imports,(function(e){r.processInjectorType(e,t,n)&&(void 0===u&&(u=[]),u.push(e))}))}finally{}if(void 0!==u)for(var l=function(e){var t=u[e],n=t.ngModule,i=t.providers;Xe(i,(function(e){return r.processProvider(e,n,i||Go)}))},c=0;c0){var n=nt(t,"?");throw new Error("Can't resolve all parameters for ".concat(xe(e),": (").concat(n.join(", "),")."))}var r=function(e){var t=e&&(e[Me]||e[Ue]);if(t){var n=function(e){if(e.hasOwnProperty("name"))return e.name;var t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(n,'" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "').concat(n,'" class.')),t}return null}(e);return null!==r?function(){return r.factory(e)}:function(){return new e}}(e);throw new Error("unreachable")}function Yo(e,t,n){var r,i=void 0;if(ea(e)){var o=Ye(e);return sr(o)||$o(o)}if(Xo(e))i=function(){return Ye(e.useValue)};else if((r=e)&&r.useFactory)i=function(){return e.useFactory.apply(e,c(Ht(e.deps||[])))};else if(function(e){return!(!e||!e.useExisting)}(e))i=function(){return Ft(Ye(e.useExisting))};else{var a=Ye(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return sr(a)||$o(a);i=function(){return p(a,c(Ht(e.deps)))}}return i}function Jo(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:t,multi:n?[]:void 0}}function Xo(e){return null!==e&&"object"==typeof e&&Dt in e}function ea(e){return"function"==typeof e}var ta=function(e,t,n){return function(e){var t=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,i=Ko(e,t,n,r);return i._resolveInjectorDefTypes(),i}({name:n},t,e,n)},na=function(){var e=function(){function e(){E(this,e)}return T(e,null,[{key:"create",value:function(e,t){return Array.isArray(e)?ta(e,t,""):ta(e.providers,e.parent,e.name||"")}}]),e}();return e.THROW_IF_NOT_FOUND=Pt,e.NULL=new zo,e.\u0275prov=Pe({token:e,providedIn:"any",factory:function(){return Ft(Ho)}}),e.__NG_ELEMENT_ID__=-1,e}();function ra(e,t){yr(tn(e)[1],fn())}function ia(e){for(var t=Object.getPrototypeOf(e.type.prototype).constructor,n=!0,r=[e];t;){var i=void 0;if(Kt(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");i=t.\u0275dir}if(i){if(n){r.push(i);var o=e;o.inputs=oa(e.inputs),o.declaredInputs=oa(e.declaredInputs),o.outputs=oa(e.outputs);var a=i.hostBindings;a&&ua(e,a);var s=i.viewQuery,u=i.contentQueries;if(s&&aa(e,s),u&&sa(e,u),Oe(e.inputs,i.inputs),Oe(e.declaredInputs,i.declaredInputs),Oe(e.outputs,i.outputs),Kt(i)&&i.data.animation){var l=e.data;l.animation=(l.animation||[]).concat(i.data.animation)}}var c=i.features;if(c)for(var h=0;h=0;r--){var i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=Tr(i.hostAttrs,n=Tr(n,i.hostAttrs))}}(r)}function oa(e){return e===st?{}:e===ut?[]:e}function aa(e,t){var n=e.viewQuery;e.viewQuery=n?function(e,r){t(e,r),n(e,r)}:t}function sa(e,t){var n=e.contentQueries;e.contentQueries=n?function(e,r,i){t(e,r,i),n(e,r,i)}:t}function ua(e,t){var n=e.hostBindings;e.hostBindings=n?function(e,r){t(e,r),n(e,r)}:t}var la=null;function ca(){if(!la){var e=Ke.Symbol;if(e&&e.iterator)la=e.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),n=0;n1&&void 0!==arguments[1]?arguments[1]:It.Default,n=cn();return null===n?Ft(e,t):zr(fn(),n,Ye(e),t)}function ya(e,t,n){var r=cn();return da(r,kn(),t)&&yo(hn(),Ln(),r,e,t,r[11],n,!1),ya}function ma(e,t,n,r,i){var o=i?"class":"style";Fo(e,n,t.inputs[o],o,r)}function ga(e,t,n,r){var i=cn(),o=hn(),a=20+e,s=i[11],u=i[a]=di(s,t,un.lFrame.currentNamespace),l=o.firstCreatePass?function(e,t,n,r,i,o,a){var s=t.consts,u=ro(t,e,2,i,on(s,o));return mo(t,n,u,on(s,a)),null!==u.attrs&&Uo(u,u.attrs,!1),null!==u.mergedAttrs&&Uo(u,u.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,u),u}(a,o,i,0,t,n,r):o.data[a];pn(l,!0);var c=l.mergedAttrs;null!==c&&Sr(s,u,c);var h=l.classes;null!==h&&Di(s,u,h);var f=l.styles;null!==f&&Ni(s,u,f),64!=(64&l.flags)&&Ii(o,i,u,l),0===un.lFrame.elementDepthCount&&ei(u,i),un.lFrame.elementDepthCount++,Wt(l)&&(co(o,i,l),function(e,t,n){if(Gt(t))for(var r=t.directiveEnd,i=t.directiveStart;i2&&void 0!==arguments[2]?arguments[2]:Jt,r=t.localNames;if(null!==r)for(var i=t.index+1,o=0;o2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=cn(),o=hn(),a=fn();return function(e,t,n,r,i,o){var a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7?arguments[7]:void 0,u=Wt(r),l=e.firstCreatePass&&(e.cleanup||(e.cleanup=[])),c=Lo(t),h=!0;if(3&r.type){var f=Jt(r,t),d=s?s(f):st,v=d.target||f,p=c.length,y=s?function(e){return s(Yt(e[r.index])).target}:r.index;if(Zt(n)){var m=null;if(!s&&u&&(m=function(e,t,n,r){var i=e.cleanup;if(null!=i)for(var o=0;ou?s[u]:null}"string"==typeof a&&(o+=2)}return null}(e,t,i,r.index)),null!==m)(m.__ngLastListenerFn__||m).__ngNextListenerFn__=o,m.__ngLastListenerFn__=o,h=!1;else{o=Ea(r,t,o,!1);var g=n.listen(d.name||v,i,o);c.push(o,g),l&&l.push(i,y,p,p+1)}}else o=Ea(r,t,o,!0),v.addEventListener(i,o,a),c.push(o),l&&l.push(i,y,p,a)}var _,k=r.outputs;if(h&&null!==k&&(_=k[i])){var b=_.length;if(b)for(var w=0;w1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,r=cn(),i=hn(),o=ro(i,20+e,16,null,n||null);null===o.projection&&(o.projection=t),mn(),64!=(64&o.flags)&&function(e,t,n){Pi(t[11],0,t,n,gi(e,n,t),Ei(n.parent||t[6],n,t))}(i,r,o)}var Aa=[];function Ia(e,t,n,r,i){for(var o=e[n+1],a=null===t,s=r?$i(o):Ji(o),u=!1;0!==s&&(!1===u||a);){var l=e[s+1];Ra(e[s],t)&&(u=!0,e[s+1]=r?eo(l):Yi(l)),s=r?$i(l):Ji(l)}u&&(e[n+1]=r?Yi(o):eo(o))}function Ra(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&it(e,t)>=0}function Oa(e,t){return function(e,t,n,r){var i,o,a=cn(),s=hn(),u=(i=un.lFrame,o=i.bindingIndex,i.bindingIndex=i.bindingIndex+2,o);s.firstUpdatePass&&function(e,t,n,r){var i=e.data;if(null===i[n+1]){var o=i[Dn()],a=function(e,t){return t>=e.expandoStartIndex}(e,n);(function(e,t){return 0!=(16&e.flags)})(o)&&null===t&&!a&&(t=!1),t=function(e,t,n,r){var i=function(e){var t=un.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e),o=t.residualClasses;if(null===i)0===t.classBindings&&(n=Na(n=Pa(null,e,t,n,!0),t.attrs,!0),o=null);else{var a=t.directiveStylingLast;if(-1===a||e[a]!==i)if(n=Pa(i,e,t,n,!0),null===o){var s=function(e,t,n){var r=t.classBindings;if(0!==Ji(r))return e[$i(r)]}(e,t);void 0!==s&&Array.isArray(s)&&function(e,t,n,r){e[$i(t.classBindings)]=r}(e,t,0,s=Na(s=Pa(null,e,t,s[1],!0),t.attrs,!0))}else o=function(e,t,n){for(var r=void 0,i=t.directiveEnd,o=1+t.directiveStylingLast;o0)&&(c=!0)}else l=n;if(i)if(0!==u){var f=$i(e[s+1]);e[r+1]=Zi(f,s),0!==f&&(e[f+1]=Xi(e[f+1],r)),e[s+1]=131071&e[s+1]|r<<17}else e[r+1]=Zi(s,0),0!==s&&(e[s+1]=Xi(e[s+1],r)),s=r;else e[r+1]=Zi(u,0),0===s?s=r:e[u+1]=Xi(e[u+1],r),u=r;c&&(e[r+1]=Yi(e[r+1])),Ia(e,l,r,!0),Ia(e,l,r,!1),function(e,t,n,r,i){var o=e.residualClasses;null!=o&&"string"==typeof t&&it(o,t)>=0&&(n[r+1]=eo(n[r+1]))}(t,l,e,r),a=Zi(s,u),t.classBindings=a}(i,o,t,n,a)}}(s,e,u),t!==Qi&&da(a,u,t)&&function(e,t,n,r,i,o,a,s){if(3&t.type){var u=e.data,l=u[s+1];ja(1==(1&l)?Da(u,t,n,i,Ji(l),!0):void 0)||(ja(o)||2==(2&l)&&(o=Da(u,null,n,i,s,!0)),function(e,t,n,r,i){var o=Zt(e);i?o?e.addClass(n,r):n.classList.add(r):o?e.removeClass(n,r):n.classList.remove(r)}(r,0,function(e,t){return Yt(t[e])}(Dn(),n),i,o))}}(s,s.data[Dn()],a,a[11],e,a[u+1]=function(e,t){return null==e||"object"==typeof e&&(e=xe(Un(e))),e}(t),0,u)}(e,t),Oa}function Pa(e,t,n,r,i){var o=null,a=n.directiveEnd,s=n.directiveStylingLast;for(-1===s?s=n.directiveStart:s++;s=0?r[1|a]=o:function(e,t,n,r){var i=e.length;if(i==t)e.push(n,r);else if(1===i)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;)e[i]=e[i-2],i--;e[t]=n,e[t+1]=r}}(r,a=~a,i,o))}return void 0===e?null:e}function Da(e,t,n,r,i,o){for(var a=null===t,s=void 0;i>0;){var u=e[i],l=Array.isArray(u),c=l?u[1]:u,h=null===c,f=n[i+1];f===Qi&&(f=h?Aa:void 0);var d=h?rt(f,r):c===r?f:void 0;if(l&&!ja(d)&&(d=rt(u,r)),ja(d)&&(s=d,a))return s;var v=e[i+1];i=a?$i(v):Ji(v)}if(null!==t){var p=o?t.residualClasses:t.residualStyles;null!=p&&(s=rt(p,r))}return s}function ja(e){return void 0!==e}function La(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=cn(),r=hn(),i=e+20,o=r.firstCreatePass?ro(r,i,1,t,null):r.data[i],a=n[i]=fi(n[11],t);Ii(r,n,a,o),pn(o,!1)}function Ma(e,t,n){var r=cn();return da(r,kn(),t)&&yo(hn(),Ln(),r,e,t,r[11],n,!0),Ma}var Fa=void 0,Ua=["en",[["a","p"],["AM","PM"],Fa],[["AM","PM"],Fa,Fa],[["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"]],Fa,[["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"]],Fa,[["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}",Fa,"{1} 'at' {0}",Fa],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],Ha={};function za(e){return e in Ha||(Ha[e]=Ke.ng&&Ke.ng.common&&Ke.ng.common.locales&&Ke.ng.common.locales[e]),Ha[e]}var Ba=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}({}),Va={marker:"element"},qa={marker:"ICU"},Ga=function(e){return e[e.SHIFT=2]="SHIFT",e[e.APPEND_EAGERLY=1]="APPEND_EAGERLY",e[e.COMMENT=2]="COMMENT",e}({});function Qa(e){var t;null==(t=e)&&Ie("Expected localeId to be defined",t,null,"!="),"string"==typeof e&&e.toLowerCase().replace(/_/g,"-")}function Wa(e,t,n){var r=t.insertBeforeIndex,i=Array.isArray(r)?r[0]:r;return null===i?Ci(e,0,n):Yt(n[i])}function Ka(e,t,n,r,i){var o=t.insertBeforeIndex;if(Array.isArray(o)){var a=r,s=null;if(3&t.type||(s=a,a=i),null!==a&&0==(2&t.flags))for(var u=1;u1)for(var n=e.length-2;n>=0;n--){var r=e[n];$a(r)||Ya(r,t)&&null===(i=void 0,i=r.insertBeforeIndex,Array.isArray(i)?i[0]:i)&&Ja(r,t.index)}var i}function $a(e){return!(64&e.type)}function Ya(e,t){return $a(t)||e.index>t.index}function Ja(e,t){var n=e.insertBeforeIndex;Array.isArray(n)?n[0]=t:(Ai(Wa,Ka),e.insertBeforeIndex=t)}function Xa(e,t,n){var r=io(e,n,64,null,null);return Za(t,r),r}var es=/\ufffd(\d+):?\d*\ufffd/gi,ts=/\ufffd(\d+)\ufffd/,ns=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,rs=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,is=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,os=/\uE500/g;function as(e,t,n,r,i,o,a){var s=oo(e,r,1,null),u=s<0?e[a]:(n.push(r,t),i(e[1].data[~a],e),o())}return 0===n.length?null:(t=n.pop(),r=n.pop(),o())}return function(t,r){for(e=r;n.length;)n.pop();return i(t.value,r),o}}())),i.push(u,null===o?"":o);var c=io(e,s,a?32:1,null===o?"":o,null);Za(n,c);var h=c.index;return pn(c,!1),null!==l&&t!==l&&function(e,t){var n,r=e.insertBeforeIndex;null===r?(Ai(Wa,Ka),r=e.insertBeforeIndex=[null,t]):(1!=(n=Array.isArray(r))&&Ie("Expecting array here",n,!0,"=="),r.push(t))}(l,h),c}function ss(e,t,n,r,i,o,a){var s=a.match(es),u=as(e,t,n,o,r,s?null:a,!1);s&&us(i,a,u.index)}function us(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=e.length,a=o+1;e.push(null,null);for(var s=o+2,u=t.split(es),l=0,c=0;cn.length&&n.push(u)}return{type:r,mainBinding:i,cases:t,values:n}}function ds(e){if(!e)return[];var t,n=0,r=[],i=[],o=/[{}]/g;for(o.lastIndex=0;t=o.exec(e);){var a=t.index;if("}"==t[0]){if(r.pop(),0==r.length){var s=e.substring(n,a);ns.test(s)?i.push(fs(s)):i.push(s),n=a+1}}else{if(0==r.length){var u=e.substring(n,a);i.push(u),n=a+1}r.push("{")}}var l=e.substring(n);return i.push(l),i}function vs(e,t,n,r,i,o,a,s){var u=[],l=[],c=[];t.cases.push(o),t.create.push(u),t.remove.push(l),t.update.push(c);var h,f,d=(f=Bt(),function(){try{return!!(new window.DOMParser).parseFromString(Mn(""),"text/html")}catch(e){return!1}}()?new Vn:new qn(f)).getInertBodyElement(a),v=("content"in(h=d)&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(h)?h.content:null)||d;return v?function e(t,n,r,i,o,a,s,u,l,c,h){for(var f=0,d=u.firstChild;d;){var v=oo(t,r,1,null);switch(d.nodeType){case Node.ELEMENT_NODE:var p=d,y=p.tagName.toLowerCase();if(tr.hasOwnProperty(y)){ms(o,Va,y,l,v),t.data[v]=y;for(var m=p.attributes,g=0;g2&&void 0!==arguments[2]?arguments[2]:-1,r=hn(),i=cn(),o=20+e,a=on(r.consts,t),s=vn();r.firstCreatePass&&function(e,t,n,r,i,o){for(var a,s=vn(),u=[],l=[],c=[[]],h=(a=i=function(e,t){if(function(e){return-1===e}(t))return cs(e);var n=e.indexOf(":".concat(t,"\ufffd"))+2+t.toString().length,r=e.search(new RegExp("\ufffd\\/\\*\\d+:".concat(t,"\ufffd")));return cs(e.substring(n,r))}(i,o),a.replace(os," ")).split(is),f=0;f>>Ga.SHIFT,h=e[c];null===h&&(h=e[c]=u?i.createComment(s):fi(i,s)),l&&null!==n&&ki(i,n,h,r,!1)}}(i,u.create,l,s&&8&s.type?i[s.index]:null),bn(!0)}function ks(){bn(!1)}function bs(e,t,n){_s(e,t,n),ks()}function ws(e,t,n,r,i){if(e=Ye(e),Array.isArray(e))for(var o=0;o>20;if(ea(e)||!e.multi){var v=new wr(l,i,pa),p=Cs(u,t,i?h:h+d,f);-1===p?(Fr(Dr(c,s),a,u),Ss(a,e,t.length),t.push(u),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),n.push(v),s.push(v)):(n[p]=v,s[p]=v)}else{var y=Cs(u,t,h+d,f),m=Cs(u,t,h,h+d),g=y>=0&&n[y],_=m>=0&&n[m];if(i&&!_||!i&&!g){Fr(Dr(c,s),a,u);var k=function(e,t,n,r,i){var o=new wr(e,n,pa);return o.multi=[],o.index=t,o.componentProviders=0,Es(o,i,r&&!n),o}(i?xs:Ts,n.length,i,r,l);!i&&_&&(n[m].providerFactory=k),Ss(a,e,t.length,0),t.push(u),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),n.push(k),s.push(k)}else Ss(a,e,y>-1?y:m,Es(n[i?m:y],l,!i&&r));!i&&r&&_&&n[m].componentProviders++}}}function Ss(e,t,n,r){var i=ea(t);if(i||t.useClass){var o=(t.useClass||t).prototype.ngOnDestroy;if(o){var a=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.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 Es(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Cs(e,t,n,r){for(var i=n;i1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,r){return function(e,t,n){var r=hn();if(r.firstCreatePass){var i=Kt(e);ws(n,r.data,r.blueprint,i,!0),ws(t,r.data,r.blueprint,i,!1)}}(n,r?r(e):e,t)}}}var Rs=function e(){E(this,e)},Os=function(){function e(){E(this,e)}return T(e,[{key:"resolveComponentFactory",value:function(e){throw function(e){var t=Error("No component factory found for ".concat(xe(e),". Did you add it to @NgModule.entryComponents?"));return t.ngComponent=e,t}(e)}}]),e}(),Ps=function(){var e=function e(){E(this,e)};return e.NULL=new Os,e}();function Ns(){}function Ds(e,t){return new Ls(Jt(e,t))}var js=function(){return Ds(fn(),cn())},Ls=function(){var e=function e(t){E(this,e),this.nativeElement=t};return e.__NG_ELEMENT_ID__=js,e}(),Ms=function e(){E(this,e)},Fs=function(){var e=function e(){E(this,e)};return e.__NG_ELEMENT_ID__=function(){return Us()},e}(),Us=function(){var e=cn(),t=en(fn().index,e);return function(e){return e[11]}(Vt(t)?t:e)},Hs=function(){var e=function e(){E(this,e)};return e.\u0275prov=Pe({token:e,providedIn:"root",factory:function(){return null}}),e}(),zs=function e(t){E(this,e),this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")},Bs=new zs("11.0.2"),Vs=function(){function e(){E(this,e)}return T(e,[{key:"supports",value:function(e){return ha(e)}},{key:"create",value:function(e){return new Gs(e)}}]),e}(),qs=function(e,t){return t},Gs=function(){function e(t){E(this,e),this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||qs}return T(e,[{key:"forEachItem",value:function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)}},{key:"forEachOperation",value:function(e){for(var t=this._itHead,n=this._removalsHead,r=0,i=null;t||n;){var o=!n||t&&t.currentIndex-1&&this._viewContainerRef.detach(e),this._viewContainerRef=null}yi(this._lView[1],this._lView)}},{key:"onDestroy",value:function(e){vo(this._lView[1],this._lView,null,e)}},{key:"markForCheck",value:function(){Oo(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){Po(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,t,n){_n(!0);try{Po(e,t,n)}finally{_n(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}},{key:"detachFromAppRef",value:function(){var e;this._appRef=null,Oi(this._lView[1],e=this._lView,e[11],2,null,null)}},{key:"attachToAppRef",value:function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}},{key:"rootNodes",get:function(){var e=this._lView,t=e[1];return function e(t,n,r,i){for(var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==r;){var a=n[r.index];if(null!==a&&i.push(Yt(a)),qt(a))for(var s=10;s0&&void 0!==arguments[0]&&arguments[0];return function(e,t,n){if(!n&&Qt(e)){var r=en(e.index,t);return new tu(r,r)}return 47&e.type?new tu(t[16],t):null}(fn(),cn(),e)},iu=function(){var e=function e(){E(this,e)};return e.__NG_ELEMENT_ID__=ru,e.__ChangeDetectorRef__=!0,e}(),ou=[new $s],au=new Xs([new Vs]),su=new eu(ou),uu=function(){return hu(fn(),cn())},lu=function(){var e=function e(){E(this,e)};return e.__NG_ELEMENT_ID__=uu,e}(),cu=function(e){m(n,e);var t=_(n);function n(e,r,i){var o;return E(this,n),(o=t.call(this))._declarationLView=e,o._declarationTContainer=r,o.elementRef=i,o}return T(n,[{key:"createEmbeddedView",value:function(e){var t=this._declarationTContainer.tViews,n=no(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];var r=this._declarationLView[19];return null!==r&&(n[19]=r.createEmbeddedView(t)),ao(t,n,e),new tu(n)}}]),n}(lu);function hu(e,t){return 4&e.type?new cu(t,e,Ds(e,t)):null}var fu=function e(){E(this,e)},du=function e(){E(this,e)},vu=function(){return _u(fn(),cn())},pu=function(){var e=function e(){E(this,e)};return e.__NG_ELEMENT_ID__=vu,e}(),yu=function(e){m(n,e);var t=_(n);function n(e,r,i){var o;return E(this,n),(o=t.call(this))._lContainer=e,o._hostTNode=r,o._hostLView=i,o}return T(n,[{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(e){var t=mu(this._lContainer);return null!==t&&t[e]||null}},{key:"createEmbeddedView",value:function(e,t,n){var r=e.createEmbeddedView(t||{});return this.insert(r,n),r}},{key:"createComponent",value:function(e,t,n,r,i){var o=n||this.parentInjector;if(!i&&null==e.ngModule&&o){var a=o.get(fu,null);a&&(i=a)}var s=e.create(o,r,void 0,i);return this.insert(s.hostView,t),s}},{key:"insert",value:function(e,t){var r=e._lView,i=r[1];if(qt(r[3])){var o=this.indexOf(e);if(-1!==o)this.detach(o);else{var a=r[3],s=new n(a,a[6],a[3]);s.detach(s.indexOf(e))}}var u=this._adjustIndex(t),l=this._lContainer;!function(e,t,n,r){var i=10+r,o=n.length;r>0&&(n[i-1][4]=t),r1&&void 0!==arguments[1]?arguments[1]:0;return null==e?this.length+t:e}},{key:"element",get:function(){return Ds(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new Zr(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var e=Mr(this._hostTNode,this._hostLView);if(Ar(e)){var t=Rr(e,this._hostLView),n=Ir(e);return new Zr(t[1].data[n+8],t)}return new Zr(null,this._hostLView)}},{key:"length",get:function(){return this._lContainer.length-10}}]),n}(pu);function mu(e){return e[8]}function gu(e){return e[8]||(e[8]=[])}function _u(e,t){var n,r=t[e.index];if(qt(r))n=r;else{var i;if(8&e.type)i=Yt(r);else{var o=t[11];i=o.createComment("");var a=Jt(e,t);ki(o,Si(o,a),i,function(e,t){return Zt(e)?e.nextSibling(t):t.nextSibling}(o,a),!1)}t[e.index]=n=xo(r,t,i,e),Ro(t,n)}return new yu(n,e,t)}var ku={},bu=function(e){m(n,e);var t=_(n);function n(e){var r;return E(this,n),(r=t.call(this)).ngModule=e,r}return T(n,[{key:"resolveComponentFactory",value:function(e){var t=Et(e);return new Eu(t,this.ngModule)}}]),n}(Ps);function wu(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}var Su=new ze("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return ti}}),Eu=function(e){m(n,e);var t=_(n);function n(e,r){var i;return E(this,n),(i=t.call(this)).componentDef=e,i.ngModule=r,i.componentType=e.type,i.selector=e.selectors.map(Gi).join(","),i.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],i.isBoundToModule=!!r,i}return T(n,[{key:"create",value:function(e,t,n,r){var i,o,a=(r=r||this.ngModule)?function(e,t){return{get:function(n,r,i){var o=e.get(n,ku,i);return o!==ku||r===ku?o:t.get(n,r,i)}}}(e,r.injector):e,s=a.get(Ms,$t),u=a.get(Hs,null),l=s.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",h=n?function(e,t,n){if(Zt(e))return e.selectRootElement(t,n===at.ShadowDom);var r="string"==typeof t?e.querySelector(t):t;return r.textContent="",r}(l,n,this.componentDef.encapsulation):di(s.createRenderer(null,this.componentDef),c,function(e){var t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(c)),f=this.componentDef.onPush?576:528,d={components:[],scheduler:ti,clean:jo,playerHandler:null,flags:0},v=fo(0,null,null,1,0,null,null,null,null,null),p=no(null,v,d,f,null,null,s,l,u,a);xn(p);try{var y=function(e,t,n,r,i,o){var a=n[1];n[20]=e;var s=ro(a,20,2,"#host",null),u=s.mergedAttrs=t.hostAttrs;null!==u&&(Uo(s,u,!0),null!==e&&(Sr(i,e,u),null!==s.classes&&Di(i,e,s.classes),null!==s.styles&&Ni(i,e,s.styles)));var l=r.createRenderer(e,t),c=no(n,ho(t),null,t.onPush?64:16,n[20],s,r,l,null,null);return a.firstCreatePass&&(Fr(Dr(s,n),a,t.type),ko(a,s),wo(s,n.length,1)),Ro(n,c),n[20]=c}(h,this.componentDef,p,s,l);if(h)if(n)Sr(l,h,["ng-version",Bs.full]);else{var m=function(e){for(var t=[],n=[],r=1,i=2;r0&&Di(l,h,_.join(" "))}if(o=Xt(v,20),void 0!==t)for(var k=o.projection=[],b=0;b1&&void 0!==arguments[1]?arguments[1]:na.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:It.Default;return e===na||e===fu||e===Ho?this:this._r3Injector.get(e,t,n)}},{key:"destroy",value:function(){var e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach((function(e){return e()})),this.destroyCbs=null}},{key:"onDestroy",value:function(e){this.destroyCbs.push(e)}}]),n}(fu),Au=function(e){m(n,e);var t=_(n);function n(e){var r,i,o;return E(this,n),(r=t.call(this)).moduleType=e,null!==Ct(e)&&(i=e,o=new Set,function e(t){var n=Ct(t,!0),r=n.id;null!==r&&(function(e,t,n){if(t&&t!==n)throw new Error("Duplicate module registered for ".concat(e," - ").concat(xe(t)," vs ").concat(xe(t.name)))}(r,Tu.get(r),t),Tu.set(r,t));var i,a=f(ri(n.imports));try{for(a.s();!(i=a.n()).done;){var s=i.value;o.has(s)||(o.add(s),e(s))}}catch(u){a.e(u)}finally{a.f()}}(i)),r}return T(n,[{key:"create",value:function(e){return new xu(this.moduleType,e)}}]),n}(du),Iu=function(e){m(n,e);var t=_(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return E(this,n),(e=t.call(this)).__isAsync=r,e}return T(n,[{key:"emit",value:function(e){y(S(n.prototype),"next",this).call(this,e)}},{key:"subscribe",value:function(e,t,r){var i,o=function(e){return null},a=function(){return null};e&&"object"==typeof e?(i=this.__isAsync?function(t){setTimeout((function(){return e.next(t)}))}:function(t){e.next(t)},e.error&&(o=this.__isAsync?function(t){setTimeout((function(){return e.error(t)}))}:function(t){e.error(t)}),e.complete&&(a=this.__isAsync?function(){setTimeout((function(){return e.complete()}))}:function(){e.complete()})):(i=this.__isAsync?function(t){setTimeout((function(){return e(t)}))}:function(t){e(t)},t&&(o=this.__isAsync?function(e){setTimeout((function(){return t(e)}))}:function(e){t(e)}),r&&(a=this.__isAsync?function(){setTimeout((function(){return r()}))}:function(){r()}));var s=y(S(n.prototype),"subscribe",this).call(this,i,o,a);return e instanceof N&&e.add(s),s}}]),n}(W);function Ru(){return this._results[ca()]()}var Ou=function(){function e(){E(this,e),this.dirty=!0,this._results=[],this.changes=new Iu,this.length=0;var t=ca(),n=e.prototype;n[t]||(n[t]=Ru)}return T(e,[{key:"map",value:function(e){return this._results.map(e)}},{key:"filter",value:function(e){return this._results.filter(e)}},{key:"find",value:function(e){return this._results.find(e)}},{key:"reduce",value:function(e,t){return this._results.reduce(e,t)}},{key:"forEach",value:function(e){this._results.forEach(e)}},{key:"some",value:function(e){return this._results.some(e)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(e){this._results=function e(t,n){void 0===n&&(n=t);for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:[];E(this,e),this.queries=t}return T(e,[{key:"createEmbeddedView",value:function(t){var n=t.queries;if(null!==n){for(var r=null!==t.contentQueries?t.contentQueries[0]:n.length,i=[],o=0;o3&&void 0!==arguments[3]?arguments[3]:null;E(this,e),this.predicate=t,this.descendants=n,this.isStatic=r,this.read=i},ju=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];E(this,e),this.queries=t}return T(e,[{key:"elementStart",value:function(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:-1;E(this,e),this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return T(e,[{key:"elementStart",value:function(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}},{key:"elementEnd",value:function(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(e,t){this.elementStart(e,t)}},{key:"embeddedTView",value:function(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}},{key:"isApplyingToNode",value:function(e){if(this._appliesToNextNode&&!1===this.metadata.descendants){for(var t=this._declarationNodeIndex,n=e.parent;null!==n&&8&n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(e,t){var n=this.metadata.predicate;if(Array.isArray(n))for(var r=0;r0)i.push(s[u/2]);else{for(var c=a[u+1],h=n[-l],f=10;f0&&(i=setTimeout((function(){r._callbacks=r._callbacks.filter((function(e){return e.timeoutId!==i})),e(r._didWork,r.getPendingTasks())}),t)),this._callbacks.push({doneCb:e,timeoutId:i,updateCb:n})}},{key:"whenStable",value:function(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(e,t,n){return[]}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ft(dl))},e.\u0275prov=Pe({token:e,factory:e.\u0275fac}),e}(),Sl=function(){var e=function(){function e(){E(this,e),this._applications=new Map,El.addToWindow(this)}return T(e,[{key:"registerApplication",value:function(e,t){this._applications.set(e,t)}},{key:"unregisterApplication",value:function(e){this._applications.delete(e)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(e){return this._applications.get(e)||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(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return El.findTestabilityInTree(this,e,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Pe({token:e,factory:e.\u0275fac}),e}(),El=new(function(){function e(){E(this,e)}return T(e,[{key:"addToWindow",value:function(e){}},{key:"findTestabilityInTree",value:function(e,t,n){return null}}]),e}()),Cl=new ze("AllowMultipleToken"),Tl=function e(t,n){E(this,e),this.name=t,this.token=n};function xl(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r="Platform: "+t,i=new ze(r);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=Al();if(!o||o.injector.get(Cl,!1))if(e)e(n.concat(t).concat({provide:i,useValue:!0}));else{var a=n.concat(t).concat({provide:i,useValue:!0},{provide:Bo,useValue:"platform"});!function(e){if(kl&&!kl.destroyed&&!kl.injector.get(Cl,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");kl=e.get(Il);var t=e.get(Yu,null);t&&t.forEach((function(e){return e()}))}(na.create({providers:a,name:r}))}return function(e){var t=Al();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(i)}}function Al(){return kl&&!kl.destroyed?kl:null}var Il=function(){var e=function(){function e(t){E(this,e),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return T(e,[{key:"bootstrapModuleFactory",value:function(e,t){var n,r,i=this,o=(n=t?t.ngZone:void 0,r=t&&t.ngZoneEventCoalescing||!1,"noop"===n?new bl:("zone.js"===n?void 0:n)||new dl({enableLongStackTrace:Bn(),shouldCoalesceEventChangeDetection:r})),a=[{provide:dl,useValue:o}];return o.run((function(){var t=na.create({providers:a,parent:i.injector,name:e.moduleType.name}),n=e.create(t),r=n.injector.get(Xr,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy((function(){return Nl(i._modules,n)})),o.runOutsideAngular((function(){return o.onError.subscribe({next:function(e){r.handleError(e)}})})),function(e,t,r){try{var o=((a=n.injector.get(Wu)).runInitializers(),a.donePromise.then((function(){return Qa(n.injector.get(tl,"en-US")||"en-US"),i._moduleDoBootstrap(n),n})));return ba(o)?o.catch((function(n){throw t.runOutsideAngular((function(){return e.handleError(n)})),n})):o}catch(s){throw t.runOutsideAngular((function(){return e.handleError(s)})),s}var a}(r,o)}))}},{key:"bootstrapModule",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=Rl({},n);return function(e,t,n){var r=new Au(n);return Promise.resolve(r)}(0,0,e).then((function(e){return t.bootstrapModuleFactory(e,r)}))}},{key:"_moduleDoBootstrap",value:function(e){var t=e.injector.get(Pl);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach((function(e){return t.bootstrap(e)}));else{if(!e.instance.ngDoBootstrap)throw new Error("The module ".concat(xe(e.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.'));e.instance.ngDoBootstrap(t)}this._modules.push(e)}},{key:"onDestroy",value:function(e){this._destroyListeners.push(e)}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach((function(e){return e.destroy()})),this._destroyListeners.forEach((function(e){return e()})),this._destroyed=!0}},{key:"injector",get:function(){return this._injector}},{key:"destroyed",get:function(){return this._destroyed}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ft(na))},e.\u0275prov=Pe({token:e,factory:e.\u0275fac}),e}();function Rl(e,t){return Array.isArray(t)?t.reduce(Rl,e):Object.assign(Object.assign({},e),t)}var Ol,Pl=((Ol=function(){function e(t,n,r,i,o,a){var s=this;E(this,e),this._zone=t,this._console=n,this._injector=r,this._exceptionHandler=i,this._componentFactoryResolver=o,this._initStatus=a,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Bn(),this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run((function(){s.tick()}))}});var u=new z((function(e){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular((function(){e.next(s._stable),e.complete()}))})),l=new z((function(e){var t;s._zone.runOutsideAngular((function(){t=s._zone.onStable.subscribe((function(){dl.assertNotInAngularZone(),fl((function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,e.next(!0))}))}))}));var n=s._zone.onUnstable.subscribe((function(){dl.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular((function(){e.next(!1)})))}));return function(){t.unsubscribe(),n.unsubscribe()}}));this.isStable=function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&"number"==typeof t[t.length-1]&&(r=t.pop())):"number"==typeof o&&(r=t.pop()),null===i&&1===t.length&&t[0]instanceof z?t[0]:fe(r)(de(t,i))}(u,l.pipe((function(e){return ve()((t=ke,function(e){var n;n="function"==typeof t?t:function(){return t};var r=Object.create(e,ge);return r.source=e,r.subjectFactory=n,r})(e));var t})))}return T(e,[{key:"bootstrap",value:function(e,t){var n,r=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=e instanceof Rs?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var i=n.isBoundToModule?void 0:this._injector.get(fu),o=n.create(na.NULL,[],t||n.selector,i);o.onDestroy((function(){r._unloadComponent(o)}));var a=o.injector.get(wl,null);return a&&o.injector.get(Sl).registerApplication(o.location.nativeElement,a),this._loadComponent(o),Bn()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),o}},{key:"tick",value:function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var t,n=f(this._views);try{for(n.s();!(t=n.n()).done;)t.value.detectChanges()}catch(o){n.e(o)}finally{n.f()}if(this._enforceNoNewChanges){var r,i=f(this._views);try{for(i.s();!(r=i.n()).done;)r.value.checkNoChanges()}catch(o){i.e(o)}finally{i.f()}}}catch(a){this._zone.runOutsideAngular((function(){return e._exceptionHandler.handleError(a)}))}finally{this._runningTick=!1}}},{key:"attachView",value:function(e){var t=e;this._views.push(t),t.attachToAppRef(this)}},{key:"detachView",value:function(e){var t=e;Nl(this._views,t),t.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Xu,[]).concat(this._bootstrapListeners).forEach((function(t){return t(e)}))}},{key:"_unloadComponent",value:function(e){this.detachView(e.hostView),Nl(this.components,e)}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach((function(e){return e.destroy()}))}},{key:"viewCount",get:function(){return this._views.length}}]),e}()).\u0275fac=function(e){return new(e||Ol)(Ft(dl),Ft(el),Ft(na),Ft(Xr),Ft(Ps),Ft(Wu))},Ol.\u0275prov=Pe({token:Ol,factory:Ol.\u0275fac}),Ol);function Nl(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Dl=function e(){E(this,e)},jl=function e(){E(this,e)},Ll={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Ml=function(){var e=function(){function e(t,n){E(this,e),this._compiler=t,this._config=n||Ll}return T(e,[{key:"load",value:function(e){return this.loadAndCompile(e)}},{key:"loadAndCompile",value:function(e){var t=this,n=l(e.split("#"),2),r=n[0],i=n[1];return void 0===i&&(i="default"),v("zn8P")(r).then((function(e){return e[i]})).then((function(e){return Fl(e,r,i)})).then((function(e){return t._compiler.compileModuleAsync(e)}))}},{key:"loadFactory",value:function(e){var t=l(e.split("#"),2),n=t[0],r=t[1],i="NgFactory";return void 0===r&&(r="default",i=""),v("zn8P")(this._config.factoryPathPrefix+n+this._config.factoryPathSuffix).then((function(e){return e[r+i]})).then((function(e){return Fl(e,n,r)}))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ft(cl),Ft(jl,8))},e.\u0275prov=Pe({token:e,factory:e.\u0275fac}),e}();function Fl(e,t,n){if(!e)throw new Error("Cannot find '".concat(n,"' in '").concat(t,"'"));return e}var Ul=xl(null,"core",[{provide:Ju,useValue:"unknown"},{provide:Il,deps:[na]},{provide:Sl,deps:[]},{provide:el,deps:[]}]),Hl=[{provide:Pl,useClass:Pl,deps:[dl,el,na,Xr,Ps,Wu]},{provide:Su,deps:[dl],useFactory:function(e){var t=[];return e.onStable.subscribe((function(){for(;t.length;)t.pop()()})),function(e){t.push(e)}}},{provide:Wu,useClass:Wu,deps:[[new Ee,Qu]]},{provide:cl,useClass:cl,deps:[]},Zu,{provide:Xs,useFactory:function(){return au},deps:[]},{provide:eu,useFactory:function(){return su},deps:[]},{provide:tl,useFactory:function(e){return Qa(e=e||"undefined"!=typeof $localize&&$localize.locale||"en-US"),e},deps:[[new Se(tl),new Ee,new Te]]},{provide:nl,useValue:"USD"}],zl=function(){var e=function e(t){E(this,e)};return e.\u0275mod=bt({type:e}),e.\u0275inj=Ne({factory:function(t){return new(t||e)(Ft(Pl))},providers:Hl}),e}(),Bl=null;function Vl(){return Bl}var ql,Gl=new ze("DocumentToken"),Ql=((ql=function e(){E(this,e)}).\u0275fac=function(e){return new(e||ql)},ql.\u0275prov=Pe({factory:Wl,token:ql,providedIn:"platform"}),ql);function Wl(){return Ft($l)}var Kl,Zl=new ze("Location Initialized"),$l=((Kl=function(e){m(n,e);var t=_(n);function n(e){var r;return E(this,n),(r=t.call(this))._doc=e,r._init(),r}return T(n,[{key:"_init",value:function(){this.location=Vl().getLocation(),this._history=Vl().getHistory()}},{key:"getBaseHrefFromDOM",value:function(){return Vl().getBaseHref(this._doc)}},{key:"onPopState",value:function(e){Vl().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}},{key:"onHashChange",value:function(e){Vl().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)}},{key:"pushState",value:function(e,t,n){Yl()?this._history.pushState(e,t,n):this.location.hash=n}},{key:"replaceState",value:function(e,t,n){Yl()?this._history.replaceState(e,t,n):this.location.hash=n}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"getState",value:function(){return this._history.state}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(e){this.location.pathname=e}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}}]),n}(Ql)).\u0275fac=function(e){return new(e||Kl)(Ft(Gl))},Kl.\u0275prov=Pe({factory:Jl,token:Kl,providedIn:"platform"}),Kl);function Yl(){return!!window.history.pushState}function Jl(){return new $l(Ft(Gl))}function Xl(e,t){if(0==e.length)return t;if(0==t.length)return e;var n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function ec(e){var t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function tc(e){return e&&"?"!==e[0]?"?"+e:e}var nc,rc=((nc=function e(){E(this,e)}).\u0275fac=function(e){return new(e||nc)},nc.\u0275prov=Pe({factory:ic,token:nc,providedIn:"root"}),nc);function ic(e){var t=Ft(Gl).location;return new lc(Ft(Ql),t&&t.origin||"")}var oc,ac,sc,uc=new ze("appBaseHref"),lc=((sc=function(e){m(n,e);var t=_(n);function n(e,r){var i;if(E(this,n),(i=t.call(this))._platformLocation=e,null==r&&(r=i._platformLocation.getBaseHrefFromDOM()),null==r)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return i._baseHref=r,k(i)}return T(n,[{key:"onPopState",value:function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(e){return Xl(this._baseHref,e)}},{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._platformLocation.pathname+tc(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?"".concat(t).concat(n):t}},{key:"pushState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+tc(r));this._platformLocation.pushState(e,t,i)}},{key:"replaceState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+tc(r));this._platformLocation.replaceState(e,t,i)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(rc)).\u0275fac=function(e){return new(e||sc)(Ft(Ql),Ft(uc,8))},sc.\u0275prov=Pe({token:sc,factory:sc.\u0275fac}),sc),cc=((ac=function(e){m(n,e);var t=_(n);function n(e,r){var i;return E(this,n),(i=t.call(this))._platformLocation=e,i._baseHref="",null!=r&&(i._baseHref=r),i}return T(n,[{key:"onPopState",value:function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}},{key:"prepareExternalUrl",value:function(e){var t=Xl(this._baseHref,e);return t.length>0?"#"+t:t}},{key:"pushState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+tc(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(e,t,i)}},{key:"replaceState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+tc(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,i)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(rc)).\u0275fac=function(e){return new(e||ac)(Ft(Ql),Ft(uc,8))},ac.\u0275prov=Pe({token:ac,factory:ac.\u0275fac}),ac),hc=((oc=function(){function e(t,n){var r=this;E(this,e),this._subject=new Iu,this._urlChangeListeners=[],this._platformStrategy=t;var i=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=ec(dc(i)),this._platformStrategy.onPopState((function(e){r._subject.emit({url:r.path(!0),pop:!0,state:e.state,type:e.type})}))}return T(e,[{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(e))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(e+tc(t))}},{key:"normalize",value:function(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,dc(t)))}},{key:"prepareExternalUrl",value:function(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}},{key:"go",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+tc(t)),n)}},{key:"replaceState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+tc(t)),n)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"onUrlChange",value:function(e){var t=this;this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe((function(e){t._notifyUrlChangeListeners(e.url,e.state)})))}},{key:"_notifyUrlChangeListeners",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach((function(n){return n(e,t)}))}},{key:"subscribe",value:function(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}}]),e}()).\u0275fac=function(e){return new(e||oc)(Ft(rc),Ft(Ql))},oc.normalizeQueryParams=tc,oc.joinWithSlash=Xl,oc.stripTrailingSlash=ec,oc.\u0275prov=Pe({factory:fc,token:oc,providedIn:"root"}),oc);function fc(){return new hc(Ft(rc),Ft(Ql))}function dc(e){return e.replace(/\/index.html$/,"")}var vc,pc,yc=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({}),mc=function e(){E(this,e)},gc=((pc=function(e){m(n,e);var t=_(n);function n(e){var r;return E(this,n),(r=t.call(this)).locale=e,r}return T(n,[{key:"getPluralCategory",value:function(e,t){switch(function(e){return function(e){var t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e),n=za(t);if(n)return n;var r=t.split("-")[0];if(n=za(r))return n;if("en"===r)return Ua;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}(e)[Ba.PluralCase]}(t||this.locale)(e)){case yc.Zero:return"zero";case yc.One:return"one";case yc.Two:return"two";case yc.Few:return"few";case yc.Many:return"many";default:return"other"}}}]),n}(mc)).\u0275fac=function(e){return new(e||pc)(Ft(tl))},pc.\u0275prov=Pe({token:pc,factory:pc.\u0275fac}),pc),_c=((vc=function(){function e(t,n){E(this,e),this._viewContainer=t,this._context=new kc,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=n}return T(e,[{key:"_updateView",value:function(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}},{key:"ngIf",set:function(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}},{key:"ngIfThen",set:function(e){bc("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}},{key:"ngIfElse",set:function(e){bc("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}}],[{key:"ngTemplateContextGuard",value:function(e,t){return!0}}]),e}()).\u0275fac=function(e){return new(e||vc)(pa(pu),pa(lu))},vc.\u0275dir=St({type:vc,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),vc),kc=function e(){E(this,e),this.$implicit=null,this.ngIf=null};function bc(e,t){if(t&&!t.createEmbeddedView)throw new Error("".concat(e," must be a TemplateRef, but received '").concat(xe(t),"'."))}var wc,Sc=((wc=function e(){E(this,e)}).\u0275mod=bt({type:wc}),wc.\u0275inj=Ne({factory:function(e){return new(e||wc)},providers:[{provide:mc,useClass:gc}]}),wc);function Ec(e){return"browser"===e}var Cc,Tc=((Cc=function e(){E(this,e)}).\u0275prov=Pe({token:Cc,providedIn:"root",factory:function(){return new xc(Ft(Gl),window,Ft(Xr))}}),Cc),xc=function(){function e(t,n,r){E(this,e),this.document=t,this.window=n,this.errorHandler=r,this.offset=function(){return[0,0]}}return T(e,[{key:"setOffset",value:function(e){this.offset=Array.isArray(e)?function(){return e}:e}},{key:"getScrollPosition",value:function(){return this.supportsScrolling()?[this.window.scrollX,this.window.scrollY]:[0,0]}},{key:"scrollToPosition",value:function(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}},{key:"scrollToAnchor",value:function(e){if(this.supportsScrolling()){var t=this.document.getElementById(e)||this.document.getElementsByName(e)[0];t&&this.scrollToElement(t)}}},{key:"setHistoryScrollRestoration",value:function(e){if(this.supportScrollRestoration()){var t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}},{key:"scrollToElement",value:function(e){var t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,r=t.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(n-i[0],r-i[1])}},{key:"supportScrollRestoration",value:function(){try{if(!this.window||!this.window.scrollTo)return!1;var e=Ac(this.window.history)||Ac(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch(t){return!1}}},{key:"supportsScrolling",value:function(){try{return!!this.window.scrollTo}catch(e){return!1}}}]),e}();function Ac(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}var Ic,Rc,Oc,Pc,Nc=function(e){m(n,e);var t=_(n);function n(){return E(this,n),t.apply(this,arguments)}return T(n,[{key:"getProperty",value:function(e,t){return e[t]}},{key:"log",value:function(e){window.console&&window.console.log&&window.console.log(e)}},{key:"logGroup",value:function(e){window.console&&window.console.group&&window.console.group(e)}},{key:"logGroupEnd",value:function(){window.console&&window.console.groupEnd&&window.console.groupEnd()}},{key:"onAndCancel",value:function(e,t,n){return e.addEventListener(t,n,!1),function(){e.removeEventListener(t,n,!1)}}},{key:"dispatchEvent",value:function(e,t){e.dispatchEvent(t)}},{key:"remove",value:function(e){return e.parentNode&&e.parentNode.removeChild(e),e}},{key:"getValue",value:function(e){return e.value}},{key:"createElement",value:function(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(e){return e.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(e){return e instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}},{key:"getHistory",value:function(){return window.history}},{key:"getLocation",value:function(){return window.location}},{key:"getBaseHref",value:function(e){var t,n=Dc||(Dc=document.querySelector("base"))?Dc.getAttribute("href"):null;return null==n?null:(t=n,Ic||(Ic=document.createElement("a")),Ic.setAttribute("href",t),"/"===Ic.pathname.charAt(0)?Ic.pathname:"/"+Ic.pathname)}},{key:"resetBaseElement",value:function(){Dc=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"performanceNow",value:function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}},{key:"supportsCookies",value:function(){return!0}},{key:"getCookie",value:function(e){return function(e,t){t=encodeURIComponent(t);var n,r=f(e.split(";"));try{for(r.s();!(n=r.n()).done;){var i=n.value,o=i.indexOf("="),a=l(-1==o?[i,""]:[i.slice(0,o),i.slice(o+1)],2),s=a[0],u=a[1];if(s.trim()===t)return decodeURIComponent(u)}}catch(c){r.e(c)}finally{r.f()}return null}(document.cookie,e)}}],[{key:"makeCurrent",value:function(){var e;e=new n,Bl||(Bl=e)}}]),n}(function(e){m(n,e);var t=_(n);function n(){return E(this,n),t.call(this)}return T(n,[{key:"supportsDOMEvents",value:function(){return!0}}]),n}(function(){return function e(){E(this,e)}}())),Dc=null,jc=new ze("TRANSITION_ID"),Lc=[{provide:Qu,useFactory:function(e,t,n){return function(){n.get(Wu).donePromise.then((function(){var n=Vl();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter((function(t){return t.getAttribute("ng-transition")===e})).forEach((function(e){return n.remove(e)}))}))}},deps:[jc,Gl,na],multi:!0}],Mc=function(){function e(){E(this,e)}return T(e,[{key:"addToWindow",value:function(e){Ke.getAngularTestability=function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},Ke.getAllAngularTestabilities=function(){return e.getAllTestabilities()},Ke.getAllAngularRootElements=function(){return e.getAllRootElements()},Ke.frameworkStabilizers||(Ke.frameworkStabilizers=[]),Ke.frameworkStabilizers.push((function(e){var t=Ke.getAllAngularTestabilities(),n=t.length,r=!1,i=function(t){r=r||t,0==--n&&e(r)};t.forEach((function(e){e.whenStable(i)}))}))}},{key:"findTestabilityInTree",value:function(e,t,n){if(null==t)return null;var r=e.getTestability(t);return null!=r?r:n?Vl().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}],[{key:"init",value:function(){var t;t=new e,El=t}}]),e}(),Fc=new ze("EventManagerPlugins"),Uc=((Rc=function(){function e(t,n){var r=this;E(this,e),this._zone=n,this._eventNameToPlugin=new Map,t.forEach((function(e){return e.manager=r})),this._plugins=t.slice().reverse()}return T(e,[{key:"addEventListener",value:function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}},{key:"addGlobalEventListener",value:function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,r=0;r-1&&(t.splice(n,1),o+=e+".")})),o+=i,0!=t.length||0===i.length)return null;var a={};return a.domEventName=r,a.fullKey=o,a}},{key:"getEventFullKey",value:function(e){var t="",n=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&ih.hasOwnProperty(t)&&(t=ih[t]))}return rh[t]||t}(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),nh.forEach((function(r){r!=n&&(0,oh[r])(e)&&(t+=r+".")})),t+=n}},{key:"eventCallback",value:function(e,t,r){return function(i){n.getEventFullKey(i)===e&&r.runGuarded((function(){return t(i)}))}}},{key:"_normalizeKey",value:function(e){switch(e){case"esc":return"escape";default:return e}}}]),n}(Hc)).\u0275fac=function(e){return new(e||Zc)(Ft(Gl))},Zc.\u0275prov=Pe({token:Zc,factory:Zc.\u0275fac}),Zc),sh=xl(Ul,"browser",[{provide:Ju,useValue:"browser"},{provide:Yu,useValue:function(){Nc.makeCurrent(),Mc.init()},multi:!0},{provide:Gl,useFactory:function(){return function(e){zt=e}(document),document},deps:[]}]),uh=[[],{provide:Bo,useValue:"root"},{provide:Xr,useFactory:function(){return new Xr},deps:[]},{provide:Fc,useClass:th,multi:!0,deps:[Gl,dl,Ju]},{provide:Fc,useClass:ah,multi:!0,deps:[Gl]},[],{provide:Yc,useClass:Yc,deps:[Uc,Bc,Ku]},{provide:Ms,useExisting:Yc},{provide:zc,useExisting:Bc},{provide:Bc,useClass:Bc,deps:[Gl]},{provide:wl,useClass:wl,deps:[dl]},{provide:Uc,useClass:Uc,deps:[Fc,dl]},[]],lh=(($c=function(){function e(t){if(E(this,e),t)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 T(e,null,[{key:"withServerTransition",value:function(t){return{ngModule:e,providers:[{provide:Ku,useValue:t.appId},{provide:jc,useExisting:Ku},Lc]}}}]),e}()).\u0275mod=bt({type:$c}),$c.\u0275inj=Ne({factory:function(e){return new(e||$c)(Ft($c,12))},providers:uh,imports:[Sc,zl]}),$c);function ch(){return new fh(Ft(Gl))}var hh,fh=((hh=function(){function e(t){E(this,e),this._doc=t,this._dom=Vl()}return T(e,[{key:"addTag",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e?this._getOrCreateElement(e,t):null}},{key:"addTags",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e?e.reduce((function(e,r){return r&&e.push(t._getOrCreateElement(r,n)),e}),[]):[]}},{key:"getTag",value:function(e){return e&&this._doc.querySelector("meta[".concat(e,"]"))||null}},{key:"getTags",value:function(e){if(!e)return[];var t=this._doc.querySelectorAll("meta[".concat(e,"]"));return t?[].slice.call(t):[]}},{key:"updateTag",value:function(e,t){if(!e)return null;t=t||this._parseSelector(e);var n=this.getTag(t);return n?this._setMetaElementAttributes(e,n):this._getOrCreateElement(e,!0)}},{key:"removeTag",value:function(e){this.removeTagElement(this.getTag(e))}},{key:"removeTagElement",value:function(e){e&&this._dom.remove(e)}},{key:"_getOrCreateElement",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t){var n=this._parseSelector(e),r=this.getTag(n);if(r&&this._containsAttributes(e,r))return r}var i=this._dom.createElement("meta");return this._setMetaElementAttributes(e,i),this._doc.getElementsByTagName("head")[0].appendChild(i),i}},{key:"_setMetaElementAttributes",value:function(e,t){return Object.keys(e).forEach((function(n){return t.setAttribute(n,e[n])})),t}},{key:"_parseSelector",value:function(e){var t=e.name?"name":"property";return"".concat(t,'="').concat(e[t],'"')}},{key:"_containsAttributes",value:function(e,t){return Object.keys(e).every((function(n){return t.getAttribute(n)===e[n]}))}}]),e}()).\u0275fac=function(e){return new(e||hh)(Ft(Gl))},hh.\u0275prov=Pe({factory:ch,token:hh,providedIn:"root"}),hh);function dh(){return new ph(Ft(Gl))}var vh,ph=((vh=function(){function e(t){E(this,e),this._doc=t}return T(e,[{key:"getTitle",value:function(){return this._doc.title}},{key:"setTitle",value:function(e){this._doc.title=e||""}}]),e}()).\u0275fac=function(e){return new(e||vh)(Ft(Gl))},vh.\u0275prov=Pe({factory:dh,token:vh,providedIn:"root"}),vh);function yh(){for(var e=arguments.length,t=new Array(e),n=0;n4&&void 0!==arguments[4]?arguments[4]:new _h(e,n,r);if(!i.closed)return t instanceof z?t.subscribe(i):re(t)(i)}var bh={},wh=function(){function e(t){E(this,e),this.resultSelector=t}return T(e,[{key:"call",value:function(e,t){return t.subscribe(new Sh(e,this.resultSelector))}}]),e}(),Sh=function(e){m(n,e);var t=_(n);function n(e,r){var i;return E(this,n),(i=t.call(this,e)).resultSelector=r,i.active=0,i.values=[],i.observables=[],i}return T(n,[{key:"_next",value:function(e){this.values.push(bh),this.observables.push(e)}},{key:"_complete",value:function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(var n=0;n0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i0&&void 0!==arguments[0]?arguments[0]:Uh;return function(t){return t.lift(new Mh(e))}}var Mh=function(){function e(t){E(this,e),this.errorFactory=t}return T(e,[{key:"call",value:function(e,t){return t.subscribe(new Fh(e,this.errorFactory))}}]),e}(),Fh=function(e){m(n,e);var t=_(n);function n(e,r){var i;return E(this,n),(i=t.call(this,e)).errorFactory=r,i.hasValue=!1,i}return T(n,[{key:"_next",value:function(e){this.hasValue=!0,this.destination.next(e)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}]),n}(L);function Uh(){return new Eh}function Hh(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(t){return t.lift(new zh(e))}}var zh=function(){function e(t){E(this,e),this.defaultValue=t}return T(e,[{key:"call",value:function(e,t){return t.subscribe(new Bh(e,this.defaultValue))}}]),e}(),Bh=function(e){m(n,e);var t=_(n);function n(e,r){var i;return E(this,n),(i=t.call(this,e)).defaultValue=r,i.isEmpty=!0,i}return T(n,[{key:"_next",value:function(e){this.isEmpty=!1,this.destination.next(e)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),n}(L);function Vh(e,t){return"function"==typeof t?function(n){return n.pipe(Vh((function(n,r){return oe(e(n,r)).pipe($((function(e,i){return t(n,e,r,i)})))})))}:function(t){return t.lift(new qh(e))}}var qh=function(){function e(t){E(this,e),this.project=t}return T(e,[{key:"call",value:function(e,t){return t.subscribe(new Gh(e,this.project))}}]),e}(),Gh=function(e){m(n,e);var t=_(n);function n(e,r){var i;return E(this,n),(i=t.call(this,e)).project=r,i.index=0,i}return T(n,[{key:"_next",value:function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this._innerSub(t)}},{key:"_innerSub",value:function(e){var t=this.innerSubscription;t&&t.unsubscribe();var n=new ae(this),r=this.destination;r.add(n),this.innerSubscription=ue(e,n),this.innerSubscription!==n&&r.add(this.innerSubscription)}},{key:"_complete",value:function(){var e=this.innerSubscription;e&&!e.closed||y(S(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&&y(S(n.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(e){this.destination.next(e)}}]),n}(se);function Qh(e){return function(t){return 0===e?Th():t.lift(new Wh(e))}}var Wh=function(){function e(t){if(E(this,e),this.total=t,this.total<0)throw new Ph}return T(e,[{key:"call",value:function(e,t){return t.subscribe(new Kh(e,this.total))}}]),e}(),Kh=function(e){m(n,e);var t=_(n);function n(e,r){var i;return E(this,n),(i=t.call(this,e)).total=r,i.count=0,i}return T(n,[{key:"_next",value:function(e){var t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))}}]),n}(L);function Zh(){return Ah()(yh.apply(void 0,arguments))}var $h=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];E(this,e),this.accumulator=t,this.seed=n,this.hasSeed=r}return T(e,[{key:"call",value:function(e,t){return t.subscribe(new Yh(e,this.accumulator,this.seed,this.hasSeed))}}]),e}(),Yh=function(e){m(n,e);var t=_(n);function n(e,r,i,o){var a;return E(this,n),(a=t.call(this,e)).accumulator=r,a._seed=i,a.hasSeed=o,a.index=0,a}return T(n,[{key:"_next",value:function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(r){this.destination.error(r)}this.seed=t,this.destination.next(t)}},{key:"seed",get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e}}]),n}(L);function Jh(e){return function(t){var n=new Xh(e),r=t.lift(n);return n.caught=r}}var Xh=function(){function e(t){E(this,e),this.selector=t}return T(e,[{key:"call",value:function(e,t){return t.subscribe(new ef(e,this.selector,this.caught))}}]),e}(),ef=function(e){m(n,e);var t=_(n);function n(e,r,i){var o;return E(this,n),(o=t.call(this,e)).selector=r,o.caught=i,o}return T(n,[{key:"error",value:function(e){if(!this.isStopped){var t;try{t=this.selector(e,this.caught)}catch(o){return void y(S(n.prototype),"error",this).call(this,o)}this._unsubscribeAndRecycle();var r=new ae(this);this.add(r);var i=ue(t,r);i!==r&&this.add(i)}}}]),n}(se);function tf(e,t){return le(e,t,1)}function nf(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?Ih((function(t,n){return e(t,n,r)})):U,Qh(1),n?Hh(t):Lh((function(){return new Eh})))}}function rf(){}function of(e,t,n){return function(r){return r.lift(new af(e,t,n))}}var af=function(){function e(t,n,r){E(this,e),this.nextOrObserver=t,this.error=n,this.complete=r}return T(e,[{key:"call",value:function(e,t){return t.subscribe(new sf(e,this.nextOrObserver,this.error,this.complete))}}]),e}(),sf=function(e){m(n,e);var t=_(n);function n(e,r,i,o){var a;return E(this,n),(a=t.call(this,e))._tapNext=rf,a._tapError=rf,a._tapComplete=rf,a._tapError=i||rf,a._tapComplete=o||rf,g(r)?(a._context=b(a),a._tapNext=r):r&&(a._context=r,a._tapNext=r.next||rf,a._tapError=r.error||rf,a._tapComplete=r.complete||rf),a}return T(n,[{key:"_next",value:function(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}},{key:"_error",value:function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}]),n}(L),uf=function(){function e(t){E(this,e),this.callback=t}return T(e,[{key:"call",value:function(e,t){return t.subscribe(new lf(e,this.callback))}}]),e}(),lf=function(e){m(n,e);var t=_(n);function n(e,r){var i;return E(this,n),(i=t.call(this,e)).add(new N(r)),i}return n}(L),cf=function e(t,n){E(this,e),this.id=t,this.url=n},hf=function(e){m(n,e);var t=_(n);function n(e,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return E(this,n),(i=t.call(this,e,r)).navigationTrigger=o,i.restoredState=a,i}return T(n,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(cf),ff=function(e){m(n,e);var t=_(n);function n(e,r,i){var o;return E(this,n),(o=t.call(this,e,r)).urlAfterRedirects=i,o}return T(n,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),n}(cf),df=function(e){m(n,e);var t=_(n);function n(e,r,i){var o;return E(this,n),(o=t.call(this,e,r)).reason=i,o}return T(n,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(cf),vf=function(e){m(n,e);var t=_(n);function n(e,r,i){var o;return E(this,n),(o=t.call(this,e,r)).error=i,o}return T(n,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),n}(cf),pf=function(e){m(n,e);var t=_(n);function n(e,r,i,o){var a;return E(this,n),(a=t.call(this,e,r)).urlAfterRedirects=i,a.state=o,a}return T(n,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(cf),yf=function(e){m(n,e);var t=_(n);function n(e,r,i,o){var a;return E(this,n),(a=t.call(this,e,r)).urlAfterRedirects=i,a.state=o,a}return T(n,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(cf),mf=function(e){m(n,e);var t=_(n);function n(e,r,i,o,a){var s;return E(this,n),(s=t.call(this,e,r)).urlAfterRedirects=i,s.state=o,s.shouldActivate=a,s}return T(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}(cf),gf=function(e){m(n,e);var t=_(n);function n(e,r,i,o){var a;return E(this,n),(a=t.call(this,e,r)).urlAfterRedirects=i,a.state=o,a}return T(n,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(cf),_f=function(e){m(n,e);var t=_(n);function n(e,r,i,o){var a;return E(this,n),(a=t.call(this,e,r)).urlAfterRedirects=i,a.state=o,a}return T(n,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(cf),kf=function(){function e(t){E(this,e),this.route=t}return T(e,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),e}(),bf=function(){function e(t){E(this,e),this.route=t}return T(e,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),e}(),wf=function(){function e(t){E(this,e),this.snapshot=t}return T(e,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),Sf=function(){function e(t){E(this,e),this.snapshot=t}return T(e,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),Ef=function(){function e(t){E(this,e),this.snapshot=t}return T(e,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),Cf=function(){function e(t){E(this,e),this.snapshot=t}return T(e,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),Tf=function(){function e(t,n,r){E(this,e),this.routerEvent=t,this.position=n,this.anchor=r}return T(e,[{key:"toString",value:function(){return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(this.position?"".concat(this.position[0],", ").concat(this.position[1]):null,"')")}}]),e}(),xf=function(){function e(t){E(this,e),this.params=t||{}}return T(e,[{key:"has",value:function(e){return Object.prototype.hasOwnProperty.call(this.params,e)}},{key:"get",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t[0]:t}return null}},{key:"getAll",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t:[t]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),e}();function Af(e){return new xf(e)}function If(e){var t=Error("NavigationCancelingError: "+e);return t.ngNavigationCancelingError=!0,t}function Rf(e,t,n){var r=n.path.split("/");if(r.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||r.length0?e[e.length-1]:null}function jf(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function Lf(e){return(t=e)&&"function"==typeof t.subscribe?e:ba(e)?oe(Promise.resolve(e)):yh(e);var t}function Mf(e,t,n){return n?function(e,t){return Of(e,t)}(e.queryParams,t.queryParams)&&function e(t,n){if(!zf(t.segments,n.segments))return!1;if(t.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children){if(!t.children[r])return!1;if(!e(t.children[r],n.children[r]))return!1}return!0}(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every((function(n){return Pf(e[n],t[n])}))}(e.queryParams,t.queryParams)&&function e(t,n){return function t(n,r,i){if(n.segments.length>i.length)return!!zf(n.segments.slice(0,i.length),i)&&!r.hasChildren();if(n.segments.length===i.length){if(!zf(n.segments,i))return!1;for(var o in r.children){if(!n.children[o])return!1;if(!e(n.children[o],r.children[o]))return!1}return!0}var a=i.slice(0,n.segments.length),s=i.slice(n.segments.length);return!!zf(n.segments,a)&&!!n.children.primary&&t(n.children.primary,r,s)}(t,n,n.segments)}(e.root,t.root)}var Ff=function(){function e(t,n,r){E(this,e),this.root=t,this.queryParams=n,this.fragment=r}return T(e,[{key:"toString",value:function(){return Gf.serialize(this)}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Af(this.queryParams)),this._queryParamMap}}]),e}(),Uf=function(){function e(t,n){var r=this;E(this,e),this.segments=t,this.children=n,this.parent=null,jf(n,(function(e,t){return e.parent=r}))}return T(e,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"toString",value:function(){return Qf(this)}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}}]),e}(),Hf=function(){function e(t,n){E(this,e),this.path=t,this.parameters=n}return T(e,[{key:"toString",value:function(){return Jf(this)}},{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=Af(this.parameters)),this._parameterMap}}]),e}();function zf(e,t){return e.length===t.length&&e.every((function(e,n){return e.path===t[n].path}))}function Bf(e,t){var n=[];return jf(e.children,(function(e,r){"primary"===r&&(n=n.concat(t(e,r)))})),jf(e.children,(function(e,r){"primary"!==r&&(n=n.concat(t(e,r)))})),n}var Vf=function e(){E(this,e)},qf=function(){function e(){E(this,e)}return T(e,[{key:"parse",value:function(e){var t=new rd(e);return new Ff(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}},{key:"serialize",value:function(e){return"".concat("/"+function e(t,n){if(!t.hasChildren())return Qf(t);if(n){var r=t.children.primary?e(t.children.primary,!1):"",i=[];return jf(t.children,(function(t,n){"primary"!==n&&i.push("".concat(n,":").concat(e(t,!1)))})),i.length>0?"".concat(r,"(").concat(i.join("//"),")"):r}var o=Bf(t,(function(n,r){return"primary"===r?[e(t.children.primary,!1)]:["".concat(r,":").concat(e(n,!1))]}));return 1===Object.keys(t.children).length&&null!=t.children.primary?"".concat(Qf(t),"/").concat(o[0]):"".concat(Qf(t),"/(").concat(o.join("//"),")")}(e.root,!0)).concat((t=e.queryParams,n=Object.keys(t).map((function(e){var n=t[e];return Array.isArray(n)?n.map((function(t){return"".concat(Kf(e),"=").concat(Kf(t))})).join("&"):"".concat(Kf(e),"=").concat(Kf(n))})),n.length?"?"+n.join("&"):"")).concat("string"==typeof e.fragment?"#"+encodeURI(e.fragment):"");var t,n}}]),e}(),Gf=new qf;function Qf(e){return e.segments.map((function(e){return Jf(e)})).join("/")}function Wf(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Kf(e){return Wf(e).replace(/%3B/gi,";")}function Zf(e){return Wf(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function $f(e){return decodeURIComponent(e)}function Yf(e){return $f(e.replace(/\+/g,"%20"))}function Jf(e){return"".concat(Zf(e.path)).concat((t=e.parameters,Object.keys(t).map((function(e){return";".concat(Zf(e),"=").concat(Zf(t[e]))})).join("")));var t}var Xf=/^[^\/()?;=#]+/;function ed(e){var t=e.match(Xf);return t?t[0]:""}var td=/^[^=?&#]+/,nd=/^[^?&#]+/,rd=function(){function e(t){E(this,e),this.url=t,this.remaining=t}return T(e,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Uf([],{}):new Uf([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());var t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n.primary=new Uf(e,t)),n}},{key:"parseSegment",value:function(){var e=ed(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(e),new Hf($f(e),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e}},{key:"parseParam",value:function(e){var t=ed(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var r=ed(this.remaining);r&&(n=r,this.capture(n))}e[$f(t)]=$f(n)}}},{key:"parseQueryParam",value:function(e){var t=function(e){var t=e.match(td);return t?t[0]:""}(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var r=function(e){var t=e.match(nd);return t?t[0]:""}(this.remaining);r&&(n=r,this.capture(n))}var i=Yf(t),o=Yf(n);if(e.hasOwnProperty(i)){var a=e[i];Array.isArray(a)||(a=[a],e[i]=a),a.push(o)}else e[i]=o}}},{key:"parseParens",value:function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=ed(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '".concat(this.url,"'"));var i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):e&&(i="primary");var o=this.parseChildren();t[i]=1===Object.keys(o).length?o.primary:new Uf([],o),this.consumeOptional("//")}return t}},{key:"peekStartsWith",value:function(e){return this.remaining.startsWith(e)}},{key:"consumeOptional",value:function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}},{key:"capture",value:function(e){if(!this.consumeOptional(e))throw new Error('Expected "'.concat(e,'".'))}}]),e}(),id=function(){function e(t){E(this,e),this._root=t}return T(e,[{key:"parent",value:function(e){var t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}},{key:"children",value:function(e){var t=od(e,this._root);return t?t.children.map((function(e){return e.value})):[]}},{key:"firstChild",value:function(e){var t=od(e,this._root);return t&&t.children.length>0?t.children[0].value:null}},{key:"siblings",value:function(e){var t=ad(e,this._root);return t.length<2?[]:t[t.length-2].children.map((function(e){return e.value})).filter((function(t){return t!==e}))}},{key:"pathFromRoot",value:function(e){return ad(e,this._root).map((function(e){return e.value}))}},{key:"root",get:function(){return this._root.value}}]),e}();function od(e,t){if(e===t.value)return t;var n,r=f(t.children);try{for(r.s();!(n=r.n()).done;){var i=od(e,n.value);if(i)return i}}catch(o){r.e(o)}finally{r.f()}return null}function ad(e,t){if(e===t.value)return[t];var n,r=f(t.children);try{for(r.s();!(n=r.n()).done;){var i=ad(e,n.value);if(i.length)return i.unshift(t),i}}catch(o){r.e(o)}finally{r.f()}return[]}var sd=function(){function e(t,n){E(this,e),this.value=t,this.children=n}return T(e,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),e}();function ud(e){var t={};return e&&e.children.forEach((function(e){return t[e.value.outlet]=e})),t}var ld=function(e){m(n,e);var t=_(n);function n(e,r){var i;return E(this,n),(i=t.call(this,e)).snapshot=r,pd(b(i),e),i}return T(n,[{key:"toString",value:function(){return this.snapshot.toString()}}]),n}(id);function cd(e,t){var n=function(e,t){var n=new dd([],{},{},"",{},"primary",t,null,e.root,-1,{});return new vd("",new sd(n,[]))}(e,t),r=new mh([new Hf("",{})]),i=new mh({}),o=new mh({}),a=new mh({}),s=new mh(""),u=new hd(r,i,a,s,o,"primary",t,n.root);return u.snapshot=n.root,new ld(new sd(u,[]),n)}var hd=function(){function e(t,n,r,i,o,a,s,u){E(this,e),this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=s,this._futureSnapshot=u}return T(e,[{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}},{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($((function(e){return Af(e)})))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe($((function(e){return Af(e)})))),this._queryParamMap}}]),e}();function fd(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",n=e.pathFromRoot,r=0;if("always"!==t)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 function(e){return e.reduce((function(e,t){return{params:Object.assign(Object.assign({},e.params),t.params),data:Object.assign(Object.assign({},e.data),t.data),resolve:Object.assign(Object.assign({},e.resolve),t._resolvedData)}}),{params:{},data:{},resolve:{}})}(n.slice(r))}var dd=function(){function e(t,n,r,i,o,a,s,u,l,c,h){E(this,e),this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=s,this.routeConfig=u,this._urlSegment=l,this._lastPathIndex=c,this._resolve=h}return T(e,[{key:"toString",value:function(){return"Route(url:'".concat(this.url.map((function(e){return e.toString()})).join("/"),"', path:'").concat(this.routeConfig?this.routeConfig.path:"","')")}},{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=Af(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Af(this.queryParams)),this._queryParamMap}}]),e}(),vd=function(e){m(n,e);var t=_(n);function n(e,r){var i;return E(this,n),(i=t.call(this,r)).url=e,pd(b(i),r),i}return T(n,[{key:"toString",value:function(){return yd(this._root)}}]),n}(id);function pd(e,t){t.value._routerState=e,t.children.forEach((function(t){return pd(e,t)}))}function yd(e){var t=e.children.length>0?" { ".concat(e.children.map(yd).join(", ")," } "):"";return"".concat(e.value).concat(t)}function md(e){if(e.snapshot){var t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Of(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),Of(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(var n=0;n0&&_d(r[0]))throw new Error("Root segment cannot have matrix parameters");var i=r.find(kd);if(i&&i!==Df(r))throw new Error("{outlets:{}} has to be the last command")}return T(e,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),e}(),Sd=function e(t,n,r){E(this,e),this.segmentGroup=t,this.processChildren=n,this.index=r};function Ed(e,t,n){if(e||(e=new Uf([],{})),0===e.segments.length&&e.hasChildren())return Cd(e,t,n);var r=function(e,t,n){for(var r=0,i=t,o={match:!1,pathIndex:0,commandIndex:0};i=n.length)return o;var a=e.segments[i],s=n[r];if(kd(s))break;var u=""+s,l=r0&&void 0===u)break;if(u&&l&&"object"==typeof l&&void 0===l.outlets){if(!Id(u,l,a))return o;r+=2}else{if(!Id(u,{},a))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(e,t,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex=2&&(n=!0),function(r){return r.lift(new $h(e,t,n))}}((function(e,t){var n=!1;return t.reduce((function(e,r,i){if(e!==jd)return e;if(r===jd&&(n=!0),!n){if(!1===r)return r;if(i===t.length-1||Dd(r))return r}return e}),e)}),jd),Ih((function(e){return e!==jd})),$((function(e){return Dd(e)?e:!0===e})),Qh(1))}))}var Md,Fd=((Md=function e(){E(this,e)}).\u0275fac=function(e){return new(e||Md)},Md.\u0275cmp=mt({type:Md,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&ka(0,"router-outlet")},directives:function(){return[Dv]},encapsulation:2}),Md);function Ud(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=0;n0?new Uf([],{primary:e}):e;return new Ff(r,t,n)}},{key:"expandSegmentGroup",value:function(e,t,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe($((function(e){return new Uf([],e)}))):this.expandSegment(e,n,t,n.segments,r,!0)}},{key:"expandChildren",value:function(e,t,n){var r=this;return function(n,i){if(0===Object.keys(n).length)return yh({});var o=[],a=[],s={};return jf(n,(function(n,i){var u,l,c=(u=i,l=n,r.expandSegmentGroup(e,t,l,u)).pipe($((function(e){return s[i]=e})));"primary"===i?o.push(c):a.push(c)})),yh.apply(null,o.concat(a)).pipe(Ah(),function(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?Ih((function(t,n){return e(t,n,r)})):U,Nh(1),n?Hh(t):Lh((function(){return new Eh})))}}(),$((function(){return s})))}(n.children)}},{key:"expandSegment",value:function(e,t,n,r,i,o){var a=this,s=function(e){return e.reduce((function(e,t){var n=Vd(t);return e.has(n)?e.get(n).push(t):e.set(n,[t]),e}),new Map)}(n);s.has(i)||s.set(i,[]);return oe(Array.from(s.entries()).map((function(n){var s=l(n,2),u=s[0],c=function(n){return oe(n).pipe(tf((function(s){return a.expandSegmentAgainstRoute(e,t,n,s,r,i,o).pipe(Jh((function(e){if(e instanceof qd)return yh(null);throw e})))})),nf((function(e){return null!==e})),Jh((function(e){if(e instanceof Eh||"EmptyError"===e.name){if(a.noLeftoversInUrl(t,r,i))return yh(new Uf([],{}));throw new qd(t)}throw e})))}(s[1]);return u===i?c:c.pipe($((function(){return null})),Jh((function(){return yh(null)})))}))).pipe((function(e){return e.lift(new wh(void 0))}),nf(),$((function(e){return e.find((function(e){return null!==e}))})))}},{key:"noLeftoversInUrl",value:function(e,t,n){return 0===t.length&&!e.children[n]}},{key:"expandSegmentAgainstRoute",value:function(e,t,n,r,i,o,a){return Vd(r)!==o&&""!==r.path?Qd(t):void 0===r.redirectTo?this.matchSegmentAgainstRoute(e,t,r,i):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,r,i,o):Qd(t)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(e,t,n,r,i,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,i,o)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(e,t,n,r){var i=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Wd(o):this.lineralizeSegments(n,o).pipe(le((function(n){var o=new Uf(n,{});return i.expandSegment(e,o,t,n,r,!1)})))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(e,t,n,r,i,o){var a=this,s=$d(t,r,i),u=s.matched,l=s.consumedSegments,c=s.lastChild,h=s.positionalParamSegments;if(!u)return Qd(t);var f=this.applyRedirectCommands(l,r.redirectTo,h);return r.redirectTo.startsWith("/")?Wd(f):this.lineralizeSegments(r,f).pipe(le((function(r){return a.expandSegment(e,t,n,r.concat(i.slice(c)),o,!1)})))}},{key:"matchSegmentAgainstRoute",value:function(e,t,n,r){var i=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(e.injector,n).pipe($((function(e){return n._loadedConfig=e,new Uf(r,{})}))):yh(new Uf(r,{}));var o=$d(t,n,r),a=o.matched,s=o.consumedSegments,u=o.lastChild;if(!a)return Qd(t);var l=r.slice(u);return this.getChildConfig(e,n,r).pipe(le((function(e){var n=e.module,r=e.routes,o=function(e,t,n,r){return n.length>0&&function(e,t,n){return n.some((function(n){return Jd(e,t,n)&&"primary"!==Vd(n)}))}(e,n,r)?{segmentGroup:Yd(new Uf(t,function(e,t){var n={};n.primary=t;var r,i=f(e);try{for(i.s();!(r=i.n()).done;){var o=r.value;""===o.path&&"primary"!==Vd(o)&&(n[Vd(o)]=new Uf([],{}))}}catch(a){i.e(a)}finally{i.f()}return n}(r,new Uf(n,e.children)))),slicedSegments:[]}:0===n.length&&function(e,t,n){return n.some((function(n){return Jd(e,t,n)}))}(e,n,r)?{segmentGroup:Yd(new Uf(e.segments,function(e,t,n,r){var i,o={},a=f(n);try{for(a.s();!(i=a.n()).done;){var s=i.value;Jd(e,t,s)&&!r[Vd(s)]&&(o[Vd(s)]=new Uf([],{}))}}catch(u){a.e(u)}finally{a.f()}return Object.assign(Object.assign({},r),o)}(e,n,r,e.children))),slicedSegments:n}:{segmentGroup:e,slicedSegments:n}}(t,s,l,r),a=o.segmentGroup,u=o.slicedSegments;return 0===u.length&&a.hasChildren()?i.expandChildren(n,r,a).pipe($((function(e){return new Uf(s,e)}))):0===r.length&&0===u.length?yh(new Uf(s,{})):i.expandSegment(n,a,r,u,"primary",!0).pipe($((function(e){return new Uf(s.concat(e.segments),e.children)})))})))}},{key:"getChildConfig",value:function(e,t,n){var r=this;return t.children?yh(new Pd(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?yh(t._loadedConfig):this.runCanLoadGuards(e.injector,t,n).pipe(le((function(n){return n?r.configLoader.load(e.injector,t).pipe($((function(e){return t._loadedConfig=e,e}))):function(e){return new z((function(t){return t.error(If("Cannot load children because the guard of the route \"path: '".concat(e.path,"'\" returned false")))}))}(t)}))):yh(new Pd([],e))}},{key:"runCanLoadGuards",value:function(e,t,n){var r=this,i=t.canLoad;return i&&0!==i.length?yh(i.map((function(r){var i,o=e.get(r);if(function(e){return e&&Nd(e.canLoad)}(o))i=o.canLoad(t,n);else{if(!Nd(o))throw new Error("Invalid CanLoad guard");i=o(t,n)}return Lf(i)}))).pipe(Ld(),of((function(e){if(Dd(e)){var t=If('Redirecting to "'.concat(r.urlSerializer.serialize(e),'"'));throw t.url=e,t}})),$((function(e){return!0===e}))):yh(!0)}},{key:"lineralizeSegments",value:function(e,t){for(var n=[],r=t.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return yh(n);if(r.numberOfChildren>1||!r.children.primary)return Kd(e.redirectTo);r=r.children.primary}}},{key:"applyRedirectCommands",value:function(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}},{key:"applyRedirectCreatreUrlTree",value:function(e,t,n,r){var i=this.createSegmentGroup(e,t.root,n,r);return new Ff(i,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}},{key:"createQueryParams",value:function(e,t){var n={};return jf(e,(function(e,r){if("string"==typeof e&&e.startsWith(":")){var i=e.substring(1);n[r]=t[i]}else n[r]=e})),n}},{key:"createSegmentGroup",value:function(e,t,n,r){var i=this,o=this.createSegments(e,t.segments,n,r),a={};return jf(t.children,(function(t,o){a[o]=i.createSegmentGroup(e,t,n,r)})),new Uf(o,a)}},{key:"createSegments",value:function(e,t,n,r){var i=this;return t.map((function(t){return t.path.startsWith(":")?i.findPosParam(e,t,r):i.findOrReturn(t,n)}))}},{key:"findPosParam",value:function(e,t,n){var r=n[t.path.substring(1)];if(!r)throw new Error("Cannot redirect to '".concat(e,"'. Cannot find '").concat(t.path,"'."));return r}},{key:"findOrReturn",value:function(e,t){var n,r=0,i=f(t);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o.path===e.path)return t.splice(r),o;r++}}catch(a){i.e(a)}finally{i.f()}return e}}]),e}();function $d(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var r=(t.matcher||Rf)(n,e,t);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Yd(e){if(1===e.numberOfChildren&&e.children.primary){var t=e.children.primary;return new Uf(e.segments.concat(t.segments),t.children)}return e}function Jd(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}var Xd=function e(t){E(this,e),this.path=t,this.route=this.path[this.path.length-1]},ev=function e(t,n){E(this,e),this.component=t,this.route=n};function tv(e,t,n){var r=function(e){if(!e)return null;for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(t);return(r?r.module.injector:n).get(e)}function nv(e,t,n){var r=ud(e),i=e.value;jf(r,(function(e,r){nv(e,i.component?t?t.children.getContext(r):null:t,n)})),n.canDeactivateChecks.push(new ev(i.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,i))}function rv(e,t){return null!==e&&t&&t(new Ef(e)),yh(!0)}function iv(e,t){return null!==e&&t&&t(new wf(e)),yh(!0)}function ov(e,t,n){var r=t.routeConfig?t.routeConfig.canActivate:null;return r&&0!==r.length?yh(r.map((function(r){return xh((function(){var i,o=tv(r,t,n);if(function(e){return e&&Nd(e.canActivate)}(o))i=Lf(o.canActivate(t,e));else{if(!Nd(o))throw new Error("Invalid CanActivate guard");i=Lf(o(t,e))}return i.pipe(nf())}))}))).pipe(Ld()):yh(!0)}function av(e,t,n){var r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map((function(e){return function(e){var t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)})).filter((function(e){return null!==e})).map((function(t){return xh((function(){return yh(t.guards.map((function(i){var o,a=tv(i,t.node,n);if(function(e){return e&&Nd(e.canActivateChild)}(a))o=Lf(a.canActivateChild(r,e));else{if(!Nd(a))throw new Error("Invalid CanActivateChild guard");o=Lf(a(r,e))}return o.pipe(nf())}))).pipe(Ld())}))}));return yh(i).pipe(Ld())}var sv=function e(){E(this,e)},uv=function(){function e(t,n,r,i,o,a){E(this,e),this.rootComponentType=t,this.config=n,this.urlTree=r,this.url=i,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=a}return T(e,[{key:"recognize",value:function(){try{var e=hv(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,"primary"),n=new dd([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),r=new sd(n,t),i=new vd(this.url,r);return this.inheritParamsAndData(i._root),yh(i)}catch(o){return new z((function(e){return e.error(o)}))}}},{key:"inheritParamsAndData",value:function(e){var t=this,n=e.value,r=fd(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),e.children.forEach((function(e){return t.inheritParamsAndData(e)}))}},{key:"processSegmentGroup",value:function(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}},{key:"processChildren",value:function(e,t){var n,r=this,i=Bf(t,(function(t,n){return r.processSegmentGroup(e,t,n)}));return n={},i.forEach((function(e){var t=n[e.value.outlet];if(t){var r=t.url.map((function(e){return e.toString()})).join("/"),i=e.value.url.map((function(e){return e.toString()})).join("/");throw new Error("Two segments cannot have the same outlet name: '".concat(r,"' and '").concat(i,"'."))}n[e.value.outlet]=e.value})),i.sort((function(e,t){return"primary"===e.value.outlet?-1:"primary"===t.value.outlet?1:e.value.outlet.localeCompare(t.value.outlet)})),i}},{key:"processSegment",value:function(e,t,n,r){var i,o=f(e);try{for(o.s();!(i=o.n()).done;){var a=i.value;try{return this.processSegmentAgainstRoute(a,t,n,r)}catch(s){if(!(s instanceof sv))throw s}}}catch(u){o.e(u)}finally{o.f()}if(this.noLeftoversInUrl(t,n,r))return[];throw new sv}},{key:"noLeftoversInUrl",value:function(e,t,n){return 0===t.length&&!e.children[n]}},{key:"processSegmentAgainstRoute",value:function(e,t,n,r){if(e.redirectTo)throw new sv;if((e.outlet||"primary")!==r)throw new sv;var i,o=[],a=[];if("**"===e.path){var s=n.length>0?Df(n).parameters:{};i=new dd(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,vv(e),r,e.component,e,lv(t),cv(t)+n.length,pv(e))}else{var u=function(e,t,n){if(""===t.path){if("full"===t.pathMatch&&(e.hasChildren()||n.length>0))throw new sv;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=(t.matcher||Rf)(n,e,t);if(!r)throw new sv;var i={};jf(r.posParams,(function(e,t){i[t]=e.path}));var o=r.consumed.length>0?Object.assign(Object.assign({},i),r.consumed[r.consumed.length-1].parameters):i;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:o}}(t,e,n);o=u.consumedSegments,a=n.slice(u.lastChild),i=new dd(o,u.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,vv(e),r,e.component,e,lv(t),cv(t)+o.length,pv(e))}var l=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),c=hv(t,o,a,l,this.relativeLinkResolution),h=c.segmentGroup,f=c.slicedSegments;if(0===f.length&&h.hasChildren()){var d=this.processChildren(l,h);return[new sd(i,d)]}if(0===l.length&&0===f.length)return[new sd(i,[])];var v=this.processSegment(l,h,f,"primary");return[new sd(i,v)]}}]),e}();function lv(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function cv(e){for(var t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function hv(e,t,n,r,i){if(n.length>0&&function(e,t,n){return n.some((function(n){return fv(e,t,n)&&"primary"!==dv(n)}))}(e,n,r)){var o=new Uf(t,function(e,t,n,r){var i={};i.primary=r,r._sourceSegment=e,r._segmentIndexShift=t.length;var o,a=f(n);try{for(a.s();!(o=a.n()).done;){var s=o.value;if(""===s.path&&"primary"!==dv(s)){var u=new Uf([],{});u._sourceSegment=e,u._segmentIndexShift=t.length,i[dv(s)]=u}}}catch(l){a.e(l)}finally{a.f()}return i}(e,t,r,new Uf(n,e.children)));return o._sourceSegment=e,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some((function(n){return fv(e,t,n)}))}(e,n,r)){var a=new Uf(e.segments,function(e,t,n,r,i,o){var a,s={},u=f(r);try{for(u.s();!(a=u.n()).done;){var l=a.value;if(fv(e,n,l)&&!i[dv(l)]){var c=new Uf([],{});c._sourceSegment=e,c._segmentIndexShift="legacy"===o?e.segments.length:t.length,s[dv(l)]=c}}}catch(h){u.e(h)}finally{u.f()}return Object.assign(Object.assign({},i),s)}(e,t,n,r,e.children,i));return a._sourceSegment=e,a._segmentIndexShift=t.length,{segmentGroup:a,slicedSegments:n}}var s=new Uf(e.segments,e.children);return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}function fv(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function dv(e){return e.outlet||"primary"}function vv(e){return e.data||{}}function pv(e){return e.resolve||{}}function yv(e){return function(t){return t.pipe(Vh((function(t){var n=e(t);return n?oe(n).pipe($((function(){return t}))):oe([t])})))}}var mv=function(e){m(n,e);var t=_(n);function n(){return E(this,n),t.apply(this,arguments)}return n}(function(){function e(){E(this,e)}return T(e,[{key:"shouldDetach",value:function(e){return!1}},{key:"store",value:function(e,t){}},{key:"shouldAttach",value:function(e){return!1}},{key:"retrieve",value:function(e){return null}},{key:"shouldReuseRoute",value:function(e,t){return e.routeConfig===t.routeConfig}}]),e}()),gv=new ze("ROUTES"),_v=function(){function e(t,n,r,i){E(this,e),this.loader=t,this.compiler=n,this.onLoadStartListener=r,this.onLoadEndListener=i}return T(e,[{key:"load",value:function(e,t){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(t),this.loadModuleFactory(t.loadChildren).pipe($((function(r){n.onLoadEndListener&&n.onLoadEndListener(t);var i=r.create(e);return new Pd(Nf(i.injector.get(gv)).map(Bd),i)})))}},{key:"loadModuleFactory",value:function(e){var t=this;return"string"==typeof e?oe(this.loader.load(e)):Lf(e()).pipe(le((function(e){return e instanceof du?yh(e):oe(t.compiler.compileModuleAsync(e))})))}}]),e}(),kv=function e(){E(this,e),this.outlet=null,this.route=null,this.resolver=null,this.children=new bv,this.attachRef=null},bv=function(){function e(){E(this,e),this.contexts=new Map}return T(e,[{key:"onChildOutletCreated",value:function(e,t){var n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}},{key:"onChildOutletDestroyed",value:function(e){var t=this.getContext(e);t&&(t.outlet=null)}},{key:"onOutletDeactivated",value:function(){var e=this.contexts;return this.contexts=new Map,e}},{key:"onOutletReAttached",value:function(e){this.contexts=e}},{key:"getOrCreateContext",value:function(e){var t=this.getContext(e);return t||(t=new kv,this.contexts.set(e,t)),t}},{key:"getContext",value:function(e){return this.contexts.get(e)||null}}]),e}(),wv=function(){function e(){E(this,e)}return T(e,[{key:"shouldProcessUrl",value:function(e){return!0}},{key:"extract",value:function(e){return e}},{key:"merge",value:function(e,t){return e}}]),e}();function Sv(e){throw e}function Ev(e,t,n){return t.parse("/")}function Cv(e,t){return yh(null)}var Tv,xv,Av=((xv=function(){function e(t,n,r,i,o,a,s,u){var l=this;E(this,e),this.rootComponentType=t,this.urlSerializer=n,this.rootContexts=r,this.location=i,this.config=u,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new W,this.errorHandler=Sv,this.malformedUriErrorHandler=Ev,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Cv,afterPreactivation:Cv},this.urlHandlingStrategy=new wv,this.routeReuseStrategy=new mv,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.ngModule=o.get(fu),this.console=o.get(el);var c=o.get(dl);this.isNgZoneEnabled=c instanceof dl,this.resetConfig(u),this.currentUrlTree=new Ff(new Uf([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new _v(a,s,(function(e){return l.triggerEvent(new kf(e))}),(function(e){return l.triggerEvent(new bf(e))})),this.routerState=cd(this.currentUrlTree,this.rootComponentType),this.transitions=new mh({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return T(e,[{key:"setupNavigations",value:function(e){var t=this,n=this.events;return e.pipe(Ih((function(e){return 0!==e.id})),$((function(e){return Object.assign(Object.assign({},e),{extractedUrl:t.urlHandlingStrategy.extract(e.rawUrl)})})),Vh((function(e){var r,i,o,a,s=!1,u=!1;return yh(e).pipe(of((function(e){t.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:t.lastSuccessfulNavigation?Object.assign(Object.assign({},t.lastSuccessfulNavigation),{previousNavigation:null}):null}})),Vh((function(e){var r,i,o,a,s=!t.navigated||e.extractedUrl.toString()!==t.browserUrlTree.toString();if(("reload"===t.onSameUrlNavigation||s)&&t.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return yh(e).pipe(Vh((function(e){var r=t.transitions.getValue();return n.next(new hf(e.id,t.serializeUrl(e.extractedUrl),e.source,e.restoredState)),r!==t.transitions.getValue()?Ch:[e]})),Vh((function(e){return Promise.resolve(e)})),(r=t.ngModule.injector,i=t.configLoader,o=t.urlSerializer,a=t.config,function(e){return e.pipe(Vh((function(e){return function(e,t,n,r,i){return new Zd(e,t,n,r,i).apply()}(r,i,o,e.extractedUrl,a).pipe($((function(t){return Object.assign(Object.assign({},e),{urlAfterRedirects:t})})))})))}),of((function(e){t.currentNavigation=Object.assign(Object.assign({},t.currentNavigation),{finalUrl:e.urlAfterRedirects})})),function(e,n,r,i,o){return function(r){return r.pipe(le((function(r){return function(e,t,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";return new uv(e,t,n,r,i,o).recognize()}(e,n,r.urlAfterRedirects,(a=r.urlAfterRedirects,t.serializeUrl(a)),i,o).pipe($((function(e){return Object.assign(Object.assign({},r),{targetSnapshot:e})})));var a})))}}(t.rootComponentType,t.config,0,t.paramsInheritanceStrategy,t.relativeLinkResolution),of((function(e){"eager"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),t.browserUrlTree=e.urlAfterRedirects)})),of((function(e){var r=new pf(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);n.next(r)})));if(s&&t.rawUrlTree&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){var u=e.id,l=e.extractedUrl,c=e.source,h=e.restoredState,f=e.extras,d=new hf(u,t.serializeUrl(l),c,h);n.next(d);var v=cd(l,t.rootComponentType).snapshot;return yh(Object.assign(Object.assign({},e),{targetSnapshot:v,urlAfterRedirects:l,extras:Object.assign(Object.assign({},f),{skipLocationChange:!1,replaceUrl:!1})}))}return t.rawUrlTree=e.rawUrl,t.browserUrlTree=e.urlAfterRedirects,e.resolve(null),Ch})),yv((function(e){var n=e.targetSnapshot,r=e.id,i=e.extractedUrl,o=e.rawUrl,a=e.extras,s=a.skipLocationChange,u=a.replaceUrl;return t.hooks.beforePreactivation(n,{navigationId:r,appliedUrlTree:i,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!u})})),of((function(e){var n=new yf(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)})),$((function(e){return Object.assign(Object.assign({},e),{guards:(n=e.targetSnapshot,r=e.currentSnapshot,i=t.rootContexts,o=n._root,function e(t,n,r,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=ud(n);return t.children.forEach((function(t){!function(t,n,r,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=t.value,s=n?n.value:null,u=r?r.getContext(t.value.outlet):null;if(s&&a.routeConfig===s.routeConfig){var l=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!zf(e.url,t.url);case"pathParamsOrQueryParamsChange":return!zf(e.url,t.url)||!Of(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!gd(e,t)||!Of(e.queryParams,t.queryParams);case"paramsChange":default:return!gd(e,t)}}(s,a,a.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new Xd(i)):(a.data=s.data,a._resolvedData=s._resolvedData),e(t,n,a.component?u?u.children:null:r,i,o),l&&u&&u.outlet&&u.outlet.isActivated&&o.canDeactivateChecks.push(new ev(u.outlet.component,s))}else s&&nv(n,u,o),o.canActivateChecks.push(new Xd(i)),e(t,null,a.component?u?u.children:null:r,i,o)}(t,a[t.value.outlet],r,i.concat([t.value]),o),delete a[t.value.outlet]})),jf(a,(function(e,t){return nv(e,r.getContext(t),o)})),o}(o,r?r._root:null,i,[o.value]))});var n,r,i,o})),function(e,t){return function(n){return n.pipe(le((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?yh(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,r){return oe(e).pipe(le((function(e){return function(e,t,n,r,i){var o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return o&&0!==o.length?yh(o.map((function(o){var a,s=tv(o,t,i);if(function(e){return e&&Nd(e.canDeactivate)}(s))a=Lf(s.canDeactivate(e,t,n,r));else{if(!Nd(s))throw new Error("Invalid CanDeactivate guard");a=Lf(s(e,t,n,r))}return a.pipe(nf())}))).pipe(Ld()):yh(!0)}(e.component,e.route,n,t,r)})),nf((function(e){return!0!==e}),!0))}(s,r,i,e).pipe(le((function(n){return n&&"boolean"==typeof n?function(e,t,n,r){return oe(t).pipe(tf((function(t){return oe([iv(t.route.parent,r),rv(t.route,r),av(e,t.path,n),ov(e,t.route,n)]).pipe(Ah(),nf((function(e){return!0!==e}),!0))})),nf((function(e){return!0!==e}),!0))}(r,a,e,t):yh(n)})),$((function(e){return Object.assign(Object.assign({},n),{guardsResult:e})})))})))}}(t.ngModule.injector,(function(e){return t.triggerEvent(e)})),of((function(e){if(Dd(e.guardsResult)){var n=If('Redirecting to "'.concat(t.serializeUrl(e.guardsResult),'"'));throw n.url=e.guardsResult,n}})),of((function(e){var n=new mf(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);t.triggerEvent(n)})),Ih((function(e){if(!e.guardsResult){t.resetUrlToCurrentUrlTree();var r=new df(e.id,t.serializeUrl(e.extractedUrl),"");return n.next(r),e.resolve(!1),!1}return!0})),yv((function(e){if(e.guards.canActivateChecks.length)return yh(e).pipe(of((function(e){var n=new gf(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)})),Vh((function(e){var r,i,o=!1;return yh(e).pipe((r=t.paramsInheritanceStrategy,i=t.ngModule.injector,function(e){return e.pipe(le((function(e){var t=e.targetSnapshot,n=e.guards.canActivateChecks;if(!n.length)return yh(e);var o=0;return oe(n).pipe(tf((function(e){return function(e,t,n,r){return function(e,t,n,r){var i=Object.keys(e);if(0===i.length)return yh({});var o={};return oe(i).pipe(le((function(i){return function(e,t,n,r){var i=tv(e,t,r);return Lf(i.resolve?i.resolve(t,n):i(t,n))}(e[i],t,n,r).pipe(of((function(e){o[i]=e})))})),Nh(1),le((function(){return Object.keys(o).length===i.length?yh(o):Ch})))}(e._resolve,e,t,r).pipe($((function(t){return e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),fd(e,n).resolve),null})))}(e.route,t,r,i)})),of((function(){return o++})),Nh(1),le((function(t){return o===n.length?yh(e):Ch})))})))}),of({next:function(){return o=!0},complete:function(){if(!o){var r=new df(e.id,t.serializeUrl(e.extractedUrl),"At least one route resolver didn't emit any value.");n.next(r),e.resolve(!1)}}}))})),of((function(e){var n=new _f(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)})))})),yv((function(e){var n=e.targetSnapshot,r=e.id,i=e.extractedUrl,o=e.rawUrl,a=e.extras,s=a.skipLocationChange,u=a.replaceUrl;return t.hooks.afterPreactivation(n,{navigationId:r,appliedUrlTree:i,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!u})})),$((function(e){var n=function(e,t,n){var r=function e(t,n,r){if(r&&t.shouldReuseRoute(n.value,r.value.snapshot)){var i=r.value;i._futureSnapshot=n.value;var o=function(t,n,r){return n.children.map((function(n){var i,o=f(r.children);try{for(o.s();!(i=o.n()).done;){var a=i.value;if(t.shouldReuseRoute(n.value,a.value.snapshot))return e(t,n,a)}}catch(s){o.e(s)}finally{o.f()}return e(t,n)}))}(t,n,r);return new sd(i,o)}var a=t.retrieve(n.value);if(a){var s=a.route;return function e(t,n){if(t.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=t.value;for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:{},n=t.relativeTo,r=t.queryParams,i=t.fragment,o=t.queryParamsHandling,a=t.preserveFragment,s=n||this.routerState.root,u=a?this.currentUrlTree.fragment:i,l=null;switch(o){case"merge":l=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=r||null}return null!==l&&(l=this.removeEmptyProps(l)),function(e,t,n,r,i){if(0===n.length)return bd(t.root,t.root,t,r,i);var o=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new wd(!0,0,e);var t=0,n=!1,r=e.reduce((function(e,r,i){if("object"==typeof r&&null!=r){if(r.outlets){var o={};return jf(r.outlets,(function(e,t){o[t]="string"==typeof e?e.split("/"):e})),[].concat(c(e),[{outlets:o}])}if(r.segmentPath)return[].concat(c(e),[r.segmentPath])}return"string"!=typeof r?[].concat(c(e),[r]):0===i?(r.split("/").forEach((function(r,i){0==i&&"."===r||(0==i&&""===r?n=!0:".."===r?t++:""!=r&&e.push(r))})),e):[].concat(c(e),[r])}),[]);return new wd(n,t,r)}(n);if(o.toRoot())return bd(t.root,new Uf([],{}),t,r,i);var a=function(e,t,n){if(e.isAbsolute)return new Sd(t.root,!0,0);if(-1===n.snapshot._lastPathIndex){var r=n.snapshot._urlSegment;return new Sd(r,r===t.root,0)}var i=_d(e.commands[0])?0:1;return function(e,t,n){for(var r=e,i=t,o=n;o>i;){if(o-=i,!(r=r.parent))throw new Error("Invalid number of '../'");i=r.segments.length}return new Sd(r,!1,i-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,e.numberOfDoubleDots)}(o,t,e),s=a.processChildren?Cd(a.segmentGroup,a.index,o.commands):Ed(a.segmentGroup,a.index,o.commands);return bd(a.segmentGroup,s,t,r,i)}(s,this.currentUrlTree,e,l,u)}},{key:"navigateByUrl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},n=Dd(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,t)}},{key:"navigate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return function(e){for(var t=0;t2&&void 0!==arguments[2]?arguments[2]:{};E(this,e),this.router=t,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 T(e,[{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 e=this;return this.router.events.subscribe((function(t){t instanceof hf?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=t.navigationTrigger,e.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof ff&&(e.lastId=t.id,e.scheduleScrollEvent(t,e.router.parseUrl(t.urlAfterRedirects).fragment))}))}},{key:"consumeScrollEvents",value:function(){var e=this;return this.router.events.subscribe((function(t){t instanceof Tf&&(t.position?"top"===e.options.scrollPositionRestoration?e.viewportScroller.scrollToPosition([0,0]):"enabled"===e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===e.options.anchorScrolling?e.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition([0,0]))}))}},{key:"scheduleScrollEvent",value:function(e,t){this.router.triggerEvent(new Tf(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),e}()).\u0275fac=function(e){return new(e||Pv)(Ft(Av),Ft(Tc),Ft(void 0))},Pv.\u0275prov=Pe({token:Pv,factory:Pv.\u0275fac}),Pv),Hv=new ze("ROUTER_CONFIGURATION"),zv=new ze("ROUTER_FORROOT_GUARD"),Bv=[hc,{provide:Vf,useClass:qf},{provide:Av,useFactory:function(e,t,n,r,i,o,a){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},u=arguments.length>8?arguments[8]:void 0,l=arguments.length>9?arguments[9]:void 0,c=new Av(null,e,t,n,r,i,o,Nf(a));if(u&&(c.urlHandlingStrategy=u),l&&(c.routeReuseStrategy=l),function(e,t){e.errorHandler&&(t.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(t.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(t.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(t.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(t.urlUpdateStrategy=e.urlUpdateStrategy)}(s,c),s.enableTracing){var h=Vl();c.events.subscribe((function(e){h.logGroup("Router Event: "+e.constructor.name),h.log(e.toString()),h.log(e),h.logGroupEnd()}))}return c},deps:[Vf,bv,hc,na,Dl,cl,gv,Hv,[function(){return function e(){E(this,e)}}(),new Ee],[function(){return function e(){E(this,e)}}(),new Ee]]},bv,{provide:hd,useFactory:function(e){return e.routerState.root},deps:[Av]},{provide:Dl,useClass:Ml},Fv,Mv,function(){function e(){E(this,e)}return T(e,[{key:"preload",value:function(e,t){return t().pipe(Jh((function(){return yh(null)})))}}]),e}(),{provide:Hv,useValue:{enableTracing:!1}}];function Vv(){return new Tl("Router",Av)}var qv,Gv=((qv=function(){function e(t,n){E(this,e)}return T(e,null,[{key:"forRoot",value:function(t,n){return{ngModule:e,providers:[Bv,Zv(t),{provide:zv,useFactory:Kv,deps:[[Av,new Ee,new Te]]},{provide:Hv,useValue:n||{}},{provide:rc,useFactory:Wv,deps:[Ql,[new Se(uc),new Ee],Hv]},{provide:Uv,useFactory:Qv,deps:[Av,Tc,Hv]},{provide:Lv,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Mv},{provide:Tl,multi:!0,useFactory:Vv},[Yv,{provide:Qu,multi:!0,useFactory:Jv,deps:[Yv]},{provide:np,useFactory:Xv,deps:[Yv]},{provide:Xu,multi:!0,useExisting:np}]]}}},{key:"forChild",value:function(t){return{ngModule:e,providers:[Zv(t)]}}}]),e}()).\u0275mod=bt({type:qv}),qv.\u0275inj=Ne({factory:function(e){return new(e||qv)(Ft(zv,8),Ft(Av,8))}}),qv);function Qv(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new Uv(e,t,n)}function Wv(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new cc(e,t):new lc(e,t)}function Kv(e){return"guarded"}function Zv(e){return[{provide:Be,multi:!0,useValue:e},{provide:gv,multi:!0,useValue:e}]}var $v,Yv=(($v=function(){function e(t){E(this,e),this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new W}return T(e,[{key:"appInitializer",value:function(){var e=this;return this.injector.get(Zl,Promise.resolve(null)).then((function(){var t=null,n=new Promise((function(e){return t=e})),r=e.injector.get(Av),i=e.injector.get(Hv);return"disabled"===i.initialNavigation?(r.setUpLocationChangeListener(),t(!0)):"enabled"===i.initialNavigation||"enabledBlocking"===i.initialNavigation?(r.hooks.afterPreactivation=function(){return e.initNavigation?yh(null):(e.initNavigation=!0,t(!0),e.resultOfPreactivationDone)},r.initialNavigation()):t(!0),n}))}},{key:"bootstrapListener",value:function(e){var t=this.injector.get(Hv),n=this.injector.get(Fv),r=this.injector.get(Uv),i=this.injector.get(Av),o=this.injector.get(Pl);e===o.components[0]&&("enabledNonBlocking"!==t.initialNavigation&&void 0!==t.initialNavigation||i.initialNavigation(),n.setUpPreloading(),r.init(),i.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}]),e}()).\u0275fac=function(e){return new(e||$v)(Ft(na))},$v.\u0275prov=Pe({token:$v,factory:$v.\u0275fac}),$v);function Jv(e){return e.appInitializer.bind(e)}function Xv(e){return e.bootstrapListener.bind(e)}var ep,tp,np=new ze("Router Initializer"),rp=((tp=function(){function e(t,n,r){E(this,e),this.document=t,this.title=n,this.meta=r}return T(e,[{key:"updateMetaData",value:function(e,t,n){for(var r,i=document.getElementsByTagName("link"),o=!1,a=0;a1&&void 0!==arguments[1]?arguments[1]:0;return function(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}(e)?Number(e):t}function dp(e){return e instanceof Ls?e.nativeElement:e}function vp(e){return 0===e.buttons}"undefined"!=typeof Element&∈var pp,yp=new ze("cdk-focus-monitor-default-options"),mp=cp({passive:!0,capture:!0}),gp=((pp=function(){function e(t,n,r,i){var o=this;E(this,e),this._ngZone=t,this._platform=n,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=function(){o._lastTouchTarget=null,o._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=function(e){if(!o._lastTouchTarget){var t=vp(e)?"keyboard":"mouse";o._setOriginForCurrentEventQueue(t)}},this._documentTouchstartListener=function(e){null!=o._touchTimeoutId&&clearTimeout(o._touchTimeoutId),o._lastTouchTarget=_p(e),o._touchTimeoutId=setTimeout((function(){return o._lastTouchTarget=null}),650)},this._windowFocusListener=function(){o._windowFocused=!0,o._windowFocusTimeoutId=setTimeout((function(){return o._windowFocused=!1}))},this._rootNodeFocusAndBlurListener=function(e){for(var t=_p(e),n="focus"===e.type?o._onFocus:o._onBlur,r=t;r;r=r.parentElement)n.call(o,e,r)},this._document=r,this._detectionMode=(null==i?void 0:i.detectionMode)||0}return T(e,[{key:"monitor",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this._platform.isBrowser)return yh(null);var n=dp(e),r=function(e){if(function(){if(null==op){var e="undefined"!=typeof document?document.head:null;op=!(!e||!e.createShadowRoot&&!e.attachShadow)}return op}()){var t=e.getRootNode?e.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}(n)||this._getDocument(),i=this._elementInfo.get(n);if(i)return t&&(i.checkChildren=!0),i.subject;var o={checkChildren:t,subject:new W,rootNode:r};return this._elementInfo.set(n,o),this._registerGlobalListeners(o),o.subject}},{key:"stopMonitoring",value:function(e){var t=dp(e),n=this._elementInfo.get(t);n&&(n.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(n))}},{key:"focusVia",value:function(e,t,n){var r=dp(e);this._setOriginForCurrentEventQueue(t),"function"==typeof r.focus&&r.focus(n)}},{key:"ngOnDestroy",value:function(){var e=this;this._elementInfo.forEach((function(t,n){return e.stopMonitoring(n)}))}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(e,t,n){n?e.classList.add(t):e.classList.remove(t)}},{key:"_getFocusOrigin",value:function(e){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(e)?"touch":"program"}},{key:"_setClasses",value:function(e,t){this._toggleClass(e,"cdk-focused",!!t),this._toggleClass(e,"cdk-touch-focused","touch"===t),this._toggleClass(e,"cdk-keyboard-focused","keyboard"===t),this._toggleClass(e,"cdk-mouse-focused","mouse"===t),this._toggleClass(e,"cdk-program-focused","program"===t)}},{key:"_setOriginForCurrentEventQueue",value:function(e){var t=this;this._ngZone.runOutsideAngular((function(){t._origin=e,0===t._detectionMode&&(t._originTimeoutId=setTimeout((function(){return t._origin=null}),1))}))}},{key:"_wasCausedByTouch",value:function(e){var t=_p(e);return this._lastTouchTarget instanceof Node&&t instanceof Node&&(t===this._lastTouchTarget||t.contains(this._lastTouchTarget))}},{key:"_onFocus",value:function(e,t){var n=this._elementInfo.get(t);if(n&&(n.checkChildren||t===_p(e))){var r=this._getFocusOrigin(e);this._setClasses(t,r),this._emitOrigin(n.subject,r),this._lastFocusOrigin=r}}},{key:"_onBlur",value:function(e,t){var n=this._elementInfo.get(t);!n||n.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(n.subject,null))}},{key:"_emitOrigin",value:function(e,t){this._ngZone.run((function(){return e.next(t)}))}},{key:"_registerGlobalListeners",value:function(e){var t=this;if(this._platform.isBrowser){var n=e.rootNode,r=this._rootNodeFocusListenerCount.get(n)||0;r||this._ngZone.runOutsideAngular((function(){n.addEventListener("focus",t._rootNodeFocusAndBlurListener,mp),n.addEventListener("blur",t._rootNodeFocusAndBlurListener,mp)})),this._rootNodeFocusListenerCount.set(n,r+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular((function(){var e=t._getDocument(),n=t._getWindow();e.addEventListener("keydown",t._documentKeydownListener,mp),e.addEventListener("mousedown",t._documentMousedownListener,mp),e.addEventListener("touchstart",t._documentTouchstartListener,mp),n.addEventListener("focus",t._windowFocusListener)}))}}},{key:"_removeGlobalListeners",value:function(e){var t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){var n=this._rootNodeFocusListenerCount.get(t);n>1?this._rootNodeFocusListenerCount.set(t,n-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,mp),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,mp),this._rootNodeFocusListenerCount.delete(t))}if(!--this._monitoredElementCount){var r=this._getDocument(),i=this._getWindow();r.removeEventListener("keydown",this._documentKeydownListener,mp),r.removeEventListener("mousedown",this._documentMousedownListener,mp),r.removeEventListener("touchstart",this._documentTouchstartListener,mp),i.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}}]),e}()).\u0275fac=function(e){return new(e||pp)(Ft(dl),Ft(up),Ft(Gl,8),Ft(yp,8))},pp.\u0275prov=Pe({factory:function(){return new pp(Ft(dl),Ft(up),Ft(Gl,8),Ft(yp,8))},token:pp,providedIn:"root"}),pp);function _p(e){return e.composedPath?e.composedPath()[0]:e.target}var kp,bp,wp,Sp=((kp=function(){function e(t,n){E(this,e),this._platform=t,this._document=n}return T(e,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);var t=this._document.defaultView||window,n=t&&t.getComputedStyle?t.getComputedStyle(e):null,r=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(e),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 e=this._document.body.classList;e.remove("cdk-high-contrast-active"),e.remove("cdk-high-contrast-black-on-white"),e.remove("cdk-high-contrast-white-on-black");var t=this.getHighContrastMode();1===t?(e.add("cdk-high-contrast-active"),e.add("cdk-high-contrast-black-on-white")):2===t&&(e.add("cdk-high-contrast-active"),e.add("cdk-high-contrast-white-on-black"))}}}]),e}()).\u0275fac=function(e){return new(e||kp)(Ft(up),Ft(Gl))},kp.\u0275prov=Pe({factory:function(){return new kp(Ft(up),Ft(Gl))},token:kp,providedIn:"root"}),kp),Ep=new ze("cdk-dir-doc",{providedIn:"root",factory:function(){return Ut(Gl)}}),Cp=((wp=function(){function e(t){if(E(this,e),this.value="ltr",this.change=new Iu,t){var n=t.documentElement?t.documentElement.dir:null,r=(t.body?t.body.dir:null)||n;this.value="ltr"===r||"rtl"===r?r:"ltr"}}return T(e,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),e}()).\u0275fac=function(e){return new(e||wp)(Ft(Ep,8))},wp.\u0275prov=Pe({factory:function(){return new wp(Ft(Ep,8))},token:wp,providedIn:"root"}),wp),Tp=((bp=function e(){E(this,e)}).\u0275mod=bt({type:bp}),bp.\u0275inj=Ne({factory:function(e){return new(e||bp)}}),bp),xp=new zs("10.2.0"),Ap=function e(){E(this,e)};function Ip(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:e,options:t}}function Rp(e){return{type:6,styles:e,offset:null}}function Op(e){Promise.resolve(null).then(e)}var Pp=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;E(this,e),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=t+n}return T(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(e){return e()})),this._onDoneFns=[])}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{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 e=this;Op((function(){return e._onFinish()}))}},{key:"_onStart",value:function(){this._onStartFns.forEach((function(e){return e()})),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(e){return e()})),this._onDestroyFns=[])}},{key:"reset",value:function(){}},{key:"setPosition",value:function(e){}},{key:"getPosition",value:function(){return 0}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach((function(e){return e()})),t.length=0}}]),e}(),Np=function(){function e(t){var n=this;E(this,e),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;var r=0,i=0,o=0,a=this.players.length;0==a?Op((function(){return n._onFinish()})):this.players.forEach((function(e){e.onDone((function(){++r==a&&n._onFinish()})),e.onDestroy((function(){++i==a&&n._onDestroy()})),e.onStart((function(){++o==a&&n._onStart()}))})),this.totalTime=this.players.reduce((function(e,t){return Math.max(e,t.totalTime)}),0)}return T(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(e){return e()})),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach((function(e){return e.init()}))}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach((function(e){return e()})),this._onStartFns=[])}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach((function(e){return e.play()}))}},{key:"pause",value:function(){this.players.forEach((function(e){return e.pause()}))}},{key:"restart",value:function(){this.players.forEach((function(e){return e.restart()}))}},{key:"finish",value:function(){this._onFinish(),this.players.forEach((function(e){return e.finish()}))}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach((function(e){return e.destroy()})),this._onDestroyFns.forEach((function(e){return e()})),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach((function(e){return e.reset()})),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(e){var t=e*this.totalTime;this.players.forEach((function(e){var n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)}))}},{key:"getPosition",value:function(){var e=0;return this.players.forEach((function(t){var n=t.getPosition();e=Math.min(n,e)})),e}},{key:"beforeDestroy",value:function(){this.players.forEach((function(e){e.beforeDestroy&&e.beforeDestroy()}))}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach((function(e){return e()})),t.length=0}}]),e}();function Dp(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function jp(e){switch(e.length){case 0:return new Pp;case 1:return e[0];default:return new Np(e)}}function Lp(e,t,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=[],u=-1,l=null;if(r.forEach((function(e){var n=e.offset,r=n==u,c=r&&l||{};Object.keys(e).forEach((function(n){var r=n,s=e[n];if("offset"!==n)switch(r=t.normalizePropertyName(r,a),s){case"!":s=i[n];break;case"*":s=o[n];break;default:s=t.normalizeStyleValue(n,r,s,a)}c[r]=s})),r||s.push(c),l=c,u=n})),a.length){var c="\n - ";throw new Error("Unable to animate due to the following errors:".concat(c).concat(a.join(c)))}return s}function Mp(e,t,n,r){switch(t){case"start":e.onStart((function(){return r(n&&Fp(n,"start",e))}));break;case"done":e.onDone((function(){return r(n&&Fp(n,"done",e))}));break;case"destroy":e.onDestroy((function(){return r(n&&Fp(n,"destroy",e))}))}}function Fp(e,t,n){var r=n.totalTime,i=Up(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==r?e.totalTime:r,!!n.disabled),o=e._data;return null!=o&&(i._data=o),i}function Up(e,t,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:e,triggerName:t,fromState:n,toState:r,phaseName:i,totalTime:o,disabled:!!a}}function Hp(e,t,n){var r;return e instanceof Map?(r=e.get(t))||e.set(t,r=n):(r=e[t])||(r=e[t]=n),r}function zp(e){var t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}var Bp=function(e,t){return!1},Vp=function(e,t){return!1},qp=function(e,t,n){return[]},Gp=Dp();(Gp||"undefined"!=typeof Element)&&(Bp=function(e,t){return e.contains(t)},Vp=function(){if(Gp||Element.prototype.matches)return function(e,t){return e.matches(t)};var e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?function(e,n){return t.apply(e,[n])}:Vp}(),qp=function(e,t,n){var r=[];if(n)r.push.apply(r,c(e.querySelectorAll(t)));else{var i=e.querySelector(t);i&&r.push(i)}return r});var Qp=null,Wp=!1;function Kp(e){Qp||(Qp=("undefined"!=typeof document?document.body:null)||{},Wp=!!Qp.style&&"WebkitAppearance"in Qp.style);var t=!0;return Qp.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&(!(t=e in Qp.style)&&Wp)&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in Qp.style),t}var Zp=Vp,$p=Bp,Yp=qp;function Jp(e){var t={};return Object.keys(e).forEach((function(n){var r=n.replace(/([a-z])([A-Z])/g,"$1-$2");t[r]=e[n]})),t}var Xp,ey=((Xp=function(){function e(){E(this,e)}return T(e,[{key:"validateStyleProperty",value:function(e){return Kp(e)}},{key:"matchesElement",value:function(e,t){return Zp(e,t)}},{key:"containsElement",value:function(e,t){return $p(e,t)}},{key:"query",value:function(e,t,n){return Yp(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return n||""}},{key:"animate",value:function(e,t,n,r,i){return new Pp(n,r)}}]),e}()).\u0275fac=function(e){return new(e||Xp)},Xp.\u0275prov=Pe({token:Xp,factory:Xp.\u0275fac}),Xp),ty=function(){var e=function e(){E(this,e)};return e.NOOP=new ey,e}();function ny(e){if("number"==typeof e)return e;var t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:ry(parseFloat(t[1]),t[2])}function ry(e,t){switch(t){case"s":return 1e3*e;default:return e}}function iy(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){var r,i=0,o="";if("string"==typeof e){var a=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return t.push('The provided timing value "'.concat(e,'" is invalid.')),{duration:0,delay:0,easing:""};r=ry(parseFloat(a[1]),a[2]);var s=a[3];null!=s&&(i=ry(parseFloat(s),a[4]));var u=a[5];u&&(o=u)}else r=e;if(!n){var l=!1,c=t.length;r<0&&(t.push("Duration values below 0 are not allowed for this animation step."),l=!0),i<0&&(t.push("Delay values below 0 are not allowed for this animation step."),l=!0),l&&t.splice(c,0,'The provided timing value "'.concat(e,'" is invalid.'))}return{duration:r,delay:i,easing:o}}(e,t,n)}function oy(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).forEach((function(n){t[n]=e[n]})),t}function ay(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t)for(var r in e)n[r]=e[r];else oy(e,n);return n}function sy(e,t,n){return n?t+":"+n+";":""}function uy(e){for(var t="",n=0;n *";case":leave":return"* => void";case":increment":return function(e,t){return parseFloat(t)>parseFloat(e)};case":decrement":return function(e,t){return parseFloat(t) *"}}(e,n);if("function"==typeof r)return void t.push(r);e=r}var i=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push('The provided transition expression "'.concat(e,'" is not supported')),t;var o=i[1],a=i[2],s=i[3];t.push(Ey(o,s)),"<"!=a[0]||"*"==o&&"*"==s||t.push(Ey(s,o))}(e,i,r)})):i.push(n),i),animation:o,queryCount:t.queryCount,depCount:t.depCount,options:Ry(e.options)}}},{key:"visitSequence",value:function(e,t){var n=this;return{type:2,steps:e.steps.map((function(e){return ky(n,e,t)})),options:Ry(e.options)}}},{key:"visitGroup",value:function(e,t){var n=this,r=t.currentTime,i=0,o=e.steps.map((function(e){t.currentTime=r;var o=ky(n,e,t);return i=Math.max(i,t.currentTime),o}));return t.currentTime=i,{type:3,steps:o,options:Ry(e.options)}}},{key:"visitAnimate",value:function(e,t){var n,r=function(e,t){var n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return Oy(iy(e,t).duration,0,"");var r=e;if(r.split(/\s+/).some((function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)}))){var i=Oy(0,0,"");return i.dynamic=!0,i.strValue=r,i}return Oy((n=n||iy(r,t)).duration,n.delay,n.easing)}(e.timings,t.errors);t.currentAnimateTimings=r;var i=e.styles?e.styles:Rp({});if(5==i.type)n=this.visitKeyframes(i,t);else{var o=e.styles,a=!1;if(!o){a=!0;var s={};r.easing&&(s.easing=r.easing),o=Rp(s)}t.currentTime+=r.duration+r.delay;var u=this.visitStyle(o,t);u.isEmptyStep=a,n=u}return t.currentAnimateTimings=null,{type:4,timings:r,style:n,options:null}}},{key:"visitStyle",value:function(e,t){var n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}},{key:"_makeStyleAst",value:function(e,t){var n=[];Array.isArray(e.styles)?e.styles.forEach((function(e){"string"==typeof e?"*"==e?n.push(e):t.errors.push("The provided style string value ".concat(e," is not allowed.")):n.push(e)})):n.push(e.styles);var r=!1,i=null;return n.forEach((function(e){if(Iy(e)){var t=e,n=t.easing;if(n&&(i=n,delete t.easing),!r)for(var o in t)if(t[o].toString().indexOf("{{")>=0){r=!0;break}}})),{type:6,styles:n,easing:i,offset:e.offset,containsDynamicStyles:r,options:null}}},{key:"_validateStyleAst",value:function(e,t){var n=this,r=t.currentAnimateTimings,i=t.currentTime,o=t.currentTime;r&&o>0&&(o-=r.duration+r.delay),e.styles.forEach((function(e){"string"!=typeof e&&Object.keys(e).forEach((function(r){if(n._driver.validateStyleProperty(r)){var a,s,u,l,c,h=t.collectedStyles[t.currentQuerySelector],f=h[r],d=!0;f&&(o!=i&&o>=f.startTime&&i<=f.endTime&&(t.errors.push('The CSS property "'.concat(r,'" that exists between the times of "').concat(f.startTime,'ms" and "').concat(f.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(o,'ms" and "').concat(i,'ms"')),d=!1),o=f.startTime),d&&(h[r]={startTime:o,endTime:i}),t.options&&(a=e[r],s=t.options,u=t.errors,l=s.params||{},(c=dy(a)).length&&c.forEach((function(e){l.hasOwnProperty(e)||u.push("Unable to resolve the local animation param ".concat(e," in the given list of values"))})))}else t.errors.push('The provided animation property "'.concat(r,'" is not a supported CSS property for animations'))}))}))}},{key:"visitKeyframes",value:function(e,t){var n=this,r={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),r;var i=0,o=[],a=!1,s=!1,u=0,l=e.steps.map((function(e){var r=n._makeStyleAst(e,t),l=null!=r.offset?r.offset:function(e){if("string"==typeof e)return null;var t=null;if(Array.isArray(e))e.forEach((function(e){if(Iy(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}}));else if(Iy(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}return t}(r.styles),c=0;return null!=l&&(i++,c=r.offset=l),s=s||c<0||c>1,a=a||c0&&i0?i==f?1:h*i:o[i],s=a*p;t.currentTime=d+v.delay+s,v.duration=s,n._validateStyleAst(e,t),e.offset=a,r.styles.push(e)})),r}},{key:"visitReference",value:function(e,t){return{type:8,animation:ky(this,hy(e.animation),t),options:Ry(e.options)}}},{key:"visitAnimateChild",value:function(e,t){return t.depCount++,{type:9,options:Ry(e.options)}}},{key:"visitAnimateRef",value:function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:Ry(e.options)}}},{key:"visitQuery",value:function(e,t){var n=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;var i=l(function(e){var t=!!e.split(/\s*,\s*/).find((function(e){return":self"==e}));return t&&(e=e.replace(Cy,"")),[e=e.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,(function(e){return".ng-trigger-"+e.substr(1)})).replace(/:animating/g,".ng-animating"),t]}(e.selector),2),o=i[0],a=i[1];t.currentQuerySelector=n.length?n+" "+o:o,Hp(t.collectedStyles,t.currentQuerySelector,{});var s=ky(this,hy(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:a,animation:s,originalSelector:e.selector,options:Ry(e.options)}}},{key:"visitStagger",value:function(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");var n="full"===e.timings?{duration:0,delay:0,easing:"full"}:iy(e.timings,t.errors,!0);return{type:12,animation:ky(this,hy(e.animation),t),timings:n,options:null}}}]),e}(),Ay=function e(t){E(this,e),this.errors=t,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 Iy(e){return!Array.isArray(e)&&"object"==typeof e}function Ry(e){var t;return e?(e=oy(e)).params&&(e.params=(t=e.params)?oy(t):null):e={},e}function Oy(e,t,n){return{duration:e,delay:t,easing:n}}function Py(e,t,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:e,keyframes:t,preStyleProps:n,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:a,subTimeline:s}}var Ny=function(){function e(){E(this,e),this._map=new Map}return T(e,[{key:"consume",value:function(e){var t=this._map.get(e);return t?this._map.delete(e):t=[],t}},{key:"append",value:function(e,t){var n,r=this._map.get(e);r||this._map.set(e,r=[]),(n=r).push.apply(n,c(t))}},{key:"has",value:function(e){return this._map.has(e)}},{key:"clear",value:function(){this._map.clear()}}]),e}(),Dy=new RegExp(":enter","g"),jy=new RegExp(":leave","g");function Ly(e,t,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,u=arguments.length>8?arguments[8]:void 0,l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new My).buildKeyframes(e,t,n,r,i,o,a,s,u,l)}var My=function(){function e(){E(this,e)}return T(e,[{key:"buildKeyframes",value:function(e,t,n,r,i,o,a,s,u){var l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];u=u||new Ny;var c=new Uy(e,t,u,r,i,l,[]);c.options=s,c.currentTimeline.setStyles([o],null,c.errors,s),ky(this,n,c);var h=c.timelines.filter((function(e){return e.containsAnimation()}));if(h.length&&Object.keys(a).length){var f=h[h.length-1];f.allowOnlyTimelineStyles()||f.setStyles([a],null,c.errors,s)}return h.length?h.map((function(e){return e.buildKeyframes()})):[Py(t,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(e,t){}},{key:"visitState",value:function(e,t){}},{key:"visitTransition",value:function(e,t){}},{key:"visitAnimateChild",value:function(e,t){var n=t.subInstructions.consume(t.element);if(n){var r=t.createSubContext(e.options),i=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,r,r.options);i!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}},{key:"visitAnimateRef",value:function(e,t){var n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}},{key:"_visitSubInstructions",value:function(e,t,n){var r=t.currentTimeline.currentTime,i=null!=n.duration?ny(n.duration):null,o=null!=n.delay?ny(n.delay):null;return 0!==i&&e.forEach((function(e){var n=t.appendInstructionToTimeline(e,i,o);r=Math.max(r,n.duration+n.delay)})),r}},{key:"visitReference",value:function(e,t){t.updateOptions(e.options,!0),ky(this,e.animation,t),t.previousNode=e}},{key:"visitSequence",value:function(e,t){var n=this,r=t.subContextCount,i=t,o=e.options;if(o&&(o.params||o.delay)&&((i=t.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Fy);var a=ny(o.delay);i.delayNextStep(a)}e.steps.length&&(e.steps.forEach((function(e){return ky(n,e,i)})),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),t.previousNode=e}},{key:"visitGroup",value:function(e,t){var n=this,r=[],i=t.currentTimeline.currentTime,o=e.options&&e.options.delay?ny(e.options.delay):0;e.steps.forEach((function(a){var s=t.createSubContext(e.options);o&&s.delayNextStep(o),ky(n,a,s),i=Math.max(i,s.currentTimeline.currentTime),r.push(s.currentTimeline)})),r.forEach((function(e){return t.currentTimeline.mergeTimelineCollectedStyles(e)})),t.transformIntoNewTimeline(i),t.previousNode=e}},{key:"_visitTiming",value:function(e,t){if(e.dynamic){var n=e.strValue;return iy(t.params?vy(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}},{key:"visitAnimate",value:function(e,t){var n=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),r.snapshotCurrentStyles());var i=e.style;5==i.type?this.visitKeyframes(i,t):(t.incrementTime(n.duration),this.visitStyle(i,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}},{key:"visitStyle",value:function(e,t){var n=t.currentTimeline,r=t.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();var i=r&&r.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(i):n.setStyles(e.styles,i,t.errors,t.options),t.previousNode=e}},{key:"visitKeyframes",value:function(e,t){var n=t.currentAnimateTimings,r=t.currentTimeline.duration,i=n.duration,o=t.createSubContext().currentTimeline;o.easing=n.easing,e.styles.forEach((function(e){o.forwardTime((e.offset||0)*i),o.setStyles(e.styles,e.easing,t.errors,t.options),o.applyStylesToKeyframe()})),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(r+i),t.previousNode=e}},{key:"visitQuery",value:function(e,t){var n=this,r=t.currentTimeline.currentTime,i=e.options||{},o=i.delay?ny(i.delay):0;o&&(6===t.previousNode.type||0==r&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Fy);var a=r,s=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=s.length;var u=null;s.forEach((function(r,i){t.currentQueryIndex=i;var s=t.createSubContext(e.options,r);o&&s.delayNextStep(o),r===t.element&&(u=s.currentTimeline),ky(n,e.animation,s),s.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,s.currentTimeline.currentTime)})),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(a),u&&(t.currentTimeline.mergeTimelineCollectedStyles(u),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}},{key:"visitStagger",value:function(e,t){var n=t.parentContext,r=t.currentTimeline,i=e.timings,o=Math.abs(i.duration),a=o*(t.currentQueryTotal-1),s=o*t.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":s=a-s;break;case"full":s=n.currentStaggerTime}var u=t.currentTimeline;s&&u.delayNextStep(s);var l=u.currentTime;ky(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=r.currentTime-l+(r.startTime-n.currentTimeline.startTime)}}]),e}(),Fy={},Uy=function(){function e(t,n,r,i,o,a,s,u){E(this,e),this._driver=t,this.element=n,this.subInstructions=r,this._enterClassName=i,this._leaveClassName=o,this.errors=a,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Fy,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=u||new Hy(this._driver,n,0),s.push(this.currentTimeline)}return T(e,[{key:"updateOptions",value:function(e,t){var n=this;if(e){var r=e,i=this.options;null!=r.duration&&(i.duration=ny(r.duration)),null!=r.delay&&(i.delay=ny(r.delay));var o=r.params;if(o){var a=i.params;a||(a=this.options.params={}),Object.keys(o).forEach((function(e){t&&a.hasOwnProperty(e)||(a[e]=vy(o[e],a,n.errors))}))}}}},{key:"_copyOptions",value:function(){var e={};if(this.options){var t=this.options.params;if(t){var n=e.params={};Object.keys(t).forEach((function(e){n[e]=t[e]}))}}return e}},{key:"createSubContext",value:function(){var t=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 e(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(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}},{key:"transformIntoNewTimeline",value:function(e){return this.previousNode=Fy,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(e,t,n){var r={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},i=new zy(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(i),r}},{key:"incrementTime",value:function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}},{key:"delayNextStep",value:function(e){e>0&&this.currentTimeline.delayNextStep(e)}},{key:"invokeQuery",value:function(e,t,n,r,i,o){var a=[];if(r&&a.push(this.element),e.length>0){e=(e=e.replace(Dy,"."+this._enterClassName)).replace(jy,"."+this._leaveClassName);var s=this._driver.query(this.element,e,1!=n);0!==n&&(s=n<0?s.slice(s.length+n,s.length):s.slice(0,n)),a.push.apply(a,c(s))}return i||0!=a.length||o.push('`query("'.concat(t,'")` returned zero elements. (Use `query("').concat(t,'", { optional: true })` if you wish to allow this.)')),a}},{key:"params",get:function(){return this.options.params}}]),e}(),Hy=function(){function e(t,n,r,i){E(this,e),this._driver=t,this.element=n,this.startTime=r,this._elementTimelineStylesLookup=i,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 T(e,[{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:"delayNextStep",value:function(e){var t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}},{key:"fork",value:function(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,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(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}},{key:"_updateStyle",value:function(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(e){var t=this;e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach((function(e){t._backFill[e]=t._globalTimelineStyles[e]||"*",t._currentKeyframe[e]="*"})),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(e,t,n,r){var i=this;t&&(this._previousKeyframe.easing=t);var o=r&&r.params||{},a=function(e,t){var n,r={};return e.forEach((function(e){"*"===e?(n=n||Object.keys(t)).forEach((function(e){r[e]="*"})):ay(e,!1,r)})),r}(e,this._globalTimelineStyles);Object.keys(a).forEach((function(e){var t=vy(a[e],o,n);i._pendingStyles[e]=t,i._localTimelineStyles.hasOwnProperty(e)||(i._backFill[e]=i._globalTimelineStyles.hasOwnProperty(e)?i._globalTimelineStyles[e]:"*"),i._updateStyle(e,t)}))}},{key:"applyStylesToKeyframe",value:function(){var e=this,t=this._pendingStyles,n=Object.keys(t);0!=n.length&&(this._pendingStyles={},n.forEach((function(n){e._currentKeyframe[n]=t[n]})),Object.keys(this._localTimelineStyles).forEach((function(t){e._currentKeyframe.hasOwnProperty(t)||(e._currentKeyframe[t]=e._localTimelineStyles[t])})))}},{key:"snapshotCurrentStyles",value:function(){var e=this;Object.keys(this._localTimelineStyles).forEach((function(t){var n=e._localTimelineStyles[t];e._pendingStyles[t]=n,e._updateStyle(t,n)}))}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"mergeTimelineCollectedStyles",value:function(e){var t=this;Object.keys(e._styleSummary).forEach((function(n){var r=t._styleSummary[n],i=e._styleSummary[n];(!r||i.time>r.time)&&t._updateStyle(n,i.value)}))}},{key:"buildKeyframes",value:function(){var e=this;this.applyStylesToKeyframe();var t=new Set,n=new Set,r=1===this._keyframes.size&&0===this.duration,i=[];this._keyframes.forEach((function(o,a){var s=ay(o,!0);Object.keys(s).forEach((function(e){var r=s[e];"!"==r?t.add(e):"*"==r&&n.add(e)})),r||(s.offset=a/e.duration),i.push(s)}));var o=t.size?py(t.values()):[],a=n.size?py(n.values()):[];if(r){var s=i[0],u=oy(s);s.offset=0,u.offset=1,i=[s,u]}return Py(this.element,i,o,a,this.duration,this.startTime,this.easing,!1)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"properties",get:function(){var e=[];for(var t in this._currentKeyframe)e.push(t);return e}}]),e}(),zy=function(e){m(n,e);var t=_(n);function n(e,r,i,o,a,s){var u,l=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return E(this,n),(u=t.call(this,e,r,s.delay)).element=r,u.keyframes=i,u.preStyleProps=o,u.postStyleProps=a,u._stretchStartingKeyframe=l,u.timings={duration:s.duration,delay:s.delay,easing:s.easing},u}return T(n,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var e=this.keyframes,t=this.timings,n=t.delay,r=t.duration,i=t.easing;if(this._stretchStartingKeyframe&&n){var o=[],a=r+n,s=n/a,u=ay(e[0],!1);u.offset=0,o.push(u);var l=ay(e[0],!1);l.offset=By(s),o.push(l);for(var c=e.length-1,h=1;h<=c;h++){var f=ay(e[h],!1);f.offset=By((n+f.offset*r)/a),o.push(f)}r=a,n=0,i="",e=o}return Py(this.element,e,this.preStyleProps,this.postStyleProps,r,n,i,!0)}}]),n}(Hy);function By(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=Math.pow(10,t-1);return Math.round(e*n)/n}var Vy=function e(){E(this,e)},qy=function(e){m(n,e);var t=_(n);function n(){return E(this,n),t.apply(this,arguments)}return T(n,[{key:"normalizePropertyName",value:function(e,t){return my(e)}},{key:"normalizeStyleValue",value:function(e,t,n,r){var i="",o=n.toString().trim();if(Gy[t]&&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(e,":").concat(n))}return o+i}}]),n}(Vy),Gy=function(e){var t={};return e.forEach((function(e){return t[e]=!0})),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(","));function Qy(e,t,n,r,i,o,a,s,u,l,c,h,f){return{type:0,element:e,triggerName:t,isRemovalTransition:i,fromState:n,fromStyles:o,toState:r,toStyles:a,timelines:s,queriedElements:u,preStyleProps:l,postStyleProps:c,totalTime:h,errors:f}}var Wy={},Ky=function(){function e(t,n,r){E(this,e),this._triggerName=t,this.ast=n,this._stateStyles=r}return T(e,[{key:"match",value:function(e,t,n,r){return function(e,t,n,r,i){return e.some((function(e){return e(t,n,r,i)}))}(this.ast.matchers,e,t,n,r)}},{key:"buildStyles",value:function(e,t,n){var r=this._stateStyles["*"],i=this._stateStyles[e],o=r?r.buildStyles(t,n):{};return i?i.buildStyles(t,n):o}},{key:"build",value:function(e,t,n,r,i,o,a,s,u,l){var c=[],h=this.ast.options&&this.ast.options.params||Wy,f=this.buildStyles(n,a&&a.params||Wy,c),d=s&&s.params||Wy,v=this.buildStyles(r,d,c),p=new Set,y=new Map,m=new Map,g="void"===r,_={params:Object.assign(Object.assign({},h),d)},k=l?[]:Ly(e,t,this.ast.animation,i,o,f,v,_,u,c),b=0;if(k.forEach((function(e){b=Math.max(e.duration+e.delay,b)})),c.length)return Qy(t,this._triggerName,n,r,g,f,v,[],[],y,m,b,c);k.forEach((function(e){var n=e.element,r=Hp(y,n,{});e.preStyleProps.forEach((function(e){return r[e]=!0}));var i=Hp(m,n,{});e.postStyleProps.forEach((function(e){return i[e]=!0})),n!==t&&p.add(n)}));var w=py(p.values());return Qy(t,this._triggerName,n,r,g,f,v,k,w,y,m,b)}}]),e}(),Zy=function(){function e(t,n){E(this,e),this.styles=t,this.defaultParams=n}return T(e,[{key:"buildStyles",value:function(e,t){var n={},r=oy(this.defaultParams);return Object.keys(e).forEach((function(t){var n=e[t];null!=n&&(r[t]=n)})),this.styles.styles.forEach((function(e){if("string"!=typeof e){var i=e;Object.keys(i).forEach((function(e){var o=i[e];o.length>1&&(o=vy(o,r,t)),n[e]=o}))}})),n}}]),e}(),$y=function(){function e(t,n){var r=this;E(this,e),this.name=t,this.ast=n,this.transitionFactories=[],this.states={},n.states.forEach((function(e){r.states[e.name]=new Zy(e.style,e.options&&e.options.params||{})})),Yy(this.states,"true","1"),Yy(this.states,"false","0"),n.transitions.forEach((function(e){r.transitionFactories.push(new Ky(t,e,r.states))})),this.fallbackTransition=new Ky(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(e,t){return!0}],options:null,queryCount:0,depCount:0},this.states)}return T(e,[{key:"matchTransition",value:function(e,t,n,r){return this.transitionFactories.find((function(i){return i.match(e,t,n,r)}))||null}},{key:"matchStyles",value:function(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}},{key:"containsQueries",get:function(){return this.ast.queryCount>0}}]),e}();function Yy(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}var Jy=new Ny,Xy=function(){function e(t,n,r){E(this,e),this.bodyNode=t,this._driver=n,this._normalizer=r,this._animations={},this._playersById={},this.players=[]}return T(e,[{key:"register",value:function(e,t){var n=[],r=Ty(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[e]=r}},{key:"_buildPlayer",value:function(e,t,n){var r=e.element,i=Lp(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(r,i,e.duration,e.delay,e.easing,[],!0)}},{key:"create",value:function(e,t){var n,r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=[],a=this._animations[e],s=new Map;if(a?(n=Ly(this._driver,t,a,"ng-enter","ng-leave",{},{},i,Jy,o)).forEach((function(e){var t=Hp(s,e.element,{});e.postStyleProps.forEach((function(e){return t[e]=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: "+o.join("\n"));s.forEach((function(e,t){Object.keys(e).forEach((function(n){e[n]=r._driver.computeStyle(t,n,"*")}))}));var u=jp(n.map((function(e){var t=s.get(e.element);return r._buildPlayer(e,{},t)})));return this._playersById[e]=u,u.onDestroy((function(){return r.destroy(e)})),this.players.push(u),u}},{key:"destroy",value:function(e){var t=this._getPlayer(e);t.destroy(),delete this._playersById[e];var n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}},{key:"_getPlayer",value:function(e){var t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by "+e);return t}},{key:"listen",value:function(e,t,n,r){var i=Up(t,"","","");return Mp(this._getPlayer(e),n,i,r),function(){}}},{key:"command",value:function(e,t,n,r){if("register"!=n)if("create"!=n){var i=this._getPlayer(e);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(e)}}else this.create(e,t,r[0]||{});else this.register(e,r[0])}}]),e}(),em=[],tm={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},nm={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},rm=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";E(this,e),this.namespaceId=n;var r,i=t&&t.hasOwnProperty("value");if(this.value=null!=(r=i?t.value:t)?r:null,i){var o=oy(t);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}return T(e,[{key:"absorbOptions",value:function(e){var t=e.params;if(t){var n=this.options.params;Object.keys(t).forEach((function(e){null==n[e]&&(n[e]=t[e])}))}}},{key:"params",get:function(){return this.options.params}}]),e}(),im=new rm("void"),om=function(){function e(t,n,r){E(this,e),this.id=t,this.hostElement=n,this._engine=r,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,fm(n,this._hostClassName)}return T(e,[{key:"listen",value:function(e,t,n,r){var i,o=this;if(!this._triggers.hasOwnProperty(t))throw new Error('Unable to listen on the animation trigger event "'.concat(n,'" because the animation trigger "').concat(t,"\" doesn't exist!"));if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'.concat(t,'" 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(t,'" is not supported!'));var a=Hp(this._elementListeners,e,[]),s={name:t,phase:n,callback:r};a.push(s);var u=Hp(this._engine.statesByElement,e,{});return u.hasOwnProperty(t)||(fm(e,"ng-trigger"),fm(e,"ng-trigger-"+t),u[t]=im),function(){o._engine.afterFlush((function(){var e=a.indexOf(s);e>=0&&a.splice(e,1),o._triggers[t]||delete u[t]}))}}},{key:"register",value:function(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}},{key:"_getTrigger",value:function(e){var t=this._triggers[e];if(!t)throw new Error('The provided animation trigger "'.concat(e,'" has not been registered!'));return t}},{key:"trigger",value:function(e,t,n){var r=this,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=this._getTrigger(t),a=new sm(this.id,t,e),s=this._engine.statesByElement.get(e);s||(fm(e,"ng-trigger"),fm(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,s={}));var u=s[t],l=new rm(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&u&&l.absorbOptions(u.options),s[t]=l,u||(u=im),"void"===l.value||u.value!==l.value){var c=Hp(this._engine.playersByElement,e,[]);c.forEach((function(e){e.namespaceId==r.id&&e.triggerName==t&&e.queued&&e.destroy()}));var h=o.matchTransition(u.value,l.value,e,l.params),f=!1;if(!h){if(!i)return;h=o.fallbackTransition,f=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:h,fromState:u,toState:l,player:a,isFallbackTransition:f}),f||(fm(e,"ng-animate-queued"),a.onStart((function(){dm(e,"ng-animate-queued")}))),a.onDone((function(){var t=r.players.indexOf(a);t>=0&&r.players.splice(t,1);var n=r._engine.playersByElement.get(e);if(n){var i=n.indexOf(a);i>=0&&n.splice(i,1)}})),this.players.push(a),c.push(a),a}if(!function(e,t){var n=Object.keys(e),r=Object.keys(t);if(n.length!=r.length)return!1;for(var i=0;i=0){for(var r=!1,i=n;i>=0;i--)if(this.driver.containsElement(this._namespaceList[i].hostElement,t)){this._namespaceList.splice(i+1,0,e),r=!0;break}r||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}},{key:"register",value:function(e,t){var n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}},{key:"registerTrigger",value:function(e,t,n){var r=this._namespaceLookup[e];r&&r.register(t,n)&&this.totalAnimations++}},{key:"destroy",value:function(e,t){var n=this;if(e){var r=this._fetchNamespace(e);this.afterFlush((function(){n.namespacesByHostElement.delete(r.hostElement),delete n._namespaceLookup[e];var t=n._namespaceList.indexOf(r);t>=0&&n._namespaceList.splice(t,1)})),this.afterFlushAnimationsDone((function(){return r.destroy(t)}))}}},{key:"_fetchNamespace",value:function(e){return this._namespaceLookup[e]}},{key:"fetchNamespacesByElement",value:function(e){var t=new Set,n=this.statesByElement.get(e);if(n)for(var r=Object.keys(n),i=0;i=0&&this.collectedLeaveElements.splice(o,1)}if(e){var a=this._fetchNamespace(e);a&&a.insertNode(t,n)}r&&this.collectEnterElement(t)}}},{key:"collectEnterElement",value:function(e){this.collectedEnterElements.push(e)}},{key:"markElementAsDisabled",value:function(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),fm(e,"ng-animate-disabled")):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),dm(e,"ng-animate-disabled"))}},{key:"removeNode",value:function(e,t,n,r){if(um(t)){var i=e?this._fetchNamespace(e):null;if(i?i.removeNode(t,r):this.markElementAsRemoved(e,t,!1,r),n){var o=this.namespacesByHostElement.get(t);o&&o.id!==e&&o.removeNode(t,r)}}else this._onRemovalComplete(t,r)}},{key:"markElementAsRemoved",value:function(e,t,n,r){this.collectedLeaveElements.push(t),t.__ng_removed={namespaceId:e,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}}},{key:"listen",value:function(e,t,n,r,i){return um(t)?this._fetchNamespace(e).listen(t,n,r,i):function(){}}},{key:"_buildInstruction",value:function(e,t,n,r,i){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,r,e.fromState.options,e.toState.options,t,i)}},{key:"destroyInnerAnimations",value:function(e){var t=this,n=this.driver.query(e,".ng-trigger",!0);n.forEach((function(e){return t.destroyActiveAnimationsForElement(e)})),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,".ng-animating",!0)).forEach((function(e){return t.finishActiveQueriedAnimationOnElement(e)}))}},{key:"destroyActiveAnimationsForElement",value:function(e){var t=this.playersByElement.get(e);t&&t.forEach((function(e){e.queued?e.markedForDestroy=!0:e.destroy()}))}},{key:"finishActiveQueriedAnimationOnElement",value:function(e){var t=this.playersByQueriedElement.get(e);t&&t.forEach((function(e){return e.finish()}))}},{key:"whenRenderingDone",value:function(){var e=this;return new Promise((function(t){if(e.players.length)return jp(e.players).onDone((function(){return t()}));t()}))}},{key:"processLeaveNode",value:function(e){var t=this,n=e.__ng_removed;if(n&&n.setForRemoval){if(e.__ng_removed=tm,n.namespaceId){this.destroyInnerAnimations(e);var r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}this.driver.matchesElement(e,".ng-animate-disabled")&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach((function(e){t.markElementAsDisabled(e,!1)}))}},{key:"flush",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=[];if(this.newHostElements.size&&(this.newHostElements.forEach((function(t,n){return e._balanceNamespaceList(t,n)})),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var r=0;r=0;x--)this._namespaceList[x].drainQueuedTransitions(t).forEach((function(e){var t=e.player,o=e.element;if(C.push(t),n.collectedEnterElements.length){var c=o.__ng_removed;if(c&&c.setForMove)return void t.destroy()}var h=!f||!n.driver.containsElement(f,o),d=S.get(o),v=p.get(o),y=n._buildInstruction(e,r,v,d,h);if(y.errors&&y.errors.length)T.push(y);else{if(h)return t.onStart((function(){return cy(o,y.fromStyles)})),t.onDestroy((function(){return ly(o,y.toStyles)})),void i.push(t);if(e.isFallbackTransition)return t.onStart((function(){return cy(o,y.fromStyles)})),t.onDestroy((function(){return ly(o,y.toStyles)})),void i.push(t);y.timelines.forEach((function(e){return e.stretchStartingKeyframe=!0})),r.append(o,y.timelines),a.push({instruction:y,player:t,element:o}),y.queriedElements.forEach((function(e){return Hp(s,e,[]).push(t)})),y.preStyleProps.forEach((function(e,t){var n=Object.keys(e);if(n.length){var r=u.get(t);r||u.set(t,r=new Set),n.forEach((function(e){return r.add(e)}))}})),y.postStyleProps.forEach((function(e,t){var n=Object.keys(e),r=l.get(t);r||l.set(t,r=new Set),n.forEach((function(e){return r.add(e)}))}))}}));if(T.length){var A=[];T.forEach((function(e){A.push("@".concat(e.triggerName," has failed due to:\n")),e.errors.forEach((function(e){return A.push("- ".concat(e,"\n"))}))})),C.forEach((function(e){return e.destroy()})),this.reportError(A)}var I=new Map,R=new Map;a.forEach((function(e){var t=e.element;r.has(t)&&(R.set(t,t),n._beforeAnimationBuild(e.player.namespaceId,e.instruction,I))})),i.forEach((function(e){var t=e.element;n._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach((function(e){Hp(I,t,[]).push(e),e.destroy()}))}));var O=m.filter((function(e){return pm(e,u,l)})),P=new Map;cm(P,this.driver,_,l,"*").forEach((function(e){pm(e,u,l)&&O.push(e)}));var N=new Map;v.forEach((function(e,t){cm(N,n.driver,new Set(e),u,"!")})),O.forEach((function(e){var t=P.get(e),n=N.get(e);P.set(e,Object.assign(Object.assign({},t),n))}));var D=[],j=[],L={};a.forEach((function(e){var t=e.element,a=e.player,s=e.instruction;if(r.has(t)){if(h.has(t))return a.onDestroy((function(){return ly(t,s.toStyles)})),a.disabled=!0,a.overrideTotalTime(s.totalTime),void i.push(a);var u=L;if(R.size>1){for(var l=t,c=[];l=l.parentNode;){var f=R.get(l);if(f){u=f;break}c.push(l)}c.forEach((function(e){return R.set(e,u)}))}var d=n._buildAnimation(a.namespaceId,s,I,o,N,P);if(a.setRealPlayer(d),u===L)D.push(a);else{var v=n.playersByElement.get(u);v&&v.length&&(a.parentPlayer=jp(v)),i.push(a)}}else cy(t,s.fromStyles),a.onDestroy((function(){return ly(t,s.toStyles)})),j.push(a),h.has(t)&&i.push(a)})),j.forEach((function(e){var t=o.get(e.element);if(t&&t.length){var n=jp(t);e.setRealPlayer(n)}})),i.forEach((function(e){e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()}));for(var M=0;M0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new Pp(e.duration,e.delay)}},{key:"queuedPlayers",get:function(){var e=[];return this._namespaceList.forEach((function(t){t.players.forEach((function(t){t.queued&&e.push(t)}))})),e}}]),e}(),sm=function(){function e(t,n,r){E(this,e),this.namespaceId=t,this.triggerName=n,this.element=r,this._player=new Pp,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return T(e,[{key:"setRealPlayer",value:function(e){var t=this;this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach((function(n){t._queuedCallbacks[n].forEach((function(t){return Mp(e,n,void 0,t)}))})),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(e){this.totalTime=e}},{key:"syncPlayerEvents",value:function(e){var t=this,n=this._player;n.triggerCallback&&e.onStart((function(){return n.triggerCallback("start")})),e.onDone((function(){return t.finish()})),e.onDestroy((function(){return t.destroy()}))}},{key:"_queueEvent",value:function(e,t){Hp(this._queuedCallbacks,e,[]).push(t)}},{key:"onDone",value:function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}},{key:"onStart",value:function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}},{key:"onDestroy",value:function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}},{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(e){this.queued||this._player.setPosition(e)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(e){var t=this._player;t.triggerCallback&&t.triggerCallback(e)}}]),e}();function um(e){return e&&1===e.nodeType}function lm(e,t){var n=e.style.display;return e.style.display=null!=t?t:"none",n}function cm(e,t,n,r,i){var o=[];n.forEach((function(e){return o.push(lm(e))}));var a=[];r.forEach((function(n,r){var o={};n.forEach((function(e){var n=o[e]=t.computeStyle(r,e,i);n&&0!=n.length||(r.__ng_removed=nm,a.push(r))})),e.set(r,o)}));var s=0;return n.forEach((function(e){return lm(e,o[s++])})),a}function hm(e,t){var n=new Map;if(e.forEach((function(e){return n.set(e,[])})),0==t.length)return n;var r=new Set(t),i=new Map;return t.forEach((function(e){var t=function e(t){if(!t)return 1;var o=i.get(t);if(o)return o;var a=t.parentNode;return o=n.has(a)?a:r.has(a)?1:e(a),i.set(t,o),o}(e);1!==t&&n.get(t).push(e)})),n}function fm(e,t){if(e.classList)e.classList.add(t);else{var n=e.$$classes;n||(n=e.$$classes={}),n[t]=!0}}function dm(e,t){if(e.classList)e.classList.remove(t);else{var n=e.$$classes;n&&delete n[t]}}function vm(e,t,n){jp(n).onDone((function(){return e.processLeaveNode(t)}))}function pm(e,t,n){var r=n.get(e);if(!r)return!1;var i=t.get(e);return i?r.forEach((function(e){return i.add(e)})):t.set(e,r),n.delete(e),!0}var ym=function(){function e(t,n,r){var i=this;E(this,e),this.bodyNode=t,this._driver=n,this._triggerCache={},this.onRemovalComplete=function(e,t){},this._transitionEngine=new am(t,n,r),this._timelineEngine=new Xy(t,n,r),this._transitionEngine.onRemovalComplete=function(e,t){return i.onRemovalComplete(e,t)}}return T(e,[{key:"registerTrigger",value:function(e,t,n,r,i){var o=e+"-"+r,a=this._triggerCache[o];if(!a){var s=[],u=Ty(this._driver,i,s);if(s.length)throw new Error('The animation trigger "'.concat(r,'" has failed to build due to the following errors:\n - ').concat(s.join("\n - ")));a=function(e,t){return new $y(e,t)}(r,u),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,r,a)}},{key:"register",value:function(e,t){this._transitionEngine.register(e,t)}},{key:"destroy",value:function(e,t){this._transitionEngine.destroy(e,t)}},{key:"onInsert",value:function(e,t,n,r){this._transitionEngine.insertNode(e,t,n,r)}},{key:"onRemove",value:function(e,t,n,r){this._transitionEngine.removeNode(e,t,r||!1,n)}},{key:"disableAnimations",value:function(e,t){this._transitionEngine.markElementAsDisabled(e,t)}},{key:"process",value:function(e,t,n,r){if("@"==n.charAt(0)){var i=l(zp(n),2),o=i[0],a=i[1];this._timelineEngine.command(o,t,a,r)}else this._transitionEngine.trigger(e,t,n,r)}},{key:"listen",value:function(e,t,n,r,i){if("@"==n.charAt(0)){var o=l(zp(n),2),a=o[0],s=o[1];return this._timelineEngine.listen(a,t,s,i)}return this._transitionEngine.listen(e,t,n,r,i)}},{key:"flush",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(e)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}}]),e}();function mm(e,t){var n=null,r=null;return Array.isArray(t)&&t.length?(n=_m(t[0]),t.length>1&&(r=_m(t[t.length-1]))):t&&(n=_m(t)),n||r?new gm(e,n,r):null}var gm=function(){var e=function(){function e(t,n,r){E(this,e),this._element=t,this._startStyles=n,this._endStyles=r,this._state=0;var i=e.initialStylesByElement.get(t);i||e.initialStylesByElement.set(t,i={}),this._initialStyles=i}return T(e,[{key:"start",value:function(){this._state<1&&(this._startStyles&&ly(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(ly(this._element,this._initialStyles),this._endStyles&&(ly(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(cy(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(cy(this._element,this._endStyles),this._endStyles=null),ly(this._element,this._initialStyles),this._state=3)}}]),e}();return e.initialStylesByElement=new WeakMap,e}();function _m(e){for(var t=null,n=Object.keys(e),r=0;r=this._delay&&n>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),Cm(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){var e,t,n,r;this._destroyed||(this._destroyed=!0,this.finish(),e=this._element,t=this._name,n=xm(e,"").split(","),(r=Em(n,t))>=0&&(n.splice(r,1),Tm(e,"",n.join(","))))}}]),e}();function wm(e,t,n){Tm(e,"PlayState",n,Sm(e,t))}function Sm(e,t){var n=xm(e,"");return n.indexOf(",")>0?Em(n.split(","),t):Em([n],t)}function Em(e,t){for(var n=0;n=0)return n;return-1}function Cm(e,t,n){n?e.removeEventListener("animationend",t):e.addEventListener("animationend",t)}function Tm(e,t,n,r){var i="animation"+t;if(null!=r){var o=e.style[i];if(o.length){var a=o.split(",");a[r]=n,n=a.join(",")}}e.style[i]=n}function xm(e,t){return e.style["animation"+t]}var Am=function(){function e(t,n,r,i,o,a,s,u){E(this,e),this.element=t,this.keyframes=n,this.animationName=r,this._duration=i,this._delay=o,this._finalStyles=s,this._specialStyles=u,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=a||"linear",this.totalTime=i+o,this._buildStyler()}return T(e,[{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{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(e){return e()})),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach((function(e){return e()})),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach((function(e){return e()})),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(e){this._styler.setPosition(e)}},{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 e=this;this._styler=new bm(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",(function(){return e.finish()}))}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach((function(e){return e()})),t.length=0}},{key:"beforeDestroy",value:function(){var e=this;this.init();var t={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach((function(r){"offset"!=r&&(t[r]=n?e._finalStyles[r]:by(e.element,r))}))}this.currentSnapshot=t}}]),e}(),Im=function(e){m(n,e);var t=_(n);function n(e,r){var i;return E(this,n),(i=t.call(this)).element=e,i._startingStyles={},i.__initialized=!1,i._styles=Jp(r),i}return T(n,[{key:"init",value:function(){var e=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach((function(t){e._startingStyles[t]=e.element.style[t]})),y(S(n.prototype),"init",this).call(this))}},{key:"play",value:function(){var e=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach((function(t){return e.element.style.setProperty(t,e._styles[t])})),y(S(n.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var e=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach((function(t){var n=e._startingStyles[t];n?e.element.style.setProperty(t,n):e.element.style.removeProperty(t)})),this._startingStyles=null,y(S(n.prototype),"destroy",this).call(this))}}]),n}(Pp),Rm=function(){function e(){E(this,e),this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}return T(e,[{key:"validateStyleProperty",value:function(e){return Kp(e)}},{key:"matchesElement",value:function(e,t){return Zp(e,t)}},{key:"containsElement",value:function(e,t){return $p(e,t)}},{key:"query",value:function(e,t,n){return Yp(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"buildKeyframeElement",value:function(e,t,n){n=n.map((function(e){return Jp(e)}));var r="@keyframes ".concat(t," {\n"),i="";n.forEach((function(e){i=" ";var t=parseFloat(e.offset);r+="".concat(i).concat(100*t,"% {\n"),i+=" ",Object.keys(e).forEach((function(t){var n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(r+="".concat(i,"animation-timing-function: ").concat(n,";\n")));default:return void(r+="".concat(i).concat(t,": ").concat(n,";\n"))}})),r+=i+"}\n"})),r+="}\n";var o=document.createElement("style");return o.textContent=r,o}},{key:"animate",value:function(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=arguments.length>6?arguments[6]:void 0;a&&this._notifyFaultyScrubber();var s=o.filter((function(e){return e instanceof Am})),u={};gy(n,r)&&s.forEach((function(e){var t=e.currentSnapshot;Object.keys(t).forEach((function(e){return u[e]=t[e]}))}));var l=function(e){var t={};return e&&(Array.isArray(e)?e:[e]).forEach((function(e){Object.keys(e).forEach((function(n){"offset"!=n&&"easing"!=n&&(t[n]=e[n])}))})),t}(t=_y(e,t,u));if(0==n)return new Im(e,l);var c="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(e,c,t);document.querySelector("head").appendChild(h);var f=mm(e,t),d=new Am(e,t,c,n,r,i,l,f);return d.onDestroy((function(){var e;(e=h).parentNode.removeChild(e)})),d}},{key:"_notifyFaultyScrubber",value:function(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}]),e}(),Om=function(){function e(t,n,r,i){E(this,e),this.element=t,this.keyframes=n,this.options=r,this._specialStyles=i,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 T(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(e){return e()})),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var e=this;if(!this._initialized){this._initialized=!0;var t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",(function(){return e._onFinish()}))}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(e,t,n){return e.animate(t,n)}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach((function(e){return e()})),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(e){return e()})),this._onDestroyFns=[])}},{key:"setPosition",value:function(e){this.domPlayer.currentTime=e*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"beforeDestroy",value:function(){var e=this,t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach((function(n){"offset"!=n&&(t[n]=e._finished?e._finalKeyframe[n]:by(e.element,n))})),this.currentSnapshot=t}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach((function(e){return e()})),t.length=0}},{key:"totalTime",get:function(){return this._delay+this._duration}}]),e}(),Pm=function(){function e(){E(this,e),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Nm().toString()),this._cssKeyframesDriver=new Rm}return T(e,[{key:"validateStyleProperty",value:function(e){return Kp(e)}},{key:"matchesElement",value:function(e,t){return Zp(e,t)}},{key:"containsElement",value:function(e,t){return $p(e,t)}},{key:"query",value:function(e,t,n){return Yp(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"overrideWebAnimationsSupport",value:function(e){this._isNativeImpl=e}},{key:"animate",value:function(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=arguments.length>6?arguments[6]:void 0;if(!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,r,i,o);var s={duration:n,delay:r,fill:0==r?"both":"forwards"};i&&(s.easing=i);var u={},l=o.filter((function(e){return e instanceof Om}));gy(n,r)&&l.forEach((function(e){var t=e.currentSnapshot;Object.keys(t).forEach((function(e){return u[e]=t[e]}))}));var c=mm(e,t=_y(e,t=t.map((function(e){return ay(e,!1)})),u));return new Om(e,t,s,c)}}]),e}();function Nm(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var Dm,jm=((Dm=function(e){m(n,e);var t=_(n);function n(e,r){var i;return E(this,n),(i=t.call(this))._nextAnimationId=0,i._renderer=e.createRenderer(r.body,{id:"0",encapsulation:at.None,styles:[],data:{animation:[]}}),i}return T(n,[{key:"build",value:function(e){var t=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(e)?Ip(e):e;return Fm(this._renderer,null,t,"register",[n]),new Lm(t,this._renderer)}}]),n}(Ap)).\u0275fac=function(e){return new(e||Dm)(Ft(Ms),Ft(Gl))},Dm.\u0275prov=Pe({token:Dm,factory:Dm.\u0275fac}),Dm),Lm=function(e){m(n,e);var t=_(n);function n(e,r){var i;return E(this,n),(i=t.call(this))._id=e,i._renderer=r,i}return T(n,[{key:"create",value:function(e,t){return new Mm(this._id,e,t||{},this._renderer)}}]),n}(function(){return function e(){E(this,e)}}()),Mm=function(){function e(t,n,r,i){E(this,e),this.id=t,this.element=n,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",r)}return T(e,[{key:"_listen",value:function(e,t){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(e),t)}},{key:"_command",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=0&&e3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,r)}},{key:"removeChild",value:function(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}},{key:"selectRootElement",value:function(e,t){return this.delegate.selectRootElement(e,t)}},{key:"parentNode",value:function(e){return this.delegate.parentNode(e)}},{key:"nextSibling",value:function(e){return this.delegate.nextSibling(e)}},{key:"setAttribute",value:function(e,t,n,r){this.delegate.setAttribute(e,t,n,r)}},{key:"removeAttribute",value:function(e,t,n){this.delegate.removeAttribute(e,t,n)}},{key:"addClass",value:function(e,t){this.delegate.addClass(e,t)}},{key:"removeClass",value:function(e,t){this.delegate.removeClass(e,t)}},{key:"setStyle",value:function(e,t,n,r){this.delegate.setStyle(e,t,n,r)}},{key:"removeStyle",value:function(e,t,n){this.delegate.removeStyle(e,t,n)}},{key:"setProperty",value:function(e,t,n){"@"==t.charAt(0)&&"@.disabled"==t?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}},{key:"setValue",value:function(e,t){this.delegate.setValue(e,t)}},{key:"listen",value:function(e,t,n){return this.delegate.listen(e,t,n)}},{key:"disableAnimations",value:function(e,t){this.engine.disableAnimations(e,t)}},{key:"data",get:function(){return this.delegate.data}}]),e}(),Gm=function(e){m(n,e);var t=_(n);function n(e,r,i,o){var a;return E(this,n),(a=t.call(this,r,i,o)).factory=e,a.namespaceId=r,a}return T(n,[{key:"setProperty",value:function(e,t,n){"@"==t.charAt(0)?"."==t.charAt(1)&&"@.disabled"==t?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)}},{key:"listen",value:function(e,t,n){var r,i,o=this;if("@"==t.charAt(0)){var a,s=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e),u=t.substr(1),c="";return"@"!=u.charAt(0)&&(i=(r=u).indexOf("."),u=(a=l([r.substring(0,i),r.substr(i+1)],2))[0],c=a[1]),this.engine.listen(this.namespaceId,s,u,c,(function(e){o.factory.scheduleListenerCallback(e._data||-1,n,e)}))}return this.delegate.listen(e,t,n)}}]),n}(qm),Qm=((Hm=function(e){m(n,e);var t=_(n);function n(e,r,i){return E(this,n),t.call(this,e.body,r,i)}return n}(ym)).\u0275fac=function(e){return new(e||Hm)(Ft(Gl),Ft(ty),Ft(Vy))},Hm.\u0275prov=Pe({token:Hm,factory:Hm.\u0275fac}),Hm),Wm=new ze("AnimationModuleType"),Km=[{provide:ty,useFactory:function(){return"function"==typeof Nm()?new Pm:new Rm}},{provide:Wm,useValue:"BrowserAnimations"},{provide:Ap,useClass:jm},{provide:Vy,useFactory:function(){return new qy}},{provide:ym,useClass:Qm},{provide:Ms,useFactory:function(e,t,n){return new Vm(e,t,n)},deps:[Yc,ym,dl]}],Zm=((zm=function e(){E(this,e)}).\u0275mod=bt({type:zm}),zm.\u0275inj=Ne({factory:function(e){return new(e||zm)},providers:Km,imports:[lh]}),zm),$m=new zs("10.2.0"),Ym=new ze("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),Jm=((Bm=function(){function e(t,n,r){E(this,e),this._hasDoneGlobalChecks=!1,this._document=r,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=n,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}return T(e,[{key:"_getDocument",value:function(){var e=this._document||document;return"object"==typeof e&&e?e:null}},{key:"_getWindow",value:function(){var e=this._getDocument(),t=(null==e?void 0:e.defaultView)||window;return"object"==typeof t&&t?t:null}},{key:"_checksAreEnabled",value:function(){return Bn()&&!this._isTestEnv()}},{key:"_isTestEnv",value:function(){var e=this._getWindow();return e&&(e.__karma__||e.jasmine)}},{key:"_checkDoctypeIsDefined",value:function(){var e=this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype),t=this._getDocument();e&&t&&!t.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(){var e=!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme,t=this._getDocument();if(!e&&t&&t.body&&"function"==typeof getComputedStyle){var n=t.createElement("div");n.classList.add("mat-theme-loaded-marker"),t.body.appendChild(n);var r=getComputedStyle(n);r&&"none"!==r.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"),t.body.removeChild(n)}}},{key:"_checkCdkVersionMatch",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&$m.full!==xp.full&&console.warn("The Angular Material version ("+$m.full+") does not match the Angular CDK version ("+xp.full+").\nPlease ensure the versions of these two packages exactly match.")}}]),e}()).\u0275mod=bt({type:Bm}),Bm.\u0275inj=Ne({factory:function(e){return new(e||Bm)(Ft(Sp),Ft(Ym,8),Ft(Gl,8))},imports:[[Tp],Tp]}),Bm);try{"undefined"!=typeof Intl}catch(i_){!1}var Xm,eg,tg,ng,rg=((Xm=function e(){E(this,e)}).\u0275mod=bt({type:Xm}),Xm.\u0275inj=Ne({factory:function(e){return new(e||Xm)},imports:[[Jm],Jm]}),Xm),ig=function(){function e(t,n,r){E(this,e),this._renderer=t,this.element=n,this.config=r,this.state=3}return T(e,[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}]),e}(),og={enterDuration:450,exitDuration:400},ag=cp({passive:!0}),sg=["mousedown","touchstart"],ug=["mouseup","mouseleave","touchend","touchcancel"],lg=function(){function e(t,n,r,i){E(this,e),this._target=t,this._ngZone=n,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,i.isBrowser&&(this._containerElement=dp(r))}return T(e,[{key:"fadeInRipple",value:function(e,t){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({},og),r.animation);r.centered&&(e=i.left+i.width/2,t=i.top+i.height/2);var a=r.radius||function(e,t,n){var r=Math.max(Math.abs(e-n.left),Math.abs(e-n.right)),i=Math.max(Math.abs(t-n.top),Math.abs(t-n.bottom));return Math.sqrt(r*r+i*i)}(e,t,i),s=e-i.left,u=t-i.top,l=o.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=s-a+"px",c.style.top=u-a+"px",c.style.height=2*a+"px",c.style.width=2*a+"px",null!=r.color&&(c.style.backgroundColor=r.color),c.style.transitionDuration=l+"ms",this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";var h=new ig(this,c,r);return h.state=0,this._activeRipples.add(h),r.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone((function(){var e=h===n._mostRecentTransientRipple;h.state=1,r.persistent||e&&n._isPointerDown||h.fadeOut()}),l),h}},{key:"fadeOutRipple",value:function(e){var t=this._activeRipples.delete(e);if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),t){var n=e.element,r=Object.assign(Object.assign({},og),e.config.animation);n.style.transitionDuration=r.exitDuration+"ms",n.style.opacity="0",e.state=2,this._runTimeoutOutsideZone((function(){e.state=3,n.parentNode.removeChild(n)}),r.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach((function(e){return e.fadeOut()}))}},{key:"setupTriggerEvents",value:function(e){var t=dp(e);t&&t!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=t,this._registerEvents(sg))}},{key:"handleEvent",value:function(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(ug),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(e){var t=vp(e),n=this._lastTouchStartEvent&&Date.now()1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular((function(){return setTimeout(e,t)}))}},{key:"_registerEvents",value:function(e){var t=this;this._ngZone.runOutsideAngular((function(){e.forEach((function(e){t._triggerElement.addEventListener(e,t,ag)}))}))}},{key:"_removeTriggerEvents",value:function(){var e=this;this._triggerElement&&(sg.forEach((function(t){e._triggerElement.removeEventListener(t,e,ag)})),this._pointerUpEventsRegistered&&ug.forEach((function(t){e._triggerElement.removeEventListener(t,e,ag)})))}}]),e}(),cg=new ze("mat-ripple-global-options"),hg=((tg=function(){function e(t,n,r,i,o){E(this,e),this._elementRef=t,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=i||{},this._rippleRenderer=new lg(this,n,t,r)}return T(e,[{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=e,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}},{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}}]),e}()).\u0275fac=function(e){return new(e||tg)(pa(Ls),pa(dl),pa(up),pa(cg,8),pa(Wm,8))},tg.\u0275dir=St({type:tg,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&Oa("mat-ripple-unbounded",t.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"]}),tg),fg=((eg=function e(){E(this,e)}).\u0275mod=bt({type:eg}),eg.\u0275inj=Ne({factory:function(e){return new(e||eg)},imports:[[Jm,lp],Jm]}),eg),dg=["*"],vg=".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",pg=new ze("MAT_GRID_LIST"),yg=((ng=function(){function e(t,n){E(this,e),this._element=t,this._gridList=n,this._rowspan=1,this._colspan=1}return T(e,[{key:"_setStyle",value:function(e,t){this._element.nativeElement.style[e]=t}},{key:"rowspan",get:function(){return this._rowspan},set:function(e){this._rowspan=Math.round(fp(e))}},{key:"colspan",get:function(){return this._colspan},set:function(e){this._colspan=Math.round(fp(e))}}]),e}()).\u0275fac=function(e){return new(e||ng)(pa(Ls),pa(pg,8))},ng.\u0275cmp=mt({type:ng,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(e,t){2&e&&va("rowspan",t.rowspan)("colspan",t.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:dg,decls:2,vars:0,consts:[[1,"mat-figure"]],template:function(e,t){1&e&&(Ta(),ga(0,"figure",0),xa(1),_a())},styles:[vg],encapsulation:2,changeDetection:0}),ng),mg=function(){function e(){E(this,e),this.columnIndex=0,this.rowIndex=0}return T(e,[{key:"update",value:function(e,t){var n=this;this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(e),this.tracker.fill(0,0,this.tracker.length),this.positions=t.map((function(e){return n._trackTile(e)}))}},{key:"_trackTile",value:function(e){var t=this._findMatchingGap(e.colspan);return this._markTilePosition(t,e),this.columnIndex=t+e.colspan,new gg(this.rowIndex,t)}},{key:"_findMatchingGap",value:function(e){var t=-1,n=-1;do{this.columnIndex+e>this.tracker.length?(this._nextRow(),t=this.tracker.indexOf(0,this.columnIndex),n=this._findGapEndIndex(t)):-1!=(t=this.tracker.indexOf(0,this.columnIndex))?(n=this._findGapEndIndex(t),this.columnIndex=t+1):(this._nextRow(),t=this.tracker.indexOf(0,this.columnIndex),n=this._findGapEndIndex(t))}while(n-t1?this.rowCount+e-1:this.rowCount}}]),e}(),gg=function e(t,n){E(this,e),this.row=t,this.col=n},_g=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/,kg=function(){function e(){E(this,e),this._rows=0,this._rowspan=0}return T(e,[{key:"init",value:function(e,t,n,r){this._gutterSize=Cg(e),this._rows=t.rowCount,this._rowspan=t.rowspan,this._cols=n,this._direction=r}},{key:"getBaseTileSize",value:function(e,t){return"(".concat(e,"% - (").concat(this._gutterSize," * ").concat(t,"))")}},{key:"getTilePosition",value:function(e,t){return 0===t?"0":Eg("(".concat(e," + ").concat(this._gutterSize,") * ").concat(t))}},{key:"getTileSize",value:function(e,t){return"(".concat(e," * ").concat(t,") + (").concat(t-1," * ").concat(this._gutterSize,")")}},{key:"setStyle",value:function(e,t,n){var r=100/this._cols,i=(this._cols-1)/this._cols;this.setColStyles(e,n,r,i),this.setRowStyles(e,t,r,i)}},{key:"setColStyles",value:function(e,t,n,r){var i=this.getBaseTileSize(n,r);e._setStyle("rtl"===this._direction?"right":"left",this.getTilePosition(i,t)),e._setStyle("width",Eg(this.getTileSize(i,e.colspan)))}},{key:"getGutterSpan",value:function(){return"".concat(this._gutterSize," * (").concat(this._rowspan," - 1)")}},{key:"getTileSpan",value:function(e){return"".concat(this._rowspan," * ").concat(this.getTileSize(e,1))}},{key:"getComputedHeight",value:function(){return null}}]),e}(),bg=function(e){m(n,e);var t=_(n);function n(e){var r;return E(this,n),(r=t.call(this)).fixedRowHeight=e,r}return T(n,[{key:"init",value:function(e,t,r,i){y(S(n.prototype),"init",this).call(this,e,t,r,i),this.fixedRowHeight=Cg(this.fixedRowHeight),_g.test(this.fixedRowHeight)}},{key:"setRowStyles",value:function(e,t){e._setStyle("top",this.getTilePosition(this.fixedRowHeight,t)),e._setStyle("height",Eg(this.getTileSize(this.fixedRowHeight,e.rowspan)))}},{key:"getComputedHeight",value:function(){return["height",Eg("".concat(this.getTileSpan(this.fixedRowHeight)," + ").concat(this.getGutterSpan()))]}},{key:"reset",value:function(e){e._setListStyle(["height",null]),e._tiles&&e._tiles.forEach((function(e){e._setStyle("top",null),e._setStyle("height",null)}))}}]),n}(kg),wg=function(e){m(n,e);var t=_(n);function n(e){var r;return E(this,n),(r=t.call(this))._parseRatio(e),r}return T(n,[{key:"setRowStyles",value:function(e,t,n,r){this.baseTileHeight=this.getBaseTileSize(n/this.rowHeightRatio,r),e._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,t)),e._setStyle("paddingTop",Eg(this.getTileSize(this.baseTileHeight,e.rowspan)))}},{key:"getComputedHeight",value:function(){return["paddingBottom",Eg("".concat(this.getTileSpan(this.baseTileHeight)," + ").concat(this.getGutterSpan()))]}},{key:"reset",value:function(e){e._setListStyle(["paddingBottom",null]),e._tiles.forEach((function(e){e._setStyle("marginTop",null),e._setStyle("paddingTop",null)}))}},{key:"_parseRatio",value:function(e){var t=e.split(":");this.rowHeightRatio=parseFloat(t[0])/parseFloat(t[1])}}]),n}(kg),Sg=function(e){m(n,e);var t=_(n);function n(){return E(this,n),t.apply(this,arguments)}return T(n,[{key:"setRowStyles",value:function(e,t){var n=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);e._setStyle("top",this.getTilePosition(n,t)),e._setStyle("height",Eg(this.getTileSize(n,e.rowspan)))}},{key:"reset",value:function(e){e._tiles&&e._tiles.forEach((function(e){e._setStyle("top",null),e._setStyle("height",null)}))}}]),n}(kg);function Eg(e){return"calc(".concat(e,")")}function Cg(e){return e.match(/([A-Za-z%]+)$/)?e:e+"px"}var Tg,xg,Ag,Ig,Rg,Og,Pg,Ng,Dg,jg,Lg,Mg,Fg=((xg=function(){function e(t,n){E(this,e),this._element=t,this._dir=n,this._gutter="1px"}return T(e,[{key:"ngOnInit",value:function(){this._checkCols(),this._checkRowHeight()}},{key:"ngAfterContentChecked",value:function(){this._layoutTiles()}},{key:"_checkCols",value:function(){}},{key:"_checkRowHeight",value:function(){this._rowHeight||this._setTileStyler("1:1")}},{key:"_setTileStyler",value:function(e){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===e?new Sg:e&&e.indexOf(":")>-1?new wg(e):new bg(e)}},{key:"_layoutTiles",value:function(){var e=this;this._tileCoordinator||(this._tileCoordinator=new mg);var t=this._tileCoordinator,n=this._tiles.filter((function(t){return!t._gridList||t._gridList===e})),r=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,n),this._tileStyler.init(this.gutterSize,t,this.cols,r),n.forEach((function(n,r){var i=t.positions[r];e._tileStyler.setStyle(n,i.row,i.col)})),this._setListStyle(this._tileStyler.getComputedHeight())}},{key:"_setListStyle",value:function(e){e&&(this._element.nativeElement.style[e[0]]=e[1])}},{key:"cols",get:function(){return this._cols},set:function(e){this._cols=Math.max(1,Math.round(fp(e)))}},{key:"gutterSize",get:function(){return this._gutter},set:function(e){this._gutter=""+(null==e?"":e)}},{key:"rowHeight",get:function(){return this._rowHeight},set:function(e){var t=""+(null==e?"":e);t!==this._rowHeight&&(this._rowHeight=t,this._setTileStyler(this._rowHeight))}}]),e}()).\u0275fac=function(e){return new(e||xg)(pa(Ls),pa(Cp,8))},xg.\u0275cmp=mt({type:xg,selectors:[["mat-grid-list"]],contentQueries:function(e,t,n){var r,i,o;1&e&&(i=n,o=yg,function(e,t,n,r,i,o,a,s){e.firstCreatePass&&(qu(e,new Du(n,!0,!1,void 0),a.index),function(e,t){var n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(e,s)),Vu(e,t)}(hn(),cn(),o,0,0,0,fn(),i)),2&e&&Hu(r=Bu())&&(t._tiles=r)},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(e,t){2&e&&va("cols",t.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[Is([{provide:pg,useExisting:xg}])],ngContentSelectors:dg,decls:2,vars:0,template:function(e,t){1&e&&(Ta(),ga(0,"div"),xa(1),_a())},styles:[vg],encapsulation:2,changeDetection:0}),xg),Ug=((Tg=function e(){E(this,e)}).\u0275mod=bt({type:Tg}),Tg.\u0275inj=Ne({factory:function(e){return new(e||Tg)},imports:[[rg,Jm],rg,Jm]}),Tg),Hg=["metaTitleRef"],zg=["metaDescriptionRef"],Bg=[{path:"",component:(Og=function(){function e(t,n){E(this,e),this.localeId=t,this.seoService=n}return T(e,[{key:"ngOnInit",value:function(){this.setColumns(window.innerWidth)}},{key:"ngAfterViewInit",value:function(){var e="https://teacapps.de/locale/"+this.localeId+"/";"en-US"==this.localeId&&(e="https://teacapps.de/"),this.seoService.updateMetaData(e,this.metaTitleRef.nativeElement.innerText,this.metaDescriptionRef.nativeElement.innerText)}},{key:"onResize",value:function(e){this.setColumns(e.target.innerWidth)}},{key:"setColumns",value:function(e){this.colums=e<260?1:e<450?2:e<670?3:e<1050?4:5}}]),e}(),Og.\u0275fac=function(e){return new(e||Og)(pa(tl),pa(rp))},Og.\u0275cmp=mt({type:Og,selectors:[["app-home"]],viewQuery:function(e,t){var n;1&e&&(zu(Hg,!0),zu(zg,!0)),2&e&&(Hu(n=Bu())&&(t.metaTitleRef=n.first),Hu(n=Bu())&&(t.metaDescriptionRef=n.first))},decls:29,vars:1,consts:function(){return[[1,"metadata"],["metaTitleRef",""],"TeaCapps | Mobile apps",["metaDescriptionRef",""],"We develop mobile apps.",["id","apps-grid",1,"container"],["rowHeight","140",3,"cols","resize"],["href","https://qrbot.net","target","_blank"],["src","assets/app-icons/qrbot.svg",1,"icon"],["href","https://play.google.com/store/apps/details?id=com.teacapps.barcodescanner","target","_blank"],["src","assets/app-icons/barcode.svg",1,"icon"],["href","https://namekeeper.info","target","_blank"],["src","assets/app-icons/namekeeper.svg",1,"icon"],["href","https://wifiqrcode.com","target","_blank"],["src","assets/app-icons/wifiqrcode.svg",1,"icon"],["href","https://misterpushup.com","target","_blank"],["src","assets/app-icons/misterpushup.svg",1,"icon"],[1,"container"],"About us","As a German software company founded in 2011 we publish apps for Android and iOS."]},template:function(e,t){1&e&&(ga(0,"div",0),ga(1,"div",null,1),bs(3,2),_a(),ga(4,"div",null,3),bs(6,4),_a(),_a(),ga(7,"div",5),ga(8,"mat-grid-list",6),wa("resize",(function(e){return t.onResize(e)}),!1,ni),ga(9,"mat-grid-tile"),ga(10,"a",7),ka(11,"img",8),_a(),_a(),ga(12,"mat-grid-tile"),ga(13,"a",9),ka(14,"img",10),_a(),_a(),ga(15,"mat-grid-tile"),ga(16,"a",11),ka(17,"img",12),_a(),_a(),ga(18,"mat-grid-tile"),ga(19,"a",13),ka(20,"img",14),_a(),_a(),ga(21,"mat-grid-tile"),ga(22,"a",15),ka(23,"img",16),_a(),_a(),_a(),_a(),ga(24,"div",17),ga(25,"h1"),bs(26,18),_a(),ga(27,"p"),bs(28,19),_a(),_a()),2&e&&(Wi(8),ya("cols",t.colums))},directives:[Fg,yg],styles:["#apps-grid[_ngcontent-%COMP%]{background-color:#575b64;padding-top:2rem;padding-bottom:2rem;z-index:0}img.icon[_ngcontent-%COMP%]{width:100px;border-radius:20%;box-shadow:0 0 6px #333}"]}),Og)},{path:"imprint",component:(Rg=function(){function e(t,n){E(this,e),this.localeId=t,this.seoService=n}return T(e,[{key:"ngOnInit",value:function(){var e="https://teacapps.de/locale/"+this.localeId+"/imprint";"en-US"==this.localeId&&(e="https://teacapps.de/imprint"),this.seoService.updateMetaData(e,"Imprint","Imprint teacapps.de")}}]),e}(),Rg.\u0275fac=function(e){return new(e||Rg)(pa(tl),pa(rp))},Rg.\u0275cmp=mt({type:Rg,selectors:[["app-imprint"]],decls:39,vars:0,consts:[[1,"container"]],template:function(e,t){1&e&&(ga(0,"div",0),ga(1,"h1"),La(2,"Imprint"),_a(),ga(3,"p"),La(4,"TeaCapps GmbH"),ka(5,"br"),La(6," Tal\xe4ckerstr. 42"),ka(7,"br"),La(8," 74182 Obersulm "),_a(),ga(9,"p"),La(10," Markus W\xf6rz"),ka(11,"br"),La(12," Christian W\xf6rz "),_a(),ga(13,"p"),La(14," District Court: Stuttgart"),ka(15,"br"),La(16," HRB: 739480"),ka(17,"br"),La(18," USt-ID: DE280227894 "),_a(),ga(19,"p"),La(20," info@teacapps.de "),_a(),ga(21,"h2"),La(22,"Liability for Contents"),_a(),ga(23,"p"),La(24,"As service providers, we are liable for own contents of these websites according to Sec. 7, paragraph 1 German Telemedia Act (TMG). However, according to Sec. 8 to 10 German Telemedia Act (TMG), service providers are not obligated to permanently monitor submitted or stored information or to search for evidences that indicate illegal activities."),_a(),ga(25,"p"),La(26,"Legal obligations to removing information or to blocking the use of information remain unchallenged. In this case, liability is only possible at the time of knowledge about a specific violation of law. Illegal contents will be removed immediately at the time we get knowledge of them."),_a(),ga(27,"h2"),La(28,"Liability for Links"),_a(),ga(29,"p"),La(30,"Our offer includes links to external third party websites. We have no influence on the contents of those websites, therefore we cannot guarantee for those contents. Providers or administrators of linked websites are always responsible for their own contents."),_a(),ga(31,"p"),La(32,"The linked websites had been checked for possible violations of law at the time of the establishment of the link. Illegal contents were not detected at the time of the linking. A permanent monitoring of the contents of linked websites cannot be imposed without reasonable indications that there has been a violation of law. Illegal links will be removed immediately at the time we get knowledge of them."),_a(),ga(33,"h2"),La(34,"Copyright"),_a(),ga(35,"p"),La(36,"Contents and compilations published on these websites by the providers are subject to German copyright laws. Reproduction, editing, distribution as well as the use of any kind outside the scope of the copyright law require a written permission of the author or originator. Downloads and copies of these websites are permitted for private use only. The commercial use of our contents without permission of the originator is prohibited."),_a(),ga(37,"p"),La(38,"Copyright laws of third parties are respected as long as the contents on these websites do not originate from the provider. Contributions of third parties on this site are indicated as such. However, if you notice any violations of copyright law, please inform us. Such contents will be removed immediately."),_a(),_a())},styles:[""]}),Rg)},{path:"privacy-policy",component:(Ig=function(){function e(t,n){E(this,e),this.localeId=t,this.seoService=n}return T(e,[{key:"ngOnInit",value:function(){var e="https://teacapps.de/locale/"+this.localeId+"/privacy-policy";"en-US"==this.localeId&&(e="https://teacapps.de/privacy-policy"),this.seoService.updateMetaData(e,"Privacy Policy","Privacy policy teacapps.de")}}]),e}(),Ig.\u0275fac=function(e){return new(e||Ig)(pa(tl),pa(rp))},Ig.\u0275cmp=mt({type:Ig,selectors:[["app-privacy"]],decls:87,vars:0,consts:[[1,"container"],["target","_blank","href","https://www.firebase.com/terms/privacy-policy.html"],["target","_blank","href","https://www.google.com/policies/privacy/"],["target","_blank","href","http://tools.google.com/dlpage/gaoptout"],["id","ga-opt-out","href","javascript:void(0)"]],template:function(e,t){1&e&&(ga(0,"div",0),ga(1,"h1"),La(2,"Privacy Policy"),_a(),ga(3,"p"),La(4,"In this Privacy Policy, we inform you about which data we collect in the context of your use of this website and for which purposes your data is used."),_a(),ga(5,"h2"),La(6,"Controller/contact"),_a(),ga(7,"p"),La(8,"The controller within the meaning of the data protection laws is:"),_a(),ga(9,"p"),La(10,"TeaCapps GmbH"),ka(11,"br"),La(12," Tal\xe4ckerstr. 42"),ka(13,"br"),La(14," 74182 Obersulm "),_a(),ga(15,"p"),La(16,"If you have any questions or suggestions concerning data protection, please email us at info@teacapps.de."),_a(),ga(17,"h2"),La(18,"Legal basis"),_a(),ga(19,"p"),La(20,"When processing personal data that is required to fulfill a contract with the user, point (b) of paragraph 1 of article 6 of the GDPR serves as the legal basis."),_a(),ga(21,"p"),La(22,"If the processing is necessary to account for the legitimate interests of our company or a third party and if these interests are not overridden by interests of the user, the legal basis is provided by point (f) of paragraph 1 of article 6 of the GDPR."),_a(),ga(23,"h2"),La(24,"Automated data collection"),_a(),ga(25,"p"),La(26,"When you access our website, your device will automatically transmit data for technical reasons. The data includes:"),_a(),ga(27,"ul"),ga(28,"li"),La(29,"date and time of the access"),_a(),ga(30,"li"),La(31,"browser type/version"),_a(),ga(32,"li"),La(33,"operating system used"),_a(),ga(34,"li"),La(35,"URL of the previously visited website"),_a(),ga(36,"li"),La(37,"IP address"),_a(),_a(),ga(38,"p"),La(39,"We host our website with Google Firebase Hosting. Please visit "),ga(40,"a",1),La(41,"https://www.firebase.com/terms/privacy-policy.html"),_a(),La(42," for more information."),_a(),ga(43,"h2"),La(44,"Google Analytics"),_a(),ga(45,"p"),La(46,'We use "Google Analytics", a web analysis service of Google LLC ("Google"). Google Analytics uses so-called "cookies", i.e. text files that are stored on your end device, and that permit analysis of your use of the website. The information regarding your use of the website (including your abbreviated IP address) is transferred to and stored on servers of Google in the United States of America. Google will use this information to evaluate your use of the website, in order to compile reports on the website activities for the website operators, and to provide further services connected to the use of our website and the internet. Google will also transfer this information to third parties if this is required by law or to the extent that third parties process these data on behalf of Google.'),_a(),ga(47,"p"),La(48,"Technically, we integrate Google Analytics with Google Tag Manager which is a tag management system created by Google to manage JavaScript and HTML tags used for tracking and analytics on websites."),_a(),ga(49,"p"),La(50,"For more information on how Google uses your data, see Google\u2019s Privacy Policy: "),ga(51,"a",2),La(52,"https://www.google.com/policies/privacy/"),_a(),La(53,"."),_a(),ga(54,"p"),La(55,"The data stored at Google Analytics are stored for a period of fourteen (14) months. After the end of this time, Google Analytics will only store aggregated statistics."),_a(),ga(56,"p"),La(57,"You can deactivate Google Analytics with a browser add-on if you do not accept website analysis. You can download such add-on here: "),ga(58,"a",3),La(59,"http://tools.google.com/dlpage/gaoptout"),_a(),La(60,"."),_a(),ga(61,"p"),La(62,"You can also deactivate recording by Google Analytics on this website by clicking "),ga(63,"a",4),La(64,"here"),_a(),La(65,"."),_a(),ga(66,"p"),La(67,"Google Analytics is used based on our legitimate interest in demand-oriented design, statistical evaluation and efficient marketing of our website, and the fact that your legitimate interests are not overriding, Article 6(1) point (f) GDPR."),_a(),ga(68,"h2"),La(69,"Cookies"),_a(),ga(70,"p"),La(71,'We store so-called "cookies" in order to offer you all features of our website, and to make the use of our websites more convenient. Cookies are small files that are stored on your computer using your internet browser. If you do not want cookies to be used, you can prevent storage of cookies on your device by making the corresponding settings in your internet browser. Please note that the scope of features of our website may be restricted due to this.'),_a(),ga(72,"p"),La(73,"We specifically use the following cookies:"),_a(),ga(74,"ul"),ga(75,"li"),La(76,"3 cookies from Google Analytics for statistical evaluation of the use of the website and for improvement of our offer"),_a(),ga(77,"li"),La(78,"a cookie to deactivate data transmission to Google Analytics"),_a(),ga(79,"li"),La(80,"a cookie to record whether you have already confirmed the cookie notice with OK"),_a(),_a(),ga(81,"p"),La(82,"These cookies cannot identify you as a person. In any case, use of cookies is justified based on our legitimate interest in demand-oriented design, as well as statistical evaluation of our website, and the fact that your legitimate interests are not overriding, Article 6(1) point (f) GDPR."),_a(),ga(83,"h2"),La(84,"Support requests / feedback"),_a(),ga(85,"p"),La(86,"Users may send us an email either directly or using the feedback form within the website. Transmitted personal data will be stored. In this context, data will not be disclosed with third parties. The data is used exclusively for processing the conversation. The data will be deleted, if the purpose of its collection has been fulfilled. This is the case when the conversion with the user has come to an end or it can be seen from the conversation that the subject has been clarified."),_a(),_a())},styles:[""]}),Ig)},{path:"404",component:(Ag=function(){function e(){E(this,e)}return T(e,[{key:"ngOnInit",value:function(){}}]),e}(),Ag.\u0275fac=function(e){return new(e||Ag)},Ag.\u0275cmp=mt({type:Ag,selectors:[["app-not-found"]],decls:10,vars:0,consts:[[1,"container"],["routerLink",""]],template:function(e,t){1&e&&(ga(0,"div",0),ga(1,"h2"),La(2,"Page not found"),_a(),ga(3,"p"),La(4,"We could not find the above page on our servers."),_a(),ga(5,"p"),La(6,"Alternatively, you can visit the "),ga(7,"a",1),La(8,"Main Page"),_a(),La(9,"."),_a(),_a())},directives:[Iv],styles:[""]}),Ag)},{path:"**",redirectTo:"/404"}],Vg=((jg=function e(){E(this,e)}).\u0275mod=bt({type:jg}),jg.\u0275inj=Ne({factory:function(e){return new(e||jg)},imports:[[Gv.forRoot(Bg,{scrollPositionRestoration:"enabled",relativeLinkResolution:"legacy"})],Gv]}),jg),qg=((Dg=function(){function e(t,n){E(this,e),this.document=t,this.platformId=n,this.documentIsAccessible=Ec(this.platformId)}return T(e,[{key:"check",value:function(e){return!!this.documentIsAccessible&&(e=encodeURIComponent(e),this.getCookieRegExp(e).test(this.document.cookie))}},{key:"get",value:function(e){if(this.documentIsAccessible&&this.check(e)){e=encodeURIComponent(e);var t=this.getCookieRegExp(e).exec(this.document.cookie);return this.safeDecodeURIComponent(t[1])}return""}},{key:"getAll",value:function(){var e=this;if(!this.documentIsAccessible)return{};var t={},n=this.document;return n.cookie&&""!==n.cookie&&n.cookie.split(";").forEach((function(n){var r=l(n.split("="),2),i=r[0],o=r[1];t[e.safeDecodeURIComponent(i.replace(/^ /,""))]=e.safeDecodeURIComponent(o)})),t}},{key:"set",value:function(e,t,n,r,i,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"Lax";if(this.documentIsAccessible){var s=encodeURIComponent(e)+"="+encodeURIComponent(t)+";";n&&(s+="number"==typeof n?"expires="+new Date((new Date).getTime()+1e3*n*60*60*24).toUTCString()+";":"expires="+n.toUTCString()+";"),r&&(s+="path="+r+";"),i&&(s+="domain="+i+";"),!1===o&&"None"===a&&(o=!0,console.warn("[ngx-cookie-service] Cookie ".concat(e," was forced with secure flag because sameSite=None.More details : https://github.com/stevermeister/ngx-cookie-service/issues/86#issuecomment-597720130"))),o&&(s+="secure;"),s+="sameSite="+a+";",this.document.cookie=s}}},{key:"delete",value:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"Lax";this.documentIsAccessible&&this.set(e,"",new Date("Thu, 01 Jan 1970 00:00:01 GMT"),t,n,r,i)}},{key:"deleteAll",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"Lax";if(this.documentIsAccessible){var i=this.getAll();for(var o in i)i.hasOwnProperty(o)&&this.delete(o,e,t,n,r)}}},{key:"getCookieRegExp",value:function(e){var t=e.replace(/([\[\]\{\}\(\)\|\=\;\+\?\,\.\*\^\$])/gi,"\\$1");return new RegExp("(?:^"+t+"|;\\s*"+t+")=(.*?)(?:;|$)","g")}},{key:"safeDecodeURIComponent",value:function(e){try{return decodeURIComponent(e)}catch(i_){return e}}}]),e}()).\u0275fac=function(e){return new(e||Dg)(Ft(Gl),Ft(Ju))},Dg.\u0275prov=Pe({factory:function(){return new Dg(Ft(Gl),Ft(Ju))},token:Dg,providedIn:"root"}),Dg),Gg=((Ng=function(){function e(){E(this,e)}return T(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||Ng)},Ng.\u0275cmp=mt({type:Ng,selectors:[["app-header"]],decls:9,vars:0,consts:[[1,"header"],["align","right"],["id","title-icon","src","assets/teacapps-icon.svg"],["id","title-text","src","assets/teacapps-text.svg"]],template:function(e,t){1&e&&(ga(0,"div",0),ga(1,"table"),ga(2,"tr"),ga(3,"td",1),ga(4,"div"),ka(5,"img",2),_a(),_a(),ga(6,"td"),ga(7,"div"),ka(8,"img",3),_a(),_a(),_a(),_a(),_a())},styles:["div.header[_ngcontent-%COMP%]{padding:1.2rem 0;box-shadow:0 0 6px #333;z-index:1}table[_ngcontent-%COMP%]{margin:0 auto}#title-icon[_ngcontent-%COMP%]{height:24px;vertical-align:middle;padding-right:.4rem}#title-text[_ngcontent-%COMP%]{height:20px;vertical-align:middle;margin-top:.2rem}"]}),Ng),Qg=((Pg=function(){function e(t){E(this,e),this.cookieService=t}return T(e,[{key:"ngOnInit",value:function(){}},{key:"select",value:function(e){var t=window.location.href,n=window.location.origin,r=new Date,i=r.getTime();r.setTime(i+15778476e5),this.cookieService.set("firebase-language-override",e,r,"/");var o=["en","de"],a=n;for(var s in o){var u=n+"/locale/"+o[s];if(t.startsWith(u)){a=u;break}}var l=n;if(o.includes(e)&&(l=n+"/locale/"+e),l!==a){var c=l+t.slice(a.length);window.location.href=c}}}]),e}()).\u0275fac=function(e){return new(e||Pg)(pa(qg))},Pg.\u0275cmp=mt({type:Pg,selectors:[["app-footer"]],decls:20,vars:0,consts:function(){return[[1,"footer","no-print"],[1,"container"],[1,"language-icon",3,"click"],["src","assets/flags/us.svg",1,"flag"],["src","assets/flags/de.svg",1,"flag"],[1,"nav-link"],["routerLink",""],"Home",["routerLink","privacy-policy"],"Privacy Policy",["routerLink","imprint"],"Imprint",["id","copyright",1,"container"]]},template:function(e,t){1&e&&(ga(0,"div",0),ga(1,"div",1),ga(2,"nav"),ga(3,"span",2),wa("click",(function(){return t.select("en")})),ka(4,"img",3),_a(),ga(5,"span",2),wa("click",(function(){return t.select("de")})),ka(6,"img",4),_a(),_a(),_a(),ga(7,"div",1),ga(8,"nav"),ga(9,"div",5),ga(10,"a",6),bs(11,7),_a(),_a(),ga(12,"div",5),ga(13,"a",8),bs(14,9),_a(),_a(),ga(15,"div",5),ga(16,"a",10),bs(17,11),_a(),_a(),_a(),_a(),ga(18,"div",12),La(19,"\xa9 2020 TeaCapps GmbH"),_a(),_a())},directives:[Iv],styles:["div.footer[_ngcontent-%COMP%]{color:#fff;text-align:center;padding:2rem 1rem;background-color:#333}span.language-icon[_ngcontent-%COMP%]{padding:0 .8rem}img.flag[_ngcontent-%COMP%]{height:25px;border-radius:50%;border:2px solid #fff}div.container[_ngcontent-%COMP%]{padding:.5rem 0}a[_ngcontent-%COMP%]{color:#fff;font-weight:400}@media (min-width:500px){div.nav-link[_ngcontent-%COMP%]{display:inline}}nav[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:0 .8rem}#copyright[_ngcontent-%COMP%]{padding-top:1.5rem;padding-bottom:2.5rem}"]}),Pg),Wg=["mat-button",""],Kg=["*"],Zg=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],$g=function(e,t){return function(e){m(r,e);var n=_(r);function r(){var e;E(this,r);for(var i=arguments.length,o=new Array(i),a=0;a0&&void 0!==arguments[0]?arguments[0]:"program",t=arguments.length>1?arguments[1]:void 0;this._focusMonitor.focusVia(this._getHostElement(),e,t)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r*,.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:block;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}\n"],encapsulation:2,changeDetection:0}),Mg),Jg=((Lg=function e(){E(this,e)}).\u0275mod=bt({type:Lg}),Lg.\u0275inj=Ne({factory:function(e){return new(e||Lg)},imports:[[fg,Jm],Jm]}),Lg);function Xg(e,t){if(1&e){var n=cn();ga(0,"div",1),ga(1,"div",2),ga(2,"div",3),_s(3,4),ka(4,"a",5),ks(),_a(),ga(5,"div",6),ga(6,"button",7),wa("click",(function(){return un.lFrame.contextLView=n,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return function(e){return(un.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,un.lFrame.contextLView))[8]}(e)}().hideCookieBanner()})),La(7,"OK"),_a(),_a(),_a(),_a()}}var e_,t_,n_=((t_=function(){function e(t,n,r,i){E(this,e),this.cookieService=t,this.title="teacapps-web",this.cookieBannerVisible=!0,i.setAttribute(n.documentElement,"lang",r)}return T(e,[{key:"ngOnInit",value:function(){this.cookieBannerVisible="1"!==this.cookieService.get("cookieBannerHidden")}},{key:"hideCookieBanner",value:function(){var e=new Date,t=e.getTime();e.setTime(t+15778476e5),this.cookieService.set("cookieBannerHidden","1",e,"/"),this.cookieBannerVisible=!1}}]),e}()).\u0275fac=function(e){return new(e||t_)(pa(qg),pa(Gl),pa(tl),pa(Fs))},t_.\u0275cmp=mt({type:t_,selectors:[["app-root"]],decls:4,vars:1,consts:function(){return[["id","cookie-banner",4,"ngIf"],["id","cookie-banner"],["id","cookie-container"],["id","cookie-text-cell"],"We use cookies to analyse the use of our website. " + "\ufffd#4\ufffd" + "See details" + "\ufffd/#4\ufffd" + "",["routerLink","/privacy-policy"],["id","cookie-button-cell"],["id","cookie-button","mat-raised-button","","color","primary",3,"click"]]},template:function(e,t){1&e&&(ka(0,"app-header"),ka(1,"router-outlet"),ka(2,"app-footer"),function(e,t,n,r,i,o,a,s){var u=cn(),l=hn(),c=l.firstCreatePass?function(e,t,n,r,i,o,a,s,u){var l=t.consts,c=ro(t,23,4,"div",on(l,0));mo(t,n,c,on(l,void 0)),yr(t,c);var h=c.tViews=fo(2,c,r,8,0,t.directiveRegistry,t.pipeRegistry,null,t.schemas,l);return null!==t.queries&&(t.queries.template(t,c),h.queries=t.queries.embeddedTView(c)),c}(0,l,u,t):l.data[23];pn(c,!1);var h=u[11].createComment("");Ii(l,u,h,c),ei(h,u),Ro(u,u[23]=xo(h,u,h,c)),Wt(c)&&co(l,u,c)}(0,Xg)),2&e&&(Wi(3),ya("ngIf",t.cookieBannerVisible))},directives:[Gg,Dv,Qg,_c,Iv,Yg],styles:["#contact-button[_ngcontent-%COMP%]{top:auto;right:20px;bottom:20px;left:auto;position:fixed;z-index:1}#contact-button[_ngcontent-%COMP%] .mat-button-wrapper{padding:0}#contact-button[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{-webkit-filter:invert(100%);width:32px}#cookie-banner[_ngcontent-%COMP%]{width:100%;font-size:16px;background-color:#fbfbfb;position:fixed;bottom:0;z-index:1;box-shadow:0 0 1px #999;display:table;border-spacing:10px}#cookie-container[_ngcontent-%COMP%]{display:table-row}#cookie-button-cell[_ngcontent-%COMP%], #cookie-text-cell[_ngcontent-%COMP%]{display:table-cell;vertical-align:middle}#cookie-button-cell[_ngcontent-%COMP%]{width:40px}#cookie-button[_ngcontent-%COMP%]{line-height:30px;width:40px}"]}),t_),r_=((e_=function e(){E(this,e)}).\u0275mod=bt({type:e_,bootstrap:[n_]}),e_.\u0275inj=Ne({factory:function(e){return new(e||e_)},providers:[],imports:[[lh,Vg,Zm,Ug,Jg]]}),e_);(function(){if(zn)throw new Error("Cannot enable prod mode after platform setup.");Hn=!1})(),sh().bootstrapModule(r_).catch((function(e){return console.error(e)}))},zn8P:function(e,t){function n(e){return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="zn8P"}},[[0,0]]])}();