(function(){function _toArray(e){return _arrayWithHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableRest()}function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _createForOfIteratorHelper(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function _wrapNativeSuper(e){var t="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper=function(e){if(null===e||!_isNativeFunction(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return _construct(e,arguments,_getPrototypeOf(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(n,e)})(e)}function _construct(e,t,n){return(_construct=_isNativeReflectConstruct()?Reflect.construct:function(e,t,n){var i=[null];i.push.apply(i,t);var r=new(Function.bind.apply(e,i));return n&&_setPrototypeOf(r,n.prototype),r}).apply(null,arguments)}function _isNativeFunction(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArrayLimit(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=n){var i,r,a=[],o=!0,s=!1;try{for(n=n.call(e);!(o=(i=n.next()).done)&&(a.push(i.value),!t||a.length!==t);o=!0);}catch(l){s=!0,r=l}finally{try{o||null==n.return||n.return()}finally{if(s)throw r}}return a}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function _get(e,t,n){return(_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=_superPropBase(e,t);if(i){var r=Object.getOwnPropertyDescriptor(i,t);return r.get?r.get.call(n):r.value}})(e,t,n||e)}function _superPropBase(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=_getPrototypeOf(e)););return e}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _createSuper(e){var t=_isNativeReflectConstruct();return function(){var n,i=_getPrototypeOf(e);if(t){var r=_getPrototypeOf(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return _possibleConstructorReturn(this,n)}}function _possibleConstructorReturn(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?_assertThisInitialized(e):t}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"/uUt":function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("7o/Q");function r(e,t){return function(n){return n.lift(new a(e,t))}}var a=function(){function e(t,n){_classCallCheck(this,e),this.compare=t,this.keySelector=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new o(e,this.compare,this.keySelector))}}]),e}(),o=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this,e)).keySelector=r,a.hasKey=!1,"function"==typeof i&&(a.compare=i),a}return _createClass(n,[{key:"compare",value:function(e,t){return e===t}},{key:"_next",value:function(e){var t;try{var n=this.keySelector;t=n?n(e):e}catch(r){return this.destination.error(r)}var i=!1;if(this.hasKey)try{i=(0,this.compare)(this.key,t)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=t,this.destination.next(e))}}]),n}(i.a)},0:function(e,t,n){e.exports=n("zUnb")},"1G5W":function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("zx2A");function r(e){return function(t){return t.lift(new a(e))}}var a=function(){function e(t){_classCallCheck(this,e),this.notifier=t}return _createClass(e,[{key:"call",value:function(e,t){var n=new o(e),r=Object(i.c)(this.notifier,new i.a(n));return r&&!n.seenValue?(n.add(r),t.subscribe(n)):n}}]),e}(),o=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this,e)).seenValue=!1,i}return _createClass(n,[{key:"notifyNext",value:function(){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),n}(i.b)},"2QA8":function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},"2Vo4":function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("XNiG"),r=n("9ppp"),a=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this))._value=e,i}return _createClass(n,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(e){var t=_get(_getPrototypeOf(n.prototype),"_subscribe",this).call(this,e);return t&&!t.closed&&e.next(this._value),t}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new r.a;return this._value}},{key:"next",value:function(e){_get(_getPrototypeOf(n.prototype),"next",this).call(this,this._value=e)}}]),n}(i.a)},"2fFW":function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=!1,r={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){var t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else i&&console.log("RxJS: Back to a better error behavior. Thank you. <3");i=e},get useDeprecatedSynchronousErrorHandling(){return i}}},"3N8a":function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e,i)).scheduler=e,r.work=i,r.pending=!1,r}return _createClass(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=e;var n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(i,this.id,t),this}},{key:"requestAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(e.flush.bind(e,this),n)}},{key:"recycleAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}},{key:"execute",value: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))}},{key:"_execute",value:function(e,t){var n,i=!1;try{this.work(e)}catch(r){i=!0,n=!!r&&r||new Error(r)}if(i)return this.unsubscribe(),n}},{key:"_unsubscribe",value:function(){var e=this.id,t=this.scheduler,n=t.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}]),n}(function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){return _classCallCheck(this,n),t.call(this)}return _createClass(n,[{key:"schedule",value:function(e){return this}}]),n}(n("quSY").a))},"4I5i":function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=function(){function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e}()},"5+tZ":function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("lJxs"),r=n("Cfvw"),a=n("zx2A");function o(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof t?function(a){return a.pipe(o(function(n,a){return Object(r.a)(e(n,a)).pipe(Object(i.a)(function(e,i){return t(n,e,a,i)}))},n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new s(e,n))})}var s=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;_classCallCheck(this,e),this.project=t,this.concurrent=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new l(e,this.project,this.concurrent))}}]),e}(),l=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return _classCallCheck(this,n),(r=t.call(this,e)).project=i,r.concurrent=a,r.hasCompleted=!1,r.buffer=[],r.active=0,r.index=0,r}return _createClass(n,[{key:"_next",value:function(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this.active++,this._innerSub(t)}},{key:"_innerSub",value:function(e){var t=new a.a(this),n=this.destination;n.add(t);var i=Object(a.c)(e,t);i!==t&&n.add(i)}},{key:"_complete",value:function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(e){this.destination.next(e)}},{key:"notifyComplete",value:function(){var e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(a.b)},"7o/Q":function(e,t,n){"use strict";n.d(t,"a",function(){return c});var i=n("n6bG"),r=n("gRHU"),a=n("quSY"),o=n("2QA8"),s=n("2fFW"),l=n("NJ4a"),c=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a){var o;switch(_classCallCheck(this,n),(o=t.call(this)).syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,arguments.length){case 0:o.destination=r.a;break;case 1:if(!e){o.destination=r.a;break}if("object"==typeof e){e instanceof n?(o.syncErrorThrowable=e.syncErrorThrowable,o.destination=e,e.add(_assertThisInitialized(o))):(o.syncErrorThrowable=!0,o.destination=new u(_assertThisInitialized(o),e));break}default:o.syncErrorThrowable=!0,o.destination=new u(_assertThisInitialized(o),e,i,a)}return o}return _createClass(n,[{key:o.a,value:function(){return this}},{key:"next",value:function(e){this.isStopped||this._next(e)}},{key:"error",value:function(e){this.isStopped||(this.isStopped=!0,this._error(e))}},{key:"complete",value:function(){this.isStopped||(this.isStopped=!0,this._complete())}},{key:"unsubscribe",value:function(){this.closed||(this.isStopped=!0,_get(_getPrototypeOf(n.prototype),"unsubscribe",this).call(this))}},{key:"_next",value:function(e){this.destination.next(e)}},{key:"_error",value:function(e){this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.destination.complete(),this.unsubscribe()}},{key:"_unsubscribeAndRecycle",value:function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}],[{key:"create",value:function(e,t,i){var r=new n(e,t,i);return r.syncErrorThrowable=!1,r}}]),n}(a.a),u=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,a,o,s){var l,c;_classCallCheck(this,n),(l=t.call(this))._parentSubscriber=e;var u=_assertThisInitialized(l);return Object(i.a)(a)?c=a:a&&(c=a.next,o=a.error,s=a.complete,a!==r.a&&(u=Object.create(a),Object(i.a)(u.unsubscribe)&&l.add(u.unsubscribe.bind(u)),u.unsubscribe=l.unsubscribe.bind(_assertThisInitialized(l)))),l._context=u,l._next=c,l._error=o,l._complete=s,l}return _createClass(n,[{key:"next",value:function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;s.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}},{key:"error",value:function(e){if(!this.isStopped){var t=this._parentSubscriber,n=s.a.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):Object(l.a)(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;Object(l.a)(e)}}}},{key:"complete",value:function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};s.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}}},{key:"__tryOrUnsub",value:function(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),s.a.useDeprecatedSynchronousErrorHandling)throw n;Object(l.a)(n)}}},{key:"__tryOrSetError",value:function(e,t,n){if(!s.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(i){return s.a.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=i,e.syncErrorThrown=!0,!0):(Object(l.a)(i),!0)}return!1}},{key:"_unsubscribe",value:function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}]),n}(c)},"9ppp":function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}()},Cfvw:function(e,t,n){"use strict";n.d(t,"a",function(){return h});var i=n("HDdC"),r=n("SeVD"),a=n("quSY"),o=n("kJWO"),s=n("jZKg"),l=n("Lhse"),c=n("c2HN"),u=n("I55L");function h(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[o.a]}(e))return function(e,t){return new i.a(function(n){var i=new a.a;return i.add(t.schedule(function(){var r=e[o.a]();i.add(r.subscribe({next:function(e){i.add(t.schedule(function(){return n.next(e)}))},error:function(e){i.add(t.schedule(function(){return n.error(e)}))},complete:function(){i.add(t.schedule(function(){return n.complete()}))}}))})),i})}(e,t);if(Object(c.a)(e))return function(e,t){return new i.a(function(n){var i=new a.a;return i.add(t.schedule(function(){return e.then(function(e){i.add(t.schedule(function(){n.next(e),i.add(t.schedule(function(){return n.complete()}))}))},function(e){i.add(t.schedule(function(){return n.error(e)}))})})),i})}(e,t);if(Object(u.a)(e))return Object(s.a)(e,t);if(function(e){return e&&"function"==typeof e[l.a]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new i.a(function(n){var i,r=new a.a;return r.add(function(){i&&"function"==typeof i.return&&i.return()}),r.add(t.schedule(function(){i=e[l.a](),r.add(t.schedule(function(){if(!n.closed){var e,t;try{var r=i.next();e=r.value,t=r.done}catch(a){return void n.error(a)}t?n.complete():(n.next(e),this.schedule())}}))})),r})}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof i.a?e:new i.a(Object(r.a)(e))}},D0XW:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("3N8a"),r=new(n("IjjT").a)(i.a)},DH7j:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=Array.isArray||function(e){return e&&"number"==typeof e.length}},EQ5u:function(e,t,n){"use strict";n.d(t,"a",function(){return l}),n.d(t,"b",function(){return c});var i,r=n("XNiG"),a=n("HDdC"),o=(n("7o/Q"),n("quSY")),s=n("x+ZX"),l=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this)).source=e,r.subjectFactory=i,r._refCount=0,r._isComplete=!1,r}return _createClass(n,[{key:"_subscribe",value:function(e){return this.getSubject().subscribe(e)}},{key:"getSubject",value:function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new o.a).add(this.source.subscribe(new u(this.getSubject(),this))),e.closed&&(this._connection=null,e=o.a.EMPTY)),e}},{key:"refCount",value:function(){return Object(s.a)()(this)}}]),n}(a.a),c={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(i=l.prototype)._subscribe},_isComplete:{value:i._isComplete,writable:!0},getSubject:{value:i.getSubject},connect:{value:i.connect},refCount:{value:i.refCount}},u=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).connectable=i,r}return _createClass(n,[{key:"_error",value:function(e){this._unsubscribe(),_get(_getPrototypeOf(n.prototype),"_error",this).call(this,e)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),_get(_getPrototypeOf(n.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}]),n}(r.b)},EY2u:function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return a});var i=n("HDdC"),r=new i.a(function(e){return e.complete()});function a(e){return e?function(e){return new i.a(function(t){return e.schedule(function(){return t.complete()})})}(e):r}},HDdC:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i,r=n("7o/Q"),a=n("2QA8"),o=n("gRHU"),s=n("kJWO"),l=n("mCNh"),c=n("2fFW"),u=((i=function(){function e(t){_classCallCheck(this,e),this._isScalar=!1,t&&(this._subscribe=t)}return _createClass(e,[{key:"lift",value:function(t){var n=new e;return n.source=this,n.operator=t,n}},{key:"subscribe",value:function(e,t,n){var i=this.operator,s=function(e,t,n){if(e){if(e instanceof r.a)return e;if(e[a.a])return e[a.a]()}return e||t||n?new r.a(e,t,n):new r.a(o.a)}(e,t,n);if(s.add(i?i.call(s,this.source):this.source||c.a.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),c.a.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}},{key:"_trySubscribe",value:function(e){try{return this._subscribe(e)}catch(t){c.a.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){var t=e,n=t.closed,i=t.destination,a=t.isStopped;if(n||a)return!1;e=i&&i instanceof r.a?i:null}return!0}(e)?e.error(t):console.warn(t)}}},{key:"forEach",value:function(e,t){var n=this;return new(t=h(t))(function(t,i){var r;r=n.subscribe(function(t){try{e(t)}catch(n){i(n),r&&r.unsubscribe()}},i,t)})}},{key:"_subscribe",value:function(e){var t=this.source;return t&&t.subscribe(e)}},{key:s.a,value:function(){return this}},{key:"pipe",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?this:Object(l.b)(t)(this)}},{key:"toPromise",value:function(e){var t=this;return new(e=h(e))(function(e,n){var i;t.subscribe(function(e){return i=e},function(e){return n(e)},function(){return e(i)})})}}]),e}()).create=function(e){return new i(e)},i);function h(e){if(e||(e=c.a.Promise||Promise),!e)throw new Error("no Promise impl found");return e}},I55L:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}},IjjT:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=function(){var e=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.now;_classCallCheck(this,e),this.SchedulerAction=t,this.now=n}return _createClass(e,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,e).schedule(n,t)}}]),e}();return e.now=function(){return Date.now()},e}(),r=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.now;return _classCallCheck(this,n),(r=t.call(this,e,function(){return n.delegate&&n.delegate!==_assertThisInitialized(r)?n.delegate.now():a()})).actions=[],r.active=!1,r.scheduled=void 0,r}return _createClass(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;return n.delegate&&n.delegate!==this?n.delegate.schedule(e,t,i):_get(_getPrototypeOf(n.prototype),"schedule",this).call(this,e,t,i)}},{key:"flush",value:function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}}]),n}(i)},IzEk:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("7o/Q"),r=n("4I5i"),a=n("EY2u");function o(e){return function(t){return 0===e?Object(a.b)():t.lift(new s(e))}}var s=function(){function e(t){if(_classCallCheck(this,e),this.total=t,this.total<0)throw new r.a}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new l(e,this.total))}}]),e}(),l=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).total=i,r.count=0,r}return _createClass(n,[{key:"_next",value:function(e){var t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))}}]),n}(i.a)},JIr8:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("zx2A");function r(e){return function(t){var n=new a(e),i=t.lift(n);return n.caught=i}}var a=function(){function e(t){_classCallCheck(this,e),this.selector=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new o(e,this.selector,this.caught))}}]),e}(),o=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this,e)).selector=i,a.caught=r,a}return _createClass(n,[{key:"error",value:function(e){if(!this.isStopped){var t;try{t=this.selector(e,this.caught)}catch(o){return void _get(_getPrototypeOf(n.prototype),"error",this).call(this,o)}this._unsubscribeAndRecycle();var r=new i.a(this);this.add(r);var a=Object(i.c)(t,r);a!==r&&this.add(a)}}}]),n}(i.b)},Kj3r:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("7o/Q"),r=n("D0XW");function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.a;return function(n){return n.lift(new o(e,t))}}var o=function(){function e(t,n){_classCallCheck(this,e),this.dueTime=t,this.scheduler=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new s(e,this.dueTime,this.scheduler))}}]),e}(),s=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this,e)).dueTime=i,a.scheduler=r,a.debouncedSubscription=null,a.lastValue=null,a.hasValue=!1,a}return _createClass(n,[{key:"_next",value:function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(l,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var e=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}},{key:"clearDebounce",value:function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}]),n}(i.a);function l(e){e.debouncedNext()}},Kqap:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("7o/Q");function r(e,t){var n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new a(e,t,n))}}var a=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];_classCallCheck(this,e),this.accumulator=t,this.seed=n,this.hasSeed=i}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new o(e,this.accumulator,this.seed,this.hasSeed))}}]),e}(),o=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a){var o;return _classCallCheck(this,n),(o=t.call(this,e)).accumulator=i,o._seed=r,o.hasSeed=a,o.index=0,o}return _createClass(n,[{key:"seed",get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e}},{key:"_next",value:function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(i){this.destination.error(i)}this.seed=t,this.destination.next(t)}}]),n}(i.a)},LRne:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("z+Ro"),r=n("yCtX"),a=n("jZKg");function o(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=t[t.length-1];return Object(i.a)(o)?(t.pop(),Object(a.a)(t,o)):Object(r.a)(t)}},Lhse:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},NJ4a:function(e,t,n){"use strict";function i(e){setTimeout(function(){throw e},0)}n.d(t,"a",function(){return i})},SeVD:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("ngJS"),r=n("NJ4a"),a=n("Lhse"),o=n("kJWO"),s=n("I55L"),l=n("c2HN"),c=n("XoHu"),u=function(e){if(e&&"function"==typeof e[o.a])return u=e,function(e){var t=u[o.a]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if(Object(s.a)(e))return Object(i.a)(e);if(Object(l.a)(e))return n=e,function(e){return n.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,r.a),e};if(e&&"function"==typeof e[a.a])return t=e,function(e){for(var n=t[a.a]();;){var i=void 0;try{i=n.next()}catch(r){return e.error(r),e}if(i.done){e.complete();break}if(e.next(i.value),e.closed)break}return"function"==typeof n.return&&e.add(function(){n.return&&n.return()}),e};var t,n,u,h=Object(c.a)(e)?"an invalid object":"'".concat(e,"'");throw new TypeError("You provided ".concat(h," where a stream was expected. You can provide an Observable, Promise, Array, or Iterable."))}},SpAZ:function(e,t,n){"use strict";function i(e){return e}n.d(t,"a",function(){return i})},VRyK:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("HDdC"),r=n("z+Ro"),a=n("bHdf"),o=n("yCtX");function s(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var s=Number.POSITIVE_INFINITY,l=null,c=t[t.length-1];return Object(r.a)(c)?(l=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(s=t.pop())):"number"==typeof c&&(s=t.pop()),null===l&&1===t.length&&t[0]instanceof i.a?t[0]:Object(a.a)(s)(Object(o.a)(t,l))}},WMd4:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("EY2u"),r=n("LRne"),a=n("z6cu"),o=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this.kind=t,this.value=n,this.error=i,this.hasValue="N"===t}return _createClass(e,[{key:"observe",value: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()}}},{key:"do",value: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()}}},{key:"accept",value:function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return Object(r.a)(this.value);case"E":return Object(a.a)(this.error);case"C":return Object(i.b)()}throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}},{key:"createError",value:function(t){return new e("E",void 0,t)}},{key:"createComplete",value:function(){return e.completeNotification}}]),e}();return e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e}()},XNiG:function(e,t,n){"use strict";n.d(t,"b",function(){return c}),n.d(t,"a",function(){return u});var i=n("HDdC"),r=n("7o/Q"),a=n("quSY"),o=n("9ppp"),s=n("Ylt2"),l=n("2QA8"),c=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this,e)).destination=e,i}return n}(r.a),u=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.call(this)).observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return _createClass(n,[{key:l.a,value:function(){return new c(this)}},{key:"lift",value:function(e){var t=new h(this,this);return t.operator=e,t}},{key:"next",value:function(e){if(this.closed)throw new o.a;if(!this.isStopped)for(var t=this.observers,n=t.length,i=t.slice(),r=0;r<n;r++)i[r].next(e)}},{key:"error",value:function(e){if(this.closed)throw new o.a;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,i=t.slice(),r=0;r<n;r++)i[r].error(e);this.observers.length=0}},{key:"complete",value:function(){if(this.closed)throw new o.a;this.isStopped=!0;for(var e=this.observers,t=e.length,n=e.slice(),i=0;i<t;i++)n[i].complete();this.observers.length=0}},{key:"unsubscribe",value:function(){this.isStopped=!0,this.closed=!0,this.observers=null}},{key:"_trySubscribe",value:function(e){if(this.closed)throw new o.a;return _get(_getPrototypeOf(n.prototype),"_trySubscribe",this).call(this,e)}},{key:"_subscribe",value:function(e){if(this.closed)throw new o.a;return this.hasError?(e.error(this.thrownError),a.a.EMPTY):this.isStopped?(e.complete(),a.a.EMPTY):(this.observers.push(e),new s.a(this,e))}},{key:"asObservable",value:function(){var e=new i.a;return e.source=this,e}}]),n}(i.a);return e.create=function(e,t){return new h(e,t)},e}(),h=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this)).destination=e,r.source=i,r}return _createClass(n,[{key:"next",value:function(e){var t=this.destination;t&&t.next&&t.next(e)}},{key:"error",value:function(e){var t=this.destination;t&&t.error&&this.destination.error(e)}},{key:"complete",value:function(){var e=this.destination;e&&e.complete&&this.destination.complete()}},{key:"_subscribe",value:function(e){return this.source?this.source.subscribe(e):a.a.EMPTY}}]),n}(u)},XoHu:function(e,t,n){"use strict";function i(e){return null!==e&&"object"==typeof e}n.d(t,"a",function(){return i})},Ylt2:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this)).subject=e,r.subscriber=i,r.closed=!1,r}return _createClass(n,[{key:"unsubscribe",value: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)}}}}]),n}(n("quSY").a)},ZUHj:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this)).parent=e,a.outerValue=i,a.outerIndex=r,a.index=0,a}return _createClass(n,[{key:"_next",value:function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}},{key:"_error",value:function(e){this.parent.notifyError(e,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),n}(n("7o/Q").a),r=n("SeVD"),a=n("HDdC");function o(e,t,n,o){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new i(e,n,o);if(!s.closed)return t instanceof a.a?t.subscribe(s):Object(r.a)(t)(s)}},agSv:function agSv(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",function(){return StoreDevtoolsModule});var _angular_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("fXoL"),_ngrx_store__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("l7P3"),rxjs__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("EY2u"),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("HDdC"),rxjs__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("LRne"),rxjs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("VRyK"),rxjs__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("qgXg"),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("jtHE"),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("w1tV"),rxjs_operators__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("pLZG"),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("lJxs"),rxjs_operators__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("bOdf"),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("tS1D"),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("Kj3r"),rxjs_operators__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("JIr8"),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("IzEk"),rxjs_operators__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("1G5W"),rxjs_operators__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("eIep"),rxjs_operators__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("zP0r"),rxjs_operators__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("pxpQ"),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("zp1y"),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("Kqap"),StoreDevtoolsConfig=function e(){_classCallCheck(this,e),this.maxAge=!1},STORE_DEVTOOLS_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.s("@ngrx/store-devtools Options"),INITIAL_OPTIONS=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.s("@ngrx/store-devtools Initial Config");function noMonitor(){return null}var DEFAULT_NAME="NgRx Store DevTools";function createConfig(e){var t={maxAge:!1,monitor:noMonitor,actionSanitizer:void 0,stateSanitizer:void 0,name:DEFAULT_NAME,serialize:!1,logOnly:!1,features:{pause:!0,lock:!0,persist:!0,export:!0,import:"custom",jump:!0,skip:!0,reorder:!0,dispatch:!0,test:!0}},n="function"==typeof e?e():e,i=Object.assign({},t,{features:n.features||!!n.logOnly&&{pause:!0,export:!0,test:!0}||t.features},n);if(i.maxAge&&i.maxAge<2)throw new Error("Devtools 'maxAge' cannot be less than 2, got ".concat(i.maxAge));return i}var PERFORM_ACTION="PERFORM_ACTION",REFRESH="REFRESH",RESET="RESET",ROLLBACK="ROLLBACK",COMMIT="COMMIT",SWEEP="SWEEP",TOGGLE_ACTION="TOGGLE_ACTION",SET_ACTIONS_ACTIVE="SET_ACTIONS_ACTIVE",JUMP_TO_STATE="JUMP_TO_STATE",JUMP_TO_ACTION="JUMP_TO_ACTION",IMPORT_STATE="IMPORT_STATE",LOCK_CHANGES="LOCK_CHANGES",PAUSE_RECORDING="PAUSE_RECORDING",PerformAction=function e(t,n){if(_classCallCheck(this,e),this.action=t,this.timestamp=n,this.type=PERFORM_ACTION,void 0===t.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?')},Refresh=function e(){_classCallCheck(this,e),this.type=REFRESH},Reset=function e(t){_classCallCheck(this,e),this.timestamp=t,this.type=RESET},Rollback=function e(t){_classCallCheck(this,e),this.timestamp=t,this.type=ROLLBACK},Commit=function e(t){_classCallCheck(this,e),this.timestamp=t,this.type=COMMIT},Sweep=function e(){_classCallCheck(this,e),this.type=SWEEP},ToggleAction=function e(t){_classCallCheck(this,e),this.id=t,this.type=TOGGLE_ACTION},SetActionsActive=function e(t,n){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];_classCallCheck(this,e),this.start=t,this.end=n,this.active=i,this.type=SET_ACTIONS_ACTIVE},JumpToState=function e(t){_classCallCheck(this,e),this.index=t,this.type=JUMP_TO_STATE},JumpToAction=function e(t){_classCallCheck(this,e),this.actionId=t,this.type=JUMP_TO_ACTION},ImportState=function e(t){_classCallCheck(this,e),this.nextLiftedState=t,this.type=IMPORT_STATE},LockChanges=function e(t){_classCallCheck(this,e),this.status=t,this.type=LOCK_CHANGES},PauseRecording=function e(t){_classCallCheck(this,e),this.status=t,this.type=PAUSE_RECORDING},DevtoolsDispatcher=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.b);return e.\u0275fac=function(t){return \u0275DevtoolsDispatcher_BaseFactory(t||e)},e.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Kb({token:e,factory:e.\u0275fac}),e}(),\u0275DevtoolsDispatcher_BaseFactory=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Wb(DevtoolsDispatcher);function difference(e,t){return e.filter(function(e){return t.indexOf(e)<0})}function unliftState(e){var t=e.computedStates,n=e.currentStateIndex;return n>=t.length?t[t.length-1].state:t[n].state}function unliftAction(e){return e.actionsById[e.nextActionId-1]}function liftAction(e){return new PerformAction(e,+Date.now())}function sanitizeActions(e,t){return Object.keys(t).reduce(function(n,i){var r=Number(i);return n[r]=sanitizeAction(e,t[r],r),n},{})}function sanitizeAction(e,t,n){return Object.assign(Object.assign({},t),{action:e(t.action,n)})}function sanitizeStates(e,t){return t.map(function(t,n){return{state:sanitizeState(e,t.state,n),error:t.error}})}function sanitizeState(e,t,n){return e(t,n)}function shouldFilterActions(e){return e.predicate||e.actionsSafelist||e.actionsBlocklist}function filterLiftedState(e,t,n,i){var r=[],a={},o=[];return e.stagedActionIds.forEach(function(s,l){var c=e.actionsById[s];c&&(l&&isActionFiltered(e.computedStates[l],c,t,n,i)||(a[s]=c,r.push(s),o.push(e.computedStates[l])))}),Object.assign(Object.assign({},e),{stagedActionIds:r,actionsById:a,computedStates:o})}function isActionFiltered(e,t,n,i,r){var a=n&&!n(e,t.action),o=i&&!t.action.type.match(i.map(function(e){return escapeRegExp(e)}).join("|")),s=r&&t.action.type.match(r.map(function(e){return escapeRegExp(e)}).join("|"));return a||o||s}function escapeRegExp(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var ExtensionActionTypes={START:"START",DISPATCH:"DISPATCH",STOP:"STOP",ACTION:"ACTION"},REDUX_DEVTOOLS_EXTENSION=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.s("@ngrx/store-devtools Redux Devtools Extension"),DevtoolsExtension=function(){var DevtoolsExtension=function(){function DevtoolsExtension(e,t,n){_classCallCheck(this,DevtoolsExtension),this.config=t,this.dispatcher=n,this.devtoolsExtension=e,this.createActionStreams()}return _createClass(DevtoolsExtension,[{key:"notify",value:function(e,t){var n=this;if(this.devtoolsExtension)if(e.type===PERFORM_ACTION){if(t.isLocked||t.isPaused)return;var i=unliftState(t);if(shouldFilterActions(this.config)&&isActionFiltered(i,e,this.config.predicate,this.config.actionsSafelist,this.config.actionsBlocklist))return;var r=this.config.stateSanitizer?sanitizeState(this.config.stateSanitizer,i,t.currentStateIndex):i,a=this.config.actionSanitizer?sanitizeAction(this.config.actionSanitizer,e,t.nextActionId):e;this.sendToReduxDevtools(function(){return n.extensionConnection.send(a,r)})}else{var o=Object.assign(Object.assign({},t),{stagedActionIds:t.stagedActionIds,actionsById:this.config.actionSanitizer?sanitizeActions(this.config.actionSanitizer,t.actionsById):t.actionsById,computedStates:this.config.stateSanitizer?sanitizeStates(this.config.stateSanitizer,t.computedStates):t.computedStates});this.sendToReduxDevtools(function(){return n.devtoolsExtension.send(null,o,n.getExtensionConfig(n.config))})}}},{key:"createChangesObservable",value:function(){var e=this;return this.devtoolsExtension?new rxjs__WEBPACK_IMPORTED_MODULE_3__.a(function(t){var n=e.devtoolsExtension.connect(e.getExtensionConfig(e.config));return e.extensionConnection=n,n.init(),n.subscribe(function(e){return t.next(e)}),n.unsubscribe}):rxjs__WEBPACK_IMPORTED_MODULE_2__.a}},{key:"createActionStreams",value:function(){var e=this,t=this.createChangesObservable().pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.a)()),n=t.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.a)(function(e){return e.type===ExtensionActionTypes.START})),i=t.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.a)(function(e){return e.type===ExtensionActionTypes.STOP})),r=t.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.a)(function(e){return e.type===ExtensionActionTypes.DISPATCH}),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.a)(function(t){return e.unwrapAction(t.payload)}),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.a)(function(t){return t.type===IMPORT_STATE?e.dispatcher.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.a)(function(e){return e.type===_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.m}),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.a)(1e3),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.a)(1e3),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.a)(function(){return t}),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.a)(function(){return Object(rxjs__WEBPACK_IMPORTED_MODULE_4__.a)(t)}),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.a)(1)):Object(rxjs__WEBPACK_IMPORTED_MODULE_4__.a)(t)})),a=t.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.a)(function(e){return e.type===ExtensionActionTypes.ACTION}),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.a)(function(t){return e.unwrapAction(t.payload)})).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.a)(i)),o=r.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.a)(i));this.start$=n.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.a)(i)),this.actions$=this.start$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_17__.a)(function(){return a})),this.liftedActions$=this.start$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_17__.a)(function(){return o}))}},{key:"unwrapAction",value:function unwrapAction(action){return"string"==typeof action?eval("(".concat(action,")")):action}},{key:"getExtensionConfig",value:function(e){var t={name:e.name,features:e.features,serialize:e.serialize};return!1!==e.maxAge&&(t.maxAge=e.maxAge),t}},{key:"sendToReduxDevtools",value:function(e){try{e()}catch(t){console.warn("@ngrx/store-devtools: something went wrong inside the redux devtools",t)}}}]),DevtoolsExtension}();return DevtoolsExtension.\u0275fac=function(e){return new(e||DevtoolsExtension)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yb(REDUX_DEVTOOLS_EXTENSION),_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yb(STORE_DEVTOOLS_CONFIG),_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yb(DevtoolsDispatcher))},DevtoolsExtension.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Kb({token:DevtoolsExtension,factory:DevtoolsExtension.\u0275fac}),DevtoolsExtension}(),INIT_ACTION={type:_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.c},RECOMPUTE="@ngrx/store-devtools/recompute",RECOMPUTE_ACTION={type:RECOMPUTE};function computeNextEntry(e,t,n,i,r){if(i)return{state:n,error:"Interrupted by an error up the chain"};var a,o=n;try{o=e(n,t)}catch(s){a=s.toString(),r.handleError(s)}return{state:o,error:a}}function recomputeStates(e,t,n,i,r,a,o,s,l){if(t>=e.length&&e.length===a.length)return e;for(var c=e.slice(0,t),u=a.length-(l?1:0),h=t;h<u;h++){var f=a[h],d=r[f].action,p=c[h-1],v=p?p.state:i,m=p?p.error:void 0,_=o.indexOf(f)>-1?p:computeNextEntry(n,d,v,m,s);c.push(_)}return l&&c.push(e[e.length-1]),c}function liftInitialState(e,t){return{monitorState:t(void 0,{}),nextActionId:1,actionsById:{0:liftAction(INIT_ACTION)},stagedActionIds:[0],skippedActionIds:[],committedState:e,currentStateIndex:0,computedStates:[],isLocked:!1,isPaused:!1}}function liftReducerWith(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return function(a){return function(o,s){var l=o||t,c=l.monitorState,u=l.actionsById,h=l.nextActionId,f=l.stagedActionIds,d=l.skippedActionIds,p=l.committedState,v=l.currentStateIndex,m=l.computedStates,_=l.isLocked,g=l.isPaused;function y(e){for(var t=e,n=f.slice(1,t+1),i=0;i<n.length;i++){if(m[i+1].error){t=i,n=f.slice(1,t+1);break}delete u[n[i]]}d=d.filter(function(e){return-1===n.indexOf(e)}),f=[0].concat(_toConsumableArray(f.slice(t+1))),p=m[t].state,m=m.slice(t),v=v>t?v-t:0}function b(){u={0:liftAction(INIT_ACTION)},h=1,f=[0],d=[],p=m[v].state,v=0,m=[]}o||(u=Object.create(u));var k=0;switch(s.type){case LOCK_CHANGES:_=s.status,k=1/0;break;case PAUSE_RECORDING:(g=s.status)?(f=[].concat(_toConsumableArray(f),[h]),u[h]=new PerformAction({type:"@ngrx/devtools/pause"},+Date.now()),h++,k=f.length-1,m=m.concat(m[m.length-1]),v===f.length-2&&v++,k=1/0):b();break;case RESET:u={0:liftAction(INIT_ACTION)},h=1,f=[0],d=[],p=e,v=0,m=[];break;case COMMIT:b();break;case ROLLBACK:u={0:liftAction(INIT_ACTION)},h=1,f=[0],d=[],v=0,m=[];break;case TOGGLE_ACTION:var C=s.id,w=d.indexOf(C);d=-1===w?[C].concat(_toConsumableArray(d)):d.filter(function(e){return e!==C}),k=f.indexOf(C);break;case SET_ACTIONS_ACTIVE:for(var O=s.start,S=s.end,x=s.active,E=[],T=O;T<S;T++)E.push(T);d=x?difference(d,E):[].concat(_toConsumableArray(d),E),k=f.indexOf(O);break;case JUMP_TO_STATE:v=s.index,k=1/0;break;case JUMP_TO_ACTION:var A=f.indexOf(s.actionId);-1!==A&&(v=A),k=1/0;break;case SWEEP:f=difference(f,d),d=[],v=Math.min(v,f.length-1);break;case PERFORM_ACTION:if(_)return o||t;if(g||o&&isActionFiltered(o.computedStates[v],s,r.predicate,r.actionsSafelist,r.actionsBlocklist)){var R=m[m.length-1];m=[].concat(_toConsumableArray(m.slice(0,-1)),[computeNextEntry(a,s.action,R.state,R.error,n)]),k=1/0;break}r.maxAge&&f.length===r.maxAge&&y(1),v===f.length-1&&v++;var D=h++;u[D]=s,k=(f=[].concat(_toConsumableArray(f),[D])).length-1;break;case IMPORT_STATE:var P=s.nextLiftedState;c=P.monitorState,u=P.actionsById,h=P.nextActionId,f=P.stagedActionIds,d=P.skippedActionIds,p=P.committedState,v=P.currentStateIndex,m=P.computedStates,_=P.isLocked,g=P.isPaused;break;case _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.c:k=0,r.maxAge&&f.length>r.maxAge&&(m=recomputeStates(m,k,a,p,u,f,d,n,g),y(f.length-r.maxAge),k=1/0);break;case _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.m:if(m.filter(function(e){return e.error}).length>0)k=0,r.maxAge&&f.length>r.maxAge&&(m=recomputeStates(m,k,a,p,u,f,d,n,g),y(f.length-r.maxAge),k=1/0);else{if(!g&&!_){v===f.length-1&&v++;var I=h++;u[I]=new PerformAction(s,+Date.now()),k=(f=[].concat(_toConsumableArray(f),[I])).length-1,m=recomputeStates(m,k,a,p,u,f,d,n,g)}m=m.map(function(e){return Object.assign(Object.assign({},e),{state:a(e.state,RECOMPUTE_ACTION)})}),v=f.length-1,r.maxAge&&f.length>r.maxAge&&y(f.length-r.maxAge),k=1/0}break;default:k=1/0}return m=recomputeStates(m,k,a,p,u,f,d,n,g),{monitorState:c=i(c,s),actionsById:u,nextActionId:h,stagedActionIds:f,skippedActionIds:d,committedState:p,currentStateIndex:v,computedStates:m,isLocked:_,isPaused:g}}}}var StoreDevtools=function(){var e=function(){function e(t,n,i,r,a,o,s,l){var c=this;_classCallCheck(this,e);var u=liftInitialState(s,l.monitor),h=liftReducerWith(s,u,o,l.monitor,l),f=Object(rxjs__WEBPACK_IMPORTED_MODULE_5__.a)(Object(rxjs__WEBPACK_IMPORTED_MODULE_5__.a)(n.asObservable().pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_18__.a)(1)),r.actions$).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.a)(liftAction)),t,r.liftedActions$).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_19__.b)(rxjs__WEBPACK_IMPORTED_MODULE_6__.b)),d=i.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.a)(h)),p=new rxjs__WEBPACK_IMPORTED_MODULE_7__.a(1),v=f.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.a)(d),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.a)(function(e,t){var n=e.state,i=_slicedToArray(t,2),a=i[0],o=(0,i[1])(n,a);return a.type!==PERFORM_ACTION&&shouldFilterActions(l)&&(o=filterLiftedState(o,l.predicate,l.actionsSafelist,l.actionsBlocklist)),r.notify(a,o),{state:o,action:a}},{state:u,action:null})).subscribe(function(e){var t=e.state,n=e.action;p.next(t),n.type===PERFORM_ACTION&&a.next(n.action)}),m=r.start$.subscribe(function(){c.refresh()}),_=p.asObservable(),g=_.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.a)(unliftState));this.extensionStartSubscription=m,this.stateSubscription=v,this.dispatcher=t,this.liftedState=_,this.state=g}return _createClass(e,[{key:"dispatch",value:function(e){this.dispatcher.next(e)}},{key:"next",value:function(e){this.dispatcher.next(e)}},{key:"error",value:function(e){}},{key:"complete",value:function(){}},{key:"performAction",value:function(e){this.dispatch(new PerformAction(e,+Date.now()))}},{key:"refresh",value:function(){this.dispatch(new Refresh)}},{key:"reset",value:function(){this.dispatch(new Reset(+Date.now()))}},{key:"rollback",value:function(){this.dispatch(new Rollback(+Date.now()))}},{key:"commit",value:function(){this.dispatch(new Commit(+Date.now()))}},{key:"sweep",value:function(){this.dispatch(new Sweep)}},{key:"toggleAction",value:function(e){this.dispatch(new ToggleAction(e))}},{key:"jumpToAction",value:function(e){this.dispatch(new JumpToAction(e))}},{key:"jumpToState",value:function(e){this.dispatch(new JumpToState(e))}},{key:"importState",value:function(e){this.dispatch(new ImportState(e))}},{key:"lockChanges",value:function(e){this.dispatch(new LockChanges(e))}},{key:"pauseRecording",value:function(e){this.dispatch(new PauseRecording(e))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yb(DevtoolsDispatcher),_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yb(_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.b),_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yb(_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.f),_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yb(DevtoolsExtension),_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yb(_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.g),_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yb(_angular_core__WEBPACK_IMPORTED_MODULE_0__.n),_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yb(_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.d),_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yb(STORE_DEVTOOLS_CONFIG))},e.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Kb({token:e,factory:e.\u0275fac}),e}(),IS_EXTENSION_OR_MONITOR_PRESENT=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.s("@ngrx/store-devtools Is Devtools Extension or Monitor Present");function createIsExtensionOrMonitorPresent(e,t){return Boolean(e)||t.monitor!==noMonitor}function createReduxDevtoolsExtension(){return"object"==typeof window&&void 0!==window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:null}function createStateObservable(e){return e.state}var StoreDevtoolsModule=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"instrument",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[DevtoolsExtension,DevtoolsDispatcher,StoreDevtools,{provide:INITIAL_OPTIONS,useValue:t},{provide:IS_EXTENSION_OR_MONITOR_PRESENT,deps:[REDUX_DEVTOOLS_EXTENSION,STORE_DEVTOOLS_CONFIG],useFactory:createIsExtensionOrMonitorPresent},{provide:REDUX_DEVTOOLS_EXTENSION,useFactory:createReduxDevtoolsExtension},{provide:STORE_DEVTOOLS_CONFIG,deps:[INITIAL_OPTIONS],useFactory:createConfig},{provide:_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.h,deps:[StoreDevtools],useFactory:createStateObservable},{provide:_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.e,useExisting:DevtoolsDispatcher}]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Mb({type:e}),e.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Lb({}),e}()},bHdf:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("5+tZ"),r=n("SpAZ");function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return Object(i.a)(r.a,e)}},bOdf:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("5+tZ");function r(e,t){return Object(i.a)(e,t,1)}},c2HN:function(e,t,n){"use strict";function i(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}n.d(t,"a",function(){return i})},eIep:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("lJxs"),r=n("Cfvw"),a=n("zx2A");function o(e,t){return"function"==typeof t?function(n){return n.pipe(o(function(n,a){return Object(r.a)(e(n,a)).pipe(Object(i.a)(function(e,i){return t(n,e,a,i)}))}))}:function(t){return t.lift(new s(e))}}var s=function(){function e(t){_classCallCheck(this,e),this.project=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new l(e,this.project))}}]),e}(),l=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).project=i,r.index=0,r}return _createClass(n,[{key:"_next",value:function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this._innerSub(t)}},{key:"_innerSub",value:function(e){var t=this.innerSubscription;t&&t.unsubscribe();var n=new a.a(this),i=this.destination;i.add(n),this.innerSubscription=Object(a.c)(e,n),this.innerSubscription!==n&&i.add(this.innerSubscription)}},{key:"_complete",value:function(){var e=this.innerSubscription;e&&!e.closed||_get(_getPrototypeOf(n.prototype),"_complete",this).call(this),this.unsubscribe()}},{key:"_unsubscribe",value:function(){this.innerSubscription=void 0}},{key:"notifyComplete",value:function(){this.innerSubscription=void 0,this.isStopped&&_get(_getPrototypeOf(n.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(e){this.destination.next(e)}}]),n}(a.b)},fXoL:function(e,t,n){"use strict";n.d(t,"a",function(){return rn}),n.d(t,"b",function(){return $l}),n.d(t,"c",function(){return Gl}),n.d(t,"d",function(){return Kl}),n.d(t,"e",function(){return ql}),n.d(t,"f",function(){return Kc}),n.d(t,"g",function(){return Lc}),n.d(t,"h",function(){return zs}),n.d(t,"i",function(){return uc}),n.d(t,"j",function(){return ds}),n.d(t,"k",function(){return nc}),n.d(t,"l",function(){return _s}),n.d(t,"m",function(){return Hc}),n.d(t,"n",function(){return Ci}),n.d(t,"o",function(){return xl}),n.d(t,"p",function(){return da}),n.d(t,"q",function(){return xn}),n.d(t,"r",function(){return R}),n.d(t,"s",function(){return nn}),n.d(t,"t",function(){return Ta}),n.d(t,"u",function(){return js}),n.d(t,"v",function(){return Ns}),n.d(t,"w",function(){return tc}),n.d(t,"x",function(){return $s}),n.d(t,"y",function(){return Fc}),n.d(t,"z",function(){return Js}),n.d(t,"A",function(){return Rc}),n.d(t,"B",function(){return dc}),n.d(t,"C",function(){return En}),n.d(t,"D",function(){return Jl}),n.d(t,"E",function(){return Zl}),n.d(t,"F",function(){return Tl}),n.d(t,"G",function(){return bs}),n.d(t,"H",function(){return ys}),n.d(t,"I",function(){return Ai}),n.d(t,"J",function(){return Cs}),n.d(t,"K",function(){return vi}),n.d(t,"L",function(){return Tn}),n.d(t,"M",function(){return An}),n.d(t,"N",function(){return Bc}),n.d(t,"O",function(){return Qs}),n.d(t,"P",function(){return bc}),n.d(t,"Q",function(){return an}),n.d(t,"R",function(){return ws}),n.d(t,"S",function(){return tl}),n.d(t,"T",function(){return L}),n.d(t,"U",function(){return Dc}),n.d(t,"V",function(){return Tc}),n.d(t,"W",function(){return d}),n.d(t,"X",function(){return kn}),n.d(t,"Y",function(){return Ec}),n.d(t,"Z",function(){return Yc}),n.d(t,"ab",function(){return Cc}),n.d(t,"bb",function(){return ec}),n.d(t,"cb",function(){return va}),n.d(t,"db",function(){return ts}),n.d(t,"eb",function(){return di}),n.d(t,"fb",function(){return Xn}),n.d(t,"gb",function(){return Un}),n.d(t,"hb",function(){return Vn}),n.d(t,"ib",function(){return Wn}),n.d(t,"jb",function(){return zn}),n.d(t,"kb",function(){return Hn}),n.d(t,"lb",function(){return Yn}),n.d(t,"mb",function(){return Zo}),n.d(t,"nb",function(){return zc}),n.d(t,"ob",function(){return Jo}),n.d(t,"pb",function(){return $o}),n.d(t,"qb",function(){return Bn}),n.d(t,"rb",function(){return B}),n.d(t,"sb",function(){return Na}),n.d(t,"tb",function(){return so}),n.d(t,"ub",function(){return ao}),n.d(t,"vb",function(){return oo}),n.d(t,"wb",function(){return Xo}),n.d(t,"xb",function(){return we}),n.d(t,"yb",function(){return u}),n.d(t,"zb",function(){return Nn}),n.d(t,"Ab",function(){return Ra}),n.d(t,"Bb",function(){return ge}),n.d(t,"Cb",function(){return us}),n.d(t,"Db",function(){return vr}),n.d(t,"Eb",function(){return za}),n.d(t,"Fb",function(){return Yo}),n.d(t,"Gb",function(){return To}),n.d(t,"Hb",function(){return Bl}),n.d(t,"Ib",function(){return J}),n.d(t,"Jb",function(){return ae}),n.d(t,"Kb",function(){return b}),n.d(t,"Lb",function(){return k}),n.d(t,"Mb",function(){return ne}),n.d(t,"Nb",function(){return oe}),n.d(t,"Ob",function(){return Ga}),n.d(t,"Pb",function(){return eo}),n.d(t,"Qb",function(){return io}),n.d(t,"Rb",function(){return no}),n.d(t,"Sb",function(){return to}),n.d(t,"Tb",function(){return $a}),n.d(t,"Ub",function(){return Ja}),n.d(t,"Vb",function(){return ro}),n.d(t,"Wb",function(){return Jt}),n.d(t,"Xb",function(){return Wo}),n.d(t,"Yb",function(){return bn}),n.d(t,"Zb",function(){return en}),n.d(t,"ac",function(){return Wl}),n.d(t,"bc",function(){return Qa}),n.d(t,"cc",function(){return lo}),n.d(t,"dc",function(){return Vl}),n.d(t,"ec",function(){return _t}),n.d(t,"fc",function(){return mt}),n.d(t,"gc",function(){return po}),n.d(t,"hc",function(){return bl}),n.d(t,"ic",function(){return kl}),n.d(t,"jc",function(){return Cl}),n.d(t,"kc",function(){return _o}),n.d(t,"lc",function(){return mo}),n.d(t,"mc",function(){return Xa}),n.d(t,"nc",function(){return go}),n.d(t,"oc",function(){return yo}),n.d(t,"pc",function(){return bo}),n.d(t,"qc",function(){return vl}),n.d(t,"rc",function(){return ml}),n.d(t,"sc",function(){return Nl}),n.d(t,"tc",function(){return qa}),n.d(t,"uc",function(){return Ei}),n.d(t,"vc",function(){return xi}),n.d(t,"wc",function(){return Si}),n.d(t,"xc",function(){return ze}),n.d(t,"yc",function(){return mi}),n.d(t,"zc",function(){return _i}),n.d(t,"Ac",function(){return ie}),n.d(t,"Bc",function(){return Eo}),n.d(t,"Cc",function(){return co}),n.d(t,"Dc",function(){return Ko}),n.d(t,"Ec",function(){return Ka}),n.d(t,"Fc",function(){return Uo}),n.d(t,"Gc",function(){return Bo}),n.d(t,"Hc",function(){return Vo}),n.d(t,"Ic",function(){return Ho}),n.d(t,"Jc",function(){return zo}),n.d(t,"Kc",function(){return Ul});var i=n("XNiG"),r=n("quSY"),a=n("HDdC"),o=n("VRyK"),s=n("w1tV");function l(e){for(var t in e)if(e[t]===l)return t;throw Error("Could not find renamed property on target object.")}function c(e,t){for(var n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function u(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(u).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return"".concat(e.overriddenName);if(e.name)return"".concat(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 h(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}var f=l({__forward_ref__:l});function d(e){return e.__forward_ref__=d,e.toString=function(){return u(this())},e}function p(e){return v(e)?e():e}function v(e){return"function"==typeof e&&e.hasOwnProperty(f)&&e.__forward_ref__===d}var m=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,function(e,t){return"".concat(e?"NG0".concat(e,": "):"").concat(t)}(e,i))).code=e,r}return n}(_wrapNativeSuper(Error));function _(e){return"string"==typeof e?e:null==e?"":String(e)}function g(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():_(e)}function y(e,t){var n=t?" in ".concat(t):"";throw new m("201","No provider for ".concat(g(e)," found").concat(n))}function b(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function k(e){return{providers:e.providers||[],imports:e.imports||[]}}function C(e){return w(e,x)||w(e,T)}function w(e,t){return e.hasOwnProperty(t)?e[t]:null}function O(e){return e&&(e.hasOwnProperty(E)||e.hasOwnProperty(A))?e[E]:null}var S,x=l({"\u0275prov":l}),E=l({"\u0275inj":l}),T=l({ngInjectableDef:l}),A=l({ngInjectorDef:l}),R=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function D(e){var t=S;return S=e,t}function P(e,t,n){var i=C(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&R.Optional?null:void 0!==t?t:void y(u(e),"Injector")}function I(e){return{toString:e}.toString()}var M=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),L=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({}),j="undefined"!=typeof globalThis&&globalThis,F="undefined"!=typeof window&&window,N="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,U="undefined"!=typeof global&&global,B=j||U||F||N,V={},H=[],z=[],Y=l({"\u0275cmp":l}),W=l({"\u0275dir":l}),K=l({"\u0275pipe":l}),q=l({"\u0275mod":l}),G=l({"\u0275loc":l}),Q=l({"\u0275fac":l}),X=l({__NG_ELEMENT_ID__:l}),Z=0;function J(e){return I(function(){var t={},n={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===M.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||z,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||L.Emulated,id:"c",styles:e.styles||z,_:null,setInput:null,schemas:e.schemas||null,tView:null},i=e.directives,r=e.features,a=e.pipes;return n.id+=Z++,n.inputs=re(e.inputs,t),n.outputs=re(e.outputs),r&&r.forEach(function(e){return e(n)}),n.directiveDefs=i?function(){return("function"==typeof i?i():i).map($)}:null,n.pipeDefs=a?function(){return("function"==typeof a?a():a).map(ee)}:null,n})}function $(e){return se(e)||function(e){return e[W]||null}(e)}function ee(e){return function(e){return e[K]||null}(e)}var te={};function ne(e){var t={type:e.type,bootstrap:e.bootstrap||z,declarations:e.declarations||z,imports:e.imports||z,exports:e.exports||z,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&I(function(){te[e.id]=e.type}),t}function ie(e,t){return I(function(){var n=le(e,!0);n.declarations=t.declarations||z,n.imports=t.imports||z,n.exports=t.exports||z})}function re(e,t){if(null==e)return V;var n={};for(var i in e)if(e.hasOwnProperty(i)){var r=e[i],a=r;Array.isArray(r)&&(a=r[1],r=r[0]),n[r]=i,t&&(t[r]=a)}return n}var ae=J;function oe(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function se(e){return e[Y]||null}function le(e,t){var n=e[q]||null;if(!n&&!0===t)throw new Error("Type ".concat(u(e)," does not have '\u0275mod' property."));return n}function ce(e){return Array.isArray(e)&&"object"==typeof e[1]}function ue(e){return Array.isArray(e)&&!0===e[1]}function he(e){return 0!=(8&e.flags)}function fe(e){return 2==(2&e.flags)}function de(e){return 1==(1&e.flags)}function pe(e){return null!==e.template}function ve(e,t){return e.hasOwnProperty(Q)?e[Q]:null}var me,_e=function(){function e(t,n,i){_classCallCheck(this,e),this.previousValue=t,this.currentValue=n,this.firstChange=i}return _createClass(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function ge(){return ye}function ye(e){return e.type.prototype.ngOnChanges&&(e.setInput=ke),be}function be(){var e=Ce(this),t=null==e?void 0:e.current;if(t){var n=e.previous;if(n===V)e.previous=t;else for(var i in t)n[i]=t[i];e.current=null,this.ngOnChanges(t)}}function ke(e,t,n,i){var r=Ce(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:V,current:null}),a=r.current||(r.current={}),o=r.previous,s=this.declaredInputs[n],l=o[s];a[s]=new _e(l&&l.currentValue,t,o===V),e[i]=t}function Ce(e){return e.__ngSimpleChanges__||null}function we(e){me=e}function Oe(){return void 0!==me?me:"undefined"!=typeof document?document:void 0}function Se(e){return!!e.listen}ge.ngInherit=!0;var xe={createRenderer:function(e,t){return Oe()}};function Ee(e){for(;Array.isArray(e);)e=e[0];return e}function Te(e,t){return Ee(t[e])}function Ae(e,t){return Ee(t[e.index])}function Re(e,t){return e.data[t]}function De(e,t){return e[t]}function Pe(e,t){var n=t[e];return ce(n)?n:n[0]}function Ie(e){var t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function Me(e){return 4==(4&e[2])}function Le(e){return 128==(128&e[2])}function je(e,t){return null==t?null:e[t]}function Fe(e){e[18]=0}function Ne(e,t){e[5]+=t;for(var n=e,i=e[3];null!==i&&(1===t&&1===n[5]||-1===t&&0===n[5]);)i[5]+=t,n=i,i=i[3]}var Ue={lFrame:ct(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Be(){return Ue.bindingsEnabled}function Ve(){return Ue.lFrame.lView}function He(){return Ue.lFrame.tView}function ze(e){Ue.lFrame.contextLView=e}function Ye(){for(var e=We();null!==e&&64===e.type;)e=e.parent;return e}function We(){return Ue.lFrame.currentTNode}function Ke(e,t){var n=Ue.lFrame;n.currentTNode=e,n.isParent=t}function qe(){return Ue.lFrame.isParent}function Ge(){Ue.lFrame.isParent=!1}function Qe(){return Ue.isInCheckNoChangesMode}function Xe(e){Ue.isInCheckNoChangesMode=e}function Ze(){var e=Ue.lFrame,t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Je(){return Ue.lFrame.bindingIndex}function $e(){return Ue.lFrame.bindingIndex++}function et(e){var t=Ue.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function tt(e){Ue.lFrame.currentDirectiveIndex=e}function nt(e){var t=Ue.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function it(){return Ue.lFrame.currentQueryIndex}function rt(e){Ue.lFrame.currentQueryIndex=e}function at(e){var t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function ot(e,t,n){if(n&R.SkipSelf){for(var i=t,r=e;!(null!==(i=i.parent)||n&R.Host||(i=at(r),null===i)||(r=r[15],10&i.type)););if(null===i)return!1;t=i,e=r}var a=Ue.lFrame=lt();return a.currentTNode=t,a.lView=e,!0}function st(e){var t=lt(),n=e[1];Ue.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function lt(){var e=Ue.lFrame,t=null===e?null:e.child;return null===t?ct(e):t}function ct(e){var t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function ut(){var e=Ue.lFrame;return Ue.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var ht=ut;function ft(){var e=ut();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function dt(){return Ue.lFrame.selectedIndex}function pt(e){Ue.lFrame.selectedIndex=e}function vt(){var e=Ue.lFrame;return Re(e.tView,e.selectedIndex)}function mt(){Ue.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function _t(){Ue.lFrame.currentNamespace=null}function gt(e,t){for(var n=t.directiveStart,i=t.directiveEnd;n<i;n++){var r=e.data[n].type.prototype,a=r.ngAfterContentInit,o=r.ngAfterContentChecked,s=r.ngAfterViewInit,l=r.ngAfterViewChecked,c=r.ngOnDestroy;a&&(e.contentHooks||(e.contentHooks=[])).push(-n,a),o&&((e.contentHooks||(e.contentHooks=[])).push(n,o),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,o)),s&&(e.viewHooks||(e.viewHooks=[])).push(-n,s),l&&((e.viewHooks||(e.viewHooks=[])).push(n,l),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,l)),null!=c&&(e.destroyHooks||(e.destroyHooks=[])).push(n,c)}}function yt(e,t,n){Ct(e,t,3,n)}function bt(e,t,n,i){(3&e[2])===n&&Ct(e,t,n,i)}function kt(e,t){var n=e[2];(3&n)===t&&(n&=2047,n+=1,e[2]=n)}function Ct(e,t,n,i){for(var r=null!=i?i:-1,a=t.length-1,o=0,s=void 0!==i?65535&e[18]:0;s<a;s++)if("number"==typeof t[s+1]){if(o=t[s],null!=i&&o>=i)break}else t[s]<0&&(e[18]+=65536),(o<r||-1==r)&&(wt(e,n,t,s),e[18]=(4294901760&e[18])+s+2),s++}function wt(e,t,n,i){var r=n[i]<0,a=n[i+1],o=e[r?-n[i]:n[i]];if(r){if(e[2]>>11<e[18]>>16&&(3&e[2])===t){e[2]+=2048;try{a.call(o)}finally{}}}else try{a.call(o)}finally{}}var Ot=function e(t,n,i){_classCallCheck(this,e),this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i};function St(e,t,n){for(var i=Se(e),r=0;r<n.length;){var a=n[r];if("number"==typeof a){if(0!==a)break;r++;var o=n[r++],s=n[r++],l=n[r++];i?e.setAttribute(t,s,l,o):t.setAttributeNS(o,s,l)}else{var c=a,u=n[++r];Et(c)?i&&e.setProperty(t,c,u):i?e.setAttribute(t,c,u):t.setAttribute(c,u),r++}}return r}function xt(e){return 3===e||4===e||6===e}function Et(e){return 64===e.charCodeAt(0)}function Tt(e,t){if(null===t||0===t.length);else if(null===e||0===e.length)e=t.slice();else for(var n=-1,i=0;i<t.length;i++){var r=t[i];"number"==typeof r?n=r:0===n||At(e,n,r,null,-1===n||2===n?t[++i]:null)}return e}function At(e,t,n,i,r){var a=0,o=e.length;if(-1===t)o=-1;else for(;a<e.length;){var s=e[a++];if("number"==typeof s){if(s===t){o=-1;break}if(s>t){o=a-1;break}}}for(;a<e.length;){var l=e[a];if("number"==typeof l)break;if(l===n){if(null===i)return void(null!==r&&(e[a+1]=r));if(i===e[a+1])return void(e[a+2]=r)}a++,null!==i&&a++,null!==r&&a++}-1!==o&&(e.splice(o,0,t),a=o+1),e.splice(a++,0,n),null!==i&&e.splice(a++,0,i),null!==r&&e.splice(a++,0,r)}function Rt(e){return-1!==e}function Dt(e){return 32767&e}function Pt(e,t){for(var n=e>>16,i=t;n>0;)i=i[15],n--;return i}var It=!0;function Mt(e){var t=It;return It=e,t}var Lt=0;function jt(e,t){var n=Nt(e,t);if(-1!==n)return n;var i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,Ft(i.data,e),Ft(t,null),Ft(i.blueprint,null));var r=Ut(e,t),a=e.injectorIndex;if(Rt(r))for(var o=Dt(r),s=Pt(r,t),l=s[1].data,c=0;c<8;c++)t[a+c]=s[o+c]|l[o+c];return t[a+8]=r,a}function Ft(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Nt(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Ut(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=0,i=null,r=t;null!==r;){var a=r[1],o=a.type;if(null===(i=2===o?a.declTNode:1===o?r[6]:null))return-1;if(n++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function Bt(e,t,n){!function(e,t,n){var i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(X)&&(i=n[X]),null==i&&(i=n[X]=Lt++);var r=255&i;t.data[e+(r>>5)]|=1<<r}(e,t,n)}function Vt(e,t,n){if(n&R.Optional)return e;y(t,"NodeInjector")}function Ht(e,t,n,i){if(n&R.Optional&&void 0===i&&(i=null),0==(n&(R.Self|R.Host))){var r=e[9],a=D(void 0);try{return r?r.get(t,i,n&R.Optional):P(t,i,n&R.Optional)}finally{D(a)}}return Vt(i,t,n)}function zt(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:R.Default,r=arguments.length>4?arguments[4]:void 0;if(null!==e){var a=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;var t=e.hasOwnProperty(X)?e[X]:void 0;return"number"==typeof t?t>=0?255&t:Wt:t}(n);if("function"==typeof a){if(!ot(t,e,i))return i&R.Host?Vt(r,n,i):Ht(t,n,i,r);try{var o=a();if(null!=o||i&R.Optional)return o;y(n)}finally{ht()}}else if("number"==typeof a){var s=null,l=Nt(e,t),c=-1,u=i&R.Host?t[16][6]:null;for((-1===l||i&R.SkipSelf)&&(-1!==(c=-1===l?Ut(e,t):t[l+8])&&Xt(i,!1)?(s=t[1],l=Dt(c),t=Pt(c,t)):l=-1);-1!==l;){var h=t[1];if(Qt(a,l,h.data)){var f=Kt(l,t,n,s,i,u);if(f!==Yt)return f}-1!==(c=t[l+8])&&Xt(i,t[1].data[l+8]===u)&&Qt(a,l,t)?(s=h,l=Dt(c),t=Pt(c,t)):l=-1}}}return Ht(t,n,i,r)}var Yt={};function Wt(){return new Zt(Ye(),Ve())}function Kt(e,t,n,i,r,a){var o=t[1],s=o.data[e+8],l=qt(s,o,n,null==i?fe(s)&&It:i!=o&&0!=(3&s.type),r&R.Host&&a===s);return null!==l?Gt(t,o,l,s):Yt}function qt(e,t,n,i,r){for(var a=e.providerIndexes,o=t.data,s=1048575&a,l=e.directiveStart,c=a>>20,u=r?s+c:e.directiveEnd,h=i?s:s+c;h<u;h++){var f=o[h];if(h<l&&n===f||h>=l&&f.type===n)return h}if(r){var d=o[l];if(d&&pe(d)&&d.type===n)return l}return null}function Gt(e,t,n,i){var r=e[n],a=t.data;if(r instanceof Ot){var o=r;o.resolving&&function(e,t){throw new m("200","Circular dependency in DI detected for ".concat(e))}(g(a[n]));var s=Mt(o.canSeeViewProviders);o.resolving=!0;var l=o.injectImpl?D(o.injectImpl):null;ot(e,i,R.Default);try{r=e[n]=o.factory(void 0,a,e,i),t.firstCreatePass&&n>=i.directiveStart&&function(e,t,n){var i=t.type.prototype,r=i.ngOnChanges,a=i.ngOnInit,o=i.ngDoCheck;if(r){var s=ye(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s)}a&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,a),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,o))}(n,a[n],t)}finally{null!==l&&D(l),Mt(s),o.resolving=!1,ht()}}return r}function Qt(e,t,n){return!!(n[t+(e>>5)]&1<<e)}function Xt(e,t){return!(e&R.Self||e&R.Host&&t)}var Zt=function(){function e(t,n){_classCallCheck(this,e),this._tNode=t,this._lView=n}return _createClass(e,[{key:"get",value:function(e,t){return zt(this._tNode,this._lView,e,void 0,t)}}]),e}();function Jt(e){return I(function(){for(var t=e.prototype.constructor,n=t[Q]||$t(t),i=Object.prototype,r=Object.getPrototypeOf(e.prototype).constructor;r&&r!==i;){var a=r[Q]||$t(r);if(a&&a!==n)return a;r=Object.getPrototypeOf(r)}return function(e){return new e}})}function $t(e){return v(e)?function(){var t=$t(p(e));return t&&t()}:ve(e)}function en(e){return function(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;var n=e.attrs;if(n)for(var i=n.length,r=0;r<i;){var a=n[r];if(xt(a))break;if(0===a)r+=2;else if("number"==typeof a)for(r++;r<i&&"string"==typeof n[r];)r++;else{if(a===t)return n[r+1];r+=2}}return null}(Ye(),e)}function tn(e,t,n){return I(function(){var i=function(e){return function(){if(e){var t=e.apply(void 0,arguments);for(var n in t)this[n]=t[n]}}}(t);function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(this instanceof r)return i.apply(this,t),this;var a=_construct(r,t);return o.annotation=a,o;function o(e,t,n){for(var i=e.hasOwnProperty("__parameters__")?e.__parameters__:Object.defineProperty(e,"__parameters__",{value:[]}).__parameters__;i.length<=n;)i.push(null);return(i[n]=i[n]||[]).push(a),e}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=e,r.annotationCls=r,r})}var nn=function(){function e(t,n){_classCallCheck(this,e),this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=b({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}return _createClass(e,[{key:"toString",value:function(){return"InjectionToken ".concat(this._desc)}}]),e}(),rn=new nn("AnalyzeForEntryComponents"),an=Function;function on(e,t){void 0===t&&(t=e);for(var n=0;n<e.length;n++){var i=e[n];Array.isArray(i)?(t===e&&(t=e.slice(0,n)),on(i,t)):t!==e&&t.push(i)}return t}function sn(e,t){e.forEach(function(e){return Array.isArray(e)?sn(e,t):t(e)})}function ln(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function cn(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function un(e,t){for(var n=[],i=0;i<e;i++)n.push(t);return n}function hn(e,t,n){var i=dn(e,t);return i>=0?e[1|i]=n:function(e,t,n,i){var r=e.length;if(r==t)e.push(n,i);else if(1===r)e.push(i,e[0]),e[0]=n;else{for(r--,e.push(e[r-1],e[r]);r>t;)e[r]=e[r-2],r--;e[t]=n,e[t+1]=i}}(e,i=~i,t,n),i}function fn(e,t){var n=dn(e,t);if(n>=0)return e[1|n]}function dn(e,t){return function(e,t,n){for(var i=0,r=e.length>>1;r!==i;){var a=i+(r-i>>1),o=e[a<<1];if(t===o)return a<<1;o>t?r=a:i=a+1}return~(r<<1)}(e,t)}var pn,vn={},mn=/\n/gm,_n=l({provide:String,useValue:l});function gn(e){var t=pn;return pn=e,t}function yn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:R.Default;if(void 0===pn)throw new Error("inject() must be called from an injection context");return null===pn?P(e,void 0,t):pn.get(e,t&R.Optional?null:void 0,t)}function bn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:R.Default;return(S||yn)(p(e),t)}var kn=bn;function Cn(e){for(var t=[],n=0;n<e.length;n++){var i=p(e[n]);if(Array.isArray(i)){if(0===i.length)throw new Error("Arguments array must have arguments.");for(var r=void 0,a=R.Default,o=0;o<i.length;o++){var s=i[o],l=s.__NG_DI_FLAG__;"number"==typeof l?-1===l?r=s.token:a|=l:r=s}t.push(bn(r,a))}else t.push(bn(i))}return t}function wn(e,t){return e.__NG_DI_FLAG__=t,e.prototype.__NG_DI_FLAG__=t,e}var On,Sn,xn=wn(tn("Inject",function(e){return{token:e}}),-1),En=wn(tn("Optional"),8),Tn=wn(tn("Self"),2),An=wn(tn("SkipSelf"),4);function Rn(e){var t;return(null===(t=function(){if(void 0===On&&(On=null,B.trustedTypes))try{On=B.trustedTypes.createPolicy("angular",{createHTML:function(e){return e},createScript:function(e){return e},createScriptURL:function(e){return e}})}catch(t){}return On}())||void 0===t?void 0:t.createHTML(e))||e}function Dn(e){var t;return(null===(t=function(){if(void 0===Sn&&(Sn=null,B.trustedTypes))try{Sn=B.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(e){return e},createScript:function(e){return e},createScriptURL:function(e){return e}})}catch(t){}return Sn}())||void 0===t?void 0:t.createHTML(e))||e}var Pn=function(){function e(t){_classCallCheck(this,e),this.changingThisBreaksApplicationSecurity=t}return _createClass(e,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity," (see https://g.co/ng/security#xss)")}}]),e}(),In=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"getTypeName",value:function(){return"HTML"}}]),n}(Pn),Mn=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"getTypeName",value:function(){return"Style"}}]),n}(Pn),Ln=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"getTypeName",value:function(){return"Script"}}]),n}(Pn),jn=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"getTypeName",value:function(){return"URL"}}]),n}(Pn),Fn=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),n}(Pn);function Nn(e){return e instanceof Pn?e.changingThisBreaksApplicationSecurity:e}function Un(e,t){var n=Bn(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error("Required a safe ".concat(t,", got a ").concat(n," (see https://g.co/ng/security#xss)"))}return n===t}function Bn(e){return e instanceof Pn&&e.getTypeName()||null}function Vn(e){return new In(e)}function Hn(e){return new Mn(e)}function zn(e){return new Ln(e)}function Yn(e){return new jn(e)}function Wn(e){return new Fn(e)}var Kn=function(){function e(t){_classCallCheck(this,e),this.inertDocumentHelper=t}return _createClass(e,[{key:"getInertBodyElement",value:function(e){e="<body><remove></remove>"+e;try{var t=(new window.DOMParser).parseFromString(Rn(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch(n){return null}}}]),e}(),qn=function(){function e(t){if(_classCallCheck(this,e),this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);var i=this.inertDocument.createElement("body");n.appendChild(i)}}return _createClass(e,[{key:"getInertBodyElement",value:function(e){var t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=Rn(e),t;var n=this.inertDocument.createElement("body");return n.innerHTML=Rn(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}},{key:"stripCustomNsAttrs",value:function(e){for(var t=e.attributes,n=t.length-1;0<n;n--){var i=t.item(n).name;"xmlns:ns1"!==i&&0!==i.indexOf("ns1:")||e.removeAttribute(i)}for(var r=e.firstChild;r;)r.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(r),r=r.nextSibling}}]),e}(),Gn=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,Qn=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function Xn(e){return(e=String(e)).match(Gn)||e.match(Qn)?e:"unsafe:"+e}function Zn(e){var t,n={},i=_createForOfIteratorHelper(e.split(","));try{for(i.s();!(t=i.n()).done;){n[t.value]=!0}}catch(r){i.e(r)}finally{i.f()}return n}function Jn(){for(var e={},t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];for(var r=0,a=n;r<a.length;r++){var o=a[r];for(var s in o)o.hasOwnProperty(s)&&(e[s]=!0)}return e}var $n,ei=Zn("area,br,col,hr,img,wbr"),ti=Zn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),ni=Zn("rp,rt"),ii=Jn(ni,ti),ri=Jn(ei,Jn(ti,Zn("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")),Jn(ni,Zn("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")),ii),ai=Zn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),oi=Zn("srcset"),si=Jn(ai,oi,Zn("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"),Zn("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),li=Zn("script,style,template"),ci=function(){function e(){_classCallCheck(this,e),this.sanitizedSomething=!1,this.buf=[]}return _createClass(e,[{key:"sanitizeChildren",value:function(e){for(var t=e.firstChild,n=!0;t;)if(t.nodeType===Node.ELEMENT_NODE?n=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,n&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);var i=this.checkClobberedElement(t,t.nextSibling);if(i){t=i;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}},{key:"startElement",value:function(e){var t=e.nodeName.toLowerCase();if(!ri.hasOwnProperty(t))return this.sanitizedSomething=!0,!li.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);for(var n,i=e.attributes,r=0;r<i.length;r++){var a=i.item(r),o=a.name,s=o.toLowerCase();if(si.hasOwnProperty(s)){var l=a.value;ai[s]&&(l=Xn(l)),oi[s]&&(n=l,l=(n=String(n)).split(",").map(function(e){return Xn(e.trim())}).join(", ")),this.buf.push(" ",o,'="',fi(l),'"')}else this.sanitizedSomething=!0}return this.buf.push(">"),!0}},{key:"endElement",value:function(e){var t=e.nodeName.toLowerCase();ri.hasOwnProperty(t)&&!ei.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}},{key:"chars",value:function(e){this.buf.push(fi(e))}},{key:"checkClobberedElement",value:function(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(e.outerHTML));return t}}]),e}(),ui=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,hi=/([^\#-~ |!])/g;function fi(e){return e.replace(/&/g,"&amp;").replace(ui,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(hi,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function di(e,t){var n=null;try{$n=$n||function(e){var t=new qn(e);return function(){try{return!!(new window.DOMParser).parseFromString(Rn(""),"text/html")}catch(e){return!1}}()?new Kn(t):t}(e);var i=t?String(t):"";n=$n.getInertBodyElement(i);var r=5,a=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=a,a=n.innerHTML,n=$n.getInertBodyElement(i)}while(i!==a);return Rn((new ci).sanitizeChildren(pi(n)||n))}finally{if(n)for(var o=pi(n)||n;o.firstChild;)o.removeChild(o.firstChild)}}function pi(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var vi=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({});function mi(e){var t=gi();return t?Dn(t.sanitize(vi.HTML,e)||""):Un(e,"HTML")?Dn(Nn(e)):di(Oe(),_(e))}function _i(e){var t=gi();return t?t.sanitize(vi.URL,e)||"":Un(e,"URL")?Nn(e):Xn(_(e))}function gi(){var e=Ve();return e&&e[12]}function yi(e){return e.ngDebugContext}function bi(e){return e.ngOriginalError}function ki(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];e.error.apply(e,n)}var Ci=function(){function e(){_classCallCheck(this,e),this._console=console}return _createClass(e,[{key:"handleError",value:function(e){var t=this._findOriginalError(e),n=this._findContext(e),i=function(e){return e.ngErrorLogger||ki}(e);i(this._console,"ERROR",e),t&&i(this._console,"ORIGINAL ERROR",t),n&&i(this._console,"ERROR CONTEXT",n)}},{key:"_findContext",value:function(e){return e?yi(e)?yi(e):this._findContext(bi(e)):null}},{key:"_findOriginalError",value:function(e){for(var t=bi(e);t&&bi(t);)t=bi(t);return t}}]),e}();function wi(e,t){e.__ngContext__=t}var Oi=("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(B);function Si(e){return{name:"window",target:e.ownerDocument.defaultView}}function xi(e){return{name:"document",target:e.ownerDocument}}function Ei(e){return{name:"body",target:e.ownerDocument.body}}function Ti(e){return e instanceof Function?e():e}var Ai=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}({});function Ri(e,t){return(void 0)(e,t)}function Di(e){var t=e[3];return ue(t)?t[3]:t}function Pi(e){return Mi(e[13])}function Ii(e){return Mi(e[4])}function Mi(e){for(;null!==e&&!ue(e);)e=e[4];return e}function Li(e,t,n,i,r){if(null!=i){var a,o=!1;ue(i)?a=i:ce(i)&&(o=!0,i=i[0]);var s=Ee(i);0===e&&null!==n?null==r?zi(t,n,s):Hi(t,n,s,r||null,!0):1===e&&null!==n?Hi(t,n,s,r||null,!0):2===e?function(e,t,n){var i=Wi(e,t);i&&function(e,t,n,i){Se(e)?e.removeChild(t,n,i):t.removeChild(n)}(e,i,t,n)}(t,s,o):3===e&&t.destroyNode(s),null!=a&&function(e,t,n,i,r){var a=n[7];a!==Ee(n)&&Li(t,e,i,a,r);for(var o=10;o<n.length;o++){var s=n[o];$i(s[1],s,e,t,i,a)}}(t,e,a,n,r)}}function ji(e,t,n){return Se(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function Fi(e,t){var n=e[9],i=n.indexOf(t),r=t[3];1024&t[2]&&(t[2]&=-1025,Ne(r,-1)),n.splice(i,1)}function Ni(e,t){if(!(e.length<=10)){var n,i=10+t,r=e[i];if(r){var a=r[17];null!==a&&a!==e&&Fi(a,r),t>0&&(e[i-1][4]=r[4]);var o=cn(e,10+t);$i(r[1],n=r,n[11],2,null,null),n[0]=null,n[6]=null;var s=o[19];null!==s&&s.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}}function Ui(e,t){if(!(256&t[2])){var n=t[11];Se(n)&&n.destroyNode&&$i(e,t,n,3,null,null),function(e){var t=e[13];if(!t)return Bi(e[1],e);for(;t;){var n=null;if(ce(t))n=t[13];else{var i=t[10];i&&(n=i)}if(!n){for(;t&&!t[4]&&t!==e;)ce(t)&&Bi(t[1],t),t=t[3];null===t&&(t=e),ce(t)&&Bi(t[1],t),n=t&&t[4]}t=n}}(t)}}function Bi(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){var n;if(null!=e&&null!=(n=e.destroyHooks))for(var i=0;i<n.length;i+=2){var r=t[n[i]];if(!(r instanceof Ot)){var a=n[i+1];if(Array.isArray(a))for(var o=0;o<a.length;o+=2)a[o+1].call(r[a[o]]);else a.call(r)}}}(e,t),function(e,t){var n=e.cleanup,i=t[7],r=-1;if(null!==n)for(var a=0;a<n.length-1;a+=2)if("string"==typeof n[a]){var o=n[a+1],s="function"==typeof o?o(t):Ee(t[o]),l=i[r=n[a+2]],c=n[a+3];"boolean"==typeof c?s.removeEventListener(n[a],l,c):c>=0?i[r=c]():i[r=-c].unsubscribe(),a+=2}else{var u=i[r=n[a+1]];n[a].call(u)}if(null!==i){for(var h=r+1;h<i.length;h++)(0,i[h])();t[7]=null}}(e,t),1===t[1].type&&Se(t[11])&&t[11].destroy();var n=t[17];if(null!==n&&ue(t[3])){n!==t[3]&&Fi(n,t);var i=t[19];null!==i&&i.detachView(e)}}}function Vi(e,t,n){return function(e,t,n){for(var i=t;null!==i&&40&i.type;)i=(t=i).parent;if(null===i)return n[0];if(2&i.flags){var r=e.data[i.directiveStart].encapsulation;if(r===L.None||r===L.Emulated)return null}return Ae(i,n)}(e,t.parent,n)}function Hi(e,t,n,i,r){Se(e)?e.insertBefore(t,n,i,r):t.insertBefore(n,i,r)}function zi(e,t,n){Se(e)?e.appendChild(t,n):t.appendChild(n)}function Yi(e,t,n,i,r){null!==i?Hi(e,t,n,i,r):zi(e,t,n)}function Wi(e,t){return Se(e)?e.parentNode(t):t.parentNode}function Ki(e,t,n){return qi(e,t,n)}var qi=function(e,t,n){return 40&e.type?Ae(e,n):null};function Gi(e,t,n,i){var r=Vi(e,i,t),a=t[11],o=Ki(i.parent||t[6],i,t);if(null!=r)if(Array.isArray(n))for(var s=0;s<n.length;s++)Yi(a,r,n[s],o,!1);else Yi(a,r,n,o,!1)}function Qi(e,t){if(null!==t){var n=t.type;if(3&n)return Ae(t,e);if(4&n)return Zi(-1,e[t.index]);if(8&n){var i=t.child;if(null!==i)return Qi(e,i);var r=e[t.index];return ue(r)?Zi(-1,r):Ee(r)}if(32&n)return Ri(t,e)()||Ee(e[t.index]);var a=Xi(e,t);return null!==a?Array.isArray(a)?a[0]:Qi(Di(e[16]),a):Qi(e,t.next)}return null}function Xi(e,t){return null!==t?e[16][6].projection[t.projection]:null}function Zi(e,t){var n=10+e+1;if(n<t.length){var i=t[n],r=i[1].firstChild;if(null!==r)return Qi(i,r)}return t[7]}function Ji(e,t,n,i,r,a,o){for(;null!=n;){var s=i[n.index],l=n.type;if(o&&0===t&&(s&&wi(Ee(s),i),n.flags|=4),64!=(64&n.flags))if(8&l)Ji(e,t,n.child,i,r,a,!1),Li(t,e,r,s,a);else if(32&l){for(var c=Ri(n,i),u=void 0;u=c();)Li(t,e,r,u,a);Li(t,e,r,s,a)}else 16&l?er(e,t,i,n,r,a):Li(t,e,r,s,a);n=o?n.projectionNext:n.next}}function $i(e,t,n,i,r,a){Ji(n,i,e.firstChild,t,r,a,!1)}function er(e,t,n,i,r,a){var o=n[16],s=o[6].projection[i.projection];if(Array.isArray(s))for(var l=0;l<s.length;l++)Li(t,e,r,s[l],a);else Ji(e,t,s,o[3],r,a,!0)}function tr(e,t,n){Se(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function nr(e,t,n){Se(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}function ir(e,t,n){for(var i=e.length;;){var r=e.indexOf(t,n);if(-1===r)return r;if(0===r||e.charCodeAt(r-1)<=32){var a=t.length;if(r+a===i||e.charCodeAt(r+a)<=32)return r}n=r+1}}function rr(e,t,n){for(var i=0;i<e.length;){var r=e[i++];if(n&&"class"===r){if(-1!==ir((r=e[i]).toLowerCase(),t,0))return!0}else if(1===r){for(;i<e.length&&"string"==typeof(r=e[i++]);)if(r.toLowerCase()===t)return!0;return!1}}return!1}function ar(e){return 4===e.type&&"ng-template"!==e.value}function or(e,t,n){return t===(4!==e.type||n?e.value:"ng-template")}function sr(e,t,n){for(var i=4,r=e.attrs||[],a=function(e){for(var t=0;t<e.length;t++)if(xt(e[t]))return t;return e.length}(r),o=!1,s=0;s<t.length;s++){var l=t[s];if("number"!=typeof l){if(!o)if(4&i){if(i=2|1&i,""!==l&&!or(e,l,n)||""===l&&1===t.length){if(lr(i))return!1;o=!0}}else{var c=8&i?l:t[++s];if(8&i&&null!==e.attrs){if(!rr(e.attrs,c,n)){if(lr(i))return!1;o=!0}continue}var u=cr(8&i?"class":l,r,ar(e),n);if(-1===u){if(lr(i))return!1;o=!0;continue}if(""!==c){var h;h=u>a?"":r[u+1].toLowerCase();var f=8&i?h:null;if(f&&-1!==ir(f,c,0)||2&i&&c!==h){if(lr(i))return!1;o=!0}}}}else{if(!o&&!lr(i)&&!lr(l))return!1;if(o&&lr(l))continue;o=!1,i=l|1&i}}return lr(i)||o}function lr(e){return 0==(1&e)}function cr(e,t,n,i){if(null===t)return-1;var r=0;if(i||!n){for(var a=!1;r<t.length;){var o=t[r];if(o===e)return r;if(3===o||6===o)a=!0;else{if(1===o||2===o){for(var s=t[++r];"string"==typeof s;)s=t[++r];continue}if(4===o)break;if(0===o){r+=4;continue}}r+=a?1:2}return-1}return function(e,t){var n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){var i=e[n];if("number"==typeof i)return-1;if(i===t)return n;n++}return-1}(t,e)}function ur(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=0;i<t.length;i++)if(sr(e,t[i],n))return!0;return!1}function hr(e,t){e:for(var n=0;n<t.length;n++){var i=t[n];if(e.length===i.length){for(var r=0;r<e.length;r++)if(e[r]!==i[r])continue e;return!0}}return!1}function fr(e,t){return e?":not("+t.trim()+")":t}function dr(e){for(var t=e[0],n=1,i=2,r="",a=!1;n<e.length;){var o=e[n];if("string"==typeof o)if(2&i){var s=e[++n];r+="["+o+(s.length>0?'="'+s+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""===r||lr(o)||(t+=fr(a,r),r=""),i=o,a=a||!lr(i);n++}return""!==r&&(t+=fr(a,r)),t}var pr={};function vr(e){mr(He(),Ve(),dt()+e,Qe())}function mr(e,t,n,i){if(!i)if(3==(3&t[2])){var r=e.preOrderCheckHooks;null!==r&&yt(t,r,n)}else{var a=e.preOrderHooks;null!==a&&bt(t,a,0,n)}pt(n)}function _r(e,t){return e<<17|t<<2}function gr(e){return e>>17&32767}function yr(e){return 2|e}function br(e){return(131068&e)>>2}function kr(e,t){return-131069&e|t<<2}function Cr(e){return 1|e}function wr(e,t){var n=e.contentQueries;if(null!==n)for(var i=0;i<n.length;i+=2){var r=n[i],a=n[i+1];if(-1!==a){var o=e.data[a];rt(r),o.contentQueries(2,t[a],a)}}}function Or(e,t,n,i,r,a,o,s,l,c){var u=t.blueprint.slice();return u[0]=r,u[2]=140|i,Fe(u),u[3]=u[15]=e,u[8]=n,u[10]=o||e&&e[10],u[11]=s||e&&e[11],u[12]=l||e&&e[12]||null,u[9]=c||e&&e[9]||null,u[6]=a,u[16]=2==t.type?e[16]:u,u}function Sr(e,t,n,i,r){var a,o,s=e.data[t];if(null===s)s=function(e,t,n,i,r){var a=We(),o=qe(),s=e.data[t]=function(e,t,n,i,r,a){return{type:n,index:i,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:r,attrs:a,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,o?a:a&&a.parent,n,t,i,r);return null===e.firstChild&&(e.firstChild=s),null!==a&&(o?null==a.child&&null!==s.parent&&(a.child=s):null===a.next&&(a.next=s)),s}(e,t,n,i,r),Ue.lFrame.inI18n&&(s.flags|=64);else if(64&s.type){s.type=n,s.value=i,s.attrs=r;var l=(a=Ue.lFrame,o=a.currentTNode,a.isParent?o:o.parent);s.injectorIndex=null===l?-1:l.injectorIndex}return Ke(s,!0),s}function xr(e,t,n,i){if(0===n)return-1;for(var r=t.length,a=0;a<n;a++)t.push(i),e.blueprint.push(i),e.data.push(null);return r}function Er(e,t,n){st(t);try{var i=e.viewQuery;null!==i&&ia(1,i,n);var r=e.template;null!==r&&Rr(e,t,r,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&wr(e,t),e.staticViewQueries&&ia(2,e.viewQuery,n);var a=e.components;null!==a&&function(e,t){for(var n=0;n<t.length;n++)Jr(e,t[n])}(t,a)}catch(o){throw e.firstCreatePass&&(e.incompleteFirstPass=!0),o}finally{t[2]&=-5,ft()}}function Tr(e,t,n,i){var r=t[2];if(256!=(256&r)){st(t);var a=Qe();try{Fe(t),Ue.lFrame.bindingIndex=e.bindingStartIndex,null!==n&&Rr(e,t,n,2,i);var o=3==(3&r);if(!a)if(o){var s=e.preOrderCheckHooks;null!==s&&yt(t,s,null)}else{var l=e.preOrderHooks;null!==l&&bt(t,l,0,null),kt(t,0)}if(function(e){for(var t=Pi(e);null!==t;t=Ii(t))if(t[2])for(var n=t[9],i=0;i<n.length;i++){var r=n[i],a=r[3];0==(1024&r[2])&&Ne(a,1),r[2]|=1024}}(t),function(e){for(var t=Pi(e);null!==t;t=Ii(t))for(var n=10;n<t.length;n++){var i=t[n],r=i[1];Le(i)&&Tr(r,i,r.template,i[8])}}(t),null!==e.contentQueries&&wr(e,t),!a)if(o){var c=e.contentCheckHooks;null!==c&&yt(t,c)}else{var u=e.contentHooks;null!==u&&bt(t,u,1),kt(t,1)}!function(e,t){var n,i,r,a=e.hostBindingOpCodes;if(null!==a)try{for(var o=0;o<a.length;o++){var s=a[o];if(s<0)pt(~s);else{var l=s,c=a[++o],u=a[++o];n=c,i=l,r=void 0,(r=Ue.lFrame).bindingIndex=r.bindingRootIndex=n,tt(i),u(2,t[l])}}}finally{pt(-1)}}(e,t);var h=e.components;null!==h&&function(e,t){for(var n=0;n<t.length;n++)Xr(e,t[n])}(t,h);var f=e.viewQuery;if(null!==f&&ia(2,f,i),!a)if(o){var d=e.viewCheckHooks;null!==d&&yt(t,d)}else{var p=e.viewHooks;null!==p&&bt(t,p,2),kt(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),a||(t[2]&=-73),1024&t[2]&&(t[2]&=-1025,Ne(t[3],-1))}finally{ft()}}}function Ar(e,t,n,i){var r=t[10],a=!Qe(),o=Me(t);try{a&&!o&&r.begin&&r.begin(),o&&Er(e,t,i),Tr(e,t,n,i)}finally{a&&!o&&r.end&&r.end()}}function Rr(e,t,n,i,r){var a=dt(),o=2&i;try{pt(-1),o&&t.length>20&&mr(e,t,20,Qe()),n(i,r)}finally{pt(a)}}function Dr(e,t,n){if(he(t))for(var i=t.directiveEnd,r=t.directiveStart;r<i;r++){var a=e.data[r];a.contentQueries&&a.contentQueries(1,n[r],r)}}function Pr(e,t,n){Be()&&(function(e,t,n,i){var r=n.directiveStart,a=n.directiveEnd;e.firstCreatePass||jt(n,t),wi(i,t);for(var o=n.initialInputs,s=r;s<a;s++){var l=e.data[s],c=pe(l);c&&Kr(t,n,l);var u=Gt(t,e,s,n);wi(u,t),null!==o&&qr(0,s-r,u,l,0,o),c&&(Pe(n.index,t)[8]=u)}}(e,t,n,Ae(n,t)),128==(128&n.flags)&&function(e,t,n){var i=n.directiveStart,r=n.directiveEnd,a=n.index,o=Ue.lFrame.currentDirectiveIndex;try{pt(a);for(var s=i;s<r;s++){var l=e.data[s],c=t[s];tt(s),null===l.hostBindings&&0===l.hostVars&&null===l.hostAttrs||Vr(l,c)}}finally{pt(-1),tt(o)}}(e,t,n))}function Ir(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ae,i=t.localNames;if(null!==i)for(var r=t.index+1,a=0;a<i.length;a+=2){var o=i[a+1],s=-1===o?n(t,e):e[o];e[r++]=s}}function Mr(e){var t=e.tView;return null===t||t.incompleteFirstPass?e.tView=Lr(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function Lr(e,t,n,i,r,a,o,s,l,c){var u=20+i,h=u+r,f=function(e,t){for(var n=[],i=0;i<t;i++)n.push(i<e?null:pr);return n}(u,h),d="function"==typeof c?c():c;return f[1]={type:e,blueprint:f,template:n,queries:null,viewQuery:s,declTNode:t,data:f.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:h,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof a?a():a,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:l,consts:d,incompleteFirstPass:!1}}function jr(e,t,n,i){var r=aa(t);null===n?r.push(i):(r.push(n),e.firstCreatePass&&oa(e).push(i,r.length-1))}function Fr(e,t,n){for(var i in e)if(e.hasOwnProperty(i)){var r=e[i];(n=null===n?{}:n).hasOwnProperty(i)?n[i].push(t,r):n[i]=[t,r]}return n}function Nr(e,t,n,i,r,a,o,s){var l,c,u=Ae(t,n),h=t.inputs;!s&&null!=h&&(l=h[i])?(ca(e,n,l,i,r),fe(t)&&function(e,t){var n=Pe(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):3&t.type&&(i="class"===(c=i)?"className":"for"===c?"htmlFor":"formaction"===c?"formAction":"innerHtml"===c?"innerHTML":"readonly"===c?"readOnly":"tabindex"===c?"tabIndex":c,r=null!=o?o(r,t.value||"",i):r,Se(a)?a.setProperty(u,i,r):Et(i)||(u.setProperty?u.setProperty(i,r):u[i]=r))}function Ur(e,t,n,i){var r=!1;if(Be()){var a=function(e,t,n){var i=e.directiveRegistry,r=null;if(i)for(var a=0;a<i.length;a++){var o=i[a];ur(n,o.selectors,!1)&&(r||(r=[]),Bt(jt(n,t),e,o.type),pe(o)?(Hr(e,n),r.unshift(o)):r.push(o))}return r}(e,t,n),o=null===i?null:{"":-1};if(null!==a){r=!0,Yr(n,e.data.length,a.length);for(var s=0;s<a.length;s++){var l=a[s];l.providersResolver&&l.providersResolver(l)}for(var c=!1,u=!1,h=xr(e,t,a.length,null),f=0;f<a.length;f++){var d=a[f];n.mergedAttrs=Tt(n.mergedAttrs,d.hostAttrs),Wr(e,n,t,h,d),zr(h,d,o),null!==d.contentQueries&&(n.flags|=8),null===d.hostBindings&&null===d.hostAttrs&&0===d.hostVars||(n.flags|=128);var p=d.type.prototype;!c&&(p.ngOnChanges||p.ngOnInit||p.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index),c=!0),u||!p.ngOnChanges&&!p.ngDoCheck||((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index),u=!0),h++}!function(e,t){for(var n=t.directiveEnd,i=e.data,r=t.attrs,a=[],o=null,s=null,l=t.directiveStart;l<n;l++){var c=i[l],u=c.inputs,h=null===r||ar(t)?null:Gr(u,r);a.push(h),o=Fr(u,l,o),s=Fr(c.outputs,l,s)}null!==o&&(o.hasOwnProperty("class")&&(t.flags|=16),o.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=a,t.inputs=o,t.outputs=s}(e,n)}o&&function(e,t,n){if(t)for(var i=e.localNames=[],r=0;r<t.length;r+=2){var a=n[t[r+1]];if(null==a)throw new m("301","Export of name '".concat(t[r+1],"' not found!"));i.push(t[r],a)}}(n,i,o)}return n.mergedAttrs=Tt(n.mergedAttrs,n.attrs),r}function Br(e,t,n,i,r,a){var o=a.hostBindings;if(o){var s=e.hostBindingOpCodes;null===s&&(s=e.hostBindingOpCodes=[]);var l=~t.index;(function(e){for(var t=e.length;t>0;){var n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=l&&s.push(l),s.push(i,r,o)}}function Vr(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Hr(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function zr(e,t,n){if(n){if(t.exportAs)for(var i=0;i<t.exportAs.length;i++)n[t.exportAs[i]]=e;pe(t)&&(n[""]=e)}}function Yr(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function Wr(e,t,n,i,r){e.data[i]=r;var a=r.factory||(r.factory=ve(r.type)),o=new Ot(a,pe(r),null);e.blueprint[i]=o,n[i]=o,Br(e,t,0,i,xr(e,n,r.hostVars,pr),r)}function Kr(e,t,n){var i=Ae(t,e),r=Mr(n),a=e[10],o=$r(e,Or(e,r,null,n.onPush?64:16,i,t,a,a.createRenderer(i,n),null,null));e[t.index]=o}function qr(e,t,n,i,r,a){var o=a[t];if(null!==o)for(var s=i.setInput,l=0;l<o.length;){var c=o[l++],u=o[l++],h=o[l++];null!==s?i.setInput(n,h,c,u):n[u]=h}}function Gr(e,t){for(var n=null,i=0;i<t.length;){var r=t[i];if(0!==r)if(5!==r){if("number"==typeof r)break;e.hasOwnProperty(r)&&(null===n&&(n=[]),n.push(r,e[r],t[i+1])),i+=2}else i+=2;else i+=4}return n}function Qr(e,t,n,i){return new Array(e,!0,!1,t,null,0,i,n,null,null)}function Xr(e,t){var n=Pe(t,e);if(Le(n)){var i=n[1];80&n[2]?Tr(i,n,i.template,n[8]):n[5]>0&&Zr(n)}}function Zr(e){for(var t=Pi(e);null!==t;t=Ii(t))for(var n=10;n<t.length;n++){var i=t[n];if(1024&i[2]){var r=i[1];Tr(r,i,r.template,i[8])}else i[5]>0&&Zr(i)}var a=e[1].components;if(null!==a)for(var o=0;o<a.length;o++){var s=Pe(a[o],e);Le(s)&&s[5]>0&&Zr(s)}}function Jr(e,t){var n=Pe(t,e),i=n[1];!function(e,t){for(var n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(i,n),Er(i,n,n[8])}function $r(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function ea(e){for(;e;){e[2]|=64;var t=Di(e);if(0!=(512&e[2])&&!t)return e;e=t}return null}function ta(e,t,n){var i=t[10];i.begin&&i.begin();try{Tr(e,t,e.template,n)}catch(r){throw la(t,r),r}finally{i.end&&i.end()}}function na(e){!function(e){for(var t=0;t<e.components.length;t++){var n=e.components[t],i=Ie(n),r=i[1];Ar(r,i,r.template,n)}}(e[8])}function ia(e,t,n){rt(0),t(e,n)}var ra=Promise.resolve(null);function aa(e){return e[7]||(e[7]=[])}function oa(e){return e.cleanup||(e.cleanup=[])}function sa(e,t,n){return(null===e||pe(e))&&(n=function(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(n[t.index])),n[11]}function la(e,t){var n=e[9],i=n?n.get(Ci,null):null;i&&i.handleError(t)}function ca(e,t,n,i,r){for(var a=0;a<n.length;){var o=n[a++],s=n[a++],l=t[o],c=e.data[o];null!==c.setInput?c.setInput(l,r,i,s):l[s]=r}}function ua(e,t,n){var i=Te(t,e);!function(e,t,n){Se(e)?e.setValue(t,n):t.textContent=n}(e[11],i,n)}function ha(e,t,n){var i=n?e.styles:null,r=n?e.classes:null,a=0;if(null!==t)for(var o=0;o<t.length;o++){var s=t[o];"number"==typeof s?a=s:1==a?r=h(r,s):2==a&&(i=h(i,s+": "+t[++o]+";"))}n?e.styles=i:e.stylesWithoutHost=i,n?e.classes=r:e.classesWithoutHost=r}var fa,da=new nn("INJECTOR",-1),pa=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:vn;if(t===vn){var n=new Error("NullInjectorError: No provider for ".concat(u(e),"!"));throw n.name="NullInjectorError",n}return t}}]),e}(),va=new nn("Set Injector scope."),ma={},_a={},ga=[];function ya(){return void 0===fa&&(fa=new pa),fa}function ba(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return new ka(e,n,t||ya(),i)}var ka=function(){function e(t,n,i){var r=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;_classCallCheck(this,e),this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var o=[];n&&sn(n,function(e){return r.processProvider(e,t,n)}),sn([t],function(e){return r.processInjectorType(e,[],o)}),this.records.set(da,Oa(void 0,this));var s=this.records.get(va);this.scope=null!=s?s.value:null,this.source=a||("object"==typeof t?null:u(t))}return _createClass(e,[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(e){return e.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:vn,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:R.Default;this.assertNotDestroyed();var i,r=gn(this);try{if(!(n&R.SkipSelf)){var a=this.records.get(e);if(void 0===a){var o=("function"==typeof(i=e)||"object"==typeof i&&i instanceof nn)&&C(e);a=o&&this.injectableDefInScope(o)?Oa(Ca(e),ma):null,this.records.set(e,a)}if(null!=a)return this.hydrate(e,a)}return(n&R.Self?ya():this.parent).get(e,t=n&R.Optional&&t===vn?null:t)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(u(e)),r)throw s;return function(e,t,n,i){var r=e.ngTempTokenPath;throw t.__source&&r.unshift(t.__source),e.message=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var r=u(t);if(Array.isArray(t))r=t.map(u).join(" -> ");else if("object"==typeof t){var a=[];for(var o in t)if(t.hasOwnProperty(o)){var s=t[o];a.push(o+":"+("string"==typeof s?JSON.stringify(s):u(s)))}r="{".concat(a.join(", "),"}")}return"".concat(n).concat(i?"("+i+")":"","[").concat(r,"]: ").concat(e.replace(mn,"\n  "))}("\n"+e.message,r,"R3InjectorError",i),e.ngTokenPath=r,e.ngTempTokenPath=null,e}(s,e,0,this.source)}throw s}finally{gn(r)}}},{key:"_resolveInjectorDefTypes",value:function(){var e=this;this.injectorDefTypes.forEach(function(t){return e.get(t)})}},{key:"toString",value:function(){var e=[];return this.records.forEach(function(t,n){return e.push(u(n))}),"R3Injector[".concat(e.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(e,t,n){var i=this;if(!(e=p(e)))return!1;var r=O(e),a=null==r&&e.ngModule||void 0,o=void 0===a?e:a,s=-1!==n.indexOf(o);if(void 0!==a&&(r=O(a)),null==r)return!1;if(null!=r.imports&&!s){var l;n.push(o);try{sn(r.imports,function(e){i.processInjectorType(e,t,n)&&(void 0===l&&(l=[]),l.push(e))})}finally{}if(void 0!==l)for(var c=function(e){var t=l[e],n=t.ngModule,r=t.providers;sn(r,function(e){return i.processProvider(e,n,r||ga)})},u=0;u<l.length;u++)c(u)}this.injectorDefTypes.add(o);var h=ve(o)||function(){return new o};this.records.set(o,Oa(h,ma));var f=r.providers;if(null!=f&&!s){var d=e;sn(f,function(e){return i.processProvider(e,d,f)})}return void 0!==a&&void 0!==e.providers}},{key:"processProvider",value:function(e,t,n){var i=xa(e=p(e))?e:p(e&&e.provide),r=function(e,t,n){return Sa(e)?Oa(void 0,e.useValue):Oa(wa(e),ma)}(e);if(xa(e)||!0!==e.multi)this.records.get(i);else{var a=this.records.get(i);a||((a=Oa(void 0,ma,!0)).factory=function(){return Cn(a.multi)},this.records.set(i,a)),i=e,a.multi.push(e)}this.records.set(i,r)}},{key:"hydrate",value:function(e,t){var n;return t.value===ma&&(t.value=_a,t.value=t.factory()),"object"==typeof t.value&&t.value&&null!==(n=t.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(t.value),t.value}},{key:"injectableDefInScope",value:function(e){return!!e.providedIn&&("string"==typeof e.providedIn?"any"===e.providedIn||e.providedIn===this.scope:this.injectorDefTypes.has(e.providedIn))}}]),e}();function Ca(e){var t=C(e),n=null!==t?t.factory:ve(e);if(null!==n)return n;if(e instanceof nn)throw new Error("Token ".concat(u(e)," is missing a \u0275prov definition."));if(e instanceof Function)return function(e){var t=e.length;if(t>0){var n=un(t,"?");throw new Error("Can't resolve all parameters for ".concat(u(e),": (").concat(n.join(", "),")."))}var i=function(e){var t=e&&(e[x]||e[T]);if(t){var n=function(e){if(e.hasOwnProperty("name"))return e.name;var t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(n,'" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "').concat(n,'" class.')),t}return null}(e);return null!==i?function(){return i.factory(e)}:function(){return new e}}(e);throw new Error("unreachable")}function wa(e,t,n){var i,r;if(xa(e)){var a=p(e);return ve(a)||Ca(a)}if(Sa(e))i=function(){return p(e.useValue)};else if((r=e)&&r.useFactory)i=function(){return e.useFactory.apply(e,_toConsumableArray(Cn(e.deps||[])))};else if(function(e){return!(!e||!e.useExisting)}(e))i=function(){return bn(p(e.useExisting))};else{var o=p(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return ve(o)||Ca(o);i=function(){return _construct(o,_toConsumableArray(Cn(e.deps)))}}return i}function Oa(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:t,multi:n?[]:void 0}}function Sa(e){return null!==e&&"object"==typeof e&&_n in e}function xa(e){return"function"==typeof e}var Ea=function(e,t,n){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0,r=ba(e,t,n,i);return r._resolveInjectorDefTypes(),r}({name:n},t,e,n)},Ta=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"create",value:function(e,t){return Array.isArray(e)?Ea(e,t,""):Ea(e.providers,e.parent,e.name||"")}}]),e}();return e.THROW_IF_NOT_FOUND=vn,e.NULL=new pa,e.\u0275prov=b({token:e,providedIn:"any",factory:function(){return bn(da)}}),e.__NG_ELEMENT_ID__=-1,e}();function Aa(e,t){gt(Ie(e)[1],Ye())}function Ra(e){for(var t=Object.getPrototypeOf(e.type.prototype).constructor,n=!0,i=[e];t;){var r=void 0;if(pe(e))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");r=t.\u0275dir}if(r){if(n){i.push(r);var a=e;a.inputs=Da(e.inputs),a.declaredInputs=Da(e.declaredInputs),a.outputs=Da(e.outputs);var o=r.hostBindings;o&&Ma(e,o);var s=r.viewQuery,l=r.contentQueries;if(s&&Pa(e,s),l&&Ia(e,l),c(e.inputs,r.inputs),c(e.declaredInputs,r.declaredInputs),c(e.outputs,r.outputs),pe(r)&&r.data.animation){var u=e.data;u.animation=(u.animation||[]).concat(r.data.animation)}}var h=r.features;if(h)for(var f=0;f<h.length;f++){var d=h[f];d&&d.ngInherit&&d(e),d===Ra&&(n=!1)}}t=Object.getPrototypeOf(t)}!function(e){for(var t=0,n=null,i=e.length-1;i>=0;i--){var r=e[i];r.hostVars=t+=r.hostVars,r.hostAttrs=Tt(r.hostAttrs,n=Tt(n,r.hostAttrs))}}(i)}function Da(e){return e===V?{}:e===z?[]:e}function Pa(e,t){var n=e.viewQuery;e.viewQuery=n?function(e,i){t(e,i),n(e,i)}:t}function Ia(e,t){var n=e.contentQueries;e.contentQueries=n?function(e,i,r){t(e,i,r),n(e,i,r)}:t}function Ma(e,t){var n=e.hostBindings;e.hostBindings=n?function(e,i){t(e,i),n(e,i)}:t}var La=null;function ja(){if(!La){var e=B.Symbol;if(e&&e.iterator)La=e.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),n=0;n<t.length;++n){var i=t[n];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(La=i)}}return La}var Fa=function(){function e(t){_classCallCheck(this,e),this.wrapped=t}return _createClass(e,null,[{key:"wrap",value:function(t){return new e(t)}},{key:"unwrap",value:function(t){return e.isWrapped(t)?t.wrapped:t}},{key:"isWrapped",value:function(t){return t instanceof e}}]),e}();function Na(e){return!!Ua(e)&&(Array.isArray(e)||!(e instanceof Map)&&ja()in e)}function Ua(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Ba(e,t,n){return e[t]=n}function Va(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function Ha(e,t,n,i){var r=Va(e,t,n);return Va(e,t+1,i)||r}function za(e,t,n,i){var r=Ve();return Va(r,$e(),t)&&(He(),function(e,t,n,i,r,a){var o=Ae(e,t);!function(e,t,n,i,r,a,o){if(null==a)Se(e)?e.removeAttribute(t,r,n):t.removeAttribute(r);else{var s=null==o?_(a):o(a,i||"",r);Se(e)?e.setAttribute(t,r,s,n):n?t.setAttributeNS(n,r,s):t.setAttribute(r,s)}}(t[11],o,a,e.value,n,i,r)}(vt(),r,e,t,n,i)),za}function Ya(e,t,n,i){return Va(e,$e(),n)?t+_(n)+i:pr}function Wa(e,t,n,i,r,a,o,s){var l=function(e,t,n,i,r){var a=Ha(e,t,n,i);return Va(e,t+2,r)||a}(e,Je(),n,r,o);return et(3),l?t+_(n)+i+_(r)+a+_(o)+s:pr}function Ka(e,t,n,i,r,a,o,s){var l=Ve(),c=He(),u=e+20,h=c.firstCreatePass?function(e,t,n,i,r,a,o,s,l){var c=t.consts,u=Sr(t,e,4,o||null,je(c,s));Ur(t,n,u,je(c,l)),gt(t,u);var h=u.tViews=Lr(2,u,i,r,a,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c);return null!==t.queries&&(t.queries.template(t,u),h.queries=t.queries.embeddedTView(u)),u}(u,c,l,t,n,i,r,a,o):c.data[u];Ke(h,!1);var f=l[11].createComment("");Gi(c,l,f,h),wi(f,l),$r(l,l[u]=Qr(f,l,f,h)),de(h)&&Pr(c,l,h),null!=o&&Ir(l,h,s)}function qa(e){return De(Ue.lFrame.contextLView,20+e)}function Ga(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:R.Default,n=Ve();return null===n?bn(e,t):zt(Ye(),n,p(e),t)}function Qa(){throw new Error("invalid")}function Xa(e,t,n){var i=Ve();return Va(i,$e(),t)&&Nr(He(),vt(),i,e,t,i[11],n,!1),Xa}function Za(e,t,n,i,r){var a=r?"class":"style";ca(e,n,t.inputs[a],a,i)}function Ja(e,t,n,i){var r=Ve(),a=He(),o=20+e,s=r[11],l=r[o]=ji(s,t,Ue.lFrame.currentNamespace),c=a.firstCreatePass?function(e,t,n,i,r,a,o){var s=t.consts,l=Sr(t,e,2,r,je(s,a));return Ur(t,n,l,je(s,o)),null!==l.attrs&&ha(l,l.attrs,!1),null!==l.mergedAttrs&&ha(l,l.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,l),l}(o,a,r,0,t,n,i):a.data[o];Ke(c,!0);var u=c.mergedAttrs;null!==u&&St(s,l,u);var h=c.classes;null!==h&&nr(s,l,h);var f=c.styles;null!==f&&tr(s,l,f),64!=(64&c.flags)&&Gi(a,r,l,c),0===Ue.lFrame.elementDepthCount&&wi(l,r),Ue.lFrame.elementDepthCount++,de(c)&&(Pr(a,r,c),Dr(a,c,r)),null!==i&&Ir(r,c)}function $a(){var e=Ye();qe()?Ge():Ke(e=e.parent,!1);var t=e;Ue.lFrame.elementDepthCount--;var n=He();n.firstCreatePass&&(gt(n,e),he(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&Za(n,t,Ve(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&Za(n,t,Ve(),t.stylesWithoutHost,!1)}function eo(e,t,n,i){Ja(e,t,n,i),$a()}function to(e,t,n){var i=Ve(),r=He(),a=e+20,o=r.firstCreatePass?function(e,t,n,i,r){var a=t.consts,o=je(a,i),s=Sr(t,e,8,"ng-container",o);return null!==o&&ha(s,o,!0),Ur(t,n,s,je(a,r)),null!==t.queries&&t.queries.elementStart(t,s),s}(a,r,i,t,n):r.data[a];Ke(o,!0);var s=i[a]=i[11].createComment("");Gi(r,i,s,o),wi(s,i),de(o)&&(Pr(r,i,o),Dr(r,o,i)),null!=n&&Ir(i,o)}function no(){var e=Ye(),t=He();qe()?Ge():Ke(e=e.parent,!1),t.firstCreatePass&&(gt(t,e),he(e)&&t.queries.elementEnd(e))}function io(e,t,n){to(e,t,n),no()}function ro(){return Ve()}function ao(e){return!!e&&"function"==typeof e.then}function oo(e){return!!e&&"function"==typeof e.subscribe}var so=oo;function lo(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0,r=Ve(),a=He(),o=Ye();return uo(a,r,r[11],o,e,t,n,i),lo}function co(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0,r=Ye(),a=Ve(),o=He();return uo(o,a,sa(nt(o.data),r,a),r,e,t,n,i),co}function uo(e,t,n,i,r,a){var o=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7?arguments[7]:void 0,l=de(i),c=e.firstCreatePass&&oa(e),u=aa(t),h=!0;if(3&i.type){var f=Ae(i,t),d=s?s(f):V,p=d.target||f,v=u.length,m=s?function(e){return s(Ee(e[i.index])).target}:i.index;if(Se(n)){var _=null;if(!s&&l&&(_=function(e,t,n,i){var r=e.cleanup;if(null!=r)for(var a=0;a<r.length-1;a+=2){var o=r[a];if(o===n&&r[a+1]===i){var s=t[7],l=r[a+2];return s.length>l?s[l]:null}"string"==typeof o&&(a+=2)}return null}(e,t,r,i.index)),null!==_)(_.__ngLastListenerFn__||_).__ngNextListenerFn__=a,_.__ngLastListenerFn__=a,h=!1;else{a=fo(i,t,0,a,!1);var g=n.listen(d.name||p,r,a);u.push(a,g),c&&c.push(r,m,v,v+1)}}else a=fo(i,t,0,a,!0),p.addEventListener(r,a,o),u.push(a),c&&c.push(r,m,v,o)}else a=fo(i,t,0,a,!1);var y,b=i.outputs;if(h&&null!==b&&(y=b[r])){var k=y.length;if(k)for(var C=0;C<k;C+=2){var w=t[y[C]][y[C+1]].subscribe(a),O=u.length;u.push(a,w),c&&c.push(r,i.index,O,-(O+1))}}}function ho(e,t,n,i){try{return!1!==n(i)}catch(r){return la(e,r),!1}}function fo(e,t,n,i,r){return function n(a){if(a===Function)return i;var o=2&e.flags?Pe(e.index,t):t;0==(32&t[2])&&ea(o);for(var s=ho(t,0,i,a),l=n.__ngNextListenerFn__;l;)s=ho(t,0,l,a)&&s,l=l.__ngNextListenerFn__;return r&&!1===s&&(a.preventDefault(),a.returnValue=!1),s}}function po(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return function(e){return(Ue.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,Ue.lFrame.contextLView))[8]}(e)}function vo(e,t){for(var n=null,i=function(e){var t=e.attrs;if(null!=t){var n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e),r=0;r<t.length;r++){var a=t[r];if("*"!==a){if(null===i?ur(e,a,!0):hr(i,a))return r}else n=r}return n}function mo(e){var t=Ve()[16][6];if(!t.projection)for(var n=t.projection=un(e?e.length:1,null),i=n.slice(),r=t.child;null!==r;){var a=e?vo(r,e):0;null!==a&&(i[a]?i[a].projectionNext=r:n[a]=r,i[a]=r),r=r.next}}function _o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,i=Ve(),r=He(),a=Sr(r,20+e,16,null,n||null);null===a.projection&&(a.projection=t),Ge(),64!=(64&a.flags)&&function(e,t,n){er(t[11],0,t,n,Vi(e,n,t),Ki(n.parent||t[6],n,t))}(r,i,a)}function go(e,t,n){return yo(e,"",t,"",n),go}function yo(e,t,n,i,r){var a=Ve(),o=Ya(a,t,n,i);return o!==pr&&Nr(He(),vt(),a,e,o,a[11],r,!1),yo}function bo(e,t,n,i,r,a,o,s,l){var c=Ve(),u=Wa(c,t,n,i,r,a,o,s);return u!==pr&&Nr(He(),vt(),c,e,u,c[11],l,!1),bo}function ko(e,t,n,i,r){for(var a=e[n+1],o=null===t,s=i?gr(a):br(a),l=!1;0!==s&&(!1===l||o);){var c=e[s+1];Co(e[s],t)&&(l=!0,e[s+1]=i?Cr(c):yr(c)),s=i?gr(c):br(c)}l&&(e[n+1]=i?yr(a):Cr(a))}function Co(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&dn(e,t)>=0}var wo={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Oo(e){return e.substring(wo.key,wo.keyEnd)}function So(e,t){var n=wo.textEnd;return n===t?-1:(t=wo.keyEnd=function(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,wo.key=t,n),xo(e,t,n))}function xo(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function Eo(e,t,n){return Ro(e,t,n,!1),Eo}function To(e,t){return Ro(e,t,null,!0),To}function Ao(e,t){for(var n=function(e){return function(e){wo.key=0,wo.keyEnd=0,wo.value=0,wo.valueEnd=0,wo.textEnd=e.length}(e),So(e,xo(e,0,wo.textEnd))}(t);n>=0;n=So(t,n))hn(e,Oo(t),!0)}function Ro(e,t,n,i){var r=Ve(),a=He(),o=et(2);a.firstUpdatePass&&Po(a,e,o,i),t!==pr&&Va(r,o,t)&&Lo(a,a.data[dt()],r,r[11],e,r[o+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=u(Nn(e)))),e}(t,n),i,o)}function Do(e,t){return t>=e.expandoStartIndex}function Po(e,t,n,i){var r=e.data;if(null===r[n+1]){var a=r[dt()],o=Do(e,n);No(a,i)&&null===t&&!o&&(t=!1),t=function(e,t,n,i){var r=nt(e),a=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(n=Mo(n=Io(null,e,t,n,i),t.attrs,i),a=null);else{var o=t.directiveStylingLast;if(-1===o||e[o]!==r)if(n=Io(r,e,t,n,i),null===a){var s=function(e,t,n){var i=n?t.classBindings:t.styleBindings;if(0!==br(i))return e[gr(i)]}(e,t,i);void 0!==s&&Array.isArray(s)&&function(e,t,n,i){e[gr(n?t.classBindings:t.styleBindings)]=i}(e,t,i,s=Mo(s=Io(null,e,t,s[1],i),t.attrs,i))}else a=function(e,t,n){for(var i,r=t.directiveEnd,a=1+t.directiveStylingLast;a<r;a++)i=Mo(i,e[a].hostAttrs,n);return Mo(i,t.attrs,n)}(e,t,i)}return void 0!==a&&(i?t.residualClasses=a:t.residualStyles=a),n}(r,a,t,i),function(e,t,n,i,r,a){var o=a?t.classBindings:t.styleBindings,s=gr(o),l=br(o);e[i]=n;var c,u=!1;if(Array.isArray(n)){var h=n;(null===(c=h[1])||dn(h,c)>0)&&(u=!0)}else c=n;if(r)if(0!==l){var f=gr(e[s+1]);e[i+1]=_r(f,s),0!==f&&(e[f+1]=kr(e[f+1],i)),e[s+1]=131071&e[s+1]|i<<17}else e[i+1]=_r(s,0),0!==s&&(e[s+1]=kr(e[s+1],i)),s=i;else e[i+1]=_r(l,0),0===s?s=i:e[l+1]=kr(e[l+1],i),l=i;u&&(e[i+1]=yr(e[i+1])),ko(e,c,i,!0),ko(e,c,i,!1),function(e,t,n,i,r){var a=r?e.residualClasses:e.residualStyles;null!=a&&"string"==typeof t&&dn(a,t)>=0&&(n[i+1]=Cr(n[i+1]))}(t,c,e,i,a),o=_r(s,l),a?t.classBindings=o:t.styleBindings=o}(r,a,t,n,o,i)}}function Io(e,t,n,i,r){var a=null,o=n.directiveEnd,s=n.directiveStylingLast;for(-1===s?s=n.directiveStart:s++;s<o&&(i=Mo(i,(a=t[s]).hostAttrs,r),a!==e);)s++;return null!==e&&(n.directiveStylingLast=s),i}function Mo(e,t,n){var i=n?1:2,r=-1;if(null!==t)for(var a=0;a<t.length;a++){var o=t[a];"number"==typeof o?r=o:r===i&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),hn(e,o,!!n||t[++a]))}return void 0===e?null:e}function Lo(e,t,n,i,r,a,o,s){if(3&t.type){var l=e.data,c=l[s+1];Fo(1==(1&c)?jo(l,t,n,r,br(c),o):void 0)||(Fo(a)||2==(2&c)&&(a=jo(l,null,n,r,s,o)),function(e,t,n,i,r){var a=Se(e);if(t)r?a?e.addClass(n,i):n.classList.add(i):a?e.removeClass(n,i):n.classList.remove(i);else{var o=-1===i.indexOf("-")?void 0:Ai.DashCase;if(null==r)a?e.removeStyle(n,i,o):n.style.removeProperty(i);else{var s="string"==typeof r&&r.endsWith("!important");s&&(r=r.slice(0,-10),o|=Ai.Important),a?e.setStyle(n,i,r,o):n.style.setProperty(i,r,s?"important":"")}}}(i,o,Te(dt(),n),r,a))}}function jo(e,t,n,i,r,a){for(var o,s=null===t;r>0;){var l=e[r],c=Array.isArray(l),u=c?l[1]:l,h=null===u,f=n[r+1];f===pr&&(f=h?H:void 0);var d=h?fn(f,i):u===i?f:void 0;if(c&&!Fo(d)&&(d=fn(l,i)),Fo(d)&&(o=d,s))return o;var p=e[r+1];r=s?gr(p):br(p)}if(null!==t){var v=a?t.residualClasses:t.residualStyles;null!=v&&(o=fn(v,i))}return o}function Fo(e){return void 0!==e}function No(e,t){return 0!=(e.flags&(t?16:32))}function Uo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Ve(),i=He(),r=e+20,a=i.firstCreatePass?Sr(i,r,1,t,null):i.data[r],o=n[r]=function(e,t){return Se(e)?e.createText(t):e.createTextNode(t)}(n[11],t);Gi(i,n,o,a),Ke(a,!1)}function Bo(e){return Vo("",e,""),Bo}function Vo(e,t,n){var i=Ve(),r=Ya(i,e,t,n);return r!==pr&&ua(i,dt(),r),Vo}function Ho(e,t,n,i,r){var a=Ve(),o=function(e,t,n,i,r,a){var o=Ha(e,Je(),n,r);return et(2),o?t+_(n)+i+_(r)+a:pr}(a,e,t,n,i,r);return o!==pr&&ua(a,dt(),o),Ho}function zo(e,t,n,i,r,a,o){var s=Ve(),l=Wa(s,e,t,n,i,r,a,o);return l!==pr&&ua(s,dt(),l),zo}function Yo(e,t,n){!function(e,t,n,i){var r=He(),a=et(2);r.firstUpdatePass&&Po(r,null,a,!0);var o=Ve();if(n!==pr&&Va(o,a,n)){var s=r.data[dt()];if(No(s,!0)&&!Do(r,a)){var l=s.classesWithoutHost;null!==l&&(n=h(l,n||"")),Za(r,s,o,n,!0)}else!function(e,t,n,i,r,a,o,s){r===pr&&(r=H);for(var l=0,c=0,u=0<r.length?r[0]:null,h=0<a.length?a[0]:null;null!==u||null!==h;){var f=l<r.length?r[l+1]:void 0,d=c<a.length?a[c+1]:void 0,p=void 0,v=null;u===h?(l+=2,c+=2,f!==d&&(v=h,p=d)):null===h||null!==u&&u<h?(l+=2,v=u):(c+=2,v=h,p=d),null!==v&&Lo(e,t,n,i,v,p,!0,s),u=l<r.length?r[l]:null,h=c<a.length?a[c]:null}}(r,s,o,o[11],o[a+1],o[a+1]=function(e,t,n){if(null==n||""===n)return H;var i=[],r=Nn(n);if(Array.isArray(r))for(var a=0;a<r.length;a++)e(i,r[a],!0);else if("object"==typeof r)for(var o in r)r.hasOwnProperty(o)&&e(i,o,r[o]);else"string"==typeof r&&t(i,r);return i}(e,t,n),0,a)}}(hn,Ao,Ya(Ve(),e,t,n))}function Wo(e,t,n){var i=Ve();return Va(i,$e(),t)&&Nr(He(),vt(),i,e,t,i[11],n,!0),Wo}function Ko(e,t,n){var i=Ve();if(Va(i,$e(),t)){var r=He(),a=vt();Nr(r,a,i,e,t,sa(nt(r.data),a,i),n,!0)}return Ko}var qo=void 0,Go=["en",[["a","p"],["AM","PM"],qo],[["AM","PM"],qo,qo],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],qo,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],qo,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",qo,"{1} 'at' {0}",qo],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],Qo={};function Xo(e,t,n){"string"!=typeof t&&(n=t,t=e[ts.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),Qo[t]=e,n&&(Qo[t][ts.ExtraData]=n)}function Zo(e){var t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e),n=es(t);if(n)return n;var i=t.split("-")[0];if(n=es(i))return n;if("en"===i)return Go;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}function Jo(e){return Zo(e)[ts.CurrencyCode]||null}function $o(e){return Zo(e)[ts.PluralCase]}function es(e){return e in Qo||(Qo[e]=B.ng&&B.ng.common&&B.ng.common.locales&&B.ng.common.locales[e]),Qo[e]}var ts=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}({});function ns(e){var t;null==(t=e)&&function(e,t,n,i){throw new Error("ASSERTION ERROR: ".concat("Expected localeId to be defined"," [Expected=> null != ").concat(t," <=Actual]"))}(0,t),"string"==typeof e&&e.toLowerCase().replace(/_/g,"-")}function is(e,t,n,i,r){if(e=p(e),Array.isArray(e))for(var a=0;a<e.length;a++)is(e[a],t,n,i,r);else{var o=He(),s=Ve(),l=xa(e)?e:p(e.provide),c=wa(e),u=Ye(),h=1048575&u.providerIndexes,f=u.directiveStart,d=u.providerIndexes>>20;if(xa(e)||!e.multi){var v=new Ot(c,r,Ga),m=os(l,t,r?h:h+d,f);-1===m?(Bt(jt(u,s),o,l),rs(o,e,t.length),t.push(l),u.directiveStart++,u.directiveEnd++,r&&(u.providerIndexes+=1048576),n.push(v),s.push(v)):(n[m]=v,s[m]=v)}else{var _=os(l,t,h+d,f),g=os(l,t,h,h+d),y=_>=0&&n[_],b=g>=0&&n[g];if(r&&!b||!r&&!y){Bt(jt(u,s),o,l);var k=function(e,t,n,i,r){var a=new Ot(e,n,Ga);return a.multi=[],a.index=t,a.componentProviders=0,as(a,r,i&&!n),a}(r?ls:ss,n.length,r,i,c);!r&&b&&(n[g].providerFactory=k),rs(o,e,t.length,0),t.push(l),u.directiveStart++,u.directiveEnd++,r&&(u.providerIndexes+=1048576),n.push(k),s.push(k)}else rs(o,e,_>-1?_:g,as(n[r?g:_],c,!r&&i));!r&&i&&b&&n[g].componentProviders++}}}function rs(e,t,n,i){var r=xa(t);if(r||t.useClass){var a=(t.useClass||t).prototype.ngOnDestroy;if(a){var o=e.destroyHooks||(e.destroyHooks=[]);if(!r&&t.multi){var s=o.indexOf(n);-1===s?o.push(n,[i,a]):o[s+1].push(i,a)}else o.push(n,a)}}}function as(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function os(e,t,n,i){for(var r=n;r<i;r++)if(t[r]===e)return r;return-1}function ss(e,t,n,i){return cs(this.multi,[])}function ls(e,t,n,i){var r,a=this.multi;if(this.providerFactory){var o=this.providerFactory.componentProviders,s=Gt(n,n[1],this.providerFactory.index,i);cs(a,r=s.slice(0,o));for(var l=o;l<s.length;l++)r.push(s[l])}else cs(a,r=[]);return r}function cs(e,t){for(var n=0;n<e.length;n++)t.push((0,e[n])());return t}function us(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,i){return function(e,t,n){var i=He();if(i.firstCreatePass){var r=pe(e);is(n,i.data,i.blueprint,r,!0),is(t,i.data,i.blueprint,r,!1)}}(n,i?i(e):e,t)}}}var hs=function e(){_classCallCheck(this,e)},fs=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"resolveComponentFactory",value:function(e){throw function(e){var t=Error("No component factory found for ".concat(u(e),". Did you add it to @NgModule.entryComponents?"));return t.ngComponent=e,t}(e)}}]),e}(),ds=function(){var e=function e(){_classCallCheck(this,e)};return e.NULL=new fs,e}();function ps(){}function vs(e,t){return new _s(Ae(e,t))}var ms=function(){return vs(Ye(),Ve())},_s=function(){var e=function e(t){_classCallCheck(this,e),this.nativeElement=t};return e.__NG_ELEMENT_ID__=ms,e}();function gs(e){return e instanceof _s?e.nativeElement:e}var ys=function e(){_classCallCheck(this,e)},bs=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=function(){return ks()},e}(),ks=function(){var e=Ve(),t=Pe(Ye().index,e);return function(e){return e[11]}(ce(t)?t:e)},Cs=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275prov=b({token:e,providedIn:"root",factory:function(){return null}}),e}(),ws=function e(t){_classCallCheck(this,e),this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")},Os=new ws("11.2.13"),Ss=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"supports",value:function(e){return Na(e)}},{key:"create",value:function(e){return new Es(e)}}]),e}(),xs=function(e,t){return t},Es=function(){function e(t){_classCallCheck(this,e),this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||xs}return _createClass(e,[{key:"forEachItem",value:function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)}},{key:"forEachOperation",value:function(e){for(var t=this._itHead,n=this._removalsHead,i=0,r=null;t||n;){var a=!n||t&&t.currentIndex<Ds(n,i,r)?t:n,o=Ds(a,i,r),s=a.currentIndex;if(a===n)i--,n=n._nextRemoved;else if(t=t._next,null==a.previousIndex)i++;else{r||(r=[]);var l=o-i,c=s-i;if(l!=c){for(var u=0;u<l;u++){var h=u<r.length?r[u]:r[u]=0,f=h+u;c<=f&&f<l&&(r[u]=h+1)}r[a.previousIndex]=c-l}}o!==s&&e(a,o,s)}}},{key:"forEachPreviousItem",value:function(e){var t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}},{key:"forEachAddedItem",value:function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}},{key:"forEachMovedItem",value:function(e){var t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}},{key:"forEachRemovedItem",value:function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}},{key:"forEachIdentityChange",value:function(e){var t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}},{key:"diff",value:function(e){if(null==e&&(e=[]),!Na(e))throw new Error("Error trying to diff '".concat(u(e),"'. Only arrays and iterables are allowed"));return this.check(e)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(e){var t=this;this._reset();var n,i,r,a=this._itHead,o=!1;if(Array.isArray(e)){this.length=e.length;for(var s=0;s<this.length;s++)i=e[s],r=this._trackByFn(s,i),null!==a&&Object.is(a.trackById,r)?(o&&(a=this._verifyReinsertion(a,i,r,s)),Object.is(a.item,i)||this._addIdentityChange(a,i)):(a=this._mismatch(a,i,r,s),o=!0),a=a._next}else n=0,function(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++)t(e[n]);else for(var i,r=e[ja()]();!(i=r.next()).done;)t(i.value)}(e,function(e){r=t._trackByFn(n,e),null!==a&&Object.is(a.trackById,r)?(o&&(a=t._verifyReinsertion(a,e,r,n)),Object.is(a.item,e)||t._addIdentityChange(a,e)):(a=t._mismatch(a,e,r,n),o=!0),a=a._next,n++}),this.length=n;return this._truncate(a),this.collection=e,this.isDirty}},{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}},{key:"_reset",value:function(){if(this.isDirty){var e;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=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}},{key:"_mismatch",value:function(e,t,n,i){var r;return null===e?r=this._itTail:(r=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,r,i)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,r,i)):e=this._addAfter(new Ts(t,n),r,i),e}},{key:"_verifyReinsertion",value:function(e,t,n,i){var r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==r?e=this._reinsertAfter(r,e._prev,i):e.currentIndex!=i&&(e.currentIndex=i,this._addToMoves(e,i)),e}},{key:"_truncate",value: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)}},{key:"_reinsertAfter",value:function(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);var i=e._prevRemoved,r=e._nextRemoved;return null===i?this._removalsHead=r:i._nextRemoved=r,null===r?this._removalsTail=i:r._prevRemoved=i,this._insertAfter(e,t,n),this._addToMoves(e,n),e}},{key:"_moveAfter",value:function(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}},{key:"_addAfter",value:function(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}},{key:"_insertAfter",value:function(e,t,n){var i=null===t?this._itHead:t._next;return e._next=i,e._prev=t,null===i?this._itTail=e:i._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new Rs),this._linkedRecords.put(e),e.currentIndex=n,e}},{key:"_remove",value:function(e){return this._addToRemovals(this._unlink(e))}},{key:"_unlink",value: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}},{key:"_addToMoves",value:function(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}},{key:"_addToRemovals",value:function(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Rs),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}},{key:"_addIdentityChange",value:function(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}]),e}(),Ts=function e(t,n){_classCallCheck(this,e),this.item=t,this.trackById=n,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},As=function(){function e(){_classCallCheck(this,e),this._head=null,this._tail=null}return _createClass(e,[{key:"add",value: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)}},{key:"get",value:function(e,t){var n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}},{key:"remove",value: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}(),Rs=function(){function e(){_classCallCheck(this,e),this.map=new Map}return _createClass(e,[{key:"put",value:function(e){var t=e.trackById,n=this.map.get(t);n||(n=new As,this.map.set(t,n)),n.add(e)}},{key:"get",value:function(e,t){var n=this.map.get(e);return n?n.get(e,t):null}},{key:"remove",value:function(e){var t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}},{key:"isEmpty",get:function(){return 0===this.map.size}},{key:"clear",value:function(){this.map.clear()}}]),e}();function Ds(e,t,n){var i=e.previousIndex;if(null===i)return i;var r=0;return n&&i<n.length&&(r=n[i]),i+t+r}var Ps=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"supports",value:function(e){return e instanceof Map||Ua(e)}},{key:"create",value:function(){return new Is}}]),e}(),Is=function(){function e(){_classCallCheck(this,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 _createClass(e,[{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}},{key:"forEachItem",value:function(e){var t;for(t=this._mapHead;null!==t;t=t._next)e(t)}},{key:"forEachPreviousItem",value:function(e){var t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}},{key:"forEachChangedItem",value:function(e){var t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}},{key:"forEachAddedItem",value:function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}},{key:"forEachRemovedItem",value:function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}},{key:"diff",value:function(e){if(e){if(!(e instanceof Map||Ua(e)))throw new Error("Error trying to diff '".concat(u(e),"'. Only maps and objects are allowed"))}else e=new Map;return this.check(e)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(e){var t=this;this._reset();var n=this._mapHead;if(this._appendAfter=null,this._forEach(e,function(e,i){if(n&&n.key===i)t._maybeAddToChanges(n,e),t._appendAfter=n,n=n._next;else{var r=t._getOrCreateRecordForKey(i,e);n=t._insertBeforeOrAppend(n,r)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(var i=n;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}},{key:"_insertBeforeOrAppend",value: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}},{key:"_getOrCreateRecordForKey",value:function(e,t){if(this._records.has(e)){var n=this._records.get(e);this._maybeAddToChanges(n,t);var i=n._prev,r=n._next;return i&&(i._next=r),r&&(r._prev=i),n._next=null,n._prev=null,n}var a=new Ms(e);return this._records.set(e,a),a.currentValue=t,this._addToAdditions(a),a}},{key:"_reset",value:function(){if(this.isDirty){var e;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}}},{key:"_maybeAddToChanges",value:function(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}},{key:"_addToAdditions",value:function(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}},{key:"_addToChanges",value:function(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}},{key:"_forEach",value:function(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(function(n){return t(e[n],n)})}}]),e}(),Ms=function e(t){_classCallCheck(this,e),this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null};function Ls(){return new js([new Ss])}var js=function(){var e=function(){function e(t){_classCallCheck(this,e),this.factories=t}return _createClass(e,[{key:"find",value:function(e){var t,n=this.factories.find(function(t){return t.supports(e)});if(null!=n)return n;throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat((t=e).name||typeof t,"'"))}}],[{key:"create",value:function(t,n){if(null!=n){var i=n.factories.slice();t=t.concat(i)}return new e(t)}},{key:"extend",value:function(t){return{provide:e,useFactory:function(n){return e.create(t,n||Ls())},deps:[[e,new An,new En]]}}}]),e}();return e.\u0275prov=b({token:e,providedIn:"root",factory:Ls}),e}();function Fs(){return new Ns([new Ps])}var Ns=function(){var e=function(){function e(t){_classCallCheck(this,e),this.factories=t}return _createClass(e,[{key:"find",value: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 '".concat(e,"'"))}}],[{key:"create",value:function(t,n){if(n){var i=n.factories.slice();t=t.concat(i)}return new e(t)}},{key:"extend",value:function(t){return{provide:e,useFactory:function(n){return e.create(t,n||Fs())},deps:[[e,new An,new En]]}}}]),e}();return e.\u0275prov=b({token:e,providedIn:"root",factory:Fs}),e}();function Us(e,t,n,i){for(var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==n;){var a=t[n.index];if(null!==a&&i.push(Ee(a)),ue(a))for(var o=10;o<a.length;o++){var s=a[o],l=s[1].firstChild;null!==l&&Us(s[1],s,l,i)}var c=n.type;if(8&c)Us(e,t,n.child,i);else if(32&c)for(var u=Ri(n,t),h=void 0;h=u();)i.push(h);else if(16&c){var f=Xi(t,n);if(Array.isArray(f))i.push.apply(i,_toConsumableArray(f));else{var d=Di(t[16]);Us(d[1],d,f,i,!0)}}n=r?n.projectionNext:n.next}return i}var Bs=function(){function e(t,n){_classCallCheck(this,e),this._lView=t,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}return _createClass(e,[{key:"rootNodes",get:function(){var e=this._lView,t=e[1];return Us(t,e,t.firstChild,[])}},{key:"context",get:function(){return this._lView[8]}},{key:"destroyed",get:function(){return 256==(256&this._lView[2])}},{key:"destroy",value:function(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){var e=this._lView[3];if(ue(e)){var t=e[8],n=t?t.indexOf(this):-1;n>-1&&(Ni(e,n),cn(t,n))}this._attachedToViewContainer=!1}Ui(this._lView[1],this._lView)}},{key:"onDestroy",value:function(e){jr(this._lView[1],this._lView,null,e)}},{key:"markForCheck",value:function(){ea(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){ta(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,t,n){Xe(!0);try{ta(e,t,n)}finally{Xe(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){var e;this._appRef=null,$i(this._lView[1],e=this._lView,e[11],2,null,null)}},{key:"attachToAppRef",value:function(e){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}]),e}(),Vs=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this,e))._view=e,i}return _createClass(n,[{key:"detectChanges",value:function(){na(this._view)}},{key:"checkNoChanges",value:function(){!function(e){Xe(!0);try{na(e)}finally{Xe(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),n}(Bs),Hs=Ys,zs=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=Hs,e.__ChangeDetectorRef__=!0,e}();function Ys(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(e,t,n){if(!n&&fe(e)){var i=Pe(e.index,t);return new Bs(i,i)}return 47&e.type?new Bs(t[16],t):null}(Ye(),Ve(),e)}var Ws=[new Ps],Ks=new js([new Ss]),qs=new Ns(Ws),Gs=function(){return Zs(Ye(),Ve())},Qs=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=Gs,e}(),Xs=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this))._declarationLView=e,a._declarationTContainer=i,a.elementRef=r,a}return _createClass(n,[{key:"createEmbeddedView",value:function(e){var t=this._declarationTContainer.tViews,n=Or(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];var i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(t)),Er(t,n,e),new Bs(n)}}]),n}(Qs);function Zs(e,t){return 4&e.type?new Xs(t,e,vs(e,t)):null}var Js=function e(){_classCallCheck(this,e)},$s=function e(){_classCallCheck(this,e)},el=function(){return al(Ye(),Ve())},tl=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=el,e}(),nl=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this))._lContainer=e,a._hostTNode=i,a._hostLView=r,a}return _createClass(n,[{key:"element",get:function(){return vs(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new Zt(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var e=Ut(this._hostTNode,this._hostLView);if(Rt(e)){var t=Pt(e,this._hostLView),n=Dt(e);return new Zt(t[1].data[n+8],t)}return new Zt(null,this._hostLView)}},{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(e){var t=il(this._lContainer);return null!==t&&t[e]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{key:"createEmbeddedView",value:function(e,t,n){var i=e.createEmbeddedView(t||{});return this.insert(i,n),i}},{key:"createComponent",value:function(e,t,n,i,r){var a=n||this.parentInjector;if(!r&&null==e.ngModule&&a){var o=a.get(Js,null);o&&(r=o)}var s=e.create(a,i,void 0,r);return this.insert(s.hostView,t),s}},{key:"insert",value:function(e,t){var i=e._lView,r=i[1];if(ue(i[3])){var a=this.indexOf(e);if(-1!==a)this.detach(a);else{var o=i[3],s=new n(o,o[6],o[3]);s.detach(s.indexOf(e))}}var l=this._adjustIndex(t),c=this._lContainer;!function(e,t,n,i){var r=10+i,a=n.length;i>0&&(n[r-1][4]=t),i<a-10?(t[4]=n[r],ln(n,10+i,t)):(n.push(t),t[4]=null),t[3]=n;var o=t[17];null!==o&&n!==o&&function(e,t){var n=e[9];t[16]!==t[3][3][16]&&(e[2]=!0),null===n?e[9]=[t]:n.push(t)}(o,t);var s=t[19];null!==s&&s.insertView(e),t[2]|=128}(r,i,c,l);var u=Zi(l,c),h=i[11],f=Wi(h,c[7]);return null!==f&&function(e,t,n,i,r,a){i[0]=r,i[6]=t,$i(e,i,n,1,r,a)}(r,c[6],h,i,f,u),e.attachToViewContainerRef(),ln(rl(c),l,e),e}},{key:"move",value:function(e,t){return this.insert(e,t)}},{key:"indexOf",value:function(e){var t=il(this._lContainer);return null!==t?t.indexOf(e):-1}},{key:"remove",value:function(e){var t=this._adjustIndex(e,-1),n=Ni(this._lContainer,t);n&&(cn(rl(this._lContainer),t),Ui(n[1],n))}},{key:"detach",value:function(e){var t=this._adjustIndex(e,-1),n=Ni(this._lContainer,t);return n&&null!=cn(rl(this._lContainer),t)?new Bs(n):null}},{key:"_adjustIndex",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return null==e?this.length+t:e}}]),n}(tl);function il(e){return e[8]}function rl(e){return e[8]||(e[8]=[])}function al(e,t){var n,i=t[e.index];if(ue(i))n=i;else{var r;if(8&e.type)r=Ee(i);else{var a=t[11];r=a.createComment("");var o=Ae(e,t);Hi(a,Wi(a,o),r,function(e,t){return Se(e)?e.nextSibling(t):t.nextSibling}(a,o),!1)}t[e.index]=n=Qr(i,t,r,e),$r(t,n)}return new nl(n,e,t)}var ol={},sl=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this)).ngModule=e,i}return _createClass(n,[{key:"resolveComponentFactory",value:function(e){var t=se(e);return new ul(t,this.ngModule)}}]),n}(ds);function ll(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}var cl=new nn("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return Oi}}),ul=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this)).componentDef=e,r.ngModule=i,r.componentType=e.type,r.selector=e.selectors.map(dr).join(","),r.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],r.isBoundToModule=!!i,r}return _createClass(n,[{key:"inputs",get:function(){return ll(this.componentDef.inputs)}},{key:"outputs",get:function(){return ll(this.componentDef.outputs)}},{key:"create",value:function(e,t,n,i){var r,a,o=(i=i||this.ngModule)?function(e,t){return{get:function(n,i,r){var a=e.get(n,ol,r);return a!==ol||i===ol?a:t.get(n,i,r)}}}(e,i.injector):e,s=o.get(ys,xe),l=o.get(Cs,null),c=s.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",h=n?function(e,t,n){if(Se(e))return e.selectRootElement(t,n===L.ShadowDom);var i="string"==typeof t?e.querySelector(t):t;return i.textContent="",i}(c,n,this.componentDef.encapsulation):ji(s.createRenderer(null,this.componentDef),u,function(e){var t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(u)),f=this.componentDef.onPush?576:528,d={components:[],scheduler:Oi,clean:ra,playerHandler:null,flags:0},p=Lr(0,null,null,1,0,null,null,null,null,null),v=Or(null,p,d,f,null,null,s,c,l,o);st(v);try{var m=function(e,t,n,i,r,a){var o=n[1];n[20]=e;var s=Sr(o,20,2,"#host",null),l=s.mergedAttrs=t.hostAttrs;null!==l&&(ha(s,l,!0),null!==e&&(St(r,e,l),null!==s.classes&&nr(r,e,s.classes),null!==s.styles&&tr(r,e,s.styles)));var c=i.createRenderer(e,t),u=Or(n,Mr(t),null,t.onPush?64:16,n[20],s,i,c,null,null);return o.firstCreatePass&&(Bt(jt(s,n),o,t.type),Hr(o,s),Yr(s,n.length,1)),$r(n,u),n[20]=u}(h,this.componentDef,v,s,c);if(h)if(n)St(c,h,["ng-version",Os.full]);else{var _=function(e){for(var t=[],n=[],i=1,r=2;i<e.length;){var a=e[i];if("string"==typeof a)2===r?""!==a&&t.push(a,e[++i]):8===r&&n.push(a);else{if(!lr(r))break;r=a}i++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]),g=_.attrs,y=_.classes;g&&St(c,h,g),y&&y.length>0&&nr(c,h,y.join(" "))}if(a=Re(p,20),void 0!==t)for(var b=a.projection=[],k=0;k<this.ngContentSelectors.length;k++){var C=t[k];b.push(null!=C?Array.from(C):null)}r=function(e,t,n,i,r){var a=n[1],o=function(e,t,n){var i=Ye();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Wr(e,i,t,xr(e,t,1,null),n));var r=Gt(t,e,i.directiveStart,i);wi(r,t);var a=Ae(i,t);return a&&wi(a,t),r}(a,n,t);if(i.components.push(o),e[8]=o,r&&r.forEach(function(e){return e(o,t)}),t.contentQueries){var s=Ye();t.contentQueries(1,o,s.directiveStart)}var l=Ye();return!a.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(pt(l.index),Br(n[1],l,0,l.directiveStart,l.directiveEnd,t),Vr(t,o)),o}(m,this.componentDef,v,d,[Aa]),Er(p,v,null)}finally{ft()}return new hl(this.componentType,r,vs(a,v),v,a)}}]),n}(hs),hl=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,o){var s;return _classCallCheck(this,n),(s=t.call(this)).location=r,s._rootLView=a,s._tNode=o,s.instance=i,s.hostView=s.changeDetectorRef=new Vs(a),s.componentType=e,s}return _createClass(n,[{key:"injector",get:function(){return new Zt(this._tNode,this._rootLView)}},{key:"destroy",value:function(){this.hostView.destroy()}},{key:"onDestroy",value:function(e){this.hostView.onDestroy(e)}}]),n}(function(){return function e(){_classCallCheck(this,e)}}()),fl=new Map,dl=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;_classCallCheck(this,n),(r=t.call(this))._parent=i,r._bootstrapComponents=[],r.injector=_assertThisInitialized(r),r.destroyCbs=[],r.componentFactoryResolver=new sl(_assertThisInitialized(r));var a=le(e),o=e[G]||null;return o&&ns(o),r._bootstrapComponents=Ti(a.bootstrap),r._r3Injector=ba(e,i,[{provide:Js,useValue:_assertThisInitialized(r)},{provide:ds,useValue:r.componentFactoryResolver}],u(e)),r._r3Injector._resolveInjectorDefTypes(),r.instance=r.get(e),r}return _createClass(n,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ta.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:R.Default;return e===Ta||e===Js||e===da?this:this._r3Injector.get(e,t,n)}},{key:"destroy",value:function(){var e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(function(e){return e()}),this.destroyCbs=null}},{key:"onDestroy",value:function(e){this.destroyCbs.push(e)}}]),n}(Js),pl=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i,r,a;return _classCallCheck(this,n),(i=t.call(this)).moduleType=e,null!==le(e)&&(r=e,a=new Set,function e(t){var n=le(t,!0),i=n.id;null!==i&&(function(e,t,n){if(t&&t!==n)throw new Error("Duplicate module registered for ".concat(e," - ").concat(u(t)," vs ").concat(u(t.name)))}(i,fl.get(i),t),fl.set(i,t));var r,o=_createForOfIteratorHelper(Ti(n.imports));try{for(o.s();!(r=o.n()).done;){var s=r.value;a.has(s)||(a.add(s),e(s))}}catch(l){o.e(l)}finally{o.f()}}(r)),i}return _createClass(n,[{key:"create",value:function(e){return new dl(this.moduleType,e)}}]),n}($s);function vl(e,t,n,i){return gl(Ve(),Ze(),e,t,n,i)}function ml(e,t,n,i,r){return yl(Ve(),Ze(),e,t,n,i,r)}function _l(e,t){var n=e[t];return n===pr?void 0:n}function gl(e,t,n,i,r,a){var o=t+n;return Va(e,o,r)?Ba(e,o+1,a?i.call(a,r):i(r)):_l(e,o+1)}function yl(e,t,n,i,r,a,o){var s=t+n;return Ha(e,s,r,a)?Ba(e,s+2,o?i.call(o,r,a):i(r,a)):_l(e,s+2)}function bl(e,t){var n,i=He(),r=e+20;i.firstCreatePass?(n=function(e,t){if(t)for(var n=t.length-1;n>=0;n--){var i=t[n];if(e===i.name)return i}throw new m("302","The pipe '".concat(e,"' could not be found!"))}(t,i.pipeRegistry),i.data[r]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(r,n.onDestroy)):n=i.data[r];var a=n.factory||(n.factory=ve(n.type)),o=D(Ga);try{var s=Mt(!1),l=a();return Mt(s),function(e,t,n,i){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=i}(i,Ve(),r,l),l}finally{D(o)}}function kl(e,t,n){var i=e+20,r=Ve(),a=De(r,i);return Ol(r,wl(r,i)?gl(r,Ze(),t,a.transform,n,a):a.transform(n))}function Cl(e,t,n,i){var r=e+20,a=Ve(),o=De(a,r);return Ol(a,wl(a,r)?yl(a,Ze(),t,o.transform,n,i,o):o.transform(n,i))}function wl(e,t){return e[1].data[t].pure}function Ol(e,t){return Fa.isWrapped(t)&&(t=Fa.unwrap(t),e[Je()]=pr),t}function Sl(e){return function(t){setTimeout(e,void 0,t)}}var xl=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return _classCallCheck(this,n),(e=t.call(this)).__isAsync=i,e}return _createClass(n,[{key:"emit",value:function(e){_get(_getPrototypeOf(n.prototype),"next",this).call(this,e)}},{key:"subscribe",value:function(e,t,i){var a,o,s,l=e,c=t||function(){return null},u=i;if(e&&"object"==typeof e){var h=e;l=null===(a=h.next)||void 0===a?void 0:a.bind(h),c=null===(o=h.error)||void 0===o?void 0:o.bind(h),u=null===(s=h.complete)||void 0===s?void 0:s.bind(h)}this.__isAsync&&(c=Sl(c),l&&(l=Sl(l)),u&&(u=Sl(u)));var f=_get(_getPrototypeOf(n.prototype),"subscribe",this).call(this,{next:l,error:c,complete:u});return e instanceof r.a&&e.add(f),f}}]),n}(i.a);function El(){return this._results[ja()]()}var Tl=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];_classCallCheck(this,e),this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var n=ja(),i=e.prototype;i[n]||(i[n]=El)}return _createClass(e,[{key:"changes",get:function(){return this._changes||(this._changes=new xl)}},{key:"get",value:function(e){return this._results[e]}},{key:"map",value:function(e){return this._results.map(e)}},{key:"filter",value:function(e){return this._results.filter(e)}},{key:"find",value:function(e){return this._results.find(e)}},{key:"reduce",value:function(e,t){return this._results.reduce(e,t)}},{key:"forEach",value:function(e){this._results.forEach(e)}},{key:"some",value:function(e){return this._results.some(e)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(e,t){this.dirty=!1;var n=on(e);(this._changesDetected=!function(e,t,n){if(e.length!==t.length)return!1;for(var i=0;i<e.length;i++){var r=e[i],a=t[i];if(n&&(r=n(r),a=n(a)),a!==r)return!1}return!0}(this._results,n,t))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}},{key:"notifyOnChanges",value:function(){!this._changes||!this._changesDetected&&this._emitDistinctChangesOnly||this._changes.emit(this)}},{key:"setDirty",value:function(){this.dirty=!0}},{key:"destroy",value:function(){this.changes.complete(),this.changes.unsubscribe()}}]),e}(),Al=function(){function e(t){_classCallCheck(this,e),this.queryList=t,this.matches=null}return _createClass(e,[{key:"clone",value:function(){return new e(this.queryList)}},{key:"setDirty",value:function(){this.queryList.setDirty()}}]),e}(),Rl=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];_classCallCheck(this,e),this.queries=t}return _createClass(e,[{key:"createEmbeddedView",value:function(t){var n=t.queries;if(null!==n){for(var i=null!==t.contentQueries?t.contentQueries[0]:n.length,r=[],a=0;a<i;a++){var o=n.getByIndex(a);r.push(this.queries[o.indexInDeclarationView].clone())}return new e(r)}return null}},{key:"insertView",value:function(e){this.dirtyQueriesWithMatches(e)}},{key:"detachView",value:function(e){this.dirtyQueriesWithMatches(e)}},{key:"dirtyQueriesWithMatches",value:function(e){for(var t=0;t<this.queries.length;t++)null!==Yl(e,t).matches&&this.queries[t].setDirty()}}]),e}(),Dl=function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;_classCallCheck(this,e),this.predicate=t,this.flags=n,this.read=i},Pl=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];_classCallCheck(this,e),this.queries=t}return _createClass(e,[{key:"elementStart",value:function(e,t){for(var n=0;n<this.queries.length;n++)this.queries[n].elementStart(e,t)}},{key:"elementEnd",value:function(e){for(var t=0;t<this.queries.length;t++)this.queries[t].elementEnd(e)}},{key:"embeddedTView",value:function(t){for(var n=null,i=0;i<this.length;i++){var r=null!==n?n.length:0,a=this.getByIndex(i).embeddedTView(t,r);a&&(a.indexInDeclarationView=i,null!==n?n.push(a):n=[a])}return null!==n?new e(n):null}},{key:"template",value:function(e,t){for(var n=0;n<this.queries.length;n++)this.queries[n].template(e,t)}},{key:"getByIndex",value:function(e){return this.queries[e]}},{key:"length",get:function(){return this.queries.length}},{key:"track",value:function(e){this.queries.push(e)}}]),e}(),Il=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;_classCallCheck(this,e),this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return _createClass(e,[{key:"elementStart",value:function(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}},{key:"elementEnd",value:function(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(e,t){this.elementStart(e,t)}},{key:"embeddedTView",value:function(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}},{key:"isApplyingToNode",value:function(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){for(var t=this._declarationNodeIndex,n=e.parent;null!==n&&8&n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(e,t){var n=this.metadata.predicate;if(Array.isArray(n))for(var i=0;i<n.length;i++){var r=n[i];this.matchTNodeWithReadOption(e,t,Ml(t,r)),this.matchTNodeWithReadOption(e,t,qt(t,e,r,!1,!1))}else n===Qs?4&t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,qt(t,e,n,!1,!1))}},{key:"matchTNodeWithReadOption",value:function(e,t,n){if(null!==n){var i=this.metadata.read;if(null!==i)if(i===_s||i===tl||i===Qs&&4&t.type)this.addMatch(t.index,-2);else{var r=qt(t,e,i,!1,!1);null!==r&&this.addMatch(t.index,r)}else this.addMatch(t.index,n)}}},{key:"addMatch",value:function(e,t){null===this.matches?this.matches=[e,t]:this.matches.push(e,t)}}]),e}();function Ml(e,t){var n=e.localNames;if(null!==n)for(var i=0;i<n.length;i+=2)if(n[i]===t)return n[i+1];return null}function Ll(e,t,n,i){return-1===n?function(e,t){return 11&e.type?vs(e,t):4&e.type?Zs(e,t):null}(t,e):-2===n?function(e,t,n){return n===_s?vs(t,e):n===Qs?Zs(t,e):n===tl?al(t,e):void 0}(e,t,i):Gt(e,e[1],n,t)}function jl(e,t,n,i){var r=t[19].queries[i];if(null===r.matches){for(var a=e.data,o=n.matches,s=[],l=0;l<o.length;l+=2){var c=o[l];s.push(c<0?null:Ll(t,a[c],o[l+1],n.metadata.read))}r.matches=s}return r.matches}function Fl(e,t,n,i){var r=e.queries.getByIndex(n),a=r.matches;if(null!==a)for(var o=jl(e,t,r,n),s=0;s<a.length;s+=2){var l=a[s];if(l>0)i.push(o[s/2]);else{for(var c=a[s+1],u=t[-l],h=10;h<u.length;h++){var f=u[h];f[17]===f[3]&&Fl(f[1],f,c,i)}if(null!==u[9])for(var d=u[9],p=0;p<d.length;p++){var v=d[p];Fl(v[1],v,c,i)}}}return i}function Nl(e){var t=Ve(),n=He(),i=it();rt(i+1);var r=Yl(n,i);if(e.dirty&&Me(t)===(2==(2&r.metadata.flags))){if(null===r.matches)e.reset([]);else{var a=r.crossesNgTemplate?Fl(n,t,i,[]):jl(n,t,r,i);e.reset(a,gs),e.notifyOnChanges()}return!0}return!1}function Ul(e,t,n){var i=He();i.firstCreatePass&&(zl(i,new Dl(e,t,n),-1),2==(2&t)&&(i.staticViewQueries=!0)),Hl(i,Ve(),t)}function Bl(e,t,n,i){var r=He();if(r.firstCreatePass){var a=Ye();zl(r,new Dl(t,n,i),a.index),function(e,t){var n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(r,e),2==(2&n)&&(r.staticContentQueries=!0)}Hl(r,Ve(),n)}function Vl(){return e=Ve(),t=it(),e[19].queries[t].queryList;var e,t}function Hl(e,t,n){var i=new Tl(4==(4&n));jr(e,t,i,i.destroy),null===t[19]&&(t[19]=new Rl),t[19].queries.push(new Al(i))}function zl(e,t,n){null===e.queries&&(e.queries=new Pl),e.queries.track(new Il(t,n))}function Yl(e,t){return e.queries.getByIndex(t)}function Wl(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:R.Default,t=Ys(!0);if(null!=t||e&R.Optional)return t;y("ChangeDetectorRef")}var Kl=new nn("Application Initializer"),ql=function(){var e=function(){function e(t){var n=this;_classCallCheck(this,e),this.appInits=t,this.resolve=ps,this.reject=ps,this.initialized=!1,this.done=!1,this.donePromise=new Promise(function(e,t){n.resolve=e,n.reject=t})}return _createClass(e,[{key:"runInitializers",value:function(){var e=this;if(!this.initialized){var t=[],n=function(){e.done=!0,e.resolve()};if(this.appInits)for(var i=0;i<this.appInits.length;i++){var r=this.appInits[i]();ao(r)&&t.push(r)}Promise.all(t).then(function(){n()}).catch(function(t){e.reject(t)}),0===t.length&&n(),this.initialized=!0}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(bn(Kl,8))},e.\u0275prov=b({token:e,factory:e.\u0275fac}),e}(),Gl=new nn("AppId"),Ql={provide:Gl,useFactory:function(){return"".concat(Xl()).concat(Xl()).concat(Xl())},deps:[]};function Xl(){return String.fromCharCode(97+Math.floor(25*Math.random()))}var Zl=new nn("Platform Initializer"),Jl=new nn("Platform ID"),$l=new nn("appBootstrapListener"),ec=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"log",value:function(e){console.log(e)}},{key:"warn",value:function(e){console.warn(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=b({token:e,factory:e.\u0275fac}),e}(),tc=new nn("LocaleId"),nc=new nn("DefaultCurrencyCode"),ic=function e(t,n){_classCallCheck(this,e),this.ngModuleFactory=t,this.componentFactories=n},rc=function(e){return new pl(e)},ac=rc,oc=function(e){return Promise.resolve(rc(e))},sc=function(e){var t=rc(e),n=Ti(le(e).declarations).reduce(function(e,t){var n=se(t);return n&&e.push(new ul(n)),e},[]);return new ic(t,n)},lc=sc,cc=function(e){return Promise.resolve(sc(e))},uc=function(){var e=function(){function e(){_classCallCheck(this,e),this.compileModuleSync=ac,this.compileModuleAsync=oc,this.compileModuleAndAllComponentsSync=lc,this.compileModuleAndAllComponentsAsync=cc}return _createClass(e,[{key:"clearCache",value:function(){}},{key:"clearCacheFor",value:function(e){}},{key:"getModuleId",value:function(e){}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=b({token:e,factory:e.\u0275fac}),e}(),hc=Promise.resolve(0);function fc(e){"undefined"==typeof Zone?hc.then(function(){e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}var dc=function(){function e(t){var n,i,r=t.enableLongStackTrace,a=void 0!==r&&r,o=t.shouldCoalesceEventChangeDetection,s=void 0!==o&&o,l=t.shouldCoalesceRunChangeDetection,c=void 0!==l&&l;if(_classCallCheck(this,e),this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new xl(!1),this.onMicrotaskEmpty=new xl(!1),this.onStable=new xl(!1),this.onError=new xl(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),a&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=!c&&s,this.shouldCoalesceRunChangeDetection=c,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){var e=B.requestAnimationFrame,t=B.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){var n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);var i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,i=function(){!function(e){-1===e.lastRequestAnimationFrameId&&(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(B,function(){e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",function(){e.lastRequestAnimationFrameId=-1,mc(e),vc(e)},void 0,function(){},function(){})),e.fakeTopEventTask.invoke()}),mc(e))}(n)},(n=this)._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(e,t,r,a,o,s){try{return _c(n),e.invokeTask(r,a,o,s)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===a.type||n.shouldCoalesceRunChangeDetection)&&i(),gc(n)}},onInvoke:function(e,t,r,a,o,s,l){try{return _c(n),e.invoke(r,a,o,s,l)}finally{n.shouldCoalesceRunChangeDetection&&i(),gc(n)}},onHasTask:function(e,t,i,r){e.hasTask(i,r),t===i&&("microTask"==r.change?(n._hasPendingMicrotasks=r.microTask,mc(n),vc(n)):"macroTask"==r.change&&(n.hasPendingMacrotasks=r.macroTask))},onHandleError:function(e,t,i,r){return e.handleError(i,r),n.runOutsideAngular(function(){return n.onError.emit(r)}),!1}})}return _createClass(e,[{key:"run",value:function(e,t,n){return this._inner.run(e,t,n)}},{key:"runTask",value:function(e,t,n,i){var r=this._inner,a=r.scheduleEventTask("NgZoneEvent: "+i,e,pc,ps,ps);try{return r.runTask(a,t,n)}finally{r.cancelTask(a)}}},{key:"runGuarded",value:function(e,t,n){return this._inner.runGuarded(e,t,n)}},{key:"runOutsideAngular",value:function(e){return this._outer.run(e)}}],[{key:"isInAngularZone",value:function(){return!0===Zone.current.get("isAngularZone")}},{key:"assertInAngularZone",value:function(){if(!e.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}},{key:"assertNotInAngularZone",value:function(){if(e.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}}]),e}(),pc={};function vc(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 mc(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function _c(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function gc(e){e._nesting--,vc(e)}var yc=function(){function e(){_classCallCheck(this,e),this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new xl,this.onMicrotaskEmpty=new xl,this.onStable=new xl,this.onError=new xl}return _createClass(e,[{key:"run",value:function(e,t,n){return e.apply(t,n)}},{key:"runGuarded",value:function(e,t,n){return e.apply(t,n)}},{key:"runOutsideAngular",value:function(e){return e()}},{key:"runTask",value:function(e,t,n,i){return e.apply(t,n)}}]),e}(),bc=function(){var e=function(){function e(t){var n=this;_classCallCheck(this,e),this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(function(){n.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}return _createClass(e,[{key:"_watchAngularEvents",value: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(){dc.assertNotInAngularZone(),fc(function(){e._isZoneStable=!0,e._runCallbacksIfReady()})}})})}},{key:"increasePendingRequestCount",value:function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}},{key:"decreasePendingRequestCount",value:function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}},{key:"isStable",value:function(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}},{key:"_runCallbacksIfReady",value:function(){var e=this;if(this.isStable())fc(function(){for(;0!==e._callbacks.length;){var t=e._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(e._didWork)}e._didWork=!1});else{var t=this.getPendingTasks();this._callbacks=this._callbacks.filter(function(e){return!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)}),this._didWork=!0}}},{key:"getPendingTasks",value:function(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(function(e){return{source:e.source,creationLocation:e.creationLocation,data:e.data}}):[]}},{key:"addCallback",value:function(e,t,n){var i=this,r=-1;t&&t>0&&(r=setTimeout(function(){i._callbacks=i._callbacks.filter(function(e){return e.timeoutId!==r}),e(i._didWork,i.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:n})}},{key:"whenStable",value:function(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(e,t,n){return[]}}]),e}();return e.\u0275fac=function(t){return new(t||e)(bn(dc))},e.\u0275prov=b({token:e,factory:e.\u0275fac}),e}(),kc=function(){var e=function(){function e(){_classCallCheck(this,e),this._applications=new Map,Oc.addToWindow(this)}return _createClass(e,[{key:"registerApplication",value:function(e,t){this._applications.set(e,t)}},{key:"unregisterApplication",value:function(e){this._applications.delete(e)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(e){return this._applications.get(e)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Oc.findTestabilityInTree(this,e,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=b({token:e,factory:e.\u0275fac}),e}();function Cc(e){Oc=e}var wc,Oc=new(function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"addToWindow",value:function(e){}},{key:"findTestabilityInTree",value:function(e,t,n){return null}}]),e}()),Sc=!0,xc=!1;function Ec(){return xc=!0,Sc}function Tc(){if(xc)throw new Error("Cannot enable prod mode after platform setup.");Sc=!1}var Ac=new nn("AllowMultipleToken"),Rc=function e(t,n){_classCallCheck(this,e),this.name=t,this.token=n};function Dc(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i="Platform: ".concat(t),r=new nn(i);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=Pc();if(!a||a.injector.get(Ac,!1))if(e)e(n.concat(t).concat({provide:r,useValue:!0}));else{var o=n.concat(t).concat({provide:r,useValue:!0},{provide:va,useValue:"platform"});!function(e){if(wc&&!wc.destroyed&&!wc.injector.get(Ac,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");wc=e.get(Ic);var t=e.get(Zl,null);t&&t.forEach(function(e){return e()})}(Ta.create({providers:o,name:i}))}return function(e){var t=Pc();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}(r)}}function Pc(){return wc&&!wc.destroyed?wc:null}var Ic=function(){var e=function(){function e(t){_classCallCheck(this,e),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return _createClass(e,[{key:"bootstrapModuleFactory",value:function(e,t){var n,i,r=this,a=(n=t?t.ngZone:void 0,i={ngZoneEventCoalescing:t&&t.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:t&&t.ngZoneRunCoalescing||!1},"noop"===n?new yc:("zone.js"===n?void 0:n)||new dc({enableLongStackTrace:Ec(),shouldCoalesceEventChangeDetection:!!(null==i?void 0:i.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==i?void 0:i.ngZoneRunCoalescing)})),o=[{provide:dc,useValue:a}];return a.run(function(){var t=Ta.create({providers:o,parent:r.injector,name:e.moduleType.name}),n=e.create(t),i=n.injector.get(Ci,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return a.runOutsideAngular(function(){var e=a.onError.subscribe({next:function(e){i.handleError(e)}});n.onDestroy(function(){jc(r._modules,n),e.unsubscribe()})}),function(e,t,i){try{var a=((o=n.injector.get(ql)).runInitializers(),o.donePromise.then(function(){return ns(n.injector.get(tc,"en-US")||"en-US"),r._moduleDoBootstrap(n),n}));return ao(a)?a.catch(function(n){throw t.runOutsideAngular(function(){return e.handleError(n)}),n}):a}catch(s){throw t.runOutsideAngular(function(){return e.handleError(s)}),s}var o}(i,a)})}},{key:"bootstrapModule",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=Mc({},n);return function(e,t,n){var i=new pl(n);return Promise.resolve(i)}(0,0,e).then(function(e){return t.bootstrapModuleFactory(e,i)})}},{key:"_moduleDoBootstrap",value:function(e){var t=e.injector.get(Lc);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module ".concat(u(e.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.'));e.instance.ngDoBootstrap(t)}this._modules.push(e)}},{key:"onDestroy",value:function(e){this._destroyListeners.push(e)}},{key:"injector",get:function(){return this._injector}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(e){return e.destroy()}),this._destroyListeners.forEach(function(e){return e()}),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}]),e}();return e.\u0275fac=function(t){return new(t||e)(bn(Ta))},e.\u0275prov=b({token:e,factory:e.\u0275fac}),e}();function Mc(e,t){return Array.isArray(t)?t.reduce(Mc,e):Object.assign(Object.assign({},e),t)}var Lc=function(){var e=function(){function e(t,n,i,r,l){var c=this;_classCallCheck(this,e),this._zone=t,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=r,this._initStatus=l,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){c._zone.run(function(){c.tick()})}});var u=new a.a(function(e){c._stable=c._zone.isStable&&!c._zone.hasPendingMacrotasks&&!c._zone.hasPendingMicrotasks,c._zone.runOutsideAngular(function(){e.next(c._stable),e.complete()})}),h=new a.a(function(e){var t;c._zone.runOutsideAngular(function(){t=c._zone.onStable.subscribe(function(){dc.assertNotInAngularZone(),fc(function(){c._stable||c._zone.hasPendingMacrotasks||c._zone.hasPendingMicrotasks||(c._stable=!0,e.next(!0))})})});var n=c._zone.onUnstable.subscribe(function(){dc.assertInAngularZone(),c._stable&&(c._stable=!1,c._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=Object(o.a)(u,h.pipe(Object(s.a)()))}return _createClass(e,[{key:"bootstrap",value:function(e,t){var n,i=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=e instanceof hs?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var r=n.isBoundToModule?void 0:this._injector.get(Js),a=n.create(Ta.NULL,[],t||n.selector,r),o=a.location.nativeElement,s=a.injector.get(bc,null),l=s&&a.injector.get(kc);return s&&l&&l.registerApplication(o,s),a.onDestroy(function(){i.detachView(a.hostView),jc(i.components,a),l&&l.unregisterApplication(o)}),this._loadComponent(a),a}},{key:"tick",value:function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var t,n=_createForOfIteratorHelper(this._views);try{for(n.s();!(t=n.n()).done;){t.value.detectChanges()}}catch(i){n.e(i)}finally{n.f()}}catch(r){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(r)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(e){var t=e;this._views.push(t),t.attachToAppRef(this)}},{key:"detachView",value:function(e){var t=e;jc(this._views,t),t.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get($l,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(e){return e.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),e}();return e.\u0275fac=function(t){return new(t||e)(bn(dc),bn(Ta),bn(Ci),bn(ds),bn(ql))},e.\u0275prov=b({token:e,factory:e.\u0275fac}),e}();function jc(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Fc=function e(){_classCallCheck(this,e)},Nc=function e(){_classCallCheck(this,e)},Uc={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Bc=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this._compiler=t,this._config=n||Uc}return _createClass(e,[{key:"load",value:function(e){return this.loadAndCompile(e)}},{key:"loadAndCompile",value:function(e){var t=this,i=_slicedToArray(e.split("#"),2),r=i[0],a=i[1];return void 0===a&&(a="default"),n("zn8P")(r).then(function(e){return e[a]}).then(function(e){return Vc(e,r,a)}).then(function(e){return t._compiler.compileModuleAsync(e)})}},{key:"loadFactory",value:function(e){var t=_slicedToArray(e.split("#"),2),i=t[0],r=t[1],a="NgFactory";return void 0===r&&(r="default",a=""),n("zn8P")(this._config.factoryPathPrefix+i+this._config.factoryPathSuffix).then(function(e){return e[r+a]}).then(function(e){return Vc(e,i,r)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(bn(uc),bn(Nc,8))},e.\u0275prov=b({token:e,factory:e.\u0275fac}),e}();function Vc(e,t,n){if(!e)throw new Error("Cannot find '".concat(n,"' in '").concat(t,"'"));return e}var Hc=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(zs)),zc=function(e){return null},Yc=Dc(null,"core",[{provide:Jl,useValue:"unknown"},{provide:Ic,deps:[Ta]},{provide:kc,deps:[]},{provide:ec,deps:[]}]),Wc=[{provide:Lc,useClass:Lc,deps:[dc,Ta,Ci,ds,ql]},{provide:cl,deps:[dc],useFactory:function(e){var t=[];return e.onStable.subscribe(function(){for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:ql,useClass:ql,deps:[[new En,Kl]]},{provide:uc,useClass:uc,deps:[]},Ql,{provide:js,useFactory:function(){return Ks},deps:[]},{provide:Ns,useFactory:function(){return qs},deps:[]},{provide:tc,useFactory:function(e){return ns(e=e||"undefined"!=typeof $localize&&$localize.locale||"en-US"),e},deps:[[new xn(tc),new En,new An]]},{provide:nc,useValue:"USD"}],Kc=function(){var e=function e(t){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)(bn(Lc))},e.\u0275mod=ne({type:e}),e.\u0275inj=k({providers:Wc}),e}()},gRHU:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("2fFW"),r=n("NJ4a"),a={closed:!0,next:function(e){},error:function(e){if(i.a.useDeprecatedSynchronousErrorHandling)throw e;Object(r.a)(e)},complete:function(){}}},jZKg:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("HDdC"),r=n("quSY");function a(e,t){return new i.a(function(n){var i=new r.a,a=0;return i.add(t.schedule(function(){a!==e.length?(n.next(e[a++]),n.closed||i.add(this.schedule())):n.complete()})),i})}},jtHE:function(e,t,n){"use strict";n.d(t,"a",function(){return c});var i=n("XNiG"),r=n("qgXg"),a=n("quSY"),o=n("pxpQ"),s=n("9ppp"),l=n("Ylt2"),c=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,a=arguments.length>2?arguments[2]:void 0;return _classCallCheck(this,n),(e=t.call(this)).scheduler=a,e._events=[],e._infiniteTimeWindow=!1,e._bufferSize=i<1?1:i,e._windowTime=r<1?1:r,r===Number.POSITIVE_INFINITY?(e._infiniteTimeWindow=!0,e.next=e.nextInfiniteTimeWindow):e.next=e.nextTimeWindow,e}return _createClass(n,[{key:"nextInfiniteTimeWindow",value:function(e){if(!this.isStopped){var t=this._events;t.push(e),t.length>this._bufferSize&&t.shift()}_get(_getPrototypeOf(n.prototype),"next",this).call(this,e)}},{key:"nextTimeWindow",value:function(e){this.isStopped||(this._events.push(new u(this._getNow(),e)),this._trimBufferThenGetEvents()),_get(_getPrototypeOf(n.prototype),"next",this).call(this,e)}},{key:"_subscribe",value:function(e){var t,n=this._infiniteTimeWindow,i=n?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,c=i.length;if(this.closed)throw new s.a;if(this.isStopped||this.hasError?t=a.a.EMPTY:(this.observers.push(e),t=new l.a(this,e)),r&&e.add(e=new o.a(e,r)),n)for(var u=0;u<c&&!e.closed;u++)e.next(i[u]);else for(var h=0;h<c&&!e.closed;h++)e.next(i[h].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),t}},{key:"_getNow",value:function(){return(this.scheduler||r.a).now()}},{key:"_trimBufferThenGetEvents",value:function(){for(var e=this._getNow(),t=this._bufferSize,n=this._windowTime,i=this._events,r=i.length,a=0;a<r&&!(e-i[a].time<n);)a++;return r>t&&(a=Math.max(a,r-t)),a>0&&i.splice(0,a),i}}]),n}(i.a),u=function e(t,n){_classCallCheck(this,e),this.time=t,this.value=n}},kJWO:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i="function"==typeof Symbol&&Symbol.observable||"@@observable"},l7GE:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"notifyNext",value:function(e,t,n,i,r){this.destination.next(t)}},{key:"notifyError",value:function(e,t){this.destination.error(e)}},{key:"notifyComplete",value:function(e){this.destination.complete()}}]),n}(n("7o/Q").a)},l7P3:function(e,t,n){"use strict";n.d(t,"a",function(){return B}),n.d(t,"b",function(){return y}),n.d(t,"c",function(){return g}),n.d(t,"d",function(){return w}),n.d(t,"e",function(){return Q}),n.d(t,"f",function(){return G}),n.d(t,"g",function(){return $}),n.d(t,"h",function(){return ne}),n.d(t,"i",function(){return se}),n.d(t,"j",function(){return Ne}),n.d(t,"k",function(){return Ue}),n.d(t,"l",function(){return Fe}),n.d(t,"m",function(){return X}),n.d(t,"n",function(){return z}),n.d(t,"o",function(){return p}),n.d(t,"p",function(){return me}),n.d(t,"q",function(){return pe}),n.d(t,"r",function(){return ue}),n.d(t,"s",function(){return v}),n.d(t,"t",function(){return ce});var i=n("fXoL"),r=n("2Vo4"),a=n("HDdC"),o=n("XNiG"),s=n("qgXg"),l=n("pxpQ"),c=n("zp1y"),u=n("Kqap"),h=n("lJxs"),f=n("/uUt"),d={};function p(e,t){if(d[e]=(d[e]||0)+1,"function"==typeof t)return m(e,function(){return Object.assign(Object.assign({},t.apply(void 0,arguments)),{type:e})});switch(t?t._as:"empty"){case"empty":return m(e,function(){return{type:e}});case"props":return m(e,function(t){return Object.assign(Object.assign({},t),{type:e})});default:throw new Error("Unexpected config.")}}function v(){return{_as:"props",_p:void 0}}function m(e,t){return Object.defineProperty(t,"type",{value:e,writable:!1})}var _,g="@ngrx/store/init",y=((_=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.call(this,{type:g})}return _createClass(n,[{key:"next",value:function(e){if("function"==typeof e)throw new TypeError("\n        Dispatch expected an object, instead it received a function.\n        If you're using the createAction function, make sure to invoke the function\n        before dispatching the action. For example, someAction should be someAction().");if(void 0===e)throw new TypeError("Actions must be objects");if(void 0===e.type)throw new TypeError("Actions must have a type property");_get(_getPrototypeOf(n.prototype),"next",this).call(this,e)}},{key:"complete",value:function(){}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(n.prototype),"complete",this).call(this)}}]),n}(r.a)).\u0275fac=function(e){return new(e||_)},_.\u0275prov=i.Kb({token:_,factory:_.\u0275fac}),_),b=[y],k=new i.s("@ngrx/store Internal Root Guard"),C=new i.s("@ngrx/store Internal Initial State"),w=new i.s("@ngrx/store Initial State"),O=new i.s("@ngrx/store Reducer Factory"),S=new i.s("@ngrx/store Internal Reducer Factory Provider"),x=new i.s("@ngrx/store Initial Reducers"),E=new i.s("@ngrx/store Internal Initial Reducers"),T=new i.s("@ngrx/store Store Features"),A=new i.s("@ngrx/store Internal Store Reducers"),R=new i.s("@ngrx/store Internal Feature Reducers"),D=new i.s("@ngrx/store Internal Feature Configs"),P=new i.s("@ngrx/store Internal Store Features"),I=new i.s("@ngrx/store Internal Feature Reducers Token"),M=new i.s("@ngrx/store Feature Reducers"),L=new i.s("@ngrx/store User Provided Meta Reducers"),j=new i.s("@ngrx/store Meta Reducers"),F=new i.s("@ngrx/store Internal Resolved Meta Reducers"),N=new i.s("@ngrx/store User Runtime Checks Config"),U=new i.s("@ngrx/store Internal User Runtime Checks Config"),B=new i.s("@ngrx/store Internal Runtime Checks"),V=new i.s("@ngrx/store Check if Action types are unique");function H(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.keys(e),i={},r=0;r<n.length;r++){var a=n[r];"function"==typeof e[a]&&(i[a]=e[a])}var o=Object.keys(i);return function(e,n){e=void 0===e?t:e;for(var r=!1,a={},s=0;s<o.length;s++){var l=o[s],c=e[l],u=(0,i[l])(c,n);a[l]=u,r=r||u!==c}return r?a:e}}function z(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){if(0===t.length)return e;var n=t[t.length-1];return t.slice(0,-1).reduceRight(function(e,t){return t(e)},n(e))}}function Y(e,t){return Array.isArray(t)&&t.length>0&&(e=z.apply(null,[].concat(_toConsumableArray(t),[e]))),function(t,n){var i=e(t);return function(e,t){return i(e=void 0===e?n:e,t)}}}var W,K,q,G=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(a.a),Q=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(y),X="@ngrx/store/update-reducers",Z=((W=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a){var o;return _classCallCheck(this,n),(o=t.call(this,a(r,i))).dispatcher=e,o.initialState=i,o.reducers=r,o.reducerFactory=a,o}return _createClass(n,[{key:"addFeature",value:function(e){this.addFeatures([e])}},{key:"addFeatures",value:function(e){var t=e.reduce(function(e,t){var n=t.reducers,i=t.reducerFactory,r=t.metaReducers,a=t.initialState,o=t.key,s="function"==typeof n?function(e){var t=Array.isArray(e)&&e.length>0?z.apply(void 0,_toConsumableArray(e)):function(e){return e};return function(e,n){return e=t(e),function(t,i){return e(t=void 0===t?n:t,i)}}}(r)(n,a):Y(i,r)(n,a);return e[o]=s,e},{});this.addReducers(t)}},{key:"removeFeature",value:function(e){this.removeFeatures([e])}},{key:"removeFeatures",value:function(e){this.removeReducers(e.map(function(e){return e.key}))}},{key:"addReducer",value:function(e,t){this.addReducers(_defineProperty({},e,t))}},{key:"addReducers",value:function(e){this.reducers=Object.assign(Object.assign({},this.reducers),e),this.updateReducers(Object.keys(e))}},{key:"removeReducer",value:function(e){this.removeReducers([e])}},{key:"removeReducers",value:function(e){var t=this;e.forEach(function(e){var n,i;t.reducers=(n=t.reducers,i=e,Object.keys(n).filter(function(e){return e!==i}).reduce(function(e,t){return Object.assign(e,_defineProperty({},t,n[t]))},{}))}),this.updateReducers(e)}},{key:"updateReducers",value:function(e){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:X,features:e})}},{key:"ngOnDestroy",value:function(){this.complete()}}]),n}(r.a)).\u0275fac=function(e){return new(e||W)(i.Yb(Q),i.Yb(w),i.Yb(x),i.Yb(O))},W.\u0275prov=i.Kb({token:W,factory:W.\u0275fac}),W),J=[Z,{provide:G,useExisting:Z},{provide:Q,useExisting:y}],$=((K=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"ngOnDestroy",value:function(){this.complete()}}]),n}(o.a)).\u0275fac=function(e){return ee(e||K)},K.\u0275prov=i.Kb({token:K,factory:K.\u0275fac}),K),ee=i.Wb($),te=[$],ne=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(a.a),ie=((q=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a){var o;_classCallCheck(this,n),o=t.call(this,a);var h={state:a},f=e.pipe(Object(l.b)(s.b)).pipe(Object(c.a)(i)).pipe(Object(u.a)(re,h));return o.stateSubscription=f.subscribe(function(e){var t=e.state,n=e.action;o.next(t),r.next(n)}),o}return _createClass(n,[{key:"ngOnDestroy",value:function(){this.stateSubscription.unsubscribe(),this.complete()}}]),n}(r.a)).\u0275fac=function(e){return new(e||q)(i.Yb(y),i.Yb(G),i.Yb($),i.Yb(w))},q.\u0275prov=i.Kb({token:q,factory:q.\u0275fac}),q.INIT=g,q);function re(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{state:void 0},t=arguments.length>1?arguments[1]:void 0,n=_slicedToArray(t,2),i=n[0],r=n[1],a=e.state;return{state:r(a,i),action:i}}var ae,oe=[ie,{provide:ne,useExisting:ie}],se=((ae=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this)).actionsObserver=i,a.reducerManager=r,a.source=e,a}return _createClass(n,[{key:"select",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return ce.call.apply(ce,[null,e].concat(n))(this)}},{key:"lift",value:function(e){var t=new n(this,this.actionsObserver,this.reducerManager);return t.operator=e,t}},{key:"dispatch",value:function(e){this.actionsObserver.next(e)}},{key:"next",value:function(e){this.actionsObserver.next(e)}},{key:"error",value:function(e){this.actionsObserver.error(e)}},{key:"complete",value:function(){this.actionsObserver.complete()}},{key:"addReducer",value:function(e,t){this.reducerManager.addReducer(e,t)}},{key:"removeReducer",value:function(e){this.reducerManager.removeReducer(e)}}]),n}(a.a)).\u0275fac=function(e){return new(e||ae)(i.Yb(ne),i.Yb(y),i.Yb(Z))},ae.\u0275prov=i.Kb({token:ae,factory:ae.\u0275fac}),ae),le=[se];function ce(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];return function(n){var r;if("string"==typeof e){var a=[t].concat(i).filter(Boolean);r=n.pipe((function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t.length;if(0===i)throw new Error("list of properties cannot be empty.");return function(e){return Object(h.a)(function(e,t){return function(n){for(var i=n,r=0;r<t;r++){var a=null!=i?i[e[r]]:void 0;if(void 0===a)return;i=a}return i}}(t,i))(e)}}).apply(void 0,[e].concat(_toConsumableArray(a))))}else{if("function"!=typeof e)throw new TypeError("Unexpected type '".concat(typeof e,"' in select operator, expected 'string' or 'function'"));r=n.pipe(Object(h.a)(function(n){return e(n,t)}))}return r.pipe(Object(f.a)())}}function ue(){return!1}function he(e,t){return e===t}function fe(e,t,n){for(var i=0;i<e.length;i++)if(!n(e[i],t[i]))return!0;return!1}function de(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:he,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:he,r=null,a=null;return{memoized:function(){if(void 0!==t)return t.result;if(!r)return a=e.apply(null,arguments),r=arguments,a;if(!fe(arguments,r,n))return a;var o=e.apply(null,arguments);return r=arguments,i(a,o)?a:(a=o,o)},reset:function(){r=null,a=null},setResult:function(e){t={result:e}},clearResult:function(){t=void 0}}}function pe(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{stateFn:ve};return function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];var a=i;if(Array.isArray(a[0])){var o=a,s=_toArray(o),l=s[0],c=s.slice(1);a=[].concat(_toConsumableArray(l),_toConsumableArray(c))}var u=a.slice(0,a.length-1),h=a[a.length-1],f=u.filter(function(e){return e.release&&"function"==typeof e.release}),d=e(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return h.apply(null,t)}),p=de(function(e,n){return t.stateFn.apply(null,[e,u,n,d])});return Object.assign(p.memoized,{release:function(){p.reset(),d.reset(),f.forEach(function(e){return e.release()})},projector:d.memoized,setResult:p.setResult,clearResult:p.clearResult})}}(de).apply(void 0,arguments)}function ve(e,t,n,i){if(void 0===n){var r=t.map(function(t){return t(e)});return i.memoized.apply(null,r)}var a=t.map(function(t){return t(e,n)});return i.memoized.apply(null,[].concat(_toConsumableArray(a),[n]))}function me(e){return pe(function(t){var n=t[e];return!Object(i.Y)()||e in t||console.warn('@ngrx/store: The feature name "'.concat(e,"\" does not exist in the state, therefore createFeatureSelector cannot access it.  Be sure it is imported in a loaded module using StoreModule.forRoot('").concat(e,"', ...) or StoreModule.forFeature('").concat(e,"', ...).  If the default state is intended to be undefined, as is the case with router state, this development-only warning message can be ignored.")),n},function(e){return e})}var _e="https://ngrx.io/guide/store/configuration/runtime-checks";function ge(e){return void 0===e}function ye(e){return null===e}function be(e){return Array.isArray(e)}function ke(e){return"object"==typeof e&&null!==e}function Ce(e){return"function"==typeof e}function we(e){Object.freeze(e);var t=Ce(e);return Object.getOwnPropertyNames(e).forEach(function(n){if(!n.startsWith("\u0275")&&function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(e,n)&&(!t||"caller"!==n&&"callee"!==n&&"arguments"!==n)){var i=e[n];!ke(i)&&!Ce(i)||Object.isFrozen(i)||we(i)}}),e}function Oe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(ge(e)||ye(e))&&0===t.length?{path:["root"],value:e}:Object.keys(e).reduce(function(n,i){if(n)return n;var r=e[i];return function(e){return Ce(e)&&e.hasOwnProperty("\u0275cmp")}(r)?n:!(ge(r)||ye(r)||function(e){return"number"==typeof e}(r)||function(e){return"boolean"==typeof e}(r)||function(e){return"string"==typeof e}(r)||be(r))&&(function(e){if(!function(e){return ke(e)&&!be(e)}(e))return!1;var t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}(r)?Oe(r,[].concat(_toConsumableArray(t),[i])):{path:[].concat(_toConsumableArray(t),[i]),value:r})},!1)}function Se(e,t){if(!1!==e){var n=e.path.join("."),i=new Error("Detected unserializable ".concat(t,' at "').concat(n,'". ').concat(_e,"#strict").concat(t,"serializability"));throw i.value=e.value,i.unserializablePath=n,i}}function xe(e){return Object(i.Y)()?Object.assign({strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!0,strictActionImmutability:!0,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1},e):{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!1,strictActionImmutability:!1,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1}}function Ee(e){var t=e.strictActionSerializability,n=e.strictStateSerializability;return function(e){return t||n?function(e,t){return function(n,i){t.action(i)&&Se(Oe(i),"action");var r=e(n,i);return t.state()&&Se(Oe(r),"state"),r}}(e,{action:function(e){return t&&!Ae(e)},state:function(){return n}}):e}}function Te(e){var t=e.strictActionImmutability,n=e.strictStateImmutability;return function(e){return t||n?function(e,t){return function(n,i){var r=t.action(i)?we(i):i,a=e(n,r);return t.state()?we(a):a}}(e,{action:function(e){return t&&!Ae(e)},state:function(){return n}}):e}}function Ae(e){return e.type.startsWith("@ngrx")}function Re(e){var t=e.strictActionWithinNgZone;return function(e){return t?function(e,t){return function(n,r){if(t.action(r)&&!i.B.isInAngularZone())throw new Error("Action '".concat(r.type,"' running outside NgZone. ").concat(_e,"#strictactionwithinngzone"));return e(n,r)}}(e,{action:function(e){return t&&!Ae(e)}}):e}}function De(){return[{provide:V,multi:!0,deps:[B],useFactory:Ie}]}function Pe(e){return e}function Ie(e){if(e.strictActionTypeUniqueness){var t=Object.entries(d).filter(function(e){return _slicedToArray(e,2)[1]>1}).map(function(e){return _slicedToArray(e,1)[0]});if(t.length)throw new Error("Action types are registered more than once, ".concat(t.map(function(e){return'"'.concat(e,'"')}).join(", "),". ").concat(_e,"#strictactiontypeuniqueness"))}}var Me,Le,je,Fe=((je=function e(t,n,i,r,a,o){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||je)(i.Yb(y),i.Yb(G),i.Yb($),i.Yb(se),i.Yb(k,8),i.Yb(V,8))},je.\u0275mod=i.Mb({type:je}),je.\u0275inj=i.Lb({}),je),Ne=((Le=function(){function e(t,n,i,r,a){_classCallCheck(this,e),this.features=t,this.featureReducers=n,this.reducerManager=i;var o=t.map(function(e,t){var i=n.shift()[t];return Object.assign(Object.assign({},e),{reducers:i,initialState:ze(e.initialState)})});i.addFeatures(o)}return _createClass(e,[{key:"ngOnDestroy",value:function(){this.reducerManager.removeFeatures(this.features)}}]),e}()).\u0275fac=function(e){return new(e||Le)(i.Yb(P),i.Yb(M),i.Yb(Z),i.Yb(Fe),i.Yb(V,8))},Le.\u0275mod=i.Mb({type:Le}),Le.\u0275inj=i.Lb({}),Le),Ue=((Me=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"forRoot",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{ngModule:Fe,providers:[{provide:k,useFactory:We,deps:[[se,new i.C,new i.M]]},{provide:C,useValue:n.initialState},{provide:w,useFactory:ze,deps:[C]},{provide:E,useValue:e},{provide:A,useExisting:e instanceof i.s?e:E},{provide:x,deps:[i.t,E,[new i.q(A)]],useFactory:Be},{provide:L,useValue:n.metaReducers?n.metaReducers:[]},{provide:F,deps:[j,L],useFactory:Ye},{provide:S,useValue:n.reducerFactory?n.reducerFactory:H},{provide:O,deps:[S,F],useFactory:Y},b,J,te,oe,le,(t=n.runtimeChecks,[{provide:U,useValue:t},{provide:N,useFactory:Pe,deps:[U]},{provide:B,deps:[N],useFactory:xe},{provide:j,multi:!0,deps:[B],useFactory:Te},{provide:j,multi:!0,deps:[B],useFactory:Ee},{provide:j,multi:!0,deps:[B],useFactory:Re}]),De()]}}},{key:"forFeature",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return{ngModule:Ne,providers:[{provide:D,multi:!0,useValue:e instanceof Object?{}:n},{provide:T,multi:!0,useValue:{key:e instanceof Object?e.name:e,reducerFactory:n instanceof i.s||!n.reducerFactory?H:n.reducerFactory,metaReducers:n instanceof i.s||!n.metaReducers?[]:n.metaReducers,initialState:n instanceof i.s||!n.initialState?void 0:n.initialState}},{provide:P,deps:[i.t,D,T],useFactory:Ve},{provide:R,multi:!0,useValue:e instanceof Object?e.reducer:t},{provide:I,multi:!0,useExisting:t instanceof i.s?t:R},{provide:M,multi:!0,deps:[i.t,R,[new i.q(I)]],useFactory:He},De()]}}}]),e}()).\u0275fac=function(e){return new(e||Me)},Me.\u0275mod=i.Mb({type:Me}),Me.\u0275inj=i.Lb({}),Me);function Be(e,t){return t instanceof i.s?e.get(t):t}function Ve(e,t,n){return n.map(function(n,r){if(t[r]instanceof i.s){var a=e.get(t[r]);return{key:n.key,reducerFactory:a.reducerFactory?a.reducerFactory:H,metaReducers:a.metaReducers?a.metaReducers:[],initialState:a.initialState}}return n})}function He(e,t){return t.map(function(t){return t instanceof i.s?e.get(t):t})}function ze(e){return"function"==typeof e?e():e}function Ye(e,t){return e.concat(t)}function We(e){if(e)throw new TypeError("StoreModule.forRoot() called twice. Feature modules should use StoreModule.forFeature() instead.");return"guarded"}},lJxs:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("7o/Q");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))}}var a=function(){function e(t,n){_classCallCheck(this,e),this.project=t,this.thisArg=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new o(e,this.project,this.thisArg))}}]),e}(),o=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this,e)).project=i,a.count=0,a.thisArg=r||_assertThisInitialized(a),a}return _createClass(n,[{key:"_next",value:function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(i.a)},mCNh:function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return a});var i=n("SpAZ");function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return a(t)}function a(e){return 0===e.length?i.a:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}}},mlxB:function(e,t,n){"use strict";function i(e){return e instanceof Date&&!isNaN(+e)}n.d(t,"a",function(){return i})},n6bG:function(e,t,n){"use strict";function i(e){return"function"==typeof e}n.d(t,"a",function(){return i})},ngJS:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=function(e){return function(t){for(var n=0,i=e.length;n<i&&!t.closed;n++)t.next(e[n]);t.complete()}}},pLZG:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("7o/Q");function r(e,t){return function(n){return n.lift(new a(e,t))}}var a=function(){function e(t,n){_classCallCheck(this,e),this.predicate=t,this.thisArg=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new o(e,this.predicate,this.thisArg))}}]),e}(),o=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this,e)).predicate=i,a.thisArg=r,a.count=0,a}return _createClass(n,[{key:"_next",value:function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)}}]),n}(i.a)},pxpQ:function(e,t,n){"use strict";n.d(t,"b",function(){return a}),n.d(t,"a",function(){return s});var i=n("7o/Q"),r=n("WMd4");function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(n){return n.lift(new o(e,t))}}var o=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;_classCallCheck(this,e),this.scheduler=t,this.delay=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new s(e,this.scheduler,this.delay))}}]),e}(),s=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return _classCallCheck(this,n),(r=t.call(this,e)).scheduler=i,r.delay=a,r}return _createClass(n,[{key:"scheduleMessage",value:function(e){this.destination.add(this.scheduler.schedule(n.dispatch,this.delay,new l(e,this.destination)))}},{key:"_next",value:function(e){this.scheduleMessage(r.a.createNext(e))}},{key:"_error",value:function(e){this.scheduleMessage(r.a.createError(e)),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleMessage(r.a.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){var t=e.notification,n=e.destination;t.observe(n),this.unsubscribe()}}]),n}(i.a),l=function e(t,n){_classCallCheck(this,e),this.notification=t,this.destination=n}},qgXg:function(e,t,n){"use strict";n.d(t,"b",function(){return r}),n.d(t,"a",function(){return a});var i=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e,i)).scheduler=e,r.work=i,r}return _createClass(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t>0?_get(_getPrototypeOf(n.prototype),"schedule",this).call(this,e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}},{key:"execute",value:function(e,t){return t>0||this.closed?_get(_getPrototypeOf(n.prototype),"execute",this).call(this,e,t):this._execute(e,t)}},{key:"requestAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0||null===i&&this.delay>0?_get(_getPrototypeOf(n.prototype),"requestAsyncId",this).call(this,e,t,i):e.flush(this)}}]),n}(n("3N8a").a),r=new(function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(n("IjjT").a))(i),a=r},quSY:function(e,t,n){"use strict";n.d(t,"a",function(){return c});var i,r,a=n("DH7j"),o=n("XoHu"),s=n("n6bG"),l=function(){function e(e){return Error.call(this),this.message=e?"".concat(e.length," errors occurred during unsubscription:\n").concat(e.map(function(e,t){return"".concat(t+1,") ").concat(e.toString())}).join("\n  ")):"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e}(),c=((r=function(){function e(t){_classCallCheck(this,e),this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}return _createClass(e,[{key:"unsubscribe",value:function(){var t;if(!this.closed){var n=this._parentOrParents,i=this._ctorUnsubscribe,r=this._unsubscribe,c=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(var h=0;h<n.length;++h)n[h].remove(this);if(Object(s.a)(r)){i&&(this._unsubscribe=void 0);try{r.call(this)}catch(v){t=v instanceof l?u(v.errors):[v]}}if(Object(a.a)(c))for(var f=-1,d=c.length;++f<d;){var p=c[f];if(Object(o.a)(p))try{p.unsubscribe()}catch(v){t=t||[],v instanceof l?t=t.concat(u(v.errors)):t.push(v)}}if(t)throw new l(t)}}},{key:"add",value:function(t){var n=t;if(!t)return e.EMPTY;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){var i=n;(n=new e)._subscriptions=[i]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}var r=n._parentOrParents;if(null===r)n._parentOrParents=this;else if(r instanceof e){if(r===this)return n;n._parentOrParents=[r,this]}else{if(-1!==r.indexOf(this))return n;r.push(this)}var a=this._subscriptions;return null===a?this._subscriptions=[n]:a.push(n),n}},{key:"remove",value:function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}}}]),e}()).EMPTY=((i=new r).closed=!0,i),r);function u(e){return e.reduce(function(e,t){return e.concat(t instanceof l?t.errors:t)},[])}},tS1D:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("D0XW"),r=function(){function e(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return e.prototype=Object.create(Error.prototype),e}(),a=n("mlxB"),o=n("zx2A"),s=function(){function e(t,n,i,r){_classCallCheck(this,e),this.waitFor=t,this.absoluteTimeout=n,this.withObservable=i,this.scheduler=r}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new l(e,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}]),e}(),l=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,o){var s;return _classCallCheck(this,n),(s=t.call(this,e)).absoluteTimeout=i,s.waitFor=r,s.withObservable=a,s.scheduler=o,s.scheduleTimeout(),s}return _createClass(n,[{key:"scheduleTimeout",value:function(){var e=this.action;e?this.action=e.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(n.dispatchTimeout,this.waitFor,this))}},{key:"_next",value:function(e){this.absoluteTimeout||this.scheduleTimeout(),_get(_getPrototypeOf(n.prototype),"_next",this).call(this,e)}},{key:"_unsubscribe",value:function(){this.action=void 0,this.scheduler=null,this.withObservable=null}}],[{key:"dispatchTimeout",value:function(e){var t=e.withObservable;e._unsubscribeAndRecycle(),e.add(Object(o.c)(t,new o.a(e)))}}]),n}(o.b),c=n("z6cu");function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.a;return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.a;return function(i){var r=Object(a.a)(e),o=r?+e-n.now():Math.abs(e);return i.lift(new s(o,r,t,n))}}(e,Object(c.a)(new r),t)}},w1tV:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("EQ5u"),r=n("x+ZX"),a=n("XNiG");function o(){return new a.a}function s(){return function(e){return Object(r.a)()((t=o,function(e){var n;n="function"==typeof t?t:function(){return t};var r=Object.create(e,i.b);return r.source=e,r.subjectFactory=n,r})(e));var t}}},"x+ZX":function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("7o/Q");function r(){return function(e){return e.lift(new a(e))}}var a=function(){function e(t){_classCallCheck(this,e),this.connectable=t}return _createClass(e,[{key:"call",value:function(e,t){var n=this.connectable;n._refCount++;var i=new o(e,n),r=t.subscribe(i);return i.closed||(i.connection=n.connect()),r}}]),e}(),o=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).connectable=i,r}return _createClass(n,[{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,i=e._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}else this.connection=null}}]),n}(i.a)},yCtX:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("HDdC"),r=n("ngJS"),a=n("jZKg");function o(e,t){return t?Object(a.a)(e,t):new i.a(Object(r.a)(e))}},"z+Ro":function(e,t,n){"use strict";function i(e){return e&&"function"==typeof e.schedule}n.d(t,"a",function(){return i})},z6cu:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("HDdC");function r(e,t){return new i.a(t?function(n){return t.schedule(a,0,{error:e,subscriber:n})}:function(t){return t.error(e)})}function a(e){var t=e.error;e.subscriber.error(t)}},zP0r:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("7o/Q");function r(e){return function(t){return t.lift(new a(e))}}var a=function(){function e(t){_classCallCheck(this,e),this.total=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new o(e,this.total))}}]),e}(),o=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).total=i,r.count=0,r}return _createClass(n,[{key:"_next",value:function(e){++this.count>this.total&&this.destination.next(e)}}]),n}(i.a)},zUnb:function(e,t,n){"use strict";n.r(t);var i=n("fXoL"),r=null;function a(){return r}var o,s=new i.s("DocumentToken"),l=((o=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||o)},o.\u0275prov=Object(i.Kb)({factory:c,token:o,providedIn:"platform"}),o);function c(){return Object(i.Yb)(f)}var u,h=new i.s("Location Initialized"),f=((u=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this))._doc=e,i._init(),i}return _createClass(n,[{key:"_init",value:function(){this.location=a().getLocation(),this._history=a().getHistory()}},{key:"getBaseHrefFromDOM",value:function(){return a().getBaseHref(this._doc)}},{key:"onPopState",value:function(e){a().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}},{key:"onHashChange",value:function(e){a().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(e){this.location.pathname=e}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}},{key:"pushState",value:function(e,t,n){d()?this._history.pushState(e,t,n):this.location.hash=n}},{key:"replaceState",value:function(e,t,n){d()?this._history.replaceState(e,t,n):this.location.hash=n}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"getState",value:function(){return this._history.state}}]),n}(l)).\u0275fac=function(e){return new(e||u)(i.Yb(s))},u.\u0275prov=Object(i.Kb)({factory:p,token:u,providedIn:"platform"}),u);function d(){return!!window.history.pushState}function p(){return new f(Object(i.Yb)(s))}function v(e,t){if(0==e.length)return t;if(0==t.length)return e;var n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function m(e){var t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function _(e){return e&&"?"!==e[0]?"?"+e:e}var g,y=((g=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||g)},g.\u0275prov=Object(i.Kb)({factory:b,token:g,providedIn:"root"}),g);function b(e){var t=Object(i.Yb)(s).location;return new S(Object(i.Yb)(l),t&&t.origin||"")}var k,C,w,O=new i.s("appBaseHref"),S=((w=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;if(_classCallCheck(this,n),(r=t.call(this))._platformLocation=e,null==i&&(i=r._platformLocation.getBaseHrefFromDOM()),null==i)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=i,_possibleConstructorReturn(r)}return _createClass(n,[{key:"onPopState",value:function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(e){return v(this._baseHref,e)}},{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._platformLocation.pathname+_(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?"".concat(t).concat(n):t}},{key:"pushState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+_(i));this._platformLocation.pushState(e,t,r)}},{key:"replaceState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+_(i));this._platformLocation.replaceState(e,t,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(y)).\u0275fac=function(e){return new(e||w)(i.Yb(l),i.Yb(O,8))},w.\u0275prov=i.Kb({token:w,factory:w.\u0275fac}),w),x=((C=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this))._platformLocation=e,r._baseHref="",null!=i&&(r._baseHref=i),r}return _createClass(n,[{key:"onPopState",value:function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}},{key:"prepareExternalUrl",value:function(e){var t=v(this._baseHref,e);return t.length>0?"#"+t:t}},{key:"pushState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+_(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(e,t,r)}},{key:"replaceState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+_(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(y)).\u0275fac=function(e){return new(e||C)(i.Yb(l),i.Yb(O,8))},C.\u0275prov=i.Kb({token:C,factory:C.\u0275fac}),C),E=((k=function(){function e(t,n){var r=this;_classCallCheck(this,e),this._subject=new i.o,this._urlChangeListeners=[],this._platformStrategy=t;var a=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=m(A(a)),this._platformStrategy.onPopState(function(e){r._subject.emit({url:r.path(!0),pop:!0,state:e.state,type:e.type})})}return _createClass(e,[{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(e))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(e+_(t))}},{key:"normalize",value:function(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,A(t)))}},{key:"prepareExternalUrl",value:function(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}},{key:"go",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+_(t)),n)}},{key:"replaceState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+_(t)),n)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"onUrlChange",value:function(e){var t=this;this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(e){t._notifyUrlChangeListeners(e.url,e.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(n){return n(e,t)})}},{key:"subscribe",value:function(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}}]),e}()).\u0275fac=function(e){return new(e||k)(i.Yb(y),i.Yb(l))},k.normalizeQueryParams=_,k.joinWithSlash=v,k.stripTrailingSlash=m,k.\u0275prov=Object(i.Kb)({factory:T,token:k,providedIn:"root"}),k);function T(){return new E(Object(i.Yb)(y),Object(i.Yb)(l))}function A(e){return e.replace(/\/index.html$/,"")}var R=function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e}({}),D=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({}),P=function(e){return e[e.Decimal=0]="Decimal",e[e.Group=1]="Group",e[e.List=2]="List",e[e.PercentSign=3]="PercentSign",e[e.PlusSign=4]="PlusSign",e[e.MinusSign=5]="MinusSign",e[e.Exponential=6]="Exponential",e[e.SuperscriptingExponent=7]="SuperscriptingExponent",e[e.PerMille=8]="PerMille",e[e[1/0]=9]="Infinity",e[e.NaN=10]="NaN",e[e.TimeSeparator=11]="TimeSeparator",e[e.CurrencyDecimal=12]="CurrencyDecimal",e[e.CurrencyGroup=13]="CurrencyGroup",e}({});function I(e,t){var n=Object(i.mb)(e),r=n[i.db.NumberSymbols][t];if(void 0===r){if(t===P.CurrencyDecimal)return n[i.db.NumberSymbols][P.Decimal];if(t===P.CurrencyGroup)return n[i.db.NumberSymbols][P.Group]}return r}function M(e,t){return Object(i.mb)(e)[i.db.NumberFormats][t]}var L=i.pb,j=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function F(e,t,n,i,r,a){var o=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s="",l=!1;if(isFinite(e)){var c=function(e){var t,n,i,r,a,o=Math.abs(e)+"",s=0;for((n=o.indexOf("."))>-1&&(o=o.replace(".","")),(i=o.search(/e/i))>0?(n<0&&(n=i),n+=+o.slice(i+1),o=o.substring(0,i)):n<0&&(n=o.length),i=0;"0"===o.charAt(i);i++);if(i===(a=o.length))t=[0],n=1;else{for(a--;"0"===o.charAt(a);)a--;for(n-=i,t=[],r=0;i<=a;i++,r++)t[r]=Number(o.charAt(i))}return n>22&&(t=t.splice(0,21),s=n-1,n=1),{digits:t,exponent:s,integerLen:n}}(e);o&&(c=function(e){if(0===e.digits[0])return e;var t=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(0===t?e.digits.push(0,0):1===t&&e.digits.push(0),e.integerLen+=2),e}(c));var u=t.minInt,h=t.minFrac,f=t.maxFrac;if(a){var d=a.match(j);if(null===d)throw new Error("".concat(a," is not a valid digit info"));var p=d[1],v=d[3],m=d[5];null!=p&&(u=U(p)),null!=v&&(h=U(v)),null!=m?f=U(m):null!=v&&h>f&&(f=h)}!function(e,t,n){if(t>n)throw new Error("The minimum number of digits after fraction (".concat(t,") is higher than the maximum (").concat(n,")."));var i=e.digits,r=i.length-e.integerLen,a=Math.min(Math.max(t,r),n),o=a+e.integerLen,s=i[o];if(o>0){i.splice(Math.max(e.integerLen,o));for(var l=o;l<i.length;l++)i[l]=0}else{r=Math.max(0,r),e.integerLen=1,i.length=Math.max(1,o=a+1),i[0]=0;for(var c=1;c<o;c++)i[c]=0}if(s>=5)if(o-1<0){for(var u=0;u>o;u--)i.unshift(0),e.integerLen++;i.unshift(1),e.integerLen++}else i[o-1]++;for(;r<Math.max(0,a);r++)i.push(0);var h=0!==a,f=t+e.integerLen,d=i.reduceRight(function(e,t,n,i){return i[n]=(t+=e)<10?t:t-10,h&&(0===i[n]&&n>=f?i.pop():h=!1),t>=10?1:0},0);d&&(i.unshift(d),e.integerLen++)}(c,h,f);var _=c.digits,g=c.integerLen,y=c.exponent,b=[];for(l=_.every(function(e){return!e});g<u;g++)_.unshift(0);for(;g<0;g++)_.unshift(0);g>0?b=_.splice(g,_.length):(b=_,_=[0]);var k=[];for(_.length>=t.lgSize&&k.unshift(_.splice(-t.lgSize,_.length).join(""));_.length>t.gSize;)k.unshift(_.splice(-t.gSize,_.length).join(""));_.length&&k.unshift(_.join("")),s=k.join(I(n,i)),b.length&&(s+=I(n,r)+b.join("")),y&&(s+=I(n,P.Exponential)+"+"+y)}else s=I(n,P.Infinity);return s=e<0&&!l?t.negPre+s+t.negSuf:t.posPre+s+t.posSuf}function N(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-",n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=e.split(";"),r=i[0],a=i[1],o=-1!==r.indexOf(".")?r.split("."):[r.substring(0,r.lastIndexOf("0")+1),r.substring(r.lastIndexOf("0")+1)],s=o[0],l=o[1]||"";n.posPre=s.substr(0,s.indexOf("#"));for(var c=0;c<l.length;c++){var u=l.charAt(c);"0"===u?n.minFrac=n.maxFrac=c+1:"#"===u?n.maxFrac=c+1:n.posSuf+=u}var h=s.split(",");if(n.gSize=h[1]?h[1].length:0,n.lgSize=h[2]||h[1]?(h[2]||h[1]).length:0,a){var f=r.length-n.posPre.length-n.posSuf.length,d=a.indexOf("#");n.negPre=a.substr(0,d).replace(/'/g,""),n.negSuf=a.substr(d+f).replace(/'/g,"")}else n.negPre=t+n.posPre,n.negSuf=n.posSuf;return n}function U(e){var t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t}var B,V=function e(){_classCallCheck(this,e)},H=((B=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this)).locale=e,i}return _createClass(n,[{key:"getPluralCategory",value:function(e,t){switch(L(t||this.locale)(e)){case D.Zero:return"zero";case D.One:return"one";case D.Two:return"two";case D.Few:return"few";case D.Many:return"many";default:return"other"}}}]),n}(V)).\u0275fac=function(e){return new(e||B)(i.Yb(i.w))},B.\u0275prov=i.Kb({token:B,factory:B.\u0275fac}),B);function z(e,t){t=encodeURIComponent(t);var n,i=_createForOfIteratorHelper(e.split(";"));try{for(i.s();!(n=i.n()).done;){var r=n.value,a=r.indexOf("="),o=_slicedToArray(-1==a?[r,""]:[r.slice(0,a),r.slice(a+1)],2),s=o[0],l=o[1];if(s.trim()===t)return decodeURIComponent(l)}}catch(c){i.e(c)}finally{i.f()}return null}var Y,W,K,q=((Y=function(){function e(t,n,i,r){_classCallCheck(this,e),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=i,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return _createClass(e,[{key:"klass",set:function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Object(i.sb)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}},{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var 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)}}},{key:"_applyKeyValueChanges",value: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)})}},{key:"_applyIterableChanges",value: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 ".concat(Object(i.yb)(e.item)));t._toggleClass(e.item,!0)}),e.forEachRemovedItem(function(e){return t._toggleClass(e.item,!1)})}},{key:"_applyClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!0)}):Object.keys(e).forEach(function(n){return t._toggleClass(n,!!e[n])}))}},{key:"_removeClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!1)}):Object.keys(e).forEach(function(e){return t._toggleClass(e,!1)}))}},{key:"_toggleClass",value:function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach(function(e){t?n._renderer.addClass(n._ngEl.nativeElement,e):n._renderer.removeClass(n._ngEl.nativeElement,e)})}}]),e}()).\u0275fac=function(e){return new(e||Y)(i.Ob(i.u),i.Ob(i.v),i.Ob(i.l),i.Ob(i.G))},Y.\u0275dir=i.Jb({type:Y,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),Y),G=function(){function e(t,n,i,r){_classCallCheck(this,e),this.$implicit=t,this.ngForOf=n,this.index=i,this.count=r}return _createClass(e,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),e}(),Q=((W=function(){function e(t,n,i){_classCallCheck(this,e),this._viewContainer=t,this._template=n,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return _createClass(e,[{key:"ngForOf",set:function(e){this._ngForOf=e,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(e){this._trackByFn=e}},{key:"ngForTemplate",set:function(e){e&&(this._template=e)}},{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(i){throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat((t=e).name||typeof t,"'. NgFor only supports binding to Iterables such as Arrays."))}}var t;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}},{key:"_applyChanges",value:function(e){var t=this,n=[];e.forEachOperation(function(e,i,r){if(null==e.previousIndex){var a=t._viewContainer.createEmbeddedView(t._template,new G(null,t._ngForOf,-1,-1),null===r?void 0:r),o=new X(e,a);n.push(o)}else if(null==r)t._viewContainer.remove(null===i?void 0:i);else if(null!==i){var s=t._viewContainer.get(i);t._viewContainer.move(s,r);var l=new X(e,s);n.push(l)}});for(var i=0;i<n.length;i++)this._perViewChange(n[i].view,n[i].record);for(var r=0,a=this._viewContainer.length;r<a;r++){var o=this._viewContainer.get(r);o.context.index=r,o.context.count=a,o.context.ngForOf=this._ngForOf}e.forEachIdentityChange(function(e){t._viewContainer.get(e.currentIndex).context.$implicit=e.item})}},{key:"_perViewChange",value:function(e,t){e.context.$implicit=t.item}}],[{key:"ngTemplateContextGuard",value:function(e,t){return!0}}]),e}()).\u0275fac=function(e){return new(e||W)(i.Ob(i.S),i.Ob(i.O),i.Ob(i.u))},W.\u0275dir=i.Jb({type:W,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),W),X=function e(t,n){_classCallCheck(this,e),this.record=t,this.view=n},Z=((K=function(){function e(t,n){_classCallCheck(this,e),this._viewContainer=t,this._context=new J,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=n}return _createClass(e,[{key:"ngIf",set:function(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}},{key:"ngIfThen",set:function(e){$("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}},{key:"ngIfElse",set:function(e){$("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}},{key:"_updateView",value:function(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}}],[{key:"ngTemplateContextGuard",value:function(e,t){return!0}}]),e}()).\u0275fac=function(e){return new(e||K)(i.Ob(i.S),i.Ob(i.O))},K.\u0275dir=i.Jb({type:K,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),K),J=function e(){_classCallCheck(this,e),this.$implicit=null,this.ngIf=null};function $(e,t){if(t&&!t.createEmbeddedView)throw new Error("".concat(e," must be a TemplateRef, but received '").concat(Object(i.yb)(t),"'."))}var ee,te,ne,ie,re=function(){function e(t,n){_classCallCheck(this,e),this._viewContainerRef=t,this._templateRef=n,this._created=!1}return _createClass(e,[{key:"create",value:function(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}},{key:"destroy",value:function(){this._created=!1,this._viewContainerRef.clear()}},{key:"enforceState",value:function(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}}]),e}(),ae=((ie=function(){function e(){_classCallCheck(this,e),this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return _createClass(e,[{key:"ngSwitch",set:function(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}},{key:"_addCase",value:function(){return this._caseCount++}},{key:"_addDefault",value:function(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}},{key:"_matchCase",value: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}},{key:"_updateDefaultCases",value: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}()).\u0275fac=function(e){return new(e||ie)},ie.\u0275dir=i.Jb({type:ie,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),ie),oe=((ne=function(){function e(t,n,i){_classCallCheck(this,e),this.ngSwitch=i,i._addCase(),this._view=new re(t,n)}return _createClass(e,[{key:"ngDoCheck",value:function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}]),e}()).\u0275fac=function(e){return new(e||ne)(i.Ob(i.S),i.Ob(i.O),i.Ob(ae,1))},ne.\u0275dir=i.Jb({type:ne,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),ne),se=((te=function e(t,n,i){_classCallCheck(this,e),i._addDefault(new re(t,n))}).\u0275fac=function(e){return new(e||te)(i.Ob(i.S),i.Ob(i.O),i.Ob(ae,1))},te.\u0275dir=i.Jb({type:te,selectors:[["","ngSwitchDefault",""]]}),te),le=((ee=function(){function e(t,n,i){_classCallCheck(this,e),this._ngEl=t,this._differs=n,this._renderer=i,this._ngStyle=null,this._differ=null}return _createClass(e,[{key:"ngStyle",set:function(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}},{key:"ngDoCheck",value:function(){if(this._differ){var e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}},{key:"_setStyle",value:function(e,t){var n=_slicedToArray(e.split("."),2),i=n[0],r=n[1];null!=(t=null!=t&&r?"".concat(t).concat(r):t)?this._renderer.setStyle(this._ngEl.nativeElement,i,t):this._renderer.removeStyle(this._ngEl.nativeElement,i)}},{key:"_applyChanges",value: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}()).\u0275fac=function(e){return new(e||ee)(i.Ob(i.l),i.Ob(i.v),i.Ob(i.G))},ee.\u0275dir=i.Jb({type:ee,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),ee);function ce(e,t){return Error("InvalidPipeArgument: '".concat(t,"' for pipe '").concat(Object(i.yb)(e),"'"))}var ue,he,fe,de=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"createSubscription",value:function(e,t){return e.subscribe({next:t,error:function(e){throw e}})}},{key:"dispose",value:function(e){e.unsubscribe()}},{key:"onDestroy",value:function(e){e.unsubscribe()}}]),e}(),pe=new(function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"createSubscription",value:function(e,t){return e.then(t,function(e){throw e})}},{key:"dispose",value:function(e){}},{key:"onDestroy",value:function(e){}}]),e}()),ve=new de,me=((fe=function(){function e(t){_classCallCheck(this,e),this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}return _createClass(e,[{key:"ngOnDestroy",value:function(){this._subscription&&this._dispose()}},{key:"transform",value:function(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}},{key:"_subscribe",value: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)})}},{key:"_selectStrategy",value:function(t){if(Object(i.ub)(t))return pe;if(Object(i.vb)(t))return ve;throw ce(e,t)}},{key:"_dispose",value:function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}},{key:"_updateLatestValue",value:function(e,t){e===this._obj&&(this._latestValue=t,this._ref.markForCheck())}}]),e}()).\u0275fac=function(e){return new(e||fe)(i.ac())},fe.\u0275pipe=i.Nb({name:"async",type:fe,pure:!1}),fe),_e=((he=function(){function e(t){_classCallCheck(this,e),this._locale=t}return _createClass(e,[{key:"transform",value:function(t,n,i){if(!ye(t))return null;i=i||this._locale;try{return function(e,t,n){return F(e,N(M(t,R.Decimal),I(t,P.MinusSign)),t,P.Group,P.Decimal,n)}(be(t),i,n)}catch(r){throw ce(e,r.message)}}}]),e}()).\u0275fac=function(e){return new(e||he)(i.Ob(i.w))},he.\u0275pipe=i.Nb({name:"number",type:he,pure:!0}),he),ge=((ue=function(){function e(t){_classCallCheck(this,e),this._locale=t}return _createClass(e,[{key:"transform",value:function(t,n,i){if(!ye(t))return null;i=i||this._locale;try{return function(e,t,n){return F(e,N(M(t,R.Percent),I(t,P.MinusSign)),t,P.Group,P.Decimal,n,!0).replace(new RegExp("%","g"),I(t,P.PercentSign))}(be(t),i,n)}catch(r){throw ce(e,r.message)}}}]),e}()).\u0275fac=function(e){return new(e||ue)(i.Ob(i.w))},ue.\u0275pipe=i.Nb({name:"percent",type:ue,pure:!0}),ue);function ye(e){return!(null==e||""===e||e!=e)}function be(e){if("string"==typeof e&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if("number"!=typeof e)throw new Error("".concat(e," is not a number"));return e}var ke,Ce=((ke=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||ke)},ke.\u0275mod=i.Mb({type:ke}),ke.\u0275inj=i.Lb({providers:[{provide:V,useClass:H}]}),ke);function we(e){return"browser"===e}function Oe(e){return"server"===e}var Se,xe=((Se=function e(){_classCallCheck(this,e)}).\u0275prov=Object(i.Kb)({token:Se,providedIn:"root",factory:function(){return new Ee(Object(i.Yb)(s),window)}}),Se),Ee=function(){function e(t,n){_classCallCheck(this,e),this.document=t,this.window=n,this.offset=function(){return[0,0]}}return _createClass(e,[{key:"setOffset",value:function(e){this.offset=Array.isArray(e)?function(){return e}:e}},{key:"getScrollPosition",value:function(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}},{key:"scrollToPosition",value:function(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}},{key:"scrollToAnchor",value:function(e){if(this.supportsScrolling()){var t=function(e,t){var n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if("function"==typeof e.createTreeWalker&&e.body&&(e.body.createShadowRoot||e.body.attachShadow))for(var i=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT),r=i.currentNode;r;){var a=r.shadowRoot;if(a){var o=a.getElementById(t)||a.querySelector('[name="'.concat(t,'"]'));if(o)return o}r=i.nextNode()}return null}(this.document,e);t&&(this.scrollToElement(t),this.attemptFocus(t))}}},{key:"setHistoryScrollRestoration",value:function(e){if(this.supportScrollRestoration()){var t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}},{key:"scrollToElement",value:function(e){var t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,i=t.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(n-r[0],i-r[1])}},{key:"attemptFocus",value:function(e){return e.focus(),this.document.activeElement===e}},{key:"supportScrollRestoration",value:function(){try{if(!this.supportsScrolling())return!1;var e=Te(this.window.history)||Te(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch(t){return!1}}},{key:"supportsScrolling",value:function(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(e){return!1}}}]),e}();function Te(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}var Ae,Re,De,Pe,Ie=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"getProperty",value:function(e,t){return e[t]}},{key:"log",value:function(e){window.console&&window.console.log&&window.console.log(e)}},{key:"logGroup",value:function(e){window.console&&window.console.group&&window.console.group(e)}},{key:"logGroupEnd",value:function(){window.console&&window.console.groupEnd&&window.console.groupEnd()}},{key:"onAndCancel",value:function(e,t,n){return e.addEventListener(t,n,!1),function(){e.removeEventListener(t,n,!1)}}},{key:"dispatchEvent",value:function(e,t){e.dispatchEvent(t)}},{key:"remove",value:function(e){return e.parentNode&&e.parentNode.removeChild(e),e}},{key:"getValue",value:function(e){return e.value}},{key:"createElement",value:function(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(e){return e.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(e){return e instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}},{key:"getHistory",value:function(){return window.history}},{key:"getLocation",value:function(){return window.location}},{key:"getBaseHref",value:function(e){var t,n=Me||(Me=document.querySelector("base"))?Me.getAttribute("href"):null;return null==n?null:(t=n,Ae||(Ae=document.createElement("a")),Ae.setAttribute("href",t),"/"===Ae.pathname.charAt(0)?Ae.pathname:"/"+Ae.pathname)}},{key:"resetBaseElement",value:function(){Me=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"performanceNow",value:function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}},{key:"supportsCookies",value:function(){return!0}},{key:"getCookie",value:function(e){return z(document.cookie,e)}}],[{key:"makeCurrent",value:function(){var e;e=new n,r||(r=e)}}]),n}(function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.call(this)}return _createClass(n,[{key:"supportsDOMEvents",value:function(){return!0}}]),n}(function(){return function e(){_classCallCheck(this,e)}}())),Me=null,Le=new i.s("TRANSITION_ID"),je=[{provide:i.d,useFactory:function(e,t,n){return function(){n.get(i.e).donePromise.then(function(){var n=a();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter(function(t){return t.getAttribute("ng-transition")===e}).forEach(function(e){return n.remove(e)})})}},deps:[Le,s,i.t],multi:!0}],Fe=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"addToWindow",value:function(e){i.rb.getAngularTestability=function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=e.findTestabilityInTree(t,n);if(null==i)throw new Error("Could not find testability for element.");return i},i.rb.getAllAngularTestabilities=function(){return e.getAllTestabilities()},i.rb.getAllAngularRootElements=function(){return e.getAllRootElements()},i.rb.frameworkStabilizers||(i.rb.frameworkStabilizers=[]),i.rb.frameworkStabilizers.push(function(e){var t=i.rb.getAllAngularTestabilities(),n=t.length,r=!1,a=function(t){r=r||t,0==--n&&e(r)};t.forEach(function(e){e.whenStable(a)})})}},{key:"findTestabilityInTree",value:function(e,t,n){if(null==t)return null;var i=e.getTestability(t);return null!=i?i:n?a().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}],[{key:"init",value:function(){Object(i.ab)(new e)}}]),e}(),Ne=new i.s("EventManagerPlugins"),Ue=((Re=function(){function e(t,n){var i=this;_classCallCheck(this,e),this._zone=n,this._eventNameToPlugin=new Map,t.forEach(function(e){return e.manager=i}),this._plugins=t.slice().reverse()}return _createClass(e,[{key:"addEventListener",value:function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}},{key:"addGlobalEventListener",value:function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,i=0;i<n.length;i++){var r=n[i];if(r.supports(e))return this._eventNameToPlugin.set(e,r),r}throw new Error("No event manager plugin found for event ".concat(e))}}]),e}()).\u0275fac=function(e){return new(e||Re)(i.Yb(Ne),i.Yb(i.B))},Re.\u0275prov=i.Kb({token:Re,factory:Re.\u0275fac}),Re),Be=function(){function e(t){_classCallCheck(this,e),this._doc=t}return _createClass(e,[{key:"addGlobalEventListener",value:function(e,t,n){var i=a().getGlobalEventTarget(this._doc,e);if(!i)throw new Error("Unsupported event target ".concat(i," for event ").concat(t));return this.addEventListener(i,t,n)}}]),e}(),Ve=((Pe=function(){function e(){_classCallCheck(this,e),this._stylesSet=new Set}return _createClass(e,[{key:"addStyles",value: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)}},{key:"onStylesAdded",value:function(e){}},{key:"getAllStyles",value:function(){return Array.from(this._stylesSet)}}]),e}()).\u0275fac=function(e){return new(e||Pe)},Pe.\u0275prov=i.Kb({token:Pe,factory:Pe.\u0275fac}),Pe),He=((De=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this))._doc=e,i._hostNodes=new Set,i._styleNodes=new Set,i._hostNodes.add(e.head),i}return _createClass(n,[{key:"_addStylesToHost",value:function(e,t){var n=this;e.forEach(function(e){var i=n._doc.createElement("style");i.textContent=e,n._styleNodes.add(t.appendChild(i))})}},{key:"addHost",value:function(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)}},{key:"removeHost",value:function(e){this._hostNodes.delete(e)}},{key:"onStylesAdded",value:function(e){var t=this;this._hostNodes.forEach(function(n){return t._addStylesToHost(e,n)})}},{key:"ngOnDestroy",value:function(){this._styleNodes.forEach(function(e){return a().remove(e)})}}]),n}(Ve)).\u0275fac=function(e){return new(e||De)(i.Yb(s))},De.\u0275prov=i.Kb({token:De,factory:De.\u0275fac}),De),ze={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/"},Ye=/%COMP%/g;function We(e,t,n){for(var i=0;i<t.length;i++){var r=t[i];Array.isArray(r)?We(e,r,n):(r=r.replace(Ye,e),n.push(r))}return n}function Ke(e){return function(t){if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}var qe,Ge,Qe,Xe,Ze,Je,$e=((qe=function(){function e(t,n,i){_classCallCheck(this,e),this.eventManager=t,this.sharedStylesHost=n,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new et(t)}return _createClass(e,[{key:"createRenderer",value:function(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case i.T.Emulated:var n=this.rendererByCompId.get(t.id);return n||(n=new tt(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n;case 1:case i.T.ShadowDom:return new nt(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){var r=We(t.id,t.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}},{key:"begin",value:function(){}},{key:"end",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||qe)(i.Yb(Ue),i.Yb(He),i.Yb(i.c))},qe.\u0275prov=i.Kb({token:qe,factory:qe.\u0275fac}),qe),et=function(){function e(t){_classCallCheck(this,e),this.eventManager=t,this.data=Object.create(null)}return _createClass(e,[{key:"destroy",value:function(){}},{key:"createElement",value:function(e,t){return t?document.createElementNS(ze[t]||t,e):document.createElement(e)}},{key:"createComment",value:function(e){return document.createComment(e)}},{key:"createText",value:function(e){return document.createTextNode(e)}},{key:"appendChild",value:function(e,t){e.appendChild(t)}},{key:"insertBefore",value:function(e,t,n){e&&e.insertBefore(t,n)}},{key:"removeChild",value:function(e,t){e&&e.removeChild(t)}},{key:"selectRootElement",value:function(e,t){var n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error('The selector "'.concat(e,'" did not match any elements'));return t||(n.textContent=""),n}},{key:"parentNode",value:function(e){return e.parentNode}},{key:"nextSibling",value:function(e){return e.nextSibling}},{key:"setAttribute",value:function(e,t,n,i){if(i){t=i+":"+t;var r=ze[i];r?e.setAttributeNS(r,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}},{key:"removeAttribute",value:function(e,t,n){if(n){var i=ze[n];i?e.removeAttributeNS(i,t):e.removeAttribute("".concat(n,":").concat(t))}else e.removeAttribute(t)}},{key:"addClass",value:function(e,t){e.classList.add(t)}},{key:"removeClass",value:function(e,t){e.classList.remove(t)}},{key:"setStyle",value:function(e,t,n,r){r&(i.I.DashCase|i.I.Important)?e.style.setProperty(t,n,r&i.I.Important?"important":""):e.style[t]=n}},{key:"removeStyle",value:function(e,t,n){n&i.I.DashCase?e.style.removeProperty(t):e.style[t]=""}},{key:"setProperty",value:function(e,t,n){e[t]=n}},{key:"setValue",value:function(e,t){e.nodeValue=t}},{key:"listen",value:function(e,t,n){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,Ke(n)):this.eventManager.addEventListener(e,t,Ke(n))}}]),e}(),tt=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a){var o;_classCallCheck(this,n),(o=t.call(this,e)).component=r;var s=We(a+"-"+r.id,r.styles,[]);return i.addStyles(s),o.contentAttr="_ngcontent-%COMP%".replace(Ye,a+"-"+r.id),o.hostAttr="_nghost-%COMP%".replace(Ye,a+"-"+r.id),o}return _createClass(n,[{key:"applyToHost",value:function(e){_get(_getPrototypeOf(n.prototype),"setAttribute",this).call(this,e,this.hostAttr,"")}},{key:"createElement",value:function(e,t){var i=_get(_getPrototypeOf(n.prototype),"createElement",this).call(this,e,t);return _get(_getPrototypeOf(n.prototype),"setAttribute",this).call(this,i,this.contentAttr,""),i}}]),n}(et),nt=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a){var o;_classCallCheck(this,n),(o=t.call(this,e)).sharedStylesHost=i,o.hostEl=r,o.shadowRoot=r.attachShadow({mode:"open"}),o.sharedStylesHost.addHost(o.shadowRoot);for(var s=We(a.id,a.styles,[]),l=0;l<s.length;l++){var c=document.createElement("style");c.textContent=s[l],o.shadowRoot.appendChild(c)}return o}return _createClass(n,[{key:"nodeOrShadowRoot",value:function(e){return e===this.hostEl?this.shadowRoot:e}},{key:"destroy",value:function(){this.sharedStylesHost.removeHost(this.shadowRoot)}},{key:"appendChild",value:function(e,t){return _get(_getPrototypeOf(n.prototype),"appendChild",this).call(this,this.nodeOrShadowRoot(e),t)}},{key:"insertBefore",value:function(e,t,i){return _get(_getPrototypeOf(n.prototype),"insertBefore",this).call(this,this.nodeOrShadowRoot(e),t,i)}},{key:"removeChild",value:function(e,t){return _get(_getPrototypeOf(n.prototype),"removeChild",this).call(this,this.nodeOrShadowRoot(e),t)}},{key:"parentNode",value:function(e){return this.nodeOrShadowRoot(_get(_getPrototypeOf(n.prototype),"parentNode",this).call(this,this.nodeOrShadowRoot(e)))}}]),n}(et),it=((Ge=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){return _classCallCheck(this,n),t.call(this,e)}return _createClass(n,[{key:"supports",value:function(e){return!0}},{key:"addEventListener",value:function(e,t,n){var i=this;return e.addEventListener(t,n,!1),function(){return i.removeEventListener(e,t,n)}}},{key:"removeEventListener",value:function(e,t,n){return e.removeEventListener(t,n)}}]),n}(Be)).\u0275fac=function(e){return new(e||Ge)(i.Yb(s))},Ge.\u0275prov=i.Kb({token:Ge,factory:Ge.\u0275fac}),Ge),rt=["alt","control","meta","shift"],at={"\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"},ot={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"},st={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},lt=((Ze=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){return _classCallCheck(this,n),t.call(this,e)}return _createClass(n,[{key:"supports",value:function(e){return null!=n.parseEventName(e)}},{key:"addEventListener",value:function(e,t,i){var r=n.parseEventName(t),o=n.eventCallback(r.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return a().onAndCancel(e,r.domEventName,o)})}}],[{key:"parseEventName",value:function(e){var t=e.toLowerCase().split("."),i=t.shift();if(0===t.length||"keydown"!==i&&"keyup"!==i)return null;var r=n._normalizeKey(t.pop()),a="";if(rt.forEach(function(e){var n=t.indexOf(e);n>-1&&(t.splice(n,1),a+=e+".")}),a+=r,0!=t.length||0===r.length)return null;var o={};return o.domEventName=i,o.fullKey=a,o}},{key:"getEventFullKey",value:function(e){var t="",n=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&ot.hasOwnProperty(t)&&(t=ot[t]))}return at[t]||t}(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),rt.forEach(function(i){i!=n&&(0,st[i])(e)&&(t+=i+".")}),t+=n}},{key:"eventCallback",value:function(e,t,i){return function(r){n.getEventFullKey(r)===e&&i.runGuarded(function(){return t(r)})}}},{key:"_normalizeKey",value:function(e){switch(e){case"esc":return"escape";default:return e}}}]),n}(Be)).\u0275fac=function(e){return new(e||Ze)(i.Yb(s))},Ze.\u0275prov=i.Kb({token:Ze,factory:Ze.\u0275fac}),Ze),ct=((Xe=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Xe)},Xe.\u0275prov=Object(i.Kb)({factory:function(){return Object(i.Yb)(ut)},token:Xe,providedIn:"root"}),Xe),ut=((Qe=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this))._doc=e,i}return _createClass(n,[{key:"sanitize",value:function(e,t){if(null==t)return null;switch(e){case i.K.NONE:return t;case i.K.HTML:return Object(i.gb)(t,"HTML")?Object(i.zb)(t):Object(i.eb)(this._doc,String(t)).toString();case i.K.STYLE:return Object(i.gb)(t,"Style")?Object(i.zb)(t):t;case i.K.SCRIPT:if(Object(i.gb)(t,"Script"))return Object(i.zb)(t);throw new Error("unsafe value used in a script context");case i.K.URL:return Object(i.qb)(t),Object(i.gb)(t,"URL")?Object(i.zb)(t):Object(i.fb)(String(t));case i.K.RESOURCE_URL:if(Object(i.gb)(t,"ResourceURL"))return Object(i.zb)(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(e," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(e){return Object(i.hb)(e)}},{key:"bypassSecurityTrustStyle",value:function(e){return Object(i.kb)(e)}},{key:"bypassSecurityTrustScript",value:function(e){return Object(i.jb)(e)}},{key:"bypassSecurityTrustUrl",value:function(e){return Object(i.lb)(e)}},{key:"bypassSecurityTrustResourceUrl",value:function(e){return Object(i.ib)(e)}}]),n}(ct)).\u0275fac=function(e){return new(e||Qe)(i.Yb(s))},Qe.\u0275prov=Object(i.Kb)({factory:function(){return e=Object(i.Yb)(i.p),new ut(e.get(s));var e},token:Qe,providedIn:"root"}),Qe),ht=[{provide:i.D,useValue:"browser"},{provide:i.E,useValue:function(){Ie.makeCurrent(),Fe.init()},multi:!0},{provide:s,useFactory:function(){return Object(i.xb)(document),document},deps:[]}],ft=Object(i.U)(i.Z,"browser",ht),dt=[[],{provide:i.cb,useValue:"root"},{provide:i.n,useFactory:function(){return new i.n},deps:[]},{provide:Ne,useClass:it,multi:!0,deps:[s,i.B,i.D]},{provide:Ne,useClass:lt,multi:!0,deps:[s]},[],{provide:$e,useClass:$e,deps:[Ue,He,i.c]},{provide:i.H,useExisting:$e},{provide:Ve,useExisting:He},{provide:He,useClass:He,deps:[s]},{provide:i.P,useClass:i.P,deps:[i.B]},{provide:Ue,useClass:Ue,deps:[Ne,i.B]},[]],pt=((Je=function(){function e(t){if(_classCallCheck(this,e),t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return _createClass(e,null,[{key:"withServerTransition",value:function(t){return{ngModule:e,providers:[{provide:i.c,useValue:t.appId},{provide:Le,useExisting:i.c},je]}}}]),e}()).\u0275fac=function(e){return new(e||Je)(i.Yb(Je,12))},Je.\u0275mod=i.Mb({type:Je}),Je.\u0275inj=i.Lb({providers:dt,imports:[Ce,i.f]}),Je);"undefined"!=typeof window&&window;var vt=function e(){_classCallCheck(this,e)};function mt(e,t){return{type:7,name:e,definitions:t,options:{}}}function _t(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:t,timings:e}}function gt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:e,options:t}}function yt(e){return{type:6,styles:e,offset:null}}function bt(e,t,n){return{type:0,name:e,styles:t,options:n}}function kt(e){return{type:5,steps:e}}function Ct(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:e,animation:t,options:n}}function wt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:e}}function Ot(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:e,animation:t,options:n}}function St(e){Promise.resolve(null).then(e)}var xt=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;_classCallCheck(this,e),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+n}return _createClass(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var e=this;St(function(){return e._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){}},{key:"setPosition",value:function(e){this._position=this.totalTime?e*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),Et=function(){function e(t){var n=this;_classCallCheck(this,e),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;var i=0,r=0,a=0,o=this.players.length;0==o?St(function(){return n._onFinish()}):this.players.forEach(function(e){e.onDone(function(){++i==o&&n._onFinish()}),e.onDestroy(function(){++r==o&&n._onDestroy()}),e.onStart(function(){++a==o&&n._onStart()})}),this.totalTime=this.players.reduce(function(e,t){return Math.max(e,t.totalTime)},0)}return _createClass(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(e){return e.init()})}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[])}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(e){return e.play()})}},{key:"pause",value:function(){this.players.forEach(function(e){return e.pause()})}},{key:"restart",value:function(){this.players.forEach(function(e){return e.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(e){return e.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(e){return e.destroy()}),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(e){return e.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(e){var t=e*this.totalTime;this.players.forEach(function(e){var n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})}},{key:"getPosition",value:function(){var e=this.players.reduce(function(e,t){return null===e||t.totalTime>e.totalTime?t:e},null);return null!=e?e.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(e){e.beforeDestroy&&e.beforeDestroy()})}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}();function Tt(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function At(e){switch(e.length){case 0:return new xt;case 1:return e[0];default:return new Et(e)}}function Rt(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=[],s=[],l=-1,c=null;if(i.forEach(function(e){var n=e.offset,i=n==l,u=i&&c||{};Object.keys(e).forEach(function(n){var i=n,s=e[n];if("offset"!==n)switch(i=t.normalizePropertyName(i,o),s){case"!":s=r[n];break;case"*":s=a[n];break;default:s=t.normalizeStyleValue(n,i,s,o)}u[i]=s}),i||s.push(u),c=u,l=n}),o.length){var u="\n - ";throw new Error("Unable to animate due to the following errors:".concat(u).concat(o.join(u)))}return s}function Dt(e,t,n,i){switch(t){case"start":e.onStart(function(){return i(n&&Pt(n,"start",e))});break;case"done":e.onDone(function(){return i(n&&Pt(n,"done",e))});break;case"destroy":e.onDestroy(function(){return i(n&&Pt(n,"destroy",e))})}}function Pt(e,t,n){var i=n.totalTime,r=It(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==i?e.totalTime:i,!!n.disabled),a=e._data;return null!=a&&(r._data=a),r}function It(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,o=arguments.length>6?arguments[6]:void 0;return{element:e,triggerName:t,fromState:n,toState:i,phaseName:r,totalTime:a,disabled:!!o}}function Mt(e,t,n){var i;return e instanceof Map?(i=e.get(t))||e.set(t,i=n):(i=e[t])||(i=e[t]=n),i}function Lt(e){var t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}var jt=function(e,t){return!1},Ft=function(e,t){return!1},Nt=function(e,t,n){return[]},Ut=Tt();(Ut||"undefined"!=typeof Element)&&(jt=function(e,t){return e.contains(t)},Ft=function(){if(Ut||Element.prototype.matches)return function(e,t){return e.matches(t)};var e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?function(e,n){return t.apply(e,[n])}:Ft}(),Nt=function(e,t,n){var i=[];if(n)for(var r=e.querySelectorAll(t),a=0;a<r.length;a++)i.push(r[a]);else{var o=e.querySelector(t);o&&i.push(o)}return i});var Bt=null,Vt=!1;function Ht(e){Bt||(Bt=("undefined"!=typeof document?document.body:null)||{},Vt=!!Bt.style&&"WebkitAppearance"in Bt.style);var t=!0;return Bt.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&(!(t=e in Bt.style)&&Vt)&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in Bt.style),t}var zt=Ft,Yt=jt,Wt=Nt;function Kt(e){var t={};return Object.keys(e).forEach(function(n){var i=n.replace(/([a-z])([A-Z])/g,"$1-$2");t[i]=e[n]}),t}var qt,Gt=((qt=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"validateStyleProperty",value:function(e){return Ht(e)}},{key:"matchesElement",value:function(e,t){return zt(e,t)}},{key:"containsElement",value:function(e,t){return Yt(e,t)}},{key:"query",value:function(e,t,n){return Wt(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return n||""}},{key:"animate",value:function(e,t,n,i,r){return new xt(n,i)}}]),e}()).\u0275fac=function(e){return new(e||qt)},qt.\u0275prov=i.Kb({token:qt,factory:qt.\u0275fac}),qt),Qt=function(){var e=function e(){_classCallCheck(this,e)};return e.NOOP=new Gt,e}();function Xt(e){if("number"==typeof e)return e;var t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:Zt(parseFloat(t[1]),t[2])}function Zt(e,t){switch(t){case"s":return 1e3*e;default:return e}}function Jt(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){var i,r=0,a="";if("string"==typeof e){var o=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===o)return t.push('The provided timing value "'.concat(e,'" is invalid.')),{duration:0,delay:0,easing:""};i=Zt(parseFloat(o[1]),o[2]);var s=o[3];null!=s&&(r=Zt(parseFloat(s),o[4]));var l=o[5];l&&(a=l)}else i=e;if(!n){var c=!1,u=t.length;i<0&&(t.push("Duration values below 0 are not allowed for this animation step."),c=!0),r<0&&(t.push("Delay values below 0 are not allowed for this animation step."),c=!0),c&&t.splice(u,0,'The provided timing value "'.concat(e,'" is invalid.'))}return{duration:i,delay:r,easing:a}}(e,t,n)}function $t(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).forEach(function(n){t[n]=e[n]}),t}function en(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t)for(var i in e)n[i]=e[i];else $t(e,n);return n}function tn(e,t,n){return n?t+":"+n+";":""}function nn(e){for(var t="",n=0;n<e.style.length;n++){var i=e.style.item(n);t+=tn(0,i,e.style.getPropertyValue(i))}for(var r in e.style)e.style.hasOwnProperty(r)&&!r.startsWith("_")&&(t+=tn(0,r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e.style[r]));e.setAttribute("style",t)}function rn(e,t,n){e.style&&(Object.keys(t).forEach(function(i){var r=fn(i);n&&!n.hasOwnProperty(i)&&(n[i]=e.style[r]),e.style[r]=t[i]}),Tt()&&nn(e))}function an(e,t){e.style&&(Object.keys(t).forEach(function(t){var n=fn(t);e.style[n]=""}),Tt()&&nn(e))}function on(e){return Array.isArray(e)?1==e.length?e[0]:gt(e):e}var sn=new RegExp("{{\\s*(.+?)\\s*}}","g");function ln(e){var t=[];if("string"==typeof e){for(var n;n=sn.exec(e);)t.push(n[1]);sn.lastIndex=0}return t}function cn(e,t,n){var i=e.toString(),r=i.replace(sn,function(e,i){var r=t[i];return t.hasOwnProperty(i)||(n.push("Please provide a value for the animation param ".concat(i)),r=""),r.toString()});return r==i?e:r}function un(e){for(var t=[],n=e.next();!n.done;)t.push(n.value),n=e.next();return t}var hn=/-+([a-z0-9])/g;function fn(e){return e.replace(hn,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t[1].toUpperCase()})}function dn(e,t){return 0===e||0===t}function pn(e,t,n){var i=Object.keys(n);if(i.length&&t.length){var r=t[0],a=[];if(i.forEach(function(e){r.hasOwnProperty(e)||a.push(e),r[e]=n[e]}),a.length)for(var o=function(){var n=t[s];a.forEach(function(t){n[t]=mn(e,t)})},s=1;s<t.length;s++)o()}return t}function vn(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 #".concat(t.type))}}function mn(e,t){return window.getComputedStyle(e)[t]}var _n=new Set(["true","1"]),gn=new Set(["false","0"]);function yn(e,t){var n=_n.has(e)||gn.has(e),i=_n.has(t)||gn.has(t);return function(r,a){var o="*"==e||e==r,s="*"==t||t==a;return!o&&n&&"boolean"==typeof r&&(o=r?_n.has(e):gn.has(e)),!s&&i&&"boolean"==typeof a&&(s=a?_n.has(t):gn.has(t)),o&&s}}var bn=new RegExp("s*:selfs*,?","g");function kn(e,t,n){return new Cn(e).build(t,n)}var Cn=function(){function e(t){_classCallCheck(this,e),this._driver=t}return _createClass(e,[{key:"build",value:function(e,t){var n=new wn(t);return this._resetContextStyleTimingState(n),vn(this,on(e),n)}},{key:"_resetContextStyleTimingState",value:function(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}},{key:"visitTrigger",value:function(e,t){var n=this,i=t.queryCount=0,r=t.depCount=0,a=[],o=[];return"@"==e.name.charAt(0)&&t.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach(function(e){if(n._resetContextStyleTimingState(t),0==e.type){var s=e,l=s.name;l.toString().split(/\s*,\s*/).forEach(function(e){s.name=e,a.push(n.visitState(s,t))}),s.name=l}else if(1==e.type){var c=n.visitTransition(e,t);i+=c.queryCount,r+=c.depCount,o.push(c)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:e.name,states:a,transitions:o,queryCount:i,depCount:r,options:null}}},{key:"visitState",value:function(e,t){var n=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(n.containsDynamicStyles){var r=new Set,a=i||{};if(n.styles.forEach(function(e){if(On(e)){var t=e;Object.keys(t).forEach(function(e){ln(t[e]).forEach(function(e){a.hasOwnProperty(e)||r.add(e)})})}}),r.size){var o=un(r.values());t.errors.push('state("'.concat(e.name,'", ...) must define default values for all the following style substitutions: ').concat(o.join(", ")))}}return{type:0,name:e.name,style:n,options:i?{params:i}:null}}},{key:"visitTransition",value:function(e,t){t.queryCount=0,t.depCount=0;var n,i,r,a=vn(this,on(e.animation),t);return{type:1,matchers:(n=e.expr,i=t.errors,r=[],"string"==typeof n?n.split(/\s*,\s*/).forEach(function(e){return function(e,t,n){if(":"==e[0]){var i=function(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return function(e,t){return parseFloat(t)>parseFloat(e)};case":decrement":return function(e,t){return parseFloat(t)<parseFloat(e)};default:return t.push('The transition alias value "'.concat(e,'" is not supported')),"* => *"}}(e,n);if("function"==typeof i)return void t.push(i);e=i}var r=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push('The provided transition expression "'.concat(e,'" is not supported')),t;var a=r[1],o=r[2],s=r[3];t.push(yn(a,s)),"<"!=o[0]||"*"==a&&"*"==s||t.push(yn(s,a))}(e,r,i)}):r.push(n),r),animation:a,queryCount:t.queryCount,depCount:t.depCount,options:Sn(e.options)}}},{key:"visitSequence",value:function(e,t){var n=this;return{type:2,steps:e.steps.map(function(e){return vn(n,e,t)}),options:Sn(e.options)}}},{key:"visitGroup",value:function(e,t){var n=this,i=t.currentTime,r=0,a=e.steps.map(function(e){t.currentTime=i;var a=vn(n,e,t);return r=Math.max(r,t.currentTime),a});return t.currentTime=r,{type:3,steps:a,options:Sn(e.options)}}},{key:"visitAnimate",value:function(e,t){var n,i=function(e,t){var n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return xn(Jt(e,t).duration,0,"");var i=e;if(i.split(/\s+/).some(function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)})){var r=xn(0,0,"");return r.dynamic=!0,r.strValue=i,r}return xn((n=n||Jt(i,t)).duration,n.delay,n.easing)}(e.timings,t.errors);t.currentAnimateTimings=i;var r=e.styles?e.styles:yt({});if(5==r.type)n=this.visitKeyframes(r,t);else{var a=e.styles,o=!1;if(!a){o=!0;var s={};i.easing&&(s.easing=i.easing),a=yt(s)}t.currentTime+=i.duration+i.delay;var l=this.visitStyle(a,t);l.isEmptyStep=o,n=l}return t.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}}},{key:"visitStyle",value:function(e,t){var n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}},{key:"_makeStyleAst",value:function(e,t){var n=[];Array.isArray(e.styles)?e.styles.forEach(function(e){"string"==typeof e?"*"==e?n.push(e):t.errors.push("The provided style string value ".concat(e," is not allowed.")):n.push(e)}):n.push(e.styles);var i=!1,r=null;return n.forEach(function(e){if(On(e)){var t=e,n=t.easing;if(n&&(r=n,delete t.easing),!i)for(var a in t)if(t[a].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:r,offset:e.offset,containsDynamicStyles:i,options:null}}},{key:"_validateStyleAst",value:function(e,t){var n=this,i=t.currentAnimateTimings,r=t.currentTime,a=t.currentTime;i&&a>0&&(a-=i.duration+i.delay),e.styles.forEach(function(e){"string"!=typeof e&&Object.keys(e).forEach(function(i){if(n._driver.validateStyleProperty(i)){var o,s,l,c,u,h=t.collectedStyles[t.currentQuerySelector],f=h[i],d=!0;f&&(a!=r&&a>=f.startTime&&r<=f.endTime&&(t.errors.push('The CSS property "'.concat(i,'" that exists between the times of "').concat(f.startTime,'ms" and "').concat(f.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(a,'ms" and "').concat(r,'ms"')),d=!1),a=f.startTime),d&&(h[i]={startTime:a,endTime:r}),t.options&&(o=e[i],s=t.options,l=t.errors,c=s.params||{},(u=ln(o)).length&&u.forEach(function(e){c.hasOwnProperty(e)||l.push("Unable to resolve the local animation param ".concat(e," in the given list of values"))}))}else t.errors.push('The provided animation property "'.concat(i,'" is not a supported CSS property for animations'))})})}},{key:"visitKeyframes",value:function(e,t){var n=this,i={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),i;var r=0,a=[],o=!1,s=!1,l=0,c=e.steps.map(function(e){var i=n._makeStyleAst(e,t),c=null!=i.offset?i.offset:function(e){if("string"==typeof e)return null;var t=null;if(Array.isArray(e))e.forEach(function(e){if(On(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}});else if(On(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}return t}(i.styles),u=0;return null!=c&&(r++,u=i.offset=c),s=s||u<0||u>1,o=o||u<l,l=u,a.push(u),i});s&&t.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),o&&t.errors.push("Please ensure that all keyframe offsets are in order");var u=e.steps.length,h=0;r>0&&r<u?t.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==r&&(h=1/(u-1));var f=u-1,d=t.currentTime,p=t.currentAnimateTimings,v=p.duration;return c.forEach(function(e,r){var o=h>0?r==f?1:h*r:a[r],s=o*v;t.currentTime=d+p.delay+s,p.duration=s,n._validateStyleAst(e,t),e.offset=o,i.styles.push(e)}),i}},{key:"visitReference",value:function(e,t){return{type:8,animation:vn(this,on(e.animation),t),options:Sn(e.options)}}},{key:"visitAnimateChild",value:function(e,t){return t.depCount++,{type:9,options:Sn(e.options)}}},{key:"visitAnimateRef",value:function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:Sn(e.options)}}},{key:"visitQuery",value:function(e,t){var n=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;var r=_slicedToArray(function(e){var t=!!e.split(/\s*,\s*/).find(function(e){return":self"==e});return t&&(e=e.replace(bn,"")),[e=e.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,function(e){return".ng-trigger-"+e.substr(1)}).replace(/:animating/g,".ng-animating"),t]}(e.selector),2),a=r[0],o=r[1];t.currentQuerySelector=n.length?n+" "+a:a,Mt(t.collectedStyles,t.currentQuerySelector,{});var s=vn(this,on(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:a,limit:i.limit||0,optional:!!i.optional,includeSelf:o,animation:s,originalSelector:e.selector,options:Sn(e.options)}}},{key:"visitStagger",value:function(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");var n="full"===e.timings?{duration:0,delay:0,easing:"full"}:Jt(e.timings,t.errors,!0);return{type:12,animation:vn(this,on(e.animation),t),timings:n,options:null}}}]),e}(),wn=function e(t){_classCallCheck(this,e),this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null};function On(e){return!Array.isArray(e)&&"object"==typeof e}function Sn(e){var t;return e?(e=$t(e)).params&&(e.params=(t=e.params)?$t(t):null):e={},e}function xn(e,t,n){return{duration:e,delay:t,easing:n}}function En(e,t,n,i,r,a){var o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:i,duration:r,delay:a,totalTime:r+a,easing:o,subTimeline:s}}var Tn=function(){function e(){_classCallCheck(this,e),this._map=new Map}return _createClass(e,[{key:"consume",value:function(e){var t=this._map.get(e);return t?this._map.delete(e):t=[],t}},{key:"append",value:function(e,t){var n,i=this._map.get(e);i||this._map.set(e,i=[]),(n=i).push.apply(n,_toConsumableArray(t))}},{key:"has",value:function(e){return this._map.has(e)}},{key:"clear",value:function(){this._map.clear()}}]),e}(),An=new RegExp(":enter","g"),Rn=new RegExp(":leave","g");function Dn(e,t,n,i,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,l=arguments.length>8?arguments[8]:void 0,c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new Pn).buildKeyframes(e,t,n,i,r,a,o,s,l,c)}var Pn=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"buildKeyframes",value:function(e,t,n,i,r,a,o,s,l){var c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];l=l||new Tn;var u=new Mn(e,t,l,i,r,c,[]);u.options=s,u.currentTimeline.setStyles([a],null,u.errors,s),vn(this,n,u);var h=u.timelines.filter(function(e){return e.containsAnimation()});if(h.length&&Object.keys(o).length){var f=h[h.length-1];f.allowOnlyTimelineStyles()||f.setStyles([o],null,u.errors,s)}return h.length?h.map(function(e){return e.buildKeyframes()}):[En(t,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(e,t){}},{key:"visitState",value:function(e,t){}},{key:"visitTransition",value:function(e,t){}},{key:"visitAnimateChild",value:function(e,t){var n=t.subInstructions.consume(t.element);if(n){var i=t.createSubContext(e.options),r=t.currentTimeline.currentTime,a=this._visitSubInstructions(n,i,i.options);r!=a&&t.transformIntoNewTimeline(a)}t.previousNode=e}},{key:"visitAnimateRef",value:function(e,t){var n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}},{key:"_visitSubInstructions",value:function(e,t,n){var i=t.currentTimeline.currentTime,r=null!=n.duration?Xt(n.duration):null,a=null!=n.delay?Xt(n.delay):null;return 0!==r&&e.forEach(function(e){var n=t.appendInstructionToTimeline(e,r,a);i=Math.max(i,n.duration+n.delay)}),i}},{key:"visitReference",value:function(e,t){t.updateOptions(e.options,!0),vn(this,e.animation,t),t.previousNode=e}},{key:"visitSequence",value:function(e,t){var n=this,i=t.subContextCount,r=t,a=e.options;if(a&&(a.params||a.delay)&&((r=t.createSubContext(a)).transformIntoNewTimeline(),null!=a.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=In);var o=Xt(a.delay);r.delayNextStep(o)}e.steps.length&&(e.steps.forEach(function(e){return vn(n,e,r)}),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),t.previousNode=e}},{key:"visitGroup",value:function(e,t){var n=this,i=[],r=t.currentTimeline.currentTime,a=e.options&&e.options.delay?Xt(e.options.delay):0;e.steps.forEach(function(o){var s=t.createSubContext(e.options);a&&s.delayNextStep(a),vn(n,o,s),r=Math.max(r,s.currentTimeline.currentTime),i.push(s.currentTimeline)}),i.forEach(function(e){return t.currentTimeline.mergeTimelineCollectedStyles(e)}),t.transformIntoNewTimeline(r),t.previousNode=e}},{key:"_visitTiming",value:function(e,t){if(e.dynamic){var n=e.strValue;return Jt(t.params?cn(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}},{key:"visitAnimate",value:function(e,t){var n=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),i.snapshotCurrentStyles());var r=e.style;5==r.type?this.visitKeyframes(r,t):(t.incrementTime(n.duration),this.visitStyle(r,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}},{key:"visitStyle",value:function(e,t){var n=t.currentTimeline,i=t.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();var r=i&&i.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(r):n.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}},{key:"visitKeyframes",value:function(e,t){var n=t.currentAnimateTimings,i=t.currentTimeline.duration,r=n.duration,a=t.createSubContext().currentTimeline;a.easing=n.easing,e.styles.forEach(function(e){a.forwardTime((e.offset||0)*r),a.setStyles(e.styles,e.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(i+r),t.previousNode=e}},{key:"visitQuery",value:function(e,t){var n=this,i=t.currentTimeline.currentTime,r=e.options||{},a=r.delay?Xt(r.delay):0;a&&(6===t.previousNode.type||0==i&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=In);var o=i,s=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=s.length;var l=null;s.forEach(function(i,r){t.currentQueryIndex=r;var s=t.createSubContext(e.options,i);a&&s.delayNextStep(a),i===t.element&&(l=s.currentTimeline),vn(n,e.animation,s),s.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,s.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}},{key:"visitStagger",value:function(e,t){var n=t.parentContext,i=t.currentTimeline,r=e.timings,a=Math.abs(r.duration),o=a*(t.currentQueryTotal-1),s=a*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":s=o-s;break;case"full":s=n.currentStaggerTime}var l=t.currentTimeline;s&&l.delayNextStep(s);var c=l.currentTime;vn(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=i.currentTime-c+(i.startTime-n.currentTimeline.startTime)}}]),e}(),In={},Mn=function(){function e(t,n,i,r,a,o,s,l){_classCallCheck(this,e),this._driver=t,this.element=n,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=a,this.errors=o,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=In,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Ln(this._driver,n,0),s.push(this.currentTimeline)}return _createClass(e,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(e,t){var n=this;if(e){var i=e,r=this.options;null!=i.duration&&(r.duration=Xt(i.duration)),null!=i.delay&&(r.delay=Xt(i.delay));var a=i.params;if(a){var o=r.params;o||(o=this.options.params={}),Object.keys(a).forEach(function(e){t&&o.hasOwnProperty(e)||(o[e]=cn(a[e],o,n.errors))})}}}},{key:"_copyOptions",value:function(){var e={};if(this.options){var t=this.options.params;if(t){var n=e.params={};Object.keys(t).forEach(function(e){n[e]=t[e]})}}return e}},{key:"createSubContext",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,r=n||this.element,a=new e(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return a.previousNode=this.previousNode,a.currentAnimateTimings=this.currentAnimateTimings,a.options=this._copyOptions(),a.updateOptions(t),a.currentQueryIndex=this.currentQueryIndex,a.currentQueryTotal=this.currentQueryTotal,a.parentContext=this,this.subContextCount++,a}},{key:"transformIntoNewTimeline",value:function(e){return this.previousNode=In,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(e,t,n){var i={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},r=new jn(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(r),i}},{key:"incrementTime",value:function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}},{key:"delayNextStep",value:function(e){e>0&&this.currentTimeline.delayNextStep(e)}},{key:"invokeQuery",value:function(e,t,n,i,r,a){var o=[];if(i&&o.push(this.element),e.length>0){e=(e=e.replace(An,"."+this._enterClassName)).replace(Rn,"."+this._leaveClassName);var s=this._driver.query(this.element,e,1!=n);0!==n&&(s=n<0?s.slice(s.length+n,s.length):s.slice(0,n)),o.push.apply(o,_toConsumableArray(s))}return r||0!=o.length||a.push('`query("'.concat(t,'")` returned zero elements. (Use `query("').concat(t,'", { optional: true })` if you wish to allow this.)')),o}}]),e}(),Ln=function(){function e(t,n,i,r){_classCallCheck(this,e),this._driver=t,this.element=n,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}return _createClass(e,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"delayNextStep",value:function(e){var t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}},{key:"fork",value:function(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,n||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}},{key:"_updateStyle",value:function(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(e){var t=this;e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(function(e){t._backFill[e]=t._globalTimelineStyles[e]||"*",t._currentKeyframe[e]="*"}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(e,t,n,i){var r=this;t&&(this._previousKeyframe.easing=t);var a=i&&i.params||{},o=function(e,t){var n,i={};return e.forEach(function(e){"*"===e?(n=n||Object.keys(t)).forEach(function(e){i[e]="*"}):en(e,!1,i)}),i}(e,this._globalTimelineStyles);Object.keys(o).forEach(function(e){var t=cn(o[e],a,n);r._pendingStyles[e]=t,r._localTimelineStyles.hasOwnProperty(e)||(r._backFill[e]=r._globalTimelineStyles.hasOwnProperty(e)?r._globalTimelineStyles[e]:"*"),r._updateStyle(e,t)})}},{key:"applyStylesToKeyframe",value:function(){var e=this,t=this._pendingStyles,n=Object.keys(t);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){e._currentKeyframe[n]=t[n]}),Object.keys(this._localTimelineStyles).forEach(function(t){e._currentKeyframe.hasOwnProperty(t)||(e._currentKeyframe[t]=e._localTimelineStyles[t])}))}},{key:"snapshotCurrentStyles",value:function(){var e=this;Object.keys(this._localTimelineStyles).forEach(function(t){var n=e._localTimelineStyles[t];e._pendingStyles[t]=n,e._updateStyle(t,n)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"properties",get:function(){var e=[];for(var t in this._currentKeyframe)e.push(t);return e}},{key:"mergeTimelineCollectedStyles",value:function(e){var t=this;Object.keys(e._styleSummary).forEach(function(n){var i=t._styleSummary[n],r=e._styleSummary[n];(!i||r.time>i.time)&&t._updateStyle(n,r.value)})}},{key:"buildKeyframes",value:function(){var e=this;this.applyStylesToKeyframe();var t=new Set,n=new Set,i=1===this._keyframes.size&&0===this.duration,r=[];this._keyframes.forEach(function(a,o){var s=en(a,!0);Object.keys(s).forEach(function(e){var i=s[e];"!"==i?t.add(e):"*"==i&&n.add(e)}),i||(s.offset=o/e.duration),r.push(s)});var a=t.size?un(t.values()):[],o=n.size?un(n.values()):[];if(i){var s=r[0],l=$t(s);s.offset=0,l.offset=1,r=[s,l]}return En(this.element,r,a,o,this.duration,this.startTime,this.easing,!1)}}]),e}(),jn=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,o,s){var l,c=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return _classCallCheck(this,n),(l=t.call(this,e,i,s.delay)).element=i,l.keyframes=r,l.preStyleProps=a,l.postStyleProps=o,l._stretchStartingKeyframe=c,l.timings={duration:s.duration,delay:s.delay,easing:s.easing},l}return _createClass(n,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var e=this.keyframes,t=this.timings,n=t.delay,i=t.duration,r=t.easing;if(this._stretchStartingKeyframe&&n){var a=[],o=i+n,s=n/o,l=en(e[0],!1);l.offset=0,a.push(l);var c=en(e[0],!1);c.offset=Fn(s),a.push(c);for(var u=e.length-1,h=1;h<=u;h++){var f=en(e[h],!1);f.offset=Fn((n+f.offset*i)/o),a.push(f)}i=o,n=0,r="",e=a}return En(this.element,e,this.preStyleProps,this.postStyleProps,i,n,r,!0)}}]),n}(Ln);function Fn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=Math.pow(10,t-1);return Math.round(e*n)/n}var Nn=function e(){_classCallCheck(this,e)},Un=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"normalizePropertyName",value:function(e,t){return fn(e)}},{key:"normalizeStyleValue",value:function(e,t,n,i){var r="",a=n.toString().trim();if(Bn[t]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var o=n.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&0==o[1].length&&i.push("Please provide a CSS unit value for ".concat(e,":").concat(n))}return a+r}}]),n}(Nn),Bn=function(e){var t={};return e.forEach(function(e){return t[e]=!0}),t}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","));function Vn(e,t,n,i,r,a,o,s,l,c,u,h,f){return{type:0,element:e,triggerName:t,isRemovalTransition:r,fromState:n,fromStyles:a,toState:i,toStyles:o,timelines:s,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:h,errors:f}}var Hn={},zn=function(){function e(t,n,i){_classCallCheck(this,e),this._triggerName=t,this.ast=n,this._stateStyles=i}return _createClass(e,[{key:"match",value:function(e,t,n,i){return function(e,t,n,i,r){return e.some(function(e){return e(t,n,i,r)})}(this.ast.matchers,e,t,n,i)}},{key:"buildStyles",value:function(e,t,n){var i=this._stateStyles["*"],r=this._stateStyles[e],a=i?i.buildStyles(t,n):{};return r?r.buildStyles(t,n):a}},{key:"build",value:function(e,t,n,i,r,a,o,s,l,c){var u=[],h=this.ast.options&&this.ast.options.params||Hn,f=this.buildStyles(n,o&&o.params||Hn,u),d=s&&s.params||Hn,p=this.buildStyles(i,d,u),v=new Set,m=new Map,_=new Map,g="void"===i,y={params:Object.assign(Object.assign({},h),d)},b=c?[]:Dn(e,t,this.ast.animation,r,a,f,p,y,l,u),k=0;if(b.forEach(function(e){k=Math.max(e.duration+e.delay,k)}),u.length)return Vn(t,this._triggerName,n,i,g,f,p,[],[],m,_,k,u);b.forEach(function(e){var n=e.element,i=Mt(m,n,{});e.preStyleProps.forEach(function(e){return i[e]=!0});var r=Mt(_,n,{});e.postStyleProps.forEach(function(e){return r[e]=!0}),n!==t&&v.add(n)});var C=un(v.values());return Vn(t,this._triggerName,n,i,g,f,p,b,C,m,_,k)}}]),e}(),Yn=function(){function e(t,n){_classCallCheck(this,e),this.styles=t,this.defaultParams=n}return _createClass(e,[{key:"buildStyles",value:function(e,t){var n={},i=$t(this.defaultParams);return Object.keys(e).forEach(function(t){var n=e[t];null!=n&&(i[t]=n)}),this.styles.styles.forEach(function(e){if("string"!=typeof e){var r=e;Object.keys(r).forEach(function(e){var a=r[e];a.length>1&&(a=cn(a,i,t)),n[e]=a})}}),n}}]),e}(),Wn=function(){function e(t,n){var i=this;_classCallCheck(this,e),this.name=t,this.ast=n,this.transitionFactories=[],this.states={},n.states.forEach(function(e){i.states[e.name]=new Yn(e.style,e.options&&e.options.params||{})}),Kn(this.states,"true","1"),Kn(this.states,"false","0"),n.transitions.forEach(function(e){i.transitionFactories.push(new zn(t,e,i.states))}),this.fallbackTransition=new zn(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(e,t){return!0}],options:null,queryCount:0,depCount:0},this.states)}return _createClass(e,[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(e,t,n,i){return this.transitionFactories.find(function(r){return r.match(e,t,n,i)})||null}},{key:"matchStyles",value:function(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}}]),e}();function Kn(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}var qn=new Tn,Gn=function(){function e(t,n,i){_classCallCheck(this,e),this.bodyNode=t,this._driver=n,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}return _createClass(e,[{key:"register",value:function(e,t){var n=[],i=kn(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: ".concat(n.join("\n")));this._animations[e]=i}},{key:"_buildPlayer",value:function(e,t,n){var i=e.element,r=Rt(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(i,r,e.duration,e.delay,e.easing,[],!0)}},{key:"create",value:function(e,t){var n,i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=[],o=this._animations[e],s=new Map;if(o?(n=Dn(this._driver,t,o,"ng-enter","ng-leave",{},{},r,qn,a)).forEach(function(e){var t=Mt(s,e.element,{});e.postStyleProps.forEach(function(e){return t[e]=null})}):(a.push("The requested animation doesn't exist or has already been destroyed"),n=[]),a.length)throw new Error("Unable to create the animation due to the following errors: ".concat(a.join("\n")));s.forEach(function(e,t){Object.keys(e).forEach(function(n){e[n]=i._driver.computeStyle(t,n,"*")})});var l=At(n.map(function(e){var t=s.get(e.element);return i._buildPlayer(e,{},t)}));return this._playersById[e]=l,l.onDestroy(function(){return i.destroy(e)}),this.players.push(l),l}},{key:"destroy",value:function(e){var t=this._getPlayer(e);t.destroy(),delete this._playersById[e];var n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}},{key:"_getPlayer",value:function(e){var t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by ".concat(e));return t}},{key:"listen",value:function(e,t,n,i){var r=It(t,"","","");return Dt(this._getPlayer(e),n,r,i),function(){}}},{key:"command",value:function(e,t,n,i){if("register"!=n)if("create"!=n){var r=this._getPlayer(e);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e)}}else this.create(e,t,i[0]||{});else this.register(e,i[0])}}]),e}(),Qn=[],Xn={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Zn={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Jn=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";_classCallCheck(this,e),this.namespaceId=n;var i,r=t&&t.hasOwnProperty("value");if(this.value=null!=(i=r?t.value:t)?i:null,r){var a=$t(t);delete a.value,this.options=a}else this.options={};this.options.params||(this.options.params={})}return _createClass(e,[{key:"params",get:function(){return this.options.params}},{key:"absorbOptions",value:function(e){var t=e.params;if(t){var n=this.options.params;Object.keys(t).forEach(function(e){null==n[e]&&(n[e]=t[e])})}}}]),e}(),$n=new Jn("void"),ei=function(){function e(t,n,i){_classCallCheck(this,e),this.id=t,this.hostElement=n,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,si(n,this._hostClassName)}return _createClass(e,[{key:"listen",value:function(e,t,n,i){var r,a=this;if(!this._triggers.hasOwnProperty(t))throw new Error('Unable to listen on the animation trigger event "'.concat(n,'" because the animation trigger "').concat(t,"\" doesn't exist!"));if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'.concat(t,'" because the provided event is undefined!'));if("start"!=(r=n)&&"done"!=r)throw new Error('The provided animation trigger event "'.concat(n,'" for the animation trigger "').concat(t,'" is not supported!'));var o=Mt(this._elementListeners,e,[]),s={name:t,phase:n,callback:i};o.push(s);var l=Mt(this._engine.statesByElement,e,{});return l.hasOwnProperty(t)||(si(e,"ng-trigger"),si(e,"ng-trigger-"+t),l[t]=$n),function(){a._engine.afterFlush(function(){var e=o.indexOf(s);e>=0&&o.splice(e,1),a._triggers[t]||delete l[t]})}}},{key:"register",value:function(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}},{key:"_getTrigger",value:function(e){var t=this._triggers[e];if(!t)throw new Error('The provided animation trigger "'.concat(e,'" has not been registered!'));return t}},{key:"trigger",value:function(e,t,n){var i=this,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=this._getTrigger(t),o=new ni(this.id,t,e),s=this._engine.statesByElement.get(e);s||(si(e,"ng-trigger"),si(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,s={}));var l=s[t],c=new Jn(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),s[t]=c,l||(l=$n),"void"===c.value||l.value!==c.value){var u=Mt(this._engine.playersByElement,e,[]);u.forEach(function(e){e.namespaceId==i.id&&e.triggerName==t&&e.queued&&e.destroy()});var h=a.matchTransition(l.value,c.value,e,c.params),f=!1;if(!h){if(!r)return;h=a.fallbackTransition,f=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:h,fromState:l,toState:c,player:o,isFallbackTransition:f}),f||(si(e,"ng-animate-queued"),o.onStart(function(){li(e,"ng-animate-queued")})),o.onDone(function(){var t=i.players.indexOf(o);t>=0&&i.players.splice(t,1);var n=i._engine.playersByElement.get(e);if(n){var r=n.indexOf(o);r>=0&&n.splice(r,1)}}),this.players.push(o),u.push(o),o}if(!function(e,t){var n=Object.keys(e),i=Object.keys(t);if(n.length!=i.length)return!1;for(var r=0;r<n.length;r++){var a=n[r];if(!t.hasOwnProperty(a)||e[a]!==t[a])return!1}return!0}(l.params,c.params)){var d=[],p=a.matchStyles(l.value,l.params,d),v=a.matchStyles(c.value,c.params,d);d.length?this._engine.reportError(d):this._engine.afterFlush(function(){an(e,p),rn(e,v)})}}},{key:"deregister",value:function(e){var t=this;delete this._triggers[e],this._engine.statesByElement.forEach(function(t,n){delete t[e]}),this._elementListeners.forEach(function(n,i){t._elementListeners.set(i,n.filter(function(t){return t.name!=e}))})}},{key:"clearElementCache",value: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))}},{key:"_signalRemovalForInnerTriggers",value:function(e,t){var n=this,i=this._engine.driver.query(e,".ng-trigger",!0);i.forEach(function(e){if(!e.__ng_removed){var i=n._engine.fetchNamespacesByElement(e);i.size?i.forEach(function(n){return n.triggerLeaveAnimation(e,t,!1,!0)}):n.clearElementCache(e)}}),this._engine.afterFlushAnimationsDone(function(){return i.forEach(function(e){return n.clearElementCache(e)})})}},{key:"triggerLeaveAnimation",value:function(e,t,n,i){var r=this,a=this._engine.statesByElement.get(e);if(a){var o=[];if(Object.keys(a).forEach(function(t){if(r._triggers[t]){var n=r.trigger(e,t,"void",i);n&&o.push(n)}}),o.length)return this._engine.markElementAsRemoved(this.id,e,!0,t),n&&At(o).onDone(function(){return r._engine.processLeaveNode(e)}),!0}return!1}},{key:"prepareLeaveAnimationListeners",value:function(e){var t=this,n=this._elementListeners.get(e),i=this._engine.statesByElement.get(e);if(n&&i){var r=new Set;n.forEach(function(n){var a=n.name;if(!r.has(a)){r.add(a);var o=t._triggers[a].fallbackTransition,s=i[a]||$n,l=new Jn("void"),c=new ni(t.id,a,e);t._engine.totalQueuedPlayers++,t._queue.push({element:e,triggerName:a,transition:o,fromState:s,toState:l,player:c,isFallbackTransition:!0})}})}}},{key:"removeNode",value:function(e,t){var n=this,i=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),!this.triggerLeaveAnimation(e,t,!0)){var r=!1;if(i.totalAnimations){var a=i.players.length?i.playersByQueriedElement.get(e):[];if(a&&a.length)r=!0;else for(var o=e;o=o.parentNode;)if(i.statesByElement.get(o)){r=!0;break}}if(this.prepareLeaveAnimationListeners(e),r)i.markElementAsRemoved(this.id,e,!1,t);else{var s=e.__ng_removed;s&&s!==Xn||(i.afterFlush(function(){return n.clearElementCache(e)}),i.destroyInnerAnimations(e),i._onRemovalComplete(e,t))}}}},{key:"insertNode",value:function(e,t){si(e,this._hostClassName)}},{key:"drainQueuedTransitions",value:function(e){var t=this,n=[];return this._queue.forEach(function(i){var r=i.player;if(!r.destroyed){var a=i.element,o=t._elementListeners.get(a);o&&o.forEach(function(t){if(t.name==i.triggerName){var n=It(a,i.triggerName,i.fromState.value,i.toState.value);n._data=e,Dt(i.player,t.phase,n,t.callback)}}),r.markedForDestroy?t._engine.afterFlush(function(){r.destroy()}):n.push(i)}}),this._queue=[],n.sort(function(e,n){var i=e.transition.ast.depCount,r=n.transition.ast.depCount;return 0==i||0==r?i-r:t._engine.driver.containsElement(e.element,n.element)?1:-1})}},{key:"destroy",value:function(e){this.players.forEach(function(e){return e.destroy()}),this._signalRemovalForInnerTriggers(this.hostElement,e)}},{key:"elementContainsData",value:function(e){var t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find(function(t){return t.element===e})||t}}]),e}(),ti=function(){function e(t,n,i){_classCallCheck(this,e),this.bodyNode=t,this.driver=n,this._normalizer=i,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 _createClass(e,[{key:"_onRemovalComplete",value:function(e,t){this.onRemovalComplete(e,t)}},{key:"queuedPlayers",get:function(){var e=[];return this._namespaceList.forEach(function(t){t.players.forEach(function(t){t.queued&&e.push(t)})}),e}},{key:"createNamespace",value:function(e,t){var n=new ei(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}},{key:"_balanceNamespaceList",value:function(e,t){var n=this._namespaceList.length-1;if(n>=0){for(var i=!1,r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,t)){this._namespaceList.splice(r+1,0,e),i=!0;break}i||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}},{key:"register",value:function(e,t){var n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}},{key:"registerTrigger",value:function(e,t,n){var i=this._namespaceLookup[e];i&&i.register(t,n)&&this.totalAnimations++}},{key:"destroy",value:function(e,t){var n=this;if(e){var i=this._fetchNamespace(e);this.afterFlush(function(){n.namespacesByHostElement.delete(i.hostElement),delete n._namespaceLookup[e];var t=n._namespaceList.indexOf(i);t>=0&&n._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(function(){return i.destroy(t)})}}},{key:"_fetchNamespace",value:function(e){return this._namespaceLookup[e]}},{key:"fetchNamespacesByElement",value:function(e){var t=new Set,n=this.statesByElement.get(e);if(n)for(var i=Object.keys(n),r=0;r<i.length;r++){var a=n[i[r]].namespaceId;if(a){var o=this._fetchNamespace(a);o&&t.add(o)}}return t}},{key:"trigger",value:function(e,t,n,i){if(ii(t)){var r=this._fetchNamespace(e);if(r)return r.trigger(t,n,i),!0}return!1}},{key:"insertNode",value:function(e,t,n,i){if(ii(t)){var r=t.__ng_removed;if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;var a=this.collectedLeaveElements.indexOf(t);a>=0&&this.collectedLeaveElements.splice(a,1)}if(e){var o=this._fetchNamespace(e);o&&o.insertNode(t,n)}i&&this.collectEnterElement(t)}}},{key:"collectEnterElement",value:function(e){this.collectedEnterElements.push(e)}},{key:"markElementAsDisabled",value:function(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),si(e,"ng-animate-disabled")):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),li(e,"ng-animate-disabled"))}},{key:"removeNode",value:function(e,t,n,i){if(ii(t)){var r=e?this._fetchNamespace(e):null;if(r?r.removeNode(t,i):this.markElementAsRemoved(e,t,!1,i),n){var a=this.namespacesByHostElement.get(t);a&&a.id!==e&&a.removeNode(t,i)}}else this._onRemovalComplete(t,i)}},{key:"markElementAsRemoved",value:function(e,t,n,i){this.collectedLeaveElements.push(t),t.__ng_removed={namespaceId:e,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}},{key:"listen",value:function(e,t,n,i,r){return ii(t)?this._fetchNamespace(e).listen(t,n,i,r):function(){}}},{key:"_buildInstruction",value:function(e,t,n,i,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,i,e.fromState.options,e.toState.options,t,r)}},{key:"destroyInnerAnimations",value:function(e){var t=this,n=this.driver.query(e,".ng-trigger",!0);n.forEach(function(e){return t.destroyActiveAnimationsForElement(e)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,".ng-animating",!0)).forEach(function(e){return t.finishActiveQueriedAnimationOnElement(e)})}},{key:"destroyActiveAnimationsForElement",value:function(e){var t=this.playersByElement.get(e);t&&t.forEach(function(e){e.queued?e.markedForDestroy=!0:e.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(e){var t=this.playersByQueriedElement.get(e);t&&t.forEach(function(e){return e.finish()})}},{key:"whenRenderingDone",value:function(){var e=this;return new Promise(function(t){if(e.players.length)return At(e.players).onDone(function(){return t()});t()})}},{key:"processLeaveNode",value:function(e){var t=this,n=e.__ng_removed;if(n&&n.setForRemoval){if(e.__ng_removed=Xn,n.namespaceId){this.destroyInnerAnimations(e);var i=this._fetchNamespace(n.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}this.driver.matchesElement(e,".ng-animate-disabled")&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(function(e){t.markElementAsDisabled(e,!1)})}},{key:"flush",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(t,n){return e._balanceNamespaceList(t,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var i=0;i<this.collectedEnterElements.length;i++)si(this.collectedEnterElements[i],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){var r=[];try{n=this._flushAnimations(r,t)}finally{for(var a=0;a<r.length;a++)r[a]()}}else for(var o=0;o<this.collectedLeaveElements.length;o++)this.processLeaveNode(this.collectedLeaveElements[o]);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 s=this._whenQuietFns;this._whenQuietFns=[],n.length?At(n).onDone(function(){s.forEach(function(e){return e()})}):s.forEach(function(e){return e()})}}},{key:"reportError",value:function(e){throw new Error("Unable to process animations due to the following failed trigger transitions\n ".concat(e.join("\n")))}},{key:"_flushAnimations",value:function(e,t){var n=this,i=new Tn,r=[],a=new Map,o=[],s=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(function(e){u.add(e);for(var t=n.driver.query(e,".ng-animate-queued",!0),i=0;i<t.length;i++)u.add(t[i])});var h=this.bodyNode,f=Array.from(this.statesByElement.keys()),d=oi(f,this.collectedEnterElements),p=new Map,v=0;d.forEach(function(e,t){var n="ng-enter"+v++;p.set(t,n),e.forEach(function(e){return si(e,n)})});for(var m=[],_=new Set,g=new Set,y=0;y<this.collectedLeaveElements.length;y++){var b=this.collectedLeaveElements[y],k=b.__ng_removed;k&&k.setForRemoval&&(m.push(b),_.add(b),k.hasAnimation?this.driver.query(b,".ng-star-inserted",!0).forEach(function(e){return _.add(e)}):g.add(b))}var C=new Map,w=oi(f,Array.from(_));w.forEach(function(e,t){var n="ng-leave"+v++;C.set(t,n),e.forEach(function(e){return si(e,n)})}),e.push(function(){d.forEach(function(e,t){var n=p.get(t);e.forEach(function(e){return li(e,n)})}),w.forEach(function(e,t){var n=C.get(t);e.forEach(function(e){return li(e,n)})}),m.forEach(function(e){n.processLeaveNode(e)})});for(var O=[],S=[],x=this._namespaceList.length-1;x>=0;x--)this._namespaceList[x].drainQueuedTransitions(t).forEach(function(e){var t=e.player,a=e.element;if(O.push(t),n.collectedEnterElements.length){var u=a.__ng_removed;if(u&&u.setForMove)return void t.destroy()}var f=!h||!n.driver.containsElement(h,a),d=C.get(a),v=p.get(a),m=n._buildInstruction(e,i,v,d,f);if(m.errors&&m.errors.length)S.push(m);else{if(f)return t.onStart(function(){return an(a,m.fromStyles)}),t.onDestroy(function(){return rn(a,m.toStyles)}),void r.push(t);if(e.isFallbackTransition)return t.onStart(function(){return an(a,m.fromStyles)}),t.onDestroy(function(){return rn(a,m.toStyles)}),void r.push(t);m.timelines.forEach(function(e){return e.stretchStartingKeyframe=!0}),i.append(a,m.timelines),o.push({instruction:m,player:t,element:a}),m.queriedElements.forEach(function(e){return Mt(s,e,[]).push(t)}),m.preStyleProps.forEach(function(e,t){var n=Object.keys(e);if(n.length){var i=l.get(t);i||l.set(t,i=new Set),n.forEach(function(e){return i.add(e)})}}),m.postStyleProps.forEach(function(e,t){var n=Object.keys(e),i=c.get(t);i||c.set(t,i=new Set),n.forEach(function(e){return i.add(e)})})}});if(S.length){var E=[];S.forEach(function(e){E.push("@".concat(e.triggerName," has failed due to:\n")),e.errors.forEach(function(e){return E.push("- ".concat(e,"\n"))})}),O.forEach(function(e){return e.destroy()}),this.reportError(E)}var T=new Map,A=new Map;o.forEach(function(e){var t=e.element;i.has(t)&&(A.set(t,t),n._beforeAnimationBuild(e.player.namespaceId,e.instruction,T))}),r.forEach(function(e){var t=e.element;n._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(function(e){Mt(T,t,[]).push(e),e.destroy()})});var R=m.filter(function(e){return hi(e,l,c)}),D=new Map;ai(D,this.driver,g,c,"*").forEach(function(e){hi(e,l,c)&&R.push(e)});var P=new Map;d.forEach(function(e,t){ai(P,n.driver,new Set(e),l,"!")}),R.forEach(function(e){var t=D.get(e),n=P.get(e);D.set(e,Object.assign(Object.assign({},t),n))});var I=[],M=[],L={};o.forEach(function(e){var t=e.element,o=e.player,s=e.instruction;if(i.has(t)){if(u.has(t))return o.onDestroy(function(){return rn(t,s.toStyles)}),o.disabled=!0,o.overrideTotalTime(s.totalTime),void r.push(o);var l=L;if(A.size>1){for(var c=t,h=[];c=c.parentNode;){var f=A.get(c);if(f){l=f;break}h.push(c)}h.forEach(function(e){return A.set(e,l)})}var d=n._buildAnimation(o.namespaceId,s,T,a,P,D);if(o.setRealPlayer(d),l===L)I.push(o);else{var p=n.playersByElement.get(l);p&&p.length&&(o.parentPlayer=At(p)),r.push(o)}}else an(t,s.fromStyles),o.onDestroy(function(){return rn(t,s.toStyles)}),M.push(o),u.has(t)&&r.push(o)}),M.forEach(function(e){var t=a.get(e.element);if(t&&t.length){var n=At(t);e.setRealPlayer(n)}}),r.forEach(function(e){e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(var j=0;j<m.length;j++){var F=m[j],N=F.__ng_removed;if(li(F,"ng-leave"),!N||!N.hasAnimation){var U=[];if(s.size){var B=s.get(F);B&&B.length&&U.push.apply(U,_toConsumableArray(B));for(var V=this.driver.query(F,".ng-animating",!0),H=0;H<V.length;H++){var z=s.get(V[H]);z&&z.length&&U.push.apply(U,_toConsumableArray(z))}}var Y=U.filter(function(e){return!e.destroyed});Y.length?ci(this,F,Y):this.processLeaveNode(F)}}return m.length=0,I.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()}),I}},{key:"elementContainsData",value:function(e,t){var n=!1,i=t.__ng_removed;return i&&i.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}},{key:"afterFlush",value:function(e){this._flushFns.push(e)}},{key:"afterFlushAnimationsDone",value:function(e){this._whenQuietFns.push(e)}},{key:"_getPreviousPlayers",value:function(e,t,n,i,r){var a=[];if(t){var o=this.playersByQueriedElement.get(e);o&&(a=o)}else{var s=this.playersByElement.get(e);if(s){var l=!r||"void"==r;s.forEach(function(e){e.queued||(l||e.triggerName==i)&&a.push(e)})}}return(n||i)&&(a=a.filter(function(e){return!(n&&n!=e.namespaceId||i&&i!=e.triggerName)})),a}},{key:"_beforeAnimationBuild",value:function(e,t,n){var i,r=this,a=t.element,o=t.isRemovalTransition?void 0:e,s=t.isRemovalTransition?void 0:t.triggerName,l=_createForOfIteratorHelper(t.timelines);try{var c=function(){var e=i.value.element,l=e!==a,c=Mt(n,e,[]);r._getPreviousPlayers(e,l,o,s,t.toState).forEach(function(e){var t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),c.push(e)})};for(l.s();!(i=l.n()).done;)c()}catch(u){l.e(u)}finally{l.f()}an(a,t.fromStyles)}},{key:"_buildAnimation",value:function(e,t,n,i,r,a){var o=this,s=t.triggerName,l=t.element,c=[],u=new Set,h=new Set,f=t.timelines.map(function(t){var f=t.element;u.add(f);var d=f.__ng_removed;if(d&&d.removedBeforeQueried)return new xt(t.duration,t.delay);var p,v,m=f!==l,_=(p=(n.get(f)||Qn).map(function(e){return e.getRealPlayer()}),v=[],ui(p,v),v).filter(function(e){return!!e.element&&e.element===f}),g=r.get(f),y=a.get(f),b=Rt(0,o._normalizer,0,t.keyframes,g,y),k=o._buildPlayer(t,b,_);if(t.subTimeline&&i&&h.add(f),m){var C=new ni(e,s,f);C.setRealPlayer(k),c.push(C)}return k});c.forEach(function(e){Mt(o.playersByQueriedElement,e.element,[]).push(e),e.onDone(function(){return function(e,t,n){var i;if(e instanceof Map){if(i=e.get(t)){if(i.length){var r=i.indexOf(n);i.splice(r,1)}0==i.length&&e.delete(t)}}else if(i=e[t]){if(i.length){var a=i.indexOf(n);i.splice(a,1)}0==i.length&&delete e[t]}return i}(o.playersByQueriedElement,e.element,e)})}),u.forEach(function(e){return si(e,"ng-animating")});var d=At(f);return d.onDestroy(function(){u.forEach(function(e){return li(e,"ng-animating")}),rn(l,t.toStyles)}),h.forEach(function(e){Mt(i,e,[]).push(d)}),d}},{key:"_buildPlayer",value:function(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new xt(e.duration,e.delay)}}]),e}(),ni=function(){function e(t,n,i){_classCallCheck(this,e),this.namespaceId=t,this.triggerName=n,this.element=i,this._player=new xt,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return _createClass(e,[{key:"setRealPlayer",value:function(e){var t=this;this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(function(n){t._queuedCallbacks[n].forEach(function(t){return Dt(e,n,void 0,t)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(e){this.totalTime=e}},{key:"syncPlayerEvents",value:function(e){var t=this,n=this._player;n.triggerCallback&&e.onStart(function(){return n.triggerCallback("start")}),e.onDone(function(){return t.finish()}),e.onDestroy(function(){return t.destroy()})}},{key:"_queueEvent",value:function(e,t){Mt(this._queuedCallbacks,e,[]).push(t)}},{key:"onDone",value:function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}},{key:"onStart",value:function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}},{key:"onDestroy",value:function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(e){this.queued||this._player.setPosition(e)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(e){var t=this._player;t.triggerCallback&&t.triggerCallback(e)}}]),e}();function ii(e){return e&&1===e.nodeType}function ri(e,t){var n=e.style.display;return e.style.display=null!=t?t:"none",n}function ai(e,t,n,i,r){var a=[];n.forEach(function(e){return a.push(ri(e))});var o=[];i.forEach(function(n,i){var a={};n.forEach(function(e){var n=a[e]=t.computeStyle(i,e,r);n&&0!=n.length||(i.__ng_removed=Zn,o.push(i))}),e.set(i,a)});var s=0;return n.forEach(function(e){return ri(e,a[s++])}),o}function oi(e,t){var n=new Map;if(e.forEach(function(e){return n.set(e,[])}),0==t.length)return n;var i=new Set(t),r=new Map;function a(e){if(!e)return 1;var t=r.get(e);if(t)return t;var o=e.parentNode;return t=n.has(o)?o:i.has(o)?1:a(o),r.set(e,t),t}return t.forEach(function(e){var t=a(e);1!==t&&n.get(t).push(e)}),n}function si(e,t){if(e.classList)e.classList.add(t);else{var n=e.$$classes;n||(n=e.$$classes={}),n[t]=!0}}function li(e,t){if(e.classList)e.classList.remove(t);else{var n=e.$$classes;n&&delete n[t]}}function ci(e,t,n){At(n).onDone(function(){return e.processLeaveNode(t)})}function ui(e,t){for(var n=0;n<e.length;n++){var i=e[n];i instanceof Et?ui(i.players,t):t.push(i)}}function hi(e,t,n){var i=n.get(e);if(!i)return!1;var r=t.get(e);return r?i.forEach(function(e){return r.add(e)}):t.set(e,i),n.delete(e),!0}var fi=function(){function e(t,n,i){var r=this;_classCallCheck(this,e),this.bodyNode=t,this._driver=n,this._triggerCache={},this.onRemovalComplete=function(e,t){},this._transitionEngine=new ti(t,n,i),this._timelineEngine=new Gn(t,n,i),this._transitionEngine.onRemovalComplete=function(e,t){return r.onRemovalComplete(e,t)}}return _createClass(e,[{key:"registerTrigger",value:function(e,t,n,i,r){var a=e+"-"+i,o=this._triggerCache[a];if(!o){var s=[],l=kn(this._driver,r,s);if(s.length)throw new Error('The animation trigger "'.concat(i,'" has failed to build due to the following errors:\n - ').concat(s.join("\n - ")));o=function(e,t){return new Wn(e,t)}(i,l),this._triggerCache[a]=o}this._transitionEngine.registerTrigger(t,i,o)}},{key:"register",value:function(e,t){this._transitionEngine.register(e,t)}},{key:"destroy",value:function(e,t){this._transitionEngine.destroy(e,t)}},{key:"onInsert",value:function(e,t,n,i){this._transitionEngine.insertNode(e,t,n,i)}},{key:"onRemove",value:function(e,t,n,i){this._transitionEngine.removeNode(e,t,i||!1,n)}},{key:"disableAnimations",value:function(e,t){this._transitionEngine.markElementAsDisabled(e,t)}},{key:"process",value:function(e,t,n,i){if("@"==n.charAt(0)){var r=_slicedToArray(Lt(n),2),a=r[0],o=r[1];this._timelineEngine.command(a,t,o,i)}else this._transitionEngine.trigger(e,t,n,i)}},{key:"listen",value:function(e,t,n,i,r){if("@"==n.charAt(0)){var a=_slicedToArray(Lt(n),2),o=a[0],s=a[1];return this._timelineEngine.listen(o,t,s,r)}return this._transitionEngine.listen(e,t,n,i,r)}},{key:"flush",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(e)}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}}]),e}();function di(e,t){var n=null,i=null;return Array.isArray(t)&&t.length?(n=vi(t[0]),t.length>1&&(i=vi(t[t.length-1]))):t&&(n=vi(t)),n||i?new pi(e,n,i):null}var pi=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this._element=t,this._startStyles=n,this._endStyles=i,this._state=0;var r=e.initialStylesByElement.get(t);r||e.initialStylesByElement.set(t,r={}),this._initialStyles=r}return _createClass(e,[{key:"start",value:function(){this._state<1&&(this._startStyles&&rn(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(rn(this._element,this._initialStyles),this._endStyles&&(rn(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(an(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(an(this._element,this._endStyles),this._endStyles=null),rn(this._element,this._initialStyles),this._state=3)}}]),e}();return e.initialStylesByElement=new WeakMap,e}();function vi(e){for(var t=null,n=Object.keys(e),i=0;i<n.length;i++){var r=n[i];mi(r)&&((t=t||{})[r]=e[r])}return t}function mi(e){return"display"===e||"position"===e}var _i=function(){function e(t,n,i,r,a,o,s){var l=this;_classCallCheck(this,e),this._element=t,this._name=n,this._duration=i,this._delay=r,this._easing=a,this._fillMode=o,this._onDoneFn=s,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=function(e){return l._handleCallback(e)}}return _createClass(e,[{key:"apply",value:function(){var e,t,n;e=this._element,t="".concat(this._duration,"ms ").concat(this._easing," ").concat(this._delay,"ms 1 normal ").concat(this._fillMode," ").concat(this._name),(n=wi(e,"").trim()).length&&(function(e,t){for(var n=0;n<e.length;n++)e.charAt(n)}(n),t="".concat(n,", ").concat(t)),Ci(e,"",t),ki(this._element,this._eventFn,!1),this._startTime=Date.now()}},{key:"pause",value:function(){gi(this._element,this._name,"paused")}},{key:"resume",value:function(){gi(this._element,this._name,"running")}},{key:"setPosition",value:function(e){var t=yi(this._element,this._name);this._position=e*this._duration,Ci(this._element,"Delay","-".concat(this._position,"ms"),t)}},{key:"getPosition",value:function(){return this._position}},{key:"_handleCallback",value:function(e){var t=e._ngTestManualTimestamp||Date.now(),n=1e3*parseFloat(e.elapsedTime.toFixed(3));e.animationName==this._name&&Math.max(t-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),ki(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){var e,t,n,i;this._destroyed||(this._destroyed=!0,this.finish(),e=this._element,t=this._name,n=wi(e,"").split(","),(i=bi(n,t))>=0&&(n.splice(i,1),Ci(e,"",n.join(","))))}}]),e}();function gi(e,t,n){Ci(e,"PlayState",n,yi(e,t))}function yi(e,t){var n=wi(e,"");return n.indexOf(",")>0?bi(n.split(","),t):bi([n],t)}function bi(e,t){for(var n=0;n<e.length;n++)if(e[n].indexOf(t)>=0)return n;return-1}function ki(e,t,n){n?e.removeEventListener("animationend",t):e.addEventListener("animationend",t)}function Ci(e,t,n,i){var r="animation"+t;if(null!=i){var a=e.style[r];if(a.length){var o=a.split(",");o[i]=n,n=o.join(",")}}e.style[r]=n}function wi(e,t){return e.style["animation"+t]||""}var Oi=function(){function e(t,n,i,r,a,o,s,l){_classCallCheck(this,e),this.element=t,this.keyframes=n,this.animationName=i,this._duration=r,this._delay=a,this._finalStyles=s,this._specialStyles=l,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=o||"linear",this.totalTime=r+a,this._buildStyler()}return _createClass(e,[{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"destroy",value:function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(e){this._styler.setPosition(e)}},{key:"getPosition",value:function(){return this._styler.getPosition()}},{key:"hasStarted",value:function(){return this._state>=2}},{key:"init",value:function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}},{key:"pause",value:function(){this.init(),this._styler.pause()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"reset",value:function(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var e=this;this._styler=new _i(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return e.finish()})}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}},{key:"beforeDestroy",value:function(){var e=this;this.init();var t={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach(function(i){"offset"!=i&&(t[i]=n?e._finalStyles[i]:mn(e.element,i))})}this.currentSnapshot=t}}]),e}(),Si=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this)).element=e,r._startingStyles={},r.__initialized=!1,r._styles=Kt(i),r}return _createClass(n,[{key:"init",value:function(){var e=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(function(t){e._startingStyles[t]=e.element.style[t]}),_get(_getPrototypeOf(n.prototype),"init",this).call(this))}},{key:"play",value:function(){var e=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(function(t){return e.element.style.setProperty(t,e._styles[t])}),_get(_getPrototypeOf(n.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var e=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach(function(t){var n=e._startingStyles[t];n?e.element.style.setProperty(t,n):e.element.style.removeProperty(t)}),this._startingStyles=null,_get(_getPrototypeOf(n.prototype),"destroy",this).call(this))}}]),n}(xt),xi=function(){function e(){_classCallCheck(this,e),this._count=0,this._head=document.querySelector("head")}return _createClass(e,[{key:"validateStyleProperty",value:function(e){return Ht(e)}},{key:"matchesElement",value:function(e,t){return zt(e,t)}},{key:"containsElement",value:function(e,t){return Yt(e,t)}},{key:"query",value:function(e,t,n){return Wt(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"buildKeyframeElement",value:function(e,t,n){n=n.map(function(e){return Kt(e)});var i="@keyframes ".concat(t," {\n"),r="";n.forEach(function(e){r=" ";var t=parseFloat(e.offset);i+="".concat(r).concat(100*t,"% {\n"),r+=" ",Object.keys(e).forEach(function(t){var n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(i+="".concat(r,"animation-timing-function: ").concat(n,";\n")));default:return void(i+="".concat(r).concat(t,": ").concat(n,";\n"))}}),i+="".concat(r,"}\n")}),i+="}\n";var a=document.createElement("style");return a.textContent=i,a}},{key:"animate",value:function(e,t,n,i,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],o=a.filter(function(e){return e instanceof Oi}),s={};dn(n,i)&&o.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return s[e]=t[e]})});var l=function(e){var t={};return e&&(Array.isArray(e)?e:[e]).forEach(function(e){Object.keys(e).forEach(function(n){"offset"!=n&&"easing"!=n&&(t[n]=e[n])})}),t}(t=pn(e,t,s));if(0==n)return new Si(e,l);var c="gen_css_kf_"+this._count++,u=this.buildKeyframeElement(e,c,t);document.querySelector("head").appendChild(u);var h=di(e,t),f=new Oi(e,t,c,n,i,r,l,h);return f.onDestroy(function(){var e;(e=u).parentNode.removeChild(e)}),f}}]),e}(),Ei=function(){function e(t,n,i,r){_classCallCheck(this,e),this.element=t,this.keyframes=n,this.options=i,this._specialStyles=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.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}return _createClass(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var e=this;if(!this._initialized){this._initialized=!0;var t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",function(){return e._onFinish()})}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(e,t,n){return e.animate(t,n)}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"setPosition",value:function(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"totalTime",get:function(){return this._delay+this._duration}},{key:"beforeDestroy",value:function(){var e=this,t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(t[n]=e._finished?e._finalKeyframe[n]:mn(e.element,n))}),this.currentSnapshot=t}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),Ti=function(){function e(){_classCallCheck(this,e),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Ai().toString()),this._cssKeyframesDriver=new xi}return _createClass(e,[{key:"validateStyleProperty",value:function(e){return Ht(e)}},{key:"matchesElement",value:function(e,t){return zt(e,t)}},{key:"containsElement",value:function(e,t){return Yt(e,t)}},{key:"query",value:function(e,t,n){return Wt(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"overrideWebAnimationsSupport",value:function(e){this._isNativeImpl=e}},{key:"animate",value:function(e,t,n,i,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],o=arguments.length>6?arguments[6]:void 0;if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,i,r,a);var s={duration:n,delay:i,fill:0==i?"both":"forwards"};r&&(s.easing=r);var l={},c=a.filter(function(e){return e instanceof Ei});dn(n,i)&&c.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return l[e]=t[e]})});var u=di(e,t=pn(e,t=t.map(function(e){return en(e,!1)}),l));return new Ei(e,t,s,u)}}]),e}();function Ai(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var Ri,Di=((Ri=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var a;return _classCallCheck(this,n),(a=t.call(this))._nextAnimationId=0,a._renderer=e.createRenderer(r.body,{id:"0",encapsulation:i.T.None,styles:[],data:{animation:[]}}),a}return _createClass(n,[{key:"build",value:function(e){var t=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(e)?gt(e):e;return Mi(this._renderer,null,t,"register",[n]),new Pi(t,this._renderer)}}]),n}(vt)).\u0275fac=function(e){return new(e||Ri)(i.Yb(i.H),i.Yb(s))},Ri.\u0275prov=i.Kb({token:Ri,factory:Ri.\u0275fac}),Ri),Pi=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this))._id=e,r._renderer=i,r}return _createClass(n,[{key:"create",value:function(e,t){return new Ii(this._id,e,t||{},this._renderer)}}]),n}(function(){return function e(){_classCallCheck(this,e)}}()),Ii=function(){function e(t,n,i,r){_classCallCheck(this,e),this.id=t,this.element=n,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}return _createClass(e,[{key:"_listen",value:function(e,t){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(e),t)}},{key:"_command",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return Mi(this._renderer,this.element,this.id,e,n)}},{key:"onDone",value:function(e){this._listen("done",e)}},{key:"onStart",value:function(e){this._listen("start",e)}},{key:"onDestroy",value:function(e){this._listen("destroy",e)}},{key:"init",value:function(){this._command("init")}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this._command("play"),this._started=!0}},{key:"pause",value:function(){this._command("pause")}},{key:"restart",value:function(){this._command("restart")}},{key:"finish",value:function(){this._command("finish")}},{key:"destroy",value:function(){this._command("destroy")}},{key:"reset",value:function(){this._command("reset")}},{key:"setPosition",value:function(e){this._command("setPosition",e)}},{key:"getPosition",value:function(){var e,t;return null!==(t=null===(e=this._renderer.engine.players[+this.id])||void 0===e?void 0:e.getPosition())&&void 0!==t?t:0}}]),e}();function Mi(e,t,n,i,r){return e.setProperty(t,"@@".concat(n,":").concat(i),r)}var Li,ji,Fi,Ni=((Li=function(){function e(t,n,i){_classCallCheck(this,e),this.delegate=t,this.engine=n,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),n.onRemovalComplete=function(e,t){t&&t.parentNode(e)&&t.removeChild(e.parentNode,e)}}return _createClass(e,[{key:"createRenderer",value:function(e,t){var n=this,i=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){var r=this._rendererCache.get(i);return r||(r=new Ui("",i,this.engine),this._rendererCache.set(i,r)),r}var a=t.id,o=t.id+"-"+this._currentId;return this._currentId++,this.engine.register(o,e),t.data.animation.forEach(function t(i){Array.isArray(i)?i.forEach(t):n.engine.registerTrigger(a,o,e,i.name,i)}),new Bi(this,o,i,this.engine)}},{key:"begin",value:function(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}},{key:"_scheduleCountTask",value:function(){var e=this;this.promise.then(function(){e._microtaskId++})}},{key:"scheduleListenerCallback",value:function(e,t,n){var i=this;e>=0&&e<this._microtaskId?this._zone.run(function(){return t(n)}):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(function(){i._zone.run(function(){i._animationCallbacksBuffer.forEach(function(e){var t=_slicedToArray(e,2);(0,t[0])(t[1])}),i._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,n]))}},{key:"end",value: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()}},{key:"whenRenderingDone",value:function(){return this.engine.whenRenderingDone()}}]),e}()).\u0275fac=function(e){return new(e||Li)(i.Yb(i.H),i.Yb(fi),i.Yb(i.B))},Li.\u0275prov=i.Kb({token:Li,factory:Li.\u0275fac}),Li),Ui=function(){function e(t,n,i){_classCallCheck(this,e),this.namespaceId=t,this.delegate=n,this.engine=i,this.destroyNode=this.delegate.destroyNode?function(e){return n.destroyNode(e)}:null}return _createClass(e,[{key:"data",get:function(){return this.delegate.data}},{key:"destroy",value:function(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}},{key:"createElement",value:function(e,t){return this.delegate.createElement(e,t)}},{key:"createComment",value:function(e){return this.delegate.createComment(e)}},{key:"createText",value:function(e){return this.delegate.createText(e)}},{key:"appendChild",value:function(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}},{key:"insertBefore",value:function(e,t,n){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,i)}},{key:"removeChild",value:function(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}},{key:"selectRootElement",value:function(e,t){return this.delegate.selectRootElement(e,t)}},{key:"parentNode",value:function(e){return this.delegate.parentNode(e)}},{key:"nextSibling",value:function(e){return this.delegate.nextSibling(e)}},{key:"setAttribute",value:function(e,t,n,i){this.delegate.setAttribute(e,t,n,i)}},{key:"removeAttribute",value:function(e,t,n){this.delegate.removeAttribute(e,t,n)}},{key:"addClass",value:function(e,t){this.delegate.addClass(e,t)}},{key:"removeClass",value:function(e,t){this.delegate.removeClass(e,t)}},{key:"setStyle",value:function(e,t,n,i){this.delegate.setStyle(e,t,n,i)}},{key:"removeStyle",value:function(e,t,n){this.delegate.removeStyle(e,t,n)}},{key:"setProperty",value:function(e,t,n){"@"==t.charAt(0)&&"@.disabled"==t?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}},{key:"setValue",value:function(e,t){this.delegate.setValue(e,t)}},{key:"listen",value:function(e,t,n){return this.delegate.listen(e,t,n)}},{key:"disableAnimations",value:function(e,t){this.engine.disableAnimations(e,t)}}]),e}(),Bi=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a){var o;return _classCallCheck(this,n),(o=t.call(this,i,r,a)).factory=e,o.namespaceId=i,o}return _createClass(n,[{key:"setProperty",value:function(e,t,n){"@"==t.charAt(0)?"."==t.charAt(1)&&"@.disabled"==t?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)}},{key:"listen",value:function(e,t,n){var i,r,a=this;if("@"==t.charAt(0)){var o,s=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e),l=t.substr(1),c="";return"@"!=l.charAt(0)&&(r=(i=l).indexOf("."),l=(o=_slicedToArray([i.substring(0,r),i.substr(r+1)],2))[0],c=o[1]),this.engine.listen(this.namespaceId,s,l,c,function(e){a.factory.scheduleListenerCallback(e._data||-1,n,e)})}return this.delegate.listen(e,t,n)}}]),n}(Ui),Vi=((ji=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){return _classCallCheck(this,n),t.call(this,e.body,i,r)}return n}(fi)).\u0275fac=function(e){return new(e||ji)(i.Yb(s),i.Yb(Qt),i.Yb(Nn))},ji.\u0275prov=i.Kb({token:ji,factory:ji.\u0275fac}),ji),Hi=new i.s("AnimationModuleType"),zi=[{provide:Qt,useFactory:function(){return"function"==typeof Ai()?new Ti:new xi}},{provide:Hi,useValue:"BrowserAnimations"},{provide:vt,useClass:Di},{provide:Nn,useFactory:function(){return new Un}},{provide:fi,useClass:Vi},{provide:i.H,useFactory:function(e,t,n){return new Ni(e,t,n)},deps:[$e,fi,i.B]}],Yi=((Fi=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Fi)},Fi.\u0275mod=i.Mb({type:Fi}),Fi.\u0275inj=i.Lb({providers:zi,imports:[pt]}),Fi),Wi=n("l7P3"),Ki=n("VRyK"),qi=n("HDdC"),Gi=n("XNiG"),Qi=n("Cfvw"),Xi=n("EY2u");function Zi(e){return new qi.a(function(t){var n;try{n=e()}catch(i){return void t.error(i)}return(n?Object(Qi.a)(n):Object(Xi.b)()).subscribe(t)})}var Ji=n("WMd4"),$i=(n("mCNh"),n("LRne")),er=n("7o/Q"),tr=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new nr(e))}}]),e}(),nr=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"_next",value:function(e){}}]),n}(er.a),ir=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new rr(e))}}]),e}(),rr=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){return _classCallCheck(this,n),t.call(this,e)}return _createClass(n,[{key:"_next",value:function(e){this.destination.next(Ji.a.createNext(e))}},{key:"_error",value:function(e){var t=this.destination;t.next(Ji.a.createError(e)),t.complete()}},{key:"_complete",value:function(){var e=this.destination;e.next(Ji.a.createComplete()),e.complete()}}]),n}(er.a),ar=n("lJxs"),or=n("JIr8"),sr=n("pLZG"),lr=n("quSY");function cr(e,t,n,i){return function(r){return r.lift(new ur(e,t,n,i))}}var ur=function(){function e(t,n,i,r){_classCallCheck(this,e),this.keySelector=t,this.elementSelector=n,this.durationSelector=i,this.subjectSelector=r}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new hr(e,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))}}]),e}(),hr=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,o){var s;return _classCallCheck(this,n),(s=t.call(this,e)).keySelector=i,s.elementSelector=r,s.durationSelector=a,s.subjectSelector=o,s.groups=null,s.attemptedToUnsubscribe=!1,s.count=0,s}return _createClass(n,[{key:"_next",value:function(e){var t;try{t=this.keySelector(e)}catch(n){return void this.error(n)}this._group(e,t)}},{key:"_group",value:function(e,t){var n=this.groups;n||(n=this.groups=new Map);var i,r=n.get(t);if(this.elementSelector)try{i=this.elementSelector(e)}catch(s){this.error(s)}else i=e;if(!r){r=this.subjectSelector?this.subjectSelector():new Gi.a,n.set(t,r);var a=new dr(t,r,this);if(this.destination.next(a),this.durationSelector){var o;try{o=this.durationSelector(new dr(t,r))}catch(s){return void this.error(s)}this.add(o.subscribe(new fr(t,r,this)))}}r.closed||r.next(i)}},{key:"_error",value:function(e){var t=this.groups;t&&(t.forEach(function(t,n){t.error(e)}),t.clear()),this.destination.error(e)}},{key:"_complete",value:function(){var e=this.groups;e&&(e.forEach(function(e,t){e.complete()}),e.clear()),this.destination.complete()}},{key:"removeGroup",value:function(e){this.groups.delete(e)}},{key:"unsubscribe",value:function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&_get(_getPrototypeOf(n.prototype),"unsubscribe",this).call(this))}}]),n}(er.a),fr=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this,i)).key=e,a.group=i,a.parent=r,a}return _createClass(n,[{key:"_next",value:function(e){this.complete()}},{key:"_unsubscribe",value:function(){var e=this.parent,t=this.key;this.key=this.parent=null,e&&e.removeGroup(t)}}]),n}(er.a),dr=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this)).key=e,a.groupSubject=i,a.refCountSubscription=r,a}return _createClass(n,[{key:"_subscribe",value:function(e){var t=new lr.a,n=this.refCountSubscription,i=this.groupSubject;return n&&!n.closed&&t.add(new pr(n)),t.add(i.subscribe(e)),t}}]),n}(qi.a),pr=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this)).parent=e,e.count++,i}return _createClass(n,[{key:"unsubscribe",value:function(){var e=this.parent;e.closed||this.closed||(_get(_getPrototypeOf(n.prototype),"unsubscribe",this).call(this),e.count-=1,0===e.count&&e.attemptedToUnsubscribe&&e.unsubscribe())}}]),n}(lr.a),vr=n("5+tZ"),mr=n("zx2A");function _r(e,t){return t?function(n){return n.pipe(_r(function(n,i){return Object(Qi.a)(e(n,i)).pipe(Object(ar.a)(function(e,r){return t(n,e,i,r)}))}))}:function(t){return t.lift(new gr(e))}}var gr=function(){function e(t){_classCallCheck(this,e),this.project=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new yr(e,this.project))}}]),e}(),yr=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).project=i,r.hasSubscription=!1,r.hasCompleted=!1,r.index=0,r}return _createClass(n,[{key:"_next",value:function(e){this.hasSubscription||this.tryNext(e)}},{key:"tryNext",value:function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this.hasSubscription=!0,this._innerSub(t)}},{key:"_innerSub",value:function(e){var t=new mr.a(this),n=this.destination;n.add(t);var i=Object(mr.c)(e,t);i!==t&&n.add(i)}},{key:"_complete",value:function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(e){this.destination.next(e)}},{key:"notifyError",value:function(e){this.destination.error(e)}},{key:"notifyComplete",value:function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}]),n}(mr.b),br=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new kr(e))}}]),e}(),kr=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){return _classCallCheck(this,n),t.call(this,e)}return _createClass(n,[{key:"_next",value:function(e){e.observe(this.destination)}}]),n}(er.a),Cr=n("IzEk"),wr=n("bOdf");function Or(e){return function(t){return t.lift(new Sr(e))}}var Sr=function(){function e(t){_classCallCheck(this,e),this.callback=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new xr(e,this.callback))}}]),e}(),xr=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).add(new lr.a(i)),r}return n}(er.a),Er=n("zp1y"),Tr={dispatch:!0,useEffectsErrorHandler:!0};function Ar(e){return Object.getOwnPropertyNames(e).filter(function(t){return!(!e[t]||!e[t].hasOwnProperty("__@ngrx/effects_create__"))&&e[t]["__@ngrx/effects_create__"].hasOwnProperty("dispatch")}).map(function(t){return Object.assign({propertyName:t},e[t]["__@ngrx/effects_create__"])})}function Rr(e){return Object.getPrototypeOf(e)}function Dr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t,n){var i,r;i=t,r=Object.assign(Object.assign(Object.assign({},Tr),e),{propertyName:n}),Ir(i)?i.constructor["__@ngrx/effects__"].push(r):Object.defineProperty(i.constructor,"__@ngrx/effects__",{value:[r]})}}function Pr(e){return Object(Wi.n)(Mr,Rr)(e)}function Ir(e){return e.constructor.hasOwnProperty("__@ngrx/effects__")}function Mr(e){return Ir(e)?e.constructor["__@ngrx/effects__"]:[]}function Lr(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;return e.pipe(Object(or.a)(function(i){return t&&t.handleError(i),n<=1?e:Lr(e,t,n-1)}))}var jr,Fr=((jr=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),i=t.call(this),e&&(i.source=e),i}return _createClass(n,[{key:"lift",value:function(e){var t=new n;return t.source=this,t.operator=e,t}}]),n}(qi.a)).\u0275fac=function(e){return new(e||jr)(i.Yb(Wi.g))},jr.\u0275prov=i.Kb({token:jr,factory:jr.\u0275fac}),jr);function Nr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Object(sr.a)(function(e){return t.some(function(t){return"string"==typeof t?t===e.type:t.type===e.type})})}function Ur(e){return Br(e,"ngrxOnInitEffects")}function Br(e,t){return e&&t in e&&"function"==typeof e[t]}var Vr,Hr=new i.s("@ngrx/effects Internal Root Guard"),zr=new i.s("@ngrx/effects User Provided Effects"),Yr=new i.s("@ngrx/effects Internal Root Effects"),Wr=new i.s("@ngrx/effects Root Effects"),Kr=new i.s("@ngrx/effects Internal Feature Effects"),qr=new i.s("@ngrx/effects Feature Effects"),Gr=new i.s("@ngrx/effects Effects Error Handler"),Qr=((Vr=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this)).errorHandler=e,r.effectsErrorHandler=i,r}return _createClass(n,[{key:"addEffects",value:function(e){this.next(e)}},{key:"toActions",value:function(){var e=this;return this.pipe(cr(Rr),Object(vr.a)(function(e){return e.pipe(cr(Xr))}),Object(vr.a)(function(t){var n=t.pipe(_r(function(t){return(n=e.errorHandler,i=e.effectsErrorHandler,function(e){var t=function(e,t,n){var i,r=Rr(e).constructor.name,a=(i=e,[Pr,Ar].reduce(function(e,t){return e.concat(t(i))},[])).map(function(i){var a=i.propertyName,o=i.dispatch,s=i.useEffectsErrorHandler,l="function"==typeof e[a]?e[a]():e[a],c=s?n(l,t):l;return!1===o?c.pipe(function(e){return e.lift(new tr)}):c.pipe(function(e){return e.lift(new ir)}).pipe(Object(ar.a)(function(t){return{effect:e[a],notification:t,propertyName:a,sourceName:r,sourceInstance:e}}))});return Object(Ki.a).apply(void 0,_toConsumableArray(a))}(e,n,i);return Br(e,"ngrxOnRunEffects")?e.ngrxOnRunEffects(t):t})(t);var n,i}),Object(ar.a)(function(t){return function(e,t){if("N"===e.notification.kind){var n=e.notification.value;!function(e){return"function"!=typeof e&&e&&e.type&&"string"==typeof e.type}(n)&&t.handleError(new Error("Effect ".concat((i=e,r=i.propertyName,a=i.sourceInstance,o=i.sourceName,s="function"==typeof a[r],'"'.concat(o,".").concat(String(r)).concat(s?"()":"",'"'))," dispatched an invalid action: ").concat(function(e){try{return JSON.stringify(e)}catch(t){return e}}(n))))}var i,r,a,o,s}(t,e.errorHandler),t.notification}),Object(sr.a)(function(e){return"N"===e.kind&&null!=e.value}),function(e){return e.lift(new br)}),i=t.pipe(Object(Cr.a)(1),Object(sr.a)(Ur),Object(ar.a)(function(e){return e.ngrxOnInitEffects()}));return Object(Ki.a)(n,i)}))}}]),n}(Gi.a)).\u0275fac=function(e){return new(e||Vr)(i.Yb(i.n),i.Yb(Gr))},Vr.\u0275prov=i.Kb({token:Vr,factory:Vr.\u0275fac}),Vr);function Xr(e){return Br(e,"ngrxOnIdentifyEffects")?e.ngrxOnIdentifyEffects():""}var Zr,Jr=((Zr=function(){function e(t,n){_classCallCheck(this,e),this.effectSources=t,this.store=n,this.effectsSubscription=null}return _createClass(e,[{key:"start",value:function(){this.effectsSubscription||(this.effectsSubscription=this.effectSources.toActions().subscribe(this.store))}},{key:"ngOnDestroy",value:function(){this.effectsSubscription&&(this.effectsSubscription.unsubscribe(),this.effectsSubscription=null)}}]),e}()).\u0275fac=function(e){return new(e||Zr)(i.Yb(Qr),i.Yb(Wi.i))},Zr.\u0275prov=i.Kb({token:Zr,factory:Zr.\u0275fac}),Zr);Object(Wi.o)("@ngrx/effects/init");var $r,ea,ta,na=((ta=function(){function e(t,n,i,r,a,o,s){_classCallCheck(this,e),this.sources=t,n.start(),r.forEach(function(e){return t.addEffects(e)}),i.dispatch({type:"@ngrx/effects/init"})}return _createClass(e,[{key:"addEffects",value:function(e){this.sources.addEffects(e)}}]),e}()).\u0275fac=function(e){return new(e||ta)(i.Yb(Qr),i.Yb(Jr),i.Yb(Wi.i),i.Yb(Wr),i.Yb(Wi.l,8),i.Yb(Wi.j,8),i.Yb(Hr,8))},ta.\u0275mod=i.Mb({type:ta}),ta.\u0275inj=i.Lb({}),ta),ia=((ea=function e(t,n,i,r){_classCallCheck(this,e),n.forEach(function(e){return e.forEach(function(e){return t.addEffects(e)})})}).\u0275fac=function(e){return new(e||ea)(i.Yb(na),i.Yb(qr),i.Yb(Wi.l,8),i.Yb(Wi.j,8))},ea.\u0275mod=i.Mb({type:ea}),ea.\u0275inj=i.Lb({}),ea),ra=(($r=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"forFeature",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{ngModule:ia,providers:[e,{provide:Kr,multi:!0,useValue:e},{provide:zr,multi:!0,useValue:[]},{provide:qr,multi:!0,useFactory:aa,deps:[i.t,Kr,zr]}]}}},{key:"forRoot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{ngModule:na,providers:[{provide:Gr,useValue:Lr},Jr,Qr,Fr,e,{provide:Yr,useValue:[e]},{provide:Hr,useFactory:oa,deps:[[Jr,new i.C,new i.M],[Yr,new i.L]]},{provide:zr,multi:!0,useValue:[]},{provide:Wr,useFactory:aa,deps:[i.t,Yr,zr]}]}}}]),e}()).\u0275fac=function(e){return new(e||$r)},$r.\u0275mod=i.Mb({type:$r}),$r.\u0275inj=i.Lb({}),$r);function aa(e,t,n){var i,r=[],a=_createForOfIteratorHelper(t);try{for(a.s();!(i=a.n()).done;){var o=i.value;r.push.apply(r,_toConsumableArray(o))}}catch(u){a.e(u)}finally{a.f()}var s,l=_createForOfIteratorHelper(n);try{for(l.s();!(s=l.n()).done;){var c=s.value;r.push.apply(r,_toConsumableArray(c))}}catch(u){l.e(u)}finally{l.f()}return function(e,t){return t.map(function(t){return e.get(t)})}(e,r)}function oa(e,t){if((1!==t.length||0!==t[0].length)&&e)throw new TypeError("EffectsModule.forRoot() called twice. Feature modules should use EffectsModule.forFeature() instead.");return"guarded"}var sa=n("agSv"),la=n("2Vo4"),ca=n("z+Ro"),ua=n("DH7j"),ha=n("l7GE"),fa=n("ZUHj"),da=n("yCtX"),pa={};function va(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i,r;return Object(ca.a)(t[t.length-1])&&(r=t.pop()),"function"==typeof t[t.length-1]&&(i=t.pop()),1===t.length&&Object(ua.a)(t[0])&&(t=t[0]),Object(da.a)(t,r).lift(new ma(i))}var ma=function(){function e(t){_classCallCheck(this,e),this.resultSelector=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new _a(e,this.resultSelector))}}]),e}(),_a=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).resultSelector=i,r.active=0,r.values=[],r.observables=[],r}return _createClass(n,[{key:"_next",value:function(e){this.values.push(pa),this.observables.push(e)}},{key:"_complete",value:function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(var n=0;n<t;n++){var i=e[n];this.add(Object(fa.a)(this,i,void 0,n))}}}},{key:"notifyComplete",value:function(e){0==(this.active-=1)&&this.destination.complete()}},{key:"notifyNext",value:function(e,t,n){var i=this.values,r=this.toRespond?i[n]===pa?--this.toRespond:this.toRespond:0;i[n]=t,0===r&&(this.resultSelector?this._tryResultSelector(i):this.destination.next(i.slice()))}},{key:"_tryResultSelector",value:function(e){var t;try{t=this.resultSelector.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(ha.a),ga=function(){function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e}(),ya=n("bHdf");function ba(){return Object(ya.a)(1)(Object($i.a).apply(void 0,arguments))}var ka=n("EQ5u"),Ca=n("eIep");function wa(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t[t.length-1];return Object(ca.a)(i)?(t.pop(),function(e){return ba(t,e,i)}):function(e){return ba(t,e)}}var Oa=n("Kqap"),Sa=n("4I5i");function xa(e){return function(t){return 0===e?Object(Xi.b)():t.lift(new Ea(e))}}var Ea=function(){function e(t){if(_classCallCheck(this,e),this.total=t,this.total<0)throw new Sa.a}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new Ta(e,this.total))}}]),e}(),Ta=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).total=i,r.ring=new Array,r.count=0,r}return _createClass(n,[{key:"_next",value:function(e){var t=this.ring,n=this.total,i=this.count++;t.length<n?t.push(e):t[i%n]=e}},{key:"_complete",value:function(){var e=this.destination,t=this.count;if(t>0)for(var n=this.count>=this.total?this.total:this.count,i=this.ring,r=0;r<n;r++){var a=t++%n;e.next(i[a])}e.complete()}}]),n}(er.a);function Aa(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Pa;return function(t){return t.lift(new Ra(e))}}var Ra=function(){function e(t){_classCallCheck(this,e),this.errorFactory=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new Da(e,this.errorFactory))}}]),e}(),Da=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).errorFactory=i,r.hasValue=!1,r}return _createClass(n,[{key:"_next",value:function(e){this.hasValue=!0,this.destination.next(e)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}]),n}(er.a);function Pa(){return new ga}function Ia(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(t){return t.lift(new Ma(e))}}var Ma=function(){function e(t){_classCallCheck(this,e),this.defaultValue=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new La(e,this.defaultValue))}}]),e}(),La=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).defaultValue=i,r.isEmpty=!0,r}return _createClass(n,[{key:"_next",value:function(e){this.isEmpty=!1,this.destination.next(e)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),n}(er.a),ja=n("SpAZ");function Fa(e,t){var n=arguments.length>=2;return function(i){return i.pipe(e?Object(sr.a)(function(t,n){return e(t,n,i)}):ja.a,Object(Cr.a)(1),n?Ia(t):Aa(function(){return new ga}))}}function Na(){}var Ua=n("n6bG");function Ba(e,t,n){return function(i){return i.lift(new Va(e,t,n))}}var Va=function(){function e(t,n,i){_classCallCheck(this,e),this.nextOrObserver=t,this.error=n,this.complete=i}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new Ha(e,this.nextOrObserver,this.error,this.complete))}}]),e}(),Ha=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a){var o;return _classCallCheck(this,n),(o=t.call(this,e))._tapNext=Na,o._tapError=Na,o._tapComplete=Na,o._tapError=r||Na,o._tapComplete=a||Na,Object(Ua.a)(i)?(o._context=_assertThisInitialized(o),o._tapNext=i):i&&(o._context=i,o._tapNext=i.next||Na,o._tapError=i.error||Na,o._tapComplete=i.complete||Na),o}return _createClass(n,[{key:"_next",value:function(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}},{key:"_error",value:function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}]),n}(er.a),za=n("x+ZX"),Ya=function e(t,n){_classCallCheck(this,e),this.id=t,this.url=n},Wa=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return _classCallCheck(this,n),(r=t.call(this,e,i)).navigationTrigger=a,r.restoredState=o,r}return _createClass(n,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(Ya),Ka=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a}return _createClass(n,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),n}(Ya),qa=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this,e,i)).reason=r,a}return _createClass(n,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(Ya),Ga=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this,e,i)).error=r,a}return _createClass(n,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),n}(Ya),Qa=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a){var o;return _classCallCheck(this,n),(o=t.call(this,e,i)).urlAfterRedirects=r,o.state=a,o}return _createClass(n,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(Ya),Xa=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a){var o;return _classCallCheck(this,n),(o=t.call(this,e,i)).urlAfterRedirects=r,o.state=a,o}return _createClass(n,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(Ya),Za=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,o){var s;return _classCallCheck(this,n),(s=t.call(this,e,i)).urlAfterRedirects=r,s.state=a,s.shouldActivate=o,s}return _createClass(n,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),n}(Ya),Ja=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a){var o;return _classCallCheck(this,n),(o=t.call(this,e,i)).urlAfterRedirects=r,o.state=a,o}return _createClass(n,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(Ya),$a=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a){var o;return _classCallCheck(this,n),(o=t.call(this,e,i)).urlAfterRedirects=r,o.state=a,o}return _createClass(n,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(Ya),eo=function(){function e(t){_classCallCheck(this,e),this.route=t}return _createClass(e,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),e}(),to=function(){function e(t){_classCallCheck(this,e),this.route=t}return _createClass(e,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),e}(),no=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),io=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),ro=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),ao=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),oo=function(){function e(t,n,i){_classCallCheck(this,e),this.routerEvent=t,this.position=n,this.anchor=i}return _createClass(e,[{key:"toString",value:function(){return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(this.position?"".concat(this.position[0],", ").concat(this.position[1]):null,"')")}}]),e}(),so=function(){function e(t){_classCallCheck(this,e),this.params=t||{}}return _createClass(e,[{key:"has",value:function(e){return Object.prototype.hasOwnProperty.call(this.params,e)}},{key:"get",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t[0]:t}return null}},{key:"getAll",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t:[t]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),e}();function lo(e){return new so(e)}function co(e){var t=Error("NavigationCancelingError: "+e);return t.ngNavigationCancelingError=!0,t}function uo(e,t,n){var i=n.path.split("/");if(i.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||i.length<e.length))return null;for(var r={},a=0;a<i.length;a++){var o=i[a],s=e[a];if(o.startsWith(":"))r[o.substring(1)]=s;else if(o!==s.path)return null}return{consumed:e.slice(0,i.length),posParams:r}}function ho(e,t){var n,i=e?Object.keys(e):void 0,r=t?Object.keys(t):void 0;if(!i||!r||i.length!=r.length)return!1;for(var a=0;a<i.length;a++)if(!fo(e[n=i[a]],t[n]))return!1;return!0}function fo(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;var n=_toConsumableArray(e).sort(),i=_toConsumableArray(t).sort();return n.every(function(e,t){return i[t]===e})}return e===t}function po(e){return Array.prototype.concat.apply([],e)}function vo(e){return e.length>0?e[e.length-1]:null}function mo(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function _o(e){return Object(i.tb)(e)?e:Object(i.ub)(e)?Object(Qi.a)(Promise.resolve(e)):Object($i.a)(e)}function go(e,t,n){return n?function(e,t){return ho(e,t)}(e.queryParams,t.queryParams)&&yo(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(function(n){return fo(e[n],t[n])})}(e.queryParams,t.queryParams)&&bo(e.root,t.root)}function yo(e,t){if(!So(e.segments,t.segments))return!1;if(e.numberOfChildren!==t.numberOfChildren)return!1;for(var n in t.children){if(!e.children[n])return!1;if(!yo(e.children[n],t.children[n]))return!1}return!0}function bo(e,t){return ko(e,t,t.segments)}function ko(e,t,n){if(e.segments.length>n.length)return!!So(e.segments.slice(0,n.length),n)&&!t.hasChildren();if(e.segments.length===n.length){if(!So(e.segments,n))return!1;for(var i in t.children){if(!e.children[i])return!1;if(!bo(e.children[i],t.children[i]))return!1}return!0}var r=n.slice(0,e.segments.length),a=n.slice(e.segments.length);return!!So(e.segments,r)&&!!e.children.primary&&ko(e.children.primary,t,a)}var Co=function(){function e(t,n,i){_classCallCheck(this,e),this.root=t,this.queryParams=n,this.fragment=i}return _createClass(e,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=lo(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return To.serialize(this)}}]),e}(),wo=function(){function e(t,n){var i=this;_classCallCheck(this,e),this.segments=t,this.children=n,this.parent=null,mo(n,function(e,t){return e.parent=i})}return _createClass(e,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return Ao(this)}}]),e}(),Oo=function(){function e(t,n){_classCallCheck(this,e),this.path=t,this.parameters=n}return _createClass(e,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=lo(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return jo(this)}}]),e}();function So(e,t){return e.length===t.length&&e.every(function(e,n){return e.path===t[n].path})}var xo=function e(){_classCallCheck(this,e)},Eo=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"parse",value:function(e){var t=new Vo(e);return new Co(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}},{key:"serialize",value:function(e){var t,n,i;return"/".concat(Ro(e.root,!0)).concat((n=e.queryParams,i=Object.keys(n).map(function(e){var t=n[e];return Array.isArray(t)?t.map(function(t){return"".concat(Po(e),"=").concat(Po(t))}).join("&"):"".concat(Po(e),"=").concat(Po(t))}),i.length?"?".concat(i.join("&")):"")).concat("string"==typeof e.fragment?"#".concat((t=e.fragment,encodeURI(t))):"")}}]),e}(),To=new Eo;function Ao(e){return e.segments.map(function(e){return jo(e)}).join("/")}function Ro(e,t){if(!e.hasChildren())return Ao(e);if(t){var n=e.children.primary?Ro(e.children.primary,!1):"",i=[];return mo(e.children,function(e,t){"primary"!==t&&i.push("".concat(t,":").concat(Ro(e,!1)))}),i.length>0?"".concat(n,"(").concat(i.join("//"),")"):n}var r=function(e,t){var n=[];return mo(e.children,function(e,i){"primary"===i&&(n=n.concat(t(e,i)))}),mo(e.children,function(e,i){"primary"!==i&&(n=n.concat(t(e,i)))}),n}(e,function(t,n){return"primary"===n?[Ro(e.children.primary,!1)]:["".concat(n,":").concat(Ro(t,!1))]});return 1===Object.keys(e.children).length&&null!=e.children.primary?"".concat(Ao(e),"/").concat(r[0]):"".concat(Ao(e),"/(").concat(r.join("//"),")")}function Do(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Po(e){return Do(e).replace(/%3B/gi,";")}function Io(e){return Do(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Mo(e){return decodeURIComponent(e)}function Lo(e){return Mo(e.replace(/\+/g,"%20"))}function jo(e){return"".concat(Io(e.path)).concat((t=e.parameters,Object.keys(t).map(function(e){return";".concat(Io(e),"=").concat(Io(t[e]))}).join("")));var t}var Fo=/^[^\/()?;=#]+/;function No(e){var t=e.match(Fo);return t?t[0]:""}var Uo=/^[^=?&#]+/,Bo=/^[^?&#]+/,Vo=function(){function e(t){_classCallCheck(this,e),this.url=t,this.remaining=t}return _createClass(e,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new wo([],{}):new wo([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());var t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n.primary=new wo(e,t)),n}},{key:"parseSegment",value:function(){var e=No(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(e),new Oo(Mo(e),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e}},{key:"parseParam",value:function(e){var t=No(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var i=No(this.remaining);i&&(n=i,this.capture(n))}e[Mo(t)]=Mo(n)}}},{key:"parseQueryParam",value:function(e){var t=function(e){var t=e.match(Uo);return t?t[0]:""}(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var i=function(e){var t=e.match(Bo);return t?t[0]:""}(this.remaining);i&&(n=i,this.capture(n))}var r=Lo(t),a=Lo(n);if(e.hasOwnProperty(r)){var o=e[r];Array.isArray(o)||(o=[o],e[r]=o),o.push(a)}else e[r]=a}}},{key:"parseParens",value:function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=No(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error("Cannot parse url '".concat(this.url,"'"));var r=void 0;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):e&&(r="primary");var a=this.parseChildren();t[r]=1===Object.keys(a).length?a.primary:new wo([],a),this.consumeOptional("//")}return t}},{key:"peekStartsWith",value:function(e){return this.remaining.startsWith(e)}},{key:"consumeOptional",value:function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}},{key:"capture",value:function(e){if(!this.consumeOptional(e))throw new Error('Expected "'.concat(e,'".'))}}]),e}(),Ho=function(){function e(t){_classCallCheck(this,e),this._root=t}return _createClass(e,[{key:"root",get:function(){return this._root.value}},{key:"parent",value:function(e){var t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}},{key:"children",value:function(e){var t=zo(e,this._root);return t?t.children.map(function(e){return e.value}):[]}},{key:"firstChild",value:function(e){var t=zo(e,this._root);return t&&t.children.length>0?t.children[0].value:null}},{key:"siblings",value:function(e){var t=Yo(e,this._root);return t.length<2?[]:t[t.length-2].children.map(function(e){return e.value}).filter(function(t){return t!==e})}},{key:"pathFromRoot",value:function(e){return Yo(e,this._root).map(function(e){return e.value})}}]),e}();function zo(e,t){if(e===t.value)return t;var n,i=_createForOfIteratorHelper(t.children);try{for(i.s();!(n=i.n()).done;){var r=zo(e,n.value);if(r)return r}}catch(a){i.e(a)}finally{i.f()}return null}function Yo(e,t){if(e===t.value)return[t];var n,i=_createForOfIteratorHelper(t.children);try{for(i.s();!(n=i.n()).done;){var r=Yo(e,n.value);if(r.length)return r.unshift(t),r}}catch(a){i.e(a)}finally{i.f()}return[]}var Wo=function(){function e(t,n){_classCallCheck(this,e),this.value=t,this.children=n}return _createClass(e,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),e}();function Ko(e){var t={};return e&&e.children.forEach(function(e){return t[e.value.outlet]=e}),t}var qo=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).snapshot=i,$o(_assertThisInitialized(r),e),r}return _createClass(n,[{key:"toString",value:function(){return this.snapshot.toString()}}]),n}(Ho);function Go(e,t){var n=function(e,t){var n=new Zo([],{},{},"",{},"primary",t,null,e.root,-1,{});return new Jo("",new Wo(n,[]))}(e,t),i=new la.a([new Oo("",{})]),r=new la.a({}),a=new la.a({}),o=new la.a({}),s=new la.a(""),l=new Qo(i,r,o,s,a,"primary",t,n.root);return l.snapshot=n.root,new qo(new Wo(l,[]),n)}var Qo=function(){function e(t,n,i,r,a,o,s,l){_classCallCheck(this,e),this.url=t,this.params=n,this.queryParams=i,this.fragment=r,this.data=a,this.outlet=o,this.component=s,this._futureSnapshot=l}return _createClass(e,[{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe(Object(ar.a)(function(e){return lo(e)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(ar.a)(function(e){return lo(e)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),e}();function Xo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",n=e.pathFromRoot,i=0;if("always"!==t)for(i=n.length-1;i>=1;){var r=n[i],a=n[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(a.component)break;i--}}return function(e){return e.reduce(function(e,t){return{params:Object.assign(Object.assign({},e.params),t.params),data:Object.assign(Object.assign({},e.data),t.data),resolve:Object.assign(Object.assign({},e.resolve),t._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(i))}var Zo=function(){function e(t,n,i,r,a,o,s,l,c,u,h){_classCallCheck(this,e),this.url=t,this.params=n,this.queryParams=i,this.fragment=r,this.data=a,this.outlet=o,this.component=s,this.routeConfig=l,this._urlSegment=c,this._lastPathIndex=u,this._resolve=h}return _createClass(e,[{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=lo(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=lo(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return"Route(url:'".concat(this.url.map(function(e){return e.toString()}).join("/"),"', path:'").concat(this.routeConfig?this.routeConfig.path:"","')")}}]),e}(),Jo=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,i)).url=e,$o(_assertThisInitialized(r),i),r}return _createClass(n,[{key:"toString",value:function(){return es(this._root)}}]),n}(Ho);function $o(e,t){t.value._routerState=e,t.children.forEach(function(t){return $o(e,t)})}function es(e){var t=e.children.length>0?" { ".concat(e.children.map(es).join(", ")," } "):"";return"".concat(e.value).concat(t)}function ts(e){if(e.snapshot){var t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,ho(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),ho(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;++n)if(!ho(e[n],t[n]))return!1;return!0}(t.url,n.url)||e.url.next(n.url),ho(t.data,n.data)||e.data.next(n.data)}else e.snapshot=e._futureSnapshot,e.data.next(e._futureSnapshot.data)}function ns(e,t){var n,i;return ho(e.params,t.params)&&So(n=e.url,i=t.url)&&n.every(function(e,t){return ho(e.parameters,i[t].parameters)})&&!(!e.parent!=!t.parent)&&(!e.parent||ns(e.parent,t.parent))}function is(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){var i=n.value;i._futureSnapshot=t.value;var r=function(e,t,n){return t.children.map(function(t){var i,r=_createForOfIteratorHelper(n.children);try{for(r.s();!(i=r.n()).done;){var a=i.value;if(e.shouldReuseRoute(t.value,a.value.snapshot))return is(e,t,a)}}catch(o){r.e(o)}finally{r.f()}return is(e,t)})}(e,t,n);return new Wo(i,r)}if(e.shouldAttach(t.value)){var a=e.retrieve(t.value);if(null!==a){var o=a.route;return rs(t,o),o}}var s,l=new Qo(new la.a((s=t.value).url),new la.a(s.params),new la.a(s.queryParams),new la.a(s.fragment),new la.a(s.data),s.outlet,s.component,s),c=t.children.map(function(t){return is(e,t)});return new Wo(l,c)}function rs(e,t){if(e.value.routeConfig!==t.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==t.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");t.value._futureSnapshot=e.value;for(var n=0;n<e.children.length;++n)rs(e.children[n],t.children[n])}function as(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function os(e){return"object"==typeof e&&null!=e&&e.outlets}function ss(e,t,n,i,r){var a={};return i&&mo(i,function(e,t){a[t]=Array.isArray(e)?e.map(function(e){return"".concat(e)}):"".concat(e)}),new Co(n.root===e?t:ls(n.root,e,t),a,r)}function ls(e,t,n){var i={};return mo(e.children,function(e,r){i[r]=e===t?n:ls(e,t,n)}),new wo(e.segments,i)}var cs=function(){function e(t,n,i){if(_classCallCheck(this,e),this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=i,t&&i.length>0&&as(i[0]))throw new Error("Root segment cannot have matrix parameters");var r=i.find(os);if(r&&r!==vo(i))throw new Error("{outlets:{}} has to be the last command")}return _createClass(e,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),e}(),us=function e(t,n,i){_classCallCheck(this,e),this.segmentGroup=t,this.processChildren=n,this.index=i};function hs(e,t,n){if(e||(e=new wo([],{})),0===e.segments.length&&e.hasChildren())return fs(e,t,n);var i=function(e,t,n){for(var i=0,r=t,a={match:!1,pathIndex:0,commandIndex:0};r<e.segments.length;){if(i>=n.length)return a;var o=e.segments[r],s=n[i];if(os(s))break;var l="".concat(s),c=i<n.length-1?n[i+1]:null;if(r>0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!ms(l,c,o))return a;i+=2}else{if(!ms(l,{},o))return a;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(e,t,n),r=n.slice(i.commandIndex);if(i.match&&i.pathIndex<e.segments.length){var a=new wo(e.segments.slice(0,i.pathIndex),{});return a.children.primary=new wo(e.segments.slice(i.pathIndex),e.children),fs(a,0,r)}return i.match&&0===r.length?new wo(e.segments,{}):i.match&&!e.hasChildren()?ds(e,t,n):i.match?fs(e,0,r):ds(e,t,n)}function fs(e,t,n){if(0===n.length)return new wo(e.segments,{});var i=function(e){return os(e[0])?e[0].outlets:{primary:e}}(n),r={};return mo(i,function(n,i){"string"==typeof n&&(n=[n]),null!==n&&(r[i]=hs(e.children[i],t,n))}),mo(e.children,function(e,t){void 0===i[t]&&(r[t]=e)}),new wo(e.segments,r)}function ds(e,t,n){for(var i=e.segments.slice(0,t),r=0;r<n.length;){var a=n[r];if(os(a)){var o=ps(a.outlets);return new wo(i,o)}if(0===r&&as(n[0]))i.push(new Oo(e.segments[t].path,vs(n[0]))),r++;else{var s=os(a)?a.outlets.primary:"".concat(a),l=r<n.length-1?n[r+1]:null;s&&l&&as(l)?(i.push(new Oo(s,vs(l))),r+=2):(i.push(new Oo(s,{})),r++)}}return new wo(i,{})}function ps(e){var t={};return mo(e,function(e,n){"string"==typeof e&&(e=[e]),null!==e&&(t[n]=ds(new wo([],{}),0,e))}),t}function vs(e){var t={};return mo(e,function(e,n){return t[n]="".concat(e)}),t}function ms(e,t,n){return e==n.path&&ho(t,n.parameters)}var _s=function(){function e(t,n,i,r){_classCallCheck(this,e),this.routeReuseStrategy=t,this.futureState=n,this.currState=i,this.forwardEvent=r}return _createClass(e,[{key:"activate",value:function(e){var t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,e),ts(this.futureState.root),this.activateChildRoutes(t,n,e)}},{key:"deactivateChildRoutes",value:function(e,t,n){var i=this,r=Ko(t);e.children.forEach(function(e){var t=e.value.outlet;i.deactivateRoutes(e,r[t],n),delete r[t]}),mo(r,function(e,t){i.deactivateRouteAndItsChildren(e,n)})}},{key:"deactivateRoutes",value:function(e,t,n){var i=e.value,r=t?t.value:null;if(i===r)if(i.component){var a=n.getContext(i.outlet);a&&this.deactivateChildRoutes(e,t,a.children)}else this.deactivateChildRoutes(e,t,n);else r&&this.deactivateRouteAndItsChildren(t,n)}},{key:"deactivateRouteAndItsChildren",value:function(e,t){this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}},{key:"detachAndStoreRouteSubtree",value:function(e,t){var n=t.getContext(e.value.outlet);if(n&&n.outlet){var i=n.outlet.detach(),r=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:i,route:e,contexts:r})}}},{key:"deactivateRouteAndOutlet",value:function(e,t){for(var n=t.getContext(e.value.outlet),i=n&&e.value.component?n.children:t,r=Ko(e),a=0,o=Object.keys(r);a<o.length;a++){var s=o[a];this.deactivateRouteAndItsChildren(r[s],i)}n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated(),n.attachRef=null,n.resolver=null,n.route=null)}},{key:"activateChildRoutes",value:function(e,t,n){var i=this,r=Ko(t);e.children.forEach(function(e){i.activateRoutes(e,r[e.value.outlet],n),i.forwardEvent(new ao(e.value.snapshot))}),e.children.length&&this.forwardEvent(new io(e.value.snapshot))}},{key:"activateRoutes",value:function(e,t,n){var i=e.value,r=t?t.value:null;if(ts(i),i===r)if(i.component){var a=n.getOrCreateContext(i.outlet);this.activateChildRoutes(e,t,a.children)}else this.activateChildRoutes(e,t,n);else if(i.component){var o=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){var s=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),o.children.onOutletReAttached(s.contexts),o.attachRef=s.componentRef,o.route=s.route.value,o.outlet&&o.outlet.attach(s.componentRef,s.route.value),gs(s.route)}else{var l=function(e){for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;if(n&&n.component)return null}return null}(i.snapshot),c=l?l.module.componentFactoryResolver:null;o.attachRef=null,o.route=i,o.resolver=c,o.outlet&&o.outlet.activateWith(i,c),this.activateChildRoutes(e,null,o.children)}}else this.activateChildRoutes(e,null,n)}}]),e}();function gs(e){ts(e.value),e.children.forEach(gs)}var ys=function e(t,n){_classCallCheck(this,e),this.routes=t,this.module=n};function bs(e){return"function"==typeof e}function ks(e){return e instanceof Co}var Cs=Symbol("INITIAL_VALUE");function ws(){return Object(Ca.a)(function(e){return va(e.map(function(e){return e.pipe(Object(Cr.a)(1),wa(Cs))})).pipe(Object(Oa.a)(function(e,t){var n=!1;return t.reduce(function(e,i,r){if(e!==Cs)return e;if(i===Cs&&(n=!0),!n){if(!1===i)return i;if(r===t.length-1||ks(i))return i}return e},e)},Cs),Object(sr.a)(function(e){return e!==Cs}),Object(ar.a)(function(e){return ks(e)?e:!0===e}),Object(Cr.a)(1))})}var Os,Ss=((Os=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Os)},Os.\u0275cmp=i.Ib({type:Os,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&i.Pb(0,"router-outlet")},directives:function(){return[El]},encapsulation:2}),Os);function xs(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=0;n<e.length;n++){var i=e[n];Es(i,Ts(t,i))}}function Es(e,t){e.children&&xs(e.children,t)}function Ts(e,t){return t?e||t.path?e&&!t.path?"".concat(e,"/"):!e&&t.path?t.path:"".concat(e,"/").concat(t.path):"":e}function As(e){var t=e.children&&e.children.map(As),n=t?Object.assign(Object.assign({},e),{children:t}):Object.assign({},e);return!n.component&&(t||n.loadChildren)&&n.outlet&&"primary"!==n.outlet&&(n.component=Ss),n}function Rs(e){return e.outlet||"primary"}function Ds(e,t){var n=e.filter(function(e){return Rs(e)===t});return n.push.apply(n,_toConsumableArray(e.filter(function(e){return Rs(e)!==t}))),n}var Ps={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Is(e,t,n){var i;if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?Object.assign({},Ps):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};var r=(t.matcher||uo)(n,e,t);if(!r)return Object.assign({},Ps);var a={};mo(r.posParams,function(e,t){a[t]=e.path});var o=r.consumed.length>0?Object.assign(Object.assign({},a),r.consumed[r.consumed.length-1].parameters):a;return{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:o,positionalParamSegments:null!==(i=r.posParams)&&void 0!==i?i:{}}}function Ms(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(n.length>0&&function(e,t,n){return n.some(function(n){return Ls(e,t,n)&&"primary"!==Rs(n)})}(e,n,i)){var a=new wo(t,function(e,t,n,i){var r={};r.primary=i,i._sourceSegment=e,i._segmentIndexShift=t.length;var a,o=_createForOfIteratorHelper(n);try{for(o.s();!(a=o.n()).done;){var s=a.value;if(""===s.path&&"primary"!==Rs(s)){var l=new wo([],{});l._sourceSegment=e,l._segmentIndexShift=t.length,r[Rs(s)]=l}}}catch(c){o.e(c)}finally{o.f()}return r}(e,t,i,new wo(n,e.children)));return a._sourceSegment=e,a._segmentIndexShift=t.length,{segmentGroup:a,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some(function(n){return Ls(e,t,n)})}(e,n,i)){var o=new wo(e.segments,function(e,t,n,i,r,a){var o,s={},l=_createForOfIteratorHelper(i);try{for(l.s();!(o=l.n()).done;){var c=o.value;if(Ls(e,n,c)&&!r[Rs(c)]){var u=new wo([],{});u._sourceSegment=e,u._segmentIndexShift="legacy"===a?e.segments.length:t.length,s[Rs(c)]=u}}}catch(h){l.e(h)}finally{l.f()}return Object.assign(Object.assign({},r),s)}(e,t,n,i,e.children,r));return o._sourceSegment=e,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:n}}var s=new wo(e.segments,e.children);return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}function Ls(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}function js(e,t,n,i){return!!(Rs(e)===i||"primary"!==i&&Ls(t,n,e))&&("**"===e.path||Is(t,e,n).matched)}function Fs(e,t,n){return 0===t.length&&!e.children[n]}var Ns=function e(t){_classCallCheck(this,e),this.segmentGroup=t||null},Us=function e(t){_classCallCheck(this,e),this.urlTree=t};function Bs(e){return new qi.a(function(t){return t.error(new Ns(e))})}function Vs(e){return new qi.a(function(t){return t.error(new Us(e))})}function Hs(e){return new qi.a(function(t){return t.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(e,"'")))})}var zs=function(){function e(t,n,r,a,o){_classCallCheck(this,e),this.configLoader=n,this.urlSerializer=r,this.urlTree=a,this.config=o,this.allowRedirects=!0,this.ngModule=t.get(i.z)}return _createClass(e,[{key:"apply",value:function(){var e=this,t=Ms(this.urlTree.root,[],[],this.config).segmentGroup,n=new wo(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,n,"primary").pipe(Object(ar.a)(function(t){return e.createUrlTree(Ys(t),e.urlTree.queryParams,e.urlTree.fragment)})).pipe(Object(or.a)(function(t){if(t instanceof Us)return e.allowRedirects=!1,e.match(t.urlTree);if(t instanceof Ns)throw e.noMatchError(t);throw t}))}},{key:"match",value:function(e){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,e.root,"primary").pipe(Object(ar.a)(function(n){return t.createUrlTree(Ys(n),e.queryParams,e.fragment)})).pipe(Object(or.a)(function(e){if(e instanceof Ns)throw t.noMatchError(e);throw e}))}},{key:"noMatchError",value:function(e){return new Error("Cannot match any routes. URL Segment: '".concat(e.segmentGroup,"'"))}},{key:"createUrlTree",value:function(e,t,n){var i=e.segments.length>0?new wo([],{primary:e}):e;return new Co(i,t,n)}},{key:"expandSegmentGroup",value:function(e,t,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(Object(ar.a)(function(e){return new wo([],e)})):this.expandSegment(e,n,t,n.segments,i,!0)}},{key:"expandChildren",value:function(e,t,n){for(var i=this,r=[],a=0,o=Object.keys(n.children);a<o.length;a++){var s=o[a];"primary"===s?r.unshift(s):r.push(s)}return Object(Qi.a)(r).pipe(Object(wr.a)(function(r){var a=n.children[r],o=Ds(t,r);return i.expandSegmentGroup(e,o,a,r).pipe(Object(ar.a)(function(e){return{segment:e,outlet:r}}))}),Object(Oa.a)(function(e,t){return e[t.outlet]=t.segment,e},{}),function(e,t){var n=arguments.length>=2;return function(i){return i.pipe(e?Object(sr.a)(function(t,n){return e(t,n,i)}):ja.a,xa(1),n?Ia(t):Aa(function(){return new ga}))}}())}},{key:"expandSegment",value:function(e,t,n,i,r,a){var o=this;return Object(Qi.a)(n).pipe(Object(wr.a)(function(s){return o.expandSegmentAgainstRoute(e,t,n,s,i,r,a).pipe(Object(or.a)(function(e){if(e instanceof Ns)return Object($i.a)(null);throw e}))}),Fa(function(e){return!!e}),Object(or.a)(function(e,n){if(e instanceof ga||"EmptyError"===e.name){if(Fs(t,i,r))return Object($i.a)(new wo([],{}));throw new Ns(t)}throw e}))}},{key:"expandSegmentAgainstRoute",value:function(e,t,n,i,r,a,o){return js(i,t,r,a)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(e,t,i,r,a):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,i,r,a):Bs(t):Bs(t)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(e,t,n,i,r,a){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,i,a):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,i,r,a)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(e,t,n,i){var r=this,a=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Vs(a):this.lineralizeSegments(n,a).pipe(Object(vr.a)(function(n){var a=new wo(n,{});return r.expandSegment(e,a,t,n,i,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(e,t,n,i,r,a){var o=this,s=Is(t,i,r),l=s.matched,c=s.consumedSegments,u=s.lastChild,h=s.positionalParamSegments;if(!l)return Bs(t);var f=this.applyRedirectCommands(c,i.redirectTo,h);return i.redirectTo.startsWith("/")?Vs(f):this.lineralizeSegments(i,f).pipe(Object(vr.a)(function(i){return o.expandSegment(e,t,n,i.concat(r.slice(u)),a,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(e,t,n,i,r){var a=this;if("**"===n.path)return n.loadChildren?(n._loadedConfig?Object($i.a)(n._loadedConfig):this.configLoader.load(e.injector,n)).pipe(Object(ar.a)(function(e){return n._loadedConfig=e,new wo(i,{})})):Object($i.a)(new wo(i,{}));var o=Is(t,n,i),s=o.matched,l=o.consumedSegments,c=o.lastChild;if(!s)return Bs(t);var u=i.slice(c);return this.getChildConfig(e,n,i).pipe(Object(vr.a)(function(e){var i=e.module,o=e.routes,s=Ms(t,l,u,o),c=s.segmentGroup,h=s.slicedSegments,f=new wo(c.segments,c.children);if(0===h.length&&f.hasChildren())return a.expandChildren(i,o,f).pipe(Object(ar.a)(function(e){return new wo(l,e)}));if(0===o.length&&0===h.length)return Object($i.a)(new wo(l,{}));var d=Rs(n)===r;return a.expandSegment(i,f,o,h,d?"primary":r,!0).pipe(Object(ar.a)(function(e){return new wo(l.concat(e.segments),e.children)}))}))}},{key:"getChildConfig",value:function(e,t,n){var i=this;return t.children?Object($i.a)(new ys(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?Object($i.a)(t._loadedConfig):this.runCanLoadGuards(e.injector,t,n).pipe(Object(vr.a)(function(n){return n?i.configLoader.load(e.injector,t).pipe(Object(ar.a)(function(e){return t._loadedConfig=e,e})):function(e){return new qi.a(function(t){return t.error(co("Cannot load children because the guard of the route \"path: '".concat(e.path,"'\" returned false")))})}(t)})):Object($i.a)(new ys([],e))}},{key:"runCanLoadGuards",value:function(e,t,n){var i=this,r=t.canLoad;if(!r||0===r.length)return Object($i.a)(!0);var a=r.map(function(i){var r,a=e.get(i);if(function(e){return e&&bs(e.canLoad)}(a))r=a.canLoad(t,n);else{if(!bs(a))throw new Error("Invalid CanLoad guard");r=a(t,n)}return _o(r)});return Object($i.a)(a).pipe(ws(),Ba(function(e){if(ks(e)){var t=co('Redirecting to "'.concat(i.urlSerializer.serialize(e),'"'));throw t.url=e,t}}),Object(ar.a)(function(e){return!0===e}))}},{key:"lineralizeSegments",value:function(e,t){for(var n=[],i=t.root;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return Object($i.a)(n);if(i.numberOfChildren>1||!i.children.primary)return Hs(e.redirectTo);i=i.children.primary}}},{key:"applyRedirectCommands",value:function(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}},{key:"applyRedirectCreatreUrlTree",value:function(e,t,n,i){var r=this.createSegmentGroup(e,t.root,n,i);return new Co(r,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}},{key:"createQueryParams",value:function(e,t){var n={};return mo(e,function(e,i){if("string"==typeof e&&e.startsWith(":")){var r=e.substring(1);n[i]=t[r]}else n[i]=e}),n}},{key:"createSegmentGroup",value:function(e,t,n,i){var r=this,a=this.createSegments(e,t.segments,n,i),o={};return mo(t.children,function(t,a){o[a]=r.createSegmentGroup(e,t,n,i)}),new wo(a,o)}},{key:"createSegments",value:function(e,t,n,i){var r=this;return t.map(function(t){return t.path.startsWith(":")?r.findPosParam(e,t,i):r.findOrReturn(t,n)})}},{key:"findPosParam",value:function(e,t,n){var i=n[t.path.substring(1)];if(!i)throw new Error("Cannot redirect to '".concat(e,"'. Cannot find '").concat(t.path,"'."));return i}},{key:"findOrReturn",value:function(e,t){var n,i=0,r=_createForOfIteratorHelper(t);try{for(r.s();!(n=r.n()).done;){var a=n.value;if(a.path===e.path)return t.splice(i),a;i++}}catch(o){r.e(o)}finally{r.f()}return e}}]),e}();function Ys(e){for(var t={},n=0,i=Object.keys(e.children);n<i.length;n++){var r=i[n],a=Ys(e.children[r]);(a.segments.length>0||a.hasChildren())&&(t[r]=a)}return function(e){if(1===e.numberOfChildren&&e.children.primary){var t=e.children.primary;return new wo(e.segments.concat(t.segments),t.children)}return e}(new wo(e.segments,t))}var Ws=function e(t){_classCallCheck(this,e),this.path=t,this.route=this.path[this.path.length-1]},Ks=function e(t,n){_classCallCheck(this,e),this.component=t,this.route=n};function qs(e,t,n){var i=e._root;return Qs(i,t?t._root:null,n,[i.value])}function Gs(e,t,n){var i=function(e){if(!e)return null;for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(t);return(i?i.module.injector:n).get(e)}function Qs(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=Ko(t);return e.children.forEach(function(e){!function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=e.value,o=t?t.value:null,s=n?n.getContext(e.value.outlet):null;if(o&&a.routeConfig===o.routeConfig){var l=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!So(e.url,t.url);case"pathParamsOrQueryParamsChange":return!So(e.url,t.url)||!ho(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ns(e,t)||!ho(e.queryParams,t.queryParams);case"paramsChange":default:return!ns(e,t)}}(o,a,a.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new Ws(i)):(a.data=o.data,a._resolvedData=o._resolvedData),Qs(e,t,a.component?s?s.children:null:n,i,r),l&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new Ks(s.outlet.component,o))}else o&&Xs(t,s,r),r.canActivateChecks.push(new Ws(i)),Qs(e,null,a.component?s?s.children:null:n,i,r)}(e,a[e.value.outlet],n,i.concat([e.value]),r),delete a[e.value.outlet]}),mo(a,function(e,t){return Xs(e,n.getContext(t),r)}),r}function Xs(e,t,n){var i=Ko(e),r=e.value;mo(i,function(e,i){Xs(e,r.component?t?t.children.getContext(i):null:t,n)}),n.canDeactivateChecks.push(new Ks(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}var Zs=function e(){_classCallCheck(this,e)};function Js(e){return new qi.a(function(t){return t.error(e)})}var $s=function(){function e(t,n,i,r,a,o){_classCallCheck(this,e),this.rootComponentType=t,this.config=n,this.urlTree=i,this.url=r,this.paramsInheritanceStrategy=a,this.relativeLinkResolution=o}return _createClass(e,[{key:"recognize",value:function(){var e=Ms(this.urlTree.root,[],[],this.config.filter(function(e){return void 0===e.redirectTo}),this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,"primary");if(null===t)return null;var n=new Zo([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),i=new Wo(n,t),r=new Jo(this.url,i);return this.inheritParamsAndData(r._root),r}},{key:"inheritParamsAndData",value:function(e){var t=this,n=e.value,i=Xo(n,this.paramsInheritanceStrategy);n.params=Object.freeze(i.params),n.data=Object.freeze(i.data),e.children.forEach(function(e){return t.inheritParamsAndData(e)})}},{key:"processSegmentGroup",value:function(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}},{key:"processChildren",value:function(e,t){for(var n=[],i=0,r=Object.keys(t.children);i<r.length;i++){var a=r[i],o=t.children[a],s=Ds(e,a),l=this.processSegmentGroup(s,o,a);if(null===l)return null;n.push.apply(n,_toConsumableArray(l))}var c=el(n);return c.sort(function(e,t){return"primary"===e.value.outlet?-1:"primary"===t.value.outlet?1:e.value.outlet.localeCompare(t.value.outlet)}),c}},{key:"processSegment",value:function(e,t,n,i){var r,a=_createForOfIteratorHelper(e);try{for(a.s();!(r=a.n()).done;){var o=r.value,s=this.processSegmentAgainstRoute(o,t,n,i);if(null!==s)return s}}catch(l){a.e(l)}finally{a.f()}return Fs(t,n,i)?[]:null}},{key:"processSegmentAgainstRoute",value:function(e,t,n,i){if(e.redirectTo||!js(e,t,n,i))return null;var r,a=[],o=[];if("**"===e.path){var s=n.length>0?vo(n).parameters:{};r=new Zo(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,il(e),Rs(e),e.component,e,tl(t),nl(t)+n.length,rl(e))}else{var l=Is(t,e,n);if(!l.matched)return null;a=l.consumedSegments,o=n.slice(l.lastChild),r=new Zo(a,l.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,il(e),Rs(e),e.component,e,tl(t),nl(t)+a.length,rl(e))}var c=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),u=Ms(t,a,o,c.filter(function(e){return void 0===e.redirectTo}),this.relativeLinkResolution),h=u.segmentGroup,f=u.slicedSegments;if(0===f.length&&h.hasChildren()){var d=this.processChildren(c,h);return null===d?null:[new Wo(r,d)]}if(0===c.length&&0===f.length)return[new Wo(r,[])];var p=Rs(e)===i,v=this.processSegment(c,h,f,p?"primary":i);return null===v?null:[new Wo(r,v)]}}]),e}();function el(e){var t,n=[],i=new Set,r=_createForOfIteratorHelper(e);try{var a=function(){var e,r=t.value;if(!function(e){var t=e.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}(r))return n.push(r),"continue";var a=n.find(function(e){return r.value.routeConfig===e.value.routeConfig});void 0!==a?((e=a.children).push.apply(e,_toConsumableArray(r.children)),i.add(a)):n.push(r)};for(r.s();!(t=r.n()).done;)a()}catch(u){r.e(u)}finally{r.f()}var o,s=_createForOfIteratorHelper(i);try{for(s.s();!(o=s.n()).done;){var l=o.value,c=el(l.children);n.push(new Wo(l.value,c))}}catch(u){s.e(u)}finally{s.f()}return n.filter(function(e){return!i.has(e)})}function tl(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function nl(e){for(var t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function il(e){return e.data||{}}function rl(e){return e.resolve||{}}function al(e){return Object(Ca.a)(function(t){var n=e(t);return n?Object(Qi.a)(n).pipe(Object(ar.a)(function(){return t})):Object($i.a)(t)})}var ol=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"shouldDetach",value:function(e){return!1}},{key:"store",value:function(e,t){}},{key:"shouldAttach",value:function(e){return!1}},{key:"retrieve",value:function(e){return null}},{key:"shouldReuseRoute",value:function(e,t){return e.routeConfig===t.routeConfig}}]),e}()),sl=new i.s("ROUTES"),ll=function(){function e(t,n,i,r){_classCallCheck(this,e),this.loader=t,this.compiler=n,this.onLoadStartListener=i,this.onLoadEndListener=r}return _createClass(e,[{key:"load",value:function(e,t){var n=this;if(t._loader$)return t._loader$;this.onLoadStartListener&&this.onLoadStartListener(t);var r=this.loadModuleFactory(t.loadChildren).pipe(Object(ar.a)(function(r){n.onLoadEndListener&&n.onLoadEndListener(t);var a=r.create(e);return new ys(po(a.injector.get(sl,void 0,i.r.Self|i.r.Optional)).map(As),a)}),Object(or.a)(function(e){throw t._loader$=void 0,e}));return t._loader$=new ka.a(r,function(){return new Gi.a}).pipe(Object(za.a)()),t._loader$}},{key:"loadModuleFactory",value:function(e){var t=this;return"string"==typeof e?Object(Qi.a)(this.loader.load(e)):_o(e()).pipe(Object(vr.a)(function(e){return e instanceof i.x?Object($i.a)(e):Object(Qi.a)(t.compiler.compileModuleAsync(e))}))}}]),e}(),cl=function e(){_classCallCheck(this,e),this.outlet=null,this.route=null,this.resolver=null,this.children=new ul,this.attachRef=null},ul=function(){function e(){_classCallCheck(this,e),this.contexts=new Map}return _createClass(e,[{key:"onChildOutletCreated",value:function(e,t){var n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}},{key:"onChildOutletDestroyed",value:function(e){var t=this.getContext(e);t&&(t.outlet=null)}},{key:"onOutletDeactivated",value:function(){var e=this.contexts;return this.contexts=new Map,e}},{key:"onOutletReAttached",value:function(e){this.contexts=e}},{key:"getOrCreateContext",value:function(e){var t=this.getContext(e);return t||(t=new cl,this.contexts.set(e,t)),t}},{key:"getContext",value:function(e){return this.contexts.get(e)||null}}]),e}(),hl=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"shouldProcessUrl",value:function(e){return!0}},{key:"extract",value:function(e){return e}},{key:"merge",value:function(e,t){return e}}]),e}();function fl(e){throw e}function dl(e,t,n){return t.parse("/")}function pl(e,t){return Object($i.a)(null)}var vl,ml,_l,gl=((_l=function(){function e(t,n,r,a,o,s,l,c){var u=this;_classCallCheck(this,e),this.rootComponentType=t,this.urlSerializer=n,this.rootContexts=r,this.location=a,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new Gi.a,this.errorHandler=fl,this.malformedUriErrorHandler=dl,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:pl,afterPreactivation:pl},this.urlHandlingStrategy=new hl,this.routeReuseStrategy=new ol,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.ngModule=o.get(i.z),this.console=o.get(i.bb);var h=o.get(i.B);this.isNgZoneEnabled=h instanceof i.B&&i.B.isInAngularZone(),this.resetConfig(c),this.currentUrlTree=new Co(new wo([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new ll(s,l,function(e){return u.triggerEvent(new eo(e))},function(e){return u.triggerEvent(new to(e))}),this.routerState=Go(this.currentUrlTree,this.rootComponentType),this.transitions=new la.a({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return _createClass(e,[{key:"setupNavigations",value:function(e){var t=this,n=this.events;return e.pipe(Object(sr.a)(function(e){return 0!==e.id}),Object(ar.a)(function(e){return Object.assign(Object.assign({},e),{extractedUrl:t.urlHandlingStrategy.extract(e.rawUrl)})}),Object(Ca.a)(function(e){var i,r,a,o=!1,s=!1;return Object($i.a)(e).pipe(Ba(function(e){t.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:t.lastSuccessfulNavigation?Object.assign(Object.assign({},t.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Object(Ca.a)(function(e){var i,r,a,o,s=!t.navigated||e.extractedUrl.toString()!==t.browserUrlTree.toString();if(("reload"===t.onSameUrlNavigation||s)&&t.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return Object($i.a)(e).pipe(Object(Ca.a)(function(e){var i=t.transitions.getValue();return n.next(new Wa(e.id,t.serializeUrl(e.extractedUrl),e.source,e.restoredState)),i!==t.transitions.getValue()?Xi.a:Promise.resolve(e)}),(i=t.ngModule.injector,r=t.configLoader,a=t.urlSerializer,o=t.config,Object(Ca.a)(function(e){return function(e,t,n,i,r){return new zs(e,t,n,i,r).apply()}(i,r,a,e.extractedUrl,o).pipe(Object(ar.a)(function(t){return Object.assign(Object.assign({},e),{urlAfterRedirects:t})}))})),Ba(function(e){t.currentNavigation=Object.assign(Object.assign({},t.currentNavigation),{finalUrl:e.urlAfterRedirects})}),function(e,n,i,r,a){return Object(vr.a)(function(i){return function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";try{var o=new $s(e,t,n,i,r,a).recognize();return null===o?Js(new Zs):Object($i.a)(o)}catch(s){return Js(s)}}(e,n,i.urlAfterRedirects,(o=i.urlAfterRedirects,t.serializeUrl(o)),r,a).pipe(Object(ar.a)(function(e){return Object.assign(Object.assign({},i),{targetSnapshot:e})}));var o})}(t.rootComponentType,t.config,0,t.paramsInheritanceStrategy,t.relativeLinkResolution),Ba(function(e){"eager"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),t.browserUrlTree=e.urlAfterRedirects);var i=new Qa(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);n.next(i)}));if(s&&t.rawUrlTree&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){var l=e.id,c=e.extractedUrl,u=e.source,h=e.restoredState,f=e.extras,d=new Wa(l,t.serializeUrl(c),u,h);n.next(d);var p=Go(c,t.rootComponentType).snapshot;return Object($i.a)(Object.assign(Object.assign({},e),{targetSnapshot:p,urlAfterRedirects:c,extras:Object.assign(Object.assign({},f),{skipLocationChange:!1,replaceUrl:!1})}))}return t.rawUrlTree=e.rawUrl,t.browserUrlTree=e.urlAfterRedirects,e.resolve(null),Xi.a}),al(function(e){var n=e.targetSnapshot,i=e.id,r=e.extractedUrl,a=e.rawUrl,o=e.extras,s=o.skipLocationChange,l=o.replaceUrl;return t.hooks.beforePreactivation(n,{navigationId:i,appliedUrlTree:r,rawUrlTree:a,skipLocationChange:!!s,replaceUrl:!!l})}),Ba(function(e){var n=new Xa(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),Object(ar.a)(function(e){return Object.assign(Object.assign({},e),{guards:qs(e.targetSnapshot,e.currentSnapshot,t.rootContexts)})}),function(e,t){return Object(vr.a)(function(n){var i=n.targetSnapshot,r=n.currentSnapshot,a=n.guards,o=a.canActivateChecks,s=a.canDeactivateChecks;return 0===s.length&&0===o.length?Object($i.a)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,i){return Object(Qi.a)(e).pipe(Object(vr.a)(function(e){return function(e,t,n,i,r){var a=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!a||0===a.length)return Object($i.a)(!0);var o=a.map(function(a){var o,s=Gs(a,t,r);if(function(e){return e&&bs(e.canDeactivate)}(s))o=_o(s.canDeactivate(e,t,n,i));else{if(!bs(s))throw new Error("Invalid CanDeactivate guard");o=_o(s(e,t,n,i))}return o.pipe(Fa())});return Object($i.a)(o).pipe(ws())}(e.component,e.route,n,t,i)}),Fa(function(e){return!0!==e},!0))}(s,i,r,e).pipe(Object(vr.a)(function(n){return n&&"boolean"==typeof n?function(e,t,n,i){return Object(Qi.a)(t).pipe(Object(wr.a)(function(t){return ba(function(e,t){return null!==e&&t&&t(new no(e)),Object($i.a)(!0)}(t.route.parent,i),function(e,t){return null!==e&&t&&t(new ro(e)),Object($i.a)(!0)}(t.route,i),function(e,t,n){var i=t[t.length-1],r=t.slice(0,t.length-1).reverse().map(function(e){return function(e){var t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)}).filter(function(e){return null!==e}).map(function(t){return Zi(function(){var r=t.guards.map(function(r){var a,o=Gs(r,t.node,n);if(function(e){return e&&bs(e.canActivateChild)}(o))a=_o(o.canActivateChild(i,e));else{if(!bs(o))throw new Error("Invalid CanActivateChild guard");a=_o(o(i,e))}return a.pipe(Fa())});return Object($i.a)(r).pipe(ws())})});return Object($i.a)(r).pipe(ws())}(e,t.path,n),function(e,t,n){var i=t.routeConfig?t.routeConfig.canActivate:null;if(!i||0===i.length)return Object($i.a)(!0);var r=i.map(function(i){return Zi(function(){var r,a=Gs(i,t,n);if(function(e){return e&&bs(e.canActivate)}(a))r=_o(a.canActivate(t,e));else{if(!bs(a))throw new Error("Invalid CanActivate guard");r=_o(a(t,e))}return r.pipe(Fa())})});return Object($i.a)(r).pipe(ws())}(e,t.route,n))}),Fa(function(e){return!0!==e},!0))}(i,o,e,t):Object($i.a)(n)}),Object(ar.a)(function(e){return Object.assign(Object.assign({},n),{guardsResult:e})}))})}(t.ngModule.injector,function(e){return t.triggerEvent(e)}),Ba(function(e){if(ks(e.guardsResult)){var n=co('Redirecting to "'.concat(t.serializeUrl(e.guardsResult),'"'));throw n.url=e.guardsResult,n}var i=new Za(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);t.triggerEvent(i)}),Object(sr.a)(function(e){if(!e.guardsResult){t.resetUrlToCurrentUrlTree();var i=new qa(e.id,t.serializeUrl(e.extractedUrl),"");return n.next(i),e.resolve(!1),!1}return!0}),al(function(e){if(e.guards.canActivateChecks.length)return Object($i.a)(e).pipe(Ba(function(e){var n=new Ja(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),Object(Ca.a)(function(e){var i,r,a=!1;return Object($i.a)(e).pipe((i=t.paramsInheritanceStrategy,r=t.ngModule.injector,Object(vr.a)(function(e){var t=e.targetSnapshot,n=e.guards.canActivateChecks;if(!n.length)return Object($i.a)(e);var a=0;return Object(Qi.a)(n).pipe(Object(wr.a)(function(e){return function(e,t,n,i){return function(e,t,n,i){var r=Object.keys(e);if(0===r.length)return Object($i.a)({});var a={};return Object(Qi.a)(r).pipe(Object(vr.a)(function(r){return function(e,t,n,i){var r=Gs(e,t,i);return _o(r.resolve?r.resolve(t,n):r(t,n))}(e[r],t,n,i).pipe(Ba(function(e){a[r]=e}))}),xa(1),Object(vr.a)(function(){return Object.keys(a).length===r.length?Object($i.a)(a):Xi.a}))}(e._resolve,e,t,i).pipe(Object(ar.a)(function(t){return e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),Xo(e,n).resolve),null}))}(e.route,t,i,r)}),Ba(function(){return a++}),xa(1),Object(vr.a)(function(t){return a===n.length?Object($i.a)(e):Xi.a}))})),Ba({next:function(){return a=!0},complete:function(){if(!a){var i=new qa(e.id,t.serializeUrl(e.extractedUrl),"At least one route resolver didn't emit any value.");n.next(i),e.resolve(!1)}}}))}),Ba(function(e){var n=new $a(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}))}),al(function(e){var n=e.targetSnapshot,i=e.id,r=e.extractedUrl,a=e.rawUrl,o=e.extras,s=o.skipLocationChange,l=o.replaceUrl;return t.hooks.afterPreactivation(n,{navigationId:i,appliedUrlTree:r,rawUrlTree:a,skipLocationChange:!!s,replaceUrl:!!l})}),Object(ar.a)(function(e){var n=function(e,t,n){var i=is(e,t._root,n?n._root:void 0);return new qo(i,t)}(t.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign(Object.assign({},e),{targetRouterState:n})}),Ba(function(e){t.currentUrlTree=e.urlAfterRedirects,t.rawUrlTree=t.urlHandlingStrategy.merge(t.currentUrlTree,e.rawUrl),t.routerState=e.targetRouterState,"deferred"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(t.rawUrlTree,!!e.extras.replaceUrl,e.id,e.extras.state),t.browserUrlTree=e.urlAfterRedirects)}),(i=t.rootContexts,r=t.routeReuseStrategy,a=function(e){return t.triggerEvent(e)},Object(ar.a)(function(e){return new _s(r,e.targetRouterState,e.currentRouterState,a).activate(i),e})),Ba({next:function(){o=!0},complete:function(){o=!0}}),Or(function(){if(!o&&!s){t.resetUrlToCurrentUrlTree();var i=new qa(e.id,t.serializeUrl(e.extractedUrl),"Navigation ID ".concat(e.id," is not equal to the current navigation id ").concat(t.navigationId));n.next(i),e.resolve(!1)}t.currentNavigation=null}),Object(or.a)(function(i){if(s=!0,(l=i)&&l.ngNavigationCancelingError){var r=ks(i.url);r||(t.navigated=!0,t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));var a=new qa(e.id,t.serializeUrl(e.extractedUrl),i.message);n.next(a),r?setTimeout(function(){var n=t.urlHandlingStrategy.merge(i.url,t.rawUrlTree);t.scheduleNavigation(n,"imperative",null,{skipLocationChange:e.extras.skipLocationChange,replaceUrl:"eager"===t.urlUpdateStrategy},{resolve:e.resolve,reject:e.reject,promise:e.promise})},0):e.resolve(!1)}else{t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);var o=new Ga(e.id,t.serializeUrl(e.extractedUrl),i);n.next(o);try{e.resolve(t.errorHandler(i))}catch(c){e.reject(c)}}var l;return Xi.a}))}))}},{key:"resetRootComponentType",value:function(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}},{key:"setTransition",value:function(e){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),e))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var e=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(t){var n=e.extractLocationChangeInfoFromEvent(t);e.shouldScheduleNavigation(e.lastLocationChangeInfo,n)&&setTimeout(function(){var t=n.source,i=n.state,r=n.urlTree,a={replaceUrl:!0};if(i){var o=Object.assign({},i);delete o.navigationId,0!==Object.keys(o).length&&(a.state=o)}e.scheduleNavigation(r,t,i,a)},0),e.lastLocationChangeInfo=n}))}},{key:"extractLocationChangeInfoFromEvent",value:function(e){var t;return{source:"popstate"===e.type?"popstate":"hashchange",urlTree:this.parseUrl(e.url),state:(null===(t=e.state)||void 0===t?void 0:t.navigationId)?e.state:null,transitionId:this.getTransition().id}}},{key:"shouldScheduleNavigation",value:function(e,t){if(!e)return!0;var n=t.urlTree.toString()===e.urlTree.toString();return!(t.transitionId===e.transitionId&&n&&("hashchange"===t.source&&"popstate"===e.source||"popstate"===t.source&&"hashchange"===e.source))}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(e){this.events.next(e)}},{key:"resetConfig",value:function(e){xs(e),this.config=e.map(As),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}},{key:"createUrlTree",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.relativeTo,i=t.queryParams,r=t.fragment,a=t.queryParamsHandling,o=t.preserveFragment,s=n||this.routerState.root,l=o?this.currentUrlTree.fragment:r,c=null;switch(a){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=i||null}return null!==c&&(c=this.removeEmptyProps(c)),function(e,t,n,i,r){if(0===n.length)return ss(t.root,t.root,t,i,r);var a=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new cs(!0,0,e);var t=0,n=!1,i=e.reduce(function(e,i,r){if("object"==typeof i&&null!=i){if(i.outlets){var a={};return mo(i.outlets,function(e,t){a[t]="string"==typeof e?e.split("/"):e}),[].concat(_toConsumableArray(e),[{outlets:a}])}if(i.segmentPath)return[].concat(_toConsumableArray(e),[i.segmentPath])}return"string"!=typeof i?[].concat(_toConsumableArray(e),[i]):0===r?(i.split("/").forEach(function(i,r){0==r&&"."===i||(0==r&&""===i?n=!0:".."===i?t++:""!=i&&e.push(i))}),e):[].concat(_toConsumableArray(e),[i])},[]);return new cs(n,t,i)}(n);if(a.toRoot())return ss(t.root,new wo([],{}),t,i,r);var o=function(e,t,n){if(e.isAbsolute)return new us(t.root,!0,0);if(-1===n.snapshot._lastPathIndex){var i=n.snapshot._urlSegment;return new us(i,i===t.root,0)}var r=as(e.commands[0])?0:1;return function(e,t,n){for(var i=e,r=t,a=n;a>r;){if(a-=r,!(i=i.parent))throw new Error("Invalid number of '../'");r=i.segments.length}return new us(i,!1,r-a)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,e.numberOfDoubleDots)}(a,t,e),s=o.processChildren?fs(o.segmentGroup,o.index,a.commands):hs(o.segmentGroup,o.index,a.commands);return ss(o.segmentGroup,s,t,i,r)}(s,this.currentUrlTree,e,c,l)}},{key:"navigateByUrl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},n=ks(e)?e:this.parseUrl(e),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,t)}},{key:"navigate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return function(e){for(var t=0;t<e.length;t++){var n=e[t];if(null==n)throw new Error("The requested path contains ".concat(n," segment at index ").concat(t))}}(e),this.navigateByUrl(this.createUrlTree(e,t),t)}},{key:"serializeUrl",value:function(e){return this.urlSerializer.serialize(e)}},{key:"parseUrl",value:function(e){var t;try{t=this.urlSerializer.parse(e)}catch(n){t=this.malformedUriErrorHandler(n,this.urlSerializer,e)}return t}},{key:"isActive",value:function(e,t){if(ks(e))return go(this.currentUrlTree,e,t);var n=this.parseUrl(e);return go(this.currentUrlTree,n,t)}},{key:"removeEmptyProps",value:function(e){return Object.keys(e).reduce(function(t,n){var i=e[n];return null!=i&&(t[n]=i),t},{})}},{key:"processNavigations",value:function(){var e=this;this.navigations.subscribe(function(t){e.navigated=!0,e.lastSuccessfulId=t.id,e.events.next(new Ka(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(e.currentUrlTree))),e.lastSuccessfulNavigation=e.currentNavigation,t.resolve(!0)},function(t){e.console.warn("Unhandled Navigation Error: ")})}},{key:"scheduleNavigation",value:function(e,t,n,i,r){if(this.disposed)return Promise.resolve(!1);var a,o,s,l=this.getTransition(),c="imperative"!==t&&"imperative"===(null==l?void 0:l.source),u=(this.lastSuccessfulId===l.id||this.currentNavigation?l.rawUrl:l.urlAfterRedirects).toString()===e.toString();if(c&&u)return Promise.resolve(!0);r?(a=r.resolve,o=r.reject,s=r.promise):s=new Promise(function(e,t){a=e,o=t});var h=++this.navigationId;return this.setTransition({id:h,source:t,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:i,resolve:a,reject:o,promise:s,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),s.catch(function(e){return Promise.reject(e)})}},{key:"setBrowserUrl",value:function(e,t,n,i){var r=this.urlSerializer.serialize(e);i=i||{},this.location.isCurrentPathEqualTo(r)||t?this.location.replaceState(r,"",Object.assign(Object.assign({},i),{navigationId:n})):this.location.go(r,"",Object.assign(Object.assign({},i),{navigationId:n}))}},{key:"resetStateAndUrl",value:function(e,t,n){this.routerState=e,this.currentUrlTree=t,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}]),e}()).\u0275fac=function(e){return new(e||_l)(i.Yb(i.Q),i.Yb(xo),i.Yb(ul),i.Yb(E),i.Yb(i.t),i.Yb(i.y),i.Yb(i.i),i.Yb(void 0))},_l.\u0275prov=i.Kb({token:_l,factory:_l.\u0275fac}),_l),yl=((ml=function(){function e(t,n,i,r,a){_classCallCheck(this,e),this.router=t,this.route=n,this.commands=[],this.onChanges=new Gi.a,null==i&&r.setAttribute(a.nativeElement,"tabindex","0")}return _createClass(e,[{key:"ngOnChanges",value:function(e){this.onChanges.next(this)}},{key:"routerLink",set:function(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}},{key:"onClick",value:function(){var e={skipLocationChange:kl(this.skipLocationChange),replaceUrl:kl(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}},{key:"urlTree",get:function(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:kl(this.preserveFragment)})}}]),e}()).\u0275fac=function(e){return new(e||ml)(i.Ob(gl),i.Ob(Qo),i.Zb("tabindex"),i.Ob(i.G),i.Ob(i.l))},ml.\u0275dir=i.Jb({type:ml,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,t){1&e&&i.cc("click",function(){return t.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[i.Bb]}),ml),bl=((vl=function(){function e(t,n,i){var r=this;_classCallCheck(this,e),this.router=t,this.route=n,this.locationStrategy=i,this.commands=[],this.onChanges=new Gi.a,this.subscription=t.events.subscribe(function(e){e instanceof Ka&&r.updateTargetUrlAndHref()})}return _createClass(e,[{key:"routerLink",set:function(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}},{key:"ngOnChanges",value:function(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}},{key:"onClick",value:function(e,t,n,i,r){if(0!==e||t||n||i||r)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;var a={skipLocationChange:kl(this.skipLocationChange),replaceUrl:kl(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,a),!1}},{key:"updateTargetUrlAndHref",value:function(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}},{key:"urlTree",get:function(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:kl(this.preserveFragment)})}}]),e}()).\u0275fac=function(e){return new(e||vl)(i.Ob(gl),i.Ob(Qo),i.Ob(y))},vl.\u0275dir=i.Jb({type:vl,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&i.cc("click",function(e){return t.onClick(e.button,e.ctrlKey,e.shiftKey,e.altKey,e.metaKey)}),2&e&&(i.Xb("href",t.href,i.zc),i.Eb("target",t.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[i.Bb]}),vl);function kl(e){return""===e||!!e}var Cl,wl,Ol,Sl,xl=((wl=function(){function e(t,n,i,r,a,o){var s=this;_classCallCheck(this,e),this.router=t,this.element=n,this.renderer=i,this.cdr=r,this.link=a,this.linkWithHref=o,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.routerEventsSubscription=t.events.subscribe(function(e){e instanceof Ka&&s.update()})}return _createClass(e,[{key:"ngAfterContentInit",value:function(){var e=this;Object($i.a)(this.links.changes,this.linksWithHrefs.changes,Object($i.a)(null)).pipe(Object(ya.a)()).subscribe(function(t){e.update(),e.subscribeToEachLinkOnChanges()})}},{key:"subscribeToEachLinkOnChanges",value:function(){var e,t=this;null===(e=this.linkInputChangesSubscription)||void 0===e||e.unsubscribe();var n=[].concat(_toConsumableArray(this.links.toArray()),_toConsumableArray(this.linksWithHrefs.toArray()),[this.link,this.linkWithHref]).filter(function(e){return!!e}).map(function(e){return e.onChanges});this.linkInputChangesSubscription=Object(Qi.a)(n).pipe(Object(ya.a)()).subscribe(function(e){t.isActive!==t.isLinkActive(t.router)(e)&&t.update()})}},{key:"routerLinkActive",set:function(e){var t=Array.isArray(e)?e:e.split(" ");this.classes=t.filter(function(e){return!!e})}},{key:"ngOnChanges",value:function(e){this.update()}},{key:"ngOnDestroy",value:function(){var e;this.routerEventsSubscription.unsubscribe(),null===(e=this.linkInputChangesSubscription)||void 0===e||e.unsubscribe()}},{key:"update",value:function(){var e=this;this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then(function(){var t=e.hasActiveLinks();e.isActive!==t&&(e.isActive=t,e.cdr.markForCheck(),e.classes.forEach(function(n){t?e.renderer.addClass(e.element.nativeElement,n):e.renderer.removeClass(e.element.nativeElement,n)}))})}},{key:"isLinkActive",value:function(e){var t=this;return function(n){return e.isActive(n.urlTree,t.routerLinkActiveOptions.exact)}}},{key:"hasActiveLinks",value:function(){var e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.linkWithHref&&e(this.linkWithHref)||this.links.some(e)||this.linksWithHrefs.some(e)}}]),e}()).\u0275fac=function(e){return new(e||wl)(i.Ob(gl),i.Ob(i.l),i.Ob(i.G),i.Ob(i.h),i.Ob(yl,8),i.Ob(bl,8))},wl.\u0275dir=i.Jb({type:wl,selectors:[["","routerLinkActive",""]],contentQueries:function(e,t,n){var r;1&e&&(i.Hb(n,yl,1),i.Hb(n,bl,1)),2&e&&(i.sc(r=i.dc())&&(t.links=r),i.sc(r=i.dc())&&(t.linksWithHrefs=r))},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[i.Bb]}),wl),El=((Cl=function(){function e(t,n,r,a,o){_classCallCheck(this,e),this.parentContexts=t,this.location=n,this.resolver=r,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new i.o,this.deactivateEvents=new i.o,this.name=a||"primary",t.onChildOutletCreated(this.name,this)}return _createClass(e,[{key:"ngOnDestroy",value:function(){this.parentContexts.onChildOutletDestroyed(this.name)}},{key:"ngOnInit",value:function(){if(!this.activated){var e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}},{key:"isActivated",get:function(){return!!this.activated}},{key:"component",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}},{key:"activatedRoute",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}},{key:"activatedRouteData",get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}},{key:"detach",value:function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var e=this.activated;return this.activated=null,this._activatedRoute=null,e}},{key:"attach",value:function(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView)}},{key:"deactivate",value:function(){if(this.activated){var e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}},{key:"activateWith",value:function(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;var n=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),i=this.parentContexts.getOrCreateContext(this.name).children,r=new Tl(e,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,r),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}]),e}()).\u0275fac=function(e){return new(e||Cl)(i.Ob(ul),i.Ob(i.S),i.Ob(i.j),i.Zb("name"),i.Ob(i.h))},Cl.\u0275dir=i.Jb({type:Cl,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),Cl),Tl=function(){function e(t,n,i){_classCallCheck(this,e),this.route=t,this.childContexts=n,this.parent=i}return _createClass(e,[{key:"get",value:function(e,t){return e===Qo?this.route:e===ul?this.childContexts:this.parent.get(e,t)}}]),e}(),Al=function e(){_classCallCheck(this,e)},Rl=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"preload",value:function(e,t){return Object($i.a)(null)}}]),e}(),Dl=((Sl=function(){function e(t,n,i,r,a){_classCallCheck(this,e),this.router=t,this.injector=r,this.preloadingStrategy=a,this.loader=new ll(n,i,function(e){return t.triggerEvent(new eo(e))},function(e){return t.triggerEvent(new to(e))})}return _createClass(e,[{key:"setUpPreloading",value:function(){var e=this;this.subscription=this.router.events.pipe(Object(sr.a)(function(e){return e instanceof Ka}),Object(wr.a)(function(){return e.preload()})).subscribe(function(){})}},{key:"preload",value:function(){var e=this.injector.get(i.z);return this.processRoutes(e,this.router.config)}},{key:"ngOnDestroy",value:function(){this.subscription&&this.subscription.unsubscribe()}},{key:"processRoutes",value:function(e,t){var n,i=[],r=_createForOfIteratorHelper(t);try{for(r.s();!(n=r.n()).done;){var a=n.value;if(a.loadChildren&&!a.canLoad&&a._loadedConfig){var o=a._loadedConfig;i.push(this.processRoutes(o.module,o.routes))}else a.loadChildren&&!a.canLoad?i.push(this.preloadConfig(e,a)):a.children&&i.push(this.processRoutes(e,a.children))}}catch(s){r.e(s)}finally{r.f()}return Object(Qi.a)(i).pipe(Object(ya.a)(),Object(ar.a)(function(e){}))}},{key:"preloadConfig",value:function(e,t){var n=this;return this.preloadingStrategy.preload(t,function(){return(t._loadedConfig?Object($i.a)(t._loadedConfig):n.loader.load(e.injector,t)).pipe(Object(vr.a)(function(e){return t._loadedConfig=e,n.processRoutes(e.module,e.routes)}))})}}]),e}()).\u0275fac=function(e){return new(e||Sl)(i.Yb(gl),i.Yb(i.y),i.Yb(i.i),i.Yb(i.t),i.Yb(Al))},Sl.\u0275prov=i.Kb({token:Sl,factory:Sl.\u0275fac}),Sl),Pl=((Ol=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};_classCallCheck(this,e),this.router=t,this.viewportScroller=n,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.anchorScrolling||"disabled"}return _createClass(e,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(t){t instanceof Wa?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=t.navigationTrigger,e.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Ka&&(e.lastId=t.id,e.scheduleScrollEvent(t,e.router.parseUrl(t.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(t){t instanceof oo&&(t.position?"top"===e.options.scrollPositionRestoration?e.viewportScroller.scrollToPosition([0,0]):"enabled"===e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===e.options.anchorScrolling?e.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(e,t){this.router.triggerEvent(new oo(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),e}()).\u0275fac=function(e){return new(e||Ol)(i.Yb(gl),i.Yb(xe),i.Yb(void 0))},Ol.\u0275prov=i.Kb({token:Ol,factory:Ol.\u0275fac}),Ol),Il=new i.s("ROUTER_CONFIGURATION"),Ml=new i.s("ROUTER_FORROOT_GUARD"),Ll=[E,{provide:xo,useClass:Eo},{provide:gl,useFactory:function(e,t,n,i,r,o,s){var l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},c=arguments.length>8?arguments[8]:void 0,u=arguments.length>9?arguments[9]:void 0,h=new gl(null,e,t,n,i,r,o,po(s));if(c&&(h.urlHandlingStrategy=c),u&&(h.routeReuseStrategy=u),function(e,t){e.errorHandler&&(t.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(t.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(t.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(t.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(t.urlUpdateStrategy=e.urlUpdateStrategy)}(l,h),l.enableTracing){var f=a();h.events.subscribe(function(e){f.logGroup("Router Event: ".concat(e.constructor.name)),f.log(e.toString()),f.log(e),f.logGroupEnd()})}return h},deps:[xo,ul,E,i.t,i.y,i.i,sl,Il,[function(){return function e(){_classCallCheck(this,e)}}(),new i.C],[function(){return function e(){_classCallCheck(this,e)}}(),new i.C]]},ul,{provide:Qo,useFactory:function(e){return e.routerState.root},deps:[gl]},{provide:i.y,useClass:i.N},Dl,Rl,function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"preload",value:function(e,t){return t().pipe(Object(or.a)(function(){return Object($i.a)(null)}))}}]),e}(),{provide:Il,useValue:{enableTracing:!1}}];function jl(){return new i.A("Router",gl)}var Fl,Nl=((Fl=function(){function e(t,n){_classCallCheck(this,e)}return _createClass(e,null,[{key:"forRoot",value:function(t,n){return{ngModule:e,providers:[Ll,Hl(t),{provide:Ml,useFactory:Vl,deps:[[gl,new i.C,new i.M]]},{provide:Il,useValue:n||{}},{provide:y,useFactory:Bl,deps:[l,[new i.q(O),new i.C],Il]},{provide:Pl,useFactory:Ul,deps:[gl,xe,Il]},{provide:Al,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Rl},{provide:i.A,multi:!0,useFactory:jl},[Yl,{provide:i.d,multi:!0,useFactory:Wl,deps:[Yl]},{provide:ql,useFactory:Kl,deps:[Yl]},{provide:i.b,multi:!0,useExisting:ql}]]}}},{key:"forChild",value:function(t){return{ngModule:e,providers:[Hl(t)]}}}]),e}()).\u0275fac=function(e){return new(e||Fl)(i.Yb(Ml,8),i.Yb(gl,8))},Fl.\u0275mod=i.Mb({type:Fl}),Fl.\u0275inj=i.Lb({}),Fl);function Ul(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new Pl(e,t,n)}function Bl(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new x(e,t):new S(e,t)}function Vl(e){return"guarded"}function Hl(e){return[{provide:i.a,multi:!0,useValue:e},{provide:sl,multi:!0,useValue:e}]}var zl,Yl=((zl=function(){function e(t){_classCallCheck(this,e),this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new Gi.a}return _createClass(e,[{key:"appInitializer",value:function(){var e=this;return this.injector.get(h,Promise.resolve(null)).then(function(){var t=null,n=new Promise(function(e){return t=e}),i=e.injector.get(gl),r=e.injector.get(Il);return"disabled"===r.initialNavigation?(i.setUpLocationChangeListener(),t(!0)):"enabled"===r.initialNavigation||"enabledBlocking"===r.initialNavigation?(i.hooks.afterPreactivation=function(){return e.initNavigation?Object($i.a)(null):(e.initNavigation=!0,t(!0),e.resultOfPreactivationDone)},i.initialNavigation()):t(!0),n})}},{key:"bootstrapListener",value:function(e){var t=this.injector.get(Il),n=this.injector.get(Dl),r=this.injector.get(Pl),a=this.injector.get(gl),o=this.injector.get(i.g);e===o.components[0]&&("enabledNonBlocking"!==t.initialNavigation&&void 0!==t.initialNavigation||a.initialNavigation(),n.setUpPreloading(),r.init(),a.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}]),e}()).\u0275fac=function(e){return new(e||zl)(i.Yb(i.t))},zl.\u0275prov=i.Kb({token:zl,factory:zl.\u0275fac}),zl);function Wl(e){return e.appInitializer.bind(e)}function Kl(e){return e.bootstrapListener.bind(e)}var ql=new i.s("Router Initializer");Object(Wi.o)("@ngrx/router-store/request",Object(Wi.s)()),Object(Wi.o)("@ngrx/router-store/navigation",Object(Wi.s)()),Object(Wi.o)("@ngrx/router-store/cancel",Object(Wi.s)());var Gl="@ngrx/router-store/error";Object(Wi.o)(Gl,Object(Wi.s)()),Object(Wi.o)("@ngrx/router-store/navigated",Object(Wi.s)());var Ql=function e(){_classCallCheck(this,e)},Xl=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"serialize",value:function(e){return{root:this.serializeRoute(e.root),url:e.url}}},{key:"serializeRoute",value:function(e){var t=this,n=e.children.map(function(e){return t.serializeRoute(e)});return{params:e.params,paramMap:e.paramMap,data:e.data,url:e.url,outlet:e.outlet,routeConfig:e.routeConfig?{component:e.routeConfig.component,path:e.routeConfig.path,pathMatch:e.routeConfig.pathMatch,redirectTo:e.routeConfig.redirectTo,outlet:e.routeConfig.outlet}:null,queryParams:e.queryParams,queryParamMap:e.queryParamMap,fragment:e.fragment,component:e.routeConfig?e.routeConfig.component:void 0,root:void 0,parent:void 0,firstChild:n[0],pathFromRoot:void 0,children:n}}}]),e}(),Zl=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"serialize",value:function(e){return{root:this.serializeRoute(e.root),url:e.url}}},{key:"serializeRoute",value:function(e){var t=this,n=e.children.map(function(e){return t.serializeRoute(e)});return{params:e.params,data:e.data,url:e.url,outlet:e.outlet,routeConfig:e.routeConfig?{path:e.routeConfig.path,pathMatch:e.routeConfig.pathMatch,redirectTo:e.routeConfig.redirectTo,outlet:e.routeConfig.outlet}:null,queryParams:e.queryParams,fragment:e.fragment,firstChild:n[0],children:n}}}]),e}(),Jl=function(e){return e[e.PreActivation=1]="PreActivation",e[e.PostActivation=2]="PostActivation",e}({}),$l=new i.s("@ngrx/router-store Internal Configuration"),ec=new i.s("@ngrx/router-store Configuration");function tc(e){return Object.assign({stateKey:"router",serializer:Zl,navigationActionTiming:Jl.PreActivation},e)}var nc,ic=function(e){return e[e.NONE=1]="NONE",e[e.ROUTER=2]="ROUTER",e[e.STORE=3]="STORE",e}({}),rc=((nc=function(){function e(t,n,r,a,o,s){_classCallCheck(this,e),this.store=t,this.router=n,this.serializer=r,this.errorHandler=a,this.config=o,this.activeRuntimeChecks=s,this.lastEvent=null,this.routerState=null,this.trigger=ic.NONE,this.stateKey=this.config.stateKey,!Object(Wi.r)()&&Object(i.Y)()&&((null==s?void 0:s.strictActionSerializability)||(null==s?void 0:s.strictStateSerializability))&&this.serializer instanceof Xl&&console.warn("@ngrx/router-store: The serializability runtime checks cannot be enabled with the DefaultRouterStateSerializer. The default serializer has an unserializable router state and actions that are not serializable. To use the serializability runtime checks either use the MinimalRouterStateSerializer or implement a custom router state serializer. This also applies to Ivy with immutability runtime checks."),this.setUpStoreStateListener(),this.setUpRouterEventsListener()}return _createClass(e,[{key:"setUpStoreStateListener",value:function(){var e=this;this.store.pipe(Object(Wi.t)(this.stateKey),Object(Er.a)(this.store)).subscribe(function(t){var n=_slicedToArray(t,2),i=n[0],r=n[1];e.navigateIfNeeded(i,r)})}},{key:"navigateIfNeeded",value:function(e,t){var n=this;if(e&&e.state&&this.trigger!==ic.ROUTER&&!(this.lastEvent instanceof Wa)){var i,r=e.state.url;i=r,ac(this.router.url)!==ac(i)&&(this.storeState=t,this.trigger=ic.STORE,this.router.navigateByUrl(r).catch(function(e){n.errorHandler.handleError(e)}))}}},{key:"setUpRouterEventsListener",value:function(){var e,t=this,n=this.config.navigationActionTiming===Jl.PostActivation;this.router.events.pipe(Object(Er.a)(this.store)).subscribe(function(i){var r=_slicedToArray(i,2),a=r[0],o=r[1];t.lastEvent=a,a instanceof Wa?(t.routerState=t.serializer.serialize(t.router.routerState.snapshot),t.trigger!==ic.STORE&&(t.storeState=o,t.dispatchRouterRequest(a))):a instanceof Qa?(e=a,n||t.trigger===ic.STORE||t.dispatchRouterNavigation(a)):a instanceof qa?(t.dispatchRouterCancel(a),t.reset()):a instanceof Ga?(t.dispatchRouterError(a),t.reset()):a instanceof Ka&&(t.trigger!==ic.STORE&&(n&&t.dispatchRouterNavigation(e),t.dispatchRouterNavigated(a)),t.reset())})}},{key:"dispatchRouterRequest",value:function(e){this.dispatchRouterAction("@ngrx/router-store/request",{event:e})}},{key:"dispatchRouterNavigation",value:function(e){var t=this.serializer.serialize(e.state);this.dispatchRouterAction("@ngrx/router-store/navigation",{routerState:t,event:new Qa(e.id,e.url,e.urlAfterRedirects,t)})}},{key:"dispatchRouterCancel",value:function(e){this.dispatchRouterAction("@ngrx/router-store/cancel",{storeState:this.storeState,event:e})}},{key:"dispatchRouterError",value:function(e){this.dispatchRouterAction(Gl,{storeState:this.storeState,event:new Ga(e.id,e.url,"".concat(e))})}},{key:"dispatchRouterNavigated",value:function(e){var t=this.serializer.serialize(this.router.routerState.snapshot);this.dispatchRouterAction("@ngrx/router-store/navigated",{event:e,routerState:t})}},{key:"dispatchRouterAction",value:function(e,t){this.trigger=ic.ROUTER;try{this.store.dispatch({type:e,payload:Object.assign(Object.assign({routerState:this.routerState},t),{event:0===this.config.routerState?t.event:{id:t.event.id,url:t.event.url,urlAfterRedirects:t.event.urlAfterRedirects}})})}finally{this.trigger=ic.NONE}}},{key:"reset",value:function(){this.trigger=ic.NONE,this.storeState=null,this.routerState=null}}],[{key:"forRoot",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[{provide:$l,useValue:t},{provide:ec,useFactory:tc,deps:[$l]},{provide:Ql,useClass:t.serializer?t.serializer:0===t.routerState?Xl:Zl}]}}}]),e}()).\u0275fac=function(e){return new(e||nc)(i.Yb(Wi.i),i.Yb(gl),i.Yb(Ql),i.Yb(i.n),i.Yb(ec),i.Yb(Wi.a))},nc.\u0275mod=i.Mb({type:nc}),nc.\u0275inj=i.Lb({}),nc);function ac(e){return e.length>0&&"/"===e[e.length-1]?e.substring(0,e.length-1):e}var oc=1,sc=Promise.resolve(),lc={};function cc(e){return e in lc&&(delete lc[e],!0)}var uc=function(e){var t=oc++;return lc[t]=!0,sc.then(function(){return cc(t)&&e()}),t},hc=function(e){cc(e)},fc=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e,i)).scheduler=e,r.work=i,r}return _createClass(n,[{key:"requestAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0?_get(_getPrototypeOf(n.prototype),"requestAsyncId",this).call(this,e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=uc(e.flush.bind(e,null))))}},{key:"recycleAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==i&&i>0||null===i&&this.delay>0)return _get(_getPrototypeOf(n.prototype),"recycleAsyncId",this).call(this,e,t,i);0===e.actions.length&&(hc(t),e.scheduled=void 0)}}]),n}(n("3N8a").a),dc=new(function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"flush",value:function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,i=-1,r=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++i<r&&(e=n.shift()));if(this.active=!1,t){for(;++i<r&&(e=n.shift());)e.unsubscribe();throw t}}}]),n}(n("IjjT").a))(fc);function pc(e,t,n,i){return Object(Ua.a)(n)&&(i=n,n=void 0),i?pc(e,t,n).pipe(Object(ar.a)(function(e){return Object(ua.a)(e)?i.apply(void 0,_toConsumableArray(e)):i(e)})):new qi.a(function(i){vc(e,t,function(e){i.next(arguments.length>1?Array.prototype.slice.call(arguments):e)},i,n)})}function vc(e,t,n,i,r){var a;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){var o=e;e.addEventListener(t,n,r),a=function(){return o.removeEventListener(t,n,r)}}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){var s=e;e.on(t,n),a=function(){return s.off(t,n)}}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(e)){var l=e;e.addListener(t,n),a=function(){return l.removeListener(t,n)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var c=0,u=e.length;c<u;c++)vc(e[c],t,n,i,r)}i.add(a)}var mc,_c,gc=n("Kj3r"),yc=n("1G5W"),bc={provide:i.b,useFactory:function(e,t){return function(){if(we(t)){var n=Array.from(e.querySelectorAll("[class*=".concat(kc,"]"))),i=/\bflex-layout-.+?\b/g;n.forEach(function(e){e.classList.contains("".concat(kc,"ssr"))&&e.parentNode?e.parentNode.removeChild(e):e.className.replace(i,"")})}}},deps:[s,i.D],multi:!0},kc="flex-layout-",Cc=((mc=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||mc)},mc.\u0275mod=i.Mb({type:mc}),mc.\u0275inj=i.Lb({providers:[bc]}),mc),wc=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;_classCallCheck(this,e),this.matches=t,this.mediaQuery=n,this.mqAlias=i,this.suffix=r,this.priority=a,this.property=""}return _createClass(e,[{key:"clone",value:function(){return new e(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}]),e}(),Oc=((_c=function(){function e(){_classCallCheck(this,e),this.stylesheet=new Map}return _createClass(e,[{key:"addStyleToElement",value:function(e,t,n){var i=this.stylesheet.get(e);i?i.set(t,n):this.stylesheet.set(e,new Map([[t,n]]))}},{key:"clearStyles",value:function(){this.stylesheet.clear()}},{key:"getStyleForElement",value:function(e,t){var n=this.stylesheet.get(e),i="";if(n){var r=n.get(t);"number"!=typeof r&&"string"!=typeof r||(i=r+"")}return i}}]),e}()).\u0275fac=function(e){return new(e||_c)},_c.\u0275prov=Object(i.Kb)({factory:function(){return new _c},token:_c,providedIn:"root"}),_c),Sc={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[]},xc=new i.s("Flex Layout token, config options for the library",{providedIn:"root",factory:function(){return Sc}}),Ec=new i.s("FlexLayoutServerLoaded",{providedIn:"root",factory:function(){return!1}}),Tc=new i.s("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:function(){return null}});function Ac(e,t){return e=e?e.clone():new wc,t&&(e.mqAlias=t.alias,e.mediaQuery=t.mediaQuery,e.suffix=t.suffix,e.priority=t.priority),e}var Rc=["row","column","row-reverse","column-reverse"];function Dc(e){if(e)switch(e.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":e="wrap-reverse";break;case"no":case"none":case"nowrap":e="nowrap";break;default:e="wrap"}return e}var Pc,Ic=((Pc=function(){function e(t,n,i,r){_classCallCheck(this,e),this.elementRef=t,this.styleBuilder=n,this.styler=i,this.marshal=r,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new Gi.a,this.styleCache=new Map}return _createClass(e,[{key:"parentElement",get:function(){return this.elementRef.nativeElement.parentElement}},{key:"nativeElement",get:function(){return this.elementRef.nativeElement}},{key:"activatedValue",get:function(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)},set:function(e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,this.marshal.activatedAlias)}},{key:"ngOnChanges",value:function(e){var t=this;Object.keys(e).forEach(function(n){if(-1!==t.inputs.indexOf(n)){var i=n.split(".").slice(1).join(".");t.setValue(e[n].currentValue,i)}})}},{key:"ngOnDestroy",value:function(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}},{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),e)}},{key:"addStyles",value:function(e,t){var n=this.styleBuilder,i=n.shouldCache,r=this.styleCache.get(e);r&&i||(r=n.buildStyles(e,t),i&&this.styleCache.set(e,r)),this.mru=Object.assign({},r),this.applyStyleToElement(r),n.sideEffect(e,r,t)}},{key:"clearStyles",value:function(){var e=this;Object.keys(this.mru).forEach(function(t){e.mru[t]=""}),this.applyStyleToElement(this.mru),this.mru={}}},{key:"triggerUpdate",value:function(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}},{key:"getFlexFlowDirection",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e){var n=this.styler.getFlowDirection(e),i=_slicedToArray(n,2),r=i[0],a=i[1];if(!a&&t){var o=function(e){var t=function(e){var t=_slicedToArray((e=e?e.toLowerCase():"").split(" "),3),n=t[0],i=t[1],r=t[2];return Rc.find(function(e){return e===n})||(n=Rc[0]),"inline"===i&&(i="inline"!==r?r:"",r="inline"),[n,Dc(i),!!r]}(e),n=_slicedToArray(t,3);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{display:n?"inline-flex":"flex","box-sizing":"border-box","flex-direction":e,"flex-wrap":t||null}}(n[0],n[1],n[2])}(r);this.styler.applyStyleToElements(o,[e])}return r.trim()}return"row"}},{key:"hasWrap",value:function(e){return this.styler.hasWrap(e)}},{key:"applyStyleToElement",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.nativeElement;this.styler.applyStyleToElement(n,e,t)}},{key:"setValue",value:function(e,t){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,t)}},{key:"updateWithValue",value:function(e){this.currentValue!==e&&(this.addStyles(e),this.currentValue=e)}}]),e}()).\u0275fac=function(e){i.bc()},Pc.\u0275dir=i.Jb({type:Pc,features:[i.Bb]}),Pc),Mc=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],Lc="(orientation: portrait) and (max-width: 599.98px)",jc="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",Fc="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",Nc="(orientation: portrait) and (min-width: 840px)",Uc="(orientation: landscape) and (min-width: 1280px)",Bc={HANDSET:"".concat(Lc,", (orientation: landscape) and (max-width: 959.98px)"),TABLET:"".concat(jc," , ").concat(Fc),WEB:"".concat(Nc,", ").concat(Uc," "),HANDSET_PORTRAIT:"".concat(Lc),TABLET_PORTRAIT:"".concat(jc," "),WEB_PORTRAIT:"".concat(Nc),HANDSET_LANDSCAPE:"(orientation: landscape) and (max-width: 959.98px)",TABLET_LANDSCAPE:"".concat(Fc),WEB_LANDSCAPE:"".concat(Uc)},Vc=[{alias:"handset",priority:2e3,mediaQuery:Bc.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:Bc.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:Bc.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:Bc.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:Bc.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:Bc.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:Bc.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:Bc.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:Bc.WEB_PORTRAIT,overlapping:!0}],Hc=/(\.|-|_)/g;function zc(e){var t=e.length>0?e.charAt(0):"",n=e.length>1?e.slice(1):"";return t.toUpperCase()+n}var Yc=new i.s("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:function(){var e=Object(i.X)(Tc),t=Object(i.X)(xc),n=[].concat.apply([],(e||[]).map(function(e){return Array.isArray(e)?e:[e]}));return function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i={};return e.forEach(function(e){i[e.alias]=e}),n.forEach(function(e){i[e.alias]?function(e){if(null==e)throw TypeError("Cannot convert undefined or null to object");for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];for(var r=0,a=n;r<a.length;r++){var o=a[r];if(null!=o)for(var s in o)o.hasOwnProperty(s)&&(e[s]=o[s])}}(i[e.alias],e):i[e.alias]=e}),(t=Object.keys(i).map(function(e){return i[e]})).forEach(function(e){e.suffix||(e.suffix=e.alias.replace(Hc,"|").split("|").map(zc).join(""),e.overlapping=!!e.overlapping)}),t}((t.disableDefaultBps?[]:Mc).concat(t.addOrientationBps?Vc:[]),n)}});function Wc(e,t){return(t&&t.priority||0)-(e&&e.priority||0)}function Kc(e,t){return(e.priority||0)-(t.priority||0)}var qc,Gc,Qc,Xc=((Gc=function(){function e(t){_classCallCheck(this,e),this.findByMap=new Map,this.items=_toConsumableArray(t).sort(Kc)}return _createClass(e,[{key:"findByAlias",value:function(e){return e?this.findWithPredicate(e,function(t){return t.alias==e}):null}},{key:"findByQuery",value:function(e){return this.findWithPredicate(e,function(t){return t.mediaQuery==e})}},{key:"overlappings",get:function(){return this.items.filter(function(e){return 1==e.overlapping})}},{key:"aliases",get:function(){return this.items.map(function(e){return e.alias})}},{key:"suffixes",get:function(){return this.items.map(function(e){return e.suffix?e.suffix:""})}},{key:"findWithPredicate",value:function(e,t){var n=this.findByMap.get(e);return n||(n=this.items.find(t)||null,this.findByMap.set(e,n)),n||null}}]),e}()).\u0275fac=function(e){return new(e||Gc)(i.Yb(Yc))},Gc.\u0275prov=Object(i.Kb)({factory:function(){return new Gc(Object(i.Yb)(Yc))},token:Gc,providedIn:"root"}),Gc),Zc=((qc=function(){function e(t,n,i){_classCallCheck(this,e),this._zone=t,this._platformId=n,this._document=i,this.source=new la.a(new wc(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}return _createClass(e,[{key:"activations",get:function(){var e=[];return this.registry.forEach(function(t,n){t.matches&&e.push(n)}),e}},{key:"isActive",value:function(e){var t=this.registry.get(e);return t?t.matches:this.registerQuery(e).some(function(e){return e.matches})}},{key:"observe",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e&&e.length){var i=this._observable$.pipe(Object(sr.a)(function(t){return!n||e.indexOf(t.mediaQuery)>-1})),r=new qi.a(function(n){var i=t.registerQuery(e);if(i.length){var r=i.pop();i.forEach(function(e){n.next(e)}),t.source.next(r)}n.complete()});return Object(Ki.a)(r,i)}return this._observable$}},{key:"registerQuery",value:function(e){var t=this,n=Array.isArray(e)?e:[e],i=[];return function(e,t){var n=e.filter(function(e){return!Jc[e]});if(n.length>0){var i=n.join(", ");try{var r=t.createElement("style");r.setAttribute("type","text/css"),r.styleSheet||r.appendChild(t.createTextNode("\n/*\n  @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n  see http://bit.ly/2sd4HMP\n*/\n@media ".concat(i," {.fx-query-test{ }}\n"))),t.head.appendChild(r),n.forEach(function(e){return Jc[e]=r})}catch(a){console.error(a)}}}(n,this._document),n.forEach(function(e){var n=function(n){t._zone.run(function(){return t.source.next(new wc(n.matches,e))})},r=t.registry.get(e);r||((r=t.buildMQL(e)).addListener(n),t.pendingRemoveListenerFns.push(function(){return r.removeListener(n)}),t.registry.set(e,r)),r.matches&&i.push(new wc(!0,e))}),i}},{key:"ngOnDestroy",value:function(){for(var e;e=this.pendingRemoveListenerFns.pop();)e()}},{key:"buildMQL",value:function(e){return function(e,t){return t&&window.matchMedia("all").addListener?window.matchMedia(e):{matches:"all"===e||""===e,media:e,addListener:function(){},removeListener:function(){},onchange:null,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){return!1}}}(e,we(this._platformId))}}]),e}()).\u0275fac=function(e){return new(e||qc)(i.Yb(i.B),i.Yb(i.D),i.Yb(s))},qc.\u0275prov=Object(i.Kb)({factory:function(){return new qc(Object(i.Yb)(i.B),Object(i.Yb)(i.D),Object(i.Yb)(s))},token:qc,providedIn:"root"}),qc),Jc={},$c={alias:"print",mediaQuery:"print",priority:1e3},eu=((Qc=function(){function e(t,n,i){_classCallCheck(this,e),this.breakpoints=t,this.layoutConfig=n,this._document=i,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.isPrinting=!1,this.queue=new tu,this.deactivations=[]}return _createClass(e,[{key:"withPrintQuery",value:function(e){return[].concat(_toConsumableArray(e),["print"])}},{key:"isPrintEvent",value:function(e){return e.mediaQuery.startsWith("print")}},{key:"printAlias",get:function(){return this.layoutConfig.printWithBreakpoints||[]}},{key:"printBreakPoints",get:function(){var e=this;return this.printAlias.map(function(t){return e.breakpoints.findByAlias(t)}).filter(function(e){return null!==e})}},{key:"getEventBreakpoints",value:function(e){var t=e.mediaQuery,n=this.breakpoints.findByQuery(t);return(n?[].concat(_toConsumableArray(this.printBreakPoints),[n]):this.printBreakPoints).sort(Wc)}},{key:"updateEvent",value:function(e){var t=this.breakpoints.findByQuery(e.mediaQuery);return this.isPrintEvent(e)&&(t=this.getEventBreakpoints(e)[0],e.mediaQuery=t?t.mediaQuery:""),Ac(e,t)}},{key:"registerBeforeAfterPrintHooks",value:function(e){var t=this;if(this._document.defaultView&&!this.registeredBeforeAfterPrintHooks){this.registeredBeforeAfterPrintHooks=!0;var n=function(){t.isPrinting||(t.isPrintingBeforeAfterEvent=!0,t.startPrinting(e,t.getEventBreakpoints(new wc(!0,"print"))),e.updateStyles())},i=function(){t.isPrintingBeforeAfterEvent=!1,t.isPrinting&&(t.stopPrinting(e),e.updateStyles())};this._document.defaultView.addEventListener("beforeprint",n),this._document.defaultView.addEventListener("afterprint",i),this.beforePrintEventListeners.push(n),this.afterPrintEventListeners.push(i)}}},{key:"interceptEvents",value:function(e){var t=this;return this.registerBeforeAfterPrintHooks(e),function(n){t.isPrintEvent(n)?n.matches&&!t.isPrinting?(t.startPrinting(e,t.getEventBreakpoints(n)),e.updateStyles()):n.matches||!t.isPrinting||t.isPrintingBeforeAfterEvent||(t.stopPrinting(e),e.updateStyles()):t.collectActivations(n)}}},{key:"blockPropagation",value:function(){var e=this;return function(t){return!(e.isPrinting||e.isPrintEvent(t))}}},{key:"startPrinting",value:function(e,t){this.isPrinting=!0,e.activatedBreakpoints=this.queue.addPrintBreakpoints(t)}},{key:"stopPrinting",value:function(e){e.activatedBreakpoints=this.deactivations,this.deactivations=[],this.queue.clear(),this.isPrinting=!1}},{key:"collectActivations",value:function(e){if(!this.isPrinting||this.isPrintingBeforeAfterEvent)if(e.matches)this.isPrintingBeforeAfterEvent||(this.deactivations=[]);else{var t=this.breakpoints.findByQuery(e.mediaQuery);t&&(this.deactivations.push(t),this.deactivations.sort(Wc))}}},{key:"ngOnDestroy",value:function(){var e=this;this.beforePrintEventListeners.forEach(function(t){return e._document.defaultView.removeEventListener("beforeprint",t)}),this.afterPrintEventListeners.forEach(function(t){return e._document.defaultView.removeEventListener("afterprint",t)})}}]),e}()).\u0275fac=function(e){return new(e||Qc)(i.Yb(Xc),i.Yb(xc),i.Yb(s))},Qc.\u0275prov=Object(i.Kb)({factory:function(){return new Qc(Object(i.Yb)(Xc),Object(i.Yb)(xc),Object(i.Yb)(s))},token:Qc,providedIn:"root"}),Qc),tu=function(){function e(){_classCallCheck(this,e),this.printBreakpoints=[]}return _createClass(e,[{key:"addPrintBreakpoints",value:function(e){var t=this;return e.push($c),e.sort(Wc),e.forEach(function(e){return t.addBreakpoint(e)}),this.printBreakpoints}},{key:"addBreakpoint",value:function(e){e&&void 0===this.printBreakpoints.find(function(t){return t.mediaQuery===e.mediaQuery})&&(this.printBreakpoints=function(e){return!!e&&e.mediaQuery.startsWith("print")}(e)?[e].concat(_toConsumableArray(this.printBreakpoints)):[].concat(_toConsumableArray(this.printBreakpoints),[e]))}},{key:"clear",value:function(){this.printBreakpoints=[]}}]),e}();function nu(e){for(var t in e){var n=e[t]||"";switch(t){case"display":e.display="flex"===n?["-webkit-flex","flex"]:"inline-flex"===n?["-webkit-inline-flex","inline-flex"]:n;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":e["-webkit-"+t]=n;break;case"flex-direction":n=n||"row",e["-webkit-flex-direction"]=n,e["flex-direction"]=n;break;case"order":e.order=e["-webkit-"+t]=isNaN(+n)?"0":n}}return e}var iu,ru,au=((iu=function(){function e(t,n,i,r){_classCallCheck(this,e),this._serverStylesheet=t,this._serverModuleLoaded=n,this._platformId=i,this.layoutConfig=r}return _createClass(e,[{key:"applyStyleToElement",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i={};"string"==typeof t&&(i[t]=n,t=i),i=this.layoutConfig.disableVendorPrefixes?t:nu(t),this._applyMultiValueStyleToElement(i,e)}},{key:"applyStyleToElements",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=this.layoutConfig.disableVendorPrefixes?e:nu(e);n.forEach(function(e){t._applyMultiValueStyleToElement(i,e)})}},{key:"getFlowDirection",value:function(e){var t=this.lookupStyle(e,"flex-direction");return[t||"row",this.lookupInlineStyle(e,"flex-direction")||Oe(this._platformId)&&this._serverModuleLoaded?t:""]}},{key:"hasWrap",value:function(e){return"wrap"===this.lookupStyle(e,"flex-wrap")}},{key:"lookupAttributeValue",value:function(e,t){return e.getAttribute(t)||""}},{key:"lookupInlineStyle",value:function(e,t){return we(this._platformId)?e.style.getPropertyValue(t):this._getServerStyle(e,t)}},{key:"lookupStyle",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i="";return e&&((i=this.lookupInlineStyle(e,t))||(we(this._platformId)?n||(i=getComputedStyle(e).getPropertyValue(t)):this._serverModuleLoaded&&(i=this._serverStylesheet.getStyleForElement(e,t)))),i?i.trim():""}},{key:"_applyMultiValueStyleToElement",value:function(e,t){var n=this;Object.keys(e).sort().forEach(function(i){var r=e[i],a=Array.isArray(r)?r:[r];a.sort();var o,s=_createForOfIteratorHelper(a);try{for(s.s();!(o=s.n()).done;){var l=o.value;l=l?l+"":"",we(n._platformId)||!n._serverModuleLoaded?we(n._platformId)?t.style.setProperty(i,l):n._setServerStyle(t,i,l):n._serverStylesheet.addStyleToElement(t,i,l)}}catch(c){s.e(c)}finally{s.f()}})}},{key:"_setServerStyle",value:function(e,t,n){t=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();var i=this._readStyleAttribute(e);i[t]=n||"",this._writeStyleAttribute(e,i)}},{key:"_getServerStyle",value:function(e,t){return this._readStyleAttribute(e)[t]||""}},{key:"_readStyleAttribute",value:function(e){var t={},n=e.getAttribute("style");if(n)for(var i=n.split(/;+/g),r=0;r<i.length;r++){var a=i[r].trim();if(a.length>0){var o=a.indexOf(":");if(-1===o)throw new Error("Invalid CSS style: ".concat(a));t[a.substr(0,o).trim()]=a.substr(o+1).trim()}}return t}},{key:"_writeStyleAttribute",value:function(e,t){var n="";for(var i in t)t[i]&&(n+=i+":"+t[i]+";");e.setAttribute("style",n)}}]),e}()).\u0275fac=function(e){return new(e||iu)(i.Yb(Oc),i.Yb(Ec),i.Yb(i.D),i.Yb(xc))},iu.\u0275prov=Object(i.Kb)({factory:function(){return new iu(Object(i.Yb)(Oc),Object(i.Yb)(Ec),Object(i.Yb)(i.D),Object(i.Yb)(xc))},token:iu,providedIn:"root"}),iu),ou=function(){function e(){_classCallCheck(this,e),this.shouldCache=!0}return _createClass(e,[{key:"sideEffect",value:function(e,t,n){}}]),e}(),su=((ru=function(){function e(t,n,i){_classCallCheck(this,e),this.matchMedia=t,this.breakpoints=n,this.hook=i,this.activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new Gi.a,this.observeActivations()}return _createClass(e,[{key:"activatedAlias",get:function(){return this.activatedBreakpoints[0]?this.activatedBreakpoints[0].alias:""}},{key:"onMediaChange",value:function(e){var t=this.findByQuery(e.mediaQuery);t&&((e=Ac(e,t)).matches&&-1===this.activatedBreakpoints.indexOf(t)?(this.activatedBreakpoints.push(t),this.activatedBreakpoints.sort(Wc),this.updateStyles()):e.matches||-1===this.activatedBreakpoints.indexOf(t)||(this.activatedBreakpoints.splice(this.activatedBreakpoints.indexOf(t),1),this.activatedBreakpoints.sort(Wc),this.updateStyles()))}},{key:"init",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];lu(this.updateMap,e,t,n),lu(this.clearMap,e,t,i),this.buildElementKeyMap(e,t),this.watchExtraTriggers(e,t,r)}},{key:"getValue",value:function(e,t,n){var i=this.elementMap.get(e);if(i){var r=void 0!==n?i.get(n):this.getActivatedValues(i,t);if(r)return r.get(t)}}},{key:"hasValue",value:function(e,t){var n=this.elementMap.get(e);if(n){var i=this.getActivatedValues(n,t);if(i)return void 0!==i.get(t)||!1}return!1}},{key:"setValue",value:function(e,t,n,i){var r=this.elementMap.get(e);if(r){var a=(r.get(i)||new Map).set(t,n);r.set(i,a),this.elementMap.set(e,r)}else r=(new Map).set(i,(new Map).set(t,n)),this.elementMap.set(e,r);var o=this.getValue(e,t);void 0!==o&&this.updateElement(e,t,o)}},{key:"trackValue",value:function(e,t){return this.subject.asObservable().pipe(Object(sr.a)(function(n){return n.element===e&&n.key===t}))}},{key:"updateStyles",value:function(){var e=this;this.elementMap.forEach(function(t,n){var i=new Set(e.elementKeyMap.get(n)),r=e.getActivatedValues(t);r&&r.forEach(function(t,r){e.updateElement(n,r,t),i.delete(r)}),i.forEach(function(i){if(r=e.getActivatedValues(t,i)){var a=r.get(i);e.updateElement(n,i,a)}else e.clearElement(n,i)})})}},{key:"clearElement",value:function(e,t){var n=this.clearMap.get(e);if(n){var i=n.get(t);i&&(i(),this.subject.next({element:e,key:t,value:""}))}}},{key:"updateElement",value:function(e,t,n){var i=this.updateMap.get(e);if(i){var r=i.get(t);r&&(r(n),this.subject.next({element:e,key:t,value:n}))}}},{key:"releaseElement",value:function(e){var t=this.watcherMap.get(e);t&&(t.forEach(function(e){return e.unsubscribe()}),this.watcherMap.delete(e));var n=this.elementMap.get(e);n&&(n.forEach(function(e,t){return n.delete(t)}),this.elementMap.delete(e))}},{key:"triggerUpdate",value:function(e,t){var n=this,i=this.elementMap.get(e);if(i){var r=this.getActivatedValues(i,t);r&&(t?this.updateElement(e,t,r.get(t)):r.forEach(function(t,i){return n.updateElement(e,i,t)}))}}},{key:"buildElementKeyMap",value:function(e,t){var n=this.elementKeyMap.get(e);n||(n=new Set,this.elementKeyMap.set(e,n)),n.add(t)}},{key:"watchExtraTriggers",value:function(e,t,n){var i=this;if(n&&n.length){var r=this.watcherMap.get(e);if(r||(r=new Map,this.watcherMap.set(e,r)),!r.get(t)){var a=Object(Ki.a).apply(void 0,_toConsumableArray(n)).subscribe(function(){var n=i.getValue(e,t);i.updateElement(e,t,n)});r.set(t,a)}}}},{key:"findByQuery",value:function(e){return this.breakpoints.findByQuery(e)}},{key:"getActivatedValues",value:function(e,t){for(var n=0;n<this.activatedBreakpoints.length;n++){var i=e.get(this.activatedBreakpoints[n].alias);if(i&&(void 0===t||i.has(t)&&null!=i.get(t)))return i}var r=e.get("");return void 0===t||r&&r.has(t)?r:void 0}},{key:"observeActivations",value:function(){var e=this.breakpoints.items.map(function(e){return e.mediaQuery});this.matchMedia.observe(this.hook.withPrintQuery(e)).pipe(Ba(this.hook.interceptEvents(this)),Object(sr.a)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}]),e}()).\u0275fac=function(e){return new(e||ru)(i.Yb(Zc),i.Yb(Xc),i.Yb(eu))},ru.\u0275prov=Object(i.Kb)({factory:function(){return new ru(Object(i.Yb)(Zc),Object(i.Yb)(Xc),Object(i.Yb)(eu))},token:ru,providedIn:"root"}),ru);function lu(e,t,n,i){if(void 0!==i){var r=e.get(t);r||(r=new Map,e.set(t,r)),r.set(n,i)}}function cu(e){return null!=e&&"false"!="".concat(e)}function uu(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return hu(e)?Number(e):t}function hu(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}function fu(e){return Array.isArray(e)?e:[e]}function du(e){return null==e?"":"string"==typeof e?e:"".concat(e,"px")}function pu(e){return e instanceof i.l?e.nativeElement:e}new Map;var vu,mu,_u,gu,yu,bu=((vu=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,o,s,l){var c;return _classCallCheck(this,n),(c=t.call(this,e,null,i,r)).ngClassInstance=l,c.DIRECTIVE_KEY="ngClass",c.ngClassInstance||(c.ngClassInstance=new q(a,o,e,s)),c.init(),c.setValue("",""),c}return _createClass(n,[{key:"klass",set:function(e){this.ngClassInstance.klass=e,this.setValue(e,"")}},{key:"updateWithValue",value:function(e){this.ngClassInstance.ngClass=e,this.ngClassInstance.ngDoCheck()}},{key:"ngDoCheck",value:function(){this.ngClassInstance.ngDoCheck()}}]),n}(Ic)).\u0275fac=function(e){return new(e||vu)(i.Ob(i.l),i.Ob(au),i.Ob(su),i.Ob(i.u),i.Ob(i.v),i.Ob(i.G),i.Ob(q,10))},vu.\u0275dir=i.Jb({type:vu,inputs:{klass:["class","klass"]},features:[i.Ab]}),vu),ku=["ngClass","ngClass.xs","ngClass.sm","ngClass.md","ngClass.lg","ngClass.xl","ngClass.lt-sm","ngClass.lt-md","ngClass.lt-lg","ngClass.lt-xl","ngClass.gt-xs","ngClass.gt-sm","ngClass.gt-md","ngClass.gt-lg"],Cu=((mu=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments)).inputs=ku,e}return n}(bu)).\u0275fac=function(e){return wu(e||mu)},mu.\u0275dir=i.Jb({type:mu,selectors:[["","ngClass",""],["","ngClass.xs",""],["","ngClass.sm",""],["","ngClass.md",""],["","ngClass.lg",""],["","ngClass.xl",""],["","ngClass.lt-sm",""],["","ngClass.lt-md",""],["","ngClass.lt-lg",""],["","ngClass.lt-xl",""],["","ngClass.gt-xs",""],["","ngClass.gt-sm",""],["","ngClass.gt-md",""],["","ngClass.gt-lg",""]],inputs:{ngClass:"ngClass","ngClass.xs":"ngClass.xs","ngClass.sm":"ngClass.sm","ngClass.md":"ngClass.md","ngClass.lg":"ngClass.lg","ngClass.xl":"ngClass.xl","ngClass.lt-sm":"ngClass.lt-sm","ngClass.lt-md":"ngClass.lt-md","ngClass.lt-lg":"ngClass.lt-lg","ngClass.lt-xl":"ngClass.lt-xl","ngClass.gt-xs":"ngClass.gt-xs","ngClass.gt-sm":"ngClass.gt-sm","ngClass.gt-md":"ngClass.gt-md","ngClass.gt-lg":"ngClass.gt-lg"},features:[i.Ab]}),mu),wu=i.Wb(Cu),Ou=((_u=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"buildStyles",value:function(e,t){return{display:"true"===e?t.display||(t.isServer?"initial":""):"none"}}}]),n}(ou)).\u0275fac=function(e){return Su(e||_u)},_u.\u0275prov=Object(i.Kb)({factory:function(){return new _u},token:_u,providedIn:"root"}),_u),Su=i.Wb(Ou),xu=((gu=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,o,s,l){var c;return _classCallCheck(this,n),(c=t.call(this,e,i,r,a)).layoutConfig=o,c.platformId=s,c.serverModuleLoaded=l,c.DIRECTIVE_KEY="show-hide",c.display="",c.hasLayout=!1,c.hasFlexChild=!1,c}return _createClass(n,[{key:"ngAfterViewInit",value:function(){this.trackExtraTriggers();for(var e=Array.from(this.nativeElement.children),t=0;t<e.length;t++)if(this.marshal.hasValue(e[t],"flex")){this.hasFlexChild=!0;break}Eu.has(this.nativeElement)?this.display=Eu.get(this.nativeElement):(this.display=this.getDisplayStyle(),Eu.set(this.nativeElement,this.display)),this.init();var n=this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY,"");void 0===n||""===n?this.setValue(!0,""):this.triggerUpdate()}},{key:"ngOnChanges",value:function(e){var t=this;Object.keys(e).forEach(function(n){if(-1!==t.inputs.indexOf(n)){var i=n.split("."),r=i.slice(1).join("."),a=e[n].currentValue,o=""===a||0!==a&&cu(a);"fxHide"===i[0]&&(o=!o),t.setValue(o,r)}})}},{key:"trackExtraTriggers",value:function(){var e=this;this.hasLayout=this.marshal.hasValue(this.nativeElement,"layout"),["layout","layout-align"].forEach(function(t){e.marshal.trackValue(e.nativeElement,t).pipe(Object(yc.a)(e.destroySubject)).subscribe(e.triggerUpdate.bind(e))})}},{key:"getDisplayStyle",value:function(){return this.hasLayout||this.hasFlexChild&&this.layoutConfig.addFlexToParent?"flex":this.styler.lookupStyle(this.nativeElement,"display",!0)}},{key:"updateWithValue",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(""!==e){var t=Oe(this.platformId);this.addStyles(e?"true":"false",{display:this.display,isServer:t}),t&&this.serverModuleLoaded&&this.nativeElement.style.setProperty("display",""),this.marshal.triggerUpdate(this.parentElement,"layout-gap")}}}]),n}(Ic)).\u0275fac=function(e){return new(e||gu)(i.Ob(i.l),i.Ob(Ou),i.Ob(au),i.Ob(su),i.Ob(xc),i.Ob(i.D),i.Ob(Ec))},gu.\u0275dir=i.Jb({type:gu,features:[i.Ab,i.Bb]}),gu),Eu=new WeakMap,Tu=["fxShow","fxShow.print","fxShow.xs","fxShow.sm","fxShow.md","fxShow.lg","fxShow.xl","fxShow.lt-sm","fxShow.lt-md","fxShow.lt-lg","fxShow.lt-xl","fxShow.gt-xs","fxShow.gt-sm","fxShow.gt-md","fxShow.gt-lg","fxHide","fxHide.print","fxHide.xs","fxHide.sm","fxHide.md","fxHide.lg","fxHide.xl","fxHide.lt-sm","fxHide.lt-md","fxHide.lt-lg","fxHide.lt-xl","fxHide.gt-xs","fxHide.gt-sm","fxHide.gt-md","fxHide.gt-lg"],Au=((yu=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments)).inputs=Tu,e}return n}(xu)).\u0275fac=function(e){return Ru(e||yu)},yu.\u0275dir=i.Jb({type:yu,selectors:[["","fxShow",""],["","fxShow.print",""],["","fxShow.xs",""],["","fxShow.sm",""],["","fxShow.md",""],["","fxShow.lg",""],["","fxShow.xl",""],["","fxShow.lt-sm",""],["","fxShow.lt-md",""],["","fxShow.lt-lg",""],["","fxShow.lt-xl",""],["","fxShow.gt-xs",""],["","fxShow.gt-sm",""],["","fxShow.gt-md",""],["","fxShow.gt-lg",""],["","fxHide",""],["","fxHide.print",""],["","fxHide.xs",""],["","fxHide.sm",""],["","fxHide.md",""],["","fxHide.lg",""],["","fxHide.xl",""],["","fxHide.lt-sm",""],["","fxHide.lt-md",""],["","fxHide.lt-lg",""],["","fxHide.lt-xl",""],["","fxHide.gt-xs",""],["","fxHide.gt-sm",""],["","fxHide.gt-md",""],["","fxHide.gt-lg",""]],inputs:{fxShow:"fxShow","fxShow.print":"fxShow.print","fxShow.xs":"fxShow.xs","fxShow.sm":"fxShow.sm","fxShow.md":"fxShow.md","fxShow.lg":"fxShow.lg","fxShow.xl":"fxShow.xl","fxShow.lt-sm":"fxShow.lt-sm","fxShow.lt-md":"fxShow.lt-md","fxShow.lt-lg":"fxShow.lt-lg","fxShow.lt-xl":"fxShow.lt-xl","fxShow.gt-xs":"fxShow.gt-xs","fxShow.gt-sm":"fxShow.gt-sm","fxShow.gt-md":"fxShow.gt-md","fxShow.gt-lg":"fxShow.gt-lg",fxHide:"fxHide","fxHide.print":"fxHide.print","fxHide.xs":"fxHide.xs","fxHide.sm":"fxHide.sm","fxHide.md":"fxHide.md","fxHide.lg":"fxHide.lg","fxHide.xl":"fxHide.xl","fxHide.lt-sm":"fxHide.lt-sm","fxHide.lt-md":"fxHide.lt-md","fxHide.lt-lg":"fxHide.lt-lg","fxHide.lt-xl":"fxHide.lt-xl","fxHide.gt-xs":"fxHide.gt-xs","fxHide.gt-sm":"fxHide.gt-sm","fxHide.gt-md":"fxHide.gt-md","fxHide.gt-lg":"fxHide.gt-lg"},features:[i.Ab]}),yu),Ru=i.Wb(Au),Du=function e(t,n){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];_classCallCheck(this,e),this.key=t,this.value=n,this.key=i?t.replace(/['"]/g,"").trim():t.trim(),this.value=i?n.replace(/['"]/g,"").trim():n.trim(),this.value=this.value.replace(/;/,"")};function Pu(e){var t=typeof e;return"object"===t?e.constructor===Array?"array":e.constructor===Set?"set":"object":t}function Iu(e){var t=_toArray(e.split(":")),n=t[0],i=t.slice(1);return new Du(n,i.join(":"))}function Mu(e,t){return t.key&&(e[t.key]=t.value),e}var Lu,ju,Fu=((Lu=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,o,s,l,c,u){var h;_classCallCheck(this,n),(h=t.call(this,e,null,i,r)).sanitizer=a,h.ngStyleInstance=l,h.DIRECTIVE_KEY="ngStyle",h.ngStyleInstance||(h.ngStyleInstance=new le(e,o,s)),h.init();var f=h.nativeElement.getAttribute("style")||"";return h.fallbackStyles=h.buildStyleMap(f),h.isServer=c&&Oe(u),h}return _createClass(n,[{key:"updateWithValue",value:function(e){var t=this.buildStyleMap(e);this.ngStyleInstance.ngStyle=Object.assign(Object.assign({},this.fallbackStyles),t),this.isServer&&this.applyStyleToElement(t),this.ngStyleInstance.ngDoCheck()}},{key:"clearStyles",value:function(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}},{key:"buildStyleMap",value:function(e){var t,n,r,a=this,o=function(e){return a.sanitizer.sanitize(i.K.STYLE,e)||""};if(e)switch(Pu(e)){case"string":return Vu(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:";";return String(e).trim().split(t).map(function(e){return e.trim()}).filter(function(e){return""!==e})}(e),o);case"array":return Vu(e,o);case"set":default:return n=o,r=[],"set"===Pu(t=e)?t.forEach(function(e){return r.push(e)}):Object.keys(t).forEach(function(e){r.push("".concat(e,":").concat(t[e]))}),function(e,t){return e.map(Iu).filter(function(e){return!!e}).map(function(e){return t&&(e.value=t(e.value)),e}).reduce(Mu,{})}(r,n)}return{}}},{key:"ngDoCheck",value:function(){this.ngStyleInstance.ngDoCheck()}}]),n}(Ic)).\u0275fac=function(e){return new(e||Lu)(i.Ob(i.l),i.Ob(au),i.Ob(su),i.Ob(ct),i.Ob(i.v),i.Ob(i.G),i.Ob(le,10),i.Ob(Ec),i.Ob(i.D))},Lu.\u0275dir=i.Jb({type:Lu,features:[i.Ab]}),Lu),Nu=["ngStyle","ngStyle.xs","ngStyle.sm","ngStyle.md","ngStyle.lg","ngStyle.xl","ngStyle.lt-sm","ngStyle.lt-md","ngStyle.lt-lg","ngStyle.lt-xl","ngStyle.gt-xs","ngStyle.gt-sm","ngStyle.gt-md","ngStyle.gt-lg"],Uu=((ju=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments)).inputs=Nu,e}return n}(Fu)).\u0275fac=function(e){return Bu(e||ju)},ju.\u0275dir=i.Jb({type:ju,selectors:[["","ngStyle",""],["","ngStyle.xs",""],["","ngStyle.sm",""],["","ngStyle.md",""],["","ngStyle.lg",""],["","ngStyle.xl",""],["","ngStyle.lt-sm",""],["","ngStyle.lt-md",""],["","ngStyle.lt-lg",""],["","ngStyle.lt-xl",""],["","ngStyle.gt-xs",""],["","ngStyle.gt-sm",""],["","ngStyle.gt-md",""],["","ngStyle.gt-lg",""]],inputs:{ngStyle:"ngStyle","ngStyle.xs":"ngStyle.xs","ngStyle.sm":"ngStyle.sm","ngStyle.md":"ngStyle.md","ngStyle.lg":"ngStyle.lg","ngStyle.xl":"ngStyle.xl","ngStyle.lt-sm":"ngStyle.lt-sm","ngStyle.lt-md":"ngStyle.lt-md","ngStyle.lt-lg":"ngStyle.lt-lg","ngStyle.lt-xl":"ngStyle.lt-xl","ngStyle.gt-xs":"ngStyle.gt-xs","ngStyle.gt-sm":"ngStyle.gt-sm","ngStyle.gt-md":"ngStyle.gt-md","ngStyle.gt-lg":"ngStyle.gt-lg"},features:[i.Ab]}),ju),Bu=i.Wb(Uu);function Vu(e,t){return e.map(Iu).filter(function(e){return!!e}).map(function(e){return t&&(e.value=t(e.value)),e}).reduce(Mu,{})}var Hu,zu,Yu,Wu=((Hu=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Hu)},Hu.\u0275mod=i.Mb({type:Hu}),Hu.\u0275inj=i.Lb({imports:[[Cc]]}),Hu),Ku=new i.s("cdk-dir-doc",{providedIn:"root",factory:function(){return Object(i.X)(s)}}),qu=((Yu=function(){function e(t){if(_classCallCheck(this,e),this.value="ltr",this.change=new i.o,t){var n=t.documentElement?t.documentElement.dir:null,r=(t.body?t.body.dir:null)||n;this.value="ltr"===r||"rtl"===r?r:"ltr"}}return _createClass(e,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),e}()).\u0275fac=function(e){return new(e||Yu)(i.Yb(Ku,8))},Yu.\u0275prov=Object(i.Kb)({factory:function(){return new Yu(Object(i.Yb)(Ku,8))},token:Yu,providedIn:"root"}),Yu),Gu=((zu=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||zu)},zu.\u0275mod=i.Mb({type:zu}),zu.\u0275inj=i.Lb({}),zu),Qu=["row","column","row-reverse","column-reverse"];function Xu(e){var t=_slicedToArray((e=e?e.toLowerCase():"").split(" "),3),n=t[0],i=t[1],r=t[2];return Qu.find(function(e){return e===n})||(n=Qu[0]),"inline"===i&&(i="inline"!==r?r:"",r="inline"),[n,Ju(i),!!r]}function Zu(e){return _slicedToArray(Xu(e),1)[0].indexOf("row")>-1}function Ju(e){if(e)switch(e.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":e="wrap-reverse";break;case"no":case"none":case"nowrap":e="nowrap";break;default:e="wrap"}return e}var $u,eh,th,nh=(($u=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"buildStyles",value:function(e){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{display:n?"inline-flex":"flex","box-sizing":"border-box","flex-direction":e,"flex-wrap":t||null}}((t=_slicedToArray(Xu(e),3))[0],t[1],t[2]);var t}}]),n}(ou)).\u0275fac=function(e){return ih(e||$u)},$u.\u0275prov=Object(i.Kb)({factory:function(){return new $u},token:$u,providedIn:"root"}),$u),ih=i.Wb(nh),rh=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"],ah=((th=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a){var o;return _classCallCheck(this,n),(o=t.call(this,e,r,i,a)).DIRECTIVE_KEY="layout",o.styleCache=lh,o.init(),o}return n}(Ic)).\u0275fac=function(e){return new(e||th)(i.Ob(i.l),i.Ob(au),i.Ob(nh),i.Ob(su))},th.\u0275dir=i.Jb({type:th,features:[i.Ab]}),th),oh=((eh=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments)).inputs=rh,e}return n}(ah)).\u0275fac=function(e){return sh(e||eh)},eh.\u0275dir=i.Jb({type:eh,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[i.Ab]}),eh),sh=i.Wb(oh),lh=new Map;new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map;var ch,uh,hh,fh,dh=((ch=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"buildStyles",value:function(e,t){var n={},i=_slicedToArray(e.split(" "),2),r=i[0],a=i[1];switch(r){case"center":n["justify-content"]="center";break;case"space-around":n["justify-content"]="space-around";break;case"space-between":n["justify-content"]="space-between";break;case"space-evenly":n["justify-content"]="space-evenly";break;case"end":case"flex-end":n["justify-content"]="flex-end";break;case"start":case"flex-start":default:n["justify-content"]="flex-start"}switch(a){case"start":case"flex-start":n["align-items"]=n["align-content"]="flex-start";break;case"center":n["align-items"]=n["align-content"]="center";break;case"end":case"flex-end":n["align-items"]=n["align-content"]="flex-end";break;case"space-between":n["align-content"]="space-between",n["align-items"]="stretch";break;case"space-around":n["align-content"]="space-around",n["align-items"]="stretch";break;case"baseline":n["align-content"]="stretch",n["align-items"]="baseline";break;case"stretch":default:n["align-items"]=n["align-content"]="stretch"}return function(e){if(null==e)throw TypeError("Cannot convert undefined or null to object");for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];for(var r=0,a=n;r<a.length;r++){var o=a[r];if(null!=o)for(var s in o)o.hasOwnProperty(s)&&(e[s]=o[s])}return e}(n,{display:t.inline?"inline-flex":"flex","flex-direction":t.layout,"box-sizing":"border-box","max-width":"stretch"===a?Zu(t.layout)?null:"100%":null,"max-height":"stretch"===a&&Zu(t.layout)?"100%":null})}}]),n}(ou)).\u0275fac=function(e){return ph(e||ch)},ch.\u0275prov=Object(i.Kb)({factory:function(){return new ch},token:ch,providedIn:"root"}),ch),ph=i.Wb(dh),vh=["fxLayoutAlign","fxLayoutAlign.xs","fxLayoutAlign.sm","fxLayoutAlign.md","fxLayoutAlign.lg","fxLayoutAlign.xl","fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg"],mh=((hh=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a){var o;return _classCallCheck(this,n),(o=t.call(this,e,r,i,a)).DIRECTIVE_KEY="layout-align",o.layout="row",o.inline=!1,o.init(),o.marshal.trackValue(o.nativeElement,"layout").pipe(Object(yc.a)(o.destroySubject)).subscribe(o.onLayoutChange.bind(_assertThisInitialized(o))),o}return _createClass(n,[{key:"updateWithValue",value:function(e){var t=this.layout||"row",n=this.inline;"row"===t&&n?this.styleCache=wh:"row"!==t||n?"row-reverse"===t&&n?this.styleCache=Sh:"row-reverse"!==t||n?"column"===t&&n?this.styleCache=Oh:"column"!==t||n?"column-reverse"===t&&n?this.styleCache=xh:"column-reverse"!==t||n||(this.styleCache=Ch):this.styleCache=bh:this.styleCache=kh:this.styleCache=yh,this.addStyles(e,{layout:t,inline:n})}},{key:"onLayoutChange",value:function(e){var t=this,n=e.value.split(" ");this.layout=n[0],this.inline=e.value.includes("inline"),Qu.find(function(e){return e===t.layout})||(this.layout="row"),this.triggerUpdate()}}]),n}(Ic)).\u0275fac=function(e){return new(e||hh)(i.Ob(i.l),i.Ob(au),i.Ob(dh),i.Ob(su))},hh.\u0275dir=i.Jb({type:hh,features:[i.Ab]}),hh),_h=((uh=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments)).inputs=vh,e}return n}(mh)).\u0275fac=function(e){return gh(e||uh)},uh.\u0275dir=i.Jb({type:uh,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[i.Ab]}),uh),gh=i.Wb(_h),yh=new Map,bh=new Map,kh=new Map,Ch=new Map,wh=new Map,Oh=new Map,Sh=new Map,xh=new Map,Eh=((fh=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||fh)},fh.\u0275mod=i.Mb({type:fh}),fh.\u0275inj=i.Lb({imports:[[Cc,Gu]]}),fh);new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map;var Th,Ah=((Th=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Th)},Th.\u0275mod=i.Mb({type:Th}),Th.\u0275inj=i.Lb({imports:[[Cc]]}),Th);new i.R("11.0.0-beta.33");var Rh,Dh,Ph,Ih,Mh,Lh,jh=((Rh=function(){function e(t,n){_classCallCheck(this,e),Oe(n)&&!t&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}return _createClass(e,null,[{key:"withConfig",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return{ngModule:e,providers:t.serverLoaded?[{provide:xc,useValue:Object.assign(Object.assign({},Sc),t)},{provide:Tc,useValue:n,multi:!0},{provide:Ec,useValue:!0}]:[{provide:xc,useValue:Object.assign(Object.assign({},Sc),t)},{provide:Tc,useValue:n,multi:!0}]}}}]),e}()).\u0275fac=function(e){return new(e||Rh)(i.Yb(Ec),i.Yb(i.D))},Rh.\u0275mod=i.Mb({type:Rh}),Rh.\u0275inj=i.Lb({imports:[[Eh,Wu,Ah],Eh,Wu,Ah]}),Rh),Fh=["ngClass.gt-600.ftdna"],Nh=((Dh=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments)).inputs=Fh,e}return n}(bu)).\u0275fac=function(e){return Uh(e||Dh)},Dh.\u0275dir=i.Jb({type:Dh,selectors:[["","ngClass.gt-600.ftdna",""]],inputs:{"ngClass.gt-600.ftdna":"ngClass.gt-600.ftdna"},features:[i.Ab]}),Dh),Uh=i.Wb(Nh),Bh=["ngClass.gt-1024.ftdna"],Vh=((Ph=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments)).inputs=Bh,e}return n}(bu)).\u0275fac=function(e){return Hh(e||Ph)},Ph.\u0275dir=i.Jb({type:Ph,selectors:[["","ngClass.gt-1024.ftdna",""]],inputs:{"ngClass.gt-1024.ftdna":"ngClass.gt-1024.ftdna"},features:[i.Ab]}),Ph),Hh=i.Wb(Vh),zh=["fxHide.gt-1024.ftdna"],Yh=((Ih=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments)).inputs=zh,e}return n}(xu)).\u0275fac=function(e){return Wh(e||Ih)},Ih.\u0275dir=i.Jb({type:Ih,selectors:[["","fxHide.gt-1024.ftdna",""]],inputs:{"fxHide.gt-1024.ftdna":"fxHide.gt-1024.ftdna"},features:[i.Ab]}),Ih),Wh=i.Wb(Yh),Kh=["ngClass.gt-1440.ftdna"],qh=((Mh=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments)).inputs=Kh,e}return n}(bu)).\u0275fac=function(e){return Gh(e||Mh)},Mh.\u0275dir=i.Jb({type:Mh,selectors:[["","ngClass.gt-1440.ftdna",""]],inputs:{"ngClass.gt-1440.ftdna":"ngClass.gt-1440.ftdna"},features:[i.Ab]}),Mh),Gh=i.Wb(qh),Qh=function(e){return e.GT_360="gt-360.ftdna",e.GT_600="gt-600.ftdna",e.GT_720="gt-720.ftdna",e.GT_1024="gt-1024.ftdna",e.GT_1280="gt-1280.ftdna",e.GT_1440="gt-1440.ftdna",e.LT_360="lt-360.ftdna",e.LT_600="lt-600.ftdna",e.LT_720="lt-720.ftdna",e.LT_1024="lt-1024.ftdna",e.LT_1280="lt-1280.ftdna",e.LT_1440="lt-1440.ftdna",e}({}),Xh=function(e){return e.GT_360="screen and (min-width: 360px)",e.GT_600="screen and  (min-width: 600px)",e.GT_720="screen and  (min-width: 720px)",e.GT_1024="screen and  (min-width: 1024px)",e.GT_1280="screen and  (min-width: 1280px)",e.GT_1440="screen and  (min-width: 1440px)",e.LT_360="screen and (max-width: 359px)",e.LT_600="screen and  (max-width: 599px)",e.LT_720="screen and  (max-width: 719px)",e.LT_1024="screen and  (max-width: 1023px)",e.LT_1280="screen and  (max-width: 1279px)",e.LT_1440="screen and  (max-width: 1439px)",e}({}),Zh=[{alias:Qh.GT_360,suffix:"ftdna360",overlapping:!0,mediaQuery:Xh.GT_360,priority:-1050},{alias:Qh.GT_600,suffix:"ftdna600",overlapping:!0,mediaQuery:Xh.GT_600,priority:-950},{alias:Qh.GT_720,suffix:"ftdna720",overlapping:!0,mediaQuery:Xh.GT_720,priority:-850},{alias:Qh.GT_1024,suffix:"ftdna1024",overlapping:!0,mediaQuery:Xh.GT_1024,priority:-750},{alias:Qh.GT_1280,suffix:"ftdna1280",overlapping:!0,mediaQuery:Xh.GT_1280,priority:-650},{alias:Qh.GT_1440,suffix:"ftdna1440",overlapping:!0,mediaQuery:Xh.GT_1440,priority:-550},{alias:Qh.LT_360,suffix:"ftdna360",overlapping:!0,mediaQuery:Xh.LT_360,priority:-1050},{alias:Qh.LT_600,suffix:"ftdna600",overlapping:!0,mediaQuery:Xh.LT_600,priority:-950},{alias:Qh.LT_720,suffix:"ftdna720",overlapping:!0,mediaQuery:Xh.LT_720,priority:-850},{alias:Qh.LT_1024,suffix:"ftdna1024",overlapping:!0,mediaQuery:Xh.LT_1024,priority:-750},{alias:Qh.LT_1280,suffix:"ftdna1280",overlapping:!0,mediaQuery:Xh.LT_1280,priority:-650},{alias:Qh.LT_1440,suffix:"ftdna1440",overlapping:!0,mediaQuery:Xh.LT_1440,priority:-550}],Jh=((Lh=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Lh)},Lh.\u0275mod=i.Mb({type:Lh}),Lh.\u0275inj=i.Lb({imports:[[]]}),Lh),$h="y-dna-haplotree",ef="mt-dna-haplotree",tf=function(e){return e.GET_HAPLO_TREE_ROOTS="[PublicHaploTree] GET_HAPLO_TREE_ROOTS",e.GET_HAPLO_TREE_ROOTS_SUCCESS="[PublicHaploTree] GET_HAPLO_TREE_ROOTS_SUCCESS",e.GET_HAPLO_TREE_ROOTS_FAIL="[PublicHaploTree] GET_HAPLO_TREE_ROOTS_FAIL",e.CHANGE_ACIVE_VIEW="[PublicHaploTree] CHANGE_ACIVE_VIEW",e.SEARCH_BY_NAME_FOUND="[PublicHaploTree] SEARCH_BY_NAME_FOUND",e.SEARCH_BY_NAME_NOT_FOUND="[PublicHaploTree] SEARCH_BY_NAME_NOT_FOUND",e.SEARCH_BY_COUNTRY_FOUND="[PublicHaploTree] SEARCH_BY_COUNTRY_FOUND",e.SEARCH_BY_COUNTRY_NOT_FOUND="[PublicHaploTree] SEARCH_BY_COUNTRY_NOT_FOUND",e.SEARCH_BY_SURNAME_FOUND="[PublicHaploTree] SEARCH_BY_SURNAME_FOUND",e.SEARCH_BY_SURNAME_NOT_FOUND="[PublicHaploTree] SEARCH_BY_SURNAME_NOT_FOUND",e.SEARCH_BY_VARIANT_FOUND="[PublicHaploTree] SEARCH_BY_VARIANT_FOUND",e.SEARCH_BY_VARIANT_NOT_FOUND="[PublicHaploTree] SEARCH_BY_VARIANT_NOT_FOUND",e.CLEAR_SEARCH="[PublicHaploTree] CLEAR_SEARCH",e.SEARCH_FOUND_ON_BRANCH="[PublicHaploTree] SEARCH_FOUND_ON_BRANCH",e.START_SEARCH="[PublicHaploTree] START_SEARCH",e.STOP_SEARCH="[PublicHaploTree] STOP_SEARCH",e.GET_HAPLO_TREE_METADATA="[PublicHaploTree] GET_HAPLO_TREE_METADATA",e.GET_HAPLO_TREE_METADATA_SUCCESS="[PublicHaploTree] GET_HAPLO_TREE_METADATA_SUCCESS",e}({}),nf=function e(){_classCallCheck(this,e),this.type=tf.GET_HAPLO_TREE_METADATA},rf=function e(t){_classCallCheck(this,e),this.payload=t,this.type=tf.GET_HAPLO_TREE_METADATA_SUCCESS},af=function e(t){_classCallCheck(this,e),this.payload=t,this.type=tf.GET_HAPLO_TREE_ROOTS},of=function e(t){_classCallCheck(this,e),this.payload=t,this.type=tf.GET_HAPLO_TREE_ROOTS_SUCCESS},sf=function e(t){_classCallCheck(this,e),this.payload=t,this.type=tf.GET_HAPLO_TREE_ROOTS_FAIL},lf=function e(t){_classCallCheck(this,e),this.payload=t,this.type=tf.CHANGE_ACIVE_VIEW},cf=function e(t){_classCallCheck(this,e),this.payload=t,this.type=tf.SEARCH_BY_NAME_FOUND},uf=function e(){_classCallCheck(this,e),this.type=tf.SEARCH_BY_NAME_NOT_FOUND},hf=function e(t){_classCallCheck(this,e),this.payload=t,this.type=tf.SEARCH_BY_COUNTRY_FOUND},ff=function e(){_classCallCheck(this,e),this.type=tf.SEARCH_BY_COUNTRY_NOT_FOUND},df=function e(t){_classCallCheck(this,e),this.payload=t,this.type=tf.SEARCH_BY_SURNAME_FOUND},pf=function e(){_classCallCheck(this,e),this.type=tf.SEARCH_BY_SURNAME_NOT_FOUND},vf=function e(t){_classCallCheck(this,e),this.payload=t,this.type=tf.SEARCH_BY_VARIANT_FOUND},mf=function e(){_classCallCheck(this,e),this.type=tf.SEARCH_BY_VARIANT_NOT_FOUND},_f=function e(){_classCallCheck(this,e),this.type=tf.CLEAR_SEARCH},gf=function e(t){_classCallCheck(this,e),this.payload=t,this.type=tf.SEARCH_FOUND_ON_BRANCH},yf=function e(){_classCallCheck(this,e),this.type=tf.START_SEARCH},bf=function e(){_classCallCheck(this,e),this.type=tf.STOP_SEARCH},kf={isLoading:!1,nameNotFound:!1,countryNotFound:!1,surnameNotFound:!1,variantNotFound:!1,countryItems:null,surnameItems:null,variantItems:null,searchFoundOnBranch:0,searchFoundRoots:[],publicHaploTreeNodes:{},publicHaploTreeRoots:{},publicHaploTreeRootNames:[],allCountries:[],error:null,view:"Countries",runSearch:!1,metadata:null};function Cf(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:kf,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case tf.GET_HAPLO_TREE_ROOTS:return Object.assign(Object.assign({},e),{isLoading:!0});case tf.GET_HAPLO_TREE_ROOTS_SUCCESS:var n=t.payload.roots.reduce(function(e,t){return Object.assign(Object.assign({},e),_defineProperty({},t.root,t))},{});return Object.assign(Object.assign({},e),{publicHaploTreeNodes:t.payload.allNodes,publicHaploTreeRoots:n,publicHaploTreeRootNames:Object.keys(n),allCountries:t.payload.allCountries,isLoading:!1,error:null});case tf.GET_HAPLO_TREE_ROOTS_FAIL:return Object.assign(Object.assign({},e),{isLoading:!1,error:t.payload});case tf.CHANGE_ACIVE_VIEW:return Object.assign(Object.assign({},e),{countryItems:null,surnameItems:null,variantItems:null,searchFoundRoots:[],searchFoundOnBranch:0,view:t.payload});case tf.SEARCH_BY_NAME_FOUND:return Object.assign(Object.assign({},e),{countryItems:null,surnameItems:null,variantItems:null,nameNotFound:!1});case tf.SEARCH_BY_NAME_NOT_FOUND:return Object.assign(Object.assign({},e),{nameNotFound:!0});case tf.SEARCH_BY_COUNTRY_FOUND:var i=t.payload.reduce(function(e,t){return Object.assign(Object.assign({},e),_defineProperty({},t.name,t))},{}),r=Object.keys(i).map(function(e){return i[e].artificialRoot||i[e].root}),a=Object.keys(r.reduce(function(e,t){return Object.assign(Object.assign({},e),_defineProperty({},t,t))},{})).filter(function(t){return e.publicHaploTreeRootNames.includes(t)}).sort();return Object.assign(Object.assign({},e),{countryItems:i,searchFoundRoots:a,countryNotFound:!1});case tf.SEARCH_BY_COUNTRY_NOT_FOUND:return Object.assign(Object.assign({},e),{countryItems:null,searchFoundRoots:[],searchFoundOnBranch:0,countryNotFound:!0});case tf.SEARCH_BY_SURNAME_FOUND:e.surnameItems={};var o=t.payload.reduce(function(e,t){return Object.assign(Object.assign({},e),_defineProperty({},t.name,t))},{}),s=Object.keys(o).map(function(e){return o[e].artificialRoot||o[e].root}),l=Object.keys(s.reduce(function(e,t){return Object.assign(Object.assign({},e),_defineProperty({},t,t))},{})).filter(function(t){return e.publicHaploTreeRootNames.includes(t)}).sort();return Object.assign(Object.assign({},e),{surnameItems:o,searchFoundRoots:l,surnameNotFound:!1});case tf.SEARCH_BY_SURNAME_NOT_FOUND:return Object.assign(Object.assign({},e),{surnameItems:null,searchFoundRoots:[],searchFoundOnBranch:0,surnameNotFound:!0});case tf.SEARCH_BY_VARIANT_FOUND:e.variantItems={};var c=t.payload.reduce(function(e,t){return Object.assign(Object.assign({},e),_defineProperty({},t.name,t))},{}),u=Object.keys(c).map(function(e){return c[e].artificialRoot||c[e].root}),h=Object.keys(u.reduce(function(e,t){return Object.assign(Object.assign({},e),_defineProperty({},t,t))},{})).filter(function(t){return e.publicHaploTreeRootNames.includes(t)}).sort();return Object.assign(Object.assign({},e),{variantItems:c,searchFoundRoots:h,variantNotFound:!1});case tf.SEARCH_BY_VARIANT_NOT_FOUND:return Object.assign(Object.assign({},e),{variantItems:null,searchFoundRoots:[],searchFoundOnBranch:0,variantNotFound:!0});case tf.CLEAR_SEARCH:return Object.assign(Object.assign({},e),{countryItems:null,surnameItems:null,variantItems:null,searchFoundRoots:[],searchFoundOnBranch:0,nameNotFound:!1});case tf.SEARCH_FOUND_ON_BRANCH:return Object.assign(Object.assign({},e),{searchFoundOnBranch:t.payload});case tf.START_SEARCH:return Object.assign(Object.assign({},e),{runSearch:!0});case tf.STOP_SEARCH:return Object.assign(Object.assign({},e),{runSearch:!1});case tf.GET_HAPLO_TREE_METADATA_SUCCESS:return Object.assign(Object.assign({},e),{metadata:t.payload});default:return Object.assign({},e)}}var wf,Of,Sf=Object(Wi.p)("public-haplo-tree"),xf={routerReducer:function(e,t){var n=t;switch(n.type){case"@ngrx/router-store/navigation":case Gl:case"@ngrx/router-store/cancel":return{state:n.payload.routerState,navigationId:n.payload.event.id};default:return e}}},Ef=Object(Wi.p)("routerReducer"),Tf=((wf=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"serialize",value:function(e){for(var t=e.url,n=e.root.queryParams,i=e.root;i.firstChild;)i=i.firstChild;return{url:t,queryParams:n,params:i.params,data:i.data}}}]),e}()).\u0275fac=function(e){return new(e||wf)},wf.\u0275prov=i.Kb({token:wf,factory:wf.\u0275fac}),wf),Af="[Router] Go",Rf=function e(t){_classCallCheck(this,e),this.payload=t,this.type=Af},Df=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Pf=[(Of=function e(t,n,i){var r=this;_classCallCheck(this,e),this.actions$=t,this.router=n,this.location=i,this.navigate$=this.actions$.pipe(Nr(Af),Object(ar.a)(function(e){return e.payload}),Ba(function(e){var t=e.path,n=e.query,i=e.extras;r.router.navigate(t,Object.assign({queryParams:n},i))}))},Of.\u0275fac=function(e){return new(e||Of)(i.Yb(Fr),i.Yb(gl),i.Yb(E))},Of.\u0275prov=i.Kb({token:Of,factory:Of.\u0275fac}),function(e,t,n,i){var r,a=arguments.length,o=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(o=(a<3?r(o):a>3?r(t,n,o):r(t,n))||o);a>3&&o&&Object.defineProperty(t,n,o)}([Dr({dispatch:!1}),Df("design:type",Object)],Of.prototype,"navigate$",void 0),Of)],If=Object(Wi.q)(Sf,function(e){return e.isLoading}),Mf=Object(Wi.q)(Sf,function(e){return e.searchFoundOnBranch}),Lf=Object(Wi.q)(Sf,function(e){return e.searchFoundRoots}),jf=Object(Wi.q)(Sf,function(e){return e.nameNotFound}),Ff=Object(Wi.q)(Sf,function(e){return e.countryNotFound}),Nf=Object(Wi.q)(Sf,function(e){return e.surnameNotFound}),Uf=Object(Wi.q)(Sf,function(e){return e.variantNotFound}),Bf=Object(Wi.q)(Sf,function(e){return e.publicHaploTreeNodes}),Vf=Object(Wi.q)(Sf,function(e){return e.publicHaploTreeRoots}),Hf=Object(Wi.q)(Sf,function(e){return e.allCountries}),zf=Object(Wi.q)(Sf,function(e){return e.publicHaploTreeRootNames}),Yf=(Object(Wi.q)(Sf,function(e){return e.error}),Object(Wi.q)(Sf,function(e){return e.view})),Wf=Object(Wi.q)(Sf,function(e){return e.runSearch}),Kf=Object(Wi.q)(Sf,function(e){return"Countries"===e.view?e.countryItems:"Surnames"===e.view?e.surnameItems:"Variants"===e.view?e.variantItems:{}}),qf=Object(Wi.q)(Sf,function(e){return e.metadata}),Gf=Object(Wi.q)(Sf,Ef,function(e,t){return t.state&&e.publicHaploTreeRoots[t.state.params.root]}),Qf=Object(Wi.q)(Ef,function(e){return e.state&&e.state.params.name}),Xf=Object(Wi.q)(Ef,function(e){return e&&e.state&&e.state.data.tree}),Zf=function e(){_classCallCheck(this,e)},Jf=function e(){_classCallCheck(this,e)},$f=function(){function e(t){var n=this;_classCallCheck(this,e),this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?function(){n.headers=new Map,t.split("\n").forEach(function(e){var t=e.indexOf(":");if(t>0){var i=e.slice(0,t),r=i.toLowerCase(),a=e.slice(t+1).trim();n.maybeSetNormalizedName(i,r),n.headers.has(r)?n.headers.get(r).push(a):n.headers.set(r,[a])}})}:function(){n.headers=new Map,Object.keys(t).forEach(function(e){var i=t[e],r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(n.headers.set(r,i),n.maybeSetNormalizedName(e,r))})}:this.headers=new Map}return _createClass(e,[{key:"has",value:function(e){return this.init(),this.headers.has(e.toLowerCase())}},{key:"get",value:function(e){this.init();var t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(e){return this.init(),this.headers.get(e.toLowerCase())||null}},{key:"append",value:function(e,t){return this.clone({name:e,value:t,op:"a"})}},{key:"set",value:function(e,t){return this.clone({name:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({name:e,value:t,op:"d"})}},{key:"maybeSetNormalizedName",value:function(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}},{key:"init",value:function(){var t=this;this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(e){return t.applyUpdate(e)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(e){var t=this;e.init(),Array.from(e.headers.keys()).forEach(function(n){t.headers.set(n,e.headers.get(n)),t.normalizedNames.set(n,e.normalizedNames.get(n))})}},{key:"clone",value:function(t){var n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}},{key:"applyUpdate",value:function(e){var t=e.name.toLowerCase();switch(e.op){case"a":case"s":var n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);var i=("a"===e.op?this.headers.get(t):void 0)||[];i.push.apply(i,_toConsumableArray(n)),this.headers.set(t,i);break;case"d":var r=e.value;if(r){var a=this.headers.get(t);if(!a)return;0===(a=a.filter(function(e){return-1===r.indexOf(e)})).length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,a)}else this.headers.delete(t),this.normalizedNames.delete(t)}}},{key:"forEach",value:function(e){var t=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return e(t.normalizedNames.get(n),t.headers.get(n))})}}]),e}(),ed=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"encodeKey",value:function(e){return td(e)}},{key:"encodeValue",value:function(e){return td(e)}},{key:"decodeKey",value:function(e){return decodeURIComponent(e)}},{key:"decodeValue",value:function(e){return decodeURIComponent(e)}}]),e}();function td(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,"/")}var nd=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(_classCallCheck(this,e),this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new ed,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(e,t){var n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(function(e){var i=e.indexOf("="),r=_slicedToArray(-1==i?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,i)),t.decodeValue(e.slice(i+1))],2),a=r[0],o=r[1],s=n.get(a)||[];s.push(o),n.set(a,s)}),n}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(function(e){var i=n.fromObject[e];t.map.set(e,Array.isArray(i)?i:[i])})):this.map=null}return _createClass(e,[{key:"has",value:function(e){return this.init(),this.map.has(e)}},{key:"get",value:function(e){this.init();var t=this.map.get(e);return t?t[0]:null}},{key:"getAll",value:function(e){return this.init(),this.map.get(e)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(e,t){return this.clone({param:e,value:t,op:"a"})}},{key:"appendAll",value:function(e){var t=[];return Object.keys(e).forEach(function(n){var i=e[n];Array.isArray(i)?i.forEach(function(e){t.push({param:n,value:e,op:"a"})}):t.push({param:n,value:i,op:"a"})}),this.clone(t)}},{key:"set",value:function(e,t){return this.clone({param:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({param:e,value:t,op:"d"})}},{key:"toString",value:function(){var e=this;return this.init(),this.keys().map(function(t){var n=e.encoder.encodeKey(t);return e.map.get(t).map(function(t){return n+"="+e.encoder.encodeValue(t)}).join("&")}).filter(function(e){return""!==e}).join("&")}},{key:"clone",value:function(t){var n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}},{key:"init",value:function(){var e=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(t){return e.map.set(t,e.cloneFrom.map.get(t))}),this.updates.forEach(function(t){switch(t.op){case"a":case"s":var n=("a"===t.op?e.map.get(t.param):void 0)||[];n.push(t.value),e.map.set(t.param,n);break;case"d":if(void 0===t.value){e.map.delete(t.param);break}var i=e.map.get(t.param)||[],r=i.indexOf(t.value);-1!==r&&i.splice(r,1),i.length>0?e.map.set(t.param,i):e.map.delete(t.param)}}),this.cloneFrom=this.updates=null)}}]),e}();function id(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function rd(e){return"undefined"!=typeof Blob&&e instanceof Blob}function ad(e){return"undefined"!=typeof FormData&&e instanceof FormData}var od=function(){function e(t,n,i,r){var a;if(_classCallCheck(this,e),this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,a=r):a=i,a&&(this.reportProgress=!!a.reportProgress,this.withCredentials=!!a.withCredentials,a.responseType&&(this.responseType=a.responseType),a.headers&&(this.headers=a.headers),a.params&&(this.params=a.params)),this.headers||(this.headers=new $f),this.params){var o=this.params.toString();if(0===o.length)this.urlWithParams=n;else{var s=n.indexOf("?");this.urlWithParams=n+(-1===s?"?":s<n.length-1?"&":"")+o}}else this.params=new nd,this.urlWithParams=n}return _createClass(e,[{key:"serializeBody",value:function(){return null===this.body?null:id(this.body)||rd(this.body)||ad(this.body)||"string"==typeof this.body?this.body:this.body instanceof nd?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}},{key:"detectContentTypeHeader",value:function(){return null===this.body||ad(this.body)?null:rd(this.body)?this.body.type||null:id(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof nd?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}},{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.method||this.method,i=t.url||this.url,r=t.responseType||this.responseType,a=void 0!==t.body?t.body:this.body,o=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,s=void 0!==t.reportProgress?t.reportProgress:this.reportProgress,l=t.headers||this.headers,c=t.params||this.params;return void 0!==t.setHeaders&&(l=Object.keys(t.setHeaders).reduce(function(e,n){return e.set(n,t.setHeaders[n])},l)),t.setParams&&(c=Object.keys(t.setParams).reduce(function(e,n){return e.set(n,t.setParams[n])},c)),new e(n,i,a,{params:c,headers:l,reportProgress:s,responseType:r,withCredentials:o})}}]),e}(),sd=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}({}),ld=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";_classCallCheck(this,e),this.headers=t.headers||new $f,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300},cd=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,n),(e=t.call(this,i)).type=sd.ResponseHeader,e}return _createClass(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(ld),ud=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,n),(e=t.call(this,i)).type=sd.Response,e.body=void 0!==i.body?i.body:null,e}return _createClass(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(ld),hd=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this,e,0,"Unknown Error")).name="HttpErrorResponse",i.ok=!1,i.message=i.status>=200&&i.status<300?"Http failure during parsing for ".concat(e.url||"(unknown url)"):"Http failure response for ".concat(e.url||"(unknown url)",": ").concat(e.status," ").concat(e.statusText),i.error=e.error||null,i}return n}(ld);function fd(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var dd,pd,vd,md,_d,gd,yd,bd,kd,Cd,wd,Od,Sd=((dd=function(){function e(t){_classCallCheck(this,e),this.handler=t}return _createClass(e,[{key:"request",value:function(e,t){var n,i,r,a=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e instanceof od?n=e:(i=o.headers instanceof $f?o.headers:new $f(o.headers),o.params&&(r=o.params instanceof nd?o.params:new nd({fromObject:o.params})),n=new od(e,t,void 0!==o.body?o.body:null,{headers:i,params:r,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials}));var s=Object($i.a)(n).pipe(Object(wr.a)(function(e){return a.handler.handle(e)}));if(e instanceof od||"events"===o.observe)return s;var l=s.pipe(Object(sr.a)(function(e){return e instanceof ud}));switch(o.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return l.pipe(Object(ar.a)(function(e){if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return l.pipe(Object(ar.a)(function(e){if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return l.pipe(Object(ar.a)(function(e){if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));case"json":default:return l.pipe(Object(ar.a)(function(e){return e.body}))}case"response":return l;default:throw new Error("Unreachable: unhandled observe type ".concat(o.observe,"}"))}}},{key:"delete",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",e,t)}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",e,t)}},{key:"head",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",e,t)}},{key:"jsonp",value:function(e,t){return this.request("JSONP",e,{params:(new nd).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",e,t)}},{key:"patch",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",e,fd(n,t))}},{key:"post",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",e,fd(n,t))}},{key:"put",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",e,fd(n,t))}}]),e}()).\u0275fac=function(e){return new(e||dd)(i.Yb(Zf))},dd.\u0275prov=i.Kb({token:dd,factory:dd.\u0275fac}),dd),xd=function(){function e(t,n){_classCallCheck(this,e),this.next=t,this.interceptor=n}return _createClass(e,[{key:"handle",value:function(e){return this.interceptor.intercept(e,this.next)}}]),e}(),Ed=new i.s("HTTP_INTERCEPTORS"),Td=((pd=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"intercept",value:function(e,t){return t.handle(e)}}]),e}()).\u0275fac=function(e){return new(e||pd)},pd.\u0275prov=i.Kb({token:pd,factory:pd.\u0275fac}),pd),Ad=/^\)\]\}',?\n/,Rd=function e(){_classCallCheck(this,e)},Dd=((md=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"build",value:function(){return new XMLHttpRequest}}]),e}()).\u0275fac=function(e){return new(e||md)},md.\u0275prov=i.Kb({token:md,factory:md.\u0275fac}),md),Pd=((vd=function(){function e(t){_classCallCheck(this,e),this.xhrFactory=t}return _createClass(e,[{key:"handle",value:function(e){var t=this;if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new qi.a(function(n){var i=t.xhrFactory.build();if(i.open(e.method,e.urlWithParams),e.withCredentials&&(i.withCredentials=!0),e.headers.forEach(function(e,t){return i.setRequestHeader(e,t.join(","))}),e.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){var r=e.detectContentTypeHeader();null!==r&&i.setRequestHeader("Content-Type",r)}if(e.responseType){var a=e.responseType.toLowerCase();i.responseType="json"!==a?a:"text"}var o=e.serializeBody(),s=null,l=function(){if(null!==s)return s;var t=1223===i.status?204:i.status,n=i.statusText||"OK",r=new $f(i.getAllResponseHeaders()),a=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(i)||e.url;return s=new cd({headers:r,status:t,statusText:n,url:a})},c=function(){var t=l(),r=t.headers,a=t.status,o=t.statusText,s=t.url,c=null;204!==a&&(c=void 0===i.response?i.responseText:i.response),0===a&&(a=c?200:0);var u=a>=200&&a<300;if("json"===e.responseType&&"string"==typeof c){var h=c;c=c.replace(Ad,"");try{c=""!==c?JSON.parse(c):null}catch(f){c=h,u&&(u=!1,c={error:f,text:c})}}u?(n.next(new ud({body:c,headers:r,status:a,statusText:o,url:s||void 0})),n.complete()):n.error(new hd({error:c,headers:r,status:a,statusText:o,url:s||void 0}))},u=function(e){var t=l().url,r=new hd({error:e,status:i.status||0,statusText:i.statusText||"Unknown Error",url:t||void 0});n.error(r)},h=!1,f=function(t){h||(n.next(l()),h=!0);var r={type:sd.DownloadProgress,loaded:t.loaded};t.lengthComputable&&(r.total=t.total),"text"===e.responseType&&i.responseText&&(r.partialText=i.responseText),n.next(r)},d=function(e){var t={type:sd.UploadProgress,loaded:e.loaded};e.lengthComputable&&(t.total=e.total),n.next(t)};return i.addEventListener("load",c),i.addEventListener("error",u),i.addEventListener("timeout",u),i.addEventListener("abort",u),e.reportProgress&&(i.addEventListener("progress",f),null!==o&&i.upload&&i.upload.addEventListener("progress",d)),i.send(o),n.next({type:sd.Sent}),function(){i.removeEventListener("error",u),i.removeEventListener("abort",u),i.removeEventListener("load",c),i.removeEventListener("timeout",u),e.reportProgress&&(i.removeEventListener("progress",f),null!==o&&i.upload&&i.upload.removeEventListener("progress",d)),i.readyState!==i.DONE&&i.abort()}})}}]),e}()).\u0275fac=function(e){return new(e||vd)(i.Yb(Rd))},vd.\u0275prov=i.Kb({token:vd,factory:vd.\u0275fac}),vd),Id=new i.s("XSRF_COOKIE_NAME"),Md=new i.s("XSRF_HEADER_NAME"),Ld=function e(){_classCallCheck(this,e)},jd=((Cd=function(){function e(t,n,i){_classCallCheck(this,e),this.doc=t,this.platform=n,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return _createClass(e,[{key:"getToken",value:function(){if("server"===this.platform)return null;var e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=z(e,this.cookieName),this.lastCookieString=e),this.lastToken}}]),e}()).\u0275fac=function(e){return new(e||Cd)(i.Yb(s),i.Yb(i.D),i.Yb(Id))},Cd.\u0275prov=i.Kb({token:Cd,factory:Cd.\u0275fac}),Cd),Fd=((kd=function(){function e(t,n){_classCallCheck(this,e),this.tokenService=t,this.headerName=n}return _createClass(e,[{key:"intercept",value:function(e,t){var n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);var i=this.tokenService.getToken();return null===i||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,i)})),t.handle(e)}}]),e}()).\u0275fac=function(e){return new(e||kd)(i.Yb(Ld),i.Yb(Md))},kd.\u0275prov=i.Kb({token:kd,factory:kd.\u0275fac}),kd),Nd=((bd=function(){function e(t,n){_classCallCheck(this,e),this.backend=t,this.injector=n,this.chain=null}return _createClass(e,[{key:"handle",value:function(e){if(null===this.chain){var t=this.injector.get(Ed,[]);this.chain=t.reduceRight(function(e,t){return new xd(e,t)},this.backend)}return this.chain.handle(e)}}]),e}()).\u0275fac=function(e){return new(e||bd)(i.Yb(Jf),i.Yb(i.t))},bd.\u0275prov=i.Kb({token:bd,factory:bd.\u0275fac}),bd),Ud=((yd=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"disable",value:function(){return{ngModule:e,providers:[{provide:Fd,useClass:Td}]}}},{key:"withOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.cookieName?{provide:Id,useValue:t.cookieName}:[],t.headerName?{provide:Md,useValue:t.headerName}:[]]}}}]),e}()).\u0275fac=function(e){return new(e||yd)},yd.\u0275mod=i.Mb({type:yd}),yd.\u0275inj=i.Lb({providers:[Fd,{provide:Ed,useExisting:Fd,multi:!0},{provide:Ld,useClass:jd},{provide:Id,useValue:"XSRF-TOKEN"},{provide:Md,useValue:"X-XSRF-TOKEN"}]}),yd),Bd=((gd=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||gd)},gd.\u0275mod=i.Mb({type:gd}),gd.\u0275inj=i.Lb({providers:[Sd,{provide:Zf,useClass:Nd},Pd,{provide:Jf,useExisting:Pd},Dd,{provide:Rd,useExisting:Dd}],imports:[[Ud.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),gd),Vd=((_d=function(){function e(t){_classCallCheck(this,e),this.http=t}return _createClass(e,[{key:"getPublicHaploTreeRoots",value:function(e){return this.http.get("/public/".concat(e,"/get"))}},{key:"getPublicHaploTreeMetadata",value:function(){return this.http.post("/public/metadata",{})}}]),e}()).\u0275fac=function(e){return new(e||_d)(i.Yb(Sd))},_d.\u0275prov=i.Kb({token:_d,factory:_d.\u0275fac,providedIn:"root"}),_d),Hd=[Vd],zd=function(e,t,n,i){var r,a=arguments.length,o=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(o=(a<3?r(o):a>3?r(t,n,o):r(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},Yd=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Wd=[(wd=function e(t,n){var i=this;_classCallCheck(this,e),this.actions$=t,this.service=n,this.getHaploTreeRoots$=this.actions$.pipe(Nr(tf.GET_HAPLO_TREE_ROOTS),Object(vr.a)(function(e){return i.service.getPublicHaploTreeRoots(e.payload).pipe(Object(ar.a)(function(e){return new of(e)}),Object(or.a)(function(e){return Object($i.a)(new sf(e))}))})),this.searchNameFound$=this.actions$.pipe(Nr(tf.SEARCH_BY_NAME_FOUND),Object(ar.a)(function(e){return e.payload}),Object(ar.a)(function(e){return new Rf({path:["/",e.tree,e.root,{name:e.name}]})})),this.clearOnRoute$=this.actions$.pipe(Nr(Af),Object(ar.a)(function(e){return new _f})),this.getHaploTreeMetadata$=this.actions$.pipe(Nr(tf.GET_HAPLO_TREE_METADATA),Object(vr.a)(function(e){return i.service.getPublicHaploTreeMetadata().pipe(Object(ar.a)(function(e){return new rf(e)}))}))},wd.\u0275fac=function(e){return new(e||wd)(i.Yb(Fr),i.Yb(Vd))},wd.\u0275prov=i.Kb({token:wd,factory:wd.\u0275fac}),zd([Dr(),Yd("design:type",qi.a)],wd.prototype,"getHaploTreeRoots$",void 0),zd([Dr(),Yd("design:type",qi.a)],wd.prototype,"searchNameFound$",void 0),zd([Dr(),Yd("design:type",qi.a)],wd.prototype,"clearOnRoute$",void 0),zd([Dr(),Yd("design:type",qi.a)],wd.prototype,"getHaploTreeMetadata$",void 0),wd)];function Kd(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return n.length?n.some(function(t){return e[t]}):e.altKey||e.shiftKey||e.ctrlKey||e.metaKey}try{Od="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(JT){Od=!1}var qd,Gd,Qd,Xd,Zd,Jd,$d=((Qd=function e(t){_classCallCheck(this,e),this._platformId=t,this.isBrowser=this._platformId?we(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!Od)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}).\u0275fac=function(e){return new(e||Qd)(i.Yb(i.D))},Qd.\u0275prov=Object(i.Kb)({factory:function(){return new Qd(Object(i.Yb)(i.D))},token:Qd,providedIn:"root"}),Qd),ep=((Gd=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Gd)},Gd.\u0275mod=i.Mb({type:Gd}),Gd.\u0275inj=i.Lb({}),Gd),tp=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function np(){if(qd)return qd;if("object"!=typeof document||!document)return qd=new Set(tp);var e=document.createElement("input");return qd=new Set(tp.filter(function(t){return e.setAttribute("type",t),e.type===t}))}function ip(e){return function(){if(null==Xd&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return Xd=!0}}))}finally{Xd=Xd||!1}return Xd}()?e:!!e.capture}function rp(e){if(function(){if(null==Jd){var e="undefined"!=typeof document?document.head:null;Jd=!(!e||!e.createShadowRoot&&!e.attachShadow)}return Jd}()){var t=e.getRootNode?e.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}var ap,op,sp,lp,cp=((lp=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"create",value:function(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}]),e}()).\u0275fac=function(e){return new(e||lp)},lp.\u0275prov=Object(i.Kb)({factory:function(){return new lp},token:lp,providedIn:"root"}),lp),up=((sp=function(){function e(t){_classCallCheck(this,e),this._mutationObserverFactory=t,this._observedElements=new Map}return _createClass(e,[{key:"ngOnDestroy",value:function(){var e=this;this._observedElements.forEach(function(t,n){return e._cleanupObserver(n)})}},{key:"observe",value:function(e){var t=this,n=pu(e);return new qi.a(function(e){var i=t._observeElement(n).subscribe(e);return function(){i.unsubscribe(),t._unobserveElement(n)}})}},{key:"_observeElement",value:function(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{var t=new Gi.a,n=this._mutationObserverFactory.create(function(e){return t.next(e)});n&&n.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:n,stream:t,count:1})}return this._observedElements.get(e).stream}},{key:"_unobserveElement",value:function(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}},{key:"_cleanupObserver",value:function(e){if(this._observedElements.has(e)){var t=this._observedElements.get(e),n=t.observer,i=t.stream;n&&n.disconnect(),i.complete(),this._observedElements.delete(e)}}}]),e}()).\u0275fac=function(e){return new(e||sp)(i.Yb(cp))},sp.\u0275prov=Object(i.Kb)({factory:function(){return new sp(Object(i.Yb)(cp))},token:sp,providedIn:"root"}),sp),hp=((op=function(){function e(t,n,r){_classCallCheck(this,e),this._contentObserver=t,this._elementRef=n,this._ngZone=r,this.event=new i.o,this._disabled=!1,this._currentSubscription=null}return _createClass(e,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=cu(e),this._disabled?this._unsubscribe():this._subscribe()}},{key:"debounce",get:function(){return this._debounce},set:function(e){this._debounce=uu(e),this._subscribe()}},{key:"ngAfterContentInit",value:function(){this._currentSubscription||this.disabled||this._subscribe()}},{key:"ngOnDestroy",value:function(){this._unsubscribe()}},{key:"_subscribe",value:function(){var e=this;this._unsubscribe();var t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(function(){e._currentSubscription=(e.debounce?t.pipe(Object(gc.a)(e.debounce)):t).subscribe(e.event)})}},{key:"_unsubscribe",value:function(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}]),e}()).\u0275fac=function(e){return new(e||op)(i.Ob(up),i.Ob(i.l),i.Ob(i.B))},op.\u0275dir=i.Jb({type:op,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),op),fp=((ap=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||ap)},ap.\u0275mod=i.Mb({type:ap}),ap.\u0275inj=i.Lb({providers:[cp]}),ap);function dp(e,t){return(e.getAttribute(t)||"").match(/\S+/g)||[]}var pp,vp=0,mp=new Map,_p=null,gp=((pp=function(){function e(t){_classCallCheck(this,e),this._document=t}return _createClass(e,[{key:"describe",value:function(e,t,n){if(this._canBeDescribed(e,t)){var i=yp(t,n);"string"!=typeof t?(bp(t),mp.set(i,{messageElement:t,referenceCount:0})):mp.has(i)||this._createMessageElement(t,n),this._isElementDescribedByMessage(e,i)||this._addMessageReference(e,i)}}},{key:"removeDescription",value:function(e,t,n){if(t&&this._isElementNode(e)){var i=yp(t,n);if(this._isElementDescribedByMessage(e,i)&&this._removeMessageReference(e,i),"string"==typeof t){var r=mp.get(i);r&&0===r.referenceCount&&this._deleteMessageElement(i)}_p&&0===_p.childNodes.length&&this._deleteMessagesContainer()}}},{key:"ngOnDestroy",value:function(){for(var e=this._document.querySelectorAll("[cdk-describedby-host]"),t=0;t<e.length;t++)this._removeCdkDescribedByReferenceIds(e[t]),e[t].removeAttribute("cdk-describedby-host");_p&&this._deleteMessagesContainer(),mp.clear()}},{key:"_createMessageElement",value:function(e,t){var n=this._document.createElement("div");bp(n),n.textContent=e,t&&n.setAttribute("role",t),this._createMessagesContainer(),_p.appendChild(n),mp.set(yp(e,t),{messageElement:n,referenceCount:0})}},{key:"_deleteMessageElement",value:function(e){var t=mp.get(e),n=t&&t.messageElement;_p&&n&&_p.removeChild(n),mp.delete(e)}},{key:"_createMessagesContainer",value:function(){if(!_p){var e=this._document.getElementById("cdk-describedby-message-container");e&&e.parentNode&&e.parentNode.removeChild(e),(_p=this._document.createElement("div")).id="cdk-describedby-message-container",_p.style.visibility="hidden",_p.classList.add("cdk-visually-hidden"),this._document.body.appendChild(_p)}}},{key:"_deleteMessagesContainer",value:function(){_p&&_p.parentNode&&(_p.parentNode.removeChild(_p),_p=null)}},{key:"_removeCdkDescribedByReferenceIds",value:function(e){var t=dp(e,"aria-describedby").filter(function(e){return 0!=e.indexOf("cdk-describedby-message")});e.setAttribute("aria-describedby",t.join(" "))}},{key:"_addMessageReference",value:function(e,t){var n,i,r,a,o=mp.get(t);n=e,i="aria-describedby",r=o.messageElement.id,(a=dp(n,i)).some(function(e){return e.trim()==r.trim()})||(a.push(r.trim()),n.setAttribute(i,a.join(" "))),e.setAttribute("cdk-describedby-host",""),o.referenceCount++}},{key:"_removeMessageReference",value:function(e,t){var n,i,r,a,o=mp.get(t);o.referenceCount--,n=e,i="aria-describedby",r=o.messageElement.id,(a=dp(n,i).filter(function(e){return e!=r.trim()})).length?n.setAttribute(i,a.join(" ")):n.removeAttribute(i),e.removeAttribute("cdk-describedby-host")}},{key:"_isElementDescribedByMessage",value:function(e,t){var n=dp(e,"aria-describedby"),i=mp.get(t),r=i&&i.messageElement.id;return!!r&&-1!=n.indexOf(r)}},{key:"_canBeDescribed",value:function(e,t){if(!this._isElementNode(e))return!1;if(t&&"object"==typeof t)return!0;var n=null==t?"":"".concat(t).trim(),i=e.getAttribute("aria-label");return!(!n||i&&i.trim()===n)}},{key:"_isElementNode",value:function(e){return e.nodeType===this._document.ELEMENT_NODE}}]),e}()).\u0275fac=function(e){return new(e||pp)(i.Yb(s))},pp.\u0275prov=Object(i.Kb)({factory:function(){return new pp(Object(i.Yb)(s))},token:pp,providedIn:"root"}),pp);function yp(e,t){return"string"==typeof e?"".concat(t||"","/").concat(e):e}function bp(e){e.id||(e.id="cdk-describedby-message-"+vp++)}var kp,Cp=function(){function e(t){var n=this;_classCallCheck(this,e),this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Gi.a,this._typeaheadSubscription=lr.a.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=function(e){return e.disabled},this._pressedLetters=[],this.tabOut=new Gi.a,this.change=new Gi.a,t instanceof i.F&&t.changes.subscribe(function(e){if(n._activeItem){var t=e.toArray().indexOf(n._activeItem);t>-1&&t!==n._activeItemIndex&&(n._activeItemIndex=t)}})}return _createClass(e,[{key:"skipPredicate",value:function(e){return this._skipPredicateFn=e,this}},{key:"withWrap",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=e,this}},{key:"withVerticalOrientation",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=e,this}},{key:"withHorizontalOrientation",value:function(e){return this._horizontal=e,this}},{key:"withAllowedModifierKeys",value:function(e){return this._allowedModifierKeys=e,this}},{key:"withTypeAhead",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Ba(function(t){return e._pressedLetters.push(t)}),Object(gc.a)(t),Object(sr.a)(function(){return e._pressedLetters.length>0}),Object(ar.a)(function(){return e._pressedLetters.join("")})).subscribe(function(t){for(var n=e._getItemsArray(),i=1;i<n.length+1;i++){var r=(e._activeItemIndex+i)%n.length,a=n[r];if(!e._skipPredicateFn(a)&&0===a.getLabel().toUpperCase().trim().indexOf(t)){e.setActiveItem(r);break}}e._pressedLetters=[]}),this}},{key:"withHomeAndEnd",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._homeAndEnd=e,this}},{key:"setActiveItem",value:function(e){var t=this._activeItem;this.updateActiveItem(e),this._activeItem!==t&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(e){var t=this,n=e.keyCode,i=["altKey","ctrlKey","metaKey","shiftKey"].every(function(n){return!e[n]||t._allowedModifierKeys.indexOf(n)>-1});switch(n){case 9:return void this.tabOut.next();case 40:if(this._vertical&&i){this.setNextItemActive();break}return;case 38:if(this._vertical&&i){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&i){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&i){this.setLastItemActive();break}return;default:return void((i||Kd(e,"shiftKey"))&&(e.key&&1===e.key.length?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(n>=65&&n<=90||n>=48&&n<=57)&&this._letterKeyStream.next(String.fromCharCode(n))))}this._pressedLetters=[],e.preventDefault()}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}},{key:"isTyping",value:function(){return this._pressedLetters.length>0}},{key:"setFirstItemActive",value:function(){this._setActiveItemByIndex(0,1)}},{key:"setLastItemActive",value:function(){this._setActiveItemByIndex(this._items.length-1,-1)}},{key:"setNextItemActive",value:function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}},{key:"setPreviousItemActive",value:function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}},{key:"updateActiveItem",value:function(e){var t=this._getItemsArray(),n="number"==typeof e?e:t.indexOf(e),i=t[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}},{key:"_setActiveItemByDelta",value:function(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}},{key:"_setActiveInWrapMode",value:function(e){for(var t=this._getItemsArray(),n=1;n<=t.length;n++){var i=(this._activeItemIndex+e*n+t.length)%t.length;if(!this._skipPredicateFn(t[i]))return void this.setActiveItem(i)}}},{key:"_setActiveInDefaultMode",value:function(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}},{key:"_setActiveItemByIndex",value:function(e,t){var n=this._getItemsArray();if(n[e]){for(;this._skipPredicateFn(n[e]);)if(!n[e+=t])return;this.setActiveItem(e)}}},{key:"_getItemsArray",value:function(){return this._items instanceof i.F?this._items.toArray():this._items}}]),e}(),wp=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"setActiveItem",value:function(e){this.activeItem&&this.activeItem.setInactiveStyles(),_get(_getPrototypeOf(n.prototype),"setActiveItem",this).call(this,e),this.activeItem&&this.activeItem.setActiveStyles()}}]),n}(Cp),Op=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments))._origin="program",e}return _createClass(n,[{key:"setFocusOrigin",value:function(e){return this._origin=e,this}},{key:"setActiveItem",value:function(e){_get(_getPrototypeOf(n.prototype),"setActiveItem",this).call(this,e),this.activeItem&&this.activeItem.focus(this._origin)}}]),n}(Cp),Sp=((kp=function(){function e(t){_classCallCheck(this,e),this._platform=t}return _createClass(e,[{key:"isDisabled",value:function(e){return e.hasAttribute("disabled")}},{key:"isVisible",value:function(e){return function(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}},{key:"isTabbable",value:function(e){if(!this._platform.isBrowser)return!1;var t,n=function(e){try{return e.frameElement}catch(JT){return null}}((t=e).ownerDocument&&t.ownerDocument.defaultView||window);if(n){if(-1===Ep(n))return!1;if(!this.isVisible(n))return!1}var i=e.nodeName.toLowerCase(),r=Ep(e);return e.hasAttribute("contenteditable")?-1!==r:"iframe"!==i&&"object"!==i&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(e){var t=e.nodeName.toLowerCase(),n="input"===t&&e.type;return"text"===n||"password"===n||"select"===t||"textarea"===t}(e))&&("audio"===i?!!e.hasAttribute("controls")&&-1!==r:"video"===i?-1!==r&&(null!==r||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}},{key:"isFocusable",value:function(e,t){return function(e){return!function(e){return function(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function(e){var t=e.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(e)||function(e){return function(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||xp(e))}(e)&&!this.isDisabled(e)&&((null==t?void 0:t.ignoreVisibility)||this.isVisible(e))}}]),e}()).\u0275fac=function(e){return new(e||kp)(i.Yb($d))},kp.\u0275prov=Object(i.Kb)({factory:function(){return new kp(Object(i.Yb)($d))},token:kp,providedIn:"root"}),kp);function xp(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;var t=e.getAttribute("tabindex");return"-32768"!=t&&!(!t||isNaN(parseInt(t,10)))}function Ep(e){if(!xp(e))return null;var t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}var Tp,Ap=function(){function e(t,n,i,r){var a=this,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];_classCallCheck(this,e),this._element=t,this._checker=n,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=function(){return a.focusLastTabbableElement()},this.endAnchorListener=function(){return a.focusFirstTabbableElement()},this._enabled=!0,o||this.attachAnchors()}return _createClass(e,[{key:"enabled",get:function(){return this._enabled},set:function(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}},{key:"destroy",value:function(){var e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),t&&(t.removeEventListener("focus",this.endAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}},{key:"attachAnchors",value:function(){var e=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){e._startAnchor||(e._startAnchor=e._createAnchor(),e._startAnchor.addEventListener("focus",e.startAnchorListener)),e._endAnchor||(e._endAnchor=e._createAnchor(),e._endAnchor.addEventListener("focus",e.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}},{key:"focusInitialElementWhenReady",value:function(){var e=this;return new Promise(function(t){e._executeOnStable(function(){return t(e.focusInitialElement())})})}},{key:"focusFirstTabbableElementWhenReady",value:function(){var e=this;return new Promise(function(t){e._executeOnStable(function(){return t(e.focusFirstTabbableElement())})})}},{key:"focusLastTabbableElementWhenReady",value:function(){var e=this;return new Promise(function(t){e._executeOnStable(function(){return t(e.focusLastTabbableElement())})})}},{key:"_getRegionBoundary",value:function(e){for(var t=this._element.querySelectorAll("[cdk-focus-region-".concat(e,"], [cdkFocusRegion").concat(e,"], [cdk-focus-").concat(e,"]")),n=0;n<t.length;n++)t[n].hasAttribute("cdk-focus-".concat(e))?console.warn("Found use of deprecated attribute 'cdk-focus-".concat(e,"', use 'cdkFocusRegion").concat(e,"' instead. The deprecated attribute will be removed in 8.0.0."),t[n]):t[n].hasAttribute("cdk-focus-region-".concat(e))&&console.warn("Found use of deprecated attribute 'cdk-focus-region-".concat(e,"', use 'cdkFocusRegion").concat(e,"' instead. The deprecated attribute will be removed in 8.0.0."),t[n]);return"start"==e?t.length?t[0]:this._getFirstTabbableElement(this._element):t.length?t[t.length-1]:this._getLastTabbableElement(this._element)}},{key:"focusInitialElement",value:function(){var e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(e.hasAttribute("cdk-focus-initial")&&console.warn("Found use of deprecated attribute 'cdk-focus-initial', use 'cdkFocusInitial' instead. The deprecated attribute will be removed in 8.0.0",e),!this._checker.isFocusable(e)){var t=this._getFirstTabbableElement(e);return null==t||t.focus(),!!t}return e.focus(),!0}return this.focusFirstTabbableElement()}},{key:"focusFirstTabbableElement",value:function(){var e=this._getRegionBoundary("start");return e&&e.focus(),!!e}},{key:"focusLastTabbableElement",value:function(){var e=this._getRegionBoundary("end");return e&&e.focus(),!!e}},{key:"hasAttached",value:function(){return this._hasAttached}},{key:"_getFirstTabbableElement",value:function(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;for(var t=e.children||e.childNodes,n=0;n<t.length;n++){var i=t[n].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(t[n]):null;if(i)return i}return null}},{key:"_getLastTabbableElement",value:function(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;for(var t=e.children||e.childNodes,n=t.length-1;n>=0;n--){var i=t[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[n]):null;if(i)return i}return null}},{key:"_createAnchor",value:function(){var e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}},{key:"_toggleAnchorTabIndex",value:function(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}},{key:"_executeOnStable",value:function(e){this._ngZone.isStable?e():this._ngZone.onStable.pipe(Object(Cr.a)(1)).subscribe(e)}}]),e}(),Rp=((Tp=function(){function e(t,n,i){_classCallCheck(this,e),this._checker=t,this._ngZone=n,this._document=i}return _createClass(e,[{key:"create",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Ap(e,this._checker,this._ngZone,this._document,t)}}]),e}()).\u0275fac=function(e){return new(e||Tp)(i.Yb(Sp),i.Yb(i.B),i.Yb(s))},Tp.\u0275prov=Object(i.Kb)({factory:function(){return new Tp(Object(i.Yb)(Sp),Object(i.Yb)(i.B),Object(i.Yb)(s))},token:Tp,providedIn:"root"}),Tp);"undefined"!=typeof Element&&Element;var Dp,Pp=new i.s("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),Ip=new i.s("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),Mp=((Dp=function(){function e(t,n,i,r){_classCallCheck(this,e),this._ngZone=n,this._defaultOptions=r,this._document=i,this._liveElement=t||this._createLiveElement()}return _createClass(e,[{key:"announce",value:function(e){for(var t,n,i,r=this,a=this._defaultOptions,o=arguments.length,s=new Array(o>1?o-1:0),l=1;l<o;l++)s[l-1]=arguments[l];return 1===s.length&&"number"==typeof s[0]?i=s[0]:(n=(t=_slicedToArray(s,2))[0],i=t[1]),this.clear(),clearTimeout(this._previousTimeout),n||(n=a&&a.politeness?a.politeness:"polite"),null==i&&a&&(i=a.duration),this._liveElement.setAttribute("aria-live",n),this._ngZone.runOutsideAngular(function(){return new Promise(function(t){clearTimeout(r._previousTimeout),r._previousTimeout=setTimeout(function(){r._liveElement.textContent=e,t(),"number"==typeof i&&(r._previousTimeout=setTimeout(function(){return r.clear()},i))},100)})})}},{key:"clear",value:function(){this._liveElement&&(this._liveElement.textContent="")}},{key:"ngOnDestroy",value:function(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}},{key:"_createLiveElement",value:function(){for(var e=this._document.getElementsByClassName("cdk-live-announcer-element"),t=this._document.createElement("div"),n=0;n<e.length;n++)e[n].parentNode.removeChild(e[n]);return t.classList.add("cdk-live-announcer-element"),t.classList.add("cdk-visually-hidden"),t.setAttribute("aria-atomic","true"),t.setAttribute("aria-live","polite"),this._document.body.appendChild(t),t}}]),e}()).\u0275fac=function(e){return new(e||Dp)(i.Yb(Pp,8),i.Yb(i.B),i.Yb(s),i.Yb(Ip,8))},Dp.\u0275prov=Object(i.Kb)({factory:function(){return new Dp(Object(i.Yb)(Pp,8),Object(i.Yb)(i.B),Object(i.Yb)(s),Object(i.Yb)(Ip,8))},token:Dp,providedIn:"root"}),Dp);function Lp(e){return 0===e.buttons}function jp(e){var t=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}var Fp,Np=new i.s("cdk-focus-monitor-default-options"),Up=ip({passive:!0,capture:!0}),Bp=((Fp=function(){function e(t,n,i,r){var a=this;_classCallCheck(this,e),this._ngZone=t,this._platform=n,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=function(){a._lastTouchTarget=null,a._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=function(e){if(!a._lastTouchTarget){var t=Lp(e)?"keyboard":"mouse";a._setOriginForCurrentEventQueue(t)}},this._documentTouchstartListener=function(e){jp(e)?a._lastTouchTarget||a._setOriginForCurrentEventQueue("keyboard"):(null!=a._touchTimeoutId&&clearTimeout(a._touchTimeoutId),a._lastTouchTarget=Vp(e),a._touchTimeoutId=setTimeout(function(){return a._lastTouchTarget=null},650))},this._windowFocusListener=function(){a._windowFocused=!0,a._windowFocusTimeoutId=setTimeout(function(){return a._windowFocused=!1})},this._rootNodeFocusAndBlurListener=function(e){for(var t=Vp(e),n="focus"===e.type?a._onFocus:a._onBlur,i=t;i;i=i.parentElement)n.call(a,e,i)},this._document=i,this._detectionMode=(null==r?void 0:r.detectionMode)||0}return _createClass(e,[{key:"monitor",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=pu(e);if(!this._platform.isBrowser||1!==n.nodeType)return Object($i.a)(null);var i=rp(n)||this._getDocument(),r=this._elementInfo.get(n);if(r)return t&&(r.checkChildren=!0),r.subject;var a={checkChildren:t,subject:new Gi.a,rootNode:i};return this._elementInfo.set(n,a),this._registerGlobalListeners(a),a.subject}},{key:"stopMonitoring",value:function(e){var t=pu(e),n=this._elementInfo.get(t);n&&(n.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(n))}},{key:"focusVia",value:function(e,t,n){var i=this,r=pu(e);r===this._getDocument().activeElement?this._getClosestElementsInfo(r).forEach(function(e){var n=_slicedToArray(e,2),r=n[0],a=n[1];return i._originChanged(r,t,a)}):(this._setOriginForCurrentEventQueue(t),"function"==typeof r.focus&&r.focus(n))}},{key:"ngOnDestroy",value:function(){var e=this;this._elementInfo.forEach(function(t,n){return e.stopMonitoring(n)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(e,t,n){n?e.classList.add(t):e.classList.remove(t)}},{key:"_getFocusOrigin",value:function(e){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(e)?"touch":"program"}},{key:"_setClasses",value:function(e,t){this._toggleClass(e,"cdk-focused",!!t),this._toggleClass(e,"cdk-touch-focused","touch"===t),this._toggleClass(e,"cdk-keyboard-focused","keyboard"===t),this._toggleClass(e,"cdk-mouse-focused","mouse"===t),this._toggleClass(e,"cdk-program-focused","program"===t)}},{key:"_setOriginForCurrentEventQueue",value:function(e){var t=this;this._ngZone.runOutsideAngular(function(){t._origin=e,0===t._detectionMode&&(t._originTimeoutId=setTimeout(function(){return t._origin=null},1))})}},{key:"_wasCausedByTouch",value:function(e){var t=Vp(e);return this._lastTouchTarget instanceof Node&&t instanceof Node&&(t===this._lastTouchTarget||t.contains(this._lastTouchTarget))}},{key:"_onFocus",value:function(e,t){var n=this._elementInfo.get(t);n&&(n.checkChildren||t===Vp(e))&&this._originChanged(t,this._getFocusOrigin(e),n)}},{key:"_onBlur",value:function(e,t){var n=this._elementInfo.get(t);!n||n.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(n.subject,null))}},{key:"_emitOrigin",value:function(e,t){this._ngZone.run(function(){return e.next(t)})}},{key:"_registerGlobalListeners",value:function(e){var t=this;if(this._platform.isBrowser){var n=e.rootNode,i=this._rootNodeFocusListenerCount.get(n)||0;i||this._ngZone.runOutsideAngular(function(){n.addEventListener("focus",t._rootNodeFocusAndBlurListener,Up),n.addEventListener("blur",t._rootNodeFocusAndBlurListener,Up)}),this._rootNodeFocusListenerCount.set(n,i+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(function(){var e=t._getDocument(),n=t._getWindow();e.addEventListener("keydown",t._documentKeydownListener,Up),e.addEventListener("mousedown",t._documentMousedownListener,Up),e.addEventListener("touchstart",t._documentTouchstartListener,Up),n.addEventListener("focus",t._windowFocusListener)})}}},{key:"_removeGlobalListeners",value:function(e){var t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){var n=this._rootNodeFocusListenerCount.get(t);n>1?this._rootNodeFocusListenerCount.set(t,n-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Up),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Up),this._rootNodeFocusListenerCount.delete(t))}if(!--this._monitoredElementCount){var i=this._getDocument(),r=this._getWindow();i.removeEventListener("keydown",this._documentKeydownListener,Up),i.removeEventListener("mousedown",this._documentMousedownListener,Up),i.removeEventListener("touchstart",this._documentTouchstartListener,Up),r.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}},{key:"_originChanged",value:function(e,t,n){this._setClasses(e,t),this._emitOrigin(n.subject,t),this._lastFocusOrigin=t}},{key:"_getClosestElementsInfo",value:function(e){var t=[];return this._elementInfo.forEach(function(n,i){(i===e||n.checkChildren&&i.contains(e))&&t.push([i,n])}),t}}]),e}()).\u0275fac=function(e){return new(e||Fp)(i.Yb(i.B),i.Yb($d),i.Yb(s,8),i.Yb(Np,8))},Fp.\u0275prov=Object(i.Kb)({factory:function(){return new Fp(Object(i.Yb)(i.B),Object(i.Yb)($d),Object(i.Yb)(s,8),Object(i.Yb)(Np,8))},token:Fp,providedIn:"root"}),Fp);function Vp(e){return e.composedPath?e.composedPath()[0]:e.target}var Hp,zp,Yp=((zp=function(){function e(t,n){_classCallCheck(this,e),this._platform=t,this._document=n}return _createClass(e,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);var t=this._document.defaultView||window,n=t&&t.getComputedStyle?t.getComputedStyle(e):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(e),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(this._platform.isBrowser&&this._document.body){var e=this._document.body.classList;e.remove("cdk-high-contrast-active"),e.remove("cdk-high-contrast-black-on-white"),e.remove("cdk-high-contrast-white-on-black");var t=this.getHighContrastMode();1===t?(e.add("cdk-high-contrast-active"),e.add("cdk-high-contrast-black-on-white")):2===t&&(e.add("cdk-high-contrast-active"),e.add("cdk-high-contrast-white-on-black"))}}}]),e}()).\u0275fac=function(e){return new(e||zp)(i.Yb($d),i.Yb(s))},zp.\u0275prov=Object(i.Kb)({factory:function(){return new zp(Object(i.Yb)($d),Object(i.Yb)(s))},token:zp,providedIn:"root"}),zp),Wp=((Hp=function e(t){_classCallCheck(this,e),t._applyBodyHighContrastModeCssClasses()}).\u0275fac=function(e){return new(e||Hp)(i.Yb(Yp))},Hp.\u0275mod=i.Mb({type:Hp}),Hp.\u0275inj=i.Lb({imports:[[ep,fp]]}),Hp),Kp=new i.R("11.2.12");function qp(e,t){if(1&e&&i.Pb(0,"mat-pseudo-checkbox",4),2&e){var n=i.gc();i.mc("state",n.selected?"checked":"unchecked")("disabled",n.disabled)}}function Gp(e,t){if(1&e&&(i.Ub(0,"span",5),i.Fc(1),i.Tb()),2&e){var n=i.gc();i.Db(1),i.Hc("(",n.group.label,")")}}var Qp,Xp=["*"],Zp=function(){var e=function e(){_classCallCheck(this,e)};return e.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",e.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",e.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",e.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",e}(),Jp=function(){var e=function e(){_classCallCheck(this,e)};return e.COMPLEX="375ms",e.ENTERING="225ms",e.EXITING="195ms",e}(),$p=new i.R("11.2.12"),ev=new i.s("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),tv=((Qp=function(){function e(t,n,i){_classCallCheck(this,e),this._hasDoneGlobalChecks=!1,this._document=i,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=n,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}return _createClass(e,[{key:"_getWindow",value:function(){var e=this._document.defaultView||window;return"object"==typeof e&&e?e:null}},{key:"_checksAreEnabled",value:function(){return Object(i.Y)()&&!this._isTestEnv()}},{key:"_isTestEnv",value:function(){var e=this._getWindow();return e&&(e.__karma__||e.jasmine)}},{key:"_checkDoctypeIsDefined",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}},{key:"_checkThemeIsPresent",value:function(){if(this._checksAreEnabled()&&!1!==this._sanityChecks&&this._sanityChecks.theme&&this._document.body&&"function"==typeof getComputedStyle){var e=this._document.createElement("div");e.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(e);var t=getComputedStyle(e);t&&"none"!==t.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(e)}}},{key:"_checkCdkVersionMatch",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&$p.full!==Kp.full&&console.warn("The Angular Material version ("+$p.full+") does not match the Angular CDK version ("+Kp.full+").\nPlease ensure the versions of these two packages exactly match.")}}]),e}()).\u0275fac=function(e){return new(e||Qp)(i.Yb(Yp),i.Yb(ev,8),i.Yb(s))},Qp.\u0275mod=i.Mb({type:Qp}),Qp.\u0275inj=i.Lb({imports:[[Gu],Gu]}),Qp);function nv(e){return function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;_classCallCheck(this,n);for(var i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r)))._disabled=!1,e}return _createClass(n,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=cu(e)}}]),n}(e)}function iv(e,t){return function(e){_inherits(i,e);var n=_createSuper(i);function i(){var e;_classCallCheck(this,i);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return(e=n.call.apply(n,[this].concat(a))).defaultColor=t,e.color=t,e}return _createClass(i,[{key:"color",get:function(){return this._color},set:function(e){var t=e||this.defaultColor;t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-".concat(this._color)),t&&this._elementRef.nativeElement.classList.add("mat-".concat(t)),this._color=t)}}]),i}(e)}function rv(e){return function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;_classCallCheck(this,n);for(var i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r)))._disableRipple=!1,e}return _createClass(n,[{key:"disableRipple",get:function(){return this._disableRipple},set:function(e){this._disableRipple=cu(e)}}]),n}(e)}function av(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(e){_inherits(i,e);var n=_createSuper(i);function i(){var e;_classCallCheck(this,i);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return(e=n.call.apply(n,[this].concat(a)))._tabIndex=t,e.defaultTabIndex=t,e}return _createClass(i,[{key:"tabIndex",get:function(){return this.disabled?-1:this._tabIndex},set:function(e){this._tabIndex=null!=e?uu(e):this.defaultTabIndex}}]),i}(e)}function ov(e){return function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;_classCallCheck(this,n);for(var i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))).errorState=!1,e.stateChanges=new Gi.a,e}return _createClass(n,[{key:"updateErrorState",value:function(){var e=this.errorState,t=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);t!==e&&(this.errorState=t,this.stateChanges.next())}}]),n}(e)}function sv(e){return function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;_classCallCheck(this,n);for(var i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r)))._isInitialized=!1,e._pendingSubscribers=[],e.initialized=new qi.a(function(t){e._isInitialized?e._notifySubscriber(t):e._pendingSubscribers.push(t)}),e}return _createClass(n,[{key:"_markInitialized",value:function(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}},{key:"_notifySubscriber",value:function(e){e.next(),e.complete()}}]),n}(e)}try{"undefined"!=typeof Intl}catch(JT){!1}var lv,cv,uv,hv,fv,dv,pv,vv,mv=((lv=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"isErrorState",value:function(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}]),e}()).\u0275fac=function(e){return new(e||lv)},lv.\u0275prov=Object(i.Kb)({factory:function(){return new lv},token:lv,providedIn:"root"}),lv),_v=function(){function e(t,n,i){_classCallCheck(this,e),this._renderer=t,this.element=n,this.config=i,this.state=3}return _createClass(e,[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}]),e}(),gv={enterDuration:450,exitDuration:400},yv=ip({passive:!0}),bv=["mousedown","touchstart"],kv=["mouseup","mouseleave","touchend","touchcancel"],Cv=function(){function e(t,n,i,r){_classCallCheck(this,e),this._target=t,this._ngZone=n,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=pu(i))}return _createClass(e,[{key:"fadeInRipple",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),a=Object.assign(Object.assign({},gv),i.animation);i.centered&&(e=r.left+r.width/2,t=r.top+r.height/2);var o=i.radius||function(e,t,n){var i=Math.max(Math.abs(e-n.left),Math.abs(e-n.right)),r=Math.max(Math.abs(t-n.top),Math.abs(t-n.bottom));return Math.sqrt(i*i+r*r)}(e,t,r),s=e-r.left,l=t-r.top,c=a.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=s-o+"px",u.style.top=l-o+"px",u.style.height=2*o+"px",u.style.width=2*o+"px",null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration="".concat(c,"ms"),this._containerElement.appendChild(u),window.getComputedStyle(u).getPropertyValue("opacity"),u.style.transform="scale(1)";var h=new _v(this,u,i);return h.state=0,this._activeRipples.add(h),i.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(function(){var e=h===n._mostRecentTransientRipple;h.state=1,i.persistent||e&&n._isPointerDown||h.fadeOut()},c),h}},{key:"fadeOutRipple",value:function(e){var t=this._activeRipples.delete(e);if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),t){var n=e.element,i=Object.assign(Object.assign({},gv),e.config.animation);n.style.transitionDuration="".concat(i.exitDuration,"ms"),n.style.opacity="0",e.state=2,this._runTimeoutOutsideZone(function(){e.state=3,n.parentNode.removeChild(n)},i.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach(function(e){return e.fadeOut()})}},{key:"fadeOutAllNonPersistent",value:function(){this._activeRipples.forEach(function(e){e.config.persistent||e.fadeOut()})}},{key:"setupTriggerEvents",value:function(e){var t=pu(e);t&&t!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=t,this._registerEvents(bv))}},{key:"handleEvent",value:function(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(kv),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(e){var t=Lp(e),n=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;this._target.rippleDisabled||t||n||(this._isPointerDown=!0,this.fadeInRipple(e.clientX,e.clientY,this._target.rippleConfig))}},{key:"_onTouchStart",value:function(e){if(!this._target.rippleDisabled&&!jp(e)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;for(var t=e.changedTouches,n=0;n<t.length;n++)this.fadeInRipple(t[n].clientX,t[n].clientY,this._target.rippleConfig)}}},{key:"_onPointerUp",value:function(){this._isPointerDown&&(this._isPointerDown=!1,this._activeRipples.forEach(function(e){!e.config.persistent&&(1===e.state||e.config.terminateOnPointerUp&&0===e.state)&&e.fadeOut()}))}},{key:"_runTimeoutOutsideZone",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular(function(){return setTimeout(e,t)})}},{key:"_registerEvents",value:function(e){var t=this;this._ngZone.runOutsideAngular(function(){e.forEach(function(e){t._triggerElement.addEventListener(e,t,yv)})})}},{key:"_removeTriggerEvents",value:function(){var e=this;this._triggerElement&&(bv.forEach(function(t){e._triggerElement.removeEventListener(t,e,yv)}),this._pointerUpEventsRegistered&&kv.forEach(function(t){e._triggerElement.removeEventListener(t,e,yv)}))}}]),e}(),wv=new i.s("mat-ripple-global-options"),Ov=((fv=function(){function e(t,n,i,r,a){_classCallCheck(this,e),this._elementRef=t,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new Cv(this,n,t,i)}return _createClass(e,[{key:"disabled",get:function(){return this._disabled},set:function(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}},{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"fadeOutAllNonPersistent",value:function(){this._rippleRenderer.fadeOutAllNonPersistent()}},{key:"rippleConfig",get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}]),e}()).\u0275fac=function(e){return new(e||fv)(i.Ob(i.l),i.Ob(i.B),i.Ob($d),i.Ob(wv,8),i.Ob(Hi,8))},fv.\u0275dir=i.Jb({type:fv,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&i.Gb("mat-ripple-unbounded",t.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),fv),Sv=((hv=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||hv)},hv.\u0275mod=i.Mb({type:hv}),hv.\u0275inj=i.Lb({imports:[[tv,ep],tv]}),hv),xv=((uv=function e(t){_classCallCheck(this,e),this._animationMode=t,this.state="unchecked",this.disabled=!1}).\u0275fac=function(e){return new(e||uv)(i.Ob(Hi,8))},uv.\u0275cmp=i.Ib({type:uv,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,t){2&e&&i.Gb("mat-pseudo-checkbox-indeterminate","indeterminate"===t.state)("mat-pseudo-checkbox-checked","checked"===t.state)("mat-pseudo-checkbox-disabled",t.disabled)("_mat-animation-noopable","NoopAnimations"===t._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,t){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),uv),Ev=((cv=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||cv)},cv.\u0275mod=i.Mb({type:cv}),cv.\u0275inj=i.Lb({imports:[[tv]]}),cv),Tv=new i.s("MAT_OPTION_PARENT_COMPONENT"),Av=nv(function e(){_classCallCheck(this,e)}),Rv=0,Dv=((dv=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i,r;return _classCallCheck(this,n),(i=t.call(this))._labelId="mat-optgroup-label-"+Rv++,i._inert=null!==(r=null==e?void 0:e.inertGroups)&&void 0!==r&&r,i}return n}(Av)).\u0275fac=function(e){return new(e||dv)(i.Ob(Tv,8))},dv.\u0275dir=i.Jb({type:dv,inputs:{label:"label"},features:[i.Ab]}),dv),Pv=new i.s("MatOptgroup"),Iv=0,Mv=function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];_classCallCheck(this,e),this.source=t,this.isUserInput=n},Lv=((vv=function(){function e(t,n,r,a){_classCallCheck(this,e),this._element=t,this._changeDetectorRef=n,this._parent=r,this.group=a,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Iv++,this.onSelectionChange=new i.o,this._stateChanges=new Gi.a}return _createClass(e,[{key:"multiple",get:function(){return this._parent&&this._parent.multiple}},{key:"selected",get:function(){return this._selected}},{key:"disabled",get:function(){return this.group&&this.group.disabled||this._disabled},set:function(e){this._disabled=cu(e)}},{key:"disableRipple",get:function(){return this._parent&&this._parent.disableRipple}},{key:"active",get:function(){return this._active}},{key:"viewValue",get:function(){return(this._getHostElement().textContent||"").trim()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"focus",value:function(e,t){var n=this._getHostElement();"function"==typeof n.focus&&n.focus(t)}},{key:"setActiveStyles",value:function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}},{key:"setInactiveStyles",value:function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}},{key:"getLabel",value:function(){return this.viewValue}},{key:"_handleKeydown",value:function(e){13!==e.keyCode&&32!==e.keyCode||Kd(e)||(this._selectViaInteraction(),e.preventDefault())}},{key:"_selectViaInteraction",value:function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}},{key:"_getAriaSelected",value:function(){return this.selected||!this.multiple&&null}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"ngAfterViewChecked",value:function(){if(this._selected){var e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new Mv(this,e))}}]),e}()).\u0275fac=function(e){return new(e||vv)(i.Ob(i.l),i.Ob(i.h),i.Ob(void 0),i.Ob(Dv))},vv.\u0275dir=i.Jb({type:vv,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),vv),jv=((pv=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a){return _classCallCheck(this,n),t.call(this,e,i,r,a)}return n}(Lv)).\u0275fac=function(e){return new(e||pv)(i.Ob(i.l),i.Ob(i.h),i.Ob(Tv,8),i.Ob(Pv,8))},pv.\u0275cmp=i.Ib({type:pv,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,t){1&e&&i.cc("click",function(){return t._selectViaInteraction()})("keydown",function(e){return t._handleKeydown(e)}),2&e&&(i.Xb("id",t.id),i.Eb("tabindex",t._getTabIndex())("aria-selected",t._getAriaSelected())("aria-disabled",t.disabled.toString()),i.Gb("mat-selected",t.selected)("mat-option-multiple",t.multiple)("mat-active",t.active)("mat-option-disabled",t.disabled))},exportAs:["matOption"],features:[i.Ab],ngContentSelectors:Xp,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(e,t){1&e&&(i.lc(),i.Ec(0,qp,1,2,"mat-pseudo-checkbox",0),i.Ub(1,"span",1),i.kc(2),i.Tb(),i.Ec(3,Gp,2,1,"span",2),i.Pb(4,"div",3)),2&e&&(i.mc("ngIf",t.multiple),i.Db(3),i.mc("ngIf",t.group&&t.group._inert),i.Db(1),i.mc("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disabled||t.disableRipple))},directives:[Z,Ov,xv],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),pv);function Fv(e,t,n){if(n.length){for(var i=t.toArray(),r=n.toArray(),a=0,o=0;o<e+1;o++)i[o].group&&i[o].group===r[a]&&a++;return a}return 0}function Nv(e,t,n,i){return e<n?e:e+t>n+i?Math.max(0,e-i+t):n}var Uv,Bv,Vv,Hv=((Uv=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Uv)},Uv.\u0275mod=i.Mb({type:Uv}),Uv.\u0275inj=i.Lb({imports:[[Sv,Ce,tv,Ev]]}),Uv),zv=["mat-button",""],Yv=["*"],Wv=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],Kv=iv(nv(rv(function e(t){_classCallCheck(this,e),this._elementRef=t}))),qv=((Vv=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;_classCallCheck(this,n),(a=t.call(this,e))._focusMonitor=i,a._animationMode=r,a.isRoundButton=a._hasHostAttributes("mat-fab","mat-mini-fab"),a.isIconButton=a._hasHostAttributes("mat-icon-button");var o,s=_createForOfIteratorHelper(Wv);try{for(s.s();!(o=s.n()).done;){var l=o.value;a._hasHostAttributes(l)&&a._getHostElement().classList.add(l)}}catch(c){s.e(c)}finally{s.f()}return e.nativeElement.classList.add("mat-button-base"),a.isRoundButton&&(a.color="accent"),a}return _createClass(n,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(e,t){e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return n.some(function(t){return e._getHostElement().hasAttribute(t)})}}]),n}(Kv)).\u0275fac=function(e){return new(e||Vv)(i.Ob(i.l),i.Ob(Bp),i.Ob(Hi,8))},Vv.\u0275cmp=i.Ib({type:Vv,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,t){var n;1&e&&i.Kc(Ov,1),2&e&&i.sc(n=i.dc())&&(t.ripple=n.first)},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){2&e&&(i.Eb("disabled",t.disabled||null),i.Gb("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[i.Ab],attrs:zv,ngContentSelectors:Yv,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,t){1&e&&(i.lc(),i.Ub(0,"span",0),i.kc(1),i.Tb(),i.Pb(2,"span",1),i.Pb(3,"span",2)),2&e&&(i.Db(2),i.Gb("mat-button-ripple-round",t.isRoundButton||t.isIconButton),i.mc("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},directives:[Ov],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),Vv),Gv=((Bv=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Bv)},Bv.\u0275mod=i.Mb({type:Bv}),Bv.\u0275inj=i.Lb({imports:[[Sv,tv],tv]}),Bv),Qv=n("D0XW"),Xv=n("mlxB");function Zv(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Qv.a,n=Object(Xv.a)(e)?+e-t.now():Math.abs(e);return function(e){return e.lift(new em(n,t))}}var Jv,$v,em=function(){function e(t,n){_classCallCheck(this,e),this.delay=t,this.scheduler=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new tm(e,this.delay,this.scheduler))}}]),e}(),tm=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this,e)).delay=i,a.scheduler=r,a.queue=[],a.active=!1,a.errored=!1,a}return _createClass(n,[{key:"_schedule",value:function(e){this.active=!0,this.destination.add(e.schedule(n.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}},{key:"scheduleNotification",value:function(e){if(!0!==this.errored){var t=this.scheduler,n=new nm(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}}},{key:"_next",value:function(e){this.scheduleNotification(Ji.a.createNext(e))}},{key:"_error",value:function(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(Ji.a.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){for(var t=e.source,n=t.queue,i=e.scheduler,r=e.destination;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){var a=Math.max(0,n[0].time-i.now());this.schedule(e,a)}else this.unsubscribe(),t.active=!1}}]),n}(er.a),nm=function e(t,n){_classCallCheck(this,e),this.time=t,this.notification=n},im=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"attach",value:function(e){return this._attachedHost=e,e.attach(this)}},{key:"detach",value:function(){var e=this._attachedHost;null!=e&&(this._attachedHost=null,e.detach())}},{key:"isAttached",get:function(){return null!=this._attachedHost}},{key:"setAttachedHost",value:function(e){this._attachedHost=e}}]),e}(),rm=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a){var o;return _classCallCheck(this,n),(o=t.call(this)).component=e,o.viewContainerRef=i,o.injector=r,o.componentFactoryResolver=a,o}return n}(im),am=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this)).templateRef=e,a.viewContainerRef=i,a.context=r,a}return _createClass(n,[{key:"origin",get:function(){return this.templateRef.elementRef}},{key:"attach",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=t,_get(_getPrototypeOf(n.prototype),"attach",this).call(this,e)}},{key:"detach",value:function(){return this.context=void 0,_get(_getPrototypeOf(n.prototype),"detach",this).call(this)}}]),n}(im),om=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this)).element=e instanceof i.l?e.nativeElement:e,r}return n}(im),sm=function(){function e(){_classCallCheck(this,e),this._isDisposed=!1,this.attachDomPortal=null}return _createClass(e,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(e){return e instanceof rm?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof am?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof om?(this._attachedPortal=e,this.attachDomPortal(e)):void 0}},{key:"detach",value:function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}},{key:"dispose",value:function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}},{key:"setDisposeFn",value:function(e){this._disposeFn=e}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),e}(),lm=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,o){var s,l;return _classCallCheck(this,n),(l=t.call(this)).outletElement=e,l._componentFactoryResolver=i,l._appRef=r,l._defaultInjector=a,l.attachDomPortal=function(e){var t=e.element,i=l._document.createComment("dom-portal");t.parentNode.insertBefore(i,t),l.outletElement.appendChild(t),l._attachedPortal=e,_get((s=_assertThisInitialized(l),_getPrototypeOf(n.prototype)),"setDisposeFn",s).call(s,function(){i.parentNode&&i.parentNode.replaceChild(t,i)})},l._document=o,l}return _createClass(n,[{key:"attachComponentPortal",value:function(e){var t,n=this,i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);return e.viewContainerRef?(t=e.viewContainerRef.createComponent(i,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn(function(){return t.destroy()})):(t=i.create(e.injector||this._defaultInjector),this._appRef.attachView(t.hostView),this.setDisposeFn(function(){n._appRef.detachView(t.hostView),t.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(t)),this._attachedPortal=e,t}},{key:"attachTemplatePortal",value:function(e){var t=this,n=e.viewContainerRef,i=n.createEmbeddedView(e.templateRef,e.context);return i.rootNodes.forEach(function(e){return t.outletElement.appendChild(e)}),i.detectChanges(),this.setDisposeFn(function(){var e=n.indexOf(i);-1!==e&&n.remove(e)}),this._attachedPortal=e,i}},{key:"dispose",value:function(){_get(_getPrototypeOf(n.prototype),"dispose",this).call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(e){return e.hostView.rootNodes[0]}}]),n}(sm),cm=(($v=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,a){var o,s;return _classCallCheck(this,n),(s=t.call(this))._componentFactoryResolver=e,s._viewContainerRef=r,s._isInitialized=!1,s.attached=new i.o,s.attachDomPortal=function(e){var t=e.element,i=s._document.createComment("dom-portal");e.setAttachedHost(_assertThisInitialized(s)),t.parentNode.insertBefore(i,t),s._getRootNode().appendChild(t),s._attachedPortal=e,_get((o=_assertThisInitialized(s),_getPrototypeOf(n.prototype)),"setDisposeFn",o).call(o,function(){i.parentNode&&i.parentNode.replaceChild(t,i)})},s._document=a,s}return _createClass(n,[{key:"portal",get:function(){return this._attachedPortal},set:function(e){(!this.hasAttached()||e||this._isInitialized)&&(this.hasAttached()&&_get(_getPrototypeOf(n.prototype),"detach",this).call(this),e&&_get(_getPrototypeOf(n.prototype),"attach",this).call(this,e),this._attachedPortal=e)}},{key:"attachedRef",get:function(){return this._attachedRef}},{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(n.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(e){e.setAttachedHost(this);var t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),r=t.createComponent(i,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(r.hostView.rootNodes[0]),_get(_getPrototypeOf(n.prototype),"setDisposeFn",this).call(this,function(){return r.destroy()}),this._attachedPortal=e,this._attachedRef=r,this.attached.emit(r),r}},{key:"attachTemplatePortal",value:function(e){var t=this;e.setAttachedHost(this);var i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return _get(_getPrototypeOf(n.prototype),"setDisposeFn",this).call(this,function(){return t._viewContainerRef.clear()}),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}},{key:"_getRootNode",value:function(){var e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}]),n}(sm)).\u0275fac=function(e){return new(e||$v)(i.Ob(i.j),i.Ob(i.S),i.Ob(s))},$v.\u0275dir=i.Jb({type:$v,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[i.Ab]}),$v),um=((Jv=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Jv)},Jv.\u0275mod=i.Mb({type:Jv}),Jv.\u0275inj=i.Lb({}),Jv);function hm(e){return!!e&&(e instanceof qi.a||"function"==typeof e.lift&&"function"==typeof e.subscribe)}var fm=n("/uUt"),dm=function(){function e(t){_classCallCheck(this,e),this.durationSelector=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new pm(e,this.durationSelector))}}]),e}(),pm=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).durationSelector=i,r.hasValue=!1,r}return _createClass(n,[{key:"_next",value:function(e){if(this.value=e,this.hasValue=!0,!this.throttled){var t;try{t=(0,this.durationSelector)(e)}catch(i){return this.destination.error(i)}var n=Object(mr.c)(t,new mr.a(this));!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}},{key:"clearThrottle",value:function(){var e=this.value,t=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),t&&(this.value=void 0,this.hasValue=!1,this.destination.next(e))}},{key:"notifyNext",value:function(){this.clearThrottle()}},{key:"notifyComplete",value:function(){this.clearThrottle()}}]),n}(mr.b);function vm(e){return!Object(ua.a)(e)&&e-parseFloat(e)+1>=0}function mm(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=-1;return vm(t)?i=Number(t)<1?1:Number(t):Object(ca.a)(t)&&(n=t),Object(ca.a)(n)||(n=Qv.a),new qi.a(function(t){var r=vm(e)?e:+e-n.now();return n.schedule(_m,r,{index:0,period:i,subscriber:t})})}function _m(e){var t=e.index,n=e.period,i=e.subscriber;if(i.next(t),!i.closed){if(-1===n)return i.complete();e.index=t+1,this.schedule(e,n)}}function gm(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Qv.a;return t=function(){return mm(e,n)},function(e){return e.lift(new dm(t))}}n("jtHE");var ym=function e(){_classCallCheck(this,e)};function bm(e){return e&&"function"==typeof e.connect}var km,Cm,wm,Om,Sm=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"applyChanges",value:function(e,t,n,i,r){e.forEachOperation(function(e,i,a){var o,s;if(null==e.previousIndex){var l=n(e,i,a);o=t.createEmbeddedView(l.templateRef,l.context,l.index),s=1}else null==a?(t.remove(i),s=3):(o=t.get(i),t.move(o,a),s=2);r&&r({context:null==o?void 0:o.context,operation:s,record:e})})}},{key:"detach",value:function(){}}]),e}(),xm=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=arguments.length>1?arguments[1]:void 0,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];_classCallCheck(this,e),this._multiple=n,this._emitChanges=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new Gi.a,i&&i.length&&(n?i.forEach(function(e){return t._markSelected(e)}):this._markSelected(i[0]),this._selectedToEmit.length=0)}return _createClass(e,[{key:"selected",get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}},{key:"select",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];this._verifyValueAssignment(n),n.forEach(function(t){return e._markSelected(t)}),this._emitChangeEvent()}},{key:"deselect",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];this._verifyValueAssignment(n),n.forEach(function(t){return e._unmarkSelected(t)}),this._emitChangeEvent()}},{key:"toggle",value:function(e){this.isSelected(e)?this.deselect(e):this.select(e)}},{key:"clear",value:function(){this._unmarkAll(),this._emitChangeEvent()}},{key:"isSelected",value:function(e){return this._selection.has(e)}},{key:"isEmpty",value:function(){return 0===this._selection.size}},{key:"hasValue",value:function(){return!this.isEmpty()}},{key:"sort",value:function(e){this._multiple&&this.selected&&this._selected.sort(e)}},{key:"isMultipleSelection",value:function(){return this._multiple}},{key:"_emitChangeEvent",value:function(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}},{key:"_markSelected",value:function(e){this.isSelected(e)||(this._multiple||this._unmarkAll(),this._selection.add(e),this._emitChanges&&this._selectedToEmit.push(e))}},{key:"_unmarkSelected",value:function(e){this.isSelected(e)&&(this._selection.delete(e),this._emitChanges&&this._deselectedToEmit.push(e))}},{key:"_unmarkAll",value:function(){var e=this;this.isEmpty()||this._selection.forEach(function(t){return e._unmarkSelected(t)})}},{key:"_verifyValueAssignment",value:function(e){}}]),e}(),Em=new i.s("_ViewRepeater"),Tm=((Om=function(){function e(t,n,i){_classCallCheck(this,e),this._ngZone=t,this._platform=n,this._scrolled=new Gi.a,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=i}return _createClass(e,[{key:"register",value:function(e){var t=this;this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(function(){return t._scrolled.next(e)}))}},{key:"deregister",value:function(e){var t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}},{key:"scrolled",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new qi.a(function(n){e._globalSubscription||e._addGlobalListener();var i=t>0?e._scrolled.pipe(gm(t)).subscribe(n):e._scrolled.subscribe(n);return e._scrolledCount++,function(){i.unsubscribe(),e._scrolledCount--,e._scrolledCount||e._removeGlobalListener()}}):Object($i.a)()}},{key:"ngOnDestroy",value:function(){var e=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(t,n){return e.deregister(n)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(e,t){var n=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe(Object(sr.a)(function(e){return!e||n.indexOf(e)>-1}))}},{key:"getAncestorScrollContainers",value:function(e){var t=this,n=[];return this.scrollContainers.forEach(function(i,r){t._scrollableContainsElement(r,e)&&n.push(r)}),n}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(e,t){var n=pu(t),i=e.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var e=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){return pc(e._getWindow().document,"scroll").subscribe(function(){return e._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),e}()).\u0275fac=function(e){return new(e||Om)(i.Yb(i.B),i.Yb($d),i.Yb(s,8))},Om.\u0275prov=Object(i.Kb)({factory:function(){return new Om(Object(i.Yb)(i.B),Object(i.Yb)($d),Object(i.Yb)(s,8))},token:Om,providedIn:"root"}),Om),Am=((wm=function(){function e(t,n,i){var r=this;_classCallCheck(this,e),this._platform=t,this._change=new Gi.a,this._changeListener=function(e){r._change.next(e)},this._document=i,n.runOutsideAngular(function(){if(t.isBrowser){var e=r._getWindow();e.addEventListener("resize",r._changeListener),e.addEventListener("orientationchange",r._changeListener)}r.change().subscribe(function(){return r._updateViewportSize()})})}return _createClass(e,[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}},{key:"getViewportRect",value:function(){var e=this.getViewportScrollPosition(),t=this.getViewportSize(),n=t.width,i=t.height;return{top:e.top,left:e.left,bottom:e.top+i,right:e.left+n,height:i,width:n}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var e=this._document,t=this._getWindow(),n=e.documentElement,i=n.getBoundingClientRect();return{top:-i.top||e.body.scrollTop||t.scrollY||n.scrollTop||0,left:-i.left||e.body.scrollLeft||t.scrollX||n.scrollLeft||0}}},{key:"change",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return e>0?this._change.pipe(gm(e)):this._change}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_updateViewportSize",value:function(){var e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}]),e}()).\u0275fac=function(e){return new(e||wm)(i.Yb($d),i.Yb(i.B),i.Yb(s,8))},wm.\u0275prov=Object(i.Kb)({factory:function(){return new wm(Object(i.Yb)($d),Object(i.Yb)(i.B),Object(i.Yb)(s,8))},token:wm,providedIn:"root"}),wm),Rm=((Cm=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Cm)},Cm.\u0275mod=i.Mb({type:Cm}),Cm.\u0275inj=i.Lb({}),Cm),Dm=((km=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||km)},km.\u0275mod=i.Mb({type:km}),km.\u0275inj=i.Lb({imports:[[Gu,ep,Rm],Gu,Rm]}),km),Pm=function(){function e(t,n){_classCallCheck(this,e),this.predicate=t,this.inclusive=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new Im(e,this.predicate,this.inclusive))}}]),e}(),Im=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this,e)).predicate=i,a.inclusive=r,a.index=0,a}return _createClass(n,[{key:"_next",value:function(e){var t,n=this.destination;try{t=this.predicate(e,this.index++)}catch(i){return void n.error(i)}this.nextOrComplete(e,t)}},{key:"nextOrComplete",value:function(e,t){var n=this.destination;Boolean(t)?n.next(e):(this.inclusive&&n.next(e),n.complete())}}]),n}(er.a),Mm=function(){if(null==Zd){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Zd=!1;if("scrollBehavior"in document.documentElement.style)Zd=!0;else{var e=Element.prototype.scrollTo;Zd=!!e&&!/\{\s*\[native code\]\s*\}/.test(e.toString())}}return Zd}(),Lm=function(){function e(t,n){_classCallCheck(this,e),this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=n}return _createClass(e,[{key:"attach",value:function(){}},{key:"enable",value:function(){if(this._canBeEnabled()){var e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=du(-this._previousScrollPosition.left),e.style.top=du(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}},{key:"disable",value:function(){if(this._isEnabled){var e=this._document.documentElement,t=e.style,n=this._document.body.style,i=t.scrollBehavior||"",r=n.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),Mm&&(t.scrollBehavior=n.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Mm&&(t.scrollBehavior=i,n.scrollBehavior=r)}}},{key:"_canBeEnabled",value:function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}]),e}(),jm=function(){function e(t,n,i,r){var a=this;_classCallCheck(this,e),this._scrollDispatcher=t,this._ngZone=n,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=function(){a.disable(),a._overlayRef.hasAttached()&&a._ngZone.run(function(){return a._overlayRef.detach()})}}return _createClass(e,[{key:"attach",value:function(e){this._overlayRef=e}},{key:"enable",value:function(){var e=this;if(!this._scrollSubscription){var t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(function(){var t=e._viewportRuler.getViewportScrollPosition().top;Math.abs(t-e._initialScrollPosition)>e._config.threshold?e._detach():e._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),Fm=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),e}();function Nm(e,t){return t.some(function(t){return e.bottom<t.top||e.top>t.bottom||e.right<t.left||e.left>t.right})}function Um(e,t){return t.some(function(t){return e.top<t.top||e.bottom>t.bottom||e.left<t.left||e.right>t.right})}var Bm,Vm,Hm,zm,Ym,Wm=function(){function e(t,n,i,r){_classCallCheck(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this._config=r,this._scrollSubscription=null}return _createClass(e,[{key:"attach",value:function(e){this._overlayRef=e}},{key:"enable",value:function(){var e=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(e._overlayRef.updatePosition(),e._config&&e._config.autoClose){var t=e._overlayRef.overlayElement.getBoundingClientRect(),n=e._viewportRuler.getViewportSize(),i=n.width,r=n.height;Nm(t,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(e.disable(),e._ngZone.run(function(){return e._overlayRef.detach()}))}}))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),Km=((Bm=function e(t,n,i,r){var a=this;_classCallCheck(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this.noop=function(){return new Fm},this.close=function(e){return new jm(a._scrollDispatcher,a._ngZone,a._viewportRuler,e)},this.block=function(){return new Lm(a._viewportRuler,a._document)},this.reposition=function(e){return new Wm(a._scrollDispatcher,a._viewportRuler,a._ngZone,e)},this._document=r}).\u0275fac=function(e){return new(e||Bm)(i.Yb(Tm),i.Yb(Am),i.Yb(i.B),i.Yb(s))},Bm.\u0275prov=Object(i.Kb)({factory:function(){return new Bm(Object(i.Yb)(Tm),Object(i.Yb)(Am),Object(i.Yb)(i.B),Object(i.Yb)(s))},token:Bm,providedIn:"root"}),Bm),qm=function e(t){if(_classCallCheck(this,e),this.scrollStrategy=new Fm,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t)for(var n=0,i=Object.keys(t);n<i.length;n++){var r=i[n];void 0!==t[r]&&(this[r]=t[r])}},Gm=function e(t,n,i,r,a){_classCallCheck(this,e),this.offsetX=i,this.offsetY=r,this.panelClass=a,this.originX=t.originX,this.originY=t.originY,this.overlayX=n.overlayX,this.overlayY=n.overlayY},Qm=function e(t,n){_classCallCheck(this,e),this.connectionPair=t,this.scrollableViewProperties=n},Xm=((zm=function(){function e(t){_classCallCheck(this,e),this._attachedOverlays=[],this._document=t}return _createClass(e,[{key:"ngOnDestroy",value:function(){this.detach()}},{key:"add",value:function(e){this.remove(e),this._attachedOverlays.push(e)}},{key:"remove",value:function(e){var t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}]),e}()).\u0275fac=function(e){return new(e||zm)(i.Yb(s))},zm.\u0275prov=Object(i.Kb)({factory:function(){return new zm(Object(i.Yb)(s))},token:zm,providedIn:"root"}),zm),Zm=((Hm=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this,e))._keydownListener=function(e){for(var t=i._attachedOverlays,n=t.length-1;n>-1;n--)if(t[n]._keydownEvents.observers.length>0){t[n]._keydownEvents.next(e);break}},i}return _createClass(n,[{key:"add",value:function(e){_get(_getPrototypeOf(n.prototype),"add",this).call(this,e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}]),n}(Xm)).\u0275fac=function(e){return new(e||Hm)(i.Yb(s))},Hm.\u0275prov=Object(i.Kb)({factory:function(){return new Hm(Object(i.Yb)(s))},token:Hm,providedIn:"root"}),Hm),Jm=((Vm=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e))._platform=i,r._cursorStyleIsSet=!1,r._clickListener=function(e){for(var t=e.composedPath?e.composedPath()[0]:e.target,n=r._attachedOverlays.slice(),i=n.length-1;i>-1;i--){var a=n[i];if(!(a._outsidePointerEvents.observers.length<1)&&a.hasAttached()){if(a.overlayElement.contains(t))break;a._outsidePointerEvents.next(e)}}},r}return _createClass(n,[{key:"add",value:function(e){_get(_getPrototypeOf(n.prototype),"add",this).call(this,e),this._isAttached||(this._document.body.addEventListener("click",this._clickListener,!0),this._document.body.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=this._document.body.style.cursor,this._document.body.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("click",this._clickListener,!0),this._document.body.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}}]),n}(Xm)).\u0275fac=function(e){return new(e||Vm)(i.Yb(s),i.Yb($d))},Vm.\u0275prov=Object(i.Kb)({factory:function(){return new Vm(Object(i.Yb)(s),Object(i.Yb)($d))},token:Vm,providedIn:"root"}),Vm),$m=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine),e_=((Ym=function(){function e(t,n){_classCallCheck(this,e),this._platform=n,this._document=t}return _createClass(e,[{key:"ngOnDestroy",value:function(){var e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){if(this._platform.isBrowser||$m)for(var e=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]'),t=0;t<e.length;t++)e[t].parentNode.removeChild(e[t]);var n=this._document.createElement("div");n.classList.add("cdk-overlay-container"),$m?n.setAttribute("platform","test"):this._platform.isBrowser||n.setAttribute("platform","server"),this._document.body.appendChild(n),this._containerElement=n}}]),e}()).\u0275fac=function(e){return new(e||Ym)(i.Yb(s),i.Yb($d))},Ym.\u0275prov=Object(i.Kb)({factory:function(){return new Ym(Object(i.Yb)(s),Object(i.Yb)($d))},token:Ym,providedIn:"root"}),Ym),t_=function(){function e(t,n,i,r,a,o,s,l,c){var u=this;_classCallCheck(this,e),this._portalOutlet=t,this._host=n,this._pane=i,this._config=r,this._ngZone=a,this._keyboardDispatcher=o,this._document=s,this._location=l,this._outsideClickDispatcher=c,this._backdropElement=null,this._backdropClick=new Gi.a,this._attachments=new Gi.a,this._detachments=new Gi.a,this._locationChanges=lr.a.EMPTY,this._backdropClickHandler=function(e){return u._backdropClick.next(e)},this._keydownEvents=new Gi.a,this._outsidePointerEvents=new Gi.a,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}return _createClass(e,[{key:"overlayElement",get:function(){return this._pane}},{key:"backdropElement",get:function(){return this._backdropElement}},{key:"hostElement",get:function(){return this._host}},{key:"attach",value:function(e){var t=this,n=this._portalOutlet.attach(e);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(Object(Cr.a)(1)).subscribe(function(){t.hasAttached()&&t.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(function(){return t.dispose()})),this._outsideClickDispatcher.add(this),n}},{key:"detach",value:function(){if(this.hasAttached()){this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();var e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}}},{key:"dispose",value:function(){var e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,e&&this._detachments.next(),this._detachments.complete()}},{key:"hasAttached",value:function(){return this._portalOutlet.hasAttached()}},{key:"backdropClick",value:function(){return this._backdropClick}},{key:"attachments",value:function(){return this._attachments}},{key:"detachments",value:function(){return this._detachments}},{key:"keydownEvents",value:function(){return this._keydownEvents}},{key:"outsidePointerEvents",value:function(){return this._outsidePointerEvents}},{key:"getConfig",value:function(){return this._config}},{key:"updatePosition",value:function(){this._positionStrategy&&this._positionStrategy.apply()}},{key:"updatePositionStrategy",value:function(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}},{key:"updateSize",value:function(e){this._config=Object.assign(Object.assign({},this._config),e),this._updateElementSize()}},{key:"setDirection",value:function(e){this._config=Object.assign(Object.assign({},this._config),{direction:e}),this._updateElementDirection()}},{key:"addPanelClass",value:function(e){this._pane&&this._toggleClasses(this._pane,e,!0)}},{key:"removePanelClass",value:function(e){this._pane&&this._toggleClasses(this._pane,e,!1)}},{key:"getDirection",value:function(){var e=this._config.direction;return e?"string"==typeof e?e:e.value:"ltr"}},{key:"updateScrollStrategy",value:function(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}},{key:"_updateElementDirection",value:function(){this._host.setAttribute("dir",this.getDirection())}},{key:"_updateElementSize",value:function(){if(this._pane){var e=this._pane.style;e.width=du(this._config.width),e.height=du(this._config.height),e.minWidth=du(this._config.minWidth),e.minHeight=du(this._config.minHeight),e.maxWidth=du(this._config.maxWidth),e.maxHeight=du(this._config.maxHeight)}}},{key:"_togglePointerEvents",value:function(e){this._pane.style.pointerEvents=e?"":"none"}},{key:"_attachBackdrop",value:function(){var e=this;this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){e._backdropElement&&e._backdropElement.classList.add("cdk-overlay-backdrop-showing")})}):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")}},{key:"_updateStackingOrder",value:function(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}},{key:"detachBackdrop",value:function(){var e,t=this,n=this._backdropElement;if(n){var i=function i(){n&&(n.removeEventListener("click",t._backdropClickHandler),n.removeEventListener("transitionend",i),n.parentNode&&n.parentNode.removeChild(n)),t._backdropElement==n&&(t._backdropElement=null),t._config.backdropClass&&t._toggleClasses(n,t._config.backdropClass,!1),clearTimeout(e)};n.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(function(){n.addEventListener("transitionend",i)}),n.style.pointerEvents="none",e=this._ngZone.runOutsideAngular(function(){return setTimeout(i,500)})}}},{key:"_toggleClasses",value:function(e,t,n){var i=e.classList;fu(t).forEach(function(e){e&&(n?i.add(e):i.remove(e))})}},{key:"_detachContentWhenStable",value:function(){var e=this;this._ngZone.runOutsideAngular(function(){var t=e._ngZone.onStable.pipe(Object(yc.a)(Object(Ki.a)(e._attachments,e._detachments))).subscribe(function(){e._pane&&e._host&&0!==e._pane.children.length||(e._pane&&e._config.panelClass&&e._toggleClasses(e._pane,e._config.panelClass,!1),e._host&&e._host.parentElement&&(e._previousHostParent=e._host.parentElement,e._previousHostParent.removeChild(e._host)),t.unsubscribe())})})}},{key:"_disposeScrollStrategy",value:function(){var e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}}]),e}(),n_=/([A-Za-z%]+)$/,i_=function(){function e(t,n,i,r,a){_classCallCheck(this,e),this._viewportRuler=n,this._document=i,this._platform=r,this._overlayContainer=a,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new Gi.a,this._resizeSubscription=lr.a.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}return _createClass(e,[{key:"positions",get:function(){return this._preferredPositions}},{key:"attach",value:function(e){var t=this;this._validatePositions(),e.hostElement.classList.add("cdk-overlay-connected-position-bounding-box"),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(function(){t._isInitialRender=!0,t.apply()})}},{key:"apply",value:function(){if(!this._isDisposed&&this._platform.isBrowser)if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)this.reapplyLastPosition();else{this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();var e,t,n=this._originRect,i=this._overlayRect,r=this._viewportRect,a=[],o=_createForOfIteratorHelper(this._preferredPositions);try{for(o.s();!(t=o.n()).done;){var s=t.value,l=this._getOriginPoint(n,s),c=this._getOverlayPoint(l,i,s),u=this._getOverlayFit(c,i,r,s);if(u.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,l);this._canFitWithFlexibleDimensions(u,c,r)?a.push({position:s,origin:l,overlayRect:i,boundingBoxRect:this._calculateBoundingBoxRect(l,s)}):(!e||e.overlayFit.visibleArea<u.visibleArea)&&(e={overlayFit:u,overlayPoint:c,originPoint:l,position:s,overlayRect:i})}}catch(_){o.e(_)}finally{o.f()}if(a.length){var h,f=null,d=-1,p=_createForOfIteratorHelper(a);try{for(p.s();!(h=p.n()).done;){var v=h.value,m=v.boundingBoxRect.width*v.boundingBoxRect.height*(v.position.weight||1);m>d&&(d=m,f=v)}}catch(_){p.e(_)}finally{p.f()}return this._isPushed=!1,void this._applyPosition(f.position,f.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(e.position,e.originPoint);this._applyPosition(e.position,e.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&r_(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var e=this._lastPosition||this._preferredPositions[0],t=this._getOriginPoint(this._originRect,e);this._applyPosition(e,t)}}},{key:"withScrollableContainers",value:function(e){return this._scrollables=e,this}},{key:"withPositions",value:function(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(e){return this._viewportMargin=e,this}},{key:"withFlexibleDimensions",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=e,this}},{key:"withGrowAfterOpen",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=e,this}},{key:"withPush",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=e,this}},{key:"withLockedPosition",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=e,this}},{key:"setOrigin",value:function(e){return this._origin=e,this}},{key:"withDefaultOffsetX",value:function(e){return this._offsetX=e,this}},{key:"withDefaultOffsetY",value:function(e){return this._offsetY=e,this}},{key:"withTransformOriginOn",value:function(e){return this._transformOriginSelector=e,this}},{key:"_getOriginPoint",value:function(e,t){var n;if("center"==t.originX)n=e.left+e.width/2;else{var i=this._isRtl()?e.right:e.left,r=this._isRtl()?e.left:e.right;n="start"==t.originX?i:r}return{x:n,y:"center"==t.originY?e.top+e.height/2:"top"==t.originY?e.top:e.bottom}}},{key:"_getOverlayPoint",value:function(e,t,n){var i,r;return i="center"==n.overlayX?-t.width/2:"start"===n.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,r="center"==n.overlayY?-t.height/2:"top"==n.overlayY?0:-t.height,{x:e.x+i,y:e.y+r}}},{key:"_getOverlayFit",value:function(e,t,n,i){var r=o_(t),a=e.x,o=e.y,s=this._getOffset(i,"x"),l=this._getOffset(i,"y");s&&(a+=s),l&&(o+=l);var c=0-o,u=o+r.height-n.height,h=this._subtractOverflows(r.width,0-a,a+r.width-n.width),f=this._subtractOverflows(r.height,c,u),d=h*f;return{visibleArea:d,isCompletelyWithinViewport:r.width*r.height===d,fitsInViewportVertically:f===r.height,fitsInViewportHorizontally:h==r.width}}},{key:"_canFitWithFlexibleDimensions",value:function(e,t,n){if(this._hasFlexibleDimensions){var i=n.bottom-t.y,r=n.right-t.x,a=a_(this._overlayRef.getConfig().minHeight),o=a_(this._overlayRef.getConfig().minWidth),s=e.fitsInViewportHorizontally||null!=o&&o<=r;return(e.fitsInViewportVertically||null!=a&&a<=i)&&s}return!1}},{key:"_pushOverlayOnScreen",value:function(e,t,n){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};var i,r,a=o_(t),o=this._viewportRect,s=Math.max(e.x+a.width-o.width,0),l=Math.max(e.y+a.height-o.height,0),c=Math.max(o.top-n.top-e.y,0),u=Math.max(o.left-n.left-e.x,0);return i=a.width<=o.width?u||-s:e.x<this._viewportMargin?o.left-n.left-e.x:0,r=a.height<=o.height?c||-l:e.y<this._viewportMargin?o.top-n.top-e.y:0,this._previousPushAmount={x:i,y:r},{x:e.x+i,y:e.y+r}}},{key:"_applyPosition",value:function(e,t){if(this._setTransformOrigin(e),this._setOverlayElementStyles(t,e),this._setBoundingBoxStyles(t,e),e.panelClass&&this._addPanelClasses(e.panelClass),this._lastPosition=e,this._positionChanges.observers.length){var n=this._getScrollVisibility(),i=new Qm(e,n);this._positionChanges.next(i)}this._isInitialRender=!1}},{key:"_setTransformOrigin",value:function(e){if(this._transformOriginSelector){var t,n=this._boundingBox.querySelectorAll(this._transformOriginSelector),i=e.overlayY;t="center"===e.overlayX?"center":this._isRtl()?"start"===e.overlayX?"right":"left":"start"===e.overlayX?"left":"right";for(var r=0;r<n.length;r++)n[r].style.transformOrigin="".concat(t," ").concat(i)}}},{key:"_calculateBoundingBoxRect",value:function(e,t){var n,i,r,a,o,s,l=this._viewportRect,c=this._isRtl();if("top"===t.overlayY)i=e.y,n=l.height-i+this._viewportMargin;else if("bottom"===t.overlayY)r=l.height-e.y+2*this._viewportMargin,n=l.height-r+this._viewportMargin;else{var u=Math.min(l.bottom-e.y+l.top,e.y),h=this._lastBoundingBoxSize.height;n=2*u,i=e.y-u,n>h&&!this._isInitialRender&&!this._growAfterOpen&&(i=e.y-h/2)}if("end"===t.overlayX&&!c||"start"===t.overlayX&&c)s=l.width-e.x+this._viewportMargin,a=e.x-this._viewportMargin;else if("start"===t.overlayX&&!c||"end"===t.overlayX&&c)o=e.x,a=l.right-e.x;else{var f=Math.min(l.right-e.x+l.left,e.x),d=this._lastBoundingBoxSize.width;a=2*f,o=e.x-f,a>d&&!this._isInitialRender&&!this._growAfterOpen&&(o=e.x-d/2)}return{top:i,left:o,bottom:r,right:s,width:a,height:n}}},{key:"_setBoundingBoxStyles",value:function(e,t){var n=this._calculateBoundingBoxRect(e,t);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));var i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{var r=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;i.height=du(n.height),i.top=du(n.top),i.bottom=du(n.bottom),i.width=du(n.width),i.left=du(n.left),i.right=du(n.right),i.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",i.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",r&&(i.maxHeight=du(r)),a&&(i.maxWidth=du(a))}this._lastBoundingBoxSize=n,r_(this._boundingBox.style,i)}},{key:"_resetBoundingBoxStyles",value:function(){r_(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){r_(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(e,t){var n={},i=this._hasExactPosition(),r=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(i){var o=this._viewportRuler.getViewportScrollPosition();r_(n,this._getExactOverlayY(t,e,o)),r_(n,this._getExactOverlayX(t,e,o))}else n.position="static";var s="",l=this._getOffset(t,"x"),c=this._getOffset(t,"y");l&&(s+="translateX(".concat(l,"px) ")),c&&(s+="translateY(".concat(c,"px)")),n.transform=s.trim(),a.maxHeight&&(i?n.maxHeight=du(a.maxHeight):r&&(n.maxHeight="")),a.maxWidth&&(i?n.maxWidth=du(a.maxWidth):r&&(n.maxWidth="")),r_(this._pane.style,n)}},{key:"_getExactOverlayY",value:function(e,t,n){var i={top:"",bottom:""},r=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));var a=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=a,"bottom"===e.overlayY?i.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":i.top=du(r.y),i}},{key:"_getExactOverlayX",value:function(e,t,n){var i={left:"",right:""},r=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),"right"===(this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left")?i.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":i.left=du(r.x),i}},{key:"_getScrollVisibility",value:function(){var e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),n=this._scrollables.map(function(e){return e.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:Um(e,n),isOriginOutsideView:Nm(e,n),isOverlayClipped:Um(t,n),isOverlayOutsideView:Nm(t,n)}}},{key:"_subtractOverflows",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return n.reduce(function(e,t){return e-Math.max(t,0)},e)}},{key:"_getNarrowedViewportRect",value:function(){var e=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+e-this._viewportMargin,bottom:n.top+t-this._viewportMargin,width:e-2*this._viewportMargin,height:t-2*this._viewportMargin}}},{key:"_isRtl",value:function(){return"rtl"===this._overlayRef.getDirection()}},{key:"_hasExactPosition",value:function(){return!this._hasFlexibleDimensions||this._isPushed}},{key:"_getOffset",value:function(e,t){return"x"===t?null==e.offsetX?this._offsetX:e.offsetX:null==e.offsetY?this._offsetY:e.offsetY}},{key:"_validatePositions",value:function(){}},{key:"_addPanelClasses",value:function(e){var t=this;this._pane&&fu(e).forEach(function(e){""!==e&&-1===t._appliedPanelClasses.indexOf(e)&&(t._appliedPanelClasses.push(e),t._pane.classList.add(e))})}},{key:"_clearPanelClasses",value:function(){var e=this;this._pane&&(this._appliedPanelClasses.forEach(function(t){e._pane.classList.remove(t)}),this._appliedPanelClasses=[])}},{key:"_getOriginRect",value:function(){var e=this._origin;if(e instanceof i.l)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();var t=e.width||0,n=e.height||0;return{top:e.y,bottom:e.y+n,left:e.x,right:e.x+t,height:n,width:t}}}]),e}();function r_(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function a_(e){if("number"!=typeof e&&null!=e){var t=_slicedToArray(e.split(n_),2),n=t[0],i=t[1];return i&&"px"!==i?null:parseFloat(n)}return e||null}function o_(e){return{top:Math.floor(e.top),right:Math.floor(e.right),bottom:Math.floor(e.bottom),left:Math.floor(e.left),width:Math.floor(e.width),height:Math.floor(e.height)}}var s_,l_,c_,u_,h_,f_=function(){function e(t,n,i,r,a,o,s){_classCallCheck(this,e),this._preferredPositions=[],this._positionStrategy=new i_(i,r,a,o,s).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,n),this.onPositionChange=this._positionStrategy.positionChanges}return _createClass(e,[{key:"positions",get:function(){return this._preferredPositions}},{key:"attach",value:function(e){this._overlayRef=e,this._positionStrategy.attach(e),this._direction&&(e.setDirection(this._direction),this._direction=null)}},{key:"dispose",value:function(){this._positionStrategy.dispose()}},{key:"detach",value:function(){this._positionStrategy.detach()}},{key:"apply",value:function(){this._positionStrategy.apply()}},{key:"recalculateLastPosition",value:function(){this._positionStrategy.reapplyLastPosition()}},{key:"withScrollableContainers",value:function(e){this._positionStrategy.withScrollableContainers(e)}},{key:"withFallbackPosition",value:function(e,t,n,i){var r=new Gm(e,t,n,i);return this._preferredPositions.push(r),this._positionStrategy.withPositions(this._preferredPositions),this}},{key:"withDirection",value:function(e){return this._overlayRef?this._overlayRef.setDirection(e):this._direction=e,this}},{key:"withOffsetX",value:function(e){return this._positionStrategy.withDefaultOffsetX(e),this}},{key:"withOffsetY",value:function(e){return this._positionStrategy.withDefaultOffsetY(e),this}},{key:"withLockedPosition",value:function(e){return this._positionStrategy.withLockedPosition(e),this}},{key:"withPositions",value:function(e){return this._preferredPositions=e.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}},{key:"setOrigin",value:function(e){return this._positionStrategy.setOrigin(e),this}}]),e}(),d_=function(){function e(){_classCallCheck(this,e),this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}return _createClass(e,[{key:"attach",value:function(e){var t=e.getConfig();this._overlayRef=e,this._width&&!t.width&&e.updateSize({width:this._width}),this._height&&!t.height&&e.updateSize({height:this._height}),e.hostElement.classList.add("cdk-global-overlay-wrapper"),this._isDisposed=!1}},{key:"top",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}},{key:"left",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=e,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}},{key:"right",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=e,this._justifyContent="flex-end",this}},{key:"width",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}},{key:"height",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}},{key:"centerHorizontally",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(e),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(e),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),i=n.width,r=n.height,a=n.maxWidth,o=n.maxHeight,s=!("100%"!==i&&"100vw"!==i||a&&"100%"!==a&&"100vw"!==a),l=!("100%"!==r&&"100vh"!==r||o&&"100%"!==o&&"100vh"!==o);e.position=this._cssPosition,e.marginLeft=s?"0":this._leftOffset,e.marginTop=l?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,s?t.justifyContent="flex-start":"center"===this._justifyContent?t.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?t.justifyContent="flex-end":"flex-end"===this._justifyContent&&(t.justifyContent="flex-start"):t.justifyContent=this._justifyContent,t.alignItems=l?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,n=t.style;t.classList.remove("cdk-global-overlay-wrapper"),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}}]),e}(),p_=((l_=function(){function e(t,n,i,r){_classCallCheck(this,e),this._viewportRuler=t,this._document=n,this._platform=i,this._overlayContainer=r}return _createClass(e,[{key:"global",value:function(){return new d_}},{key:"connectedTo",value:function(e,t,n){return new f_(t,n,e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(e){return new i_(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),e}()).\u0275fac=function(e){return new(e||l_)(i.Yb(Am),i.Yb(s),i.Yb($d),i.Yb(e_))},l_.\u0275prov=Object(i.Kb)({factory:function(){return new l_(Object(i.Yb)(Am),Object(i.Yb)(s),Object(i.Yb)($d),Object(i.Yb)(e_))},token:l_,providedIn:"root"}),l_),v_=0,m_=((s_=function(){function e(t,n,i,r,a,o,s,l,c,u,h){_classCallCheck(this,e),this.scrollStrategies=t,this._overlayContainer=n,this._componentFactoryResolver=i,this._positionBuilder=r,this._keyboardDispatcher=a,this._injector=o,this._ngZone=s,this._document=l,this._directionality=c,this._location=u,this._outsideClickDispatcher=h}return _createClass(e,[{key:"create",value:function(e){var t=this._createHostElement(),n=this._createPaneElement(t),i=this._createPortalOutlet(n),r=new qm(e);return r.direction=r.direction||this._directionality.value,new t_(i,t,n,r,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(e){var t=this._document.createElement("div");return t.id="cdk-overlay-"+v_++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}},{key:"_createHostElement",value:function(){var e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}},{key:"_createPortalOutlet",value:function(e){return this._appRef||(this._appRef=this._injector.get(i.g)),new lm(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),e}()).\u0275fac=function(e){return new(e||s_)(i.Yb(Km),i.Yb(e_),i.Yb(i.j),i.Yb(p_),i.Yb(Zm),i.Yb(i.t),i.Yb(i.B),i.Yb(s),i.Yb(qu),i.Yb(E),i.Yb(Jm))},s_.\u0275prov=i.Kb({token:s_,factory:s_.\u0275fac}),s_),__=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],g_=new i.s("cdk-connected-overlay-scroll-strategy"),y_=((u_=function e(t){_classCallCheck(this,e),this.elementRef=t}).\u0275fac=function(e){return new(e||u_)(i.Ob(i.l))},u_.\u0275dir=i.Jb({type:u_,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),u_),b_=((c_=function(){function e(t,n,r,a,o){_classCallCheck(this,e),this._overlay=t,this._dir=o,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=lr.a.EMPTY,this._attachSubscription=lr.a.EMPTY,this._detachSubscription=lr.a.EMPTY,this._positionSubscription=lr.a.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new i.o,this.positionChange=new i.o,this.attach=new i.o,this.detach=new i.o,this.overlayKeydown=new i.o,this.overlayOutsideClick=new i.o,this._templatePortal=new am(n,r),this._scrollStrategyFactory=a,this.scrollStrategy=this._scrollStrategyFactory()}return _createClass(e,[{key:"offsetX",get:function(){return this._offsetX},set:function(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(e){this._hasBackdrop=cu(e)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(e){this._lockPosition=cu(e)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(e){this._flexibleDimensions=cu(e)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(e){this._growAfterOpen=cu(e)}},{key:"push",get:function(){return this._push},set:function(e){this._push=cu(e)}},{key:"overlayRef",get:function(){return this._overlayRef}},{key:"dir",get:function(){return this._dir?this._dir.value:"ltr"}},{key:"ngOnDestroy",value:function(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}},{key:"ngOnChanges",value:function(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}},{key:"_createOverlay",value:function(){var e=this;this.positions&&this.positions.length||(this.positions=__);var t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(function(){return e.attach.emit()}),this._detachSubscription=t.detachments().subscribe(function(){return e.detach.emit()}),t.keydownEvents().subscribe(function(t){e.overlayKeydown.next(t),27!==t.keyCode||e.disableClose||Kd(t)||(t.preventDefault(),e._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(function(t){e.overlayOutsideClick.next(t)})}},{key:"_buildConfig",value:function(){var e=this._position=this.positionStrategy||this._createPositionStrategy(),t=new qm({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(t.width=this.width),(this.height||0===this.height)&&(t.height=this.height),(this.minWidth||0===this.minWidth)&&(t.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(t.minHeight=this.minHeight),this.backdropClass&&(t.backdropClass=this.backdropClass),this.panelClass&&(t.panelClass=this.panelClass),t}},{key:"_updatePositionStrategy",value:function(e){var t=this,n=this.positions.map(function(e){return{originX:e.originX,originY:e.originY,overlayX:e.overlayX,overlayY:e.overlayY,offsetX:e.offsetX||t.offsetX,offsetY:e.offsetY||t.offsetY,panelClass:e.panelClass||void 0}});return e.setOrigin(this.origin.elementRef).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}},{key:"_createPositionStrategy",value:function(){var e=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(e),e}},{key:"_attachOverlay",value:function(){var e=this;this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(function(t){e.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n){return n.lift(new Pm(e,t))}}(function(){return e.positionChange.observers.length>0})).subscribe(function(t){e.positionChange.emit(t),0===e.positionChange.observers.length&&e._positionSubscription.unsubscribe()}))}},{key:"_detachOverlay",value:function(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}]),e}()).\u0275fac=function(e){return new(e||c_)(i.Ob(m_),i.Ob(i.O),i.Ob(i.S),i.Ob(g_),i.Ob(qu,8))},c_.\u0275dir=i.Jb({type:c_,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[i.Bb]}),c_),k_={provide:g_,deps:[m_],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},C_=((h_=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||h_)},h_.\u0275mod=i.Mb({type:h_}),h_.\u0275inj=i.Lb({providers:[m_,k_],imports:[[Gu,um,Dm],Dm]}),h_),w_=["mat-menu-item",""],O_=["*"];function S_(e,t){if(1&e){var n=i.Vb();i.Ub(0,"div",0),i.cc("keydown",function(e){return i.xc(n),i.gc()._handleKeydown(e)})("click",function(){return i.xc(n),i.gc().closed.emit("click")})("@transformMenu.start",function(e){return i.xc(n),i.gc()._onAnimationStart(e)})("@transformMenu.done",function(e){return i.xc(n),i.gc()._onAnimationDone(e)}),i.Ub(1,"div",1),i.kc(2),i.Tb(),i.Tb()}if(2&e){var r=i.gc();i.mc("id",r.panelId)("ngClass",r._classList)("@transformMenu",r._panelAnimationState),i.Eb("aria-label",r.ariaLabel||null)("aria-labelledby",r.ariaLabelledby||null)("aria-describedby",r.ariaDescribedby||null)}}var x_,E_,T_,A_,R_,D_,P_={transformMenu:mt("transformMenu",[bt("void",yt({opacity:0,transform:"scale(0.8)"})),Ct("void => enter",_t("120ms cubic-bezier(0, 0, 0.2, 1)",yt({opacity:1,transform:"scale(1)"}))),Ct("* => void",_t("100ms 25ms linear",yt({opacity:0})))]),fadeInItems:mt("fadeInItems",[bt("showing",yt({opacity:1})),Ct("void => *",[yt({opacity:0}),_t("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},I_=new i.s("MatMenuContent"),M_=new i.s("MAT_MENU_PANEL"),L_=rv(nv(function e(){_classCallCheck(this,e)})),j_=((x_=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a){var o;return _classCallCheck(this,n),(o=t.call(this))._elementRef=e,o._focusMonitor=r,o._parentMenu=a,o.role="menuitem",o._hovered=new Gi.a,o._focused=new Gi.a,o._highlighted=!1,o._triggersSubmenu=!1,a&&a.addItem&&a.addItem(_assertThisInitialized(o)),o}return _createClass(n,[{key:"focus",value:function(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}},{key:"ngAfterViewInit",value:function(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}},{key:"ngOnDestroy",value:function(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_checkDisabled",value:function(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}},{key:"_handleMouseEnter",value:function(){this._hovered.next(this)}},{key:"getLabel",value:function(){for(var e,t,n=this._elementRef.nativeElement.cloneNode(!0),i=n.querySelectorAll("mat-icon, .material-icons"),r=0;r<i.length;r++){var a=i[r];null===(e=a.parentNode)||void 0===e||e.removeChild(a)}return(null===(t=n.textContent)||void 0===t?void 0:t.trim())||""}}]),n}(L_)).\u0275fac=function(e){return new(e||x_)(i.Ob(i.l),i.Ob(s),i.Ob(Bp),i.Ob(M_,8))},x_.\u0275cmp=i.Ib({type:x_,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(e,t){1&e&&i.cc("click",function(e){return t._checkDisabled(e)})("mouseenter",function(){return t._handleMouseEnter()}),2&e&&(i.Eb("role",t.role)("tabindex",t._getTabIndex())("aria-disabled",t.disabled.toString())("disabled",t.disabled||null),i.Gb("mat-menu-item",!0)("mat-menu-item-highlighted",t._highlighted)("mat-menu-item-submenu-trigger",t._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[i.Ab],attrs:w_,ngContentSelectors:O_,decls:2,vars:2,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"]],template:function(e,t){1&e&&(i.lc(),i.kc(0),i.Pb(1,"div",0)),2&e&&(i.Db(1),i.mc("matRippleDisabled",t.disableRipple||t.disabled)("matRippleTrigger",t._getHostElement()))},directives:[Ov],encapsulation:2,changeDetection:0}),x_),F_=new i.s("mat-menu-default-options",{providedIn:"root",factory:function(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}}),N_=0,U_=((T_=function(){function e(t,n,r){_classCallCheck(this,e),this._elementRef=t,this._ngZone=n,this._defaultOptions=r,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new i.F,this._tabSubscription=lr.a.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new Gi.a,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new i.o,this.close=this.closed,this.panelId="mat-menu-panel-"+N_++}return _createClass(e,[{key:"xPosition",get:function(){return this._xPosition},set:function(e){this._xPosition=e,this.setPositionClasses()}},{key:"yPosition",get:function(){return this._yPosition},set:function(e){this._yPosition=e,this.setPositionClasses()}},{key:"overlapTrigger",get:function(){return this._overlapTrigger},set:function(e){this._overlapTrigger=cu(e)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(e){this._hasBackdrop=cu(e)}},{key:"panelClass",set:function(e){var t=this,n=this._previousPanelClass;n&&n.length&&n.split(" ").forEach(function(e){t._classList[e]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(function(e){t._classList[e]=!0}),this._elementRef.nativeElement.className="")}},{key:"classList",get:function(){return this.panelClass},set:function(e){this.panelClass=e}},{key:"ngOnInit",value:function(){this.setPositionClasses()}},{key:"ngAfterContentInit",value:function(){var e=this;this._updateDirectDescendants(),this._keyManager=new Op(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(function(){return e.closed.emit("tab")}),this._directDescendantItems.changes.pipe(wa(this._directDescendantItems),Object(Ca.a)(function(e){return Object(Ki.a).apply(void 0,_toConsumableArray(e.map(function(e){return e._focused})))})).subscribe(function(t){return e._keyManager.updateActiveItem(t)})}},{key:"ngOnDestroy",value:function(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}},{key:"_hovered",value:function(){return this._directDescendantItems.changes.pipe(wa(this._directDescendantItems),Object(Ca.a)(function(e){return Object(Ki.a).apply(void 0,_toConsumableArray(e.map(function(e){return e._hovered})))}))}},{key:"addItem",value:function(e){}},{key:"removeItem",value:function(e){}},{key:"_handleKeydown",value:function(e){var t=e.keyCode,n=this._keyManager;switch(t){case 27:Kd(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:38!==t&&40!==t||n.setFocusOrigin("keyboard"),n.onKeydown(e)}}},{key:"focusFirstItem",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program";this.lazyContent?this._ngZone.onStable.pipe(Object(Cr.a)(1)).subscribe(function(){return e._focusFirstItem(t)}):this._focusFirstItem(t)}},{key:"_focusFirstItem",value:function(e){var t=this._keyManager;if(t.setFocusOrigin(e).setFirstItemActive(),!t.activeItem&&this._directDescendantItems.length)for(var n=this._directDescendantItems.first._getHostElement().parentElement;n;){if("menu"===n.getAttribute("role")){n.focus();break}n=n.parentElement}}},{key:"resetActiveItem",value:function(){this._keyManager.setActiveItem(-1)}},{key:"setElevation",value:function(e){var t="mat-elevation-z".concat(Math.min(4+e,24)),n=Object.keys(this._classList).find(function(e){return e.startsWith("mat-elevation-z")});n&&n!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[t]=!0,this._previousElevation=t)}},{key:"setPositionClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.xPosition,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.yPosition,n=this._classList;n["mat-menu-before"]="before"===e,n["mat-menu-after"]="after"===e,n["mat-menu-above"]="above"===t,n["mat-menu-below"]="below"===t}},{key:"_startAnimation",value:function(){this._panelAnimationState="enter"}},{key:"_resetAnimation",value:function(){this._panelAnimationState="void"}},{key:"_onAnimationDone",value:function(e){this._animationDone.next(e),this._isAnimating=!1}},{key:"_onAnimationStart",value:function(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}},{key:"_updateDirectDescendants",value:function(){var e=this;this._allItems.changes.pipe(wa(this._allItems)).subscribe(function(t){e._directDescendantItems.reset(t.filter(function(t){return t._parentMenu===e})),e._directDescendantItems.notifyOnChanges()})}}]),e}()).\u0275fac=function(e){return new(e||T_)(i.Ob(i.l),i.Ob(i.B),i.Ob(F_))},T_.\u0275dir=i.Jb({type:T_,contentQueries:function(e,t,n){var r;1&e&&(i.Hb(n,I_,1),i.Hb(n,j_,1),i.Hb(n,j_,0)),2&e&&(i.sc(r=i.dc())&&(t.lazyContent=r.first),i.sc(r=i.dc())&&(t._allItems=r),i.sc(r=i.dc())&&(t.items=r))},viewQuery:function(e,t){var n;1&e&&i.Kc(i.O,1),2&e&&i.sc(n=i.dc())&&(t.templateRef=n.first)},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),T_),B_=((E_=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){return _classCallCheck(this,n),t.call(this,e,i,r)}return n}(U_)).\u0275fac=function(e){return new(e||E_)(i.Ob(i.l),i.Ob(i.B),i.Ob(F_))},E_.\u0275cmp=i.Ib({type:E_,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&i.Eb("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[i.Cb([{provide:M_,useExisting:E_}]),i.Ab],ngContentSelectors:O_,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,t){1&e&&(i.lc(),i.Ec(0,S_,3,6,"ng-template"))},directives:[q],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[P_.transformMenu,P_.fadeInItems]},changeDetection:0}),E_),V_=new i.s("mat-menu-scroll-strategy"),H_={provide:V_,deps:[m_],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},z_=ip({passive:!0}),Y_=((D_=function(){function e(t,n,r,a,o,s,l,c){var u=this;_classCallCheck(this,e),this._overlay=t,this._element=n,this._viewContainerRef=r,this._menuItemInstance=s,this._dir=l,this._focusMonitor=c,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=lr.a.EMPTY,this._hoverSubscription=lr.a.EMPTY,this._menuCloseSubscription=lr.a.EMPTY,this._handleTouchStart=function(e){jp(e)||(u._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new i.o,this.onMenuOpen=this.menuOpened,this.menuClosed=new i.o,this.onMenuClose=this.menuClosed,this._scrollStrategy=a,this._parentMaterialMenu=o instanceof U_?o:void 0,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,z_),s&&(s._triggersSubmenu=this.triggersSubmenu())}return _createClass(e,[{key:"_deprecatedMatMenuTriggerFor",get:function(){return this.menu},set:function(e){this.menu=e}},{key:"menu",get:function(){return this._menu},set:function(e){var t=this;e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(function(e){t._destroyMenu(e),"click"!==e&&"tab"!==e||!t._parentMaterialMenu||t._parentMaterialMenu.closed.emit(e)})))}},{key:"ngAfterContentInit",value:function(){this._checkMenu(),this._handleHover()}},{key:"ngOnDestroy",value:function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,z_),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}},{key:"menuOpen",get:function(){return this._menuOpen}},{key:"dir",get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"triggersSubmenu",value:function(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}},{key:"toggleMenu",value:function(){return this._menuOpen?this.closeMenu():this.openMenu()}},{key:"openMenu",value:function(){var e=this;if(!this._menuOpen){this._checkMenu();var t=this._createOverlay(),n=t.getConfig();this._setPosition(n.positionStrategy),n.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(function(){return e.closeMenu()}),this._initMenu(),this.menu instanceof U_&&this.menu._startAnimation()}}},{key:"closeMenu",value:function(){this.menu.close.emit()}},{key:"focus",value:function(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}},{key:"_destroyMenu",value:function(e){var t=this;if(this._overlayRef&&this.menuOpen){var n=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),!this.restoreFocus||"keydown"!==e&&this._openedBy&&this.triggersSubmenu()||this.focus(this._openedBy),this._openedBy=void 0,n instanceof U_?(n._resetAnimation(),n.lazyContent?n._animationDone.pipe(Object(sr.a)(function(e){return"void"===e.toState}),Object(Cr.a)(1),Object(yc.a)(n.lazyContent._attached)).subscribe({next:function(){return n.lazyContent.detach()},complete:function(){return t._setIsMenuOpen(!1)}}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),n.lazyContent&&n.lazyContent.detach())}}},{key:"_initMenu",value:function(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}},{key:"_setMenuElevation",value:function(){if(this.menu.setElevation){for(var e=0,t=this.menu.parentMenu;t;)e++,t=t.parentMenu;this.menu.setElevation(e)}}},{key:"_setIsMenuOpen",value:function(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=e)}},{key:"_checkMenu",value:function(){}},{key:"_createOverlay",value:function(){if(!this._overlayRef){var e=this._getOverlayConfig();this._subscribeToPositions(e.positionStrategy),this._overlayRef=this._overlay.create(e),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}},{key:"_getOverlayConfig",value:function(){return new qm({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}},{key:"_subscribeToPositions",value:function(e){var t=this;this.menu.setPositionClasses&&e.positionChanges.subscribe(function(e){t.menu.setPositionClasses("start"===e.connectionPair.overlayX?"after":"before","top"===e.connectionPair.overlayY?"below":"above")})}},{key:"_setPosition",value:function(e){var t=_slicedToArray("before"===this.menu.xPosition?["end","start"]:["start","end"],2),n=t[0],i=t[1],r=_slicedToArray("above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],2),a=r[0],o=r[1],s=a,l=o,c=n,u=i,h=0;this.triggersSubmenu()?(u=n="before"===this.menu.xPosition?"start":"end",i=c="end"===n?"start":"end",h="bottom"===a?8:-8):this.menu.overlapTrigger||(s="top"===a?"bottom":"top",l="top"===o?"bottom":"top"),e.withPositions([{originX:n,originY:s,overlayX:c,overlayY:a,offsetY:h},{originX:i,originY:s,overlayX:u,overlayY:a,offsetY:h},{originX:n,originY:l,overlayX:c,overlayY:o,offsetY:-h},{originX:i,originY:l,overlayX:u,overlayY:o,offsetY:-h}])}},{key:"_menuClosingActions",value:function(){var e=this,t=this._overlayRef.backdropClick(),n=this._overlayRef.detachments(),i=this._parentMaterialMenu?this._parentMaterialMenu.closed:Object($i.a)(),r=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Object(sr.a)(function(t){return t!==e._menuItemInstance}),Object(sr.a)(function(){return e._menuOpen})):Object($i.a)();return Object(Ki.a)(t,i,r,n)}},{key:"_handleMousedown",value:function(e){Lp(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}},{key:"_handleKeydown",value:function(e){var t=e.keyCode;13!==t&&32!==t||(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===t&&"ltr"===this.dir||37===t&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}},{key:"_handleClick",value:function(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}},{key:"_handleHover",value:function(){var e=this;this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(Object(sr.a)(function(t){return t===e._menuItemInstance&&!t.disabled}),Zv(0,dc)).subscribe(function(){e._openedBy="mouse",e.menu instanceof U_&&e.menu._isAnimating?e.menu._animationDone.pipe(Object(Cr.a)(1),Zv(0,dc),Object(yc.a)(e._parentMaterialMenu._hovered())).subscribe(function(){return e.openMenu()}):e.openMenu()}))}},{key:"_getPortal",value:function(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new am(this.menu.templateRef,this._viewContainerRef)),this._portal}}]),e}()).\u0275fac=function(e){return new(e||D_)(i.Ob(m_),i.Ob(i.l),i.Ob(i.S),i.Ob(V_),i.Ob(M_,8),i.Ob(j_,10),i.Ob(qu,8),i.Ob(Bp))},D_.\u0275dir=i.Jb({type:D_,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(e,t){1&e&&i.cc("mousedown",function(e){return t._handleMousedown(e)})("keydown",function(e){return t._handleKeydown(e)})("click",function(e){return t._handleClick(e)}),2&e&&i.Eb("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),D_),W_=((R_=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||R_)},R_.\u0275mod=i.Mb({type:R_}),R_.\u0275inj=i.Lb({providers:[H_],imports:[tv]}),R_),K_=((A_=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||A_)},A_.\u0275mod=i.Mb({type:A_}),A_.\u0275inj=i.Lb({providers:[H_],imports:[[Ce,tv,Sv,C_,W_],Rm,tv,W_]}),A_),q_=n("z6cu"),G_=n("XoHu");function Q_(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(1===t.length){var i=t[0];if(Object(ua.a)(i))return X_(i,null);if(Object(G_.a)(i)&&Object.getPrototypeOf(i)===Object.prototype){var r=Object.keys(i);return X_(r.map(function(e){return i[e]}),r)}}if("function"==typeof t[t.length-1]){var a=t.pop();return X_(t=1===t.length&&Object(ua.a)(t[0])?t[0]:t,null).pipe(Object(ar.a)(function(e){return a.apply(void 0,_toConsumableArray(e))}))}return X_(t,null)}function X_(e,t){return new qi.a(function(n){var i=e.length;if(0!==i)for(var r=new Array(i),a=0,o=0,s=function(s){var l=Object(Qi.a)(e[s]),c=!1;n.add(l.subscribe({next:function(e){c||(c=!0,o++),r[s]=e},error:function(e){return n.error(e)},complete:function(){++a!==i&&c||(o===i&&n.next(t?t.reduce(function(e,t,n){return e[t]=r[n],e},{}):r),n.complete())}}))},l=0;l<i;l++)s(l);else n.complete()})}var Z_=n("w1tV"),J_=["*"];function $_(e){return Error('Unable to find icon with the name "'.concat(e,'"'))}function eg(e){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was \"".concat(e,'".'))}function tg(e){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was \"".concat(e,'".'))}var ng,ig=function e(t,n,i){_classCallCheck(this,e),this.url=t,this.svgText=n,this.options=i},rg=((ng=function(){function e(t,n,i,r){_classCallCheck(this,e),this._httpClient=t,this._sanitizer=n,this._errorHandler=r,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=i}return _createClass(e,[{key:"addSvgIcon",value:function(e,t,n){return this.addSvgIconInNamespace("",e,t,n)}},{key:"addSvgIconLiteral",value:function(e,t,n){return this.addSvgIconLiteralInNamespace("",e,t,n)}},{key:"addSvgIconInNamespace",value:function(e,t,n,i){return this._addSvgIconConfig(e,t,new ig(n,null,i))}},{key:"addSvgIconResolver",value:function(e){return this._resolvers.push(e),this}},{key:"addSvgIconLiteralInNamespace",value:function(e,t,n,r){var a=this._sanitizer.sanitize(i.K.HTML,n);if(!a)throw tg(n);return this._addSvgIconConfig(e,t,new ig("",a,r))}},{key:"addSvgIconSet",value:function(e,t){return this.addSvgIconSetInNamespace("",e,t)}},{key:"addSvgIconSetLiteral",value:function(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}},{key:"addSvgIconSetInNamespace",value:function(e,t,n){return this._addSvgIconSetConfig(e,new ig(t,null,n))}},{key:"addSvgIconSetLiteralInNamespace",value:function(e,t,n){var r=this._sanitizer.sanitize(i.K.HTML,t);if(!r)throw tg(t);return this._addSvgIconSetConfig(e,new ig("",r,n))}},{key:"registerFontClassAlias",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return this._fontCssClassesByAlias.set(e,t),this}},{key:"classNameForFontAlias",value:function(e){return this._fontCssClassesByAlias.get(e)||e}},{key:"setDefaultFontSetClass",value:function(e){return this._defaultFontSetClass=e,this}},{key:"getDefaultFontSetClass",value:function(){return this._defaultFontSetClass}},{key:"getSvgIconFromUrl",value:function(e){var t=this,n=this._sanitizer.sanitize(i.K.RESOURCE_URL,e);if(!n)throw eg(e);var r=this._cachedIconsByUrl.get(n);return r?Object($i.a)(ag(r)):this._loadSvgIconFromConfig(new ig(e,null)).pipe(Ba(function(e){return t._cachedIconsByUrl.set(n,e)}),Object(ar.a)(function(e){return ag(e)}))}},{key:"getNamedSvgIcon",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=og(t,e),i=this._svgIconConfigs.get(n);if(i)return this._getSvgFromConfig(i);if(i=this._getIconConfigFromResolvers(t,e))return this._svgIconConfigs.set(n,i),this._getSvgFromConfig(i);var r=this._iconSetConfigs.get(t);return r?this._getSvgFromIconSetConfigs(e,r):Object(q_.a)($_(n))}},{key:"ngOnDestroy",value:function(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}},{key:"_getSvgFromConfig",value:function(e){return e.svgText?Object($i.a)(ag(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(Object(ar.a)(function(e){return ag(e)}))}},{key:"_getSvgFromIconSetConfigs",value:function(e,t){var n=this,r=this._extractIconWithNameFromAnySet(e,t);return r?Object($i.a)(r):Q_(t.filter(function(e){return!e.svgText}).map(function(e){return n._loadSvgIconSetFromConfig(e).pipe(Object(or.a)(function(t){var r=n._sanitizer.sanitize(i.K.RESOURCE_URL,e.url);return n._errorHandler.handleError(new Error("Loading icon set URL: ".concat(r," failed: ").concat(t.message))),Object($i.a)(null)}))})).pipe(Object(ar.a)(function(){var i=n._extractIconWithNameFromAnySet(e,t);if(!i)throw $_(e);return i}))}},{key:"_extractIconWithNameFromAnySet",value:function(e,t){for(var n=t.length-1;n>=0;n--){var i=t[n];if(i.svgText&&i.svgText.indexOf(e)>-1){var r=this._svgElementFromConfig(i),a=this._extractSvgIconFromSet(r,e,i.options);if(a)return a}}return null}},{key:"_loadSvgIconFromConfig",value:function(e){var t=this;return this._fetchIcon(e).pipe(Ba(function(t){return e.svgText=t}),Object(ar.a)(function(){return t._svgElementFromConfig(e)}))}},{key:"_loadSvgIconSetFromConfig",value:function(e){return e.svgText?Object($i.a)(null):this._fetchIcon(e).pipe(Ba(function(t){return e.svgText=t}))}},{key:"_extractSvgIconFromSet",value:function(e,t,n){var i=e.querySelector('[id="'.concat(t,'"]'));if(!i)return null;var r=i.cloneNode(!0);if(r.removeAttribute("id"),"svg"===r.nodeName.toLowerCase())return this._setSvgAttributes(r,n);if("symbol"===r.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(r),n);var a=this._svgElementFromString("<svg></svg>");return a.appendChild(r),this._setSvgAttributes(a,n)}},{key:"_svgElementFromString",value:function(e){var t=this._document.createElement("DIV");t.innerHTML=e;var n=t.querySelector("svg");if(!n)throw Error("<svg> tag not found");return n}},{key:"_toSvgElement",value:function(e){for(var t=this._svgElementFromString("<svg></svg>"),n=e.attributes,i=0;i<n.length;i++){var r=n[i],a=r.name,o=r.value;"id"!==a&&t.setAttribute(a,o)}for(var s=0;s<e.childNodes.length;s++)e.childNodes[s].nodeType===this._document.ELEMENT_NODE&&t.appendChild(e.childNodes[s].cloneNode(!0));return t}},{key:"_setSvgAttributes",value:function(e,t){return e.setAttribute("fit",""),e.setAttribute("height","100%"),e.setAttribute("width","100%"),e.setAttribute("preserveAspectRatio","xMidYMid meet"),e.setAttribute("focusable","false"),t&&t.viewBox&&e.setAttribute("viewBox",t.viewBox),e}},{key:"_fetchIcon",value:function(e){var t,n=this,r=e.url,a=e.options,o=null!==(t=null==a?void 0:a.withCredentials)&&void 0!==t&&t;if(!this._httpClient)throw Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.");if(null==r)throw Error('Cannot fetch icon from URL "'.concat(r,'".'));var s=this._sanitizer.sanitize(i.K.RESOURCE_URL,r);if(!s)throw eg(r);var l=this._inProgressUrlFetches.get(s);if(l)return l;var c=this._httpClient.get(s,{responseType:"text",withCredentials:o}).pipe(Or(function(){return n._inProgressUrlFetches.delete(s)}),Object(Z_.a)());return this._inProgressUrlFetches.set(s,c),c}},{key:"_addSvgIconConfig",value:function(e,t,n){return this._svgIconConfigs.set(og(e,t),n),this}},{key:"_addSvgIconSetConfig",value:function(e,t){var n=this._iconSetConfigs.get(e);return n?n.push(t):this._iconSetConfigs.set(e,[t]),this}},{key:"_svgElementFromConfig",value:function(e){if(!e.svgElement){var t=this._svgElementFromString(e.svgText);this._setSvgAttributes(t,e.options),e.svgElement=t}return e.svgElement}},{key:"_getIconConfigFromResolvers",value:function(e,t){for(var n=0;n<this._resolvers.length;n++){var i=this._resolvers[n](t,e);if(i)return(r=i).url&&r.options?new ig(i.url,null,i.options):new ig(i,null)}var r}}]),e}()).\u0275fac=function(e){return new(e||ng)(i.Yb(Sd,8),i.Yb(ct),i.Yb(s,8),i.Yb(i.n))},ng.\u0275prov=Object(i.Kb)({factory:function(){return new ng(Object(i.Yb)(Sd,8),Object(i.Yb)(ct),Object(i.Yb)(s,8),Object(i.Yb)(i.n))},token:ng,providedIn:"root"}),ng);function ag(e){return e.cloneNode(!0)}function og(e,t){return e+":"+t}var sg,lg,cg,ug,hg,fg,dg,pg,vg,mg,_g,gg=iv(function e(t){_classCallCheck(this,e),this._elementRef=t}),yg=new i.s("mat-icon-location",{providedIn:"root",factory:function(){var e=Object(i.X)(s),t=e?e.location:null;return{getPathname:function(){return t?t.pathname+t.search:""}}}}),bg=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],kg=bg.map(function(e){return"[".concat(e,"]")}).join(", "),Cg=/^url\(['"]?#(.*?)['"]?\)$/,wg=((lg=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,o){var s;return _classCallCheck(this,n),(s=t.call(this,e))._iconRegistry=i,s._location=a,s._errorHandler=o,s._inline=!1,s._currentIconFetch=lr.a.EMPTY,r||e.nativeElement.setAttribute("aria-hidden","true"),s}return _createClass(n,[{key:"inline",get:function(){return this._inline},set:function(e){this._inline=cu(e)}},{key:"svgIcon",get:function(){return this._svgIcon},set:function(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}},{key:"fontSet",get:function(){return this._fontSet},set:function(e){var t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}},{key:"fontIcon",get:function(){return this._fontIcon},set:function(e){var t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}},{key:"_splitIconName",value:function(e){if(!e)return["",""];var t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error('Invalid icon name: "'.concat(e,'"'))}}},{key:"ngOnInit",value:function(){this._updateFontIconClasses()}},{key:"ngAfterViewChecked",value:function(){var e=this._elementsWithExternalReferences;if(e&&e.size){var t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}},{key:"ngOnDestroy",value:function(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}},{key:"_usingFontIcon",value:function(){return!this.svgIcon}},{key:"_setSvgElement",value:function(e){this._clearSvgElement();for(var t=e.querySelectorAll("style"),n=0;n<t.length;n++)t[n].textContent+=" ";var i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(e)}},{key:"_clearSvgElement",value:function(){var e=this._elementRef.nativeElement,t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){var n=e.childNodes[t];1===n.nodeType&&"svg"!==n.nodeName.toLowerCase()||e.removeChild(n)}}},{key:"_updateFontIconClasses",value:function(){if(this._usingFontIcon()){var e=this._elementRef.nativeElement,t=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();t!=this._previousFontSetClass&&(this._previousFontSetClass&&e.classList.remove(this._previousFontSetClass),t&&e.classList.add(t),this._previousFontSetClass=t),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}}},{key:"_cleanupFontValue",value:function(e){return"string"==typeof e?e.trim().split(" ")[0]:e}},{key:"_prependPathToReferences",value:function(e){var t=this._elementsWithExternalReferences;t&&t.forEach(function(t,n){t.forEach(function(t){n.setAttribute(t.name,"url('".concat(e,"#").concat(t.value,"')"))})})}},{key:"_cacheChildrenWithExternalReferences",value:function(e){for(var t=e.querySelectorAll(kg),n=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map,i=function(e){bg.forEach(function(i){var r=t[e],a=r.getAttribute(i),o=a?a.match(Cg):null;if(o){var s=n.get(r);s||(s=[],n.set(r,s)),s.push({name:i,value:o[1]})}})},r=0;r<t.length;r++)i(r)}},{key:"_updateSvgIcon",value:function(e){var t=this;if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){var n=_slicedToArray(this._splitIconName(e),2),i=n[0],r=n[1];i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(Object(Cr.a)(1)).subscribe(function(e){return t._setSvgElement(e)},function(e){t._errorHandler.handleError(new Error("Error retrieving icon ".concat(i,":").concat(r,"! ").concat(e.message)))})}}}]),n}(gg)).\u0275fac=function(e){return new(e||lg)(i.Ob(i.l),i.Ob(rg),i.Zb("aria-hidden"),i.Ob(yg),i.Ob(i.n))},lg.\u0275cmp=i.Ib({type:lg,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,t){2&e&&(i.Eb("data-mat-icon-type",t._usingFontIcon()?"font":"svg")("data-mat-icon-name",t._svgName||t.fontIcon)("data-mat-icon-namespace",t._svgNamespace||t.fontSet),i.Gb("mat-icon-inline",t.inline)("mat-icon-no-color","primary"!==t.color&&"accent"!==t.color&&"warn"!==t.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[i.Ab],ngContentSelectors:J_,decls:1,vars:0,template:function(e,t){1&e&&(i.lc(),i.kc(0))},styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),lg),Og=((sg=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||sg)},sg.\u0275mod=i.Mb({type:sg}),sg.\u0275inj=i.Lb({imports:[[tv],tv]}),sg),Sg=function e(t,n){_classCallCheck(this,e),this.isManual=t,this.element=n},xg=((ug=function(){function e(t){var n=this;_classCallCheck(this,e),this.el=t,this.scrolling=!1,this.stickToTop=function(){e.stickies.length>0&&e.stickies.forEach(function(e){e.element&&(window.pageYOffset>e.element.getBoundingClientRect().top?n.addSticky(e):n.removeSticky(e))})},this.isManual=function(){return"true"===n.ftdnaStickyManual}}return _createClass(e,[{key:"ngOnInit",value:function(){var t=this;e.stickies.push(new Sg(this.isManual(),this.el.nativeElement)),window.onscroll=function(){return t.scrolling=!0};var n=this;window.setInterval(function(){n.scrolling&&(n.scrolling=!1,n.stickToTop())},250)}},{key:"addSticky",value:function(e){e.element.classList.add("sticky"),e.isManual||(e.element.style.position="fixed",e.element.style.top="0")}},{key:"removeSticky",value:function(e){e.element.classList.remove("sticky"),e.isManual||(e.element.style.position="static",e.element.style.top="auto")}}]),e}()).\u0275fac=function(e){return new(e||ug)(i.Ob(i.l))},ug.\u0275dir=i.Jb({type:ug,selectors:[["","ftdnaSticky",""]],inputs:{ftdnaStickyManual:"ftdnaStickyManual"}}),ug.stickies=[],ug),Eg=((cg=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||cg)},cg.\u0275mod=i.Mb({type:cg}),cg.\u0275inj=i.Lb({imports:[[]]}),cg),Tg=["*"],Ag=["tabListContainer"],Rg=["tabList"],Dg=["nextPaginator"],Pg=["previousPaginator"],Ig=["mat-tab-nav-bar",""],Mg=new i.s("MatInkBarPositioner",{providedIn:"root",factory:function(){return function(e){return{left:e?(e.offsetLeft||0)+"px":"0",width:e?(e.offsetWidth||0)+"px":"0"}}}}),Lg=((hg=function(){function e(t,n,i,r){_classCallCheck(this,e),this._elementRef=t,this._ngZone=n,this._inkBarPositioner=i,this._animationMode=r}return _createClass(e,[{key:"alignToElement",value:function(e){var t=this;this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return t._setStyles(e)})}):this._setStyles(e)}},{key:"show",value:function(){this._elementRef.nativeElement.style.visibility="visible"}},{key:"hide",value:function(){this._elementRef.nativeElement.style.visibility="hidden"}},{key:"_setStyles",value:function(e){var t=this._inkBarPositioner(e),n=this._elementRef.nativeElement;n.style.left=t.left,n.style.width=t.width}}]),e}()).\u0275fac=function(e){return new(e||hg)(i.Ob(i.l),i.Ob(i.B),i.Ob(Mg),i.Ob(Hi,8))},hg.\u0275dir=i.Jb({type:hg,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(e,t){2&e&&i.Gb("_mat-animation-noopable","NoopAnimations"===t._animationMode)}}),hg),jg=ip({passive:!0}),Fg=((pg=function(){function e(t,n,r,a,o,s,l){var c=this;_classCallCheck(this,e),this._elementRef=t,this._changeDetectorRef=n,this._viewportRuler=r,this._dir=a,this._ngZone=o,this._platform=s,this._animationMode=l,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new Gi.a,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new Gi.a,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new i.o,this.indexFocused=new i.o,o.runOutsideAngular(function(){pc(t.nativeElement,"mouseleave").pipe(Object(yc.a)(c._destroyed)).subscribe(function(){c._stopInterval()})})}return _createClass(e,[{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(e){e=uu(e),this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}},{key:"ngAfterViewInit",value:function(){var e=this;pc(this._previousPaginator.nativeElement,"touchstart",jg).pipe(Object(yc.a)(this._destroyed)).subscribe(function(){e._handlePaginatorPress("before")}),pc(this._nextPaginator.nativeElement,"touchstart",jg).pipe(Object(yc.a)(this._destroyed)).subscribe(function(){e._handlePaginatorPress("after")})}},{key:"ngAfterContentInit",value:function(){var e=this,t=this._dir?this._dir.change:Object($i.a)(null),n=this._viewportRuler.change(150),i=function(){e.updatePagination(),e._alignInkBarToSelectedTab()};this._keyManager=new Op(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(i):i(),Object(Ki.a)(t,n,this._items.changes).pipe(Object(yc.a)(this._destroyed)).subscribe(function(){e._ngZone.run(function(){return Promise.resolve().then(i)}),e._keyManager.withHorizontalOrientation(e._getLayoutDirection())}),this._keyManager.change.pipe(Object(yc.a)(this._destroyed)).subscribe(function(t){e.indexFocused.emit(t),e._setTabFocus(t)})}},{key:"ngAfterContentChecked",value:function(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}},{key:"_handleKeydown",value:function(e){if(!Kd(e))switch(e.keyCode){case 13:case 32:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(e));break;default:this._keyManager.onKeydown(e)}}},{key:"_onContentChanges",value:function(){var e=this,t=this._elementRef.nativeElement.textContent;t!==this._currentTextContent&&(this._currentTextContent=t||"",this._ngZone.run(function(){e.updatePagination(),e._alignInkBarToSelectedTab(),e._changeDetectorRef.markForCheck()}))}},{key:"updatePagination",value:function(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}},{key:"focusIndex",get:function(){return this._keyManager?this._keyManager.activeItemIndex:0},set:function(e){this._isValidIndex(e)&&this.focusIndex!==e&&this._keyManager&&this._keyManager.setActiveItem(e)}},{key:"_isValidIndex",value:function(e){if(!this._items)return!0;var t=this._items?this._items.toArray()[e]:null;return!!t&&!t.disabled}},{key:"_setTabFocus",value:function(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].focus();var t=this._tabListContainer.nativeElement,n=this._getLayoutDirection();t.scrollLeft="ltr"==n?0:t.scrollWidth-t.offsetWidth}}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_updateTabScrollPosition",value:function(){if(!this.disablePagination){var e=this.scrollDistance,t="ltr"===this._getLayoutDirection()?-e:e;this._tabList.nativeElement.style.transform="translateX(".concat(Math.round(t),"px)"),(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}}},{key:"scrollDistance",get:function(){return this._scrollDistance},set:function(e){this._scrollTo(e)}},{key:"_scrollHeader",value:function(e){return this._scrollTo(this._scrollDistance+("before"==e?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}},{key:"_handlePaginatorClick",value:function(e){this._stopInterval(),this._scrollHeader(e)}},{key:"_scrollToLabel",value:function(e){if(!this.disablePagination){var t=this._items?this._items.toArray()[e]:null;if(t){var n,i,r=this._tabListContainer.nativeElement.offsetWidth,a=t.elementRef.nativeElement,o=a.offsetLeft,s=a.offsetWidth;"ltr"==this._getLayoutDirection()?i=(n=o)+s:n=(i=this._tabList.nativeElement.offsetWidth-o)-s;var l=this.scrollDistance,c=this.scrollDistance+r;n<l?this.scrollDistance-=l-n+60:i>c&&(this.scrollDistance+=i-c+60)}}}},{key:"_checkPaginationEnabled",value:function(){if(this.disablePagination)this._showPaginationControls=!1;else{var e=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;e||(this.scrollDistance=0),e!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=e}}},{key:"_checkScrollingControls",value:function(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}},{key:"_getMaxScrollDistance",value:function(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}},{key:"_alignInkBarToSelectedTab",value:function(){var e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,t=e?e.elementRef.nativeElement:null;t?this._inkBar.alignToElement(t):this._inkBar.hide()}},{key:"_stopInterval",value:function(){this._stopScrolling.next()}},{key:"_handlePaginatorPress",value:function(e,t){var n=this;t&&null!=t.button&&0!==t.button||(this._stopInterval(),mm(650,100).pipe(Object(yc.a)(Object(Ki.a)(this._stopScrolling,this._destroyed))).subscribe(function(){var t=n._scrollHeader(e),i=t.maxScrollDistance,r=t.distance;(0===r||r>=i)&&n._stopInterval()}))}},{key:"_scrollTo",value:function(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};var t=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(t,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:t,distance:this._scrollDistance}}}]),e}()).\u0275fac=function(e){return new(e||pg)(i.Ob(i.l),i.Ob(i.h),i.Ob(Am),i.Ob(qu,8),i.Ob(i.B),i.Ob($d),i.Ob(Hi,8))},pg.\u0275dir=i.Jb({type:pg,inputs:{disablePagination:"disablePagination"}}),pg),Ng=((dg=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,o,s,l){var c;return _classCallCheck(this,n),(c=t.call(this,e,a,o,i,r,s,l))._disableRipple=!1,c.color="primary",c}return _createClass(n,[{key:"backgroundColor",get:function(){return this._backgroundColor},set:function(e){var t=this._elementRef.nativeElement.classList;t.remove("mat-background-".concat(this.backgroundColor)),e&&t.add("mat-background-".concat(e)),this._backgroundColor=e}},{key:"disableRipple",get:function(){return this._disableRipple},set:function(e){this._disableRipple=cu(e)}},{key:"_itemSelected",value:function(){}},{key:"ngAfterContentInit",value:function(){var e=this;this._items.changes.pipe(wa(null),Object(yc.a)(this._destroyed)).subscribe(function(){e.updateActiveLink()}),_get(_getPrototypeOf(n.prototype),"ngAfterContentInit",this).call(this)}},{key:"updateActiveLink",value:function(){if(this._items){for(var e=this._items.toArray(),t=0;t<e.length;t++)if(e[t].active)return this.selectedIndex=t,void this._changeDetectorRef.markForCheck();this.selectedIndex=-1,this._inkBar.hide()}}}]),n}(Fg)).\u0275fac=function(e){return new(e||dg)(i.Ob(i.l),i.Ob(qu,8),i.Ob(i.B),i.Ob(i.h),i.Ob(Am),i.Ob($d),i.Ob(Hi,8))},dg.\u0275dir=i.Jb({type:dg,inputs:{color:"color",backgroundColor:"backgroundColor",disableRipple:"disableRipple"},features:[i.Ab]}),dg),Ug=((fg=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,o,s,l){return _classCallCheck(this,n),t.call(this,e,i,r,a,o,s,l)}return n}(Ng)).\u0275fac=function(e){return new(e||fg)(i.Ob(i.l),i.Ob(qu,8),i.Ob(i.B),i.Ob(i.h),i.Ob(Am),i.Ob($d),i.Ob(Hi,8))},fg.\u0275cmp=i.Ib({type:fg,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(e,t,n){var r;1&e&&i.Hb(n,Hg,1),2&e&&i.sc(r=i.dc())&&(t._items=r)},viewQuery:function(e,t){var n;1&e&&(i.Kc(Lg,3),i.Kc(Ag,3),i.Kc(Rg,3),i.Kc(Dg,1),i.Kc(Pg,1)),2&e&&(i.sc(n=i.dc())&&(t._inkBar=n.first),i.sc(n=i.dc())&&(t._tabListContainer=n.first),i.sc(n=i.dc())&&(t._tabList=n.first),i.sc(n=i.dc())&&(t._nextPaginator=n.first),i.sc(n=i.dc())&&(t._previousPaginator=n.first))},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:10,hostBindings:function(e,t){2&e&&i.Gb("mat-tab-header-pagination-controls-enabled",t._showPaginationControls)("mat-tab-header-rtl","rtl"==t._getLayoutDirection())("mat-primary","warn"!==t.color&&"accent"!==t.color)("mat-accent","accent"===t.color)("mat-warn","warn"===t.color)},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[i.Ab],attrs:Ig,ngContentSelectors:Tg,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-link-container",3,"keydown"],["tabListContainer",""],[1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-links"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(e,t){1&e&&(i.lc(),i.Ub(0,"div",0,1),i.cc("click",function(){return t._handlePaginatorClick("before")})("mousedown",function(e){return t._handlePaginatorPress("before",e)})("touchend",function(){return t._stopInterval()}),i.Pb(2,"div",2),i.Tb(),i.Ub(3,"div",3,4),i.cc("keydown",function(e){return t._handleKeydown(e)}),i.Ub(5,"div",5,6),i.cc("cdkObserveContent",function(){return t._onContentChanges()}),i.Ub(7,"div",7),i.kc(8),i.Tb(),i.Pb(9,"mat-ink-bar"),i.Tb(),i.Tb(),i.Ub(10,"div",8,9),i.cc("mousedown",function(e){return t._handlePaginatorPress("after",e)})("click",function(){return t._handlePaginatorClick("after")})("touchend",function(){return t._stopInterval()}),i.Pb(12,"div",2),i.Tb()),2&e&&(i.Gb("mat-tab-header-pagination-disabled",t._disableScrollBefore),i.mc("matRippleDisabled",t._disableScrollBefore||t.disableRipple),i.Db(5),i.Gb("_mat-animation-noopable","NoopAnimations"===t._animationMode),i.Db(5),i.Gb("mat-tab-header-pagination-disabled",t._disableScrollAfter),i.mc("matRippleDisabled",t._disableScrollAfter||t.disableRipple))},directives:[Ov,hp,Lg],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-links{display:flex}[mat-align-tabs=center]>.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:transparent}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-link:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}@media(max-width: 599px){.mat-tab-link{min-width:72px}}\n'],encapsulation:2}),fg),Bg=av(rv(nv(function e(){_classCallCheck(this,e)}))),Vg=((_g=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,o,s){var l;return _classCallCheck(this,n),(l=t.call(this))._tabNavBar=e,l.elementRef=i,l._focusMonitor=o,l._isActive=!1,l.rippleConfig=r||{},l.tabIndex=parseInt(a)||0,"NoopAnimations"===s&&(l.rippleConfig.animation={enterDuration:0,exitDuration:0}),l}return _createClass(n,[{key:"active",get:function(){return this._isActive},set:function(e){cu(e)!==this._isActive&&(this._isActive=e,this._tabNavBar.updateActiveLink())}},{key:"rippleDisabled",get:function(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}},{key:"focus",value:function(){this.elementRef.nativeElement.focus()}},{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this.elementRef)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this.elementRef)}}]),n}(Bg)).\u0275fac=function(e){return new(e||_g)(i.Ob(Ng),i.Ob(i.l),i.Ob(wv,8),i.Zb("tabindex"),i.Ob(Bp),i.Ob(Hi,8))},_g.\u0275dir=i.Jb({type:_g,inputs:{active:"active"},features:[i.Ab]}),_g),Hg=((mg=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,o,s,l,c){var u;return _classCallCheck(this,n),(u=t.call(this,e,i,o,s,l,c))._tabLinkRipple=new Cv(_assertThisInitialized(u),r,i,a),u._tabLinkRipple.setupTriggerEvents(i.nativeElement),u}return _createClass(n,[{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(n.prototype),"ngOnDestroy",this).call(this),this._tabLinkRipple._removeTriggerEvents()}}]),n}(Vg)).\u0275fac=function(e){return new(e||mg)(i.Ob(Ug),i.Ob(i.l),i.Ob(i.B),i.Ob($d),i.Ob(wv,8),i.Zb("tabindex"),i.Ob(Bp),i.Ob(Hi,8))},mg.\u0275dir=i.Jb({type:mg,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:7,hostBindings:function(e,t){2&e&&(i.Eb("aria-current",t.active?"page":null)("aria-disabled",t.disabled)("tabIndex",t.tabIndex),i.Gb("mat-tab-disabled",t.disabled)("mat-tab-label-active",t.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[i.Ab]}),mg),zg=((vg=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||vg)},vg.\u0275mod=i.Mb({type:vg}),vg.\u0275inj=i.Lb({imports:[[Ce,tv,um,Sv,fp,Wp],tv]}),vg);function Yg(e,t){if(1&e&&(i.Ub(0,"a",19,20),i.Fc(2," Y-DNA HAPLOTREE "),i.Tb()),2&e){var n=i.tc(1),r=i.gc(2);i.mc("routerLink",r.yTree)("active",n.isActive)}}function Wg(e,t){if(1&e&&(i.Ub(0,"a",19,21),i.Fc(2," mtDNA HAPLOTREE "),i.Tb()),2&e){var n=i.tc(1),r=i.gc(2);i.mc("routerLink",r.mtTree)("active",n.isActive)}}function Kg(e,t){1&e&&(i.Ub(0,"a",22),i.Fc(1," Y-DNA HAPLOTREE "),i.Tb())}function qg(e,t){1&e&&(i.Ub(0,"a",22),i.Fc(1," mtDNA HAPLOTREE "),i.Tb())}function Gg(e,t){if(1&e&&(i.Ub(0,"div"),i.Pb(1,"h2",13),i.Ub(2,"div",14),i.Ub(3,"div",15),i.Ub(4,"nav",16),i.Ec(5,Yg,3,2,"a",17),i.Ec(6,Wg,3,2,"a",17),i.Ec(7,Kg,2,0,"a",18),i.Ec(8,qg,2,0,"a",18),i.Tb(),i.Tb(),i.Pb(9,"router-outlet"),i.Tb(),i.Tb()),2&e){var n=t.$implicit,r=i.gc();i.Db(1),i.mc("innerHTML",r.subtitle,i.yc),i.Db(4),i.mc("ngIf",!n.isLoading),i.Db(1),i.mc("ngIf",!n.isLoading),i.Db(1),i.mc("ngIf",n.isLoading),i.Db(1),i.mc("ngIf",n.isLoading)}}var Qg,Xg,Zg=((Xg=function(){function e(t){var n=this;_classCallCheck(this,e),this.store=t,this.yTree=$h,this.mtTree=ef;var i=[t.select(Xf),t.select(If),t.select(qf)];this.store$=va(i).pipe(Object(ar.a)(function(e){var t=_slicedToArray(e,3),i=t[0],r=t[1],a=t[2],o="Discover the countries of origin for each branch of the <strong>mtDNA Haplotree</strong> using the world's ",s="Discover the countries of origin and surnames for each branch of the world's largest <strong>Y-DNA Haplotree</strong>. ";return a?(o+="largest mtDNA database containing ".concat((a=a).mtDnaFullSequenceCount.toLocaleString("en-US")," mtFull Sequences from over 180 different countries."),s+="Currently, the tree includes ".concat(a.yDnaBranchCount.toLocaleString("en-US")," branches, ").concat(a.yDnaVariantCount.toLocaleString("en-US")," variants, and ").concat(a.yDnaSnpTestedUserCount.toLocaleString("en-US")," SNP-tested users from our Y-DNA database.")):o+="largest mtDNA database.",n.subtitle=i===ef?o:s,{isLoading:r}}))}return _createClass(e,[{key:"ngOnInit",value:function(){this.store.dispatch(new nf)}}]),e}()).\u0275fac=function(e){return new(e||Xg)(i.Ob(Wi.i))},Xg.\u0275cmp=i.Ib({type:Xg,selectors:[["haplo-tree-tabs"]],decls:33,vars:5,consts:[["ngClass.gt-600.ftdna","gt-600","ngClass.gt-1440.ftdna","gt-1440",1,"matches-header"],["fxLayout","row","fxLayoutAlign","space-between center","ngClass.gt-600.ftdna","gt-600","ngClass.gt-1440.ftdna","gt-1440",1,"matches-container"],["ngClass.gt-1024.ftdna","gt-1024",1,"title"],["mat-button","","color","accent","fxHide","","fxHide.gt-1024.ftdna","false",1,"mat-button-md",3,"matMenuTriggerFor"],["resources",""],[1,"menu-link"],["menu","matMenu"],["mat-menu-item","","href","https://help.familytreedna.com/hc/en-us/sections/360001448756","target","_blank"],["mat-menu-item","","href","https://help.familytreedna.com/hc/en-us/sections/360001448736","target","_blank"],["mat-menu-item","","href","https://survey.zohopublic.com/zs/hIzcLm","target","_blank"],["mat-icon-button","","color","accent","fxHide.gt-1024.ftdna","",1,"mat-button-lg",3,"matMenuTriggerFor"],["menu_icon","matMenu"],[4,"ngIf"],[1,"subtitle",3,"innerHTML"],[1,"outer-tabs-container"],["ftdnaSticky","",1,"nav-bar-container","main-tabs"],["mat-tab-nav-bar",""],["mat-tab-link","","routerLinkActive","","queryParamsHandling","merge",3,"routerLink","active",4,"ngIf"],["mat-tab-link","","disabled","",4,"ngIf"],["mat-tab-link","","routerLinkActive","","queryParamsHandling","merge",3,"routerLink","active"],["rla","routerLinkActive"],["rla2","routerLinkActive"],["mat-tab-link","","disabled",""]],template:function(e,t){if(1&e&&(i.Ub(0,"div",0),i.Ub(1,"div",0),i.Ub(2,"div",1),i.Ub(3,"div",2),i.Fc(4,"Public Haplotrees"),i.Tb(),i.Ub(5,"button",3,4),i.Ub(7,"mat-icon"),i.Fc(8,"help"),i.Tb(),i.Ub(9,"span"),i.Fc(10,"Help"),i.Tb(),i.Tb(),i.Ub(11,"mat-menu",5,6),i.Ub(13,"a",7),i.Fc(14,"mtDNA Haplotree Help Link"),i.Tb(),i.Ub(15,"a",8),i.Fc(16,"Y-DNA Haplotree Help Link"),i.Tb(),i.Ub(17,"a",9),i.Fc(18,"Submit Feedback"),i.Tb(),i.Tb(),i.Ub(19,"button",10,4),i.Ub(21,"mat-icon"),i.Fc(22,"help"),i.Tb(),i.Tb(),i.Ub(23,"mat-menu",5,11),i.Ub(25,"a",7),i.Fc(26,"mtDNA Haplotree Help Link"),i.Tb(),i.Ub(27,"a",8),i.Fc(28,"Y-DNA Haplotree Help Link"),i.Tb(),i.Ub(29,"a",9),i.Fc(30,"Submit Feedback"),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ec(31,Gg,10,5,"div",12),i.hc(32,"async")),2&e){var n=i.tc(12),r=i.tc(24);i.Db(5),i.mc("matMenuTriggerFor",n),i.Db(14),i.mc("matMenuTriggerFor",r),i.Db(12),i.mc("ngIf",i.ic(32,3,t.store$))}},directives:[Nh,qh,oh,_h,Vh,qv,Au,Yh,Y_,wg,B_,j_,Z,xg,Ug,El,bl,Hg,xl],pipes:[me],styles:[".subtitle{color:#444;font-family:Roboto,Arial,Helvetica,sans-serif;font-size:16px;font-weight:300;line-height:24px;letter-spacing:.8px;margin:60px auto 42px;text-align:center;width:534px}.nav-bar-container.sticky{background-color:#fff;width:100%;z-index:1000}.nav-bar-container.main-tabs{padding-left:20px;padding-right:20px}.outer-tabs-container{border-bottom:1px solid rgba(33,33,33,.3)}.matches-header{border-bottom:1px solid #d6d6d6;height:48px}.matches-header.gt-600{margin:0 0 8px}.matches-header.gt-1440{margin:0 0 24px}.matches-header .matches-container{height:100%;padding:0 24px}.matches-header .title{font-size:16px}.matches-header .title.gt-1024{font-size:18px}.menu-link a:focus,.menu-link a:hover{text-decoration:none;color:#212121}"],encapsulation:2,changeDetection:0}),Xg),Jg=((Qg=function e(){_classCallCheck(this,e),this.title="app"}).\u0275fac=function(e){return new(e||Qg)},Qg.\u0275cmp=i.Ib({type:Qg,selectors:[["public-haplo-tree"]],decls:1,vars:0,template:function(e,t){1&e&&i.Pb(0,"haplo-tree-tabs")},directives:[Zg],encapsulation:2}),Qg),$g=[[["caption"]],[["colgroup"],["col"]]],ey=["caption","colgroup, col"];function ty(e){return function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;_classCallCheck(this,n);for(var i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r)))._sticky=!1,e._hasStickyChanged=!1,e}return _createClass(n,[{key:"sticky",get:function(){return this._sticky},set:function(e){var t=this._sticky;this._sticky=cu(e),this._hasStickyChanged=t!==this._sticky}},{key:"hasStickyChanged",value:function(){var e=this._hasStickyChanged;return this._hasStickyChanged=!1,e}},{key:"resetStickyChanged",value:function(){this._hasStickyChanged=!1}}]),n}(e)}var ny,iy,ry,ay,oy,sy,ly,cy,uy,hy,fy,dy,py,vy,my,_y,gy,yy,by,ky,Cy,wy,Oy=new i.s("CDK_TABLE"),Sy=((ry=function e(t){_classCallCheck(this,e),this.template=t}).\u0275fac=function(e){return new(e||ry)(i.Ob(i.O))},ry.\u0275dir=i.Jb({type:ry,selectors:[["","cdkCellDef",""]]}),ry),xy=((iy=function e(t){_classCallCheck(this,e),this.template=t}).\u0275fac=function(e){return new(e||iy)(i.Ob(i.O))},iy.\u0275dir=i.Jb({type:iy,selectors:[["","cdkHeaderCellDef",""]]}),iy),Ey=((ny=function e(t){_classCallCheck(this,e),this.template=t}).\u0275fac=function(e){return new(e||ny)(i.Ob(i.O))},ny.\u0275dir=i.Jb({type:ny,selectors:[["","cdkFooterCellDef",""]]}),ny),Ty=ty(function e(){_classCallCheck(this,e)}),Ay=((ay=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this))._table=e,i._stickyEnd=!1,i}return _createClass(n,[{key:"name",get:function(){return this._name},set:function(e){this._setNameInput(e)}},{key:"stickyEnd",get:function(){return this._stickyEnd},set:function(e){var t=this._stickyEnd;this._stickyEnd=cu(e),this._hasStickyChanged=t!==this._stickyEnd}},{key:"_updateColumnCssClassName",value:function(){this._columnCssClassName=["cdk-column-".concat(this.cssClassFriendlyName)]}},{key:"_setNameInput",value:function(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}]),n}(Ty)).\u0275fac=function(e){return new(e||ay)(i.Ob(Oy,8))},ay.\u0275dir=i.Jb({type:ay,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,t,n){var r;1&e&&(i.Hb(n,Sy,1),i.Hb(n,xy,1),i.Hb(n,Ey,1)),2&e&&(i.sc(r=i.dc())&&(t.cell=r.first),i.sc(r=i.dc())&&(t.headerCell=r.first),i.sc(r=i.dc())&&(t.footerCell=r.first))},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[i.Cb([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:ay}]),i.Ab]}),ay),Ry=function e(t,n){_classCallCheck(this,e);var i,r=n.nativeElement.classList,a=_createForOfIteratorHelper(t._columnCssClassName);try{for(a.s();!(i=a.n()).done;){var o=i.value;r.add(o)}}catch(s){a.e(s)}finally{a.f()}},Dy=((ly=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){return _classCallCheck(this,n),t.call(this,e,i)}return n}(Ry)).\u0275fac=function(e){return new(e||ly)(i.Ob(Ay),i.Ob(i.l))},ly.\u0275dir=i.Jb({type:ly,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[i.Ab]}),ly),Py=((sy=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){return _classCallCheck(this,n),t.call(this,e,i)}return n}(Ry)).\u0275fac=function(e){return new(e||sy)(i.Ob(Ay),i.Ob(i.l))},sy.\u0275dir=i.Jb({type:sy,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:["role","gridcell",1,"cdk-footer-cell"],features:[i.Ab]}),sy),Iy=((oy=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){return _classCallCheck(this,n),t.call(this,e,i)}return n}(Ry)).\u0275fac=function(e){return new(e||oy)(i.Ob(Ay),i.Ob(i.l))},oy.\u0275dir=i.Jb({type:oy,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:["role","gridcell",1,"cdk-cell"],features:[i.Ab]}),oy),My=function e(){_classCallCheck(this,e),this.tasks=[],this.endTasks=[]},Ly=new i.s("_COALESCED_STYLE_SCHEDULER"),jy=((uy=function(){function e(t){_classCallCheck(this,e),this._ngZone=t,this._currentSchedule=null,this._destroyed=new Gi.a}return _createClass(e,[{key:"schedule",value:function(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}},{key:"scheduleEnd",value:function(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_createScheduleIfNeeded",value:function(){var e=this;this._currentSchedule||(this._currentSchedule=new My,this._getScheduleObservable().pipe(Object(yc.a)(this._destroyed)).subscribe(function(){for(;e._currentSchedule.tasks.length||e._currentSchedule.endTasks.length;){var t=e._currentSchedule;e._currentSchedule=new My;var n,i=_createForOfIteratorHelper(t.tasks);try{for(i.s();!(n=i.n()).done;)(0,n.value)()}catch(o){i.e(o)}finally{i.f()}var r,a=_createForOfIteratorHelper(t.endTasks);try{for(a.s();!(r=a.n()).done;)(0,r.value)()}catch(o){a.e(o)}finally{a.f()}}e._currentSchedule=null}))}},{key:"_getScheduleObservable",value:function(){return this._ngZone.isStable?Object(Qi.a)(Promise.resolve(void 0)):this._ngZone.onStable.pipe(Object(Cr.a)(1))}}]),e}()).\u0275fac=function(e){return new(e||uy)(i.Yb(i.B))},uy.\u0275prov=i.Kb({token:uy,factory:uy.\u0275fac}),uy),Fy=((cy=function(){function e(t,n){_classCallCheck(this,e),this.template=t,this._differs=n}return _createClass(e,[{key:"ngOnChanges",value:function(e){if(!this._columnsDiffer){var t=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(t).create(),this._columnsDiffer.diff(t)}}},{key:"getColumnsDiff",value:function(){return this._columnsDiffer.diff(this.columns)}},{key:"extractCellTemplate",value:function(e){return this instanceof Uy?e.headerCell.template:this instanceof Vy?e.footerCell.template:e.cell.template}}]),e}()).\u0275fac=function(e){return new(e||cy)(i.Ob(i.O),i.Ob(i.u))},cy.\u0275dir=i.Jb({type:cy,features:[i.Bb]}),cy),Ny=ty(function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(Fy)),Uy=((hy=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this,e,i))._table=r,a}return _createClass(n,[{key:"ngOnChanges",value:function(e){_get(_getPrototypeOf(n.prototype),"ngOnChanges",this).call(this,e)}}]),n}(Ny)).\u0275fac=function(e){return new(e||hy)(i.Ob(i.O),i.Ob(i.u),i.Ob(Oy,8))},hy.\u0275dir=i.Jb({type:hy,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[i.Ab,i.Bb]}),hy),By=ty(function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(Fy)),Vy=((gy=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this,e,i))._table=r,a}return _createClass(n,[{key:"ngOnChanges",value:function(e){_get(_getPrototypeOf(n.prototype),"ngOnChanges",this).call(this,e)}}]),n}(By)).\u0275fac=function(e){return new(e||gy)(i.Ob(i.O),i.Ob(i.u),i.Ob(Oy,8))},gy.\u0275dir=i.Jb({type:gy,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[i.Ab,i.Bb]}),gy),Hy=((_y=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this,e,i))._table=r,a}return n}(Fy)).\u0275fac=function(e){return new(e||_y)(i.Ob(i.O),i.Ob(i.u),i.Ob(Oy,8))},_y.\u0275dir=i.Jb({type:_y,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[i.Ab]}),_y),zy=((my=function(){function e(t){_classCallCheck(this,e),this._viewContainer=t,e.mostRecentCellOutlet=this}return _createClass(e,[{key:"ngOnDestroy",value:function(){e.mostRecentCellOutlet===this&&(e.mostRecentCellOutlet=null)}}]),e}()).\u0275fac=function(e){return new(e||my)(i.Ob(i.S))},my.\u0275dir=i.Jb({type:my,selectors:[["","cdkCellOutlet",""]]}),my.mostRecentCellOutlet=null,my),Yy=((vy=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||vy)},vy.\u0275cmp=i.Ib({type:vy,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&i.Qb(0,0)},directives:[zy],encapsulation:2}),vy),Wy=((py=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||py)},py.\u0275cmp=i.Ib({type:py,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&i.Qb(0,0)},directives:[zy],encapsulation:2}),py),Ky=((dy=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||dy)},dy.\u0275cmp=i.Ib({type:dy,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&i.Qb(0,0)},directives:[zy],encapsulation:2}),dy),qy=((fy=function e(t){_classCallCheck(this,e),this.templateRef=t}).\u0275fac=function(e){return new(e||fy)(i.Ob(i.O))},fy.\u0275dir=i.Jb({type:fy,selectors:[["ng-template","cdkNoDataRow",""]]}),fy),Gy=["top","bottom","left","right"],Qy=function(){function e(t,n,i,r){var a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],s=arguments.length>6?arguments[6]:void 0;_classCallCheck(this,e),this._isNativeHtmlTable=t,this._stickCellCss=n,this.direction=i,this._coalescedStyleScheduler=r,this._isBrowser=a,this._needsPositionStickyOnElement=o,this._positionListener=s,this._cachedCellWidths=[],this._borderCellCss={top:"".concat(n,"-border-elem-top"),bottom:"".concat(n,"-border-elem-bottom"),left:"".concat(n,"-border-elem-left"),right:"".concat(n,"-border-elem-right")}}return _createClass(e,[{key:"clearStickyPositioning",value:function(e,t){var n,i=this,r=[],a=_createForOfIteratorHelper(e);try{for(a.s();!(n=a.n()).done;){var o=n.value;if(o.nodeType===o.ELEMENT_NODE){r.push(o);for(var s=0;s<o.children.length;s++)r.push(o.children[s])}}}catch(l){a.e(l)}finally{a.f()}this._scheduleStyleChanges(function(){var e,n=_createForOfIteratorHelper(r);try{for(n.s();!(e=n.n()).done;){var a=e.value;i._removeStickyStyle(a,t)}}catch(l){n.e(l)}finally{n.f()}})}},{key:"updateStickyColumns",value:function(e,t,n){var i=this,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e.length&&this._isBrowser&&(t.some(function(e){return e})||n.some(function(e){return e}))){var a=e[0],o=a.children.length,s=this._getCellWidths(a,r),l=this._getStickyStartColumnPositions(s,t),c=this._getStickyEndColumnPositions(s,n),u=t.lastIndexOf(!0),h=n.indexOf(!0);this._scheduleStyleChanges(function(){var r,a="rtl"===i.direction,f=a?"right":"left",d=a?"left":"right",p=_createForOfIteratorHelper(e);try{for(p.s();!(r=p.n()).done;)for(var v=r.value,m=0;m<o;m++){var _=v.children[m];t[m]&&i._addStickyStyle(_,f,l[m],m===u),n[m]&&i._addStickyStyle(_,d,c[m],m===h)}}catch(g){p.e(g)}finally{p.f()}i._positionListener&&(i._positionListener.stickyColumnsUpdated({sizes:-1===u?[]:s.slice(0,u+1).map(function(e,n){return t[n]?e:null})}),i._positionListener.stickyEndColumnsUpdated({sizes:-1===h?[]:s.slice(h).map(function(e,t){return n[t+h]?e:null}).reverse()}))})}else this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]}))}},{key:"stickRows",value:function(e,t,n){var i=this;if(this._isBrowser){for(var r="bottom"===n?e.slice().reverse():e,a="bottom"===n?t.slice().reverse():t,o=[],s=[],l=[],c=0,u=0;c<r.length;c++)if(o[c]=u,a[c]){var h=r[c];l[c]=this._isNativeHtmlTable?Array.from(h.children):[h];var f=h.getBoundingClientRect().height;u+=f,s[c]=f}var d=a.lastIndexOf(!0);this._scheduleStyleChanges(function(){for(var e,t,c=0;c<r.length;c++)if(a[c]){var u,h=o[c],f=c===d,p=_createForOfIteratorHelper(l[c]);try{for(p.s();!(u=p.n()).done;){var v=u.value;i._addStickyStyle(v,n,h,f)}}catch(m){p.e(m)}finally{p.f()}}"top"===n?null===(e=i._positionListener)||void 0===e||e.stickyHeaderRowsUpdated({sizes:s,elements:l}):null===(t=i._positionListener)||void 0===t||t.stickyFooterRowsUpdated({sizes:s,elements:l})})}}},{key:"updateStickyFooterContainer",value:function(e,t){var n=this;if(this._isNativeHtmlTable){var i=e.querySelector("tfoot");this._scheduleStyleChanges(function(){t.some(function(e){return!e})?n._removeStickyStyle(i,["bottom"]):n._addStickyStyle(i,"bottom",0,!1)})}}},{key:"_removeStickyStyle",value:function(e,t){var n,i=_createForOfIteratorHelper(t);try{for(i.s();!(n=i.n()).done;){var r=n.value;e.style[r]="",e.classList.remove(this._borderCellCss[r])}}catch(a){i.e(a)}finally{i.f()}Gy.some(function(n){return-1===t.indexOf(n)&&e.style[n]})?e.style.zIndex=this._getCalculatedZIndex(e):(e.style.zIndex="",this._needsPositionStickyOnElement&&(e.style.position=""),e.classList.remove(this._stickCellCss))}},{key:"_addStickyStyle",value:function(e,t,n,i){e.classList.add(this._stickCellCss),i&&e.classList.add(this._borderCellCss[t]),e.style[t]="".concat(n,"px"),e.style.zIndex=this._getCalculatedZIndex(e),this._needsPositionStickyOnElement&&(e.style.cssText+="position: -webkit-sticky; position: sticky; ")}},{key:"_getCalculatedZIndex",value:function(e){var t,n={top:100,bottom:10,left:1,right:1},i=0,r=_createForOfIteratorHelper(Gy);try{for(r.s();!(t=r.n()).done;){var a=t.value;e.style[a]&&(i+=n[a])}}catch(o){r.e(o)}finally{r.f()}return i?"".concat(i):""}},{key:"_getCellWidths",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!t&&this._cachedCellWidths.length)return this._cachedCellWidths;for(var n=[],i=e.children,r=0;r<i.length;r++)n.push(i[r].getBoundingClientRect().width);return this._cachedCellWidths=n,n}},{key:"_getStickyStartColumnPositions",value:function(e,t){for(var n=[],i=0,r=0;r<e.length;r++)t[r]&&(n[r]=i,i+=e[r]);return n}},{key:"_getStickyEndColumnPositions",value:function(e,t){for(var n=[],i=0,r=e.length;r>0;r--)t[r]&&(n[r]=i,i+=e[r]);return n}},{key:"_scheduleStyleChanges",value:function(e){this._coalescedStyleScheduler?this._coalescedStyleScheduler.schedule(e):e()}}]),e}(),Xy=new i.s("CDK_SPL"),Zy=((wy=function e(t,n){_classCallCheck(this,e),this.viewContainer=t,this.elementRef=n}).\u0275fac=function(e){return new(e||wy)(i.Ob(i.S),i.Ob(i.l))},wy.\u0275dir=i.Jb({type:wy,selectors:[["","rowOutlet",""]]}),wy),Jy=((Cy=function e(t,n){_classCallCheck(this,e),this.viewContainer=t,this.elementRef=n}).\u0275fac=function(e){return new(e||Cy)(i.Ob(i.S),i.Ob(i.l))},Cy.\u0275dir=i.Jb({type:Cy,selectors:[["","headerRowOutlet",""]]}),Cy),$y=((ky=function e(t,n){_classCallCheck(this,e),this.viewContainer=t,this.elementRef=n}).\u0275fac=function(e){return new(e||ky)(i.Ob(i.S),i.Ob(i.l))},ky.\u0275dir=i.Jb({type:ky,selectors:[["","footerRowOutlet",""]]}),ky),eb=((by=function e(t,n){_classCallCheck(this,e),this.viewContainer=t,this.elementRef=n}).\u0275fac=function(e){return new(e||by)(i.Ob(i.S),i.Ob(i.l))},by.\u0275dir=i.Jb({type:by,selectors:[["","noDataRowOutlet",""]]}),by),tb=((yy=function(){function e(t,n,i,r,a,o,s,l,c,u,h){_classCallCheck(this,e),this._differs=t,this._changeDetectorRef=n,this._elementRef=i,this._dir=a,this._platform=s,this._viewRepeater=l,this._coalescedStyleScheduler=c,this._stickyPositioningListener=u,this._viewportRuler=h,this._onDestroy=new Gi.a,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.viewChange=new la.a({start:0,end:Number.MAX_VALUE}),r||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=o,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}return _createClass(e,[{key:"trackBy",get:function(){return this._trackByFn},set:function(e){this._trackByFn=e}},{key:"dataSource",get:function(){return this._dataSource},set:function(e){this._dataSource!==e&&this._switchDataSource(e)}},{key:"multiTemplateDataRows",get:function(){return this._multiTemplateDataRows},set:function(e){this._multiTemplateDataRows=cu(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}},{key:"fixedLayout",get:function(){return this._fixedLayout},set:function(e){this._fixedLayout=cu(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}},{key:"ngOnInit",value:function(){var e=this;this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create(function(t,n){return e.trackBy?e.trackBy(n.dataIndex,n.data):n}),this._viewportRuler&&this._viewportRuler.change().pipe(Object(yc.a)(this._onDestroy)).subscribe(function(){e._forceRecalculateCellWidths=!0})}},{key:"ngAfterContentChecked",value:function(){this._cacheRowDefs(),this._cacheColumnDefs();var e=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||e,this._forceRecalculateCellWidths=e,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}},{key:"ngOnDestroy",value:function(){this._rowOutlet.viewContainer.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),bm(this.dataSource)&&this.dataSource.disconnect(this)}},{key:"renderRows",value:function(){var e=this;this._renderRows=this._getAllRenderRows();var t=this._dataDiffer.diff(this._renderRows);if(t){var n=this._rowOutlet.viewContainer;this._viewRepeater?this._viewRepeater.applyChanges(t,n,function(t,n,i){return e._getEmbeddedViewArgs(t.item,i)},function(e){return e.item.data},function(t){1===t.operation&&t.context&&e._renderCellTemplateForItem(t.record.item.rowDef,t.context)}):t.forEachOperation(function(t,i,r){if(null==t.previousIndex){var a=t.item;e._renderRow(e._rowOutlet,a.rowDef,r,{$implicit:a.data})}else if(null==r)n.remove(i);else{var o=n.get(i);n.move(o,r)}}),this._updateRowIndexContext(),t.forEachIdentityChange(function(e){n.get(e.currentIndex).context.$implicit=e.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles()}else this._updateNoDataRow()}},{key:"addColumnDef",value:function(e){this._customColumnDefs.add(e)}},{key:"removeColumnDef",value:function(e){this._customColumnDefs.delete(e)}},{key:"addRowDef",value:function(e){this._customRowDefs.add(e)}},{key:"removeRowDef",value:function(e){this._customRowDefs.delete(e)}},{key:"addHeaderRowDef",value:function(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}},{key:"removeHeaderRowDef",value:function(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}},{key:"addFooterRowDef",value:function(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}},{key:"removeFooterRowDef",value:function(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}},{key:"setNoDataRow",value:function(e){this._customNoDataRow=e}},{key:"updateStickyHeaderRowStyles",value:function(){var e=this._getRenderedRows(this._headerRowOutlet),t=this._elementRef.nativeElement.querySelector("thead");t&&(t.style.display=e.length?"":"none");var n=this._headerRowDefs.map(function(e){return e.sticky});this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,n,"top"),this._headerRowDefs.forEach(function(e){return e.resetStickyChanged()})}},{key:"updateStickyFooterRowStyles",value:function(){var e=this._getRenderedRows(this._footerRowOutlet),t=this._elementRef.nativeElement.querySelector("tfoot");t&&(t.style.display=e.length?"":"none");var n=this._footerRowDefs.map(function(e){return e.sticky});this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,n,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,n),this._footerRowDefs.forEach(function(e){return e.resetStickyChanged()})}},{key:"updateStickyColumnStyles",value:function(){var e=this,t=this._getRenderedRows(this._headerRowOutlet),n=this._getRenderedRows(this._rowOutlet),i=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([].concat(_toConsumableArray(t),_toConsumableArray(n),_toConsumableArray(i)),["left","right"]),this._stickyColumnStylesNeedReset=!1),t.forEach(function(t,n){e._addStickyColumnStyles([t],e._headerRowDefs[n])}),this._rowDefs.forEach(function(t){for(var i=[],r=0;r<n.length;r++)e._renderRows[r].rowDef===t&&i.push(n[r]);e._addStickyColumnStyles(i,t)}),i.forEach(function(t,n){e._addStickyColumnStyles([t],e._footerRowDefs[n])}),Array.from(this._columnDefsByName.values()).forEach(function(e){return e.resetStickyChanged()})}},{key:"_getAllRenderRows",value:function(){var e=[],t=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(var n=0;n<this._data.length;n++){var i=this._data[n],r=this._getRenderRowsForData(i,n,t.get(i));this._cachedRenderRowsMap.has(i)||this._cachedRenderRowsMap.set(i,new WeakMap);for(var a=0;a<r.length;a++){var o=r[a],s=this._cachedRenderRowsMap.get(o.data);s.has(o.rowDef)?s.get(o.rowDef).push(o):s.set(o.rowDef,[o]),e.push(o)}}return e}},{key:"_getRenderRowsForData",value:function(e,t,n){return this._getRowDefs(e,t).map(function(i){var r=n&&n.has(i)?n.get(i):[];if(r.length){var a=r.shift();return a.dataIndex=t,a}return{data:e,rowDef:i,dataIndex:t}})}},{key:"_cacheColumnDefs",value:function(){var e=this;this._columnDefsByName.clear(),nb(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(function(t){e._columnDefsByName.has(t.name),e._columnDefsByName.set(t.name,t)})}},{key:"_cacheRowDefs",value:function(){this._headerRowDefs=nb(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=nb(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=nb(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);var e=this._rowDefs.filter(function(e){return!e.when});this._defaultRowDef=e[0]}},{key:"_renderUpdatedColumns",value:function(){var e=function(e,t){return e||!!t.getColumnsDiff()},t=this._rowDefs.reduce(e,!1);t&&this._forceRenderDataRows();var n=this._headerRowDefs.reduce(e,!1);n&&this._forceRenderHeaderRows();var i=this._footerRowDefs.reduce(e,!1);return i&&this._forceRenderFooterRows(),t||n||i}},{key:"_switchDataSource",value:function(e){this._data=[],bm(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=e}},{key:"_observeRenderChanges",value:function(){var e,t=this;this.dataSource&&(bm(this.dataSource)?e=this.dataSource.connect(this):hm(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=Object($i.a)(this.dataSource)),this._renderChangeSubscription=e.pipe(Object(yc.a)(this._onDestroy)).subscribe(function(e){t._data=e||[],t.renderRows()}))}},{key:"_forceRenderHeaderRows",value:function(){var e=this;this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach(function(t,n){return e._renderRow(e._headerRowOutlet,t,n)}),this.updateStickyHeaderRowStyles()}},{key:"_forceRenderFooterRows",value:function(){var e=this;this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach(function(t,n){return e._renderRow(e._footerRowOutlet,t,n)}),this.updateStickyFooterRowStyles()}},{key:"_addStickyColumnStyles",value:function(e,t){var n=this,i=Array.from(t.columns||[]).map(function(e){return n._columnDefsByName.get(e)}),r=i.map(function(e){return e.sticky}),a=i.map(function(e){return e.stickyEnd});this._stickyStyler.updateStickyColumns(e,r,a,!this._fixedLayout||this._forceRecalculateCellWidths)}},{key:"_getRenderedRows",value:function(e){for(var t=[],n=0;n<e.viewContainer.length;n++){var i=e.viewContainer.get(n);t.push(i.rootNodes[0])}return t}},{key:"_getRowDefs",value:function(e,t){if(1==this._rowDefs.length)return[this._rowDefs[0]];var n=[];if(this.multiTemplateDataRows)n=this._rowDefs.filter(function(n){return!n.when||n.when(t,e)});else{var i=this._rowDefs.find(function(n){return n.when&&n.when(t,e)})||this._defaultRowDef;i&&n.push(i)}return n}},{key:"_getEmbeddedViewArgs",value:function(e,t){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:t}}},{key:"_renderRow",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=e.viewContainer.createEmbeddedView(t.template,i,n);return this._renderCellTemplateForItem(t,i),r}},{key:"_renderCellTemplateForItem",value:function(e,t){var n,i=_createForOfIteratorHelper(this._getCellTemplates(e));try{for(i.s();!(n=i.n()).done;){var r=n.value;zy.mostRecentCellOutlet&&zy.mostRecentCellOutlet._viewContainer.createEmbeddedView(r,t)}}catch(a){i.e(a)}finally{i.f()}this._changeDetectorRef.markForCheck()}},{key:"_updateRowIndexContext",value:function(){for(var e=this._rowOutlet.viewContainer,t=0,n=e.length;t<n;t++){var i=e.get(t).context;i.count=n,i.first=0===t,i.last=t===n-1,i.even=t%2==0,i.odd=!i.even,this.multiTemplateDataRows?(i.dataIndex=this._renderRows[t].dataIndex,i.renderIndex=t):i.index=this._renderRows[t].dataIndex}}},{key:"_getCellTemplates",value:function(e){var t=this;return e&&e.columns?Array.from(e.columns,function(n){var i=t._columnDefsByName.get(n);return e.extractCellTemplate(i)}):[]}},{key:"_applyNativeTableSections",value:function(){for(var e=this._document.createDocumentFragment(),t=0,n=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];t<n.length;t++){var i=n[t],r=this._document.createElement(i.tag);r.setAttribute("role","rowgroup");var a,o=_createForOfIteratorHelper(i.outlets);try{for(o.s();!(a=o.n()).done;){var s=a.value;r.appendChild(s.elementRef.nativeElement)}}catch(l){o.e(l)}finally{o.f()}e.appendChild(r)}this._elementRef.nativeElement.appendChild(e)}},{key:"_forceRenderDataRows",value:function(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}},{key:"_checkStickyStates",value:function(){var e=function(e,t){return e||t.hasStickyChanged()};this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}},{key:"_setupStickyStyler",value:function(){var e=this;this._stickyStyler=new Qy(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:Object($i.a)()).pipe(Object(yc.a)(this._onDestroy)).subscribe(function(t){e._stickyStyler.direction=t,e.updateStickyColumnStyles()})}},{key:"_getOwnDefs",value:function(e){var t=this;return e.filter(function(e){return!e._table||e._table===t})}},{key:"_updateNoDataRow",value:function(){var e=this._customNoDataRow||this._noDataRow;if(e){var t=0===this._rowOutlet.viewContainer.length;if(t!==this._isShowingNoDataRow){var n=this._noDataRowOutlet.viewContainer;t?n.createEmbeddedView(e.templateRef):n.clear(),this._isShowingNoDataRow=t}}}}]),e}()).\u0275fac=function(e){return new(e||yy)(i.Ob(i.u),i.Ob(i.h),i.Ob(i.l),i.Zb("role"),i.Ob(qu,8),i.Ob(s),i.Ob($d),i.Ob(Em,8),i.Ob(Ly,8),i.Ob(Xy,12),i.Ob(Am,8))},yy.\u0275cmp=i.Ib({type:yy,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,t,n){var r;1&e&&(i.Hb(n,qy,1),i.Hb(n,Ay,1),i.Hb(n,Hy,1),i.Hb(n,Uy,1),i.Hb(n,Vy,1)),2&e&&(i.sc(r=i.dc())&&(t._noDataRow=r.first),i.sc(r=i.dc())&&(t._contentColumnDefs=r),i.sc(r=i.dc())&&(t._contentRowDefs=r),i.sc(r=i.dc())&&(t._contentHeaderRowDefs=r),i.sc(r=i.dc())&&(t._contentFooterRowDefs=r))},viewQuery:function(e,t){var n;1&e&&(i.Kc(Zy,3),i.Kc(Jy,3),i.Kc($y,3),i.Kc(eb,3)),2&e&&(i.sc(n=i.dc())&&(t._rowOutlet=n.first),i.sc(n=i.dc())&&(t._headerRowOutlet=n.first),i.sc(n=i.dc())&&(t._footerRowOutlet=n.first),i.sc(n=i.dc())&&(t._noDataRowOutlet=n.first))},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(e,t){2&e&&i.Gb("cdk-table-fixed-layout",t.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},exportAs:["cdkTable"],features:[i.Cb([{provide:Oy,useExisting:yy},{provide:Em,useClass:Sm},{provide:Ly,useClass:jy},{provide:Xy,useValue:null}])],ngContentSelectors:ey,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(i.lc($g),i.kc(0),i.kc(1,1),i.Qb(2,0),i.Qb(3,1),i.Qb(4,2),i.Qb(5,3))},directives:[Jy,Zy,eb,$y],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),yy);function nb(e,t){return e.concat(Array.from(t))}var ib,rb,ab,ob,sb,lb=((ib=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||ib)},ib.\u0275mod=i.Mb({type:ib}),ib.\u0275inj=i.Lb({imports:[[Dm]]}),ib),cb=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this)).getLevel=e,a.isExpandable=i,a.options=r,a.options&&(a.trackBy=a.options.trackBy),a}return _createClass(n,[{key:"getDescendants",value:function(e){for(var t=[],n=this.dataNodes.indexOf(e)+1;n<this.dataNodes.length&&this.getLevel(e)<this.getLevel(this.dataNodes[n]);n++)t.push(this.dataNodes[n]);return t}},{key:"expandAll",value:function(){var e,t=this;(e=this.expansionModel).select.apply(e,_toConsumableArray(this.dataNodes.map(function(e){return t._trackByValue(e)})))}}]),n}(function(){function e(){_classCallCheck(this,e),this.expansionModel=new xm(!0)}return _createClass(e,[{key:"toggle",value:function(e){this.expansionModel.toggle(this._trackByValue(e))}},{key:"expand",value:function(e){this.expansionModel.select(this._trackByValue(e))}},{key:"collapse",value:function(e){this.expansionModel.deselect(this._trackByValue(e))}},{key:"isExpanded",value:function(e){return this.expansionModel.isSelected(this._trackByValue(e))}},{key:"toggleDescendants",value:function(e){this.expansionModel.isSelected(this._trackByValue(e))?this.collapseDescendants(e):this.expandDescendants(e)}},{key:"collapseAll",value:function(){this.expansionModel.clear()}},{key:"expandDescendants",value:function(e){var t,n=this,i=[e];i.push.apply(i,_toConsumableArray(this.getDescendants(e))),(t=this.expansionModel).select.apply(t,_toConsumableArray(i.map(function(e){return n._trackByValue(e)})))}},{key:"collapseDescendants",value:function(e){var t,n=this,i=[e];i.push.apply(i,_toConsumableArray(this.getDescendants(e))),(t=this.expansionModel).deselect.apply(t,_toConsumableArray(i.map(function(e){return n._trackByValue(e)})))}},{key:"_trackByValue",value:function(e){return this.trackBy?this.trackBy(e):e}}]),e}()),ub=new i.s("CDK_TREE_NODE_OUTLET_NODE"),hb=((rb=function e(t,n){_classCallCheck(this,e),this.viewContainer=t,this._node=n}).\u0275fac=function(e){return new(e||rb)(i.Ob(i.S),i.Ob(ub,8))},rb.\u0275dir=i.Jb({type:rb,selectors:[["","cdkTreeNodeOutlet",""]]}),rb),fb=function e(t){_classCallCheck(this,e),this.$implicit=t},db=((sb=function e(t){_classCallCheck(this,e),this.template=t}).\u0275fac=function(e){return new(e||sb)(i.Ob(i.O))},sb.\u0275dir=i.Jb({type:sb,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),sb),pb=((ob=function(){function e(t,n){_classCallCheck(this,e),this._differs=t,this._changeDetectorRef=n,this._onDestroy=new Gi.a,this._levels=new Map,this.viewChange=new la.a({start:0,end:Number.MAX_VALUE})}return _createClass(e,[{key:"dataSource",get:function(){return this._dataSource},set:function(e){this._dataSource!==e&&this._switchDataSource(e)}},{key:"ngOnInit",value:function(){this._dataDiffer=this._differs.find([]).create(this.trackBy)}},{key:"ngOnDestroy",value:function(){this._nodeOutlet.viewContainer.clear(),this.viewChange.complete(),this._onDestroy.next(),this._onDestroy.complete(),this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null)}},{key:"ngAfterContentChecked",value:function(){var e=this._nodeDefs.filter(function(e){return!e.when});this._defaultNodeDef=e[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}},{key:"_switchDataSource",value:function(e){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),e||this._nodeOutlet.viewContainer.clear(),this._dataSource=e,this._nodeDefs&&this._observeRenderChanges()}},{key:"_observeRenderChanges",value:function(){var e,t=this;bm(this._dataSource)?e=this._dataSource.connect(this):hm(this._dataSource)?e=this._dataSource:Array.isArray(this._dataSource)&&(e=Object($i.a)(this._dataSource)),e&&(this._dataSubscription=e.pipe(Object(yc.a)(this._onDestroy)).subscribe(function(e){return t.renderNodeChanges(e)}))}},{key:"renderNodeChanges",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._dataDiffer,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this._nodeOutlet.viewContainer,r=arguments.length>3?arguments[3]:void 0,a=n.diff(e);a&&(a.forEachOperation(function(n,a,o){if(null==n.previousIndex)t.insertNode(e[o],o,i,r);else if(null==o)i.remove(a),t._levels.delete(n.item);else{var s=i.get(a);i.move(s,o)}}),this._changeDetectorRef.detectChanges())}},{key:"_getNodeDef",value:function(e,t){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(function(n){return n.when&&n.when(t,e)})||this._defaultNodeDef}},{key:"insertNode",value:function(e,t,n,i){var r=this._getNodeDef(e,t),a=new fb(e);a.level=this.treeControl.getLevel?this.treeControl.getLevel(e):void 0!==i&&this._levels.has(i)?this._levels.get(i)+1:0,this._levels.set(e,a.level),(n||this._nodeOutlet.viewContainer).createEmbeddedView(r.template,a,t),vb.mostRecentTreeNode&&(vb.mostRecentTreeNode.data=e)}}]),e}()).\u0275fac=function(e){return new(e||ob)(i.Ob(i.u),i.Ob(i.h))},ob.\u0275cmp=i.Ib({type:ob,selectors:[["cdk-tree"]],contentQueries:function(e,t,n){var r;1&e&&i.Hb(n,db,1),2&e&&i.sc(r=i.dc())&&(t._nodeDefs=r)},viewQuery:function(e,t){var n;1&e&&i.Kc(hb,3),2&e&&i.sc(n=i.dc())&&(t._nodeOutlet=n.first)},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(e,t){1&e&&i.Qb(0,0)},directives:[hb],encapsulation:2}),ob),vb=((ab=function(){function e(t,n){_classCallCheck(this,e),this._elementRef=t,this._tree=n,this._destroyed=new Gi.a,this._dataChanges=new Gi.a,e.mostRecentTreeNode=this,this._elementRef.nativeElement.classList.add("cdk-tree-node"),this.role="treeitem"}return _createClass(e,[{key:"role",get:function(){return"treeitem"},set:function(e){this._elementRef.nativeElement.setAttribute("role",e)}},{key:"data",get:function(){return this._data},set:function(e){e!==this._data&&(this._data=e,this._setRoleFromData(),this._dataChanges.next())}},{key:"isExpanded",get:function(){return this._tree.treeControl.isExpanded(this._data)}},{key:"_setExpanded",value:function(e){this._isAriaExpanded=e,this._elementRef.nativeElement.setAttribute("aria-expanded","".concat(e))}},{key:"level",get:function(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):this._parentNodeAriaLevel}},{key:"ngOnInit",value:function(){this._parentNodeAriaLevel=function(e){for(var t,n=e.parentElement;n&&(t=void 0,!(null==(t=n.classList)?void 0:t.contains("cdk-nested-tree-node"))&&!(null==t?void 0:t.contains("cdk-tree")));)n=n.parentElement;return n?n.classList.contains("cdk-nested-tree-node")?uu(n.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level","".concat(this.level+1))}},{key:"ngDoCheck",value:function(){this.isExpanded!=this._isAriaExpanded&&this._setExpanded(this.isExpanded)}},{key:"ngOnDestroy",value:function(){e.mostRecentTreeNode===this&&(e.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}},{key:"focus",value:function(){this._elementRef.nativeElement.focus()}},{key:"_setRoleFromData",value:function(){this.role="treeitem"}}]),e}()).\u0275fac=function(e){return new(e||ab)(i.Ob(i.l),i.Ob(pb))},ab.\u0275dir=i.Jb({type:ab,selectors:[["cdk-tree-node"]],inputs:{role:"role"},exportAs:["cdkTreeNode"]}),ab.mostRecentTreeNode=null,ab);var mb,_b,gb,yb=((_b=function(){function e(t,n){_classCallCheck(this,e),this._tree=t,this._treeNode=n,this._recursive=!1}return _createClass(e,[{key:"recursive",get:function(){return this._recursive},set:function(e){this._recursive=cu(e)}},{key:"_toggle",value:function(e){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),e.stopPropagation()}}]),e}()).\u0275fac=function(e){return new(e||_b)(i.Ob(pb),i.Ob(vb))},_b.\u0275dir=i.Jb({type:_b,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(e,t){1&e&&i.cc("click",function(e){return t._toggle(e)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),_b),bb=((mb=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||mb)},mb.\u0275mod=i.Mb({type:mb}),mb.\u0275inj=i.Lb({}),mb),kb=new i.s("NgValueAccessor"),Cb={provide:kb,useExisting:Object(i.W)(function(){return Ob}),multi:!0},wb=new i.s("CompositionEventMode"),Ob=((gb=function(){function e(t,n,i){var r;_classCallCheck(this,e),this._renderer=t,this._elementRef=n,this._compositionMode=i,this.onChange=function(e){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(r=a()?a().getUserAgent():"",!/android (\d+)/.test(r.toLowerCase())))}return _createClass(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}},{key:"registerOnChange",value:function(e){this.onChange=e}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_handleInput",value:function(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}},{key:"_compositionStart",value:function(){this._composing=!0}},{key:"_compositionEnd",value:function(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}]),e}()).\u0275fac=function(e){return new(e||gb)(i.Ob(i.G),i.Ob(i.l),i.Ob(wb,8))},gb.\u0275dir=i.Jb({type:gb,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,t){1&e&&i.cc("input",function(e){return t._handleInput(e.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(e){return t._compositionEnd(e.target.value)})},features:[i.Cb([Cb])]}),gb),Sb=new i.s("NgValidators"),xb=new i.s("NgAsyncValidators");function Eb(e){return null!=e}function Tb(e){var t=Object(i.ub)(e)?Object(Qi.a)(e):e;return Object(i.tb)(t),t}function Ab(e){var t={};return e.forEach(function(e){t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function Rb(e,t){return t.map(function(t){return t(e)})}function Db(e){return e.map(function(e){return function(e){return!e.validate}(e)?e:function(t){return e.validate(t)}})}function Pb(e){return null!=e?function(e){if(!e)return null;var t=e.filter(Eb);return 0==t.length?null:function(e){return Ab(Rb(e,t))}}(Db(e)):null}function Ib(e){return null!=e?function(e){if(!e)return null;var t=e.filter(Eb);return 0==t.length?null:function(e){return Q_(Rb(e,t).map(Tb)).pipe(Object(ar.a)(Ab))}}(Db(e)):null}function Mb(e,t){return null===e?[t]:Array.isArray(e)?[].concat(_toConsumableArray(e),[t]):[e,t]}function Lb(e){return e._rawValidators}function jb(e){return e._rawAsyncValidators}var Fb,Nb,Ub,Bb=((Nb=function(){function e(){_classCallCheck(this,e),this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}return _createClass(e,[{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}},{key:"_setValidators",value:function(e){this._rawValidators=e||[],this._composedValidatorFn=Pb(this._rawValidators)}},{key:"_setAsyncValidators",value:function(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=Ib(this._rawAsyncValidators)}},{key:"validator",get:function(){return this._composedValidatorFn||null}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn||null}},{key:"_registerOnDestroy",value:function(e){this._onDestroyCallbacks.push(e)}},{key:"_invokeOnDestroyCallbacks",value:function(){this._onDestroyCallbacks.forEach(function(e){return e()}),this._onDestroyCallbacks=[]}},{key:"reset",value:function(e){this.control&&this.control.reset(e)}},{key:"hasError",value:function(e,t){return!!this.control&&this.control.hasError(e,t)}},{key:"getError",value:function(e,t){return this.control?this.control.getError(e,t):null}}]),e}()).\u0275fac=function(e){return new(e||Nb)},Nb.\u0275dir=i.Jb({type:Nb}),Nb),Vb=((Fb=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),n}(Bb)).\u0275fac=function(e){return Hb(e||Fb)},Fb.\u0275dir=i.Jb({type:Fb,features:[i.Ab]}),Fb),Hb=i.Wb(Vb),zb=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments))._parent=null,e.name=null,e.valueAccessor=null,e}return n}(Bb),Yb=((Ub=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){return _classCallCheck(this,n),t.call(this,e)}return n}(function(){function e(t){_classCallCheck(this,e),this._cd=t}return _createClass(e,[{key:"is",value:function(e){var t,n;return!!(null===(n=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===n?void 0:n[e])}}]),e}())).\u0275fac=function(e){return new(e||Ub)(i.Ob(zb,2))},Ub.\u0275dir=i.Jb({type:Ub,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&i.Gb("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))},features:[i.Ab]}),Ub);function Wb(e,t){Gb(e,t,!0),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(function(n){e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&Xb(e,t)})}(e,t),function(e,t){var n=function(e,n){t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)};e.registerOnChange(n),t._registerOnDestroy(function(){e._unregisterOnChange(n)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(function(){e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&Xb(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function(e,t){if(t.valueAccessor.setDisabledState){var n=function(e){t.valueAccessor.setDisabledState(e)};e.registerOnDisabledChange(n),t._registerOnDestroy(function(){e._unregisterOnDisabledChange(n)})}}(e,t)}function Kb(e,t){var n=function(){};t.valueAccessor&&(t.valueAccessor.registerOnChange(n),t.valueAccessor.registerOnTouched(n)),Qb(e,t,!0),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(function(){}))}function qb(e,t){e.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function Gb(e,t,n){var i=Lb(e);null!==t.validator?e.setValidators(Mb(i,t.validator)):"function"==typeof i&&e.setValidators([i]);var r=jb(e);if(null!==t.asyncValidator?e.setAsyncValidators(Mb(r,t.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]),n){var a=function(){return e.updateValueAndValidity()};qb(t._rawValidators,a),qb(t._rawAsyncValidators,a)}}function Qb(e,t,n){var i=!1;if(null!==e){if(null!==t.validator){var r=Lb(e);if(Array.isArray(r)&&r.length>0){var a=r.filter(function(e){return e!==t.validator});a.length!==r.length&&(i=!0,e.setValidators(a))}}if(null!==t.asyncValidator){var o=jb(e);if(Array.isArray(o)&&o.length>0){var s=o.filter(function(e){return e!==t.asyncValidator});s.length!==o.length&&(i=!0,e.setAsyncValidators(s))}}}if(n){var l=function(){};qb(t._rawValidators,l),qb(t._rawAsyncValidators,l)}return i}function Xb(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function Zb(e,t){Gb(e,t,!1)}function Jb(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}function $b(e,t){e._syncPendingControls(),t.forEach(function(e){var t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function ek(e,t){return t?(Array.isArray(t),t.forEach(function(e){e.constructor===Ob?n=e:Object.getPrototypeOf(e.constructor)===function(){return function e(){_classCallCheck(this,e)}}()?i=e:r=e}),r||i||n||null):null;var n,i,r}function tk(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}function nk(e){return(ok(e)?e.validators:e)||null}function ik(e){return Array.isArray(e)?Pb(e):e||null}function rk(e,t){return(ok(t)?t.asyncValidators:e)||null}function ak(e){return Array.isArray(e)?Ib(e):e||null}function ok(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var sk,lk,ck,uk,hk,fk,dk,pk,vk=function(){function e(t,n){_classCallCheck(this,e),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=n,this._composedValidatorFn=ik(this._rawValidators),this._composedAsyncValidatorFn=ak(this._rawAsyncValidators)}return _createClass(e,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(e){this._rawValidators=this._composedValidatorFn=e}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return"VALID"===this.status}},{key:"invalid",get:function(){return"INVALID"===this.status}},{key:"pending",get:function(){return"PENDING"==this.status}},{key:"disabled",get:function(){return"DISABLED"===this.status}},{key:"enabled",get:function(){return"DISABLED"!==this.status}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"setValidators",value:function(e){this._rawValidators=e,this._composedValidatorFn=ik(e)}},{key:"setAsyncValidators",value:function(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=ak(e)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(e){return e.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(e){e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"markAsDirty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}},{key:"markAsPristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(e){e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"markAsPending",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status="PENDING",!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}},{key:"disable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(function(t){t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!0)})}},{key:"enable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status="VALID",this._forEachChild(function(t){t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!1)})}},{key:"_updateAncestors",value:function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(e){this._parent=e}},{key:"updateValueAndValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"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)}},{key:"_updateTreeValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(t){return t._updateTreeValidity(e)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(e){var t=this;if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;var n=Tb(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){t._hasOwnPendingAsyncValidator=!1,t.setErrors(n,{emitEvent:e})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}},{key:"get",value:function(e){return function(e,t,n){if(null==t)return null;if(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length)return null;var i=e;return t.forEach(function(e){i=i instanceof _k?i.controls.hasOwnProperty(e)?i.controls[e]:null:i instanceof gk&&i.at(e)||null}),i}(this,e)}},{key:"getError",value:function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}},{key:"hasError",value:function(e,t){return!!this.getError(e,t)}},{key:"root",get:function(){for(var e=this;e._parent;)e=e._parent;return e}},{key:"_updateControlsErrors",value:function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}},{key:"_initObservables",value:function(){this.valueChanges=new i.o,this.statusChanges=new i.o}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}},{key:"_anyControlsHaveStatus",value:function(e){return this._anyControls(function(t){return t.status===e})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(e){return e.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(e){return e.touched})}},{key:"_updatePristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"_updateTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"_isBoxedValue",value:function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}},{key:"_registerOnCollectionChange",value:function(e){this._onCollectionChange=e}},{key:"_setUpdateStrategy",value:function(e){ok(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}},{key:"_parentMarkedDirty",value:function(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}]),e}(),mk=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0,a=arguments.length>2?arguments[2]:void 0;return _classCallCheck(this,n),(e=t.call(this,nk(r),rk(a,r)))._onChange=[],e._applyFormState(i),e._setUpdateStrategy(r),e._initObservables(),e.updateValueAndValidity({onlySelf:!0,emitEvent:!!a}),e}return _createClass(n,[{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=e,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(function(e){return e(t.value,!1!==n.emitViewToModelChange)}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(e,t)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(e){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(e){this._onChange.push(e)}},{key:"_unregisterOnChange",value:function(e){tk(this._onChange,e)}},{key:"registerOnDisabledChange",value:function(e){this._onDisabledChange.push(e)}},{key:"_unregisterOnDisabledChange",value:function(e){tk(this._onDisabledChange,e)}},{key:"_forEachChild",value:function(e){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}]),n}(vk),_k=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this,nk(i),rk(r,i))).controls=e,a._initObservables(),a._setUpdateStrategy(i),a._setUpControls(),a.updateValueAndValidity({onlySelf:!0,emitEvent:!!r}),a}return _createClass(n,[{key:"registerControl",value:function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}},{key:"addControl",value:function(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"removeControl",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setControl",value:function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"contains",value:function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),Object.keys(e).forEach(function(i){t._throwIfControlMissing(i),t.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=e&&(Object.keys(e).forEach(function(i){t.controls[i]&&t.controls[i].patchValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(e,t,n){return e[n]=t instanceof mk?t.value:t.getRawValue(),e})}},{key:"_syncPendingControls",value:function(){var e=this._reduceChildren(!1,function(e,t){return!!t._syncPendingControls()||e});return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value: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: ".concat(e,"."))}},{key:"_forEachChild",value:function(e){var t=this;Object.keys(this.controls).forEach(function(n){var i=t.controls[n];i&&e(i,n)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(e){for(var t=0,n=Object.keys(this.controls);t<n.length;t++){var i=n[t],r=this.controls[i];if(this.contains(i)&&e(r))return!0}return!1}},{key:"_reduceValue",value:function(){var e=this;return this._reduceChildren({},function(t,n,i){return(n.enabled||e.disabled)&&(t[i]=n.value),t})}},{key:"_reduceChildren",value:function(e,t){var n=e;return this._forEachChild(function(e,i){n=t(n,e,i)}),n}},{key:"_allControlsDisabled",value: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}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '".concat(n,"'."))})}}]),n}(vk),gk=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this,nk(i),rk(r,i))).controls=e,a._initObservables(),a._setUpdateStrategy(i),a._setUpControls(),a.updateValueAndValidity({onlySelf:!0,emitEvent:!!r}),a}return _createClass(n,[{key:"at",value:function(e){return this.controls[e]}},{key:"push",value:function(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"insert",value:function(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()}},{key:"removeAt",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),this.updateValueAndValidity()}},{key:"setControl",value: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()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),e.forEach(function(e,i){t._throwIfControlMissing(i),t.at(i).setValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=e&&(e.forEach(function(e,i){t.at(i)&&t.at(i).patchValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this.controls.map(function(e){return e instanceof mk?e.value:e.getRawValue()})}},{key:"clear",value:function(){this.controls.length<1||(this._forEachChild(function(e){return e._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity())}},{key:"_syncPendingControls",value:function(){var e=this.controls.reduce(function(e,t){return!!t._syncPendingControls()||e},!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value: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 ".concat(e))}},{key:"_forEachChild",value:function(e){this.controls.forEach(function(t,n){e(t,n)})}},{key:"_updateValue",value:function(){var e=this;this.value=this.controls.filter(function(t){return t.enabled||e.disabled}).map(function(e){return e.value})}},{key:"_anyControls",value:function(e){return this.controls.some(function(t){return t.enabled&&e(t)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){return e._registerControl(t)})}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: ".concat(n,"."))})}},{key:"_allControlsDisabled",value:function(){var e,t=_createForOfIteratorHelper(this.controls);try{for(t.s();!(e=t.n()).done;){if(e.value.enabled)return!1}}catch(n){t.e(n)}finally{t.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}]),n}(vk),yk={provide:Vb,useExisting:Object(i.W)(function(){return kk})},bk=Promise.resolve(null),kk=((sk=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var a;return _classCallCheck(this,n),(a=t.call(this)).submitted=!1,a._directives=[],a.ngSubmit=new i.o,a.form=new _k({},Pb(e),Ib(r)),a}return _createClass(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}},{key:"addControl",value:function(e){var t=this;bk.then(function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),Wb(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(e)})}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){var t=this;bk.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name),tk(t._directives,e)})}},{key:"addFormGroup",value:function(e){var t=this;bk.then(function(){var n=t._findContainer(e.path),i=new _k({});Zb(i,e),n.registerControl(e.name,i),i.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(e){var t=this;bk.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)})}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){var n=this;bk.then(function(){n.form.get(e.path).setValue(t)})}},{key:"setValue",value:function(e){this.control.setValue(e)}},{key:"onSubmit",value:function(e){return this.submitted=!0,$b(this.form,this._directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(e){return e.pop(),e.length?this.form.get(e):this.form}}]),n}(Vb)).\u0275fac=function(e){return new(e||sk)(i.Ob(Sb,10),i.Ob(xb,10))},sk.\u0275dir=i.Jb({type:sk,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&i.cc("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i.Cb([yk]),i.Ab]}),sk),Ck={provide:zb,useExisting:Object(i.W)(function(){return Ok})},wk=Promise.resolve(null),Ok=((ck=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,a,o){var s;return _classCallCheck(this,n),(s=t.call(this)).control=new mk,s._registered=!1,s.update=new i.o,s._parent=e,s._setValidators(r),s._setAsyncValidators(a),s.valueAccessor=ek(0,o),s}return _createClass(n,[{key:"ngOnChanges",value:function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),Jb(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"path",get:function(){return this._parent?[].concat(_toConsumableArray(this._parent.path),[this.name]):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){Wb(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}},{key:"_updateValue",value:function(e){var t=this;wk.then(function(){t.control.setValue(e,{emitViewToModelChange:!1})})}},{key:"_updateDisabled",value:function(e){var t=this,n=e.isDisabled.currentValue,i=""===n||n&&"false"!==n;wk.then(function(){i&&!t.control.disabled?t.control.disable():!i&&t.control.disabled&&t.control.enable()})}}]),n}(zb)).\u0275fac=function(e){return new(e||ck)(i.Ob(Vb,9),i.Ob(Sb,10),i.Ob(xb,10),i.Ob(kb,10))},ck.\u0275dir=i.Jb({type:ck,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[i.Cb([Ck]),i.Ab,i.Bb]}),ck),Sk=((lk=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||lk)},lk.\u0275mod=i.Mb({type:lk}),lk.\u0275inj=i.Lb({}),lk),xk=new i.s("NgModelWithFormControlWarning"),Ek={provide:zb,useExisting:Object(i.W)(function(){return Tk})},Tk=((uk=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,a,o){var s;return _classCallCheck(this,n),(s=t.call(this))._ngModelWarningConfig=o,s.update=new i.o,s._ngModelWarningSent=!1,s._setValidators(e),s._setAsyncValidators(r),s.valueAccessor=ek(0,a),s}return _createClass(n,[{key:"isDisabled",set:function(e){}},{key:"ngOnChanges",value:function(e){if(this._isControlChanged(e)){var t=e.form.previousValue;t&&Kb(t,this,!1),Wb(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}Jb(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.form&&Kb(this.form,this,!1)}},{key:"path",get:function(){return[]}},{key:"control",get:function(){return this.form}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_isControlChanged",value:function(e){return e.hasOwnProperty("form")}}]),n}(zb)).\u0275fac=function(e){return new(e||uk)(i.Ob(Sb,10),i.Ob(xb,10),i.Ob(kb,10),i.Ob(xk,8))},uk.\u0275dir=i.Jb({type:uk,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[i.Cb([Ek]),i.Ab,i.Bb]}),uk._ngModelWarningSentOnce=!1,uk),Ak={provide:Vb,useExisting:Object(i.W)(function(){return Rk})},Rk=((pk=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var a;return _classCallCheck(this,n),(a=t.call(this)).validators=e,a.asyncValidators=r,a.submitted=!1,a._onCollectionChange=function(){return a._updateDomValue()},a.directives=[],a.form=null,a.ngSubmit=new i.o,a._setValidators(e),a._setAsyncValidators(r),a}return _createClass(n,[{key:"ngOnChanges",value:function(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"ngOnDestroy",value:function(){this.form&&(Qb(this.form,this,!1),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(function(){}))}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"addControl",value:function(e){var t=this.form.get(e.path);return Wb(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){Kb(e.control||null,e,!1),tk(this.directives,e)}},{key:"addFormGroup",value:function(e){this._setUpFormContainer(e)}},{key:"removeFormGroup",value:function(e){this._cleanUpFormContainer(e)}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"addFormArray",value:function(e){this._setUpFormContainer(e)}},{key:"removeFormArray",value:function(e){this._cleanUpFormContainer(e)}},{key:"getFormArray",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){this.form.get(e.path).setValue(t)}},{key:"onSubmit",value:function(e){return this.submitted=!0,$b(this.form,this.directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_updateDomValue",value:function(){var e=this;this.directives.forEach(function(t){var n=t.control,i=e.form.get(t.path);n!==i&&(Kb(n||null,t),i instanceof mk&&(Wb(i,t),t.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_setUpFormContainer",value:function(e){var t=this.form.get(e.path);Zb(t,e),t.updateValueAndValidity({emitEvent:!1})}},{key:"_cleanUpFormContainer",value:function(e){if(this.form){var t=this.form.get(e.path);t&&function(e,t){return Qb(e,t,!1)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}},{key:"_updateRegistrations",value:function(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){Gb(this.form,this,!1),this._oldForm&&Qb(this._oldForm,this,!1)}},{key:"_checkFormPresent",value:function(){}}]),n}(Vb)).\u0275fac=function(e){return new(e||pk)(i.Ob(Sb,10),i.Ob(xb,10))},pk.\u0275dir=i.Jb({type:pk,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&i.cc("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i.Cb([Ak]),i.Ab,i.Bb]}),pk),Dk=((dk=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||dk)},dk.\u0275mod=i.Mb({type:dk}),dk.\u0275inj=i.Lb({imports:[[Sk]]}),dk),Pk=((fk=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||fk)},fk.\u0275mod=i.Mb({type:fk}),fk.\u0275inj=i.Lb({imports:[Dk]}),fk),Ik=((hk=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"withConfig",value:function(t){return{ngModule:e,providers:[{provide:xk,useValue:t.warnOnNgModelWithFormControl}]}}}]),e}()).\u0275fac=function(e){return new(e||hk)},hk.\u0275mod=i.Mb({type:hk}),hk.\u0275inj=i.Lb({imports:[Dk]}),hk),Mk=["underline"],Lk=["connectionContainer"],jk=["inputContainer"],Fk=["label"];function Nk(e,t){1&e&&(i.Sb(0),i.Ub(1,"div",14),i.Pb(2,"div",15),i.Pb(3,"div",16),i.Pb(4,"div",17),i.Tb(),i.Ub(5,"div",18),i.Pb(6,"div",15),i.Pb(7,"div",16),i.Pb(8,"div",17),i.Tb(),i.Rb())}function Uk(e,t){1&e&&(i.Ub(0,"div",19),i.kc(1,1),i.Tb())}function Bk(e,t){if(1&e&&(i.Sb(0),i.kc(1,2),i.Ub(2,"span"),i.Fc(3),i.Tb(),i.Rb()),2&e){var n=i.gc(2);i.Db(3),i.Gc(n._control.placeholder)}}function Vk(e,t){1&e&&i.kc(0,3,["*ngSwitchCase","true"])}function Hk(e,t){1&e&&(i.Ub(0,"span",23),i.Fc(1," *"),i.Tb())}function zk(e,t){if(1&e){var n=i.Vb();i.Ub(0,"label",20,21),i.cc("cdkObserveContent",function(){return i.xc(n),i.gc().updateOutlineGap()}),i.Ec(2,Bk,4,1,"ng-container",12),i.Ec(3,Vk,1,0,"ng-content",12),i.Ec(4,Hk,2,0,"span",22),i.Tb()}if(2&e){var r=i.gc();i.Gb("mat-empty",r._control.empty&&!r._shouldAlwaysFloat())("mat-form-field-empty",r._control.empty&&!r._shouldAlwaysFloat())("mat-accent","accent"==r.color)("mat-warn","warn"==r.color),i.mc("cdkObserveContentDisabled","outline"!=r.appearance)("id",r._labelId)("ngSwitch",r._hasLabel()),i.Eb("for",r._control.id)("aria-owns",r._control.id),i.Db(2),i.mc("ngSwitchCase",!1),i.Db(1),i.mc("ngSwitchCase",!0),i.Db(1),i.mc("ngIf",!r.hideRequiredMarker&&r._control.required&&!r._control.disabled)}}function Yk(e,t){1&e&&(i.Ub(0,"div",24),i.kc(1,4),i.Tb())}function Wk(e,t){if(1&e&&(i.Ub(0,"div",25,26),i.Pb(2,"span",27),i.Tb()),2&e){var n=i.gc();i.Db(2),i.Gb("mat-accent","accent"==n.color)("mat-warn","warn"==n.color)}}function Kk(e,t){if(1&e&&(i.Ub(0,"div"),i.kc(1,5),i.Tb()),2&e){var n=i.gc();i.mc("@transitionMessages",n._subscriptAnimationState)}}function qk(e,t){if(1&e&&(i.Ub(0,"div",31),i.Fc(1),i.Tb()),2&e){var n=i.gc(2);i.mc("id",n._hintLabelId),i.Db(1),i.Gc(n.hintLabel)}}function Gk(e,t){if(1&e&&(i.Ub(0,"div",28),i.Ec(1,qk,2,2,"div",29),i.kc(2,6),i.Pb(3,"div",30),i.kc(4,7),i.Tb()),2&e){var n=i.gc();i.mc("@transitionMessages",n._subscriptAnimationState),i.Db(1),i.mc("ngIf",n.hintLabel)}}var Qk,Xk,Zk,Jk,$k,eC,tC,nC=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],iC=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],rC=new i.s("MatError"),aC={transitionMessages:mt("transitionMessages",[bt("enter",yt({opacity:1,transform:"translateY(0%)"})),Ct("void => enter",[yt({opacity:0,transform:"translateY(-5px)"}),_t("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},oC=((Qk=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Qk)},Qk.\u0275dir=i.Jb({type:Qk}),Qk),sC=0,lC=new i.s("MatHint"),cC=((Jk=function e(){_classCallCheck(this,e),this.align="start",this.id="mat-hint-"+sC++}).\u0275fac=function(e){return new(e||Jk)},Jk.\u0275dir=i.Jb({type:Jk,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,t){2&e&&(i.Eb("id",t.id)("align",null),i.Gb("mat-form-field-hint-end","end"===t.align))},inputs:{align:"align",id:"id"},features:[i.Cb([{provide:lC,useExisting:Jk}])]}),Jk),uC=((Zk=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Zk)},Zk.\u0275dir=i.Jb({type:Zk,selectors:[["mat-label"]]}),Zk),hC=((Xk=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Xk)},Xk.\u0275dir=i.Jb({type:Xk,selectors:[["mat-placeholder"]]}),Xk),fC=new i.s("MatPrefix"),dC=new i.s("MatSuffix"),pC=(($k=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||$k)},$k.\u0275dir=i.Jb({type:$k,selectors:[["","matSuffix",""]],features:[i.Cb([{provide:dC,useExisting:$k}])]}),$k),vC=0,mC=iv(function e(t){_classCallCheck(this,e),this._elementRef=t},"primary"),_C=new i.s("MAT_FORM_FIELD_DEFAULT_OPTIONS"),gC=new i.s("MatFormField"),yC=((tC=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,o,s,l,c){var u;return _classCallCheck(this,n),(u=t.call(this,e))._elementRef=e,u._changeDetectorRef=i,u._dir=a,u._defaults=o,u._platform=s,u._ngZone=l,u._outlineGapCalculationNeededImmediately=!1,u._outlineGapCalculationNeededOnStable=!1,u._destroyed=new Gi.a,u._showAlwaysAnimate=!1,u._subscriptAnimationState="",u._hintLabel="",u._hintLabelId="mat-hint-"+vC++,u._labelId="mat-form-field-label-"+vC++,u.floatLabel=u._getDefaultFloatLabelState(),u._animationsEnabled="NoopAnimations"!==c,u.appearance=o&&o.appearance?o.appearance:"legacy",u._hideRequiredMarker=!(!o||null==o.hideRequiredMarker)&&o.hideRequiredMarker,u}return _createClass(n,[{key:"appearance",get:function(){return this._appearance},set:function(e){var t=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}},{key:"hideRequiredMarker",get:function(){return this._hideRequiredMarker},set:function(e){this._hideRequiredMarker=cu(e)}},{key:"_shouldAlwaysFloat",value:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}},{key:"_canLabelFloat",value:function(){return"never"!==this.floatLabel}},{key:"hintLabel",get:function(){return this._hintLabel},set:function(e){this._hintLabel=e,this._processHints()}},{key:"floatLabel",get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}},{key:"_control",get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(e){this._explicitFormFieldControl=e}},{key:"getLabelId",value:function(){return this._hasFloatingLabel()?this._labelId:null}},{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var e=this;this._validateControlChild();var t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(t.controlType)),t.stateChanges.pipe(wa(null)).subscribe(function(){e._validatePlaceholders(),e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(Object(yc.a)(this._destroyed)).subscribe(function(){return e._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){e._ngZone.onStable.pipe(Object(yc.a)(e._destroyed)).subscribe(function(){e._outlineGapCalculationNeededOnStable&&e.updateOutlineGap()})}),Object(Ki.a)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){e._outlineGapCalculationNeededOnStable=!0,e._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(wa(null)).subscribe(function(){e._processHints(),e._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(wa(null)).subscribe(function(){e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Object(yc.a)(this._destroyed)).subscribe(function(){"function"==typeof requestAnimationFrame?e._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return e.updateOutlineGap()})}):e.updateOutlineGap()})}},{key:"ngAfterContentChecked",value:function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}},{key:"ngAfterViewInit",value:function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_shouldForward",value:function(e){var t=this._control?this._control.ngControl:null;return t&&t[e]}},{key:"_hasPlaceholder",value:function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}},{key:"_hasLabel",value:function(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}},{key:"_shouldLabelFloat",value:function(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}},{key:"_hideControlPlaceholder",value:function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}},{key:"_hasFloatingLabel",value:function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}},{key:"_getDisplayedMessages",value:function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}},{key:"_animateAndLockLabel",value:function(){var e=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,pc(this._label.nativeElement,"transitionend").pipe(Object(Cr.a)(1)).subscribe(function(){e._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push.apply(e,_toConsumableArray(this._control.userAriaDescribedBy.split(" "))),"hint"===this._getDisplayedMessages()){var t=this._hintChildren?this._hintChildren.find(function(e){return"start"===e.align}):null,n=this._hintChildren?this._hintChildren.find(function(e){return"end"===e.align}):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),n&&e.push(n.id)}else this._errorChildren&&e.push.apply(e,_toConsumableArray(this._errorChildren.map(function(e){return e.id})));this._control.setDescribedByIds(e)}}},{key:"_validateControlChild",value:function(){}},{key:"updateOutlineGap",value:function(){var e=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&e&&e.children.length&&e.textContent.trim()&&this._platform.isBrowser)if(this._isAttachedToDOM()){var t=0,n=0,i=this._connectionContainerRef.nativeElement,r=i.querySelectorAll(".mat-form-field-outline-start"),a=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var o=i.getBoundingClientRect();if(0===o.width&&0===o.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);for(var s=this._getStartEnd(o),l=e.children,c=this._getStartEnd(l[0].getBoundingClientRect()),u=0,h=0;h<l.length;h++)u+=l[h].offsetWidth;t=Math.abs(c-s)-5,n=u>0?.75*u+10:0}for(var f=0;f<r.length;f++)r[f].style.width="".concat(t,"px");for(var d=0;d<a.length;d++)a[d].style.width="".concat(n,"px");this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}else this._outlineGapCalculationNeededImmediately=!0}},{key:"_getStartEnd",value:function(e){return this._dir&&"rtl"===this._dir.value?e.right:e.left}},{key:"_isAttachedToDOM",value:function(){var e=this._elementRef.nativeElement;if(e.getRootNode){var t=e.getRootNode();return t&&t!==e}return document.documentElement.contains(e)}}]),n}(mC)).\u0275fac=function(e){return new(e||tC)(i.Ob(i.l),i.Ob(i.h),i.Ob(i.l),i.Ob(qu,8),i.Ob(_C,8),i.Ob($d),i.Ob(i.B),i.Ob(Hi,8))},tC.\u0275cmp=i.Ib({type:tC,selectors:[["mat-form-field"]],contentQueries:function(e,t,n){var r;1&e&&(i.Hb(n,oC,1),i.Hb(n,oC,3),i.Hb(n,uC,1),i.Hb(n,uC,3),i.Hb(n,hC,1),i.Hb(n,rC,1),i.Hb(n,lC,1),i.Hb(n,fC,1),i.Hb(n,dC,1)),2&e&&(i.sc(r=i.dc())&&(t._controlNonStatic=r.first),i.sc(r=i.dc())&&(t._controlStatic=r.first),i.sc(r=i.dc())&&(t._labelChildNonStatic=r.first),i.sc(r=i.dc())&&(t._labelChildStatic=r.first),i.sc(r=i.dc())&&(t._placeholderChild=r.first),i.sc(r=i.dc())&&(t._errorChildren=r),i.sc(r=i.dc())&&(t._hintChildren=r),i.sc(r=i.dc())&&(t._prefixChildren=r),i.sc(r=i.dc())&&(t._suffixChildren=r))},viewQuery:function(e,t){var n;1&e&&(i.Kc(Mk,1),i.Kc(Lk,3),i.Kc(jk,1),i.Kc(Fk,1)),2&e&&(i.sc(n=i.dc())&&(t.underlineRef=n.first),i.sc(n=i.dc())&&(t._connectionContainerRef=n.first),i.sc(n=i.dc())&&(t._inputContainerRef=n.first),i.sc(n=i.dc())&&(t._label=n.first))},hostAttrs:[1,"mat-form-field"],hostVars:40,hostBindings:function(e,t){2&e&&i.Gb("mat-form-field-appearance-standard","standard"==t.appearance)("mat-form-field-appearance-fill","fill"==t.appearance)("mat-form-field-appearance-outline","outline"==t.appearance)("mat-form-field-appearance-legacy","legacy"==t.appearance)("mat-form-field-invalid",t._control.errorState)("mat-form-field-can-float",t._canLabelFloat())("mat-form-field-should-float",t._shouldLabelFloat())("mat-form-field-has-label",t._hasFloatingLabel())("mat-form-field-hide-placeholder",t._hideControlPlaceholder())("mat-form-field-disabled",t._control.disabled)("mat-form-field-autofilled",t._control.autofilled)("mat-focused",t._control.focused)("ng-untouched",t._shouldForward("untouched"))("ng-touched",t._shouldForward("touched"))("ng-pristine",t._shouldForward("pristine"))("ng-dirty",t._shouldForward("dirty"))("ng-valid",t._shouldForward("valid"))("ng-invalid",t._shouldForward("invalid"))("ng-pending",t._shouldForward("pending"))("_mat-animation-noopable",!t._animationsEnabled)},inputs:{color:"color",floatLabel:"floatLabel",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[i.Cb([{provide:gC,useExisting:tC}]),i.Ab],ngContentSelectors:iC,decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],["underline",""],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(e,t){1&e&&(i.lc(nC),i.Ub(0,"div",0),i.Ub(1,"div",1,2),i.cc("click",function(e){return t._control.onContainerClick&&t._control.onContainerClick(e)}),i.Ec(3,Nk,9,0,"ng-container",3),i.Ec(4,Uk,2,0,"div",4),i.Ub(5,"div",5,6),i.kc(7),i.Ub(8,"span",7),i.Ec(9,zk,5,16,"label",8),i.Tb(),i.Tb(),i.Ec(10,Yk,2,0,"div",9),i.Tb(),i.Ec(11,Wk,3,4,"div",10),i.Ub(12,"div",11),i.Ec(13,Kk,2,1,"div",12),i.Ec(14,Gk,5,2,"div",13),i.Tb(),i.Tb()),2&e&&(i.Db(3),i.mc("ngIf","outline"==t.appearance),i.Db(1),i.mc("ngIf",t._prefixChildren.length),i.Db(5),i.mc("ngIf",t._hasFloatingLabel()),i.Db(1),i.mc("ngIf",t._suffixChildren.length),i.Db(1),i.mc("ngIf","outline"!=t.appearance),i.Db(1),i.mc("ngSwitch",t._getDisplayedMessages()),i.Db(1),i.mc("ngSwitchCase","error"),i.Db(1),i.mc("ngSwitchCase","hint"))},directives:[Z,ae,oe,hp],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:none;transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}\n",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}\n','.mat-input-element{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit;box-sizing:content-box}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element::-ms-clear,.mat-input-element::-ms-reveal{display:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:transparent;display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-ms-expand{display:none}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}select.mat-input-element::-ms-value{color:inherit;background:none}.mat-focused .cdk-high-contrast-active select.mat-input-element::-ms-value{color:inherit}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}\n',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px);-ms-transform:none}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}\n",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}\n",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}\n"],encapsulation:2,data:{animation:[aC.transitionMessages]},changeDetection:0}),tC),bC=((eC=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||eC)},eC.\u0275mod=i.Mb({type:eC}),eC.\u0275inj=i.Lb({imports:[[Ce,tv,fp],tv]}),eC),kC=["panel"];function CC(e,t){if(1&e&&(i.Ub(0,"div",0,1),i.kc(2),i.Tb()),2&e){var n=t.id,r=i.gc();i.mc("id",r.id)("ngClass",r._classList),i.Eb("aria-label",r.ariaLabel||null)("aria-labelledby",r._getPanelAriaLabelledby(n))}}var wC,OC,SC,xC,EC,TC=["*"],AC=0,RC=function e(t,n){_classCallCheck(this,e),this.source=t,this.option=n},DC=rv(function e(){_classCallCheck(this,e)}),PC=new i.s("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}}),IC=((OC=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,a,o){var s;return _classCallCheck(this,n),(s=t.call(this))._changeDetectorRef=e,s._elementRef=r,s._activeOptionChanges=lr.a.EMPTY,s.showPanel=!1,s._isOpen=!1,s.displayWith=null,s.optionSelected=new i.o,s.opened=new i.o,s.closed=new i.o,s.optionActivated=new i.o,s._classList={},s.id="mat-autocomplete-"+AC++,s.inertGroups=(null==o?void 0:o.SAFARI)||!1,s._autoActiveFirstOption=!!a.autoActiveFirstOption,s}return _createClass(n,[{key:"isOpen",get:function(){return this._isOpen&&this.showPanel}},{key:"autoActiveFirstOption",get:function(){return this._autoActiveFirstOption},set:function(e){this._autoActiveFirstOption=cu(e)}},{key:"classList",set:function(e){this._classList=e&&e.length?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\s+/,n=[];if(null!=e){var i,r=Array.isArray(e)?e:"".concat(e).split(t),a=_createForOfIteratorHelper(r);try{for(a.s();!(i=a.n()).done;){var o=i.value,s="".concat(o).trim();s&&n.push(s)}}catch(l){a.e(l)}finally{a.f()}}return n}(e).reduce(function(e,t){return e[t]=!0,e},{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}},{key:"ngAfterContentInit",value:function(){var e=this;this._keyManager=new wp(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(function(t){e.optionActivated.emit({source:e,option:e.options.toArray()[t]||null})}),this._setVisibility()}},{key:"ngOnDestroy",value:function(){this._activeOptionChanges.unsubscribe()}},{key:"_setScrollTop",value:function(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}},{key:"_getScrollTop",value:function(){return this.panel?this.panel.nativeElement.scrollTop:0}},{key:"_setVisibility",value:function(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}},{key:"_emitSelectEvent",value:function(e){var t=new RC(this,e);this.optionSelected.emit(t)}},{key:"_getPanelAriaLabelledby",value:function(e){return this.ariaLabel?null:this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}},{key:"_setVisibilityClasses",value:function(e){e[this._visibleClass]=this.showPanel,e[this._hiddenClass]=!this.showPanel}}]),n}(DC)).\u0275fac=function(e){return new(e||OC)(i.Ob(i.h),i.Ob(i.l),i.Ob(PC),i.Ob($d))},OC.\u0275dir=i.Jb({type:OC,viewQuery:function(e,t){var n;1&e&&(i.Kc(i.O,3),i.Kc(kC,1)),2&e&&(i.sc(n=i.dc())&&(t.template=n.first),i.sc(n=i.dc())&&(t.panel=n.first))},inputs:{displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",classList:["class","classList"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],panelWidth:"panelWidth"},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[i.Ab]}),OC),MC=((wC=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments))._visibleClass="mat-autocomplete-visible",e._hiddenClass="mat-autocomplete-hidden",e}return n}(IC)).\u0275fac=function(e){return LC(e||wC)},wC.\u0275cmp=i.Ib({type:wC,selectors:[["mat-autocomplete"]],contentQueries:function(e,t,n){var r;1&e&&(i.Hb(n,Pv,1),i.Hb(n,jv,1)),2&e&&(i.sc(r=i.dc())&&(t.optionGroups=r),i.sc(r=i.dc())&&(t.options=r))},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[i.Cb([{provide:Tv,useExisting:wC}]),i.Ab],ngContentSelectors:TC,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(e,t){1&e&&(i.lc(),i.Ec(0,CC,3,4,"ng-template"))},directives:[q],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}\n"],encapsulation:2,changeDetection:0}),wC),LC=i.Wb(MC),jC=new i.s("mat-autocomplete-scroll-strategy"),FC={provide:jC,deps:[m_],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},NC={provide:kb,useExisting:Object(i.W)(function(){return BC}),multi:!0},UC=((xC=function(){function e(t,n,i,r,a,o,s,l,c,u,h){var f=this;_classCallCheck(this,e),this._element=t,this._overlay=n,this._viewContainerRef=i,this._zone=r,this._changeDetectorRef=a,this._dir=s,this._formField=l,this._document=c,this._viewportRuler=u,this._defaults=h,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=lr.a.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new Gi.a,this._windowBlurHandler=function(){f._canOpenOnNextFocus=f._document.activeElement!==f._element.nativeElement||f.panelOpen},this._onChange=function(){},this._onTouched=function(){},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=Zi(function(){return f.autocomplete&&f.autocomplete.options?Object(Ki.a).apply(void 0,_toConsumableArray(f.autocomplete.options.map(function(e){return e.onSelectionChange}))):f._zone.onStable.pipe(Object(Cr.a)(1),Object(Ca.a)(function(){return f.optionSelections}))}),this._scrollStrategy=o}return _createClass(e,[{key:"autocompleteDisabled",get:function(){return this._autocompleteDisabled},set:function(e){this._autocompleteDisabled=cu(e)}},{key:"ngAfterViewInit",value:function(){var e=this,t=this._getWindow();void 0!==t&&this._zone.runOutsideAngular(function(){return t.addEventListener("blur",e._windowBlurHandler)})}},{key:"ngOnChanges",value:function(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}},{key:"ngOnDestroy",value:function(){var e=this._getWindow();void 0!==e&&e.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}},{key:"panelOpen",get:function(){return this._overlayAttached&&this.autocomplete.showPanel}},{key:"openPanel",value:function(){this._attachOverlay(),this._floatLabel()}},{key:"closePanel",value:function(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}},{key:"updatePosition",value:function(){this._overlayAttached&&this._overlayRef.updatePosition()}},{key:"panelClosingActions",get:function(){var e=this;return Object(Ki.a)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Object(sr.a)(function(){return e._overlayAttached})),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Object(sr.a)(function(){return e._overlayAttached})):Object($i.a)()).pipe(Object(ar.a)(function(e){return e instanceof Mv?e:null}))}},{key:"activeOption",get:function(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}},{key:"_getOutsideClickStream",value:function(){var e=this;return Object(Ki.a)(pc(this._document,"click"),pc(this._document,"auxclick"),pc(this._document,"touchend")).pipe(Object(sr.a)(function(t){var n=e._isInsideShadowRoot&&t.composedPath?t.composedPath()[0]:t.target,i=e._formField?e._formField._elementRef.nativeElement:null,r=e.connectedTo?e.connectedTo.elementRef.nativeElement:null;return e._overlayAttached&&n!==e._element.nativeElement&&(!i||!i.contains(n))&&(!r||!r.contains(n))&&!!e._overlayRef&&!e._overlayRef.overlayElement.contains(n)}))}},{key:"writeValue",value:function(e){var t=this;Promise.resolve(null).then(function(){return t._setTriggerValue(e)})}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this._element.nativeElement.disabled=e}},{key:"_handleKeydown",value:function(e){var t=e.keyCode;if(27!==t||Kd(e)||e.preventDefault(),this.activeOption&&13===t&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){var n=this.autocomplete._keyManager.activeItem,i=38===t||40===t;this.panelOpen||9===t?this.autocomplete._keyManager.onKeydown(e):i&&this._canOpen()&&this.openPanel(),(i||this.autocomplete._keyManager.activeItem!==n)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}},{key:"_handleInput",value:function(e){var t=e.target,n=t.value;"number"===t.type&&(n=""==n?null:parseFloat(n)),this._previousValue!==n&&(this._previousValue=n,this._onChange(n),this._canOpen()&&this._document.activeElement===e.target&&this.openPanel())}},{key:"_handleFocus",value:function(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}},{key:"_floatLabel",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._formField&&"auto"===this._formField.floatLabel&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}},{key:"_resetLabel",value:function(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}},{key:"_subscribeToClosingActions",value:function(){var e=this,t=this._zone.onStable.pipe(Object(Cr.a)(1)),n=this.autocomplete.options.changes.pipe(Ba(function(){return e._positionStrategy.reapplyLastPosition()}),Zv(0));return Object(Ki.a)(t,n).pipe(Object(Ca.a)(function(){var t=e.panelOpen;return e._resetActiveItem(),e.autocomplete._setVisibility(),e.panelOpen&&(e._overlayRef.updatePosition(),t!==e.panelOpen&&e.autocomplete.opened.emit()),e.panelClosingActions}),Object(Cr.a)(1)).subscribe(function(t){return e._setValueAndClose(t)})}},{key:"_destroyPanel",value:function(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}},{key:"_setTriggerValue",value:function(e){var t=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(e):e,n=null!=t?t:"";this._formField?this._formField._control.value=n:this._element.nativeElement.value=n,this._previousValue=n}},{key:"_setValueAndClose",value:function(e){e&&e.source&&(this._clearPreviousSelectedOption(e.source),this._setTriggerValue(e.source.value),this._onChange(e.source.value),this._element.nativeElement.focus(),this.autocomplete._emitSelectEvent(e.source)),this.closePanel()}},{key:"_clearPreviousSelectedOption",value:function(e){this.autocomplete.options.forEach(function(t){t!==e&&t.selected&&t.deselect()})}},{key:"_attachOverlay",value:function(){var e,t=this;null==this._isInsideShadowRoot&&(this._isInsideShadowRoot=!!rp(this._element.nativeElement));var n=this._overlayRef;n?(this._positionStrategy.setOrigin(this._getConnectedElement()),n.updateSize({width:this._getPanelWidth()})):(this._portal=new am(this.autocomplete.template,this._viewContainerRef,{id:null===(e=this._formField)||void 0===e?void 0:e.getLabelId()}),n=this._overlay.create(this._getOverlayConfig()),this._overlayRef=n,n.keydownEvents().subscribe(function(e){(27===e.keyCode&&!Kd(e)||38===e.keyCode&&Kd(e,"altKey"))&&(t._resetActiveItem(),t._closeKeyEventStream.next(),e.stopPropagation(),e.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(function(){t.panelOpen&&n&&n.updateSize({width:t._getPanelWidth()})})),n&&!n.hasAttached()&&(n.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());var i=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&i!==this.panelOpen&&this.autocomplete.opened.emit()}},{key:"_getOverlayConfig",value:function(){var e;return new qm({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(e=this._defaults)||void 0===e?void 0:e.overlayPanelClass})}},{key:"_getOverlayPosition",value:function(){var e=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}},{key:"_setStrategyPositions",value:function(e){var t,n=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],i=this._aboveClass,r=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:i},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:i}];t="above"===this.position?r:"below"===this.position?n:[].concat(n,r),e.withPositions(t)}},{key:"_getConnectedElement",value:function(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}},{key:"_getPanelWidth",value:function(){return this.autocomplete.panelWidth||this._getHostWidth()}},{key:"_getHostWidth",value:function(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}},{key:"_resetActiveItem",value:function(){var e=this.autocomplete;e.autoActiveFirstOption?e._keyManager.setFirstItemActive():e._keyManager.setActiveItem(-1)}},{key:"_canOpen",value:function(){var e=this._element.nativeElement;return!e.readOnly&&!e.disabled&&!this._autocompleteDisabled}},{key:"_getWindow",value:function(){var e;return(null===(e=this._document)||void 0===e?void 0:e.defaultView)||window}},{key:"_scrollToOption",value:function(e){var t=this.autocomplete,n=Fv(e,t.options,t.optionGroups);if(0===e&&1===n)t._setScrollTop(0);else if(t.panel){var i=t.options.toArray()[e];if(i){var r=i._getHostElement(),a=Nv(r.offsetTop,r.offsetHeight,t._getScrollTop(),t.panel.nativeElement.offsetHeight);t._setScrollTop(a)}}}}]),e}()).\u0275fac=function(e){return new(e||xC)(i.Ob(i.l),i.Ob(m_),i.Ob(i.S),i.Ob(i.B),i.Ob(i.h),i.Ob(jC),i.Ob(qu,8),i.Ob(gC,9),i.Ob(s,8),i.Ob(Am),i.Ob(PC,8))},xC.\u0275dir=i.Jb({type:xC,inputs:{position:["matAutocompletePosition","position"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"],autocomplete:["matAutocomplete","autocomplete"],connectedTo:["matAutocompleteConnectedTo","connectedTo"]},features:[i.Bb]}),xC),BC=((SC=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments))._aboveClass="mat-autocomplete-panel-above",e}return n}(UC)).\u0275fac=function(e){return VC(e||SC)},SC.\u0275dir=i.Jb({type:SC,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(e,t){1&e&&i.cc("focusin",function(){return t._handleFocus()})("blur",function(){return t._onTouched()})("input",function(e){return t._handleInput(e)})("keydown",function(e){return t._handleKeydown(e)}),2&e&&i.Eb("autocomplete",t.autocompleteAttribute)("role",t.autocompleteDisabled?null:"combobox")("aria-autocomplete",t.autocompleteDisabled?null:"list")("aria-activedescendant",t.panelOpen&&t.activeOption?t.activeOption.id:null)("aria-expanded",t.autocompleteDisabled?null:t.panelOpen.toString())("aria-owns",t.autocompleteDisabled||!t.panelOpen||null==t.autocomplete?null:t.autocomplete.id)("aria-haspopup",!t.autocompleteDisabled)},exportAs:["matAutocompleteTrigger"],features:[i.Cb([NC]),i.Ab]}),SC),VC=i.Wb(BC),HC=((EC=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||EC)},EC.\u0275mod=i.Mb({type:EC}),EC.\u0275inj=i.Lb({providers:[FC],imports:[[C_,Hv,tv,Ce],Rm,Hv,tv]}),EC);function zC(e,t){}var YC,WC,KC=function e(){_classCallCheck(this,e),this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0},qC={dialogContainer:mt("dialogContainer",[bt("void, exit",yt({opacity:0,transform:"scale(0.7)"})),bt("enter",yt({transform:"none"})),Ct("* => enter",_t("150ms cubic-bezier(0, 0, 0.2, 1)",yt({transform:"none",opacity:1}))),Ct("* => void, * => exit",_t("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",yt({opacity:0})))])},GC=((WC=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,a,o,s,l){var c;return _classCallCheck(this,n),(c=t.call(this))._elementRef=e,c._focusTrapFactory=r,c._changeDetectorRef=a,c._config=s,c._focusMonitor=l,c._animationStateChanged=new i.o,c._elementFocusedBeforeDialogWasOpened=null,c._closeInteractionType=null,c.attachDomPortal=function(e){return c._portalOutlet.hasAttached(),c._portalOutlet.attachDomPortal(e)},c._ariaLabelledBy=s.ariaLabelledBy||null,c._document=o,c}return _createClass(n,[{key:"_initializeWithAttachedContent",value:function(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}},{key:"attachComponentPortal",value:function(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(e)}},{key:"attachTemplatePortal",value:function(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(e)}},{key:"_recaptureFocus",value:function(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}},{key:"_trapFocus",value:function(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}},{key:"_restoreFocus",value:function(){var e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){var t=this._getActiveElement(),n=this._elementRef.nativeElement;t&&t!==this._document.body&&t!==n&&!n.contains(t)||(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}},{key:"_setupFocusTrap",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}},{key:"_capturePreviouslyFocusedElement",value:function(){this._document&&(this._elementFocusedBeforeDialogWasOpened=this._getActiveElement())}},{key:"_focusDialogContainer",value:function(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}},{key:"_containsFocus",value:function(){var e=this._elementRef.nativeElement,t=this._getActiveElement();return e===t||e.contains(t)}},{key:"_getActiveElement",value:function(){var e,t=this._document.activeElement;return(null===(e=null==t?void 0:t.shadowRoot)||void 0===e?void 0:e.activeElement)||t}}]),n}(sm)).\u0275fac=function(e){return new(e||WC)(i.Ob(i.l),i.Ob(Rp),i.Ob(i.h),i.Ob(s,8),i.Ob(KC),i.Ob(Bp))},WC.\u0275dir=i.Jb({type:WC,viewQuery:function(e,t){var n;1&e&&i.Kc(cm,3),2&e&&i.sc(n=i.dc())&&(t._portalOutlet=n.first)},features:[i.Ab]}),WC),QC=((YC=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments))._state="enter",e}return _createClass(n,[{key:"_onAnimationDone",value:function(e){var t=e.toState,n=e.totalTime;"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:n})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:n}))}},{key:"_onAnimationStart",value:function(e){var t=e.toState,n=e.totalTime;"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:n}):"exit"!==t&&"void"!==t||this._animationStateChanged.next({state:"closing",totalTime:n})}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}}]),n}(GC)).\u0275fac=function(e){return XC(e||YC)},YC.\u0275cmp=i.Ib({type:YC,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,t){1&e&&i.Cc("@dialogContainer.start",function(e){return t._onAnimationStart(e)})("@dialogContainer.done",function(e){return t._onAnimationDone(e)}),2&e&&(i.Xb("id",t._id),i.Eb("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),i.Dc("@dialogContainer",t._state))},features:[i.Ab],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&i.Ec(0,zC,0,0,"ng-template",0)},directives:[cm],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[qC.dialogContainer]}}),YC),XC=i.Wb(QC),ZC=0,JC=function(){function e(t,n){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-"+ZC++;_classCallCheck(this,e),this._overlayRef=t,this._containerInstance=n,this.id=r,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new Gi.a,this._afterClosed=new Gi.a,this._beforeClosed=new Gi.a,this._state=0,n._id=r,n._animationStateChanged.pipe(Object(sr.a)(function(e){return"opened"===e.state}),Object(Cr.a)(1)).subscribe(function(){i._afterOpened.next(),i._afterOpened.complete()}),n._animationStateChanged.pipe(Object(sr.a)(function(e){return"closed"===e.state}),Object(Cr.a)(1)).subscribe(function(){clearTimeout(i._closeFallbackTimeout),i._finishDialogClose()}),t.detachments().subscribe(function(){i._beforeClosed.next(i._result),i._beforeClosed.complete(),i._afterClosed.next(i._result),i._afterClosed.complete(),i.componentInstance=null,i._overlayRef.dispose()}),t.keydownEvents().pipe(Object(sr.a)(function(e){return 27===e.keyCode&&!i.disableClose&&!Kd(e)})).subscribe(function(e){e.preventDefault(),$C(i,"keyboard")}),t.backdropClick().subscribe(function(){i.disableClose?i._containerInstance._recaptureFocus():$C(i,"mouse")})}return _createClass(e,[{key:"close",value:function(e){var t=this;this._result=e,this._containerInstance._animationStateChanged.pipe(Object(sr.a)(function(e){return"closing"===e.state}),Object(Cr.a)(1)).subscribe(function(n){t._beforeClosed.next(e),t._beforeClosed.complete(),t._overlayRef.detachBackdrop(),t._closeFallbackTimeout=setTimeout(function(){return t._finishDialogClose()},n.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}},{key:"afterOpened",value:function(){return this._afterOpened}},{key:"afterClosed",value:function(){return this._afterClosed}},{key:"beforeClosed",value:function(){return this._beforeClosed}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}},{key:"updatePosition",value:function(e){var t=this._getPositionStrategy();return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this._overlayRef.updatePosition(),this}},{key:"updateSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._overlayRef.updateSize({width:e,height:t}),this._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(e){return this._overlayRef.addPanelClass(e),this}},{key:"removePanelClass",value:function(e){return this._overlayRef.removePanelClass(e),this}},{key:"getState",value:function(){return this._state}},{key:"_finishDialogClose",value:function(){this._state=2,this._overlayRef.dispose()}},{key:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}]),e}();function $C(e,t,n){return void 0!==e._containerInstance&&(e._containerInstance._closeInteractionType=t),e.close(n)}var ew,tw,nw,iw,rw,aw,ow=new i.s("MatDialogData"),sw=new i.s("mat-dialog-default-options"),lw=new i.s("mat-dialog-scroll-strategy"),cw={provide:lw,deps:[m_],useFactory:function(e){return function(){return e.scrollStrategies.block()}}},uw=((aw=function(){function e(t,n,i,r,a,o,s,l,c){var u=this;_classCallCheck(this,e),this._overlay=t,this._injector=n,this._defaultOptions=i,this._parentDialog=r,this._overlayContainer=a,this._dialogRefConstructor=s,this._dialogContainerType=l,this._dialogDataToken=c,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Gi.a,this._afterOpenedAtThisLevel=new Gi.a,this._ariaHiddenElements=new Map,this.afterAllClosed=Zi(function(){return u.openDialogs.length?u._getAfterAllClosed():u._getAfterAllClosed().pipe(wa(void 0))}),this._scrollStrategy=o}return _createClass(e,[{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}},{key:"_getAfterAllClosed",value:function(){var e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}},{key:"open",value:function(e,t){var n=this;(t=function(e,t){return Object.assign(Object.assign({},t),e)}(t,this._defaultOptions||new KC)).id&&this.getDialogById(t.id);var i=this._createOverlay(t),r=this._attachDialogContainer(i,t),a=this._attachDialogContent(e,r,i,t);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(a),a.afterClosed().subscribe(function(){return n._removeOpenDialog(a)}),this.afterOpened.next(a),r._initializeWithAttachedContent(),a}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(e){return this.openDialogs.find(function(t){return t.id===e})}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_createOverlay",value:function(e){var t=this._getOverlayConfig(e);return this._overlay.create(t)}},{key:"_getOverlayConfig",value:function(e){var t=new qm({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}},{key:"_attachDialogContainer",value:function(e,t){var n=i.t.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:KC,useValue:t}]}),r=new rm(this._dialogContainerType,t.viewContainerRef,n,t.componentFactoryResolver);return e.attach(r).instance}},{key:"_attachDialogContent",value:function(e,t,n,r){var a=new this._dialogRefConstructor(n,t,r.id);if(e instanceof i.O)t.attachTemplatePortal(new am(e,null,{$implicit:r.data,dialogRef:a}));else{var o=this._createInjector(r,a,t),s=t.attachComponentPortal(new rm(e,r.viewContainerRef,o));a.componentInstance=s.instance}return a.updateSize(r.width,r.height).updatePosition(r.position),a}},{key:"_createInjector",value:function(e,t,n){var r=e&&e.viewContainerRef&&e.viewContainerRef.injector,a=[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:t}];return!e.direction||r&&r.get(qu,null)||a.push({provide:qu,useValue:{value:e.direction,change:Object($i.a)()}}),i.t.create({parent:r||this._injector,providers:a})}},{key:"_removeOpenDialog",value:function(e){var t=this.openDialogs.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(e,t){e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var e=this._overlayContainer.getContainerElement();if(e.parentElement)for(var t=e.parentElement.children,n=t.length-1;n>-1;n--){var i=t[n];i===e||"SCRIPT"===i.nodeName||"STYLE"===i.nodeName||i.hasAttribute("aria-live")||(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}},{key:"_closeDialogs",value:function(e){for(var t=e.length;t--;)e[t].close()}}]),e}()).\u0275fac=function(e){return new(e||aw)(i.Ob(m_),i.Ob(i.t),i.Ob(void 0),i.Ob(void 0),i.Ob(e_),i.Ob(void 0),i.Ob(i.Q),i.Ob(i.Q),i.Ob(i.s))},aw.\u0275dir=i.Jb({type:aw}),aw),hw=((rw=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,o,s,l){return _classCallCheck(this,n),t.call(this,e,i,a,s,l,o,JC,QC,ow)}return n}(uw)).\u0275fac=function(e){return new(e||rw)(i.Yb(m_),i.Yb(i.t),i.Yb(E,8),i.Yb(sw,8),i.Yb(lw),i.Yb(rw,12),i.Yb(e_))},rw.\u0275prov=i.Kb({token:rw,factory:rw.\u0275fac}),rw),fw=0,dw=((iw=function(){function e(t,n,i){_classCallCheck(this,e),this.dialogRef=t,this._elementRef=n,this._dialog=i,this.type="button"}return _createClass(e,[{key:"ngOnInit",value:function(){this.dialogRef||(this.dialogRef=_w(this._elementRef,this._dialog.openDialogs))}},{key:"ngOnChanges",value:function(e){var t=e._matDialogClose||e._matDialogCloseResult;t&&(this.dialogResult=t.currentValue)}},{key:"_onButtonClick",value:function(e){$C(this.dialogRef,0===e.screenX&&0===e.screenY?"keyboard":"mouse",this.dialogResult)}}]),e}()).\u0275fac=function(e){return new(e||iw)(i.Ob(JC,8),i.Ob(i.l),i.Ob(hw))},iw.\u0275dir=i.Jb({type:iw,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(e,t){1&e&&i.cc("click",function(e){return t._onButtonClick(e)}),2&e&&i.Eb("aria-label",t.ariaLabel||null)("type",t.type)},inputs:{type:"type",dialogResult:["mat-dialog-close","dialogResult"],ariaLabel:["aria-label","ariaLabel"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[i.Bb]}),iw),pw=((nw=function(){function e(t,n,i){_classCallCheck(this,e),this._dialogRef=t,this._elementRef=n,this._dialog=i,this.id="mat-dialog-title-"+fw++}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this._dialogRef||(this._dialogRef=_w(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(function(){var t=e._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=e.id)})}}]),e}()).\u0275fac=function(e){return new(e||nw)(i.Ob(JC,8),i.Ob(i.l),i.Ob(hw))},nw.\u0275dir=i.Jb({type:nw,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&i.Xb("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),nw),vw=((tw=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||tw)},tw.\u0275dir=i.Jb({type:tw,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),tw),mw=((ew=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||ew)},ew.\u0275dir=i.Jb({type:ew,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),ew);function _w(e,t){for(var n=e.nativeElement.parentElement;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?t.find(function(e){return e.id===n.id}):null}var gw,yw,bw,kw,Cw,ww=((gw=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||gw)},gw.\u0275mod=i.Mb({type:gw}),gw.\u0275inj=i.Lb({providers:[hw,cw],imports:[[C_,um,tv],tv]}),gw),Ow=ip({passive:!0}),Sw=((bw=function(){function e(t,n){_classCallCheck(this,e),this._platform=t,this._ngZone=n,this._monitoredElements=new Map}return _createClass(e,[{key:"monitor",value:function(e){var t=this;if(!this._platform.isBrowser)return Xi.a;var n=pu(e),i=this._monitoredElements.get(n);if(i)return i.subject;var r=new Gi.a,a="cdk-text-field-autofilled",o=function(e){"cdk-text-field-autofill-start"!==e.animationName||n.classList.contains(a)?"cdk-text-field-autofill-end"===e.animationName&&n.classList.contains(a)&&(n.classList.remove(a),t._ngZone.run(function(){return r.next({target:e.target,isAutofilled:!1})})):(n.classList.add(a),t._ngZone.run(function(){return r.next({target:e.target,isAutofilled:!0})}))};return this._ngZone.runOutsideAngular(function(){n.addEventListener("animationstart",o,Ow),n.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(n,{subject:r,unlisten:function(){n.removeEventListener("animationstart",o,Ow)}}),r}},{key:"stopMonitoring",value:function(e){var t=pu(e),n=this._monitoredElements.get(t);n&&(n.unlisten(),n.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}},{key:"ngOnDestroy",value:function(){var e=this;this._monitoredElements.forEach(function(t,n){return e.stopMonitoring(n)})}}]),e}()).\u0275fac=function(e){return new(e||bw)(i.Yb($d),i.Yb(i.B))},bw.\u0275prov=Object(i.Kb)({factory:function(){return new bw(Object(i.Yb)($d),Object(i.Yb)(i.B))},token:bw,providedIn:"root"}),bw),xw=((yw=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||yw)},yw.\u0275mod=i.Mb({type:yw}),yw.\u0275inj=i.Lb({imports:[[ep]]}),yw),Ew=new i.s("MAT_INPUT_VALUE_ACCESSOR"),Tw=["button","checkbox","file","hidden","image","radio","range","reset","submit"],Aw=0,Rw=ov(function e(t,n,i,r){_classCallCheck(this,e),this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=i,this.ngControl=r}),Dw=((Cw=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,o,s,l,c,u,h){var f;_classCallCheck(this,n),(f=t.call(this,s,a,o,r))._elementRef=e,f._platform=i,f.ngControl=r,f._autofillMonitor=c,f._formField=h,f._uid="mat-input-"+Aw++,f.focused=!1,f.stateChanges=new Gi.a,f.controlType="mat-input",f.autofilled=!1,f._disabled=!1,f._required=!1,f._type="text",f._readonly=!1,f._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(function(e){return np().has(e)});var d=f._elementRef.nativeElement,p=d.nodeName.toLowerCase();return f._inputValueAccessor=l||d,f._previousNativeValue=f.value,f.id=f.id,i.IOS&&u.runOutsideAngular(function(){e.nativeElement.addEventListener("keyup",function(e){var t=e.target;t.value||t.selectionStart||t.selectionEnd||(t.setSelectionRange(1,1),t.setSelectionRange(0,0))})}),f._isServer=!f._platform.isBrowser,f._isNativeSelect="select"===p,f._isTextarea="textarea"===p,f._isNativeSelect&&(f.controlType=d.multiple?"mat-native-select-multiple":"mat-native-select"),f}return _createClass(n,[{key:"disabled",get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(e){this._disabled=cu(e),this.focused&&(this.focused=!1,this.stateChanges.next())}},{key:"id",get:function(){return this._id},set:function(e){this._id=e||this._uid}},{key:"required",get:function(){return this._required},set:function(e){this._required=cu(e)}},{key:"type",get:function(){return this._type},set:function(e){this._type=e||"text",this._validateType(),!this._isTextarea&&np().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}},{key:"value",get:function(){return this._inputValueAccessor.value},set:function(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}},{key:"readonly",get:function(){return this._readonly},set:function(e){this._readonly=cu(e)}},{key:"ngAfterViewInit",value:function(){var e=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(function(t){e.autofilled=t.isAutofilled,e.stateChanges.next()})}},{key:"ngOnChanges",value:function(){this.stateChanges.next()}},{key:"ngOnDestroy",value:function(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}},{key:"ngDoCheck",value:function(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}},{key:"focus",value:function(e){this._elementRef.nativeElement.focus(e)}},{key:"_focusChanged",value:function(e){e===this.focused||this.readonly&&e||(this.focused=e,this.stateChanges.next())}},{key:"_onInput",value:function(){}},{key:"_dirtyCheckPlaceholder",value:function(){var e,t,n=(null===(t=null===(e=this._formField)||void 0===e?void 0:e._hideControlPlaceholder)||void 0===t?void 0:t.call(e))?null:this.placeholder;if(n!==this._previousPlaceholder){var i=this._elementRef.nativeElement;this._previousPlaceholder=n,n?i.setAttribute("placeholder",n):i.removeAttribute("placeholder")}}},{key:"_dirtyCheckNativeValue",value:function(){var e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}},{key:"_validateType",value:function(){Tw.indexOf(this._type)}},{key:"_isNeverEmpty",value:function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}},{key:"_isBadInput",value:function(){var e=this._elementRef.nativeElement.validity;return e&&e.badInput}},{key:"empty",get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"shouldLabelFloat",get:function(){if(this._isNativeSelect){var e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}},{key:"setDescribedByIds",value:function(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}},{key:"onContainerClick",value:function(){this.focused||this.focus()}}]),n}(Rw)).\u0275fac=function(e){return new(e||Cw)(i.Ob(i.l),i.Ob($d),i.Ob(zb,10),i.Ob(kk,8),i.Ob(Rk,8),i.Ob(mv),i.Ob(Ew,10),i.Ob(Sw),i.Ob(i.B),i.Ob(gC,8))},Cw.\u0275dir=i.Jb({type:Cw,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(e,t){1&e&&i.cc("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(i.Xb("disabled",t.disabled)("required",t.required),i.Eb("id",t.id)("data-placeholder",t.placeholder)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.errorState&&!t.empty)("aria-required",t.required),i.Gb("mat-input-server",t._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[i.Cb([{provide:oC,useExisting:Cw}]),i.Ab,i.Bb]}),Cw),Pw=((kw=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||kw)},kw.\u0275mod=i.Mb({type:kw}),kw.\u0275inj=i.Lb({providers:[mv],imports:[[xw,bC,tv],xw,bC]}),kw),Iw=["trigger"],Mw=["panel"];function Lw(e,t){if(1&e&&(i.Ub(0,"span",8),i.Fc(1),i.Tb()),2&e){var n=i.gc();i.Db(1),i.Gc(n.placeholder)}}function jw(e,t){if(1&e&&(i.Ub(0,"span",12),i.Fc(1),i.Tb()),2&e){var n=i.gc(2);i.Db(1),i.Gc(n.triggerValue)}}function Fw(e,t){1&e&&i.kc(0,0,["*ngSwitchCase","true"])}function Nw(e,t){if(1&e&&(i.Ub(0,"span",9),i.Ec(1,jw,2,1,"span",10),i.Ec(2,Fw,1,0,"ng-content",11),i.Tb()),2&e){var n=i.gc();i.mc("ngSwitch",!!n.customTrigger),i.Db(2),i.mc("ngSwitchCase",!0)}}function Uw(e,t){if(1&e){var n=i.Vb();i.Ub(0,"div",13),i.Ub(1,"div",14,15),i.cc("@transformPanel.done",function(e){return i.xc(n),i.gc()._panelDoneAnimatingStream.next(e.toState)})("keydown",function(e){return i.xc(n),i.gc()._handleKeydown(e)}),i.kc(3,1),i.Tb(),i.Tb()}if(2&e){var r=i.gc();i.mc("@transformPanelWrap",void 0),i.Db(1),i.Fb("mat-select-panel ",r._getPanelTheme(),""),i.Bc("transform-origin",r._transformOrigin)("font-size",r._triggerFontSize,"px"),i.mc("ngClass",r.panelClass)("@transformPanel",r.multiple?"showing-multiple":"showing"),i.Eb("id",r.id+"-panel")("aria-multiselectable",r.multiple)("aria-label",r.ariaLabel||null)("aria-labelledby",r._getPanelAriaLabelledby())}}var Bw,Vw,Hw,zw,Yw,Ww=[[["mat-select-trigger"]],"*"],Kw=["mat-select-trigger","*"],qw={transformPanelWrap:mt("transformPanelWrap",[Ct("* => void",Ot("@transformPanel",[wt()],{optional:!0}))]),transformPanel:mt("transformPanel",[bt("void",yt({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),bt("showing",yt({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),bt("showing-multiple",yt({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Ct("void => *",_t("120ms cubic-bezier(0, 0, 0.2, 1)")),Ct("* => void",_t("100ms 25ms linear",yt({opacity:0})))])},Gw=0,Qw=new i.s("mat-select-scroll-strategy"),Xw=new i.s("MAT_SELECT_CONFIG"),Zw={provide:Qw,deps:[m_],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},Jw=function e(t,n){_classCallCheck(this,e),this.source=t,this.value=n},$w=rv(av(nv(ov(function e(t,n,i,r,a){_classCallCheck(this,e),this._elementRef=t,this._defaultErrorStateMatcher=n,this._parentForm=i,this._parentFormGroup=r,this.ngControl=a})))),eO=new i.s("MatSelectTrigger"),tO=((Vw=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,a,o,s,l,c,u,h,f,d,p,v,m){var _,g,y,b;return _classCallCheck(this,n),(_=t.call(this,s,o,c,u,f))._viewportRuler=e,_._changeDetectorRef=r,_._ngZone=a,_._dir=l,_._parentFormField=h,_.ngControl=f,_._liveAnnouncer=v,_._defaultOptions=m,_._panelOpen=!1,_._compareWith=function(e,t){return e===t},_._uid="mat-select-"+Gw++,_._triggerAriaLabelledBy=null,_._destroy=new Gi.a,_._onChange=function(){},_._onTouched=function(){},_._valueId="mat-select-value-"+Gw++,_._panelDoneAnimatingStream=new Gi.a,_._overlayPanelClass=(null===(g=_._defaultOptions)||void 0===g?void 0:g.overlayPanelClass)||"",_._focused=!1,_.controlType="mat-select",_._required=!1,_._multiple=!1,_._disableOptionCentering=null!==(b=null===(y=_._defaultOptions)||void 0===y?void 0:y.disableOptionCentering)&&void 0!==b&&b,_.ariaLabel="",_.optionSelectionChanges=Zi(function(){var e=_.options;return e?e.changes.pipe(wa(e),Object(Ca.a)(function(){return Object(Ki.a).apply(void 0,_toConsumableArray(e.map(function(e){return e.onSelectionChange})))})):_._ngZone.onStable.pipe(Object(Cr.a)(1),Object(Ca.a)(function(){return _.optionSelectionChanges}))}),_.openedChange=new i.o,_._openedStream=_.openedChange.pipe(Object(sr.a)(function(e){return e}),Object(ar.a)(function(){})),_._closedStream=_.openedChange.pipe(Object(sr.a)(function(e){return!e}),Object(ar.a)(function(){})),_.selectionChange=new i.o,_.valueChange=new i.o,_.ngControl&&(_.ngControl.valueAccessor=_assertThisInitialized(_)),null!=(null==m?void 0:m.typeaheadDebounceInterval)&&(_._typeaheadDebounceInterval=m.typeaheadDebounceInterval),_._scrollStrategyFactory=p,_._scrollStrategy=_._scrollStrategyFactory(),_.tabIndex=parseInt(d)||0,_.id=_.id,_}return _createClass(n,[{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(e){this._placeholder=e,this.stateChanges.next()}},{key:"required",get:function(){return this._required},set:function(e){this._required=cu(e),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(e){this._multiple=cu(e)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(e){this._disableOptionCentering=cu(e)}},{key:"compareWith",get:function(){return this._compareWith},set:function(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(e){(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(e){this._typeaheadDebounceInterval=uu(e)}},{key:"id",get:function(){return this._id},set:function(e){this._id=e||this._uid,this.stateChanges.next()}},{key:"ngOnInit",value:function(){var e=this;this._selectionModel=new xm(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Object(fm.a)(),Object(yc.a)(this._destroy)).subscribe(function(){return e._panelDoneAnimating(e.panelOpen)})}},{key:"ngAfterContentInit",value:function(){var e=this;this._initKeyManager(),this._selectionModel.changed.pipe(Object(yc.a)(this._destroy)).subscribe(function(e){e.added.forEach(function(e){return e.select()}),e.removed.forEach(function(e){return e.deselect()})}),this.options.changes.pipe(wa(null),Object(yc.a)(this._destroy)).subscribe(function(){e._resetOptions(),e._initializeSelection()})}},{key:"ngDoCheck",value:function(){var e=this._getTriggerAriaLabelledby();if(e!==this._triggerAriaLabelledBy){var t=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?t.setAttribute("aria-labelledby",e):t.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}},{key:"ngOnChanges",value:function(e){e.disabled&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}},{key:"ngOnDestroy",value:function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}},{key:"toggle",value:function(){this.panelOpen?this.close():this.open()}},{key:"open",value:function(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}},{key:"close",value:function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}},{key:"writeValue",value:function(e){this.value=e}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"panelOpen",get:function(){return this._panelOpen}},{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"triggerValue",get:function(){if(this.empty)return"";if(this._multiple){var e=this._selectionModel.selected.map(function(e){return e.viewValue});return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}},{key:"_isRtl",value:function(){return!!this._dir&&"rtl"===this._dir.value}},{key:"_handleKeydown",value:function(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}},{key:"_handleClosedKeydown",value:function(e){var t=e.keyCode,n=40===t||38===t||37===t||39===t,i=13===t||32===t,r=this._keyManager;if(!r.isTyping()&&i&&!Kd(e)||(this.multiple||e.altKey)&&n)e.preventDefault(),this.open();else if(!this.multiple){var a=this.selected;r.onKeydown(e);var o=this.selected;o&&a!==o&&this._liveAnnouncer.announce(o.viewValue,1e4)}}},{key:"_handleOpenKeydown",value:function(e){var t=this._keyManager,n=e.keyCode,i=40===n||38===n,r=t.isTyping();if(i&&e.altKey)e.preventDefault(),this.close();else if(r||13!==n&&32!==n||!t.activeItem||Kd(e))if(!r&&this._multiple&&65===n&&e.ctrlKey){e.preventDefault();var a=this.options.some(function(e){return!e.disabled&&!e.selected});this.options.forEach(function(e){e.disabled||(a?e.select():e.deselect())})}else{var o=t.activeItemIndex;t.onKeydown(e),this._multiple&&i&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==o&&t.activeItem._selectViaInteraction()}else e.preventDefault(),t.activeItem._selectViaInteraction()}},{key:"_onFocus",value:function(){this.disabled||(this._focused=!0,this.stateChanges.next())}},{key:"_onBlur",value:function(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}},{key:"_onAttached",value:function(){var e=this;this.overlayDir.positionChange.pipe(Object(Cr.a)(1)).subscribe(function(){e._changeDetectorRef.detectChanges(),e._positioningSettled()})}},{key:"_getPanelTheme",value:function(){return this._parentFormField?"mat-".concat(this._parentFormField.color):""}},{key:"empty",get:function(){return!this._selectionModel||this._selectionModel.isEmpty()}},{key:"_initializeSelection",value:function(){var e=this;Promise.resolve().then(function(){e._setSelectionByValue(e.ngControl?e.ngControl.value:e._value),e.stateChanges.next()})}},{key:"_setSelectionByValue",value:function(e){var t=this;if(this._selectionModel.selected.forEach(function(e){return e.setInactiveStyles()}),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(function(e){return t._selectValue(e)}),this._sortValues();else{var n=this._selectValue(e);n?this._keyManager.updateActiveItem(n):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}},{key:"_selectValue",value:function(e){var t=this,n=this.options.find(function(n){if(t._selectionModel.isSelected(n))return!1;try{return null!=n.value&&t._compareWith(n.value,e)}catch(i){return!1}});return n&&this._selectionModel.select(n),n}},{key:"_initKeyManager",value:function(){var e=this;this._keyManager=new wp(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Object(yc.a)(this._destroy)).subscribe(function(){e.panelOpen&&(!e.multiple&&e._keyManager.activeItem&&e._keyManager.activeItem._selectViaInteraction(),e.focus(),e.close())}),this._keyManager.change.pipe(Object(yc.a)(this._destroy)).subscribe(function(){e._panelOpen&&e.panel?e._scrollOptionIntoView(e._keyManager.activeItemIndex||0):e._panelOpen||e.multiple||!e._keyManager.activeItem||e._keyManager.activeItem._selectViaInteraction()})}},{key:"_resetOptions",value:function(){var e=this,t=Object(Ki.a)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Object(yc.a)(t)).subscribe(function(t){e._onSelect(t.source,t.isUserInput),t.isUserInput&&!e.multiple&&e._panelOpen&&(e.close(),e.focus())}),Object(Ki.a).apply(void 0,_toConsumableArray(this.options.map(function(e){return e._stateChanges}))).pipe(Object(yc.a)(t)).subscribe(function(){e._changeDetectorRef.markForCheck(),e.stateChanges.next()})}},{key:"_onSelect",value:function(e,t){var n=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(n!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),n!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}},{key:"_sortValues",value:function(){var e=this;if(this.multiple){var t=this.options.toArray();this._selectionModel.sort(function(n,i){return e.sortComparator?e.sortComparator(n,i,t):t.indexOf(n)-t.indexOf(i)}),this.stateChanges.next()}}},{key:"_propagateChanges",value:function(e){var t;t=this.multiple?this.selected.map(function(e){return e.value}):this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}},{key:"_highlightCorrectOption",value:function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}},{key:"_canOpen",value:function(){var e;return!this._panelOpen&&!this.disabled&&(null===(e=this.options)||void 0===e?void 0:e.length)>0}},{key:"focus",value:function(e){this._elementRef.nativeElement.focus(e)}},{key:"_getPanelAriaLabelledby",value:function(){var e;if(this.ariaLabel)return null;var t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();return this.ariaLabelledby?(t?t+" ":"")+this.ariaLabelledby:t}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_getTriggerAriaLabelledby",value:function(){var e;if(this.ariaLabel)return null;var t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId(),n=(t?t+" ":"")+this._valueId;return this.ariaLabelledby&&(n+=" "+this.ariaLabelledby),n}},{key:"_panelDoneAnimating",value:function(e){this.openedChange.emit(e)}},{key:"setDescribedByIds",value:function(e){this._ariaDescribedby=e.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}]),n}($w)).\u0275fac=function(e){return new(e||Vw)(i.Ob(Am),i.Ob(i.h),i.Ob(i.B),i.Ob(mv),i.Ob(i.l),i.Ob(qu,8),i.Ob(kk,8),i.Ob(Rk,8),i.Ob(gC,8),i.Ob(zb,10),i.Zb("tabindex"),i.Ob(Qw),i.Ob(Mp),i.Ob(Xw,8))},Vw.\u0275dir=i.Jb({type:Vw,viewQuery:function(e,t){var n;1&e&&(i.Kc(Iw,1),i.Kc(Mw,1),i.Kc(b_,1)),2&e&&(i.sc(n=i.dc())&&(t.trigger=n.first),i.sc(n=i.dc())&&(t.panel=n.first),i.sc(n=i.dc())&&(t.overlayDir=n.first))},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[i.Ab,i.Bb]}),Vw),nO=((Bw=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments))._scrollTop=0,e._triggerFontSize=0,e._transformOrigin="top",e._offsetY=0,e._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],e}return _createClass(n,[{key:"_calculateOverlayScroll",value:function(e,t,n){var i=this._getItemHeight();return Math.min(Math.max(0,i*e-t+i/2),n)}},{key:"ngOnInit",value:function(){var e=this;_get(_getPrototypeOf(n.prototype),"ngOnInit",this).call(this),this._viewportRuler.change().pipe(Object(yc.a)(this._destroy)).subscribe(function(){e.panelOpen&&(e._triggerRect=e.trigger.nativeElement.getBoundingClientRect(),e._changeDetectorRef.markForCheck())})}},{key:"open",value:function(){var e=this;_get(_getPrototypeOf(n.prototype),"_canOpen",this).call(this)&&(_get(_getPrototypeOf(n.prototype),"open",this).call(this),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(Object(Cr.a)(1)).subscribe(function(){e._triggerFontSize&&e.overlayDir.overlayRef&&e.overlayDir.overlayRef.overlayElement&&(e.overlayDir.overlayRef.overlayElement.style.fontSize="".concat(e._triggerFontSize,"px"))}))}},{key:"_scrollOptionIntoView",value:function(e){var t=Fv(e,this.options,this.optionGroups),n=this._getItemHeight();this.panel.nativeElement.scrollTop=Nv((e+t)*n,n,this.panel.nativeElement.scrollTop,256)}},{key:"_positioningSettled",value:function(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}},{key:"_panelDoneAnimating",value:function(e){this.panelOpen?this._scrollTop=0:(this.overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),_get(_getPrototypeOf(n.prototype),"_panelDoneAnimating",this).call(this,e)}},{key:"_getChangeEvent",value:function(e){return new Jw(this,e)}},{key:"_calculateOverlayOffsetX",value:function(){var e,t=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),n=this._viewportRuler.getViewportSize(),i=this._isRtl(),r=this.multiple?56:32;if(this.multiple)e=40;else if(this.disableOptionCentering)e=16;else{var a=this._selectionModel.selected[0]||this.options.first;e=a&&a.group?32:16}i||(e*=-1);var o=0-(t.left+e-(i?r:0)),s=t.right+e-n.width+(i?0:r);o>0?e+=o+8:s>0&&(e-=s+8),this.overlayDir.offsetX=Math.round(e),this.overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(e,t,n){var i,r=this._getItemHeight(),a=(r-this._triggerRect.height)/2,o=Math.floor(256/r);return this.disableOptionCentering?0:(i=0===this._scrollTop?e*r:this._scrollTop===n?(e-(this._getItemCount()-o))*r+(r-(this._getItemCount()*r-256)%r):t-r/2,Math.round(-1*i-a))}},{key:"_checkOverlayWithinViewport",value:function(e){var t=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,r=n.height-this._triggerRect.bottom-8,a=Math.abs(this._offsetY),o=Math.min(this._getItemCount()*t,256)-a-this._triggerRect.height;o>r?this._adjustPanelUp(o,r):a>i?this._adjustPanelDown(a,i,e):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(e,t){var n=Math.round(e-t);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}},{key:"_adjustPanelDown",value:function(e,t,n){var i=Math.round(e-t);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")}},{key:"_calculateOverlayPosition",value:function(){var e,t=this._getItemHeight(),n=this._getItemCount(),i=Math.min(n*t,256),r=n*t-i;e=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),e+=Fv(e,this.options,this.optionGroups);var a=i/2;this._scrollTop=this._calculateOverlayScroll(e,a,r),this._offsetY=this._calculateOverlayOffsetY(e,a,r),this._checkOverlayWithinViewport(r)}},{key:"_getOriginBasedOnOption",value:function(){var e=this._getItemHeight(),t=(e-this._triggerRect.height)/2;return"50% ".concat(Math.abs(this._offsetY)-t+e/2,"px 0px")}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}}]),n}(tO)).\u0275fac=function(e){return iO(e||Bw)},Bw.\u0275cmp=i.Ib({type:Bw,selectors:[["mat-select"]],contentQueries:function(e,t,n){var r;1&e&&(i.Hb(n,eO,1),i.Hb(n,jv,1),i.Hb(n,Pv,1)),2&e&&(i.sc(r=i.dc())&&(t.customTrigger=r.first),i.sc(r=i.dc())&&(t.options=r),i.sc(r=i.dc())&&(t.optionGroups=r))},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(e,t){1&e&&i.cc("keydown",function(e){return t._handleKeydown(e)})("focus",function(){return t._onFocus()})("blur",function(){return t._onBlur()}),2&e&&(i.Eb("id",t.id)("tabindex",t.tabIndex)("aria-controls",t.panelOpen?t.id+"-panel":null)("aria-expanded",t.panelOpen)("aria-label",t.ariaLabel||null)("aria-required",t.required.toString())("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-describedby",t._ariaDescribedby||null)("aria-activedescendant",t._getAriaActiveDescendant()),i.Gb("mat-select-disabled",t.disabled)("mat-select-invalid",t.errorState)("mat-select-required",t.required)("mat-select-empty",t.empty)("mat-select-multiple",t.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[i.Cb([{provide:oC,useExisting:Bw},{provide:Tv,useExisting:Bw}]),i.Ab],ngContentSelectors:Kw,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,t){if(1&e&&(i.lc(Ww),i.Ub(0,"div",0,1),i.cc("click",function(){return t.toggle()}),i.Ub(3,"div",2),i.Ec(4,Lw,2,1,"span",3),i.Ec(5,Nw,3,2,"span",4),i.Tb(),i.Ub(6,"div",5),i.Pb(7,"div",6),i.Tb(),i.Tb(),i.Ec(8,Uw,4,14,"ng-template",7),i.cc("backdropClick",function(){return t.close()})("attach",function(){return t._onAttached()})("detach",function(){return t.close()})),2&e){var n=i.tc(1);i.Eb("aria-owns",t.panelOpen?t.id+"-panel":null),i.Db(3),i.mc("ngSwitch",t.empty),i.Eb("id",t._valueId),i.Db(1),i.mc("ngSwitchCase",!0),i.Db(1),i.mc("ngSwitchCase",!1),i.Db(3),i.mc("cdkConnectedOverlayPanelClass",t._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",t._scrollStrategy)("cdkConnectedOverlayOrigin",n)("cdkConnectedOverlayOpen",t.panelOpen)("cdkConnectedOverlayPositions",t._positions)("cdkConnectedOverlayMinWidth",null==t._triggerRect?null:t._triggerRect.width)("cdkConnectedOverlayOffsetY",t._offsetY)}},directives:[y_,ae,oe,b_,se,q],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px}\n'],encapsulation:2,data:{animation:[qw.transformPanelWrap,qw.transformPanel]},changeDetection:0}),Bw),iO=i.Wb(nO),rO=((Hw=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Hw)},Hw.\u0275mod=i.Mb({type:Hw}),Hw.\u0275inj=i.Lb({providers:[Zw],imports:[[Ce,C_,Hv,tv],Rm,bC,Hv,tv]}),Hw),aO=n("zP0r"),oO=new Set,sO=((Yw=function(){function e(t){_classCallCheck(this,e),this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):lO}return _createClass(e,[{key:"matchMedia",value:function(e){return this._platform.WEBKIT&&function(e){if(!oO.has(e))try{zw||((zw=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(zw)),zw.sheet&&(zw.sheet.insertRule("@media ".concat(e," {.fx-query-test{ }}"),0),oO.add(e))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}]),e}()).\u0275fac=function(e){return new(e||Yw)(i.Yb($d))},Yw.\u0275prov=Object(i.Kb)({factory:function(){return new Yw(Object(i.Yb)($d))},token:Yw,providedIn:"root"}),Yw);function lO(e){return{matches:"all"===e||""===e,media:e,addListener:function(){},removeListener:function(){}}}var cO,uO=((cO=function(){function e(t,n){_classCallCheck(this,e),this._mediaMatcher=t,this._zone=n,this._queries=new Map,this._destroySubject=new Gi.a}return _createClass(e,[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(e){var t=this;return hO(fu(e)).some(function(e){return t._registerQuery(e).mql.matches})}},{key:"observe",value:function(e){var t=this,n=va(hO(fu(e)).map(function(e){return t._registerQuery(e).observable}));return(n=ba(n.pipe(Object(Cr.a)(1)),n.pipe(Object(aO.a)(1),Object(gc.a)(0)))).pipe(Object(ar.a)(function(e){var t={matches:!1,breakpoints:{}};return e.forEach(function(e){var n=e.matches,i=e.query;t.matches=t.matches||n,t.breakpoints[i]=n}),t}))}},{key:"_registerQuery",value:function(e){var t=this;if(this._queries.has(e))return this._queries.get(e);var n=this._mediaMatcher.matchMedia(e),i={observable:new qi.a(function(e){var i=function(n){return t._zone.run(function(){return e.next(n)})};return n.addListener(i),function(){n.removeListener(i)}}).pipe(wa(n),Object(ar.a)(function(t){var n=t.matches;return{query:e,matches:n}}),Object(yc.a)(this._destroySubject)),mql:n};return this._queries.set(e,i),i}}]),e}()).\u0275fac=function(e){return new(e||cO)(i.Yb(sO),i.Yb(i.B))},cO.\u0275prov=Object(i.Kb)({factory:function(){return new cO(Object(i.Yb)(sO),Object(i.Yb)(i.B))},token:cO,providedIn:"root"}),cO);function hO(e){return e.map(function(e){return e.split(",")}).reduce(function(e,t){return e.concat(t)}).map(function(e){return e.trim()})}var fO,dO,pO,vO={tooltipState:mt("state",[bt("initial, void, hidden",yt({opacity:0,transform:"scale(0)"})),bt("visible",yt({transform:"scale(1)"})),Ct("* => visible",_t("200ms cubic-bezier(0, 0, 0.2, 1)",kt([yt({opacity:0,transform:"scale(0)",offset:0}),yt({opacity:.5,transform:"scale(0.99)",offset:.5}),yt({opacity:1,transform:"scale(1)",offset:1})]))),Ct("* => hidden",_t("100ms cubic-bezier(0, 0, 0.2, 1)",yt({opacity:0})))])},mO=ip({passive:!0}),_O=new i.s("mat-tooltip-scroll-strategy"),gO={provide:_O,deps:[m_],useFactory:function(e){return function(){return e.scrollStrategies.reposition({scrollThrottle:20})}}},yO=new i.s("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),bO=((pO=function(){function e(t,n,i,r,a,o,s,l,c,u,h,f){var d=this;_classCallCheck(this,e),this._overlay=t,this._elementRef=n,this._scrollDispatcher=i,this._viewContainerRef=r,this._ngZone=a,this._platform=o,this._ariaDescriber=s,this._focusMonitor=l,this._dir=u,this._defaultOptions=h,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new Gi.a,this._handleKeydown=function(e){d._isTooltipVisible()&&27===e.keyCode&&!Kd(e)&&(e.preventDefault(),e.stopPropagation(),d._ngZone.run(function(){return d.hide(0)}))},this._scrollStrategy=c,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),a.runOutsideAngular(function(){n.nativeElement.addEventListener("keydown",d._handleKeydown)})}return _createClass(e,[{key:"position",get:function(){return this._position},set:function(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(),this._tooltipInstance&&this._tooltipInstance.show(0),this._overlayRef.updatePosition()))}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=cu(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},{key:"message",get:function(){return this._message},set:function(e){var t=this;this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(function(){Promise.resolve().then(function(){t._ariaDescriber.describe(t._elementRef.nativeElement,t.message,"tooltip")})}))}},{key:"tooltipClass",get:function(){return this._tooltipClass},set:function(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}},{key:"ngAfterViewInit",value:function(){var e=this;this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Object(yc.a)(this._destroyed)).subscribe(function(t){t?"keyboard"===t&&e._ngZone.run(function(){return e.show()}):e._ngZone.run(function(){return e.hide(0)})})}},{key:"ngOnDestroy",value:function(){var e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),e.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(function(t){var n=_slicedToArray(t,2),i=n[0],r=n[1];e.removeEventListener(i,r,mO)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}},{key:"show",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.showDelay;if(!this.disabled&&this.message&&(!this._isTooltipVisible()||this._tooltipInstance._showTimeoutId||this._tooltipInstance._hideTimeoutId)){var n=this._createOverlay();this._detach(),this._portal=this._portal||new rm(kO,this._viewContainerRef),this._tooltipInstance=n.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Object(yc.a)(this._destroyed)).subscribe(function(){return e._detach()}),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}}},{key:"hide",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay;this._tooltipInstance&&this._tooltipInstance.hide(e)}},{key:"toggle",value:function(){this._isTooltipVisible()?this.hide():this.show()}},{key:"_isTooltipVisible",value:function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}},{key:"_createOverlay",value:function(){var e=this;if(this._overlayRef)return this._overlayRef;var t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),n=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".mat-tooltip").withFlexibleDimensions(!1).withViewportMargin(8).withScrollableContainers(t);return n.positionChanges.pipe(Object(yc.a)(this._destroyed)).subscribe(function(t){e._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&e._tooltipInstance.isVisible()&&e._ngZone.run(function(){return e.hide(0)})}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:n,panelClass:"mat-tooltip-panel",scrollStrategy:this._scrollStrategy()}),this._updatePosition(),this._overlayRef.detachments().pipe(Object(yc.a)(this._destroyed)).subscribe(function(){return e._detach()}),this._overlayRef}},{key:"_detach",value:function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}},{key:"_updatePosition",value:function(){var e=this._overlayRef.getConfig().positionStrategy,t=this._getOrigin(),n=this._getOverlayPosition();e.withPositions([Object.assign(Object.assign({},t.main),n.main),Object.assign(Object.assign({},t.fallback),n.fallback)])}},{key:"_getOrigin",value:function(){var e,t=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n||"below"==n?e={originX:"center",originY:"above"==n?"top":"bottom"}:"before"==n||"left"==n&&t||"right"==n&&!t?e={originX:"start",originY:"center"}:("after"==n||"right"==n&&t||"left"==n&&!t)&&(e={originX:"end",originY:"center"});var i=this._invertPosition(e.originX,e.originY);return{main:e,fallback:{originX:i.x,originY:i.y}}}},{key:"_getOverlayPosition",value:function(){var e,t=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n?e={overlayX:"center",overlayY:"bottom"}:"below"==n?e={overlayX:"center",overlayY:"top"}:"before"==n||"left"==n&&t||"right"==n&&!t?e={overlayX:"end",overlayY:"center"}:("after"==n||"right"==n&&t||"left"==n&&!t)&&(e={overlayX:"start",overlayY:"center"});var i=this._invertPosition(e.overlayX,e.overlayY);return{main:e,fallback:{overlayX:i.x,overlayY:i.y}}}},{key:"_updateTooltipMessage",value:function(){var e=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Object(Cr.a)(1),Object(yc.a)(this._destroyed)).subscribe(function(){e._tooltipInstance&&e._overlayRef.updatePosition()}))}},{key:"_setTooltipClass",value:function(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}},{key:"_invertPosition",value:function(e,t){return"above"===this.position||"below"===this.position?"top"===t?t="bottom":"bottom"===t&&(t="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:t}}},{key:"_setupPointerEnterEventsIfNeeded",value:function(){var e=this;!this._disabled&&this.message&&this._viewInitialized&&!this._passiveListeners.length&&(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",function(){e._setupPointerExitEventsIfNeeded(),e.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(){e._setupPointerExitEventsIfNeeded(),clearTimeout(e._touchstartTimeout),e._touchstartTimeout=setTimeout(function(){return e.show()},500)}])),this._addListeners(this._passiveListeners))}},{key:"_setupPointerExitEventsIfNeeded",value:function(){var e,t=this;if(!this._pointerExitEventsInitialized){this._pointerExitEventsInitialized=!0;var n=[];if(this._platformSupportsMouseEvents())n.push(["mouseleave",function(){return t.hide()}],["wheel",function(e){return t._wheelListener(e)}]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var i=function(){clearTimeout(t._touchstartTimeout),t.hide(t._defaultOptions.touchendHideDelay)};n.push(["touchend",i],["touchcancel",i])}this._addListeners(n),(e=this._passiveListeners).push.apply(e,n)}}},{key:"_addListeners",value:function(e){var t=this;e.forEach(function(e){var n=_slicedToArray(e,2),i=n[0],r=n[1];t._elementRef.nativeElement.addEventListener(i,r,mO)})}},{key:"_platformSupportsMouseEvents",value:function(){return!this._platform.IOS&&!this._platform.ANDROID}},{key:"_wheelListener",value:function(e){if(this._isTooltipVisible()){var t=(this._document||document).elementFromPoint(e.clientX,e.clientY),n=this._elementRef.nativeElement;t===n||n.contains(t)||this.hide()}}},{key:"_disableNativeGesturesIfNecessary",value:function(){var e=this.touchGestures;if("off"!==e){var t=this._elementRef.nativeElement,n=t.style;("on"===e||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),"on"!==e&&t.draggable||(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}}]),e}()).\u0275fac=function(e){return new(e||pO)(i.Ob(m_),i.Ob(i.l),i.Ob(Tm),i.Ob(i.S),i.Ob(i.B),i.Ob($d),i.Ob(gp),i.Ob(Bp),i.Ob(_O),i.Ob(qu,8),i.Ob(yO,8),i.Ob(s))},pO.\u0275dir=i.Jb({type:pO,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]}),pO),kO=((dO=function(){function e(t,n){_classCallCheck(this,e),this._changeDetectorRef=t,this._breakpointObserver=n,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new Gi.a,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}return _createClass(e,[{key:"show",value:function(e){var t=this;this._hideTimeoutId&&(clearTimeout(this._hideTimeoutId),this._hideTimeoutId=null),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(function(){t._visibility="visible",t._showTimeoutId=null,t._markForCheck()},e)}},{key:"hide",value:function(e){var t=this;this._showTimeoutId&&(clearTimeout(this._showTimeoutId),this._showTimeoutId=null),this._hideTimeoutId=setTimeout(function(){t._visibility="hidden",t._hideTimeoutId=null,t._markForCheck()},e)}},{key:"afterHidden",value:function(){return this._onHide}},{key:"isVisible",value:function(){return"visible"===this._visibility}},{key:"ngOnDestroy",value:function(){this._onHide.complete()}},{key:"_animationStart",value:function(){this._closeOnInteraction=!1}},{key:"_animationDone",value:function(e){var t=e.toState;"hidden"!==t||this.isVisible()||this._onHide.next(),"visible"!==t&&"hidden"!==t||(this._closeOnInteraction=!0)}},{key:"_handleBodyInteraction",value:function(){this._closeOnInteraction&&this.hide(0)}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}}]),e}()).\u0275fac=function(e){return new(e||dO)(i.Ob(i.h),i.Ob(uO))},dO.\u0275cmp=i.Ib({type:dO,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){1&e&&i.cc("click",function(){return t._handleBodyInteraction()},!1,i.uc)("auxclick",function(){return t._handleBodyInteraction()},!1,i.uc),2&e&&i.Bc("zoom","visible"===t._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,t){var n;(1&e&&(i.Ub(0,"div",0),i.cc("@state.start",function(){return t._animationStart()})("@state.done",function(e){return t._animationDone(e)}),i.hc(1,"async"),i.Fc(2),i.Tb()),2&e)&&(i.Gb("mat-tooltip-handset",null==(n=i.ic(1,5,t._isHandset))?null:n.matches),i.mc("ngClass",t.tooltipClass)("@state",t._visibility),i.Db(2),i.Gc(t.message))},directives:[q],pipes:[me],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[vO.tooltipState]},changeDetection:0}),dO),CO=((fO=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||fO)},fO.\u0275mod=i.Mb({type:fO}),fO.\u0275inj=i.Lb({providers:[gO],imports:[[Wp,Ce,C_,tv],tv,Rm]}),fO);function wO(e,t){if(1&e&&(i.Ub(0,"mat-option",19),i.Fc(1),i.Tb()),2&e){var n=t.$implicit;i.mc("value",n),i.Db(1),i.Hc(" ",n," ")}}function OO(e,t){if(1&e){var n=i.Vb();i.Ub(0,"mat-form-field",16),i.Ub(1,"mat-select",17),i.cc("selectionChange",function(e){return i.xc(n),i.gc(2)._changePageSize(e.value)}),i.Ec(2,wO,2,2,"mat-option",18),i.Tb(),i.Tb()}if(2&e){var r=i.gc(2);i.mc("appearance",r._formFieldAppearance)("color",r.color),i.Db(1),i.mc("value",r.pageSize)("disabled",r.disabled)("aria-label",r._intl.itemsPerPageLabel),i.Db(1),i.mc("ngForOf",r._displayedPageSizeOptions)}}function SO(e,t){if(1&e&&(i.Ub(0,"div",20),i.Fc(1),i.Tb()),2&e){var n=i.gc(2);i.Db(1),i.Gc(n.pageSize)}}function xO(e,t){if(1&e&&(i.Ub(0,"div",12),i.Ub(1,"div",13),i.Fc(2),i.Tb(),i.Ec(3,OO,3,6,"mat-form-field",14),i.Ec(4,SO,2,1,"div",15),i.Tb()),2&e){var n=i.gc();i.Db(2),i.Hc(" ",n._intl.itemsPerPageLabel," "),i.Db(1),i.mc("ngIf",n._displayedPageSizeOptions.length>1),i.Db(1),i.mc("ngIf",n._displayedPageSizeOptions.length<=1)}}function EO(e,t){if(1&e){var n=i.Vb();i.Ub(0,"button",21),i.cc("click",function(){return i.xc(n),i.gc().firstPage()}),i.fc(),i.Ub(1,"svg",7),i.Pb(2,"path",22),i.Tb(),i.Tb()}if(2&e){var r=i.gc();i.mc("matTooltip",r._intl.firstPageLabel)("matTooltipDisabled",r._previousButtonsDisabled())("matTooltipPosition","above")("disabled",r._previousButtonsDisabled()),i.Eb("aria-label",r._intl.firstPageLabel)}}function TO(e,t){if(1&e){var n=i.Vb();i.fc(),i.ec(),i.Ub(0,"button",23),i.cc("click",function(){return i.xc(n),i.gc().lastPage()}),i.fc(),i.Ub(1,"svg",7),i.Pb(2,"path",24),i.Tb(),i.Tb()}if(2&e){var r=i.gc();i.mc("matTooltip",r._intl.lastPageLabel)("matTooltipDisabled",r._nextButtonsDisabled())("matTooltipPosition","above")("disabled",r._nextButtonsDisabled()),i.Eb("aria-label",r._intl.lastPageLabel)}}var AO,RO,DO,PO,IO=((AO=function e(){_classCallCheck(this,e),this.changes=new Gi.a,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=function(e,t,n){if(0==n||0==t)return"0 of ".concat(n);var i=e*t;return"".concat(i+1," \u2013 ").concat(i<(n=Math.max(n,0))?Math.min(i+t,n):i+t," of ").concat(n)}}).\u0275fac=function(e){return new(e||AO)},AO.\u0275prov=Object(i.Kb)({factory:function(){return new AO},token:AO,providedIn:"root"}),AO),MO={provide:IO,deps:[[new i.C,new i.M,IO]],useFactory:function(e){return e||new IO}},LO=new i.s("MAT_PAGINATOR_DEFAULT_OPTIONS"),jO=nv(sv(function e(){_classCallCheck(this,e)})),FO=((PO=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,a){var o;if(_classCallCheck(this,n),(o=t.call(this))._intl=e,o._changeDetectorRef=r,o._pageIndex=0,o._length=0,o._pageSizeOptions=[],o._hidePageSize=!1,o._showFirstLastButtons=!1,o.page=new i.o,o._intlChanges=e.changes.subscribe(function(){return o._changeDetectorRef.markForCheck()}),a){var s=a.pageSize,l=a.pageSizeOptions,c=a.hidePageSize,u=a.showFirstLastButtons;null!=s&&(o._pageSize=s),null!=l&&(o._pageSizeOptions=l),null!=c&&(o._hidePageSize=c),null!=u&&(o._showFirstLastButtons=u)}return _possibleConstructorReturn(o)}return _createClass(n,[{key:"pageIndex",get:function(){return this._pageIndex},set:function(e){this._pageIndex=Math.max(uu(e),0),this._changeDetectorRef.markForCheck()}},{key:"length",get:function(){return this._length},set:function(e){this._length=uu(e),this._changeDetectorRef.markForCheck()}},{key:"pageSize",get:function(){return this._pageSize},set:function(e){this._pageSize=Math.max(uu(e),0),this._updateDisplayedPageSizeOptions()}},{key:"pageSizeOptions",get:function(){return this._pageSizeOptions},set:function(e){this._pageSizeOptions=(e||[]).map(function(e){return uu(e)}),this._updateDisplayedPageSizeOptions()}},{key:"hidePageSize",get:function(){return this._hidePageSize},set:function(e){this._hidePageSize=cu(e)}},{key:"showFirstLastButtons",get:function(){return this._showFirstLastButtons},set:function(e){this._showFirstLastButtons=cu(e)}},{key:"ngOnInit",value:function(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}},{key:"ngOnDestroy",value:function(){this._intlChanges.unsubscribe()}},{key:"nextPage",value:function(){if(this.hasNextPage()){var e=this.pageIndex;this.pageIndex++,this._emitPageEvent(e)}}},{key:"previousPage",value:function(){if(this.hasPreviousPage()){var e=this.pageIndex;this.pageIndex--,this._emitPageEvent(e)}}},{key:"firstPage",value:function(){if(this.hasPreviousPage()){var e=this.pageIndex;this.pageIndex=0,this._emitPageEvent(e)}}},{key:"lastPage",value:function(){if(this.hasNextPage()){var e=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(e)}}},{key:"hasPreviousPage",value:function(){return this.pageIndex>=1&&0!=this.pageSize}},{key:"hasNextPage",value:function(){var e=this.getNumberOfPages()-1;return this.pageIndex<e&&0!=this.pageSize}},{key:"getNumberOfPages",value:function(){return this.pageSize?Math.ceil(this.length/this.pageSize):0}},{key:"_changePageSize",value:function(e){var t=this.pageIndex;this.pageIndex=Math.floor(this.pageIndex*this.pageSize/e)||0,this.pageSize=e,this._emitPageEvent(t)}},{key:"_nextButtonsDisabled",value:function(){return this.disabled||!this.hasNextPage()}},{key:"_previousButtonsDisabled",value:function(){return this.disabled||!this.hasPreviousPage()}},{key:"_updateDisplayedPageSizeOptions",value:function(){this._initialized&&(this.pageSize||(this._pageSize=0!=this.pageSizeOptions.length?this.pageSizeOptions[0]:50),this._displayedPageSizeOptions=this.pageSizeOptions.slice(),-1===this._displayedPageSizeOptions.indexOf(this.pageSize)&&this._displayedPageSizeOptions.push(this.pageSize),this._displayedPageSizeOptions.sort(function(e,t){return e-t}),this._changeDetectorRef.markForCheck())}},{key:"_emitPageEvent",value:function(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}]),n}(jO)).\u0275fac=function(e){return new(e||PO)(i.Ob(IO),i.Ob(i.h),i.Ob(void 0))},PO.\u0275dir=i.Jb({type:PO,inputs:{pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",color:"color"},outputs:{page:"page"},features:[i.Ab]}),PO),NO=((DO=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),a=t.call(this,e,i,r),r&&null!=r.formFieldAppearance&&(a._formFieldAppearance=r.formFieldAppearance),a}return n}(FO)).\u0275fac=function(e){return new(e||DO)(i.Ob(IO),i.Ob(i.h),i.Ob(LO,8))},DO.\u0275cmp=i.Ib({type:DO,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[i.Ab],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(e,t){1&e&&(i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ec(2,xO,5,3,"div",2),i.Ub(3,"div",3),i.Ub(4,"div",4),i.Fc(5),i.Tb(),i.Ec(6,EO,3,5,"button",5),i.Ub(7,"button",6),i.cc("click",function(){return t.previousPage()}),i.fc(),i.Ub(8,"svg",7),i.Pb(9,"path",8),i.Tb(),i.Tb(),i.ec(),i.Ub(10,"button",9),i.cc("click",function(){return t.nextPage()}),i.fc(),i.Ub(11,"svg",7),i.Pb(12,"path",10),i.Tb(),i.Tb(),i.Ec(13,TO,3,5,"button",11),i.Tb(),i.Tb(),i.Tb()),2&e&&(i.Db(2),i.mc("ngIf",!t.hidePageSize),i.Db(3),i.Hc(" ",t._intl.getRangeLabel(t.pageIndex,t.pageSize,t.length)," "),i.Db(1),i.mc("ngIf",t.showFirstLastButtons),i.Db(1),i.mc("matTooltip",t._intl.previousPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),i.Eb("aria-label",t._intl.previousPageLabel),i.Db(3),i.mc("matTooltip",t._intl.nextPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),i.Eb("aria-label",t._intl.nextPageLabel),i.Db(3),i.mc("ngIf",t.showFirstLastButtons))},directives:[Z,qv,bO,yC,nO,Q,jv],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}\n"],encapsulation:2,changeDetection:0}),DO),UO=((RO=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||RO)},RO.\u0275mod=i.Mb({type:RO}),RO.\u0275inj=i.Lb({providers:[MO],imports:[[Ce,Gv,rO,CO,tv]]}),RO);function BO(e,t){if(1&e&&(i.fc(),i.Pb(0,"circle",3)),2&e){var n=i.gc();i.Bc("animation-name","mat-progress-spinner-stroke-rotate-"+n._spinnerAnimationLabel)("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),i.Eb("r",n._getCircleRadius())}}function VO(e,t){if(1&e&&(i.fc(),i.Pb(0,"circle",3)),2&e){var n=i.gc();i.Bc("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),i.Eb("r",n._getCircleRadius())}}function HO(e,t){if(1&e&&(i.fc(),i.Pb(0,"circle",3)),2&e){var n=i.gc();i.Bc("animation-name","mat-progress-spinner-stroke-rotate-"+n._spinnerAnimationLabel)("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),i.Eb("r",n._getCircleRadius())}}function zO(e,t){if(1&e&&(i.fc(),i.Pb(0,"circle",3)),2&e){var n=i.gc();i.Bc("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),i.Eb("r",n._getCircleRadius())}}var YO,WO,KO,qO=".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:currentColor;stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n",GO=iv(function e(t){_classCallCheck(this,e),this._elementRef=t},"primary"),QO=new i.s("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}}),XO=((KO=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,o){var s;_classCallCheck(this,n),(s=t.call(this,e))._elementRef=e,s._document=r,s._diameter=100,s._value=0,s._fallbackAnimation=!1,s.mode="determinate";var l=n._diameters;return s._spinnerAnimationLabel=s._getSpinnerAnimationLabel(),l.has(r.head)||l.set(r.head,new Set([100])),s._fallbackAnimation=i.EDGE||i.TRIDENT,s._noopAnimations="NoopAnimations"===a&&!!o&&!o._forceAnimations,o&&(o.diameter&&(s.diameter=o.diameter),o.strokeWidth&&(s.strokeWidth=o.strokeWidth)),s}return _createClass(n,[{key:"diameter",get:function(){return this._diameter},set:function(e){this._diameter=uu(e),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}},{key:"strokeWidth",get:function(){return this._strokeWidth||this.diameter/10},set:function(e){this._strokeWidth=uu(e)}},{key:"value",get:function(){return"determinate"===this.mode?this._value:0},set:function(e){this._value=Math.max(0,Math.min(100,uu(e)))}},{key:"ngOnInit",value:function(){var e=this._elementRef.nativeElement;this._styleRoot=rp(e)||this._document.head,this._attachStyleNode(),e.classList.add("mat-progress-spinner-indeterminate".concat(this._fallbackAnimation?"-fallback":"","-animation"))}},{key:"_getCircleRadius",value:function(){return(this.diameter-10)/2}},{key:"_getViewBox",value:function(){var e=2*this._getCircleRadius()+this.strokeWidth;return"0 0 ".concat(e," ").concat(e)}},{key:"_getStrokeCircumference",value:function(){return 2*Math.PI*this._getCircleRadius()}},{key:"_getStrokeDashOffset",value:function(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}},{key:"_getCircleStrokeWidth",value:function(){return this.strokeWidth/this.diameter*100}},{key:"_attachStyleNode",value:function(){var e=this._styleRoot,t=this._diameter,i=n._diameters,r=i.get(e);if(!r||!r.has(t)){var a=this._document.createElement("style");a.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),a.textContent=this._getAnimationText(),e.appendChild(a),r||(r=new Set,i.set(e,r)),r.add(t)}}},{key:"_getAnimationText",value:function(){var e=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n    0%      { stroke-dashoffset: START_VALUE;  transform: rotate(0); }\n    12.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(0); }\n    12.5001%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(72.5deg); }\n    25%     { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(72.5deg); }\n\n    25.0001%   { stroke-dashoffset: START_VALUE;  transform: rotate(270deg); }\n    37.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(270deg); }\n    37.5001%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(161.5deg); }\n    50%     { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(161.5deg); }\n\n    50.0001%  { stroke-dashoffset: START_VALUE;  transform: rotate(180deg); }\n    62.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(180deg); }\n    62.5001%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(251.5deg); }\n    75%     { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(251.5deg); }\n\n    75.0001%  { stroke-dashoffset: START_VALUE;  transform: rotate(90deg); }\n    87.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(90deg); }\n    87.5001%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(341.5deg); }\n    100%    { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(341.5deg); }\n  }\n".replace(/START_VALUE/g,""+.95*e).replace(/END_VALUE/g,""+.2*e).replace(/DIAMETER/g,"".concat(this._spinnerAnimationLabel))}},{key:"_getSpinnerAnimationLabel",value:function(){return this.diameter.toString().replace(".","_")}}]),n}(GO)).\u0275fac=function(e){return new(e||KO)(i.Ob(i.l),i.Ob($d),i.Ob(s,8),i.Ob(Hi,8),i.Ob(QO))},KO.\u0275cmp=i.Ib({type:KO,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(e,t){2&e&&(i.Eb("aria-valuemin","determinate"===t.mode?0:null)("aria-valuemax","determinate"===t.mode?100:null)("aria-valuenow","determinate"===t.mode?t.value:null)("mode",t.mode),i.Bc("width",t.diameter,"px")("height",t.diameter,"px"),i.Gb("_mat-animation-noopable",t._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[i.Ab],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(e,t){1&e&&(i.fc(),i.Ub(0,"svg",0),i.Ec(1,BO,1,9,"circle",1),i.Ec(2,VO,1,7,"circle",2),i.Tb()),2&e&&(i.Bc("width",t.diameter,"px")("height",t.diameter,"px"),i.mc("ngSwitch","indeterminate"===t.mode),i.Eb("viewBox",t._getViewBox()),i.Db(1),i.mc("ngSwitchCase",!0),i.Db(1),i.mc("ngSwitchCase",!1))},directives:[ae,oe],styles:[qO],encapsulation:2,changeDetection:0}),KO._diameters=new WeakMap,KO),ZO=((WO=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,o){var s;return _classCallCheck(this,n),(s=t.call(this,e,i,r,a,o)).mode="indeterminate",s}return n}(XO)).\u0275fac=function(e){return new(e||WO)(i.Ob(i.l),i.Ob($d),i.Ob(s,8),i.Ob(Hi,8),i.Ob(QO))},WO.\u0275cmp=i.Ib({type:WO,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(e,t){2&e&&(i.Bc("width",t.diameter,"px")("height",t.diameter,"px"),i.Gb("_mat-animation-noopable",t._noopAnimations))},inputs:{color:"color"},features:[i.Ab],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(e,t){1&e&&(i.fc(),i.Ub(0,"svg",0),i.Ec(1,HO,1,9,"circle",1),i.Ec(2,zO,1,7,"circle",2),i.Tb()),2&e&&(i.Bc("width",t.diameter,"px")("height",t.diameter,"px"),i.mc("ngSwitch","indeterminate"===t.mode),i.Eb("viewBox",t._getViewBox()),i.Db(1),i.mc("ngSwitchCase",!0),i.Db(1),i.mc("ngSwitchCase",!1))},directives:[ae,oe],styles:[qO],encapsulation:2,changeDetection:0}),WO),JO=((YO=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||YO)},YO.\u0275mod=i.Mb({type:YO}),YO.\u0275inj=i.Lb({imports:[[tv,Ce],tv]}),YO),$O=["mat-sort-header",""];function eS(e,t){if(1&e){var n=i.Vb();i.Ub(0,"div",3),i.cc("@arrowPosition.start",function(){return i.xc(n),i.gc()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return i.xc(n),i.gc()._disableViewStateAnimation=!1}),i.Pb(1,"div",4),i.Ub(2,"div",5),i.Pb(3,"div",6),i.Pb(4,"div",7),i.Pb(5,"div",8),i.Tb(),i.Tb()}if(2&e){var r=i.gc();i.mc("@arrowOpacity",r._getArrowViewState())("@arrowPosition",r._getArrowViewState())("@allowChildren",r._getArrowDirectionState()),i.Db(2),i.mc("@indicator",r._getArrowDirectionState()),i.Db(1),i.mc("@leftPointer",r._getArrowDirectionState()),i.Db(1),i.mc("@rightPointer",r._getArrowDirectionState())}}var tS,nS,iS,rS,aS,oS,sS,lS,cS,uS,hS,fS,dS,pS,vS,mS,_S,gS,yS,bS,kS,CS,wS,OS,SS,xS,ES=["*"],TS=new i.s("MAT_SORT_DEFAULT_OPTIONS"),AS=sv(nv(function e(){_classCallCheck(this,e)})),RS=((tS=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this))._defaultOptions=e,r.sortables=new Map,r._stateChanges=new Gi.a,r.start="asc",r._direction="",r.sortChange=new i.o,r}return _createClass(n,[{key:"direction",get:function(){return this._direction},set:function(e){this._direction=e}},{key:"disableClear",get:function(){return this._disableClear},set:function(e){this._disableClear=cu(e)}},{key:"register",value:function(e){this.sortables.set(e.id,e)}},{key:"deregister",value:function(e){this.sortables.delete(e.id)}},{key:"sort",value:function(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}},{key:"getNextSortDirection",value:function(e){var t,n,i;if(!e)return"";var r=null!==(n=null!==(t=null==e?void 0:e.disableClear)&&void 0!==t?t:this.disableClear)&&void 0!==n?n:!!(null===(i=this._defaultOptions)||void 0===i?void 0:i.disableClear),a=function(e,t){var n=["asc","desc"];return"desc"==e&&n.reverse(),t||n.push(""),n}(e.start||this.start,r),o=a.indexOf(this.direction)+1;return o>=a.length&&(o=0),a[o]}},{key:"ngOnInit",value:function(){this._markInitialized()}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),n}(AS)).\u0275fac=function(e){return new(e||tS)(i.Ob(TS,8))},tS.\u0275dir=i.Jb({type:tS,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[i.Ab,i.Bb]}),tS),DS=Jp.ENTERING+" "+Zp.STANDARD_CURVE,PS={indicator:mt("indicator",[bt("active-asc, asc",yt({transform:"translateY(0px)"})),bt("active-desc, desc",yt({transform:"translateY(10px)"})),Ct("active-asc <=> active-desc",_t(DS))]),leftPointer:mt("leftPointer",[bt("active-asc, asc",yt({transform:"rotate(-45deg)"})),bt("active-desc, desc",yt({transform:"rotate(45deg)"})),Ct("active-asc <=> active-desc",_t(DS))]),rightPointer:mt("rightPointer",[bt("active-asc, asc",yt({transform:"rotate(45deg)"})),bt("active-desc, desc",yt({transform:"rotate(-45deg)"})),Ct("active-asc <=> active-desc",_t(DS))]),arrowOpacity:mt("arrowOpacity",[bt("desc-to-active, asc-to-active, active",yt({opacity:1})),bt("desc-to-hint, asc-to-hint, hint",yt({opacity:.54})),bt("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",yt({opacity:0})),Ct("* => asc, * => desc, * => active, * => hint, * => void",_t("0ms")),Ct("* <=> *",_t(DS))]),arrowPosition:mt("arrowPosition",[Ct("* => desc-to-hint, * => desc-to-active",_t(DS,kt([yt({transform:"translateY(-25%)"}),yt({transform:"translateY(0)"})]))),Ct("* => hint-to-desc, * => active-to-desc",_t(DS,kt([yt({transform:"translateY(0)"}),yt({transform:"translateY(25%)"})]))),Ct("* => asc-to-hint, * => asc-to-active",_t(DS,kt([yt({transform:"translateY(25%)"}),yt({transform:"translateY(0)"})]))),Ct("* => hint-to-asc, * => active-to-asc",_t(DS,kt([yt({transform:"translateY(0)"}),yt({transform:"translateY(-25%)"})]))),bt("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",yt({transform:"translateY(0)"})),bt("hint-to-desc, active-to-desc, desc",yt({transform:"translateY(-25%)"})),bt("hint-to-asc, active-to-asc, asc",yt({transform:"translateY(25%)"}))]),allowChildren:mt("allowChildren",[Ct("* <=> *",[Ot("@*",wt(),{optional:!0})])])},IS=((nS=function e(){_classCallCheck(this,e),this.changes=new Gi.a,this.sortButtonLabel=function(e){return"Change sorting for ".concat(e)}}).\u0275fac=function(e){return new(e||nS)},nS.\u0275prov=Object(i.Kb)({factory:function(){return new nS},token:nS,providedIn:"root"}),nS),MS={provide:IS,deps:[[new i.C,new i.M,IS]],useFactory:function(e){return e||new IS}},LS=nv(function e(){_classCallCheck(this,e)}),jS=((rS=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,o,s){var l;return _classCallCheck(this,n),(l=t.call(this))._intl=e,l._changeDetectorRef=i,l._sort=r,l._columnDef=a,l._focusMonitor=o,l._elementRef=s,l._showIndicatorHint=!1,l._arrowDirection="",l._disableViewStateAnimation=!1,l.arrowPosition="after",l._handleStateChanges(),l}return _createClass(n,[{key:"disableClear",get:function(){return this._disableClear},set:function(e){this._disableClear=cu(e)}},{key:"ngOnInit",value:function(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}},{key:"ngAfterViewInit",value:function(){var e=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(t){var n=!!t;n!==e._showIndicatorHint&&(e._setIndicatorHintVisible(n),e._changeDetectorRef.markForCheck())})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}},{key:"_setIndicatorHintVisible",value:function(e){this._isDisabled()&&e||(this._showIndicatorHint=e,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}},{key:"_setAnimationTransitionState",value:function(e){this._viewState=e,this._disableViewStateAnimation&&(this._viewState={toState:e.toState})}},{key:"_toggleOnInteraction",value:function(){this._sort.sort(this),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0)}},{key:"_handleClick",value:function(){this._isDisabled()||this._sort.sort(this)}},{key:"_handleKeydown",value:function(e){this._isDisabled()||32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),this._toggleOnInteraction())}},{key:"_isSorted",value:function(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}},{key:"_getArrowDirectionState",value:function(){return"".concat(this._isSorted()?"active-":"").concat(this._arrowDirection)}},{key:"_getArrowViewState",value:function(){var e=this._viewState.fromState;return(e?"".concat(e,"-to-"):"")+this._viewState.toState}},{key:"_updateArrowDirection",value:function(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}},{key:"_isDisabled",value:function(){return this._sort.disabled||this.disabled}},{key:"_getAriaSortAttribute",value:function(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}},{key:"_renderArrow",value:function(){return!this._isDisabled()||this._isSorted()}},{key:"_handleStateChanges",value:function(){var e=this;this._rerenderSubscription=Object(Ki.a)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(function(){e._isSorted()&&(e._updateArrowDirection(),"hint"!==e._viewState.toState&&"active"!==e._viewState.toState||(e._disableViewStateAnimation=!0),e._setAnimationTransitionState({fromState:e._arrowDirection,toState:"active"}),e._showIndicatorHint=!1),!e._isSorted()&&e._viewState&&"active"===e._viewState.toState&&(e._disableViewStateAnimation=!1,e._setAnimationTransitionState({fromState:"active",toState:e._arrowDirection})),e._changeDetectorRef.markForCheck()})}}]),n}(LS)).\u0275fac=function(e){return new(e||rS)(i.Ob(IS),i.Ob(i.h),i.Ob(RS,8),i.Ob("MAT_SORT_HEADER_COLUMN_DEF",8),i.Ob(Bp),i.Ob(i.l))},rS.\u0275cmp=i.Ib({type:rS,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,t){1&e&&i.cc("click",function(){return t._handleClick()})("keydown",function(e){return t._handleKeydown(e)})("mouseenter",function(){return t._setIndicatorHintVisible(!0)})("mouseleave",function(){return t._setIndicatorHintVisible(!1)}),2&e&&(i.Eb("aria-sort",t._getAriaSortAttribute()),i.Gb("mat-sort-header-disabled",t._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[i.Ab],attrs:$O,ngContentSelectors:ES,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(e,t){1&e&&(i.lc(),i.Ub(0,"div",0),i.Ub(1,"div",1),i.kc(2),i.Tb(),i.Ec(3,eS,6,6,"div",2),i.Tb()),2&e&&(i.Gb("mat-sort-header-sorted",t._isSorted())("mat-sort-header-position-before","before"==t.arrowPosition),i.Eb("tabindex",t._isDisabled()?null:0),i.Db(3),i.mc("ngIf",t._renderArrow()))},directives:[Z],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[PS.indicator,PS.leftPointer,PS.rightPointer,PS.arrowOpacity,PS.arrowPosition,PS.allowChildren]},changeDetection:0}),rS),FS=((iS=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||iS)},iS.\u0275mod=i.Mb({type:iS}),iS.\u0275inj=i.Lb({providers:[MS],imports:[[Ce,tv]]}),iS),NS=[[["caption"]],[["colgroup"],["col"]]],US=["caption","colgroup, col"],BS=((aS=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments)).stickyCssClass="mat-table-sticky",e.needsPositionStickyOnElement=!1,e}return n}(tb)).\u0275fac=function(e){return VS(e||aS)},aS.\u0275cmp=i.Ib({type:aS,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(e,t){2&e&&i.Gb("mat-table-fixed-layout",t.fixedLayout)},exportAs:["matTable"],features:[i.Cb([{provide:Em,useClass:Sm},{provide:tb,useExisting:aS},{provide:Oy,useExisting:aS},{provide:Ly,useClass:jy}]),i.Ab],ngContentSelectors:US,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(i.lc(NS),i.kc(0),i.kc(1,1),i.Qb(2,0),i.Qb(3,1),i.Qb(4,2),i.Qb(5,3))},directives:[Jy,Zy,eb,$y],styles:['mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:""}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:-webkit-sticky !important;position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n'],encapsulation:2}),aS),VS=i.Wb(BS),HS=((oS=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(Sy)).\u0275fac=function(e){return zS(e||oS)},oS.\u0275dir=i.Jb({type:oS,selectors:[["","matCellDef",""]],features:[i.Cb([{provide:Sy,useExisting:oS}]),i.Ab]}),oS),zS=i.Wb(HS),YS=((sS=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(xy)).\u0275fac=function(e){return WS(e||sS)},sS.\u0275dir=i.Jb({type:sS,selectors:[["","matHeaderCellDef",""]],features:[i.Cb([{provide:xy,useExisting:sS}]),i.Ab]}),sS),WS=i.Wb(YS),KS=((lS=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(Ey)).\u0275fac=function(e){return qS(e||lS)},lS.\u0275dir=i.Jb({type:lS,selectors:[["","matFooterCellDef",""]],features:[i.Cb([{provide:Ey,useExisting:lS}]),i.Ab]}),lS),qS=i.Wb(KS),GS=((cS=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"name",get:function(){return this._name},set:function(e){this._setNameInput(e)}},{key:"_updateColumnCssClassName",value:function(){_get(_getPrototypeOf(n.prototype),"_updateColumnCssClassName",this).call(this),this._columnCssClassName.push("mat-column-".concat(this.cssClassFriendlyName))}}]),n}(Ay)).\u0275fac=function(e){return QS(e||cS)},cS.\u0275dir=i.Jb({type:cS,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[i.Cb([{provide:Ay,useExisting:cS},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:cS}]),i.Ab]}),cS),QS=i.Wb(GS),XS=((uS=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(Dy)).\u0275fac=function(e){return ZS(e||uS)},uS.\u0275dir=i.Jb({type:uS,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[i.Ab]}),uS),ZS=i.Wb(XS),JS=((hS=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(Py)).\u0275fac=function(e){return $S(e||hS)},hS.\u0275dir=i.Jb({type:hS,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[i.Ab]}),hS),$S=i.Wb(JS),ex=((fS=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(Iy)).\u0275fac=function(e){return tx(e||fS)},fS.\u0275dir=i.Jb({type:fS,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[i.Ab]}),fS),tx=i.Wb(ex),nx=((dS=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(Uy)).\u0275fac=function(e){return ix(e||dS)},dS.\u0275dir=i.Jb({type:dS,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[i.Cb([{provide:Uy,useExisting:dS}]),i.Ab]}),dS),ix=i.Wb(nx),rx=((pS=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(Vy)).\u0275fac=function(e){return ax(e||pS)},pS.\u0275dir=i.Jb({type:pS,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[i.Cb([{provide:Vy,useExisting:pS}]),i.Ab]}),pS),ax=i.Wb(rx),ox=((vS=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(Hy)).\u0275fac=function(e){return sx(e||vS)},vS.\u0275dir=i.Jb({type:vS,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[i.Cb([{provide:Hy,useExisting:vS}]),i.Ab]}),vS),sx=i.Wb(ox),lx=((mS=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(Yy)).\u0275fac=function(e){return cx(e||mS)},mS.\u0275cmp=i.Ib({type:mS,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[i.Cb([{provide:Yy,useExisting:mS}]),i.Ab],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&i.Qb(0,0)},directives:[zy],encapsulation:2}),mS),cx=i.Wb(lx),ux=((_S=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(Wy)).\u0275fac=function(e){return hx(e||_S)},_S.\u0275cmp=i.Ib({type:_S,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[i.Cb([{provide:Wy,useExisting:_S}]),i.Ab],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&i.Qb(0,0)},directives:[zy],encapsulation:2}),_S),hx=i.Wb(ux),fx=((gS=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(Ky)).\u0275fac=function(e){return dx(e||gS)},gS.\u0275cmp=i.Ib({type:gS,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[i.Cb([{provide:Ky,useExisting:gS}]),i.Ab],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&i.Qb(0,0)},directives:[zy],encapsulation:2}),gS),dx=i.Wb(fx),px=((yS=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||yS)},yS.\u0275mod=i.Mb({type:yS}),yS.\u0275inj=i.Lb({imports:[[lb,tv],tv]}),yS),vx=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return _classCallCheck(this,n),(e=t.call(this))._renderData=new la.a([]),e._filter=new la.a(""),e._internalPageChanges=new Gi.a,e._renderChangesSubscription=null,e.sortingDataAccessor=function(e,t){var n=e[t];if(hu(n)){var i=Number(n);return i<9007199254740991?i:n}return n},e.sortData=function(t,n){var i=n.active,r=n.direction;return i&&""!=r?t.sort(function(t,n){var a=e.sortingDataAccessor(t,i),o=e.sortingDataAccessor(n,i),s=typeof a,l=typeof o;s!==l&&("number"===s&&(a+=""),"number"===l&&(o+=""));var c=0;return null!=a&&null!=o?a>o?c=1:a<o&&(c=-1):null!=a?c=1:null!=o&&(c=-1),c*("asc"==r?1:-1)}):t},e.filterPredicate=function(e,t){var n=Object.keys(e).reduce(function(t,n){return t+e[n]+"\u25ec"},"").toLowerCase(),i=t.trim().toLowerCase();return-1!=n.indexOf(i)},e._data=new la.a(i),e._updateChangeSubscription(),e}return _createClass(n,[{key:"data",get:function(){return this._data.value},set:function(e){this._data.next(e),this._renderChangesSubscription||this._filterData(e)}},{key:"filter",get:function(){return this._filter.value},set:function(e){this._filter.next(e),this._renderChangesSubscription||this._filterData(this.data)}},{key:"sort",get:function(){return this._sort},set:function(e){this._sort=e,this._updateChangeSubscription()}},{key:"paginator",get:function(){return this._paginator},set:function(e){this._paginator=e,this._updateChangeSubscription()}},{key:"_updateChangeSubscription",value:function(){var e,t=this,n=this._sort?Object(Ki.a)(this._sort.sortChange,this._sort.initialized):Object($i.a)(null),i=this._paginator?Object(Ki.a)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):Object($i.a)(null),r=va([this._data,this._filter]).pipe(Object(ar.a)(function(e){var n=_slicedToArray(e,1)[0];return t._filterData(n)})),a=va([r,n]).pipe(Object(ar.a)(function(e){var n=_slicedToArray(e,1)[0];return t._orderData(n)})),o=va([a,i]).pipe(Object(ar.a)(function(e){var n=_slicedToArray(e,1)[0];return t._pageData(n)}));null===(e=this._renderChangesSubscription)||void 0===e||e.unsubscribe(),this._renderChangesSubscription=o.subscribe(function(e){return t._renderData.next(e)})}},{key:"_filterData",value:function(e){var t=this;return this.filteredData=null==this.filter||""===this.filter?e:e.filter(function(e){return t.filterPredicate(e,t.filter)}),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}},{key:"_orderData",value:function(e){return this.sort?this.sortData(e.slice(),this.sort):e}},{key:"_pageData",value:function(e){if(!this.paginator)return e;var t=this.paginator.pageIndex*this.paginator.pageSize;return e.slice(t,t+this.paginator.pageSize)}},{key:"_updatePaginator",value:function(e){var t=this;Promise.resolve().then(function(){var n=t.paginator;if(n&&(n.length=e,n.pageIndex>0)){var i=Math.ceil(n.length/n.pageSize)-1||0,r=Math.min(n.pageIndex,i);r!==n.pageIndex&&(n.pageIndex=r,t._internalPageChanges.next())}})}},{key:"connect",value:function(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}},{key:"disconnect",value:function(){var e;null===(e=this._renderChangesSubscription)||void 0===e||e.unsubscribe(),this._renderChangesSubscription=null}}]),n}(ym)),mx=av(nv(vb)),_x=((kS=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this,e,i))._elementRef=e,a._tree=i,a.tabIndex=Number(r)||0,a._elementRef.nativeElement.classList.add("mat-tree-node"),a}return _createClass(n,[{key:"ngOnInit",value:function(){_get(_getPrototypeOf(n.prototype),"ngOnInit",this).call(this)}},{key:"ngDoCheck",value:function(){_get(_getPrototypeOf(n.prototype),"ngDoCheck",this).call(this)}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(n.prototype),"ngOnDestroy",this).call(this)}}]),n}(mx)).\u0275fac=function(e){return new(e||kS)(i.Ob(i.l),i.Ob(pb),i.Zb("tabindex"))},kS.\u0275dir=i.Jb({type:kS,selectors:[["mat-tree-node"]],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[i.Cb([{provide:vb,useExisting:kS}]),i.Ab]}),kS),gx=((bS=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(db)).\u0275fac=function(e){return yx(e||bS)},bS.\u0275dir=i.Jb({type:bS,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[i.Cb([{provide:db,useExisting:bS}]),i.Ab]}),bS),yx=i.Wb(gx),bx=((wS=function e(t,n){_classCallCheck(this,e),this.viewContainer=t,this._node=n}).\u0275fac=function(e){return new(e||wS)(i.Ob(i.S),i.Ob(ub,8))},wS.\u0275dir=i.Jb({type:wS,selectors:[["","matTreeNodeOutlet",""]],features:[i.Cb([{provide:hb,useExisting:wS}])]}),wS),kx=((CS=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(pb)).\u0275fac=function(e){return Cx(e||CS)},CS.\u0275cmp=i.Ib({type:CS,selectors:[["mat-tree"]],viewQuery:function(e,t){var n;1&e&&i.Kc(bx,3),2&e&&i.sc(n=i.dc())&&(t._nodeOutlet=n.first)},hostAttrs:["role","tree",1,"mat-tree","cdk-tree"],exportAs:["matTree"],features:[i.Cb([{provide:pb,useExisting:CS}]),i.Ab],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(e,t){1&e&&i.Qb(0,0)},directives:[bx],styles:[".mat-tree{display:block}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word}.mat-nested-tree-node{border-bottom-width:0}\n"],encapsulation:2}),CS),Cx=i.Wb(kx),wx=((OS=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"recursive",get:function(){return this._recursive},set:function(e){this._recursive=cu(e)}}]),n}(yb)).\u0275fac=function(e){return Ox(e||OS)},OS.\u0275dir=i.Jb({type:OS,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[i.Cb([{provide:yb,useExisting:OS}]),i.Ab]}),OS),Ox=i.Wb(wx),Sx=((SS=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||SS)},SS.\u0275mod=i.Mb({type:SS}),SS.\u0275inj=i.Lb({imports:[[bb,tv],tv]}),SS),xx=function(){function e(t,n,i,r){_classCallCheck(this,e),this.transformFunction=t,this.getLevel=n,this.isExpandable=i,this.getChildren=r}return _createClass(e,[{key:"_flattenNode",value:function(e,t,n,i){var r=this,a=this.transformFunction(e,t);if(n.push(a),this.isExpandable(a)){var o=this.getChildren(e);o&&(Array.isArray(o)?this._flattenChildren(o,t,n,i):o.pipe(Object(Cr.a)(1)).subscribe(function(e){r._flattenChildren(e,t,n,i)}))}return n}},{key:"_flattenChildren",value:function(e,t,n,i){var r=this;e.forEach(function(a,o){var s=i.slice();s.push(o!=e.length-1),r._flattenNode(a,t+1,n,s)})}},{key:"flattenNodes",value:function(e){var t=this,n=[];return e.forEach(function(e){return t._flattenNode(e,0,n,[])}),n}},{key:"expandFlattenedNodes",value:function(e,t){var n=this,i=[],r=[];return r[0]=!0,e.forEach(function(e){for(var a=!0,o=0;o<=n.getLevel(e);o++)a=a&&r[o];a&&i.push(e),n.isExpandable(e)&&(r[n.getLevel(e)+1]=t.isExpanded(e))}),i}}]),e}(),Ex=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return _classCallCheck(this,n),(r=t.call(this))._treeControl=e,r._treeFlattener=i,r._flattenedData=new la.a([]),r._expandedData=new la.a([]),r._data=new la.a(a),r}return _createClass(n,[{key:"data",get:function(){return this._data.value},set:function(e){this._data.next(e),this._flattenedData.next(this._treeFlattener.flattenNodes(this.data)),this._treeControl.dataNodes=this._flattenedData.value}},{key:"connect",value:function(e){var t=this,n=[e.viewChange,this._treeControl.expansionModel.changed,this._flattenedData];return Object(Ki.a).apply(void 0,n).pipe(Object(ar.a)(function(){return t._expandedData.next(t._treeFlattener.expandFlattenedNodes(t._flattenedData.value,t._treeControl)),t._expandedData.value}))}},{key:"disconnect",value:function(){}}]),n}(ym),Tx=[lb,bb,HC,Gv,ww,bC,Og,Pw,K_,UO,JO,rO,FS,px,zg,CO,Sx],Ax=((xS=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||xS)},xS.\u0275mod=i.Mb({type:xS}),xS.\u0275inj=i.Lb({imports:[Tx,lb,bb,HC,Gv,ww,bC,Og,Pw,K_,UO,JO,rO,FS,px,zg,CO,Sx]}),xS);function Rx(e,t){if(1&e){var n=i.Vb();i.Ub(0,"div",3),i.cc("click",function(){return i.xc(n),i.gc().panLeft()}),i.Ub(1,"mat-icon"),i.Fc(2," keyboard_arrow_left "),i.Tb(),i.Tb()}if(2&e){var r=i.gc();i.mc("ngClass",r.isSticky?"sticky":null)("ngStyle",r.panLeftStyles)}}function Dx(e,t){if(1&e){var n=i.Vb();i.Ub(0,"div",4,5),i.cc("click",function(){return i.xc(n),i.gc().panRight()}),i.Ub(2,"mat-icon"),i.Fc(3," keyboard_arrow_right "),i.Tb(),i.Tb()}if(2&e){var r=i.gc();i.mc("ngClass",r.isSticky?"sticky":null)("ngStyle",r.panRightStyles)}}var Px,Ix,Mx=["*"],Lx=function(){return new CustomEvent("ftdna-pannable--update")},jx=((Ix=function(){function e(t){_classCallCheck(this,e),this.rootRef=t,this.panLeftPositionLeft=0,this.panRightPositionLeft=0,this.showPanLeft=!0,this.showPanRight=!0,this.isSticky=!1,this.offsetTop=0,this.updated=new i.o}return _createClass(e,[{key:"ngAfterContentInit",value:function(){this.container=this.rootRef.nativeElement,this.setPanPositions(),this.setPanVisibility()}},{key:"panLeft",value:function(){try{this.container.scrollBy({left:-1*this.container.offsetWidth,behavior:"smooth"})}catch(t){var e=this.container.scrollLeft-this.container.offsetWidth;this.container.scrollLeft=e>=0?e:0}}},{key:"panRight",value:function(){try{this.container.scrollBy({left:this.container.offsetWidth,behavior:"smooth"})}catch(e){this.container.scrollLeft+=this.container.offsetWidth}}},{key:"setPanPositions",value:function(){var e=this.container.getBoundingClientRect();this.panLeftPositionLeft=e.left+(this.isSticky?0:this.container.scrollLeft)+20,this.panRightPositionLeft=e.right-60}},{key:"setPanVisibility",value:function(){var e=this.container.offsetWidth;this.showPanLeft=e<this.container.scrollWidth&&this.container.scrollLeft>0,this.showPanRight=this.container.scrollLeft<this.container.scrollWidth-e}},{key:"update",value:function(){this.setPanPositions(),this.setPanVisibility(),this.updated.emit()}},{key:"panLeftStyles",get:function(){return{left:this.panLeftPositionLeft+"px"}}},{key:"panRightStyles",get:function(){return{left:this.panRightPositionLeft+"px"}}},{key:"onUpdate",value:function(){this.update()}},{key:"onScroll",value:function(){this.update()}},{key:"onWindowScroll",value:function(){this.update(),this.isSticky=!(this.container.getBoundingClientRect().top>=this.offsetTop)}},{key:"onWindowResize",value:function(){this.update()}}]),e}()).\u0275fac=function(e){return new(e||Ix)(i.Ob(i.l))},Ix.\u0275cmp=i.Ib({type:Ix,selectors:[["ftdna-pannable"]],hostBindings:function(e,t){1&e&&i.cc("ftdna-pannable--update",function(){return t.onUpdate()},!1,i.vc)("scroll",function(){return t.onScroll()})("scroll",function(){return t.onWindowScroll()},!1,i.wc)("resize",function(){return t.onWindowResize()},!1,i.wc)},inputs:{offsetTop:"offsetTop"},outputs:{updated:"updated"},ngContentSelectors:Mx,decls:4,vars:2,consts:[[1,"pannable"],["class","pan pan-left",3,"ngClass","ngStyle","click",4,"ngIf"],["class","pan pan-right",3,"ngClass","ngStyle","click",4,"ngIf"],[1,"pan","pan-left",3,"ngClass","ngStyle","click"],[1,"pan","pan-right",3,"ngClass","ngStyle","click"],["pannableContain",""]],template:function(e,t){1&e&&(i.lc(),i.Ub(0,"div",0),i.Ec(1,Rx,3,2,"div",1),i.kc(2),i.Ec(3,Dx,4,2,"div",2),i.Tb()),2&e&&(i.Db(1),i.mc("ngIf",t.showPanLeft),i.Db(2),i.mc("ngIf",t.showPanRight))},directives:[Z,q,Cu,le,Uu,wg],styles:[".pannable[_ngcontent-%COMP%]{position:relative}.pannable[_ngcontent-%COMP%]   .pan[_ngcontent-%COMP%]{background:#fff;border:1px solid #d6d6d6;border-radius:20px;box-shadow:0 3px 6px rgba(0,0,0,.16);height:40px;opacity:.5;position:absolute;text-align:center;top:40px;width:40px;z-index:1000}.pannable[_ngcontent-%COMP%]   .pan.sticky[_ngcontent-%COMP%]{position:fixed;top:50%}.pannable[_ngcontent-%COMP%]   .pan[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{line-height:40px}.pannable[_ngcontent-%COMP%]   .pan.pan-left[_ngcontent-%COMP%]{left:20px}.pannable[_ngcontent-%COMP%]   .pan.pan-right[_ngcontent-%COMP%]{right:20px}.pannable[_ngcontent-%COMP%]   .pan[_ngcontent-%COMP%]:hover{cursor:pointer;opacity:1}"]}),Ix),Fx=((Px=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Px)},Px.\u0275mod=i.Mb({type:Px}),Px.\u0275inj=i.Lb({imports:[[Ce,jh,Og]]}),Px);function Nx(e,t){if(1&e&&i.Pb(0,"img",9),2&e){var n=i.gc().$implicit;i.oc("src","/common/img/country-flags/",n.countryCode,".svg",i.zc)}}function Ux(e,t){if(1&e&&(i.Ub(0,"div",10),i.Fc(1),i.Tb()),2&e){var n=i.gc().$implicit;i.Db(1),i.Jc(" ",n.name," - ",n.kitsCounts," participant",1===n.kitsCounts?"":"s"," ")}}function Bx(e,t){if(1&e&&(i.Ub(0,"div",6),i.Ec(1,Nx,1,1,"img",7),i.Ec(2,Ux,2,3,"div",8),i.Tb()),2&e){var n=t.$implicit;i.Db(1),i.mc("ngIf","X"!=n.countryCode),i.Db(1),i.mc("ngIf","X"!=n.countryCode)}}var Vx,Hx,zx,Yx=((zx=function(){function e(t){_classCallCheck(this,e),this.data=t,this.countries=t.countries,this.haplogroup=t.haplogroup}return _createClass(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||zx)(i.Ob(ow))},zx.\u0275cmp=i.Ib({type:zx,selectors:[["ng-component"]],decls:9,vars:2,consts:[["mat-dialog-title",""],[1,"countryDialogList"],["class","countryDialogItem","fxLayout","row",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","end"],["mat-button","","mat-dialog-close","","color","accent"],["mat-button","","mat-dialog-close","true","color","accent"],["fxLayout","row",1,"countryDialogItem"],["class","flag",3,"src",4,"ngIf"],["class","countryText",4,"ngIf"],[1,"flag",3,"src"],[1,"countryText"]],template:function(e,t){1&e&&(i.Ub(0,"h2",0),i.Fc(1),i.Tb(),i.Ub(2,"mat-dialog-content",1),i.Ec(3,Bx,3,2,"div",2),i.Tb(),i.Ub(4,"mat-dialog-actions",3),i.Ub(5,"button",4),i.Fc(6,"CANCEL"),i.Tb(),i.Ub(7,"button",5),i.Fc(8,"VIEW REPORT"),i.Tb(),i.Tb()),2&e&&(i.Db(1),i.Hc("Countries haplogroup ",t.haplogroup,""),i.Db(2),i.mc("ngForOf",t.countries))},directives:[pw,vw,Q,mw,oh,_h,qv,dw,Z],styles:[".mat-dialog-title[_ngcontent-%COMP%]{font-size:16px}.countryDialogList[_ngcontent-%COMP%]{max-height:216px;max-width:425px}.countryDialogList[_ngcontent-%COMP%]   .countryDialogItem[_ngcontent-%COMP%]{margin-bottom:.5em;align-items:center}.countryDialogList[_ngcontent-%COMP%]   .countryDialogItem[_ngcontent-%COMP%]   .flag[_ngcontent-%COMP%]{background-color:#cbcbcb;border-radius:9px;height:18px;width:18px}.countryDialogList[_ngcontent-%COMP%]   .countryDialogItem[_ngcontent-%COMP%]   .countryText[_ngcontent-%COMP%]{margin-left:8px}"]}),zx),Wx=((Hx=function(){function e(t){_classCallCheck(this,e),this.data=t,this.surnames=t.surnames.map(function(e){return e.surname}).join(", "),this.haplogroup=t.haplogroup}return _createClass(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||Hx)(i.Ob(ow))},Hx.\u0275cmp=i.Ib({type:Hx,selectors:[["ng-component"]],decls:11,vars:2,consts:[["mat-dialog-title",""],[1,"disable-translation"],[1,"surnameDialog","disable-translation"],["fxLayout","row","fxLayoutAlign","end"],["mat-button","","mat-dialog-close","","color","accent"],["mat-button","","mat-dialog-close","true","color","accent"]],template:function(e,t){1&e&&(i.Ub(0,"h2",0),i.Fc(1,"Surnames haplogroup "),i.Ub(2,"span",1),i.Fc(3),i.Tb(),i.Tb(),i.Ub(4,"mat-dialog-content",2),i.Fc(5),i.Tb(),i.Ub(6,"mat-dialog-actions",3),i.Ub(7,"button",4),i.Fc(8,"CANCEL"),i.Tb(),i.Ub(9,"button",5),i.Fc(10,"VIEW REPORT"),i.Tb(),i.Tb()),2&e&&(i.Db(3),i.Gc(t.haplogroup),i.Db(2),i.Hc(" ",t.surnames,"\n"))},directives:[pw,vw,mw,oh,_h,qv,dw],styles:[".mat-dialog-title[_ngcontent-%COMP%]{font-size:16px}.surnameDialog[_ngcontent-%COMP%]{max-height:216px;max-width:365px}.mat-dialog-actions[_ngcontent-%COMP%]   .mat-button[_ngcontent-%COMP%]:hover{background-color:transparent}"]}),Hx),Kx=((Vx=function(){function e(t){_classCallCheck(this,e),this.data=t,this.variants=t.variants.map(function(e){return e.variant}).join(", "),this.haplogroup=t.haplogroup}return _createClass(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||Vx)(i.Ob(ow))},Vx.\u0275cmp=i.Ib({type:Vx,selectors:[["ng-component"]],decls:9,vars:2,consts:[["mat-dialog-title",""],[1,"disable-translation"],[1,"variantDialog","disable-translation"],["mat-button","","mat-dialog-close","","color","accent"]],template:function(e,t){1&e&&(i.Ub(0,"h2",0),i.Fc(1,"Variants haplogroup "),i.Ub(2,"span",1),i.Fc(3),i.Tb(),i.Tb(),i.Ub(4,"mat-dialog-content",2),i.Fc(5),i.Tb(),i.Ub(6,"mat-dialog-actions"),i.Ub(7,"button",3),i.Fc(8,"CANCEL"),i.Tb(),i.Tb()),2&e&&(i.Db(3),i.Gc(t.haplogroup),i.Db(2),i.Hc(" ",t.variants,"\n"))},directives:[pw,vw,mw,qv,dw],styles:[".mat-dialog-title[_ngcontent-%COMP%]{font-size:16px}.variantDialog[_ngcontent-%COMP%]{max-height:216px;max-width:365px}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.mat-dialog-actions[_ngcontent-%COMP%]   .mat-button[_ngcontent-%COMP%]:hover{background-color:transparent}"]}),Vx);function qx(e,t){if(1&e&&(i.Ub(0,"th",26),i.Fc(1),i.Ub(2,"mat-icon"),i.Fc(3,"info"),i.Tb(),i.Tb()),2&e){var n=i.gc();i.nc("matTooltip",n.data.tree===n.yTree?"Self-reported country of the earliest known direct paternal line ancestor of Y-SNP testers.":"Self-reported country of the earliest known direct maternal line ancestor of mtFull Sequence testers."),i.Db(1),i.Hc(" ",n.originHeader,"*")}}function Gx(e,t){if(1&e&&i.Pb(0,"img",29),2&e){var n=i.gc().$implicit;i.oc("src","/common/img/country-flags/",n.countryCode,".svg",i.zc),i.nc("matTooltip",n.name)}}function Qx(e,t){if(1&e&&(i.Ub(0,"td",27),i.Ec(1,Gx,1,2,"img",28),i.Fc(2),i.Tb()),2&e){var n=t.$implicit;i.Db(1),i.mc("ngIf","X"!=n.countryCode),i.Db(1),i.Hc(" ",n.name," ")}}function Xx(e,t){1&e&&(i.Ub(0,"td",30),i.Fc(1,"Total"),i.Tb())}function Zx(e,t){if(1&e&&(i.Ub(0,"th",31),i.Ub(1,"div"),i.Ub(2,"div",32),i.Fc(3,"Branch Participants"),i.Tb(),i.Ub(4,"div",33),i.Fc(5),i.Tb(),i.Tb(),i.Ub(6,"div"),i.Ub(7,"mat-icon"),i.Fc(8,"info"),i.Tb(),i.Tb(),i.Tb()),2&e){var n=i.gc();i.nc("matTooltip",n.data.tree===n.yTree?"Number of Y-SNP testers placed on this branch who reported this paternal origin. Further SNP testing could give more specific placements.":"Number of mtFull Sequence testers placed on this branch who specified this maternal origin."),i.Db(5),i.Gc(n.node.name)}}function Jx(e,t){if(1&e&&(i.Ub(0,"td",34),i.Fc(1),i.hc(2,"number"),i.Tb()),2&e){var n=t.$implicit;i.Db(1),i.Hc(" ",i.ic(2,1,n.kitsCounts)," ")}}function $x(e,t){if(1&e&&(i.Ub(0,"td",35),i.Fc(1),i.hc(2,"number"),i.Tb()),2&e){var n=i.gc();i.Db(1),i.Hc(" ",i.ic(2,1,n.totalKits)," ")}}function eE(e,t){if(1&e&&(i.Ub(0,"th",36),i.Ub(1,"div"),i.Ub(2,"div",32),i.Fc(3,"Downstream Participants"),i.Tb(),i.Ub(4,"div",33),i.Fc(5),i.Tb(),i.Tb(),i.Ub(6,"div"),i.Ub(7,"mat-icon"),i.Fc(8,"info"),i.Tb(),i.Tb(),i.Tb()),2&e){var n=i.gc();i.nc("matTooltip",n.data.tree===n.yTree?"Number of Y-SNP testers placed below this branch who reported this paternal origin. Downstream testers descend from a common paternal ancestor.":"Number of mtFull testers placed at or below this branch who specified this maternal origin. All testers descend from a common maternal ancestor."),i.Db(5),i.Hc(" ",n.node.name," and Downstream (Excluding other Letters) ")}}function tE(e,t){if(1&e&&(i.Ub(0,"td",34),i.Fc(1),i.hc(2,"number"),i.Tb()),2&e){var n=t.$implicit;i.Db(1),i.Hc(" ",i.ic(2,1,n.kitsCountsDownstream)," ")}}function nE(e,t){if(1&e&&(i.Ub(0,"td",35),i.Fc(1),i.hc(2,"number"),i.Tb()),2&e){var n=i.gc();i.Db(1),i.Hc(" ",i.ic(2,1,n.totalKitsDownstream)," ")}}function iE(e,t){if(1&e&&(i.Ub(0,"th",37),i.Ub(1,"div"),i.Ub(2,"div",32),i.Fc(3,"All Downstream Participants"),i.Tb(),i.Ub(4,"div",33),i.Fc(5),i.Tb(),i.Tb(),i.Ub(6,"div"),i.Ub(7,"mat-icon"),i.Fc(8,"info"),i.Tb(),i.Tb(),i.Tb()),2&e){var n=i.gc();i.nc("matTooltip",n.data.tree===n.yTree?"Number of Y-SNP testers placed at or below this branch who reported this paternal origin. All testers descend from a common paternal ancestor.":"Number of mtFull testers placed at or below this branch who specified this maternal origin. All testers descend from a common maternal ancestor."),i.Db(5),i.Hc(" ",n.node.name," and Downstream (Including other Letters) ")}}function rE(e,t){if(1&e&&(i.Ub(0,"td",34),i.Fc(1),i.hc(2,"number"),i.Tb()),2&e){var n=t.$implicit;i.Db(1),i.Hc(" ",i.ic(2,1,n.kitsCountsDownstreamFull)," ")}}function aE(e,t){if(1&e&&(i.Ub(0,"td",35),i.Fc(1),i.hc(2,"number"),i.Tb()),2&e){var n=i.gc();i.Db(1),i.Hc(" ",i.ic(2,1,n.totalKitsDownstreamFull)," ")}}function oE(e,t){if(1&e&&(i.Ub(0,"th",38),i.Ub(1,"div",39),i.Ub(2,"div"),i.Fc(3,"Distribution"),i.Tb(),i.Ub(4,"div"),i.Ub(5,"mat-icon"),i.Fc(6,"info"),i.Tb(),i.Tb(),i.Tb(),i.Tb()),2&e){var n=i.gc();i.nc("matTooltip",n.data.tree===n.yTree?"Percentage of descendents of this haplogroup who reported this paternal origin. This can provide a hint as to where the common ancestor lived.":"Percentage of descendents of this haplogroup who reported this maternal origin. This can provide a hint as to where the common ancestor lived.")}}function sE(e,t){if(1&e&&(i.Ub(0,"td",34),i.Fc(1),i.hc(2,"percent"),i.Tb()),2&e){var n=t.$implicit,r=i.gc();i.Db(1),i.Hc(" ","X"===n.countryCode?"**":i.jc(2,1,n.kitsCountsDownstreamFull/r.totalKnownDownstreamFull,"1.2-2")," ")}}function lE(e,t){1&e&&(i.Ub(0,"td",35),i.Fc(1,"100.00%"),i.Tb())}function cE(e,t){1&e&&i.Pb(0,"tr",40)}function uE(e,t){1&e&&i.Pb(0,"tr",41)}function hE(e,t){1&e&&i.Pb(0,"tr",42)}function fE(e,t){1&e&&i.Pb(0,"tr",43)}var dE,pE=((dE=function(){function e(t,n){_classCallCheck(this,e),this.data=t,this.dialogRef=n,this.yTree=$h,this.columns=["name","kitsCounts","kitsCountsDownstream","kitsCountsDownstreamFull","distribution"],this.allNodes=t.allNodes,this.node=t.node,this.originHeader=t.tree==ef?"Maternal Origin":"Paternal Origin",this.title=t.tree==ef?"mtDNA":"Y-DNA"}return _createClass(e,[{key:"ngAfterContentInit",value:function(){var e=this;setTimeout(function(){var t=e.getDownstreamCounts(e.node);e.countries=t.filter(function(e){return"X"!==e.countryCode}).sort(function(e,t){return t.kitsCountsDownstreamFull-e.kitsCountsDownstreamFull}).concat(t.filter(function(e){return"X"===e.countryCode})),e.totalKits=e.countries.reduce(function(e,t){return e+t.kitsCounts},0),e.totalKitsDownstream=e.countries.reduce(function(e,t){return e+t.kitsCountsDownstream},0),e.totalKitsDownstreamFull=e.countries.reduce(function(e,t){return e+t.kitsCountsDownstreamFull},0),e.totalKnownDownstreamFull=e.countries.filter(function(e){return"X"!=e.countryCode}).reduce(function(e,t){return e+t.kitsCountsDownstreamFull},0),e.dataSource=new vx(e.countries),e.dataSource.sort=e.sort,e.dataSource.paginator=e.paginator,e.dataSource.sortingDataAccessor=function(t,n){return"X"!==t.countryCode?t[n]:e.isNumber(t[n])?"asc"===e.sort.direction?Number.MAX_SAFE_INTEGER:Number.MIN_SAFE_INTEGER:"asc"===e.sort.direction?"zzz":"AAA"}},1e3)}},{key:"close",value:function(){this.dialogRef.close()}},{key:"isNumber",value:function(e){return!isNaN(Number(e.toString()))}},{key:"compare",value:function(e,t,n,i){return(e[i]<t[i]?-1:1)*(n?1:-1)}},{key:"getDownstreamCounts",value:function(e){var t=this,n=(e.countryCounts||[]).map(function(e){return Object.assign(Object.assign({},e),{kitsCountsDownstream:e.kitsCounts,kitsCountsDownstreamFull:e.kitsCounts})});return e.children?e.children.map(function(e){return t.allNodes[e]}).reduce(function(e,n){if(void 0!==n)return t.mergeCountryCounts(e,t.getDownstreamCounts(n),!n.isRoot)},n):n}},{key:"mergeCountryCounts",value:function(e,t,n){var i=e.reduce(function(e,t){return Object.assign(Object.assign({},e),_defineProperty({},t.name,t))},{});if(void 0!==t){var r=t.reduce(function(e,t){return Object.assign(Object.assign({},e),_defineProperty({},t.name,{countryCode:t.countryCode,name:t.name,kitsCounts:e[t.name]?e[t.name].kitsCounts:0,kitsCountsDownstream:n?(e[t.name]?e[t.name].kitsCountsDownstream:0)+t.kitsCountsDownstream:e[t.name]?e[t.name].kitsCountsDownstream:0,kitsCountsDownstreamFull:(e[t.name]?e[t.name].kitsCountsDownstreamFull:0)+t.kitsCountsDownstreamFull}))},i);return Object.keys(r).map(function(e){return r[e]})}return Object.keys(i).map(function(e){return i[e]})}},{key:"isAlternate",value:function(e){return e%2==1}}]),e}()).\u0275fac=function(e){return new(e||dE)(i.Ob(ow),i.Ob(JC))},dE.\u0275cmp=i.Ib({type:dE,selectors:[["ng-component"]],viewQuery:function(e,t){var n;1&e&&(i.Kc(RS,1),i.Kc(NO,1)),2&e&&(i.sc(n=i.dc())&&(t.sort=n.first),i.sc(n=i.dc())&&(t.paginator=n.first))},decls:39,vars:10,consts:[["fxLayout","row","fxLayoutAlign","space-between center",1,"title-container"],["mat-dialog-title",""],[1,"modal-header-close",3,"click"],[1,"countryReportDialog"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","","arrowPosition","after",3,"matTooltip",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-footer-cell","",4,"matFooterCellDef"],["matColumnDef","kitsCounts"],["mat-header-cell","","mat-sort-header","","arrowPosition","after","class","right",3,"matTooltip",4,"matHeaderCellDef"],["mat-cell","","class","right",4,"matCellDef"],["mat-footer-cell","","class","right",4,"matFooterCellDef"],["matColumnDef","kitsCountsDownstream"],["mat-header-cell","","mat-sort-header","","arrowPosition","after","class","right downstream-col",3,"matTooltip",4,"matHeaderCellDef"],["matColumnDef","kitsCountsDownstreamFull"],["mat-header-cell","","mat-sort-header","","arrowPosition","after","class","right all-downstream-col",3,"matTooltip",4,"matHeaderCellDef"],["matColumnDef","distribution"],["mat-header-cell","","class","right distribution-col",3,"matTooltip",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-row","","class","mat-row-alternate",4,"matRowDef","matRowDefColumns","matRowDefWhen"],["mat-footer-row","",4,"matFooterRowDef"],[3,"pageSize","showFirstLastButtons"],["fxLayout","row","fxLayoutAlign","end"],["mat-button","","mat-dialog-close",""],["mat-header-cell","","mat-sort-header","","arrowPosition","after",3,"matTooltip"],["mat-cell",""],["class","flag",3,"src","matTooltip",4,"ngIf"],[1,"flag",3,"src","matTooltip"],["mat-footer-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","after",1,"right",3,"matTooltip"],[1,"header1"],[1,"header2"],["mat-cell","",1,"right"],["mat-footer-cell","",1,"right"],["mat-header-cell","","mat-sort-header","","arrowPosition","after",1,"right","downstream-col",3,"matTooltip"],["mat-header-cell","","mat-sort-header","","arrowPosition","after",1,"right","all-downstream-col",3,"matTooltip"],["mat-header-cell","",1,"right","distribution-col",3,"matTooltip"],[1,"list"],["mat-header-row",""],["mat-row",""],["mat-row","",1,"mat-row-alternate"],["mat-footer-row",""]],template:function(e,t){1&e&&(i.Ub(0,"div",0),i.Ub(1,"h2",1),i.Fc(2),i.Tb(),i.Ub(3,"mat-icon",2),i.cc("click",function(){return t.close()}),i.Fc(4,"close"),i.Tb(),i.Tb(),i.Ub(5,"mat-dialog-content",3),i.Ub(6,"table",4),i.Sb(7,5),i.Ec(8,qx,4,2,"th",6),i.Ec(9,Qx,3,2,"td",7),i.Ec(10,Xx,2,0,"td",8),i.Rb(),i.Sb(11,9),i.Ec(12,Zx,9,2,"th",10),i.Ec(13,Jx,3,3,"td",11),i.Ec(14,$x,3,3,"td",12),i.Rb(),i.Sb(15,13),i.Ec(16,eE,9,2,"th",14),i.Ec(17,tE,3,3,"td",11),i.Ec(18,nE,3,3,"td",12),i.Rb(),i.Sb(19,15),i.Ec(20,iE,9,2,"th",16),i.Ec(21,rE,3,3,"td",11),i.Ec(22,aE,3,3,"td",12),i.Rb(),i.Sb(23,17),i.Ec(24,oE,7,1,"th",18),i.Ec(25,sE,3,4,"td",11),i.Ec(26,lE,2,0,"td",12),i.Rb(),i.Ec(27,cE,1,0,"tr",19),i.Ec(28,uE,1,0,"tr",20),i.Ec(29,hE,1,0,"tr",21),i.Ec(30,fE,1,0,"tr",22),i.Tb(),i.Pb(31,"mat-paginator",23),i.Ub(32,"p"),i.Fc(33," * All origins are self-reported by the participants and may not reflect accurate haplogroup origins. "),i.Tb(),i.Ub(34,"p"),i.Fc(35,"** Unknown Origins are not included in the calculated distributions."),i.Tb(),i.Ub(36,"mat-dialog-actions",24),i.Ub(37,"button",25),i.Fc(38,"OK"),i.Tb(),i.Tb(),i.Tb()),2&e&&(i.Db(2),i.Ic("Country Report: ",t.title," Haplogroup ",t.node.name,""),i.Db(4),i.mc("dataSource",t.dataSource),i.Db(21),i.mc("matHeaderRowDef",t.columns),i.Db(1),i.mc("matRowDefColumns",t.columns),i.Db(1),i.mc("matRowDefColumns",t.columns)("matRowDefWhen",t.isAlternate),i.Db(1),i.mc("matFooterRowDef",t.columns),i.Db(1),i.mc("pageSize",10)("showFirstLastButtons",!0))},directives:[oh,_h,pw,wg,vw,BS,RS,GS,YS,HS,KS,nx,ox,rx,NO,mw,qv,dw,XS,jS,bO,ex,Z,JS,lx,fx,ux],pipes:[_e,ge],styles:[".title-container{margin-bottom:15px}.title-container h2{margin-bottom:5px}.title-container .mat-icon{cursor:pointer}.countryReportDialog{height:82vh;max-height:82vh;width:75vw}.countryReportDialog .mat-table{width:100%;border:1px solid rgba(0,0,0,.12);border-width:0 1px}.countryReportDialog .mat-table .mat-sort-header-content{flex-direction:row;margin-right:-22px}.countryReportDialog .mat-table .list{display:flex;flex-direction:row;align-items:center;margin-left:30px}.countryReportDialog .mat-table .mat-icon{margin-left:4px;font-size:21px;width:21px;height:21px}.countryReportDialog .mat-table .mat-header-cell.right .mat-sort-header-container{justify-content:flex-end}.countryReportDialog .mat-table .mat-header-cell.right .mat-sort-header-container .header1,.countryReportDialog .mat-table .mat-header-cell.right .mat-sort-header-container .header2{text-align:right}.countryReportDialog .mat-table .mat-header-cell.right .mat-sort-header-arrow{right:-20px}.countryReportDialog .mat-table .mat-header-cell .header2{font-size:10px}.countryReportDialog .mat-table .right{text-align:right}.countryReportDialog .mat-table .mat-footer-row{font-weight:700}.countryReportDialog .all-downstream-col,.countryReportDialog .downstream-col{width:300px}.countryReportDialog .distribution-col{width:150px}.countryReportDialog .flag{background-color:#cbcbcb;border-radius:9px;font-size:20px;float:left;height:18px;line-height:18px;margin-right:10px;text-align:center;width:18px}"],encapsulation:2}),dE);function vE(e,t){1&e&&(i.Ub(0,"th",22),i.Fc(1," Surname "),i.Ub(2,"mat-icon"),i.Fc(3,"info"),i.Tb(),i.Tb())}function mE(e,t){if(1&e&&(i.Ub(0,"td",23),i.Fc(1),i.Tb()),2&e){var n=t.$implicit;i.Db(1),i.Hc(" ",n.surname," ")}}function _E(e,t){1&e&&(i.Ub(0,"td",24),i.Fc(1," Total "),i.Tb())}function gE(e,t){1&e&&(i.Ub(0,"th",25),i.Fc(1," Participants "),i.Ub(2,"mat-icon"),i.Fc(3,"info"),i.Tb(),i.Tb())}function yE(e,t){if(1&e&&(i.Ub(0,"td",26),i.Fc(1),i.Tb()),2&e){var n=t.$implicit;i.Db(1),i.Hc(" ",n.kitsCounts," ")}}function bE(e,t){if(1&e&&(i.Ub(0,"td",24),i.Fc(1),i.Tb()),2&e){var n=i.gc();i.Db(1),i.Hc(" ",n.totalKits," ")}}function kE(e,t){1&e&&(i.Ub(0,"th",27),i.Fc(1," Distribution "),i.Ub(2,"mat-icon"),i.Fc(3,"info"),i.Tb(),i.Tb())}function CE(e,t){if(1&e&&(i.Ub(0,"td",26),i.Fc(1),i.hc(2,"percent"),i.Tb()),2&e){var n=t.$implicit,r=i.gc();i.Db(1),i.Hc(" ",i.jc(2,1,n.kitsCounts/r.totalKits,"1.2-2")," ")}}function wE(e,t){1&e&&(i.Ub(0,"td",24),i.Fc(1," 100.00% "),i.Tb())}function OE(e,t){1&e&&i.Pb(0,"tr",28)}function SE(e,t){1&e&&i.Pb(0,"tr",29)}function xE(e,t){1&e&&i.Pb(0,"tr",30)}function EE(e,t){1&e&&i.Pb(0,"tr",31)}var TE,AE,RE=((AE=function(){function e(t,n,i){_classCallCheck(this,e),this.data=t,this.cdr=n,this.dialogRef=i,this.columns=["surname","kitsCounts","distribution"],this.node=t.node,this.title=t.tree==ef?"mtDNA":"Y-DNA"}return _createClass(e,[{key:"ngAfterViewInit",value:function(){var e=this;setTimeout(function(){e.totalKits=e.node.surnames.reduce(function(e,t){return e+t.kitsCounts},0),e.dataSource=new vx(e.node.surnames),e.cdr.detectChanges(),e.dataSource.sort=e.sort,e.dataSource.paginator=e.paginator},1e3)}},{key:"isAlternate",value:function(e,t){return e%2==1}},{key:"close",value:function(){this.dialogRef.close()}}]),e}()).\u0275fac=function(e){return new(e||AE)(i.Ob(ow),i.Ob(i.h),i.Ob(JC))},AE.\u0275cmp=i.Ib({type:AE,selectors:[["ng-component"]],viewQuery:function(e,t){var n;1&e&&(i.Kc(RS,1),i.Kc(NO,1)),2&e&&(i.sc(n=i.dc())&&(t.sort=n.first),i.sc(n=i.dc())&&(t.paginator=n.first))},decls:33,vars:10,consts:[["fxLayout","row","fxLayoutAlign","space-between center",1,"title-container"],["mat-dialog-title",""],[1,"disable-translation"],[1,"modal-header-close",3,"click"],[1,"surnameReportDialog"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","surname"],["mat-header-cell","","mat-sort-header","","arrowPosition","after","matTooltip","A shared surname with identical spelling with at least two SNP testers placed at this branch. Requires opting in to Group Project Profile sharing.",4,"matHeaderCellDef"],["mat-cell","","class","disable-translation",4,"matCellDef"],["mat-footer-cell","",4,"matFooterCellDef"],["matColumnDef","kitsCounts"],["mat-header-cell","","mat-sort-header","","arrowPosition","after","matTooltip","Number of Y-SNP testers with this surname placed on this branch. Requires at least two participants opted in to Group Project Profile sharing.",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","distribution"],["mat-header-cell","","matTooltip","Percentage of surname participants placed on this branch compared to other shared surnames on this branch.",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-row","","class","mat-row-alternate",4,"matRowDef","matRowDefColumns","matRowDefWhen"],["mat-footer-row","",4,"matFooterRowDef"],[3,"pageSize","showFirstLastButtons"],["fxLayout","row","fxLayoutAlign","end"],["mat-button","","mat-dialog-close",""],["mat-header-cell","","mat-sort-header","","arrowPosition","after","matTooltip","A shared surname with identical spelling with at least two SNP testers placed at this branch. Requires opting in to Group Project Profile sharing."],["mat-cell","",1,"disable-translation"],["mat-footer-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","after","matTooltip","Number of Y-SNP testers with this surname placed on this branch. Requires at least two participants opted in to Group Project Profile sharing."],["mat-cell",""],["mat-header-cell","","matTooltip","Percentage of surname participants placed on this branch compared to other shared surnames on this branch."],["mat-header-row",""],["mat-row",""],["mat-row","",1,"mat-row-alternate"],["mat-footer-row",""]],template:function(e,t){1&e&&(i.Ub(0,"div",0),i.Ub(1,"h2",1),i.Fc(2),i.Ub(3,"span",2),i.Fc(4),i.Tb(),i.Tb(),i.Ub(5,"mat-icon",3),i.cc("click",function(){return t.close()}),i.Fc(6,"close"),i.Tb(),i.Tb(),i.Ub(7,"mat-dialog-content",4),i.Ub(8,"table",5),i.Sb(9,6),i.Ec(10,vE,4,0,"th",7),i.Ec(11,mE,2,1,"td",8),i.Ec(12,_E,2,0,"td",9),i.Rb(),i.Sb(13,10),i.Ec(14,gE,4,0,"th",11),i.Ec(15,yE,2,1,"td",12),i.Ec(16,bE,2,1,"td",9),i.Rb(),i.Sb(17,13),i.Ec(18,kE,4,0,"th",14),i.Ec(19,CE,3,4,"td",12),i.Ec(20,wE,2,0,"td",9),i.Rb(),i.Ec(21,OE,1,0,"tr",15),i.Ec(22,SE,1,0,"tr",16),i.Ec(23,xE,1,0,"tr",17),i.Ec(24,EE,1,0,"tr",18),i.Tb(),i.Pb(25,"mat-paginator",19),i.Ub(26,"p"),i.Fc(27,"* All surnames are self-reported by the participants and may not reflect accurate haplogroup ancestry."),i.Tb(),i.Ub(28,"p"),i.Fc(29,"** Two or more kits with public project profile sharing and the same surname spelling are required for a surname to show on the Haplotree."),i.Tb(),i.Ub(30,"mat-dialog-actions",20),i.Ub(31,"button",21),i.Fc(32,"OK"),i.Tb(),i.Tb(),i.Tb()),2&e&&(i.Db(2),i.Hc("Surname Report: ",t.title," Haplogroup "),i.Db(2),i.Gc(t.node.name),i.Db(4),i.mc("dataSource",t.dataSource),i.Db(13),i.mc("matHeaderRowDef",t.columns),i.Db(1),i.mc("matRowDefColumns",t.columns),i.Db(1),i.mc("matRowDefColumns",t.columns)("matRowDefWhen",t.isAlternate),i.Db(1),i.mc("matFooterRowDef",t.columns),i.Db(1),i.mc("pageSize",10)("showFirstLastButtons",!0))},directives:[oh,_h,pw,wg,vw,BS,RS,GS,YS,HS,KS,nx,ox,rx,NO,mw,qv,dw,XS,jS,bO,ex,JS,lx,fx,ux],pipes:[ge],styles:[".title-container{margin-bottom:15px}.title-container h2{margin-bottom:5px}.title-container .mat-icon{cursor:pointer}.surnameReportDialog{height:82vh;max-height:82vh;width:75vw}.surnameReportDialog .mat-table{width:100%;border:1px solid rgba(0,0,0,.12);border-width:0 1px}.surnameReportDialog .mat-table .mat-icon{margin-left:4px;font-size:21px;width:21px;height:21px;vertical-align:middle}.surnameReportDialog .mat-table th.mat-header-cell{width:33.33%}.surnameReportDialog .mat-table .mat-footer-row{font-weight:700}"],encapsulation:2}),AE),DE=((TE=function(){function e(t){_classCallCheck(this,e),this.data=t,this.columns=["variant","region","position","ancestral","derived"],this.node=t.node,this.title=t.tree==ef?"mtDNA":"Y-DNA",this.positionHeader=t.tree==$h?"Position (hg38)":"Position"}return _createClass(e,[{key:"ngOnInit",value:function(){this.dataSource=new vx(this.node.variants),this.dataSource.sort=this.sort,this.dataSource.paginator=this.paginator}},{key:"isAlternate",value:function(e,t){return e%2==1}}]),e}()).\u0275fac=function(e){return new(e||TE)(i.Ob(ow))},TE.\u0275cmp=i.Ib({type:TE,selectors:[["ng-component"]],viewQuery:function(e,t){var n;1&e&&(i.Kc(RS,1),i.Kc(NO,1)),2&e&&(i.sc(n=i.dc())&&(t.sort=n.first),i.sc(n=i.dc())&&(t.paginator=n.first))},decls:2,vars:2,consts:[["mat-dialog-title",""]],template:function(e,t){1&e&&(i.Ub(0,"h2",0),i.Fc(1),i.Tb()),2&e&&(i.Db(1),i.Ic("Variant Report: ",t.title," Haplogroup ",t.node.name,""))},directives:[pw],styles:[".variantReportDialog{height:82vh;max-height:82vh;width:75vw}.variantReportDialog .mat-table{width:100%;border:1px solid rgba(0,0,0,.12)}.variantReportDialog .mat-table .mat-row-alternate{background-color:#eee}.variantReportDialog .mat-table .mat-header-cell{background-color:#505759;color:#fff;font-family:Roboto;font-size:14px;font-weight:400;height:40px;text-align:left;padding:0 24px;width:20%}.variantReportDialog .mat-table .mat-header-cell.cdk-column-position{text-align:right}.variantReportDialog .mat-table .mat-cell{padding:0 24px;text-align:left;width:20%}.variantReportDialog .mat-table .mat-cell.cdk-column-position{text-align:right}"],encapsulation:2}),TE);function PE(e,t){1&e&&(i.Ub(0,"div",5),i.Pb(1,"div",6),i.Pb(2,"div",7),i.Tb()),2&e&&i.mc("ngClass",t.$implicit?"line":"space")}function IE(e,t){if(1&e&&(i.Ub(0,"div"),i.Ub(1,"span",8),i.Ub(2,"mat-icon",9),i.Fc(3," keyboard_arrow_right "),i.Tb(),i.Tb(),i.Ub(4,"span",10),i.Fc(5),i.Tb(),i.Tb()),2&e){var n=i.gc();i.Fb("disable-translation treeItem ",n.model.children?"branch":"leaf",""),i.Db(2),i.mc("inline",!0),i.Db(3),i.Gc(n.model.name)}}var ME=function(e,t){return["/",e,t]};function LE(e,t){if(1&e&&(i.Ub(0,"a",11),i.Fc(1),i.Tb()),2&e){var n=i.gc();i.mc("routerLink",i.rc(2,ME,n.tree,n.model.root)),i.Db(1),i.Hc(" ",n.model.name," ")}}var jE,FE,NE,UE=((NE=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||NE)},NE.\u0275cmp=i.Ib({type:NE,selectors:[["haplo-tree-item"]],inputs:{model:"model",branchesCount:"branchesCount",tree:"tree"},decls:9,vars:14,consts:[[1,"haplo-tree-item-container"],["class","spacer",3,"ngClass",4,"ngFor","ngForOf"],[3,"class",4,"ngIf"],["class","disable-translation treeItem root",3,"routerLink",4,"ngIf"],[1,"branchCount",3,"matTooltip"],[1,"spacer",3,"ngClass"],[1,"top"],[1,"bottom"],[1,"tree-item-icon"],[3,"inline"],[1,"tree-item-label","disable-translation"],[1,"disable-translation","treeItem","root",3,"routerLink"]],template:function(e,t){1&e&&(i.Ub(0,"div",0),i.Ec(1,PE,3,1,"div",1),i.Ec(2,IE,6,5,"div",2),i.Ec(3,LE,2,5,"a",3),i.Ub(4,"div",4),i.hc(5,"number"),i.hc(6,"percent"),i.Fc(7),i.hc(8,"number"),i.Tb(),i.Tb()),2&e&&(i.Db(1),i.mc("ngForOf",t.model.spacers),i.Db(1),i.mc("ngIf",!t.model.isRoot),i.Db(1),i.mc("ngIf",t.model.isRoot),i.Db(1),i.pc("matTooltip","",i.ic(5,7,t.model.subBranches)," downstream branches of ",t.model.name," (",i.jc(6,9,t.model.subBranches/t.branchesCount,"1.1-1")," of the tree)"),i.Db(3),i.Hc(" ",t.model.subBranches>0?i.ic(8,12,t.model.subBranches):"\xa0"," "))},directives:[Q,Z,bO,q,Cu,wg,bl],pipes:[_e,ge],styles:['[_nghost-%COMP%]   .haplo-tree-item-container[_ngcontent-%COMP%]{display:inline-flex;align-items:center}[_nghost-%COMP%]   .haplo-tree-item-container[_ngcontent-%COMP%]   .spacer[_ngcontent-%COMP%]{float:left;height:47px;margin-left:4px;width:30px;flex-shrink:0}[_nghost-%COMP%]   .haplo-tree-item-container[_ngcontent-%COMP%]   .spacer.line[_ngcontent-%COMP%]{border-left:1px solid rgba(33,33,33,.3)}[_nghost-%COMP%]   .haplo-tree-item-container[_ngcontent-%COMP%]   .spacer.space[_ngcontent-%COMP%]{border:0}[_nghost-%COMP%]   .haplo-tree-item-container[_ngcontent-%COMP%]   .spacer[_ngcontent-%COMP%]   .top[_ngcontent-%COMP%]{height:24px}[_nghost-%COMP%]   .haplo-tree-item-container[_ngcontent-%COMP%]   .spacer[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]{height:22px}[_nghost-%COMP%]   .haplo-tree-item-container[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:nth-last-child(3).spacer   .top[_ngcontent-%COMP%]{border-bottom:1px solid rgba(33,33,33,.3)}[_nghost-%COMP%]   .haplo-tree-item-container[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:nth-last-child(3).spacer.space   .top[_ngcontent-%COMP%]{border-left:1px solid rgba(33,33,33,.3)}[_nghost-%COMP%]   .haplo-tree-item-container[_ngcontent-%COMP%]   .treeItem[_ngcontent-%COMP%]{border-radius:3px;color:#fff;padding:5px 10px;margin:0 2px 0 0;position:relative}[_nghost-%COMP%]   .haplo-tree-item-container[_ngcontent-%COMP%]   .treeItem.root[_ngcontent-%COMP%]{background-color:#00a5ca}[_nghost-%COMP%]   .haplo-tree-item-container[_ngcontent-%COMP%]   .treeItem.branch[_ngcontent-%COMP%]{background-color:#003764;cursor:pointer}[_nghost-%COMP%]   .haplo-tree-item-container[_ngcontent-%COMP%]   .treeItem.branch[_ngcontent-%COMP%]   .tree-item-icon[_ngcontent-%COMP%]{margin-left:-3px;margin-right:3px;width:12px;height:12px;overflow:hidden;display:inline-block;transition:transform .5s}[_nghost-%COMP%]   .haplo-tree-item-container[_ngcontent-%COMP%]   .treeItem.leaf[_ngcontent-%COMP%]{background-color:#00bbb4}[_nghost-%COMP%]   .haplo-tree-item-container[_ngcontent-%COMP%]   .treeItem.leaf[_ngcontent-%COMP%]   .tree-item-icon[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%]   .haplo-tree-item-container[_ngcontent-%COMP%]   .branchCount[_ngcontent-%COMP%]{font-size:12px;font-weight:700;margin-left:10px;margin-right:30px}.expanded[_nghost-%COMP%]   .treeItem.branch[_ngcontent-%COMP%]:before, .expanded[_nghost-%COMP%]   .treeItem.root[_ngcontent-%COMP%]:before{content:"";border-left:1px solid rgba(33,33,33,.3);height:11px;position:absolute;left:4px;bottom:-11px}.expanded[_nghost-%COMP%]   .treeItem.branch[_ngcontent-%COMP%]   .tree-item-icon[_ngcontent-%COMP%], .expanded[_nghost-%COMP%]   .treeItem.root[_ngcontent-%COMP%]   .tree-item-icon[_ngcontent-%COMP%]{transform:rotate(90deg)}'],changeDetection:0}),NE),BE=((FE=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"transform",value:function(e){return e?e>1e9?(e/1e9).toPrecision(1).toString()+"B":e>1e6?(e/1e6).toPrecision(1).toString()+"M":e>1e3?(e/1e3).toPrecision(1).toString()+"K":e.toString():"0"}}]),e}()).\u0275fac=function(e){return new(e||FE)},FE.\u0275pipe=i.Nb({name:"significantDigit",type:FE,pure:!0}),FE),VE=((jE=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"transform",value:function(e){return e?e>1?"+".concat(e):e.toString():"0"}}]),e}()).\u0275fac=function(e){return new(e||jE)},jE.\u0275pipe=i.Nb({name:"prependPlus",type:jE,pure:!0}),jE);function HE(e,t){if(1&e&&i.Pb(0,"img",7),2&e){var n=i.gc().$implicit;i.oc("src","/common/img/country-flags/",n.countryCode,".svg",i.zc),i.nc("matTooltip",n.name)}}function zE(e,t){if(1&e&&(i.Ub(0,"div",8),i.Fc(1),i.hc(2,"significantDigit"),i.Tb()),2&e){var n=i.gc().$implicit;i.Db(1),i.Gc(i.ic(2,1,n.kitsCounts))}}function YE(e,t){if(1&e&&(i.Ub(0,"div",4),i.Ec(1,HE,1,2,"img",5),i.Ec(2,zE,3,3,"div",6),i.Tb()),2&e){var n=t.$implicit;i.Db(1),i.mc("ngIf","X"!=n.countryCode),i.Db(1),i.mc("ngIf","X"!=n.countryCode)}}function WE(e,t){if(1&e){var n=i.Vb();i.Ub(0,"button",9),i.cc("click",function(e){return i.xc(n),i.gc().openList(e)}),i.Fc(1),i.hc(2,"prependPlus"),i.hc(3,"significantDigit"),i.Tb()}if(2&e){var r=i.gc();i.mc("disableRipple",!0),i.Db(1),i.Hc(" ",i.ic(2,2,i.ic(3,4,r.countries.length))," ")}}var KE,qE=((KE=function(){function e(t,n){_classCallCheck(this,e),this.dialog=t,this.overlay=n,this.openReport=new i.o}return _createClass(e,[{key:"ngOnInit",value:function(){this.branchCountries=this.countries?this.countries.filter(function(e){return e.kitsCounts>0}):null,this.topCountries=this.countries?this.branchCountries.filter(function(e,t){return t<15}):null,this.length=this.countries?this.countries.length:0,this.overflow=this.branchCountries&&this.branchCountries.length>15}},{key:"openList",value:function(e){var t=this;this.dialog.closeAll(),this.dialog.open(Yx,{autoFocus:!1,backdropClass:"backdropInvis",data:{countries:this.countries,haplogroup:this.haplogroup},hasBackdrop:!0,position:this.getPosition(e.target),scrollStrategy:this.overlay.scrollStrategies.reposition()}).afterClosed().subscribe(function(e){e&&t.openReport.emit()})}},{key:"getPosition",value:function(e){var t=e.getBoundingClientRect(),n=window.innerHeight-500,i=t.top,r=window.innerWidth-t.left;return n<i?{right:r.toString()+"px",bottom:"50px"}:{right:r.toString()+"px",top:i.toString()+"px"}}}]),e}()).\u0275fac=function(e){return new(e||KE)(i.Ob(hw),i.Ob(m_))},KE.\u0275cmp=i.Ib({type:KE,selectors:[["haplo-tree-countries"]],inputs:{countries:"countries",haplogroup:"haplogroup"},outputs:{openReport:"openReport"},decls:4,vars:2,consts:[[1,"countriesContainer"],[1,"countryFlags"],["class","country",4,"ngFor","ngForOf"],["mat-button","","color","accent","class","overflowCountries",3,"disableRipple","click",4,"ngIf"],[1,"country"],["class","flag",3,"src","matTooltip",4,"ngIf"],["class","kitCount",4,"ngIf"],[1,"flag",3,"src","matTooltip"],[1,"kitCount"],["mat-button","","color","accent",1,"overflowCountries",3,"disableRipple","click"]],template:function(e,t){1&e&&(i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ec(2,YE,3,2,"div",2),i.Tb(),i.Ec(3,WE,4,6,"button",3),i.Tb()),2&e&&(i.Db(2),i.mc("ngForOf",t.topCountries),i.Db(1),i.mc("ngIf",t.length>0))},directives:[Q,Z,bO,qv],pipes:[BE,VE],styles:["[_nghost-%COMP%]   .countriesContainer[_ngcontent-%COMP%]{height:44px}[_nghost-%COMP%]   .countriesContainer[_ngcontent-%COMP%]   .countryFlags[_ngcontent-%COMP%]{display:inline-block;height:44px;overflow:hidden;white-space:normal;width:calc(100% - 44px)}[_nghost-%COMP%]   .countriesContainer[_ngcontent-%COMP%]   .countryFlags[_ngcontent-%COMP%]   .country[_ngcontent-%COMP%]{display:inline-block;margin-left:12px;padding-top:4px}[_nghost-%COMP%]   .countriesContainer[_ngcontent-%COMP%]   .countryFlags[_ngcontent-%COMP%]   .country[_ngcontent-%COMP%]   .flag[_ngcontent-%COMP%]{background-color:#cbcbcb;border-radius:12px;width:22px;height:22px;margin-bottom:3px}[_nghost-%COMP%]   .countriesContainer[_ngcontent-%COMP%]   .countryFlags[_ngcontent-%COMP%]   .country[_ngcontent-%COMP%]   .kitCount[_ngcontent-%COMP%]{font-size:12px;text-align:center}[_nghost-%COMP%]   .countriesContainer[_ngcontent-%COMP%]   .overflowCountries[_ngcontent-%COMP%]{display:inline-block;line-height:48px;min-width:44px;text-align:center;padding:0;vertical-align:top;width:44px}[_nghost-%COMP%]   .countriesContainer[_ngcontent-%COMP%]   .overflowCountries[_ngcontent-%COMP%]:hover{background-color:transparent}.close-data-column[_nghost-%COMP%]   .countriesContainer[_ngcontent-%COMP%]   .countryFlags[_ngcontent-%COMP%]{display:none}"],changeDetection:0}),KE);function GE(e,t){if(1&e&&(i.Ub(0,"div",4),i.Fc(1),i.Tb()),2&e){var n=t.$implicit,r=t.index,a=i.gc();i.Db(1),i.Hc(" ",n.surname+(r<a.surnames.length-1?",":"")," ")}}function QE(e,t){if(1&e){var n=i.Vb();i.Ub(0,"button",5),i.cc("click",function(e){return i.xc(n),i.gc().openList(e)}),i.Fc(1),i.hc(2,"prependPlus"),i.hc(3,"significantDigit"),i.Tb()}if(2&e){var r=i.gc();i.mc("disableRipple",!0),i.Db(1),i.Hc(" ",i.ic(2,2,i.ic(3,4,r.length))," ")}}var XE,ZE=((XE=function(){function e(t,n){_classCallCheck(this,e),this.dialog=t,this.overlay=n,this.openReport=new i.o}return _createClass(e,[{key:"ngOnInit",value:function(){this.length=this.surnames?this.surnames.length:0,this.overflow=this.surnames&&this.surnames.length>15}},{key:"openList",value:function(e){var t=this;this.dialog.closeAll(),this.dialog.open(Wx,{autoFocus:!1,backdropClass:"backdropInvis",data:{surnames:this.surnames,haplogroup:this.haplogroup},hasBackdrop:!0,position:this.getPosition(e.target),scrollStrategy:this.overlay.scrollStrategies.reposition()}).afterClosed().subscribe(function(e){e&&t.openReport.emit()})}},{key:"getPosition",value:function(e){var t=e.getBoundingClientRect(),n=window.innerHeight-500,i=t.top,r=window.innerWidth-t.left;return n<i?{right:r.toString()+"px",bottom:"50px"}:{right:r.toString()+"px",top:i.toString()+"px"}}}]),e}()).\u0275fac=function(e){return new(e||XE)(i.Ob(hw),i.Ob(m_))},XE.\u0275cmp=i.Ib({type:XE,selectors:[["haplo-tree-surnames"]],inputs:{surnames:"surnames",haplogroup:"haplogroup"},outputs:{openReport:"openReport"},decls:4,vars:2,consts:[[1,"surnamesContainer","disable-translation"],[1,"surnames"],["class","surname",4,"ngFor","ngForOf"],["mat-button","","class","overflowSurnames","color","accent",3,"disableRipple","click",4,"ngIf"],[1,"surname"],["mat-button","","color","accent",1,"overflowSurnames",3,"disableRipple","click"]],template:function(e,t){1&e&&(i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ec(2,GE,2,1,"div",2),i.Tb(),i.Ec(3,QE,4,6,"button",3),i.Tb()),2&e&&(i.Db(2),i.mc("ngForOf",t.surnames),i.Db(1),i.mc("ngIf",t.length>0))},directives:[Q,Z,qv],pipes:[VE,BE],styles:["[_nghost-%COMP%]   .surnamesContainer[_ngcontent-%COMP%]{height:44px;overflow:hidden}[_nghost-%COMP%]   .surnamesContainer[_ngcontent-%COMP%]   .surnames[_ngcontent-%COMP%]{display:inline-block;overflow:hidden;padding:6px 11px;white-space:normal;width:calc(100% - 44px)}[_nghost-%COMP%]   .surnamesContainer[_ngcontent-%COMP%]   .surnames[_ngcontent-%COMP%]   .surname[_ngcontent-%COMP%]{display:inline-block;line-height:16px;padding:2px;white-space:nowrap}[_nghost-%COMP%]   .surnamesContainer[_ngcontent-%COMP%]   .overflowSurnames[_ngcontent-%COMP%]{display:inline-block;line-height:48px;min-width:44px;text-align:center;padding:0;vertical-align:top;width:44px}[_nghost-%COMP%]   .surnamesContainer[_ngcontent-%COMP%]   .overflowSurnames[_ngcontent-%COMP%]:hover{background-color:transparent}.close-data-column[_nghost-%COMP%]   .surnamesContainer[_ngcontent-%COMP%]   .surnames[_ngcontent-%COMP%]{display:none}"],changeDetection:0}),XE);function JE(e,t){if(1&e&&(i.Ub(0,"div",4),i.Fc(1),i.Tb()),2&e){var n=t.$implicit,r=t.index,a=i.gc();i.Db(1),i.Hc(" ",n.variant+(r<a.variants.length-1?",":"")," ")}}function $E(e,t){if(1&e){var n=i.Vb();i.Ub(0,"button",5),i.cc("click",function(e){return i.xc(n),i.gc().openList(e)}),i.Fc(1),i.hc(2,"prependPlus"),i.hc(3,"significantDigit"),i.Tb()}if(2&e){var r=i.gc();i.mc("disableRipple",!0),i.Db(1),i.Hc(" ",i.ic(2,2,i.ic(3,4,r.length))," ")}}var eT,tT=((eT=function(){function e(t,n){_classCallCheck(this,e),this.dialog=t,this.overlay=n,this.openReport=new i.o}return _createClass(e,[{key:"ngOnInit",value:function(){this.length=this.variants?this.variants.length:0,this.overflow=this.variants&&this.variants.length>15}},{key:"openList",value:function(e){var t=this;this.dialog.closeAll(),this.dialog.open(Kx,{autoFocus:!1,backdropClass:"backdropInvis",data:{variants:this.variants,haplogroup:this.haplogroup},hasBackdrop:!0,position:this.getPosition(e.target),scrollStrategy:this.overlay.scrollStrategies.reposition()}).afterClosed().subscribe(function(e){e&&t.openReport.emit()})}},{key:"getPosition",value:function(e){var t=e.getBoundingClientRect(),n=window.innerHeight-500,i=t.top,r=window.innerWidth-t.left;return n<i?{right:r.toString()+"px",bottom:"50px"}:{right:r.toString()+"px",top:i.toString()+"px"}}}]),e}()).\u0275fac=function(e){return new(e||eT)(i.Ob(hw),i.Ob(m_))},eT.\u0275cmp=i.Ib({type:eT,selectors:[["haplo-tree-variants"]],inputs:{variants:"variants",haplogroup:"haplogroup"},outputs:{openReport:"openReport"},decls:4,vars:2,consts:[[1,"variantsContainer","disable-translation"],[1,"variants"],["class","variant",4,"ngFor","ngForOf"],["mat-button","","class","overflowVariants","color","accent",3,"disableRipple","click",4,"ngIf"],[1,"variant"],["mat-button","","color","accent",1,"overflowVariants",3,"disableRipple","click"]],template:function(e,t){1&e&&(i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ec(2,JE,2,1,"div",2),i.Tb(),i.Ec(3,$E,4,6,"button",3),i.Tb()),2&e&&(i.Db(2),i.mc("ngForOf",t.variants),i.Db(1),i.mc("ngIf",t.length>0))},directives:[Q,Z,qv],pipes:[VE,BE],styles:["[_nghost-%COMP%]   .variantsContainer[_ngcontent-%COMP%]{height:44px}[_nghost-%COMP%]   .variantsContainer[_ngcontent-%COMP%]   .variants[_ngcontent-%COMP%]{display:inline-block;height:44px;overflow:hidden;padding:6px 11px;white-space:normal;width:calc(100% - 44px)}[_nghost-%COMP%]   .variantsContainer[_ngcontent-%COMP%]   .variants[_ngcontent-%COMP%]   .variant[_ngcontent-%COMP%]{display:inline-block;line-height:16px;padding:2px;white-space:nowrap}[_nghost-%COMP%]   .variantsContainer[_ngcontent-%COMP%]   .overflowVariants[_ngcontent-%COMP%]{display:inline-block;line-height:48px;min-width:44px;text-align:center;padding:0;vertical-align:top;width:44px}[_nghost-%COMP%]   .variantsContainer[_ngcontent-%COMP%]   .overflowVariants[_ngcontent-%COMP%]:hover{background-color:transparent}.close-data-column[_nghost-%COMP%]   .variantsContainer[_ngcontent-%COMP%]   .variants[_ngcontent-%COMP%]{display:none}"],changeDetection:0}),eT);function nT(e,t){1&e&&i.Pb(0,"mat-spinner")}function iT(e,t){1&e&&(i.Ub(0,"mat-icon",17),i.Fc(1," info "),i.Tb())}function rT(e,t){1&e&&(i.Ub(0,"mat-icon",18),i.Fc(1," info "),i.Tb())}function aT(e,t){1&e&&(i.Ub(0,"mat-icon",19),i.Fc(1," info "),i.Tb())}function oT(e,t){1&e&&(i.Ub(0,"mat-icon",20),i.Fc(1," info "),i.Tb())}function sT(e,t){1&e&&(i.Ub(0,"mat-icon",21),i.Fc(1," info "),i.Tb())}function lT(e,t){1&e&&(i.Ub(0,"mat-icon",22),i.Fc(1," keyboard_arrow_right "),i.Tb())}function cT(e,t){1&e&&(i.Ub(0,"mat-icon",23),i.Fc(1," keyboard_arrow_left "),i.Tb())}var uT=function(e,t){return{selected:e,active:t}};function hT(e,t){if(1&e){var n=i.Vb();i.Ub(0,"mat-tree-node",30),i.cc("mouseover",function(){i.xc(n);var e=t.$implicit;return i.gc(4).onMouseOver(e)})("mouseout",function(){i.xc(n);var e=t.$implicit;return i.gc(4).onMouseOut(e)}),i.Pb(1,"haplo-tree-item",31),i.Tb()}if(2&e){var r=t.$implicit,a=i.gc(4);i.mc("ngClass",i.rc(5,uT,a.isSelected(r)||a.hoverName===r.name,a.isActive(r))),i.Db(1),i.mc("model",r)("tree",a.tree)("branchesCount",a.nodesCount)("ngClass",a.treeControl.isExpanded(r)?"expanded":null)}}function fT(e,t){if(1&e){var n=i.Vb();i.Ub(0,"haplo-tree-countries",42),i.cc("openReport",function(){i.xc(n);var e=i.gc().$implicit;return i.gc(4).openCountryReport(e)}),i.Tb()}if(2&e){var r=i.gc().$implicit,a=i.gc(4);i.mc("countries",r.countryCounts)("haplogroup",r.name)("ngClass",a.isDataColumnOpen?null:"close-data-column")}}function dT(e,t){if(1&e){var n=i.Vb();i.Ub(0,"haplo-tree-surnames",43),i.cc("openReport",function(){i.xc(n);var e=i.gc().$implicit;return i.gc(4).openSurnameReport(e)}),i.Tb()}if(2&e){var r=i.gc().$implicit,a=i.gc(4);i.mc("surnames",r.surnames)("haplogroup",r.name)("ngClass",a.isDataColumnOpen?null:"close-data-column")}}function pT(e,t){if(1&e){var n=i.Vb();i.Ub(0,"haplo-tree-variants",44),i.cc("openReport",function(){i.xc(n);var e=i.gc().$implicit;return i.gc(4).openVariantReport(e)}),i.Tb()}if(2&e){var r=i.gc().$implicit,a=i.gc(4);i.mc("variants",r.variants)("haplogroup",r.name)("ngClass",a.isDataColumnOpen?null:"close-data-column")}}function vT(e,t){if(1&e){var n=i.Vb();i.Ub(0,"button",40),i.cc("click",function(){i.xc(n);var e=i.gc().$implicit;return i.gc(4).openSurnameReport(e)}),i.Ub(1,"span"),i.Fc(2,"Surname Report"),i.Tb(),i.Tb()}}function mT(e,t){if(1&e){var n=i.Vb();i.Ub(0,"mat-tree-node",32),i.cc("mouseover",function(){i.xc(n);var e=t.$implicit;return i.gc(4).onMouseOver(e)})("mouseout",function(){i.xc(n);var e=t.$implicit;return i.gc(4).onMouseOut(e)}),i.Ub(1,"div",33),i.Ub(2,"div",34),i.Ec(3,fT,1,3,"haplo-tree-countries",35),i.Ec(4,dT,1,3,"haplo-tree-surnames",36),i.Ec(5,pT,1,3,"haplo-tree-variants",37),i.Tb(),i.Ub(6,"button",38),i.Ub(7,"mat-icon"),i.Fc(8,"more_vert"),i.Tb(),i.Tb(),i.Ub(9,"mat-menu",null,39),i.Ub(11,"button",40),i.cc("click",function(){i.xc(n);var e=t.$implicit;return i.gc(4).openCountryReport(e)}),i.Ub(12,"span"),i.Fc(13,"Country Report"),i.Tb(),i.Tb(),i.Ec(14,vT,3,0,"button",41),i.Tb(),i.Tb(),i.Tb()}if(2&e){var r=t.$implicit,a=i.tc(10),o=i.gc(3).$implicit,s=i.gc();i.mc("ngClass",i.rc(6,uT,s.isSelected(r)||s.hoverName===r.name,s.isActive(r))),i.Db(3),i.mc("ngIf",o.view===s.countries),i.Db(1),i.mc("ngIf",o.view===s.surnames),i.Db(1),i.mc("ngIf",o.view===s.variants),i.Db(1),i.mc("matMenuTriggerFor",a),i.Db(8),i.mc("ngIf",!!r.surnames)}}function _T(e,t){if(1&e&&(i.Ub(0,"div",24),i.Ub(1,"ftdna-pannable",25),i.Ub(2,"mat-tree",26),i.Ec(3,hT,2,8,"mat-tree-node",27),i.Tb(),i.Tb(),i.Ub(4,"div",28),i.Ub(5,"mat-tree",26),i.Ec(6,mT,15,9,"mat-tree-node",29),i.Tb(),i.Tb(),i.Tb()),2&e){var n=i.gc(3);i.Db(1),i.mc("offsetTop",228)("ngClass",n.isDataColumnOpen?null:"close-data-column"),i.Db(1),i.mc("dataSource",n.dataSource)("treeControl",n.treeControl),i.Db(2),i.mc("ngClass",n.isDataColumnOpen?null:"close-data-column"),i.Db(1),i.mc("dataSource",n.dataSource)("treeControl",n.treeControl)}}function gT(e,t){if(1&e){var n=i.Vb();i.Ub(0,"div",2),i.Ub(1,"div",3),i.Ub(2,"div",4),i.Fc(3," Branch "),i.Ub(4,"mat-icon",5),i.Fc(5,"info"),i.Tb(),i.Tb(),i.Ub(6,"div",6),i.Ub(7,"span",7),i.Fc(8),i.Ec(9,iT,2,0,"mat-icon",8),i.Ec(10,rT,2,0,"mat-icon",9),i.Ec(11,aT,2,0,"mat-icon",10),i.Ec(12,oT,2,0,"mat-icon",11),i.Ec(13,sT,2,0,"mat-icon",12),i.Tb(),i.Ub(14,"div",13),i.cc("click",function(){return i.xc(n),i.gc(2).toggleDataColumn()}),i.Ec(15,lT,2,0,"mat-icon",14),i.Ec(16,cT,2,0,"mat-icon",15),i.Tb(),i.Tb(),i.Tb(),i.Ec(17,_T,7,7,"div",16),i.Tb()}if(2&e){var r=i.gc().$implicit,a=i.gc();i.Db(2),i.mc("ngClass",a.isDataColumnOpen?null:"close-data-column"),i.Db(2),i.oc("matTooltip","",a.tree===a.yTree?"A branch on the tree represents an ancient man who is the direct paternal line ancestor of all descendent branches and testers.":"A branch on the tree represents an ancient woman who is the direct maternal line ancestor of all descendent branches and testers.","\n        "),i.Db(2),i.mc("ngClass",a.isDataColumnOpen?null:"close-data-column"),i.Db(2),i.Hc(" ",r.view," "),i.Db(1),i.mc("ngIf",a.tree===a.yTree&&r.view===a.countries),i.Db(1),i.mc("ngIf",a.tree===a.yTree&&r.view===a.surnames),i.Db(1),i.mc("ngIf",a.tree===a.yTree&&r.view===a.variants),i.Db(1),i.mc("ngIf",a.tree===a.mtTree&&r.view===a.countries),i.Db(1),i.mc("ngIf",a.tree===a.mtTree&&r.view===a.variants),i.Db(2),i.mc("ngIf",a.isDataColumnOpen),i.Db(1),i.mc("ngIf",!a.isDataColumnOpen),i.Db(1),i.mc("ngIf",!r.isSearching)}}function yT(e,t){if(1&e&&(i.Ub(0,"div"),i.Ec(1,nT,1,0,"mat-spinner",0),i.Ec(2,gT,18,12,"div",1),i.Tb()),2&e){var n=t.$implicit;i.Db(1),i.mc("ngIf",n.isSearching),i.Db(1),i.mc("ngIf",!n.isSearching)}}var bT,kT=((bT=function(){function e(t,n,i){var r=this;_classCallCheck(this,e),this.store=t,this.dialog=n,this.cdr=i,this.nodesCount=0,this.countries="Countries",this.surnames="Surnames",this.variants="Variants",this.mtTree=ef,this.yTree=$h,this.isDataColumnOpen=!0,this.getChildren=function(e){return e.children.map(function(e){return r.nodes[e]})},this.getLevel=function(e){return e.level},this.hasChild=function(e){return!!e.children&&e.children.length>0},this.transformer=function(e,t){return e.level=t,e.children&&r.mapChildren(e,t),e},this.treeFlattener=new xx(this.transformer,this.getLevel,this.hasChild,this.getChildren),this.treeControl=new cb(function(e){return e.level},function(e){return r.hasChild(e)}),this.dataSource=new Ex(this.treeControl,this.treeFlattener)}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.store$=va(this.store.select(Gf),this.store.select(Yf),this.store.select(Qf),this.store.select(Wf),function(t,n,i,r){return!t||e.root&&t.name===e.root.name||(e.treeControl.collapse(t),e.dataSource.data=new Array(t),e.treeControl.dataNodes.filter(function(e){return e.level<2||e.isRoot}).map(function(t){return e.expandToNode(t)}),e.root=t,e.selectedItems&&e.runSearch()),e.activeName=i,!r&&i&&e.searchNode(i),{view:n,name:i,isSearching:r}}),this.roots$=this.store.select(Vf).subscribe(function(t){return e.roots=t}),this.tree$=this.store.select(Xf).subscribe(function(t){return e.tree=t}),this.nodes$=this.store.select(Bf).subscribe(function(t){e.nodes=t,e.nodesCount=Object.keys(t).length}),this.selected$=this.store.select(Kf).subscribe(function(t){e.selectedItems=t,t&&e.runSearch()}),this.store$.subscribe(function(t){e.currentView!==t.view&&(e.openDataColumn(),e.currentView=t.view)})}},{key:"ngAfterViewInit",value:function(){var e=document.getElementsByClassName("active")[0];e&&setTimeout(function(){return e.scrollIntoView({behavior:"smooth",block:"center"})},100)}},{key:"ngOnChanges",value:function(e){document.dispatchEvent(Lx())}},{key:"runSearch",value:function(){this.searchNodeAll()}},{key:"expandToNode",value:function(e){e.parent&&(this.expandToNode(e.parent),this.treeControl.expand(e.parent))}},{key:"searchNode",value:function(e){var t=this.treeControl.dataNodes.find(function(t){return t.name.toUpperCase()===e.toUpperCase()}),n=this.treeControl.dataNodes.find(function(t){return t.variants.some(function(t){return t.variant===e.substring(2)})}),i=t||n;i&&i.name!==e&&(this.activeName=i.name),null!=i&&(i.artificialRoot||i.root)===this.root.root&&this.expandToNode(i),this.cdr.detectChanges();var r=document.getElementsByClassName("active")[0];r&&setTimeout(function(){r.scrollIntoView({behavior:"smooth",block:"end"})},1e3)}},{key:"searchNodeAll",value:function(){var e=this;if(this.treeControl&&this.treeControl.dataNodes&&this.selectedItems){var t=this.treeControl.dataNodes.filter(function(t){return e.selectedItems[t.name]&&(t.artificialRoot||t.root)===e.root.root}).sort(function(e){return e.level});this.store.dispatch(new gf(t.length)),t.filter(function(e,t){return t<100}).map(function(t){return e.expandToNode(t)}),this.cdr.detectChanges()}}},{key:"mapChildren",value:function(e,t){var n=this;e.children.forEach(function(t){n.nodes[t]&&(n.nodes[t].spacers=(e.spacers||[]).concat(!0),n.nodes[t].parent=e)}),this.nodes[e.children[e.children.length-1]].spacers[t]=!1}},{key:"openCountryReport",value:function(e){this.dialog.closeAll(),this.dialog.open(pE,{autoFocus:!1,backdropClass:"backdrop",data:{node:e,allNodes:this.nodes,tree:this.tree},hasBackdrop:!0})}},{key:"openSurnameReport",value:function(e){this.dialog.closeAll(),this.dialog.open(RE,{autoFocus:!1,backdropClass:"backdrop",data:{node:e,tree:this.tree},hasBackdrop:!0})}},{key:"openVariantReport",value:function(e){this.dialog.closeAll(),this.dialog.open(DE,{autoFocus:!1,backdropClass:"backdrop",data:{node:e,tree:this.tree},hasBackdrop:!0})}},{key:"onMouseOver",value:function(e){this.hoverName=e.name}},{key:"onMouseOut",value:function(e){this.hoverName===e.name&&(this.hoverName=null)}},{key:"openDataColumn",value:function(){this.isDataColumnOpen||this.toggleDataColumn()}},{key:"toggleDataColumn",value:function(){this.isDataColumnOpen=!this.isDataColumnOpen,setTimeout(function(){document.dispatchEvent(Lx())},501)}},{key:"ngOnDestroy",value:function(){this.roots$.unsubscribe(),this.nodes$.unsubscribe(),this.selected$.unsubscribe(),this.tree$.unsubscribe()}},{key:"isSelected",value:function(e){return!!this.selectedItems&&!!this.selectedItems[e.name]}},{key:"isActive",value:function(e){return!!this.activeName&&this.activeName===e.name}}]),e}()).\u0275fac=function(e){return new(e||bT)(i.Ob(Wi.i),i.Ob(hw),i.Ob(i.h))},bT.\u0275cmp=i.Ib({type:bT,selectors:[["haplo-tree"]],features:[i.Bb],decls:2,vars:3,consts:[[4,"ngIf"],["class","treeContainer",4,"ngIf"],[1,"treeContainer"],["fxLayout","row","ftdnaSticky","",1,"header"],[1,"column","treeColumn",3,"ngClass"],[3,"matTooltip"],["fxLayout","row","fxLayoutAlign","flex-start center",1,"column","dataColumn",3,"ngClass"],[1,"data-label"],["matTooltip","Self-reported country of the earliest known direct paternal line ancestor of Y-SNP testers.",4,"ngIf"],["matTooltip","A shared surname with identical spelling with at least two SNP testers placed at this branch. Requires opting in to Group Project Profile sharing.",4,"ngIf"],["matTooltip","A branch is defined by Y-SNP mutations in the paternal line that were passed down to descendents. Downstream testers typically share these variants.",4,"ngIf"],["matTooltip","Self-reported country of the earliest known direct maternal line ancestor of mtFull Sequence testers.",4,"ngIf"],["matTooltip","A branch is defined by mtDNA mutations in the maternal line that were passed down to descendents. Downstream testers typically share these variants.",4,"ngIf"],[1,"toggle-data",3,"click"],["matTooltip","Collapse column",4,"ngIf"],["matTooltip","Expand column",4,"ngIf"],["fxLayout","row",4,"ngIf"],["matTooltip","Self-reported country of the earliest known direct paternal line ancestor of Y-SNP testers."],["matTooltip","A shared surname with identical spelling with at least two SNP testers placed at this branch. Requires opting in to Group Project Profile sharing."],["matTooltip","A branch is defined by Y-SNP mutations in the paternal line that were passed down to descendents. Downstream testers typically share these variants."],["matTooltip","Self-reported country of the earliest known direct maternal line ancestor of mtFull Sequence testers."],["matTooltip","A branch is defined by mtDNA mutations in the maternal line that were passed down to descendents. Downstream testers typically share these variants."],["matTooltip","Collapse column"],["matTooltip","Expand column"],["fxLayout","row"],[1,"column","treeColumn",3,"offsetTop","ngClass"],[3,"dataSource","treeControl"],["class","haplo-node",3,"ngClass","mouseover","mouseout",4,"matTreeNodeDef"],[1,"column","dataColumn","results",3,"ngClass"],[3,"ngClass","mouseover","mouseout",4,"matTreeNodeDef"],[1,"haplo-node",3,"ngClass","mouseover","mouseout"],["matTreeNodeToggle","",1,"haplo-tree-item",3,"model","tree","branchesCount","ngClass"],[3,"ngClass","mouseover","mouseout"],[1,"shadow"],[1,"data"],[3,"countries","haplogroup","ngClass","openReport",4,"ngIf"],[3,"surnames","haplogroup","ngClass","openReport",4,"ngIf"],[3,"variants","haplogroup","ngClass","openReport",4,"ngIf"],["mat-button","",1,"moreInfo",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"click",4,"ngIf"],[3,"countries","haplogroup","ngClass","openReport"],[3,"surnames","haplogroup","ngClass","openReport"],[3,"variants","haplogroup","ngClass","openReport"]],template:function(e,t){1&e&&(i.Ec(0,yT,3,2,"div",0),i.hc(1,"async")),2&e&&i.mc("ngIf",i.ic(1,1,t.store$))},directives:[Z,ZO,oh,xg,q,Cu,wg,bO,_h,jx,kx,gx,_x,UE,wx,qv,Y_,B_,j_,qE,ZE,tT],pipes:[me],styles:[".header[_ngcontent-%COMP%]{height:40px;background-color:#505759;color:#fff}.header.sticky[_ngcontent-%COMP%]{margin-top:187px;width:100%;z-index:1000}.header[_ngcontent-%COMP%]   .data-label[_ngcontent-%COMP%] > .mat-icon[_ngcontent-%COMP%], .header[_ngcontent-%COMP%]   .treeColumn[_ngcontent-%COMP%] > .mat-icon[_ngcontent-%COMP%]{margin-left:4px;font-size:21px;width:21px;height:21px;vertical-align:middle}.header[_ngcontent-%COMP%]   .toggle-data[_ngcontent-%COMP%] > .mat-icon[_ngcontent-%COMP%]{vertical-align:middle}.treeContainer[_ngcontent-%COMP%]{margin:0 auto}.treeContainer[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .column[_ngcontent-%COMP%]{padding:12px 20px;font-weight:500}.treeContainer[_ngcontent-%COMP%]   .column[_ngcontent-%COMP%]{align-items:center;white-space:nowrap;overflow-y:hidden;transition:all .5s}.treeContainer[_ngcontent-%COMP%]   .column.treeColumn[_ngcontent-%COMP%]{width:60%}.treeContainer[_ngcontent-%COMP%]   .column.treeColumn[_ngcontent-%COMP%]   .mat-tree[_ngcontent-%COMP%]{background:transparent}.treeContainer[_ngcontent-%COMP%]   .column.treeColumn[_ngcontent-%COMP%]   .mat-tree-node[_ngcontent-%COMP%]{padding-left:20px}.treeContainer[_ngcontent-%COMP%]   .column.treeColumn[_ngcontent-%COMP%]   .mat-tree-node.active[_ngcontent-%COMP%], .treeContainer[_ngcontent-%COMP%]   .column.treeColumn[_ngcontent-%COMP%]   .mat-tree-node.selected[_ngcontent-%COMP%]{background-color:#c9d2de}.treeContainer[_ngcontent-%COMP%]   .column.treeColumn.close-data-column[_ngcontent-%COMP%]{width:calc(100% - 50px)}.treeContainer[_ngcontent-%COMP%]   .column.dataColumn[_ngcontent-%COMP%]{width:40%;overflow:hidden}.treeContainer[_ngcontent-%COMP%]   .column.dataColumn[_ngcontent-%COMP%]   .mat-tree-node[_ngcontent-%COMP%]{border-bottom:1px solid rgba(33,33,33,.3)}.treeContainer[_ngcontent-%COMP%]   .column.dataColumn[_ngcontent-%COMP%]   .mat-tree-node[_ngcontent-%COMP%]:last-child{border-bottom:none}.treeContainer[_ngcontent-%COMP%]   .column.dataColumn[_ngcontent-%COMP%]   .mat-tree-node.active[_ngcontent-%COMP%], .treeContainer[_ngcontent-%COMP%]   .column.dataColumn[_ngcontent-%COMP%]   .mat-tree-node.selected[_ngcontent-%COMP%]{background-color:#c9d2de}.treeContainer[_ngcontent-%COMP%]   .column.dataColumn.results[_ngcontent-%COMP%]{border-left:1px solid rgba(33,33,33,.3)}.treeContainer[_ngcontent-%COMP%]   .column.dataColumn.close-data-column[_ngcontent-%COMP%]{width:140px}.treeContainer[_ngcontent-%COMP%]   .column.dataColumn[_ngcontent-%COMP%]   .toggle-data[_ngcontent-%COMP%]{margin-top:-1px;cursor:pointer}.treeContainer[_ngcontent-%COMP%]   .column.dataColumn[_ngcontent-%COMP%]   .shadow[_ngcontent-%COMP%]{align-items:center;display:flex;height:100%;width:100%}.treeContainer[_ngcontent-%COMP%]   .column.dataColumn[_ngcontent-%COMP%]   .shadow[_ngcontent-%COMP%]   .data[_ngcontent-%COMP%]{display:block;float:left;height:100%;width:calc(100% - 50px)}.treeContainer[_ngcontent-%COMP%]   .column.dataColumn[_ngcontent-%COMP%]   .shadow[_ngcontent-%COMP%]   .moreInfo[_ngcontent-%COMP%]{border-radius:18px;display:flex;float:right;height:36px;margin:auto;min-width:36px;padding:0 6px}.treeContainer[_ngcontent-%COMP%]   .column.dataColumn[_ngcontent-%COMP%]   .shadow[_ngcontent-%COMP%]   .moreInfo[_ngcontent-%COMP%]:hover{background-color:rgba(33,33,33,.1)}.treeContainer[_ngcontent-%COMP%]   .column[_ngcontent-%COMP%]   .mat-tree[_ngcontent-%COMP%]{display:table;overflow-x:auto;width:100%}.treeContainer[_ngcontent-%COMP%]   .column[_ngcontent-%COMP%]   .mat-tree[_ngcontent-%COMP%]   .mat-tree-node[_ngcontent-%COMP%]{height:47px;min-height:auto;width:auto}.treeContainer[_ngcontent-%COMP%]   .column[_ngcontent-%COMP%]   .mat-tree[_ngcontent-%COMP%]   .mat-tree-node[_ngcontent-%COMP%]   .expand[_ngcontent-%COMP%]{padding:2px;width:24px;flex-shrink:0}.treeContainer[_ngcontent-%COMP%]   .column[_ngcontent-%COMP%]   .mat-tree[_ngcontent-%COMP%]   .mat-tree-node[_ngcontent-%COMP%]   .expand[_ngcontent-%COMP%]   .mat-button[_ngcontent-%COMP%]{min-width:18px;padding:0}.treeContainer[_ngcontent-%COMP%]   .column[_ngcontent-%COMP%]   .mat-tree[_ngcontent-%COMP%]   .mat-tree-node[_ngcontent-%COMP%]   .expand[_ngcontent-%COMP%]   .mat-button[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{font-size:14px;line-height:22px}.treeContainer[_ngcontent-%COMP%]   .column[_ngcontent-%COMP%]   .mat-tree[_ngcontent-%COMP%]   .mat-tree-node[_ngcontent-%COMP%]   .haplo-tree-item[_ngcontent-%COMP%]{display:flex;align-items:center}"],changeDetection:0}),bT);function CT(e,t){1&e&&i.Pb(0,"mat-spinner")}function wT(e,t){if(1&e&&(i.Ub(0,"mat-option",20),i.Fc(1),i.Tb()),2&e){var n=t.$implicit;i.mc("value",n),i.Db(1),i.Hc(" ",n," ")}}function OT(e,t){1&e&&(i.Ub(0,"mat-hint",21),i.Fc(1," No Results "),i.Tb())}function ST(e,t){1&e&&(i.Ub(0,"mat-hint",21),i.Fc(1," No Results "),i.Tb())}function xT(e,t){if(1&e&&(i.Ub(0,"mat-hint"),i.Fc(1),i.hc(2,"number"),i.Tb()),2&e){var n=i.gc(3).$implicit,r=i.gc();i.Db(1),i.Ic(" ",i.ic(2,2,n.selectedItems.length)," Results, ",n.searchFoundOnBranch>r.maxItems?r.maxItems+"+":n.searchFoundOnBranch," on branch ")}}function ET(e,t){if(1&e&&(i.Ub(0,"mat-hint"),i.Fc(1),i.hc(2,"number"),i.Tb()),2&e){var n=i.gc(3).$implicit;i.Db(1),i.Ic(" ",i.ic(2,2,n.selectedItems.length)," Results on ",n.searchFoundRoots," ")}}function TT(e,t){if(1&e){var n=i.Vb();i.Ub(0,"button",24),i.cc("click",function(){return i.xc(n),i.gc(4).clearSearch()}),i.Ub(1,"mat-icon"),i.Fc(2,"close"),i.Tb(),i.Tb()}}function AT(e,t){if(1&e){var n=i.Vb();i.Ub(0,"mat-form-field",11),i.Ub(1,"mat-label"),i.Fc(2,"Search by Country"),i.Tb(),i.Ub(3,"input",22),i.cc("ngModelChange",function(e){return i.xc(n),i.gc(3).search.countries=e}),i.Tb(),i.Ec(4,ST,2,0,"mat-hint",13),i.Ec(5,xT,3,4,"mat-hint",0),i.Ec(6,ET,3,4,"mat-hint",0),i.Ec(7,TT,3,0,"button",23),i.Tb()}if(2&e){i.gc();var r=i.tc(24),a=i.gc().$implicit,o=i.gc();i.Db(3),i.mc("formControl",o.autoControl)("matAutocomplete",r)("ngModel",o.search.countries),i.Db(1),i.mc("ngIf",a.countryNotFound),i.Db(1),i.mc("ngIf",a.searchFoundOnBranch>0),i.Db(1),i.mc("ngIf",a.selectedItems&&0===a.searchFoundOnBranch),i.Db(1),i.mc("ngIf",o.search.countries)}}function RT(e,t){1&e&&(i.Ub(0,"mat-hint",21),i.Fc(1," No Results "),i.Tb())}function DT(e,t){if(1&e&&(i.Ub(0,"mat-hint"),i.Fc(1),i.hc(2,"number"),i.Tb()),2&e){var n=i.gc(3).$implicit,r=i.gc();i.Db(1),i.Ic(" ",i.ic(2,2,n.selectedItems.length)," Results, ",n.searchFoundOnBranch>r.maxItems?r.maxItems+"+":n.searchFoundOnBranch," on branch ")}}function PT(e,t){if(1&e&&(i.Ub(0,"mat-hint"),i.Fc(1),i.hc(2,"number"),i.Tb()),2&e){var n=i.gc(3).$implicit;i.Db(1),i.Ic(" ",i.ic(2,2,n.selectedItems.length)," Results on ",n.searchFoundRoots," ")}}function IT(e,t){if(1&e){var n=i.Vb();i.Ub(0,"button",24),i.cc("click",function(){return i.xc(n),i.gc(4).clearSearch()}),i.Ub(1,"mat-icon"),i.Fc(2,"close"),i.Tb(),i.Tb()}}function MT(e,t){if(1&e){var n=i.Vb();i.Ub(0,"mat-form-field",11),i.Ub(1,"mat-label"),i.Fc(2,"Search by Surname"),i.Tb(),i.Ub(3,"input",12),i.cc("keyup.enter",function(e){return i.xc(n),i.gc(3).onSurnameSearchChange(e.target.value)})("ngModelChange",function(e){return i.xc(n),i.gc(3).search.surnames=e}),i.Tb(),i.Ec(4,RT,2,0,"mat-hint",13),i.Ec(5,DT,3,4,"mat-hint",0),i.Ec(6,PT,3,4,"mat-hint",0),i.Ec(7,IT,3,0,"button",23),i.Tb()}if(2&e){var r=i.gc(2).$implicit,a=i.gc();i.Db(3),i.mc("ngModel",a.search.surnames),i.Db(1),i.mc("ngIf",r.surnameNotFound),i.Db(1),i.mc("ngIf",r.searchFoundOnBranch>0),i.Db(1),i.mc("ngIf",r.selectedItems&&0===r.searchFoundOnBranch),i.Db(1),i.mc("ngIf",a.search.surnames)}}function LT(e,t){1&e&&(i.Ub(0,"mat-hint",21),i.Fc(1," No Results "),i.Tb())}function jT(e,t){if(1&e&&(i.Ub(0,"mat-hint"),i.Fc(1),i.hc(2,"number"),i.Tb()),2&e){var n=i.gc(3).$implicit,r=i.gc();i.Db(1),i.Ic(" ",i.ic(2,2,n.selectedItems.length)," Results, ",n.searchFoundOnBranch>r.maxItems?r.maxItems+"+":n.searchFoundOnBranch," on branch ")}}function FT(e,t){if(1&e&&(i.Ub(0,"mat-hint"),i.Fc(1),i.hc(2,"number"),i.Tb()),2&e){var n=i.gc(3).$implicit;i.Db(1),i.Ic(" ",i.ic(2,2,n.selectedItems.length)," Results on ",n.searchFoundRoots," ")}}function NT(e,t){if(1&e){var n=i.Vb();i.Ub(0,"button",24),i.cc("click",function(){return i.xc(n),i.gc(4).clearSearch()}),i.Ub(1,"mat-icon"),i.Fc(2,"close"),i.Tb(),i.Tb()}}function UT(e,t){if(1&e){var n=i.Vb();i.Ub(0,"mat-form-field",11),i.Ub(1,"mat-label"),i.Fc(2,"Search by Variant"),i.Tb(),i.Ub(3,"input",12),i.cc("keyup.enter",function(e){return i.xc(n),i.gc(3).onVariantSearchChange(e.target.value)})("ngModelChange",function(e){return i.xc(n),i.gc(3).search.variants=e}),i.Tb(),i.Ec(4,LT,2,0,"mat-hint",13),i.Ec(5,jT,3,4,"mat-hint",0),i.Ec(6,FT,3,4,"mat-hint",0),i.Ec(7,NT,3,0,"button",23),i.Tb()}if(2&e){var r=i.gc(2).$implicit,a=i.gc();i.Db(3),i.mc("ngModel",a.search.variants),i.Db(1),i.mc("ngIf",r.variantNotFound),i.Db(1),i.mc("ngIf",r.searchFoundOnBranch>0),i.Db(1),i.mc("ngIf",r.selectedItems&&0===r.searchFoundOnBranch),i.Db(1),i.mc("ngIf",a.search.variants)}}function BT(e,t){if(1&e&&(i.Ub(0,"mat-option",20),i.Ub(1,"div",25),i.Fc(2),i.Tb(),i.Tb()),2&e){var n=t.$implicit;i.mc("value",n),i.Db(2),i.Gc(n)}}function VT(e,t){if(1&e&&(i.Ub(0,"a",26,27),i.Ub(2,"span",28),i.Fc(3),i.Tb(),i.Tb()),2&e){var n=t.$implicit,r=i.tc(1);i.mc("routerLink",n)("active",r.isActive),i.Db(3),i.Gc(n)}}function HT(e,t){if(1&e){var n=i.Vb();i.Ub(0,"div",3),i.Ub(1,"div",4),i.Ub(2,"div",5),i.Ub(3,"mat-form-field",6),i.Ub(4,"mat-label"),i.Fc(5,"View by"),i.Tb(),i.Ub(6,"mat-select",7),i.cc("valueChange",function(e){return i.xc(n),i.gc().$implicit.view=e})("selectionChange",function(e){return i.xc(n),i.gc(2).changeActiveView(e)}),i.Ec(7,wT,2,2,"mat-option",8),i.Tb(),i.Tb(),i.Tb(),i.Ub(8,"div",9),i.Ub(9,"div",10),i.Ub(10,"mat-icon"),i.Fc(11,"search"),i.Tb(),i.Ub(12,"mat-form-field",11),i.Ub(13,"mat-label"),i.Fc(14,"Go to Branch Name"),i.Tb(),i.Ub(15,"input",12),i.cc("keyup.enter",function(e){return i.xc(n),i.gc(2).onSearchChange(e.target.value)})("ngModelChange",function(e){return i.xc(n),i.gc(2).search.name=e}),i.Tb(),i.Ec(16,OT,2,0,"mat-hint",13),i.Tb(),i.Tb(),i.Ub(17,"div",10),i.Ub(18,"mat-icon"),i.Fc(19,"search"),i.Tb(),i.Ec(20,AT,8,7,"mat-form-field",14),i.Ec(21,MT,8,5,"mat-form-field",14),i.Ec(22,UT,8,5,"mat-form-field",14),i.Tb(),i.Tb(),i.Tb(),i.Ub(23,"mat-autocomplete",15,16),i.cc("optionSelected",function(e){return i.xc(n),i.gc(2).onCountrySearchChange(e.option.value)}),i.Ec(25,BT,3,2,"mat-option",8),i.hc(26,"async"),i.Tb(),i.Ub(27,"div",17),i.Ub(28,"nav",18),i.Ec(29,VT,4,3,"a",19),i.Tb(),i.Tb(),i.Tb()}if(2&e){var r=i.gc().$implicit,a=i.gc();i.Db(6),i.mc("value",r.view),i.Db(1),i.mc("ngForOf",a.viewOptions),i.Db(8),i.mc("ngModel",a.search.name),i.Db(1),i.mc("ngIf",r.nameNotFound),i.Db(4),i.mc("ngIf",r.view===a.countries),i.Db(1),i.mc("ngIf",r.view===a.surnames),i.Db(1),i.mc("ngIf",r.view===a.variants),i.Db(3),i.mc("ngForOf",i.ic(26,10,a.filteredCountries$)),i.Db(3),i.mc("disableRipple",!0),i.Db(1),i.mc("ngForOf",a.rootNames)}}function zT(e,t){1&e&&i.Pb(0,"router-outlet")}function YT(e,t){1&e&&(i.Ub(0,"div",29),i.Fc(1," van Oven M, Kayser M. 2009. Updated comprehensive phylogenetic tree of global human mitochondrial DNA variation. Hum Mutat 30(2):E386-E394. "),i.Ub(2,"a",30),i.Fc(3,"http://www.phylotree.org"),i.Tb(),i.Tb())}function WT(e,t){if(1&e&&(i.Ub(0,"div"),i.Ec(1,CT,1,0,"mat-spinner",0),i.Ec(2,HT,30,12,"div",1),i.Ec(3,zT,1,0,"router-outlet",0),i.Ec(4,YT,4,0,"div",2),i.Tb()),2&e){var n=t.$implicit,r=i.gc();i.Db(1),i.mc("ngIf",n.isLoading),i.Db(1),i.mc("ngIf",!n.isLoading),i.Db(1),i.mc("ngIf",!n.isLoading),i.Db(1),i.mc("ngIf",r.tree===r.mtTree)}}var KT,qT,GT,QT=((GT=function(){function e(t){var n=this;_classCallCheck(this,e),this.store=t,this.autoControl=new mk,this.countries="Countries",this.surnames="Surnames",this.variants="Variants",this.maxItems=100,this.yTree=$h,this.mtTree=ef,this.search={countries:"",surnames:"",variants:"",name:""},this.store$=va(this.store.select(If),this.store.select(Mf),this.store.select(Lf),this.store.select(jf),this.store.select(Ff),this.store.select(Nf),this.store.select(Uf),this.store.select(Yf),this.store.select(Kf),this.store.select(Hf),this.store.select(Xf),function(e,t,i,r,a,o,s,l,c,u){return n.filteredCountries$=n.autoControl.valueChanges.pipe(Object(ar.a)(function(e){return u.filter(function(t){return t.toLowerCase().includes(e.toLowerCase())})})),{isLoading:e,searchFoundOnBranch:t,searchFoundRoots:i.length>10?"other branches":i.join(","),nameNotFound:r,countryNotFound:a,surnameNotFound:o,variantNotFound:s,view:l,selectedItems:c?Object.keys(c):null,allCountries:u}}),this.roots$=this.store.select(Vf).subscribe(function(e){return n.roots=e}),this.nodes$=this.store.select(Bf).subscribe(function(e){return n.nodes=e}),this.rootNames$=this.store.select(zf).subscribe(function(e){return n.rootNames=e}),this.tree$=this.store.select(Xf).subscribe(function(e){n.tree=e,n.viewOptions=e==ef?["Countries","Variants"]:["Countries","Surnames","Variants"],n.title=e==ef?"mtDNA Haplotree":"Y-DNA Haplotree",n.store.dispatch(new lf("Countries"))})}return _createClass(e,[{key:"ngOnInit",value:function(){this.store.dispatch(new _f),this.store.dispatch(new af(this.tree))}},{key:"ngOnDestroy",value:function(){this.roots$.unsubscribe(),this.nodes$.unsubscribe(),this.rootNames$.unsubscribe(),this.tree$.unsubscribe()}},{key:"clearSearch",value:function(){this.search={countries:"",surnames:"",variants:"",name:""},this.store.dispatch(new _f)}},{key:"changeActiveView",value:function(e){this.store.dispatch(new lf(e.value))}},{key:"findNodeByName",value:function(e){var t=this,n=Object.keys(this.nodes).map(function(e){return t.nodes[e]}).filter(function(t){return t.name.toUpperCase()===e.toUpperCase()});return 0===n.length?null:n[0]}},{key:"onCountrySearchChange",value:function(e){var t=this,n=Object.keys(this.nodes).map(function(e){return t.nodes[e]}).filter(function(t){return(n=t).countryCounts&&n.countryCounts.filter(function(t){return t.name===e}).length>0;var n});this.store.dispatch(n.length>0?new hf(n):new ff)}},{key:"onSurnameSearchChange",value:function(e){var t=this,n=Object.keys(this.nodes).map(function(e){return t.nodes[e]}).filter(function(t){return(n=t).surnames&&n.surnames.filter(function(t){return t.surname.toLowerCase().includes(e.toLowerCase())}).length>0;var n});this.store.dispatch(n.length>0?new df(n):new pf)}},{key:"onVariantSearchChange",value:function(e){var t=this,n=Object.keys(this.nodes).map(function(e){return t.nodes[e]}).filter(function(t){return!!(n=t).variants&&n.variants.map(function(e){return e.variant.toUpperCase()}).includes(e.toUpperCase());var n});this.store.dispatch(n.length>0?new vf(n):new mf)}},{key:"onSearchChange",value:function(e){this.store.dispatch(new yf);var t=this.findNodeByName(e);this.store.dispatch(null!=t?new cf({tree:this.tree,root:t.artificialRoot||t.root,name:t.name}):new uf),this.store.dispatch(new bf)}}]),e}()).\u0275fac=function(e){return new(e||GT)(i.Ob(Wi.i))},GT.\u0275cmp=i.Ib({type:GT,selectors:[["haplo-tree-root-tabs"]],decls:2,vars:3,consts:[[4,"ngIf"],["class","navBarContainerRootTabs","ftdnaSticky","",4,"ngIf"],["class","mtCredit",4,"ngIf"],["ftdnaSticky","",1,"navBarContainerRootTabs"],["fxLayout","row","fxLayoutAlign","space-between start",1,"tabsContainer"],[1,"formFieldContainer","view-select-container"],["appearance","fill","color","accent",1,"viewSelect","left"],[3,"value","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","row",1,"formFieldContainer"],["fxLayout","row",1,"search-box"],["appearance","standard","color","accent",1,"searchName"],["matInput","",3,"ngModel","keyup.enter","ngModelChange"],["class","mat-error",4,"ngIf"],["appearance","standard","class","searchName","color","accent",4,"ngIf"],[3,"optionSelected"],["auto","matAutocomplete"],[1,"navBarContainer"],["mat-tab-nav-bar","",3,"disableRipple"],["mat-tab-link","","routerLinkActive","","queryParamsHandling","merge","class","haploRootLink",3,"routerLink","active",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-error"],["matInput","",3,"formControl","matAutocomplete","ngModel","ngModelChange"],["mat-button","","matTooltip","Clear Search","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click",4,"ngIf"],["mat-button","","matTooltip","Clear Search","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],[1,"countryText"],["mat-tab-link","","routerLinkActive","","queryParamsHandling","merge",1,"haploRootLink",3,"routerLink","active"],["rla","routerLinkActive"],[1,"inner-tab"],[1,"mtCredit"],["href","http://www.phylotree.org.","target","blank"]],template:function(e,t){1&e&&(i.Ec(0,WT,5,4,"div",0),i.hc(1,"async")),2&e&&i.mc("ngIf",i.ic(1,1,t.store$))},directives:[Z,ZO,xg,oh,_h,yC,uC,nO,Q,wg,Dw,Ob,Yb,Ok,MC,Ug,jv,cC,BC,Tk,qv,bO,pC,bl,Hg,xl,El],pipes:[me,_e],styles:[".navBarContainerRootTabs.sticky{background-color:#fff;margin-top:49px;width:100%;z-index:1000}.view-select-container{width:200px}.mat-spinner{margin:100px auto}.tabsContainer{padding:20px 0 0 20px}.search-box{margin-left:auto;margin-right:20px}.search-box mat-icon{margin:auto}.mtCredit{border:1px solid rgba(33,33,33,.17);margin-top:24px;padding:8px}.navBarContainer{margin-bottom:-1px}.navBarContainer .mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex;height:48px}.navBarContainer .haploRootLink{min-width:0;flex:1;padding:0}.navBarContainer .haploRootLink .inner-tab{background:transparent;display:inline-block;padding:5px 15px;border-radius:3px}.navBarContainer .haploRootLink:hover .inner-tab{background-color:#cbcbcb}.navBarContainer .haploRootLink:active,.navBarContainer .haploRootLink:focus,.navBarContainer .haploRootLink:hover,.navBarContainer .haploRootLink:visited{text-decoration:none}.navBarContainer .haploRootLink.mat-tab-label-active{opacity:1}.navBarContainer .haploRootLink.mat-tab-label-active .inner-tab{color:#fff;background:#fa4616}.navBarContainer .mat-ink-bar{display:none}"],encapsulation:2,changeDetection:0}),GT),XT=((qT=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||qT)},qT.\u0275mod=i.Mb({type:qT}),qT.\u0275inj=i.Lb({providers:[Hd],imports:[[Ce,Pk,Bd,Ax,Ik,Jh,jh.withConfig({disableDefaultBps:!0},Zh),Nl.forRoot([{path:$h,component:QT,children:[{path:":root",component:kT,data:{tree:$h}},{path:"",redirectTo:"A",pathMatch:"full"}]},{path:ef,component:QT,children:[{path:":root",component:kT,data:{tree:ef}},{path:"",redirectTo:"L",pathMatch:"full"}]},{path:"",redirectTo:$h,pathMatch:"full"}],{relativeLinkResolution:"legacy"}),Wi.k.forFeature("public-haplo-tree",Cf),ra.forFeature(Wd),jh,Eg,Fx]]}),qT),ZT=((KT=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||KT)},KT.\u0275mod=i.Mb({type:KT,bootstrap:[Jg]}),KT.\u0275inj=i.Lb({providers:[{provide:Ql,useClass:Tf},Ay,{provide:O,useValue:"/public"}],imports:[[pt,Yi,XT,Nl.forRoot([],{relativeLinkResolution:"legacy"}),Wi.k.forRoot(xf,{runtimeChecks:{strictStateImmutability:!1,strictActionImmutability:!1}}),ra.forRoot(Pf),sa.a.instrument({maxAge:25,logOnly:!0}),rc.forRoot({serializer:Xl}),jh.withConfig({disableDefaultBps:!0},Zh),Jh]]}),KT);Object(i.V)(),ft().bootstrapModule(ZT).catch(function(e){return console.log(e)})},zn8P:function(e,t){function n(e){return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="zn8P"},zp1y:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("l7GE"),r=n("ZUHj");function a(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){var n;return"function"==typeof t[t.length-1]&&(n=t.pop()),e.lift(new o(t,n))}}var o=function(){function e(t,n){_classCallCheck(this,e),this.observables=t,this.project=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new s(e,this.observables,this.project))}}]),e}(),s=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a){var o;_classCallCheck(this,n),(o=t.call(this,e)).observables=i,o.project=a,o.toRespond=[];var s=i.length;o.values=new Array(s);for(var l=0;l<s;l++)o.toRespond.push(l);for(var c=0;c<s;c++){var u=i[c];o.add(Object(r.a)(_assertThisInitialized(o),u,void 0,c))}return o}return _createClass(n,[{key:"notifyNext",value:function(e,t,n){this.values[n]=t;var i=this.toRespond;if(i.length>0){var r=i.indexOf(n);-1!==r&&i.splice(r,1)}}},{key:"notifyComplete",value:function(){}},{key:"_next",value:function(e){if(0===this.toRespond.length){var t=[e].concat(_toConsumableArray(this.values));this.project?this._tryProject(t):this.destination.next(t)}}},{key:"_tryProject",value:function(e){var t;try{t=this.project.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(i.a)},zx2A:function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return s}),n.d(t,"c",function(){return l});var i=n("7o/Q"),r=n("HDdC"),a=n("SeVD"),o=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this)).parent=e,i}return _createClass(n,[{key:"_next",value:function(e){this.parent.notifyNext(e)}},{key:"_error",value:function(e){this.parent.notifyError(e),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(),this.unsubscribe()}}]),n}(i.a),s=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"notifyNext",value:function(e){this.destination.next(e)}},{key:"notifyError",value:function(e){this.destination.error(e)}},{key:"notifyComplete",value:function(){this.destination.complete()}}]),n}(i.a);function l(e,t){if(!t.closed)return e instanceof r.a?e.subscribe(t):Object(a.a)(e)(t)}}},[[0,0]]])})();
