text: webpackJsonp([3],{"+VeI":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("JEJ4"),o=n("pHuv"),i=n("F1yO"),s=n("PKQO"),a=n("xfHL");n("VzZx");var u,c=function(){function e(){this.repos_={},this.useRestClient_=!1}return e.getInstance=function(){return u||(u=new e),u},e.prototype.interrupt=function(){for(var e in this.repos_)for(var t in this.repos_[e])this.repos_[e][t].interrupt()},e.prototype.resume=function(){for(var e in this.repos_)for(var t in this.repos_[e])this.repos_[e][t].resume()},e.prototype.databaseFromApp=function(e,t){var n=t||e.options.databaseURL;void 0===n&&i.fatal("Can't determine Firebase Database URL.  Be sure to include databaseURL option when calling firebase.intializeApp().");var r=s.parseRepoInfo(n),o=r.repoInfo;return a.validateUrl("Invalid Firebase Database URL",1,r),r.path.isEmpty()||i.fatal("Database URL must point to the root of a Firebase Database (not including a child path)."),this.createRepo(o,e).database},e.prototype.deleteRepo=function(e){var t=r.safeGet(this.repos_,e.app.name);t&&r.safeGet(t,e.repoInfo_.toURLString())===e||i.fatal("Database "+e.app.name+"("+e.repoInfo_+") has already been deleted."),e.interrupt(),delete t[e.repoInfo_.toURLString()]},e.prototype.createRepo=function(e,t){var n=r.safeGet(this.repos_,t.name);n||(n={},this.repos_[t.name]=n);var s=r.safeGet(n,e.toURLString());return s&&i.fatal("Database initialized multiple times. Please make sure the format of the database URL matches with each database() call."),s=new o.Repo(e,this.useRestClient_,t),n[e.toURLString()]=s,s},e.prototype.forceRestClient=function(e){this.useRestClient_=e},e}();t.RepoManager=c},"/0OS":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("JEJ4"),o=n("ertD"),i=n("JEJ4"),s=function(){function e(){this.changeMap_={}}return e.prototype.trackChildChange=function(e){var t=e.type,n=e.childName;i.assert(t==o.Change.CHILD_ADDED||t==o.Change.CHILD_CHANGED||t==o.Change.CHILD_REMOVED,"Only child changes supported for tracking"),i.assert(".priority"!==n,"Only non-priority child changes can be tracked.");var s=r.safeGet(this.changeMap_,n);if(s){var a=s.type;if(t==o.Change.CHILD_ADDED&&a==o.Change.CHILD_REMOVED)this.changeMap_[n]=o.Change.childChangedChange(n,e.snapshotNode,s.snapshotNode);else if(t==o.Change.CHILD_REMOVED&&a==o.Change.CHILD_ADDED)delete this.changeMap_[n];else if(t==o.Change.CHILD_REMOVED&&a==o.Change.CHILD_CHANGED)this.changeMap_[n]=o.Change.childRemovedChange(n,s.oldSnap);else if(t==o.Change.CHILD_CHANGED&&a==o.Change.CHILD_ADDED)this.changeMap_[n]=o.Change.childAddedChange(n,e.snapshotNode);else{if(t!=o.Change.CHILD_CHANGED||a!=o.Change.CHILD_CHANGED)throw i.assertionError("Illegal combination of changes: "+e+" occurred after "+s);this.changeMap_[n]=o.Change.childChangedChange(n,e.snapshotNode,s.oldSnap)}}else this.changeMap_[n]=e},e.prototype.getChanges=function(){return r.getValues(this.changeMap_)},e}();t.ChildChangeAccumulator=s},"/68J":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("gOHv"),o=n("kCHx"),i=n("fvGz"),s=n("JEJ4"),a=function(){function e(e,t,n){this.source=e,this.path=t,this.children=n,this.type=r.OperationType.MERGE}return e.prototype.operationForChild=function(t){if(this.path.isEmpty()){var n=this.children.subtree(new i.Path(t));return n.isEmpty()?null:n.value?new o.Overwrite(this.source,i.Path.Empty,n.value):new e(this.source,i.Path.Empty,n)}return s.assert(this.path.getFront()===t,"Can't get a merge for a child not on the path of the operation"),new e(this.source,this.path.popFront(),this.children)},e.prototype.toString=function(){return"Operation("+this.path+": "+this.source.toString()+" merge: "+this.children.toString()+")"},e}();t.Merge=a},"/HC2":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("JEJ4"),o=n("JEJ4"),i=function(){function e(){this.counters_={}}return e.prototype.incrementCounter=function(e,t){void 0===t&&(t=1),o.contains(this.counters_,e)||(this.counters_[e]=0),this.counters_[e]+=t},e.prototype.get=function(){return r.deepCopy(this.counters_)},e}();t.StatsCollection=i},"/byE":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CONSTANTS={NODE_CLIENT:!1,NODE_ADMIN:!1,SDK_VERSION:"${JSCORE_VERSION}"}},"/fob":function(e,t,n){"use strict";function r(e){s=e}function o(e){a=e}var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var s,a,u=n("GboV"),c=n("F1yO"),l=n("p+VM"),p=n("04zk");t.setNodeFromJSON=r,t.setMaxNode=o;var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.compare=function(e,t){var n=e.node.getPriority(),r=t.node.getPriority(),o=n.compareTo(r);return 0===o?c.nameCompare(e.name,t.name):o},t.prototype.isDefinedOn=function(e){return!e.getPriority().isEmpty()},t.prototype.indexedValueChanged=function(e,t){return!e.getPriority().equals(t.getPriority())},t.prototype.minPost=function(){return l.NamedNode.MIN},t.prototype.maxPost=function(){return new l.NamedNode(c.MAX_NAME,new p.LeafNode("[PRIORITY-POST]",a))},t.prototype.makePost=function(e,t){var n=s(e);return new l.NamedNode(t,new p.LeafNode("[PRIORITY-POST]",n))},t.prototype.toString=function(){return".priority"},t}(u.Index);t.PriorityIndex=h,t.PRIORITY_INDEX=new h},"/oeL":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){function r(){if(!Fo){var e=Mo.Symbol;if(e&&e.iterator)Fo=e.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),n=0;n<t.length;++n){var r=t[n];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(Fo=r)}}return Fo}function o(e){Zone.current.scheduleMicroTask("scheduleMicrotask",e)}function i(e,t){return e===t||"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)}function s(e){if("string"==typeof e)return e;if(null==e)return""+e;if(e.overriddenName)return""+e.overriddenName;if(e.name)return""+e.name;var t=e.toString();if(null==t)return""+t;var n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function a(e){return"function"==typeof e&&e.hasOwnProperty("annotation")&&(e=e.annotation),e}function u(e,t){if(e===Object||e===String||e===Function||e===Number||e===Array)throw new Error("Can not use native "+s(e)+" as constructor");if("function"==typeof e)return e;if(Array.isArray(e)){var n=e,r=n.length-1,o=e[r];if("function"!=typeof o)throw new Error("Last position of Class method array must be Function in key "+t+" was '"+s(o)+"'");if(r!=o.length)throw new Error("Number of annotations ("+r+") does not match number of arguments ("+o.length+") in the function: "+s(o));for(var i=[],u=0,c=n.length-1;u<c;u++){var l=[];i.push(l);var p=n[u];if(Array.isArray(p))for(var h=0;h<p.length;h++)l.push(a(p[h]));else"function"==typeof p?l.push(a(p)):l.push(p)}return Lo.defineMetadata("parameters",i,o),o}throw new Error("Only Function or Array is supported in Class definition for key '"+t+"' is '"+s(e)+"'")}function c(e){var t=u(e.hasOwnProperty("constructor")?e.constructor:void 0,"constructor"),n=t.prototype;if(e.hasOwnProperty("extends")){if("function"!=typeof e.extends)throw new Error("Class definition 'extends' property must be a constructor function was: "+s(e.extends));t.prototype=n=Object.create(e.extends.prototype)}for(var r in e)"extends"!==r&&"prototype"!==r&&e.hasOwnProperty(r)&&(n[r]=u(e[r],r));this&&this.annotations instanceof Array&&Lo.defineMetadata("annotations",this.annotations,t);var o=t.name;return o&&"constructor"!==o||(t.overriddenName="class"+jo++),t}function l(e,t,n,r){function o(e){if(!Lo||!Lo.getOwnMetadata)throw"reflect-metadata shim is required when using class decorators";if(this instanceof o)return i.call(this,e),this;var t=new o(e),n="function"==typeof this&&Array.isArray(this.annotations)?this.annotations:[];n.push(t);var s=function(e){var n=Lo.getOwnMetadata("annotations",e)||[];return n.push(t),Lo.defineMetadata("annotations",n,e),e};return s.annotations=n,s.Class=c,r&&r(s),s}var i=p(t);return n&&(o.prototype=Object.create(n.prototype)),o.prototype.toString=function(){return"@"+e},o.annotationCls=o,o}function p(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(e){var r=e.apply(void 0,t);for(var o in r)this[o]=r[o]}}}function h(e,t,n){function r(){function e(e,t,n){for(var r=Lo.getOwnMetadata("parameters",e)||[];r.length<=n;)r.push(null);return r[n]=r[n]||[],r[n].push(i),Lo.defineMetadata("parameters",r,e),e}for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(this instanceof r)return o.apply(this,t),this;var i=new(r.bind.apply(r,[void 0].concat(t)));return e.annotation=i,e}var o=p(t);return n&&(r.prototype=Object.create(n.prototype)),r.prototype.toString=function(){return"@"+e},r.annotationCls=r,r}function f(e,t,n){function r(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(this instanceof r)return o.apply(this,e),this;var n=new(r.bind.apply(r,[void 0].concat(e)));return function(e,t){var r=Lo.getOwnMetadata("propMetadata",e.constructor)||{};r[t]=r.hasOwnProperty(t)&&r[t]||[],r[t].unshift(n),Lo.defineMetadata("propMetadata",r,e.constructor)}}var o=p(t);return n&&(r.prototype=Object.create(n.prototype)),r.prototype.toString=function(){return"@"+e},r.annotationCls=r,r}function d(e){return null==e||e===Go.Default}function y(e){return e.__forward_ref__=y,e.toString=function(){return s(this())},e}function v(e){return"function"==typeof e&&e.hasOwnProperty("__forward_ref__")&&e.__forward_ref__===y?e():e}function m(e){return e[_i]}function g(e){return e[bi]}function _(e){return e[wi]||b}function b(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e.error.apply(e,t)}function w(e,t){var n=e+" caused by: "+(t instanceof Error?t.message:t),r=Error(n);return r[bi]=t,r}function C(e){for(var t=[],n=0;n<e.length;++n){if(t.indexOf(e[n])>-1)return t.push(e[n]),t;t.push(e[n])}return t}function E(e){if(e.length>1){return" ("+C(e.slice().reverse()).map(function(e){return s(e.token)}).join(" -> ")+")"}return""}function S(e,t,n,r){var o=[t],i=n(o),s=r?w(i,r):Error(i);return s.addKey=O,s.keys=o,s.injectors=[e],s.constructResolvingMessage=n,s[bi]=r,s}function O(e,t){this.injectors.push(e),this.keys.push(t),this.message=this.constructResolvingMessage(this.keys)}function P(e,t){return S(e,t,function(e){return"No provider for "+s(e[0].token)+"!"+E(e)})}function T(e,t){return S(e,t,function(e){return"Cannot instantiate cyclic dependency!"+E(e)})}function N(e,t,n,r){return S(e,r,function(e){var n=s(e[0].token);return t.message+": Error during instantiation of "+n+"!"+E(e)+"."},t)}function I(e){return Error("Invalid provider - only instances of Provider and Type are allowed, got: "+e)}function A(e,t){for(var n=[],r=0,o=t.length;r<o;r++){var i=t[r];i&&0!=i.length?n.push(i.map(s).join(" ")):n.push("?")}return Error("Cannot resolve all parameters for '"+s(e)+"'("+n.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+s(e)+"' is decorated with Injectable.")}function R(e){return Error("Index "+e+" is out-of-bounds.")}function x(e,t){return Error("Cannot mix multi providers and regular providers, got: "+e+" "+t)}function k(e){return"function"==typeof e}function D(e){return e?e.map(function(e){var t=e.type,n=t.annotationCls,r=e.args?e.args:[];return new(n.bind.apply(n,[void 0].concat(r)))}):[]}function M(e){var t=Object.getPrototypeOf(e.prototype);return(t?t.constructor:null)||Object}function F(e){var t,n;if(e.useClass){var r=v(e.useClass);t=Ai.factory(r),n=q(r)}else e.useExisting?(t=function(e){return e},n=[Ri.fromKey(Ei.get(e.useExisting))]):e.useFactory?(t=e.useFactory,n=B(e.useFactory,e.deps)):(t=function(){return e.useValue},n=xi);return new Di(t,n)}function j(e){return new ki(Ei.get(e.provide),[F(e)],e.multi||!1)}function L(e){var t=H(e,[]),n=t.map(j),r=V(n,new Map);return Array.from(r.values())}function V(e,t){for(var n=0;n<e.length;n++){var r=e[n],o=t.get(r.key.id);if(o){if(r.multiProvider!==o.multiProvider)throw x(o,r);if(r.multiProvider)for(var i=0;i<r.resolvedFactories.length;i++)o.resolvedFactories.push(r.resolvedFactories[i]);else t.set(r.key.id,r)}else{var s=void 0;s=r.multiProvider?new ki(r.key,r.resolvedFactories.slice(),r.multiProvider):r,t.set(r.key.id,s)}}return t}function H(e,t){return e.forEach(function(e){if(e instanceof Pi)t.push({provide:e,useClass:e});else if(e&&"object"==typeof e&&void 0!==e.provide)t.push(e);else{if(!(e instanceof Array))throw I(e);H(e,t)}}),t}function B(e,t){if(t){var n=t.map(function(e){return[e]});return t.map(function(t){return W(e,t,n)})}return q(e)}function q(e){var t=Ai.parameters(e);if(!t)return[];if(t.some(function(e){return null==e}))throw A(e,t);return t.map(function(n){return W(e,n,t)})}function W(e,t,n){var r=null,o=!1;if(!Array.isArray(t))return t instanceof ui?U(t.token,o,null):U(t,o,null);for(var i=null,s=0;s<t.length;++s){var a=t[s];a instanceof Pi?r=a:a instanceof ui?r=a.token:a instanceof ci?o=!0:a instanceof pi||a instanceof hi?i=a:a instanceof Ro&&(r=a)}if(null!=(r=v(r)))return U(r,o,i);throw A(e,n)}function U(e,t,n){return new Ri(Ei.get(e),t,n)}function z(e,t){for(var n=new Array(e._providers.length),r=0;r<e._providers.length;++r)n[r]=t(e.getProviderAtIndex(r));return n}function G(e){return!!e&&"function"==typeof e.then}function Q(e){return!!e&&"function"==typeof e.subscribe}function K(){return""+J()+J()+J()}function J(){return String.fromCharCode(97+Math.floor(25*Math.random()))}function Y(){throw new Error("Runtime compiler is not loaded")}function X(e){var t=Error("No component factory found for "+s(e)+". Did you add it to @NgModule.entryComponents?");return t[es]=e,t}function Z(){var e=Mo.wtf;return!(!e||!(rs=e.trace))&&(os=rs.events,!0)}function $(e,t){return void 0===t&&(t=null),os.createScope(e,t)}function ee(e,t){return rs.leaveScope(e,t),t}function te(e,t){return rs.beginTimeRange(e,t)}function ne(e){rs.endTimeRange(e)}function re(e,t){return null}function oe(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(function(){return e.onStable.emit(null)})}finally{e.isStable=!0}}}function ie(e){e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(t,n,r,o,i,s){try{return se(e),t.invokeTask(r,o,i,s)}finally{ae(e)}},onInvoke:function(t,n,r,o,i,s,a){try{return se(e),t.invoke(r,o,i,s,a)}finally{ae(e)}},onHasTask:function(t,n,r,o){t.hasTask(r,o),n===r&&("microTask"==o.change?(e.hasPendingMicrotasks=o.microTask,oe(e)):"macroTask"==o.change&&(e.hasPendingMacrotasks=o.macroTask))},onHandleError:function(t,n,r,o){return t.handleError(r,o),e.runOutsideAngular(function(){return e.onError.emit(o)}),!1}})}function se(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function ae(e){e._nesting--,oe(e)}function ue(e){bs=e}function ce(){if(Cs)throw new Error("Cannot enable prod mode after platform setup.");ws=!1}function le(){return Cs=!0,ws}function pe(e){if(gs&&!gs.destroyed&&!gs.injector.get(Es,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");gs=e.get(Os);var t=e.get(Wi,null);return t&&t.forEach(function(e){return e()}),gs}function he(e,t,n){void 0===n&&(n=[]);var r=new Ro("Platform: "+t);return function(t){void 0===t&&(t=[]);var o=ye();return o&&!o.injector.get(Es,!1)||(e?e(n.concat(t).concat({provide:r,useValue:!0})):pe(Fi.resolveAndCreate(n.concat(t).concat({provide:r,useValue:!0})))),fe(r)}}function fe(e){var t=ye();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}function de(){gs&&!gs.destroyed&&gs.destroy()}function ye(){return gs&&!gs.destroyed?gs:null}function ve(e,t,n){try{var r=n();return G(r)?r.catch(function(n){throw t.runOutsideAngular(function(){return e.handleError(n)}),n}):r}catch(n){throw t.runOutsideAngular(function(){return e.handleError(n)}),n}}function me(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}function ge(e,t){var n=Ls.get(e);if(n)throw new Error("Duplicate module registered for "+e+" - "+n.moduleType.name+" vs "+t.moduleType.name);Ls.set(e,t)}function _e(e){var t=Ls.get(e);if(!t)throw new Error("No module with ID "+e+" loaded");return t}function be(e){return e.reduce(function(e,t){var n=Array.isArray(t)?be(t):t;return e.concat(n)},[])}function we(e,t,n){if(!e)throw new Error("Cannot find '"+n+"' in '"+t+"'");return e}function Ce(e){return e.map(function(e){return e.nativeElement})}function Ee(e,t,n){e.childNodes.forEach(function(e){e instanceof Ys&&(t(e)&&n.push(e),Ee(e,t,n))})}function Se(e,t,n){e instanceof Ys&&e.childNodes.forEach(function(e){t(e)&&n.push(e),e instanceof Ys&&Se(e,t,n)})}function Oe(e){return Xs.get(e)||null}function Pe(e){Xs.set(e.nativeNode,e)}function Te(e){Xs.delete(e.nativeNode)}function Ne(e,t){var n=Ie(e),r=Ie(t);if(n&&r)return Ae(e,t,Ne);var o=e&&("object"==typeof e||"function"==typeof e),s=t&&("object"==typeof t||"function"==typeof t);return!(n||!o||r||!s)||i(e,t)}function Ie(e){return!!xe(e)&&(Array.isArray(e)||!(e instanceof Map)&&r()in e)}function Ae(e,t,n){for(var o=e[r()](),i=t[r()]();;){var s=o.next(),a=i.next();if(s.done&&a.done)return!0;if(s.done||a.done)return!1;if(!n(s.value,a.value))return!1}}function Re(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++)t(e[n]);else for(var o=e[r()](),i=void 0;!(i=o.next()).done;)t(i.value)}function xe(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function ke(e,t,n){var r=e.previousIndex;if(null===r)return r;var o=0;return n&&r<n.length&&(o=n[r]),r+t+o}function De(e){return e.name||typeof e}function Me(){return Ai}function Fe(){return da}function je(){return ya}function Le(e){return e||"en-US"}function Ve(e,t){return e.nodes[t]}function He(e,t){return e.nodes[t]}function Be(e,t){return e.nodes[t]}function qe(e,t){return e.nodes[t]}function We(e,t){return e.nodes[t]}function Ue(e,t,n,r){var o="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '"+t+"'. Current value: '"+n+"'.";return r&&(o+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),Ge(o,e)}function ze(e,t){return e instanceof Error||(e=new Error(e.toString())),Qe(e,t),e}function Ge(e,t){var n=new Error(e);return Qe(n,t),n}function Qe(e,t){e[_i]=t,e[wi]=t.logError.bind(t)}function Ke(e){return!!m(e)}function Je(e){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+e)}function Ye(e){var t=Na.get(e);return t||(t=s(e)+"_"+Na.size,Na.set(e,t)),t}function Xe(e,t,n,r){if(r instanceof Zs){r=r.wrapped;var o=e.def.nodes[t].bindingIndex+n,i=e.oldValues[o];i instanceof Zs&&(i=i.wrapped),e.oldValues[o]=new Zs(i)}return r}function Ze(e){return{id:Ia,styles:e.styles,encapsulation:e.encapsulation,data:e.data}}function $e(e){if(e&&e.id===Ia){var t=null!=e.encapsulation&&e.encapsulation!==oi.None||e.styles.length||Object.keys(e.data).length;e.id=t?"c"+Ra++:Aa}return e&&e.id===Aa&&(e=null),e||null}function et(e,t,n,r){var o=e.oldValues;return!(!(2&e.state)&&i(o[t.bindingIndex+n],r))}function tt(e,t,n,r){return!!et(e,t,n,r)&&(e.oldValues[t.bindingIndex+n]=r,!0)}function nt(e,t,n,r){var o=e.oldValues[t.bindingIndex+n];if(1&e.state||!Ne(o,r))throw Ue(Pa.createDebugContext(e,t.nodeIndex),o,r,0!=(1&e.state))}function rt(e){for(var t=e;t;)2&t.def.flags&&(t.state|=8),t=t.viewContainerParent||t.parent}function ot(e,t){for(var n=e;n&&n!==t;)n.state|=64,n=n.viewContainerParent||n.parent}function it(e,t,n,r){return rt(33554432&e.def.nodes[t].flags?He(e,t).componentView:e),Pa.handleEvent(e,t,n,r)}function st(e){if(e.parent){return He(e.parent,e.parentNodeDef.nodeIndex)}return null}function at(e){return e.parent?e.parentNodeDef.parent:null}function ut(e,t){switch(201347067&t.flags){case 1:return He(e,t.nodeIndex).renderElement;case 2:return Ve(e,t.nodeIndex).renderText}}function ct(e,t){return e?e+":"+t:t}function lt(e){return!!e.parent&&!!(32768&e.parentNodeDef.flags)}function pt(e){return!(!e.parent||32768&e.parentNodeDef.flags)}function ht(e){return 1<<e%32}function ft(e){var t={},n=0,r={};return e&&e.forEach(function(e){var o=e[0],i=e[1];"number"==typeof o?(t[o]=i,n|=ht(o)):r[o]=i}),{matchedQueries:t,references:r,matchedQueryIds:n}}function dt(e){return e.map(function(e){var t,n;return Array.isArray(e)?(n=e[0],t=e[1]):(n=0,t=e),{flags:n,token:t,tokenKey:Ye(t)}})}function yt(e,t,n){var r=n.renderParent;return r?0==(1&r.flags)||0==(33554432&r.flags)||r.element.componentRendererType&&r.element.componentRendererType.encapsulation===oi.Native?He(e,n.renderParent.nodeIndex).renderElement:void 0:t}function vt(e){var t=xa.get(e);return t||(t=e(function(){return Ta}),t.factory=e,xa.set(e,t)),t}function mt(e){var t=[];return gt(e,0,void 0,void 0,t),t}function gt(e,t,n,r,o){3===t&&(n=e.renderer.parentNode(ut(e,e.def.lastRenderRootNode))),_t(e,t,0,e.def.nodes.length-1,n,r,o)}function _t(e,t,n,r,o,i,s){for(var a=n;a<=r;a++){var u=e.def.nodes[a];11&u.flags&&wt(e,u,t,o,i,s),a+=u.childCount}}function bt(e,t,n,r,o,i){for(var s=e;s&&!lt(s);)s=s.parent;for(var a=s.parent,u=at(s),c=u.nodeIndex+1,l=u.nodeIndex+u.childCount,p=c;p<=l;p++){var h=a.def.nodes[p];h.ngContentIndex===t&&wt(a,h,n,r,o,i),p+=h.childCount}if(!a.parent){var f=e.root.projectableNodes[t];if(f)for(var p=0;p<f.length;p++)Ct(e,f[p],n,r,o,i)}}function wt(e,t,n,r,o,i){if(8&t.flags)bt(e,t.ngContent.index,n,r,o,i);else{var s=ut(e,t);if(3===n&&33554432&t.flags&&48&t.bindingFlags){if(16&t.bindingFlags&&Ct(e,s,n,r,o,i),32&t.bindingFlags){var a=He(e,t.nodeIndex).componentView;Ct(a,s,n,r,o,i)}}else Ct(e,s,n,r,o,i);if(16777216&t.flags)for(var u=He(e,t.nodeIndex).viewContainer._embeddedViews,c=0;c<u.length;c++)gt(u[c],n,r,o,i);1&t.flags&&!t.element.name&&_t(e,n,t.nodeIndex+1,t.nodeIndex+t.childCount,r,o,i)}}function Ct(e,t,n,r,o,i){var s=e.renderer;switch(n){case 1:s.appendChild(r,t);break;case 2:s.insertBefore(r,t,o);break;case 3:s.removeChild(r,t);break;case 0:i.push(t)}}function Et(e){if(":"===e[0]){var t=e.match(ka);return[t[1],t[2]]}return["",e]}function St(e){for(var t=0,n=0;n<e.length;n++)t|=e[n].flags;return t}function Ot(e,t){for(var n="",r=0;r<2*e;r+=2)n=n+t[r]+Tt(t[r+1]);return n+t[2*e]}function Pt(e,t,n,r,o,i,s,a,u,c,l,p,h,f,d,y,v,m,g,_){switch(e){case 1:return t+Tt(n)+r;case 2:return t+Tt(n)+r+Tt(o)+i;case 3:return t+Tt(n)+r+Tt(o)+i+Tt(s)+a;case 4:return t+Tt(n)+r+Tt(o)+i+Tt(s)+a+Tt(u)+c;case 5:return t+Tt(n)+r+Tt(o)+i+Tt(s)+a+Tt(u)+c+Tt(l)+p;case 6:return t+Tt(n)+r+Tt(o)+i+Tt(s)+a+Tt(u)+c+Tt(l)+p+Tt(h)+f;case 7:return t+Tt(n)+r+Tt(o)+i+Tt(s)+a+Tt(u)+c+Tt(l)+p+Tt(h)+f+Tt(d)+y;case 8:return t+Tt(n)+r+Tt(o)+i+Tt(s)+a+Tt(u)+c+Tt(l)+p+Tt(h)+f+Tt(d)+y+Tt(v)+m;case 9:return t+Tt(n)+r+Tt(o)+i+Tt(s)+a+Tt(u)+c+Tt(l)+p+Tt(h)+f+Tt(d)+y+Tt(v)+m+Tt(g)+_;default:throw new Error("Does not support more than 9 expressions")}}function Tt(e){return null!=e?e.toString():""}function Nt(e,t,n,r,o,i){e|=1;var s=ft(t),a=s.matchedQueries,u=s.references;return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:e,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:a,matchedQueryIds:s.matchedQueryIds,references:u,ngContentIndex:n,childCount:r,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:i?vt(i):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:o||Ta},provider:null,text:null,query:null,ngContent:null}}function It(e,t,n,r,o,i,s,a,u,c,l,p){void 0===s&&(s=[]),c||(c=Ta);var h=ft(n),f=h.matchedQueries,d=h.references,y=h.matchedQueryIds,v=null,m=null;i&&(D=Et(i),v=D[0],m=D[1]),a=a||[];for(var g=new Array(a.length),_=0;_<a.length;_++){var b=a[_],w=b[0],C=b[1],E=b[2],S=Et(C),O=S[0],P=S[1],T=void 0,N=void 0;switch(15&w){case 4:N=E;break;case 1:case 8:T=E}g[_]={flags:w,ns:O,name:P,nonMinifiedName:P,securityContext:T,suffix:N}}u=u||[];for(var I=new Array(u.length),_=0;_<u.length;_++){var A=u[_],R=A[0],x=A[1];I[_]={type:0,target:R,eventName:x,propName:null}}s=s||[];var k=s.map(function(e){var t=e[0],n=e[1],r=Et(t);return[r[0],r[1],n]});return p=$e(p),l&&(t|=33554432),t|=1,{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:f,matchedQueryIds:y,references:d,ngContentIndex:r,childCount:o,bindings:g,bindingFlags:St(g),outputs:I,element:{ns:v,name:m,attrs:k,template:null,componentProvider:null,componentView:l||null,componentRendererType:p,publicProviders:null,allProviders:null,handleEvent:c||Ta},provider:null,text:null,query:null,ngContent:null};var D}function At(e,t,n){var r,o=n.element,i=e.root.selectorOrNode,s=e.renderer;if(e.parent||!i){r=o.name?s.createElement(o.name,o.ns):s.createComment("");var a=yt(e,t,n);a&&s.appendChild(a,r)}else r=s.selectRootElement(i);if(o.attrs)for(var u=0;u<o.attrs.length;u++){var c=o.attrs[u],l=c[0],p=c[1],h=c[2];s.setAttribute(r,p,h,l)}return r}function Rt(e,t,n,r){for(var o=0;o<n.outputs.length;o++){var i=n.outputs[o],s=xt(e,n.nodeIndex,ct(i.target,i.eventName)),a=i.target,u=e;"component"===i.target&&(a=null,u=t);var c=u.renderer.listen(a||r,i.eventName,s);e.disposables[n.outputIndex+o]=c}}function xt(e,t,n){return function(r){try{return it(e,t,n,r)}catch(t){e.root.errorHandler.handleError(t)}}}function kt(e,t,n,r,o,i,s,a,u,c,l,p){var h=t.bindings.length,f=!1;return h>0&&Mt(e,t,0,n)&&(f=!0),h>1&&Mt(e,t,1,r)&&(f=!0),h>2&&Mt(e,t,2,o)&&(f=!0),h>3&&Mt(e,t,3,i)&&(f=!0),h>4&&Mt(e,t,4,s)&&(f=!0),h>5&&Mt(e,t,5,a)&&(f=!0),h>6&&Mt(e,t,6,u)&&(f=!0),h>7&&Mt(e,t,7,c)&&(f=!0),h>8&&Mt(e,t,8,l)&&(f=!0),h>9&&Mt(e,t,9,p)&&(f=!0),f}function Dt(e,t,n){for(var r=!1,o=0;o<n.length;o++)Mt(e,t,o,n[o])&&(r=!0);return r}function Mt(e,t,n,r){if(!tt(e,t,n,r))return!1;var o=t.bindings[n],i=He(e,t.nodeIndex),s=i.renderElement,a=o.name;switch(15&o.flags){case 1:Ft(e,o,s,o.ns,a,r);break;case 2:jt(e,s,a,r);break;case 4:Lt(e,o,s,a,r);break;case 8:Vt(33554432&t.flags&&32&o.flags?i.componentView:e,o,s,a,r)}return!0}function Ft(e,t,n,r,o,i){var s=t.securityContext,a=s?e.root.sanitizer.sanitize(s,i):i;a=null!=a?a.toString():null;var u=e.renderer;null!=i?u.setAttribute(n,o,a,r):u.removeAttribute(n,o,r)}function jt(e,t,n,r){var o=e.renderer;r?o.addClass(t,n):o.removeClass(t,n)}function Lt(e,t,n,r,o){var i=e.root.sanitizer.sanitize(Ea.STYLE,o);if(null!=i){i=i.toString();var s=t.suffix;null!=s&&(i+=s)}else i=null;var a=e.renderer;null!=i?a.setStyle(n,r,i):a.removeStyle(n,r)}function Vt(e,t,n,r,o){var i=t.securityContext,s=i?e.root.sanitizer.sanitize(i,o):o;e.renderer.setProperty(n,r,s)}function Ht(e,t,n,r){return{index:-1,deps:dt(r),flags:e,token:t,value:n}}function Bt(e){for(var t={},n=0;n<e.length;n++){var r=e[n];r.index=n,t[Ye(r.token)]=r}return{factory:null,providersByKey:t,providers:e}}function qt(e){for(var t=e._def,n=e._providers=new Array(t.providers.length),r=0;r<t.providers.length;r++){var o=t.providers[r];4096&o.flags||(n[r]=Ut(e,o))}}function Wt(e,t,n){if(void 0===n&&(n=mi.THROW_IF_NOT_FOUND),8&t.flags)return t.token;if(2&t.flags&&(n=null),1&t.flags)return e._parent.get(t.token,n);var r=t.tokenKey;switch(r){case ja:case La:return e}var o=e._def.providersByKey[r];if(o){var i=e._providers[o.index];return void 0===i&&(i=e._providers[o.index]=Ut(e,o)),i===Fa?void 0:i}return e._parent.get(t.token,n)}function Ut(e,t){var n;switch(201347067&t.flags){case 512:n=zt(e,t.value,t.deps);break;case 1024:n=Gt(e,t.value,t.deps);break;case 2048:n=Wt(e,t.deps[0]);break;case 256:n=t.value}return void 0===n?Fa:n}function zt(e,t,n){var r=n.length;switch(r){case 0:return new t;case 1:return new t(Wt(e,n[0]));case 2:return new t(Wt(e,n[0]),Wt(e,n[1]));case 3:return new t(Wt(e,n[0]),Wt(e,n[1]),Wt(e,n[2]));default:for(var o=new Array(r),i=0;i<r;i++)o[i]=Wt(e,n[i]);return new(t.bind.apply(t,[void 0].concat(o)))}}function Gt(e,t,n){var r=n.length;switch(r){case 0:return t();case 1:return t(Wt(e,n[0]));case 2:return t(Wt(e,n[0]),Wt(e,n[1]));case 3:return t(Wt(e,n[0]),Wt(e,n[1]),Wt(e,n[2]));default:for(var o=Array(r),i=0;i<r;i++)o[i]=Wt(e,n[i]);return t.apply(void 0,o)}}function Qt(e,t){for(var n=e._def,r=0;r<n.providers.length;r++){if(131072&n.providers[r].flags){var o=e._providers[r];o&&o!==Fa&&o.ngOnDestroy()}}}function Kt(e,t,n,r){var o=t.viewContainer._embeddedViews;null!==n&&void 0!==n||(n=o.length),r.viewContainerParent=e,nn(o,n,r),Jt(t,r),Pa.dirtyParentQueries(r),en(t,n>0?o[n-1]:null,r)}function Jt(e,t){var n=st(t);if(n&&n!==e&&!(16&t.state)){t.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(t),Yt(t.parent.def,t.parentNodeDef)}}function Yt(e,t){if(!(4&t.flags)){e.nodeFlags|=4,t.flags|=4;for(var n=t.parent;n;)n.childFlags|=4,n=n.parent}}function Xt(e,t){var n=e.viewContainer._embeddedViews;if((null==t||t>=n.length)&&(t=n.length-1),t<0)return null;var r=n[t];return r.viewContainerParent=null,rn(n,t),Pa.dirtyParentQueries(r),tn(r),r}function Zt(e){if(16&e.state){var t=st(e);if(t){var n=t.template._projectedViews;n&&(rn(n,n.indexOf(e)),Pa.dirtyParentQueries(e))}}}function $t(e,t,n){var r=e.viewContainer._embeddedViews,o=r[t];return rn(r,t),null==n&&(n=r.length),nn(r,n,o),Pa.dirtyParentQueries(o),tn(o),en(e,n>0?r[n-1]:null,o),o}function en(e,t,n){var r=t?ut(t,t.def.lastRenderRootNode):e.renderElement;gt(n,2,n.renderer.parentNode(r),n.renderer.nextSibling(r),void 0)}function tn(e){gt(e,3,null,null,void 0)}function nn(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function rn(e,t){t>=e.length-1?e.pop():e.splice(t,1)}function on(e,t,n,r,o,i){return new Ha(e,t,n,r,o,i)}function sn(e){return e.viewDefFactory}function an(e,t,n){return new qa(e,t,n)}function un(e){return new Wa(e)}function cn(e,t){return new Ua(e,t)}function ln(e,t){return new za(e,t)}function pn(e,t){var n=e.def.nodes[t];if(1&n.flags){var r=He(e,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return Ve(e,n.nodeIndex).renderText;if(20240&n.flags)return Be(e,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+t)}function hn(e){return new Ga(e.renderer)}function fn(e,t,n,r){return new Qa(e,t,n,r)}function dn(e,t,n,r,o,i,s,a){var u=[];if(s)for(var c in s){var l=s[c],p=l[0],h=l[1];u[p]={flags:8,name:c,nonMinifiedName:h,ns:null,securityContext:null,suffix:null}}var f=[];if(a)for(var d in a)f.push({type:1,propName:d,target:null,eventName:a[d]});return t|=16384,mn(e,t,n,r,o,o,i,u,f)}function yn(e,t,n){return e|=16,mn(-1,e,null,0,t,t,n)}function vn(e,t,n,r,o){return mn(-1,e,t,0,n,r,o)}function mn(e,t,n,r,o,i,s,a,u){var c=ft(n),l=c.matchedQueries,p=c.references,h=c.matchedQueryIds;u||(u=[]),a||(a=[]);var f=dt(s);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:l,matchedQueryIds:h,references:p,ngContentIndex:-1,childCount:r,bindings:a,bindingFlags:St(a),outputs:u,element:null,provider:{token:o,value:i,deps:f},text:null,query:null,ngContent:null}}function gn(e,t){return Sn(e,t)}function _n(e,t){for(var n=e;n.parent&&!lt(n);)n=n.parent;return On(n.parent,at(n),!0,t.provider.value,t.provider.deps)}function bn(e,t){var n=(32768&t.flags)>0,r=On(e,t.parent,n,t.provider.value,t.provider.deps);if(t.outputs.length)for(var o=0;o<t.outputs.length;o++){var i=t.outputs[o],s=r[i.propName].subscribe(wn(e,t.parent.nodeIndex,i.eventName));e.disposables[t.outputIndex+o]=s.unsubscribe.bind(s)}return r}function wn(e,t,n){return function(r){try{return it(e,t,n,r)}catch(t){e.root.errorHandler.handleError(t)}}}function Cn(e,t,n,r,o,i,s,a,u,c,l,p){var h=Be(e,t.nodeIndex),f=h.instance,d=!1,y=void 0,v=t.bindings.length;return v>0&&et(e,t,0,n)&&(d=!0,y=In(e,h,t,0,n,y)),v>1&&et(e,t,1,r)&&(d=!0,y=In(e,h,t,1,r,y)),v>2&&et(e,t,2,o)&&(d=!0,y=In(e,h,t,2,o,y)),v>3&&et(e,t,3,i)&&(d=!0,y=In(e,h,t,3,i,y)),v>4&&et(e,t,4,s)&&(d=!0,y=In(e,h,t,4,s,y)),v>5&&et(e,t,5,a)&&(d=!0,y=In(e,h,t,5,a,y)),v>6&&et(e,t,6,u)&&(d=!0,y=In(e,h,t,6,u,y)),v>7&&et(e,t,7,c)&&(d=!0,y=In(e,h,t,7,c,y)),v>8&&et(e,t,8,l)&&(d=!0,y=In(e,h,t,8,l,y)),v>9&&et(e,t,9,p)&&(d=!0,y=In(e,h,t,9,p,y)),y&&f.ngOnChanges(y),2&e.state&&65536&t.flags&&f.ngOnInit(),262144&t.flags&&f.ngDoCheck(),d}function En(e,t,n){for(var r=Be(e,t.nodeIndex),o=r.instance,i=!1,s=void 0,a=0;a<n.length;a++)et(e,t,a,n[a])&&(i=!0,s=In(e,r,t,a,n[a],s));return s&&o.ngOnChanges(s),2&e.state&&65536&t.flags&&o.ngOnInit(),262144&t.flags&&o.ngDoCheck(),i}function Sn(e,t){var n=(8192&t.flags)>0,r=t.provider;switch(201347067&t.flags){case 512:return On(e,t.parent,n,r.value,r.deps);case 1024:return Pn(e,t.parent,n,r.value,r.deps);case 2048:return Tn(e,t.parent,n,r.deps[0]);case 256:return r.value}}function On(e,t,n,r,o){var i=o.length;switch(i){case 0:return new r;case 1:return new r(Tn(e,t,n,o[0]));case 2:return new r(Tn(e,t,n,o[0]),Tn(e,t,n,o[1]));case 3:return new r(Tn(e,t,n,o[0]),Tn(e,t,n,o[1]),Tn(e,t,n,o[2]));default:for(var s=new Array(i),a=0;a<i;a++)s[a]=Tn(e,t,n,o[a]);return new(r.bind.apply(r,[void 0].concat(s)))}}function Pn(e,t,n,r,o){var i=o.length;switch(i){case 0:return r();case 1:return r(Tn(e,t,n,o[0]));case 2:return r(Tn(e,t,n,o[0]),Tn(e,t,n,o[1]));case 3:return r(Tn(e,t,n,o[0]),Tn(e,t,n,o[1]),Tn(e,t,n,o[2]));default:for(var s=Array(i),a=0;a<i;a++)s[a]=Tn(e,t,n,o[a]);return r.apply(void 0,s)}}function Tn(e,t,n,r,o){if(void 0===o&&(o=mi.THROW_IF_NOT_FOUND),8&r.flags)return r.token;var i=e;2&r.flags&&(o=null);var s=r.tokenKey;for(s===$a&&(n=!(!t||!t.element.componentView)),t&&1&r.flags&&(n=!1,t=t.parent);e;){if(t)switch(s){case Ka:var a=Nn(e,t,n);return hn(a);case Ja:var a=Nn(e,t,n);return a.renderer;case Ya:return new Fs(He(e,t.nodeIndex).renderElement);case Xa:return He(e,t.nodeIndex).viewContainer;case Za:if(t.element.template)return He(e,t.nodeIndex).template;break;case $a:return un(Nn(e,t,n));case eu:return ln(e,t);default:var u=(n?t.element.allProviders:t.element.publicProviders)[s];if(u){var c=Be(e,u.nodeIndex);return c||(c={instance:Sn(e,u)},e.nodes[u.nodeIndex]=c),c.instance}}n=lt(e),t=at(e),e=e.parent}var l=i.root.injector.get(r.token,tu);return l!==tu||o===tu?l:i.root.ngModule.injector.get(r.token,o)}function Nn(e,t,n){var r;if(n)r=He(e,t.nodeIndex).componentView;else for(r=e;r.parent&&!lt(r);)r=r.parent;return r}function In(e,t,n,r,o,i){if(32768&n.flags){var s=He(e,n.parent.nodeIndex).componentView;2&s.def.flags&&(s.state|=8)}var a=n.bindings[r],u=a.name;if(t.instance[u]=o,524288&n.flags){i=i||{};var c=e.oldValues[n.bindingIndex+r];c instanceof Zs&&(c=c.wrapped);i[n.bindings[r].nonMinifiedName]=new ea(c,o,0!=(2&e.state))}return e.oldValues[n.bindingIndex+r]=o,i}function An(e,t){if(e.def.nodeFlags&t)for(var n=e.def.nodes,r=0;r<n.length;r++){var o=n[r],i=o.parent;for(!i&&o.flags&t&&xn(e,r,o.flags&t),0==(o.childFlags&t)&&(r+=o.childCount);i&&1&i.flags&&r===i.nodeIndex+i.childCount;)i.directChildFlags&t&&Rn(e,i,t),i=i.parent}}function Rn(e,t,n){for(var r=t.nodeIndex+1;r<=t.nodeIndex+t.childCount;r++){var o=e.def.nodes[r];o.flags&n&&xn(e,r,o.flags&n),r+=o.childCount}}function xn(e,t,n){var r=Be(e,t);if(r){var o=r.instance;o&&(Pa.setCurrentNode(e,t),1048576&n&&o.ngAfterContentInit(),2097152&n&&o.ngAfterContentChecked(),4194304&n&&o.ngAfterViewInit(),8388608&n&&o.ngAfterViewChecked(),131072&n&&o.ngOnDestroy())}}function kn(e,t,n){var r=[];for(var o in n){var i=n[o];r.push({propName:o,bindingType:i})}return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,ngContentIndex:-1,matchedQueries:{},matchedQueryIds:0,references:{},childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:{id:t,filterId:ht(t),bindings:r},ngContent:null}}function Dn(){return new Vs}function Mn(e){for(var t=e.def.nodeMatchedQueries;e.parent&&pt(e);){var n=e.parentNodeDef;e=e.parent;for(var r=n.nodeIndex+n.childCount,o=0;o<=r;o++){var i=e.def.nodes[o];67108864&i.flags&&536870912&i.flags&&(i.query.filterId&t)===i.query.filterId&&We(e,o).setDirty(),!(1&i.flags&&o+i.childCount<n.nodeIndex)&&67108864&i.childFlags&&536870912&i.childFlags||(o+=i.childCount)}}if(134217728&e.def.nodeFlags)for(var o=0;o<e.def.nodes.length;o++){var i=e.def.nodes[o];134217728&i.flags&&536870912&i.flags&&We(e,o).setDirty(),o+=i.childCount}}function Fn(e,t){var n=We(e,t.nodeIndex);if(n.dirty){var r,o=void 0;if(67108864&t.flags){var i=t.parent.parent;o=jn(e,i.nodeIndex,i.nodeIndex+i.childCount,t.query,[]),r=Be(e,t.parent.nodeIndex).instance}else 134217728&t.flags&&(o=jn(e,0,e.def.nodes.length-1,t.query,[]),r=e.component);n.reset(o);for(var s=t.query.bindings,a=!1,u=0;u<s.length;u++){var c=s[u],l=void 0;switch(c.bindingType){case 0:l=n.first;break;case 1:l=n,a=!0}r[c.propName]=l}a&&n.notifyOnChanges()}}function jn(e,t,n,r,o){for(var i=t;i<=n;i++){var s=e.def.nodes[i],a=s.matchedQueries[r.id];if(null!=a&&o.push(Ln(e,s,a)),1&s.flags&&s.element.template&&(s.element.template.nodeMatchedQueries&r.filterId)===r.filterId){var u=He(e,i);if((s.childMatchedQueries&r.filterId)===r.filterId&&(jn(e,i+1,i+s.childCount,r,o),i+=s.childCount),16777216&s.flags)for(var c=u.viewContainer._embeddedViews,l=0;l<c.length;l++){var p=c[l],h=st(p);h&&h===u&&jn(p,0,p.def.nodes.length-1,r,o)}var f=u.template._projectedViews;if(f)for(var l=0;l<f.length;l++){var d=f[l];jn(d,0,d.def.nodes.length-1,r,o)}}(s.childMatchedQueries&r.filterId)!==r.filterId&&(i+=s.childCount)}return o}function Ln(e,t,n){if(null!=n)switch(n){case 1:return He(e,t.nodeIndex).renderElement;case 0:return new Fs(He(e,t.nodeIndex).renderElement);case 2:return He(e,t.nodeIndex).template;case 3:return He(e,t.nodeIndex).viewContainer;case 4:return Be(e,t.nodeIndex).instance}}function Vn(e,t){return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:8,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:e,childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:null,ngContent:{index:t}}}function Hn(e,t,n){var r=yt(e,t,n);if(r){bt(e,n.ngContent.index,1,r,null,void 0)}}function Bn(e,t){return Un(128,e,new Array(t+1))}function qn(e,t){return Un(32,e,new Array(t))}function Wn(e,t){for(var n=Object.keys(t),r=n.length,o=new Array(r),i=0;i<r;i++){var s=n[i];o[t[s]]=s}return Un(64,e,o)}function Un(e,t,n){for(var r=new Array(n.length),o=0;o<n.length;o++){var i=n[o];r[o]={flags:8,name:i,ns:null,nonMinifiedName:i,securityContext:null,suffix:null}}return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:-1,childCount:0,bindings:r,bindingFlags:St(r),outputs:[],element:null,provider:null,text:null,query:null,ngContent:null}}function zn(e,t){return{value:void 0}}function Gn(e,t,n,r,o,i,s,a,u,c,l,p){var h=t.bindings,f=!1,d=h.length;if(d>0&&tt(e,t,0,n)&&(f=!0),d>1&&tt(e,t,1,r)&&(f=!0),d>2&&tt(e,t,2,o)&&(f=!0),d>3&&tt(e,t,3,i)&&(f=!0),d>4&&tt(e,t,4,s)&&(f=!0),d>5&&tt(e,t,5,a)&&(f=!0),d>6&&tt(e,t,6,u)&&(f=!0),d>7&&tt(e,t,7,c)&&(f=!0),d>8&&tt(e,t,8,l)&&(f=!0),d>9&&tt(e,t,9,p)&&(f=!0),f){var y=qe(e,t.nodeIndex),v=void 0;switch(201347067&t.flags){case 32:v=new Array(h.length),d>0&&(v[0]=n),d>1&&(v[1]=r),d>2&&(v[2]=o),d>3&&(v[3]=i),d>4&&(v[4]=s),d>5&&(v[5]=a),d>6&&(v[6]=u),d>7&&(v[7]=c),d>8&&(v[8]=l),d>9&&(v[9]=p);break;case 64:v={},d>0&&(v[h[0].name]=n),d>1&&(v[h[1].name]=r),d>2&&(v[h[2].name]=o),d>3&&(v[h[3].name]=i),d>4&&(v[h[4].name]=s),d>5&&(v[h[5].name]=a),d>6&&(v[h[6].name]=u),d>7&&(v[h[7].name]=c),d>8&&(v[h[8].name]=l),d>9&&(v[h[9].name]=p);break;case 128:var m=n;switch(d){case 1:v=m.transform(n);break;case 2:v=m.transform(r);break;case 3:v=m.transform(r,o);break;case 4:v=m.transform(r,o,i);break;case 5:v=m.transform(r,o,i,s);break;case 6:v=m.transform(r,o,i,s,a);break;case 7:v=m.transform(r,o,i,s,a,u);break;case 8:v=m.transform(r,o,i,s,a,u,c);break;case 9:v=m.transform(r,o,i,s,a,u,c,l);break;case 10:v=m.transform(r,o,i,s,a,u,c,l,p)}}y.value=v}return f}function Qn(e,t,n){for(var r=t.bindings,o=!1,i=0;i<n.length;i++)tt(e,t,i,n[i])&&(o=!0);if(o){var s=qe(e,t.nodeIndex),a=void 0;switch(201347067&t.flags){case 32:a=n;break;case 64:a={};for(var i=0;i<n.length;i++)a[r[i].name]=n[i];break;case 128:var u=n[0],c=n.slice(1);a=u.transform.apply(u,c)}s.value=a}return o}function Kn(e,t,n){for(var r=new Array(n.length-1),o=1;o<n.length;o++)r[o-1]={flags:8,name:null,ns:null,nonMinifiedName:null,securityContext:null,suffix:n[o]};return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:2,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:r,bindingFlags:8,outputs:[],element:null,provider:null,text:{prefix:n[0]},query:null,ngContent:null}}function Jn(e,t,n){var r,o=e.renderer;r=o.createText(n.text.prefix);var i=yt(e,t,n);return i&&o.appendChild(i,r),{renderText:r}}function Yn(e,t,n,r,o,i,s,a,u,c,l,p){var h=!1,f=t.bindings,d=f.length;if(d>0&&tt(e,t,0,n)&&(h=!0),d>1&&tt(e,t,1,r)&&(h=!0),d>2&&tt(e,t,2,o)&&(h=!0),d>3&&tt(e,t,3,i)&&(h=!0),d>4&&tt(e,t,4,s)&&(h=!0),d>5&&tt(e,t,5,a)&&(h=!0),d>6&&tt(e,t,6,u)&&(h=!0),d>7&&tt(e,t,7,c)&&(h=!0),d>8&&tt(e,t,8,l)&&(h=!0),d>9&&tt(e,t,9,p)&&(h=!0),h){var y=t.text.prefix;d>0&&(y+=Zn(n,f[0])),d>1&&(y+=Zn(r,f[1])),d>2&&(y+=Zn(o,f[2])),d>3&&(y+=Zn(i,f[3])),d>4&&(y+=Zn(s,f[4])),d>5&&(y+=Zn(a,f[5])),d>6&&(y+=Zn(u,f[6])),d>7&&(y+=Zn(c,f[7])),d>8&&(y+=Zn(l,f[8])),d>9&&(y+=Zn(p,f[9]));var v=Ve(e,t.nodeIndex).renderText;e.renderer.setValue(v,y)}return h}function Xn(e,t,n){for(var r=t.bindings,o=!1,i=0;i<n.length;i++)tt(e,t,i,n[i])&&(o=!0);if(o){for(var s="",i=0;i<n.length;i++)s+=Zn(n[i],r[i]);s=t.text.prefix+s;var a=Ve(e,t.nodeIndex).renderText;e.renderer.setValue(a,s)}return o}function Zn(e,t){return(null!=e?e.toString():"")+t.suffix}function $n(e,t,n,r){for(var o=0,i=0,s=0,a=0,u=0,c=null,l=null,p=!1,h=!1,f=null,d=0;d<t.length;d++){var y=t[d];if(y.nodeIndex=d,y.parent=c,y.bindingIndex=o,y.outputIndex=i,y.renderParent=l,s|=y.flags,u|=y.matchedQueryIds,y.element){var v=y.element;v.publicProviders=c?c.element.publicProviders:Object.create(null),v.allProviders=v.publicProviders,p=!1,h=!1,y.element.template&&(u|=y.element.template.nodeMatchedQueries)}if(tr(c,y,t.length),o+=y.bindings.length,i+=y.outputs.length,!l&&3&y.flags&&(f=y),20224&y.flags){p||(p=!0,c.element.publicProviders=Object.create(c.element.publicProviders),c.element.allProviders=c.element.publicProviders);var m=0!=(8192&y.flags),g=0!=(32768&y.flags);!m||g?c.element.publicProviders[Ye(y.provider.token)]=y:(h||(h=!0,c.element.allProviders=Object.create(c.element.publicProviders)),c.element.allProviders[Ye(y.provider.token)]=y),g&&(c.element.componentProvider=y)}if(c?(c.childFlags|=y.flags,c.directChildFlags|=y.flags,c.childMatchedQueries|=y.matchedQueryIds,y.element&&y.element.template&&(c.childMatchedQueries|=y.element.template.nodeMatchedQueries)):a|=y.flags,y.childCount>0)c=y,er(y)||(l=y);else for(;c&&d===c.nodeIndex+c.childCount;){var _=c.parent;_&&(_.childFlags|=c.childFlags,_.childMatchedQueries|=c.childMatchedQueries),c=_,l=c&&er(c)?c.renderParent:c}}var b=function(e,n,r,o){return t[n].element.handleEvent(e,r,o)};return{factory:null,nodeFlags:s,rootNodeFlags:a,nodeMatchedQueries:u,flags:e,nodes:t,updateDirectives:n||Ta,updateRenderer:r||Ta,handleEvent:b,bindingCount:o,outputCount:i,lastRenderRootNode:f}}function er(e){return 0!=(1&e.flags)&&null===e.element.name}function tr(e,t,n){var r=t.element&&t.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+t.nodeIndex+"!")}if(20224&t.flags){if(0==(1&(e?e.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index "+t.nodeIndex+"!")}if(t.query){if(67108864&t.flags&&(!e||0==(16384&e.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+t.nodeIndex+"!");if(134217728&t.flags&&e)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+t.nodeIndex+"!")}if(t.childCount){var o=e?e.nodeIndex+e.childCount:n-1;if(t.nodeIndex<=o&&t.nodeIndex+t.childCount>o)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+t.nodeIndex+"!")}}function nr(e,t,n,r){var o=ir(e.root,e.renderer,e,t,n);return sr(o,e.component,r),ar(o),o}function rr(e,t,n){var r=ir(e,e.renderer,null,null,t);return sr(r,n,n),ar(r),r}function or(e,t,n,r){var o,i=t.element.componentRendererType;return o=i?e.root.rendererFactory.createRenderer(r,i):e.root.renderer,ir(e.root,o,e,t.element.componentProvider,n)}function ir(e,t,n,r,o){var i=new Array(o.nodes.length),s=o.outputCount?new Array(o.outputCount):null;return{def:o,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:i,state:13,root:e,renderer:t,oldValues:new Array(o.bindingCount),disposables:s}}function sr(e,t,n){e.component=t,e.context=n}function ar(e){var t;if(lt(e)){var n=e.parentNodeDef;t=He(e.parent,n.parent.nodeIndex).renderElement}for(var r=e.def,o=e.nodes,i=0;i<r.nodes.length;i++){var s=r.nodes[i];Pa.setCurrentNode(e,i);var a=void 0;switch(201347067&s.flags){case 1:var u=At(e,t,s),c=void 0;if(33554432&s.flags){var l=vt(s.element.componentView);c=Pa.createComponentView(e,s,l,u)}Rt(e,c,s,u),a={renderElement:u,componentView:c,viewContainer:null,template:s.element.template?cn(e,s):void 0},16777216&s.flags&&(a.viewContainer=an(e,s,a));break;case 2:a=Jn(e,t,s);break;case 512:case 1024:case 2048:case 256:if(!((a=o[i])||4096&s.flags)){var p=gn(e,s);a={instance:p}}break;case 16:var p=_n(e,s);a={instance:p};break;case 16384:if(!(a=o[i])){var p=bn(e,s);a={instance:p}}if(32768&s.flags){sr(He(e,s.parent.nodeIndex).componentView,a.instance,a.instance)}break;case 32:case 64:case 128:a=zn(e,s);break;case 67108864:case 134217728:a=Dn();break;case 8:Hn(e,t,s),a=void 0}o[i]=a}br(e,nu.CreateViewNodes),Sr(e,201326592,268435456,0)}function ur(e){pr(e),Pa.updateDirectives(e,1),wr(e,nu.CheckNoChanges),Pa.updateRenderer(e,1),br(e,nu.CheckNoChanges),e.state&=-97}function cr(e){1&e.state?(e.state&=-2,e.state|=2):e.state&=-3,pr(e),Pa.updateDirectives(e,0),wr(e,nu.CheckAndUpdate),Sr(e,67108864,536870912,0),An(e,2097152|(2&e.state?1048576:0)),Pa.updateRenderer(e,0),br(e,nu.CheckAndUpdate),Sr(e,134217728,536870912,0),An(e,8388608|(2&e.state?4194304:0)),2&e.def.flags&&(e.state&=-9),e.state&=-97}function lr(e,t,n,r,o,i,s,a,u,c,l,p,h){return 0===n?hr(e,t,r,o,i,s,a,u,c,l,p,h):fr(e,t,r)}function pr(e){var t=e.def;if(4&t.nodeFlags)for(var n=0;n<t.nodes.length;n++){var r=t.nodes[n];if(4&r.flags){var o=He(e,n).template._projectedViews;if(o)for(var i=0;i<o.length;i++){var s=o[i];s.state|=32,ot(s,e)}}else 0==(4&r.childFlags)&&(n+=r.childCount)}}function hr(e,t,n,r,o,i,s,a,u,c,l,p){switch(201347067&t.flags){case 1:return kt(e,t,n,r,o,i,s,a,u,c,l,p);case 2:return Yn(e,t,n,r,o,i,s,a,u,c,l,p);case 16384:return Cn(e,t,n,r,o,i,s,a,u,c,l,p);case 32:case 64:case 128:return Gn(e,t,n,r,o,i,s,a,u,c,l,p);default:throw"unreachable"}}function fr(e,t,n){switch(201347067&t.flags){case 1:return Dt(e,t,n);case 2:return Xn(e,t,n);case 16384:return En(e,t,n);case 32:case 64:case 128:return Qn(e,t,n);default:throw"unreachable"}}function dr(e,t,n,r,o,i,s,a,u,c,l,p,h){return 0===n?yr(e,t,r,o,i,s,a,u,c,l,p,h):vr(e,t,r),!1}function yr(e,t,n,r,o,i,s,a,u,c,l,p){var h=t.bindings.length;h>0&&nt(e,t,0,n),h>1&&nt(e,t,1,r),h>2&&nt(e,t,2,o),h>3&&nt(e,t,3,i),h>4&&nt(e,t,4,s),h>5&&nt(e,t,5,a),h>6&&nt(e,t,6,u),h>7&&nt(e,t,7,c),h>8&&nt(e,t,8,l),h>9&&nt(e,t,9,p)}function vr(e,t,n){for(var r=0;r<n.length;r++)nt(e,t,r,n[r])}function mr(e,t){if(We(e,t.nodeIndex).dirty)throw Ue(Pa.createDebugContext(e,t.nodeIndex),"Query "+t.query.id+" not dirty","Query "+t.query.id+" dirty",0!=(1&e.state))}function gr(e){if(!(128&e.state)){if(wr(e,nu.Destroy),br(e,nu.Destroy),An(e,131072),e.disposables)for(var t=0;t<e.disposables.length;t++)e.disposables[t]();Zt(e),e.renderer.destroyNode&&_r(e),lt(e)&&e.renderer.destroy(),e.state|=128}}function _r(e){for(var t=e.def.nodes.length,n=0;n<t;n++){var r=e.def.nodes[n];1&r.flags?e.renderer.destroyNode(He(e,n).renderElement):2&r.flags?e.renderer.destroyNode(Ve(e,n).renderText):(67108864&r.flags||134217728&r.flags)&&We(e,n).destroy()}}function br(e,t){var n=e.def;if(33554432&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var o=n.nodes[r];33554432&o.flags?Cr(He(e,r).componentView,t):0==(33554432&o.childFlags)&&(r+=o.childCount)}}function wr(e,t){var n=e.def;if(16777216&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var o=n.nodes[r];if(16777216&o.flags)for(var i=He(e,r).viewContainer._embeddedViews,s=0;s<i.length;s++)Cr(i[s],t);else 0==(16777216&o.childFlags)&&(r+=o.childCount)}}function Cr(e,t){var n=e.state;switch(t){case nu.CheckNoChanges:0==(128&n)&&(12==(12&n)?ur(e):64&n&&Er(e,nu.CheckNoChangesProjectedViews));break;case nu.CheckNoChangesProjectedViews:0==(128&n)&&(32&n?ur(e):64&n&&Er(e,t));break;case nu.CheckAndUpdate:0==(128&n)&&(12==(12&n)?cr(e):64&n&&Er(e,nu.CheckAndUpdateProjectedViews));break;case nu.CheckAndUpdateProjectedViews:0==(128&n)&&(32&n?cr(e):64&n&&Er(e,t));break;case nu.Destroy:gr(e);break;case nu.CreateViewNodes:ar(e)}}function Er(e,t){wr(e,t),br(e,t)}function Sr(e,t,n,r){if(e.def.nodeFlags&t&&e.def.nodeFlags&n)for(var o=e.def.nodes.length,i=0;i<o;i++){var s=e.def.nodes[i];if(s.flags&t&&s.flags&n)switch(Pa.setCurrentNode(e,s.nodeIndex),r){case 0:Fn(e,s);break;case 1:mr(e,s)}s.childFlags&t&&s.childFlags&n||(i+=s.childCount)}}function Or(){if(!ru){ru=!0;var e=le()?Tr():Pr();Pa.setCurrentNode=e.setCurrentNode,Pa.createRootView=e.createRootView,Pa.createEmbeddedView=e.createEmbeddedView,Pa.createComponentView=e.createComponentView,Pa.createNgModuleRef=e.createNgModuleRef,Pa.overrideProvider=e.overrideProvider,Pa.clearProviderOverrides=e.clearProviderOverrides,Pa.checkAndUpdateView=e.checkAndUpdateView,Pa.checkNoChangesView=e.checkNoChangesView,Pa.destroyView=e.destroyView,Pa.resolveDep=Tn,Pa.createDebugContext=e.createDebugContext,Pa.handleEvent=e.handleEvent,Pa.updateDirectives=e.updateDirectives,Pa.updateRenderer=e.updateRenderer,Pa.dirtyParentQueries=Mn}}function Pr(){return{setCurrentNode:function(){},createRootView:Nr,createEmbeddedView:nr,createComponentView:or,createNgModuleRef:fn,overrideProvider:Ta,clearProviderOverrides:Ta,checkAndUpdateView:cr,checkNoChangesView:ur,destroyView:gr,createDebugContext:function(e,t){return new lu(e,t)},handleEvent:function(e,t,n,r){return e.def.handleEvent(e,t,n,r)},updateDirectives:function(e,t){return e.def.updateDirectives(0===t?Lr:Vr,e)},updateRenderer:function(e,t){return e.def.updateRenderer(0===t?Lr:Vr,e)}}}function Tr(){return{setCurrentNode:Wr,createRootView:Ir,createEmbeddedView:Rr,createComponentView:xr,createNgModuleRef:kr,overrideProvider:Dr,clearProviderOverrides:Mr,checkAndUpdateView:Hr,checkNoChangesView:Br,destroyView:qr,createDebugContext:function(e,t){return new lu(e,t)},handleEvent:Ur,updateDirectives:zr,updateRenderer:Gr}}function Nr(e,t,n,r,o,i){return rr(Ar(e,o,o.injector.get(ks),t,n),r,i)}function Ir(e,t,n,r,o,i){var s=o.injector.get(ks),a=Ar(e,o,new pu(s),t,n),u=Fr(r);return ro(iu.create,rr,null,[a,u,i])}function Ar(e,t,n,r,o){var i=t.injector.get(Sa),s=t.injector.get(Ci);return{ngModule:t,injector:e,projectableNodes:r,selectorOrNode:o,sanitizer:i,rendererFactory:n,renderer:n.createRenderer(null,null),errorHandler:s}}function Rr(e,t,n,r){var o=Fr(n);return ro(iu.create,nr,null,[e,t,o,r])}function xr(e,t,n,r){var o=Fr(n);return ro(iu.create,or,null,[e,t,o,r])}function kr(e,t,n,r){return fn(e,t,n,jr(r))}function Dr(e){ou.set(e.token,e)}function Mr(){ou.clear()}function Fr(e){if(0===ou.size)return e;var t=function(e){for(var t=[],n=null,r=0;r<e.nodes.length;r++){var o=e.nodes[r];1&o.flags&&(n=o),n&&3840&o.flags&&ou.has(o.provider.token)&&(t.push(n.nodeIndex),n=null)}return t}(e);if(0===t.length)return e;e=e.factory(function(){return Ta});for(var n=0;n<t.length;n++)!function(e,t){for(var n=t+1;n<e.nodes.length;n++){var r=e.nodes[n];if(1&r.flags)return;if(3840&r.flags){var o=r.provider,i=ou.get(o.token);i&&(r.flags=-3841&r.flags|i.flags,o.deps=dt(i.deps),o.value=i.value)}}}(e,t[n]);return e}function jr(e){var t=function(e){var t=!1,n=!1;return 0===ou.size?{hasOverrides:t,hasDeprecatedOverrides:n}:(e.providers.forEach(function(e){var r=ou.get(e.token);3840&e.flags&&r&&(t=!0,n=n||r.deprecatedBehavior)}),{hasOverrides:t,hasDeprecatedOverrides:n})}(e),n=t.hasOverrides,r=t.hasDeprecatedOverrides;return n?(e=e.factory(function(){return Ta}),function(e){for(var t=0;t<e.providers.length;t++){var n=e.providers[t];r&&(n.flags|=4096);var o=ou.get(n.token);o&&(n.flags=-3841&n.flags|o.flags,n.deps=dt(o.deps),n.value=o.value)}}(e),e):e}function Lr(e,t,n,r,o,i,s,a,u,c,l,p,h){var f=e.def.nodes[t];return lr(e,f,n,r,o,i,s,a,u,c,l,p,h),224&f.flags?qe(e,t).value:void 0}function Vr(e,t,n,r,o,i,s,a,u,c,l,p,h){var f=e.def.nodes[t];return dr(e,f,n,r,o,i,s,a,u,c,l,p,h),224&f.flags?qe(e,t).value:void 0}function Hr(e){return ro(iu.detectChanges,cr,null,[e])}function Br(e){return ro(iu.checkNoChanges,ur,null,[e])}function qr(e){return ro(iu.destroy,gr,null,[e])}function Wr(e,t){au=e,uu=t}function Ur(e,t,n,r){return Wr(e,t),ro(iu.handleEvent,e.def.handleEvent,null,[e,t,n,r])}function zr(e,t){function n(e,n,r){for(var o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];var s=e.def.nodes[n];return 0===t?Qr(e,s,r,o):Kr(e,s,r,o),16384&s.flags&&Wr(e,Zr(e,n)),224&s.flags?qe(e,s.nodeIndex).value:void 0}if(128&e.state)throw Je(iu[su]);return Wr(e,Zr(e,0)),e.def.updateDirectives(n,e)}function Gr(e,t){function n(e,n,r){for(var o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];var s=e.def.nodes[n];return 0===t?Qr(e,s,r,o):Kr(e,s,r,o),3&s.flags&&Wr(e,$r(e,n)),224&s.flags?qe(e,s.nodeIndex).value:void 0}if(128&e.state)throw Je(iu[su]);return Wr(e,$r(e,0)),e.def.updateRenderer(n,e)}function Qr(e,t,n,r){if(lr.apply(void 0,[e,t,n].concat(r))){var o=1===n?r[0]:r;if(16384&t.flags){for(var i={},s=0;s<t.bindings.length;s++){var a=t.bindings[s],u=o[s];8&a.flags&&(i[Jr(a.nonMinifiedName)]=Xr(u))}var c=t.parent,l=He(e,c.nodeIndex).renderElement;if(c.element.name)for(var p in i){var u=i[p];null!=u?e.renderer.setAttribute(l,p,u):e.renderer.removeAttribute(l,p)}else e.renderer.setValue(l,"bindings="+JSON.stringify(i,null,2))}}}function Kr(e,t,n,r){dr.apply(void 0,[e,t,n].concat(r))}function Jr(e){return"ng-reflect-"+(e=Yr(e.replace(/[$@]/g,"_")))}function Yr(e){return e.replace(cu,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return"-"+e[1].toLowerCase()})}function Xr(e){try{return null!=e?e.toString().slice(0,30):e}catch(e){return"[ERROR] Exception while trying to serialize the value"}}function Zr(e,t){for(var n=t;n<e.def.nodes.length;n++){var r=e.def.nodes[n];if(16384&r.flags&&r.bindings&&r.bindings.length)return n}return null}function $r(e,t){for(var n=t;n<e.def.nodes.length;n++){var r=e.def.nodes[n];if(3&r.flags&&r.bindings&&r.bindings.length)return n}return null}function eo(e,t){for(var n=-1,r=0;r<=t;r++){3&e.nodes[r].flags&&n++}return n}function to(e){for(;e&&!lt(e);)e=e.parent;return e.parent?He(e.parent,at(e).nodeIndex):null}function no(e,t,n){for(var r in t.references)n[r]=Ln(e,t,t.references[r])}function ro(e,t,n,r){var o=su,i=au,s=uu;try{su=e;var a=t.apply(n,r);return au=i,uu=s,su=o,a}catch(e){if(Ke(e)||!au)throw e;throw ze(e,oo())}}function oo(){return au?new lu(au,uu):null}function io(e){return Or(),Pa.overrideProvider(e)}function so(){return Or(),Pa.clearProviderOverrides()}function ao(e,t,n){return new fu(e,t,n)}function uo(e,t){return{type:7,name:e,definitions:t,options:{}}}function co(e,t){return void 0===t&&(t=null),{type:4,styles:t,timings:e}}function lo(e,t){return void 0===t&&(t=null),{type:3,steps:e,options:t}}function po(e,t){return void 0===t&&(t=null),{type:2,steps:e,options:t}}function ho(e){return{type:6,styles:e,offset:null}}function fo(e,t,n){return{type:0,name:e,styles:t,options:n}}function yo(e){return{type:5,steps:e}}function vo(e,t,n){return void 0===n&&(n=null),{type:1,expr:e,animation:t,options:n}}function mo(e,t){return uo(e,t)}function go(e,t){return co(e,t)}function _o(e){return lo(e)}function bo(e){return po(e)}function wo(e){return ho(e)}function Co(e,t){return fo(e,t)}function Eo(e){return yo(e)}function So(e,t){return vo(e,t)}n.d(t,"Class",function(){return c}),n.d(t,"createPlatform",function(){return pe}),n.d(t,"assertPlatform",function(){return fe}),n.d(t,"destroyPlatform",function(){return de}),n.d(t,"getPlatform",function(){return ye}),n.d(t,"PlatformRef",function(){return Os}),n.d(t,"ApplicationRef",function(){return Ts}),n.d(t,"enableProdMode",function(){return ce}),n.d(t,"isDevMode",function(){return le}),n.d(t,"createPlatformFactory",function(){return he}),n.d(t,"NgProbeToken",function(){return Ss}),n.d(t,"APP_ID",function(){return Bi}),n.d(t,"PACKAGE_ROOT_URL",function(){return Gi}),n.d(t,"PLATFORM_INITIALIZER",function(){return Wi}),n.d(t,"PLATFORM_ID",function(){return Ui}),n.d(t,"APP_BOOTSTRAP_LISTENER",function(){return zi}),n.d(t,"APP_INITIALIZER",function(){return Vi}),n.d(t,"ApplicationInitStatus",function(){return Hi}),n.d(t,"DebugElement",function(){return Ys}),n.d(t,"DebugNode",function(){return Js}),n.d(t,"asNativeElements",function(){return Ce}),n.d(t,"getDebugNode",function(){return Oe}),n.d(t,"Testability",function(){return vs}),n.d(t,"TestabilityRegistry",function(){return ms}),n.d(t,"setTestabilityGetter",function(){return ue}),n.d(t,"TRANSLATIONS",function(){return _a}),n.d(t,"TRANSLATIONS_FORMAT",function(){return ba}),n.d(t,"LOCALE_ID",function(){return ga}),n.d(t,"MissingTranslationStrategy",function(){return wa}),n.d(t,"ApplicationModule",function(){return Ca}),n.d(t,"wtfCreateScope",function(){return ls}),n.d(t,"wtfLeave",function(){return ps}),n.d(t,"wtfStartTimeRange",function(){return hs}),n.d(t,"wtfEndTimeRange",function(){return fs}),n.d(t,"Type",function(){return Pi}),n.d(t,"EventEmitter",function(){return ds}),n.d(t,"ErrorHandler",function(){return Ci}),n.d(t,"Sanitizer",function(){return Sa}),n.d(t,"SecurityContext",function(){return Ea}),n.d(t,"ANALYZE_FOR_ENTRY_COMPONENTS",function(){return Vo}),n.d(t,"Attribute",function(){return Ho}),n.d(t,"ContentChild",function(){return Wo}),n.d(t,"ContentChildren",function(){return qo}),n.d(t,"Query",function(){return Bo}),n.d(t,"ViewChild",function(){return zo}),n.d(t,"ViewChildren",function(){return Uo}),n.d(t,"Component",function(){return Jo}),n.d(t,"Directive",function(){return Ko}),n.d(t,"HostBinding",function(){return $o}),n.d(t,"HostListener",function(){return ei}),n.d(t,"Input",function(){return Xo}),n.d(t,"Output",function(){return Zo}),n.d(t,"Pipe",function(){return Yo}),n.d(t,"CUSTOM_ELEMENTS_SCHEMA",function(){return ti}),n.d(t,"NO_ERRORS_SCHEMA",function(){return ni}),n.d(t,"NgModule",function(){return ri}),n.d(t,"ViewEncapsulation",function(){return oi}),n.d(t,"Version",function(){return si}),n.d(t,"VERSION",function(){return ai}),n.d(t,"forwardRef",function(){return y}),n.d(t,"resolveForwardRef",function(){return v}),n.d(t,"Injector",function(){return mi}),n.d(t,"ReflectiveInjector",function(){return Fi}),n.d(t,"ResolvedReflectiveFactory",function(){return Di}),n.d(t,"ReflectiveKey",function(){return Ei}),n.d(t,"InjectionToken",function(){return Ro}),n.d(t,"OpaqueToken",function(){return Ao}),n.d(t,"Inject",function(){return ui}),n.d(t,"Optional",function(){return ci}),n.d(t,"Injectable",function(){return li}),n.d(t,"Self",function(){return pi}),n.d(t,"SkipSelf",function(){return hi}),n.d(t,"Host",function(){return fi}),n.d(t,"NgZone",function(){return ys}),n.d(t,"RenderComponentType",function(){return Is}),n.d(t,"Renderer",function(){return Rs}),n.d(t,"Renderer2",function(){return Ms}),n.d(t,"RendererFactory2",function(){return ks}),n.d(t,"RendererStyleFlags2",function(){return Ds}),n.d(t,"RootRenderer",function(){return xs}),n.d(t,"COMPILER_OPTIONS",function(){return Yi}),n.d(t,"Compiler",function(){return Ji}),n.d(t,"CompilerFactory",function(){return Xi}),n.d(t,"ModuleWithComponentFactories",function(){return Ki}),n.d(t,"ComponentFactory",function(){return $i}),n.d(t,"ComponentRef",function(){return Zi}),n.d(t,"ComponentFactoryResolver",function(){return ns}),n.d(t,"ElementRef",function(){return Fs}),n.d(t,"NgModuleFactory",function(){return us}),n.d(t,"NgModuleRef",function(){return as}),n.d(t,"NgModuleFactoryLoader",function(){return js}),n.d(t,"getModuleFactory",function(){return _e}),n.d(t,"QueryList",function(){return Vs}),n.d(t,"SystemJsNgModuleLoader",function(){return qs}),n.d(t,"SystemJsNgModuleLoaderConfig",function(){return Hs}),n.d(t,"TemplateRef",function(){return Ws}),n.d(t,"ViewContainerRef",function(){return Us}),n.d(t,"EmbeddedViewRef",function(){return Qs}),n.d(t,"ViewRef",function(){return Gs}),n.d(t,"ChangeDetectionStrategy",function(){return Go}),n.d(t,"ChangeDetectorRef",function(){return zs}),n.d(t,"DefaultIterableDiffer",function(){return ra}),n.d(t,"IterableDiffers",function(){return la}),n.d(t,"KeyValueDiffers",function(){return pa}),n.d(t,"SimpleChange",function(){return ea}),n.d(t,"WrappedValue",function(){return Zs}),n.d(t,"platformCore",function(){return ma}),n.d(t,"\u0275ALLOW_MULTIPLE_PLATFORMS",function(){return Es}),n.d(t,"\u0275APP_ID_RANDOM_PROVIDER",function(){return qi}),n.d(t,"\u0275ValueUnwrapper",function(){return $s}),n.d(t,"\u0275devModeEqual",function(){return Ne}),n.d(t,"\u0275isListLikeIterable",function(){return Ie}),n.d(t,"\u0275ChangeDetectorStatus",function(){return Qo}),n.d(t,"\u0275isDefaultChangeDetectionStrategy",function(){return d}),n.d(t,"\u0275Console",function(){return Qi}),n.d(t,"\u0275ERROR_COMPONENT_TYPE",function(){return gi}),n.d(t,"\u0275ComponentFactory",function(){return $i}),n.d(t,"\u0275CodegenComponentFactoryResolver",function(){return is}),n.d(t,"\u0275ViewMetadata",function(){return ii}),n.d(t,"\u0275ReflectionCapabilities",function(){return Ni}),n.d(t,"\u0275RenderDebugInfo",function(){return As}),n.d(t,"\u0275global",function(){return Mo}),n.d(t,"\u0275looseIdentical",function(){return i}),n.d(t,"\u0275stringify",function(){return s}),n.d(t,"\u0275makeDecorator",function(){return l}),n.d(t,"\u0275isObservable",function(){return Q}),n.d(t,"\u0275isPromise",function(){return G}),n.d(t,"\u0275clearProviderOverrides",function(){return so}),n.d(t,"\u0275overrideProvider",function(){return io}),n.d(t,"\u0275NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR",function(){return tu}),n.d(t,"\u0275registerModuleFactory",function(){return ge}),n.d(t,"\u0275EMPTY_ARRAY",function(){return Da}),n.d(t,"\u0275EMPTY_MAP",function(){return Ma}),n.d(t,"\u0275and",function(){return Nt}),n.d(t,"\u0275ccf",function(){return on}),n.d(t,"\u0275cmf",function(){return ao}),n.d(t,"\u0275crt",function(){return Ze}),n.d(t,"\u0275did",function(){return dn}),n.d(t,"\u0275eld",function(){return It}),n.d(t,"\u0275elementEventFullName",function(){return ct}),n.d(t,"\u0275getComponentViewDefinitionFactory",function(){return sn}),n.d(t,"\u0275inlineInterpolate",function(){return Pt}),n.d(t,"\u0275interpolate",function(){return Ot}),n.d(t,"\u0275mod",function(){return Bt}),n.d(t,"\u0275mpd",function(){return Ht}),n.d(t,"\u0275ncd",function(){return Vn}),n.d(t,"\u0275nov",function(){return pn}),n.d(t,"\u0275pid",function(){return yn}),n.d(t,"\u0275prd",function(){return vn}),n.d(t,"\u0275pad",function(){return qn}),n.d(t,"\u0275pod",function(){return Wn}),n.d(t,"\u0275ppd",function(){return Bn}),n.d(t,"\u0275qud",function(){return kn}),n.d(t,"\u0275ted",function(){return Kn}),n.d(t,"\u0275unv",function(){return Xe}),n.d(t,"\u0275vid",function(){return $n}),n.d(t,"AUTO_STYLE",function(){return du}),n.d(t,"trigger",function(){return mo}),n.d(t,"animate",function(){return go}),n.d(t,"group",function(){return _o}),n.d(t,"sequence",function(){return bo}),n.d(t,"style",function(){return wo}),n.d(t,"state",function(){return Co}),n.d(t,"keyframes",function(){return Eo}),n.d(t,"transition",function(){return So}),n.d(t,"\u0275x",function(){return co}),n.d(t,"\u0275y",function(){return lo}),n.d(t,"\u0275bc",function(){return yo}),n.d(t,"\u0275z",function(){return po}),n.d(t,"\u0275bb",function(){return fo}),n.d(t,"\u0275ba",function(){return ho}),n.d(t,"\u0275bd",function(){return vo}),n.d(t,"\u0275w",function(){return uo}),n.d(t,"\u0275k",function(){return Fe}),n.d(t,"\u0275l",function(){return je}),n.d(t,"\u0275m",function(){return Le}),n.d(t,"\u0275e",function(){return Ns}),n.d(t,"\u0275f",function(){return K}),n.d(t,"\u0275g",function(){return da}),n.d(t,"\u0275h",function(){return ya}),n.d(t,"\u0275i",function(){return ta}),n.d(t,"\u0275j",function(){return aa}),n.d(t,"\u0275b",function(){return ji}),n.d(t,"\u0275c",function(){return Ri}),n.d(t,"\u0275d",function(){return L}),n.d(t,"\u0275n",function(){return cs}),n.d(t,"\u0275p",function(){return $}),n.d(t,"\u0275o",function(){return Z}),n.d(t,"\u0275s",function(){return ne}),n.d(t,"\u0275q",function(){return ee}),n.d(t,"\u0275r",function(){return te}),n.d(t,"\u0275a",function(){return h}),n.d(t,"\u0275t",function(){return mn}),n.d(t,"\u0275u",function(){return Oa});var Oo=n("6Xbx"),Po=n("AP4T"),To=n("2kLc"),No=n("URbD"),Io=n("TO51"),Ao=function(){function e(e){this._desc=e}return e.prototype.toString=function(){return"Token "+this._desc},e}(),Ro=function(e){function t(t){return e.call(this,t)||this}return Oo.a(t,e),t.prototype.toString=function(){return"InjectionToken "+this._desc},t}(Ao),xo="undefined"!=typeof window&&window,ko="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Do=void 0!==e&&e,Mo=xo||Do||ko,Fo=null,jo=0,Lo=Mo.Reflect,Vo=new Ro("AnalyzeForEntryComponents"),Ho=h("Attribute",function(e){return{attributeName:e}}),Bo=function(){function e(){}return e}(),qo=f("ContentChildren",function(e,t){return void 0===t&&(t={}),Object.assign({selector:e,first:!1,isViewQuery:!1,descendants:!1},t)},Bo),Wo=f("ContentChild",function(e,t){return void 0===t&&(t={}),Object.assign({selector:e,first:!0,isViewQuery:!1,descendants:!0},t)},Bo),Uo=f("ViewChildren",function(e,t){return void 0===t&&(t={}),Object.assign({selector:e,first:!1,isViewQuery:!0,descendants:!0},t)},Bo),zo=f("ViewChild",function(e,t){return Object.assign({selector:e,first:!0,isViewQuery:!0,descendants:!0},t)},Bo),Go={};Go.OnPush=0,Go.Default=1,Go[Go.OnPush]="OnPush",Go[Go.Default]="Default";var Qo={};Qo.CheckOnce=0,Qo.Checked=1,Qo.CheckAlways=2,Qo.Detached=3,Qo.Errored=4,Qo.Destroyed=5,Qo[Qo.CheckOnce]="CheckOnce",Qo[Qo.Checked]="Checked",Qo[Qo.CheckAlways]="CheckAlways",Qo[Qo.Detached]="Detached",Qo[Qo.Errored]="Errored",Qo[Qo.Destroyed]="Destroyed";var Ko=l("Directive",function(e){return void 0===e&&(e={}),e}),Jo=l("Component",function(e){return void 0===e&&(e={}),Object.assign({changeDetection:Go.Default},e)},Ko),Yo=l("Pipe",function(e){return Object.assign({pure:!0},e)}),Xo=f("Input",function(e){return{bindingPropertyName:e}}),Zo=f("Output",function(e){return{bindingPropertyName:e}}),$o=f("HostBinding",function(e){return{hostPropertyName:e}}),ei=f("HostListener",function(e,t){return{eventName:e,args:t}}),ti={name:"custom-elements"},ni={name:"no-errors-schema"},ri=l("NgModule",function(e){return e}),oi={};oi.Emulated=0,oi.Native=1,oi.None=2,oi[oi.Emulated]="Emulated",oi[oi.Native]="Native",oi[oi.None]="None";var ii=function(){function e(e){void 0===e&&(e={}),this.templateUrl=e.templateUrl,this.template=e.template,this.styleUrls=e.styleUrls,this.styles=e.styles,this.encapsulation=e.encapsulation,this.animations=e.animations,this.interpolation=e.interpolation}return e}(),si=function(){function e(e){this.full=e}return Object.defineProperty(e.prototype,"major",{get:function(){return this.full.split(".")[0]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minor",{get:function(){return this.full.split(".")[1]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"patch",{get:function(){return this.full.split(".").slice(2).join(".")},enumerable:!0,configurable:!0}),e}(),ai=new si("4.4.6"),ui=h("Inject",function(e){return{token:e}}),ci=h("Optional"),li=l("Injectable"),pi=h("Self"),hi=h("SkipSelf"),fi=h("Host"),di=new Object,yi=di,vi=function(){function e(){}return e.prototype.get=function(e,t){if(void 0===t&&(t=di),t===di)throw new Error("No provider for "+s(e)+"!");return t},e}(),mi=function(){function e(){}return e.prototype.get=function(e,t){},e.prototype.get=function(e,t){},e}();mi.THROW_IF_NOT_FOUND=di,mi.NULL=new vi;var gi="ngComponentType",_i="ngDebugContext",bi="ngOriginalError",wi="ngErrorLogger",Ci=function(){function e(e){this._console=console}return e.prototype.handleError=function(e){var t=this._findOriginalError(e),n=this._findContext(e),r=_(e);r(this._console,"ERROR",e),t&&r(this._console,"ORIGINAL ERROR",t),n&&r(this._console,"ERROR CONTEXT",n)},e.prototype._findContext=function(e){return e?m(e)?m(e):this._findContext(g(e)):null},e.prototype._findOriginalError=function(e){for(var t=g(e);t&&g(t);)t=g(t);return t},e}(),Ei=function(){function e(e,t){if(this.token=e,this.id=t,!e)throw new Error("Token must be defined!")}return Object.defineProperty(e.prototype,"displayName",{get:function(){return s(this.token)},enumerable:!0,configurable:!0}),e.get=function(e){return Oi.get(v(e))},Object.defineProperty(e,"numberOfKeys",{get:function(){return Oi.numberOfKeys},enumerable:!0,configurable:!0}),e}(),Si=function(){function e(){this._allKeys=new Map}return e.prototype.get=function(e){if(e instanceof Ei)return e;if(this._allKeys.has(e))return this._allKeys.get(e);var t=new Ei(e,Ei.numberOfKeys);return this._allKeys.set(e,t),t},Object.defineProperty(e.prototype,"numberOfKeys",{get:function(){return this._allKeys.size},enumerable:!0,configurable:!0}),e}(),Oi=new Si,Pi=Function,Ti=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*arguments\)/,Ni=function(){function e(e){this._reflect=e||Mo.Reflect}return e.prototype.isReflectionEnabled=function(){return!0},e.prototype.factory=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new(e.bind.apply(e,[void 0].concat(t)))}},e.prototype._zipTypesAndAnnotations=function(e,t){var n;n=void 0===e?new Array(t.length):new Array(e.length);for(var r=0;r<n.length;r++)void 0===e?n[r]=[]:e[r]!=Object?n[r]=[e[r]]:n[r]=[],t&&null!=t[r]&&(n[r]=n[r].concat(t[r]));return n},e.prototype._ownParameters=function(e,t){if(Ti.exec(e.toString()))return null;if(e.parameters&&e.parameters!==t.parameters)return e.parameters;var n=e.ctorParameters;if(n&&n!==t.ctorParameters){var r="function"==typeof n?n():n,o=r.map(function(e){return e&&e.type}),i=r.map(function(e){return e&&D(e.decorators)});return this._zipTypesAndAnnotations(o,i)}if(null!=this._reflect&&null!=this._reflect.getOwnMetadata){var i=this._reflect.getOwnMetadata("parameters",e),o=this._reflect.getOwnMetadata("design:paramtypes",e);if(o||i)return this._zipTypesAndAnnotations(o,i)}return new Array(e.length).fill(void 0)},e.prototype.parameters=function(e){if(!k(e))return[];var t=M(e),n=this._ownParameters(e,t);return n||t===Object||(n=this.parameters(t)),n||[]},e.prototype._ownAnnotations=function(e,t){if(e.annotations&&e.annotations!==t.annotations){var n=e.annotations;return"function"==typeof n&&n.annotations&&(n=n.annotations),n}return e.decorators&&e.decorators!==t.decorators?D(e.decorators):this._reflect&&this._reflect.getOwnMetadata?this._reflect.getOwnMetadata("annotations",e):null},e.prototype.annotations=function(e){if(!k(e))return[];var t=M(e),n=this._ownAnnotations(e,t)||[];return(t!==Object?this.annotations(t):[]).concat(n)},e.prototype._ownPropMetadata=function(e,t){if(e.propMetadata&&e.propMetadata!==t.propMetadata){var n=e.propMetadata;return"function"==typeof n&&n.propMetadata&&(n=n.propMetadata),n}if(e.propDecorators&&e.propDecorators!==t.propDecorators){var r=e.propDecorators,o={};return Object.keys(r).forEach(function(e){o[e]=D(r[e])}),o}return this._reflect&&this._reflect.getOwnMetadata?this._reflect.getOwnMetadata("propMetadata",e):null},e.prototype.propMetadata=function(e){if(!k(e))return{};var t=M(e),n={};if(t!==Object){var r=this.propMetadata(t);Object.keys(r).forEach(function(e){n[e]=r[e]})}var o=this._ownPropMetadata(e,t);return o&&Object.keys(o).forEach(function(e){var t=[];n.hasOwnProperty(e)&&t.push.apply(t,n[e]),t.push.apply(t,o[e]),n[e]=t}),n},e.prototype.hasLifecycleHook=function(e,t){return e instanceof Pi&&t in e.prototype},e.prototype.getter=function(e){return new Function("o","return o."+e+";")},e.prototype.setter=function(e){return new Function("o","v","return o."+e+" = v;")},e.prototype.method=function(e){var t="if (!o."+e+") throw new Error('\""+e+"\" is undefined');\n        return o."+e+".apply(o, args);";return new Function("o","args",t)},e.prototype.importUri=function(e){return"object"==typeof e&&e.filePath?e.filePath:"./"+s(e)},e.prototype.resourceUri=function(e){return"./"+s(e)},e.prototype.resolveIdentifier=function(e,t,n,r){return r},e.prototype.resolveEnum=function(e,t){return e[t]},e}(),Ii=function(){function e(e){this.reflectionCapabilities=e}return e.prototype.updateCapabilities=function(e){this.reflectionCapabilities=e},e.prototype.factory=function(e){return this.reflectionCapabilities.factory(e)},e.prototype.parameters=function(e){return this.reflectionCapabilities.parameters(e)},e.prototype.annotations=function(e){return this.reflectionCapabilities.annotations(e)},e.prototype.propMetadata=function(e){return this.reflectionCapabilities.propMetadata(e)},e.prototype.hasLifecycleHook=function(e,t){return this.reflectionCapabilities.hasLifecycleHook(e,t)},e.prototype.getter=function(e){return this.reflectionCapabilities.getter(e)},e.prototype.setter=function(e){return this.reflectionCapabilities.setter(e)},e.prototype.method=function(e){return this.reflectionCapabilities.method(e)},e.prototype.importUri=function(e){return this.reflectionCapabilities.importUri(e)},e.prototype.resourceUri=function(e){return this.reflectionCapabilities.resourceUri(e)},e.prototype.resolveIdentifier=function(e,t,n,r){return this.reflectionCapabilities.resolveIdentifier(e,t,n,r)},e.prototype.resolveEnum=function(e,t){return this.reflectionCapabilities.resolveEnum(e,t)},e}(),Ai=new Ii(new Ni),Ri=function(){function e(e,t,n){this.key=e,this.optional=t,this.visibility=n}return e.fromKey=function(t){return new e(t,!1,null)},e}(),xi=[],ki=function(){function e(e,t,n){this.key=e,this.resolvedFactories=t,this.multiProvider=n}return Object.defineProperty(e.prototype,"resolvedFactory",{get:function(){return this.resolvedFactories[0]},enumerable:!0,configurable:!0}),e}(),Di=function(){function e(e,t){this.factory=e,this.dependencies=t}return e}(),Mi=new Object,Fi=function(){function e(){}return e.resolve=function(e){return L(e)},e.resolveAndCreate=function(t,n){var r=e.resolve(t);return e.fromResolvedProviders(r,n)},e.fromResolvedProviders=function(e,t){return new ji(e,t)},e.prototype.parent=function(){},e.prototype.resolveAndCreateChild=function(e){},e.prototype.createChildFromResolved=function(e){},e.prototype.resolveAndInstantiate=function(e){},e.prototype.instantiateResolved=function(e){},e.prototype.get=function(e,t){},e}(),ji=function(){function e(e,t){this._constructionCounter=0,this._providers=e,this._parent=t||null;var n=e.length;this.keyIds=new Array(n),this.objs=new Array(n);for(var r=0;r<n;r++)this.keyIds[r]=e[r].key.id,this.objs[r]=Mi}return e.prototype.get=function(e,t){return void 0===t&&(t=yi),this._getByKey(Ei.get(e),null,t)},Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),e.prototype.resolveAndCreateChild=function(e){var t=Fi.resolve(e);return this.createChildFromResolved(t)},e.prototype.createChildFromResolved=function(t){var n=new e(t);return n._parent=this,n},e.prototype.resolveAndInstantiate=function(e){return this.instantiateResolved(Fi.resolve([e])[0])},e.prototype.instantiateResolved=function(e){return this._instantiateProvider(e)},e.prototype.getProviderAtIndex=function(e){if(e<0||e>=this._providers.length)throw R(e);return this._providers[e]},e.prototype._new=function(e){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw T(this,e.key);return this._instantiateProvider(e)},e.prototype._getMaxNumberOfObjects=function(){return this.objs.length},e.prototype._instantiateProvider=function(e){if(e.multiProvider){for(var t=new Array(e.resolvedFactories.length),n=0;n<e.resolvedFactories.length;++n)t[n]=this._instantiate(e,e.resolvedFactories[n]);return t}return this._instantiate(e,e.resolvedFactories[0])},e.prototype._instantiate=function(e,t){var n,r=this,o=t.factory;try{n=t.dependencies.map(function(e){return r._getByReflectiveDependency(e)})}catch(t){throw t.addKey&&t.addKey(this,e.key),t}var i;try{i=o.apply(void 0,n)}catch(t){throw N(this,t,t.stack,e.key)}return i},e.prototype._getByReflectiveDependency=function(e){return this._getByKey(e.key,e.visibility,e.optional?null:yi)},e.prototype._getByKey=function(e,t,n){return e===Li?this:t instanceof pi?this._getByKeySelf(e,n):this._getByKeyDefault(e,n,t)},e.prototype._getObjByKeyId=function(e){for(var t=0;t<this.keyIds.length;t++)if(this.keyIds[t]===e)return this.objs[t]===Mi&&(this.objs[t]=this._new(this._providers[t])),this.objs[t];return Mi},e.prototype._throwOrNull=function(e,t){if(t!==yi)return t;throw P(this,e)},e.prototype._getByKeySelf=function(e,t){var n=this._getObjByKeyId(e.id);return n!==Mi?n:this._throwOrNull(e,t)},e.prototype._getByKeyDefault=function(t,n,r){var o;for(o=r instanceof hi?this._parent:this;o instanceof e;){var i=o,s=i._getObjByKeyId(t.id);if(s!==Mi)return s;o=i._parent}return null!==o?o.get(t.token,n):this._throwOrNull(t,n)},Object.defineProperty(e.prototype,"displayName",{get:function(){return"ReflectiveInjector(providers: ["+z(this,function(e){return' "'+e.key.displayName+'" '}).join(", ")+"])"},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return this.displayName},e}(),Li=Ei.get(mi),Vi=new Ro("Application Initializer"),Hi=function(){function e(e){var t=this;this.appInits=e,this.initialized=!1,this._done=!1,this._donePromise=new Promise(function(e,n){t.resolve=e,t.reject=n})}return e.prototype.runInitializers=function(){var e=this;if(!this.initialized){var t=[],n=function(){e._done=!0,e.resolve()};if(this.appInits)for(var r=0;r<this.appInits.length;r++){var o=this.appInits[r]();G(o)&&t.push(o)}Promise.all(t).then(function(){n()}).catch(function(t){e.reject(t)}),0===t.length&&n(),this.initialized=!0}},Object.defineProperty(e.prototype,"done",{get:function(){return this._done},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"donePromise",{get:function(){return this._donePromise},enumerable:!0,configurable:!0}),e}();Hi.decorators=[{type:li}],Hi.ctorParameters=function(){return[{type:Array,decorators:[{type:ui,args:[Vi]},{type:ci}]}]};var Bi=new Ro("AppId"),qi={provide:Bi,useFactory:K,deps:[]},Wi=new Ro("Platform Initializer"),Ui=new Ro("Platform ID"),zi=new Ro("appBootstrapListener"),Gi=new Ro("Application Packages Root URL"),Qi=function(){function e(){}return e.prototype.log=function(e){console.log(e)},e.prototype.warn=function(e){console.warn(e)},e}();Qi.decorators=[{type:li}],Qi.ctorParameters=function(){return[]};var Ki=function(){function e(e,t){this.ngModuleFactory=e,this.componentFactories=t}return e}(),Ji=function(){function e(){}return e.prototype.compileModuleSync=function(e){throw Y()},e.prototype.compileModuleAsync=function(e){throw Y()},e.prototype.compileModuleAndAllComponentsSync=function(e){throw Y()},e.prototype.compileModuleAndAllComponentsAsync=function(e){throw Y()},e.prototype.getNgContentSelectors=function(e){throw Y()},e.prototype.clearCache=function(){},e.prototype.clearCacheFor=function(e){},e}();Ji.decorators=[{type:li}],Ji.ctorParameters=function(){return[]};var Yi=new Ro("compilerOptions"),Xi=function(){function e(){}return e.prototype.createCompiler=function(e){},e}(),Zi=function(){function e(){}return e.prototype.location=function(){},e.prototype.injector=function(){},e.prototype.instance=function(){},e.prototype.hostView=function(){},e.prototype.changeDetectorRef=function(){},e.prototype.componentType=function(){},e.prototype.destroy=function(){},e.prototype.onDestroy=function(e){},e}(),$i=function(){function e(){}return e.prototype.selector=function(){},e.prototype.componentType=function(){},e.prototype.ngContentSelectors=function(){},e.prototype.inputs=function(){},e.prototype.outputs=function(){},e.prototype.create=function(e,t,n,r){},e}(),es="ngComponent",ts=function(){function e(){}return e.prototype.resolveComponentFactory=function(e){throw X(e)},e}(),ns=function(){function e(){}return e.prototype.resolveComponentFactory=function(e){},e}();ns.NULL=new ts;var rs,os,is=function(){function e(e,t,n){this._parent=t,this._ngModule=n,this._factories=new Map;for(var r=0;r<e.length;r++){var o=e[r];this._factories.set(o.componentType,o)}}return e.prototype.resolveComponentFactory=function(e){var t=this._factories.get(e);if(!t&&this._parent&&(t=this._parent.resolveComponentFactory(e)),!t)throw X(e);return new ss(t,this._ngModule)},e}(),ss=function(e){function t(t,n){var r=e.call(this)||this;return r.factory=t,r.ngModule=n,r}return Oo.a(t,e),Object.defineProperty(t.prototype,"selector",{get:function(){return this.factory.selector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentType",{get:function(){return this.factory.componentType},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngContentSelectors",{get:function(){return this.factory.ngContentSelectors},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inputs",{get:function(){return this.factory.inputs},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outputs",{get:function(){return this.factory.outputs},enumerable:!0,configurable:!0}),t.prototype.create=function(e,t,n,r){return this.factory.create(e,t,n,r||this.ngModule)},t}($i),as=function(){function e(){}return e.prototype.injector=function(){},e.prototype.componentFactoryResolver=function(){},e.prototype.instance=function(){},e.prototype.destroy=function(){},e.prototype.onDestroy=function(e){},e}(),us=function(){function e(){}return e.prototype.moduleType=function(){},e.prototype.create=function(e){},e}(),cs=Z(),ls=cs?$:function(e,t){return re},ps=cs?ee:function(e,t){return t},hs=cs?te:function(e,t){return null},fs=cs?ne:function(e){return null},ds=function(e){function t(t){void 0===t&&(t=!1);var n=e.call(this)||this;return n.__isAsync=t,n}return Oo.a(t,e),t.prototype.emit=function(t){e.prototype.next.call(this,t)},t.prototype.subscribe=function(t,n,r){var o,i=function(e){return null},s=function(){return null};return t&&"object"==typeof t?(o=this.__isAsync?function(e){setTimeout(function(){return t.next(e)})}:function(e){t.next(e)},t.error&&(i=this.__isAsync?function(e){setTimeout(function(){return t.error(e)})}:function(e){t.error(e)}),t.complete&&(s=this.__isAsync?function(){setTimeout(function(){return t.complete()})}:function(){t.complete()})):(o=this.__isAsync?function(e){setTimeout(function(){return t(e)})}:function(e){t(e)},n&&(i=this.__isAsync?function(e){setTimeout(function(){return n(e)})}:function(e){n(e)}),r&&(s=this.__isAsync?function(){setTimeout(function(){return r()})}:function(){r()})),e.prototype.subscribe.call(this,o,i,s)},t}(Io.a),ys=function(){function e(e){var t=e.enableLongStackTrace,n=void 0!==t&&t;if(this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ds(!1),this.onMicrotaskEmpty=new ds(!1),this.onStable=new ds(!1),this.onError=new ds(!1),"undefined"==typeof Zone)throw new Error("Angular requires Zone.js prolyfill.");Zone.assertZonePatched();var r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.wtfZoneSpec&&(r._inner=r._inner.fork(Zone.wtfZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),ie(r)}return e.isInAngularZone=function(){return!0===Zone.current.get("isAngularZone")},e.assertInAngularZone=function(){if(!e.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")},e.assertNotInAngularZone=function(){if(e.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")},e.prototype.run=function(e){return this._inner.run(e)},e.prototype.runGuarded=function(e){return this._inner.runGuarded(e)},e.prototype.runOutsideAngular=function(e){return this._outer.run(e)},e}(),vs=function(){function e(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this._watchAngularEvents()}return e.prototype._watchAngularEvents=function(){var e=this;this._ngZone.onUnstable.subscribe({next:function(){e._didWork=!0,e._isZoneStable=!1}}),this._ngZone.runOutsideAngular(function(){e._ngZone.onStable.subscribe({next:function(){ys.assertNotInAngularZone(),o(function(){e._isZoneStable=!0,e._runCallbacksIfReady()})}})})},e.prototype.increasePendingRequestCount=function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount},e.prototype.decreasePendingRequestCount=function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount},e.prototype.isStable=function(){return this._isZoneStable&&0==this._pendingCount&&!this._ngZone.hasPendingMacrotasks},e.prototype._runCallbacksIfReady=function(){var e=this;this.isStable()?o(function(){for(;0!==e._callbacks.length;)e._callbacks.pop()(e._didWork);e._didWork=!1}):this._didWork=!0},e.prototype.whenStable=function(e){this._callbacks.push(e),this._runCallbacksIfReady()},e.prototype.getPendingRequestCount=function(){return this._pendingCount},e.prototype.findBindings=function(e,t,n){return[]},e.prototype.findProviders=function(e,t,n){return[]},e}();vs.decorators=[{type:li}],vs.ctorParameters=function(){return[{type:ys}]};var ms=function(){function e(){this._applications=new Map,bs.addToWindow(this)}return e.prototype.registerApplication=function(e,t){this._applications.set(e,t)},e.prototype.getTestability=function(e){return this._applications.get(e)||null},e.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},e.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},e.prototype.findTestabilityInTree=function(e,t){return void 0===t&&(t=!0),bs.findTestabilityInTree(this,e,t)},e}();ms.decorators=[{type:li}],ms.ctorParameters=function(){return[]};var gs,_s=function(){function e(){}return e.prototype.addToWindow=function(e){},e.prototype.findTestabilityInTree=function(e,t,n){return null},e}(),bs=new _s,ws=!0,Cs=!1,Es=new Ro("AllowMultipleToken"),Ss=function(){function e(e,t){this.name=e,this.token=t}return e}(),Os=function(){function e(){}return e.prototype.bootstrapModuleFactory=function(e){},e.prototype.bootstrapModule=function(e,t){},e.prototype.onDestroy=function(e){},e.prototype.injector=function(){},e.prototype.destroy=function(){},e.prototype.destroyed=function(){},e}(),Ps=function(e){function t(t){var n=e.call(this)||this;return n._injector=t,n._modules=[],n._destroyListeners=[],n._destroyed=!1,n}return Oo.a(t,e),t.prototype.onDestroy=function(e){this._destroyListeners.push(e)},Object.defineProperty(t.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(e){return e.destroy()}),this._destroyListeners.forEach(function(e){return e()}),this._destroyed=!0},t.prototype.bootstrapModuleFactory=function(e){return this._bootstrapModuleFactoryWithZone(e)},t.prototype._bootstrapModuleFactoryWithZone=function(e,t){var n=this;return t||(t=new ys({enableLongStackTrace:le()})),t.run(function(){var r=Fi.resolveAndCreate([{provide:ys,useValue:t}],n.injector),o=e.create(r),i=o.injector.get(Ci,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return o.onDestroy(function(){return me(n._modules,o)}),t.runOutsideAngular(function(){return t.onError.subscribe({next:function(e){i.handleError(e)}})}),ve(i,t,function(){var e=o.injector.get(Hi);return e.runInitializers(),e.donePromise.then(function(){return n._moduleDoBootstrap(o),o})})})},t.prototype.bootstrapModule=function(e,t){return void 0===t&&(t=[]),this._bootstrapModuleWithZone(e,t)},t.prototype._bootstrapModuleWithZone=function(e,t,n){var r=this;return void 0===t&&(t=[]),this.injector.get(Xi).createCompiler(Array.isArray(t)?t:[t]).compileModuleAsync(e).then(function(e){return r._bootstrapModuleFactoryWithZone(e,n)})},t.prototype._moduleDoBootstrap=function(e){var t=e.injector.get(Ts);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module "+s(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)},t}(Os);Ps.decorators=[{type:li}],Ps.ctorParameters=function(){return[{type:mi}]};var Ts=function(){function e(){}return e.prototype.bootstrap=function(e,t){},e.prototype.tick=function(){},e.prototype.componentTypes=function(){},e.prototype.components=function(){},e.prototype.attachView=function(e){},e.prototype.detachView=function(e){},e.prototype.viewCount=function(){},e.prototype.isStable=function(){},e}(),Ns=function(e){function t(t,n,r,i,s,a){var u=e.call(this)||this;u._zone=t,u._console=n,u._injector=r,u._exceptionHandler=i,u._componentFactoryResolver=s,u._initStatus=a,u._bootstrapListeners=[],u._rootComponents=[],u._rootComponentTypes=[],u._views=[],u._runningTick=!1,u._enforceNoNewChanges=!1,u._stable=!0,u._enforceNoNewChanges=le(),u._zone.onMicrotaskEmpty.subscribe({next:function(){u._zone.run(function(){u.tick()})}});var c=new Po.a(function(e){u._stable=u._zone.isStable&&!u._zone.hasPendingMacrotasks&&!u._zone.hasPendingMicrotasks,u._zone.runOutsideAngular(function(){e.next(u._stable),e.complete()})}),l=new Po.a(function(e){var t;u._zone.runOutsideAngular(function(){t=u._zone.onStable.subscribe(function(){ys.assertNotInAngularZone(),o(function(){u._stable||u._zone.hasPendingMacrotasks||u._zone.hasPendingMicrotasks||(u._stable=!0,e.next(!0))})})});var n=u._zone.onUnstable.subscribe(function(){ys.assertInAngularZone(),u._stable&&(u._stable=!1,u._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});return u._isStable=Object(To.a)(c,No.a.call(l)),u}return Oo.a(t,e),t.prototype.attachView=function(e){var t=e;this._views.push(t),t.attachToAppRef(this)},t.prototype.detachView=function(e){var t=e;me(this._views,t),t.detachFromAppRef()},t.prototype.bootstrap=function(e,t){var n=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.");var r;r=e instanceof $i?e:this._componentFactoryResolver.resolveComponentFactory(e),this._rootComponentTypes.push(r.componentType);var o=r instanceof ss?null:this._injector.get(as),i=t||r.selector,s=r.create(mi.NULL,[],i,o);s.onDestroy(function(){n._unloadComponent(s)});var a=s.injector.get(vs,null);return a&&s.injector.get(ms).registerApplication(s.location.nativeElement,a),this._loadComponent(s),le()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),s},t.prototype._loadComponent=function(e){this.attachView(e.hostView),this.tick(),this._rootComponents.push(e),this._injector.get(zi,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})},t.prototype._unloadComponent=function(e){this.detachView(e.hostView),me(this._rootComponents,e)},t.prototype.tick=function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=t._tickScope();try{this._runningTick=!0,this._views.forEach(function(e){return e.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(e){return e.checkNoChanges()})}catch(t){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(t)})}finally{this._runningTick=!1,ps(n)}},t.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(e){return e.destroy()})},Object.defineProperty(t.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentTypes",{get:function(){return this._rootComponentTypes},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"components",{get:function(){return this._rootComponents},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isStable",{get:function(){return this._isStable},enumerable:!0,configurable:!0}),t}(Ts);Ns._tickScope=ls("ApplicationRef#tick()"),Ns.decorators=[{type:li}],Ns.ctorParameters=function(){return[{type:ys},{type:Qi},{type:mi},{type:Ci},{type:ns},{type:Hi}]};var Is=function(){function e(e,t,n,r,o,i){this.id=e,this.templateUrl=t,this.slotCount=n,this.encapsulation=r,this.styles=o,this.animations=i}return e}(),As=function(){function e(){}return e.prototype.injector=function(){},e.prototype.component=function(){},e.prototype.providerTokens=function(){},e.prototype.references=function(){},e.prototype.context=function(){},e.prototype.source=function(){},e}(),Rs=function(){function e(){}return e.prototype.selectRootElement=function(e,t){},e.prototype.createElement=function(e,t,n){},e.prototype.createViewRoot=function(e){},e.prototype.createTemplateAnchor=function(e,t){},e.prototype.createText=function(e,t,n){},e.prototype.projectNodes=function(e,t){},e.prototype.attachViewAfter=function(e,t){},e.prototype.detachView=function(e){},e.prototype.destroyView=function(e,t){},e.prototype.listen=function(e,t,n){},e.prototype.listenGlobal=function(e,t,n){},e.prototype.setElementProperty=function(e,t,n){},e.prototype.setElementAttribute=function(e,t,n){},e.prototype.setBindingDebugInfo=function(e,t,n){},e.prototype.setElementClass=function(e,t,n){},e.prototype.setElementStyle=function(e,t,n){},e.prototype.invokeElementMethod=function(e,t,n){},e.prototype.setText=function(e,t){},e.prototype.animate=function(e,t,n,r,o,i,s){},e}(),xs=(new Ro("Renderer2Interceptor"),function(){function e(){}return e.prototype.renderComponent=function(e){},e}()),ks=function(){function e(){}return e.prototype.createRenderer=function(e,t){},e.prototype.begin=function(){},e.prototype.end=function(){},e.prototype.whenRenderingDone=function(){},e}(),Ds={};Ds.Important=1,Ds.DashCase=2,Ds[Ds.Important]="Important",Ds[Ds.DashCase]="DashCase";var Ms=function(){function e(){}return e.prototype.data=function(){},e.prototype.destroy=function(){},e.prototype.createElement=function(e,t){},e.prototype.createComment=function(e){},e.prototype.createText=function(e){},e.prototype.appendChild=function(e,t){},e.prototype.insertBefore=function(e,t,n){},e.prototype.removeChild=function(e,t){},e.prototype.selectRootElement=function(e){},e.prototype.parentNode=function(e){},e.prototype.nextSibling=function(e){},e.prototype.setAttribute=function(e,t,n,r){},e.prototype.removeAttribute=function(e,t,n){},e.prototype.addClass=function(e,t){},e.prototype.removeClass=function(e,t){},e.prototype.setStyle=function(e,t,n,r){},e.prototype.removeStyle=function(e,t,n){},e.prototype.setProperty=function(e,t,n){},e.prototype.setValue=function(e,t){},e.prototype.listen=function(e,t,n){},e}(),Fs=function(){function e(e){this.nativeElement=e}return e}(),js=function(){function e(){}return e.prototype.load=function(e){},e}(),Ls=new Map,Vs=function(){function e(){this._dirty=!0,this._results=[],this._emitter=new ds}return Object.defineProperty(e.prototype,"changes",{get:function(){return this._emitter},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._results.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"first",{get:function(){return this._results[0]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"last",{get:function(){return this._results[this.length-1]},enumerable:!0,configurable:!0}),e.prototype.map=function(e){return this._results.map(e)},e.prototype.filter=function(e){return this._results.filter(e)},e.prototype.find=function(e){return this._results.find(e)},e.prototype.reduce=function(e,t){return this._results.reduce(e,t)},e.prototype.forEach=function(e){this._results.forEach(e)},e.prototype.some=function(e){return this._results.some(e)},e.prototype.toArray=function(){return this._results.slice()},e.prototype[r()]=function(){return this._results[r()]()},e.prototype.toString=function(){return this._results.toString()},e.prototype.reset=function(e){this._results=be(e),this._dirty=!1},e.prototype.notifyOnChanges=function(){this._emitter.emit(this)},e.prototype.setDirty=function(){this._dirty=!0},Object.defineProperty(e.prototype,"dirty",{get:function(){return this._dirty},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this._emitter.complete(),this._emitter.unsubscribe()},e}(),Hs=function(){function e(){}return e}(),Bs={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},qs=function(){function e(e,t){this._compiler=e,this._config=t||Bs}return e.prototype.load=function(e){return this._compiler instanceof Ji?this.loadFactory(e):this.loadAndCompile(e)},e.prototype.loadAndCompile=function(e){var t=this,r=e.split("#"),o=r[0],i=r[1];return void 0===i&&(i="default"),n("gFIY")(o).then(function(e){return e[i]}).then(function(e){return we(e,o,i)}).then(function(e){return t._compiler.compileModuleAsync(e)})},e.prototype.loadFactory=function(e){var t=e.split("#"),r=t[0],o=t[1],i="NgFactory";return void 0===o&&(o="default",i=""),n("gFIY")(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(function(e){return e[o+i]}).then(function(e){return we(e,r,o)})},e}();qs.decorators=[{type:li}],qs.ctorParameters=function(){return[{type:Ji},{type:Hs,decorators:[{type:ci}]}]};var Ws=function(){function e(){}return e.prototype.elementRef=function(){},e.prototype.createEmbeddedView=function(e){},e}(),Us=function(){function e(){}return e.prototype.element=function(){},e.prototype.injector=function(){},e.prototype.parentInjector=function(){},e.prototype.clear=function(){},e.prototype.get=function(e){},e.prototype.length=function(){},e.prototype.createEmbeddedView=function(e,t,n){},e.prototype.createComponent=function(e,t,n,r,o){},e.prototype.insert=function(e,t){},e.prototype.move=function(e,t){},e.prototype.indexOf=function(e){},e.prototype.remove=function(e){},e.prototype.detach=function(e){},e}(),zs=function(){function e(){}return e.prototype.markForCheck=function(){},e.prototype.detach=function(){},e.prototype.detectChanges=function(){},e.prototype.checkNoChanges=function(){},e.prototype.reattach=function(){},e}(),Gs=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Oo.a(t,e),t.prototype.destroy=function(){},t.prototype.destroyed=function(){},t.prototype.onDestroy=function(e){},t}(zs),Qs=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Oo.a(t,e),t.prototype.context=function(){},t.prototype.rootNodes=function(){},t}(Gs),Ks=function(){function e(e,t){this.name=e,this.callback=t}return e}(),Js=function(){function e(e,t,n){this._debugContext=n,this.nativeNode=e,t&&t instanceof Ys?t.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(e.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"source",{get:function(){return"Deprecated since v4"},enumerable:!0,configurable:!0}),e}(),Ys=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.properties={},o.attributes={},o.classes={},o.styles={},o.childNodes=[],o.nativeElement=t,o}return Oo.a(t,e),t.prototype.addChild=function(e){e&&(this.childNodes.push(e),e.parent=this)},t.prototype.removeChild=function(e){var t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))},t.prototype.insertChildrenAfter=function(e,t){var n=this,r=this.childNodes.indexOf(e);-1!==r&&((o=this.childNodes).splice.apply(o,[r+1,0].concat(t)),t.forEach(function(e){e.parent&&e.parent.removeChild(e),e.parent=n}));var o},t.prototype.insertBefore=function(e,t){var n=this.childNodes.indexOf(e);-1===n?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(n,0,t))},t.prototype.query=function(e){return this.queryAll(e)[0]||null},t.prototype.queryAll=function(e){var t=[];return Ee(this,e,t),t},t.prototype.queryAllNodes=function(e){var t=[];return Se(this,e,t),t},Object.defineProperty(t.prototype,"children",{get:function(){return this.childNodes.filter(function(e){return e instanceof t})},enumerable:!0,configurable:!0}),t.prototype.triggerEventHandler=function(e,t){this.listeners.forEach(function(n){n.name==e&&n.callback(t)})},t}(Js),Xs=new Map,Zs=function(){function e(e){this.wrapped=e}return e.wrap=function(t){return new e(t)},e}(),$s=function(){function e(){this.hasWrappedValue=!1}return e.prototype.unwrap=function(e){return e instanceof Zs?(this.hasWrappedValue=!0,e.wrapped):e},e.prototype.reset=function(){this.hasWrappedValue=!1},e}(),ea=function(){function e(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}return e.prototype.isFirstChange=function(){return this.firstChange},e}(),ta=function(){function e(){}return e.prototype.supports=function(e){return Ie(e)},e.prototype.create=function(e,t){return new ra(t||e)},e}(),na=function(e,t){return t},ra=function(){function e(e){this._length=0,this._collection=null,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||na}return Object.defineProperty(e.prototype,"collection",{get:function(){return this._collection},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._length},enumerable:!0,configurable:!0}),e.prototype.forEachItem=function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)},e.prototype.forEachOperation=function(e){for(var t=this._itHead,n=this._removalsHead,r=0,o=null;t||n;){var i=!n||t&&t.currentIndex<ke(n,r,o)?t:n,s=ke(i,r,o),a=i.currentIndex;if(i===n)r--,n=n._nextRemoved;else if(t=t._next,null==i.previousIndex)r++;else{o||(o=[]);var u=s-r,c=a-r;if(u!=c){for(var l=0;l<u;l++){var p=l<o.length?o[l]:o[l]=0,h=p+l;c<=h&&h<u&&(o[l]=p+1)}var f=i.previousIndex;o[f]=c-u}}s!==a&&e(i,s,a)}},e.prototype.forEachPreviousItem=function(e){var t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)},e.prototype.forEachAddedItem=function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)},e.prototype.forEachMovedItem=function(e){var t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)},e.prototype.forEachRemovedItem=function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)},e.prototype.forEachIdentityChange=function(e){var t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)},e.prototype.diff=function(e){if(null==e&&(e=[]),!Ie(e))throw new Error("Error trying to diff '"+s(e)+"'. Only arrays and iterables are allowed");return this.check(e)?this:null},e.prototype.onDestroy=function(){},e.prototype.check=function(e){var t=this;this._reset();var n,r,o,s=this._itHead,a=!1;if(Array.isArray(e)){this._length=e.length;for(var u=0;u<this._length;u++)r=e[u],o=this._trackByFn(u,r),null!==s&&i(s.trackById,o)?(a&&(s=this._verifyReinsertion(s,r,o,u)),i(s.item,r)||this._addIdentityChange(s,r)):(s=this._mismatch(s,r,o,u),a=!0),s=s._next}else n=0,Re(e,function(e){o=t._trackByFn(n,e),null!==s&&i(s.trackById,o)?(a&&(s=t._verifyReinsertion(s,e,o,n)),i(s.item,e)||t._addIdentityChange(s,e)):(s=t._mismatch(s,e,o,n),a=!0),s=s._next,n++}),this._length=n;return this._truncate(s),this._collection=e,this.isDirty},Object.defineProperty(e.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead},enumerable:!0,configurable:!0}),e.prototype._reset=function(){if(this.isDirty){var e=void 0,t=void 0;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=t)e.previousIndex=e.currentIndex,t=e._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}},e.prototype._mismatch=function(e,t,n,r){var o;return null===e?o=this._itTail:(o=e._prev,this._remove(e)),e=null===this._linkedRecords?null:this._linkedRecords.get(n,r),null!==e?(i(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,o,r)):(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null),null!==e?(i(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,o,r)):e=this._addAfter(new oa(t,n),o,r)),e},e.prototype._verifyReinsertion=function(e,t,n,r){var o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==o?e=this._reinsertAfter(o,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e},e.prototype._truncate=function(e){for(;null!==e;){var t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)},e.prototype._reinsertAfter=function(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);var r=e._prevRemoved,o=e._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(e,t,n),this._addToMoves(e,n),e},e.prototype._moveAfter=function(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e},e.prototype._addAfter=function(e,t,n){return this._insertAfter(e,t,n),null===this._additionsTail?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e},e.prototype._insertAfter=function(e,t,n){var r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new sa),this._linkedRecords.put(e),e.currentIndex=n,e},e.prototype._remove=function(e){return this._addToRemovals(this._unlink(e))},e.prototype._unlink=function(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);var t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e},e.prototype._addToMoves=function(e,t){return e.previousIndex===t?e:(null===this._movesTail?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e,e)},e.prototype._addToRemovals=function(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new sa),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e},e.prototype._addIdentityChange=function(e,t){return e.item=t,null===this._identityChangesTail?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e},e.prototype.toString=function(){var e=[];this.forEachItem(function(t){return e.push(t)});var t=[];this.forEachPreviousItem(function(e){return t.push(e)});var n=[];this.forEachAddedItem(function(e){return n.push(e)});var r=[];this.forEachMovedItem(function(e){return r.push(e)});var o=[];this.forEachRemovedItem(function(e){return o.push(e)});var i=[];return this.forEachIdentityChange(function(e){return i.push(e)}),"collection: "+e.join(", ")+"\nprevious: "+t.join(", ")+"\nadditions: "+n.join(", ")+"\nmoves: "+r.join(", ")+"\nremovals: "+o.join(", ")+"\nidentityChanges: "+i.join(", ")+"\n"},e}(),oa=function(){function e(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}return e.prototype.toString=function(){return this.previousIndex===this.currentIndex?s(this.item):s(this.item)+"["+s(this.previousIndex)+"->"+s(this.currentIndex)+"]"},e}(),ia=function(){function e(){this._head=null,this._tail=null}return e.prototype.add=function(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)},e.prototype.get=function(e,t){var n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&i(n.trackById,e))return n;return null},e.prototype.remove=function(e){var t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head},e}(),sa=function(){function e(){this.map=new Map}return e.prototype.put=function(e){var t=e.trackById,n=this.map.get(t);n||(n=new ia,this.map.set(t,n)),n.add(e)},e.prototype.get=function(e,t){var n=e,r=this.map.get(n);return r?r.get(e,t):null},e.prototype.remove=function(e){var t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e},Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0===this.map.size},enumerable:!0,configurable:!0}),e.prototype.clear=function(){this.map.clear()},e.prototype.toString=function(){return"_DuplicateMap("+s(this.map)+")"},e}(),aa=function(){function e(){}return e.prototype.supports=function(e){return e instanceof Map||xe(e)},e.prototype.create=function(e){return new ua},e}(),ua=function(){function e(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return Object.defineProperty(e.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead},enumerable:!0,configurable:!0}),e.prototype.forEachItem=function(e){var t;for(t=this._mapHead;null!==t;t=t._next)e(t)},e.prototype.forEachPreviousItem=function(e){var t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)},e.prototype.forEachChangedItem=function(e){var t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)},e.prototype.forEachAddedItem=function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)},e.prototype.forEachRemovedItem=function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)},e.prototype.diff=function(e){if(e){if(!(e instanceof Map||xe(e)))throw new Error("Error trying to diff '"+s(e)+"'. Only maps and objects are allowed")}else e=new Map;return this.check(e)?this:null},e.prototype.onDestroy=function(){},e.prototype.check=function(e){var t=this;this._reset();var n=this._mapHead;if(this._appendAfter=null,this._forEach(e,function(e,r){if(n&&n.key===r)t._maybeAddToChanges(n,e),t._appendAfter=n,n=n._next;else{var o=t._getOrCreateRecordForKey(r,e);n=t._insertBeforeOrAppend(n,o)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(var r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty},e.prototype._insertBeforeOrAppend=function(e,t){if(e){var n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null},e.prototype._getOrCreateRecordForKey=function(e,t){if(this._records.has(e)){var n=this._records.get(e);this._maybeAddToChanges(n,t);var r=n._prev,o=n._next;return r&&(r._next=o),o&&(o._prev=r),n._next=null,n._prev=null,n}var i=new ca(e);return this._records.set(e,i),i.currentValue=t,this._addToAdditions(i),i},e.prototype._reset=function(){if(this.isDirty){var e=void 0;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}},e.prototype._maybeAddToChanges=function(e,t){i(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))},e.prototype._addToAdditions=function(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)},e.prototype._addToChanges=function(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)},e.prototype._forEach=function(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(function(n){return t(e[n],n)})},e}(),ca=function(){function e(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}return e}(),la=function(){function e(e){this.factories=e}return e.create=function(t,n){if(null!=n){var r=n.factories.slice();return t=t.concat(r),new e(t)}return new e(t)},e.extend=function(t){return{provide:e,useFactory:function(n){if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return e.create(t,n)},deps:[[e,new hi,new ci]]}},e.prototype.find=function(e){var t=this.factories.find(function(t){return t.supports(e)});if(null!=t)return t;throw new Error("Cannot find a differ supporting object '"+e+"' of type '"+De(e)+"'")},e}(),pa=function(){function e(e){this.factories=e}return e.create=function(t,n){if(n){var r=n.factories.slice();t=t.concat(r)}return new e(t)},e.extend=function(t){return{provide:e,useFactory:function(n){if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return e.create(t,n)},deps:[[e,new hi,new ci]]}},e.prototype.find=function(e){var t=this.factories.find(function(t){return t.supports(e)});if(t)return t;throw new Error("Cannot find a differ supporting object '"+e+"'")},e}(),ha=[new aa],fa=[new ta],da=new la(fa),ya=new pa(ha),va=[{provide:Ui,useValue:"unknown"},Ps,{provide:Os,useExisting:Ps},{provide:Ii,useFactory:Me,deps:[]},ms,Qi],ma=he(null,"core",va),ga=new Ro("LocaleId"),_a=new Ro("Translations"),ba=new Ro("TranslationsFormat"),wa={};wa.Error=0,wa.Warning=1,wa.Ignore=2,wa[wa.Error]="Error",wa[wa.Warning]="Warning",wa[wa.Ignore]="Ignore";var Ca=function(){function e(e){}return e}();Ca.decorators=[{type:ri,args:[{providers:[Ns,{provide:Ts,useExisting:Ns},Hi,Ji,qi,{provide:la,useFactory:Fe},{provide:pa,useFactory:je},{provide:ga,useFactory:Le,deps:[[new ui(ga),new ci,new hi]]}]}]}],Ca.ctorParameters=function(){return[{type:Ts}]};var Ea={};Ea.NONE=0,Ea.HTML=1,Ea.STYLE=2,Ea.SCRIPT=3,Ea.URL=4,Ea.RESOURCE_URL=5,Ea[Ea.NONE]="NONE",Ea[Ea.HTML]="HTML",Ea[Ea.STYLE]="STYLE",Ea[Ea.SCRIPT]="SCRIPT",Ea[Ea.URL]="URL",Ea[Ea.RESOURCE_URL]="RESOURCE_URL";var Sa=function(){function e(){}return e.prototype.sanitize=function(e,t){},e}(),Oa=function(){function e(){}return e.prototype.view=function(){},e.prototype.nodeIndex=function(){},e.prototype.injector=function(){},e.prototype.component=function(){},e.prototype.providerTokens=function(){},e.prototype.references=function(){},e.prototype.context=function(){},e.prototype.componentRenderElement=function(){},e.prototype.renderNode=function(){},e.prototype.logError=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n]},e}(),Pa={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,clearProviderOverrides:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0},Ta=function(){},Na=new Map,Ia="$$undefined",Aa="$$empty",Ra=0,xa=new WeakMap,ka=/^:([^:]+):(.+)$/,Da=[],Ma={},Fa=new Object,ja=Ye(mi),La=Ye(as),Va=new Object,Ha=function(e){function t(t,n,r,o,i,s){var a=e.call(this)||this;return a.selector=t,a.componentType=n,a._inputs=o,a._outputs=i,a.ngContentSelectors=s,a.viewDefFactory=r,a}return Oo.a(t,e),Object.defineProperty(t.prototype,"inputs",{get:function(){var e=[],t=this._inputs;for(var n in t){var r=t[n];e.push({propName:n,templateName:r})}return e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outputs",{get:function(){var e=[];for(var t in this._outputs){var n=this._outputs[t];e.push({propName:t,templateName:n})}return e},enumerable:!0,configurable:!0}),t.prototype.create=function(e,t,n,r){if(!r)throw new Error("ngModule should be provided");var o=vt(this.viewDefFactory),i=o.nodes[0].element.componentProvider.nodeIndex,s=Pa.createRootView(e,t||[],n,o,r,Va),a=Be(s,i).instance;return n&&s.renderer.setAttribute(He(s,0).renderElement,"ng-version",ai.full),new Ba(s,new Wa(s),a)},t}($i),Ba=function(e){function t(t,n,r){var o=e.call(this)||this;return o._view=t,o._viewRef=n,o._component=r,o._elDef=o._view.def.nodes[0],o}return Oo.a(t,e),Object.defineProperty(t.prototype,"location",{get:function(){return new Fs(He(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new za(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"instance",{get:function(){return this._component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hostView",{get:function(){return this._viewRef},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"changeDetectorRef",{get:function(){return this._viewRef},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this._viewRef.destroy()},t.prototype.onDestroy=function(e){this._viewRef.onDestroy(e)},t}(Zi),qa=function(){function e(e,t,n){this._view=e,this._elDef=t,this._data=n,this._embeddedViews=[]}return Object.defineProperty(e.prototype,"element",{get:function(){return new Fs(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new za(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentInjector",{get:function(){for(var e=this._view,t=this._elDef.parent;!t&&e;)t=at(e),e=e.parent;return e?new za(e,t):new za(this._view,null)},enumerable:!0,configurable:!0}),e.prototype.clear=function(){for(var e=this._embeddedViews.length,t=e-1;t>=0;t--){var n=Xt(this._data,t);Pa.destroyView(n)}},e.prototype.get=function(e){var t=this._embeddedViews[e];if(t){var n=new Wa(t);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(e.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),e.prototype.createEmbeddedView=function(e,t,n){var r=e.createEmbeddedView(t||{});return this.insert(r,n),r},e.prototype.createComponent=function(e,t,n,r,o){var i=n||this.parentInjector;o||e instanceof ss||(o=i.get(as));var s=e.create(i,r,void 0,o);return this.insert(s.hostView,t),s},e.prototype.insert=function(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n=e,r=n._view;return Kt(this._view,this._data,t,r),n.attachToViewContainerRef(this),e},e.prototype.move=function(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n=this._embeddedViews.indexOf(e._view);return $t(this._data,n,t),e},e.prototype.indexOf=function(e){return this._embeddedViews.indexOf(e._view)},e.prototype.remove=function(e){var t=Xt(this._data,e);t&&Pa.destroyView(t)},e.prototype.detach=function(e){var t=Xt(this._data,e);return t?new Wa(t):null},e}(),Wa=function(){function e(e){this._view=e,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(e.prototype,"rootNodes",{get:function(){return mt(this._view)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),e.prototype.markForCheck=function(){rt(this._view)},e.prototype.detach=function(){this._view.state&=-5},e.prototype.detectChanges=function(){var e=this._view.root.rendererFactory;e.begin&&e.begin(),Pa.checkAndUpdateView(this._view),e.end&&e.end()},e.prototype.checkNoChanges=function(){Pa.checkNoChangesView(this._view)},e.prototype.reattach=function(){this._view.state|=4},e.prototype.onDestroy=function(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)},e.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Pa.destroyView(this._view)},e.prototype.detachFromAppRef=function(){this._appRef=null,tn(this._view),Pa.dirtyParentQueries(this._view)},e.prototype.attachToAppRef=function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e},e.prototype.attachToViewContainerRef=function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e},e}(),Ua=function(e){function t(t,n){var r=e.call(this)||this;return r._parentView=t,r._def=n,r}return Oo.a(t,e),t.prototype.createEmbeddedView=function(e){return new Wa(Pa.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))},Object.defineProperty(t.prototype,"elementRef",{get:function(){return new Fs(He(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),t}(Ws),za=function(){function e(e,t){this.view=e,this.elDef=t}return e.prototype.get=function(e,t){void 0===t&&(t=mi.THROW_IF_NOT_FOUND);var n=!!this.elDef&&0!=(33554432&this.elDef.flags);return Pa.resolveDep(this.view,this.elDef,n,{flags:0,token:e,tokenKey:Ye(e)},t)},e}(),Ga=function(){function e(e){this.delegate=e}return e.prototype.selectRootElement=function(e){return this.delegate.selectRootElement(e)},e.prototype.createElement=function(e,t){var n=Et(t),r=n[0],o=n[1],i=this.delegate.createElement(o,r);return e&&this.delegate.appendChild(e,i),i},e.prototype.createViewRoot=function(e){return e},e.prototype.createTemplateAnchor=function(e){var t=this.delegate.createComment("");return e&&this.delegate.appendChild(e,t),t},e.prototype.createText=function(e,t){var n=this.delegate.createText(t);return e&&this.delegate.appendChild(e,n),n},e.prototype.projectNodes=function(e,t){for(var n=0;n<t.length;n++)this.delegate.appendChild(e,t[n])},e.prototype.attachViewAfter=function(e,t){for(var n=this.delegate.parentNode(e),r=this.delegate.nextSibling(e),o=0;o<t.length;o++)this.delegate.insertBefore(n,t[o],r)},e.prototype.detachView=function(e){for(var t=0;t<e.length;t++){var n=e[t],r=this.delegate.parentNode(n);this.delegate.removeChild(r,n)}},e.prototype.destroyView=function(e,t){for(var n=0;n<t.length;n++)this.delegate.destroyNode(t[n])},e.prototype.listen=function(e,t,n){return this.delegate.listen(e,t,n)},e.prototype.listenGlobal=function(e,t,n){return this.delegate.listen(e,t,n)},e.prototype.setElementProperty=function(e,t,n){this.delegate.setProperty(e,t,n)},e.prototype.setElementAttribute=function(e,t,n){var r=Et(t),o=r[0],i=r[1];null!=n?this.delegate.setAttribute(e,i,n,o):this.delegate.removeAttribute(e,i,o)},e.prototype.setBindingDebugInfo=function(e,t,n){},e.prototype.setElementClass=function(e,t,n){n?this.delegate.addClass(e,t):this.delegate.removeClass(e,t)},e.prototype.setElementStyle=function(e,t,n){null!=n?this.delegate.setStyle(e,t,n):this.delegate.removeStyle(e,t)},e.prototype.invokeElementMethod=function(e,t,n){e[t].apply(e,n)},e.prototype.setText=function(e,t){this.delegate.setValue(e,t)},e.prototype.animate=function(){throw new Error("Renderer.animate is no longer supported!")},e}(),Qa=function(){function e(e,t,n,r){this._moduleType=e,this._parent=t,this._bootstrapComponents=n,this._def=r,this._destroyListeners=[],this._destroyed=!1,qt(this)}return e.prototype.get=function(e,t){return void 0===t&&(t=mi.THROW_IF_NOT_FOUND),Wt(this,{token:e,tokenKey:Ye(e),flags:0},t)},Object.defineProperty(e.prototype,"instance",{get:function(){return this.get(this._moduleType)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentFactoryResolver",{get:function(){return this.get(ns)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return this},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){if(this._destroyed)throw new Error("The ng module "+s(this.instance.constructor)+" has already been destroyed.");this._destroyed=!0,Qt(this,131072),this._destroyListeners.forEach(function(e){return e()})},e.prototype.onDestroy=function(e){this._destroyListeners.push(e)},e}(),Ka=Ye(Rs),Ja=Ye(Ms),Ya=Ye(Fs),Xa=Ye(Us),Za=Ye(Ws),$a=Ye(zs),eu=Ye(mi),tu={},nu={};nu.CreateViewNodes=0,nu.CheckNoChanges=1,nu.CheckNoChangesProjectedViews=2,nu.CheckAndUpdate=3,nu.CheckAndUpdateProjectedViews=4,nu.Destroy=5,nu[nu.CreateViewNodes]="CreateViewNodes",nu[nu.CheckNoChanges]="CheckNoChanges",nu[nu.CheckNoChangesProjectedViews]="CheckNoChangesProjectedViews",nu[nu.CheckAndUpdate]="CheckAndUpdate",nu[nu.CheckAndUpdateProjectedViews]="CheckAndUpdateProjectedViews",nu[nu.Destroy]="Destroy";var ru=!1,ou=new Map,iu={};iu.create=0,iu.detectChanges=1,iu.checkNoChanges=2,iu.destroy=3,iu.handleEvent=4,iu[iu.create]="create",iu[iu.detectChanges]="detectChanges",iu[iu.checkNoChanges]="checkNoChanges",iu[iu.destroy]="destroy",iu[iu.handleEvent]="handleEvent";var su,au,uu,cu=/([A-Z])/g,lu=function(){function e(e,t){this.view=e,this.nodeIndex=t,null==t&&(this.nodeIndex=t=0),this.nodeDef=e.def.nodes[t];for(var n=this.nodeDef,r=e;n&&0==(1&n.flags);)n=n.parent;if(!n)for(;!n&&r;)n=at(r),r=r.parent;this.elDef=n,this.elView=r}return Object.defineProperty(e.prototype,"elOrCompView",{get:function(){return He(this.elView,this.elDef.nodeIndex).componentView||this.view},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return ln(this.elView,this.elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"component",{get:function(){return this.elOrCompView.component},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this.elOrCompView.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"providerTokens",{get:function(){var e=[];if(this.elDef)for(var t=this.elDef.nodeIndex+1;t<=this.elDef.nodeIndex+this.elDef.childCount;t++){var n=this.elView.def.nodes[t];20224&n.flags&&e.push(n.provider.token),t+=n.childCount}return e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"references",{get:function(){var e={};if(this.elDef){no(this.elView,this.elDef,e);for(var t=this.elDef.nodeIndex+1;t<=this.elDef.nodeIndex+this.elDef.childCount;t++){var n=this.elView.def.nodes[t];20224&n.flags&&no(this.elView,n,e),t+=n.childCount}}return e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentRenderElement",{get:function(){var e=to(this.elOrCompView);return e?e.renderElement:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"renderNode",{get:function(){return 2&this.nodeDef.flags?ut(this.view,this.nodeDef):ut(this.elView,this.elDef)},enumerable:!0,configurable:!0}),e.prototype.logError=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r,o;2&this.nodeDef.flags?(r=this.view.def,o=this.nodeDef.nodeIndex):(r=this.elView.def,o=this.elDef.nodeIndex);var i=eo(r,o),s=-1,a=function(){return s++,s===i?(n=e.error).bind.apply(n,[e].concat(t)):Ta;var n};r.factory(a),s<i&&(e.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),e.error.apply(e,t))},e}(),pu=function(){function e(e){this.delegate=e}return e.prototype.createRenderer=function(e,t){return new hu(this.delegate.createRenderer(e,t))},e.prototype.begin=function(){this.delegate.begin&&this.delegate.begin()},e.prototype.end=function(){this.delegate.end&&this.delegate.end()},e.prototype.whenRenderingDone=function(){return this.delegate.whenRenderingDone?this.delegate.whenRenderingDone():Promise.resolve(null)},e}(),hu=function(){function e(e){this.delegate=e}return Object.defineProperty(e.prototype,"data",{get:function(){return this.delegate.data},enumerable:!0,configurable:!0}),e.prototype.destroyNode=function(e){Te(Oe(e)),this.delegate.destroyNode&&this.delegate.destroyNode(e)},e.prototype.destroy=function(){this.delegate.destroy()},e.prototype.createElement=function(e,t){var n=this.delegate.createElement(e,t),r=oo();if(r){var o=new Ys(n,null,r);o.name=e,Pe(o)}return n},e.prototype.createComment=function(e){var t=this.delegate.createComment(e),n=oo();return n&&Pe(new Js(t,null,n)),t},e.prototype.createText=function(e){var t=this.delegate.createText(e),n=oo();return n&&Pe(new Js(t,null,n)),t},e.prototype.appendChild=function(e,t){var n=Oe(e),r=Oe(t);n&&r&&n instanceof Ys&&n.addChild(r),this.delegate.appendChild(e,t)},e.prototype.insertBefore=function(e,t,n){var r=Oe(e),o=Oe(t),i=Oe(n);r&&o&&r instanceof Ys&&r.insertBefore(i,o),this.delegate.insertBefore(e,t,n)},e.prototype.removeChild=function(e,t){var n=Oe(e),r=Oe(t);n&&r&&n instanceof Ys&&n.removeChild(r),this.delegate.removeChild(e,t)},e.prototype.selectRootElement=function(e){var t=this.delegate.selectRootElement(e),n=oo();return n&&Pe(new Ys(t,null,n)),t},e.prototype.setAttribute=function(e,t,n,r){var o=Oe(e);if(o&&o instanceof Ys){var i=r?r+":"+t:t;o.attributes[i]=n}this.delegate.setAttribute(e,t,n,r)},e.prototype.removeAttribute=function(e,t,n){var r=Oe(e);if(r&&r instanceof Ys){var o=n?n+":"+t:t;r.attributes[o]=null}this.delegate.removeAttribute(e,t,n)},e.prototype.addClass=function(e,t){var n=Oe(e);n&&n instanceof Ys&&(n.classes[t]=!0),this.delegate.addClass(e,t)},e.prototype.removeClass=function(e,t){var n=Oe(e);n&&n instanceof Ys&&(n.classes[t]=!1),this.delegate.removeClass(e,t)},e.prototype.setStyle=function(e,t,n,r){var o=Oe(e);o&&o instanceof Ys&&(o.styles[t]=n),this.delegate.setStyle(e,t,n,r)},e.prototype.removeStyle=function(e,t,n){var r=Oe(e);r&&r instanceof Ys&&(r.styles[t]=null),this.delegate.removeStyle(e,t,n)},e.prototype.setProperty=function(e,t,n){var r=Oe(e);r&&r instanceof Ys&&(r.properties[t]=n),this.delegate.setProperty(e,t,n)},e.prototype.listen=function(e,t,n){if("string"!=typeof e){var r=Oe(e);r&&r.listeners.push(new Ks(t,n))}return this.delegate.listen(e,t,n)},e.prototype.parentNode=function(e){return this.delegate.parentNode(e)},e.prototype.nextSibling=function(e){return this.delegate.nextSibling(e)},e.prototype.setValue=function(e,t){return this.delegate.setValue(e,t)},e}(),fu=function(e){function t(t,n,r){var o=e.call(this)||this;return o.moduleType=t,o._bootstrapComponents=n,o._ngModuleDefFactory=r,o}return Oo.a(t,e),t.prototype.create=function(e){Or();var t=vt(this._ngModuleDefFactory);return Pa.createNgModuleRef(this.moduleType,e||mi.NULL,this._bootstrapComponents,t)},t}(us),du="*"}.call(t,n("fRUx"))},"/ygB":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.contains=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.safeGet=function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]},t.forEach=function(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t(n,e[n])},t.extend=function(e,n){return t.forEach(n,function(t,n){e[t]=n}),e},t.clone=function(e){return t.extend({},e)},t.isNonNullObject=function(e){return"object"==typeof e&&null!==e},t.isEmpty=function(e){for(var t in e)return!1;return!0},t.getCount=function(e){var t=0;for(var n in e)t++;return t},t.map=function(e,t,n){var r={};for(var o in e)r[o]=t.call(n,e[o],o,e);return r},t.findKey=function(e,t,n){for(var r in e)if(t.call(n,e[r],r,e))return r},t.findValue=function(e,n,r){var o=t.findKey(e,n,r);return o&&e[o]},t.getAnyKey=function(e){for(var t in e)return t},t.getValues=function(e){var t=[],n=0;for(var r in e)t[n++]=e[r];return t},t.every=function(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&!t(n,e[n]))return!1;return!0}},"/zAi":function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=n("/oeL"),s=n("qbdv"),a=n("/oeL"),u=function(){function e(){}return e}();u=r([a.Component({selector:"p-header",template:"<ng-content></ng-content>"})],u),t.Header=u;var c=function(){function e(){}return e}();c=r([a.Component({selector:"p-footer",template:"<ng-content></ng-content>"})],c),t.Footer=c;var l=function(){function e(e){this.template=e}return e.prototype.getType=function(){return this.name},e}();r([i.Input(),o("design:type",String)],l.prototype,"type",void 0),r([i.Input("pTemplate"),o("design:type",String)],l.prototype,"name",void 0),l=r([i.Directive({selector:"[pTemplate]",host:{}}),o("design:paramtypes",[i.TemplateRef])],l),t.PrimeTemplate=l;var p=function(){function e(e){this.viewContainer=e}return e.prototype.ngOnInit=function(){this.view=this.viewContainer.createEmbeddedView(this.templateRef,{$implicit:this.item,index:this.index})},e.prototype.ngOnDestroy=function(){this.view.destroy()},e}();r([i.Input(),o("design:type",Object)],p.prototype,"item",void 0),r([i.Input(),o("design:type",Number)],p.prototype,"index",void 0),r([i.Input("pTemplateWrapper"),o("design:type",i.TemplateRef)],p.prototype,"templateRef",void 0),p=r([i.Directive({selector:"[pTemplateWrapper]"}),o("design:paramtypes",[i.ViewContainerRef])],p),t.TemplateWrapper=p;var h=function(){function e(){this.filterType="text",this.exportable=!0,this.sortFunction=new i.EventEmitter}return e.prototype.ngAfterContentInit=function(){var e=this;this.templates.forEach(function(t){switch(t.getType()){case"header":e.headerTemplate=t.template;break;case"body":e.bodyTemplate=t.template;break;case"footer":e.footerTemplate=t.template;break;case"filter":e.filterTemplate=t.template;break;case"editor":e.editorTemplate=t.template;break;default:e.bodyTemplate=t.template}})},e}();r([i.Input(),o("design:type",String)],h.prototype,"field",void 0),r([i.Input(),o("design:type",String)],h.prototype,"colId",void 0),r([i.Input(),o("design:type",String)],h.prototype,"sortField",void 0),r([i.Input(),o("design:type",String)],h.prototype,"filterField",void 0),r([i.Input(),o("design:type",String)],h.prototype,"header",void 0),r([i.Input(),o("design:type",String)],h.prototype,"footer",void 0),r([i.Input(),o("design:type",Object)],h.prototype,"sortable",void 0),r([i.Input(),o("design:type",Boolean)],h.prototype,"editable",void 0),r([i.Input(),o("design:type",Boolean)],h.prototype,"filter",void 0),r([i.Input(),o("design:type",String)],h.prototype,"filterMatchMode",void 0),r([i.Input(),o("design:type",String)],h.prototype,"filterType",void 0),r([i.Input(),o("design:type",Boolean)],h.prototype,"excludeGlobalFilter",void 0),r([i.Input(),o("design:type",Number)],h.prototype,"rowspan",void 0),r([i.Input(),o("design:type",Number)],h.prototype,"colspan",void 0),r([i.Input(),o("design:type",String)],h.prototype,"scope",void 0),r([i.Input(),o("design:type",Object)],h.prototype,"style",void 0),r([i.Input(),o("design:type",String)],h.prototype,"styleClass",void 0),r([i.Input(),o("design:type",Boolean)],h.prototype,"exportable",void 0),r([i.Input(),o("design:type",Object)],h.prototype,"headerStyle",void 0),r([i.Input(),o("design:type",String)],h.prototype,"headerStyleClass",void 0),r([i.Input(),o("design:type",Object)],h.prototype,"bodyStyle",void 0),r([i.Input(),o("design:type",String)],h.prototype,"bodyStyleClass",void 0),r([i.Input(),o("design:type",Object)],h.prototype,"footerStyle",void 0),r([i.Input(),o("design:type",String)],h.prototype,"footerStyleClass",void 0),r([i.Input(),o("design:type",Boolean)],h.prototype,"hidden",void 0),r([i.Input(),o("design:type",Boolean)],h.prototype,"expander",void 0),r([i.Input(),o("design:type",String)],h.prototype,"selectionMode",void 0),r([i.Input(),o("design:type",String)],h.prototype,"filterPlaceholder",void 0),r([i.Input(),o("design:type",Number)],h.prototype,"filterMaxlength",void 0),r([i.Input(),o("design:type",Boolean)],h.prototype,"frozen",void 0),r([i.Output(),o("design:type",i.EventEmitter)],h.prototype,"sortFunction",void 0),r([i.ContentChildren(l),o("design:type",i.QueryList)],h.prototype,"templates",void 0),r([i.ContentChild(i.TemplateRef),o("design:type",i.TemplateRef)],h.prototype,"template",void 0),h=r([a.Component({selector:"p-column",template:""})],h),t.Column=h;var f=function(){function e(){}return e}();r([i.ContentChildren(h),o("design:type",i.QueryList)],f.prototype,"columns",void 0),f=r([a.Component({selector:"p-row",template:""})],f),t.Row=f;var d=function(){function e(){}return e}();r([i.Input(),o("design:type",Boolean)],d.prototype,"frozen",void 0),r([i.ContentChildren(f),o("design:type",i.QueryList)],d.prototype,"rows",void 0),d=r([a.Component({selector:"p-headerColumnGroup",template:""})],d),t.HeaderColumnGroup=d;var y=function(){function e(){}return e}();r([i.Input(),o("design:type",Boolean)],y.prototype,"frozen",void 0),r([i.ContentChildren(f),o("design:type",i.QueryList)],y.prototype,"rows",void 0),y=r([a.Component({selector:"p-footerColumnGroup",template:""})],y),t.FooterColumnGroup=y;var v=function(){function e(e){this.viewContainer=e}return e.prototype.ngOnInit=function(){this.view=this.viewContainer.createEmbeddedView(this.column.bodyTemplate,{$implicit:this.column,rowData:this.rowData,rowIndex:this.rowIndex})},e.prototype.ngOnChanges=function(e){this.view&&"rowIndex"in e&&(this.view.context.rowIndex=e.rowIndex.currentValue)},e.prototype.ngOnDestroy=function(){this.view.destroy()},e}();r([i.Input(),o("design:type",Object)],v.prototype,"column",void 0),r([i.Input(),o("design:type",Object)],v.prototype,"rowData",void 0),r([i.Input(),o("design:type",Number)],v.prototype,"rowIndex",void 0),v=r([a.Component({selector:"p-columnBodyTemplateLoader",template:""}),o("design:paramtypes",[i.ViewContainerRef])],v),t.ColumnBodyTemplateLoader=v;var m=function(){function e(e){this.viewContainer=e}return e.prototype.ngOnInit=function(){this.view=this.viewContainer.createEmbeddedView(this.column.headerTemplate,{$implicit:this.column})},e.prototype.ngOnDestroy=function(){this.view.destroy()},e}();r([i.Input(),o("design:type",Object)],m.prototype,"column",void 0),m=r([a.Component({selector:"p-columnHeaderTemplateLoader",template:""}),o("design:paramtypes",[i.ViewContainerRef])],m),t.ColumnHeaderTemplateLoader=m;var g=function(){function e(e){this.viewContainer=e}return e.prototype.ngOnInit=function(){this.view=this.viewContainer.createEmbeddedView(this.column.footerTemplate,{$implicit:this.column})},e.prototype.ngOnDestroy=function(){this.view.destroy()},e}();r([i.Input(),o("design:type",Object)],g.prototype,"column",void 0),g=r([a.Component({selector:"p-columnFooterTemplateLoader",template:""}),o("design:paramtypes",[i.ViewContainerRef])],g),t.ColumnFooterTemplateLoader=g;var _=function(){function e(e){this.viewContainer=e}return e.prototype.ngOnInit=function(){this.view=this.viewContainer.createEmbeddedView(this.column.filterTemplate,{$implicit:this.column})},e.prototype.ngOnDestroy=function(){this.view.destroy()},e}();r([i.Input(),o("design:type",Object)],_.prototype,"column",void 0),_=r([a.Component({selector:"p-columnFilterTemplateLoader",template:""}),o("design:paramtypes",[i.ViewContainerRef])],_),t.ColumnFilterTemplateLoader=_;var b=function(){function e(e){this.viewContainer=e}return e.prototype.ngOnInit=function(){this.view=this.viewContainer.createEmbeddedView(this.column.editorTemplate,{$implicit:this.column,rowData:this.rowData,rowIndex:this.rowIndex})},e.prototype.ngOnDestroy=function(){this.view.destroy()},e}();r([i.Input(),o("design:type",Object)],b.prototype,"column",void 0),r([i.Input(),o("design:type",Object)],b.prototype,"rowData",void 0),r([i.Input(),o("design:type",Object)],b.prototype,"rowIndex",void 0),b=r([a.Component({selector:"p-columnEditorTemplateLoader",template:""}),o("design:paramtypes",[i.ViewContainerRef])],b),t.ColumnEditorTemplateLoader=b;var w=function(){function e(e){this.viewContainer=e}return e.prototype.ngOnInit=function(){this.template&&(this.view=this.viewContainer.createEmbeddedView(this.template,{$implicit:this.data}))},e.prototype.ngOnDestroy=function(){this.view&&this.view.destroy()},e}();r([i.Input(),o("design:type",i.TemplateRef)],w.prototype,"template",void 0),r([i.Input(),o("design:type",Object)],w.prototype,"data",void 0),w=r([a.Component({selector:"p-templateLoader",template:""}),o("design:paramtypes",[i.ViewContainerRef])],w),t.TemplateLoader=w;var C=function(){function e(){}return e}();C=r([i.NgModule({imports:[s.CommonModule],exports:[u,c,h,p,m,v,g,_,l,w,f,d,y,b],declarations:[u,c,h,p,m,v,g,_,l,w,f,d,y,b]})],C),t.SharedModule=C},"01UM":function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=n("/oeL"),s=n("4cOY"),a=n("qbdv"),u=function(){function e(e,t){this.el=e,this.domHandler=t,this.iconPos="left",this.cornerStyleClass="ui-corner-all"}return e.prototype.ngAfterViewInit=function(){if(this.domHandler.addMultipleClasses(this.el.nativeElement,this.getStyleClass()),this.icon){var e=document.createElement("span"),t="right"==this.iconPos?"ui-button-icon-right":"ui-button-icon-left";e.className=t+" ui-clickable fa fa-fw "+this.icon,this.el.nativeElement.appendChild(e)}var n=document.createElement("span");n.className="ui-button-text ui-clickable",n.appendChild(document.createTextNode(this.label||"ui-btn")),this.el.nativeElement.appendChild(n),this.initialized=!0},e.prototype.getStyleClass=function(){var e="ui-button ui-widget ui-state-default "+this.cornerStyleClass;return this.icon?null!=this.label&&void 0!=this.label?"left"==this.iconPos?e+=" ui-button-text-icon-left":e+=" ui-button-text-icon-right":e+=" ui-button-icon-only":e+=" ui-button-text-only",e},Object.defineProperty(e.prototype,"label",{get:function(){return this._label},set:function(e){this._label=e,this.initialized&&(this.domHandler.findSingle(this.el.nativeElement,".ui-button-text").textContent=this._label)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"icon",{get:function(){return this._icon},set:function(e){if(this._icon=e,this.initialized){var t="right"==this.iconPos?"ui-button-icon-right":"ui-button-icon-left";this.domHandler.findSingle(this.el.nativeElement,".fa").className=t+" ui-clickable fa fa-fw "+this.icon}},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){for(;this.el.nativeElement.hasChildNodes();)this.el.nativeElement.removeChild(this.el.nativeElement.lastChild);this.initialized=!1},e}();r([i.Input(),o("design:type",String)],u.prototype,"iconPos",void 0),r([i.Input(),o("design:type",String)],u.prototype,"cornerStyleClass",void 0),r([i.Input(),o("design:type",String),o("design:paramtypes",[String])],u.prototype,"label",null),r([i.Input(),o("design:type",String),o("design:paramtypes",[String])],u.prototype,"icon",null),u=r([i.Directive({selector:"[pButton]",providers:[s.DomHandler]}),o("design:paramtypes",[i.ElementRef,s.DomHandler])],u),t.Button=u;var c=function(){function e(){}return e}();c=r([i.NgModule({imports:[a.CommonModule],exports:[u],declarations:[u]})],c),t.ButtonModule=c},"04zk":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n("JEJ4"),i=n("F1yO"),s=n("3FiG"),a=function(){function e(t,n){void 0===n&&(n=e.__childrenNodeConstructor.EMPTY_NODE),this.value_=t,this.priorityNode_=n,this.lazyHash_=null,o.assert(void 0!==this.value_&&null!==this.value_,"LeafNode shouldn't be created with null/undefined value."),s.validatePriorityNode(this.priorityNode_)}return Object.defineProperty(e,"__childrenNodeConstructor",{get:function(){return r},set:function(e){r=e},enumerable:!0,configurable:!0}),e.prototype.isLeafNode=function(){return!0},e.prototype.getPriority=function(){return this.priorityNode_},e.prototype.updatePriority=function(t){return new e(this.value_,t)},e.prototype.getImmediateChild=function(t){return".priority"===t?this.priorityNode_:e.__childrenNodeConstructor.EMPTY_NODE},e.prototype.getChild=function(t){return t.isEmpty()?this:".priority"===t.getFront()?this.priorityNode_:e.__childrenNodeConstructor.EMPTY_NODE},e.prototype.hasChild=function(){return!1},e.prototype.getPredecessorChildName=function(e,t){return null},e.prototype.updateImmediateChild=function(t,n){return".priority"===t?this.updatePriority(n):n.isEmpty()&&".priority"!==t?this:e.__childrenNodeConstructor.EMPTY_NODE.updateImmediateChild(t,n).updatePriority(this.priorityNode_)},e.prototype.updateChild=function(t,n){var r=t.getFront();return null===r?n:n.isEmpty()&&".priority"!==r?this:(o.assert(".priority"!==r||1===t.getLength(),".priority must be the last token in a path"),this.updateImmediateChild(r,e.__childrenNodeConstructor.EMPTY_NODE.updateChild(t.popFront(),n)))},e.prototype.isEmpty=function(){return!1},e.prototype.numChildren=function(){return 0},e.prototype.forEachChild=function(e,t){return!1},e.prototype.val=function(e){return e&&!this.getPriority().isEmpty()?{".value":this.getValue(),".priority":this.getPriority().val()}:this.getValue()},e.prototype.hash=function(){if(null===this.lazyHash_){var e="";this.priorityNode_.isEmpty()||(e+="priority:"+s.priorityHashText(this.priorityNode_.val())+":");var t=typeof this.value_;e+=t+":",e+="number"===t?i.doubleToIEEE754String(this.value_):this.value_,this.lazyHash_=i.sha1(e)}return this.lazyHash_},e.prototype.getValue=function(){return this.value_},e.prototype.compareTo=function(t){return t===e.__childrenNodeConstructor.EMPTY_NODE?1:t instanceof e.__childrenNodeConstructor?-1:(o.assert(t.isLeafNode(),"Unknown node type"),this.compareToLeafNode_(t))},e.prototype.compareToLeafNode_=function(t){var n=typeof t.value_,r=typeof this.value_,i=e.VALUE_TYPE_ORDER.indexOf(n),s=e.VALUE_TYPE_ORDER.indexOf(r);return o.assert(i>=0,"Unknown leaf type: "+n),o.assert(s>=0,"Unknown leaf type: "+r),i===s?"object"===r?0:this.value_<t.value_?-1:this.value_===t.value_?0:1:s-i},e.prototype.withIndex=function(){return this},e.prototype.isIndexed=function(){return!0},e.prototype.equals=function(e){if(e===this)return!0;if(e.isLeafNode()){var t=e;return this.value_===t.value_&&this.priorityNode_.equals(t.priorityNode_)}return!1},e.VALUE_TYPE_ORDER=["object","boolean","number","string"],e}();t.LeafNode=a},"0hmO":function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n("JEJ4"),i=n("YY8E"),s=n("JEJ4"),a=function(e){function t(){var t=e.call(this,["online"])||this;return t.online_=!0,"undefined"==typeof window||void 0===window.addEventListener||s.isMobileCordova()||(window.addEventListener("online",function(){t.online_||(t.online_=!0,t.trigger("online",!0))},!1),window.addEventListener("offline",function(){t.online_&&(t.online_=!1,t.trigger("online",!1))},!1)),t}return r(t,e),t.getInstance=function(){return new t},t.prototype.getInitialEvent=function(e){return o.assert("online"===e,"Unknown event type: "+e),[this.online_]},t.prototype.currentlyOnline=function(){return this.online_},t}(i.EventEmitter);t.OnlineMonitor=a},"0npo":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("W4Cj"),o=n("KH1l"),i=n("R3TC"),s=n("y8hQ"),a=n("bN85"),u=n("9kU/"),c=n("JEJ4"),l=n("gOHv"),p=n("ertD"),h=n("/fob"),f=function(){function e(e,t){this.query_=e,this.eventRegistrations_=[];var n=this.query_.getQueryParams(),c=new r.IndexedFilter(n.getIndex()),l=n.getNodeFilter();this.processor_=new o.ViewProcessor(l);var p=t.getServerCache(),h=t.getEventCache(),f=c.updateFullNode(i.ChildrenNode.EMPTY_NODE,p.getNode(),null),d=l.updateFullNode(i.ChildrenNode.EMPTY_NODE,h.getNode(),null),y=new s.CacheNode(f,p.isFullyInitialized(),c.filtersNodes()),v=new s.CacheNode(d,h.isFullyInitialized(),l.filtersNodes());this.viewCache_=new a.ViewCache(v,y),this.eventGenerator_=new u.EventGenerator(this.query_)}return e.prototype.getQuery=function(){return this.query_},e.prototype.getServerCache=function(){return this.viewCache_.getServerCache().getNode()},e.prototype.getCompleteServerCache=function(e){var t=this.viewCache_.getCompleteServerSnap();return t&&(this.query_.getQueryParams().loadsAllData()||!e.isEmpty()&&!t.getImmediateChild(e.getFront()).isEmpty())?t.getChild(e):null},e.prototype.isEmpty=function(){return 0===this.eventRegistrations_.length},e.prototype.addEventRegistration=function(e){this.eventRegistrations_.push(e)},e.prototype.removeEventRegistration=function(e,t){var n=[];if(t){c.assert(null==e,"A cancel should cancel all event registrations.");var r=this.query_.path;this.eventRegistrations_.forEach(function(e){t=t;var o=e.createCancelEvent(t,r);o&&n.push(o)})}if(e){for(var o=[],i=0;i<this.eventRegistrations_.length;++i){var s=this.eventRegistrations_[i];if(s.matches(e)){if(e.hasAnyCallback()){o=o.concat(this.eventRegistrations_.slice(i+1));break}}else o.push(s)}this.eventRegistrations_=o}else this.eventRegistrations_=[];return n},e.prototype.applyOperation=function(e,t,n){e.type===l.OperationType.MERGE&&null!==e.source.queryId&&(c.assert(this.viewCache_.getCompleteServerSnap(),"We should always have a full cache before handling merges"),c.assert(this.viewCache_.getCompleteEventSnap(),"Missing event cache, even though we have a server cache"));var r=this.viewCache_,o=this.processor_.applyOperation(r,e,t,n);return this.processor_.assertIndexed(o.viewCache),c.assert(o.viewCache.getServerCache().isFullyInitialized()||!r.getServerCache().isFullyInitialized(),"Once a server snap is complete, it should never go back"),this.viewCache_=o.viewCache,this.generateEventsForChanges_(o.changes,o.viewCache.getEventCache().getNode(),null)},e.prototype.getInitialEvents=function(e){var t=this.viewCache_.getEventCache(),n=[];if(!t.getNode().isLeafNode()){t.getNode().forEachChild(h.PRIORITY_INDEX,function(e,t){n.push(p.Change.childAddedChange(e,t))})}return t.isFullyInitialized()&&n.push(p.Change.valueChange(t.getNode())),this.generateEventsForChanges_(n,t.getNode(),e)},e.prototype.generateEventsForChanges_=function(e,t,n){var r=n?[n]:this.eventRegistrations_;return this.eventGenerator_.generateEventsForChanges(e,t,r)},e}();t.View=f},"13je":function(e,t,n){"use strict";function r(e,t){try{return t?i.initializeApp(e,t):i.initializeApp(e)}catch(e){return"app/duplicate-app"===e.code?i.app(e.name):i.app(null)}}var o=n("/oeL"),i=n("kUdC"),s=new o.InjectionToken("FirebaseAppConfigToken"),a=function(){function e(){}return e}(),u=n("GTlS"),c=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},l=function(e){function t(t,n){e.call(this,t,n),this.scheduler=t,this.work=n}return c(t,e),t.prototype.schedule=function(t,n){return void 0===n&&(n=0),n>0?e.prototype.schedule.call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,n){return n>0||this.closed?e.prototype.execute.call(this,t,n):this._execute(t,n)},t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?e.prototype.requestAsyncId.call(this,t,n,r):t.flush(this)},t}(u.a),p=n("wclm"),h=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},f=function(e){function t(){e.apply(this,arguments)}return h(t,e),t}(p.a),d=new f(l),y=new o.InjectionToken("FirebaseAppName"),v={provide:a,useFactory:r,deps:[s,y]},m=function(){function e(){}return e.initializeApp=function(t,n){return{ngModule:e,providers:[{provide:s,useValue:t},{provide:y,useValue:n}]}},e.decorators=[{type:o.NgModule,args:[{providers:[v]}]}],e.ctorParameters=function(){return[]},e}(),g=function(){function e(e){this.zone=e}return e.prototype.schedule=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.zone.run(function(){return d.schedule.apply(d,e)})},e}();n.d(t,!1,function(){return v}),n.d(t,"a",function(){return m}),n.d(t,"e",function(){return g}),n.d(t,"b",function(){return a}),n.d(t,"d",function(){return y}),n.d(t,"c",function(){return s}),n.d(t,"f",function(){return r})},"1WNV":function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(e){if(l===setTimeout)return setTimeout(e,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(e,0);try{return l(e,0)}catch(t){try{return l.call(null,e,0)}catch(t){return l.call(this,e,0)}}}function i(e){if(p===clearTimeout)return clearTimeout(e);if((p===r||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(e);try{return p(e)}catch(t){try{return p.call(null,e)}catch(t){return p.call(this,e)}}}function s(){y&&f&&(y=!1,f.length?d=f.concat(d):v=-1,d.length&&a())}function a(){if(!y){var e=o(s);y=!0;for(var t=d.length;t;){for(f=d,d=[];++v<t;)f&&f[v].run();v=-1,t=d.length}f=null,y=!1,i(e)}}function u(e,t){this.fun=e,this.array=t}function c(){}var l,p,h=e.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:n}catch(e){l=n}try{p="function"==typeof clearTimeout?clearTimeout:r}catch(e){p=r}}();var f,d=[],y=!1,v=-1;h.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];d.push(new u(e,t)),1!==d.length||y||o(a)},u.prototype.run=function(){this.fun.apply(null,this.array)},h.title="browser",h.browser=!0,h.env={},h.argv=[],h.version="",h.versions={},h.on=c,h.addListener=c,h.once=c,h.off=c,h.removeListener=c,h.removeAllListeners=c,h.emit=c,h.prependListener=c,h.prependOnceListener=c,h.listeners=function(e){return[]},h.binding=function(e){throw new Error("process.binding is not supported")},h.cwd=function(){return"/"},h.chdir=function(e){throw new Error("process.chdir is not supported")},h.umask=function(){return 0}},"1j/l":function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=Array.isArray||function(e){return e&&"number"==typeof e.length}},"1zSO":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("JEJ4"),o=function(){function e(e){this.domStorage_=e,this.prefix_="firebase:"}return e.prototype.set=function(e,t){null==t?this.domStorage_.removeItem(this.prefixedName_(e)):this.domStorage_.setItem(this.prefixedName_(e),r.stringify(t))},e.prototype.get=function(e){var t=this.domStorage_.getItem(this.prefixedName_(e));return null==t?null:r.jsonEval(t)},e.prototype.remove=function(e){this.domStorage_.removeItem(this.prefixedName_(e))},e.prototype.prefixedName_=function(e){return this.prefix_+e},e.prototype.toString=function(){return this.domStorage_.toString()},e}();t.DOMStorageWrapper=o},"2BLv":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("isNy"),o=n("isNy"),i=Math.log(2),s=function(){function e(e){this.count=function(e){return parseInt(Math.log(e)/i,10)}(e+1),this.current_=this.count-1;var t=function(e){return parseInt(Array(e+1).join("1"),2)}(this.count);this.bits_=e+1&t}return e.prototype.nextBitIsOne=function(){var e=!(this.bits_&1<<this.current_);return this.current_--,e},e}();t.buildChildSet=function(e,t,n,i){e.sort(t);var a=function(t,o){var i,s,u=o-t;if(0==u)return null;if(1==u)return i=e[t],s=n?n(i):i,new r.LLRBNode(s,i.node,r.LLRBNode.BLACK,null,null);var c=parseInt(u/2,10)+t,l=a(t,c),p=a(c+1,o);return i=e[c],s=n?n(i):i,new r.LLRBNode(s,i.node,r.LLRBNode.BLACK,l,p)},u=new s(e.length),c=function(t){for(var o=null,i=null,s=e.length,u=function(t,o){var i=s-t,u=s;s-=t;var l=a(i+1,u),p=e[i],h=n?n(p):p;c(new r.LLRBNode(h,p.node,o,null,l))},c=function(e){o?(o.left=e,o=e):(i=e,o=e)},l=0;l<t.count;++l){var p=t.nextBitIsOne(),h=Math.pow(2,t.count-(l+1));p?u(h,r.LLRBNode.BLACK):(u(h,r.LLRBNode.BLACK),u(h,r.LLRBNode.RED))}return i}(u);return new o.SortedMap(i||t,c)}},"2kLc":function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("BThc"),o=r.b},"2kNe":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("dVae"),o=n("fvGz"),i=n("JEJ4"),s=n("p+VM"),a=n("/fob"),u=n("JEJ4"),c=function(){function e(e){this.writeTree_=e}return e.prototype.addWrite=function(t,n){if(t.isEmpty())return new e(new r.ImmutableTree(n));var i=this.writeTree_.findRootMostValueAndPath(t);if(null!=i){var s=i.path,a=i.value,u=o.Path.relativePath(s,t);return a=a.updateChild(u,n),new e(this.writeTree_.set(s,a))}var c=new r.ImmutableTree(n);return new e(this.writeTree_.setTree(t,c))},e.prototype.addWrites=function(e,t){var n=this;return i.forEach(t,function(t,r){n=n.addWrite(e.child(t),r)}),n},e.prototype.removeWrite=function(t){return t.isEmpty()?e.Empty:new e(this.writeTree_.setTree(t,r.ImmutableTree.Empty))},e.prototype.hasCompleteWrite=function(e){return null!=this.getCompleteNode(e)},e.prototype.getCompleteNode=function(e){var t=this.writeTree_.findRootMostValueAndPath(e);return null!=t?this.writeTree_.get(t.path).getChild(o.Path.relativePath(t.path,e)):null},e.prototype.getCompleteChildren=function(){var e=[],t=this.writeTree_.value;return null!=t?t.isLeafNode()||t.forEachChild(a.PRIORITY_INDEX,function(t,n){e.push(new s.NamedNode(t,n))}):this.writeTree_.children.inorderTraversal(function(t,n){null!=n.value&&e.push(new s.NamedNode(t,n.value))}),e},e.prototype.childCompoundWrite=function(t){if(t.isEmpty())return this;var n=this.getCompleteNode(t);return new e(null!=n?new r.ImmutableTree(n):this.writeTree_.subtree(t))},e.prototype.isEmpty=function(){return this.writeTree_.isEmpty()},e.prototype.apply=function(t){return e.applySubtreeWrite_(o.Path.Empty,this.writeTree_,t)},e.Empty=new e(new r.ImmutableTree(null)),e.applySubtreeWrite_=function(t,n,r){if(null!=n.value)return r.updateChild(t,n.value);var o=null;return n.children.inorderTraversal(function(n,i){".priority"===n?(u.assert(null!==i.value,"Priority writes must always be leaf nodes"),o=i.value):r=e.applySubtreeWrite_(t.child(n),i,r)}),r.getChild(t).isEmpty()||null===o||(r=r.updateChild(t.child(".priority"),o)),r},e}();t.CompoundWrite=c},"2mdx":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("EqqR");t.stringToByteArray=function(e){for(var t=[],n=0,o=0;o<e.length;o++){var i=e.charCodeAt(o);if(i>=55296&&i<=56319){var s=i-55296;o++,r.assert(o<e.length,"Surrogate pair missing trail surrogate.");i=65536+(s<<10)+(e.charCodeAt(o)-56320)}i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=63&i|128):i<65536?(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=63&i|128):(t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=63&i|128)}return t},t.stringLength=function(e){for(var t=0,n=0;n<e.length;n++){var r=e.charCodeAt(n);r<128?t++:r<2048?t+=2:r>=55296&&r<=56319?(t+=4,n++):t+=3}return t}},"32XG":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){this.blockSize=-1}return e}();t.Hash=r},"3FiG":function(e,t,n){"use strict";function r(e){o=e}Object.defineProperty(t,"__esModule",{value:!0});var o,i=n("JEJ4"),s=n("F1yO"),a=n("JEJ4");t.setMaxNode=r,t.priorityHashText=function(e){return"number"==typeof e?"number:"+s.doubleToIEEE754String(e):"string:"+e},t.validatePriorityNode=function(e){if(e.isLeafNode()){var t=e.val();i.assert("string"==typeof t||"number"==typeof t||"object"==typeof t&&a.contains(t,".sv"),"Priority must be a string or number.")}else i.assert(e===o||e.isEmpty(),"priority of unexpected type.");i.assert(e===o||e.getPriority().isEmpty(),"Priority nodes can't have a priority of their own.")}},"3iOE":function(e,t,n){"use strict";function r(e){return e&&"function"==typeof e.schedule}t.a=r},"43Go":function(e,t,n){"use strict";function r(e,t){if(void 0===t&&(t=null),null===e)return o.ChildrenNode.EMPTY_NODE;if("object"==typeof e&&".priority"in e&&(t=e[".priority"]),u.assert(null===t||"string"==typeof t||"number"==typeof t||"object"==typeof t&&".sv"in t,"Invalid priority type found: "+typeof t),"object"==typeof e&&".value"in e&&null!==e[".value"]&&(e=e[".value"]),"object"!=typeof e||".sv"in e){var n=e;return new i.LeafNode(n,r(t))}if(e instanceof Array||!f){var d=o.ChildrenNode.EMPTY_NODE,y=e;return a.forEach(y,function(e,t){if(a.contains(y,e)&&"."!==e.substring(0,1)){var n=r(t);!n.isLeafNode()&&n.isEmpty()||(d=d.updateImmediateChild(e,n))}}),d.updatePriority(r(t))}var v=[],m=!1,g=e;if(a.forEach(g,function(e,t){if("string"!=typeof e||"."!==e.substring(0,1)){var n=r(g[e]);n.isEmpty()||(m=m||!n.getPriority().isEmpty(),v.push(new s.NamedNode(e,n)))}}),0==v.length)return o.ChildrenNode.EMPTY_NODE;var _=c.buildChildSet(v,l.NAME_ONLY_COMPARATOR,function(e){return e.name},l.NAME_COMPARATOR);if(m){var b=c.buildChildSet(v,h.PRIORITY_INDEX.getCompare());return new o.ChildrenNode(_,r(t),new p.IndexMap({".priority":b},{".priority":h.PRIORITY_INDEX}))}return new o.ChildrenNode(_,r(t),p.IndexMap.Default)}Object.defineProperty(t,"__esModule",{value:!0});var o=n("R3TC"),i=n("04zk"),s=n("p+VM"),a=n("JEJ4"),u=n("JEJ4"),c=n("2BLv"),l=n("zFzr"),p=n("b5Wm"),h=n("/fob"),f=!0;t.nodeFromJSON=r,h.setNodeFromJSON(r)},"4VUa":function(e,t,n){"use strict";function r(e){return p["\u0275vid"](0,[(e()(),p["\u0275eld"](0,0,null,null,1,"span",[["class","ui-dialog-title"]],[[1,"id",0]],null,null,null,null)),(e()(),p["\u0275ted"](1,null,["",""]))],null,function(e,t){var n=t.component;e(t,0,0,n.ariaLabelledBy),e(t,1,0,n.header)})}function o(e){return p["\u0275vid"](0,[(e()(),p["\u0275eld"](0,0,null,null,3,"span",[["class","ui-dialog-title"]],[[1,"id",0]],null,null,null,null)),(e()(),p["\u0275ted"](-1,null,["\n                    "])),p["\u0275ncd"](null,0),(e()(),p["\u0275ted"](-1,null,["\n                "]))],null,function(e,t){e(t,0,0,t.component.ariaLabelledBy)})}function i(e){return p["\u0275vid"](0,[(e()(),p["\u0275eld"](0,0,null,null,5,"a",[["href","#"],["role","button"]],null,[[null,"click"],[null,"mousedown"]],function(e,t,n){var r=!0,o=e.component;if("click"===t){r=!1!==o.close(n)&&r}if("mousedown"===t){r=!1!==o.onCloseMouseDown(n)&&r}return r},null,null)),p["\u0275did"](1,278528,null,0,f.NgClass,[p.IterableDiffers,p.KeyValueDiffers,p.ElementRef,p.Renderer],{ngClass:[0,"ngClass"]},null),p["\u0275pod"](2,{"ui-dialog-titlebar-icon ui-dialog-titlebar-close ui-corner-all":0}),(e()(),p["\u0275ted"](-1,null,["\n                    "])),(e()(),p["\u0275eld"](4,0,null,null,0,"span",[["class","fa fa-fw fa-close"]],null,null,null,null,null)),(e()(),p["\u0275ted"](-1,null,["\n                "]))],function(e,t){e(t,1,0,e(t,2,0,!0))},null)}function s(e){return p["\u0275vid"](0,[(e()(),p["\u0275eld"](0,0,[[2,0],["titlebar",1]],null,10,"div",[["class","ui-dialog-titlebar ui-widget-header ui-helper-clearfix ui-corner-top"]],null,[[null,"mousedown"],[null,"mouseup"]],function(e,t,n){var r=!0,o=e.component;if("mousedown"===t){r=!1!==o.initDrag(n)&&r}if("mouseup"===t){r=!1!==o.endDrag(n)&&r}return r},null,null)),(e()(),p["\u0275ted"](-1,null,["\n                "])),(e()(),p["\u0275and"](16777216,null,null,1,null,r)),p["\u0275did"](3,16384,null,0,f.NgIf,[p.ViewContainerRef,p.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),p["\u0275ted"](-1,null,["\n                "])),(e()(),p["\u0275and"](16777216,null,null,1,null,o)),p["\u0275did"](6,16384,null,0,f.NgIf,[p.ViewContainerRef,p.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),p["\u0275ted"](-1,null,["\n                "])),(e()(),p["\u0275and"](16777216,null,null,1,null,i)),p["\u0275did"](9,16384,null,0,f.NgIf,[p.ViewContainerRef,p.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),p["\u0275ted"](-1,null,["\n            "]))],function(e,t){var n=t.component;e(t,3,0,n.header),e(t,6,0,n.headerFacet&&n.headerFacet.first),e(t,9,0,n.closable)},null)}function a(e){return p["\u0275vid"](0,[(e()(),p["\u0275eld"](0,0,null,null,3,"div",[["class","ui-dialog-footer ui-widget-content"]],null,null,null,null,null)),(e()(),p["\u0275ted"](-1,null,["\n                "])),p["\u0275ncd"](null,2),(e()(),p["\u0275ted"](-1,null,["\n            "]))],null,null)}function u(e){return p["\u0275vid"](0,[(e()(),p["\u0275eld"](0,0,null,null,0,"div",[["class","ui-resizable-handle ui-resizable-se ui-icon ui-icon-gripsmall-diagonal-se"],["style","z-index: 90;"]],null,[[null,"mousedown"]],function(e,t,n){var r=!0,o=e.component;if("mousedown"===t){r=!1!==o.initResize(n)&&r}return r},null,null))],null,null)}function c(e){return p["\u0275vid"](0,[p["\u0275qud"](402653184,1,{containerViewChild:0}),p["\u0275qud"](671088640,2,{headerViewChild:0}),p["\u0275qud"](402653184,3,{contentViewChild:0}),(e()(),p["\u0275ted"](-1,null,["\n        "])),(e()(),p["\u0275eld"](4,0,[[1,0],["container",1]],null,19,"div",[["role","dialog"]],[[4,"display",null],[4,"width","px"],[4,"height","px"],[4,"minWidth","px"],[24,"@dialogState",0],[1,"aria-labelledby",0]],[[null,"mousedown"]],function(e,t,n){var r=!0,o=e.component;if("mousedown"===t){r=!1!==o.moveOnTop()&&r}return r},null,null)),p["\u0275did"](5,278528,null,0,f.NgClass,[p.IterableDiffers,p.KeyValueDiffers,p.ElementRef,p.Renderer],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),p["\u0275pod"](6,{"ui-dialog ui-widget ui-widget-content ui-corner-all ui-shadow":0,"ui-dialog-rtl":1,"ui-dialog-draggable":2}),p["\u0275did"](7,278528,null,0,f.NgStyle,[p.KeyValueDiffers,p.ElementRef,p.Renderer],{ngStyle:[0,"ngStyle"]},null),(e()(),p["\u0275ted"](-1,null,["\n            "])),(e()(),p["\u0275and"](16777216,null,null,1,null,s)),p["\u0275did"](10,16384,null,0,f.NgIf,[p.ViewContainerRef,p.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),p["\u0275ted"](-1,null,["\n            "])),(e()(),p["\u0275eld"](12,0,[[3,0],["content",1]],null,4,"div",[["class","ui-dialog-content ui-widget-content"]],null,null,null,null,null)),p["\u0275did"](13,278528,null,0,f.NgStyle,[p.KeyValueDiffers,p.ElementRef,p.Renderer],{ngStyle:[0,"ngStyle"]},null),(e()(),p["\u0275ted"](-1,null,["\n                "])),p["\u0275ncd"](null,1),(e()(),p["\u0275ted"](-1,null,["\n            "])),(e()(),p["\u0275ted"](-1,null,["\n            "])),(e()(),p["\u0275and"](16777216,null,null,1,null,a)),p["\u0275did"](19,16384,null,0,f.NgIf,[p.ViewContainerRef,p.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),p["\u0275ted"](-1,null,["\n            "])),(e()(),p["\u0275and"](16777216,null,null,1,null,u)),p["\u0275did"](22,16384,null,0,f.NgIf,[p.ViewContainerRef,p.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),p["\u0275ted"](-1,null,["\n        "])),(e()(),p["\u0275ted"](-1,null,["\n    "]))],function(e,t){var n=t.component;e(t,5,0,n.styleClass,e(t,6,0,!0,n.rtl,n.draggable)),e(t,7,0,n.style),e(t,10,0,n.showHeader),e(t,13,0,n.contentStyle),e(t,19,0,n.footerFacet&&n.footerFacet.first),e(t,22,0,n.resizable)},function(e,t){var n=t.component;e(t,4,0,n.visible?"block":"none",n.width,n.height,n.minWidth,n.visible?"visible":"hidden",n.ariaLabelledBy)})}function l(e){return p["\u0275vid"](0,[(e()(),p["\u0275eld"](0,0,null,null,4,"p-dialog",[],null,null,null,c,m)),p["\u0275prd"](512,null,y.DomHandler,y.DomHandler,[]),p["\u0275did"](2,12763136,null,2,h.Dialog,[p.ElementRef,y.DomHandler,p.Renderer2,p.NgZone],null,null),p["\u0275qud"](603979776,1,{headerFacet:1}),p["\u0275qud"](603979776,2,{footerFacet:1})],null,null)}n.d(t,"a",function(){return m}),t.b=c;var p=n("/oeL"),h=n("wiMU"),f=(n.n(h),n("qbdv")),d=n("/zAi"),y=(n.n(d),n("4cOY")),v=(n.n(y),p["\u0275cmf"](h.DialogModule,[],function(e){return p["\u0275mod"]([p["\u0275mpd"](512,p.ComponentFactoryResolver,p["\u0275CodegenComponentFactoryResolver"],[[8,[]],[3,p.ComponentFactoryResolver],p.NgModuleRef]),p["\u0275mpd"](4608,f.NgLocalization,f.NgLocaleLocalization,[p.LOCALE_ID]),p["\u0275mpd"](512,f.CommonModule,f.CommonModule,[]),p["\u0275mpd"](512,d.SharedModule,d.SharedModule,[]),p["\u0275mpd"](512,h.DialogModule,h.DialogModule,[])])}),[]),m=p["\u0275crt"]({encapsulation:2,styles:v,data:{animation:[{type:7,name:"dialogState",definitions:[{type:0,name:"hidden",styles:{type:6,styles:{opacity:0},offset:null},options:void 0},{type:0,name:"visible",styles:{type:6,styles:{opacity:1},offset:null},options:void 0},{type:1,expr:"visible => hidden",animation:{type:4,styles:null,timings:"400ms ease-in"},options:null},{type:1,expr:"hidden => visible",animation:{type:4,styles:null,timings:"400ms ease-out"},options:null}],options:{}}]}});p["\u0275ccf"]("p-dialog",h.Dialog,l,{id:"id",ariaLabelledBy:"ariaLabelledBy",header:"header",draggable:"draggable",resizable:"resizable",minWidth:"minWidth",minHeight:"minHeight",width:"width",height:"height",positionLeft:"positionLeft",positionTop:"positionTop",contentStyle:"contentStyle",modal:"modal",closeOnEscape:"closeOnEscape",dismissableMask:"dismissableMask",rtl:"rtl",closable:"closable",responsive:"responsive",appendTo:"appendTo",style:"style",styleClass:"styleClass",showHeader:"showHeader",breakpoint:"breakpoint",blockScroll:"blockScroll",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",visible:"visible"},{onShow:"onShow",onHide:"onHide",visibleChange:"visibleChange"},["p-header","*","p-footer"])},"4cOY":function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});var o=n("/oeL"),i=function(){function e(){this.calculatedScrollbarWidth=null}return e.prototype.addClass=function(e,t){e.classList?e.classList.add(t):e.className+=" "+t},e.prototype.addMultipleClasses=function(e,t){if(e.classList)for(var n=t.split(" "),r=0;r<n.length;r++)e.classList.add(n[r]);else for(var n=t.split(" "),r=0;r<n.length;r++)e.className+=" "+n[r]},e.prototype.removeClass=function(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," ")},e.prototype.hasClass=function(e,t){return e.classList?e.classList.contains(t):new RegExp("(^| )"+t+"( |$)","gi").test(e.className)},e.prototype.siblings=function(e){return Array.prototype.filter.call(e.parentNode.children,function(t){return t!==e})},e.prototype.find=function(e,t){return e.querySelectorAll(t)},e.prototype.findSingle=function(e,t){return e.querySelector(t)},e.prototype.index=function(e){for(var t=e.parentNode.childNodes,n=0,r=0;r<t.length;r++){if(t[r]==e)return n;1==t[r].nodeType&&n++}return-1},e.prototype.relativePosition=function(e,t){var n,r,o=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),i=t.offsetHeight,s=t.offsetWidth,a=t.getBoundingClientRect(),u=(this.getWindowScrollTop(),this.getViewport());a.top+i+o.height>u.height?(n=-1*o.height,a.top+n<0&&(n=0)):n=i,r=a.left+o.width>u.width?s-o.width:0,e.style.top=n+"px",e.style.left=r+"px"},e.prototype.absolutePosition=function(e,t){var n,r,o=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),i=o.height,s=o.width,a=t.offsetHeight,u=t.offsetWidth,c=t.getBoundingClientRect(),l=this.getWindowScrollTop(),p=this.getWindowScrollLeft(),h=this.getViewport();c.top+a+i>h.height?(n=c.top+l-i)<0&&(n=0+l):n=a+c.top+l,r=c.left+u+s>h.width?c.left+p+u-s:c.left+p,e.style.top=n+"px",e.style.left=r+"px"},e.prototype.getHiddenElementOuterHeight=function(e){e.style.visibility="hidden",e.style.display="block";var t=e.offsetHeight;return e.style.display="none",e.style.visibility="visible",t},e.prototype.getHiddenElementOuterWidth=function(e){e.style.visibility="hidden",e.style.display="block";var t=e.offsetWidth;return e.style.display="none",e.style.visibility="visible",t},e.prototype.getHiddenElementDimensions=function(e){var t={};return e.style.visibility="hidden",e.style.display="block",t.width=e.offsetWidth,t.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible",t},e.prototype.scrollInView=function(e,t){var n=getComputedStyle(e).getPropertyValue("borderTopWidth"),r=n?parseFloat(n):0,o=getComputedStyle(e).getPropertyValue("paddingTop"),i=o?parseFloat(o):0,s=e.getBoundingClientRect(),a=t.getBoundingClientRect(),u=a.top+document.body.scrollTop-(s.top+document.body.scrollTop)-r-i,c=e.scrollTop,l=e.clientHeight,p=this.getOuterHeight(t);u<0?e.scrollTop=c+u:u+p>l&&(e.scrollTop=c+u-l+p)},e.prototype.fadeIn=function(e,t){e.style.opacity=0;var n=+new Date,r=0,o=function(){r=+e.style.opacity+((new Date).getTime()-n)/t,e.style.opacity=r,n=+new Date,+r<1&&(window.requestAnimationFrame&&requestAnimationFrame(o)||setTimeout(o,16))};o()},e.prototype.fadeOut=function(e,t){var n=1,r=t,o=50/r,i=setInterval(function(){n-=o,n<=0&&(n=0,clearInterval(i)),e.style.opacity=n},50)},e.prototype.getWindowScrollTop=function(){var e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)},e.prototype.getWindowScrollLeft=function(){var e=document.documentElement;return(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)},e.prototype.matches=function(e,t){var n=Element.prototype;return(n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector||function(e){return-1!==[].indexOf.call(document.querySelectorAll(e),this)}).call(e,t)},e.prototype.getOuterWidth=function(e,t){var n=e.offsetWidth;if(t){var r=getComputedStyle(e);n+=parseFloat(r.marginLeft)+parseFloat(r.marginRight)}return n},e.prototype.getHorizontalPadding=function(e){var t=getComputedStyle(e);return parseFloat(t.paddingLeft)+parseFloat(t.paddingRight)},e.prototype.getHorizontalMargin=function(e){var t=getComputedStyle(e);return parseFloat(t.marginLeft)+parseFloat(t.marginRight)},e.prototype.innerWidth=function(e){var t=e.offsetWidth,n=getComputedStyle(e);return t+=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)},e.prototype.width=function(e){var t=e.offsetWidth,n=getComputedStyle(e);return t-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)},e.prototype.getInnerHeight=function(e){var t=e.offsetHeight,n=getComputedStyle(e);return t+=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)},e.prototype.getOuterHeight=function(e,t){var n=e.offsetHeight;if(t){var r=getComputedStyle(e);n+=parseFloat(r.marginTop)+parseFloat(r.marginBottom)}return n},e.prototype.getHeight=function(e){var t=e.offsetHeight,n=getComputedStyle(e);return t-=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth)},e.prototype.getWidth=function(e){var t=e.offsetWidth,n=getComputedStyle(e);return t-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)+parseFloat(n.borderLeftWidth)+parseFloat(n.borderRightWidth)},e.prototype.getViewport=function(){var e=window,t=document,n=t.documentElement,r=t.getElementsByTagName("body")[0];return{width:e.innerWidth||n.clientWidth||r.clientWidth,height:e.innerHeight||n.clientHeight||r.clientHeight}},e.prototype.getOffset=function(e){var t=e.getBoundingClientRect();return{top:t.top+document.body.scrollTop,left:t.left+document.body.scrollLeft}},e.prototype.getUserAgent=function(){return navigator.userAgent},e.prototype.isIE=function(){var e=window.navigator.userAgent;if(e.indexOf("MSIE ")>0)return!0;if(e.indexOf("Trident/")>0)return e.indexOf("rv:"),!0;return e.indexOf("Edge/")>0},e.prototype.appendChild=function(e,t){if(this.isElement(t))t.appendChild(e);else{if(!t.el||!t.el.nativeElement)throw"Cannot append "+t+" to "+e;t.el.nativeElement.appendChild(e)}},e.prototype.removeChild=function(e,t){if(this.isElement(t))t.removeChild(e);else{if(!t.el||!t.el.nativeElement)throw"Cannot remove "+e+" from "+t;t.el.nativeElement.removeChild(e)}},e.prototype.isElement=function(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName},e.prototype.calculateScrollbarWidth=function(){if(null!==this.calculatedScrollbarWidth)return this.calculatedScrollbarWidth;var e=document.createElement("div");e.className="ui-scrollbar-measure",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),this.calculatedScrollbarWidth=t,t},e.prototype.invokeElementMethod=function(e,t,n){e[t].apply(e,n)},e.prototype.clearSelection=function(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch(e){}},e}();i.zindex=1e3,i=r([o.Injectable()],i),t.DomHandler=i},"5pXs":function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n("oyal"),i=n("EAgh"),s=n("F1yO"),a=n("sZ8A"),u=n("rB9K"),c=n("pHuv"),l=n("fvGz"),p=n("miEe"),h=n("xfHL"),f=n("JEJ4"),d=n("JEJ4"),y=n("uCc5"),v=function(e){function t(t,n){if(!(t instanceof c.Repo))throw new Error("new Reference() no longer supported - use app.database().");return e.call(this,t,n,p.QueryParams.DEFAULT,!1)||this}return r(t,e),t.prototype.getKey=function(){return f.validateArgCount("Reference.key",0,0,arguments.length),this.path.isEmpty()?null:this.path.getBack()},t.prototype.child=function(e){return f.validateArgCount("Reference.child",1,1,arguments.length),"number"==typeof e?e=String(e):e instanceof l.Path||(null===this.path.getFront()?h.validateRootPathString("Reference.child",1,e,!1):h.validatePathString("Reference.child",1,e,!1)),new t(this.repo,this.path.child(e))},t.prototype.getParent=function(){f.validateArgCount("Reference.parent",0,0,arguments.length);var e=this.path.parent();return null===e?null:new t(this.repo,e)},t.prototype.getRoot=function(){f.validateArgCount("Reference.root",0,0,arguments.length);for(var e=this;null!==e.getParent();)e=e.getParent();return e},t.prototype.databaseProp=function(){return this.repo.database},t.prototype.set=function(e,t){f.validateArgCount("Reference.set",1,2,arguments.length),h.validateWritablePath("Reference.set",this.path),h.validateFirebaseDataArg("Reference.set",1,e,this.path,!1),f.validateCallback("Reference.set",2,t,!0);var n=new d.Deferred;return this.repo.setWithPriority(this.path,e,null,n.wrapCallback(t)),n.promise},t.prototype.update=function(e,t){if(f.validateArgCount("Reference.update",1,2,arguments.length),h.validateWritablePath("Reference.update",this.path),Array.isArray(e)){for(var n={},r=0;r<e.length;++r)n[""+r]=e[r];e=n,s.warn("Passing an Array to Firebase.update() is deprecated. Use set() if you want to overwrite the existing data, or an Object with integer keys if you really do want to only update some of the children.")}h.validateFirebaseMergeDataArg("Reference.update",1,e,this.path,!1),f.validateCallback("Reference.update",2,t,!0);var o=new d.Deferred;return this.repo.update(this.path,e,o.wrapCallback(t)),o.promise},t.prototype.setWithPriority=function(e,t,n){if(f.validateArgCount("Reference.setWithPriority",2,3,arguments.length),h.validateWritablePath("Reference.setWithPriority",this.path),h.validateFirebaseDataArg("Reference.setWithPriority",1,e,this.path,!1),h.validatePriority("Reference.setWithPriority",2,t,!1),f.validateCallback("Reference.setWithPriority",3,n,!0),".length"===this.getKey()||".keys"===this.getKey())throw"Reference.setWithPriority failed: "+this.getKey()+" is a read-only object.";var r=new d.Deferred;return this.repo.setWithPriority(this.path,e,t,r.wrapCallback(n)),r.promise},t.prototype.remove=function(e){return f.validateArgCount("Reference.remove",0,1,arguments.length),h.validateWritablePath("Reference.remove",this.path),f.validateCallback("Reference.remove",1,e,!0),this.set(null,e)},t.prototype.transaction=function(e,t,n){if(f.validateArgCount("Reference.transaction",1,3,arguments.length),h.validateWritablePath("Reference.transaction",this.path),f.validateCallback("Reference.transaction",1,e,!1),f.validateCallback("Reference.transaction",2,t,!0),h.validateBoolean("Reference.transaction",3,n,!0),".length"===this.getKey()||".keys"===this.getKey())throw"Reference.transaction failed: "+this.getKey()+" is a read-only object.";void 0===n&&(n=!0);var r=new d.Deferred;"function"==typeof t&&r.promise.catch(function(){});var o=function(e,n,o){e?r.reject(e):r.resolve(new i.TransactionResult(n,o)),"function"==typeof t&&t(e,n,o)};return this.repo.startTransaction(this.path,e,o,n),r.promise},t.prototype.setPriority=function(e,t){f.validateArgCount("Reference.setPriority",1,2,arguments.length),h.validateWritablePath("Reference.setPriority",this.path),h.validatePriority("Reference.setPriority",1,e,!1),f.validateCallback("Reference.setPriority",2,t,!0);var n=new d.Deferred;return this.repo.setWithPriority(this.path.child(".priority"),e,null,n.wrapCallback(t)),n.promise},t.prototype.push=function(e,t){f.validateArgCount("Reference.push",0,2,arguments.length),h.validateWritablePath("Reference.push",this.path),h.validateFirebaseDataArg("Reference.push",1,e,this.path,!0),f.validateCallback("Reference.push",2,t,!0);var n,r=this.repo.serverTime(),o=a.nextPushId(r),i=this.child(o),s=this.child(o);return n=null!=e?i.set(e,t).then(function(){return s}):Promise.resolve(s),i.then=n.then.bind(n),i.catch=n.then.bind(n,void 0),"function"==typeof t&&n.catch(function(){}),i},t.prototype.onDisconnect=function(){return h.validateWritablePath("Reference.onDisconnect",this.path),new o.OnDisconnect(this.repo,this.path)},Object.defineProperty(t.prototype,"database",{get:function(){return this.databaseProp()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"key",{get:function(){return this.getKey()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this.getParent()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this.getRoot()},enumerable:!0,configurable:!0}),t}(u.Query);t.Reference=v,u.Query.__referenceConstructor=v,y.SyncPoint.__referenceConstructor=v},"6Xbx":function(e,t,n){"use strict";function r(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}t.a=r;var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};Object.assign},"6oqh":function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n("JEJ4"),i=n("F1yO"),s=n("JEJ4"),a=n("JEJ4"),u=n("JEJ4"),c=n("zzcx"),l=function(e){function t(t,n,r){var o=e.call(this)||this;return o.repoInfo_=t,o.onDataUpdate_=n,o.authTokenProvider_=r,o.log_=i.logWrapper("p:rest:"),o.listens_={},o}return r(t,e),t.prototype.reportStats=function(e){throw new Error("Method not implemented.")},t.getListenId_=function(e,t){return void 0!==t?"tag$"+t:(o.assert(e.getQueryParams().isDefault(),"should have a tag if it's not a default query."),e.path.toString())},t.prototype.listen=function(e,n,r,o){var i=this,s=e.path.toString();this.log_("Listen called for "+s+" "+e.queryIdentifier());var u=t.getListenId_(e,r),c={};this.listens_[u]=c;var l=e.getQueryParams().toRestQueryStringParameters();this.restRequest_(s+".json",l,function(e,t){var n=t;if(404===e&&(n=null,e=null),null===e&&i.onDataUpdate_(s,n,!1,r),a.safeGet(i.listens_,u)===c){var l;l=e?401==e?"permission_denied":"rest_error:"+e:"ok",o(l,null)}})},t.prototype.unlisten=function(e,n){var r=t.getListenId_(e,n);delete this.listens_[r]},t.prototype.refreshAuthToken=function(e){},t.prototype.restRequest_=function(e,t,n){var r=this;void 0===t&&(t={}),t.format="export",this.authTokenProvider_.getToken(!1).then(function(o){var a=o&&o.accessToken;a&&(t.auth=a);var c=(r.repoInfo_.secure?"https://":"http://")+r.repoInfo_.host+e+"?"+u.querystring(t);r.log_("Sending REST request for "+c);var l=new XMLHttpRequest;l.onreadystatechange=function(){if(n&&4===l.readyState){r.log_("REST Response for "+c+" received. status:",l.status,"response:",l.responseText);var e=null;if(l.status>=200&&l.status<300){try{e=s.jsonEval(l.responseText)}catch(e){i.warn("Failed to parse JSON response for "+c+": "+l.responseText)}n(null,e)}else 401!==l.status&&404!==l.status&&i.warn("Got unsuccessful REST response for "+c+" Status: "+l.status),n(l.status);n=null}},l.open("GET",c,!0),l.send()})},t}(c.ServerActions);t.ReadonlyRestClient=l},"7qHF":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("mZoP"),o=n("xhf5"),i=n("+VeI"),s=n("j0qB");t.DataConnection=o.PersistentConnection,o.PersistentConnection.prototype.simpleListen=function(e,t){this.sendRequest("q",{p:e},t)},o.PersistentConnection.prototype.echo=function(e,t){this.sendRequest("echo",{d:e},t)},t.RealTimeConnection=s.Connection,t.hijackHash=function(e){var t=o.PersistentConnection.prototype.put;return o.PersistentConnection.prototype.put=function(n,r,o,i){void 0!==i&&(i=e()),t.call(this,n,r,o,i)},function(){o.PersistentConnection.prototype.put=t}},t.ConnectionTarget=r.RepoInfo,t.queryIdentifier=function(e){return e.queryIdentifier()},t.listens=function(e){return e.repo.persistentConnection_.listens_},t.forceRestClient=function(e){i.RepoManager.getInstance().forceRestClient(e)}},"8UuO":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("F1yO"),o=n("PKQO"),i=n("fvGz"),s=n("5pXs"),a=n("pHuv"),u=n("+VeI"),c=n("JEJ4"),l=n("xfHL"),p=function(){function e(e){this.repo_=e,e instanceof a.Repo||r.fatal("Don't call new Database() directly - please use firebase.database()."),this.root_=new s.Reference(e,i.Path.Empty),this.INTERNAL=new h(this)}return Object.defineProperty(e.prototype,"app",{get:function(){return this.repo_.app},enumerable:!0,configurable:!0}),e.prototype.ref=function(e){return this.checkDeleted_("ref"),c.validateArgCount("database.ref",0,1,arguments.length),void 0!==e?this.root_.child(e):this.root_},e.prototype.refFromURL=function(e){var t="database.refFromURL";this.checkDeleted_(t),c.validateArgCount(t,1,1,arguments.length);var n=o.parseRepoInfo(e);l.validateUrl(t,1,n);var i=n.repoInfo;return i.host!==this.repo_.repoInfo_.host&&r.fatal(t+": Host name does not match the current database: (found "+i.host+" but expected "+this.repo_.repoInfo_.host+")"),this.ref(n.path.toString())},e.prototype.checkDeleted_=function(e){null===this.repo_&&r.fatal("Cannot call "+e+" on a deleted database.")},e.prototype.goOffline=function(){c.validateArgCount("database.goOffline",0,0,arguments.length),this.checkDeleted_("goOffline"),this.repo_.interrupt()},e.prototype.goOnline=function(){c.validateArgCount("database.goOnline",0,0,arguments.length),this.checkDeleted_("goOnline"),this.repo_.resume()},e.ServerValue={TIMESTAMP:{".sv":"timestamp"}},e}();t.Database=p;var h=function(){function e(e){this.database=e}return e.prototype.delete=function(){return this.database.checkDeleted_("delete"),u.RepoManager.getInstance().deleteRepo(this.database.repo_),this.database.repo_=null,this.database.root_=null,this.database.INTERNAL=null,this.database=null,Promise.resolve()},e}();t.DatabaseInternals=h},"8ofh":function(e,t,n){"use strict";function r(){try{return i.apply(this,arguments)}catch(e){return s.a.e=e,s.a}}function o(e){return i=e,r}t.a=o;var i,s=n("NePw")},"9ard":function(e,t,n){"use strict";(function(e){function r(e){f=e}Object.defineProperty(t,"__esModule",{value:!0});var o=n("XtH8"),i=n("JEJ4"),s=n("F1yO"),a=n("cm6g"),u=n("UcKF"),c=n("JEJ4"),l=n("Rgd9"),p=n("JEJ4"),h=n("JEJ4"),f=null;"undefined"!=typeof MozWebSocket?f=MozWebSocket:"undefined"!=typeof WebSocket&&(f=WebSocket),t.setWebSocketImpl=r;var d=function(){function t(e,n,r,o){this.connId=e,this.keepaliveTimer=null,this.frames=null,this.totalFrames=0,this.bytesSent=0,this.bytesReceived=0,this.log_=s.logWrapper(this.connId),this.stats_=a.StatsManager.getCollection(n),this.connURL=t.connectionURL_(n,r,o)}return t.connectionURL_=function(e,t,n){var r={};return r[u.VERSION_PARAM]=u.PROTOCOL_VERSION,!h.isNodeSdk()&&"undefined"!=typeof location&&location.href&&-1!==location.href.indexOf(u.FORGE_DOMAIN)&&(r[u.REFERER_PARAM]=u.FORGE_REF),t&&(r[u.TRANSPORT_SESSION_PARAM]=t),n&&(r[u.LAST_SESSION_PARAM]=n),e.connectionURL(u.WEBSOCKET,r)},t.prototype.open=function(t,n){var r=this;this.onDisconnect=n,this.onMessage=t,this.log_("Websocket connecting to "+this.connURL),this.everConnected_=!1,l.PersistentStorage.set("previous_websocket_failure",!0);try{if(h.isNodeSdk()){var i=c.CONSTANTS.NODE_ADMIN?"AdminNode":"Node",s={headers:{"User-Agent":"Firebase/"+u.PROTOCOL_VERSION+"/"+o.default.SDK_VERSION+"/"+e.platform+"/"+i}},a=e.env,p=0==this.connURL.indexOf("wss://")?a.HTTPS_PROXY||a.https_proxy:a.HTTP_PROXY||a.http_proxy;p&&(s.proxy={origin:p}),this.mySock=new f(this.connURL,[],s)}else this.mySock=new f(this.connURL)}catch(e){this.log_("Error instantiating WebSocket.");var d=e.message||e.data;return d&&this.log_(d),void this.onClosed_()}this.mySock.onopen=function(){r.log_("Websocket connected."),r.everConnected_=!0},this.mySock.onclose=function(){r.log_("Websocket connection was disconnected."),r.mySock=null,r.onClosed_()},this.mySock.onmessage=function(e){r.handleIncomingFrame(e)},this.mySock.onerror=function(e){r.log_("WebSocket error.  Closing connection.");var t=e.message||e.data;t&&r.log_(t),r.onClosed_()}},t.prototype.start=function(){},t.forceDisallow=function(){t.forceDisallow_=!0},t.isAvailable=function(){var e=!1;if("undefined"!=typeof navigator&&navigator.userAgent){var n=/Android ([0-9]{0,}\.[0-9]{0,})/,r=navigator.userAgent.match(n);r&&r.length>1&&parseFloat(r[1])<4.4&&(e=!0)}return!e&&null!==f&&!t.forceDisallow_},t.previouslyFailed=function(){return l.PersistentStorage.isInMemoryStorage||!0===l.PersistentStorage.get("previous_websocket_failure")},t.prototype.markConnectionHealthy=function(){l.PersistentStorage.remove("previous_websocket_failure")},t.prototype.appendFrame_=function(e){if(this.frames.push(e),this.frames.length==this.totalFrames){var t=this.frames.join("");this.frames=null;var n=p.jsonEval(t);this.onMessage(n)}},t.prototype.handleNewFrameCount_=function(e){this.totalFrames=e,this.frames=[]},t.prototype.extractFrameCount_=function(e){if(i.assert(null===this.frames,"We already have a frame buffer"),e.length<=6){var t=Number(e);if(!isNaN(t))return this.handleNewFrameCount_(t),null}return this.handleNewFrameCount_(1),e},t.prototype.handleIncomingFrame=function(e){if(null!==this.mySock){var t=e.data;if(this.bytesReceived+=t.length,this.stats_.incrementCounter("bytes_received",t.length),this.resetKeepAlive(),null!==this.frames)this.appendFrame_(t);else{var n=this.extractFrameCount_(t);null!==n&&this.appendFrame_(n)}}},t.prototype.send=function(e){this.resetKeepAlive();var t=p.stringify(e);this.bytesSent+=t.length,this.stats_.incrementCounter("bytes_sent",t.length);var n=s.splitStringBySize(t,16384);n.length>1&&this.sendString_(String(n.length));for(var r=0;r<n.length;r++)this.sendString_(n[r])},t.prototype.shutdown_=function(){this.isClosed_=!0,this.keepaliveTimer&&(clearInterval(this.keepaliveTimer),this.keepaliveTimer=null),this.mySock&&(this.mySock.close(),this.mySock=null)},t.prototype.onClosed_=function(){this.isClosed_||(this.log_("WebSocket is closing itself"),this.shutdown_(),this.onDisconnect&&(this.onDisconnect(this.everConnected_),this.onDisconnect=null))},t.prototype.close=function(){this.isClosed_||(this.log_("WebSocket is being closed"),this.shutdown_())},t.prototype.resetKeepAlive=function(){var e=this;clearInterval(this.keepaliveTimer),this.keepaliveTimer=setInterval(function(){e.mySock&&e.sendString_("0"),e.resetKeepAlive()},Math.floor(45e3))},t.prototype.sendString_=function(e){try{this.mySock.send(e)}catch(e){this.log_("Exception thrown from WebSocket.send():",e.message||e.data,"Closing connection."),setTimeout(this.onClosed_.bind(this),0)}},t.responsesRequiredToBeHealthy=2,t.healthyTimeout=3e4,t}();t.WebSocketConnection=d}).call(t,n("1WNV"))},"9kU/":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("p+VM"),o=n("ertD"),i=n("JEJ4"),s=function(){function e(e){this.query_=e,this.index_=this.query_.getQueryParams().getIndex()}return e.prototype.generateEventsForChanges=function(e,t,n){var r=this,i=[],s=[];return e.forEach(function(e){e.type===o.Change.CHILD_CHANGED&&r.index_.indexedValueChanged(e.oldSnap,e.snapshotNode)&&s.push(o.Change.childMovedChange(e.childName,e.snapshotNode))}),this.generateEventsForType_(i,o.Change.CHILD_REMOVED,e,n,t),this.generateEventsForType_(i,o.Change.CHILD_ADDED,e,n,t),this.generateEventsForType_(i,o.Change.CHILD_MOVED,s,n,t),this.generateEventsForType_(i,o.Change.CHILD_CHANGED,e,n,t),this.generateEventsForType_(i,o.Change.VALUE,e,n,t),i},e.prototype.generateEventsForType_=function(e,t,n,r,o){var i=this,s=n.filter(function(e){return e.type===t});s.sort(this.compareChanges_.bind(this)),s.forEach(function(t){var n=i.materializeSingleChange_(t,o);r.forEach(function(r){r.respondsTo(t.type)&&e.push(r.createEvent(n,i.query_))})})},e.prototype.materializeSingleChange_=function(e,t){return"value"===e.type||"child_removed"===e.type?e:(e.prevName=t.getPredecessorChildName(e.childName,e.snapshotNode,this.index_),e)},e.prototype.compareChanges_=function(e,t){if(null==e.childName||null==t.childName)throw i.assertionError("Should only compare child_ events.");var n=new r.NamedNode(e.childName,e.snapshotNode),o=new r.NamedNode(t.childName,t.snapshotNode);return this.index_.compare(n,o)},e}();t.EventGenerator=s},A4jy:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("JEJ4"),o=function(){function e(e,t,n,r){this.eventType=e,this.eventRegistration=t,this.snapshot=n,this.prevName=r}return e.prototype.getPath=function(){var e=this.snapshot.getRef();return"value"===this.eventType?e.path:e.getParent().path},e.prototype.getEventType=function(){return this.eventType},e.prototype.getEventRunner=function(){return this.eventRegistration.getEventRunner(this)},e.prototype.toString=function(){return this.getPath().toString()+":"+this.eventType+":"+r.stringify(this.snapshot.exportVal())},e}();t.DataEvent=o;var i=function(){function e(e,t,n){this.eventRegistration=e,this.error=t,this.path=n}return e.prototype.getPath=function(){return this.path},e.prototype.getEventType=function(){return"cancel"},e.prototype.getEventRunner=function(){return this.eventRegistration.getEventRunner(this)},e.prototype.toString=function(){return this.path.toString()+":cancel"},e}();t.CancelEvent=i},AP4T:function(e,t,n){"use strict";function r(e,t,n){if(e){if(e instanceof a.a)return e;if(e[u.a])return e[u.a]()}return e||t||n?new a.a(e,t,n):new a.a(c.a)}function o(){}function i(e){return e?1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}:o}var s=n("xIGM"),a=n("E9/g"),u=n("V7AE"),c=n("grVA"),l=n("mz3w");n.d(t,"a",function(){return p});var p=function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var o=this.operator,i=r(e,t,n);if(o?o.call(i,this.source):i.add(this.source?this._subscribe(i):this._trySubscribe(i)),i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.syncErrorThrown=!0,e.syncErrorValue=t,e.error(t)}},e.prototype.forEach=function(e,t){var n=this;if(t||(s.a.Rx&&s.a.Rx.config&&s.a.Rx.config.Promise?t=s.a.Rx.config.Promise:s.a.Promise&&(t=s.a.Promise)),!t)throw new Error("no Promise impl found");return new t(function(t,r){var o;o=n.subscribe(function(t){if(o)try{e(t)}catch(e){r(e),o.unsubscribe()}else e(t)},r,t)})},e.prototype._subscribe=function(e){return this.source.subscribe(e)},e.prototype[l.a]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];return 0===e.length?this:i(e)(this)},e.prototype.toPromise=function(e){var t=this;if(e||(s.a.Rx&&s.a.Rx.config&&s.a.Rx.config.Promise?e=s.a.Rx.config.Promise:s.a.Promise&&(e=s.a.Promise)),!e)throw new Error("no Promise impl found");return new e(function(e,n){var r;t.subscribe(function(e){return r=e},function(e){return n(e)},function(){return e(r)})})},e.create=function(t){return new e(t)},e}()},B1iP:function(e,t,n){"use strict";function r(e){return"function"==typeof e}t.a=r},B2QA:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("JEJ4"),o=n("JEJ4"),i=n("fvGz"),s=n("2kNe"),a=n("/fob"),u=n("R3TC"),c=function(){function e(){this.visibleWrites_=s.CompoundWrite.Empty,this.allWrites_=[],this.lastWriteId_=-1}return e.prototype.childWrites=function(e){return new l(e,this)},e.prototype.addOverwrite=function(e,t,n,r){o.assert(n>this.lastWriteId_,"Stacking an older write on top of newer ones"),void 0===r&&(r=!0),this.allWrites_.push({path:e,snap:t,writeId:n,visible:r}),r&&(this.visibleWrites_=this.visibleWrites_.addWrite(e,t)),this.lastWriteId_=n},e.prototype.addMerge=function(e,t,n){o.assert(n>this.lastWriteId_,"Stacking an older merge on top of newer ones"),this.allWrites_.push({path:e,children:t,writeId:n,visible:!0}),this.visibleWrites_=this.visibleWrites_.addWrites(e,t),this.lastWriteId_=n},e.prototype.getWrite=function(e){for(var t=0;t<this.allWrites_.length;t++){var n=this.allWrites_[t];if(n.writeId===e)return n}return null},e.prototype.removeWrite=function(e){var t=this,n=this.allWrites_.findIndex(function(t){return t.writeId===e});o.assert(n>=0,"removeWrite called with nonexistent writeId.");var i=this.allWrites_[n];this.allWrites_.splice(n,1);for(var s=i.visible,a=!1,u=this.allWrites_.length-1;s&&u>=0;){var c=this.allWrites_[u];c.visible&&(u>=n&&this.recordContainsPath_(c,i.path)?s=!1:i.path.contains(c.path)&&(a=!0)),u--}if(s){if(a)return this.resetTree_(),!0;if(i.snap)this.visibleWrites_=this.visibleWrites_.removeWrite(i.path);else{var l=i.children;r.forEach(l,function(e){t.visibleWrites_=t.visibleWrites_.removeWrite(i.path.child(e))})}return!0}return!1},e.prototype.getCompleteWriteData=function(e){return this.visibleWrites_.getCompleteNode(e)},e.prototype.calcCompleteEventCache=function(t,n,r,o){if(r||o){var s=this.visibleWrites_.childCompoundWrite(t);if(!o&&s.isEmpty())return n;if(o||null!=n||s.hasCompleteWrite(i.Path.Empty)){var a=function(e){return(e.visible||o)&&(!r||!~r.indexOf(e.writeId))&&(e.path.contains(t)||t.contains(e.path))},c=e.layerTree_(this.allWrites_,a,t),l=n||u.ChildrenNode.EMPTY_NODE;return c.apply(l)}return null}var p=this.visibleWrites_.getCompleteNode(t);if(null!=p)return p;var h=this.visibleWrites_.childCompoundWrite(t);if(h.isEmpty())return n;if(null!=n||h.hasCompleteWrite(i.Path.Empty)){var l=n||u.ChildrenNode.EMPTY_NODE;return h.apply(l)}return null},e.prototype.calcCompleteEventChildren=function(e,t){var n=u.ChildrenNode.EMPTY_NODE,r=this.visibleWrites_.getCompleteNode(e);if(r)return r.isLeafNode()||r.forEachChild(a.PRIORITY_INDEX,function(e,t){n=n.updateImmediateChild(e,t)}),n;if(t){var o=this.visibleWrites_.childCompoundWrite(e);return t.forEachChild(a.PRIORITY_INDEX,function(e,t){var r=o.childCompoundWrite(new i.Path(e)).apply(t);n=n.updateImmediateChild(e,r)}),o.getCompleteChildren().forEach(function(e){n=n.updateImmediateChild(e.name,e.node)}),n}return this.visibleWrites_.childCompoundWrite(e).getCompleteChildren().forEach(function(e){n=n.updateImmediateChild(e.name,e.node)}),n},e.prototype.calcEventCacheAfterServerOverwrite=function(e,t,n,r){o.assert(n||r,"Either existingEventSnap or existingServerSnap must exist");var i=e.child(t);if(this.visibleWrites_.hasCompleteWrite(i))return null;var s=this.visibleWrites_.childCompoundWrite(i);return s.isEmpty()?r.getChild(t):s.apply(r.getChild(t))},e.prototype.calcCompleteChild=function(e,t,n){var r=e.child(t),o=this.visibleWrites_.getCompleteNode(r);if(null!=o)return o;if(n.isCompleteForChild(t)){return this.visibleWrites_.childCompoundWrite(r).apply(n.getNode().getImmediateChild(t))}return null},e.prototype.shadowingWrite=function(e){return this.visibleWrites_.getCompleteNode(e)},e.prototype.calcIndexedSlice=function(e,t,n,r,o,s){var a,u=this.visibleWrites_.childCompoundWrite(e),c=u.getCompleteNode(i.Path.Empty);if(null!=c)a=c;else{if(null==t)return[];a=u.apply(t)}if(a=a.withIndex(s),a.isEmpty()||a.isLeafNode())return[];for(var l=[],p=s.getCompare(),h=o?a.getReverseIteratorFrom(n,s):a.getIteratorFrom(n,s),f=h.getNext();f&&l.length<r;)0!==p(f,n)&&l.push(f),f=h.getNext();return l},e.prototype.recordContainsPath_=function(e,t){return e.snap?e.path.contains(t):!!r.findKey(e.children,function(n,r){return e.path.child(r).contains(t)})},e.prototype.resetTree_=function(){this.visibleWrites_=e.layerTree_(this.allWrites_,e.DefaultFilter_,i.Path.Empty),this.allWrites_.length>0?this.lastWriteId_=this.allWrites_[this.allWrites_.length-1].writeId:this.lastWriteId_=-1},e.DefaultFilter_=function(e){return e.visible},e.layerTree_=function(e,t,n){for(var a=s.CompoundWrite.Empty,u=0;u<e.length;++u){var c=e[u];if(t(c)){var l=c.path,p=void 0;if(c.snap)n.contains(l)?(p=i.Path.relativePath(n,l),a=a.addWrite(p,c.snap)):l.contains(n)&&(p=i.Path.relativePath(l,n),a=a.addWrite(i.Path.Empty,c.snap.getChild(p)));else{if(!c.children)throw o.assertionError("WriteRecord should have .snap or .children");if(n.contains(l))p=i.Path.relativePath(n,l),a=a.addWrites(p,c.children);else if(l.contains(n))if(p=i.Path.relativePath(l,n),p.isEmpty())a=a.addWrites(i.Path.Empty,c.children);else{var h=r.safeGet(c.children,p.getFront());if(h){var f=h.getChild(p.popFront());a=a.addWrite(i.Path.Empty,f)}}}}}return a},e}();t.WriteTree=c;var l=function(){function e(e,t){this.treePath_=e,this.writeTree_=t}return e.prototype.calcCompleteEventCache=function(e,t,n){return this.writeTree_.calcCompleteEventCache(this.treePath_,e,t,n)},e.prototype.calcCompleteEventChildren=function(e){return this.writeTree_.calcCompleteEventChildren(this.treePath_,e)},e.prototype.calcEventCacheAfterServerOverwrite=function(e,t,n){return this.writeTree_.calcEventCacheAfterServerOverwrite(this.treePath_,e,t,n)},e.prototype.shadowingWrite=function(e){return this.writeTree_.shadowingWrite(this.treePath_.child(e))},e.prototype.calcIndexedSlice=function(e,t,n,r,o){return this.writeTree_.calcIndexedSlice(this.treePath_,e,t,n,r,o)},e.prototype.calcCompleteChild=function(e,t){return this.writeTree_.calcCompleteChild(this.treePath_,e,t)},e.prototype.child=function(t){return new e(this.treePath_.child(t),this.writeTree_)},e}();t.WriteTreeRef=l},BThc:function(e,t,n){"use strict";function r(e,t,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),function(r){return"number"==typeof t&&(n=t,t=null),r.lift(new d(e,t,n))}}function o(e){return e}function i(e){return void 0===e&&(e=Number.POSITIVE_INFINITY),r(o,null,e)}function s(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];return function(t){return t.lift.call(a.apply(void 0,[t].concat(e)))}}function a(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];var n=Number.POSITIVE_INFINITY,r=null,o=e[e.length-1];return Object(v.a)(o)?(r=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(n=e.pop())):"number"==typeof o&&(n=e.pop()),null===r&&1===e.length&&e[0]instanceof c.a?e[0]:i(n)(new l.a(e,r))}function u(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];return s.apply(void 0,e)(this)}var c=n("AP4T"),l=n("Oryw"),p=n("qgI0"),h=n("lI6h"),f=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},d=function(){function e(e,t,n){void 0===n&&(n=Number.POSITIVE_INFINITY),this.project=e,this.resultSelector=t,this.concurrent=n}return e.prototype.call=function(e,t){return t.subscribe(new y(e,this.project,this.resultSelector,this.concurrent))},e}(),y=function(e){function t(t,n,r,o){void 0===o&&(o=Number.POSITIVE_INFINITY),e.call(this,t),this.project=n,this.resultSelector=r,this.concurrent=o,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return f(t,e),t.prototype._next=function(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)},t.prototype._tryNext=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(e){return void this.destination.error(e)}this.active++,this._innerSub(t,e,n)},t.prototype._innerSub=function(e,t,n){this.add(Object(p.a)(this,e,t,n))},t.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},t.prototype.notifyNext=function(e,t,n,r,o){this.resultSelector?this._notifyResultSelector(e,t,n,r):this.destination.next(t)},t.prototype._notifyResultSelector=function(e,t,n,r){var o;try{o=this.resultSelector(e,t,n,r)}catch(e){return void this.destination.error(e)}this.destination.next(o)},t.prototype.notifyComplete=function(e){var t=this.buffer;this.remove(e),this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(h.a),v=n("3iOE");t.a=u,n.d(t,"b",function(){return a})},CIVu:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n("YY8E"),i=n("JEJ4"),s=function(e){function t(){var t,n,r=e.call(this,["visible"])||this;return"undefined"!=typeof document&&void 0!==document.addEventListener&&(void 0!==document.hidden?(n="visibilitychange",t="hidden"):void 0!==document.mozHidden?(n="mozvisibilitychange",t="mozHidden"):void 0!==document.msHidden?(n="msvisibilitychange",t="msHidden"):void 0!==document.webkitHidden&&(n="webkitvisibilitychange",t="webkitHidden")),r.visible_=!0,n&&document.addEventListener(n,function(){var e=!document[t];e!==r.visible_&&(r.visible_=e,r.trigger("visible",e))},!1),r}return r(t,e),t.getInstance=function(){return new t},t.prototype.getInitialEvent=function(e){return i.assert("visible"===e,"Unknown event type: "+e),[this.visible_]},t}(o.EventEmitter);t.VisibilityMonitor=s},COMn:function(e,t,n){"use strict";function r(e){var t=i;return i=e,t}Object.defineProperty(t,"__esModule",{value:!0});var o="FirebaseError",i=Error.captureStackTrace;t.patchCapture=r;var s=function(){function e(e,t){this.code=e,this.message=t;if(i)i(this,a.prototype.create);else{var n=Error.apply(this,arguments);this.name=o,Object.defineProperty(this,"stack",{get:function(){return n.stack}})}}return e}();t.FirebaseError=s,s.prototype=Object.create(Error.prototype),s.prototype.constructor=s,s.prototype.name=o;var a=function(){function e(e,t,n){this.service=e,this.serviceName=t,this.errors=n,this.pattern=/\{\$([^}]+)}/g}return e.prototype.create=function(e,t){void 0===t&&(t={});var n,r=this.errors[e],o=this.service+"/"+e;n=void 0===r?"Error":r.replace(this.pattern,function(e,n){var r=t[n];return void 0!==r?r.toString():"<"+n+"?>"}),n=this.serviceName+": "+n+" ("+o+").";var i=new s(o,n);for(var a in t)t.hasOwnProperty(a)&&"_"!==a.slice(-1)&&(i[a]=t[a]);return i},e}();t.ErrorFactory=a},CPp0:function(e,t,n){"use strict";function r(e){if("string"!=typeof e)return e;switch(e.toUpperCase()){case"GET":return b.Get;case"POST":return b.Post;case"PUT":return b.Put;case"DELETE":return b.Delete;case"OPTIONS":return b.Options;case"HEAD":return b.Head;case"PATCH":return b.Patch}throw new Error('Invalid request method. The method "'+e+'" is not supported.')}function o(e){return"responseURL"in e?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}function i(e){for(var t=new Uint16Array(e.length),n=0,r=e.length;n<r;n++)t[n]=e.charCodeAt(n);return t.buffer}function s(e){void 0===e&&(e="");var t=new Map;if(e.length>0){e.split("&").forEach(function(e){var n=e.indexOf("="),r=-1==n?[e,""]:[e.slice(0,n),e.slice(n+1)],o=r[0],i=r[1],s=t.get(o)||[];s.push(i),t.set(o,s)})}return t}function a(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}function u(){var e="object"==typeof window?window:{};return null===j&&(j=e[F]={}),j}function c(e){var t=new x;return Object.keys(e).forEach(function(n){var r=e[n];r&&Array.isArray(r)?r.forEach(function(e){return t.append(n,e.toString())}):t.append(n,r.toString())}),t}function l(e,t){return e.createConnection(t).response}function p(e,t,n,r){var o=e;return t?o.merge(new J({method:t.method||n,url:t.url||r,search:t.search,params:t.params,headers:t.headers,body:t.body,withCredentials:t.withCredentials,responseType:t.responseType})):o.merge(new J({method:n,url:r}))}function h(){return new Q}function f(e,t){return new re(e,t)}function d(e,t){return new oe(e,t)}n.d(t,"c",function(){return _}),n.d(t,"h",function(){return K}),n.d(t,"a",function(){return Y}),n.d(t,"f",function(){return J}),n.d(t,"b",function(){return T}),n.d(t,"g",function(){return P}),n.d(t,"d",function(){return re}),n.d(t,"e",function(){return ie}),n.d(t,"i",function(){return I}),n.d(t,"j",function(){return h}),n.d(t,"k",function(){return f});var y=n("6Xbx"),v=n("/oeL"),m=n("AP4T"),g=n("fc+i"),_=function(){function e(){}return e.prototype.build=function(){return new XMLHttpRequest},e}();_.decorators=[{type:v.Injectable}],_.ctorParameters=function(){return[]};var b={};b.Get=0,b.Post=1,b.Put=2,b.Delete=3,b.Options=4,b.Head=5,b.Patch=6,b[b.Get]="Get",b[b.Post]="Post",b[b.Put]="Put",b[b.Delete]="Delete",b[b.Options]="Options",b[b.Head]="Head",b[b.Patch]="Patch";var w={};w.Unsent=0,w.Open=1,w.HeadersReceived=2,w.Loading=3,w.Done=4,w.Cancelled=5,w[w.Unsent]="Unsent",w[w.Open]="Open",w[w.HeadersReceived]="HeadersReceived",w[w.Loading]="Loading",w[w.Done]="Done",w[w.Cancelled]="Cancelled";var C={};C.Basic=0,C.Cors=1,C.Default=2,C.Error=3,C.Opaque=4,C[C.Basic]="Basic",C[C.Cors]="Cors",C[C.Default]="Default",C[C.Error]="Error",C[C.Opaque]="Opaque";var E={};E.NONE=0,E.JSON=1,E.FORM=2,E.FORM_DATA=3,E.TEXT=4,E.BLOB=5,E.ARRAY_BUFFER=6,E[E.NONE]="NONE",E[E.JSON]="JSON",E[E.FORM]="FORM",E[E.FORM_DATA]="FORM_DATA",E[E.TEXT]="TEXT",E[E.BLOB]="BLOB",E[E.ARRAY_BUFFER]="ARRAY_BUFFER";var S={};S.Text=0,S.Json=1,S.ArrayBuffer=2,S.Blob=3,S[S.Text]="Text",S[S.Json]="Json",S[S.ArrayBuffer]="ArrayBuffer",S[S.Blob]="Blob";var O=function(){function e(t){var n=this;if(this._headers=new Map,this._normalizedNames=new Map,t)return t instanceof e?void t.forEach(function(e,t){e.forEach(function(e){return n.append(t,e)})}):void Object.keys(t).forEach(function(e){var r=Array.isArray(t[e])?t[e]:[t[e]];n.delete(e),r.forEach(function(t){return n.append(e,t)})})}return e.fromResponseHeaderString=function(t){var n=new e;return t.split("\n").forEach(function(e){var t=e.indexOf(":");if(t>0){var r=e.slice(0,t),o=e.slice(t+1).trim();n.set(r,o)}}),n},e.prototype.append=function(e,t){var n=this.getAll(e);null===n?this.set(e,t):n.push(t)},e.prototype.delete=function(e){var t=e.toLowerCase();this._normalizedNames.delete(t),this._headers.delete(t)},e.prototype.forEach=function(e){var t=this;this._headers.forEach(function(n,r){return e(n,t._normalizedNames.get(r),t._headers)})},e.prototype.get=function(e){var t=this.getAll(e);return null===t?null:t.length>0?t[0]:null},e.prototype.has=function(e){return this._headers.has(e.toLowerCase())},e.prototype.keys=function(){return Array.from(this._normalizedNames.values())},e.prototype.set=function(e,t){Array.isArray(t)?t.length&&this._headers.set(e.toLowerCase(),[t.join(",")]):this._headers.set(e.toLowerCase(),[t]),this.mayBeSetNormalizedName(e)},e.prototype.values=function(){return Array.from(this._headers.values())},e.prototype.toJSON=function(){var e=this,t={};return this._headers.forEach(function(n,r){var o=[];n.forEach(function(e){return o.push.apply(o,e.split(","))}),t[e._normalizedNames.get(r)]=o}),t},e.prototype.getAll=function(e){return this.has(e)?this._headers.get(e.toLowerCase())||null:null},e.prototype.entries=function(){throw new Error('"entries" method is not implemented on Headers class')},e.prototype.mayBeSetNormalizedName=function(e){var t=e.toLowerCase();this._normalizedNames.has(t)||this._normalizedNames.set(t,e)},e}(),P=function(){function e(e){void 0===e&&(e={});var t=e.body,n=e.status,r=e.headers,o=e.statusText,i=e.type,s=e.url;this.body=null!=t?t:null,this.status=null!=n?n:null,this.headers=null!=r?r:null,this.statusText=null!=o?o:null,this.type=null!=i?i:null,this.url=null!=s?s:null}return e.prototype.merge=function(t){return new e({body:t&&null!=t.body?t.body:this.body,status:t&&null!=t.status?t.status:this.status,headers:t&&null!=t.headers?t.headers:this.headers,statusText:t&&null!=t.statusText?t.statusText:this.statusText,type:t&&null!=t.type?t.type:this.type,url:t&&null!=t.url?t.url:this.url})},e}(),T=function(e){function t(){return e.call(this,{status:200,statusText:"Ok",type:C.Default,headers:new O})||this}return y.a(t,e),t}(P);T.decorators=[{type:v.Injectable}],T.ctorParameters=function(){return[]};var N=function(){function e(){}return e.prototype.createConnection=function(e){},e}(),I=(function(){function e(){}}(),function(){function e(){}return e.prototype.configureRequest=function(e){},e}()),A=function(e){return e>=200&&e<300},R=function(){function e(){}return e.prototype.encodeKey=function(e){return a(e)},e.prototype.encodeValue=function(e){return a(e)},e}(),x=function(){function e(e,t){void 0===e&&(e=""),void 0===t&&(t=new R),this.rawParams=e,this.queryEncoder=t,this.paramsMap=s(e)}return e.prototype.clone=function(){var t=new e("",this.queryEncoder);return t.appendAll(this),t},e.prototype.has=function(e){return this.paramsMap.has(e)},e.prototype.get=function(e){var t=this.paramsMap.get(e);return Array.isArray(t)?t[0]:null},e.prototype.getAll=function(e){return this.paramsMap.get(e)||[]},e.prototype.set=function(e,t){if(void 0===t||null===t)return void this.delete(e);var n=this.paramsMap.get(e)||[];n.length=0,n.push(t),this.paramsMap.set(e,n)},e.prototype.setAll=function(e){var t=this;e.paramsMap.forEach(function(e,n){var r=t.paramsMap.get(n)||[];r.length=0,r.push(e[0]),t.paramsMap.set(n,r)})},e.prototype.append=function(e,t){if(void 0!==t&&null!==t){var n=this.paramsMap.get(e)||[];n.push(t),this.paramsMap.set(e,n)}},e.prototype.appendAll=function(e){var t=this;e.paramsMap.forEach(function(e,n){for(var r=t.paramsMap.get(n)||[],o=0;o<e.length;++o)r.push(e[o]);t.paramsMap.set(n,r)})},e.prototype.replaceAll=function(e){var t=this;e.paramsMap.forEach(function(e,n){var r=t.paramsMap.get(n)||[];r.length=0;for(var o=0;o<e.length;++o)r.push(e[o]);t.paramsMap.set(n,r)})},e.prototype.toString=function(){var e=this,t=[];return this.paramsMap.forEach(function(n,r){n.forEach(function(n){return t.push(e.queryEncoder.encodeKey(r)+"="+e.queryEncoder.encodeValue(n))})}),t.join("&")},e.prototype.delete=function(e){this.paramsMap.delete(e)},e}(),k=function(){function e(){}return e.prototype.json=function(){return"string"==typeof this._body?JSON.parse(this._body):this._body instanceof ArrayBuffer?JSON.parse(this.text()):this._body},e.prototype.text=function(e){if(void 0===e&&(e="legacy"),this._body instanceof x)return this._body.toString();if(this._body instanceof ArrayBuffer)switch(e){case"legacy":return String.fromCharCode.apply(null,new Uint16Array(this._body));case"iso-8859":return String.fromCharCode.apply(null,new Uint8Array(this._body));default:throw new Error("Invalid value for encodingHint: "+e)}return null==this._body?"":"object"==typeof this._body?JSON.stringify(this._body,null,2):this._body.toString()},e.prototype.arrayBuffer=function(){return this._body instanceof ArrayBuffer?this._body:i(this.text())},e.prototype.blob=function(){if(this._body instanceof Blob)return this._body;if(this._body instanceof ArrayBuffer)return new Blob([this._body]);throw new Error("The request body isn't either a blob or an array buffer")},e}(),D=function(e){function t(t){var n=e.call(this)||this;return n._body=t.body,n.status=t.status,n.ok=n.status>=200&&n.status<=299,n.statusText=t.statusText,n.headers=t.headers,n.type=t.type,n.url=t.url,n}return y.a(t,e),t.prototype.toString=function(){return"Response with status: "+this.status+" "+this.statusText+" for URL: "+this.url},t}(k),M=0,F="__ng_jsonp__",j=null,L=function(){function e(){}return e.prototype.build=function(e){var t=document.createElement("script");return t.src=e,t},e.prototype.nextRequestID=function(){return"__req"+M++},e.prototype.requestCallback=function(e){return F+"."+e+".finished"},e.prototype.exposeConnection=function(e,t){u()[e]=t},e.prototype.removeConnection=function(e){u()[e]=null},e.prototype.send=function(e){document.body.appendChild(e)},e.prototype.cleanup=function(e){e.parentNode&&e.parentNode.removeChild(e)},e}();L.decorators=[{type:v.Injectable}],L.ctorParameters=function(){return[]};var V="JSONP injected script did not invoke callback.",H="JSONP requests must use GET request method.",B=function(){function e(){}return e.prototype.finished=function(e){},e}(),q=function(e){function t(t,n,r){var o=e.call(this)||this;if(o._dom=n,o.baseResponseOptions=r,o._finished=!1,t.method!==b.Get)throw new TypeError(H);return o.request=t,o.response=new m.a(function(e){o.readyState=w.Loading;var i=o._id=n.nextRequestID();n.exposeConnection(i,o);var s=n.requestCallback(o._id),a=t.url;a.indexOf("=JSONP_CALLBACK&")>-1?a=a.replace("=JSONP_CALLBACK&","="+s+"&"):a.lastIndexOf("=JSONP_CALLBACK")===a.length-"=JSONP_CALLBACK".length&&(a=a.substring(0,a.length-"=JSONP_CALLBACK".length)+"="+s);var u=o._script=n.build(a),c=function(t){if(o.readyState!==w.Cancelled){if(o.readyState=w.Done,n.cleanup(u),!o._finished){var i=new P({body:V,type:C.Error,url:a});return r&&(i=r.merge(i)),void e.error(new D(i))}var s=new P({body:o._responseData,url:a});o.baseResponseOptions&&(s=o.baseResponseOptions.merge(s)),e.next(new D(s)),e.complete()}},l=function(t){if(o.readyState!==w.Cancelled){o.readyState=w.Done,n.cleanup(u);var i=new P({body:t.message,type:C.Error});r&&(i=r.merge(i)),e.error(new D(i))}};return u.addEventListener("load",c),u.addEventListener("error",l),n.send(u),function(){o.readyState=w.Cancelled,u.removeEventListener("load",c),u.removeEventListener("error",l),o._dom.cleanup(u)}}),o}return y.a(t,e),t.prototype.finished=function(e){this._finished=!0,this._dom.removeConnection(this._id),this.readyState!==w.Cancelled&&(this._responseData=e)},t}(B),W=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return y.a(t,e),t}(N),U=function(e){function t(t,n){var r=e.call(this)||this;return r._browserJSONP=t,r._baseResponseOptions=n,r}return y.a(t,e),t.prototype.createConnection=function(e){return new q(e,this._browserJSONP,this._baseResponseOptions)},t}(W);U.decorators=[{type:v.Injectable}],U.ctorParameters=function(){return[{type:L},{type:P}]};var z=/^\)\]\}',?\n/,G=function(){function e(e,t,n){var r=this;this.request=e,this.response=new m.a(function(i){var s=t.build();s.open(b[e.method].toUpperCase(),e.url),null!=e.withCredentials&&(s.withCredentials=e.withCredentials);var a=function(){var t=1223===s.status?204:s.status,r=null;204!==t&&"string"==typeof(r=void 0===s.response?s.responseText:s.response)&&(r=r.replace(z,"")),0===t&&(t=r?200:0);var a=O.fromResponseHeaderString(s.getAllResponseHeaders()),u=o(s)||e.url,c=s.statusText||"OK",l=new P({body:r,status:t,headers:a,statusText:c,url:u});null!=n&&(l=n.merge(l));var p=new D(l);if(p.ok=A(t),p.ok)return i.next(p),void i.complete();i.error(p)},u=function(e){var t=new P({body:e,type:C.Error,status:s.status,statusText:s.statusText});null!=n&&(t=n.merge(t)),i.error(new D(t))};if(r.setDetectedContentType(e,s),null==e.headers&&(e.headers=new O),e.headers.has("Accept")||e.headers.append("Accept","application/json, text/plain, */*"),e.headers.forEach(function(e,t){return s.setRequestHeader(t,e.join(","))}),null!=e.responseType&&null!=s.responseType)switch(e.responseType){case S.ArrayBuffer:s.responseType="arraybuffer";break;case S.Json:s.responseType="json";break;case S.Text:s.responseType="text";break;case S.Blob:s.responseType="blob";break;default:throw new Error("The selected responseType is not supported")}return s.addEventListener("load",a),s.addEventListener("error",u),s.send(r.request.getBody()),function(){s.removeEventListener("load",a),s.removeEventListener("error",u),s.abort()}})}return e.prototype.setDetectedContentType=function(e,t){if(null==e.headers||null==e.headers.get("Content-Type"))switch(e.contentType){case E.NONE:break;case E.JSON:t.setRequestHeader("content-type","application/json");break;case E.FORM:t.setRequestHeader("content-type","application/x-www-form-urlencoded;charset=UTF-8");break;case E.TEXT:t.setRequestHeader("content-type","text/plain");break;case E.BLOB:var n=e.blob();n.type&&t.setRequestHeader("content-type",n.type)}},e}(),Q=function(){function e(e,t){void 0===e&&(e="XSRF-TOKEN"),void 0===t&&(t="X-XSRF-TOKEN"),this._cookieName=e,this._headerName=t}return e.prototype.configureRequest=function(e){var t=Object(g.u)().getCookie(this._cookieName);t&&e.headers.set(this._headerName,t)},e}(),K=function(){function e(e,t,n){this._browserXHR=e,this._baseResponseOptions=t,this._xsrfStrategy=n}return e.prototype.createConnection=function(e){return this._xsrfStrategy.configureRequest(e),new G(e,this._browserXHR,this._baseResponseOptions)},e}();K.decorators=[{type:v.Injectable}],K.ctorParameters=function(){return[{type:_},{type:P},{type:I}]};var J=function(){function e(e){void 0===e&&(e={});var t=e.method,n=e.headers,o=e.body,i=e.url,s=e.search,a=e.params,u=e.withCredentials,c=e.responseType;this.method=null!=t?r(t):null,this.headers=null!=n?n:null,this.body=null!=o?o:null,this.url=null!=i?i:null,this.params=this._mergeSearchParams(a||s),this.withCredentials=null!=u?u:null,this.responseType=null!=c?c:null}return Object.defineProperty(e.prototype,"search",{get:function(){return this.params},set:function(e){this.params=e},enumerable:!0,configurable:!0}),e.prototype.merge=function(t){return new e({method:t&&null!=t.method?t.method:this.method,headers:t&&null!=t.headers?t.headers:new O(this.headers),body:t&&null!=t.body?t.body:this.body,url:t&&null!=t.url?t.url:this.url,params:t&&this._mergeSearchParams(t.params||t.search),withCredentials:t&&null!=t.withCredentials?t.withCredentials:this.withCredentials,responseType:t&&null!=t.responseType?t.responseType:this.responseType})},e.prototype._mergeSearchParams=function(e){return e?e instanceof x?e.clone():"string"==typeof e?new x(e):this._parseParams(e):this.params},e.prototype._parseParams=function(e){var t=this;void 0===e&&(e={});var n=new x;return Object.keys(e).forEach(function(r){var o=e[r];Array.isArray(o)?o.forEach(function(e){return t._appendParam(r,e,n)}):t._appendParam(r,o,n)}),n},e.prototype._appendParam=function(e,t,n){"string"!=typeof t&&(t=JSON.stringify(t)),n.append(e,t)},e}(),Y=function(e){function t(){return e.call(this,{method:b.Get,headers:new O})||this}return y.a(t,e),t}(J);Y.decorators=[{type:v.Injectable}],Y.ctorParameters=function(){return[]};var X=function(e){function t(t){var n=e.call(this)||this,o=t.url;n.url=t.url;var i=t.params||t.search;if(i){var s=void 0;if(s="object"!=typeof i||i instanceof x?i.toString():c(i).toString(),s.length>0){var a="?";-1!=n.url.indexOf("?")&&(a="&"==n.url[n.url.length-1]?"":"&"),n.url=o+a+s}}return n._body=t.body,n.method=r(t.method),n.headers=new O(t.headers),n.contentType=n.detectContentType(),n.withCredentials=t.withCredentials,n.responseType=t.responseType,n}return y.a(t,e),t.prototype.detectContentType=function(){switch(this.headers.get("content-type")){case"application/json":return E.JSON;case"application/x-www-form-urlencoded":return E.FORM;case"multipart/form-data":return E.FORM_DATA;case"text/plain":case"text/html":return E.TEXT;case"application/octet-stream":return this._body instanceof ne?E.ARRAY_BUFFER:E.BLOB;default:return this.detectContentTypeFromBody()}},t.prototype.detectContentTypeFromBody=function(){return null==this._body?E.NONE:this._body instanceof x?E.FORM:this._body instanceof ee?E.FORM_DATA:this._body instanceof te?E.BLOB:this._body instanceof ne?E.ARRAY_BUFFER:this._body&&"object"==typeof this._body?E.JSON:E.TEXT},t.prototype.getBody=function(){switch(this.contentType){case E.JSON:case E.FORM:return this.text();case E.FORM_DATA:return this._body;case E.TEXT:return this.text();case E.BLOB:return this.blob();case E.ARRAY_BUFFER:return this.arrayBuffer();default:return null}},t}(k),Z=function(){},$="object"==typeof window?window:Z,ee=$.FormData||Z,te=$.Blob||Z,ne=$.ArrayBuffer||Z,re=function(){function e(e,t){this._backend=e,this._defaultOptions=t}return e.prototype.request=function(e,t){var n;if("string"==typeof e)n=l(this._backend,new X(p(this._defaultOptions,t,b.Get,e)));else{if(!(e instanceof X))throw new Error("First argument must be a url string or Request instance.");n=l(this._backend,e)}return n},e.prototype.get=function(e,t){return this.request(new X(p(this._defaultOptions,t,b.Get,e)))},e.prototype.post=function(e,t,n){return this.request(new X(p(this._defaultOptions.merge(new J({body:t})),n,b.Post,e)))},e.prototype.put=function(e,t,n){return this.request(new X(p(this._defaultOptions.merge(new J({body:t})),n,b.Put,e)))},e.prototype.delete=function(e,t){return this.request(new X(p(this._defaultOptions,t,b.Delete,e)))},e.prototype.patch=function(e,t,n){return this.request(new X(p(this._defaultOptions.merge(new J({body:t})),n,b.Patch,e)))},e.prototype.head=function(e,t){return this.request(new X(p(this._defaultOptions,t,b.Head,e)))},e.prototype.options=function(e,t){return this.request(new X(p(this._defaultOptions,t,b.Options,e)))},e}();re.decorators=[{type:v.Injectable}],re.ctorParameters=function(){return[{type:N},{type:J}]};var oe=function(e){function t(t,n){return e.call(this,t,n)||this}return y.a(t,e),t.prototype.request=function(e,t){if("string"==typeof e&&(e=new X(p(this._defaultOptions,t,b.Get,e))),!(e instanceof X))throw new Error("First argument must be a url string or Request instance.");if(e.method!==b.Get)throw new Error("JSONP requests must use GET request method.");return l(this._backend,e)},t}(re);oe.decorators=[{type:v.Injectable}],oe.ctorParameters=function(){return[{type:N},{type:J}]};var ie=function(){function e(){}return e}();ie.decorators=[{type:v.NgModule,args:[{providers:[{provide:re,useFactory:f,deps:[K,J]},_,{provide:J,useClass:Y},{provide:P,useClass:T},K,{provide:I,useFactory:h}]}]}],ie.ctorParameters=function(){return[]};var se=function(){function e(){}return e}();se.decorators=[{type:v.NgModule,args:[{providers:[{provide:oe,useFactory:d,deps:[W,J]},L,{provide:J,useClass:Y},{provide:P,useClass:T},{provide:W,useClass:U}]}]}],se.ctorParameters=function(){return[]};new v.Version("4.4.6")},Dvgu:function(e,t,n){e.exports=n("tYwN")},"E9/g":function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n("B1iP"),o=n("qLnt"),i=n("grVA"),s=n("V7AE"),a=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},u=function(e){function t(n,r,o){switch(e.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=i.a;break;case 1:if(!n){this.destination=i.a;break}if("object"==typeof n){n instanceof t?(this.destination=n,this.destination.add(this)):(this.syncErrorThrowable=!0,this.destination=new c(this,n));break}default:this.syncErrorThrowable=!0,this.destination=new c(this,n,r,o)}}return a(t,e),t.prototype[s.a]=function(){return this},t.create=function(e,n,r){var o=new t(e,n,r);return o.syncErrorThrowable=!1,o},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var e=this,t=e._parent,n=e._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=t,this._parents=n,this},t}(o.a),c=function(e){function t(t,n,o,s){e.call(this),this._parentSubscriber=t;var a,u=this;Object(r.a)(n)?a=n:n&&(a=n.next,o=n.error,s=n.complete,n!==i.a&&(u=Object.create(n),Object(r.a)(u.unsubscribe)&&this.add(u.unsubscribe.bind(u)),u.unsubscribe=this.unsubscribe.bind(this))),this._context=u,this._next=a,this._error=o,this._complete=s}return a(t,e),t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},t.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber;if(this._error)t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else{if(!t.syncErrorThrowable)throw this.unsubscribe(),e;t.syncErrorValue=e,t.syncErrorThrown=!0,this.unsubscribe()}}},t.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(e){throw this.unsubscribe(),e}},t.prototype.__tryOrSetError=function(e,t,n){try{t.call(this._context,n)}catch(t){return e.syncErrorValue=t,e.syncErrorThrown=!0,!0}return!1},t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},t}(u)},EAgh:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("JEJ4"),o=function(){function e(e,t){this.committed=e,this.snapshot=t}return e.prototype.toJSON=function(){return r.validateArgCount("TransactionResult.toJSON",0,1,arguments.length),{committed:this.committed,snapshot:this.snapshot.toJSON()}},e}();t.TransactionResult=o},"Ecq+":function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("AP4T"),o=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=function(e){function t(t){e.call(this),this.scheduler=t}return o(t,e),t.create=function(e){return new t(e)},t.dispatch=function(e){e.subscriber.complete()},t.prototype._subscribe=function(e){var n=this.scheduler;if(n)return n.schedule(t.dispatch,0,{subscriber:e});e.complete()},t}(r.a)},EqqR:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("/byE");t.assert=function(e,n){if(!e)throw t.assertionError(n)},t.assertionError=function(e){return new Error("Firebase Database ("+r.CONSTANTS.SDK_VERSION+") INTERNAL ASSERT FAILED: "+e)}},EyWH:function(e,t,n){"use strict";function r(e,t){return{type:7,name:e,definitions:t,options:{}}}function o(e,t){return void 0===t&&(t=null),{type:4,styles:t,timings:e}}function i(e,t){return void 0===t&&(t=null),{type:3,steps:e,options:t}}function s(e,t){return void 0===t&&(t=null),{type:2,steps:e,options:t}}function a(e){return{type:6,styles:e,offset:null}}function u(e,t,n){return{type:0,name:e,styles:t,options:n}}function c(e){return{type:5,steps:e}}function l(e,t,n){return void 0===n&&(n=null),{type:1,expr:e,animation:t,options:n}}function p(e,t){return void 0===t&&(t=null),{type:8,animation:e,options:t}}function h(e){return void 0===e&&(e=null),{type:9,options:e}}function f(e,t){return void 0===t&&(t=null),{type:10,animation:e,options:t}}function d(e,t,n){return void 0===n&&(n=null),{type:11,selector:e,animation:t,options:n}}function y(e,t){return{type:12,timings:e,animation:t}}function v(e){Promise.resolve(null).then(e)}Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"AnimationBuilder",function(){return m}),n.d(t,"AnimationFactory",function(){return g}),n.d(t,"AUTO_STYLE",function(){return _}),n.d(t,"animate",function(){return o}),n.d(t,"animateChild",function(){return h}),n.d(t,"animation",function(){return p}),n.d(t,"group",function(){return i}),n.d(t,"keyframes",function(){return c}),n.d(t,"query",function(){return d}),n.d(t,"sequence",function(){return s}),n.d(t,"stagger",function(){return y}),n.d(t,"state",function(){return u}),n.d(t,"style",function(){return a}),n.d(t,"transition",function(){return l}),n.d(t,"trigger",function(){return r}),n.d(t,"useAnimation",function(){return f}),n.d(t,"NoopAnimationPlayer",function(){return b}),n.d(t,"\u0275AnimationGroupPlayer",function(){return w}),n.d(t,"\u0275PRE_STYLE",function(){return C});var m=function(){function e(){}return e.prototype.build=function(e){},e}(),g=function(){function e(){}return e.prototype.create=function(e,t){},e}(),_="*",b=function(){function e(){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=0}return e.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])},e.prototype.onStart=function(e){this._onStartFns.push(e)},e.prototype.onDone=function(e){this._onDoneFns.push(e)},e.prototype.onDestroy=function(e){this._onDestroyFns.push(e)},e.prototype.hasStarted=function(){return this._started},e.prototype.init=function(){},e.prototype.play=function(){this.hasStarted()||(this.triggerMicrotask(),this._onStart()),this._started=!0},e.prototype.triggerMicrotask=function(){var e=this;v(function(){return e._onFinish()})},e.prototype._onStart=function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]},e.prototype.pause=function(){},e.prototype.restart=function(){},e.prototype.finish=function(){this._onFinish()},e.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])},e.prototype.reset=function(){},e.prototype.setPosition=function(e){},e.prototype.getPosition=function(){return 0},e}(),w=function(){function e(e){var t=this;this._players=e,this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0;var n=0,r=0,o=0,i=this._players.length;0==i?v(function(){return t._onFinish()}):this._players.forEach(function(e){e.parentPlayer=t,e.onDone(function(){++n>=i&&t._onFinish()}),e.onDestroy(function(){++r>=i&&t._onDestroy()}),e.onStart(function(){++o>=i&&t._onStart()})}),this.totalTime=this._players.reduce(function(e,t){return Math.max(e,t.totalTime)},0)}return e.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])},e.prototype.init=function(){this._players.forEach(function(e){return e.init()})},e.prototype.onStart=function(e){this._onStartFns.push(e)},e.prototype._onStart=function(){this.hasStarted()||(this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[],this._started=!0)},e.prototype.onDone=function(e){this._onDoneFns.push(e)},e.prototype.onDestroy=function(e){this._onDestroyFns.push(e)},e.prototype.hasStarted=function(){return this._started},e.prototype.play=function(){this.parentPlayer||this.init(),this._onStart(),this._players.forEach(function(e){return e.play()})},e.prototype.pause=function(){this._players.forEach(function(e){return e.pause()})},e.prototype.restart=function(){this._players.forEach(function(e){return e.restart()})},e.prototype.finish=function(){this._onFinish(),this._players.forEach(function(e){return e.finish()})},e.prototype.destroy=function(){this._onDestroy()},e.prototype._onDestroy=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=[])},e.prototype.reset=function(){this._players.forEach(function(e){return e.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1},e.prototype.setPosition=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)})},e.prototype.getPosition=function(){var e=0;return this._players.forEach(function(t){var n=t.getPosition();e=Math.min(n,e)}),e},Object.defineProperty(e.prototype,"players",{get:function(){return this._players},enumerable:!0,configurable:!0}),e.prototype.beforeDestroy=function(){this.players.forEach(function(e){e.beforeDestroy&&e.beforeDestroy()})},e}(),C="!"},F1yO:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("JEJ4"),o=n("JEJ4"),i=n("JEJ4"),s=n("JEJ4"),a=n("JEJ4"),u=n("JEJ4"),c=n("Rgd9"),l=n("JEJ4");t.LUIDGenerator=function(){var e=1;return function(){return e++}}(),t.sha1=function(e){var t=a.stringToByteArray(e),n=new s.Sha1;n.update(t);var r=n.digest();return i.base64.encodeByteArray(r)};var p=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n="",r=0;r<e.length;r++)Array.isArray(e[r])||e[r]&&"object"==typeof e[r]&&"number"==typeof e[r].length?n+=p.apply(null,e[r]):"object"==typeof e[r]?n+=u.stringify(e[r]):n+=e[r],n+=" ";return n};t.logger=null;var h=!0;t.enableLogging=function(e,n){r.assert(!n||!0===e||!1===e,"Can't turn on custom loggers persistently."),!0===e?("undefined"!=typeof console&&("function"==typeof console.log?t.logger=console.log.bind(console):"object"==typeof console.log&&(t.logger=function(e){console.log(e)})),n&&c.SessionStorage.set("logging_enabled",!0)):"function"==typeof e?t.logger=e:(t.logger=null,c.SessionStorage.remove("logging_enabled"))},t.log=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(!0===h&&(h=!1,null===t.logger&&!0===c.SessionStorage.get("logging_enabled")&&t.enableLogging(!0)),t.logger){var r=p.apply(null,e);t.logger(r)}},t.logWrapper=function(e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];t.log.apply(void 0,[e].concat(n))}},t.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if("undefined"!=typeof console){var n="FIREBASE INTERNAL ERROR: "+p.apply(void 0,e);void 0!==console.error?console.error(n):console.log(n)}},t.fatal=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=p.apply(void 0,e);throw new Error("FIREBASE FATAL ERROR: "+n)},t.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if("undefined"!=typeof console){var n="FIREBASE WARNING: "+p.apply(void 0,e);void 0!==console.warn?console.warn(n):console.log(n)}},t.warnIfPageIsSecure=function(){"undefined"!=typeof window&&window.location&&window.location.protocol&&-1!==window.location.protocol.indexOf("https:")&&t.warn("Insecure Firebase access from a secure page. Please use https in calls to new Firebase().")},t.warnAboutUnsupportedMethod=function(e){t.warn(e+" is unsupported and will likely change soon.  Please do not use.")},t.isInvalidJSONNumber=function(e){return"number"==typeof e&&(e!=e||e==Number.POSITIVE_INFINITY||e==Number.NEGATIVE_INFINITY)},t.executeWhenDOMReady=function(e){if(l.isNodeSdk()||"complete"===document.readyState)e();else{var t=!1,n=function(){if(!document.body)return void setTimeout(n,Math.floor(10));t||(t=!0,e())};document.addEventListener?(document.addEventListener("DOMContentLoaded",n,!1),window.addEventListener("load",n,!1)):document.attachEvent&&(document.attachEvent("onreadystatechange",function(){"complete"===document.readyState&&n()}),window.attachEvent("onload",n))}},t.MIN_NAME="[MIN_NAME]",t.MAX_NAME="[MAX_NAME]",t.nameCompare=function(e,n){if(e===n)return 0;if(e===t.MIN_NAME||n===t.MAX_NAME)return-1;if(n===t.MIN_NAME||e===t.MAX_NAME)return 1;var r=t.tryParseInt(e),o=t.tryParseInt(n);return null!==r?null!==o?r-o==0?e.length-n.length:r-o:-1:null!==o?1:e<n?-1:1},t.stringCompare=function(e,t){return e===t?0:e<t?-1:1},t.requireKey=function(e,t){if(t&&e in t)return t[e];throw new Error("Missing required key ("+e+") in object: "+u.stringify(t))},t.ObjectToUniqueKey=function(e){if("object"!=typeof e||null===e)return u.stringify(e);var n=[];for(var r in e)n.push(r);n.sort();for(var o="{",i=0;i<n.length;i++)0!==i&&(o+=","),o+=u.stringify(n[i]),o+=":",o+=t.ObjectToUniqueKey(e[n[i]]);return o+="}"},t.splitStringBySize=function(e,t){var n=e.length;if(n<=t)return[e];for(var r=[],o=0;o<n;o+=t)o+t>n?r.push(e.substring(o,n)):r.push(e.substring(o,o+t));return r},t.each=function(e,t){if(Array.isArray(e))for(var n=0;n<e.length;++n)t(n,e[n]);else o.forEach(e,function(e,n){return t(n,e)})},t.bindCallback=function(e,t){return t?e.bind(t):e},t.doubleToIEEE754String=function(e){r.assert(!t.isInvalidJSONNumber(e),"Invalid JSON number");var n,o,i,s,a,u,c;for(0===e?(o=0,i=0,n=1/e==-1/0?1:0):(n=e<0,e=Math.abs(e),e>=Math.pow(2,-1022)?(s=Math.min(Math.floor(Math.log(e)/Math.LN2),1023),o=s+1023,i=Math.round(e*Math.pow(2,52-s)-Math.pow(2,52))):(o=0,i=Math.round(e/Math.pow(2,-1074)))),u=[],a=52;a;a-=1)u.push(i%2?1:0),i=Math.floor(i/2);for(a=11;a;a-=1)u.push(o%2?1:0),o=Math.floor(o/2);u.push(n?1:0),u.reverse(),c=u.join("");var l="";for(a=0;a<64;a+=8){var p=parseInt(c.substr(a,8),2).toString(16);1===p.length&&(p="0"+p),l+=p}return l.toLowerCase()},t.isChromeExtensionContentScript=function(){return!("object"!=typeof window||!window.chrome||!window.chrome.extension||/^chrome/.test(window.location.href))},t.isWindowsStoreApp=function(){return"object"==typeof Windows&&"object"==typeof Windows.UI},t.errorForServerCode=function(e,t){var n="Unknown Error";"too_big"===e?n="The data requested exceeds the maximum size that can be accessed with a single request.":"permission_denied"==e?n="Client doesn't have permission to access the desired data.":"unavailable"==e&&(n="The service is unavailable");var r=new Error(e+" at "+t.path.toString()+": "+n);return r.code=e.toUpperCase(),r},t.INTEGER_REGEXP_=new RegExp("^-?\\d{1,10}$"),t.tryParseInt=function(e){if(t.INTEGER_REGEXP_.test(e)){var n=Number(e);if(n>=-2147483648&&n<=2147483647)return n}return null},t.exceptionGuard=function(e){try{e()}catch(e){setTimeout(function(){var n=e.stack||"";throw t.warn("Exception was thrown by user callback.",n),e},Math.floor(0))}},t.callUserCallback=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];"function"==typeof e&&t.exceptionGuard(function(){e.apply(void 0,n)})},t.beingCrawled=function(){return("object"==typeof window&&window.navigator&&window.navigator.userAgent||"").search(/googlebot|google webmaster tools|bingbot|yahoo! slurp|baiduspider|yandexbot|duckduckbot/i)>=0},t.exportPropGetter=function(e,t,n){Object.defineProperty(e,t,{get:n})},t.setTimeoutNonBlocking=function(e,t){var n=setTimeout(e,t);return"object"==typeof n&&n.unref&&n.unref(),n}},FGYS:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("qYrH"),o=n("9ard"),i=n("F1yO"),s=function(){function e(e){this.initTransports_(e)}return Object.defineProperty(e,"ALL_TRANSPORTS",{get:function(){return[r.BrowserPollConnection,o.WebSocketConnection]},enumerable:!0,configurable:!0}),e.prototype.initTransports_=function(t){var n=o.WebSocketConnection&&o.WebSocketConnection.isAvailable(),r=n&&!o.WebSocketConnection.previouslyFailed();if(t.webSocketOnly&&(n||i.warn("wss:// URL used, but browser isn't known to support websockets.  Trying anyway."),r=!0),r)this.transports_=[o.WebSocketConnection];else{var s=this.transports_=[];i.each(e.ALL_TRANSPORTS,function(e,t){t&&t.isAvailable()&&s.push(t)})}},e.prototype.initialTransport=function(){if(this.transports_.length>0)return this.transports_[0];throw new Error("No transports available")},e.prototype.upgradeTransport=function(){return this.transports_.length>1?this.transports_[1]:null},e}();t.TransportManager=s},FOvx:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fvGz"),o=n("gOHv"),i=function(){function e(e,t){this.source=e,this.path=t,this.type=o.OperationType.LISTEN_COMPLETE}return e.prototype.operationForChild=function(t){return this.path.isEmpty()?new e(this.source,r.Path.Empty):new e(this.source,this.path.popFront())},e}();t.ListenComplete=i},Fwmd:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("JEJ4"),o=function(){function e(){this.cache_={},this.isInMemoryStorage=!0}return e.prototype.set=function(e,t){null==t?delete this.cache_[e]:this.cache_[e]=t},e.prototype.get=function(e){return r.contains(this.cache_,e)?this.cache_[e]:null},e.prototype.remove=function(e){delete this.cache_[e]},e}();t.MemoryStorage=o},G0Qy:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n("JEJ4"),i=n("F1yO"),s=n("GboV"),a=n("R3TC"),u=n("p+VM"),c=n("43Go"),l=function(e){function t(t){var n=e.call(this)||this;return n.indexPath_=t,o.assert(!t.isEmpty()&&".priority"!==t.getFront(),"Can't create PathIndex with empty path or .priority key"),n}return r(t,e),t.prototype.extractChild=function(e){return e.getChild(this.indexPath_)},t.prototype.isDefinedOn=function(e){return!e.getChild(this.indexPath_).isEmpty()},t.prototype.compare=function(e,t){var n=this.extractChild(e.node),r=this.extractChild(t.node),o=n.compareTo(r);return 0===o?i.nameCompare(e.name,t.name):o},t.prototype.makePost=function(e,t){var n=c.nodeFromJSON(e),r=a.ChildrenNode.EMPTY_NODE.updateChild(this.indexPath_,n);return new u.NamedNode(t,r)},t.prototype.maxPost=function(){var e=a.ChildrenNode.EMPTY_NODE.updateChild(this.indexPath_,a.MAX_NODE);return new u.NamedNode(i.MAX_NAME,e)},t.prototype.toString=function(){return this.indexPath_.slice().join("/")},t}(s.Index);t.PathIndex=l},GEki:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("y8hQ"),o=function(){function e(){}return e.prototype.getCompleteChild=function(e){return null},e.prototype.getChildAfterChild=function(e,t,n){return null},e}();t.NoCompleteChildSource_=o,t.NO_COMPLETE_CHILD_SOURCE=new o;var i=function(){function e(e,t,n){void 0===n&&(n=null),this.writes_=e,this.viewCache_=t,this.optCompleteServerCache_=n}return e.prototype.getCompleteChild=function(e){var t=this.viewCache_.getEventCache();if(t.isCompleteForChild(e))return t.getNode().getImmediateChild(e);var n=null!=this.optCompleteServerCache_?new r.CacheNode(this.optCompleteServerCache_,!0,!1):this.viewCache_.getServerCache();return this.writes_.calcCompleteChild(e,n)},e.prototype.getChildAfterChild=function(e,t,n){var r=null!=this.optCompleteServerCache_?this.optCompleteServerCache_:this.viewCache_.getCompleteServerSnap(),o=this.writes_.calcIndexedSlice(r,t,1,n,e);return 0===o.length?null:o[0]},e}();t.WriteTreeCompleteChildSource=i},GTlS:function(e,t,n){"use strict";var r=n("xIGM"),o=n("qLnt"),i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},s=function(e){function t(t,n){e.call(this)}return i(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(o.a);n.d(t,"a",function(){return u});var a=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},u=function(e){function t(t,n){e.call(this,t,n),this.scheduler=t,this.work=n,this.pending=!1}return a(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e,this.pending=!0;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),r.a.setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){return void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending?t:r.a.clearInterval(t)&&void 0||void 0},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n=!1,r=void 0;try{this.work(e)}catch(e){n=!0,r=!!e&&e||new Error(e)}if(n)return this.unsubscribe(),r},t.prototype._unsubscribe=function(){var e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null},t}(s)},GZB0:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("Oryw"),o=r.a.of},GboV:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("p+VM"),o=n("F1yO"),i=function(){function e(){}return e.prototype.getCompare=function(){return this.compare.bind(this)},e.prototype.indexedValueChanged=function(e,t){var n=new r.NamedNode(o.MIN_NAME,e),i=new r.NamedNode(o.MIN_NAME,t);return 0!==this.compare(n,i)},e.prototype.minPost=function(){return r.NamedNode.MIN},e}();t.Index=i},GnQ5:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("JEJ4"),o=n("xfHL"),i=n("fvGz"),s=n("/fob"),a=function(){function e(e,t,n){this.node_=e,this.ref_=t,this.index_=n}return e.prototype.val=function(){return r.validateArgCount("DataSnapshot.val",0,0,arguments.length),this.node_.val()},e.prototype.exportVal=function(){return r.validateArgCount("DataSnapshot.exportVal",0,0,arguments.length),this.node_.val(!0)},e.prototype.toJSON=function(){return r.validateArgCount("DataSnapshot.toJSON",0,1,arguments.length),this.exportVal()},e.prototype.exists=function(){return r.validateArgCount("DataSnapshot.exists",0,0,arguments.length),!this.node_.isEmpty()},e.prototype.child=function(t){r.validateArgCount("DataSnapshot.child",0,1,arguments.length),t=String(t),o.validatePathString("DataSnapshot.child",1,t,!1);var n=new i.Path(t),a=this.ref_.child(n);return new e(this.node_.getChild(n),a,s.PRIORITY_INDEX)},e.prototype.hasChild=function(e){r.validateArgCount("DataSnapshot.hasChild",1,1,arguments.length),o.validatePathString("DataSnapshot.hasChild",1,e,!1);var t=new i.Path(e);return!this.node_.getChild(t).isEmpty()},e.prototype.getPriority=function(){return r.validateArgCount("DataSnapshot.getPriority",0,0,arguments.length),this.node_.getPriority().val()},e.prototype.forEach=function(t){var n=this;return r.validateArgCount("DataSnapshot.forEach",1,1,arguments.length),r.validateCallback("DataSnapshot.forEach",1,t,!1),!this.node_.isLeafNode()&&!!this.node_.forEachChild(this.index_,function(r,o){return t(new e(o,n.ref_.child(r),s.PRIORITY_INDEX))})},e.prototype.hasChildren=function(){return r.validateArgCount("DataSnapshot.hasChildren",0,0,arguments.length),!this.node_.isLeafNode()&&!this.node_.isEmpty()},Object.defineProperty(e.prototype,"key",{get:function(){return this.ref_.getKey()},enumerable:!0,configurable:!0}),e.prototype.numChildren=function(){return r.validateArgCount("DataSnapshot.numChildren",0,0,arguments.length),this.node_.numChildren()},e.prototype.getRef=function(){return r.validateArgCount("DataSnapshot.ref",0,0,arguments.length),this.ref_},Object.defineProperty(e.prototype,"ref",{get:function(){return this.getRef()},enumerable:!0,configurable:!0}),e}();t.DataSnapshot=a},GpNi:function(e,t,n){"use strict";function r(e,t){return function(n){return n.lift(new u(e,t))}}function o(e,t){return r(e,t)(this)}var i=n("lI6h"),s=n("qgI0"),a=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},u=function(){function e(e,t){this.project=e,this.resultSelector=t}return e.prototype.call=function(e,t){return t.subscribe(new c(e,this.project,this.resultSelector))},e}(),c=function(e){function t(t,n,r){e.call(this,t),this.project=n,this.resultSelector=r,this.index=0}return a(t,e),t.prototype._next=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(e){return void this.destination.error(e)}this._innerSub(t,e,n)},t.prototype._innerSub=function(e,t,n){var r=this.innerSubscription;r&&r.unsubscribe(),this.add(this.innerSubscription=Object(s.a)(this,e,t,n))},t.prototype._complete=function(){var t=this.innerSubscription;t&&!t.closed||e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){this.innerSubscription=null},t.prototype.notifyComplete=function(t){this.remove(t),this.innerSubscription=null,this.isStopped&&e.prototype._complete.call(this)},t.prototype.notifyNext=function(e,t,n,r,o){this.resultSelector?this._tryNotifyNext(e,t,n,r):this.destination.next(t)},t.prototype._tryNotifyNext=function(e,t,n,r){var o;try{o=this.resultSelector(e,t,n,r)}catch(e){return void this.destination.error(e)}this.destination.next(o)},t}(i.a);t.a=o},HAwn:function(e,t,n){"use strict";function r(e){return"string"==typeof e}function o(e){return"function"==typeof e.exportVal}function i(e){return void 0===e||null===e}function s(e){return"function"==typeof e.set}function a(e,t){return s(t)?t:e.database().ref(t)}function u(e,t){if(r(e))return t.stringCase();if(s(e))return t.firebaseCase();if(o(e))return t.snapshotCase();throw new Error("Expects a string, snapshot, or reference. Got: "+typeof e)}function c(e,t){void 0===t&&(t=z.a);var n=Object(G.a)(e),r=n?+e-t.now():Math.abs(e);return function(e){return e.lift(new Y(r,t))}}function l(e,t){return void 0===t&&(t=z.a),c(e,t)(this)}function p(e,t,n){void 0===n&&(n="on");var r=new q.a(function(r){var o=e[n](t,function(e,t){r.next({snapshot:e,prevKey:t}),"once"==n&&r.complete()},r.error.bind(r));return"on"==n?{unsubscribe:function(){e.off(t,o)}}:{unsubscribe:function(){}}}).map(function(e){var n=e.snapshot,r=e.prevKey,o=null;return n.exists()&&(o=n.key),{type:t,payload:n,prevKey:r,key:o}}).delay(0);return W.a.call(r,new B.e(Zone.current)).share()}function h(e,t){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new te(e,t,n))}}function f(e,t){return arguments.length>=2?h(e,t)(this):h(e)(this)}function d(e,t){return function(n){return n.lift(new ae(e,t))}}function y(e,t){return d(e,t)(this)}function v(e,t){return function(n){return n.lift(new he(e,t))}}function m(e,t){return v(e,t)(this)}function g(e,t){return p(e,"value","once").switchMap(function(n){var r=[q.a.of(n)];return t.forEach(function(t){return r.push(p(e,t))}),q.a.merge.apply(q.a,r).scan(w,[])}).distinctUntilChanged()}function _(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r].payload.key===t)return r;return-1}function b(e,t){if(i(t))return 0;var n=_(e,t);return-1===n?e.length:n+1}function w(e,t){var n=t.payload,r=(t.type,t.prevKey),o=t.key,i=_(e,o),s=b(e,r);switch(t.type){case"value":if(t.payload&&t.payload.exists()){var a=null;t.payload.forEach(function(t){var n={payload:t,type:"value",prevKey:a,key:t.key};return a=t.key,e=e.concat([n]),!1})}return e;case"child_added":if(i>-1){var u=e[i-1];(u&&u.key||null)!=r&&(e=e.filter(function(e){return e.payload.key!==n.key}),e.splice(s,0,t))}else{if(null==r)return[t].concat(e);e=e.slice(),e.splice(s,0,t)}return e;case"child_removed":return e.filter(function(e){return e.payload.key!==n.key});case"child_changed":return e.map(function(e){return e.payload.key===o?t:e});case"child_moved":if(i>-1){var c=e.splice(i,1)[0];return e=e.slice(),e.splice(s,0,c),e}return e;default:return e}}function C(e){return(i(e)||0===e.length)&&(e=["child_added","child_removed","child_changed","child_moved"]),e}function E(e,t){return t=C(t),g(e,t)}function S(e){return function(t){return O(e,t)}}function O(e,t){t=C(t);var n=t.map(function(t){return p(e,t)});return q.a.merge.apply(q.a,n)}function P(e){return function(t){return t.lift(new ye(e))}}function T(e){return P(e)(this)}function N(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];return function(t){var n;"function"==typeof e[e.length-1]&&(n=e.pop());var r=e;return t.lift(new be(r,n))}}function I(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];return N.apply(void 0,e)(this)}function A(e){return function(t){return R(e,t)}}function R(e,t){return k(e,O(e,t).scan(function(e,t){return e.concat([t])},[]))}function x(e){return p(e,"value").map(function(e){var t;return e.payload.forEach(function(e){return t=e.key,!1}),{data:e,lastKeyToLoad:t}})}function k(e,t){return x(e).withLatestFrom(t).map(function(e){var t=e[0],n=e[1];return{actions:n,lastKeyToLoad:t.lastKeyToLoad,loadedKeys:n.map(function(e){return e.key})}}).skipWhile(function(e){return-1===e.loadedKeys.indexOf(e.lastKeyToLoad)}).map(function(e){return e.actions})}function D(e,t){return function(n,r){return u(n,{stringCase:function(){return e.child(n)[t](r)},firebaseCase:function(){return n[t](r)},snapshotCase:function(){return n.ref[t](r)}})}}function M(e){return function(t){return t?u(t,{stringCase:function(){return e.child(t).remove()},firebaseCase:function(){return t.remove()},snapshotCase:function(){return t.ref.remove()}}):e.remove()}}function F(e){return{query:e,update:D(e.ref,"update"),set:D(e.ref,"set"),push:function(t){return e.ref.push(t)},remove:M(e.ref),snapshotChanges:function(t){return E(e,t)},stateChanges:S(e),auditTrail:A(e),valueChanges:function(t){return E(e,t).map(function(e){return e.map(function(e){return e.payload.val()})})}}}function j(e){return function(){return p(e,"value")}}function L(e){return{query:e,snapshotChanges:j(e),update:function(t){return e.ref.update(t)},set:function(t){return e.ref.set(t)},remove:function(){return e.ref.remove()},valueChanges:function(){return j(e)().map(function(e){return e.payload.exists()?e.payload.val():null})}}}function V(e){return new Ce(e)}var H=n("/oeL"),B=(n("Dvgu"),n("13je")),q=n("AP4T"),W=n("ozyc"),U=n("dmC+");q.a.prototype.map=U.a;var z=n("XecN"),G=n("MZnR"),Q=n("E9/g"),K=n("PAZ8"),J=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},Y=function(){function e(e,t){this.delay=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new X(e,this.delay,this.scheduler))},e}(),X=function(e){function t(t,n,r){e.call(this,t),this.delay=n,this.scheduler=r,this.queue=[],this.active=!1,this.errored=!1}return J(t,e),t.dispatch=function(e){for(var t=e.source,n=t.queue,r=e.scheduler,o=e.destination;n.length>0&&n[0].time-r.now()<=0;)n.shift().notification.observe(o);if(n.length>0){var i=Math.max(0,n[0].time-r.now());this.schedule(e,i)}else t.active=!1},t.prototype._schedule=function(e){this.active=!0,this.add(e.schedule(t.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))},t.prototype.scheduleNotification=function(e){if(!0!==this.errored){var t=this.scheduler,n=new Z(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}},t.prototype._next=function(e){this.scheduleNotification(K.a.createNext(e))},t.prototype._error=function(e){this.errored=!0,this.queue=[],this.destination.error(e)},t.prototype._complete=function(){this.scheduleNotification(K.a.createComplete())},t}(Q.a),Z=function(){function e(e,t){this.time=e,this.notification=t}return e}();q.a.prototype.delay=l;var $=n("URbD");q.a.prototype.share=$.a;var ee=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},te=function(){function e(e,t,n){void 0===n&&(n=!1),this.accumulator=e,this.seed=t,this.hasSeed=n}return e.prototype.call=function(e,t){return t.subscribe(new ne(e,this.accumulator,this.seed,this.hasSeed))},e}(),ne=function(e){function t(t,n,r,o){e.call(this,t),this.accumulator=n,this._seed=r,this.hasSeed=o,this.index=0}return ee(t,e),Object.defineProperty(t.prototype,"seed",{get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e},enumerable:!0,configurable:!0}),t.prototype._next=function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)},t.prototype._tryNext=function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(e){this.destination.error(e)}this.seed=t,this.destination.next(t)},t}(Q.a);q.a.prototype.scan=f;var re=n("2kLc");q.a.merge=re.a;var oe=n("GZB0");q.a.of=oe.a;var ie=n("GpNi");q.a.prototype.switchMap=ie.a;var se=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},ae=function(){function e(e,t){this.predicate=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new ue(e,this.predicate,this.thisArg))},e}(),ue=function(e){function t(t,n,r){e.call(this,t),this.predicate=n,this.thisArg=r,this.count=0}return se(t,e),t.prototype._next=function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}t&&this.destination.next(e)},t}(Q.a);q.a.prototype.filter=y;var ce=n("8ofh"),le=n("NePw"),pe=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},he=function(){function e(e,t){this.compare=e,this.keySelector=t}return e.prototype.call=function(e,t){return t.subscribe(new fe(e,this.compare,this.keySelector))},e}(),fe=function(e){function t(t,n,r){e.call(this,t),this.keySelector=r,this.hasKey=!1,"function"==typeof n&&(this.compare=n)}return pe(t,e),t.prototype.compare=function(e,t){return e===t},t.prototype._next=function(e){var t=this.keySelector,n=e;if(t&&(n=Object(ce.a)(this.keySelector)(e))===le.a)return this.destination.error(le.a.e);var r=!1;if(this.hasKey){if((r=Object(ce.a)(this.compare)(this.key,n))===le.a)return this.destination.error(le.a.e)}else this.hasKey=!0;!1===Boolean(r)&&(this.key=n,this.destination.next(e))},t}(Q.a);q.a.prototype.distinctUntilChanged=m;var de=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},ye=function(){function e(e){this.predicate=e}return e.prototype.call=function(e,t){return t.subscribe(new ve(e,this.predicate))},e}(),ve=function(e){function t(t,n){e.call(this,t),this.predicate=n,this.skipping=!0,this.index=0}return de(t,e),t.prototype._next=function(e){var t=this.destination;this.skipping&&this.tryCallPredicate(e),this.skipping||t.next(e)},t.prototype.tryCallPredicate=function(e){try{var t=this.predicate(e,this.index++);this.skipping=Boolean(t)}catch(e){this.destination.error(e)}},t}(Q.a);q.a.prototype.skipWhile=T;var me=n("lI6h"),ge=n("qgI0"),_e=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},be=function(){function e(e,t){this.observables=e,this.project=t}return e.prototype.call=function(e,t){return t.subscribe(new we(e,this.observables,this.project))},e}(),we=function(e){function t(t,n,r){e.call(this,t),this.observables=n,this.project=r,this.toRespond=[];var o=n.length;this.values=new Array(o);for(var i=0;i<o;i++)this.toRespond.push(i);for(var i=0;i<o;i++){var s=n[i];this.add(Object(ge.a)(this,s,s,i))}}return _e(t,e),t.prototype.notifyNext=function(e,t,n,r,o){this.values[n]=t;var i=this.toRespond;if(i.length>0){var s=i.indexOf(n);-1!==s&&i.splice(s,1)}},t.prototype.notifyComplete=function(){},t.prototype._next=function(e){if(0===this.toRespond.length){var t=[e].concat(this.values);this.project?this._tryProject(t):this.destination.next(t)}},t.prototype._tryProject=function(e){var t;try{t=this.project.apply(this,e)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(me.a);q.a.prototype.withLatestFrom=I;var Ce=function(){function e(e){this.app=e,this.database=e.database()}return e.prototype.list=function(e,t){var n=a(this.app,e),r=n;return t&&(r=t(n)),F(r)},e.prototype.object=function(e){return L(a(this.app,e))},e.prototype.createPushId=function(){return this.database.ref().push().key},e.decorators=[{type:H.Injectable}],e.ctorParameters=function(){return[{type:B.b}]},e}(),Ee={provide:Ce,useFactory:V,deps:[B.b]},Se=[Ee],Oe=function(){function e(){}return e.decorators=[{type:H.NgModule,args:[{imports:[B.a],providers:[Se]}]}],e.ctorParameters=function(){return[]},e}();n.d(t,"a",function(){return Ce}),n.d(t,!1,function(){return g}),n.d(t,!1,function(){return F}),n.d(t,!1,function(){return E}),n.d(t,!1,function(){return S}),n.d(t,!1,function(){return O}),n.d(t,!1,function(){return A}),n.d(t,!1,function(){return R}),n.d(t,!1,function(){return p}),n.d(t,"c",function(){return V}),n.d(t,!1,function(){return Ee}),n.d(t,!1,function(){return Se}),n.d(t,"b",function(){return Oe})},Htcq:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("JEJ4"),o=n("F1yO"),i=n("rbSf"),s=n("R3TC"),a=n("JEJ4"),u=n("dVae"),c=n("FOvx"),l=n("/68J"),p=n("gOHv"),h=n("kCHx"),f=n("fvGz"),d=n("uCc5"),y=n("B2QA"),v=function(){function e(e){this.listenProvider_=e,this.syncPointTree_=u.ImmutableTree.Empty,this.pendingWriteTree_=new y.WriteTree,this.tagToQueryMap_={},this.queryToTagMap_={}}return e.prototype.applyUserOverwrite=function(e,t,n,r){return this.pendingWriteTree_.addOverwrite(e,t,n,r),r?this.applyOperationToSyncPoints_(new h.Overwrite(p.OperationSource.User,e,t)):[]},e.prototype.applyUserMerge=function(e,t,n){this.pendingWriteTree_.addMerge(e,t,n);var r=u.ImmutableTree.fromObject(t);return this.applyOperationToSyncPoints_(new l.Merge(p.OperationSource.User,e,r))},e.prototype.ackUserWrite=function(e,t){void 0===t&&(t=!1);var n=this.pendingWriteTree_.getWrite(e);if(this.pendingWriteTree_.removeWrite(e)){var r=u.ImmutableTree.Empty;return null!=n.snap?r=r.set(f.Path.Empty,!0):a.forEach(n.children,function(e,t){r=r.set(new f.Path(e),t)}),this.applyOperationToSyncPoints_(new i.AckUserWrite(n.path,r,t))}return[]},e.prototype.applyServerOverwrite=function(e,t){return this.applyOperationToSyncPoints_(new h.Overwrite(p.OperationSource.Server,e,t))},e.prototype.applyServerMerge=function(e,t){var n=u.ImmutableTree.fromObject(t);return this.applyOperationToSyncPoints_(new l.Merge(p.OperationSource.Server,e,n))},e.prototype.applyListenComplete=function(e){return this.applyOperationToSyncPoints_(new c.ListenComplete(p.OperationSource.Server,e))},e.prototype.applyTaggedQueryOverwrite=function(t,n,r){var o=this.queryKeyForTag_(r);if(null!=o){var i=e.parseQueryKey_(o),s=i.path,a=i.queryId,u=f.Path.relativePath(s,t),c=new h.Overwrite(p.OperationSource.forServerTaggedQuery(a),u,n);return this.applyTaggedOperation_(s,c)}return[]},e.prototype.applyTaggedQueryMerge=function(t,n,r){var o=this.queryKeyForTag_(r);if(o){var i=e.parseQueryKey_(o),s=i.path,a=i.queryId,c=f.Path.relativePath(s,t),h=u.ImmutableTree.fromObject(n),d=new l.Merge(p.OperationSource.forServerTaggedQuery(a),c,h);return this.applyTaggedOperation_(s,d)}return[]},e.prototype.applyTaggedListenComplete=function(t,n){var r=this.queryKeyForTag_(n);if(r){var o=e.parseQueryKey_(r),i=o.path,s=o.queryId,a=f.Path.relativePath(i,t),u=new c.ListenComplete(p.OperationSource.forServerTaggedQuery(s),a);return this.applyTaggedOperation_(i,u)}return[]},e.prototype.addEventRegistration=function(t,n){var o=t.path,i=null,a=!1;this.syncPointTree_.foreachOnPath(o,function(e,t){var n=f.Path.relativePath(e,o);i=i||t.getCompleteServerCache(n),a=a||t.hasCompleteView()});var u=this.syncPointTree_.get(o);u?(a=a||u.hasCompleteView(),i=i||u.getCompleteServerCache(f.Path.Empty)):(u=new d.SyncPoint,this.syncPointTree_=this.syncPointTree_.set(o,u));var c;if(null!=i)c=!0;else{c=!1,i=s.ChildrenNode.EMPTY_NODE;this.syncPointTree_.subtree(o).foreachChild(function(e,t){var n=t.getCompleteServerCache(f.Path.Empty);n&&(i=i.updateImmediateChild(e,n))})}var l=u.viewExistsForQuery(t);if(!l&&!t.getQueryParams().loadsAllData()){var p=e.makeQueryKey_(t);r.assert(!(p in this.queryToTagMap_),"View does not exist, but we have a tag");var h=e.getNextQueryTag_();this.queryToTagMap_[p]=h,this.tagToQueryMap_["_"+h]=p}var y=this.pendingWriteTree_.childWrites(o),v=u.addEventRegistration(t,n,y,i,c);if(!l&&!a){var m=u.viewForQuery(t);v=v.concat(this.setupListener_(t,m))}return v},e.prototype.removeEventRegistration=function(t,n,r){var o=this,i=t.path,s=this.syncPointTree_.get(i),a=[];if(s&&("default"===t.queryIdentifier()||s.viewExistsForQuery(t))){var u=s.removeEventRegistration(t,n,r);s.isEmpty()&&(this.syncPointTree_=this.syncPointTree_.remove(i));var c=u.removed;a=u.events;var l=-1!==c.findIndex(function(e){return e.getQueryParams().loadsAllData()}),p=this.syncPointTree_.findOnPath(i,function(e,t){return t.hasCompleteView()});if(l&&!p){var h=this.syncPointTree_.subtree(i);if(!h.isEmpty())for(var f=this.collectDistinctViewsForSubTree_(h),d=0;d<f.length;++d){var y=f[d],v=y.getQuery(),m=this.createListenerForView_(y);this.listenProvider_.startListening(e.queryForListening_(v),this.tagForQuery_(v),m.hashFn,m.onComplete)}}if(!p&&c.length>0&&!r)if(l){this.listenProvider_.stopListening(e.queryForListening_(t),null)}else c.forEach(function(t){var n=o.queryToTagMap_[e.makeQueryKey_(t)];o.listenProvider_.stopListening(e.queryForListening_(t),n)});this.removeTags_(c)}return a},e.prototype.calcCompleteEventCache=function(e,t){var n=this.pendingWriteTree_,r=this.syncPointTree_.findOnPath(e,function(t,n){var r=f.Path.relativePath(t,e),o=n.getCompleteServerCache(r);if(o)return o});return n.calcCompleteEventCache(e,r,t,!0)},e.prototype.collectDistinctViewsForSubTree_=function(e){return e.fold(function(e,t,n){if(t&&t.hasCompleteView()){return[t.getCompleteView()]}var r=[];return t&&(r=t.getQueryViews()),a.forEach(n,function(e,t){r=r.concat(t)}),r})},e.prototype.removeTags_=function(t){for(var n=0;n<t.length;++n){var r=t[n];if(!r.getQueryParams().loadsAllData()){var o=e.makeQueryKey_(r),i=this.queryToTagMap_[o];delete this.queryToTagMap_[o],delete this.tagToQueryMap_["_"+i]}}},e.queryForListening_=function(e){return e.getQueryParams().loadsAllData()&&!e.getQueryParams().isDefault()?e.getRef():e},e.prototype.setupListener_=function(t,n){var o=t.path,i=this.tagForQuery_(t),s=this.createListenerForView_(n),u=this.listenProvider_.startListening(e.queryForListening_(t),i,s.hashFn,s.onComplete),c=this.syncPointTree_.subtree(o);if(i)r.assert(!c.value.hasCompleteView(),"If we're adding a query, it shouldn't be shadowed");else for(var l=c.fold(function(e,t,n){if(!e.isEmpty()&&t&&t.hasCompleteView())return[t.getCompleteView().getQuery()];var r=[];return t&&(r=r.concat(t.getQueryViews().map(function(e){return e.getQuery()}))),a.forEach(n,function(e,t){r=r.concat(t)}),r}),p=0;p<l.length;++p){var h=l[p];this.listenProvider_.stopListening(e.queryForListening_(h),this.tagForQuery_(h))}return u},e.prototype.createListenerForView_=function(e){var t=this,n=e.getQuery(),r=this.tagForQuery_(n);return{hashFn:function(){return(e.getServerCache()||s.ChildrenNode.EMPTY_NODE).hash()},onComplete:function(e){if("ok"===e)return r?t.applyTaggedListenComplete(n.path,r):t.applyListenComplete(n.path);var i=o.errorForServerCode(e,n);return t.removeEventRegistration(n,null,i)}}},e.makeQueryKey_=function(e){return e.path.toString()+"$"+e.queryIdentifier()},e.parseQueryKey_=function(e){var t=e.indexOf("$");return r.assert(-1!==t&&t<e.length-1,"Bad queryKey."),{queryId:e.substr(t+1),path:new f.Path(e.substr(0,t))}},e.prototype.queryKeyForTag_=function(e){return this.tagToQueryMap_["_"+e]},e.prototype.tagForQuery_=function(t){var n=e.makeQueryKey_(t);return a.safeGet(this.queryToTagMap_,n)},e.getNextQueryTag_=function(){return e.nextQueryTag_++},e.prototype.applyTaggedOperation_=function(e,t){var n=this.syncPointTree_.get(e);r.assert(n,"Missing sync point for query tag that we're tracking");var o=this.pendingWriteTree_.childWrites(e);return n.applyOperation(t,o,null)},e.prototype.applyOperationToSyncPoints_=function(e){return this.applyOperationHelper_(e,this.syncPointTree_,null,this.pendingWriteTree_.childWrites(f.Path.Empty))},e.prototype.applyOperationHelper_=function(e,t,n,r){if(e.path.isEmpty())return this.applyOperationDescendantsHelper_(e,t,n,r);var o=t.get(f.Path.Empty);null==n&&null!=o&&(n=o.getCompleteServerCache(f.Path.Empty));var i=[],s=e.path.getFront(),a=e.operationForChild(s),u=t.children.get(s);if(u&&a){var c=n?n.getImmediateChild(s):null,l=r.child(s);i=i.concat(this.applyOperationHelper_(a,u,c,l))}return o&&(i=i.concat(o.applyOperation(e,r,n))),i},e.prototype.applyOperationDescendantsHelper_=function(e,t,n,r){var o=this,i=t.get(f.Path.Empty);null==n&&null!=i&&(n=i.getCompleteServerCache(f.Path.Empty));var s=[];return t.children.inorderTraversal(function(t,i){var a=n?n.getImmediateChild(t):null,u=r.child(t),c=e.operationForChild(t);c&&(s=s.concat(o.applyOperationDescendantsHelper_(c,i,a,u)))}),i&&(s=s.concat(i.applyOperation(e,r,n))),s},e.nextQueryTag_=1,e}();t.SyncTree=v},Hyt9:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){var e=this;this.promise=new Promise(function(t,n){e.resolve=t,e.reject=n})}return e.prototype.wrapCallback=function(e){var t=this;return function(n,r){n?t.reject(n):t.resolve(r),"function"==typeof e&&(t.promise.catch(function(){}),1===e.length?e(n):e(n,r))}},e}();t.Deferred=r},JCUt:function(e,t,n){"use strict";function r(e){return o(void 0,e)}function o(e,t){if(!(t instanceof Object))return t;switch(t.constructor){case Date:var n=t;return new Date(n.getTime());case Object:void 0===e&&(e={});break;case Array:e=[];break;default:return t}for(var r in t)t.hasOwnProperty(r)&&(e[r]=o(e[r],t[r]));return e}function i(e,t,n){e[t]=n}Object.defineProperty(t,"__esModule",{value:!0}),t.deepCopy=r,t.deepExtend=o,t.patchProperty=i},JEJ4:function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n("EqqR")),r(n("e9+7")),r(n("/byE")),r(n("JCUt")),r(n("Hyt9")),r(n("U4XL")),r(n("COMn")),r(n("WH8D")),r(n("NYZW")),r(n("/ygB")),r(n("NeHU")),r(n("uzI5")),r(n("Xp63")),r(n("Tmcl")),r(n("2mdx"))},KH1l:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("gOHv"),o=n("JEJ4"),i=n("/0OS"),s=n("ertD"),a=n("R3TC"),u=n("stu6"),c=n("dVae"),l=n("fvGz"),p=n("GEki"),h=function(){function e(e,t){this.viewCache=e,this.changes=t}return e}();t.ProcessorResult=h;var f=function(){function e(e){this.filter_=e}return e.prototype.assertIndexed=function(e){o.assert(e.getEventCache().getNode().isIndexed(this.filter_.getIndex()),"Event snap not indexed"),o.assert(e.getServerCache().getNode().isIndexed(this.filter_.getIndex()),"Server snap not indexed")},e.prototype.applyOperation=function(t,n,s,a){var u,c,l=new i.ChildChangeAccumulator;if(n.type===r.OperationType.OVERWRITE){var p=n;p.source.fromUser?u=this.applyUserOverwrite_(t,p.path,p.snap,s,a,l):(o.assert(p.source.fromServer,"Unknown source."),c=p.source.tagged||t.getServerCache().isFiltered()&&!p.path.isEmpty(),u=this.applyServerOverwrite_(t,p.path,p.snap,s,a,c,l))}else if(n.type===r.OperationType.MERGE){var f=n;f.source.fromUser?u=this.applyUserMerge_(t,f.path,f.children,s,a,l):(o.assert(f.source.fromServer,"Unknown source."),c=f.source.tagged||t.getServerCache().isFiltered(),u=this.applyServerMerge_(t,f.path,f.children,s,a,c,l))}else if(n.type===r.OperationType.ACK_USER_WRITE){var d=n;u=d.revert?this.revertUserWrite_(t,d.path,s,a,l):this.ackUserWrite_(t,d.path,d.affectedTree,s,a,l)}else{if(n.type!==r.OperationType.LISTEN_COMPLETE)throw o.assertionError("Unknown operation type: "+n.type);u=this.listenComplete_(t,n.path,s,l)}var y=l.getChanges();return e.maybeAddValueEvent_(t,u,y),new h(u,y)},e.maybeAddValueEvent_=function(e,t,n){var r=t.getEventCache();if(r.isFullyInitialized()){var o=r.getNode().isLeafNode()||r.getNode().isEmpty(),i=e.getCompleteEventSnap();(n.length>0||!e.getEventCache().isFullyInitialized()||o&&!r.getNode().equals(i)||!r.getNode().getPriority().equals(i.getPriority()))&&n.push(s.Change.valueChange(t.getCompleteEventSnap()))}},e.prototype.generateEventCacheAfterServerEvent_=function(e,t,n,r,i){var s=e.getEventCache();if(null!=n.shadowingWrite(t))return e;var u=void 0,c=void 0;if(t.isEmpty())if(o.assert(e.getServerCache().isFullyInitialized(),"If change path is empty, we must have complete server data"),e.getServerCache().isFiltered()){var l=e.getCompleteServerSnap(),p=l instanceof a.ChildrenNode?l:a.ChildrenNode.EMPTY_NODE,h=n.calcCompleteEventChildren(p);u=this.filter_.updateFullNode(e.getEventCache().getNode(),h,i)}else{var f=n.calcCompleteEventCache(e.getCompleteServerSnap());u=this.filter_.updateFullNode(e.getEventCache().getNode(),f,i)}else{var d=t.getFront();if(".priority"==d){o.assert(1==t.getLength(),"Can't have a priority with additional path components");var y=s.getNode();c=e.getServerCache().getNode();var v=n.calcEventCacheAfterServerOverwrite(t,y,c);u=null!=v?this.filter_.updatePriority(y,v):s.getNode()}else{var m=t.popFront(),g=void 0;if(s.isCompleteForChild(d)){c=e.getServerCache().getNode();var _=n.calcEventCacheAfterServerOverwrite(t,s.getNode(),c);g=null!=_?s.getNode().getImmediateChild(d).updateChild(m,_):s.getNode().getImmediateChild(d)}else g=n.calcCompleteChild(d,e.getServerCache());u=null!=g?this.filter_.updateChild(s.getNode(),d,g,m,r,i):s.getNode()}}return e.updateEventSnap(u,s.isFullyInitialized()||t.isEmpty(),this.filter_.filtersNodes())},e.prototype.applyServerOverwrite_=function(e,t,n,r,o,i,s){var a,u=e.getServerCache(),c=i?this.filter_:this.filter_.getIndexedFilter();if(t.isEmpty())a=c.updateFullNode(u.getNode(),n,null);else if(c.filtersNodes()&&!u.isFiltered()){var l=u.getNode().updateChild(t,n);a=c.updateFullNode(u.getNode(),l,null)}else{var h=t.getFront();if(!u.isCompleteForPath(t)&&t.getLength()>1)return e;var f=t.popFront(),d=u.getNode().getImmediateChild(h),y=d.updateChild(f,n);a=".priority"==h?c.updatePriority(u.getNode(),y):c.updateChild(u.getNode(),h,y,f,p.NO_COMPLETE_CHILD_SOURCE,null)}var v=e.updateServerSnap(a,u.isFullyInitialized()||t.isEmpty(),c.filtersNodes()),m=new p.WriteTreeCompleteChildSource(r,v,o);return this.generateEventCacheAfterServerEvent_(v,t,r,m,s)},e.prototype.applyUserOverwrite_=function(e,t,n,r,o,i){var s,u,c=e.getEventCache(),l=new p.WriteTreeCompleteChildSource(r,e,o);if(t.isEmpty())u=this.filter_.updateFullNode(e.getEventCache().getNode(),n,i),s=e.updateEventSnap(u,!0,this.filter_.filtersNodes());else{var h=t.getFront();if(".priority"===h)u=this.filter_.updatePriority(e.getEventCache().getNode(),n),s=e.updateEventSnap(u,c.isFullyInitialized(),c.isFiltered());else{var f=t.popFront(),d=c.getNode().getImmediateChild(h),y=void 0;if(f.isEmpty())y=n;else{var v=l.getCompleteChild(h);y=null!=v?".priority"===f.getBack()&&v.getChild(f.parent()).isEmpty()?v:v.updateChild(f,n):a.ChildrenNode.EMPTY_NODE}if(d.equals(y))s=e;else{var m=this.filter_.updateChild(c.getNode(),h,y,f,l,i);s=e.updateEventSnap(m,c.isFullyInitialized(),this.filter_.filtersNodes())}}}return s},e.cacheHasChild_=function(e,t){return e.getEventCache().isCompleteForChild(t)},e.prototype.applyUserMerge_=function(t,n,r,o,i,s){var a=this,u=t;return r.foreach(function(r,c){var l=n.child(r);e.cacheHasChild_(t,l.getFront())&&(u=a.applyUserOverwrite_(u,l,c,o,i,s))}),r.foreach(function(r,c){var l=n.child(r);e.cacheHasChild_(t,l.getFront())||(u=a.applyUserOverwrite_(u,l,c,o,i,s))}),u},e.prototype.applyMerge_=function(e,t){return t.foreach(function(t,n){e=e.updateChild(t,n)}),e},e.prototype.applyServerMerge_=function(e,t,n,r,o,i,s){var a=this;if(e.getServerCache().getNode().isEmpty()&&!e.getServerCache().isFullyInitialized())return e;var u,p=e;u=t.isEmpty()?n:c.ImmutableTree.Empty.setTree(t,n);var h=e.getServerCache().getNode();return u.children.inorderTraversal(function(t,n){if(h.hasChild(t)){var u=e.getServerCache().getNode().getImmediateChild(t),c=a.applyMerge_(u,n);p=a.applyServerOverwrite_(p,new l.Path(t),c,r,o,i,s)}}),u.children.inorderTraversal(function(t,n){var u=!e.getServerCache().isCompleteForChild(t)&&null==n.value;if(!h.hasChild(t)&&!u){var c=e.getServerCache().getNode().getImmediateChild(t),f=a.applyMerge_(c,n);p=a.applyServerOverwrite_(p,new l.Path(t),f,r,o,i,s)}}),p},e.prototype.ackUserWrite_=function(e,t,n,r,o,i){if(null!=r.shadowingWrite(t))return e;var s=e.getServerCache().isFiltered(),a=e.getServerCache();if(null!=n.value){if(t.isEmpty()&&a.isFullyInitialized()||a.isCompleteForPath(t))return this.applyServerOverwrite_(e,t,a.getNode().getChild(t),r,o,s,i);if(t.isEmpty()){var p=c.ImmutableTree.Empty;return a.getNode().forEachChild(u.KEY_INDEX,function(e,t){p=p.set(new l.Path(e),t)}),this.applyServerMerge_(e,t,p,r,o,s,i)}return e}var h=c.ImmutableTree.Empty;return n.foreach(function(e,n){var r=t.child(e);a.isCompleteForPath(r)&&(h=h.set(e,a.getNode().getChild(r)))}),this.applyServerMerge_(e,t,h,r,o,s,i)},e.prototype.listenComplete_=function(e,t,n,r){var o=e.getServerCache(),i=e.updateServerSnap(o.getNode(),o.isFullyInitialized()||t.isEmpty(),o.isFiltered());return this.generateEventCacheAfterServerEvent_(i,t,n,p.NO_COMPLETE_CHILD_SOURCE,r)},e.prototype.revertUserWrite_=function(e,t,n,r,i){var s;if(null!=n.shadowingWrite(t))return e;var u=new p.WriteTreeCompleteChildSource(n,e,r),c=e.getEventCache().getNode(),h=void 0;if(t.isEmpty()||".priority"===t.getFront()){var f=void 0;if(e.getServerCache().isFullyInitialized())f=n.calcCompleteEventCache(e.getCompleteServerSnap());else{var d=e.getServerCache().getNode();o.assert(d instanceof a.ChildrenNode,"serverChildren would be complete if leaf node"),f=n.calcCompleteEventChildren(d)}f=f,h=this.filter_.updateFullNode(c,f,i)}else{var y=t.getFront(),v=n.calcCompleteChild(y,e.getServerCache());null==v&&e.getServerCache().isCompleteForChild(y)&&(v=c.getImmediateChild(y)),h=null!=v?this.filter_.updateChild(c,y,v,t.popFront(),u,i):e.getEventCache().getNode().hasChild(y)?this.filter_.updateChild(c,y,a.ChildrenNode.EMPTY_NODE,t.popFront(),u,i):c,h.isEmpty()&&e.getServerCache().isFullyInitialized()&&(s=n.calcCompleteEventCache(e.getCompleteServerSnap()),s.isLeafNode()&&(h=this.filter_.updateFullNode(h,s,i)))}return s=e.getServerCache().isFullyInitialized()||null!=n.shadowingWrite(l.Path.Empty),e.updateEventSnap(h,s,this.filter_.filtersNodes())},e}();t.ViewProcessor=f},MZnR:function(e,t,n){"use strict";function r(e){return e instanceof Date&&!isNaN(+e)}t.a=r},NGRF:function(e,t,n){"use strict";function r(e){return null!=e&&"object"==typeof e}t.a=r},NYZW:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("e9+7"),o=n("WH8D");t.decode=function(e){var t={},n={},i={},s="";try{var a=e.split(".");t=o.jsonEval(r.base64Decode(a[0])||""),n=o.jsonEval(r.base64Decode(a[1])||""),s=a[2],i=n.d||{},delete n.d}catch(e){}return{header:t,claims:n,data:i,signature:s}},t.isValidTimestamp=function(e){var n,r,o=t.decode(e).claims,i=Math.floor((new Date).getTime()/1e3);return"object"==typeof o&&(o.hasOwnProperty("nbf")?n=o.nbf:o.hasOwnProperty("iat")&&(n=o.iat),r=o.hasOwnProperty("exp")?o.exp:n+86400),i&&n&&r&&i>=n&&i<=r},t.issuedAtTime=function(e){var n=t.decode(e).claims;return"object"==typeof n&&n.hasOwnProperty("iat")?n.iat:null},t.isValidFormat=function(e){var n=t.decode(e),r=n.claims;return!!n.signature&&!!r&&"object"==typeof r&&r.hasOwnProperty("iat")},t.isAdmin=function(e){var n=t.decode(e).claims;return"object"==typeof n&&!0===n.admin}},NeHU:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("/ygB");t.querystring=function(e){var t=[];return r.forEach(e,function(e,n){Array.isArray(n)?n.forEach(function(n){t.push(encodeURIComponent(e)+"="+encodeURIComponent(n))}):t.push(encodeURIComponent(e)+"="+encodeURIComponent(n))}),t.length?"&"+t.join("&"):""},t.querystringDecode=function(e){var t={};return e.replace(/^\?/,"").split("&").forEach(function(e){if(e){var n=e.split("=");t[n[0]]=n[1]}}),t}},NePw:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r={e:{}}},Nq7v:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n("GboV"),i=n("p+VM"),s=n("F1yO"),a=n("43Go"),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.compare=function(e,t){var n=e.node.compareTo(t.node);return 0===n?s.nameCompare(e.name,t.name):n},t.prototype.isDefinedOn=function(e){return!0},t.prototype.indexedValueChanged=function(e,t){return!e.equals(t)},t.prototype.minPost=function(){return i.NamedNode.MIN},t.prototype.maxPost=function(){return i.NamedNode.MAX},t.prototype.makePost=function(e,t){var n=a.nodeFromJSON(e);return new i.NamedNode(t,n)},t.prototype.toString=function(){return".value"},t}(o.Index);t.ValueIndex=u,t.VALUE_INDEX=new u},OMK1:function(e,t,n){"use strict";function r(e){return void 0===e||null===e}function o(e,t){return e&&void 0!==e[t]}function i(e){return"string"==typeof e}function s(e){return"function"==typeof e.set}function a(e){return"function"==typeof e.exportVal}function u(e){return"string"==typeof e.$key}function c(e){return!r(e)&&(0===Object.keys(e).length&&JSON.stringify(e)===JSON.stringify({}))}function l(e){var t=r(e.val())?{$value:null}:e.val();return/string|number|boolean/.test(typeof t)&&(t={$value:t}),Object.defineProperty(t,"$key",{value:e.ref.key,enumerable:!1}),Object.defineProperty(t,"$exists",{value:function(){return e.exists()},enumerable:!1}),t}function p(e){return L.test(e)}function h(e,t){if(s(t))return t;var n=t;return p(t)?e.database().refFromURL(n):e.database().ref(n)}function f(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];var n=null;return"function"==typeof e[e.length-1]&&(n=e.pop()),1===e.length&&Object(z.a)(e[0])&&(e=e[0].slice()),function(t){return t.lift.call(new U.a([t].concat(e)),new Y(n))}}function d(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];return f.apply(void 0,e)(this)}function y(e){return function(t){return t.lift(new oe(e))}}function v(e){return!Object(z.a)(e)&&e-parseFloat(e)+1>=0}function m(e,t){return void 0===t&&(t=ee.a),y(function(){return le(e,t)})}function g(e,t){return void 0===t&&(t=ee.a),m(e,t)(this)}function _(e,t){return void 0===t&&(t=!0),r(e)?Object(W.a)(null):V.a.create(function(n){var o=d.call(b(e),C(e),E(e),S(e),w(e));t&&(o=g.call(o,0)),o.subscribe(function(e){var t=e[0],o=e[1],i=e[2],s=e[3],a=e[4],u={};if(!r(t)&&!r(t.value))switch(t.key){case M.Key:u={orderByKey:t.value};break;case M.Priority:u={orderByPriority:t.value};break;case M.Value:u={orderByValue:t.value};break;case M.Child:u={orderByChild:t.value}}if(!r(a)&&!r(a.value))switch(a.key){case pe.First:u.limitToFirst=a.value;break;case pe.Last:u.limitToLast=a.value}void 0!==o&&(u.startAt=o),void 0!==i&&(u.endAt=i),void 0!==s&&(u.equalTo=s),n.next(u)})})}function b(e){var t=["orderByChild","orderByKey","orderByValue","orderByPriority"].map(function(e,t){return{key:e,option:t}}).filter(function(t){var n=t.key;t.option;return!r(e[n])}).map(function(t){var n=t.key,r=t.option;return O(e[n],r)});return 1===t.length?t[0]:t.length>1?Z.a.apply(t[0],t.slice(1)):new V.a(function(e){e.next(null)})}function w(e){var t=["limitToFirst","limitToLast"].map(function(e,t){return{key:e,option:t}}).filter(function(t){var n=t.key;t.option;return!r(e[n])}).map(function(t){var n=t.key,r=t.option;return P(e[n],r)});if(1===t.length)return t[0];if(t.length>1){return Z.a.apply(t[0],t.slice(1))}return new V.a(function(e){e.next(null)})}function C(e){return e.startAt instanceof V.a?e.startAt:o(e,"startAt")?new V.a(function(t){t.next(e.startAt)}):new V.a(function(e){e.next(void 0)})}function E(e){return e.endAt instanceof V.a?e.endAt:o(e,"endAt")?new V.a(function(t){t.next(e.endAt)}):new V.a(function(e){e.next(void 0)})}function S(e){return e.equalTo instanceof V.a?e.equalTo:o(e,"equalTo")?new V.a(function(t){t.next(e.equalTo)}):new V.a(function(e){e.next(void 0)})}function O(e,t){return e instanceof V.a?$.a.call(e,function(e){return{value:e,key:t}}):new V.a(function(n){n.next({key:t,value:e})})}function P(e,t){return e instanceof V.a?$.a.call(e,function(e){return{value:e,key:t}}):new V.a(function(n){n.next({key:t,value:e})})}function T(e,t){var n=void 0===t?{}:t,i=n.preserveSnapshot,s=n.query,a=void 0===s?{}:s;if(c(a))return N(e,{preserveSnapshot:i});var u=_(a);return new B(e,function(t){var n=fe.a.call($.a.call(u,function(t){var n=e;if(t.orderByChild?n=n.orderByChild(t.orderByChild):t.orderByKey?n=n.orderByKey():t.orderByPriority?n=n.orderByPriority():t.orderByValue&&(n=n.orderByValue()),o(t,"equalTo")){if(n=o(t.equalTo,"value")?n.equalTo(t.equalTo.value,t.equalTo.key):n.equalTo(t.equalTo),o(t,"startAt")||o(t,"endAt"))throw new Error("Query Error: Cannot use startAt or endAt with equalTo.");return r(t.limitToFirst)||(n=n.limitToFirst(t.limitToFirst)),r(t.limitToLast)||(n=n.limitToLast(t.limitToLast)),n}if(o(t,"startAt")&&(n=o(t.startAt,"value")?n.startAt(t.startAt.value,t.startAt.key):n.startAt(t.startAt)),o(t,"endAt")&&(n=o(t.endAt,"value")?n.endAt(t.endAt.value,t.endAt.key):n.endAt(t.endAt)),!r(t.limitToFirst)&&t.limitToLast)throw new Error("Query Error: Cannot use limitToFirst with limitToLast.");return r(t.limitToFirst)||(n=n.limitToFirst(t.limitToFirst)),r(t.limitToLast)||(n=n.limitToLast(t.limitToLast)),n}),function(e,t){return N(e,{preserveSnapshot:i})}).subscribe(t);return function(){return n.unsubscribe()}})}function N(e,t){var n=(void 0===t?{}:t).preserveSnapshot,r=n?function(e){return e}:l,o=n?function(e){return e.key}:function(e){return e.$key},i=new B(e,function(t){var n=[],i=!1,s=null,a=[];e.once("value",function(e){e.exists()?(e.forEach(function(e){s=e.key}),a.find(function(e){return o(e)===s})&&(i=!0,t.next(a))):(i=!0,t.next(a))},function(e){e&&(t.error(e),t.complete())});var u=e.on("child_added",function(e,n){a=I(a,r(e),o,n),i?t.next(a):e.key===s&&(i=!0,t.next(a))},function(e){e&&(t.error(e),t.complete())});n.push({event:"child_added",handle:u});var c=e.on("child_removed",function(e){a=R(a,r(e),o),i&&t.next(a)},function(e){e&&(t.error(e),t.complete())});n.push({event:"child_removed",handle:c});var l=e.on("child_changed",function(e,n){a=A(a,r(e),o,n),i&&t.next(a)},function(e){e&&(t.error(e),t.complete())});return n.push({event:"child_changed",handle:l}),function(){n.forEach(function(t){e.off(t.event,t.handle)})}});return q.a.call(i,new j.e(Zone.current))}function I(e,t,n,r){return e.length?e.reduce(function(e,o,i){return r||0!==i||e.push(t),e.push(o),r&&r===n(o)&&e.push(t),e},[]):[t]}function A(e,t,n,r){var o=n(t);return e.reduce(function(e,i,s){var a=n(i);return r||0!=s?a===r?(e.push(i),e.push(t)):a!==o&&e.push(i):(e.push(t),a!==o&&e.push(i)),e},[])}function R(e,t,n){var r=n(t);return e.filter(function(e){return n(e)!==r})}function x(e,t,n,r){return e.map(function(e,o,i){return r||o?o>0&&n(i[o-1])===r?t:e:t})}function k(e,t){var n=(void 0===t?{}:t).preserveSnapshot,r=new ye(function(t){var r=e.on("value",function(e){t.next(n?e:l(e))},function(e){e&&(t.error(e),t.complete())});return function(){return e.off("value",r)}},e);return q.a.call(r,new j.e(Zone.current))}function D(e){return new ve(e)}var M,F=(n("Dvgu"),n("/oeL")),j=n("13je"),L=/^[a-z]+:\/\/.*/,V=n("AP4T"),H=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),B=function(e){function t(t,n){var r=e.call(this,n)||this;return r.$ref=t,r}return H(t,e),t.prototype.lift=function(e){var n=new t(this.$ref);return n.source=this,n.operator=e,n.$ref=this.$ref,n},t.prototype.push=function(e){if(!this.$ref)throw new Error("No ref specified for this Observable!");return this.$ref.ref.push(e)},t.prototype.set=function(e,t){var n=this;return this._checkOperationCases(e,{stringCase:function(){return n.$ref.ref.child(e).set(t)},firebaseCase:function(){return e.set(t)},snapshotCase:function(){return e.ref.set(t)},unwrappedSnapshotCase:function(){return n.$ref.ref.child(e.$key).set(t)}})},t.prototype.update=function(e,t){var n=this;return this._checkOperationCases(e,{stringCase:function(){return n.$ref.ref.child(e).update(t)},firebaseCase:function(){return e.update(t)},snapshotCase:function(){return e.ref.update(t)},unwrappedSnapshotCase:function(){return n.$ref.ref.child(e.$key).update(t)}})},t.prototype.remove=function(e){var t=this;return e?this._checkOperationCases(e,{stringCase:function(){return t.$ref.ref.child(e).remove()},firebaseCase:function(){return e.remove()},snapshotCase:function(){return e.ref.remove()},unwrappedSnapshotCase:function(){return t.$ref.ref.child(e.$key).remove()}}):this.$ref.ref.remove()},t.prototype._checkOperationCases=function(e,t){if(i(e))return t.stringCase();if(s(e))return t.firebaseCase();if(a(e))return t.snapshotCase();if(u(e))return t.unwrappedSnapshotCase();throw new Error("Method requires a key, snapshot, reference, or unwrapped snapshot. Got: "+typeof e)},t}(V.a),q=n("ozyc"),W=n("GZB0"),U=n("Oryw"),z=n("1j/l"),G=n("lI6h"),Q=n("qgI0"),K=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},J={},Y=function(){function e(e){this.project=e}return e.prototype.call=function(e,t){return t.subscribe(new X(e,this.project))},e}(),X=function(e){function t(t,n){e.call(this,t),this.project=n,this.active=0,this.values=[],this.observables=[]}return K(t,e),t.prototype._next=function(e){this.values.push(J),this.observables.push(e)},t.prototype._complete=function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(var n=0;n<t;n++){var r=e[n];this.add(Object(Q.a)(this,r,r,n))}}},t.prototype.notifyComplete=function(e){0==(this.active-=1)&&this.destination.complete()},t.prototype.notifyNext=function(e,t,n,r,o){var i=this.values,s=i[n],a=this.toRespond?s===J?--this.toRespond:this.toRespond:0;i[n]=t,0===a&&(this.project?this._tryProject(i):this.destination.next(i.slice()))},t.prototype._tryProject=function(e){var t;try{t=this.project.apply(this,e)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(G.a),Z=n("BThc"),$=n("dmC+"),ee=n("XecN"),te=n("8ofh"),ne=n("NePw"),re=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},oe=function(){function e(e){this.durationSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new ie(e,this.durationSelector))},e}(),ie=function(e){function t(t,n){e.call(this,t),this.durationSelector=n,this.hasValue=!1}return re(t,e),t.prototype._next=function(e){if(this.value=e,this.hasValue=!0,!this.throttled){var t=Object(te.a)(this.durationSelector)(e);if(t===ne.a)this.destination.error(ne.a.e);else{var n=Object(Q.a)(this,t);n.closed?this.clearThrottle():this.add(this.throttled=n)}}},t.prototype.clearThrottle=function(){var e=this,t=e.value,n=e.hasValue,r=e.throttled;r&&(this.remove(r),this.throttled=null,r.unsubscribe()),n&&(this.value=null,this.hasValue=!1,this.destination.next(t))},t.prototype.notifyNext=function(e,t,n,r){this.clearThrottle()},t.prototype.notifyComplete=function(){this.clearThrottle()},t}(G.a),se=n("3iOE"),ae=n("MZnR"),ue=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},ce=function(e){function t(t,n,r){void 0===t&&(t=0),e.call(this),this.period=-1,this.dueTime=0,v(n)?this.period=Number(n)<1&&1||Number(n):Object(se.a)(n)&&(r=n),Object(se.a)(r)||(r=ee.a),this.scheduler=r,this.dueTime=Object(ae.a)(t)?+t-this.scheduler.now():t}return ue(t,e),t.create=function(e,n,r){return void 0===e&&(e=0),new t(e,n,r)},t.dispatch=function(e){var t=e.index,n=e.period,r=e.subscriber,o=this;if(r.next(t),!r.closed){if(-1===n)return r.complete();e.index=t+1,o.schedule(e,n)}},t.prototype._subscribe=function(e){var n=this,r=n.period,o=n.dueTime;return n.scheduler.schedule(t.dispatch,o,{index:0,period:r,subscriber:e})},t}(V.a),le=ce.create;!function(e){e[e.Child=0]="Child",e[e.Key=1]="Key",e[e.Value=2]="Value",e[e.Priority=3]="Priority"}(M||(M={}));var pe;!function(e){e[e.First=0]="First",e[e.Last=1]="Last"}(pe||(pe={}));var he;!function(e){e[e.EqualTo=0]="EqualTo",e[e.StartAt=1]="StartAt",e[e.EndAt=2]="EndAt"}(he||(he={}));var fe=n("GpNi"),de=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ye=function(e){function t(t,n){var r=e.call(this,t)||this;return r.$ref=n,r}return de(t,e),t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n.$ref=this.$ref,n},t.prototype.set=function(e){if(!this.$ref)throw new Error("No ref specified for this Observable!");return this.$ref.set(e)},t.prototype.update=function(e){if(!this.$ref)throw new Error("No ref specified for this Observable!");return this.$ref.update(e)},t.prototype.remove=function(){if(!this.$ref)throw new Error("No ref specified for this Observable!");return this.$ref.remove()},t}(V.a),ve=function(){function e(e){this.app=e,this.database=e.database()}return e.prototype.list=function(e,t){return T(h(this.app,e),t)},e.prototype.object=function(e,t){return k(h(this.app,e),t)},e.decorators=[{type:F.Injectable}],e.ctorParameters=function(){return[{type:j.b}]},e}(),me={provide:ve,useFactory:D,deps:[j.b]},ge=[me],_e=function(){function e(){}return e.decorators=[{type:F.NgModule,args:[{imports:[j.a],providers:[ge]}]}],e.ctorParameters=function(){return[]},e}();n.d(t,"a",function(){return ve}),n.d(t,!1,function(){return T}),n.d(t,!1,function(){return I}),n.d(t,!1,function(){return A}),n.d(t,!1,function(){return R}),n.d(t,!1,function(){return x}),n.d(t,!1,function(){return B}),n.d(t,!1,function(){return k}),n.d(t,!1,function(){return ye}),n.d(t,!1,function(){return _}),n.d(t,!1,function(){return b}),n.d(t,!1,function(){return w}),n.d(t,!1,function(){return C}),n.d(t,!1,function(){return E}),n.d(t,!1,function(){return S}),n.d(t,!1,function(){return D}),n.d(t,!1,function(){return me}),n.d(t,!1,function(){return ge}),n.d(t,!1,function(){return _e})},Oryw:function(e,t,n){"use strict";var r=n("AP4T"),o=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=function(e){function t(t,n){e.call(this),this.value=t,this.scheduler=n,this._isScalar=!0,n&&(this._isScalar=!1)}return o(t,e),t.create=function(e,n){return new t(e,n)},t.dispatch=function(e){var t=e.done,n=e.value,r=e.subscriber;if(t)return void r.complete();r.next(n),r.closed||(e.done=!0,this.schedule(e))},t.prototype._subscribe=function(e){var n=this.value,r=this.scheduler;if(r)return r.schedule(t.dispatch,0,{done:!1,value:n,subscriber:e});e.next(n),e.closed||e.complete()},t}(r.a),s=n("Ecq+"),a=n("3iOE");n.d(t,"a",function(){return c});var u=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},c=function(e){function t(t,n){e.call(this),this.array=t,this.scheduler=n,n||1!==t.length||(this._isScalar=!0,this.value=t[0])}return u(t,e),t.create=function(e,n){return new t(e,n)},t.of=function(){for(var e=[],n=0;n<arguments.length;n++)e[n-0]=arguments[n];var r=e[e.length-1];Object(a.a)(r)?e.pop():r=null;var o=e.length;return o>1?new t(e,r):1===o?new i(e[0],r):new s.a(r)},t.dispatch=function(e){var t=e.array,n=e.index,r=e.count,o=e.subscriber;if(n>=r)return void o.complete();o.next(t[n]),o.closed||(e.index=n+1,this.schedule(e))},t.prototype._subscribe=function(e){var n=this.array,r=n.length,o=this.scheduler;if(o)return o.schedule(t.dispatch,0,{array:n,index:0,count:r,subscriber:e});for(var i=0;i<r&&!e.closed;i++)e.next(n[i]);e.complete()},t}(r.a)},PAZ8:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("AP4T"),o=function(){function e(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}return e.prototype.observe=function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}},e.prototype.do=function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}},e.prototype.accept=function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)},e.prototype.toObservable=function(){switch(this.kind){case"N":return r.a.of(this.value);case"E":return r.a.throw(this.error);case"C":return r.a.empty()}throw new Error("unexpected notification kind value")},e.createNext=function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e}()},PKQO:function(e,t,n){"use strict";function r(e){for(var t="",n=e.split("/"),r=0;r<n.length;r++)if(n[r].length>0){var o=n[r];try{o=decodeURIComponent(o.replace(/\+/g," "))}catch(e){}t+="/"+o}return t}Object.defineProperty(t,"__esModule",{value:!0});var o=n("fvGz"),i=n("mZoP"),s=n("F1yO");t.parseRepoInfo=function(e){var n=t.parseURL(e),r=n.subdomain;"firebase"===n.domain&&s.fatal(n.host+" is no longer supported. Please use <YOUR FIREBASE>.firebaseio.com instead"),r&&"undefined"!=r||s.fatal("Cannot parse Firebase url. Please use https://<YOUR FIREBASE>.firebaseio.com"),n.secure||s.warnIfPageIsSecure();var a="ws"===n.scheme||"wss"===n.scheme;return{repoInfo:new i.RepoInfo(n.host,n.secure,r,a),path:new o.Path(n.pathString)}},t.parseURL=function(e){var t="",n="",o="",i="",s=!0,a="https",u=443;if("string"==typeof e){var c=e.indexOf("//");c>=0&&(a=e.substring(0,c-1),e=e.substring(c+2));var l=e.indexOf("/");-1===l&&(l=e.length),t=e.substring(0,l),i=r(e.substring(l));var p=t.split(".");3===p.length?(n=p[1],o=p[0].toLowerCase()):2===p.length&&(n=p[0]),c=t.indexOf(":"),c>=0&&(s="https"===a||"wss"===a,u=parseInt(t.substring(c+1),10))}return{host:t,port:u,domain:n,subdomain:o,secure:s,scheme:a,pathString:i}}},R3TC:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var o,i=n("JEJ4"),s=n("F1yO"),a=n("isNy"),u=n("p+VM"),c=n("3FiG"),l=n("/fob"),p=n("stu6"),h=n("b5Wm"),f=n("04zk"),d=n("zFzr"),y=function(){function e(e,t,n){this.children_=e,this.priorityNode_=t,this.indexMap_=n,this.lazyHash_=null,this.priorityNode_&&c.validatePriorityNode(this.priorityNode_),this.children_.isEmpty()&&i.assert(!this.priorityNode_||this.priorityNode_.isEmpty(),"An empty node cannot have a priority")}return Object.defineProperty(e,"EMPTY_NODE",{get:function(){return o||(o=new e(new a.SortedMap(d.NAME_COMPARATOR),null,h.IndexMap.Default))},enumerable:!0,configurable:!0}),e.prototype.isLeafNode=function(){return!1},e.prototype.getPriority=function(){return this.priorityNode_||o},e.prototype.updatePriority=function(t){return this.children_.isEmpty()?this:new e(this.children_,t,this.indexMap_)},e.prototype.getImmediateChild=function(e){if(".priority"===e)return this.getPriority();var t=this.children_.get(e);return null===t?o:t},e.prototype.getChild=function(e){var t=e.getFront();return null===t?this:this.getImmediateChild(t).getChild(e.popFront())},e.prototype.hasChild=function(e){return null!==this.children_.get(e)},e.prototype.updateImmediateChild=function(t,n){if(i.assert(n,"We should always be passing snapshot nodes"),".priority"===t)return this.updatePriority(n);var r=new u.NamedNode(t,n),s=void 0,a=void 0,c=void 0;return n.isEmpty()?(s=this.children_.remove(t),a=this.indexMap_.removeFromIndexes(r,this.children_)):(s=this.children_.insert(t,n),a=this.indexMap_.addToIndexes(r,this.children_)),c=s.isEmpty()?o:this.priorityNode_,new e(s,c,a)},e.prototype.updateChild=function(e,t){var n=e.getFront();if(null===n)return t;i.assert(".priority"!==e.getFront()||1===e.getLength(),".priority must be the last token in a path");var r=this.getImmediateChild(n).updateChild(e.popFront(),t);return this.updateImmediateChild(n,r)},e.prototype.isEmpty=function(){return this.children_.isEmpty()},e.prototype.numChildren=function(){return this.children_.count()},e.prototype.val=function(t){if(this.isEmpty())return null;var n={},r=0,o=0,i=!0;if(this.forEachChild(l.PRIORITY_INDEX,function(s,a){n[s]=a.val(t),r++,i&&e.INTEGER_REGEXP_.test(s)?o=Math.max(o,Number(s)):i=!1}),!t&&i&&o<2*r){var s=[];for(var a in n)s[a]=n[a];return s}return t&&!this.getPriority().isEmpty()&&(n[".priority"]=this.getPriority().val()),n},e.prototype.hash=function(){if(null===this.lazyHash_){var e="";this.getPriority().isEmpty()||(e+="priority:"+c.priorityHashText(this.getPriority().val())+":"),this.forEachChild(l.PRIORITY_INDEX,function(t,n){var r=n.hash();""!==r&&(e+=":"+t+":"+r)}),this.lazyHash_=""===e?"":s.sha1(e)}return this.lazyHash_},e.prototype.getPredecessorChildName=function(e,t,n){var r=this.resolveIndex_(n);if(r){var o=r.getPredecessorKey(new u.NamedNode(e,t));return o?o.name:null}return this.children_.getPredecessorKey(e)},e.prototype.getFirstChildName=function(e){var t=this.resolveIndex_(e);if(t){var n=t.minKey();return n&&n.name}return this.children_.minKey()},e.prototype.getFirstChild=function(e){var t=this.getFirstChildName(e);return t?new u.NamedNode(t,this.children_.get(t)):null},e.prototype.getLastChildName=function(e){var t=this.resolveIndex_(e);if(t){var n=t.maxKey();return n&&n.name}return this.children_.maxKey()},e.prototype.getLastChild=function(e){var t=this.getLastChildName(e);return t?new u.NamedNode(t,this.children_.get(t)):null},e.prototype.forEachChild=function(e,t){var n=this.resolveIndex_(e);return n?n.inorderTraversal(function(e){return t(e.name,e.node)}):this.children_.inorderTraversal(t)},e.prototype.getIterator=function(e){return this.getIteratorFrom(e.minPost(),e)},e.prototype.getIteratorFrom=function(e,t){var n=this.resolveIndex_(t);if(n)return n.getIteratorFrom(e,function(e){return e});for(var r=this.children_.getIteratorFrom(e.name,u.NamedNode.Wrap),o=r.peek();null!=o&&t.compare(o,e)<0;)r.getNext(),o=r.peek();return r},e.prototype.getReverseIterator=function(e){return this.getReverseIteratorFrom(e.maxPost(),e)},e.prototype.getReverseIteratorFrom=function(e,t){var n=this.resolveIndex_(t);if(n)return n.getReverseIteratorFrom(e,function(e){return e});for(var r=this.children_.getReverseIteratorFrom(e.name,u.NamedNode.Wrap),o=r.peek();null!=o&&t.compare(o,e)>0;)r.getNext(),o=r.peek();return r},e.prototype.compareTo=function(e){return this.isEmpty()?e.isEmpty()?0:-1:e.isLeafNode()||e.isEmpty()?1:e===t.MAX_NODE?-1:0},e.prototype.withIndex=function(t){if(t===p.KEY_INDEX||this.indexMap_.hasIndex(t))return this;var n=this.indexMap_.addIndex(t,this.children_);return new e(this.children_,this.priorityNode_,n)},e.prototype.isIndexed=function(e){return e===p.KEY_INDEX||this.indexMap_.hasIndex(e)},e.prototype.equals=function(e){if(e===this)return!0;if(e.isLeafNode())return!1;var t=e;if(this.getPriority().equals(t.getPriority())){if(this.children_.count()===t.children_.count()){for(var n=this.getIterator(l.PRIORITY_INDEX),r=t.getIterator(l.PRIORITY_INDEX),o=n.getNext(),i=r.getNext();o&&i;){if(o.name!==i.name||!o.node.equals(i.node))return!1;o=n.getNext(),i=r.getNext()}return null===o&&null===i}return!1}return!1},e.prototype.resolveIndex_=function(e){return e===p.KEY_INDEX?null:this.indexMap_.get(e.toString())},e.INTEGER_REGEXP_=/^(0|[1-9]\d*)$/,e}();t.ChildrenNode=y;var v=function(e){function t(){return e.call(this,new a.SortedMap(d.NAME_COMPARATOR),y.EMPTY_NODE,h.IndexMap.Default)||this}return r(t,e),t.prototype.compareTo=function(e){return e===this?0:1},t.prototype.equals=function(e){return e===this},t.prototype.getPriority=function(){return this},t.prototype.getImmediateChild=function(e){return y.EMPTY_NODE},t.prototype.isEmpty=function(){return!1},t}(y);t.MaxNode=v,t.MAX_NODE=new v,Object.defineProperties(u.NamedNode,{MIN:{value:new u.NamedNode(s.MIN_NAME,y.EMPTY_NODE)},MAX:{value:new u.NamedNode(s.MAX_NAME,t.MAX_NODE)}}),p.KeyIndex.__EMPTY_NODE=y.EMPTY_NODE,f.LeafNode.__childrenNodeConstructor=y,c.setMaxNode(t.MAX_NODE),l.setMaxNode(t.MAX_NODE)},Rgd9:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("1zSO"),o=n("Fwmd"),i=function(e){try{if("undefined"!=typeof window&&void 0!==window[e]){var t=window[e];return t.setItem("firebase:sentinel","cache"),t.removeItem("firebase:sentinel"),new r.DOMStorageWrapper(t)}}catch(e){}return new o.MemoryStorage};t.PersistentStorage=i("localStorage"),t.SessionStorage=i("sessionStorage")},TO51:function(e,t,n){"use strict";var r=n("AP4T"),o=n("E9/g"),i=n("qLnt"),s=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},a=function(e){function t(){var t=e.call(this,"object unsubscribed");this.name=t.name="ObjectUnsubscribedError",this.stack=t.stack,this.message=t.message}return s(t,e),t}(Error),u=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},c=function(e){function t(t,n){e.call(this),this.subject=t,this.subscriber=n,this.closed=!1}return u(t,e),t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}},t}(i.a),l=n("V7AE");n.d(t,"b",function(){return h}),n.d(t,"a",function(){return f});var p=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},h=function(e){function t(t){e.call(this,t),this.destination=t}return p(t,e),t}(o.a),f=function(e){function t(){e.call(this),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}return p(t,e),t.prototype[l.a]=function(){return new h(this)},t.prototype.lift=function(e){var t=new d(this,this);return t.operator=e,t},t.prototype.next=function(e){if(this.closed)throw new a;if(!this.isStopped)for(var t=this.observers,n=t.length,r=t.slice(),o=0;o<n;o++)r[o].next(e)},t.prototype.error=function(e){if(this.closed)throw new a;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,r=t.slice(),o=0;o<n;o++)r[o].error(e);this.observers.length=0},t.prototype.complete=function(){if(this.closed)throw new a;this.isStopped=!0;for(var e=this.observers,t=e.length,n=e.slice(),r=0;r<t;r++)n[r].complete();this.observers.length=0},t.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},t.prototype._trySubscribe=function(t){if(this.closed)throw new a;return e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){if(this.closed)throw new a;return this.hasError?(e.error(this.thrownError),i.a.EMPTY):this.isStopped?(e.complete(),i.a.EMPTY):(this.observers.push(e),new c(this,e))},t.prototype.asObservable=function(){var e=new r.a;return e.source=this,e},t.create=function(e,t){return new d(e,t)},t}(r.a),d=function(e){function t(t,n){e.call(this),this.destination=t,this.source=n}return p(t,e),t.prototype.next=function(e){var t=this.destination;t&&t.next&&t.next(e)},t.prototype.error=function(e){var t=this.destination;t&&t.error&&this.destination.error(e)},t.prototype.complete=function(){var e=this.destination;e&&e.complete&&this.destination.complete()},t.prototype._subscribe=function(e){return this.source?this.source.subscribe(e):i.a.EMPTY},t}(f)},Tmcl:function(e,t,n){"use strict";function r(e,t,n){var r="";switch(t){case 1:r=n?"first":"First";break;case 2:r=n?"second":"Second";break;case 3:r=n?"third":"Third";break;case 4:r=n?"fourth":"Fourth";break;default:throw new Error("errorPrefix called with argumentNumber > 4.  Need to update it?")}var o=e+" failed: ";return o+=r+" argument "}function o(e,t,n,o){if((!o||n)&&"string"!=typeof n)throw new Error(r(e,t,o)+"must be a valid firebase namespace.")}function i(e,t,n,o){if((!o||n)&&"function"!=typeof n)throw new Error(r(e,t,o)+"must be a valid function.")}function s(e,t,n,o){if((!o||n)&&("object"!=typeof n||null===n))throw new Error(r(e,t,o)+"must be a valid context object.")}Object.defineProperty(t,"__esModule",{value:!0}),t.validateArgCount=function(e,t,n,r){var o;if(r<t?o="at least "+t:r>n&&(o=0===n?"none":"no more than "+n),o){var i=e+" failed: Was called with "+r+(1===r?" argument.":" arguments.")+" Expects "+o+".";throw new Error(i)}},t.errorPrefix=r,t.validateNamespace=o,t.validateCallback=i,t.validateContextObject=s},U4XL:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("/byE");t.getUA=function(){return"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:""},t.isMobileCordova=function(){return"undefined"!=typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(t.getUA())},t.isReactNative=function(){return"object"==typeof navigator&&"ReactNative"===navigator.product},t.isNodeSdk=function(){return!0===r.CONSTANTS.NODE_CLIENT||!0===r.CONSTANTS.NODE_ADMIN}},URbD:function(e,t,n){"use strict";function r(){return function(e){return e.lift(new f(e))}}function o(e,t){return function(n){var r;if(r="function"==typeof e?e:function(){return e},"function"==typeof t)return n.lift(new b(r,t));var o=Object.create(n,g);return o.source=n,o.subjectFactory=r,o}}function i(){return new u.a}function s(){return function(e){return r()(o(i)(e))}}function a(){return s()(this)}var u=n("TO51"),c=n("AP4T"),l=n("E9/g"),p=n("qLnt"),h=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},f=function(){function e(e){this.connectable=e}return e.prototype.call=function(e,t){var n=this.connectable;n._refCount++;var r=new d(e,n),o=t.subscribe(r);return r.closed||(r.connection=n.connect()),o},e}(),d=function(e){function t(t,n){e.call(this,t),this.connectable=n}return h(t,e),t.prototype._unsubscribe=function(){var e=this.connectable;if(!e)return void(this.connection=null);this.connectable=null;var t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);var n=this.connection,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()},t}(l.a),y=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},v=function(e){function t(t,n){e.call(this),this.source=t,this.subjectFactory=n,this._refCount=0,this._isComplete=!1}return y(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype.connect=function(){var e=this._connection;return e||(this._isComplete=!1,e=this._connection=new p.a,e.add(this.source.subscribe(new _(this.getSubject(),this))),e.closed?(this._connection=null,e=p.a.EMPTY):this._connection=e),e},t.prototype.refCount=function(){return r()(this)},t}(c.a),m=v.prototype,g={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:m._subscribe},_isComplete:{value:m._isComplete,writable:!0},getSubject:{value:m.getSubject},connect:{value:m.connect},refCount:{value:m.refCount}},_=function(e){function t(t,n){e.call(this,t),this.connectable=n}return y(t,e),t.prototype._error=function(t){this._unsubscribe(),e.prototype._error.call(this,t)},t.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}},t}(u.b),b=(l.a,function(){function e(e,t){this.subjectFactory=e,this.selector=t}return e.prototype.call=function(e,t){var n=this.selector,r=this.subjectFactory(),o=n(r).subscribe(e);return o.add(t.subscribe(r)),o},e}());t.a=a},UcKF:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PROTOCOL_VERSION="5",t.VERSION_PARAM="v",t.TRANSPORT_SESSION_PARAM="s",t.REFERER_PARAM="r",t.FORGE_REF="f",t.FORGE_DOMAIN="firebaseio.com",t.LAST_SESSION_PARAM="ls",t.WEBSOCKET="websocket",t.LONG_POLLING="long_polling"},V7AE:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("xIGM"),o=r.a.Symbol,i="function"==typeof o&&"function"==typeof o.for?o.for("rxSubscriber"):"@@rxSubscriber"},VzZx:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n("JEJ4"),i=n("5pXs"),s=n("GnQ5"),a=n("fvGz"),u=n("hkXn"),c=n("/fob"),l=n("F1yO"),p=n("ZGn5"),h=n("xfHL"),f=n("JEJ4"),d=n("43Go"),y=n("R3TC"),v=n("pHuv");!function(e){e[e.RUN=0]="RUN",e[e.SENT=1]="SENT",e[e.COMPLETED=2]="COMPLETED",e[e.SENT_NEEDS_ABORT=3]="SENT_NEEDS_ABORT",e[e.NEEDS_ABORT=4]="NEEDS_ABORT"}(r=t.TransactionStatus||(t.TransactionStatus={})),v.Repo.MAX_TRANSACTION_RETRIES_=25,v.Repo.prototype.transactions_init_=function(){this.transactionQueueTree_=new u.Tree},v.Repo.prototype.startTransaction=function(e,t,n,a){this.log_("transaction on "+e);var u=function(){},v=new i.Reference(this,e);v.on("value",u);var m=function(){v.off("value",u)},g={path:e,update:t,onComplete:n,status:null,order:l.LUIDGenerator(),applyLocally:a,retryCount:0,unwatcher:m,abortReason:null,currentWriteId:null,currentInputSnapshot:null,currentOutputSnapshotRaw:null,currentOutputSnapshotResolved:null},_=this.getLatestState_(e);g.currentInputSnapshot=_;var b=g.update(_.val());if(void 0===b){if(g.unwatcher(),g.currentOutputSnapshotRaw=null,g.currentOutputSnapshotResolved=null,g.onComplete){var w=new s.DataSnapshot(g.currentInputSnapshot,new i.Reference(this,g.path),c.PRIORITY_INDEX);g.onComplete(null,!1,w)}}else{h.validateFirebaseData("transaction failed: Data returned ",b,g.path),g.status=r.RUN;var C=this.transactionQueueTree_.subTree(e),E=C.getValue()||[];E.push(g),C.setValue(E);var S=void 0;if("object"==typeof b&&null!==b&&f.contains(b,".priority"))S=f.safeGet(b,".priority"),o.assert(h.isValidPriority(S),"Invalid priority returned by transaction. Priority must be a valid string, finite number, server value, or null.");else{S=(this.serverSyncTree_.calcCompleteEventCache(e)||y.ChildrenNode.EMPTY_NODE).getPriority().val()}S=S;var O=this.generateServerValues(),P=d.nodeFromJSON(b,S),T=p.resolveDeferredValueSnapshot(P,O);g.currentOutputSnapshotRaw=P,g.currentOutputSnapshotResolved=T,g.currentWriteId=this.getNextWriteId_();var N=this.serverSyncTree_.applyUserOverwrite(e,T,g.currentWriteId,g.applyLocally);this.eventQueue_.raiseEventsForChangedPath(e,N),this.sendReadyTransactions_()}},v.Repo.prototype.getLatestState_=function(e,t){return this.serverSyncTree_.calcCompleteEventCache(e,t)||y.ChildrenNode.EMPTY_NODE},v.Repo.prototype.sendReadyTransactions_=function(e){var t=this;if(void 0===e&&(e=this.transactionQueueTree_),e||this.pruneCompletedTransactionsBelowNode_(e),null!==e.getValue()){var n=this.buildTransactionQueue_(e);o.assert(n.length>0,"Sending zero length transaction queue");n.every(function(e){return e.status===r.RUN})&&this.sendTransactionQueue_(e.path(),n)}else e.hasChildren()&&e.forEachChild(function(e){t.sendReadyTransactions_(e)})},v.Repo.prototype.sendTransactionQueue_=function(e,t){for(var n=this,u=t.map(function(e){return e.currentWriteId}),p=this.getLatestState_(e,u),h=p,f=p.hash(),d=0;d<t.length;d++){var y=t[d];o.assert(y.status===r.RUN,"tryToSendTransactionQueue_: items in queue should all be run."),y.status=r.SENT,y.retryCount++;var v=a.Path.relativePath(e,y.path);h=h.updateChild(v,y.currentOutputSnapshotRaw)}var m=h.val(!0),g=e;this.server_.put(g.toString(),m,function(o){n.log_("transaction put response",{path:g.toString(),status:o});var a=[];if("ok"===o){for(var u=[],p=0;p<t.length;p++){if(t[p].status=r.COMPLETED,a=a.concat(n.serverSyncTree_.ackUserWrite(t[p].currentWriteId)),t[p].onComplete){var h=t[p].currentOutputSnapshotResolved,f=new i.Reference(n,t[p].path),d=new s.DataSnapshot(h,f,c.PRIORITY_INDEX);u.push(t[p].onComplete.bind(null,null,!0,d))}t[p].unwatcher()}n.pruneCompletedTransactionsBelowNode_(n.transactionQueueTree_.subTree(e)),n.sendReadyTransactions_(),n.eventQueue_.raiseEventsForChangedPath(e,a);for(var p=0;p<u.length;p++)l.exceptionGuard(u[p])}else{if("datastale"===o)for(var p=0;p<t.length;p++)t[p].status===r.SENT_NEEDS_ABORT?t[p].status=r.NEEDS_ABORT:t[p].status=r.RUN;else{l.warn("transaction at "+g.toString()+" failed: "+o);for(var p=0;p<t.length;p++)t[p].status=r.NEEDS_ABORT,t[p].abortReason=o}n.rerunTransactions_(e)}},f)},v.Repo.prototype.rerunTransactions_=function(e){var t=this.getAncestorTransactionNode_(e),n=t.path(),r=this.buildTransactionQueue_(t);return this.rerunTransactionQueue_(r,n),n},v.Repo.prototype.rerunTransactionQueue_=function(e,t){if(0!==e.length){for(var n=[],u=[],y=e.filter(function(e){return e.status===r.RUN}),m=y.map(function(e){return e.currentWriteId}),g=0;g<e.length;g++){var _=e[g],b=a.Path.relativePath(t,_.path),w=!1,C=void 0;if(o.assert(null!==b,"rerunTransactionsUnderNode_: relativePath should not be null."),_.status===r.NEEDS_ABORT)w=!0,C=_.abortReason,u=u.concat(this.serverSyncTree_.ackUserWrite(_.currentWriteId,!0));else if(_.status===r.RUN)if(_.retryCount>=v.Repo.MAX_TRANSACTION_RETRIES_)w=!0,C="maxretry",u=u.concat(this.serverSyncTree_.ackUserWrite(_.currentWriteId,!0));else{var E=this.getLatestState_(_.path,m);_.currentInputSnapshot=E;var S=e[g].update(E.val());if(void 0!==S){h.validateFirebaseData("transaction failed: Data returned ",S,_.path);var O=d.nodeFromJSON(S),P="object"==typeof S&&null!=S&&f.contains(S,".priority");P||(O=O.updatePriority(E.getPriority()));var T=_.currentWriteId,N=this.generateServerValues(),I=p.resolveDeferredValueSnapshot(O,N);_.currentOutputSnapshotRaw=O,_.currentOutputSnapshotResolved=I,_.currentWriteId=this.getNextWriteId_(),m.splice(m.indexOf(T),1),u=u.concat(this.serverSyncTree_.applyUserOverwrite(_.path,I,_.currentWriteId,_.applyLocally)),u=u.concat(this.serverSyncTree_.ackUserWrite(T,!0))}else w=!0,C="nodata",u=u.concat(this.serverSyncTree_.ackUserWrite(_.currentWriteId,!0))}if(this.eventQueue_.raiseEventsForChangedPath(t,u),u=[],w&&(e[g].status=r.COMPLETED,function(e){setTimeout(e,Math.floor(0))}(e[g].unwatcher),e[g].onComplete))if("nodata"===C){var A=new i.Reference(this,e[g].path),R=e[g].currentInputSnapshot,x=new s.DataSnapshot(R,A,c.PRIORITY_INDEX);n.push(e[g].onComplete.bind(null,null,!1,x))}else n.push(e[g].onComplete.bind(null,new Error(C),!1,null))}this.pruneCompletedTransactionsBelowNode_(this.transactionQueueTree_);for(var g=0;g<n.length;g++)l.exceptionGuard(n[g]);this.sendReadyTransactions_()}},v.Repo.prototype.getAncestorTransactionNode_=function(e){for(var t,n=this.transactionQueueTree_;null!==(t=e.getFront())&&null===n.getValue();)n=n.subTree(t),e=e.popFront();return n},v.Repo.prototype.buildTransactionQueue_=function(e){var t=[];return this.aggregateTransactionQueuesForNode_(e,t),t.sort(function(e,t){return e.order-t.order}),t},v.Repo.prototype.aggregateTransactionQueuesForNode_=function(e,t){var n=this,r=e.getValue();if(null!==r)for(var o=0;o<r.length;o++)t.push(r[o]);e.forEachChild(function(e){n.aggregateTransactionQueuesForNode_(e,t)})},v.Repo.prototype.pruneCompletedTransactionsBelowNode_=function(e){var t=this,n=e.getValue();if(n){for(var o=0,i=0;i<n.length;i++)n[i].status!==r.COMPLETED&&(n[o]=n[i],o++);n.length=o,e.setValue(n.length>0?n:null)}e.forEachChild(function(e){t.pruneCompletedTransactionsBelowNode_(e)})},v.Repo.prototype.abortTransactions_=function(e){var t=this,n=this.getAncestorTransactionNode_(e).path(),r=this.transactionQueueTree_.subTree(e);return r.forEachAncestor(function(e){t.abortTransactionsOnNode_(e)}),this.abortTransactionsOnNode_(r),r.forEachDescendant(function(e){t.abortTransactionsOnNode_(e)}),n},v.Repo.prototype.abortTransactionsOnNode_=function(e){var t=e.getValue();if(null!==t){for(var n=[],i=[],s=-1,a=0;a<t.length;a++)if(t[a].status===r.SENT_NEEDS_ABORT);else if(t[a].status===r.SENT)o.assert(s===a-1,"All SENT items should be at beginning of queue."),s=a,t[a].status=r.SENT_NEEDS_ABORT,t[a].abortReason="set";else if(o.assert(t[a].status===r.RUN,"Unexpected transaction status in abort"),t[a].unwatcher(),i=i.concat(this.serverSyncTree_.ackUserWrite(t[a].currentWriteId,!0)),t[a].onComplete){n.push(t[a].onComplete.bind(null,new Error("set"),!1,null))}-1===s?e.setValue(null):t.length=s+1,this.eventQueue_.raiseEventsForChangedPath(e.path(),i);for(var a=0;a<n.length;a++)l.exceptionGuard(n[a])}}},W4Cj:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("JEJ4"),o=n("ertD"),i=n("R3TC"),s=n("/fob"),a=function(){function e(e){this.index_=e}return e.prototype.updateChild=function(e,t,n,i,s,a){r.assert(e.isIndexed(this.index_),"A node must be indexed if only a child is updated");var u=e.getImmediateChild(t);return u.getChild(i).equals(n.getChild(i))&&u.isEmpty()==n.isEmpty()?e:(null!=a&&(n.isEmpty()?e.hasChild(t)?a.trackChildChange(o.Change.childRemovedChange(t,u)):r.assert(e.isLeafNode(),"A child remove without an old child only makes sense on a leaf node"):u.isEmpty()?a.trackChildChange(o.Change.childAddedChange(t,n)):a.trackChildChange(o.Change.childChangedChange(t,n,u))),e.isLeafNode()&&n.isEmpty()?e:e.updateImmediateChild(t,n).withIndex(this.index_))},e.prototype.updateFullNode=function(e,t,n){return null!=n&&(e.isLeafNode()||e.forEachChild(s.PRIORITY_INDEX,function(e,r){t.hasChild(e)||n.trackChildChange(o.Change.childRemovedChange(e,r))}),t.isLeafNode()||t.forEachChild(s.PRIORITY_INDEX,function(t,r){if(e.hasChild(t)){var i=e.getImmediateChild(t);i.equals(r)||n.trackChildChange(o.Change.childChangedChange(t,r,i))}else n.trackChildChange(o.Change.childAddedChange(t,r))})),t.withIndex(this.index_)},e.prototype.updatePriority=function(e,t){return e.isEmpty()?i.ChildrenNode.EMPTY_NODE:e.updatePriority(t)},e.prototype.filtersNodes=function(){return!1},e.prototype.getIndexedFilter=function(){return this},e.prototype.getIndex=function(){return this.index_},e}();t.IndexedFilter=a},WH8D:function(e,t,n){"use strict";function r(e){return JSON.parse(e)}function o(e){return JSON.stringify(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.jsonEval=r,t.stringify=o},XecN:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("GTlS"),o=n("wclm"),i=new o.a(r.a)},XiwH:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("W4Cj"),o=n("/fob"),i=n("p+VM"),s=n("R3TC"),a=function(){function e(t){this.indexedFilter_=new r.IndexedFilter(t.getIndex()),this.index_=t.getIndex(),this.startPost_=e.getStartPost_(t),this.endPost_=e.getEndPost_(t)}return e.prototype.getStartPost=function(){return this.startPost_},e.prototype.getEndPost=function(){return this.endPost_},e.prototype.matches=function(e){return this.index_.compare(this.getStartPost(),e)<=0&&this.index_.compare(e,this.getEndPost())<=0},e.prototype.updateChild=function(e,t,n,r,o,a){return this.matches(new i.NamedNode(t,n))||(n=s.ChildrenNode.EMPTY_NODE),this.indexedFilter_.updateChild(e,t,n,r,o,a)},e.prototype.updateFullNode=function(e,t,n){t.isLeafNode()&&(t=s.ChildrenNode.EMPTY_NODE);var r=t.withIndex(this.index_);r=r.updatePriority(s.ChildrenNode.EMPTY_NODE);var a=this;return t.forEachChild(o.PRIORITY_INDEX,function(e,t){a.matches(new i.NamedNode(e,t))||(r=r.updateImmediateChild(e,s.ChildrenNode.EMPTY_NODE))}),this.indexedFilter_.updateFullNode(e,r,n)},e.prototype.updatePriority=function(e,t){return e},e.prototype.filtersNodes=function(){return!0},e.prototype.getIndexedFilter=function(){return this.indexedFilter_},e.prototype.getIndex=function(){return this.index_},e.getStartPost_=function(e){if(e.hasStart()){var t=e.getIndexStartName();return e.getIndex().makePost(e.getIndexStartValue(),t)}return e.getIndex().minPost()},e.getEndPost_=function(e){if(e.hasEnd()){var t=e.getIndexEndName();return e.getIndex().makePost(e.getIndexEndValue(),t)}return e.getIndex().maxPost()},e}();t.RangedFilter=a},Xp63:function(e,t,n){"use strict";function r(e,t){var n=new a(e,t);return n.subscribe.bind(n)}function o(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];Promise.resolve(!0).then(function(){e.apply(void 0,n)}).catch(function(e){t&&t(e)})}}function i(e,t){if("object"!=typeof e||null===e)return!1;for(var n=0,r=t;n<r.length;n++){var o=r[n];if(o in e&&"function"==typeof e[o])return!0}return!1}function s(){}Object.defineProperty(t,"__esModule",{value:!0}),t.createSubscribe=r;var a=function(){function e(e,t){var n=this;this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=t,this.task.then(function(){e(n)}).catch(function(e){n.error(e)})}return e.prototype.next=function(e){this.forEachObserver(function(t){t.next(e)})},e.prototype.error=function(e){this.forEachObserver(function(t){t.error(e)}),this.close(e)},e.prototype.complete=function(){this.forEachObserver(function(e){e.complete()}),this.close()},e.prototype.subscribe=function(e,t,n){var r,o=this;if(void 0===e&&void 0===t&&void 0===n)throw new Error("Missing Observer.");r=i(e,["next","error","complete"])?e:{next:e,error:t,complete:n},void 0===r.next&&(r.next=s),void 0===r.error&&(r.error=s),void 0===r.complete&&(r.complete=s);var a=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(function(){try{o.finalError?r.error(o.finalError):r.complete()}catch(e){}}),this.observers.push(r),a},e.prototype.unsubscribeOne=function(e){void 0!==this.observers&&void 0!==this.observers[e]&&(delete this.observers[e],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))},e.prototype.forEachObserver=function(e){if(!this.finalized)for(var t=0;t<this.observers.length;t++)this.sendOne(t,e)},e.prototype.sendOne=function(e,t){var n=this;this.task.then(function(){if(void 0!==n.observers&&void 0!==n.observers[e])try{t(n.observers[e])}catch(e){"undefined"!=typeof console&&console.error&&console.error(e)}})},e.prototype.close=function(e){var t=this;this.finalized||(this.finalized=!0,void 0!==e&&(this.finalError=e),this.task.then(function(){t.observers=void 0,t.onNoObservers=void 0}))},e}();t.async=o},XtH8:function(e,t,n){"use strict";function r(){function e(e){h(d[e],"delete"),delete d[e]}function t(e){return e=e||a,s(d,e)||o("no-app",{name:e}),d[e]}function n(e,t){void 0===t?t=a:"string"==typeof t&&""!==t||o("bad-app-name",{name:t+""}),s(d,t)&&o("duplicate-app",{name:t});var n=new c(e,t,m);return d[t]=n,h(n,"create"),n}function u(){return Object.keys(d).map(function(e){return d[e]})}function l(e,n,r,s,a){y[e]&&o("duplicate-service",{name:e}),y[e]=n,s&&(v[e]=s,u().forEach(function(e){s("create",e)}));var l=function(n){return void 0===n&&(n=t()),"function"!=typeof n[e]&&o("invalid-app-argument",{name:e}),n[e]()};return void 0!==r&&Object(i.deepExtend)(l,r),m[e]=l,c.prototype[e]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return this._getService.bind(this,e).apply(this,a?t:[])},l}function p(e){Object(i.deepExtend)(m,e)}function h(e,t){Object.keys(y).forEach(function(n){var r=f(e,n);null!==r&&v[r]&&v[r](t,e)})}function f(e,t){if("serverAuth"===t)return null;var n=t;e.options;return n}var d={},y={},v={},m={__esModule:!0,initializeApp:n,app:t,apps:null,Promise:Promise,SDK_VERSION:"4.5.2",INTERNAL:{registerService:l,createFirebaseNamespace:r,extendNamespace:p,createSubscribe:i.createSubscribe,ErrorFactory:i.ErrorFactory,removeApp:e,factories:y,useAsService:f,Promise:Promise,deepExtend:i.deepExtend}};return Object(i.patchProperty)(m,"default",m),Object.defineProperty(m,"apps",{get:u}),Object(i.patchProperty)(t,"App",c),m}function o(e,t){throw p.create(e,t)}Object.defineProperty(t,"__esModule",{value:!0});var i=n("JEJ4"),s=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a="[DEFAULT]",u=[],c=function(){function e(e,t,n){this.firebase_=n,this.isDeleted_=!1,this.services_={},this.name_=t,this.options_=Object(i.deepCopy)(e),this.INTERNAL={getUid:function(){return null},getToken:function(){return Promise.resolve(null)},addAuthTokenListener:function(e){u.push(e),setTimeout(function(){return e(null)},0)},removeAuthTokenListener:function(e){u=u.filter(function(t){return t!==e})}}}return Object.defineProperty(e.prototype,"name",{get:function(){return this.checkDestroyed_(),this.name_},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this.checkDestroyed_(),this.options_},enumerable:!0,configurable:!0}),e.prototype.delete=function(){var e=this;return new Promise(function(t){e.checkDestroyed_(),t()}).then(function(){e.firebase_.INTERNAL.removeApp(e.name_);var t=[];return Object.keys(e.services_).forEach(function(n){Object.keys(e.services_[n]).forEach(function(r){t.push(e.services_[n][r])})}),Promise.all(t.map(function(e){return e.INTERNAL.delete()}))}).then(function(){e.isDeleted_=!0,e.services_={}})},e.prototype._getService=function(e,t){if(void 0===t&&(t=a),this.checkDestroyed_(),this.services_[e]||(this.services_[e]={}),!this.services_[e][t]){var n=t!==a?t:void 0,r=this.firebase_.INTERNAL.factories[e](this,this.extendApp.bind(this),n);this.services_[e][t]=r}return this.services_[e][t]},e.prototype.extendApp=function(e){var t=this;Object(i.deepExtend)(this,e),e.INTERNAL&&e.INTERNAL.addAuthTokenListener&&(u.forEach(function(e){t.INTERNAL.addAuthTokenListener(e)}),u=[])},e.prototype.checkDestroyed_=function(){this.isDeleted_&&o("app-deleted",{name:this.name_})},e}();c.prototype.name&&c.prototype.options||c.prototype.delete||console.log("dc");var l={"no-app":"No Firebase App '{$name}' has been created - call Firebase App.initializeApp()","bad-app-name":"Illegal App name: '{$name}","duplicate-app":"Firebase App named '{$name}' already exists","app-deleted":"Firebase App named '{$name}' already deleted","duplicate-service":"Firebase service named '{$name}' already registered","sa-not-supported":"Initializing the Firebase SDK with a service account is only allowed in a Node.js environment. On client devices, you should instead initialize the SDK with an api key and auth domain","invalid-app-argument":"firebase.{$name}() takes either no argument or a Firebase App instance."},p=new i.ErrorFactory("app","Firebase",l);n.d(t,"firebase",function(){return h});var h=r();t.default=h},YY8E:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("JEJ4"),o=function(){function e(e){this.allowedEvents_=e,this.listeners_={},r.assert(Array.isArray(e)&&e.length>0,"Requires a non-empty array")}return e.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Array.isArray(this.listeners_[e]))for(var r=this.listeners_[e].slice(),o=0;o<r.length;o++)r[o].callback.apply(r[o].context,t)},e.prototype.on=function(e,t,n){this.validateEventType_(e),this.listeners_[e]=this.listeners_[e]||[],this.listeners_[e].push({callback:t,context:n});var r=this.getInitialEvent(e);r&&t.apply(n,r)},e.prototype.off=function(e,t,n){this.validateEventType_(e);for(var r=this.listeners_[e]||[],o=0;o<r.length;o++)if(r[o].callback===t&&(!n||n===r[o].context))return void r.splice(o,1)},e.prototype.validateEventType_=function(e){r.assert(this.allowedEvents_.find(function(t){return t===e}),"Unknown event: "+e)},e}();t.EventEmitter=o},ZGn5:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("JEJ4"),o=n("fvGz"),i=n("z8+r"),s=n("04zk"),a=n("43Go"),u=n("/fob");t.generateWithValues=function(e){return e=e||{},e.timestamp=e.timestamp||(new Date).getTime(),e},t.resolveDeferredValue=function(e,t){return e&&"object"==typeof e?(r.assert(".sv"in e,"Unexpected leaf node or priority contents"),t[e[".sv"]]):e},t.resolveDeferredValueTree=function(e,n){var r=new i.SparseSnapshotTree;return e.forEachTree(new o.Path(""),function(e,o){r.remember(e,t.resolveDeferredValueSnapshot(o,n))}),r},t.resolveDeferredValueSnapshot=function(e,n){var r,o=e.getPriority().val(),i=t.resolveDeferredValue(o,n);if(e.isLeafNode()){var c=e,l=t.resolveDeferredValue(c.getValue(),n);return l!==c.getValue()||i!==c.getPriority().val()?new s.LeafNode(l,a.nodeFromJSON(i)):e}var p=e;return r=p,i!==p.getPriority().val()&&(r=r.updatePriority(new s.LeafNode(i))),p.forEachChild(u.PRIORITY_INDEX,function(e,o){var i=t.resolveDeferredValueSnapshot(o,n);i!==o&&(r=r.updateImmediateChild(e,i))}),r}},b5Wm:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n("JEJ4"),i=n("2BLv"),s=n("JEJ4"),a=n("p+VM"),u=n("/fob"),c=n("stu6"),l={},p=function(){function e(e,t){this.indexes_=e,this.indexSet_=t}return Object.defineProperty(e,"Default",{get:function(){return o.assert(l&&u.PRIORITY_INDEX,"ChildrenNode.ts has not been loaded"),r=r||new e({".priority":l},{".priority":u.PRIORITY_INDEX})},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var t=s.safeGet(this.indexes_,e);if(!t)throw new Error("No index defined for "+e);return t===l?null:t},e.prototype.hasIndex=function(e){return s.contains(this.indexSet_,e.toString())},e.prototype.addIndex=function(t,n){o.assert(t!==c.KEY_INDEX,"KeyIndex always exists and isn't meant to be added to the IndexMap.");for(var r=[],u=!1,p=n.getIterator(a.NamedNode.Wrap),h=p.getNext();h;)u=u||t.isDefinedOn(h.node),r.push(h),h=p.getNext();var f;f=u?i.buildChildSet(r,t.getCompare()):l;var d=t.toString(),y=s.clone(this.indexSet_);y[d]=t;var v=s.clone(this.indexes_);return v[d]=f,new e(v,y)},e.prototype.addToIndexes=function(t,n){var r=this;return new e(s.map(this.indexes_,function(e,u){var c=s.safeGet(r.indexSet_,u);if(o.assert(c,"Missing index implementation for "+u),e===l){if(c.isDefinedOn(t.node)){for(var p=[],h=n.getIterator(a.NamedNode.Wrap),f=h.getNext();f;)f.name!=t.name&&p.push(f),f=h.getNext();return p.push(t),i.buildChildSet(p,c.getCompare())}return l}var d=n.get(t.name),y=e;return d&&(y=y.remove(new a.NamedNode(t.name,d))),y.insert(t,t.node)}),this.indexSet_)},e.prototype.removeFromIndexes=function(t,n){return new e(s.map(this.indexes_,function(e){if(e===l)return e;var r=n.get(t.name);return r?e.remove(new a.NamedNode(t.name,r)):e}),this.indexSet_)},e}();t.IndexMap=p},bN85:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("R3TC"),o=n("y8hQ"),i=function(){function e(e,t){this.eventCache_=e,this.serverCache_=t}return e.prototype.updateEventSnap=function(t,n,r){return new e(new o.CacheNode(t,n,r),this.serverCache_)},e.prototype.updateServerSnap=function(t,n,r){return new e(this.eventCache_,new o.CacheNode(t,n,r))},e.prototype.getEventCache=function(){return this.eventCache_},e.prototype.getCompleteEventSnap=function(){return this.eventCache_.isFullyInitialized()?this.eventCache_.getNode():null},e.prototype.getServerCache=function(){return this.serverCache_},e.prototype.getCompleteServerSnap=function(){return this.serverCache_.isFullyInitialized()?this.serverCache_.getNode():null},e.Empty=new e(new o.CacheNode(r.ChildrenNode.EMPTY_NODE,!1,!1),new o.CacheNode(r.ChildrenNode.EMPTY_NODE,!1,!1)),e}();t.ViewCache=i},bm2B:function(e,t,n){"use strict";function r(e){var t=e.value,n=e.subscriber;n.closed||(n.next(t),n.complete())}function o(e){var t=e.err,n=e.subscriber;n.closed||n.error(t)}function i(e){return null==e||0===e.length}function s(e){return null!=e}function a(e){var t=Object(F["\u0275isPromise"])(e)?J(e):e;if(!Object(F["\u0275isObservable"])(t))throw new Error("Expected validator to return Promise or Observable.");return t}function u(e,t){return t.map(function(t){return t(e)})}function c(e,t){return t.map(function(t){return t(e)})}function l(e){var t=e.reduce(function(e,t){return null!=t?Object.assign({},e,t):e},{});return 0===Object.keys(t).length?null:t}function p(){return/android (\d+)/.test((Object(X.u)()?Object(X.u)().getUserAgent():"").toLowerCase())}function h(e){return e.validate?function(t){return e.validate(t)}:e}function f(e){return e.validate?function(t){return e.validate(t)}:e}function d(){throw new Error("unimplemented")}function y(e,t){return null==e?""+t:(t&&"object"==typeof t&&(t="Object"),(e+": "+t).slice(0,50))}function v(e){return e.split(":")[0]}function m(e,t){return null==e?""+t:("string"==typeof t&&(t="'"+t+"'"),t&&"object"==typeof t&&(t="Object"),(e+": "+t).slice(0,50))}function g(e){return e.split(":")[0]}function _(e,t){return t.path.concat([e])}function b(e,t){e||S(t,"Cannot find control with"),t.valueAccessor||S(t,"No value accessor for form control with"),e.validator=re.compose([e.validator,t.validator]),e.asyncValidator=re.composeAsync([e.asyncValidator,t.asyncValidator]),t.valueAccessor.writeValue(e.value),t.valueAccessor.registerOnChange(function(n){t.viewToModelUpdate(n),e.markAsDirty(),e.setValue(n,{emitModelToViewChange:!1})}),t.valueAccessor.registerOnTouched(function(){return e.markAsTouched()}),e.registerOnChange(function(e,n){t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)}),t.valueAccessor.setDisabledState&&e.registerOnDisabledChange(function(e){t.valueAccessor.setDisabledState(e)}),t._rawValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(function(){return e.updateValueAndValidity()})}),t._rawAsyncValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(function(){return e.updateValueAndValidity()})})}function w(e,t){t.valueAccessor.registerOnChange(function(){return E(t)}),t.valueAccessor.registerOnTouched(function(){return E(t)}),t._rawValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(null)}),t._rawAsyncValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(null)}),e&&e._clearChangeFns()}function C(e,t){null==e&&S(t,"Cannot find control with"),e.validator=re.compose([e.validator,t.validator]),e.asyncValidator=re.composeAsync([e.asyncValidator,t.asyncValidator])}function E(e){return S(e,"There is no FormControl instance attached to form control element with")}function S(e,t){var n;throw n=e.path.length>1?"path: '"+e.path.join(" -> ")+"'":e.path[0]?"name: '"+e.path+"'":"unspecified name attribute",new Error(t+" "+n)}function O(e){return null!=e?re.compose(e.map(h)):null}function P(e){return null!=e?re.composeAsync(e.map(f)):null}function T(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Object(F["\u0275looseIdentical"])(t,n.currentValue)}function N(e){return Se.some(function(t){return e.constructor===t})}function I(e,t){if(!t)return null;var n=void 0,r=void 0,o=void 0;return t.forEach(function(t){t.constructor===ce?n=t:N(t)?(r&&S(e,"More than one built-in value accessor matches form control with"),r=t):(o&&S(e,"More than one custom value accessor matches form control with"),o=t)}),o||(r||(n||(S(e,"No valid value accessor for form control with"),null)))}function A(e,t,n){return null==t?null:(t instanceof Array||(t=t.split(n)),t instanceof Array&&0===t.length?null:t.reduce(function(e,t){return e instanceof xe?e.controls[t]||null:e instanceof ke?e.at(t)||null:null},e))}function R(e){return Array.isArray(e)?O(e):e||null}function x(e){return Array.isArray(e)?P(e):e||null}function k(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}function D(e){return!(e instanceof Ye||e instanceof Ke||e instanceof Ze)}var M=n("6Xbx"),F=n("/oeL"),j=n("AP4T"),L=n("Ecq+"),V=n("1j/l"),H=n("qgI0"),B=n("lI6h"),q=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},W=function(e){function t(t,n){e.call(this),this.sources=t,this.resultSelector=n}return q(t,e),t.create=function(){for(var e=[],n=0;n<arguments.length;n++)e[n-0]=arguments[n];if(null===e||0===arguments.length)return new L.a;var r=null;return"function"==typeof e[e.length-1]&&(r=e.pop()),1===e.length&&Object(V.a)(e[0])&&(e=e[0]),0===e.length?new L.a:new t(e,r)},t.prototype._subscribe=function(e){return new U(e,this.sources,this.resultSelector)},t}(j.a),U=function(e){function t(t,n,r){e.call(this,t),this.sources=n,this.resultSelector=r,this.completed=0,this.haveValues=0;var o=n.length;this.total=o,this.values=new Array(o);for(var i=0;i<o;i++){var s=n[i],a=Object(H.a)(this,s,null,i);a&&(a.outerIndex=i,this.add(a))}}return q(t,e),t.prototype.notifyNext=function(e,t,n,r,o){this.values[n]=t,o._hasValue||(o._hasValue=!0,this.haveValues++)},t.prototype.notifyComplete=function(e){var t=this.destination,n=this,r=n.haveValues,o=n.resultSelector,i=n.values,s=i.length;if(!e._hasValue)return void t.complete();if(++this.completed===s){if(r===s){var a=o?o.apply(this,i):i;t.next(a)}t.complete()}},t}(B.a),z=W.create,G=n("xIGM"),Q=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},K=function(e){function t(t,n){e.call(this),this.promise=t,this.scheduler=n}return Q(t,e),t.create=function(e,n){return new t(e,n)},t.prototype._subscribe=function(e){var t=this,n=this.promise,i=this.scheduler;if(null==i)this._isScalar?e.closed||(e.next(this.value),e.complete()):n.then(function(n){t.value=n,t._isScalar=!0,e.closed||(e.next(n),e.complete())},function(t){e.closed||e.error(t)}).then(null,function(e){G.a.setTimeout(function(){throw e})});else if(this._isScalar){if(!e.closed)return i.schedule(r,0,{value:this.value,subscriber:e})}else n.then(function(n){t.value=n,t._isScalar=!0,e.closed||e.add(i.schedule(r,0,{value:n,subscriber:e}))},function(t){e.closed||e.add(i.schedule(o,0,{err:t,subscriber:e}))}).then(null,function(e){G.a.setTimeout(function(){throw e})})},t}(j.a),J=K.create,Y=n("dmC+"),X=n("fc+i");n.d(t,"b",function(){return $}),n.d(t,"e",function(){return oe}),n.d(t,"a",function(){return ue}),n.d(t,"c",function(){return ce}),n.d(t,"f",function(){return he}),n.d(t,"g",function(){return Ne}),n.d(t,"h",function(){return Ie}),n.d(t,"i",function(){return Fe}),n.d(t,"j",function(){return We}),n.d(t,"d",function(){return _t}),n.d(t,"k",function(){return gt}),n.d(t,"l",function(){return dt}),n.d(t,"m",function(){return de});var Z=function(){function e(){}return e.prototype.control=function(){},Object.defineProperty(e.prototype,"value",{get:function(){return this.control?this.control.value:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valid",{get:function(){return this.control?this.control.valid:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"invalid",{get:function(){return this.control?this.control.invalid:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pending",{get:function(){return this.control?this.control.pending:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return this.control?this.control.disabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return this.control?this.control.enabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"errors",{get:function(){return this.control?this.control.errors:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pristine",{get:function(){return this.control?this.control.pristine:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dirty",{get:function(){return this.control?this.control.dirty:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"touched",{get:function(){return this.control?this.control.touched:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"untouched",{get:function(){return this.control?this.control.untouched:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"statusChanges",{get:function(){return this.control?this.control.statusChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valueChanges",{get:function(){return this.control?this.control.valueChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),e.prototype.reset=function(e){void 0===e&&(e=void 0),this.control&&this.control.reset(e)},e.prototype.hasError=function(e,t){return!!this.control&&this.control.hasError(e,t)},e.prototype.getError=function(e,t){return this.control?this.control.getError(e,t):null},e}(),$=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return M.a(t,e),Object.defineProperty(t.prototype,"formDirective",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),t}(Z),ee=new F.InjectionToken("NgValidators"),te=new F.InjectionToken("NgAsyncValidators"),ne=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,re=function(){function e(){}return e.min=function(e){return function(t){if(i(t.value)||i(e))return null;var n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}},e.max=function(e){return function(t){if(i(t.value)||i(e))return null;var n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}},e.required=function(e){return i(e.value)?{required:!0}:null},e.requiredTrue=function(e){return!0===e.value?null:{required:!0}},e.email=function(e){return ne.test(e.value)?null:{email:!0}},e.minLength=function(e){return function(t){if(i(t.value))return null;var n=t.value?t.value.length:0;return n<e?{minlength:{requiredLength:e,actualLength:n}}:null}},e.maxLength=function(e){return function(t){var n=t.value?t.value.length:0;return n>e?{maxlength:{requiredLength:e,actualLength:n}}:null}},e.pattern=function(t){if(!t)return e.nullValidator;var n,r;return"string"==typeof t?(r="^"+t+"$",n=new RegExp(r)):(r=t.toString(),n=t),function(e){if(i(e.value))return null;var t=e.value;return n.test(t)?null:{pattern:{requiredPattern:r,actualValue:t}}}},e.nullValidator=function(e){return null},e.compose=function(e){if(!e)return null;var t=e.filter(s);return 0==t.length?null:function(e){return l(u(e,t))}},e.composeAsync=function(e){if(!e)return null;var t=e.filter(s);return 0==t.length?null:function(e){var n=c(e,t).map(a);return Y.a.call(z(n),l)}},e}(),oe=new F.InjectionToken("NgValueAccessor"),ie={provide:oe,useExisting:Object(F.forwardRef)(function(){return se}),multi:!0},se=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"checked",e)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e}();se.decorators=[{type:F.Directive,args:[{selector:"input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]",host:{"(change)":"onChange($event.target.checked)","(blur)":"onTouched()"},providers:[ie]}]}],se.ctorParameters=function(){return[{type:F.Renderer2},{type:F.ElementRef}]};var ae={provide:oe,useExisting:Object(F.forwardRef)(function(){return ce}),multi:!0},ue=new F.InjectionToken("CompositionEventMode"),ce=function(){function e(e,t,n){this._renderer=e,this._elementRef=t,this._compositionMode=n,this.onChange=function(e){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!p())}return e.prototype.writeValue=function(e){var t=null==e?"":e;this._renderer.setProperty(this._elementRef.nativeElement,"value",t)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._handleInput=function(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)},e.prototype._compositionStart=function(){this._composing=!0},e.prototype._compositionEnd=function(e){this._composing=!1,this._compositionMode&&this.onChange(e)},e}();ce.decorators=[{type:F.Directive,args:[{selector:"input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]",host:{"(input)":"_handleInput($event.target.value)","(blur)":"onTouched()","(compositionstart)":"_compositionStart()","(compositionend)":"_compositionEnd($event.target.value)"},providers:[ae]}]}],ce.ctorParameters=function(){return[{type:F.Renderer2},{type:F.ElementRef},{type:void 0,decorators:[{type:F.Optional},{type:F.Inject,args:[ue]}]}]};var le={provide:oe,useExisting:Object(F.forwardRef)(function(){return pe}),multi:!0},pe=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){var t=null==e?"":e;this._renderer.setProperty(this._elementRef.nativeElement,"value",t)},e.prototype.registerOnChange=function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e}();pe.decorators=[{type:F.Directive,args:[{selector:"input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]",host:{"(change)":"onChange($event.target.value)","(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[le]}]}],pe.ctorParameters=function(){return[{type:F.Renderer2},{type:F.ElementRef}]};var he=function(e){function t(){var t=e.apply(this,arguments)||this;return t._parent=null,t.name=null,t.valueAccessor=null,t._rawValidators=[],t._rawAsyncValidators=[],t}return M.a(t,e),Object.defineProperty(t.prototype,"validator",{get:function(){return d()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return d()},enumerable:!0,configurable:!0}),t.prototype.viewToModelUpdate=function(e){},t}(Z),fe={provide:oe,useExisting:Object(F.forwardRef)(function(){return ye}),multi:!0},de=function(){function e(){this._accessors=[]}return e.prototype.add=function(e,t){this._accessors.push([e,t])},e.prototype.remove=function(e){for(var t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)},e.prototype.select=function(e){var t=this;this._accessors.forEach(function(n){t._isSameGroup(n,e)&&n[1]!==e&&n[1].fireUncheck(e.value)})},e.prototype._isSameGroup=function(e,t){return!!e[0].control&&(e[0]._parent===t._control._parent&&e[1].name===t.name)},e}();de.decorators=[{type:F.Injectable}],de.ctorParameters=function(){return[]};var ye=function(){function e(e,t,n,r){this._renderer=e,this._elementRef=t,this._registry=n,this._injector=r,this.onChange=function(){},this.onTouched=function(){}}return e.prototype.ngOnInit=function(){this._control=this._injector.get(he),this._checkName(),this._registry.add(this._control,this)},e.prototype.ngOnDestroy=function(){this._registry.remove(this)},e.prototype.writeValue=function(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)},e.prototype.registerOnChange=function(e){var t=this;this._fn=e,this.onChange=function(){e(t.value),t._registry.select(t)}},e.prototype.fireUncheck=function(e){this.writeValue(e)},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},e.prototype._throwNameError=function(){throw new Error('\n      If you define both a name and a formControlName attribute on your radio button, their values\n      must match. Ex: <input type="radio" formControlName="food" name="food">\n    ')},e}();ye.decorators=[{type:F.Directive,args:[{selector:"input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]",host:{"(change)":"onChange()","(blur)":"onTouched()"},providers:[fe]}]}],ye.ctorParameters=function(){return[{type:F.Renderer2},{type:F.ElementRef},{type:de},{type:F.Injector}]},ye.propDecorators={name:[{type:F.Input}],formControlName:[{type:F.Input}],value:[{type:F.Input}]};var ve={provide:oe,useExisting:Object(F.forwardRef)(function(){return me}),multi:!0},me=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))},e.prototype.registerOnChange=function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e}();me.decorators=[{type:F.Directive,args:[{selector:"input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]",host:{"(change)":"onChange($event.target.value)","(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[ve]}]}],me.ctorParameters=function(){return[{type:F.Renderer2},{type:F.ElementRef}]};var ge={provide:oe,useExisting:Object(F.forwardRef)(function(){return _e}),multi:!0},_e=function(){function e(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=F["\u0275looseIdentical"]}return Object.defineProperty(e.prototype,"compareWith",{set:function(e){if("function"!=typeof e)throw new Error("compareWith must be a function, but received "+JSON.stringify(e));this._compareWith=e},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){this.value=e;var t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=y(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)},e.prototype.registerOnChange=function(e){var t=this;this.onChange=function(n){t.value=t._getOptionValue(n),e(t.value)}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._registerOption=function(){return(this._idCounter++).toString()},e.prototype._getOptionId=function(e){for(var t=0,n=Array.from(this._optionMap.keys());t<n.length;t++){var r=n[t];if(this._compareWith(this._optionMap.get(r),e))return r}return null},e.prototype._getOptionValue=function(e){var t=v(e);return this._optionMap.has(t)?this._optionMap.get(t):e},e}();_e.decorators=[{type:F.Directive,args:[{selector:"select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]",host:{"(change)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[ge]}]}],_e.ctorParameters=function(){return[{type:F.Renderer2},{type:F.ElementRef}]},_e.propDecorators={compareWith:[{type:F.Input}]};var be=function(){function e(e,t,n){this._element=e,this._renderer=t,this._select=n,this._select&&(this.id=this._select._registerOption())}return Object.defineProperty(e.prototype,"ngValue",{set:function(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(y(this.id,e)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{set:function(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)},enumerable:!0,configurable:!0}),e.prototype._setElementValue=function(e){this._renderer.setProperty(this._element.nativeElement,"value",e)},e.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))},e}();be.decorators=[{type:F.Directive,args:[{selector:"option"}]}],be.ctorParameters=function(){return[{type:F.ElementRef},{type:F.Renderer2},{type:_e,decorators:[{type:F.Optional},{type:F.Host}]}]},be.propDecorators={ngValue:[{type:F.Input,args:["ngValue"]}],value:[{type:F.Input,args:["value"]}]};var we={provide:oe,useExisting:Object(F.forwardRef)(function(){return Ce}),multi:!0},Ce=function(){function e(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=F["\u0275looseIdentical"]}return Object.defineProperty(e.prototype,"compareWith",{set:function(e){if("function"!=typeof e)throw new Error("compareWith must be a function, but received "+JSON.stringify(e));this._compareWith=e},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){var t=this;this.value=e;var n;if(Array.isArray(e)){var r=e.map(function(e){return t._getOptionId(e)});n=function(e,t){e._setSelected(r.indexOf(t.toString())>-1)}}else n=function(e,t){e._setSelected(!1)};this._optionMap.forEach(n)},e.prototype.registerOnChange=function(e){var t=this;this.onChange=function(n){var r=[];if(n.hasOwnProperty("selectedOptions"))for(var o=n.selectedOptions,i=0;i<o.length;i++){var s=o.item(i),a=t._getOptionValue(s.value);r.push(a)}else for(var o=n.options,i=0;i<o.length;i++){var s=o.item(i);if(s.selected){var a=t._getOptionValue(s.value);r.push(a)}}t.value=r,e(r)}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._registerOption=function(e){var t=(this._idCounter++).toString();return this._optionMap.set(t,e),t},e.prototype._getOptionId=function(e){for(var t=0,n=Array.from(this._optionMap.keys());t<n.length;t++){var r=n[t];if(this._compareWith(this._optionMap.get(r)._value,e))return r}return null},e.prototype._getOptionValue=function(e){var t=g(e);return this._optionMap.has(t)?this._optionMap.get(t)._value:e},e}();Ce.decorators=[{type:F.Directive,args:[{selector:"select[multiple][formControlName],select[multiple][formControl],select[multiple][ngModel]",host:{"(change)":"onChange($event.target)","(blur)":"onTouched()"},providers:[we]}]}],Ce.ctorParameters=function(){return[{type:F.Renderer2},{type:F.ElementRef}]},Ce.propDecorators={compareWith:[{type:F.Input}]};var Ee=function(){function e(e,t,n){this._element=e,this._renderer=t,this._select=n,this._select&&(this.id=this._select._registerOption(this))}return Object.defineProperty(e.prototype,"ngValue",{set:function(e){null!=this._select&&(this._value=e,this._setElementValue(m(this.id,e)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{set:function(e){this._select?(this._value=e,this._setElementValue(m(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)},enumerable:!0,configurable:!0}),e.prototype._setElementValue=function(e){this._renderer.setProperty(this._element.nativeElement,"value",e)},e.prototype._setSelected=function(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)},e.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))},e}();Ee.decorators=[{type:F.Directive,args:[{selector:"option"}]}],Ee.ctorParameters=function(){return[{type:F.ElementRef},{type:F.Renderer2},{type:Ce,decorators:[{type:F.Optional},{type:F.Host}]}]},Ee.propDecorators={ngValue:[{type:F.Input,args:["ngValue"]}],value:[{type:F.Input,args:["value"]}]};var Se=[se,me,pe,_e,Ce,ye],Oe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return M.a(t,e),t.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormGroup(this)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormGroup(this)},Object.defineProperty(t.prototype,"control",{get:function(){return this.formDirective.getFormGroup(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return _(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return O(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return P(this._asyncValidators)},enumerable:!0,configurable:!0}),t.prototype._checkParentType=function(){},t}($),Pe=function(){function e(e){this._cd=e}return Object.defineProperty(e.prototype,"ngClassUntouched",{get:function(){return!!this._cd.control&&this._cd.control.untouched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassTouched",{get:function(){return!!this._cd.control&&this._cd.control.touched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassPristine",{get:function(){return!!this._cd.control&&this._cd.control.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassDirty",{get:function(){return!!this._cd.control&&this._cd.control.dirty},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassValid",{get:function(){return!!this._cd.control&&this._cd.control.valid},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassInvalid",{get:function(){return!!this._cd.control&&this._cd.control.invalid},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassPending",{get:function(){return!!this._cd.control&&this._cd.control.pending},enumerable:!0,configurable:!0}),e}(),Te={"[class.ng-untouched]":"ngClassUntouched","[class.ng-touched]":"ngClassTouched","[class.ng-pristine]":"ngClassPristine","[class.ng-dirty]":"ngClassDirty","[class.ng-valid]":"ngClassValid","[class.ng-invalid]":"ngClassInvalid","[class.ng-pending]":"ngClassPending"},Ne=function(e){function t(t){return e.call(this,t)||this}return M.a(t,e),t}(Pe);Ne.decorators=[{type:F.Directive,args:[{selector:"[formControlName],[ngModel],[formControl]",host:Te}]}],Ne.ctorParameters=function(){return[{type:he,decorators:[{type:F.Self}]}]};var Ie=function(e){function t(t){return e.call(this,t)||this}return M.a(t,e),t}(Pe);Ie.decorators=[{type:F.Directive,args:[{selector:"[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]",host:Te}]}],Ie.ctorParameters=function(){return[{type:$,decorators:[{type:F.Self}]}]};var Ae=function(){function e(e,t){this.validator=e,this.asyncValidator=t,this._onCollectionChange=function(){},this._pristine=!0,this._touched=!1,this._onDisabledChange=[]}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this._status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valid",{get:function(){return"VALID"===this._status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"invalid",{get:function(){return"INVALID"===this._status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pending",{get:function(){return"PENDING"==this._status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return"DISABLED"===this._status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return"DISABLED"!==this._status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"errors",{get:function(){return this._errors},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pristine",{get:function(){return this._pristine},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dirty",{get:function(){return!this.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"touched",{get:function(){return this._touched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"untouched",{get:function(){return!this._touched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valueChanges",{get:function(){return this._valueChanges},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"statusChanges",{get:function(){return this._statusChanges},enumerable:!0,configurable:!0}),e.prototype.setValidators=function(e){this.validator=R(e)},e.prototype.setAsyncValidators=function(e){this.asyncValidator=x(e)},e.prototype.clearValidators=function(){this.validator=null},e.prototype.clearAsyncValidators=function(){this.asyncValidator=null},e.prototype.markAsTouched=function(e){void 0===e&&(e={}),this._touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)},e.prototype.markAsUntouched=function(e){void 0===e&&(e={}),this._touched=!1,this._forEachChild(function(e){e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)},e.prototype.markAsDirty=function(e){void 0===e&&(e={}),this._pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)},e.prototype.markAsPristine=function(e){void 0===e&&(e={}),this._pristine=!0,this._forEachChild(function(e){e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)},e.prototype.markAsPending=function(e){void 0===e&&(e={}),this._status="PENDING",this._parent&&!e.onlySelf&&this._parent.markAsPending(e)},e.prototype.disable=function(e){void 0===e&&(e={}),this._status="DISABLED",this._errors=null,this._forEachChild(function(e){e.disable({onlySelf:!0})}),this._updateValue(),!1!==e.emitEvent&&(this._valueChanges.emit(this._value),this._statusChanges.emit(this._status)),this._updateAncestors(!!e.onlySelf),this._onDisabledChange.forEach(function(e){return e(!0)})},e.prototype.enable=function(e){void 0===e&&(e={}),this._status="VALID",this._forEachChild(function(e){e.enable({onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(!!e.onlySelf),this._onDisabledChange.forEach(function(e){return e(!1)})},e.prototype._updateAncestors=function(e){this._parent&&!e&&(this._parent.updateValueAndValidity(),this._parent._updatePristine(),this._parent._updateTouched())},e.prototype.setParent=function(e){this._parent=e},e.prototype.setValue=function(e,t){},e.prototype.patchValue=function(e,t){},e.prototype.reset=function(e,t){},e.prototype.updateValueAndValidity=function(e){void 0===e&&(e={}),this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this._errors=this._runValidator(),this._status=this._calculateStatus(),"VALID"!==this._status&&"PENDING"!==this._status||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this._valueChanges.emit(this._value),this._statusChanges.emit(this._status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)},e.prototype._updateTreeValidity=function(e){void 0===e&&(e={emitEvent:!0}),this._forEachChild(function(t){return t._updateTreeValidity(e)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})},e.prototype._setInitialStatus=function(){this._status=this._allControlsDisabled()?"DISABLED":"VALID"},e.prototype._runValidator=function(){return this.validator?this.validator(this):null},e.prototype._runAsyncValidator=function(e){var t=this;if(this.asyncValidator){this._status="PENDING";var n=a(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){return t.setErrors(n,{emitEvent:e})})}},e.prototype._cancelExistingSubscription=function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()},e.prototype.setErrors=function(e,t){void 0===t&&(t={}),this._errors=e,this._updateControlsErrors(!1!==t.emitEvent)},e.prototype.get=function(e){return A(this,e,".")},e.prototype.getError=function(e,t){var n=t?this.get(t):this;return n&&n._errors?n._errors[e]:null},e.prototype.hasError=function(e,t){return!!this.getError(e,t)},Object.defineProperty(e.prototype,"root",{get:function(){for(var e=this;e._parent;)e=e._parent;return e},enumerable:!0,configurable:!0}),e.prototype._updateControlsErrors=function(e){this._status=this._calculateStatus(),e&&this._statusChanges.emit(this._status),this._parent&&this._parent._updateControlsErrors(e)},e.prototype._initObservables=function(){this._valueChanges=new F.EventEmitter,this._statusChanges=new F.EventEmitter},e.prototype._calculateStatus=function(){return this._allControlsDisabled()?"DISABLED":this._errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"},e.prototype._updateValue=function(){},e.prototype._forEachChild=function(e){},e.prototype._anyControls=function(e){},e.prototype._allControlsDisabled=function(){},e.prototype._anyControlsHaveStatus=function(e){return this._anyControls(function(t){return t.status===e})},e.prototype._anyControlsDirty=function(){return this._anyControls(function(e){return e.dirty})},e.prototype._anyControlsTouched=function(){return this._anyControls(function(e){return e.touched})},e.prototype._updatePristine=function(e){void 0===e&&(e={}),this._pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)},e.prototype._updateTouched=function(e){void 0===e&&(e={}),this._touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)},e.prototype._isBoxedValue=function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e},e.prototype._registerOnCollectionChange=function(e){this._onCollectionChange=e},e}(),Re=function(e){function t(t,n,r){void 0===t&&(t=null);var o=e.call(this,R(n),x(r))||this;return o._onChange=[],o._applyFormState(t),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o._initObservables(),o}return M.a(t,e),t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this._value=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(function(e){return e(n._value,!1!==t.emitViewToModelChange)}),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){void 0===t&&(t={}),this.setValue(e,t)},t.prototype.reset=function(e,t){void 0===e&&(e=null),void 0===t&&(t={}),this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this._value,t)},t.prototype._updateValue=function(){},t.prototype._anyControls=function(e){return!1},t.prototype._allControlsDisabled=function(){return this.disabled},t.prototype.registerOnChange=function(e){this._onChange.push(e)},t.prototype._clearChangeFns=function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}},t.prototype.registerOnDisabledChange=function(e){this._onDisabledChange.push(e)},t.prototype._forEachChild=function(e){},t.prototype._applyFormState=function(e){this._isBoxedValue(e)?(this._value=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this._value=e},t}(Ae),xe=function(e){function t(t,n,r){var o=e.call(this,n||null,r||null)||this;return o.controls=t,o._initObservables(),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return M.a(t,e),t.prototype.registerControl=function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)},t.prototype.addControl=function(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.removeControl=function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.setControl=function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.contains=function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled},t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this._checkAllValuesPresent(e),Object.keys(e).forEach(function(r){n._throwIfControlMissing(r),n.controls[r].setValue(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){var n=this;void 0===t&&(t={}),Object.keys(e).forEach(function(r){n.controls[r]&&n.controls[r].patchValue(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.reset=function(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this._forEachChild(function(n,r){n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t),this._updatePristine(t),this._updateTouched(t)},t.prototype.getRawValue=function(){return this._reduceChildren({},function(e,t,n){return e[n]=t instanceof Re?t.value:t.getRawValue(),e})},t.prototype._throwIfControlMissing=function(e){if(!Object.keys(this.controls).length)throw new Error("\n        There are no form controls registered with this group yet.  If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.controls[e])throw new Error("Cannot find form control with name: "+e+".")},t.prototype._forEachChild=function(e){var t=this;Object.keys(this.controls).forEach(function(n){return e(t.controls[n],n)})},t.prototype._setUpControls=function(){var e=this;this._forEachChild(function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)})},t.prototype._updateValue=function(){this._value=this._reduceValue()},t.prototype._anyControls=function(e){var t=this,n=!1;return this._forEachChild(function(r,o){n=n||t.contains(o)&&e(r)}),n},t.prototype._reduceValue=function(){var e=this;return this._reduceChildren({},function(t,n,r){return(n.enabled||e.disabled)&&(t[r]=n.value),t})},t.prototype._reduceChildren=function(e,t){var n=e;return this._forEachChild(function(e,r){n=t(n,e,r)}),n},t.prototype._allControlsDisabled=function(){for(var e=0,t=Object.keys(this.controls);e<t.length;e++){var n=t[e];if(this.controls[n].enabled)return!1}return Object.keys(this.controls).length>0||this.disabled},t.prototype._checkAllValuesPresent=function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")})},t}(Ae),ke=function(e){function t(t,n,r){var o=e.call(this,n||null,r||null)||this;return o.controls=t,o._initObservables(),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return M.a(t,e),t.prototype.at=function(e){return this.controls[e]},t.prototype.push=function(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.insert=function(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.removeAt=function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.setControl=function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(t.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this._checkAllValuesPresent(e),e.forEach(function(e,r){n._throwIfControlMissing(r),n.at(r).setValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){var n=this;void 0===t&&(t={}),e.forEach(function(e,r){n.at(r)&&n.at(r).patchValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.reset=function(e,t){void 0===e&&(e=[]),void 0===t&&(t={}),this._forEachChild(function(n,r){n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t),this._updatePristine(t),this._updateTouched(t)},t.prototype.getRawValue=function(){return this.controls.map(function(e){return e instanceof Re?e.value:e.getRawValue()})},t.prototype._throwIfControlMissing=function(e){if(!this.controls.length)throw new Error("\n        There are no form controls registered with this array yet.  If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.at(e))throw new Error("Cannot find form control at index "+e)},t.prototype._forEachChild=function(e){this.controls.forEach(function(t,n){e(t,n)})},t.prototype._updateValue=function(){var e=this;this._value=this.controls.filter(function(t){return t.enabled||e.disabled}).map(function(e){return e.value})},t.prototype._anyControls=function(e){return this.controls.some(function(t){return t.enabled&&e(t)})},t.prototype._setUpControls=function(){var e=this;this._forEachChild(function(t){return e._registerControl(t)})},t.prototype._checkAllValuesPresent=function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: "+n+".")})},t.prototype._allControlsDisabled=function(){for(var e=0,t=this.controls;e<t.length;e++){if(t[e].enabled)return!1}return this.controls.length>0||this.disabled},t.prototype._registerControl=function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)},t}(Ae),De={provide:$,useExisting:Object(F.forwardRef)(function(){return Fe})},Me=Promise.resolve(null),Fe=function(e){function t(t,n){var r=e.call(this)||this;return r._submitted=!1,r.ngSubmit=new F.EventEmitter,r.form=new xe({},O(t),P(n)),r}return M.a(t,e),Object.defineProperty(t.prototype,"submitted",{get:function(){return this._submitted},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),t.prototype.addControl=function(e){var t=this;Me.then(function(){var n=t._findContainer(e.path);e._control=n.registerControl(e.name,e.control),b(e.control,e),e.control.updateValueAndValidity({emitEvent:!1})})},t.prototype.getControl=function(e){return this.form.get(e.path)},t.prototype.removeControl=function(e){var t=this;Me.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)})},t.prototype.addFormGroup=function(e){var t=this;Me.then(function(){var n=t._findContainer(e.path),r=new xe({});C(r,e),n.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})},t.prototype.removeFormGroup=function(e){var t=this;Me.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)})},t.prototype.getFormGroup=function(e){return this.form.get(e.path)},t.prototype.updateModel=function(e,t){var n=this;Me.then(function(){n.form.get(e.path).setValue(t)})},t.prototype.setValue=function(e){this.control.setValue(e)},t.prototype.onSubmit=function(e){return this._submitted=!0,this.ngSubmit.emit(e),!1},t.prototype.onReset=function(){this.resetForm()},t.prototype.resetForm=function(e){void 0===e&&(e=void 0),this.form.reset(e),this._submitted=!1},t.prototype._findContainer=function(e){return e.pop(),e.length?this.form.get(e):this.form},t}($);Fe.decorators=[{type:F.Directive,args:[{selector:"form:not([ngNoForm]):not([formGroup]),ngForm,[ngForm]",providers:[De],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},outputs:["ngSubmit"],exportAs:"ngForm"}]}],Fe.ctorParameters=function(){return[{type:Array,decorators:[{type:F.Optional},{type:F.Self},{type:F.Inject,args:[ee]}]},{type:Array,decorators:[{type:F.Optional},{type:F.Self},{type:F.Inject,args:[te]}]}]};var je={formControlName:'\n    <div [formGroup]="myGroup">\n      <input formControlName="firstName">\n    </div>\n\n    In your class:\n\n    this.myGroup = new FormGroup({\n       firstName: new FormControl()\n    });',formGroupName:'\n    <div [formGroup]="myGroup">\n       <div formGroupName="person">\n          <input formControlName="firstName">\n       </div>\n    </div>\n\n    In your class:\n\n    this.myGroup = new FormGroup({\n       person: new FormGroup({ firstName: new FormControl() })\n    });',formArrayName:'\n    <div [formGroup]="myGroup">\n      <div formArrayName="cities">\n        <div *ngFor="let city of cityArray.controls; index as i">\n          <input [formControlName]="i">\n        </div>\n      </div>\n    </div>\n\n    In your class:\n\n    this.cityArray = new FormArray([new FormControl(\'SF\')]);\n    this.myGroup = new FormGroup({\n      cities: this.cityArray\n    });',ngModelGroup:'\n    <form>\n       <div ngModelGroup="person">\n          <input [(ngModel)]="person.name" name="firstName">\n       </div>\n    </form>',ngModelWithFormGroup:'\n    <div [formGroup]="myGroup">\n       <input formControlName="firstName">\n       <input [(ngModel)]="showMoreControls" [ngModelOptions]="{standalone: true}">\n    </div>\n  '},Le=function(){function e(){}return e.modelParentException=function(){throw new Error('\n      ngModel cannot be used to register form controls with a parent formGroup directive.  Try using\n      formGroup\'s partner directive "formControlName" instead.  Example:\n\n      '+je.formControlName+"\n\n      Or, if you'd like to avoid registering this form control, indicate that it's standalone in ngModelOptions:\n\n      Example:\n\n      "+je.ngModelWithFormGroup)},e.formGroupNameException=function(){throw new Error("\n      ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n      Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n      "+je.formGroupName+"\n\n      Option 2:  Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n      "+je.ngModelGroup)},e.missingNameException=function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n      control must be defined as \'standalone\' in ngModelOptions.\n\n      Example 1: <input [(ngModel)]="person.firstName" name="first">\n      Example 2: <input [(ngModel)]="person.firstName" [ngModelOptions]="{standalone: true}">')},e.modelGroupParentException=function(){throw new Error("\n      ngModelGroup cannot be used with a parent formGroup directive.\n\n      Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n      "+je.formGroupName+"\n\n      Option 2:  Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n      "+je.ngModelGroup)},e}(),Ve={provide:$,useExisting:Object(F.forwardRef)(function(){return He})},He=function(e){function t(t,n,r){var o=e.call(this)||this;return o._parent=t,o._validators=n,o._asyncValidators=r,o}return M.a(t,e),t.prototype._checkParentType=function(){this._parent instanceof t||this._parent instanceof Fe||Le.modelGroupParentException()},t}(Oe);He.decorators=[{type:F.Directive,args:[{selector:"[ngModelGroup]",providers:[Ve],exportAs:"ngModelGroup"}]}],He.ctorParameters=function(){return[{type:$,decorators:[{type:F.Host},{type:F.SkipSelf}]},{type:Array,decorators:[{type:F.Optional},{type:F.Self},{type:F.Inject,args:[ee]}]},{type:Array,decorators:[{type:F.Optional},{type:F.Self},{type:F.Inject,args:[te]}]}]},He.propDecorators={name:[{type:F.Input,args:["ngModelGroup"]}]};var Be={provide:he,useExisting:Object(F.forwardRef)(function(){return We})},qe=Promise.resolve(null),We=function(e){function t(t,n,r,o){var i=e.call(this)||this;return i._control=new Re,i._registered=!1,i.update=new F.EventEmitter,i._parent=t,i._rawValidators=n||[],i._rawAsyncValidators=r||[],i.valueAccessor=I(i,o),i}return M.a(t,e),t.prototype.ngOnChanges=function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),T(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(t.prototype,"control",{get:function(){return this._control},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return this._parent?_(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return O(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return P(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),t.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},t.prototype._setUpControl=function(){this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},t.prototype._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)},t.prototype._setUpStandalone=function(){b(this._control,this),this._control.updateValueAndValidity({emitEvent:!1})},t.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},t.prototype._checkParentType=function(){!(this._parent instanceof He)&&this._parent instanceof Oe?Le.formGroupNameException():this._parent instanceof He||this._parent instanceof Fe||Le.modelParentException()},t.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||Le.missingNameException()},t.prototype._updateValue=function(e){var t=this;qe.then(function(){t.control.setValue(e,{emitViewToModelChange:!1})})},t.prototype._updateDisabled=function(e){var t=this,n=e.isDisabled.currentValue,r=""===n||n&&"false"!==n;qe.then(function(){r&&!t.control.disabled?t.control.disable():!r&&t.control.disabled&&t.control.enable()})},t}(he);We.decorators=[{type:F.Directive,args:[{selector:"[ngModel]:not([formControlName]):not([formControl])",providers:[Be],exportAs:"ngModel"}]}],We.ctorParameters=function(){return[{type:$,decorators:[{type:F.Optional},{type:F.Host}]},{type:Array,decorators:[{type:F.Optional},{type:F.Self},{type:F.Inject,args:[ee]}]},{type:Array,decorators:[{type:F.Optional},{type:F.Self},{type:F.Inject,args:[te]}]},{type:Array,decorators:[{type:F.Optional},{type:F.Self},{type:F.Inject,args:[oe]}]}]},We.propDecorators={name:[{type:F.Input}],isDisabled:[{type:F.Input,args:["disabled"]}],model:[{type:F.Input,args:["ngModel"]}],options:[{type:F.Input,args:["ngModelOptions"]}],update:[{type:F.Output,args:["ngModelChange"]}]};var Ue=function(){function e(){}return e.controlParentException=function(){throw new Error("formControlName must be used with a parent formGroup directive.  You'll want to add a formGroup\n       directive and pass it an existing FormGroup instance (you can create one in your class).\n\n      Example:\n\n      "+je.formControlName)},e.ngModelGroupException=function(){throw new Error('formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n       that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n       Option 1:  Update the parent to be formGroupName (reactive form strategy)\n\n        '+je.formGroupName+"\n\n        Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n        "+je.ngModelGroup)},e.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n       Example:\n\n       "+je.formControlName)},e.groupParentException=function(){throw new Error("formGroupName must be used with a parent formGroup directive.  You'll want to add a formGroup\n      directive and pass it an existing FormGroup instance (you can create one in your class).\n\n      Example:\n\n      "+je.formGroupName)},e.arrayParentException=function(){throw new Error("formArrayName must be used with a parent formGroup directive.  You'll want to add a formGroup\n       directive and pass it an existing FormGroup instance (you can create one in your class).\n\n        Example:\n\n        "+je.formArrayName)},e.disabledAttrWarning=function(){console.warn("\n      It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n      when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n      you. We recommend using this approach to avoid 'changed after checked' errors.\n       \n      Example: \n      form = new FormGroup({\n        first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n        last: new FormControl('Drew', Validators.required)\n      });\n    ")},e}(),ze={provide:he,useExisting:Object(F.forwardRef)(function(){return Ge})},Ge=function(e){function t(t,n,r){var o=e.call(this)||this;return o.update=new F.EventEmitter,o._rawValidators=t||[],o._rawAsyncValidators=n||[],o.valueAccessor=I(o,r),o}return M.a(t,e),Object.defineProperty(t.prototype,"isDisabled",{set:function(e){Ue.disabledAttrWarning()},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(e){this._isControlChanged(e)&&(b(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),T(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)},Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return O(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return P(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),t.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},t.prototype._isControlChanged=function(e){return e.hasOwnProperty("form")},t}(he);Ge.decorators=[{type:F.Directive,args:[{selector:"[formControl]",providers:[ze],exportAs:"ngForm"}]}],Ge.ctorParameters=function(){return[{type:Array,decorators:[{type:F.Optional},{type:F.Self},{type:F.Inject,args:[ee]}]},{type:Array,decorators:[{type:F.Optional},{type:F.Self},{type:F.Inject,args:[te]}]},{type:Array,decorators:[{type:F.Optional},{type:F.Self},{type:F.Inject,args:[oe]}]}]},Ge.propDecorators={form:[{type:F.Input,args:["formControl"]}],model:[{type:F.Input,args:["ngModel"]}],update:[{type:F.Output,args:["ngModelChange"]}],isDisabled:[{type:F.Input,args:["disabled"]}]};var Qe={provide:$,useExisting:Object(F.forwardRef)(function(){return Ke})},Ke=function(e){function t(t,n){var r=e.call(this)||this;return r._validators=t,r._asyncValidators=n,r._submitted=!1,r.directives=[],r.form=null,r.ngSubmit=new F.EventEmitter,r}return M.a(t,e),t.prototype.ngOnChanges=function(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())},Object.defineProperty(t.prototype,"submitted",{get:function(){return this._submitted},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),t.prototype.addControl=function(e){var t=this.form.get(e.path);return b(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t},t.prototype.getControl=function(e){return this.form.get(e.path)},t.prototype.removeControl=function(e){k(this.directives,e)},t.prototype.addFormGroup=function(e){var t=this.form.get(e.path);C(t,e),t.updateValueAndValidity({emitEvent:!1})},t.prototype.removeFormGroup=function(e){},t.prototype.getFormGroup=function(e){return this.form.get(e.path)},t.prototype.addFormArray=function(e){var t=this.form.get(e.path);C(t,e),t.updateValueAndValidity({emitEvent:!1})},t.prototype.removeFormArray=function(e){},t.prototype.getFormArray=function(e){return this.form.get(e.path)},t.prototype.updateModel=function(e,t){this.form.get(e.path).setValue(t)},t.prototype.onSubmit=function(e){return this._submitted=!0,this.ngSubmit.emit(e),!1},t.prototype.onReset=function(){this.resetForm()},t.prototype.resetForm=function(e){void 0===e&&(e=void 0),this.form.reset(e),this._submitted=!1},t.prototype._updateDomValue=function(){var e=this;this.directives.forEach(function(t){var n=e.form.get(t.path);t._control!==n&&(w(t._control,t),n&&b(n,t),t._control=n)}),this.form._updateTreeValidity({emitEvent:!1})},t.prototype._updateRegistrations=function(){var e=this;this.form._registerOnCollectionChange(function(){return e._updateDomValue()}),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){}),this._oldForm=this.form},t.prototype._updateValidators=function(){var e=O(this._validators);this.form.validator=re.compose([this.form.validator,e]);var t=P(this._asyncValidators);this.form.asyncValidator=re.composeAsync([this.form.asyncValidator,t])},t.prototype._checkFormPresent=function(){this.form||Ue.missingFormException()},t}($);Ke.decorators=[{type:F.Directive,args:[{selector:"[formGroup]",providers:[Qe],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},exportAs:"ngForm"}]}],Ke.ctorParameters=function(){return[{type:Array,decorators:[{type:F.Optional},{type:F.Self},{type:F.Inject,args:[ee]}]},{type:Array,decorators:[{type:F.Optional},{type:F.Self},{type:F.Inject,args:[te]}]}]},Ke.propDecorators={form:[{type:F.Input,args:["formGroup"]}],ngSubmit:[{type:F.Output}]};var Je={provide:$,useExisting:Object(F.forwardRef)(function(){return Ye})},Ye=function(e){function t(t,n,r){var o=e.call(this)||this;return o._parent=t,o._validators=n,o._asyncValidators=r,o}return M.a(t,e),t.prototype._checkParentType=function(){D(this._parent)&&Ue.groupParentException()},t}(Oe);Ye.decorators=[{type:F.Directive,args:[{selector:"[formGroupName]",providers:[Je]}]}],Ye.ctorParameters=function(){return[{type:$,decorators:[{type:F.Optional},{type:F.Host},{type:F.SkipSelf}]},{type:Array,decorators:[{type:F.Optional},{type:F.Self},{type:F.Inject,args:[ee]}]},{type:Array,decorators:[{type:F.Optional},{type:F.Self},{type:F.Inject,args:[te]}]}]},Ye.propDecorators={name:[{type:F.Input,args:["formGroupName"]}]};var Xe={provide:$,useExisting:Object(F.forwardRef)(function(){return Ze})},Ze=function(e){function t(t,n,r){var o=e.call(this)||this;return o._parent=t,o._validators=n,o._asyncValidators=r,o}return M.a(t,e),t.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormArray(this)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormArray(this)},Object.defineProperty(t.prototype,"control",{get:function(){return this.formDirective.getFormArray(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return _(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return O(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return P(this._asyncValidators)},enumerable:!0,configurable:!0}),t.prototype._checkParentType=function(){D(this._parent)&&Ue.arrayParentException()},t}($);Ze.decorators=[{type:F.Directive,args:[{selector:"[formArrayName]",providers:[Xe]}]}],Ze.ctorParameters=function(){return[{type:$,decorators:[{type:F.Optional},{type:F.Host},{type:F.SkipSelf}]},{type:Array,decorators:[{type:F.Optional},{type:F.Self},{type:F.Inject,args:[ee]}]},{type:Array,decorators:[{type:F.Optional},{type:F.Self},{type:F.Inject,args:[te]}]}]},Ze.propDecorators={name:[{type:F.Input,args:["formArrayName"]}]};var $e={provide:he,useExisting:Object(F.forwardRef)(function(){return et})},et=function(e){function t(t,n,r,o){var i=e.call(this)||this;return i._added=!1,i.update=new F.EventEmitter,i._parent=t,i._rawValidators=n||[],i._rawAsyncValidators=r||[],i.valueAccessor=I(i,o),i}return M.a(t,e),Object.defineProperty(t.prototype,"isDisabled",{set:function(e){Ue.disabledAttrWarning()},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(e){this._added||this._setUpControl(),T(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},t.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},Object.defineProperty(t.prototype,"path",{get:function(){return _(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return O(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return P(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this._control},enumerable:!0,configurable:!0}),t.prototype._checkParentType=function(){!(this._parent instanceof Ye)&&this._parent instanceof Oe?Ue.ngModelGroupException():this._parent instanceof Ye||this._parent instanceof Ke||this._parent instanceof Ze||Ue.controlParentException()},t.prototype._setUpControl=function(){this._checkParentType(),this._control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0},t}(he);et.decorators=[{type:F.Directive,args:[{selector:"[formControlName]",providers:[$e]}]}],et.ctorParameters=function(){return[{type:$,decorators:[{type:F.Optional},{type:F.Host},{type:F.SkipSelf}]},{type:Array,decorators:[{type:F.Optional},{type:F.Self},{type:F.Inject,args:[ee]}]},{type:Array,decorators:[{type:F.Optional},{type:F.Self},{type:F.Inject,args:[te]}]},{type:Array,decorators:[{type:F.Optional},{type:F.Self},{type:F.Inject,args:[oe]}]}]},et.propDecorators={name:[{type:F.Input,args:["formControlName"]}],model:[{type:F.Input,args:["ngModel"]}],update:[{type:F.Output,args:["ngModelChange"]}],isDisabled:[{type:F.Input,args:["disabled"]}]};var tt={provide:ee,useExisting:Object(F.forwardRef)(function(){return rt}),multi:!0},nt={provide:ee,useExisting:Object(F.forwardRef)(function(){return ot}),multi:!0},rt=function(){function e(){}return Object.defineProperty(e.prototype,"required",{get:function(){return this._required},set:function(e){this._required=null!=e&&!1!==e&&""+e!="false",this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),e.prototype.validate=function(e){return this.required?re.required(e):null},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e}();rt.decorators=[{type:F.Directive,args:[{selector:":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]",providers:[tt],host:{"[attr.required]":'required ? "" : null'}}]}],rt.ctorParameters=function(){return[]},rt.propDecorators={required:[{type:F.Input}]};var ot=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return M.a(t,e),t.prototype.validate=function(e){return this.required?re.requiredTrue(e):null},t}(rt);ot.decorators=[{type:F.Directive,args:[{selector:"input[type=checkbox][required][formControlName],input[type=checkbox][required][formControl],input[type=checkbox][required][ngModel]",providers:[nt],host:{"[attr.required]":'required ? "" : null'}}]}],ot.ctorParameters=function(){return[]};var it={provide:ee,useExisting:Object(F.forwardRef)(function(){return st}),multi:!0},st=function(){function e(){}return Object.defineProperty(e.prototype,"email",{set:function(e){this._enabled=""===e||!0===e||"true"===e,this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),e.prototype.validate=function(e){return this._enabled?re.email(e):null},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e}();st.decorators=[{type:F.Directive,args:[{selector:"[email][formControlName],[email][formControl],[email][ngModel]",providers:[it]}]}],st.ctorParameters=function(){return[]},st.propDecorators={email:[{type:F.Input}]};var at={provide:ee,useExisting:Object(F.forwardRef)(function(){return ut}),multi:!0},ut=function(){function e(){}return e.prototype.ngOnChanges=function(e){"minlength"in e&&(this._createValidator(),this._onChange&&this._onChange())},e.prototype.validate=function(e){return null==this.minlength?null:this._validator(e)},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e.prototype._createValidator=function(){this._validator=re.minLength(parseInt(this.minlength,10))},e}();ut.decorators=[{type:F.Directive,args:[{selector:"[minlength][formControlName],[minlength][formControl],[minlength][ngModel]",providers:[at],host:{"[attr.minlength]":"minlength ? minlength : null"}}]}],ut.ctorParameters=function(){return[]},ut.propDecorators={minlength:[{type:F.Input}]};var ct={provide:ee,useExisting:Object(F.forwardRef)(function(){return lt}),multi:!0},lt=function(){function e(){}return e.prototype.ngOnChanges=function(e){"maxlength"in e&&(this._createValidator(),this._onChange&&this._onChange())},e.prototype.validate=function(e){return null!=this.maxlength?this._validator(e):null},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e.prototype._createValidator=function(){this._validator=re.maxLength(parseInt(this.maxlength,10))},e}();lt.decorators=[{type:F.Directive,args:[{selector:"[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]",providers:[ct],host:{"[attr.maxlength]":"maxlength ? maxlength : null"}}]}],lt.ctorParameters=function(){return[]},lt.propDecorators={maxlength:[{type:F.Input}]};var pt={provide:ee,useExisting:Object(F.forwardRef)(function(){return ht}),multi:!0},ht=function(){function e(){}return e.prototype.ngOnChanges=function(e){"pattern"in e&&(this._createValidator(),this._onChange&&this._onChange())},e.prototype.validate=function(e){return this._validator(e)},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e.prototype._createValidator=function(){this._validator=re.pattern(this.pattern)},e}();ht.decorators=[{type:F.Directive,args:[{selector:"[pattern][formControlName],[pattern][formControl],[pattern][ngModel]",providers:[pt],host:{"[attr.pattern]":"pattern ? pattern : null"}}]}],ht.ctorParameters=function(){return[]},ht.propDecorators={pattern:[{type:F.Input}]};var ft=function(){function e(){}return e.prototype.group=function(e,t){void 0===t&&(t=null);var n=this._reduceControls(e),r=null!=t?t.validator:null,o=null!=t?t.asyncValidator:null;return new xe(n,r,o)},e.prototype.control=function(e,t,n){return new Re(e,t,n)},e.prototype.array=function(e,t,n){var r=this,o=e.map(function(e){return r._createControl(e)});return new ke(o,t,n)},e.prototype._reduceControls=function(e){var t=this,n={};return Object.keys(e).forEach(function(r){n[r]=t._createControl(e[r])}),n},e.prototype._createControl=function(e){if(e instanceof Re||e instanceof xe||e instanceof ke)return e;if(Array.isArray(e)){var t=e[0],n=e.length>1?e[1]:null,r=e.length>2?e[2]:null;return this.control(t,n,r)}return this.control(e)},e}();ft.decorators=[{type:F.Injectable}],ft.ctorParameters=function(){return[]};var dt=(new F.Version("4.4.6"),function(){function e(){}return e}());dt.decorators=[{type:F.Directive,args:[{selector:"form:not([ngNoForm]):not([ngNativeValidate])",host:{novalidate:""}}]}],dt.ctorParameters=function(){return[]};var yt=[dt,be,Ee,ce,pe,me,se,_e,Ce,ye,Ne,Ie,rt,ut,lt,ht,ot,st],vt=[We,He,Fe],mt=[Ge,Ke,et,Ye,Ze],gt=function(){function e(){}return e}();gt.decorators=[{type:F.NgModule,args:[{declarations:yt,exports:yt}]}],gt.ctorParameters=function(){return[]};var _t=function(){function e(){}return e}();_t.decorators=[{type:F.NgModule,args:[{declarations:vt,providers:[de],exports:[gt,vt]}]}],_t.ctorParameters=function(){return[]};var bt=function(){function e(){}return e}();bt.decorators=[{type:F.NgModule,args:[{declarations:[mt],providers:[ft,de],exports:[gt,mt]}]}],bt.ctorParameters=function(){return[]}},cm6g:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("/HC2"),o=function(){function e(){}return e.getCollection=function(e){var t=e.toString();return this.collections_[t]||(this.collections_[t]=new r.StatsCollection),this.collections_[t]},e.getOrCreateReporter=function(e,t){var n=e.toString();return this.reporters_[n]||(this.reporters_[n]=t()),this.reporters_[n]},e.collections_={},e.reporters_={},e}();t.StatsManager=o},ctu8:function(e,t){Array.prototype.findIndex||Object.defineProperty(Array.prototype,"findIndex",{value:function(e){if(null==this)throw new TypeError('"this" is null or not defined');var t=Object(this),n=t.length>>>0;if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var r=arguments[1],o=0;o<n;){var i=t[o];if(e.call(r,i,o,t))return o;o++}return-1}})},dVae:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n("isNy"),i=n("fvGz"),s=n("F1yO"),a=n("JEJ4"),u=function(){return r||(r=new o.SortedMap(s.stringCompare)),r},c=function(){function e(e,t){void 0===t&&(t=u()),this.value=e,this.children=t}return e.fromObject=function(t){var n=e.Empty;return a.forEach(t,function(e,t){n=n.set(new i.Path(e),t)}),n},e.prototype.isEmpty=function(){return null===this.value&&this.children.isEmpty()},e.prototype.findRootMostMatchingPathAndValue=function(e,t){if(null!=this.value&&t(this.value))return{path:i.Path.Empty,value:this.value};if(e.isEmpty())return null;var n=e.getFront(),r=this.children.get(n);if(null!==r){var o=r.findRootMostMatchingPathAndValue(e.popFront(),t);if(null!=o){return{path:new i.Path(n).child(o.path),value:o.value}}return null}return null},e.prototype.findRootMostValueAndPath=function(e){return this.findRootMostMatchingPathAndValue(e,function(){return!0})},e.prototype.subtree=function(t){if(t.isEmpty())return this;var n=t.getFront(),r=this.children.get(n);return null!==r?r.subtree(t.popFront()):e.Empty},e.prototype.set=function(t,n){if(t.isEmpty())return new e(n,this.children);var r=t.getFront(),o=this.children.get(r)||e.Empty,i=o.set(t.popFront(),n),s=this.children.insert(r,i);return new e(this.value,s)},e.prototype.remove=function(t){if(t.isEmpty())return this.children.isEmpty()?e.Empty:new e(null,this.children);var n=t.getFront(),r=this.children.get(n);if(r){var o=r.remove(t.popFront()),i=void 0;return i=o.isEmpty()?this.children.remove(n):this.children.insert(n,o),null===this.value&&i.isEmpty()?e.Empty:new e(this.value,i)}return this},e.prototype.get=function(e){if(e.isEmpty())return this.value;var t=e.getFront(),n=this.children.get(t);return n?n.get(e.popFront()):null},e.prototype.setTree=function(t,n){if(t.isEmpty())return n;var r=t.getFront(),o=this.children.get(r)||e.Empty,i=o.setTree(t.popFront(),n),s=void 0;return s=i.isEmpty()?this.children.remove(r):this.children.insert(r,i),new e(this.value,s)},e.prototype.fold=function(e){return this.fold_(i.Path.Empty,e)},e.prototype.fold_=function(e,t){var n={};return this.children.inorderTraversal(function(r,o){n[r]=o.fold_(e.child(r),t)}),t(e,this.value,n)},e.prototype.findOnPath=function(e,t){return this.findOnPath_(e,i.Path.Empty,t)},e.prototype.findOnPath_=function(e,t,n){var r=!!this.value&&n(t,this.value);if(r)return r;if(e.isEmpty())return null;var o=e.getFront(),i=this.children.get(o);return i?i.findOnPath_(e.popFront(),t.child(o),n):null},e.prototype.foreachOnPath=function(e,t){return this.foreachOnPath_(e,i.Path.Empty,t)},e.prototype.foreachOnPath_=function(t,n,r){if(t.isEmpty())return this;this.value&&r(n,this.value);var o=t.getFront(),i=this.children.get(o);return i?i.foreachOnPath_(t.popFront(),n.child(o),r):e.Empty},e.prototype.foreach=function(e){this.foreach_(i.Path.Empty,e)},e.prototype.foreach_=function(e,t){this.children.inorderTraversal(function(n,r){r.foreach_(e.child(n),t)}),this.value&&t(e,this.value)},e.prototype.foreachChild=function(e){this.children.inorderTraversal(function(t,n){n.value&&e(t,n.value)})},e.Empty=new e(null),e}();t.ImmutableTree=c},"dmC+":function(e,t,n){"use strict";function r(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new a(e,t))}}function o(e,t){return r(e,t)(this)}var i=n("E9/g"),s=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},a=function(){function e(e,t){this.project=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.project,this.thisArg))},e}(),u=function(e){function t(t,n,r){e.call(this,t),this.project=n,this.count=0,this.thisArg=r||this}return s(t,e),t.prototype._next=function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(i.a);t.a=o},"e9+7":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){for(var t=[],n=0,r=0;r<e.length;r++){for(var o=e.charCodeAt(r);o>255;)t[n++]=255&o,o>>=8;t[n++]=o}return t},o=function(e){if(e.length<8192)return String.fromCharCode.apply(null,e);for(var t="",n=0;n<e.length;n+=8192){var r=e.slice(n,n+8192);t+=String.fromCharCode.apply(null,r)}return t};t.base64={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray:function(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();for(var n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[],o=0;o<e.length;o+=3){var i=e[o],s=o+1<e.length,a=s?e[o+1]:0,u=o+2<e.length,c=u?e[o+2]:0,l=i>>2,p=(3&i)<<4|a>>4,h=(15&a)<<2|c>>6,f=63&c;u||(f=64,s||(h=64)),r.push(n[l],n[p],n[h],n[f])}return r.join("")},encodeString:function(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(r(e),t)},decodeString:function(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):o(this.decodeStringToByteArray(e,t))},decodeStringToByteArray:function(e,t){this.init_();for(var n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[],o=0;o<e.length;){var i=n[e.charAt(o++)],s=o<e.length,a=s?n[e.charAt(o)]:0;++o;var u=o<e.length,c=u?n[e.charAt(o)]:64;++o;var l=o<e.length,p=l?n[e.charAt(o)]:64;if(++o,null==i||null==a||null==c||null==p)throw Error();var h=i<<2|a>>4;if(r.push(h),64!=c){var f=a<<4&240|c>>2;if(r.push(f),64!=p){var d=c<<6&192|p;r.push(d)}}}return r},init_:function(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(var e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}},t.base64Encode=function(e){var n=r(e);return t.base64.encodeByteArray(n,!0)},t.base64Decode=function(e){try{return t.base64.decodeString(e,!0)}catch(e){console.error("base64Decode failed: ",e)}return null}},ertD:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t,n,r,o){this.type=e,this.snapshotNode=t,this.childName=n,this.oldSnap=r,this.prevName=o}return e.valueChange=function(t){return new e(e.VALUE,t)},e.childAddedChange=function(t,n){return new e(e.CHILD_ADDED,n,t)},e.childRemovedChange=function(t,n){return new e(e.CHILD_REMOVED,n,t)},e.childChangedChange=function(t,n,r){return new e(e.CHILD_CHANGED,n,t,r)},e.childMovedChange=function(t,n){return new e(e.CHILD_MOVED,n,t)},e.CHILD_ADDED="child_added",e.CHILD_REMOVED="child_removed",e.CHILD_CHANGED="child_changed",e.CHILD_MOVED="child_moved",e.VALUE="value",e}();t.Change=r},f9zQ:function(e,t,n){"use strict";function r(e){switch(e.length){case 0:return new fe.NoopAnimationPlayer;case 1:return e[0];default:return new fe["\u0275AnimationGroupPlayer"](e)}}function o(e,t,n,r,o,i){void 0===o&&(o={}),void 0===i&&(i={});var s=[],a=[],u=-1,c=null;if(r.forEach(function(e){var n=e.offset,r=n==u,l=r&&c||{};Object.keys(e).forEach(function(n){var r=n,a=e[n];if("offset"!==n)switch(r=t.normalizePropertyName(r,s),a){case fe["\u0275PRE_STYLE"]:a=o[n];break;case fe.AUTO_STYLE:a=i[n];break;default:a=t.normalizeStyleValue(n,r,a,s)}l[r]=a}),r||a.push(l),c=l,u=n}),s.length){throw new Error("Unable to animate due to the following errors:\n - "+s.join("\n - "))}return a}function i(e,t,n,r){switch(t){case"start":e.onStart(function(){return r(n&&s(n,"start",e.totalTime))});break;case"done":e.onDone(function(){return r(n&&s(n,"done",e.totalTime))});break;case"destroy":e.onDestroy(function(){return r(n&&s(n,"destroy",e.totalTime))})}}function s(e,t,n){var r=a(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,void 0==n?e.totalTime:n),o=e._data;return null!=o&&(r._data=o),r}function a(e,t,n,r,o,i){return void 0===o&&(o=""),void 0===i&&(i=0),{element:e,triggerName:t,fromState:n,toState:r,phaseName:o,totalTime:i}}function u(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 c(e){var t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}function l(e){if("number"==typeof e)return e;var t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:p(parseFloat(t[1]),t[2])}function p(e,t){switch(t){case"s":return e*Se;default:return e}}function h(e,t,n){return e.hasOwnProperty("duration")?e:f(e,t,n)}function f(e,t,n){var r,o=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,i=0,s="";if("string"==typeof e){var a=e.match(o);if(null===a)return t.push('The provided timing value "'+e+'" is invalid.'),{duration:0,delay:0,easing:""};r=p(parseFloat(a[1]),a[2]);var u=a[3];null!=u&&(i=p(Math.floor(parseFloat(u)),a[4]));var c=a[5];c&&(s=c)}else r=e;if(!n){var l=!1,h=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(h,0,'The provided timing value "'+e+'" is invalid.')}return{duration:r,delay:i,easing:s}}function d(e,t){return void 0===t&&(t={}),Object.keys(e).forEach(function(n){t[n]=e[n]}),t}function y(e){var t={};return Array.isArray(e)?e.forEach(function(e){return v(e,!1,t)}):v(e,!1,t),t}function v(e,t,n){if(void 0===n&&(n={}),t)for(var r in e)n[r]=e[r];else d(e,n);return n}function m(e,t){e.style&&Object.keys(t).forEach(function(n){var r=S(n);e.style[r]=t[n]})}function g(e,t){e.style&&Object.keys(t).forEach(function(t){var n=S(t);e.style[n]=""})}function _(e){return Array.isArray(e)?1==e.length?e[0]:Object(fe.sequence)(e):e}function b(e,t,n){var r=t.params||{},o=w(e);o.length&&o.forEach(function(e){r.hasOwnProperty(e)||n.push("Unable to resolve the local animation param "+e+" in the given list of values")})}function w(e){var t=[];if("string"==typeof e){for(var n=e.toString(),r=void 0;r=Ie.exec(n);)t.push(r[1]);Ie.lastIndex=0}return t}function C(e,t,n){var r=e.toString(),o=r.replace(Ie,function(e,r){var o=t[r];return t.hasOwnProperty(r)||(n.push("Please provide a value for the animation param "+r),o=""),o.toString()});return o==r?e:o}function E(e){for(var t=[],n=e.next();!n.done;)t.push(n.value),n=e.next();return t}function S(e){return e.replace(Ae,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e[1].toUpperCase()})}function O(e,t){return 0===e||0===t}function P(e,t,n){switch(t.type){case 7:return e.visitTrigger(t,n);case 0:return e.visitState(t,n);case 1:return e.visitTransition(t,n);case 2:return e.visitSequence(t,n);case 3:return e.visitGroup(t,n);case 4:return e.visitAnimate(t,n);case 5:return e.visitKeyframes(t,n);case 6:return e.visitStyle(t,n);case 8:return e.visitReference(t,n);case 9:return e.visitAnimateChild(t,n);case 10:return e.visitAnimateRef(t,n);case 11:return e.visitQuery(t,n);case 12:return e.visitStagger(t,n);default:throw new Error("Unable to resolve animation metadata node #"+t.type)}}function T(e,t){var n=[];return"string"==typeof e?e.split(/\s*,\s*/).forEach(function(e){return N(e,n,t)}):n.push(e),n}function N(e,t,n){":"==e[0]&&(e=I(e,n));var r=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push('The provided transition expression "'+e+'" is not supported'),t;var o=r[1],i=r[2],s=r[3];t.push(A(o,s));var a=o==Re&&s==Re;"<"!=i[0]||a||t.push(A(s,o))}function I(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";default:return t.push('The transition alias value "'+e+'" is not supported'),"* => *"}}function A(e,t){var n=xe.has(e)||ke.has(e),r=xe.has(t)||ke.has(t);return function(o,i){var s=e==Re||e==o,a=t==Re||t==i;return!s&&n&&"boolean"==typeof o&&(s=o?xe.has(e):ke.has(e)),!a&&r&&"boolean"==typeof i&&(a=i?xe.has(t):ke.has(t)),s&&a}}function R(e,t){return(new Le).build(e,t)}function x(e){var t=!!e.split(/\s*,\s*/).find(function(e){return e==De});return t&&(e=e.replace(Me,"")),e=e.replace(je,Oe).replace(Fe,Pe).replace(/@\*/g,Te).replace(/@\w+/g,function(e){return Te+"-"+e.substr(1)}).replace(/:animating/g,Ne),[e,t]}function k(e){return e?d(e):null}function D(e){if("string"==typeof e)return null;var t=null;if(Array.isArray(e))e.forEach(function(e){if(M(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}});else if(M(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}return t}function M(e){return!Array.isArray(e)&&"object"==typeof e}function F(e,t){var n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e){var r=h(e,t).duration;return L(r,0,"")}var o=e;if(o.split(/\s+/).some(function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)})){var i=L(0,0,"");return i.dynamic=!0,i.strValue=o,i}return n=n||h(o,t),L(n.duration,n.delay,n.easing)}function j(e){return e?(e=d(e),e.params&&(e.params=k(e.params))):e={},e}function L(e,t,n){return{duration:e,delay:t,easing:n}}function V(e,t,n,r,o,i,s,a){return void 0===s&&(s=null),void 0===a&&(a=!1),{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:r,duration:o,delay:i,totalTime:o+i,easing:s,subTimeline:a}}function H(e,t,n,r,o,i,s,a){return void 0===r&&(r={}),void 0===o&&(o={}),void 0===a&&(a=[]),(new Be).buildKeyframes(e,t,n,r,o,i,s,a)}function B(e,t){void 0===t&&(t=3);var n=Math.pow(10,t-1);return Math.round(e*n)/n}function q(e,t){var n,r={};return e.forEach(function(e){"*"===e?(n=n||Object.keys(t),n.forEach(function(e){r[e]=fe.AUTO_STYLE})):v(e,!1,r)}),r}function W(e,t,n,r,o,i,s,a,u,c,l,p){return{type:0,element:e,triggerName:t,isRemovalTransition:o,fromState:n,fromStyles:i,toState:r,toStyles:s,timelines:a,queriedElements:u,preStyleProps:c,postStyleProps:l,errors:p}}function U(e,t,n){return e.some(function(e){return e(t,n)})}function z(e,t){return new Ze(e,t)}function G(e,t){return new Ye(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(e,t){return!0}],options:null,queryCount:0,depCount:0},t)}function Q(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}function K(e,t,n){var r;if(e instanceof Map){if(r=e.get(t)){if(r.length){var o=r.indexOf(n);r.splice(o,1)}0==r.length&&e.delete(t)}}else if(r=e[t]){if(r.length){var o=r.indexOf(n);r.splice(o,1)}0==r.length&&delete e[t]}return r}function J(e){return null!=e?e:null}function Y(e){return e&&1===e.nodeType}function X(e){return"start"==e||"done"==e}function Z(e,t){var n=e.style.display;return e.style.display=null!=t?t:"none",n}function $(e,t,n,r){var o=[];t.forEach(function(e){return o.push(Z(e))});var i=new Map,s=[];n.forEach(function(t,n){var o={};t.forEach(function(t){var i=o[t]=e.computeStyle(n,t,r);i&&0!=i.length||(n[ot]=rt,s.push(n))}),i.set(n,o)});var a=0;return t.forEach(function(e){return Z(e,o[a++])}),[i,s]}function ee(e){var t,n=new Set(e),r=new Set;return t=function(e){return!e||!n.has(e.parentNode)&&(!!r.has(e.parentNode)||!!t(e.parentNode)&&(r.add(e),!0))}}function te(e,t){if(e.classList)return e.classList.contains(t);var n=e[pt];return n&&n[t]}function ne(e,t){if(e.classList)e.classList.add(t);else{var n=e[pt];n||(n=e[pt]={}),n[t]=!0}}function re(e,t){if(e.classList)e.classList.remove(t);else{var n=e[pt];n&&delete n[t]}}function oe(){return"undefined"!=typeof document?document.body:null}function ie(e,t,n){r(n).onDone(function(){return e.processLeaveNode(t)})}function se(e){var t=[];return ae(e,t),t}function ae(e,t){for(var n=0;n<e.length;n++){var r=e[n];r instanceof fe["\u0275AnimationGroupPlayer"]?ae(r.players,t):t.push(r)}}function ue(e,t){var n=Object.keys(e),r=Object.keys(t);if(n.length!=r.length)return!1;for(var o=0;o<n.length;o++){var i=n[o];if(!t.hasOwnProperty(i)||e[i]!==t[i])return!1}return!0}function ce(e,t,n){var r=n.get(e);if(!r)return!1;var o=t.get(e);return o?r.forEach(function(e){return o.add(e)}):t.set(e,r),n.delete(e),!0}function le(e,t){return window.getComputedStyle(e)[t]}function pe(){return"undefined"!=typeof Element&&"function"==typeof Element.prototype.animate}n.d(t,"a",function(){return Ee}),n.d(t,"c",function(){return Ge}),n.d(t,"f",function(){return Qe}),n.d(t,"d",function(){return Ce}),n.d(t,"b",function(){return ht}),n.d(t,"e",function(){return dt}),n.d(t,"g",function(){return pe});var he=n("6Xbx"),fe=n("EyWH"),de=function(e,t){return!1},ye=function(e,t){return!1},ve=function(e,t,n){return[]};if("undefined"!=typeof Element){if(de=function(e,t){return e.contains(t)},Element.prototype.matches)ye=function(e,t){return e.matches(t)};else{var me=Element.prototype,ge=me.matchesSelector||me.mozMatchesSelector||me.msMatchesSelector||me.oMatchesSelector||me.webkitMatchesSelector;ge&&(ye=function(e,t){return ge.apply(e,[t])})}ve=function(e,t,n){var r=[];if(n)r.push.apply(r,e.querySelectorAll(t));else{var o=e.querySelector(t);o&&r.push(o)}return r}}var _e=ye,be=de,we=ve,Ce=function(){function e(){}return e.prototype.matchesElement=function(e,t){return _e(e,t)},e.prototype.containsElement=function(e,t){return be(e,t)},e.prototype.query=function(e,t,n){return we(e,t,n)},e.prototype.computeStyle=function(e,t,n){return n||""},e.prototype.animate=function(e,t,n,r,o,i){return void 0===i&&(i=[]),new fe.NoopAnimationPlayer},e}(),Ee=function(){function e(){}return e}();Ee.NOOP=new Ce;var Se=1e3,Oe=".ng-enter",Pe=".ng-leave",Te=".ng-trigger",Ne=".ng-animating",Ie=new RegExp("{{\\s*(.+?)\\s*}}","g"),Ae=/-+([a-z0-9])/g,Re="*",xe=new Set;xe.add("true"),xe.add("1");var ke=new Set;ke.add("false"),ke.add("0");var De=":self",Me=new RegExp("s*"+De+"s*,?","g"),Fe=new RegExp(":leave","g"),je=new RegExp(":enter","g"),Le=function(){function e(){}return e.prototype.build=function(e,t){var n=new Ve(t);return this._resetContextStyleTimingState(n),P(this,_(e),n)},e.prototype._resetContextStyleTimingState=function(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0},e.prototype.visitTrigger=function(e,t){var n=this,r=t.queryCount=0,o=t.depCount=0,i=[],s=[];return e.definitions.forEach(function(e){if(n._resetContextStyleTimingState(t),0==e.type){var a=e,u=a.name;u.split(/\s*,\s*/).forEach(function(e){a.name=e,i.push(n.visitState(a,t))}),a.name=u}else if(1==e.type){var c=n.visitTransition(e,t);r+=c.queryCount,o+=c.depCount,s.push(c)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:e.name,states:i,transitions:s,queryCount:r,depCount:o,options:null}},e.prototype.visitState=function(e,t){var n=this.visitStyle(e.styles,t),r=e.options&&e.options.params||null;if(n.containsDynamicStyles){var o=new Set,i=r||{};if(n.styles.forEach(function(e){if(M(e)){var t=e;Object.keys(t).forEach(function(e){w(t[e]).forEach(function(e){i.hasOwnProperty(e)||o.add(e)})})}}),o.size){var s=E(o.values());t.errors.push('state("'+e.name+'", ...) must define default values for all the following style substitutions: '+s.join(", "))}}return{type:0,name:e.name,style:n,options:r?{params:r}:null}},e.prototype.visitTransition=function(e,t){t.queryCount=0,t.depCount=0;var n=P(this,_(e.animation),t);return{type:1,matchers:T(e.expr,t.errors),animation:n,queryCount:t.queryCount,depCount:t.depCount,options:j(e.options)}},e.prototype.visitSequence=function(e,t){var n=this;return{type:2,steps:e.steps.map(function(e){return P(n,e,t)}),options:j(e.options)}},e.prototype.visitGroup=function(e,t){var n=this,r=t.currentTime,o=0,i=e.steps.map(function(e){t.currentTime=r;var i=P(n,e,t);return o=Math.max(o,t.currentTime),i});return t.currentTime=o,{type:3,steps:i,options:j(e.options)}},e.prototype.visitAnimate=function(e,t){var n=F(e.timings,t.errors);t.currentAnimateTimings=n;var r,o=e.styles?e.styles:Object(fe.style)({});if(5==o.type)r=this.visitKeyframes(o,t);else{var i=e.styles,s=!1;if(!i){s=!0;var a={};n.easing&&(a.easing=n.easing),i=Object(fe.style)(a)}t.currentTime+=n.duration+n.delay;var u=this.visitStyle(i,t);u.isEmptyStep=s,r=u}return t.currentAnimateTimings=null,{type:4,timings:n,style:r,options:null}},e.prototype.visitStyle=function(e,t){var n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n},e.prototype._makeStyleAst=function(e,t){var n=[];Array.isArray(e.styles)?e.styles.forEach(function(e){"string"==typeof e?e==fe.AUTO_STYLE?n.push(e):t.errors.push("The provided style string value "+e+" is not allowed."):n.push(e)}):n.push(e.styles);var r=!1,o=null;return n.forEach(function(e){if(M(e)){var t=e,n=t.easing;if(n&&(o=n,delete t.easing),!r)for(var i in t){var s=t[i];if(s.toString().indexOf("{{")>=0){r=!0;break}}}}),{type:6,styles:n,easing:o,offset:e.offset,containsDynamicStyles:r,options:null}},e.prototype._validateStyleAst=function(e,t){var n=t.currentAnimateTimings,r=t.currentTime,o=t.currentTime;n&&o>0&&(o-=n.duration+n.delay),e.styles.forEach(function(e){"string"!=typeof e&&Object.keys(e).forEach(function(n){var i=t.collectedStyles[t.currentQuerySelector],s=i[n],a=!0;s&&(o!=r&&o>=s.startTime&&r<=s.endTime&&(t.errors.push('The CSS property "'+n+'" that exists between the times of "'+s.startTime+'ms" and "'+s.endTime+'ms" is also being animated in a parallel animation between the times of "'+o+'ms" and "'+r+'ms"'),a=!1),o=s.startTime),a&&(i[n]={startTime:o,endTime:r}),t.options&&b(e[n],t.options,t.errors)})})},e.prototype.visitKeyframes=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 o=0,i=[],s=!1,a=!1,u=0,c=e.steps.map(function(e){var r=n._makeStyleAst(e,t),c=null!=r.offset?r.offset:D(r.styles),l=0;return null!=c&&(o++,l=r.offset=c),a=a||l<0||l>1,s=s||l<u,u=l,i.push(l),r});a&&t.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),s&&t.errors.push("Please ensure that all keyframe offsets are in order");var l=e.steps.length,p=0;o>0&&o<l?t.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==o&&(p=1/(l-1));var h=l-1,f=t.currentTime,d=t.currentAnimateTimings,y=d.duration;return c.forEach(function(e,o){var s=p>0?o==h?1:p*o:i[o],a=s*y;t.currentTime=f+d.delay+a,d.duration=a,n._validateStyleAst(e,t),e.offset=s,r.styles.push(e)}),r},e.prototype.visitReference=function(e,t){return{type:8,animation:P(this,_(e.animation),t),options:j(e.options)}},e.prototype.visitAnimateChild=function(e,t){return t.depCount++,{type:9,options:j(e.options)}},e.prototype.visitAnimateRef=function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:j(e.options)}},e.prototype.visitQuery=function(e,t){var n=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;var o=x(e.selector),i=o[0],s=o[1];t.currentQuerySelector=n.length?n+" "+i:i,u(t.collectedStyles,t.currentQuerySelector,{});var a=P(this,_(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:i,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:e.selector,options:j(e.options)}},e.prototype.visitStagger=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"}:h(e.timings,t.errors,!0);return{type:12,animation:P(this,_(e.animation),t),timings:n,options:null}},e}(),Ve=function(){function e(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}return e}(),He=function(){function e(){this._map=new Map}return e.prototype.consume=function(e){var t=this._map.get(e);return t?this._map.delete(e):t=[],t},e.prototype.append=function(e,t){var n=this._map.get(e);n||this._map.set(e,n=[]),n.push.apply(n,t)},e.prototype.has=function(e){return this._map.has(e)},e.prototype.clear=function(){this._map.clear()},e}(),Be=function(){function e(){}return e.prototype.buildKeyframes=function(e,t,n,r,o,i,s,a){void 0===a&&(a=[]),s=s||new He;var u=new We(e,t,s,a,[]);u.options=i,u.currentTimeline.setStyles([r],null,u.errors,i),P(this,n,u);var c=u.timelines.filter(function(e){return e.containsAnimation()});if(c.length&&Object.keys(o).length){var l=c[c.length-1];l.allowOnlyTimelineStyles()||l.setStyles([o],null,u.errors,i)}return c.length?c.map(function(e){return e.buildKeyframes()}):[V(t,[],[],[],0,0,"",!1)]},e.prototype.visitTrigger=function(e,t){},e.prototype.visitState=function(e,t){},e.prototype.visitTransition=function(e,t){},e.prototype.visitAnimateChild=function(e,t){var n=t.subInstructions.consume(t.element);if(n){var r=t.createSubContext(e.options),o=t.currentTimeline.currentTime,i=this._visitSubInstructions(n,r,r.options);o!=i&&t.transformIntoNewTimeline(i)}t.previousNode=e},e.prototype.visitAnimateRef=function(e,t){var n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e},e.prototype._visitSubInstructions=function(e,t,n){var r=t.currentTimeline.currentTime,o=r,i=null!=n.duration?l(n.duration):null,s=null!=n.delay?l(n.delay):null;return 0!==i&&e.forEach(function(e){var n=t.appendInstructionToTimeline(e,i,s);o=Math.max(o,n.duration+n.delay)}),o},e.prototype.visitReference=function(e,t){t.updateOptions(e.options,!0),P(this,e.animation,t),t.previousNode=e},e.prototype.visitSequence=function(e,t){var n=this,r=t.subContextCount,o=t,i=e.options;if(i&&(i.params||i.delay)&&(o=t.createSubContext(i),o.transformIntoNewTimeline(),null!=i.delay)){6==o.previousNode.type&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=qe);var s=l(i.delay);o.delayNextStep(s)}e.steps.length&&(e.steps.forEach(function(e){return P(n,e,o)}),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>r&&o.transformIntoNewTimeline()),t.previousNode=e},e.prototype.visitGroup=function(e,t){var n=this,r=[],o=t.currentTimeline.currentTime,i=e.options&&e.options.delay?l(e.options.delay):0;e.steps.forEach(function(s){var a=t.createSubContext(e.options);i&&a.delayNextStep(i),P(n,s,a),o=Math.max(o,a.currentTimeline.currentTime),r.push(a.currentTimeline)}),r.forEach(function(e){return t.currentTimeline.mergeTimelineCollectedStyles(e)}),t.transformIntoNewTimeline(o),t.previousNode=e},e.prototype._visitTiming=function(e,t){if(e.dynamic){var n=e.strValue;return h(t.params?C(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}},e.prototype.visitAnimate=function(e,t){var n=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),r.snapshotCurrentStyles());var o=e.style;5==o.type?this.visitKeyframes(o,t):(t.incrementTime(n.duration),this.visitStyle(o,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e},e.prototype.visitStyle=function(e,t){var n=t.currentTimeline,r=t.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();var o=r&&r.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(o):n.setStyles(e.styles,o,t.errors,t.options),t.previousNode=e},e.prototype.visitKeyframes=function(e,t){var n=t.currentAnimateTimings,r=t.currentTimeline.duration,o=n.duration,i=t.createSubContext(),s=i.currentTimeline;s.easing=n.easing,e.styles.forEach(function(e){var n=e.offset||0;s.forwardTime(n*o),s.setStyles(e.styles,e.easing,t.errors,t.options),s.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(s),t.transformIntoNewTimeline(r+o),t.previousNode=e},e.prototype.visitQuery=function(e,t){var n=this,r=t.currentTimeline.currentTime,o=e.options||{},i=o.delay?l(o.delay):0;i&&(6===t.previousNode.type||0==r&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=qe);var s=r,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!o.optional,t.errors);t.currentQueryTotal=a.length;var u=null;a.forEach(function(r,o){t.currentQueryIndex=o;var a=t.createSubContext(e.options,r);i&&a.delayNextStep(i),r===t.element&&(u=a.currentTimeline),P(n,e.animation,a),a.currentTimeline.applyStylesToKeyframe();var c=a.currentTimeline.currentTime;s=Math.max(s,c)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(s),u&&(t.currentTimeline.mergeTimelineCollectedStyles(u),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e},e.prototype.visitStagger=function(e,t){var n=t.parentContext,r=t.currentTimeline,o=e.timings,i=Math.abs(o.duration),s=i*(t.currentQueryTotal-1),a=i*t.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":a=s-a;break;case"full":a=n.currentStaggerTime}var u=t.currentTimeline;a&&u.delayNextStep(a);var c=u.currentTime;P(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=r.currentTime-c+(r.startTime-n.currentTimeline.startTime)},e}(),qe={},We=function(){function e(e,t,n,r,o,i){this._driver=e,this.element=t,this.subInstructions=n,this.errors=r,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=qe,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=i||new Ue(t,0),o.push(this.currentTimeline)}return Object.defineProperty(e.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),e.prototype.updateOptions=function(e,t){var n=this;if(e){var r=e,o=this.options;null!=r.duration&&(o.duration=l(r.duration)),null!=r.delay&&(o.delay=l(r.delay));var i=r.params;if(i){var s=o.params;s||(s=this.options.params={}),Object.keys(i).forEach(function(e){t&&s.hasOwnProperty(e)||(s[e]=C(i[e],s,n.errors))})}}},e.prototype._copyOptions=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},e.prototype.createSubContext=function(t,n,r){void 0===t&&(t=null);var o=n||this.element,i=new e(this._driver,o,this.subInstructions,this.errors,this.timelines,this.currentTimeline.fork(o,r||0));return i.previousNode=this.previousNode,i.currentAnimateTimings=this.currentAnimateTimings,i.options=this._copyOptions(),i.updateOptions(t),i.currentQueryIndex=this.currentQueryIndex,i.currentQueryTotal=this.currentQueryTotal,i.parentContext=this,this.subContextCount++,i},e.prototype.transformIntoNewTimeline=function(e){return this.previousNode=qe,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline},e.prototype.appendInstructionToTimeline=function(e,t,n){var r={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},o=new ze(e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(o),r},e.prototype.incrementTime=function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)},e.prototype.delayNextStep=function(e){e>0&&this.currentTimeline.delayNextStep(e)},e.prototype.invokeQuery=function(e,t,n,r,o,i){var s=[];if(r&&s.push(this.element),e.length>0){var a=1!=n,u=this._driver.query(this.element,e,a);0!==n&&(u=u.slice(0,n)),s.push.apply(s,u)}return o||0!=s.length||i.push('`query("'+t+'")` returned zero elements. (Use `query("'+t+'", { optional: true })` if you wish to allow this.)'),s},e}(),Ue=function(){function e(e,t,n){this.element=e,this.startTime=t,this._elementTimelineStylesLookup=n,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(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}return e.prototype.containsAnimation=function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}},e.prototype.getCurrentStyleProperties=function(){return Object.keys(this._currentKeyframe)},Object.defineProperty(e.prototype,"currentTime",{get:function(){return this.startTime+this.duration},enumerable:!0,configurable:!0}),e.prototype.delayNextStep=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},e.prototype.fork=function(t,n){return this.applyStylesToKeyframe(),new e(t,n||this.currentTime,this._elementTimelineStylesLookup)},e.prototype._loadKeyframe=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))},e.prototype.forwardFrame=function(){this.duration+=1,this._loadKeyframe()},e.prototype.forwardTime=function(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()},e.prototype._updateStyle=function(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}},e.prototype.allowOnlyTimelineStyles=function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe},e.prototype.applyEmptyStep=function(e){var t=this;e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(function(e){t._backFill[e]=t._globalTimelineStyles[e]||fe.AUTO_STYLE,t._currentKeyframe[e]=fe.AUTO_STYLE}),this._currentEmptyStepKeyframe=this._currentKeyframe},e.prototype.setStyles=function(e,t,n,r){var o=this;t&&(this._previousKeyframe.easing=t);var i=r&&r.params||{},s=q(e,this._globalTimelineStyles);Object.keys(s).forEach(function(e){var t=C(s[e],i,n);o._pendingStyles[e]=t,o._localTimelineStyles.hasOwnProperty(e)||(o._backFill[e]=o._globalTimelineStyles.hasOwnProperty(e)?o._globalTimelineStyles[e]:fe.AUTO_STYLE),o._updateStyle(e,t)})},e.prototype.applyStylesToKeyframe=function(){var e=this,t=this._pendingStyles,n=Object.keys(t);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){var r=t[n];e._currentKeyframe[n]=r}),Object.keys(this._localTimelineStyles).forEach(function(t){e._currentKeyframe.hasOwnProperty(t)||(e._currentKeyframe[t]=e._localTimelineStyles[t])}))},e.prototype.snapshotCurrentStyles=function(){var e=this;Object.keys(this._localTimelineStyles).forEach(function(t){var n=e._localTimelineStyles[t];e._pendingStyles[t]=n,e._updateStyle(t,n)})},e.prototype.getFinalKeyframe=function(){return this._keyframes.get(this.duration)},Object.defineProperty(e.prototype,"properties",{get:function(){var e=[];for(var t in this._currentKeyframe)e.push(t);return e},enumerable:!0,configurable:!0}),e.prototype.mergeTimelineCollectedStyles=function(e){var t=this;Object.keys(e._styleSummary).forEach(function(n){var r=t._styleSummary[n],o=e._styleSummary[n];(!r||o.time>r.time)&&t._updateStyle(n,o.value)})},e.prototype.buildKeyframes=function(){var e=this;this.applyStylesToKeyframe();var t=new Set,n=new Set,r=1===this._keyframes.size&&0===this.duration,o=[];this._keyframes.forEach(function(i,s){var a=v(i,!0);Object.keys(a).forEach(function(e){var r=a[e];r==fe["\u0275PRE_STYLE"]?t.add(e):r==fe.AUTO_STYLE&&n.add(e)}),r||(a.offset=s/e.duration),o.push(a)});var i=t.size?E(t.values()):[],s=n.size?E(n.values()):[];if(r){var a=o[0],u=d(a);a.offset=0,u.offset=1,o=[a,u]}return V(this.element,o,i,s,this.duration,this.startTime,this.easing,!1)},e}(),ze=function(e){function t(t,n,r,o,i,s){void 0===s&&(s=!1);var a=e.call(this,t,i.delay)||this;return a.element=t,a.keyframes=n,a.preStyleProps=r,a.postStyleProps=o,a._stretchStartingKeyframe=s,a.timings={duration:i.duration,delay:i.delay,easing:i.easing},a}return he.a(t,e),t.prototype.containsAnimation=function(){return this.keyframes.length>1},t.prototype.buildKeyframes=function(){var e=this.keyframes,t=this.timings,n=t.delay,r=t.duration,o=t.easing;if(this._stretchStartingKeyframe&&n){var i=[],s=r+n,a=n/s,u=v(e[0],!1);u.offset=0,i.push(u);var c=v(e[0],!1);c.offset=B(a),i.push(c);for(var l=e.length-1,p=1;p<=l;p++){var h=v(e[p],!1),f=h.offset,d=n+f*r;h.offset=B(d/s),i.push(h)}r=s,n=0,o="",e=i}return V(this.element,e,this.preStyleProps,this.postStyleProps,r,n,o,!0)},t}(Ue),Ge=(function(){function e(e,t){this._driver=e;var n=[],r=R(t,n);if(n.length){var o="animation validation failed:\n"+n.join("\n");throw new Error(o)}this._animationAst=r}e.prototype.buildTimelines=function(e,t,n,r,o){var i=Array.isArray(t)?y(t):t,s=Array.isArray(n)?y(n):n,a=[];o=o||new He;var u=H(this._driver,e,this._animationAst,i,s,r,o,a);if(a.length){var c="animation building failed:\n"+a.join("\n");throw new Error(c)}return u}}(),function(){function e(){}return e}()),Qe=(function(){function e(){}e.prototype.normalizePropertyName=function(e,t){return e},e.prototype.normalizeStyleValue=function(e,t,n,r){return n}}(),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return he.a(t,e),t.prototype.normalizePropertyName=function(e,t){return S(e)},t.prototype.normalizeStyleValue=function(e,t,n,r){var o="",i=n.toString().trim();if(Ke[t]&&0!==n&&"0"!==n)if("number"==typeof n)o="px";else{var s=n.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&r.push("Please provide a CSS unit value for "+e+":"+n)}return i+o},t}(Ge)),Ke=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(",")),Je={},Ye=function(){function e(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}return e.prototype.match=function(e,t){return U(this.ast.matchers,e,t)},e.prototype.buildStyles=function(e,t,n){var r=this._stateStyles["*"],o=this._stateStyles[e],i=r?r.buildStyles(t,n):{};return o?o.buildStyles(t,n):i},e.prototype.build=function(e,t,n,r,o,i,s){var a=[],c=this.ast.options&&this.ast.options.params||Je,l=o&&o.params||Je,p=this.buildStyles(n,l,a),h=i&&i.params||Je,f=this.buildStyles(r,h,a),d=new Set,y=new Map,v=new Map,m="void"===r,g={params:Object.assign({},c,h)},_=H(e,t,this.ast.animation,p,f,g,s,a);if(a.length)return W(t,this._triggerName,n,r,m,p,f,[],[],y,v,a);_.forEach(function(e){var n=e.element,r=u(y,n,{});e.preStyleProps.forEach(function(e){return r[e]=!0});var o=u(v,n,{});e.postStyleProps.forEach(function(e){return o[e]=!0}),n!==t&&d.add(n)});var b=E(d.values());return W(t,this._triggerName,n,r,m,p,f,_,b,y,v)},e}(),Xe=function(){function e(e,t){this.styles=e,this.defaultParams=t}return e.prototype.buildStyles=function(e,t){var n={},r=d(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 o=e;Object.keys(o).forEach(function(e){var i=o[e];i.length>1&&(i=C(i,r,t)),n[e]=i})}}),n},e}(),Ze=function(){function e(e,t){var n=this;this.name=e,this.ast=t,this.transitionFactories=[],this.states={},t.states.forEach(function(e){var t=e.options&&e.options.params||{};n.states[e.name]=new Xe(e.style,t)}),Q(this.states,"true","1"),Q(this.states,"false","0"),t.transitions.forEach(function(t){n.transitionFactories.push(new Ye(e,t,n.states))}),this.fallbackTransition=G(e,this.states)}return Object.defineProperty(e.prototype,"containsQueries",{get:function(){return this.ast.queryCount>0},enumerable:!0,configurable:!0}),e.prototype.matchTransition=function(e,t){return this.transitionFactories.find(function(n){return n.match(e,t)})||null},e.prototype.matchStyles=function(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)},e}(),$e=new He,et=function(){function e(e,t){this._driver=e,this._normalizer=t,this._animations={},this._playersById={},this.players=[]}return e.prototype.register=function(e,t){var n=[],r=R(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},e.prototype._buildPlayer=function(e,t,n){var r=e.element,i=o(this._driver,this._normalizer,r,e.keyframes,t,n);return this._driver.animate(r,i,e.duration,e.delay,e.easing,[])},e.prototype.create=function(e,t,n){var o=this;void 0===n&&(n={});var i,s=[],a=this._animations[e],c=new Map;if(a?(i=H(this._driver,t,a,{},{},n,$e,s),i.forEach(function(e){var t=u(c,e.element,{});e.postStyleProps.forEach(function(e){return t[e]=null})})):(s.push("The requested animation doesn't exist or has already been destroyed"),i=[]),s.length)throw new Error("Unable to create the animation due to the following errors: "+s.join("\n"));c.forEach(function(e,t){Object.keys(e).forEach(function(n){e[n]=o._driver.computeStyle(t,n,fe.AUTO_STYLE)})});var l=i.map(function(e){var t=c.get(e.element);return o._buildPlayer(e,{},t)}),p=r(l);return this._playersById[e]=p,p.onDestroy(function(){return o.destroy(e)}),this.players.push(p),p},e.prototype.destroy=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)},e.prototype._getPlayer=function(e){var t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by "+e);return t},e.prototype.listen=function(e,t,n,r){var o=a(t,"","","");return i(this._getPlayer(e),n,o,r),function(){}},e.prototype.command=function(e,t,n,r){if("register"==n)return void this.register(e,r[0]);if("create"==n){var o=r[0]||{};return void this.create(e,t,o)}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)}},e}(),tt=[],nt={namespaceId:"",setForRemoval:null,hasAnimation:!1,removedBeforeQueried:!1},rt={namespaceId:"",setForRemoval:null,hasAnimation:!1,removedBeforeQueried:!0},ot="__ng_removed",it=function(){function e(e){var t=e&&e.hasOwnProperty("value"),n=t?e.value:e;if(this.value=J(n),t){var r=d(e);delete r.value,this.options=r}else this.options={};this.options.params||(this.options.params={})}return Object.defineProperty(e.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),e.prototype.absorbOptions=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])})}},e}(),st=new it("void"),at=new it("DELETED"),ut=function(){function e(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,ne(t,this._hostClassName)}return e.prototype.listen=function(e,t,n,r){var o=this;if(!this._triggers.hasOwnProperty(t))throw new Error('Unable to listen on the animation trigger event "'+n+'" because the animation trigger "'+t+"\" doesn't exist!");if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'+t+'" because the provided event is undefined!');if(!X(n))throw new Error('The provided animation trigger event "'+n+'" for the animation trigger "'+t+'" is not supported!');var i=u(this._elementListeners,e,[]),s={name:t,phase:n,callback:r};i.push(s);var a=u(this._engine.statesByElement,e,{});return a.hasOwnProperty(t)||(ne(e,"ng-trigger"),ne(e,"ng-trigger-"+t),a[t]=null),function(){o._engine.afterFlush(function(){var e=i.indexOf(s);e>=0&&i.splice(e,1),o._triggers[t]||delete a[t]})}},e.prototype.register=function(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)},e.prototype._getTrigger=function(e){var t=this._triggers[e];if(!t)throw new Error('The provided animation trigger "'+e+'" has not been registered!');return t},e.prototype.trigger=function(e,t,n,r){var o=this;void 0===r&&(r=!0);var i=this._getTrigger(t),s=new lt(this.id,t,e),a=this._engine.statesByElement.get(e);a||(ne(e,"ng-trigger"),ne(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,a={}));var c=a[t],l=new it(n);if(!(n&&n.hasOwnProperty("value"))&&c&&l.absorbOptions(c.options),a[t]=l,c){if(c===at)return s}else c=st;if("void"===l.value||c.value!==l.value){var p=u(this._engine.playersByElement,e,[]);p.forEach(function(e){e.namespaceId==o.id&&e.triggerName==t&&e.queued&&e.destroy()});var h=i.matchTransition(c.value,l.value),f=!1;if(!h){if(!r)return;h=i.fallbackTransition,f=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:h,fromState:c,toState:l,player:s,isFallbackTransition:f}),f||(ne(e,"ng-animate-queued"),s.onStart(function(){re(e,"ng-animate-queued")})),s.onDone(function(){var t=o.players.indexOf(s);t>=0&&o.players.splice(t,1);var n=o._engine.playersByElement.get(e);if(n){var r=n.indexOf(s);r>=0&&n.splice(r,1)}}),this.players.push(s),p.push(s),s}if(!ue(c.params,l.params)){var d=[],y=i.matchStyles(c.value,c.params,d),v=i.matchStyles(l.value,l.params,d);d.length?this._engine.reportError(d):this._engine.afterFlush(function(){g(e,y),m(e,v)})}},e.prototype.deregister=function(e){var t=this;delete this._triggers[e],this._engine.statesByElement.forEach(function(t,n){delete t[e]}),this._elementListeners.forEach(function(n,r){t._elementListeners.set(r,n.filter(function(t){return t.name!=e}))})},e.prototype.clearElementCache=function(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);var t=this._engine.playersByElement.get(e);t&&(t.forEach(function(e){return e.destroy()}),this._engine.playersByElement.delete(e))},e.prototype._destroyInnerNodes=function(e,t,n){var r=this;void 0===n&&(n=!1),this._engine.driver.query(e,Te,!0).forEach(function(e){if(n&&te(e,r._hostClassName)){var o=r._engine.namespacesByHostElement.get(e);o&&o.removeNode(e,t,!0),r.removeNode(e,t,!0)}else r.clearElementCache(e)})},e.prototype.removeNode=function(e,t,n){var o=this,i=this._engine;!n&&e.childElementCount&&this._destroyInnerNodes(e,t,!0);var s=i.statesByElement.get(e);if(s){var a=[];if(Object.keys(s).forEach(function(t){if(o._triggers[t]){var n=o.trigger(e,t,"void",!1);n&&a.push(n)}}),a.length)return i.markElementAsRemoved(this.id,e,!0,t),void r(a).onDone(function(){return i.processLeaveNode(e)})}var u=!1;if(i.totalAnimations){var c=i.players.length?i.playersByQueriedElement.get(e):[];if(c&&c.length)u=!0;else for(var l=e;l=l.parentNode;){var p=i.statesByElement.get(l);if(p){u=!0;break}}}var h=this._elementListeners.get(e);if(h){var f=new Set;h.forEach(function(t){var n=t.name;if(!f.has(n)){f.add(n);var r=o._triggers[n],s=r.fallbackTransition,a=i.statesByElement.get(e),u=a[n]||st,c=new it("void"),l=new lt(o.id,n,e);o._engine.totalQueuedPlayers++,o._queue.push({element:e,triggerName:n,transition:s,fromState:u,toState:c,player:l,isFallbackTransition:!0})}})}u?i.markElementAsRemoved(this.id,e,!1,t):(i.afterFlush(function(){return o.clearElementCache(e)}),i.destroyInnerAnimations(e),i._onRemovalComplete(e,t))},e.prototype.insertNode=function(e,t){ne(e,this._hostClassName)},e.prototype.drainQueuedTransitions=function(e){var t=this,n=[];return this._queue.forEach(function(r){var o=r.player;if(!o.destroyed){var s=r.element,u=t._elementListeners.get(s);u&&u.forEach(function(t){if(t.name==r.triggerName){var n=a(s,r.triggerName,r.fromState.value,r.toState.value);n._data=e,i(r.player,t.phase,n,t.callback)}}),o.markedForDestroy?t._engine.afterFlush(function(){o.destroy()}):n.push(r)}}),this._queue=[],n.sort(function(e,n){var r=e.transition.ast.depCount,o=n.transition.ast.depCount;return 0==r||0==o?r-o:t._engine.driver.containsElement(e.element,n.element)?1:-1})},e.prototype.destroy=function(e){this.players.forEach(function(e){return e.destroy()}),this._destroyInnerNodes(this.hostElement,e)},e.prototype.elementContainsData=function(e){var t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find(function(t){return t.element===e})||t},e}(),ct=function(){function e(e,t){this.driver=e,this._normalizer=t,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=function(e,t){}}return e.prototype._onRemovalComplete=function(e,t){this.onRemovalComplete(e,t)},Object.defineProperty(e.prototype,"queuedPlayers",{get:function(){var e=[];return this._namespaceList.forEach(function(t){t.players.forEach(function(t){t.queued&&e.push(t)})}),e},enumerable:!0,configurable:!0}),e.prototype.createNamespace=function(e,t){var n=new ut(e,t,this);return t.parentNode?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n},e.prototype._balanceNamespaceList=function(e,t){var n=this._namespaceList.length-1;if(n>=0){for(var r=!1,o=n;o>=0;o--){var i=this._namespaceList[o];if(this.driver.containsElement(i.hostElement,t)){this._namespaceList.splice(o+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},e.prototype.register=function(e,t){var n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n},e.prototype.registerTrigger=function(e,t,n){var r=this._namespaceLookup[e];r&&r.register(t,n)&&this.totalAnimations++},e.prototype.destroy=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)})}},e.prototype._fetchNamespace=function(e){return this._namespaceLookup[e]},e.prototype.trigger=function(e,t,n,r){return!!Y(t)&&(this._fetchNamespace(e).trigger(t,n,r),!0)},e.prototype.insertNode=function(e,t,n,r){if(Y(t)){var o=t[ot];o&&o.setForRemoval&&(o.setForRemoval=!1),e&&this._fetchNamespace(e).insertNode(t,n),r&&this.collectEnterElement(t)}},e.prototype.collectEnterElement=function(e){this.collectedEnterElements.push(e)},e.prototype.markElementAsDisabled=function(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),ne(e,"ng-animate-disabled")):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),re(e,"ng-animate-disabled"))},e.prototype.removeNode=function(e,t,n,r){if(!Y(t))return void this._onRemovalComplete(t,n);var o=e?this._fetchNamespace(e):null;o?o.removeNode(t,n,r):this.markElementAsRemoved(e,t,!1,n)},e.prototype.markElementAsRemoved=function(e,t,n,r){this.collectedLeaveElements.push(t),t[ot]={namespaceId:e,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}},e.prototype.listen=function(e,t,n,r,o){return Y(t)?this._fetchNamespace(e).listen(t,n,r,o):function(){}},e.prototype._buildInstruction=function(e,t){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,e.fromState.options,e.toState.options,t)},e.prototype.destroyInnerAnimations=function(e){var t=this,n=this.driver.query(e,Te,!0);n.forEach(function(e){var n=t.playersByElement.get(e);n&&n.forEach(function(e){e.queued?e.markedForDestroy=!0:e.destroy()});var r=t.statesByElement.get(e);r&&Object.keys(r).forEach(function(e){return r[e]=at})}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,Ne,!0),n.length&&n.forEach(function(e){var n=t.playersByQueriedElement.get(e);n&&n.forEach(function(e){return e.finish()})}))},e.prototype.whenRenderingDone=function(){var e=this;return new Promise(function(t){if(e.players.length)return r(e.players).onDone(function(){return t()});t()})},e.prototype.processLeaveNode=function(e){var t=this,n=e[ot];if(n&&n.setForRemoval){if(e[ot]=nt,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(n){t.markElementAsDisabled(e,!1)})},e.prototype.flush=function(e){var t=this;void 0===e&&(e=-1);var n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(e,n){return t._balanceNamespaceList(e,n)}),this.newHostElements.clear()),this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){var o=[];try{n=this._flushAnimations(o,e)}finally{for(var i=0;i<o.length;i++)o[i]()}}else for(var i=0;i<this.collectedLeaveElements.length;i++){var s=this.collectedLeaveElements[i];this.processLeaveNode(s)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(function(e){return e()}),this._flushFns=[],this._whenQuietFns.length){var a=this._whenQuietFns;this._whenQuietFns=[],n.length?r(n).onDone(function(){a.forEach(function(e){return e()})}):a.forEach(function(e){return e()})}},e.prototype.reportError=function(e){throw new Error("Unable to process animations due to the following failed trigger transitions\n "+e.join("\n"))},e.prototype._flushAnimations=function(e,t){var n=this,o=new He,i=[],s=new Map,a=[],c=new Map,l=new Map,p=new Map,h=new Set;this.disabledNodes.forEach(function(e){h.add(e);for(var t=n.driver.query(e,".ng-animate-queued",!0),r=0;r<t.length;r++)h.add(t[r])});for(var f=oe(),d=this.collectedEnterElements.length?this.collectedEnterElements.filter(ee(this.collectedEnterElements)):[],y=0;y<d.length;y++)ne(d[y],"ng-enter");for(var v=[],_=new Set,y=0;y<this.collectedLeaveElements.length;y++){var b=this.collectedLeaveElements[y],w=b[ot];w&&w.setForRemoval&&(ne(b,"ng-leave"),v.push(b),w.hasAnimation||_.add(b))}e.push(function(){d.forEach(function(e){return re(e,"ng-enter")}),v.forEach(function(e){re(e,"ng-leave"),n.processLeaveNode(e)})});for(var C=[],E=[],y=this._namespaceList.length-1;y>=0;y--){this._namespaceList[y].drainQueuedTransitions(t).forEach(function(e){var t=e.player;C.push(t);var r=e.element;if(!f||!n.driver.containsElement(f,r))return void t.destroy();var s=n._buildInstruction(e,o);if(s.errors&&s.errors.length)return void E.push(s);if(e.isFallbackTransition)return t.onStart(function(){return g(r,s.fromStyles)}),t.onDestroy(function(){return m(r,s.toStyles)}),void i.push(t);s.timelines.forEach(function(e){return e.stretchStartingKeyframe=!0}),o.append(r,s.timelines);var h={instruction:s,player:t,element:r};a.push(h),s.queriedElements.forEach(function(e){return u(c,e,[]).push(t)}),s.preStyleProps.forEach(function(e,t){var n=Object.keys(e);if(n.length){var r=l.get(t);r||l.set(t,r=new Set),n.forEach(function(e){return r.add(e)})}}),s.postStyleProps.forEach(function(e,t){var n=Object.keys(e),r=p.get(t);r||p.set(t,r=new Set),n.forEach(function(e){return r.add(e)})})})}if(E.length){var S=[];E.forEach(function(e){S.push("@"+e.triggerName+" has failed due to:\n"),e.errors.forEach(function(e){return S.push("- "+e+"\n")})}),C.forEach(function(e){return e.destroy()}),this.reportError(S)}for(var O=new Set,y=0;y<d.length;y++){var b=d[y];o.has(b)||O.add(b)}var P=new Map,T=[];a.forEach(function(e){var t=e.element;o.has(t)&&(T.unshift(t),n._beforeAnimationBuild(e.player.namespaceId,e.instruction,P))}),i.forEach(function(e){var t=e.element;n._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(function(e){u(P,t,[]).push(e),e.destroy()})});var N=v.filter(function(e){return ce(e,l,p)}),I=$(this.driver,_,p,fe.AUTO_STYLE),A=I[0];I[1].forEach(function(e){ce(e,l,p)&&N.push(e)});var R=(l.size?$(this.driver,O,l,fe["\u0275PRE_STYLE"]):[new Map])[0];N.forEach(function(e){var t=A.get(e),n=R.get(e);A.set(e,Object.assign({},t,n))});var x=[],k=[];a.forEach(function(e){var t=e.element,a=e.player,u=e.instruction;if(o.has(t)){if(h.has(t))return void i.push(a);var c=n._buildAnimation(a.namespaceId,u,P,s,R,A);a.setRealPlayer(c);for(var l=null,p=0;p<T.length;p++){var f=T[p];if(f===t)break;if(n.driver.containsElement(f,t)){l=f;break}}if(l){var d=n.playersByElement.get(l);d&&d.length&&(a.parentPlayer=r(d)),i.push(a)}else x.push(a)}else g(t,u.fromStyles),a.onDestroy(function(){return m(t,u.toStyles)}),k.push(a),h.has(t)&&i.push(a)}),k.forEach(function(e){var t=s.get(e.element);if(t&&t.length){var n=r(t);e.setRealPlayer(n)}}),i.forEach(function(e){e.parentPlayer?e.parentPlayer.onDestroy(function(){return e.destroy()}):e.destroy()});for(var y=0;y<v.length;y++){var b=v[y],w=b[ot];if(re(b,"ng-leave"),!w||!w.hasAnimation){var D=[];if(c.size){var M=c.get(b);M&&M.length&&D.push.apply(D,M);for(var F=this.driver.query(b,Ne,!0),j=0;j<F.length;j++){var L=c.get(F[j]);L&&L.length&&D.push.apply(D,L)}}var V=D.filter(function(e){return!e.destroyed});V.length?ie(this,b,V):this.processLeaveNode(b)}}return v.length=0,x.forEach(function(e){n.players.push(e),e.onDone(function(){e.destroy();var t=n.players.indexOf(e);n.players.splice(t,1)}),e.play()}),x},e.prototype.elementContainsData=function(e,t){var n=!1,r=t[ot];return r&&r.setForRemoval&&(n=!0),this.playersByElement.has(t)&&(n=!0),this.playersByQueriedElement.has(t)&&(n=!0),this.statesByElement.has(t)&&(n=!0),this._fetchNamespace(e).elementContainsData(t)||n},e.prototype.afterFlush=function(e){this._flushFns.push(e)},e.prototype.afterFlushAnimationsDone=function(e){this._whenQuietFns.push(e)},e.prototype._getPreviousPlayers=function(e,t,n,r,o){var i=[];if(t){var s=this.playersByQueriedElement.get(e);s&&(i=s)}else{var a=this.playersByElement.get(e);if(a){var u=!o||"void"==o;a.forEach(function(e){e.queued||(u||e.triggerName==r)&&i.push(e)})}}return(n||r)&&(i=i.filter(function(e){return(!n||n==e.namespaceId)&&(!r||r==e.triggerName)})),i},e.prototype._beforeAnimationBuild=function(e,t,n){var r=this,o=t.triggerName,i=t.element,s=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:o;t.timelines.map(function(e){var o=e.element,c=o!==i,l=u(n,o,[]);r._getPreviousPlayers(o,c,s,a,t.toState).forEach(function(e){var t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),l.push(e)})}),g(i,t.fromStyles)},e.prototype._buildAnimation=function(e,t,n,i,s,a){var c=this,l=t.triggerName,p=t.element,h=[],f=new Set,d=new Set,y=t.timelines.map(function(t){var r=t.element;f.add(r);var u=r[ot];if(u&&u.removedBeforeQueried)return new fe.NoopAnimationPlayer;var y=r!==p,v=se((n.get(r)||tt).map(function(e){return e.getRealPlayer()})).filter(function(e){var t=e;return!!t.element&&t.element===r}),m=s.get(r),g=a.get(r),_=o(c.driver,c._normalizer,r,t.keyframes,m,g),b=c._buildPlayer(t,_,v);if(t.subTimeline&&i&&d.add(r),y){var w=new lt(e,l,r);w.setRealPlayer(b),h.push(w)}return b});h.forEach(function(e){u(c.playersByQueriedElement,e.element,[]).push(e),e.onDone(function(){return K(c.playersByQueriedElement,e.element,e)})}),f.forEach(function(e){return ne(e,"ng-animating")});var v=r(y);return v.onDestroy(function(){f.forEach(function(e){return re(e,"ng-animating")}),m(p,t.toStyles)}),d.forEach(function(e){u(i,e,[]).push(v)}),v},e.prototype._buildPlayer=function(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new fe.NoopAnimationPlayer},e}(),lt=function(){function e(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new fe.NoopAnimationPlayer,this._containsRealPlayer=!1,this._queuedCallbacks={},this._destroyed=!1,this.markedForDestroy=!1}return Object.defineProperty(e.prototype,"queued",{get:function(){return 0==this._containsRealPlayer},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),e.prototype.setRealPlayer=function(e){var t=this;this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(function(n){t._queuedCallbacks[n].forEach(function(t){return i(e,n,void 0,t)})}),this._queuedCallbacks={},this._containsRealPlayer=!0)},e.prototype.getRealPlayer=function(){return this._player},e.prototype._queueEvent=function(e,t){u(this._queuedCallbacks,e,[]).push(t)},e.prototype.onDone=function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)},e.prototype.onStart=function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)},e.prototype.onDestroy=function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)},e.prototype.init=function(){this._player.init()},e.prototype.hasStarted=function(){return!this.queued&&this._player.hasStarted()},e.prototype.play=function(){!this.queued&&this._player.play()},e.prototype.pause=function(){!this.queued&&this._player.pause()},e.prototype.restart=function(){!this.queued&&this._player.restart()},e.prototype.finish=function(){this._player.finish()},e.prototype.destroy=function(){this._destroyed=!0,this._player.destroy()},e.prototype.reset=function(){!this.queued&&this._player.reset()},e.prototype.setPosition=function(e){this.queued||this._player.setPosition(e)},e.prototype.getPosition=function(){return this.queued?0:this._player.getPosition()},Object.defineProperty(e.prototype,"totalTime",{get:function(){return this._player.totalTime},enumerable:!0,configurable:!0}),e}(),pt="$$classes",ht=function(){function e(e,t){var n=this;this._triggerCache={},this.onRemovalComplete=function(e,t){},this._transitionEngine=new ct(e,t),this._timelineEngine=new et(e,t),this._transitionEngine.onRemovalComplete=function(e,t){return n.onRemovalComplete(e,t)}}return e.prototype.registerTrigger=function(e,t,n,r,o){var i=e+"-"+r,s=this._triggerCache[i];if(!s){var a=[],u=R(o,a);if(a.length)throw new Error('The animation trigger "'+r+'" has failed to build due to the following errors:\n - '+a.join("\n - "));s=z(r,u),this._triggerCache[i]=s}this._transitionEngine.registerTrigger(t,r,s)},e.prototype.register=function(e,t){this._transitionEngine.register(e,t)},e.prototype.destroy=function(e,t){this._transitionEngine.destroy(e,t)},e.prototype.onInsert=function(e,t,n,r){this._transitionEngine.insertNode(e,t,n,r)},e.prototype.onRemove=function(e,t,n){this._transitionEngine.removeNode(e,t,n)},e.prototype.disableAnimations=function(e,t){this._transitionEngine.markElementAsDisabled(e,t)},e.prototype.process=function(e,t,n,r){if("@"==n.charAt(0)){var o=c(n),i=o[0],s=o[1],a=r;this._timelineEngine.command(i,t,s,a)}else this._transitionEngine.trigger(e,t,n,r)},e.prototype.listen=function(e,t,n,r,o){if("@"==n.charAt(0)){var i=c(n),s=i[0],a=i[1];return this._timelineEngine.listen(s,t,a,o)}return this._transitionEngine.listen(e,t,n,r,o)},e.prototype.flush=function(e){void 0===e&&(e=-1),this._transitionEngine.flush(e)},Object.defineProperty(e.prototype,"players",{get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)},enumerable:!0,configurable:!0}),e.prototype.whenRenderingDone=function(){return this._transitionEngine.whenRenderingDone()},e}(),ft=function(){function e(e,t,n,r){void 0===r&&(r=[]);var o=this;this.element=e,this.keyframes=t,this.options=n,this.previousPlayers=r,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.previousStyles={},this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay,O(this._duration,this._delay)&&r.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return o.previousStyles[e]=t[e]})})}return e.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])},e.prototype.init=function(){this._buildPlayer(),this._preparePlayerBeforeStart()},e.prototype._buildPlayer=function(){var e=this;if(!this._initialized){this._initialized=!0;var t=this.keyframes.map(function(e){return v(e,!1)}),n=Object.keys(this.previousStyles);if(n.length){var r=t[0],o=[];if(n.forEach(function(t){r.hasOwnProperty(t)||o.push(t),r[t]=e.previousStyles[t]}),o.length)for(var i=this,s=1;s<t.length;s++)!function(){var e=t[s];o.forEach(function(t){e[t]=le(i.element,t)})}()}this._player=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this._player.addEventListener("finish",function(){return e._onFinish()})}},e.prototype._preparePlayerBeforeStart=function(){this._delay?this._resetDomPlayerState():this._player.pause()},e.prototype._triggerWebAnimation=function(e,t,n){return e.animate(t,n)},Object.defineProperty(e.prototype,"domPlayer",{get:function(){return this._player},enumerable:!0,configurable:!0}),e.prototype.onStart=function(e){this._onStartFns.push(e)},e.prototype.onDone=function(e){this._onDoneFns.push(e)},e.prototype.onDestroy=function(e){this._onDestroyFns.push(e)},e.prototype.play=function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[],this._started=!0),this._player.play()},e.prototype.pause=function(){this.init(),this._player.pause()},e.prototype.finish=function(){this.init(),this._onFinish(),this._player.finish()},e.prototype.reset=function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1},e.prototype._resetDomPlayerState=function(){this._player&&this._player.cancel()},e.prototype.restart=function(){this.reset(),this.play()},e.prototype.hasStarted=function(){return this._started},e.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])},e.prototype.setPosition=function(e){this._player.currentTime=e*this.time},e.prototype.getPosition=function(){return this._player.currentTime/this.time},Object.defineProperty(e.prototype,"totalTime",{get:function(){return this._delay+this._duration},enumerable:!0,configurable:!0}),e.prototype.beforeDestroy=function(){var e=this,t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(t[n]=e._finished?e._finalKeyframe[n]:le(e.element,n))}),this.currentSnapshot=t},e}(),dt=function(){function e(){}return e.prototype.matchesElement=function(e,t){return _e(e,t)},e.prototype.containsElement=function(e,t){return be(e,t)},e.prototype.query=function(e,t,n){return we(e,t,n)},e.prototype.computeStyle=function(e,t,n){return window.getComputedStyle(e)[t]},e.prototype.animate=function(e,t,n,r,o,i){void 0===i&&(i=[]);var s=0==r?"both":"forwards",a={duration:n,delay:r,fill:s};o&&(a.easing=o);var u=i.filter(function(e){return e instanceof ft});return new ft(e,t,a,u)},e}()},fAJX:function(e,t,n){(function(e){var t=function(){if(void 0!==e)return e;if("undefined"!=typeof window)return window;if("undefined"!=typeof self)return self;throw new Error("unable to locate global object")}();"undefined"==typeof Promise&&(t.Promise=Promise=n("mNfF"))}).call(t,n("fRUx"))},fL27:function(e,t,n){"use strict";function r(e,t,n,r,o){return e.setProperty(t,"@@"+n+":"+r,o)}function o(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}function i(e){var t=e.indexOf(".");return[e.substring(0,t),e.substr(t+1)]}function s(){return Object(f.g)()?new f.e:new f.d}function a(){return new f.f}function u(e,t,n){return new m(e,t,n)}n.d(t,"a",function(){return S}),n.d(t,"b",function(){return d}),n.d(t,"c",function(){return b}),n.d(t,"e",function(){return a}),n.d(t,"f",function(){return u}),n.d(t,"d",function(){return s});var c=n("6Xbx"),l=n("/oeL"),p=n("fc+i"),h=n("EyWH"),f=n("f9zQ"),d=function(e){function t(t,n){var r=e.call(this)||this;r._nextAnimationId=0;var o={id:"0",encapsulation:l.ViewEncapsulation.None,styles:[],data:{animation:[]}};return r._renderer=t.createRenderer(n.body,o),r}return c.a(t,e),t.prototype.build=function(e){var t=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(e)?Object(h.sequence)(e):e;return r(this._renderer,null,t,"register",[n]),new y(t,this._renderer)},t}(h.AnimationBuilder);d.decorators=[{type:l.Injectable}],d.ctorParameters=function(){return[{type:l.RendererFactory2},{type:void 0,decorators:[{type:l.Inject,args:[p.b]}]}]};var y=function(e){function t(t,n){var r=e.call(this)||this;return r._id=t,r._renderer=n,r}return c.a(t,e),t.prototype.create=function(e,t){return new v(this._id,e,t||{},this._renderer)},t}(h.AnimationFactory),v=function(){function e(e,t,n,r){this.id=e,this.element=t,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}return e.prototype._listen=function(e,t){return this._renderer.listen(this.element,"@@"+this.id+":"+e,t)},e.prototype._command=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return r(this._renderer,this.element,this.id,e,t)},e.prototype.onDone=function(e){this._listen("done",e)},e.prototype.onStart=function(e){this._listen("start",e)},e.prototype.onDestroy=function(e){this._listen("destroy",e)},e.prototype.init=function(){this._command("init")},e.prototype.hasStarted=function(){return this._started},e.prototype.play=function(){this._command("play"),this._started=!0},e.prototype.pause=function(){this._command("pause")},e.prototype.restart=function(){this._command("restart")},e.prototype.finish=function(){this._command("finish")},e.prototype.destroy=function(){this._command("destroy")},e.prototype.reset=function(){this._command("reset")},e.prototype.setPosition=function(e){this._command("setPosition",e)},e.prototype.getPosition=function(){return 0},e}(),m=function(){function e(e,t,n){this.delegate=e,this.engine=t,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,t.onRemovalComplete=function(e,t){t&&t.parentNode(e)&&t.removeChild(e.parentNode,e)}}return e.prototype.createRenderer=function(e,t){var n=this,r=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){var o=this._rendererCache.get(r);return o||(o=new g("",r,this.engine),this._rendererCache.set(r,o)),o}var i=t.id,s=t.id+"-"+this._currentId;return this._currentId++,this.engine.register(s,e),t.data.animation.forEach(function(t){return n.engine.registerTrigger(i,s,e,t.name,t)}),new _(this,s,r,this.engine)},e.prototype.begin=function(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()},e.prototype._scheduleCountTask=function(){var e=this;Zone.current.scheduleMicroTask("incremenet the animation microtask",function(){return e._microtaskId++})},e.prototype.scheduleListenerCallback=function(e,t,n){var r=this;if(e>=0&&e<this._microtaskId)return void this._zone.run(function(){return t(n)});0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(function(){r._zone.run(function(){r._animationCallbacksBuffer.forEach(function(e){(0,e[0])(e[1])}),r._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,n])},e.prototype.end=function(){var e=this;this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(function(){e._scheduleCountTask(),e.engine.flush(e._microtaskId)}),this.delegate.end&&this.delegate.end()},e.prototype.whenRenderingDone=function(){return this.engine.whenRenderingDone()},e}();m.decorators=[{type:l.Injectable}],m.ctorParameters=function(){return[{type:l.RendererFactory2},{type:f.b},{type:l.NgZone}]};var g=function(){function e(e,t,n){this.namespaceId=e,this.delegate=t,this.engine=n,this.destroyNode=this.delegate.destroyNode?function(e){return t.destroyNode(e)}:null}return Object.defineProperty(e.prototype,"data",{get:function(){return this.delegate.data},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()},e.prototype.createElement=function(e,t){return this.delegate.createElement(e,t)},e.prototype.createComment=function(e){return this.delegate.createComment(e)},e.prototype.createText=function(e){return this.delegate.createText(e)},e.prototype.appendChild=function(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)},e.prototype.insertBefore=function(e,t,n){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,!0)},e.prototype.removeChild=function(e,t){this.engine.onRemove(this.namespaceId,t,this.delegate)},e.prototype.selectRootElement=function(e){return this.delegate.selectRootElement(e)},e.prototype.parentNode=function(e){return this.delegate.parentNode(e)},e.prototype.nextSibling=function(e){return this.delegate.nextSibling(e)},e.prototype.setAttribute=function(e,t,n,r){this.delegate.setAttribute(e,t,n,r)},e.prototype.removeAttribute=function(e,t,n){this.delegate.removeAttribute(e,t,n)},e.prototype.addClass=function(e,t){this.delegate.addClass(e,t)},e.prototype.removeClass=function(e,t){this.delegate.removeClass(e,t)},e.prototype.setStyle=function(e,t,n,r){this.delegate.setStyle(e,t,n,r)},e.prototype.removeStyle=function(e,t,n){this.delegate.removeStyle(e,t,n)},e.prototype.setProperty=function(e,t,n){"@"==t.charAt(0)&&"@.disabled"==t?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)},e.prototype.setValue=function(e,t){this.delegate.setValue(e,t)},e.prototype.listen=function(e,t,n){return this.delegate.listen(e,t,n)},e.prototype.disableAnimations=function(e,t){this.engine.disableAnimations(e,t)},e}(),_=function(e){function t(t,n,r,o){var i=e.call(this,n,r,o)||this;return i.factory=t,i.namespaceId=n,i}return c.a(t,e),t.prototype.setProperty=function(e,t,n){"@"==t.charAt(0)?"."==t.charAt(1)&&"@.disabled"==t?(n=void 0===n||!!n,this.disableAnimations(e,n)):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)},t.prototype.listen=function(e,t,n){var r=this;if("@"==t.charAt(0)){var s=o(e),a=t.substr(1),u="";return"@"!=a.charAt(0)&&(c=i(a),a=c[0],u=c[1]),this.engine.listen(this.namespaceId,s,a,u,function(e){var t=e._data||-1;r.factory.scheduleListenerCallback(t,n,e)})}return this.delegate.listen(e,t,n);var c},t}(g),b=function(e){function t(t,n){return e.call(this,t,n)||this}return c.a(t,e),t}(f.b);b.decorators=[{type:l.Injectable}],b.ctorParameters=function(){return[{type:f.a},{type:f.c}]};var w=[{provide:h.AnimationBuilder,useClass:d},{provide:f.c,useFactory:a},{provide:f.b,useClass:b},{provide:l.RendererFactory2,useFactory:u,deps:[p.m,f.b,l.NgZone]}],C=[{provide:f.a,useFactory:s}].concat(w),E=[{provide:f.a,useClass:f.d}].concat(w),S=function(){function e(){}return e}();S.decorators=[{type:l.NgModule,args:[{exports:[p.a],providers:C}]}],S.ctorParameters=function(){return[]};var O=function(){function e(){}return e}();O.decorators=[{type:l.NgModule,args:[{exports:[p.a],providers:E}]}],O.ctorParameters=function(){return[]}},fRUx:function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},"fc+i":function(e,t,n){"use strict";function r(){return F}function o(e){F||(F=e)}function i(){return U||(U=document.querySelector("base"))?U.getAttribute("href"):null}function s(e){return q||(q=document.createElement("a")),q.setAttribute("href",e),"/"===q.pathname.charAt(0)?q.pathname:"/"+q.pathname}function a(){return!!window.history.pushState}function u(e,t,n){return function(){n.get(M.ApplicationInitStatus).donePromise.then(function(){var n=r();Array.prototype.slice.apply(n.querySelectorAll(t,"style[ng-transition]")).filter(function(t){return n.getAttribute(t,"ng-transition")===e}).forEach(function(e){return n.remove(e)})})}}function c(e,t){Z||(M["\u0275global"].ng=Z=M["\u0275global"].ng||{}),Z[e]=t}function l(e){return Object(M.getDebugNode)(e)}function p(e,t){var n=(e||[]).concat(t||[]);return c(ee,l),c(te,Object.assign({},$,h(n||[]))),function(){return l}}function h(e){return e.reduce(function(e,t){return e[t.name]=t.token,e},{})}function f(e){return he.replace(le,e)}function d(e){return pe.replace(le,e)}function y(e,t,n){for(var r=0;r<t.length;r++){var o=t[r];Array.isArray(o)?y(e,o,n):(o=o.replace(le,e),n.push(o))}return n}function v(e){return function(t){!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}function m(e,t){if(e.charCodeAt(0)===ye)throw new Error("Found the synthetic "+t+" "+e+'. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.')}function g(e){return e=String(e),e.match(Pe)||e.match(Te)?e:(Object(M.isDevMode)()&&r().log("WARNING: sanitizing unsafe URL value "+e+" (see http://g.co/ng/security#xss)"),"unsafe:"+e)}function _(e){return e=String(e),e.split(",").map(function(e){return g(e.trim())}).join(", ")}function b(){if(Ne)return Ne;Ie=r();var e=Ie.createElement("template");if("content"in e)return e;var t=Ie.createHtmlDocument();if(null==(Ne=Ie.querySelector(t,"body"))){var n=Ie.createElement("html",t);Ne=Ie.createElement("body",t),Ie.appendChild(n,Ne),Ie.appendChild(t,n)}return Ne}function w(e){for(var t={},n=0,r=e.split(",");n<r.length;n++){t[r[n]]=!0}return t}function C(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n={},r=0,o=e;r<o.length;r++){var i=o[r];for(var s in i)i.hasOwnProperty(s)&&(n[s]=!0)}return n}function E(e,t){if(t&&Ie.contains(e,t))throw new Error("Failed to sanitize html because the element is clobbered: "+Ie.getOuterHTML(e));return t}function S(e){return e.replace(/&/g,"&amp;").replace(qe,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(We,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function O(e){Ie.attributeMap(e).forEach(function(t,n){"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||Ie.removeAttribute(e,n)});for(var t=0,n=Ie.childNodesAsList(e);t<n.length;t++){var r=n[t];Ie.isElementNode(r)&&O(r)}}function P(e,t){try{var n=b(),r=t?String(t):"",o=5,i=r;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,Ie.setInnerHTML(n,r),e.documentMode&&O(n),i=Ie.getInnerHTML(n)}while(r!==i);for(var s=new Be,a=s.sanitizeChildren(Ie.getTemplateContent(n)||n),u=Ie.getTemplateContent(n)||n,c=0,l=Ie.childNodesAsList(u);c<l.length;c++){var p=l[c];Ie.removeChild(u,p)}return Object(M.isDevMode)()&&s.sanitizedSomething&&Ie.log("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),a}catch(e){throw Ne=null,e}}function T(e){for(var t=!0,n=!0,r=0;r<e.length;r++){var o=e.charAt(r);"'"===o&&n?t=!t:'"'===o&&t&&(n=!n)}return t&&n}function N(e){if(!(e=String(e).trim()))return"";var t=e.match(ze);return t&&g(t[1])===t[1]||e.match(Ue)&&T(e)?e:(Object(M.isDevMode)()&&r().log("WARNING: sanitizing unsafe style value "+e+" (see http://g.co/ng/security#xss)."),"unsafe")}function I(){W.makeCurrent(),Y.init()}function A(){return new M.ErrorHandler}function R(){return document}n.d(t,"a",function(){return rt}),n.d(t,"k",function(){return nt}),n.d(t,"h",function(){return Q}),n.d(t,"j",function(){return X}),n.d(t,"i",function(){return ne}),n.d(t,"b",function(){return z}),n.d(t,"d",function(){return oe}),n.d(t,"e",function(){return ie}),n.d(t,"f",function(){return be}),n.d(t,"g",function(){return we}),n.d(t,"c",function(){return Ge}),n.d(t,"u",function(){return r}),n.d(t,"m",function(){return fe}),n.d(t,"l",function(){return ge}),n.d(t,"o",function(){return Ce}),n.d(t,"p",function(){return Oe}),n.d(t,"n",function(){return ue}),n.d(t,"q",function(){return ae}),n.d(t,"r",function(){return A}),n.d(t,"s",function(){return p}),n.d(t,"t",function(){return Qe});var x,k=n("6Xbx"),D=n("qbdv"),M=n("/oeL"),F=null,j=function(){function e(){this.resourceLoaderType=null}return e.prototype.hasProperty=function(e,t){},e.prototype.setProperty=function(e,t,n){},e.prototype.getProperty=function(e,t){},e.prototype.invoke=function(e,t,n){},e.prototype.logError=function(e){},e.prototype.log=function(e){},e.prototype.logGroup=function(e){},e.prototype.logGroupEnd=function(){},Object.defineProperty(e.prototype,"attrToPropMap",{get:function(){return this._attrToPropMap},set:function(e){this._attrToPropMap=e},enumerable:!0,configurable:!0}),e.prototype.contains=function(e,t){},e.prototype.parse=function(e){},e.prototype.querySelector=function(e,t){},e.prototype.querySelectorAll=function(e,t){},e.prototype.on=function(e,t,n){},e.prototype.onAndCancel=function(e,t,n){},e.prototype.dispatchEvent=function(e,t){},e.prototype.createMouseEvent=function(e){},e.prototype.createEvent=function(e){},e.prototype.preventDefault=function(e){},e.prototype.isPrevented=function(e){},e.prototype.getInnerHTML=function(e){},e.prototype.getTemplateContent=function(e){},e.prototype.getOuterHTML=function(e){},e.prototype.nodeName=function(e){},e.prototype.nodeValue=function(e){},e.prototype.type=function(e){},e.prototype.content=function(e){},e.prototype.firstChild=function(e){},e.prototype.nextSibling=function(e){},e.prototype.parentElement=function(e){},e.prototype.childNodes=function(e){},e.prototype.childNodesAsList=function(e){},e.prototype.clearNodes=function(e){},e.prototype.appendChild=function(e,t){},e.prototype.removeChild=function(e,t){},e.prototype.replaceChild=function(e,t,n){},e.prototype.remove=function(e){},e.prototype.insertBefore=function(e,t,n){},e.prototype.insertAllBefore=function(e,t,n){},e.prototype.insertAfter=function(e,t,n){},e.prototype.setInnerHTML=function(e,t){},e.prototype.getText=function(e){},e.prototype.setText=function(e,t){},e.prototype.getValue=function(e){},e.prototype.setValue=function(e,t){},e.prototype.getChecked=function(e){},e.prototype.setChecked=function(e,t){},e.prototype.createComment=function(e){},e.prototype.createTemplate=function(e){},e.prototype.createElement=function(e,t){},e.prototype.createElementNS=function(e,t,n){},e.prototype.createTextNode=function(e,t){},e.prototype.createScriptTag=function(e,t,n){},e.prototype.createStyleElement=function(e,t){},e.prototype.createShadowRoot=function(e){},e.prototype.getShadowRoot=function(e){},e.prototype.getHost=function(e){},e.prototype.getDistributedNodes=function(e){},e.prototype.clone=function(e){},e.prototype.getElementsByClassName=function(e,t){},e.prototype.getElementsByTagName=function(e,t){},e.prototype.classList=function(e){},e.prototype.addClass=function(e,t){},e.prototype.removeClass=function(e,t){},e.prototype.hasClass=function(e,t){},e.prototype.setStyle=function(e,t,n){},e.prototype.removeStyle=function(e,t){},e.prototype.getStyle=function(e,t){},e.prototype.hasStyle=function(e,t,n){},e.prototype.tagName=function(e){},e.prototype.attributeMap=function(e){},e.prototype.hasAttribute=function(e,t){},e.prototype.hasAttributeNS=function(e,t,n){},e.prototype.getAttribute=function(e,t){},e.prototype.getAttributeNS=function(e,t,n){},e.prototype.setAttribute=function(e,t,n){},e.prototype.setAttributeNS=function(e,t,n,r){},e.prototype.removeAttribute=function(e,t){},e.prototype.removeAttributeNS=function(e,t,n){},e.prototype.templateAwareRoot=function(e){},e.prototype.createHtmlDocument=function(){},e.prototype.getBoundingClientRect=function(e){},e.prototype.getTitle=function(e){},e.prototype.setTitle=function(e,t){},e.prototype.elementMatches=function(e,t){},e.prototype.isTemplateElement=function(e){},e.prototype.isTextNode=function(e){},e.prototype.isCommentNode=function(e){},e.prototype.isElementNode=function(e){},e.prototype.hasShadowRoot=function(e){},e.prototype.isShadowRoot=function(e){},e.prototype.importIntoDoc=function(e){},e.prototype.adoptNode=function(e){},e.prototype.getHref=function(e){},e.prototype.getEventKey=function(e){},e.prototype.resolveAndSetHref=function(e,t,n){},e.prototype.supportsDOMEvents=function(){},e.prototype.supportsNativeShadowDOM=function(){},e.prototype.getGlobalEventTarget=function(e,t){},e.prototype.getHistory=function(){},e.prototype.getLocation=function(){},e.prototype.getBaseHref=function(e){},e.prototype.resetBaseElement=function(){},e.prototype.getUserAgent=function(){},e.prototype.setData=function(e,t,n){},e.prototype.getComputedStyle=function(e){},e.prototype.getData=function(e,t){},e.prototype.supportsWebAnimation=function(){},e.prototype.performanceNow=function(){},e.prototype.getAnimationPrefix=function(){},e.prototype.getTransitionEnd=function(){},e.prototype.supportsAnimation=function(){},e.prototype.supportsCookies=function(){},e.prototype.getCookie=function(e){},e.prototype.setCookie=function(e,t){},e}(),L=function(e){function t(){var t=e.call(this)||this;t._animationPrefix=null,t._transitionEnd=null;try{var n=t.createElement("div",document);if(null!=t.getStyle(n,"animationName"))t._animationPrefix="";else for(var r=["Webkit","Moz","O","ms"],o=0;o<r.length;o++)if(null!=t.getStyle(n,r[o]+"AnimationName")){t._animationPrefix="-"+r[o].toLowerCase()+"-";break}var i={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};Object.keys(i).forEach(function(e){null!=t.getStyle(n,e)&&(t._transitionEnd=i[e])})}catch(e){t._animationPrefix=null,t._transitionEnd=null}return t}return k.a(t,e),t.prototype.getDistributedNodes=function(e){return e.getDistributedNodes()},t.prototype.resolveAndSetHref=function(e,t,n){e.href=null==n?t:t+"/../"+n},t.prototype.supportsDOMEvents=function(){return!0},t.prototype.supportsNativeShadowDOM=function(){return"function"==typeof document.body.createShadowRoot},t.prototype.getAnimationPrefix=function(){return this._animationPrefix?this._animationPrefix:""},t.prototype.getTransitionEnd=function(){return this._transitionEnd?this._transitionEnd:""},t.prototype.supportsAnimation=function(){return null!=this._animationPrefix&&null!=this._transitionEnd},t}(j),V={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},H={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},B={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"};M["\u0275global"].Node&&(x=M["\u0275global"].Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))});var q,W=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return k.a(t,e),t.prototype.parse=function(e){throw new Error("parse not implemented")},t.makeCurrent=function(){o(new t)},t.prototype.hasProperty=function(e,t){return t in e},t.prototype.setProperty=function(e,t,n){e[t]=n},t.prototype.getProperty=function(e,t){return e[t]},t.prototype.invoke=function(e,t,n){e[t].apply(e,n)},t.prototype.logError=function(e){window.console&&(console.error?console.error(e):console.log(e))},t.prototype.log=function(e){window.console&&window.console.log&&window.console.log(e)},t.prototype.logGroup=function(e){window.console&&window.console.group&&window.console.group(e)},t.prototype.logGroupEnd=function(){window.console&&window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(t.prototype,"attrToPropMap",{get:function(){return V},enumerable:!0,configurable:!0}),t.prototype.contains=function(e,t){return x.call(e,t)},t.prototype.querySelector=function(e,t){return e.querySelector(t)},t.prototype.querySelectorAll=function(e,t){return e.querySelectorAll(t)},t.prototype.on=function(e,t,n){e.addEventListener(t,n,!1)},t.prototype.onAndCancel=function(e,t,n){return e.addEventListener(t,n,!1),function(){e.removeEventListener(t,n,!1)}},t.prototype.dispatchEvent=function(e,t){e.dispatchEvent(t)},t.prototype.createMouseEvent=function(e){var t=document.createEvent("MouseEvent");return t.initEvent(e,!0,!0),t},t.prototype.createEvent=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t},t.prototype.preventDefault=function(e){e.preventDefault(),e.returnValue=!1},t.prototype.isPrevented=function(e){return e.defaultPrevented||null!=e.returnValue&&!e.returnValue},t.prototype.getInnerHTML=function(e){return e.innerHTML},t.prototype.getTemplateContent=function(e){return"content"in e&&e instanceof HTMLTemplateElement?e.content:null},t.prototype.getOuterHTML=function(e){return e.outerHTML},t.prototype.nodeName=function(e){return e.nodeName},t.prototype.nodeValue=function(e){return e.nodeValue},t.prototype.type=function(e){return e.type},t.prototype.content=function(e){return this.hasProperty(e,"content")?e.content:e},t.prototype.firstChild=function(e){return e.firstChild},t.prototype.nextSibling=function(e){return e.nextSibling},t.prototype.parentElement=function(e){return e.parentNode},t.prototype.childNodes=function(e){return e.childNodes},t.prototype.childNodesAsList=function(e){for(var t=e.childNodes,n=new Array(t.length),r=0;r<t.length;r++)n[r]=t[r];return n},t.prototype.clearNodes=function(e){for(;e.firstChild;)e.removeChild(e.firstChild)},t.prototype.appendChild=function(e,t){e.appendChild(t)},t.prototype.removeChild=function(e,t){e.removeChild(t)},t.prototype.replaceChild=function(e,t,n){e.replaceChild(t,n)},t.prototype.remove=function(e){return e.parentNode&&e.parentNode.removeChild(e),e},t.prototype.insertBefore=function(e,t,n){e.insertBefore(n,t)},t.prototype.insertAllBefore=function(e,t,n){n.forEach(function(n){return e.insertBefore(n,t)})},t.prototype.insertAfter=function(e,t,n){e.insertBefore(n,t.nextSibling)},t.prototype.setInnerHTML=function(e,t){e.innerHTML=t},t.prototype.getText=function(e){return e.textContent},t.prototype.setText=function(e,t){e.textContent=t},t.prototype.getValue=function(e){return e.value},t.prototype.setValue=function(e,t){e.value=t},t.prototype.getChecked=function(e){return e.checked},t.prototype.setChecked=function(e,t){e.checked=t},t.prototype.createComment=function(e){return document.createComment(e)},t.prototype.createTemplate=function(e){var t=document.createElement("template");return t.innerHTML=e,t},t.prototype.createElement=function(e,t){return void 0===t&&(t=document),t.createElement(e)},t.prototype.createElementNS=function(e,t,n){return void 0===n&&(n=document),n.createElementNS(e,t)},t.prototype.createTextNode=function(e,t){return void 0===t&&(t=document),t.createTextNode(e)},t.prototype.createScriptTag=function(e,t,n){void 0===n&&(n=document);var r=n.createElement("SCRIPT");return r.setAttribute(e,t),r},t.prototype.createStyleElement=function(e,t){void 0===t&&(t=document);var n=t.createElement("style");return this.appendChild(n,this.createTextNode(e)),n},t.prototype.createShadowRoot=function(e){return e.createShadowRoot()},t.prototype.getShadowRoot=function(e){return e.shadowRoot},t.prototype.getHost=function(e){return e.host},t.prototype.clone=function(e){return e.cloneNode(!0)},t.prototype.getElementsByClassName=function(e,t){return e.getElementsByClassName(t)},t.prototype.getElementsByTagName=function(e,t){return e.getElementsByTagName(t)},t.prototype.classList=function(e){return Array.prototype.slice.call(e.classList,0)},t.prototype.addClass=function(e,t){e.classList.add(t)},t.prototype.removeClass=function(e,t){e.classList.remove(t)},t.prototype.hasClass=function(e,t){return e.classList.contains(t)},t.prototype.setStyle=function(e,t,n){e.style[t]=n},t.prototype.removeStyle=function(e,t){e.style[t]=""},t.prototype.getStyle=function(e,t){return e.style[t]},t.prototype.hasStyle=function(e,t,n){var r=this.getStyle(e,t)||"";return n?r==n:r.length>0},t.prototype.tagName=function(e){return e.tagName},t.prototype.attributeMap=function(e){for(var t=new Map,n=e.attributes,r=0;r<n.length;r++){var o=n[r];t.set(o.name,o.value)}return t},t.prototype.hasAttribute=function(e,t){return e.hasAttribute(t)},t.prototype.hasAttributeNS=function(e,t,n){return e.hasAttributeNS(t,n)},t.prototype.getAttribute=function(e,t){return e.getAttribute(t)},t.prototype.getAttributeNS=function(e,t,n){return e.getAttributeNS(t,n)},t.prototype.setAttribute=function(e,t,n){e.setAttribute(t,n)},t.prototype.setAttributeNS=function(e,t,n,r){e.setAttributeNS(t,n,r)},t.prototype.removeAttribute=function(e,t){e.removeAttribute(t)},t.prototype.removeAttributeNS=function(e,t,n){e.removeAttributeNS(t,n)},t.prototype.templateAwareRoot=function(e){return this.isTemplateElement(e)?this.content(e):e},t.prototype.createHtmlDocument=function(){return document.implementation.createHTMLDocument("fakeTitle")},t.prototype.getBoundingClientRect=function(e){try{return e.getBoundingClientRect()}catch(e){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}},t.prototype.getTitle=function(e){return document.title},t.prototype.setTitle=function(e,t){document.title=t||""},t.prototype.elementMatches=function(e,t){return e instanceof HTMLElement&&(e.matches&&e.matches(t)||e.msMatchesSelector&&e.msMatchesSelector(t)||e.webkitMatchesSelector&&e.webkitMatchesSelector(t))},t.prototype.isTemplateElement=function(e){return e instanceof HTMLElement&&"TEMPLATE"==e.nodeName},t.prototype.isTextNode=function(e){return e.nodeType===Node.TEXT_NODE},t.prototype.isCommentNode=function(e){return e.nodeType===Node.COMMENT_NODE},t.prototype.isElementNode=function(e){return e.nodeType===Node.ELEMENT_NODE},t.prototype.hasShadowRoot=function(e){return null!=e.shadowRoot&&e instanceof HTMLElement},t.prototype.isShadowRoot=function(e){return e instanceof DocumentFragment},t.prototype.importIntoDoc=function(e){return document.importNode(this.templateAwareRoot(e),!0)},t.prototype.adoptNode=function(e){return document.adoptNode(e)},t.prototype.getHref=function(e){return e.href},t.prototype.getEventKey=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&B.hasOwnProperty(t)&&(t=B[t]))}return H[t]||t},t.prototype.getGlobalEventTarget=function(e,t){return"window"===t?window:"document"===t?document:"body"===t?document.body:null},t.prototype.getHistory=function(){return window.history},t.prototype.getLocation=function(){return window.location},t.prototype.getBaseHref=function(e){var t=i();return null==t?null:s(t)},t.prototype.resetBaseElement=function(){U=null},t.prototype.getUserAgent=function(){return window.navigator.userAgent},t.prototype.setData=function(e,t,n){this.setAttribute(e,"data-"+t,n)},t.prototype.getData=function(e,t){return this.getAttribute(e,"data-"+t)},t.prototype.getComputedStyle=function(e){return getComputedStyle(e)},t.prototype.supportsWebAnimation=function(){return"function"==typeof Element.prototype.animate},t.prototype.performanceNow=function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()},t.prototype.supportsCookies=function(){return!0},t.prototype.getCookie=function(e){return Object(D["\u0275parseCookieValue"])(document.cookie,e)},t.prototype.setCookie=function(e,t){document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)},t}(L),U=null,z=D.DOCUMENT,G=function(e){function t(t){var n=e.call(this)||this;return n._doc=t,n._init(),n}return k.a(t,e),t.prototype._init=function(){this._location=r().getLocation(),this._history=r().getHistory()},Object.defineProperty(t.prototype,"location",{get:function(){return this._location},enumerable:!0,configurable:!0}),t.prototype.getBaseHrefFromDOM=function(){return r().getBaseHref(this._doc)},t.prototype.onPopState=function(e){r().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)},t.prototype.onHashChange=function(e){r().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)},Object.defineProperty(t.prototype,"pathname",{get:function(){return this._location.pathname},set:function(e){this._location.pathname=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"search",{get:function(){return this._location.search},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hash",{get:function(){return this._location.hash},enumerable:!0,configurable:!0}),t.prototype.pushState=function(e,t,n){a()?this._history.pushState(e,t,n):this._location.hash=n},t.prototype.replaceState=function(e,t,n){a()?this._history.replaceState(e,t,n):this._location.hash=n},t.prototype.forward=function(){this._history.forward()},t.prototype.back=function(){this._history.back()},t}(D.PlatformLocation);G.decorators=[{type:M.Injectable}],G.ctorParameters=function(){return[{type:void 0,decorators:[{type:M.Inject,args:[z]}]}]};var Q=function(){function e(e){this._doc=e,this._dom=r()}return e.prototype.addTag=function(e,t){return void 0===t&&(t=!1),e?this._getOrCreateElement(e,t):null},e.prototype.addTags=function(e,t){var n=this;return void 0===t&&(t=!1),e?e.reduce(function(e,r){return r&&e.push(n._getOrCreateElement(r,t)),e},[]):[]},e.prototype.getTag=function(e){return e?this._dom.querySelector(this._doc,"meta["+e+"]"):null},e.prototype.getTags=function(e){if(!e)return[];var t=this._dom.querySelectorAll(this._doc,"meta["+e+"]");return t?[].slice.call(t):[]},e.prototype.updateTag=function(e,t){if(!e)return null;t=t||this._parseSelector(e);var n=this.getTag(t);return n?this._setMetaElementAttributes(e,n):this._getOrCreateElement(e,!0)},e.prototype.removeTag=function(e){this.removeTagElement(this.getTag(e))},e.prototype.removeTagElement=function(e){e&&this._dom.remove(e)},e.prototype._getOrCreateElement=function(e,t){if(void 0===t&&(t=!1),!t){var n=this._parseSelector(e),r=this.getTag(n);if(r&&this._containsAttributes(e,r))return r}var o=this._dom.createElement("meta");this._setMetaElementAttributes(e,o);var i=this._dom.getElementsByTagName(this._doc,"head")[0];return this._dom.appendChild(i,o),o},e.prototype._setMetaElementAttributes=function(e,t){var n=this;return Object.keys(e).forEach(function(r){return n._dom.setAttribute(t,r,e[r])}),t},e.prototype._parseSelector=function(e){var t=e.name?"name":"property";return t+'="'+e[t]+'"'},e.prototype._containsAttributes=function(e,t){var n=this;return Object.keys(e).every(function(r){return n._dom.getAttribute(t,r)===e[r]})},e}();Q.decorators=[{type:M.Injectable}],Q.ctorParameters=function(){return[{type:void 0,decorators:[{type:M.Inject,args:[z]}]}]};var K=new M.InjectionToken("TRANSITION_ID"),J=[{provide:M.APP_INITIALIZER,useFactory:u,deps:[K,z,M.Injector],multi:!0}],Y=function(){function e(){}return e.init=function(){Object(M.setTestabilityGetter)(new e)},e.prototype.addToWindow=function(e){M["\u0275global"].getAngularTestability=function(t,n){void 0===n&&(n=!0);var r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},M["\u0275global"].getAllAngularTestabilities=function(){return e.getAllTestabilities()},M["\u0275global"].getAllAngularRootElements=function(){return e.getAllRootElements()};var t=function(e){var t=M["\u0275global"].getAllAngularTestabilities(),n=t.length,r=!1,o=function(t){r=r||t,0==--n&&e(r)};t.forEach(function(e){e.whenStable(o)})};M["\u0275global"].frameworkStabilizers||(M["\u0275global"].frameworkStabilizers=[]),M["\u0275global"].frameworkStabilizers.push(t)},e.prototype.findTestabilityInTree=function(e,t,n){if(null==t)return null;var o=e.getTestability(t);return null!=o?o:n?r().isShadowRoot(t)?this.findTestabilityInTree(e,r().getHost(t),!0):this.findTestabilityInTree(e,r().parentElement(t),!0):null},e}(),X=function(){function e(e){this._doc=e}return e.prototype.getTitle=function(){return r().getTitle(this._doc)},e.prototype.setTitle=function(e){r().setTitle(this._doc,e)},e}();X.decorators=[{type:M.Injectable}],X.ctorParameters=function(){return[{type:void 0,decorators:[{type:M.Inject,args:[z]}]}]};var Z,$={ApplicationRef:M.ApplicationRef,NgZone:M.NgZone},ee="probe",te="coreTokens",ne=function(){function e(e,t){this.name=e,this.token=t}return e}(),re=[{provide:M.APP_INITIALIZER,useFactory:p,deps:[[ne,new M.Optional],[M.NgProbeToken,new M.Optional]],multi:!0}],oe=new M.InjectionToken("EventManagerPlugins"),ie=function(){function e(e,t){var n=this;this._zone=t,this._eventNameToPlugin=new Map,e.forEach(function(e){return e.manager=n}),this._plugins=e.slice().reverse()}return e.prototype.addEventListener=function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)},e.prototype.addGlobalEventListener=function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)},e.prototype.getZone=function(){return this._zone},e.prototype._findPluginFor=function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,r=0;r<n.length;r++){var o=n[r];if(o.supports(e))return this._eventNameToPlugin.set(e,o),o}throw new Error("No event manager plugin found for event "+e)},e}();ie.decorators=[{type:M.Injectable}],ie.ctorParameters=function(){return[{type:Array,decorators:[{type:M.Inject,args:[oe]}]},{type:M.NgZone}]};var se=function(){function e(e){this._doc=e}return e.prototype.supports=function(e){},e.prototype.addEventListener=function(e,t,n){},e.prototype.addGlobalEventListener=function(e,t,n){var o=r().getGlobalEventTarget(this._doc,e);if(!o)throw new Error("Unsupported event target "+o+" for event "+t);return this.addEventListener(o,t,n)},e}(),ae=function(){function e(){this._stylesSet=new Set}return e.prototype.addStyles=function(e){var t=this,n=new Set;e.forEach(function(e){t._stylesSet.has(e)||(t._stylesSet.add(e),n.add(e))}),this.onStylesAdded(n)},e.prototype.onStylesAdded=function(e){},e.prototype.getAllStyles=function(){return Array.from(this._stylesSet)},e}();ae.decorators=[{type:M.Injectable}],ae.ctorParameters=function(){return[]};var ue=function(e){function t(t){var n=e.call(this)||this;return n._doc=t,n._hostNodes=new Set,n._styleNodes=new Set,n._hostNodes.add(t.head),n}return k.a(t,e),t.prototype._addStylesToHost=function(e,t){var n=this;e.forEach(function(e){var r=n._doc.createElement("style");r.textContent=e,n._styleNodes.add(t.appendChild(r))})},t.prototype.addHost=function(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)},t.prototype.removeHost=function(e){this._hostNodes.delete(e)},t.prototype.onStylesAdded=function(e){var t=this;this._hostNodes.forEach(function(n){return t._addStylesToHost(e,n)})},t.prototype.ngOnDestroy=function(){this._styleNodes.forEach(function(e){return r().remove(e)})},t}(ae);ue.decorators=[{type:M.Injectable}],ue.ctorParameters=function(){return[{type:void 0,decorators:[{type:M.Inject,args:[z]}]}]};var ce={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},le=/%COMP%/g,pe="_nghost-%COMP%",he="_ngcontent-%COMP%",fe=function(){function e(e,t){this.eventManager=e,this.sharedStylesHost=t,this.rendererByCompId=new Map,this.defaultRenderer=new de(e)}return e.prototype.createRenderer=function(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case M.ViewEncapsulation.Emulated:var n=this.rendererByCompId.get(t.id);return n||(n=new ve(this.eventManager,this.sharedStylesHost,t),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n;case M.ViewEncapsulation.Native:return new me(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){var r=y(t.id,t.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}},e.prototype.begin=function(){},e.prototype.end=function(){},e}();fe.decorators=[{type:M.Injectable}],fe.ctorParameters=function(){return[{type:ie},{type:ue}]};var de=function(){function e(e){this.eventManager=e,this.data=Object.create(null)}return e.prototype.destroy=function(){},e.prototype.createElement=function(e,t){return t?document.createElementNS(ce[t],e):document.createElement(e)},e.prototype.createComment=function(e){return document.createComment(e)},e.prototype.createText=function(e){return document.createTextNode(e)},e.prototype.appendChild=function(e,t){e.appendChild(t)},e.prototype.insertBefore=function(e,t,n){e&&e.insertBefore(t,n)},e.prototype.removeChild=function(e,t){e&&e.removeChild(t)},e.prototype.selectRootElement=function(e){var t="string"==typeof e?document.querySelector(e):e;if(!t)throw new Error('The selector "'+e+'" did not match any elements');return t.textContent="",t},e.prototype.parentNode=function(e){return e.parentNode},e.prototype.nextSibling=function(e){return e.nextSibling},e.prototype.setAttribute=function(e,t,n,r){if(r){t=r+":"+t;var o=ce[r];o?e.setAttributeNS(o,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)},e.prototype.removeAttribute=function(e,t,n){if(n){var r=ce[n];r?e.removeAttributeNS(r,t):e.removeAttribute(n+":"+t)}else e.removeAttribute(t)},e.prototype.addClass=function(e,t){e.classList.add(t)},e.prototype.removeClass=function(e,t){e.classList.remove(t)},e.prototype.setStyle=function(e,t,n,r){r&M.RendererStyleFlags2.DashCase?e.style.setProperty(t,n,r&M.RendererStyleFlags2.Important?"important":""):e.style[t]=n},e.prototype.removeStyle=function(e,t,n){n&M.RendererStyleFlags2.DashCase?e.style.removeProperty(t):e.style[t]=""},e.prototype.setProperty=function(e,t,n){m(t,"property"),e[t]=n},e.prototype.setValue=function(e,t){e.nodeValue=t},e.prototype.listen=function(e,t,n){return m(t,"listener"),"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,v(n)):this.eventManager.addEventListener(e,t,v(n))},e}(),ye="@".charCodeAt(0),ve=function(e){function t(t,n,r){var o=e.call(this,t)||this;o.component=r;var i=y(r.id,r.styles,[]);return n.addStyles(i),o.contentAttr=f(r.id),o.hostAttr=d(r.id),o}return k.a(t,e),t.prototype.applyToHost=function(t){e.prototype.setAttribute.call(this,t,this.hostAttr,"")},t.prototype.createElement=function(t,n){var r=e.prototype.createElement.call(this,t,n);return e.prototype.setAttribute.call(this,r,this.contentAttr,""),r},t}(de),me=function(e){function t(t,n,r,o){var i=e.call(this,t)||this;i.sharedStylesHost=n,i.hostEl=r,i.component=o,i.shadowRoot=r.createShadowRoot(),i.sharedStylesHost.addHost(i.shadowRoot);for(var s=y(o.id,o.styles,[]),a=0;a<s.length;a++){var u=document.createElement("style");u.textContent=s[a],i.shadowRoot.appendChild(u)}return i}return k.a(t,e),t.prototype.nodeOrShadowRoot=function(e){return e===this.hostEl?this.shadowRoot:e},t.prototype.destroy=function(){this.sharedStylesHost.removeHost(this.shadowRoot)},t.prototype.appendChild=function(t,n){return e.prototype.appendChild.call(this,this.nodeOrShadowRoot(t),n)},t.prototype.insertBefore=function(t,n,r){return e.prototype.insertBefore.call(this,this.nodeOrShadowRoot(t),n,r)},t.prototype.removeChild=function(t,n){return e.prototype.removeChild.call(this,this.nodeOrShadowRoot(t),n)},t.prototype.parentNode=function(t){return this.nodeOrShadowRoot(e.prototype.parentNode.call(this,this.nodeOrShadowRoot(t)))},t}(de),ge=function(e){function t(t){return e.call(this,t)||this}return k.a(t,e),t.prototype.supports=function(e){return!0},t.prototype.addEventListener=function(e,t,n){return e.addEventListener(t,n,!1),function(){return e.removeEventListener(t,n,!1)}},t}(se);ge.decorators=[{type:M.Injectable}],ge.ctorParameters=function(){return[{type:void 0,decorators:[{type:M.Inject,args:[z]}]}]};var _e={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0},be=new M.InjectionToken("HammerGestureConfig"),we=function(){function e(){this.events=[],this.overrides={}}return e.prototype.buildHammer=function(e){var t=new Hammer(e);t.get("pinch").set({enable:!0}),t.get("rotate").set({enable:!0});for(var n in this.overrides)t.get(n).set(this.overrides[n]);return t},e}();we.decorators=[{type:M.Injectable}],we.ctorParameters=function(){return[]};var Ce=function(e){function t(t,n){var r=e.call(this,t)||this;return r._config=n,r}return k.a(t,e),t.prototype.supports=function(e){if(!_e.hasOwnProperty(e.toLowerCase())&&!this.isCustomEvent(e))return!1;if(!window.Hammer)throw new Error("Hammer.js is not loaded, can not bind "+e+" event");return!0},t.prototype.addEventListener=function(e,t,n){var r=this,o=this.manager.getZone();return t=t.toLowerCase(),o.runOutsideAngular(function(){var i=r._config.buildHammer(e),s=function(e){o.runGuarded(function(){n(e)})};return i.on(t,s),function(){return i.off(t,s)}})},t.prototype.isCustomEvent=function(e){return this._config.events.indexOf(e)>-1},t}(se);Ce.decorators=[{type:M.Injectable}],Ce.ctorParameters=function(){return[{type:void 0,decorators:[{type:M.Inject,args:[z]}]},{type:we,decorators:[{type:M.Inject,args:[be]}]}]};var Ee=["alt","control","meta","shift"],Se={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},Oe=function(e){function t(t){return e.call(this,t)||this}return k.a(t,e),t.prototype.supports=function(e){return null!=t.parseEventName(e)},t.prototype.addEventListener=function(e,n,o){var i=t.parseEventName(n),s=t.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return r().onAndCancel(e,i.domEventName,s)})},t.parseEventName=function(e){var n=e.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;var o=t._normalizeKey(n.pop()),i="";if(Ee.forEach(function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),i+=e+".")}),i+=o,0!=n.length||0===o.length)return null;var s={};return s.domEventName=r,s.fullKey=i,s},t.getEventFullKey=function(e){var t="",n=r().getEventKey(e);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),Ee.forEach(function(r){if(r!=n){(0,Se[r])(e)&&(t+=r+".")}}),t+=n},t.eventCallback=function(e,n,r){return function(o){t.getEventFullKey(o)===e&&r.runGuarded(function(){return n(o)})}},t._normalizeKey=function(e){switch(e){case"esc":return"escape";default:return e}},t}(se);Oe.decorators=[{type:M.Injectable}],Oe.ctorParameters=function(){return[{type:void 0,decorators:[{type:M.Inject,args:[z]}]}]};var Pe=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:\/?#]*(?:[\/?#]|$))/gi,Te=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i,Ne=null,Ie=null,Ae=w("area,br,col,hr,img,wbr"),Re=w("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),xe=w("rp,rt"),ke=C(xe,Re),De=C(Re,w("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Me=C(xe,w("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Fe=C(Ae,De,Me,ke),je=w("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Le=w("srcset"),Ve=w("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),He=C(je,Le,Ve),Be=function(){function e(){this.sanitizedSomething=!1,this.buf=[]}return e.prototype.sanitizeChildren=function(e){for(var t=e.firstChild;t;)if(Ie.isElementNode(t)?this.startElement(t):Ie.isTextNode(t)?this.chars(Ie.nodeValue(t)):this.sanitizedSomething=!0,Ie.firstChild(t))t=Ie.firstChild(t);else for(;t;){Ie.isElementNode(t)&&this.endElement(t);var n=E(t,Ie.nextSibling(t));if(n){t=n;break}t=E(t,Ie.parentElement(t))}return this.buf.join("")},e.prototype.startElement=function(e){var t=this,n=Ie.nodeName(e).toLowerCase();if(!Fe.hasOwnProperty(n))return void(this.sanitizedSomething=!0);this.buf.push("<"),this.buf.push(n),Ie.attributeMap(e).forEach(function(e,n){var r=n.toLowerCase();if(!He.hasOwnProperty(r))return void(t.sanitizedSomething=!0);je[r]&&(e=g(e)),Le[r]&&(e=_(e)),t.buf.push(" "),t.buf.push(n),t.buf.push('="'),t.buf.push(S(e)),t.buf.push('"')}),this.buf.push(">")},e.prototype.endElement=function(e){var t=Ie.nodeName(e).toLowerCase();Fe.hasOwnProperty(t)&&!Ae.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))},e.prototype.chars=function(e){this.buf.push(S(e))},e}(),qe=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,We=/([^\#-~ |!])/g,Ue=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),ze=/^url\(([^)]+)\)$/,Ge=function(){function e(){}return e.prototype.sanitize=function(e,t){},e.prototype.bypassSecurityTrustHtml=function(e){},e.prototype.bypassSecurityTrustStyle=function(e){},e.prototype.bypassSecurityTrustScript=function(e){},e.prototype.bypassSecurityTrustUrl=function(e){},e.prototype.bypassSecurityTrustResourceUrl=function(e){},e}(),Qe=function(e){function t(t){var n=e.call(this)||this;return n._doc=t,n}return k.a(t,e),t.prototype.sanitize=function(e,t){if(null==t)return null;switch(e){case M.SecurityContext.NONE:return t;case M.SecurityContext.HTML:return t instanceof Je?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"HTML"),P(this._doc,String(t)));case M.SecurityContext.STYLE:return t instanceof Ye?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"Style"),N(t));case M.SecurityContext.SCRIPT:if(t instanceof Xe)return t.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(t,"Script"),new Error("unsafe value used in a script context");case M.SecurityContext.URL:return t instanceof $e||t instanceof Ze?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"URL"),g(String(t)));case M.SecurityContext.RESOURCE_URL:if(t instanceof $e)return t.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(t,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+e+" (see http://g.co/ng/security#xss)")}},t.prototype.checkNotSafeValue=function(e,t){if(e instanceof Ke)throw new Error("Required a safe "+t+", got a "+e.getTypeName()+" (see http://g.co/ng/security#xss)")},t.prototype.bypassSecurityTrustHtml=function(e){return new Je(e)},t.prototype.bypassSecurityTrustStyle=function(e){return new Ye(e)},t.prototype.bypassSecurityTrustScript=function(e){return new Xe(e)},t.prototype.bypassSecurityTrustUrl=function(e){return new Ze(e)},t.prototype.bypassSecurityTrustResourceUrl=function(e){return new $e(e)},t}(Ge);Qe.decorators=[{type:M.Injectable}],Qe.ctorParameters=function(){return[{type:void 0,decorators:[{type:M.Inject,args:[z]}]}]};var Ke=function(){function e(e){this.changingThisBreaksApplicationSecurity=e}return e.prototype.getTypeName=function(){},e.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},e}(),Je=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return k.a(t,e),t.prototype.getTypeName=function(){return"HTML"},t}(Ke),Ye=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return k.a(t,e),t.prototype.getTypeName=function(){return"Style"},t}(Ke),Xe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return k.a(t,e),t.prototype.getTypeName=function(){return"Script"},t}(Ke),Ze=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return k.a(t,e),t.prototype.getTypeName=function(){return"URL"},t}(Ke),$e=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return k.a(t,e),t.prototype.getTypeName=function(){return"ResourceURL"},t}(Ke),et=[{provide:M.PLATFORM_ID,useValue:D["\u0275PLATFORM_BROWSER_ID"]},{provide:M.PLATFORM_INITIALIZER,useValue:I,multi:!0},{provide:D.PlatformLocation,useClass:G},{provide:z,useFactory:R,deps:[]}],tt=[{provide:M.Sanitizer,useExisting:Ge},{provide:Ge,useClass:Qe}],nt=Object(M.createPlatformFactory)(M.platformCore,"browser",et),rt=function(){function e(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return e.withServerTransition=function(t){return{ngModule:e,providers:[{provide:M.APP_ID,useValue:t.appId},{provide:K,useExisting:M.APP_ID},J]}},e}();rt.decorators=[{type:M.NgModule,args:[{providers:[tt,{provide:M.ErrorHandler,useFactory:A,deps:[]},{provide:oe,useClass:ge,multi:!0},{provide:oe,useClass:Oe,multi:!0},{provide:oe,useClass:Ce,multi:!0},{provide:be,useClass:we},fe,{provide:M.RendererFactory2,useExisting:fe},{provide:ae,useExisting:ue},ue,M.Testability,ie,re,Q,X],exports:[D.CommonModule,M.ApplicationModule]}]}],rt.ctorParameters=function(){return[{type:rt,decorators:[{type:M.Optional},{type:M.SkipSelf}]}]};var ot="undefined"!=typeof window&&window||{},it=function(){function e(e,t){this.msPerTick=e,this.numTicks=t}return e}();(function(){function e(e){this.appRef=e.injector.get(M.ApplicationRef)}e.prototype.timeChangeDetection=function(e){var t=e&&e.record,n=null!=ot.console.profile;t&&n&&ot.console.profile("Change Detection");for(var o=r().performanceNow(),i=0;i<5||r().performanceNow()-o<500;)this.appRef.tick(),i++;var s=r().performanceNow();t&&n&&ot.console.profileEnd("Change Detection");var a=(s-o)/i;return ot.console.log("ran "+i+" change detection cycles"),ot.console.log(a.toFixed(2)+" ms per check"),new it(a,i)}})(),function(){function e(){}e.all=function(){return function(e){return!0}},e.css=function(e){return function(t){return null!=t.nativeElement&&r().elementMatches(t.nativeElement,e)}},e.directive=function(e){return function(t){return-1!==t.providerTokens.indexOf(e)}}}(),new M.Version("4.4.6")},fvGz:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("F1yO"),o=n("JEJ4"),i=function(){function e(e,t){if(void 0===t){this.pieces_=e.split("/");for(var n=0,r=0;r<this.pieces_.length;r++)this.pieces_[r].length>0&&(this.pieces_[n]=this.pieces_[r],n++);this.pieces_.length=n,this.pieceNum_=0}else this.pieces_=e,this.pieceNum_=t}return Object.defineProperty(e,"Empty",{get:function(){return new e("")},enumerable:!0,configurable:!0}),e.prototype.getFront=function(){return this.pieceNum_>=this.pieces_.length?null:this.pieces_[this.pieceNum_]},e.prototype.getLength=function(){return this.pieces_.length-this.pieceNum_},e.prototype.popFront=function(){var t=this.pieceNum_;return t<this.pieces_.length&&t++,new e(this.pieces_,t)},e.prototype.getBack=function(){return this.pieceNum_<this.pieces_.length?this.pieces_[this.pieces_.length-1]:null},e.prototype.toString=function(){for(var e="",t=this.pieceNum_;t<this.pieces_.length;t++)""!==this.pieces_[t]&&(e+="/"+this.pieces_[t]);return e||"/"},e.prototype.toUrlEncodedString=function(){for(var e="",t=this.pieceNum_;t<this.pieces_.length;t++)""!==this.pieces_[t]&&(e+="/"+encodeURIComponent(String(this.pieces_[t])));return e||"/"},e.prototype.slice=function(e){return void 0===e&&(e=0),this.pieces_.slice(this.pieceNum_+e)},e.prototype.parent=function(){if(this.pieceNum_>=this.pieces_.length)return null;for(var t=[],n=this.pieceNum_;n<this.pieces_.length-1;n++)t.push(this.pieces_[n]);return new e(t,0)},e.prototype.child=function(t){for(var n=[],r=this.pieceNum_;r<this.pieces_.length;r++)n.push(this.pieces_[r]);if(t instanceof e)for(var r=t.pieceNum_;r<t.pieces_.length;r++)n.push(t.pieces_[r]);else for(var o=t.split("/"),r=0;r<o.length;r++)o[r].length>0&&n.push(o[r]);return new e(n,0)},e.prototype.isEmpty=function(){return this.pieceNum_>=this.pieces_.length},e.relativePath=function(t,n){var r=t.getFront(),o=n.getFront();if(null===r)return n;if(r===o)return e.relativePath(t.popFront(),n.popFront());throw new Error("INTERNAL ERROR: innerPath ("+n+") is not within outerPath ("+t+")")},e.comparePaths=function(e,t){for(var n=e.slice(),o=t.slice(),i=0;i<n.length&&i<o.length;i++){var s=r.nameCompare(n[i],o[i]);if(0!==s)return s}return n.length===o.length?0:n.length<o.length?-1:1},e.prototype.equals=function(e){if(this.getLength()!==e.getLength())return!1;for(var t=this.pieceNum_,n=e.pieceNum_;t<=this.pieces_.length;t++,n++)if(this.pieces_[t]!==e.pieces_[n])return!1;return!0},e.prototype.contains=function(e){var t=this.pieceNum_,n=e.pieceNum_;if(this.getLength()>e.getLength())return!1;for(;t<this.pieces_.length;){if(this.pieces_[t]!==e.pieces_[n])return!1;++t,++n}return!0},e}();t.Path=i;var s=function(){function e(e,t){this.errorPrefix_=t,this.parts_=e.slice(),this.byteLength_=Math.max(1,this.parts_.length);for(var n=0;n<this.parts_.length;n++)this.byteLength_+=o.stringLength(this.parts_[n]);this.checkValid_()}return Object.defineProperty(e,"MAX_PATH_DEPTH",{get:function(){return 32},enumerable:!0,configurable:!0}),Object.defineProperty(e,"MAX_PATH_LENGTH_BYTES",{get:function(){return 768},enumerable:!0,configurable:!0}),e.prototype.push=function(e){this.parts_.length>0&&(this.byteLength_+=1),this.parts_.push(e),this.byteLength_+=o.stringLength(e),this.checkValid_()},e.prototype.pop=function(){var e=this.parts_.pop();this.byteLength_-=o.stringLength(e),this.parts_.length>0&&(this.byteLength_-=1)},e.prototype.checkValid_=function(){if(this.byteLength_>e.MAX_PATH_LENGTH_BYTES)throw new Error(this.errorPrefix_+"has a key path longer than "+e.MAX_PATH_LENGTH_BYTES+" bytes ("+this.byteLength_+").");if(this.parts_.length>e.MAX_PATH_DEPTH)throw new Error(this.errorPrefix_+"path specified exceeds the maximum depth that can be written ("+e.MAX_PATH_DEPTH+") or object contains a cycle "+this.toErrorString())},e.prototype.toErrorString=function(){return 0==this.parts_.length?"":"in property '"+this.parts_.join(".")+"'"},e}();t.ValidationPath=s},gOHv:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("JEJ4");!function(e){e[e.OVERWRITE=0]="OVERWRITE",e[e.MERGE=1]="MERGE",e[e.ACK_USER_WRITE=2]="ACK_USER_WRITE",e[e.LISTEN_COMPLETE=3]="LISTEN_COMPLETE"}(t.OperationType||(t.OperationType={}));var o=function(){function e(e,t,n,o){this.fromUser=e,this.fromServer=t,this.queryId=n,this.tagged=o,r.assert(!o||t,"Tagged queries must be from server.")}return e.User=new e(!0,!1,null,!1),e.Server=new e(!1,!0,null,!1),e.forServerTaggedQuery=function(t){return new e(!1,!0,t,!0)},e}();t.OperationSource=o},grVA:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r={closed:!0,next:function(e){},error:function(e){throw e},complete:function(){}}},hQ4o:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("F1yO"),o=function(){function e(e){this.onMessage_=e,this.pendingResponses=[],this.currentResponseNum=0,this.closeAfterResponse=-1,this.onClose=null}return e.prototype.closeAfter=function(e,t){this.closeAfterResponse=e,this.onClose=t,this.closeAfterResponse<this.currentResponseNum&&(this.onClose(),this.onClose=null)},e.prototype.handleResponse=function(e,t){var n=this;this.pendingResponses[e]=t;for(var o=this;this.pendingResponses[this.currentResponseNum];){if("break"===function(){var e=o.pendingResponses[o.currentResponseNum];delete o.pendingResponses[o.currentResponseNum];for(var t=0;t<e.length;++t)!function(t){e[t]&&r.exceptionGuard(function(){n.onMessage_(e[t])})}(t);if(o.currentResponseNum===o.closeAfterResponse)return o.onClose&&(o.onClose(),o.onClose=null),"break";o.currentResponseNum++}())break}},e}();t.PacketReceiver=o},hkXn:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("JEJ4"),o=n("fvGz"),i=n("JEJ4"),s=function(){function e(){this.children={},this.childCount=0,this.value=null}return e}();t.TreeNode=s;var a=function(){function e(e,t,n){void 0===e&&(e=""),void 0===t&&(t=null),void 0===n&&(n=new s),this.name_=e,this.parent_=t,this.node_=n}return e.prototype.subTree=function(t){for(var n,r=t instanceof o.Path?t:new o.Path(t),a=this;null!==(n=r.getFront());){a=new e(n,a,i.safeGet(a.node_.children,n)||new s),r=r.popFront()}return a},e.prototype.getValue=function(){return this.node_.value},e.prototype.setValue=function(e){r.assert(void 0!==e,"Cannot set value to undefined"),this.node_.value=e,this.updateParents_()},e.prototype.clear=function(){this.node_.value=null,this.node_.children={},this.node_.childCount=0,this.updateParents_()},e.prototype.hasChildren=function(){return this.node_.childCount>0},e.prototype.isEmpty=function(){return null===this.getValue()&&!this.hasChildren()},e.prototype.forEachChild=function(t){var n=this;i.forEach(this.node_.children,function(r,o){t(new e(r,n,o))})},e.prototype.forEachDescendant=function(e,t,n){t&&!n&&e(this),this.forEachChild(function(t){t.forEachDescendant(e,!0,n)}),t&&n&&e(this)},e.prototype.forEachAncestor=function(e,t){for(var n=t?this:this.parent();null!==n;){if(e(n))return!0;n=n.parent()}return!1},e.prototype.forEachImmediateDescendantWithValue=function(e){this.forEachChild(function(t){null!==t.getValue()?e(t):t.forEachImmediateDescendantWithValue(e)})},e.prototype.path=function(){return new o.Path(null===this.parent_?this.name_:this.parent_.path()+"/"+this.name_)},e.prototype.name=function(){return this.name_},e.prototype.parent=function(){return this.parent_},e.prototype.updateParents_=function(){null!==this.parent_&&this.parent_.updateChild_(this.name_,this)},e.prototype.updateChild_=function(e,t){var n=t.isEmpty(),r=i.contains(this.node_.children,e);n&&r?(delete this.node_.children[e],this.node_.childCount--,this.updateParents_()):n||r||(this.node_.children[e]=t.node_,this.node_.childCount++,this.updateParents_())},e}();t.Tree=a},isNy:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t,n,r,o){void 0===o&&(o=null),this.isReverse_=r,this.resultGenerator_=o,this.nodeStack_=[];for(var i=1;!e.isEmpty();)if(e=e,i=t?n(e.key,t):1,r&&(i*=-1),i<0)e=this.isReverse_?e.left:e.right;else{if(0===i){this.nodeStack_.push(e);break}this.nodeStack_.push(e),e=this.isReverse_?e.right:e.left}}return e.prototype.getNext=function(){if(0===this.nodeStack_.length)return null;var e,t=this.nodeStack_.pop();if(e=this.resultGenerator_?this.resultGenerator_(t.key,t.value):{key:t.key,value:t.value},this.isReverse_)for(t=t.left;!t.isEmpty();)this.nodeStack_.push(t),t=t.right;else for(t=t.right;!t.isEmpty();)this.nodeStack_.push(t),t=t.left;return e},e.prototype.hasNext=function(){return this.nodeStack_.length>0},e.prototype.peek=function(){if(0===this.nodeStack_.length)return null;var e=this.nodeStack_[this.nodeStack_.length-1];return this.resultGenerator_?this.resultGenerator_(e.key,e.value):{key:e.key,value:e.value}},e}();t.SortedMapIterator=r;var o=function(){function e(t,n,r,o,i){this.key=t,this.value=n,this.color=null!=r?r:e.RED,this.left=null!=o?o:s.EMPTY_NODE,this.right=null!=i?i:s.EMPTY_NODE}return e.prototype.copy=function(t,n,r,o,i){return new e(null!=t?t:this.key,null!=n?n:this.value,null!=r?r:this.color,null!=o?o:this.left,null!=i?i:this.right)},e.prototype.count=function(){return this.left.count()+1+this.right.count()},e.prototype.isEmpty=function(){return!1},e.prototype.inorderTraversal=function(e){return this.left.inorderTraversal(e)||e(this.key,this.value)||this.right.inorderTraversal(e)},e.prototype.reverseTraversal=function(e){return this.right.reverseTraversal(e)||e(this.key,this.value)||this.left.reverseTraversal(e)},e.prototype.min_=function(){return this.left.isEmpty()?this:this.left.min_()},e.prototype.minKey=function(){return this.min_().key},e.prototype.maxKey=function(){return this.right.isEmpty()?this.key:this.right.maxKey()},e.prototype.insert=function(e,t,n){var r,o;return o=this,r=n(e,o.key),o=r<0?o.copy(null,null,null,o.left.insert(e,t,n),null):0===r?o.copy(null,t,null,null,null):o.copy(null,null,null,null,o.right.insert(e,t,n)),o.fixUp_()},e.prototype.removeMin_=function(){if(this.left.isEmpty())return s.EMPTY_NODE;var e=this;return e.left.isRed_()||e.left.left.isRed_()||(e=e.moveRedLeft_()),e=e.copy(null,null,null,e.left.removeMin_(),null),e.fixUp_()},e.prototype.remove=function(e,t){var n,r;if(n=this,t(e,n.key)<0)n.left.isEmpty()||n.left.isRed_()||n.left.left.isRed_()||(n=n.moveRedLeft_()),n=n.copy(null,null,null,n.left.remove(e,t),null);else{if(n.left.isRed_()&&(n=n.rotateRight_()),n.right.isEmpty()||n.right.isRed_()||n.right.left.isRed_()||(n=n.moveRedRight_()),0===t(e,n.key)){if(n.right.isEmpty())return s.EMPTY_NODE;r=n.right.min_(),n=n.copy(r.key,r.value,null,null,n.right.removeMin_())}n=n.copy(null,null,null,null,n.right.remove(e,t))}return n.fixUp_()},e.prototype.isRed_=function(){return this.color},e.prototype.fixUp_=function(){var e=this;return e.right.isRed_()&&!e.left.isRed_()&&(e=e.rotateLeft_()),e.left.isRed_()&&e.left.left.isRed_()&&(e=e.rotateRight_()),e.left.isRed_()&&e.right.isRed_()&&(e=e.colorFlip_()),e},e.prototype.moveRedLeft_=function(){var e=this.colorFlip_();return e.right.left.isRed_()&&(e=e.copy(null,null,null,null,e.right.rotateRight_()),e=e.rotateLeft_(),e=e.colorFlip_()),e},e.prototype.moveRedRight_=function(){var e=this.colorFlip_();return e.left.left.isRed_()&&(e=e.rotateRight_(),e=e.colorFlip_()),e},e.prototype.rotateLeft_=function(){var t=this.copy(null,null,e.RED,null,this.right.left);return this.right.copy(null,null,this.color,t,null)},e.prototype.rotateRight_=function(){var t=this.copy(null,null,e.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,t)},e.prototype.colorFlip_=function(){var e=this.left.copy(null,null,!this.left.color,null,null),t=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,e,t)},e.prototype.checkMaxDepth_=function(){var e=this.check_();return Math.pow(2,e)<=this.count()+1},e.prototype.check_=function(){var e;if(this.isRed_()&&this.left.isRed_())throw new Error("Red node has red child("+this.key+","+this.value+")");if(this.right.isRed_())throw new Error("Right child of ("+this.key+","+this.value+") is red");if((e=this.left.check_())!==this.right.check_())throw new Error("Black depths differ");return e+(this.isRed_()?0:1)},e.RED=!0,e.BLACK=!1,e}();t.LLRBNode=o;var i=function(){function e(){}return e.prototype.copy=function(e,t,n,r,o){return this},e.prototype.insert=function(e,t,n){return new o(e,t,null)},e.prototype.remove=function(e,t){return this},e.prototype.count=function(){return 0},e.prototype.isEmpty=function(){return!0},e.prototype.inorderTraversal=function(e){return!1},e.prototype.reverseTraversal=function(e){return!1},e.prototype.minKey=function(){return null},e.prototype.maxKey=function(){return null},e.prototype.check_=function(){return 0},e.prototype.isRed_=function(){return!1},e}();t.LLRBEmptyNode=i;var s=function(){function e(t,n){void 0===n&&(n=e.EMPTY_NODE),this.comparator_=t,this.root_=n}return e.prototype.insert=function(t,n){return new e(this.comparator_,this.root_.insert(t,n,this.comparator_).copy(null,null,o.BLACK,null,null))},e.prototype.remove=function(t){return new e(this.comparator_,this.root_.remove(t,this.comparator_).copy(null,null,o.BLACK,null,null))},e.prototype.get=function(e){for(var t,n=this.root_;!n.isEmpty();){if(0===(t=this.comparator_(e,n.key)))return n.value;t<0?n=n.left:t>0&&(n=n.right)}return null},e.prototype.getPredecessorKey=function(e){for(var t,n=this.root_,r=null;!n.isEmpty();){if(0===(t=this.comparator_(e,n.key))){if(n.left.isEmpty())return r?r.key:null;for(n=n.left;!n.right.isEmpty();)n=n.right;return n.key}t<0?n=n.left:t>0&&(r=n,n=n.right)}throw new Error("Attempted to find predecessor key for a nonexistent key.  What gives?")},e.prototype.isEmpty=function(){return this.root_.isEmpty()},e.prototype.count=function(){return this.root_.count()},e.prototype.minKey=function(){return this.root_.minKey()},e.prototype.maxKey=function(){return this.root_.maxKey()},e.prototype.inorderTraversal=function(e){return this.root_.inorderTraversal(e)},e.prototype.reverseTraversal=function(e){return this.root_.reverseTraversal(e)},e.prototype.getIterator=function(e){return new r(this.root_,null,this.comparator_,!1,e)},e.prototype.getIteratorFrom=function(e,t){return new r(this.root_,e,this.comparator_,!1,t)},e.prototype.getReverseIteratorFrom=function(e,t){return new r(this.root_,e,this.comparator_,!0,t)},e.prototype.getReverseIterator=function(e){return new r(this.root_,null,this.comparator_,!0,e)},e.EMPTY_NODE=new i,e}();t.SortedMap=s},j0qB:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("F1yO"),o=n("Rgd9"),i=n("UcKF"),s=n("FGYS"),a=function(){function e(e,t,n,o,i,a,u){this.id=e,this.repoInfo_=t,this.onMessage_=n,this.onReady_=o,this.onDisconnect_=i,this.onKill_=a,this.lastSessionId=u,this.connectionCount=0,this.pendingDataMessages=[],this.state_=0,this.log_=r.logWrapper("c:"+this.id+":"),this.transportManager_=new s.TransportManager(t),this.log_("Connection created"),this.start_()}return e.prototype.start_=function(){var e=this,t=this.transportManager_.initialTransport();this.conn_=new t(this.nextTransportId_(),this.repoInfo_,void 0,this.lastSessionId),this.primaryResponsesRequired_=t.responsesRequiredToBeHealthy||0;var n=this.connReceiver_(this.conn_),o=this.disconnReceiver_(this.conn_);this.tx_=this.conn_,this.rx_=this.conn_,this.secondaryConn_=null,this.isHealthy_=!1,setTimeout(function(){e.conn_&&e.conn_.open(n,o)},Math.floor(0));var i=t.healthyTimeout||0;i>0&&(this.healthyTimeout_=r.setTimeoutNonBlocking(function(){e.healthyTimeout_=null,e.isHealthy_||(e.conn_&&e.conn_.bytesReceived>102400?(e.log_("Connection exceeded healthy timeout but has received "+e.conn_.bytesReceived+" bytes.  Marking connection healthy."),e.isHealthy_=!0,e.conn_.markConnectionHealthy()):e.conn_&&e.conn_.bytesSent>10240?e.log_("Connection exceeded healthy timeout but has sent "+e.conn_.bytesSent+" bytes.  Leaving connection alive."):(e.log_("Closing unhealthy connection after timeout."),e.close()))},Math.floor(i)))},e.prototype.nextTransportId_=function(){return"c:"+this.id+":"+this.connectionCount++},e.prototype.disconnReceiver_=function(e){var t=this;return function(n){e===t.conn_?t.onConnectionLost_(n):e===t.secondaryConn_?(t.log_("Secondary connection lost."),t.onSecondaryConnectionLost_()):t.log_("closing an old connection")}},e.prototype.connReceiver_=function(e){var t=this;return function(n){2!=t.state_&&(e===t.rx_?t.onPrimaryMessageReceived_(n):e===t.secondaryConn_?t.onSecondaryMessageReceived_(n):t.log_("message on old connection"))}},e.prototype.sendRequest=function(e){var t={t:"d",d:e};this.sendData_(t)},e.prototype.tryCleanupConnection=function(){this.tx_===this.secondaryConn_&&this.rx_===this.secondaryConn_&&(this.log_("cleaning up and promoting a connection: "+this.secondaryConn_.connId),this.conn_=this.secondaryConn_,this.secondaryConn_=null)},e.prototype.onSecondaryControl_=function(e){if("t"in e){var t=e.t;"a"===t?this.upgradeIfSecondaryHealthy_():"r"===t?(this.log_("Got a reset on secondary, closing it"),this.secondaryConn_.close(),this.tx_!==this.secondaryConn_&&this.rx_!==this.secondaryConn_||this.close()):"o"===t&&(this.log_("got pong on secondary."),this.secondaryResponsesRequired_--,this.upgradeIfSecondaryHealthy_())}},e.prototype.onSecondaryMessageReceived_=function(e){var t=r.requireKey("t",e),n=r.requireKey("d",e);if("c"==t)this.onSecondaryControl_(n);else{if("d"!=t)throw new Error("Unknown protocol layer: "+t);this.pendingDataMessages.push(n)}},e.prototype.upgradeIfSecondaryHealthy_=function(){this.secondaryResponsesRequired_<=0?(this.log_("Secondary connection is healthy."),this.isHealthy_=!0,this.secondaryConn_.markConnectionHealthy(),this.proceedWithUpgrade_()):(this.log_("sending ping on secondary."),this.secondaryConn_.send({t:"c",d:{t:"p",d:{}}}))},e.prototype.proceedWithUpgrade_=function(){this.secondaryConn_.start(),this.log_("sending client ack on secondary"),this.secondaryConn_.send({t:"c",d:{t:"a",d:{}}}),this.log_("Ending transmission on primary"),this.conn_.send({t:"c",d:{t:"n",d:{}}}),this.tx_=this.secondaryConn_,this.tryCleanupConnection()},e.prototype.onPrimaryMessageReceived_=function(e){var t=r.requireKey("t",e),n=r.requireKey("d",e);"c"==t?this.onControl_(n):"d"==t&&this.onDataMessage_(n)},e.prototype.onDataMessage_=function(e){this.onPrimaryResponse_(),this.onMessage_(e)},e.prototype.onPrimaryResponse_=function(){this.isHealthy_||--this.primaryResponsesRequired_<=0&&(this.log_("Primary connection is healthy."),this.isHealthy_=!0,this.conn_.markConnectionHealthy())},e.prototype.onControl_=function(e){var t=r.requireKey("t",e);if("d"in e){var n=e.d;if("h"===t)this.onHandshake_(n);else if("n"===t){this.log_("recvd end transmission on primary"),this.rx_=this.secondaryConn_;for(var o=0;o<this.pendingDataMessages.length;++o)this.onDataMessage_(this.pendingDataMessages[o]);this.pendingDataMessages=[],this.tryCleanupConnection()}else"s"===t?this.onConnectionShutdown_(n):"r"===t?this.onReset_(n):"e"===t?r.error("Server Error: "+n):"o"===t?(this.log_("got pong on primary."),this.onPrimaryResponse_(),this.sendPingOnPrimaryIfNecessary_()):r.error("Unknown control packet command: "+t)}},e.prototype.onHandshake_=function(e){var t=e.ts,n=e.v,o=e.h;this.sessionId=e.s,this.repoInfo_.updateHost(o),0==this.state_&&(this.conn_.start(),this.onConnectionEstablished_(this.conn_,t),i.PROTOCOL_VERSION!==n&&r.warn("Protocol version mismatch detected"),this.tryStartUpgrade_())},e.prototype.tryStartUpgrade_=function(){var e=this.transportManager_.upgradeTransport();e&&this.startUpgrade_(e)},e.prototype.startUpgrade_=function(e){var t=this;this.secondaryConn_=new e(this.nextTransportId_(),this.repoInfo_,this.sessionId),this.secondaryResponsesRequired_=e.responsesRequiredToBeHealthy||0;var n=this.connReceiver_(this.secondaryConn_),o=this.disconnReceiver_(this.secondaryConn_);this.secondaryConn_.open(n,o),r.setTimeoutNonBlocking(function(){t.secondaryConn_&&(t.log_("Timed out trying to upgrade."),t.secondaryConn_.close())},Math.floor(6e4))},e.prototype.onReset_=function(e){this.log_("Reset packet received.  New host: "+e),this.repoInfo_.updateHost(e),1===this.state_?this.close():(this.closeConnections_(),this.start_())},e.prototype.onConnectionEstablished_=function(e,t){var n=this;this.log_("Realtime connection established."),this.conn_=e,this.state_=1,this.onReady_&&(this.onReady_(t,this.sessionId),this.onReady_=null),0===this.primaryResponsesRequired_?(this.log_("Primary connection is healthy."),this.isHealthy_=!0):r.setTimeoutNonBlocking(function(){n.sendPingOnPrimaryIfNecessary_()},Math.floor(5e3))},e.prototype.sendPingOnPrimaryIfNecessary_=function(){this.isHealthy_||1!==this.state_||(this.log_("sending ping on primary."),this.sendData_({t:"c",d:{t:"p",d:{}}}))},e.prototype.onSecondaryConnectionLost_=function(){var e=this.secondaryConn_;this.secondaryConn_=null,this.tx_!==e&&this.rx_!==e||this.close()},e.prototype.onConnectionLost_=function(e){this.conn_=null,e||0!==this.state_?1===this.state_&&this.log_("Realtime connection lost."):(this.log_("Realtime connection failed."),this.repoInfo_.isCacheableHost()&&(o.PersistentStorage.remove("host:"+this.repoInfo_.host),this.repoInfo_.internalHost=this.repoInfo_.host)),this.close()},e.prototype.onConnectionShutdown_=function(e){this.log_("Connection shutdown command received. Shutting down..."),this.onKill_&&(this.onKill_(e),this.onKill_=null),this.onDisconnect_=null,this.close()},e.prototype.sendData_=function(e){if(1!==this.state_)throw"Connection is not connected";this.tx_.send(e)},e.prototype.close=function(){2!==this.state_&&(this.log_("Closing realtime connection."),this.state_=2,this.closeConnections_(),this.onDisconnect_&&(this.onDisconnect_(),this.onDisconnect_=null))},e.prototype.closeConnections_=function(){this.log_("Shutting down all connections"),this.conn_&&(this.conn_.close(),this.conn_=null),this.secondaryConn_&&(this.secondaryConn_.close(),this.secondaryConn_=null),this.healthyTimeout_&&(clearTimeout(this.healthyTimeout_),this.healthyTimeout_=null)},e}();t.Connection=a},j3M3:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("R3TC"),o=function(){function e(){this.rootNode_=r.ChildrenNode.EMPTY_NODE}return e.prototype.getNode=function(e){return this.rootNode_.getChild(e)},e.prototype.updateSnapshot=function(e,t){this.rootNode_=this.rootNode_.updateChild(e,t)},e}();t.SnapshotHolder=o},kCHx:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("gOHv"),o=n("fvGz"),i=function(){function e(e,t,n){this.source=e,this.path=t,this.snap=n,this.type=r.OperationType.OVERWRITE}return e.prototype.operationForChild=function(t){return this.path.isEmpty()?new e(this.source,o.Path.Empty,this.snap.getImmediateChild(t)):new e(this.source,this.path.popFront(),this.snap)},e}();t.Overwrite=i},kUdC:function(e,t,n){n("ryHz"),e.exports=n("XtH8").default},lDZL:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("F1yO"),o=function(){function e(){this.eventLists_=[],this.recursionDepth_=0}return e.prototype.queueEvents=function(e){for(var t=null,n=0;n<e.length;n++){var r=e[n],o=r.getPath();null===t||o.equals(t.getPath())||(this.eventLists_.push(t),t=null),null===t&&(t=new i(o)),t.add(r)}t&&this.eventLists_.push(t)},e.prototype.raiseEventsAtPath=function(e,t){this.queueEvents(t),this.raiseQueuedEventsMatchingPredicate_(function(t){return t.equals(e)})},e.prototype.raiseEventsForChangedPath=function(e,t){this.queueEvents(t),this.raiseQueuedEventsMatchingPredicate_(function(t){return t.contains(e)||e.contains(t)})},e.prototype.raiseQueuedEventsMatchingPredicate_=function(e){this.recursionDepth_++;for(var t=!0,n=0;n<this.eventLists_.length;n++){var r=this.eventLists_[n];if(r){e(r.getPath())?(this.eventLists_[n].raise(),this.eventLists_[n]=null):t=!1}}t&&(this.eventLists_=[]),this.recursionDepth_--},e}();t.EventQueue=o;var i=function(){function e(e){this.path_=e,this.events_=[]}return e.prototype.add=function(e){this.events_.push(e)},e.prototype.raise=function(){for(var e=0;e<this.events_.length;e++){var t=this.events_[e];if(null!==t){this.events_[e]=null;var n=t.getEventRunner();r.logger&&r.log("event: "+t.toString()),r.exceptionGuard(n)}}},e.prototype.getPath=function(){return this.path_},e}();t.EventList=i},lI6h:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("E9/g"),o=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=function(e){function t(){e.apply(this,arguments)}return o(t,e),t.prototype.notifyNext=function(e,t,n,r,o){this.destination.next(t)},t.prototype.notifyError=function(e,t){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.destination.complete()},t}(r.a)},mNfF:function(e,t){!function(t){function n(){}function r(e,t){return function(){e.apply(t,arguments)}}function o(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],l(e,this)}function i(e,t){for(;3===e._state;)e=e._value;if(0===e._state)return void e._deferreds.push(t);e._handled=!0,o._immediateFn(function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null===n)return void(1===e._state?s:a)(t.promise,e._value);var r;try{r=n(e._value)}catch(e){return void a(t.promise,e)}s(t.promise,r)})}function s(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof o)return e._state=3,e._value=t,void u(e);if("function"==typeof n)return void l(r(n,t),e)}e._state=1,e._value=t,u(e)}catch(t){a(e,t)}}function a(e,t){e._state=2,e._value=t,u(e)}function u(e){2===e._state&&0===e._deferreds.length&&o._immediateFn(function(){e._handled||o._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;t<n;t++)i(e,e._deferreds[t]);e._deferreds=null}function c(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function l(e,t){var n=!1;try{e(function(e){n||(n=!0,s(t,e))},function(e){n||(n=!0,a(t,e))})}catch(e){if(n)return;n=!0,a(t,e)}}var p=setTimeout;o.prototype.catch=function(e){return this.then(null,e)},o.prototype.then=function(e,t){var r=new this.constructor(n);return i(this,new c(e,t,r)),r},o.all=function(e){var t=Array.prototype.slice.call(e);return new o(function(e,n){function r(i,s){try{if(s&&("object"==typeof s||"function"==typeof s)){var a=s.then;if("function"==typeof a)return void a.call(s,function(e){r(i,e)},n)}t[i]=s,0==--o&&e(t)}catch(e){n(e)}}if(0===t.length)return e([]);for(var o=t.length,i=0;i<t.length;i++)r(i,t[i])})},o.resolve=function(e){return e&&"object"==typeof e&&e.constructor===o?e:new o(function(t){t(e)})},o.reject=function(e){return new o(function(t,n){n(e)})},o.race=function(e){return new o(function(t,n){for(var r=0,o=e.length;r<o;r++)e[r].then(t,n)})},o._immediateFn="function"==typeof setImmediate&&function(e){setImmediate(e)}||function(e){p(e,0)},o._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},o._setImmediateFn=function(e){o._immediateFn=e},o._setUnhandledRejectionFn=function(e){o._unhandledRejectionFn=e},void 0!==e&&e.exports?e.exports=o:t.Promise||(t.Promise=o)}(this)},mZoP:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("JEJ4"),o=n("JEJ4"),i=n("Rgd9"),s=n("UcKF"),a=function(){function e(e,t,n,r,o){void 0===o&&(o=""),this.secure=t,this.namespace=n,this.webSocketOnly=r,this.persistenceKey=o,this.host=e.toLowerCase(),this.domain=this.host.substr(this.host.indexOf(".")+1),this.internalHost=i.PersistentStorage.get("host:"+e)||this.host}return e.prototype.needsQueryParam=function(){return this.host!==this.internalHost},e.prototype.isCacheableHost=function(){return"s-"===this.internalHost.substr(0,2)},e.prototype.isDemoHost=function(){return"firebaseio-demo.com"===this.domain},e.prototype.isCustomHost=function(){return"firebaseio.com"!==this.domain&&"firebaseio-demo.com"!==this.domain},e.prototype.updateHost=function(e){e!==this.internalHost&&(this.internalHost=e,this.isCacheableHost()&&i.PersistentStorage.set("host:"+this.host,this.internalHost))},e.prototype.connectionURL=function(e,t){r.assert("string"==typeof e,"typeof type must == string"),r.assert("object"==typeof t,"typeof params must == object");var n;if(e===s.WEBSOCKET)n=(this.secure?"wss://":"ws://")+this.internalHost+"/.ws?";else{if(e!==s.LONG_POLLING)throw new Error("Unknown connection type: "+e);n=(this.secure?"https://":"http://")+this.internalHost+"/.lp?"}this.needsQueryParam()&&(t.ns=this.namespace);var i=[];return o.forEach(t,function(e,t){i.push(e+"="+t)}),n+i.join("&")},e.prototype.toString=function(){var e=this.toURLString();return this.persistenceKey&&(e+="<"+this.persistenceKey+">"),e},e.prototype.toURLString=function(){return(this.secure?"https://":"http://")+this.host},e}();t.RepoInfo=a},miEe:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("JEJ4"),o=n("F1yO"),i=n("stu6"),s=n("/fob"),a=n("Nq7v"),u=n("G0Qy"),c=n("W4Cj"),l=n("n3qp"),p=n("XiwH"),h=n("JEJ4"),f=function(){function e(){this.limitSet_=!1,this.startSet_=!1,this.startNameSet_=!1,this.endSet_=!1,this.endNameSet_=!1,this.limit_=0,this.viewFrom_="",this.indexStartValue_=null,this.indexStartName_="",this.indexEndValue_=null,this.indexEndName_="",this.index_=s.PRIORITY_INDEX}return e.prototype.hasStart=function(){return this.startSet_},e.prototype.isViewFromLeft=function(){return""===this.viewFrom_?this.startSet_:this.viewFrom_===e.WIRE_PROTOCOL_CONSTANTS_.VIEW_FROM_LEFT},e.prototype.getIndexStartValue=function(){return r.assert(this.startSet_,"Only valid if start has been set"),this.indexStartValue_},e.prototype.getIndexStartName=function(){return r.assert(this.startSet_,"Only valid if start has been set"),this.startNameSet_?this.indexStartName_:o.MIN_NAME},e.prototype.hasEnd=function(){return this.endSet_},e.prototype.getIndexEndValue=function(){return r.assert(this.endSet_,"Only valid if end has been set"),this.indexEndValue_},e.prototype.getIndexEndName=function(){return r.assert(this.endSet_,"Only valid if end has been set"),this.endNameSet_?this.indexEndName_:o.MAX_NAME},e.prototype.hasLimit=function(){return this.limitSet_},e.prototype.hasAnchoredLimit=function(){return this.limitSet_&&""!==this.viewFrom_},e.prototype.getLimit=function(){return r.assert(this.limitSet_,"Only valid if limit has been set"),this.limit_},e.prototype.getIndex=function(){return this.index_},e.prototype.copy_=function(){var t=new e;return t.limitSet_=this.limitSet_,t.limit_=this.limit_,t.startSet_=this.startSet_,t.indexStartValue_=this.indexStartValue_,t.startNameSet_=this.startNameSet_,t.indexStartName_=this.indexStartName_,t.endSet_=this.endSet_,t.indexEndValue_=this.indexEndValue_,t.endNameSet_=this.endNameSet_,t.indexEndName_=this.indexEndName_,t.index_=this.index_,t.viewFrom_=this.viewFrom_,t},e.prototype.limit=function(e){var t=this.copy_();return t.limitSet_=!0,t.limit_=e,t.viewFrom_="",t},e.prototype.limitToFirst=function(t){var n=this.copy_();return n.limitSet_=!0,n.limit_=t,n.viewFrom_=e.WIRE_PROTOCOL_CONSTANTS_.VIEW_FROM_LEFT,n},e.prototype.limitToLast=function(t){var n=this.copy_();return n.limitSet_=!0,n.limit_=t,n.viewFrom_=e.WIRE_PROTOCOL_CONSTANTS_.VIEW_FROM_RIGHT,n},e.prototype.startAt=function(e,t){var n=this.copy_();return n.startSet_=!0,void 0===e&&(e=null),n.indexStartValue_=e,null!=t?(n.startNameSet_=!0,n.indexStartName_=t):(n.startNameSet_=!1,n.indexStartName_=""),n},e.prototype.endAt=function(e,t){var n=this.copy_();return n.endSet_=!0,void 0===e&&(e=null),n.indexEndValue_=e,void 0!==t?(n.endNameSet_=!0,n.indexEndName_=t):(n.endNameSet_=!1,n.indexEndName_=""),n},e.prototype.orderBy=function(e){var t=this.copy_();return t.index_=e,t},e.prototype.getQueryObject=function(){var t=e.WIRE_PROTOCOL_CONSTANTS_,n={};if(this.startSet_&&(n[t.INDEX_START_VALUE]=this.indexStartValue_,this.startNameSet_&&(n[t.INDEX_START_NAME]=this.indexStartName_)),this.endSet_&&(n[t.INDEX_END_VALUE]=this.indexEndValue_,this.endNameSet_&&(n[t.INDEX_END_NAME]=this.indexEndName_)),this.limitSet_){n[t.LIMIT]=this.limit_;var r=this.viewFrom_;""===r&&(r=this.isViewFromLeft()?t.VIEW_FROM_LEFT:t.VIEW_FROM_RIGHT),n[t.VIEW_FROM]=r}return this.index_!==s.PRIORITY_INDEX&&(n[t.INDEX]=this.index_.toString()),n},e.prototype.loadsAllData=function(){return!(this.startSet_||this.endSet_||this.limitSet_)},e.prototype.isDefault=function(){return this.loadsAllData()&&this.index_==s.PRIORITY_INDEX},e.prototype.getNodeFilter=function(){return this.loadsAllData()?new c.IndexedFilter(this.getIndex()):this.hasLimit()?new l.LimitedFilter(this):new p.RangedFilter(this)},e.prototype.toRestQueryStringParameters=function(){var t=e.REST_QUERY_CONSTANTS_,n={};if(this.isDefault())return n;var o;return this.index_===s.PRIORITY_INDEX?o=t.PRIORITY_INDEX:this.index_===a.VALUE_INDEX?o=t.VALUE_INDEX:this.index_===i.KEY_INDEX?o=t.KEY_INDEX:(r.assert(this.index_ instanceof u.PathIndex,"Unrecognized index type!"),o=this.index_.toString()),n[t.ORDER_BY]=h.stringify(o),this.startSet_&&(n[t.START_AT]=h.stringify(this.indexStartValue_),this.startNameSet_&&(n[t.START_AT]+=","+h.stringify(this.indexStartName_))),this.endSet_&&(n[t.END_AT]=h.stringify(this.indexEndValue_),this.endNameSet_&&(n[t.END_AT]+=","+h.stringify(this.indexEndName_))),this.limitSet_&&(this.isViewFromLeft()?n[t.LIMIT_TO_FIRST]=this.limit_:n[t.LIMIT_TO_LAST]=this.limit_),n},e.WIRE_PROTOCOL_CONSTANTS_={INDEX_START_VALUE:"sp",INDEX_START_NAME:"sn",INDEX_END_VALUE:"ep",INDEX_END_NAME:"en",LIMIT:"l",VIEW_FROM:"vf",VIEW_FROM_LEFT:"l",VIEW_FROM_RIGHT:"r",INDEX:"i"},e.REST_QUERY_CONSTANTS_={ORDER_BY:"orderBy",PRIORITY_INDEX:"$priority",VALUE_INDEX:"$value",KEY_INDEX:"$key",START_AT:"startAt",END_AT:"endAt",LIMIT_TO_FIRST:"limitToFirst",LIMIT_TO_LAST:"limitToLast"},e.DEFAULT=new e,e}();t.QueryParams=f},mz3w:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("xIGM"),o=function(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}(r.a)},n3qp:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("XiwH"),o=n("R3TC"),i=n("p+VM"),s=n("JEJ4"),a=n("ertD"),u=function(){function e(e){this.rangedFilter_=new r.RangedFilter(e),this.index_=e.getIndex(),this.limit_=e.getLimit(),this.reverse_=!e.isViewFromLeft()}return e.prototype.updateChild=function(e,t,n,r,s,a){return this.rangedFilter_.matches(new i.NamedNode(t,n))||(n=o.ChildrenNode.EMPTY_NODE),e.getImmediateChild(t).equals(n)?e:e.numChildren()<this.limit_?this.rangedFilter_.getIndexedFilter().updateChild(e,t,n,r,s,a):this.fullLimitUpdateChild_(e,t,n,s,a)},e.prototype.updateFullNode=function(e,t,n){var r;if(t.isLeafNode()||t.isEmpty())r=o.ChildrenNode.EMPTY_NODE.withIndex(this.index_);else if(2*this.limit_<t.numChildren()&&t.isIndexed(this.index_)){r=o.ChildrenNode.EMPTY_NODE.withIndex(this.index_);var i=void 0;i=this.reverse_?t.getReverseIteratorFrom(this.rangedFilter_.getEndPost(),this.index_):t.getIteratorFrom(this.rangedFilter_.getStartPost(),this.index_);for(var s=0;i.hasNext()&&s<this.limit_;){var a=i.getNext(),u=void 0;if(!(u=this.reverse_?this.index_.compare(this.rangedFilter_.getStartPost(),a)<=0:this.index_.compare(a,this.rangedFilter_.getEndPost())<=0))break;r=r.updateImmediateChild(a.name,a.node),s++}}else{r=t.withIndex(this.index_),r=r.updatePriority(o.ChildrenNode.EMPTY_NODE);var c=void 0,l=void 0,p=void 0,i=void 0;if(this.reverse_){i=r.getReverseIterator(this.index_),c=this.rangedFilter_.getEndPost(),l=this.rangedFilter_.getStartPost();var h=this.index_.getCompare();p=function(e,t){return h(t,e)}}else i=r.getIterator(this.index_),c=this.rangedFilter_.getStartPost(),l=this.rangedFilter_.getEndPost(),p=this.index_.getCompare();for(var s=0,f=!1;i.hasNext();){var a=i.getNext();!f&&p(c,a)<=0&&(f=!0);var u=f&&s<this.limit_&&p(a,l)<=0;u?s++:r=r.updateImmediateChild(a.name,o.ChildrenNode.EMPTY_NODE)}}return this.rangedFilter_.getIndexedFilter().updateFullNode(e,r,n)},e.prototype.updatePriority=function(e,t){return e},e.prototype.filtersNodes=function(){return!0},e.prototype.getIndexedFilter=function(){return this.rangedFilter_.getIndexedFilter()},e.prototype.getIndex=function(){return this.index_},e.prototype.fullLimitUpdateChild_=function(e,t,n,r,u){var c;if(this.reverse_){var l=this.index_.getCompare();c=function(e,t){return l(t,e)}}else c=this.index_.getCompare();var p=e;s.assert(p.numChildren()==this.limit_,"");var h=new i.NamedNode(t,n),f=this.reverse_?p.getFirstChild(this.index_):p.getLastChild(this.index_),d=this.rangedFilter_.matches(h);if(p.hasChild(t)){for(var y=p.getImmediateChild(t),v=r.getChildAfterChild(this.index_,f,this.reverse_);null!=v&&(v.name==t||p.hasChild(v.name));)v=r.getChildAfterChild(this.index_,v,this.reverse_);var m=null==v?1:c(v,h);if(d&&!n.isEmpty()&&m>=0)return null!=u&&u.trackChildChange(a.Change.childChangedChange(t,n,y)),p.updateImmediateChild(t,n);null!=u&&u.trackChildChange(a.Change.childRemovedChange(t,y));var g=p.updateImmediateChild(t,o.ChildrenNode.EMPTY_NODE);return null!=v&&this.rangedFilter_.matches(v)?(null!=u&&u.trackChildChange(a.Change.childAddedChange(v.name,v.node)),g.updateImmediateChild(v.name,v.node)):g}return n.isEmpty()?e:d&&c(f,h)>=0?(null!=u&&(u.trackChildChange(a.Change.childRemovedChange(f.name,f.node)),u.trackChildChange(a.Change.childAddedChange(t,n))),p.updateImmediateChild(t,n).updateImmediateChild(f.name,o.ChildrenNode.EMPTY_NODE)):e},e}();t.LimitedFilter=u},opdF:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("JEJ4"),o=function(){function e(e){this.collection_=e,this.last_=null}return e.prototype.get=function(){var e=this.collection_.get(),t=r.clone(e);return this.last_&&r.forEach(this.last_,function(e,n){t[e]=t[e]-n}),this.last_=e,t},e}();t.StatsListener=o},oyal:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("JEJ4"),o=n("xfHL"),i=n("F1yO"),s=n("JEJ4"),a=function(){function e(e,t){this.repo_=e,this.path_=t}return e.prototype.cancel=function(e){r.validateArgCount("OnDisconnect.cancel",0,1,arguments.length),r.validateCallback("OnDisconnect.cancel",1,e,!0);var t=new s.Deferred;return this.repo_.onDisconnectCancel(this.path_,t.wrapCallback(e)),t.promise},e.prototype.remove=function(e){r.validateArgCount("OnDisconnect.remove",0,1,arguments.length),o.validateWritablePath("OnDisconnect.remove",this.path_),r.validateCallback("OnDisconnect.remove",1,e,!0);var t=new s.Deferred;return this.repo_.onDisconnectSet(this.path_,null,t.wrapCallback(e)),t.promise},e.prototype.set=function(e,t){r.validateArgCount("OnDisconnect.set",1,2,arguments.length),o.validateWritablePath("OnDisconnect.set",this.path_),o.validateFirebaseDataArg("OnDisconnect.set",1,e,this.path_,!1),r.validateCallback("OnDisconnect.set",2,t,!0);var n=new s.Deferred;return this.repo_.onDisconnectSet(this.path_,e,n.wrapCallback(t)),n.promise},e.prototype.setWithPriority=function(e,t,n){r.validateArgCount("OnDisconnect.setWithPriority",2,3,arguments.length),o.validateWritablePath("OnDisconnect.setWithPriority",this.path_),o.validateFirebaseDataArg("OnDisconnect.setWithPriority",1,e,this.path_,!1),o.validatePriority("OnDisconnect.setWithPriority",2,t,!1),r.validateCallback("OnDisconnect.setWithPriority",3,n,!0);var i=new s.Deferred;return this.repo_.onDisconnectSetWithPriority(this.path_,e,t,i.wrapCallback(n)),i.promise},e.prototype.update=function(e,t){if(r.validateArgCount("OnDisconnect.update",1,2,arguments.length),o.validateWritablePath("OnDisconnect.update",this.path_),Array.isArray(e)){for(var n={},a=0;a<e.length;++a)n[""+a]=e[a];e=n,i.warn("Passing an Array to firebase.database.onDisconnect().update() is deprecated. Use set() if you want to overwrite the existing data, or an Object with integer keys if you really do want to only update some of the children.")}o.validateFirebaseMergeDataArg("OnDisconnect.update",1,e,this.path_,!1),r.validateCallback("OnDisconnect.update",2,t,!0);var u=new s.Deferred;return this.repo_.onDisconnectUpdate(this.path_,e,u.wrapCallback(t)),u.promise},e}();t.OnDisconnect=a},ozyc:function(e,t,n){"use strict";function r(e,t){return void 0===t&&(t=0),function(n){return n.lift(new u(e,t))}}function o(e,t){return void 0===t&&(t=0),r(e,t)(this)}var i=n("E9/g"),s=n("PAZ8"),a=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},u=function(){function e(e,t){void 0===t&&(t=0),this.scheduler=e,this.delay=t}return e.prototype.call=function(e,t){return t.subscribe(new c(e,this.scheduler,this.delay))},e}(),c=function(e){function t(t,n,r){void 0===r&&(r=0),e.call(this,t),this.scheduler=n,this.delay=r}return a(t,e),t.dispatch=function(e){var t=e.notification,n=e.destination;t.observe(n),this.unsubscribe()},t.prototype.scheduleMessage=function(e){this.add(this.scheduler.schedule(t.dispatch,this.delay,new l(e,this.destination)))},t.prototype._next=function(e){this.scheduleMessage(s.a.createNext(e))},t.prototype._error=function(e){this.scheduleMessage(s.a.createError(e))},t.prototype._complete=function(){this.scheduleMessage(s.a.createComplete())},t}(i.a),l=function(){function e(e,t){this.notification=e,this.destination=t}return e}();t.a=o},"p+VM":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){this.name=e,this.node=t}return e.Wrap=function(t,n){return new e(t,n)},e}();t.NamedNode=r},pHuv:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("ZGn5"),o=n("43Go"),i=n("fvGz"),s=n("z8+r"),a=n("Htcq"),u=n("j3M3"),c=n("JEJ4"),l=n("F1yO"),p=n("JEJ4"),h=n("phte"),f=n("cm6g"),d=n("zPe/"),y=n("opdF"),v=n("lDZL"),m=n("xhf5"),g=n("6oqh"),_=n("8UuO"),b=function(){function e(e,t,n){var r=this;this.repoInfo_=e,this.app=n,this.dataUpdateCount=0,this.statsListener_=null,this.eventQueue_=new v.EventQueue,this.nextWriteId_=1,this.interceptServerDataCallback_=null,this.onDisconnect_=new s.SparseSnapshotTree,this.persistentConnection_=null;var o=new h.AuthTokenProvider(n);if(this.stats_=f.StatsManager.getCollection(e),t||l.beingCrawled())this.server_=new g.ReadonlyRestClient(this.repoInfo_,this.onDataUpdate_.bind(this),o),setTimeout(this.onConnectStatus_.bind(this,!0),0);else{var i=n.options.databaseAuthVariableOverride;if(void 0!==i&&null!==i){if("object"!=typeof i)throw new Error("Only objects are supported for option databaseAuthVariableOverride");try{c.stringify(i)}catch(e){throw new Error("Invalid authOverride provided: "+e)}}this.persistentConnection_=new m.PersistentConnection(this.repoInfo_,this.onDataUpdate_.bind(this),this.onConnectStatus_.bind(this),this.onServerInfoUpdate_.bind(this),o,i),this.server_=this.persistentConnection_}o.addTokenChangeListener(function(e){r.server_.refreshAuthToken(e)}),this.statsReporter_=f.StatsManager.getOrCreateReporter(e,function(){return new d.StatsReporter(r.stats_,r.server_)}),this.transactions_init_(),this.infoData_=new u.SnapshotHolder,this.infoSyncTree_=new a.SyncTree({startListening:function(e,t,n,o){var i=[],s=r.infoData_.getNode(e.path);return s.isEmpty()||(i=r.infoSyncTree_.applyServerOverwrite(e.path,s),setTimeout(function(){o("ok")},0)),i},stopListening:function(){}}),this.updateInfo_("connected",!1),this.serverSyncTree_=new a.SyncTree({startListening:function(e,t,n,o){return r.server_.listen(e,n,t,function(t,n){var i=o(t,n);r.eventQueue_.raiseEventsForChangedPath(e.path,i)}),[]},stopListening:function(e,t){r.server_.unlisten(e,t)}})}return e.prototype.toString=function(){return(this.repoInfo_.secure?"https://":"http://")+this.repoInfo_.host},e.prototype.name=function(){return this.repoInfo_.namespace},e.prototype.serverTime=function(){var e=this.infoData_.getNode(new i.Path(".info/serverTimeOffset")),t=e.val()||0;return(new Date).getTime()+t},e.prototype.generateServerValues=function(){return r.generateWithValues({timestamp:this.serverTime()})},e.prototype.onDataUpdate_=function(e,t,n,r){this.dataUpdateCount++;var s=new i.Path(e);t=this.interceptServerDataCallback_?this.interceptServerDataCallback_(e,t):t;var a=[];if(r)if(n){var u=p.map(t,function(e){return o.nodeFromJSON(e)});a=this.serverSyncTree_.applyTaggedQueryMerge(s,u,r)}else{var c=o.nodeFromJSON(t);a=this.serverSyncTree_.applyTaggedQueryOverwrite(s,c,r)}else if(n){var l=p.map(t,function(e){return o.nodeFromJSON(e)});a=this.serverSyncTree_.applyServerMerge(s,l)}else{var h=o.nodeFromJSON(t);a=this.serverSyncTree_.applyServerOverwrite(s,h)}var f=s;a.length>0&&(f=this.rerunTransactions_(s)),this.eventQueue_.raiseEventsForChangedPath(f,a)},e.prototype.interceptServerData_=function(e){this.interceptServerDataCallback_=e},e.prototype.onConnectStatus_=function(e){this.updateInfo_("connected",e),!1===e&&this.runOnDisconnectEvents_()},e.prototype.onServerInfoUpdate_=function(e){var t=this;l.each(e,function(e,n){t.updateInfo_(n,e)})},e.prototype.updateInfo_=function(e,t){var n=new i.Path("/.info/"+e),r=o.nodeFromJSON(t);this.infoData_.updateSnapshot(n,r);var s=this.infoSyncTree_.applyServerOverwrite(n,r);this.eventQueue_.raiseEventsForChangedPath(n,s)},e.prototype.getNextWriteId_=function(){return this.nextWriteId_++},e.prototype.setWithPriority=function(e,t,n,i){var s=this;this.log_("set",{path:e.toString(),value:t,priority:n});var a=this.generateServerValues(),u=o.nodeFromJSON(t,n),c=r.resolveDeferredValueSnapshot(u,a),p=this.getNextWriteId_(),h=this.serverSyncTree_.applyUserOverwrite(e,c,p,!0);this.eventQueue_.queueEvents(h),this.server_.put(e.toString(),u.val(!0),function(t,n){var r="ok"===t;r||l.warn("set at "+e+" failed: "+t);var o=s.serverSyncTree_.ackUserWrite(p,!r);s.eventQueue_.raiseEventsForChangedPath(e,o),s.callOnCompleteCallback(i,t,n)});var f=this.abortTransactions_(e);this.rerunTransactions_(f),this.eventQueue_.raiseEventsForChangedPath(f,[])},e.prototype.update=function(e,t,n){var i=this;this.log_("update",{path:e.toString(),value:t});var s=!0,a=this.generateServerValues(),u={};if(p.forEach(t,function(e,t){s=!1;var n=o.nodeFromJSON(t);u[e]=r.resolveDeferredValueSnapshot(n,a)}),s)l.log("update() called with empty data.  Don't do anything."),this.callOnCompleteCallback(n,"ok");else{var c=this.getNextWriteId_(),h=this.serverSyncTree_.applyUserMerge(e,u,c);this.eventQueue_.queueEvents(h),this.server_.merge(e.toString(),t,function(t,r){var o="ok"===t;o||l.warn("update at "+e+" failed: "+t);var s=i.serverSyncTree_.ackUserWrite(c,!o),a=s.length>0?i.rerunTransactions_(e):e;i.eventQueue_.raiseEventsForChangedPath(a,s),i.callOnCompleteCallback(n,t,r)}),p.forEach(t,function(t){var n=i.abortTransactions_(e.child(t));i.rerunTransactions_(n)}),this.eventQueue_.raiseEventsForChangedPath(e,[])}},e.prototype.runOnDisconnectEvents_=function(){var e=this;this.log_("onDisconnectEvents");var t=this.generateServerValues(),n=r.resolveDeferredValueTree(this.onDisconnect_,t),o=[];n.forEachTree(i.Path.Empty,function(t,n){o=o.concat(e.serverSyncTree_.applyServerOverwrite(t,n));var r=e.abortTransactions_(t);e.rerunTransactions_(r)}),this.onDisconnect_=new s.SparseSnapshotTree,this.eventQueue_.raiseEventsForChangedPath(i.Path.Empty,o)},e.prototype.onDisconnectCancel=function(e,t){var n=this;this.server_.onDisconnectCancel(e.toString(),function(r,o){"ok"===r&&n.onDisconnect_.forget(e),n.callOnCompleteCallback(t,r,o)})},e.prototype.onDisconnectSet=function(e,t,n){var r=this,i=o.nodeFromJSON(t);this.server_.onDisconnectPut(e.toString(),i.val(!0),function(t,o){"ok"===t&&r.onDisconnect_.remember(e,i),r.callOnCompleteCallback(n,t,o)})},e.prototype.onDisconnectSetWithPriority=function(e,t,n,r){var i=this,s=o.nodeFromJSON(t,n);this.server_.onDisconnectPut(e.toString(),s.val(!0),function(t,n){"ok"===t&&i.onDisconnect_.remember(e,s),i.callOnCompleteCallback(r,t,n)})},e.prototype.onDisconnectUpdate=function(e,t,n){var r=this;if(p.isEmpty(t))return l.log("onDisconnect().update() called with empty data.  Don't do anything."),void this.callOnCompleteCallback(n,"ok");this.server_.onDisconnectMerge(e.toString(),t,function(i,s){"ok"===i&&p.forEach(t,function(t,n){var i=o.nodeFromJSON(n);r.onDisconnect_.remember(e.child(t),i)}),r.callOnCompleteCallback(n,i,s)})},e.prototype.addEventCallbackForQuery=function(e,t){var n;n=".info"===e.path.getFront()?this.infoSyncTree_.addEventRegistration(e,t):this.serverSyncTree_.addEventRegistration(e,t),this.eventQueue_.raiseEventsAtPath(e.path,n)},e.prototype.removeEventCallbackForQuery=function(e,t){var n;n=".info"===e.path.getFront()?this.infoSyncTree_.removeEventRegistration(e,t):this.serverSyncTree_.removeEventRegistration(e,t),this.eventQueue_.raiseEventsAtPath(e.path,n)},e.prototype.interrupt=function(){this.persistentConnection_&&this.persistentConnection_.interrupt("repo_interrupt")},e.prototype.resume=function(){this.persistentConnection_&&this.persistentConnection_.resume("repo_interrupt")},e.prototype.stats=function(e){if(void 0===e&&(e=!1),"undefined"!=typeof console){var t;e?(this.statsListener_||(this.statsListener_=new y.StatsListener(this.stats_)),t=this.statsListener_.get()):t=this.stats_.get();var n=Object.keys(t).reduce(function(e,t){return Math.max(t.length,e)},0);p.forEach(t,function(e,t){for(var r=e.length;r<n+2;r++)e+=" ";console.log(e+t)})}},e.prototype.statsIncrementCounter=function(e){this.stats_.incrementCounter(e),this.statsReporter_.includeStat(e)},e.prototype.log_=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n="";this.persistentConnection_&&(n=this.persistentConnection_.id+":"),l.log.apply(void 0,[n].concat(e))},e.prototype.callOnCompleteCallback=function(e,t,n){e&&l.exceptionGuard(function(){if("ok"==t)e(null);else{var r=(t||"error").toUpperCase(),o=r;n&&(o+=": "+n);var i=new Error(o);i.code=r,e(i)}})},Object.defineProperty(e.prototype,"database",{get:function(){return this.__database||(this.__database=new _.Database(this))},enumerable:!0,configurable:!0}),e}();t.Repo=b},phte:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("F1yO"),o=function(){function e(e){this.app_=e}return e.prototype.getToken=function(e){return this.app_.INTERNAL.getToken(e).then(null,function(e){return e&&"auth/token-not-initialized"===e.code?(r.log("Got auth/token-not-initialized error.  Treating as null token."),null):Promise.reject(e)})},e.prototype.addTokenChangeListener=function(e){this.app_.INTERNAL.addAuthTokenListener(e)},e.prototype.removeTokenChangeListener=function(e){this.app_.INTERNAL.removeAuthTokenListener(e)},e.prototype.notifyForInvalidToken=function(){var e='Provided authentication credentials for the app named "'+this.app_.name+'" are invalid. This usually indicates your app was not initialized correctly. ';"credential"in this.app_.options?e+='Make sure the "credential" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.':"serviceAccount"in this.app_.options?e+='Make sure the "serviceAccount" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.':e+='Make sure the "apiKey" and "databaseURL" properties provided to initializeApp() match the values provided for your app at https://console.firebase.google.com/.',r.warn(e)},e}();t.AuthTokenProvider=o},qLnt:function(e,t,n){"use strict";function r(e){return e.reduce(function(e,t){return e.concat(t instanceof l?t.errors:t)},[])}var o=n("1j/l"),i=n("NGRF"),s=n("B1iP"),a=n("8ofh"),u=n("NePw"),c=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},l=function(e){function t(t){e.call(this),this.errors=t;var n=Error.call(this,t?t.length+" errors occurred during unsubscription:\n  "+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n  "):"");this.name=n.name="UnsubscriptionError",this.stack=n.stack,this.message=n.message}return c(t,e),t}(Error);n.d(t,"a",function(){return p});var p=function(){function e(e){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}return e.prototype.unsubscribe=function(){var e,t=!1;if(!this.closed){var n=this,c=n._parent,p=n._parents,h=n._unsubscribe,f=n._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var d=-1,y=p?p.length:0;c;)c.remove(this),c=++d<y&&p[d]||null;if(Object(s.a)(h)){var v=Object(a.a)(h).call(this);v===u.a&&(t=!0,e=e||(u.a.e instanceof l?r(u.a.e.errors):[u.a.e]))}if(Object(o.a)(f))for(d=-1,y=f.length;++d<y;){var m=f[d];if(Object(i.a)(m)){var v=Object(a.a)(m.unsubscribe).call(m);if(v===u.a){t=!0,e=e||[];var g=u.a.e;g instanceof l?e=e.concat(r(g.errors)):e.push(g)}}}if(t)throw new l(e)}},e.prototype.add=function(t){if(!t||t===e.EMPTY)return e.EMPTY;if(t===this)return this;var n=t;switch(typeof t){case"function":n=new e(t);case"object":if(n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if("function"!=typeof n._addParent){var r=n;n=new e,n._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}return(this._subscriptions||(this._subscriptions=[])).push(n),n._addParent(this),n},e.prototype.remove=function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},e.prototype._addParent=function(e){var t=this,n=t._parent,r=t._parents;n&&n!==e?r?-1===r.indexOf(e)&&r.push(e):this._parents=[e]:this._parent=e},e.EMPTY=function(e){return e.closed=!0,e}(new e),e}()},qYrH:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("F1yO"),o=n("r9Yg"),i=n("cm6g"),s=n("hQ4o"),a=n("UcKF"),u=n("JEJ4"),c=n("JEJ4");t.FIREBASE_LONGPOLL_START_PARAM="start",t.FIREBASE_LONGPOLL_CLOSE_COMMAND="close",t.FIREBASE_LONGPOLL_COMMAND_CB_NAME="pLPCommand",t.FIREBASE_LONGPOLL_DATA_CB_NAME="pRTLPCB",t.FIREBASE_LONGPOLL_ID_PARAM="id",t.FIREBASE_LONGPOLL_PW_PARAM="pw",t.FIREBASE_LONGPOLL_SERIAL_PARAM="ser",t.FIREBASE_LONGPOLL_CALLBACK_ID_PARAM="cb",t.FIREBASE_LONGPOLL_SEGMENT_NUM_PARAM="seg",t.FIREBASE_LONGPOLL_SEGMENTS_IN_PACKET="ts",t.FIREBASE_LONGPOLL_DATA_PARAM="d",t.FIREBASE_LONGPOLL_DISCONN_FRAME_PARAM="disconn",t.FIREBASE_LONGPOLL_DISCONN_FRAME_REQUEST_PARAM="dframe";var l=function(){function e(e,t,n,o){this.connId=e,this.repoInfo=t,this.transportSessionId=n,this.lastSessionId=o,this.bytesSent=0,this.bytesReceived=0,this.everConnected_=!1,this.log_=r.logWrapper(e),this.stats_=i.StatsManager.getCollection(t),this.urlFn=function(e){return t.connectionURL(a.LONG_POLLING,e)}}return e.prototype.open=function(e,n){var o=this;this.curSegmentNum=0,this.onDisconnect_=n,this.myPacketOrderer=new s.PacketReceiver(e),this.isClosed_=!1,this.connectTimeoutTimer_=setTimeout(function(){o.log_("Timed out trying to connect."),o.onClosed_(),o.connectTimeoutTimer_=null},Math.floor(3e4)),r.executeWhenDOMReady(function(){if(!o.isClosed_){o.scriptTagHolder=new p(function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=e[0],i=e[1],s=e[2];e[3],e[4];if(o.incrementIncomingBytes_(e),o.scriptTagHolder)if(o.connectTimeoutTimer_&&(clearTimeout(o.connectTimeoutTimer_),o.connectTimeoutTimer_=null),o.everConnected_=!0,r==t.FIREBASE_LONGPOLL_START_PARAM)o.id=i,o.password=s;else{if(r!==t.FIREBASE_LONGPOLL_CLOSE_COMMAND)throw new Error("Unrecognized command received: "+r);i?(o.scriptTagHolder.sendNewPolls=!1,o.myPacketOrderer.closeAfter(i,function(){o.onClosed_()})):o.onClosed_()}},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[0],r=e[1];o.incrementIncomingBytes_(e),o.myPacketOrderer.handleResponse(n,r)},function(){o.onClosed_()},o.urlFn);var e={};e[t.FIREBASE_LONGPOLL_START_PARAM]="t",e[t.FIREBASE_LONGPOLL_SERIAL_PARAM]=Math.floor(1e8*Math.random()),o.scriptTagHolder.uniqueCallbackIdentifier&&(e[t.FIREBASE_LONGPOLL_CALLBACK_ID_PARAM]=o.scriptTagHolder.uniqueCallbackIdentifier),e[a.VERSION_PARAM]=a.PROTOCOL_VERSION,o.transportSessionId&&(e[a.TRANSPORT_SESSION_PARAM]=o.transportSessionId),o.lastSessionId&&(e[a.LAST_SESSION_PARAM]=o.lastSessionId),!c.isNodeSdk()&&"undefined"!=typeof location&&location.href&&-1!==location.href.indexOf(a.FORGE_DOMAIN)&&(e[a.REFERER_PARAM]=a.FORGE_REF);var n=o.urlFn(e);o.log_("Connecting via long-poll to "+n),o.scriptTagHolder.addTag(n,function(){})}})},e.prototype.start=function(){this.scriptTagHolder.startLongPoll(this.id,this.password),this.addDisconnectPingFrame(this.id,this.password)},e.forceAllow=function(){e.forceAllow_=!0},e.forceDisallow=function(){e.forceDisallow_=!0},e.isAvailable=function(){return e.forceAllow_||!e.forceDisallow_&&"undefined"!=typeof document&&null!=document.createElement&&!r.isChromeExtensionContentScript()&&!r.isWindowsStoreApp()&&!c.isNodeSdk()},e.prototype.markConnectionHealthy=function(){},e.prototype.shutdown_=function(){this.isClosed_=!0,this.scriptTagHolder&&(this.scriptTagHolder.close(),this.scriptTagHolder=null),this.myDisconnFrame&&(document.body.removeChild(this.myDisconnFrame),this.myDisconnFrame=null),this.connectTimeoutTimer_&&(clearTimeout(this.connectTimeoutTimer_),this.connectTimeoutTimer_=null)},e.prototype.onClosed_=function(){this.isClosed_||(this.log_("Longpoll is closing itself"),this.shutdown_(),this.onDisconnect_&&(this.onDisconnect_(this.everConnected_),this.onDisconnect_=null))},e.prototype.close=function(){this.isClosed_||(this.log_("Longpoll is being closed."),this.shutdown_())},e.prototype.send=function(e){var t=u.stringify(e);this.bytesSent+=t.length,this.stats_.incrementCounter("bytes_sent",t.length);for(var n=u.base64Encode(t),o=r.splitStringBySize(n,1840),i=0;i<o.length;i++)this.scriptTagHolder.enqueueSegment(this.curSegmentNum,o.length,o[i]),this.curSegmentNum++},e.prototype.addDisconnectPingFrame=function(e,n){if(!c.isNodeSdk()){this.myDisconnFrame=document.createElement("iframe");var r={};r[t.FIREBASE_LONGPOLL_DISCONN_FRAME_REQUEST_PARAM]="t",r[t.FIREBASE_LONGPOLL_ID_PARAM]=e,r[t.FIREBASE_LONGPOLL_PW_PARAM]=n,this.myDisconnFrame.src=this.urlFn(r),this.myDisconnFrame.style.display="none",document.body.appendChild(this.myDisconnFrame)}},e.prototype.incrementIncomingBytes_=function(e){var t=u.stringify(e).length;this.bytesReceived+=t,this.stats_.incrementCounter("bytes_received",t)},e}();t.BrowserPollConnection=l;var p=function(){function e(n,i,s,a){if(this.onDisconnect=s,this.urlFn=a,this.outstandingRequests=new o.CountedSet,this.pendingSegs=[],this.currentSerial=Math.floor(1e8*Math.random()),this.sendNewPolls=!0,c.isNodeSdk())this.commandCB=n,this.onMessageCB=i;else{this.uniqueCallbackIdentifier=r.LUIDGenerator(),window[t.FIREBASE_LONGPOLL_COMMAND_CB_NAME+this.uniqueCallbackIdentifier]=n,window[t.FIREBASE_LONGPOLL_DATA_CB_NAME+this.uniqueCallbackIdentifier]=i,this.myIFrame=e.createIFrame_();var u="";if(this.myIFrame.src&&"javascript:"===this.myIFrame.src.substr(0,"javascript:".length)){u='<script>document.domain="'+document.domain+'";<\/script>'}var l="<html><body>"+u+"</body></html>";try{this.myIFrame.doc.open(),this.myIFrame.doc.write(l),this.myIFrame.doc.close()}catch(e){r.log("frame writing exception"),e.stack&&r.log(e.stack),r.log(e)}}}return e.createIFrame_=function(){var e=document.createElement("iframe");if(e.style.display="none",!document.body)throw"Document body has not initialized. Wait to initialize Firebase until after the document is ready.";document.body.appendChild(e);try{e.contentWindow.document||r.log("No IE domain setting required")}catch(n){var t=document.domain;e.src="javascript:void((function(){document.open();document.domain='"+t+"';document.close();})())"}return e.contentDocument?e.doc=e.contentDocument:e.contentWindow?e.doc=e.contentWindow.document:e.document&&(e.doc=e.document),e},e.prototype.close=function(){var n=this;if(this.alive=!1,this.myIFrame&&(this.myIFrame.doc.body.innerHTML="",setTimeout(function(){null!==n.myIFrame&&(document.body.removeChild(n.myIFrame),n.myIFrame=null)},Math.floor(0))),c.isNodeSdk()&&this.myID){var r={};r[t.FIREBASE_LONGPOLL_DISCONN_FRAME_PARAM]="t",r[t.FIREBASE_LONGPOLL_ID_PARAM]=this.myID,r[t.FIREBASE_LONGPOLL_PW_PARAM]=this.myPW;var o=this.urlFn(r);e.nodeRestRequest(o)}var i=this.onDisconnect;i&&(this.onDisconnect=null,i())},e.prototype.startLongPoll=function(e,t){for(this.myID=e,this.myPW=t,this.alive=!0;this.newRequest_(););},e.prototype.newRequest_=function(){if(this.alive&&this.sendNewPolls&&this.outstandingRequests.count()<(this.pendingSegs.length>0?2:1)){this.currentSerial++;var e={};e[t.FIREBASE_LONGPOLL_ID_PARAM]=this.myID,e[t.FIREBASE_LONGPOLL_PW_PARAM]=this.myPW,e[t.FIREBASE_LONGPOLL_SERIAL_PARAM]=this.currentSerial;for(var n=this.urlFn(e),r="",o=0;this.pendingSegs.length>0;){if(!(this.pendingSegs[0].d.length+30+r.length<=1870))break;var i=this.pendingSegs.shift();r=r+"&"+t.FIREBASE_LONGPOLL_SEGMENT_NUM_PARAM+o+"="+i.seg+"&"+t.FIREBASE_LONGPOLL_SEGMENTS_IN_PACKET+o+"="+i.ts+"&"+t.FIREBASE_LONGPOLL_DATA_PARAM+o+"="+i.d,o++}return n+=r,this.addLongPollTag_(n,this.currentSerial),!0}return!1},e.prototype.enqueueSegment=function(e,t,n){this.pendingSegs.push({seg:e,ts:t,d:n}),this.alive&&this.newRequest_()},e.prototype.addLongPollTag_=function(e,t){var n=this;this.outstandingRequests.add(t,1);var r=function(){n.outstandingRequests.remove(t),n.newRequest_()},o=setTimeout(r,Math.floor(25e3)),i=function(){clearTimeout(o),r()};this.addTag(e,i)},e.prototype.addTag=function(e,t){var n=this;c.isNodeSdk()?this.doNodeLongPoll(e,t):setTimeout(function(){try{if(!n.sendNewPolls)return;var o=n.myIFrame.doc.createElement("script");o.type="text/javascript",o.async=!0,o.src=e,o.onload=o.onreadystatechange=function(){var e=o.readyState;e&&"loaded"!==e&&"complete"!==e||(o.onload=o.onreadystatechange=null,o.parentNode&&o.parentNode.removeChild(o),t())},o.onerror=function(){r.log("Long-poll script failed to load: "+e),n.sendNewPolls=!1,n.close()},n.myIFrame.doc.body.appendChild(o)}catch(e){}},Math.floor(1))},e}();t.FirebaseIFrameScriptHolder=p},qbdv:function(e,t,n){"use strict";function r(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}function o(e){return e.replace(/\/index.html$/,"")}function i(e,t,n){var r="="+e;if(t.indexOf(r)>-1)return r;if(r=n.getPluralCategory(e),t.indexOf(r)>-1)return r;if(t.indexOf("other")>-1)return"other";throw new Error('No plural message found for value "'+e+'"')}function s(e,t){"string"==typeof t&&(t=parseInt(t,10));var n=t,r=n.toString().replace(/^[^.]*\.?/,""),o=Math.floor(Math.abs(n)),i=r.length,s=parseInt(r,10),a=parseInt(n.toString().replace(/^[^.]*\.?|0+$/g,""),10)||0;switch(e.split("-")[0].toLowerCase()){case"af":case"asa":case"az":case"bem":case"bez":case"bg":case"brx":case"ce":case"cgg":case"chr":case"ckb":case"ee":case"el":case"eo":case"es":case"eu":case"fo":case"fur":case"gsw":case"ha":case"haw":case"hu":case"jgo":case"jmc":case"ka":case"kk":case"kkj":case"kl":case"ks":case"ksb":case"ky":case"lb":case"lg":case"mas":case"mgo":case"ml":case"mn":case"nb":case"nd":case"ne":case"nn":case"nnh":case"nyn":case"om":case"or":case"os":case"ps":case"rm":case"rof":case"rwk":case"saq":case"seh":case"sn":case"so":case"sq":case"ta":case"te":case"teo":case"tk":case"tr":case"ug":case"uz":case"vo":case"vun":case"wae":case"xog":return 1===n?U.One:U.Other;case"ak":case"ln":case"mg":case"pa":case"ti":return n===Math.floor(n)&&n>=0&&n<=1?U.One:U.Other;case"am":case"as":case"bn":case"fa":case"gu":case"hi":case"kn":case"mr":case"zu":return 0===o||1===n?U.One:U.Other;case"ar":return 0===n?U.Zero:1===n?U.One:2===n?U.Two:n%100===Math.floor(n%100)&&n%100>=3&&n%100<=10?U.Few:n%100===Math.floor(n%100)&&n%100>=11&&n%100<=99?U.Many:U.Other;case"ast":case"ca":case"de":case"en":case"et":case"fi":case"fy":case"gl":case"it":case"nl":case"sv":case"sw":case"ur":case"yi":return 1===o&&0===i?U.One:U.Other;case"be":return n%10==1&&n%100!=11?U.One:n%10===Math.floor(n%10)&&n%10>=2&&n%10<=4&&!(n%100>=12&&n%100<=14)?U.Few:n%10==0||n%10===Math.floor(n%10)&&n%10>=5&&n%10<=9||n%100===Math.floor(n%100)&&n%100>=11&&n%100<=14?U.Many:U.Other;case"br":return n%10==1&&n%100!=11&&n%100!=71&&n%100!=91?U.One:n%10==2&&n%100!=12&&n%100!=72&&n%100!=92?U.Two:n%10===Math.floor(n%10)&&(n%10>=3&&n%10<=4||n%10==9)&&!(n%100>=10&&n%100<=19||n%100>=70&&n%100<=79||n%100>=90&&n%100<=99)?U.Few:0!==n&&n%1e6==0?U.Many:U.Other;case"bs":case"hr":case"sr":return 0===i&&o%10==1&&o%100!=11||s%10==1&&s%100!=11?U.One:0===i&&o%10===Math.floor(o%10)&&o%10>=2&&o%10<=4&&!(o%100>=12&&o%100<=14)||s%10===Math.floor(s%10)&&s%10>=2&&s%10<=4&&!(s%100>=12&&s%100<=14)?U.Few:U.Other;case"cs":case"sk":return 1===o&&0===i?U.One:o===Math.floor(o)&&o>=2&&o<=4&&0===i?U.Few:0!==i?U.Many:U.Other;case"cy":return 0===n?U.Zero:1===n?U.One:2===n?U.Two:3===n?U.Few:6===n?U.Many:U.Other;case"da":return 1===n||0!==a&&(0===o||1===o)?U.One:U.Other;case"dsb":case"hsb":return 0===i&&o%100==1||s%100==1?U.One:0===i&&o%100==2||s%100==2?U.Two:0===i&&o%100===Math.floor(o%100)&&o%100>=3&&o%100<=4||s%100===Math.floor(s%100)&&s%100>=3&&s%100<=4?U.Few:U.Other;case"ff":case"fr":case"hy":case"kab":return 0===o||1===o?U.One:U.Other;case"fil":return 0===i&&(1===o||2===o||3===o)||0===i&&o%10!=4&&o%10!=6&&o%10!=9||0!==i&&s%10!=4&&s%10!=6&&s%10!=9?U.One:U.Other;case"ga":return 1===n?U.One:2===n?U.Two:n===Math.floor(n)&&n>=3&&n<=6?U.Few:n===Math.floor(n)&&n>=7&&n<=10?U.Many:U.Other;case"gd":return 1===n||11===n?U.One:2===n||12===n?U.Two:n===Math.floor(n)&&(n>=3&&n<=10||n>=13&&n<=19)?U.Few:U.Other;case"gv":return 0===i&&o%10==1?U.One:0===i&&o%10==2?U.Two:0!==i||o%100!=0&&o%100!=20&&o%100!=40&&o%100!=60&&o%100!=80?0!==i?U.Many:U.Other:U.Few;case"he":return 1===o&&0===i?U.One:2===o&&0===i?U.Two:0!==i||n>=0&&n<=10||n%10!=0?U.Other:U.Many;case"is":return 0===a&&o%10==1&&o%100!=11||0!==a?U.One:U.Other;case"ksh":return 0===n?U.Zero:1===n?U.One:U.Other;case"kw":case"naq":case"se":case"smn":return 1===n?U.One:2===n?U.Two:U.Other;case"lag":return 0===n?U.Zero:0!==o&&1!==o||0===n?U.Other:U.One;case"lt":return n%10!=1||n%100>=11&&n%100<=19?n%10===Math.floor(n%10)&&n%10>=2&&n%10<=9&&!(n%100>=11&&n%100<=19)?U.Few:0!==s?U.Many:U.Other:U.One;case"lv":case"prg":return n%10==0||n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19||2===i&&s%100===Math.floor(s%100)&&s%100>=11&&s%100<=19?U.Zero:n%10==1&&n%100!=11||2===i&&s%10==1&&s%100!=11||2!==i&&s%10==1?U.One:U.Other;case"mk":return 0===i&&o%10==1||s%10==1?U.One:U.Other;case"mt":return 1===n?U.One:0===n||n%100===Math.floor(n%100)&&n%100>=2&&n%100<=10?U.Few:n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19?U.Many:U.Other;case"pl":return 1===o&&0===i?U.One:0===i&&o%10===Math.floor(o%10)&&o%10>=2&&o%10<=4&&!(o%100>=12&&o%100<=14)?U.Few:0===i&&1!==o&&o%10===Math.floor(o%10)&&o%10>=0&&o%10<=1||0===i&&o%10===Math.floor(o%10)&&o%10>=5&&o%10<=9||0===i&&o%100===Math.floor(o%100)&&o%100>=12&&o%100<=14?U.Many:U.Other;case"pt":return n===Math.floor(n)&&n>=0&&n<=2&&2!==n?U.One:U.Other;case"ro":return 1===o&&0===i?U.One:0!==i||0===n||1!==n&&n%100===Math.floor(n%100)&&n%100>=1&&n%100<=19?U.Few:U.Other;case"ru":case"uk":return 0===i&&o%10==1&&o%100!=11?U.One:0===i&&o%10===Math.floor(o%10)&&o%10>=2&&o%10<=4&&!(o%100>=12&&o%100<=14)?U.Few:0===i&&o%10==0||0===i&&o%10===Math.floor(o%10)&&o%10>=5&&o%10<=9||0===i&&o%100===Math.floor(o%100)&&o%100>=11&&o%100<=14?U.Many:U.Other;case"shi":return 0===o||1===n?U.One:n===Math.floor(n)&&n>=2&&n<=10?U.Few:U.Other;case"si":return 0===n||1===n||0===o&&1===s?U.One:U.Other;case"sl":return 0===i&&o%100==1?U.One:0===i&&o%100==2?U.Two:0===i&&o%100===Math.floor(o%100)&&o%100>=3&&o%100<=4||0!==i?U.Few:U.Other;case"tzm":return n===Math.floor(n)&&n>=0&&n<=1||n===Math.floor(n)&&n>=11&&n<=99?U.One:U.Other;default:return U.Other}}function a(e,t){t=encodeURIComponent(t);for(var n=0,r=e.split(";");n<r.length;n++){var o=r[n],i=o.indexOf("="),s=-1==i?[o,""]:[o.slice(0,i),o.slice(i+1)],a=s[0],u=s[1];if(a.trim()===t)return decodeURIComponent(u)}return null}function u(e){return e.name||typeof e}function c(e,t){return Error("InvalidPipeArgument: '"+t+"' for pipe '"+Object(D["\u0275stringify"])(e)+"'")}function l(e){return e?e[0].toUpperCase()+e.substr(1).toLowerCase():e}function p(e){return function(t,n){var r=e(t,n);return 1==r.length?"0"+r:r}}function h(e){return function(t,n){return e(t,n).split(" ")[0]}}function f(e,t,n){return new Intl.DateTimeFormat(t,n).format(e).replace(/[\u200e\u200f]/g,"")}function d(e){var t={hour:"2-digit",hour12:!1,timeZoneName:e};return function(e,n){var r=f(e,n,t);return r?r.substring(3):""}}function y(e,t){return e.hour12=t,e}function v(e,t){var n={};return n[e]=2===t?"2-digit":"numeric",n}function m(e,t){var n={};return n[e]=t<4?t>1?"short":"narrow":"long",n}function g(e){return e.reduce(function(e,t){return Object.assign({},e,t)},{})}function _(e){return function(t,n){return f(t,n,e)}}function b(e,t,n){var r=_e[e];if(r)return r(t,n);var o=e,i=we.get(o);if(!i){i=[];var s=void 0;ge.exec(e);for(var a=e;a;)s=ge.exec(a),s?(i=i.concat(s.slice(1)),a=i.pop()):(i.push(a),a=null);we.set(o,i)}return i.reduce(function(e,r){var o=be[r];return e+(o?o(t,n):w(r))},"")}function w(e){return"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}function C(e,t,n,r,o,i,s){if(void 0===i&&(i=null),void 0===s&&(s=!1),null==n)return null;if("number"!=typeof(n="string"==typeof n&&S(n)?+n:n))throw c(e,n);var a=void 0,u=void 0,l=void 0;if(r!==ve.Currency&&(a=1,u=0,l=3),o){var p=o.match(Ee);if(null===p)throw new Error(o+" is not a valid digit info for number pipes");null!=p[1]&&(a=E(p[1])),null!=p[3]&&(u=E(p[3])),null!=p[5]&&(l=E(p[5]))}return me.format(n,t,r,{minimumIntegerDigits:a,minimumFractionDigits:u,maximumFractionDigits:l,currency:i,currencyAsSymbol:s})}function E(e){var t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t}function S(e){return!isNaN(e-parseFloat(e))}function O(e){return null==e||""===e}function P(e){return e instanceof Date&&!isNaN(e.valueOf())}function T(e){var t=new Date(0),n=0,r=0,o=e[8]?t.setUTCFullYear:t.setFullYear,i=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=N(e[9]+e[10]),r=N(e[9]+e[11])),o.call(t,N(e[1]),N(e[2])-1,N(e[3]));var s=N(e[4]||"0")-n,a=N(e[5]||"0")-r,u=N(e[6]||"0"),c=Math.round(1e3*parseFloat("0."+(e[7]||0)));return i.call(t,s,a,u,c),t}function N(e){return parseInt(e,10)}function I(e){return e===Le}function A(e){return e===Ve}function R(e){return e===He}function x(e){return e===Be}Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"NgLocaleLocalization",function(){return W}),n.d(t,"NgLocalization",function(){return q}),n.d(t,"\u0275parseCookieValue",function(){return a}),n.d(t,"CommonModule",function(){return Me}),n.d(t,"DeprecatedI18NPipesModule",function(){return Fe}),n.d(t,"NgClass",function(){return z}),n.d(t,"NgFor",function(){return Y}),n.d(t,"NgForOf",function(){return K}),n.d(t,"NgForOfContext",function(){return Q}),n.d(t,"NgIf",function(){return X}),n.d(t,"NgIfContext",function(){return Z}),n.d(t,"NgPlural",function(){return re}),n.d(t,"NgPluralCase",function(){return oe}),n.d(t,"NgStyle",function(){return ie}),n.d(t,"NgSwitch",function(){return ee}),n.d(t,"NgSwitchCase",function(){return te}),n.d(t,"NgSwitchDefault",function(){return ne}),n.d(t,"NgTemplateOutlet",function(){return se}),n.d(t,"NgComponentOutlet",function(){return G}),n.d(t,"DOCUMENT",function(){return je}),n.d(t,"AsyncPipe",function(){return he}),n.d(t,"DatePipe",function(){return Ne}),n.d(t,"I18nPluralPipe",function(){return Ae}),n.d(t,"I18nSelectPipe",function(){return Re}),n.d(t,"JsonPipe",function(){return xe}),n.d(t,"LowerCasePipe",function(){return fe}),n.d(t,"CurrencyPipe",function(){return Pe}),n.d(t,"DecimalPipe",function(){return Se}),n.d(t,"PercentPipe",function(){return Oe}),n.d(t,"SlicePipe",function(){return ke}),n.d(t,"UpperCasePipe",function(){return ye}),n.d(t,"TitleCasePipe",function(){return de}),n.d(t,"\u0275PLATFORM_BROWSER_ID",function(){return Le}),n.d(t,"\u0275PLATFORM_SERVER_ID",function(){return Ve}),n.d(t,"\u0275PLATFORM_WORKER_APP_ID",function(){return He}),n.d(t,"\u0275PLATFORM_WORKER_UI_ID",function(){return Be}),n.d(t,"isPlatformBrowser",function(){return I}),n.d(t,"isPlatformServer",function(){return A}),n.d(t,"isPlatformWorkerApp",function(){return R}),n.d(t,"isPlatformWorkerUi",function(){return x}),n.d(t,"VERSION",function(){return qe}),n.d(t,"PlatformLocation",function(){return M}),n.d(t,"LOCATION_INITIALIZED",function(){return F}),n.d(t,"LocationStrategy",function(){return j}),n.d(t,"APP_BASE_HREF",function(){return L}),n.d(t,"HashLocationStrategy",function(){return H}),n.d(t,"PathLocationStrategy",function(){return B}),n.d(t,"Location",function(){return V}),n.d(t,"\u0275a",function(){return ae}),n.d(t,"\u0275b",function(){return De});var k=n("6Xbx"),D=n("/oeL"),M=function(){function e(){}return e.prototype.getBaseHrefFromDOM=function(){},e.prototype.onPopState=function(e){},e.prototype.onHashChange=function(e){},e.prototype.pathname=function(){},e.prototype.search=function(){},e.prototype.hash=function(){},e.prototype.replaceState=function(e,t,n){},e.prototype.pushState=function(e,t,n){},e.prototype.forward=function(){},e.prototype.back=function(){},e}(),F=new D.InjectionToken("Location Initialized"),j=function(){function e(){}return e.prototype.path=function(e){},e.prototype.prepareExternalUrl=function(e){},e.prototype.pushState=function(e,t,n,r){},e.prototype.replaceState=function(e,t,n,r){},e.prototype.forward=function(){},e.prototype.back=function(){},e.prototype.onPopState=function(e){},e.prototype.getBaseHref=function(){},e}(),L=new D.InjectionToken("appBaseHref"),V=function(){function e(t){var n=this;this._subject=new D.EventEmitter,this._platformStrategy=t;var r=this._platformStrategy.getBaseHref();this._baseHref=e.stripTrailingSlash(o(r)),this._platformStrategy.onPopState(function(e){n._subject.emit({url:n.path(!0),pop:!0,type:e.type})})}return e.prototype.path=function(e){return void 0===e&&(e=!1),this.normalize(this._platformStrategy.path(e))},e.prototype.isCurrentPathEqualTo=function(t,n){return void 0===n&&(n=""),this.path()==this.normalize(t+e.normalizeQueryParams(n))},e.prototype.normalize=function(t){return e.stripTrailingSlash(r(this._baseHref,o(t)))},e.prototype.prepareExternalUrl=function(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)},e.prototype.go=function(e,t){void 0===t&&(t=""),this._platformStrategy.pushState(null,"",e,t)},e.prototype.replaceState=function(e,t){void 0===t&&(t=""),this._platformStrategy.replaceState(null,"",e,t)},e.prototype.forward=function(){this._platformStrategy.forward()},e.prototype.back=function(){this._platformStrategy.back()},e.prototype.subscribe=function(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})},e.normalizeQueryParams=function(e){return e&&"?"!==e[0]?"?"+e:e},e.joinWithSlash=function(e,t){if(0==e.length)return t;if(0==t.length)return e;var n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t},e.stripTrailingSlash=function(e){var t=e.match(/#|\?|$/),n=t&&t.index||e.length,r=n-("/"===e[n-1]?1:0);return e.slice(0,r)+e.slice(n)},e}();V.decorators=[{type:D.Injectable}],V.ctorParameters=function(){return[{type:j}]};var H=function(e){function t(t,n){var r=e.call(this)||this;return r._platformLocation=t,r._baseHref="",null!=n&&(r._baseHref=n),r}return k.a(t,e),t.prototype.onPopState=function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)},t.prototype.getBaseHref=function(){return this._baseHref},t.prototype.path=function(e){void 0===e&&(e=!1);var t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t},t.prototype.prepareExternalUrl=function(e){var t=V.joinWithSlash(this._baseHref,e);return t.length>0?"#"+t:t},t.prototype.pushState=function(e,t,n,r){var o=this.prepareExternalUrl(n+V.normalizeQueryParams(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(e,t,o)},t.prototype.replaceState=function(e,t,n,r){var o=this.prepareExternalUrl(n+V.normalizeQueryParams(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,o)},t.prototype.forward=function(){this._platformLocation.forward()},t.prototype.back=function(){this._platformLocation.back()},t}(j);H.decorators=[{type:D.Injectable}],H.ctorParameters=function(){return[{type:M},{type:void 0,decorators:[{type:D.Optional},{type:D.Inject,args:[L]}]}]};var B=function(e){function t(t,n){var r=e.call(this)||this;if(r._platformLocation=t,null==n&&(n=r._platformLocation.getBaseHrefFromDOM()),null==n)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=n,r}return k.a(t,e),t.prototype.onPopState=function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)},t.prototype.getBaseHref=function(){return this._baseHref},t.prototype.prepareExternalUrl=function(e){return V.joinWithSlash(this._baseHref,e)},t.prototype.path=function(e){void 0===e&&(e=!1);var t=this._platformLocation.pathname+V.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?""+t+n:t},t.prototype.pushState=function(e,t,n,r){var o=this.prepareExternalUrl(n+V.normalizeQueryParams(r));this._platformLocation.pushState(e,t,o)},t.prototype.replaceState=function(e,t,n,r){var o=this.prepareExternalUrl(n+V.normalizeQueryParams(r));this._platformLocation.replaceState(e,t,o)},t.prototype.forward=function(){this._platformLocation.forward()},t.prototype.back=function(){this._platformLocation.back()},t}(j);B.decorators=[{type:D.Injectable}],B.ctorParameters=function(){return[{type:M},{type:void 0,decorators:[{type:D.Optional},{type:D.Inject,args:[L]}]}]};var q=function(){function e(){}return e.prototype.getPluralCategory=function(e){},e}(),W=function(e){function t(t){var n=e.call(this)||this;return n.locale=t,n}return k.a(t,e),t.prototype.getPluralCategory=function(e){switch(s(this.locale,e)){case U.Zero:return"zero";case U.One:return"one";case U.Two:return"two";case U.Few:return"few";case U.Many:return"many";default:return"other"}},t}(q);W.decorators=[{type:D.Injectable}],W.ctorParameters=function(){return[{type:void 0,decorators:[{type:D.Inject,args:[D.LOCALE_ID]}]}]};var U={};U.Zero=0,U.One=1,U.Two=2,U.Few=3,U.Many=4,U.Other=5,U[U.Zero]="Zero",U[U.One]="One",U[U.Two]="Two",U[U.Few]="Few",U[U.Many]="Many",U[U.Other]="Other";var z=function(){function e(e,t,n,r){this._iterableDiffers=e,this._keyValueDiffers=t,this._ngEl=n,this._renderer=r,this._initialClasses=[]}return Object.defineProperty(e.prototype,"klass",{set:function(e){this._applyInitialClasses(!0),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyInitialClasses(!1),this._applyClasses(this._rawClass,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClass",{set:function(e){this._cleanupClasses(this._rawClass),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Object(D["\u0275isListLikeIterable"])(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())},enumerable:!0,configurable:!0}),e.prototype.ngDoCheck=function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}},e.prototype._cleanupClasses=function(e){this._applyClasses(e,!0),this._applyInitialClasses(!1)},e.prototype._applyKeyValueChanges=function(e){var t=this;e.forEachAddedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachChangedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachRemovedItem(function(e){e.previousValue&&t._toggleClass(e.key,!1)})},e.prototype._applyIterableChanges=function(e){var t=this;e.forEachAddedItem(function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+Object(D["\u0275stringify"])(e.item));t._toggleClass(e.item,!0)}),e.forEachRemovedItem(function(e){return t._toggleClass(e.item,!1)})},e.prototype._applyInitialClasses=function(e){var t=this;this._initialClasses.forEach(function(n){return t._toggleClass(n,!e)})},e.prototype._applyClasses=function(e,t){var n=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return n._toggleClass(e,!t)}):Object.keys(e).forEach(function(r){null!=e[r]&&n._toggleClass(r,!t)}))},e.prototype._toggleClass=function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach(function(e){n._renderer.setElementClass(n._ngEl.nativeElement,e,!!t)})},e}();z.decorators=[{type:D.Directive,args:[{selector:"[ngClass]"}]}],z.ctorParameters=function(){return[{type:D.IterableDiffers},{type:D.KeyValueDiffers},{type:D.ElementRef},{type:D.Renderer}]},z.propDecorators={klass:[{type:D.Input,args:["class"]}],ngClass:[{type:D.Input}]};var G=function(){function e(e){this._viewContainerRef=e,this._componentRef=null,this._moduleRef=null}return e.prototype.ngOnChanges=function(e){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){var t=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(e.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){var n=t.get(D.NgModuleRef);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(n.injector)}else this._moduleRef=null;var r=this._moduleRef?this._moduleRef.componentFactoryResolver:t.get(D.ComponentFactoryResolver),o=r.resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(o,this._viewContainerRef.length,t,this.ngComponentOutletContent)}},e.prototype.ngOnDestroy=function(){this._moduleRef&&this._moduleRef.destroy()},e}();G.decorators=[{type:D.Directive,args:[{selector:"[ngComponentOutlet]"}]}],G.ctorParameters=function(){return[{type:D.ViewContainerRef}]},G.propDecorators={ngComponentOutlet:[{type:D.Input}],ngComponentOutletInjector:[{type:D.Input}],ngComponentOutletContent:[{type:D.Input}],ngComponentOutletNgModuleFactory:[{type:D.Input}]};var Q=function(){function e(e,t,n,r){this.$implicit=e,this.ngForOf=t,this.index=n,this.count=r}return Object.defineProperty(e.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),e}(),K=function(){function e(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._differ=null}return Object.defineProperty(e.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(e){Object(D.isDevMode)()&&null!=e&&"function"!=typeof e&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(e)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngForTemplate",{set:function(e){e&&(this._template=e)},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){if("ngForOf"in e){var t=e.ngForOf.currentValue;if(!this._differ&&t)try{this._differ=this._differs.find(t).create(this.ngForTrackBy)}catch(e){throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+u(t)+"'. NgFor only supports binding to Iterables such as Arrays.")}}},e.prototype.ngDoCheck=function(){if(this._differ){var e=this._differ.diff(this.ngForOf);e&&this._applyChanges(e)}},e.prototype._applyChanges=function(e){var t=this,n=[];e.forEachOperation(function(e,r,o){if(null==e.previousIndex){var i=t._viewContainer.createEmbeddedView(t._template,new Q(null,t.ngForOf,-1,-1),o),s=new J(e,i);n.push(s)}else if(null==o)t._viewContainer.remove(r);else{var i=t._viewContainer.get(r);t._viewContainer.move(i,o);var s=new J(e,i);n.push(s)}});for(var r=0;r<n.length;r++)this._perViewChange(n[r].view,n[r].record);for(var r=0,o=this._viewContainer.length;r<o;r++){var i=this._viewContainer.get(r);i.context.index=r,i.context.count=o}e.forEachIdentityChange(function(e){t._viewContainer.get(e.currentIndex).context.$implicit=e.item})},e.prototype._perViewChange=function(e,t){e.context.$implicit=t.item},e}();K.decorators=[{type:D.Directive,args:[{selector:"[ngFor][ngForOf]"}]}],K.ctorParameters=function(){return[{type:D.ViewContainerRef},{type:D.TemplateRef},{type:D.IterableDiffers}]},K.propDecorators={ngForOf:[{type:D.Input}],ngForTrackBy:[{type:D.Input}],ngForTemplate:[{type:D.Input}]};var J=function(){function e(e,t){this.record=e,this.view=t}return e}(),Y=K,X=function(){function e(e,t){this._viewContainer=e,this._context=new Z,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=t}return Object.defineProperty(e.prototype,"ngIf",{set:function(e){this._context.$implicit=this._context.ngIf=e,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngIfThen",{set:function(e){this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngIfElse",{set:function(e){this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),e.prototype._updateView=function(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))},e}();X.decorators=[{type:D.Directive,args:[{selector:"[ngIf]"}]}],X.ctorParameters=function(){return[{type:D.ViewContainerRef},{type:D.TemplateRef}]},X.propDecorators={ngIf:[{type:D.Input}],ngIfThen:[{type:D.Input}],ngIfElse:[{type:D.Input}]};var Z=function(){function e(){this.$implicit=null,this.ngIf=null}return e}(),$=function(){function e(e,t){this._viewContainerRef=e,this._templateRef=t,this._created=!1}return e.prototype.create=function(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)},e.prototype.destroy=function(){this._created=!1,this._viewContainerRef.clear()},e.prototype.enforceState=function(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()},e}(),ee=function(){function e(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return Object.defineProperty(e.prototype,"ngSwitch",{set:function(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)},enumerable:!0,configurable:!0}),e.prototype._addCase=function(){return this._caseCount++},e.prototype._addDefault=function(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)},e.prototype._matchCase=function(e){var t=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||t,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),t},e.prototype._updateDefaultCases=function(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(var t=0;t<this._defaultViews.length;t++){this._defaultViews[t].enforceState(e)}}},e}();ee.decorators=[{type:D.Directive,args:[{selector:"[ngSwitch]"}]}],ee.ctorParameters=function(){return[]},ee.propDecorators={ngSwitch:[{type:D.Input}]};var te=function(){function e(e,t,n){this.ngSwitch=n,n._addCase(),this._view=new $(e,t)}return e.prototype.ngDoCheck=function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))},e}();te.decorators=[{type:D.Directive,args:[{selector:"[ngSwitchCase]"}]}],te.ctorParameters=function(){return[{type:D.ViewContainerRef},{type:D.TemplateRef},{type:ee,decorators:[{type:D.Host}]}]},te.propDecorators={ngSwitchCase:[{type:D.Input}]};var ne=function(){function e(e,t,n){n._addDefault(new $(e,t))}return e}();ne.decorators=[{type:D.Directive,args:[{selector:"[ngSwitchDefault]"}]}],ne.ctorParameters=function(){return[{type:D.ViewContainerRef},{type:D.TemplateRef},{type:ee,decorators:[{type:D.Host}]}]};var re=function(){function e(e){this._localization=e,this._caseViews={}}return Object.defineProperty(e.prototype,"ngPlural",{set:function(e){this._switchValue=e,this._updateView()},enumerable:!0,configurable:!0}),e.prototype.addCase=function(e,t){this._caseViews[e]=t},e.prototype._updateView=function(){this._clearViews();var e=Object.keys(this._caseViews),t=i(this._switchValue,e,this._localization);this._activateView(this._caseViews[t])},e.prototype._clearViews=function(){this._activeView&&this._activeView.destroy()},e.prototype._activateView=function(e){e&&(this._activeView=e,this._activeView.create())},e}();re.decorators=[{type:D.Directive,args:[{selector:"[ngPlural]"}]}],re.ctorParameters=function(){return[{type:q}]},re.propDecorators={ngPlural:[{type:D.Input}]};var oe=function(){function e(e,t,n,r){this.value=e;var o=!isNaN(Number(e));r.addCase(o?"="+e:e,new $(n,t))}return e}();oe.decorators=[{type:D.Directive,args:[{selector:"[ngPluralCase]"}]}],oe.ctorParameters=function(){return[{type:void 0,decorators:[{type:D.Attribute,args:["ngPluralCase"]}]},{type:D.TemplateRef},{type:D.ViewContainerRef},{type:re,decorators:[{type:D.Host}]}]};var ie=function(){function e(e,t,n){this._differs=e,this._ngEl=t,this._renderer=n}return Object.defineProperty(e.prototype,"ngStyle",{set:function(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())},enumerable:!0,configurable:!0}),e.prototype.ngDoCheck=function(){if(this._differ){var e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}},e.prototype._applyChanges=function(e){var t=this;e.forEachRemovedItem(function(e){return t._setStyle(e.key,null)}),e.forEachAddedItem(function(e){return t._setStyle(e.key,e.currentValue)}),e.forEachChangedItem(function(e){return t._setStyle(e.key,e.currentValue)})},e.prototype._setStyle=function(e,t){var n=e.split("."),r=n[0],o=n[1];t=null!=t&&o?""+t+o:t,this._renderer.setElementStyle(this._ngEl.nativeElement,r,t)},e}();ie.decorators=[{type:D.Directive,args:[{selector:"[ngStyle]"}]}],ie.ctorParameters=function(){return[{type:D.KeyValueDiffers},{type:D.ElementRef},{type:D.Renderer}]},ie.propDecorators={ngStyle:[{type:D.Input}]};var se=function(){function e(e){this._viewContainerRef=e}return Object.defineProperty(e.prototype,"ngOutletContext",{set:function(e){this.ngTemplateOutletContext=e},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){this._viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._viewRef)),this.ngTemplateOutlet&&(this._viewRef=this._viewContainerRef.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext))},e}();se.decorators=[{type:D.Directive,args:[{selector:"[ngTemplateOutlet]"}]}],se.ctorParameters=function(){return[{type:D.ViewContainerRef}]},se.propDecorators={ngTemplateOutletContext:[{type:D.Input}],ngTemplateOutlet:[{type:D.Input}],ngOutletContext:[{type:D.Input}]};var ae=[z,G,K,X,se,ie,ee,te,ne,re,oe],ue=function(){function e(){}return e.prototype.createSubscription=function(e,t){return e.subscribe({next:t,error:function(e){throw e}})},e.prototype.dispose=function(e){e.unsubscribe()},e.prototype.onDestroy=function(e){e.unsubscribe()},e}(),ce=function(){function e(){}return e.prototype.createSubscription=function(e,t){return e.then(t,function(e){throw e})},e.prototype.dispose=function(e){},e.prototype.onDestroy=function(e){},e}(),le=new ce,pe=new ue,he=function(){function e(e){this._ref=e,this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null,this._strategy=null}return e.prototype.ngOnDestroy=function(){this._subscription&&this._dispose()},e.prototype.transform=function(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue===this._latestReturnedValue?this._latestReturnedValue:(this._latestReturnedValue=this._latestValue,D.WrappedValue.wrap(this._latestValue)):(e&&this._subscribe(e),this._latestReturnedValue=this._latestValue,this._latestValue)},e.prototype._subscribe=function(e){var t=this;this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,function(n){return t._updateLatestValue(e,n)})},e.prototype._selectStrategy=function(t){if(Object(D["\u0275isPromise"])(t))return le;if(Object(D["\u0275isObservable"])(t))return pe;throw c(e,t)},e.prototype._dispose=function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null},e.prototype._updateLatestValue=function(e,t){e===this._obj&&(this._latestValue=t,this._ref.markForCheck())},e}();he.decorators=[{type:D.Pipe,args:[{name:"async",pure:!1}]}],he.ctorParameters=function(){return[{type:D.ChangeDetectorRef}]};var fe=function(){function e(){}return e.prototype.transform=function(t){if(!t)return t;if("string"!=typeof t)throw c(e,t);return t.toLowerCase()},e}();fe.decorators=[{type:D.Pipe,args:[{name:"lowercase"}]}],fe.ctorParameters=function(){return[]};var de=function(){function e(){}return e.prototype.transform=function(t){if(!t)return t;if("string"!=typeof t)throw c(e,t);return t.split(/\b/g).map(function(e){return l(e)}).join("")},e}();de.decorators=[{type:D.Pipe,args:[{name:"titlecase"}]}],de.ctorParameters=function(){return[]};var ye=function(){function e(){}return e.prototype.transform=function(t){if(!t)return t;if("string"!=typeof t)throw c(e,t);return t.toUpperCase()},e}();ye.decorators=[{type:D.Pipe,args:[{name:"uppercase"}]}],ye.ctorParameters=function(){return[]};var ve={};ve.Decimal=0,ve.Percent=1,ve.Currency=2,ve[ve.Decimal]="Decimal",ve[ve.Percent]="Percent",ve[ve.Currency]="Currency";var me=function(){function e(){}return e.format=function(e,t,n,r){void 0===r&&(r={});var o=r.minimumIntegerDigits,i=r.minimumFractionDigits,s=r.maximumFractionDigits,a=r.currency,u=r.currencyAsSymbol,c=void 0!==u&&u,l={minimumIntegerDigits:o,minimumFractionDigits:i,maximumFractionDigits:s,style:ve[n].toLowerCase()};return n==ve.Currency&&(l.currency="string"==typeof a?a:void 0,l.currencyDisplay=c?"symbol":"code"),new Intl.NumberFormat(t,l).format(e)},e}(),ge=/((?:[^yMLdHhmsazZEwGjJ']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|J+|j+|m+|s+|a|z|Z|G+|w+))(.*)/,_e={yMMMdjms:_(g([v("year",1),m("month",3),v("day",1),v("hour",1),v("minute",1),v("second",1)])),yMdjm:_(g([v("year",1),v("month",1),v("day",1),v("hour",1),v("minute",1)])),yMMMMEEEEd:_(g([v("year",1),m("month",4),m("weekday",4),v("day",1)])),yMMMMd:_(g([v("year",1),m("month",4),v("day",1)])),yMMMd:_(g([v("year",1),m("month",3),v("day",1)])),yMd:_(g([v("year",1),v("month",1),v("day",1)])),jms:_(g([v("hour",1),v("second",1),v("minute",1)])),jm:_(g([v("hour",1),v("minute",1)]))},be={yyyy:_(v("year",4)),yy:_(v("year",2)),y:_(v("year",1)),MMMM:_(m("month",4)),MMM:_(m("month",3)),MM:_(v("month",2)),M:_(v("month",1)),LLLL:_(m("month",4)),L:_(m("month",1)),dd:_(v("day",2)),d:_(v("day",1)),HH:p(h(_(y(v("hour",2),!1)))),H:h(_(y(v("hour",1),!1))),hh:p(h(_(y(v("hour",2),!0)))),h:h(_(y(v("hour",1),!0))),jj:_(v("hour",2)),j:_(v("hour",1)),mm:p(_(v("minute",2))),m:_(v("minute",1)),ss:p(_(v("second",2))),s:_(v("second",1)),sss:_(v("second",3)),EEEE:_(m("weekday",4)),EEE:_(m("weekday",3)),EE:_(m("weekday",2)),E:_(m("weekday",1)),a:function(e){return function(t,n){return e(t,n).split(" ")[1]}}(_(y(v("hour",1),!0))),Z:d("short"),z:d("long"),ww:_({}),w:_({}),G:_(m("era",1)),GG:_(m("era",2)),GGG:_(m("era",3)),GGGG:_(m("era",4))},we=new Map,Ce=function(){function e(){}return e.format=function(e,t,n){return b(n,e,t)},e}(),Ee=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Se=function(){function e(e){this._locale=e}return e.prototype.transform=function(t,n){return C(e,this._locale,t,ve.Decimal,n)},e}();Se.decorators=[{type:D.Pipe,args:[{name:"number"}]}],Se.ctorParameters=function(){return[{type:void 0,decorators:[{type:D.Inject,args:[D.LOCALE_ID]}]}]};var Oe=function(){function e(e){this._locale=e}return e.prototype.transform=function(t,n){return C(e,this._locale,t,ve.Percent,n)},e}();Oe.decorators=[{type:D.Pipe,args:[{name:"percent"}]}],Oe.ctorParameters=function(){return[{type:void 0,decorators:[{type:D.Inject,args:[D.LOCALE_ID]}]}]};var Pe=function(){function e(e){this._locale=e}return e.prototype.transform=function(t,n,r,o){return void 0===n&&(n="USD"),void 0===r&&(r=!1),C(e,this._locale,t,ve.Currency,o,n,r)},e}();Pe.decorators=[{type:D.Pipe,args:[{name:"currency"}]}],Pe.ctorParameters=function(){return[{type:void 0,decorators:[{type:D.Inject,args:[D.LOCALE_ID]}]}]};var Te=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Ne=function(){function e(e){this._locale=e}return e.prototype.transform=function(t,n){void 0===n&&(n="mediumDate");var r;if(O(t)||t!==t)return null;if("string"==typeof t&&(t=t.trim()),P(t))r=t;else if(S(t))r=new Date(parseFloat(t));else if("string"==typeof t&&/^(\d{4}-\d{1,2}-\d{1,2})$/.test(t)){var o=t.split("-").map(function(e){return parseInt(e,10)}),i=o[0],s=o[1],a=o[2];r=new Date(i,s-1,a)}else r=new Date(t);if(!P(r)){var u=void 0;if("string"!=typeof t||!(u=t.match(Te)))throw c(e,t);r=T(u)}return Ce.format(r,this._locale,e._ALIASES[n]||n)},e}();Ne._ALIASES={medium:"yMMMdjms",short:"yMdjm",fullDate:"yMMMMEEEEd",longDate:"yMMMMd",mediumDate:"yMMMd",shortDate:"yMd",mediumTime:"jms",shortTime:"jm"},Ne.decorators=[{type:D.Pipe,args:[{name:"date",pure:!0}]}],Ne.ctorParameters=function(){return[{type:void 0,decorators:[{type:D.Inject,args:[D.LOCALE_ID]}]}]};var Ie=/#/g,Ae=function(){function e(e){this._localization=e}return e.prototype.transform=function(t,n){if(null==t)return"";if("object"!=typeof n||null===n)throw c(e,n);return n[i(t,Object.keys(n),this._localization)].replace(Ie,t.toString())},e}();Ae.decorators=[{type:D.Pipe,args:[{name:"i18nPlural",pure:!0}]}],Ae.ctorParameters=function(){return[{type:q}]};var Re=function(){function e(){}return e.prototype.transform=function(t,n){if(null==t)return"";if("object"!=typeof n||"string"!=typeof t)throw c(e,n);return n.hasOwnProperty(t)?n[t]:n.hasOwnProperty("other")?n.other:""},e}();Re.decorators=[{type:D.Pipe,args:[{name:"i18nSelect",pure:!0}]}],Re.ctorParameters=function(){return[]};var xe=function(){function e(){}return e.prototype.transform=function(e){return JSON.stringify(e,null,2)},e}();xe.decorators=[{type:D.Pipe,args:[{name:"json",pure:!1}]}],xe.ctorParameters=function(){return[]};var ke=function(){function e(){}return e.prototype.transform=function(t,n,r){if(null==t)return t;if(!this.supports(t))throw c(e,t);return t.slice(n,r)},e.prototype.supports=function(e){return"string"==typeof e||Array.isArray(e)},e}();ke.decorators=[{type:D.Pipe,args:[{name:"slice",pure:!1}]}],ke.ctorParameters=function(){return[]};var De=[he,ye,fe,xe,ke,Se,Oe,de,Pe,Ne,Ae,Re],Me=function(){function e(){}return e}();Me.decorators=[{type:D.NgModule,args:[{declarations:[ae,De],exports:[ae,De],providers:[{provide:q,useClass:W}]}]}],Me.ctorParameters=function(){return[]};var Fe=function(){function e(){}return e}();Fe.decorators=[{type:D.NgModule,args:[{declarations:[],exports:[]}]}],Fe.ctorParameters=function(){return[]};var je=new D.InjectionToken("DocumentToken"),Le="browser",Ve="server",He="browserWorkerApp",Be="browserWorkerUi",qe=new D.Version("4.4.6")},qgI0:function(e,t,n){"use strict";function r(e){return e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}function o(e,t,n,o){var l=new h(e,n,o);if(l.closed)return null;if(t instanceof u.a)return t._isScalar?(l.next(t.value),l.complete(),null):(l.syncErrorThrowable=!0,t.subscribe(l));if(s(t)){for(var p=0,d=t.length;p<d&&!l.closed;p++)l.next(t[p]);l.closed||l.complete()}else{if(r(t))return t.then(function(e){l.closed||(l.next(e),l.complete())},function(e){return l.error(e)}).then(null,function(e){i.a.setTimeout(function(){throw e})}),l;if(t&&"function"==typeof t[c])for(var y=t[c]();;){var v=y.next();if(v.done){l.complete();break}if(l.next(v.value),l.closed)break}else if(t&&"function"==typeof t[f.a]){var m=t[f.a]();if("function"==typeof m.subscribe)return m.subscribe(new h(e,n,o));l.error(new TypeError("Provided object does not correctly implement Symbol.observable"))}else{var g=Object(a.a)(t)?"an invalid object":"'"+t+"'",_="You provided "+g+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";l.error(new TypeError(_))}}return null}var i=n("xIGM"),s=function(e){return e&&"number"==typeof e.length},a=n("NGRF"),u=n("AP4T"),c=function(e){var t=e.Symbol;if("function"==typeof t)return t.iterator||(t.iterator=t("iterator polyfill")),t.iterator;var n=e.Set;if(n&&"function"==typeof(new n)["@@iterator"])return"@@iterator";var r=e.Map;if(r)for(var o=Object.getOwnPropertyNames(r.prototype),i=0;i<o.length;++i){var s=o[i];if("entries"!==s&&"size"!==s&&r.prototype[s]===r.prototype.entries)return s}return"@@iterator"}(i.a),l=n("E9/g"),p=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},h=function(e){function t(t,n,r){e.call(this),this.parent=t,this.outerValue=n,this.outerIndex=r,this.index=0}return p(t,e),t.prototype._next=function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)},t.prototype._error=function(e){this.parent.notifyError(e,this),this.unsubscribe()},t.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},t}(l.a),f=n("mz3w");t.a=o},r9Yg:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("JEJ4"),o=function(){function e(){this.set={}}return e.prototype.add=function(e,t){this.set[e]=null===t||t},e.prototype.contains=function(e){return r.contains(this.set,e)},e.prototype.get=function(e){return this.contains(e)?this.set[e]:void 0},e.prototype.remove=function(e){delete this.set[e]},e.prototype.clear=function(){this.set={}},e.prototype.isEmpty=function(){return r.isEmpty(this.set)},e.prototype.count=function(){return r.getCount(this.set)},e.prototype.each=function(e){r.forEach(this.set,function(t,n){return e(t,n)})},e.prototype.keys=function(){var e=[];return r.forEach(this.set,function(t){e.push(t)}),e},e}();t.CountedSet=o},rB9K:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n("JEJ4"),i=n("stu6"),s=n("/fob"),a=n("Nq7v"),u=n("G0Qy"),c=n("F1yO"),l=n("fvGz"),p=n("xfHL"),h=n("JEJ4"),f=n("rtGJ"),d=n("JEJ4"),y=function(){function e(e,t,n,r){this.repo=e,this.path=t,this.queryParams_=n,this.orderByCalled_=r}return Object.defineProperty(e,"__referenceConstructor",{get:function(){return o.assert(r,"Reference.ts has not been loaded"),r},set:function(e){r=e},enumerable:!0,configurable:!0}),e.validateQueryEndpoints_=function(e){var t=null,n=null;if(e.hasStart()&&(t=e.getIndexStartValue()),e.hasEnd()&&(n=e.getIndexEndValue()),e.getIndex()===i.KEY_INDEX){var r="Query: When ordering by key, you may only pass one argument to startAt(), endAt(), or equalTo().",l="Query: When ordering by key, the argument passed to startAt(), endAt(),or equalTo() must be a string.";if(e.hasStart()){if(e.getIndexStartName()!=c.MIN_NAME)throw new Error(r);if("string"!=typeof t)throw new Error(l)}if(e.hasEnd()){if(e.getIndexEndName()!=c.MAX_NAME)throw new Error(r);if("string"!=typeof n)throw new Error(l)}}else if(e.getIndex()===s.PRIORITY_INDEX){if(null!=t&&!p.isValidPriority(t)||null!=n&&!p.isValidPriority(n))throw new Error("Query: When ordering by priority, the first argument passed to startAt(), endAt(), or equalTo() must be a valid priority value (null, a number, or a string).")}else if(o.assert(e.getIndex()instanceof u.PathIndex||e.getIndex()===a.VALUE_INDEX,"unknown index type."),null!=t&&"object"==typeof t||null!=n&&"object"==typeof n)throw new Error("Query: First argument passed to startAt(), endAt(), or equalTo() cannot be an object.")},e.validateLimit_=function(e){if(e.hasStart()&&e.hasEnd()&&e.hasLimit()&&!e.hasAnchoredLimit())throw new Error("Query: Can't combine startAt(), endAt(), and limit(). Use limitToFirst() or limitToLast() instead.")},e.prototype.validateNoPreviousOrderByCall_=function(e){if(!0===this.orderByCalled_)throw new Error(e+": You can't combine multiple orderBy calls.")},e.prototype.getQueryParams=function(){return this.queryParams_},e.prototype.getRef=function(){return h.validateArgCount("Query.ref",0,0,arguments.length),new e.__referenceConstructor(this.repo,this.path)},e.prototype.on=function(t,n,r,o){h.validateArgCount("Query.on",2,4,arguments.length),p.validateEventType("Query.on",1,t,!1),h.validateCallback("Query.on",2,n,!1);var i=e.getCancelAndContextArgs_("Query.on",r,o);if("value"===t)this.onValueEvent(n,i.cancel,i.context);else{var s={};s[t]=n,this.onChildEvent(s,i.cancel,i.context)}return n},e.prototype.onValueEvent=function(e,t,n){var r=new f.ValueEventRegistration(e,t||null,n||null);this.repo.addEventCallbackForQuery(this,r)},e.prototype.onChildEvent=function(e,t,n){var r=new f.ChildEventRegistration(e,t,n);this.repo.addEventCallbackForQuery(this,r)},e.prototype.off=function(e,t,n){h.validateArgCount("Query.off",0,3,arguments.length),p.validateEventType("Query.off",1,e,!0),h.validateCallback("Query.off",2,t,!0),h.validateContextObject("Query.off",3,n,!0);var r=null,o=null;if("value"===e){var i=t||null;r=new f.ValueEventRegistration(i,null,n||null)}else e&&(t&&(o={},o[e]=t),r=new f.ChildEventRegistration(o,null,n||null));this.repo.removeEventCallbackForQuery(this,r)},e.prototype.once=function(t,n,r,o){var i=this;h.validateArgCount("Query.once",1,4,arguments.length),p.validateEventType("Query.once",1,t,!1),h.validateCallback("Query.once",2,n,!0);var s=e.getCancelAndContextArgs_("Query.once",r,o),a=!0,u=new d.Deferred;u.promise.catch(function(){});var c=function(e){a&&(a=!1,i.off(t,c),n&&n.bind(s.context)(e),u.resolve(e))};return this.on(t,c,function(e){i.off(t,c),s.cancel&&s.cancel.bind(s.context)(e),u.reject(e)}),u.promise},e.prototype.limitToFirst=function(t){if(h.validateArgCount("Query.limitToFirst",1,1,arguments.length),"number"!=typeof t||Math.floor(t)!==t||t<=0)throw new Error("Query.limitToFirst: First argument must be a positive integer.");if(this.queryParams_.hasLimit())throw new Error("Query.limitToFirst: Limit was already set (by another call to limit, limitToFirst, or limitToLast).");return new e(this.repo,this.path,this.queryParams_.limitToFirst(t),this.orderByCalled_)},e.prototype.limitToLast=function(t){if(h.validateArgCount("Query.limitToLast",1,1,arguments.length),"number"!=typeof t||Math.floor(t)!==t||t<=0)throw new Error("Query.limitToLast: First argument must be a positive integer.");if(this.queryParams_.hasLimit())throw new Error("Query.limitToLast: Limit was already set (by another call to limit, limitToFirst, or limitToLast).");return new e(this.repo,this.path,this.queryParams_.limitToLast(t),this.orderByCalled_)},e.prototype.orderByChild=function(t){if(h.validateArgCount("Query.orderByChild",1,1,arguments.length),"$key"===t)throw new Error('Query.orderByChild: "$key" is invalid.  Use Query.orderByKey() instead.');if("$priority"===t)throw new Error('Query.orderByChild: "$priority" is invalid.  Use Query.orderByPriority() instead.');if("$value"===t)throw new Error('Query.orderByChild: "$value" is invalid.  Use Query.orderByValue() instead.');p.validatePathString("Query.orderByChild",1,t,!1),this.validateNoPreviousOrderByCall_("Query.orderByChild");var n=new l.Path(t);if(n.isEmpty())throw new Error("Query.orderByChild: cannot pass in empty path.  Use Query.orderByValue() instead.");var r=new u.PathIndex(n),o=this.queryParams_.orderBy(r);return e.validateQueryEndpoints_(o),new e(this.repo,this.path,o,!0)},e.prototype.orderByKey=function(){h.validateArgCount("Query.orderByKey",0,0,arguments.length),this.validateNoPreviousOrderByCall_("Query.orderByKey");var t=this.queryParams_.orderBy(i.KEY_INDEX);return e.validateQueryEndpoints_(t),new e(this.repo,this.path,t,!0)},e.prototype.orderByPriority=function(){h.validateArgCount("Query.orderByPriority",0,0,arguments.length),this.validateNoPreviousOrderByCall_("Query.orderByPriority");var t=this.queryParams_.orderBy(s.PRIORITY_INDEX);return e.validateQueryEndpoints_(t),new e(this.repo,this.path,t,!0)},e.prototype.orderByValue=function(){h.validateArgCount("Query.orderByValue",0,0,arguments.length),this.validateNoPreviousOrderByCall_("Query.orderByValue");var t=this.queryParams_.orderBy(a.VALUE_INDEX);return e.validateQueryEndpoints_(t),new e(this.repo,this.path,t,!0)},e.prototype.startAt=function(t,n){void 0===t&&(t=null),h.validateArgCount("Query.startAt",0,2,arguments.length),p.validateFirebaseDataArg("Query.startAt",1,t,this.path,!0),p.validateKey("Query.startAt",2,n,!0);var r=this.queryParams_.startAt(t,n);if(e.validateLimit_(r),e.validateQueryEndpoints_(r),this.queryParams_.hasStart())throw new Error("Query.startAt: Starting point was already set (by another call to startAt or equalTo).");return void 0===t&&(t=null,n=null),new e(this.repo,this.path,r,this.orderByCalled_)},e.prototype.endAt=function(t,n){void 0===t&&(t=null),h.validateArgCount("Query.endAt",0,2,arguments.length),p.validateFirebaseDataArg("Query.endAt",1,t,this.path,!0),p.validateKey("Query.endAt",2,n,!0);var r=this.queryParams_.endAt(t,n);if(e.validateLimit_(r),e.validateQueryEndpoints_(r),this.queryParams_.hasEnd())throw new Error("Query.endAt: Ending point was already set (by another call to endAt or equalTo).");return new e(this.repo,this.path,r,this.orderByCalled_)},e.prototype.equalTo=function(e,t){if(h.validateArgCount("Query.equalTo",1,2,arguments.length),p.validateFirebaseDataArg("Query.equalTo",1,e,this.path,!1),p.validateKey("Query.equalTo",2,t,!0),this.queryParams_.hasStart())throw new Error("Query.equalTo: Starting point was already set (by another call to startAt or equalTo).");if(this.queryParams_.hasEnd())throw new Error("Query.equalTo: Ending point was already set (by another call to endAt or equalTo).");return this.startAt(e,t).endAt(e,t)},e.prototype.toString=function(){return h.validateArgCount("Query.toString",0,0,arguments.length),this.repo.toString()+this.path.toUrlEncodedString()},e.prototype.toJSON=function(){return h.validateArgCount("Query.toJSON",0,1,arguments.length),this.toString()},e.prototype.queryObject=function(){return this.queryParams_.getQueryObject()},e.prototype.queryIdentifier=function(){var e=this.queryObject(),t=c.ObjectToUniqueKey(e);return"{}"===t?"default":t},e.prototype.isEqual=function(t){if(h.validateArgCount("Query.isEqual",1,1,arguments.length),!(t instanceof e)){throw new Error("Query.isEqual failed: First argument must be an instance of firebase.database.Query.")}var n=this.repo===t.repo,r=this.path.equals(t.path),o=this.queryIdentifier()===t.queryIdentifier();return n&&r&&o},e.getCancelAndContextArgs_=function(e,t,n){var r={cancel:null,context:null};if(t&&n)r.cancel=t,h.validateCallback(e,3,r.cancel,!0),r.context=n,h.validateContextObject(e,4,r.context,!0);else if(t)if("object"==typeof t&&null!==t)r.context=t;else{if("function"!=typeof t)throw new Error(h.errorPrefix(e,3,!0)+" must either be a cancel callback or a context object.");r.cancel=t}return r},Object.defineProperty(e.prototype,"ref",{get:function(){return this.getRef()},enumerable:!0,configurable:!0}),e}();t.Query=y},rbSf:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("JEJ4"),o=n("fvGz"),i=n("gOHv"),s=function(){function e(e,t,n){this.path=e,this.affectedTree=t,this.revert=n,this.type=i.OperationType.ACK_USER_WRITE,this.source=i.OperationSource.User}return e.prototype.operationForChild=function(t){if(this.path.isEmpty()){if(null!=this.affectedTree.value)return r.assert(this.affectedTree.children.isEmpty(),"affectedTree should not have overlapping affected paths."),this;var n=this.affectedTree.subtree(new o.Path(t));return new e(o.Path.Empty,n,this.revert)}return r.assert(this.path.getFront()===t,"operationForChild called for unrelated child."),new e(this.path.popFront(),this.affectedTree,this.revert)},e}();t.AckUserWrite=s},rtGJ:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("GnQ5"),o=n("A4jy"),i=n("JEJ4"),s=n("JEJ4"),a=function(){function e(e,t,n){this.callback_=e,this.cancelCallback_=t,this.context_=n}return e.prototype.respondsTo=function(e){return"value"===e},e.prototype.createEvent=function(e,t){var n=t.getQueryParams().getIndex();return new o.DataEvent("value",this,new r.DataSnapshot(e.snapshotNode,t.getRef(),n))},e.prototype.getEventRunner=function(e){var t=this.context_;if("cancel"===e.getEventType()){s.assert(this.cancelCallback_,"Raising a cancel event on a listener with no cancel callback");var n=this.cancelCallback_;return function(){n.call(t,e.error)}}var r=this.callback_;return function(){r.call(t,e.snapshot)}},e.prototype.createCancelEvent=function(e,t){return this.cancelCallback_?new o.CancelEvent(this,e,t):null},e.prototype.matches=function(t){return t instanceof e&&(!t.callback_||!this.callback_||t.callback_===this.callback_&&t.context_===this.context_)},e.prototype.hasAnyCallback=function(){return null!==this.callback_},e}();t.ValueEventRegistration=a;var u=function(){function e(e,t,n){this.callbacks_=e,this.cancelCallback_=t,this.context_=n}return e.prototype.respondsTo=function(e){var t="children_added"===e?"child_added":e;return t="children_removed"===t?"child_removed":t,i.contains(this.callbacks_,t)},e.prototype.createCancelEvent=function(e,t){return this.cancelCallback_?new o.CancelEvent(this,e,t):null},e.prototype.createEvent=function(e,t){s.assert(null!=e.childName,"Child events should have a childName.");var n=t.getRef().child(e.childName),i=t.getQueryParams().getIndex();return new o.DataEvent(e.type,this,new r.DataSnapshot(e.snapshotNode,n,i),e.prevName)},e.prototype.getEventRunner=function(e){var t=this.context_;if("cancel"===e.getEventType()){s.assert(this.cancelCallback_,"Raising a cancel event on a listener with no cancel callback");var n=this.cancelCallback_;return function(){n.call(t,e.error)}}var r=this.callbacks_[e.eventType];return function(){r.call(t,e.snapshot,e.prevName)}},e.prototype.matches=function(t){if(t instanceof e){if(!this.callbacks_||!t.callbacks_)return!0;if(this.context_===t.context_){var n=i.getCount(t.callbacks_);if(n===i.getCount(this.callbacks_)){if(1===n){var r=i.getAnyKey(t.callbacks_),o=i.getAnyKey(this.callbacks_);return!(o!==r||t.callbacks_[r]&&this.callbacks_[o]&&t.callbacks_[r]!==this.callbacks_[o])}return i.every(this.callbacks_,function(e,n){return t.callbacks_[e]===n})}}}return!1},e.prototype.hasAnyCallback=function(){return null!==this.callbacks_},e}();t.ChildEventRegistration=u},ryHz:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fAJX"),o=(n.n(r),n("vrVh")),i=(n.n(o),n("ctu8"));n.n(i)},sZ8A:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("JEJ4");t.nextPushId=function(){var e="-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz",t=0,n=[];return function(o){var i=o===t;t=o;var s,a=new Array(8);for(s=7;s>=0;s--)a[s]=e.charAt(o%64),o=Math.floor(o/64);r.assert(0===o,"Cannot push at time == 0");var u=a.join("");if(i){for(s=11;s>=0&&63===n[s];s--)n[s]=0;n[s]++}else for(s=0;s<12;s++)n[s]=Math.floor(64*Math.random());for(s=0;s<12;s++)u+=e.charAt(n[s]);return r.assert(20===u.length,"nextPushId: Length should be 20."),u}}()},stu6:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var o,i=n("GboV"),s=n("p+VM"),a=n("F1yO"),u=n("JEJ4"),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),Object.defineProperty(t,"__EMPTY_NODE",{get:function(){return o},set:function(e){o=e},enumerable:!0,configurable:!0}),t.prototype.compare=function(e,t){return a.nameCompare(e.name,t.name)},t.prototype.isDefinedOn=function(e){throw u.assertionError("KeyIndex.isDefinedOn not expected to be called.")},t.prototype.indexedValueChanged=function(e,t){return!1},t.prototype.minPost=function(){return s.NamedNode.MIN},t.prototype.maxPost=function(){return new s.NamedNode(a.MAX_NAME,o)},t.prototype.makePost=function(e,t){return u.assert("string"==typeof e,"KeyIndex indexValue must always be a string."),new s.NamedNode(e,o)},t.prototype.toString=function(){return".key"},t}(i.Index);t.KeyIndex=c,t.KEY_INDEX=new c},tYwN:function(e,t,n){"use strict";function r(t){var n=t.INTERNAL.registerService("database",function(e,t,n){return c.RepoManager.getInstance().databaseFromApp(e,n)},{Reference:a.Reference,Query:s.Query,Database:i.Database,enableLogging:u.enableLogging,INTERNAL:l,ServerValue:i.Database.ServerValue,TEST_ACCESS:p},null,!0);h.isNodeSdk()&&(e.exports=n)}Object.defineProperty(t,"__esModule",{value:!0});var o=n("XtH8"),i=n("8UuO"),s=n("rB9K"),a=n("5pXs"),u=n("F1yO"),c=n("+VeI"),l=n("xvZM"),p=n("7qHF"),h=n("JEJ4");t.registerDatabase=r,r(o.default)},uCc5:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n("y8hQ"),i=n("R3TC"),s=n("JEJ4"),a=n("JEJ4"),u=n("bN85"),c=n("0npo"),l=function(){function e(){this.views_={}}return Object.defineProperty(e,"__referenceConstructor",{get:function(){return s.assert(r,"Reference.ts has not been loaded"),r},set:function(e){s.assert(!r,"__referenceConstructor has already been defined"),r=e},enumerable:!0,configurable:!0}),e.prototype.isEmpty=function(){return a.isEmpty(this.views_)},e.prototype.applyOperation=function(e,t,n){var r=e.source.queryId;if(null!==r){var o=a.safeGet(this.views_,r);return s.assert(null!=o,"SyncTree gave us an op for an invalid query."),o.applyOperation(e,t,n)}var i=[];return a.forEach(this.views_,function(r,o){i=i.concat(o.applyOperation(e,t,n))}),i},e.prototype.addEventRegistration=function(e,t,n,r,s){var l=e.queryIdentifier(),p=a.safeGet(this.views_,l);if(!p){var h=n.calcCompleteEventCache(s?r:null),f=!1;h?f=!0:r instanceof i.ChildrenNode?(h=n.calcCompleteEventChildren(r),f=!1):(h=i.ChildrenNode.EMPTY_NODE,f=!1);var d=new u.ViewCache(new o.CacheNode(h,f,!1),new o.CacheNode(r,s,!1));p=new c.View(e,d),this.views_[l]=p}return p.addEventRegistration(t),p.getInitialEvents(t)},e.prototype.removeEventRegistration=function(t,n,r){var o=t.queryIdentifier(),i=[],s=[],u=this.hasCompleteView();if("default"===o){var c=this;a.forEach(this.views_,function(e,t){s=s.concat(t.removeEventRegistration(n,r)),t.isEmpty()&&(delete c.views_[e],t.getQuery().getQueryParams().loadsAllData()||i.push(t.getQuery()))})}else{var l=a.safeGet(this.views_,o);l&&(s=s.concat(l.removeEventRegistration(n,r)),l.isEmpty()&&(delete this.views_[o],l.getQuery().getQueryParams().loadsAllData()||i.push(l.getQuery())))}return u&&!this.hasCompleteView()&&i.push(new e.__referenceConstructor(t.repo,t.path)),{removed:i,events:s}},e.prototype.getQueryViews=function(){var e=this;return Object.keys(this.views_).map(function(t){return e.views_[t]}).filter(function(e){return!e.getQuery().getQueryParams().loadsAllData()})},e.prototype.getCompleteServerCache=function(e){var t=null;return a.forEach(this.views_,function(n,r){t=t||r.getCompleteServerCache(e)}),t},e.prototype.viewForQuery=function(e){if(e.getQueryParams().loadsAllData())return this.getCompleteView();var t=e.queryIdentifier();return a.safeGet(this.views_,t)},e.prototype.viewExistsForQuery=function(e){return null!=this.viewForQuery(e)},e.prototype.hasCompleteView=function(){return null!=this.getCompleteView()},e.prototype.getCompleteView=function(){return a.findValue(this.views_,function(e){return e.getQuery().getQueryParams().loadsAllData()})||null},e}();t.SyncPoint=l},uzI5:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n("32XG"),i=function(e){function t(){var t=e.call(this)||this;t.chain_=[],t.buf_=[],t.W_=[],t.pad_=[],t.inbuf_=0,t.total_=0,t.blockSize=64,t.pad_[0]=128;for(var n=1;n<t.blockSize;++n)t.pad_[n]=0;return t.reset(),t}return r(t,e),t.prototype.reset=function(){this.chain_[0]=1732584193,this.chain_[1]=4023233417,this.chain_[2]=2562383102,this.chain_[3]=271733878,this.chain_[4]=3285377520,this.inbuf_=0,this.total_=0},t.prototype.compress_=function(e,t){t||(t=0);var n=this.W_;if("string"==typeof e)for(var r=0;r<16;r++)n[r]=e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|e.charCodeAt(t+3),t+=4;else for(var r=0;r<16;r++)n[r]=e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3],t+=4;for(var r=16;r<80;r++){var o=n[r-3]^n[r-8]^n[r-14]^n[r-16];n[r]=4294967295&(o<<1|o>>>31)}for(var i,s,a=this.chain_[0],u=this.chain_[1],c=this.chain_[2],l=this.chain_[3],p=this.chain_[4],r=0;r<80;r++){r<40?r<20?(i=l^u&(c^l),s=1518500249):(i=u^c^l,s=1859775393):r<60?(i=u&c|l&(u|c),s=2400959708):(i=u^c^l,s=3395469782);var o=(a<<5|a>>>27)+i+p+s+n[r]&4294967295;p=l,l=c,c=4294967295&(u<<30|u>>>2),u=a,a=o}this.chain_[0]=this.chain_[0]+a&4294967295,this.chain_[1]=this.chain_[1]+u&4294967295,this.chain_[2]=this.chain_[2]+c&4294967295,this.chain_[3]=this.chain_[3]+l&4294967295,this.chain_[4]=this.chain_[4]+p&4294967295},t.prototype.update=function(e,t){if(null!=e){void 0===t&&(t=e.length);for(var n=t-this.blockSize,r=0,o=this.buf_,i=this.inbuf_;r<t;){if(0==i)for(;r<=n;)this.compress_(e,r),r+=this.blockSize;if("string"==typeof e){for(;r<t;)if(o[i]=e.charCodeAt(r),++i,++r,i==this.blockSize){this.compress_(o),i=0;break}}else for(;r<t;)if(o[i]=e[r],++i,++r,i==this.blockSize){this.compress_(o),i=0;break}}this.inbuf_=i,this.total_+=t}},t.prototype.digest=function(){var e=[],t=8*this.total_;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var n=this.blockSize-1;n>=56;n--)this.buf_[n]=255&t,t/=256;this.compress_(this.buf_);for(var r=0,n=0;n<5;n++)for(var o=24;o>=0;o-=8)e[r]=this.chain_[n]>>o&255,++r;return e},t}(o.Hash);t.Sha1=i},vrVh:function(e,t){Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null==this)throw new TypeError('"this" is null or not defined');var t=Object(this),n=t.length>>>0;if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var r=arguments[1],o=0;o<n;){var i=t[o];if(e.call(r,i,o,t))return i;o++}}})},wclm:function(e,t,n){"use strict";var r=function(){function e(t,n){void 0===n&&(n=e.now),this.SchedulerAction=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.SchedulerAction(this,e).schedule(n,t)},e.now=Date.now?Date.now:function(){return+new Date},e}();n.d(t,"a",function(){return i});var o=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=function(e){function t(){e.apply(this,arguments),this.actions=[],this.active=!1,this.scheduled=void 0}return o(t,e),t.prototype.flush=function(e){var t=this.actions;if(this.active)return void t.push(e);var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}},t}(r)},wiMU:function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=n("/oeL"),s=n("EyWH"),a=n("qbdv"),u=n("4cOY"),c=n("/zAi"),l=function(){function e(e,t,n,r){this.el=e,this.domHandler=t,this.renderer=n,this.zone=r,this.draggable=!0,this.resizable=!0,this.minWidth=150,this.minHeight=150,this.closeOnEscape=!0,this.closable=!0,this.responsive=!0,this.showHeader=!0,this.breakpoint=640,this.blockScroll=!1,this.autoZIndex=!0,this.baseZIndex=0,this.onShow=new i.EventEmitter,this.onHide=new i.EventEmitter,this.visibleChange=new i.EventEmitter}return Object.defineProperty(e.prototype,"visible",{get:function(){return this._visible},set:function(e){this._visible=e,this.initialized&&this.containerViewChild&&this.containerViewChild.nativeElement&&(this._visible?this.show():this.preventVisibleChangePropagation?this.preventVisibleChangePropagation=!1:this.hide())},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewChecked=function(){this.executePostDisplayActions&&(this.onShow.emit({}),this.positionOverlay(),this.executePostDisplayActions=!1)},e.prototype.show=function(){this.executePostDisplayActions=!0,this.moveOnTop(),this.bindGlobalListeners(),this.modal&&this.enableModality()},e.prototype.positionOverlay=function(){var e=this.domHandler.getViewport();this.domHandler.getOuterHeight(this.containerViewChild.nativeElement)>e.height&&(this.contentViewChild.nativeElement.style.height=.75*e.height+"px"),this.positionLeft>=0&&this.positionTop>=0?(this.containerViewChild.nativeElement.style.left=this.positionLeft+"px",this.containerViewChild.nativeElement.style.top=this.positionTop+"px"):this.positionTop>=0?(this.center(),this.containerViewChild.nativeElement.style.top=this.positionTop+"px"):this.center()},e.prototype.hide=function(){this.onHide.emit({}),this.unbindMaskClickListener(),this.unbindGlobalListeners(),this.modal&&this.disableModality()},e.prototype.close=function(e){this.preventVisibleChangePropagation=!0,this.hide(),this.visibleChange.emit(!1),e.preventDefault()},e.prototype.ngAfterViewInit=function(){this.initialized=!0,this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.containerViewChild.nativeElement):this.domHandler.appendChild(this.containerViewChild.nativeElement,this.appendTo)),this.visible&&this.show()},e.prototype.center=function(){var e=this.domHandler.getOuterWidth(this.containerViewChild.nativeElement),t=this.domHandler.getOuterHeight(this.containerViewChild.nativeElement);0==e&&0==t&&(this.containerViewChild.nativeElement.style.visibility="hidden",this.containerViewChild.nativeElement.style.display="block",e=this.domHandler.getOuterWidth(this.containerViewChild.nativeElement),t=this.domHandler.getOuterHeight(this.containerViewChild.nativeElement),this.containerViewChild.nativeElement.style.display="none",this.containerViewChild.nativeElement.style.visibility="visible");var n=this.domHandler.getViewport(),r=Math.max((n.width-e)/2,0),o=Math.max((n.height-t)/2,0);this.containerViewChild.nativeElement.style.left=r+"px",this.containerViewChild.nativeElement.style.top=o+"px"},e.prototype.enableModality=function(){var e=this;if(!this.mask){this.mask=document.createElement("div"),this.mask.style.zIndex=String(parseInt(this.containerViewChild.nativeElement.style.zIndex)-1);var t="ui-widget-overlay ui-dialog-mask";this.blockScroll&&(t+=" ui-dialog-mask-scrollblocker"),this.domHandler.addMultipleClasses(this.mask,t),this.closable&&this.dismissableMask&&(this.maskClickListener=this.renderer.listen(this.mask,"click",function(t){e.close(t)})),document.body.appendChild(this.mask),this.blockScroll&&this.domHandler.addClass(document.body,"ui-overflow-hidden")}},e.prototype.disableModality=function(){if(this.mask){if(document.body.removeChild(this.mask),this.blockScroll){for(var e=document.body.children,t=void 0,n=0;n<e.length;n++){var r=e[n];if(this.domHandler.hasClass(r,"ui-dialog-mask-scrollblocker")){t=!0;break}}t||this.domHandler.removeClass(document.body,"ui-overflow-hidden")}this.mask=null}},e.prototype.unbindMaskClickListener=function(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)},e.prototype.moveOnTop=function(){this.autoZIndex&&(this.containerViewChild.nativeElement.style.zIndex=String(this.baseZIndex+ ++u.DomHandler.zindex))},e.prototype.onCloseMouseDown=function(e){this.closeIconMouseDown=!0},e.prototype.initDrag=function(e){if(this.closeIconMouseDown)return void(this.closeIconMouseDown=!1);this.draggable&&(this.dragging=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,this.domHandler.addClass(document.body,"ui-unselectable-text"))},e.prototype.onDrag=function(e){if(this.dragging){var t=e.pageX-this.lastPageX,n=e.pageY-this.lastPageY,r=parseInt(this.containerViewChild.nativeElement.style.left),o=parseInt(this.containerViewChild.nativeElement.style.top);this.containerViewChild.nativeElement.style.left=r+t+"px",this.containerViewChild.nativeElement.style.top=o+n+"px",this.lastPageX=e.pageX,this.lastPageY=e.pageY}},e.prototype.endDrag=function(e){this.draggable&&(this.dragging=!1,this.domHandler.removeClass(document.body,"ui-unselectable-text"))},e.prototype.initResize=function(e){this.resizable&&(this.preWidth=null,this.resizing=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,this.domHandler.addClass(document.body,"ui-unselectable-text"))},e.prototype.onResize=function(e){if(this.resizing){var t=e.pageX-this.lastPageX,n=e.pageY-this.lastPageY,r=this.domHandler.getOuterWidth(this.containerViewChild.nativeElement),o=this.domHandler.getOuterHeight(this.containerViewChild.nativeElement),i=this.domHandler.getOuterHeight(this.contentViewChild.nativeElement),s=r+t,a=o+n;s>this.minWidth&&(this.containerViewChild.nativeElement.style.width=s+"px"),a>this.minHeight&&(this.containerViewChild.nativeElement.style.height=a+"px",this.contentViewChild.nativeElement.style.height=i+n+"px"),this.lastPageX=e.pageX,this.lastPageY=e.pageY}},e.prototype.onResizeEnd=function(e){this.resizing&&(this.resizing=!1,this.domHandler.removeClass(document.body,"ui-unselectable-text"))},e.prototype.bindGlobalListeners=function(){this.draggable&&this.bindDocumentDragListener(),this.resizable&&this.bindDocumentResizeListeners(),this.responsive&&this.bindDocumentResponsiveListener(),this.closeOnEscape&&this.closable&&this.bindDocumentEscapeListener()},e.prototype.unbindGlobalListeners=function(){this.unbindDocumentDragListener(),this.unbindDocumentResizeListeners(),this.unbindDocumentResponsiveListener(),this.unbindDocumentEscapeListener()},e.prototype.bindDocumentDragListener=function(){var e=this;this.zone.runOutsideAngular(function(){e.documentDragListener=e.onDrag.bind(e),window.document.addEventListener("mousemove",e.documentDragListener)})},e.prototype.unbindDocumentDragListener=function(){this.documentDragListener&&(window.document.removeEventListener("mousemove",this.documentDragListener),this.documentDragListener=null)},e.prototype.bindDocumentResizeListeners=function(){var e=this;this.zone.runOutsideAngular(function(){e.documentResizeListener=e.onResize.bind(e),e.documentResizeEndListener=e.onResizeEnd.bind(e),window.document.addEventListener("mousemove",e.documentResizeListener),window.document.addEventListener("mouseup",e.documentResizeEndListener)})},e.prototype.unbindDocumentResizeListeners=function(){this.documentResizeListener&&this.documentResizeEndListener&&(window.document.removeEventListener("mouseup",this.documentResizeListener),window.document.removeEventListener("mouseup",this.documentResizeEndListener),this.documentResizeListener=null,this.documentResizeEndListener=null)},e.prototype.bindDocumentResponsiveListener=function(){var e=this;this.zone.runOutsideAngular(function(){e.documentResponsiveListener=e.onWindowResize.bind(e),window.addEventListener("resize",e.documentResponsiveListener)})},e.prototype.unbindDocumentResponsiveListener=function(){this.documentResponsiveListener&&(window.removeEventListener("resize",this.documentResponsiveListener),this.documentResponsiveListener=null)},e.prototype.onWindowResize=function(e){var t=this.domHandler.getViewport(),n=this.domHandler.getOuterWidth(this.containerViewChild.nativeElement);t.width<=this.breakpoint?(this.preWidth||(this.preWidth=n),this.containerViewChild.nativeElement.style.left="0px",this.containerViewChild.nativeElement.style.width="100%"):(this.containerViewChild.nativeElement.style.width=this.preWidth+"px",this.positionOverlay())},e.prototype.bindDocumentEscapeListener=function(){var e=this;this.documentEscapeListener=this.renderer.listen("document","keydown",function(t){27==t.which&&parseInt(e.containerViewChild.nativeElement.style.zIndex)==u.DomHandler.zindex&&e.close(t)})},e.prototype.unbindDocumentEscapeListener=function(){this.documentEscapeListener&&(this.documentEscapeListener(),this.documentEscapeListener=null)},e.prototype.ngOnDestroy=function(){this.initialized=!1,this.disableModality(),this.unbindGlobalListeners(),this.appendTo&&this.el.nativeElement.appendChild(this.containerViewChild.nativeElement),this.unbindMaskClickListener()},e}();r([i.Input(),o("design:type",String)],l.prototype,"id",void 0),r([i.Input(),o("design:type",String)],l.prototype,"ariaLabelledBy",void 0),r([i.Input(),o("design:type",String)],l.prototype,"header",void 0),r([i.Input(),o("design:type",Boolean)],l.prototype,"draggable",void 0),r([i.Input(),o("design:type",Boolean)],l.prototype,"resizable",void 0),r([i.Input(),o("design:type",Number)],l.prototype,"minWidth",void 0),r([i.Input(),o("design:type",Number)],l.prototype,"minHeight",void 0),r([i.Input(),o("design:type",Object)],l.prototype,"width",void 0),r([i.Input(),o("design:type",Object)],l.prototype,"height",void 0),r([i.Input(),o("design:type",Number)],l.prototype,"positionLeft",void 0),r([i.Input(),o("design:type",Number)],l.prototype,"positionTop",void 0),r([i.Input(),o("design:type",Object)],l.prototype,"contentStyle",void 0),r([i.Input(),o("design:type",Boolean)],l.prototype,"modal",void 0),r([i.Input(),o("design:type",Boolean)],l.prototype,"closeOnEscape",void 0),r([i.Input(),o("design:type",Boolean)],l.prototype,"dismissableMask",void 0),r([i.Input(),o("design:type",Boolean)],l.prototype,"rtl",void 0),r([i.Input(),o("design:type",Boolean)],l.prototype,"closable",void 0),r([i.Input(),o("design:type",Boolean)],l.prototype,"responsive",void 0),r([i.Input(),o("design:type",Object)],l.prototype,"appendTo",void 0),r([i.Input(),o("design:type",Object)],l.prototype,"style",void 0),r([i.Input(),o("design:type",String)],l.prototype,"styleClass",void 0),r([i.Input(),o("design:type",Boolean)],l.prototype,"showHeader",void 0),r([i.Input(),o("design:type",Number)],l.prototype,"breakpoint",void 0),r([i.Input(),o("design:type",Boolean)],l.prototype,"blockScroll",void 0),r([i.Input(),o("design:type",Boolean)],l.prototype,"autoZIndex",void 0),r([i.Input(),o("design:type",Number)],l.prototype,"baseZIndex",void 0),r([i.ContentChildren(c.Header,{descendants:!1}),o("design:type",i.QueryList)],l.prototype,"headerFacet",void 0),r([i.ContentChildren(c.Footer,{descendants:!1}),o("design:type",i.QueryList)],l.prototype,"footerFacet",void 0),r([i.ViewChild("container"),o("design:type",i.ElementRef)],l.prototype,"containerViewChild",void 0),r([i.ViewChild("titlebar"),o("design:type",i.ElementRef)],l.prototype,"headerViewChild",void 0),r([i.ViewChild("content"),o("design:type",i.ElementRef)],l.prototype,"contentViewChild",void 0),r([i.Output(),o("design:type",i.EventEmitter)],l.prototype,"onShow",void 0),r([i.Output(),o("design:type",i.EventEmitter)],l.prototype,"onHide",void 0),r([i.Output(),o("design:type",i.EventEmitter)],l.prototype,"visibleChange",void 0),r([i.Input(),o("design:type",Boolean),o("design:paramtypes",[Boolean])],l.prototype,"visible",null),l=r([i.Component({selector:"p-dialog",template:'\n        <div #container [ngClass]="{\'ui-dialog ui-widget ui-widget-content ui-corner-all ui-shadow\':true,\'ui-dialog-rtl\':rtl,\'ui-dialog-draggable\':draggable}" [ngStyle]="style" [class]="styleClass"\n            [style.display]="visible ? \'block\' : \'none\'" [style.width.px]="width" [style.height.px]="height" [style.minWidth.px]="minWidth" (mousedown)="moveOnTop()" [@dialogState]="visible ? \'visible\' : \'hidden\'"\n            role="dialog" [attr.aria-labelledby]="ariaLabelledBy">\n            <div #titlebar class="ui-dialog-titlebar ui-widget-header ui-helper-clearfix ui-corner-top"\n                (mousedown)="initDrag($event)" (mouseup)="endDrag($event)" *ngIf="showHeader">\n                <span [attr.id]="ariaLabelledBy" class="ui-dialog-title" *ngIf="header">{{header}}</span>\n                <span [attr.id]="ariaLabelledBy" class="ui-dialog-title" *ngIf="headerFacet && headerFacet.first">\n                    <ng-content select="p-header"></ng-content>\n                </span>\n                <a *ngIf="closable" [ngClass]="{\'ui-dialog-titlebar-icon ui-dialog-titlebar-close ui-corner-all\':true}" href="#" role="button" (click)="close($event)" (mousedown)="onCloseMouseDown($event)">\n                    <span class="fa fa-fw fa-close"></span>\n                </a>\n            </div>\n            <div #content class="ui-dialog-content ui-widget-content" [ngStyle]="contentStyle">\n                <ng-content></ng-content>\n            </div>\n            <div class="ui-dialog-footer ui-widget-content" *ngIf="footerFacet && footerFacet.first">\n                <ng-content select="p-footer"></ng-content>\n            </div>\n            <div *ngIf="resizable" class="ui-resizable-handle ui-resizable-se ui-icon ui-icon-gripsmall-diagonal-se" style="z-index: 90;"\n                (mousedown)="initResize($event)"></div>\n        </div>\n    ',animations:[s.trigger("dialogState",[s.state("hidden",s.style({opacity:0})),s.state("visible",s.style({opacity:1})),s.transition("visible => hidden",s.animate("400ms ease-in")),s.transition("hidden => visible",s.animate("400ms ease-out"))])],providers:[u.DomHandler]}),o("design:paramtypes",[i.ElementRef,u.DomHandler,i.Renderer2,i.NgZone])],l),t.Dialog=l;var p=function(){function e(){}return e}();p=r([i.NgModule({imports:[a.CommonModule],exports:[l,c.SharedModule],declarations:[l]})],p),t.DialogModule=p},xIGM:function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return s});var r="undefined"!=typeof window&&window,o="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,i=void 0!==e&&e,s=r||i||o}).call(t,n("fRUx"))},xfHL:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fvGz"),o=n("JEJ4"),i=n("F1yO"),s=n("JEJ4"),a=n("JEJ4");t.INVALID_KEY_REGEX_=/[\[\].#$\/\u0000-\u001F\u007F]/,t.INVALID_PATH_REGEX_=/[\[\].#$\u0000-\u001F\u007F]/,t.MAX_LEAF_SIZE_=10485760,t.isValidKey=function(e){return"string"==typeof e&&0!==e.length&&!t.INVALID_KEY_REGEX_.test(e)},t.isValidPathString=function(e){return"string"==typeof e&&0!==e.length&&!t.INVALID_PATH_REGEX_.test(e)},t.isValidRootPathString=function(e){return e&&(e=e.replace(/^\/*\.info(\/|$)/,"/")),t.isValidPathString(e)},t.isValidPriority=function(e){return null===e||"string"==typeof e||"number"==typeof e&&!i.isInvalidJSONNumber(e)||e&&"object"==typeof e&&o.contains(e,".sv")},t.validateFirebaseDataArg=function(e,n,r,o,i){i&&void 0===r||t.validateFirebaseData(s.errorPrefix(e,n,i),r,o)},t.validateFirebaseData=function(e,n,s){var u=s instanceof r.Path?new r.ValidationPath(s,e):s;if(void 0===n)throw new Error(e+"contains undefined "+u.toErrorString());if("function"==typeof n)throw new Error(e+"contains a function "+u.toErrorString()+" with contents = "+n.toString());if(i.isInvalidJSONNumber(n))throw new Error(e+"contains "+n.toString()+" "+u.toErrorString());if("string"==typeof n&&n.length>t.MAX_LEAF_SIZE_/3&&a.stringLength(n)>t.MAX_LEAF_SIZE_)throw new Error(e+"contains a string greater than "+t.MAX_LEAF_SIZE_+" utf8 bytes "+u.toErrorString()+" ('"+n.substring(0,50)+"...')");if(n&&"object"==typeof n){var c=!1,l=!1;if(o.forEach(n,function(n,r){if(".value"===n)c=!0;else if(".priority"!==n&&".sv"!==n&&(l=!0,!t.isValidKey(n)))throw new Error(e+" contains an invalid key ("+n+") "+u.toErrorString()+'.  Keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]"');u.push(n),t.validateFirebaseData(e,r,u),u.pop()}),c&&l)throw new Error(e+' contains ".value" child '+u.toErrorString()+" in addition to actual children.")}},t.validateFirebaseMergePaths=function(e,n){var o,i;for(o=0;o<n.length;o++){i=n[o];for(var s=i.slice(),a=0;a<s.length;a++)if(".priority"===s[a]&&a===s.length-1);else if(!t.isValidKey(s[a]))throw new Error(e+"contains an invalid key ("+s[a]+") in path "+i.toString()+'. Keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]"')}n.sort(r.Path.comparePaths);var u=null;for(o=0;o<n.length;o++){if(i=n[o],null!==u&&u.contains(i))throw new Error(e+"contains a path "+u.toString()+" that is ancestor of another path "+i.toString());u=i}},t.validateFirebaseMergeDataArg=function(e,n,i,a,u){if(!u||void 0!==i){var c=s.errorPrefix(e,n,u);if(!i||"object"!=typeof i||Array.isArray(i))throw new Error(c+" must be an object containing the children to replace.");var l=[];o.forEach(i,function(e,n){var o=new r.Path(e);if(t.validateFirebaseData(c,n,a.child(o)),".priority"===o.getBack()&&!t.isValidPriority(n))throw new Error(c+"contains an invalid value for '"+o.toString()+"', which must be a valid Firebase priority (a string, finite number, server value, or null).");l.push(o)}),t.validateFirebaseMergePaths(c,l)}},t.validatePriority=function(e,n,r,o){if(!o||void 0!==r){if(i.isInvalidJSONNumber(r))throw new Error(s.errorPrefix(e,n,o)+"is "+r.toString()+", but must be a valid Firebase priority (a string, finite number, server value, or null).");if(!t.isValidPriority(r))throw new Error(s.errorPrefix(e,n,o)+"must be a valid Firebase priority (a string, finite number, server value, or null).")}},t.validateEventType=function(e,t,n,r){if(!r||void 0!==n)switch(n){case"value":case"child_added":case"child_removed":case"child_changed":case"child_moved":break;default:throw new Error(s.errorPrefix(e,t,r)+'must be a valid event type = "value", "child_added", "child_removed", "child_changed", or "child_moved".')}},t.validateKey=function(e,n,r,o){if(!(o&&void 0===r||t.isValidKey(r)))throw new Error(s.errorPrefix(e,n,o)+'was an invalid key = "'+r+'".  Firebase keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]").')},t.validatePathString=function(e,n,r,o){if(!(o&&void 0===r||t.isValidPathString(r)))throw new Error(s.errorPrefix(e,n,o)+'was an invalid path = "'+r+'". Paths must be non-empty strings and can\'t contain ".", "#", "$", "[", or "]"')},t.validateRootPathString=function(e,n,r,o){r&&(r=r.replace(/^\/*\.info(\/|$)/,"/")),t.validatePathString(e,n,r,o)},t.validateWritablePath=function(e,t){if(".info"===t.getFront())throw new Error(e+" failed = Can't modify data under /.info/")},t.validateUrl=function(e,n,r){var o=r.path.toString();if("string"!=typeof r.repoInfo.host||0===r.repoInfo.host.length||!t.isValidKey(r.repoInfo.namespace)||0!==o.length&&!t.isValidRootPathString(o))throw new Error(s.errorPrefix(e,n,!1)+'must be a valid firebase URL and the path can\'t contain ".", "#", "$", "[", or "]".')},t.validateCredential=function(e,t,n,r){if((!r||void 0!==n)&&"string"!=typeof n)throw new Error(s.errorPrefix(e,t,r)+"must be a valid credential (a string).")},t.validateBoolean=function(e,t,n,r){if((!r||void 0!==n)&&"boolean"!=typeof n)throw new Error(s.errorPrefix(e,t,r)+"must be a boolean.")},t.validateString=function(e,t,n,r){if((!r||void 0!==n)&&"string"!=typeof n)throw new Error(s.errorPrefix(e,t,r)+"must be a valid string.")},t.validateObject=function(e,t,n,r){if(!(r&&void 0===n||n&&"object"==typeof n&&null!==n))throw new Error(s.errorPrefix(e,t,r)+"must be a valid object.")},t.validateObjectContainsKey=function(e,t,n,r,i,a){if(!n||"object"!=typeof n||!o.contains(n,r)){if(i)return;throw new Error(s.errorPrefix(e,t,i)+'must contain the key "'+r+'"')}if(a){var u=o.safeGet(n,r);if("number"===a&&"number"!=typeof u||"string"===a&&"string"!=typeof u||"boolean"===a&&"boolean"!=typeof u||"function"===a&&"function"!=typeof u||"object"===a&&"object"!=typeof u&&u)throw i?new Error(s.errorPrefix(e,t,i)+'contains invalid value for key "'+r+'" (must be of type "'+a+'")'):new Error(s.errorPrefix(e,t,i)+'must contain the key "'+r+'" with type "'+a+'"')}}},xhf5:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n("XtH8"),i=n("JEJ4"),s=n("JEJ4"),a=n("JEJ4"),u=n("F1yO"),c=n("fvGz"),l=n("CIVu"),p=n("0hmO"),h=n("JEJ4"),f=n("j0qB"),d=n("JEJ4"),y=n("JEJ4"),v=n("zzcx"),m=1e3,g=3e5,_=function(e){function t(n,r,o,i,s,a){var c=e.call(this)||this;if(c.repoInfo_=n,c.onDataUpdate_=r,c.onConnectStatus_=o,c.onServerInfoUpdate_=i,c.authTokenProvider_=s,c.authOverride_=a,c.id=t.nextPersistentConnectionId_++,c.log_=u.logWrapper("p:"+c.id+":"),c.interruptReasons_={},c.listens_={},c.outstandingPuts_=[],c.outstandingPutCount_=0,c.onDisconnectRequestQueue_=[],c.connected_=!1,c.reconnectDelay_=m,c.maxReconnectDelay_=g,c.securityDebugCallback_=null,c.lastSessionId=null,c.establishConnectionTimer_=null,c.visible_=!1,c.requestCBHash_={},c.requestNumber_=0,c.realtime_=null,c.authToken_=null,c.forceTokenRefresh_=!1,c.invalidAuthTokenCount_=0,c.firstConnection_=!0,c.lastConnectionAttemptTime_=null,c.lastConnectionEstablishedTime_=null,a&&!y.isNodeSdk())throw new Error("Auth override specified in options, but not supported on non Node.js platforms");return c.scheduleConnect_(0),l.VisibilityMonitor.getInstance().on("visible",c.onVisible_,c),-1===n.host.indexOf("fblocal")&&p.OnlineMonitor.getInstance().on("online",c.onOnline_,c),c}return r(t,e),t.prototype.sendRequest=function(e,t,n){var r=++this.requestNumber_,o={r:r,a:e,b:t};this.log_(s.stringify(o)),a.assert(this.connected_,"sendRequest call when we're not connected not allowed."),this.realtime_.sendRequest(o),n&&(this.requestCBHash_[r]=n)},t.prototype.listen=function(e,t,n,r){var o=e.queryIdentifier(),i=e.path.toString();this.log_("Listen called for "+i+" "+o),this.listens_[i]=this.listens_[i]||{},a.assert(e.getQueryParams().isDefault()||!e.getQueryParams().loadsAllData(),"listen() called for non-default but complete query"),a.assert(!this.listens_[i][o],"listen() called twice for same path/queryId.");var s={onComplete:r,hashFn:t,query:e,tag:n};this.listens_[i][o]=s,this.connected_&&this.sendListen_(s)},t.prototype.sendListen_=function(e){var n=this,r=e.query,o=r.path.toString(),i=r.queryIdentifier();this.log_("Listen on "+o+" for "+i);var s={p:o};e.tag&&(s.q=r.queryObject(),s.t=e.tag),s.h=e.hashFn(),this.sendRequest("q",s,function(s){var a=s.d,u=s.s;t.warnOnListenWarnings_(a,r),(n.listens_[o]&&n.listens_[o][i])===e&&(n.log_("listen response",s),"ok"!==u&&n.removeListen_(o,i),e.onComplete&&e.onComplete(u,a))})},t.warnOnListenWarnings_=function(e,t){if(e&&"object"==typeof e&&i.contains(e,"w")){var n=i.safeGet(e,"w");if(Array.isArray(n)&&~n.indexOf("no_index")){var r='".indexOn": "'+t.getQueryParams().getIndex().toString()+'"',o=t.path.toString();u.warn("Using an unspecified index. Your data will be downloaded and filtered on the client. Consider adding "+r+" at "+o+" to your security rules for better performance.")}}},t.prototype.refreshAuthToken=function(e){this.authToken_=e,this.log_("Auth token refreshed"),this.authToken_?this.tryAuth():this.connected_&&this.sendRequest("unauth",{},function(){}),this.reduceReconnectDelayIfAdminCredential_(e)},t.prototype.reduceReconnectDelayIfAdminCredential_=function(e){(e&&40===e.length||h.isAdmin(e))&&(this.log_("Admin auth credential detected.  Reducing max reconnect time."),this.maxReconnectDelay_=3e4)},t.prototype.tryAuth=function(){var e=this;if(this.connected_&&this.authToken_){var t=this.authToken_,n=h.isValidFormat(t)?"auth":"gauth",r={cred:t};null===this.authOverride_?r.noauth=!0:"object"==typeof this.authOverride_&&(r.authvar=this.authOverride_),this.sendRequest(n,r,function(n){var r=n.s,o=n.d||"error";e.authToken_===t&&("ok"===r?e.invalidAuthTokenCount_=0:e.onAuthRevoked_(r,o))})}},t.prototype.unlisten=function(e,t){var n=e.path.toString(),r=e.queryIdentifier();this.log_("Unlisten called for "+n+" "+r),a.assert(e.getQueryParams().isDefault()||!e.getQueryParams().loadsAllData(),"unlisten() called for non-default but complete query"),this.removeListen_(n,r)&&this.connected_&&this.sendUnlisten_(n,r,e.queryObject(),t)},t.prototype.sendUnlisten_=function(e,t,n,r){this.log_("Unlisten on "+e+" for "+t);var o={p:e};r&&(o.q=n,o.t=r),this.sendRequest("n",o)},t.prototype.onDisconnectPut=function(e,t,n){this.connected_?this.sendOnDisconnect_("o",e,t,n):this.onDisconnectRequestQueue_.push({pathString:e,action:"o",data:t,onComplete:n})},t.prototype.onDisconnectMerge=function(e,t,n){this.connected_?this.sendOnDisconnect_("om",e,t,n):this.onDisconnectRequestQueue_.push({pathString:e,action:"om",data:t,onComplete:n})},t.prototype.onDisconnectCancel=function(e,t){this.connected_?this.sendOnDisconnect_("oc",e,null,t):this.onDisconnectRequestQueue_.push({pathString:e,action:"oc",data:null,onComplete:t})},t.prototype.sendOnDisconnect_=function(e,t,n,r){var o={p:t,d:n};this.log_("onDisconnect "+e,o),this.sendRequest(e,o,function(e){r&&setTimeout(function(){r(e.s,e.d)},Math.floor(0))})},t.prototype.put=function(e,t,n,r){this.putInternal("p",e,t,n,r)},t.prototype.merge=function(e,t,n,r){this.putInternal("m",e,t,n,r)},t.prototype.putInternal=function(e,t,n,r,o){var i={p:t,d:n};void 0!==o&&(i.h=o),this.outstandingPuts_.push({action:e,request:i,onComplete:r}),this.outstandingPutCount_++;var s=this.outstandingPuts_.length-1;this.connected_?this.sendPut_(s):this.log_("Buffering put: "+t)},t.prototype.sendPut_=function(e){var t=this,n=this.outstandingPuts_[e].action,r=this.outstandingPuts_[e].request,o=this.outstandingPuts_[e].onComplete;this.outstandingPuts_[e].queued=this.connected_,this.sendRequest(n,r,function(r){t.log_(n+" response",r),delete t.outstandingPuts_[e],t.outstandingPutCount_--,0===t.outstandingPutCount_&&(t.outstandingPuts_=[]),o&&o(r.s,r.d)})},t.prototype.reportStats=function(e){var t=this;if(this.connected_){var n={c:e};this.log_("reportStats",n),this.sendRequest("s",n,function(e){if("ok"!==e.s){var n=e.d;t.log_("reportStats","Error sending stats: "+n)}})}},t.prototype.onDataMessage_=function(e){if("r"in e){this.log_("from server: "+s.stringify(e));var t=e.r,n=this.requestCBHash_[t];n&&(delete this.requestCBHash_[t],n(e.b))}else{if("error"in e)throw"A server-side error has occurred: "+e.error;"a"in e&&this.onDataPush_(e.a,e.b)}},t.prototype.onDataPush_=function(e,t){this.log_("handleServerMessage",e,t),"d"===e?this.onDataUpdate_(t.p,t.d,!1,t.t):"m"===e?this.onDataUpdate_(t.p,t.d,!0,t.t):"c"===e?this.onListenRevoked_(t.p,t.q):"ac"===e?this.onAuthRevoked_(t.s,t.d):"sd"===e?this.onSecurityDebugPacket_(t):u.error("Unrecognized action received from server: "+s.stringify(e)+"\nAre you using the latest client?")},t.prototype.onReady_=function(e,t){this.log_("connection ready"),this.connected_=!0,this.lastConnectionEstablishedTime_=(new Date).getTime(),this.handleTimestamp_(e),this.lastSessionId=t,this.firstConnection_&&this.sendConnectStats_(),this.restoreState_(),this.firstConnection_=!1,this.onConnectStatus_(!0)},t.prototype.scheduleConnect_=function(e){var t=this;a.assert(!this.realtime_,"Scheduling a connect when we're already connected/ing?"),this.establishConnectionTimer_&&clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=setTimeout(function(){t.establishConnectionTimer_=null,t.establishConnection_()},Math.floor(e))},t.prototype.onVisible_=function(e){e&&!this.visible_&&this.reconnectDelay_===this.maxReconnectDelay_&&(this.log_("Window became visible.  Reducing delay."),this.reconnectDelay_=m,this.realtime_||this.scheduleConnect_(0)),this.visible_=e},t.prototype.onOnline_=function(e){e?(this.log_("Browser went online."),this.reconnectDelay_=m,this.realtime_||this.scheduleConnect_(0)):(this.log_("Browser went offline.  Killing connection."),this.realtime_&&this.realtime_.close())},t.prototype.onRealtimeDisconnect_=function(){if(this.log_("data client disconnected"),this.connected_=!1,this.realtime_=null,this.cancelSentTransactions_(),this.requestCBHash_={},this.shouldReconnect_()){if(this.visible_){if(this.lastConnectionEstablishedTime_){var e=(new Date).getTime()-this.lastConnectionEstablishedTime_;e>3e4&&(this.reconnectDelay_=m),this.lastConnectionEstablishedTime_=null}}else this.log_("Window isn't visible.  Delaying reconnect."),this.reconnectDelay_=this.maxReconnectDelay_,this.lastConnectionAttemptTime_=(new Date).getTime();var t=(new Date).getTime()-this.lastConnectionAttemptTime_,n=Math.max(0,this.reconnectDelay_-t);n=Math.random()*n,this.log_("Trying to reconnect in "+n+"ms"),this.scheduleConnect_(n),this.reconnectDelay_=Math.min(this.maxReconnectDelay_,1.3*this.reconnectDelay_)}this.onConnectStatus_(!1)},t.prototype.establishConnection_=function(){if(this.shouldReconnect_()){this.log_("Making a connection attempt"),this.lastConnectionAttemptTime_=(new Date).getTime(),this.lastConnectionEstablishedTime_=null;var e=this.onDataMessage_.bind(this),n=this.onReady_.bind(this),r=this.onRealtimeDisconnect_.bind(this),o=this.id+":"+t.nextConnectionId_++,i=this,s=this.lastSessionId,c=!1,l=null,p=function(){l?l.close():(c=!0,r())},h=function(e){a.assert(l,"sendRequest call when we're not connected not allowed."),l.sendRequest(e)};this.realtime_={close:p,sendRequest:h};var y=this.forceTokenRefresh_;this.forceTokenRefresh_=!1,this.authTokenProvider_.getToken(y).then(function(t){c?u.log("getToken() completed but was canceled"):(u.log("getToken() completed. Creating connection."),i.authToken_=t&&t.accessToken,l=new f.Connection(o,i.repoInfo_,e,n,r,function(e){u.warn(e+" ("+i.repoInfo_.toString()+")"),i.interrupt("server_kill")},s))}).then(null,function(e){i.log_("Failed to get token: "+e),c||(d.CONSTANTS.NODE_ADMIN&&u.warn(e),p())})}},t.prototype.interrupt=function(e){u.log("Interrupting connection for reason: "+e),this.interruptReasons_[e]=!0,this.realtime_?this.realtime_.close():(this.establishConnectionTimer_&&(clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=null),this.connected_&&this.onRealtimeDisconnect_())},t.prototype.resume=function(e){u.log("Resuming connection for reason: "+e),delete this.interruptReasons_[e],i.isEmpty(this.interruptReasons_)&&(this.reconnectDelay_=m,this.realtime_||this.scheduleConnect_(0))},t.prototype.handleTimestamp_=function(e){var t=e-(new Date).getTime();this.onServerInfoUpdate_({serverTimeOffset:t})},t.prototype.cancelSentTransactions_=function(){for(var e=0;e<this.outstandingPuts_.length;e++){var t=this.outstandingPuts_[e];t&&"h"in t.request&&t.queued&&(t.onComplete&&t.onComplete("disconnect"),delete this.outstandingPuts_[e],this.outstandingPutCount_--)}0===this.outstandingPutCount_&&(this.outstandingPuts_=[])},t.prototype.onListenRevoked_=function(e,t){var n;n=t?t.map(function(e){return u.ObjectToUniqueKey(e)}).join("$"):"default";var r=this.removeListen_(e,n);r&&r.onComplete&&r.onComplete("permission_denied")},t.prototype.removeListen_=function(e,t){var n,r=new c.Path(e).toString();return void 0!==this.listens_[r]?(n=this.listens_[r][t],delete this.listens_[r][t],0===i.getCount(this.listens_[r])&&delete this.listens_[r]):n=void 0,n},t.prototype.onAuthRevoked_=function(e,t){u.log("Auth token revoked: "+e+"/"+t),this.authToken_=null,this.forceTokenRefresh_=!0,this.realtime_.close(),"invalid_token"!==e&&"permission_denied"!==e||++this.invalidAuthTokenCount_>=3&&(this.reconnectDelay_=3e4,this.authTokenProvider_.notifyForInvalidToken())},t.prototype.onSecurityDebugPacket_=function(e){this.securityDebugCallback_?this.securityDebugCallback_(e):"msg"in e&&"undefined"!=typeof console&&console.log("FIREBASE: "+e.msg.replace("\n","\nFIREBASE: "))},t.prototype.restoreState_=function(){var e=this;this.tryAuth(),i.forEach(this.listens_,function(t,n){i.forEach(n,function(t,n){e.sendListen_(n)})});for(var t=0;t<this.outstandingPuts_.length;t++)this.outstandingPuts_[t]&&this.sendPut_(t);for(;this.onDisconnectRequestQueue_.length;){var n=this.onDisconnectRequestQueue_.shift();this.sendOnDisconnect_(n.action,n.pathString,n.data,n.onComplete)}},t.prototype.sendConnectStats_=function(){var e={},t="js";d.CONSTANTS.NODE_ADMIN?t="admin_node":d.CONSTANTS.NODE_CLIENT&&(t="node"),e["sdk."+t+"."+o.default.SDK_VERSION.replace(/\./g,"-")]=1,y.isMobileCordova()?e["framework.cordova"]=1:y.isReactNative()&&(e["framework.reactnative"]=1),this.reportStats(e)},t.prototype.shouldReconnect_=function(){var e=p.OnlineMonitor.getInstance().currentlyOnline();return i.isEmpty(this.interruptReasons_)&&e},t.nextPersistentConnectionId_=0,t.nextConnectionId_=0,t}(v.ServerActions);t.PersistentConnection=_},xvZM:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("9ard"),o=n("qYrH");t.forceLongPolling=function(){r.WebSocketConnection.forceDisallow(),o.BrowserPollConnection.forceAllow()},t.forceWebSockets=function(){o.BrowserPollConnection.forceDisallow()},t.isWebSocketsAvailable=function(){return r.WebSocketConnection.isAvailable()},t.setSecurityDebugCallback=function(e,t){e.repo.persistentConnection_.securityDebugCallback_=t},t.stats=function(e,t){e.repo.stats(t)},t.statsIncrementCounter=function(e,t){e.repo.statsIncrementCounter(t)},t.dataUpdateCount=function(e){return e.repo.dataUpdateCount},t.interceptServerData=function(e,t){return e.repo.interceptServerData_(t)}},y8hQ:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t,n){this.node_=e,this.fullyInitialized_=t,this.filtered_=n}return e.prototype.isFullyInitialized=function(){return this.fullyInitialized_},e.prototype.isFiltered=function(){return this.filtered_},e.prototype.isCompleteForPath=function(e){if(e.isEmpty())return this.isFullyInitialized()&&!this.filtered_;var t=e.getFront();return this.isCompleteForChild(t)},e.prototype.isCompleteForChild=function(e){return this.isFullyInitialized()&&!this.filtered_||this.node_.hasChild(e)},e.prototype.getNode=function(){return this.node_},e}();t.CacheNode=r},"z8+r":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fvGz"),o=n("/fob"),i=n("r9Yg"),s=function(){function e(){this.value_=null,this.children_=null}return e.prototype.find=function(e){if(null!=this.value_)return this.value_.getChild(e);if(e.isEmpty()||null==this.children_)return null;var t=e.getFront();if(e=e.popFront(),this.children_.contains(t)){return this.children_.get(t).find(e)}return null},e.prototype.remember=function(t,n){if(t.isEmpty())this.value_=n,this.children_=null;else if(null!==this.value_)this.value_=this.value_.updateChild(t,n);else{null==this.children_&&(this.children_=new i.CountedSet);var r=t.getFront();this.children_.contains(r)||this.children_.add(r,new e);var o=this.children_.get(r);t=t.popFront(),o.remember(t,n)}},e.prototype.forget=function(e){if(e.isEmpty())return this.value_=null,this.children_=null,!0;if(null!==this.value_){if(this.value_.isLeafNode())return!1;var t=this.value_;this.value_=null;var n=this;return t.forEachChild(o.PRIORITY_INDEX,function(e,t){n.remember(new r.Path(e),t)}),this.forget(e)}if(null!==this.children_){var i=e.getFront();if(e=e.popFront(),this.children_.contains(i)){this.children_.get(i).forget(e)&&this.children_.remove(i)}return!!this.children_.isEmpty()&&(this.children_=null,!0)}return!0},e.prototype.forEachTree=function(e,t){null!==this.value_?t(e,this.value_):this.forEachChild(function(n,o){var i=new r.Path(e.toString()+"/"+n);o.forEachTree(i,t)})},e.prototype.forEachChild=function(e){null!==this.children_&&this.children_.each(function(t,n){e(t,n)})},e}();t.SparseSnapshotTree=s},zFzr:function(e,t,n){"use strict";function r(e,t){return i.nameCompare(e.name,t.name)}function o(e,t){return i.nameCompare(e,t)}Object.defineProperty(t,"__esModule",{value:!0});var i=n("F1yO");t.NAME_ONLY_COMPARATOR=r,t.NAME_COMPARATOR=o},"zPe/":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("JEJ4"),o=n("F1yO"),i=n("opdF"),s=1e4,a=3e4,u=function(){function e(e,t){this.server_=t,this.statsToReport_={},this.statsListener_=new i.StatsListener(e);var n=s+(a-s)*Math.random();o.setTimeoutNonBlocking(this.reportStats_.bind(this),Math.floor(n))}return e.prototype.includeStat=function(e){this.statsToReport_[e]=!0},e.prototype.reportStats_=function(){var e=this,t=this.statsListener_.get(),n={},i=!1;r.forEach(t,function(t,o){o>0&&r.contains(e.statsToReport_,t)&&(n[t]=o,i=!0)}),i&&this.server_.reportStats(n),o.setTimeoutNonBlocking(this.reportStats_.bind(this),Math.floor(2*Math.random()*3e5))},e}();t.StatsReporter=u},zzcx:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){}return e.prototype.put=function(e,t,n,r){},e.prototype.merge=function(e,t,n,r){},e.prototype.refreshAuthToken=function(e){},e.prototype.onDisconnectPut=function(e,t,n){},e.prototype.onDisconnectMerge=function(e,t,n){},e.prototype.onDisconnectCancel=function(e,t){},e.prototype.reportStats=function(e){},e}();t.ServerActions=r}});