@drayman/elements 1.23.0 → 1.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- !function(e){var t={};function n(s){if(t[s])return t[s].exports;var r=t[s]={i:s,l:!1,exports:{}};return e[s].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,s){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:s})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var s=Object.create(null);if(n.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(s,r,(function(t){return e[t]}).bind(null,r));return s},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}({"+tDz":function(e,t){e.exports=function(e,t,n){for(var s=(2<<Math.log(t.length-1)/Math.LN2)-1,r=-~(1.6*s*n/t.length),i="";;)for(var o=e(r),a=r;a--;)if((i+=t[o[a]&s]||"").length===+n)return i}},0:function(e,t,n){e.exports=n("zUnb")},"2hQo":function(e,t,n){"use strict";var s=n("48Ti"),r=n("58k+"),i=n("+tDz");e.exports=function(e){for(var t,n=0,o="";!t;)o+=i(r,s.get(),1),t=e<Math.pow(16,n+1),n++;return o}},"48Ti":function(e,t,n){"use strict";var s,r,i,o=n("w9cF"),a="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-";function l(){i=!1}function c(e){if(e){if(e!==s){if(e.length!==a.length)throw new Error("Custom alphabet for shortid must be "+a.length+" unique characters. You submitted "+e.length+" characters: "+e);var t=e.split("").filter((function(e,t,n){return t!==n.lastIndexOf(e)}));if(t.length)throw new Error("Custom alphabet for shortid must be "+a.length+" unique characters. These characters were not unique: "+t.join(", "));s=e,l()}}else s!==a&&(s=a,l())}function u(){return i||(i=function(){s||c(a);for(var e,t=s.split(""),n=[],r=o.nextValue();t.length>0;)r=o.nextValue(),e=Math.floor(r*t.length),n.push(t.splice(e,1)[0]);return n.join("")}())}e.exports={get:function(){return s||a},characters:function(e){return c(e),s},seed:function(e){o.seed(e),r!==e&&(l(),r=e)},lookup:function(e){return u()[e]},shuffled:u}},"58k+":function(e,t,n){"use strict";var s="object"==typeof window&&(window.crypto||window.msCrypto);e.exports=s&&s.getRandomValues?function(e){return s.getRandomValues(new Uint8Array(e))}:function(e){for(var t=[],n=0;n<e;n++)t.push(Math.floor(256*Math.random()));return t}},G8Pb:function(e,t,n){"use strict";var s=n("48Ti"),r=n("tDlq"),i=n("gM+Z"),o=n("cHLG")||0;function a(){return r(o)}e.exports=a,e.exports.generate=a,e.exports.seed=function(t){return s.seed(t),e.exports},e.exports.worker=function(t){return o=t,e.exports},e.exports.characters=function(e){return void 0!==e&&s.characters(e),s.shuffled()},e.exports.isValid=i},MIfU:function(e,t,n){"use strict";e.exports=n("G8Pb")},cHLG:function(e,t,n){"use strict";e.exports=0},"gM+Z":function(e,t,n){"use strict";var s=n("48Ti");e.exports=function(e){return!(!e||"string"!=typeof e||e.length<6||new RegExp("[^"+s.get().replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")+"]").test(e))}},tDlq:function(e,t,n){"use strict";var s,r,i=n("2hQo");n("48Ti"),e.exports=function(e){var t="",n=Math.floor(.001*(Date.now()-1567752802062));return n===r?s++:(s=0,r=n),t+=i(7),t+=i(e),s>0&&(t+=i(s)),t+i(n)}},w9cF:function(e,t,n){"use strict";var s=1;e.exports={nextValue:function(){return(s=(9301*s+49297)%233280)/233280},seed:function(e){s=e}}},zUnb:function(e,t,n){"use strict";function s(e){return"function"==typeof e}n.r(t);let r=!1;const i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else r&&console.log("RxJS: Back to a better error behavior. Thank you. <3");r=e},get useDeprecatedSynchronousErrorHandling(){return r}};function o(e){setTimeout(()=>{throw e},0)}const a={closed:!0,next(e){},error(e){if(i.useDeprecatedSynchronousErrorHandling)throw e;o(e)},complete(){}},l=(()=>Array.isArray||(e=>e&&"number"==typeof e.length))();function c(e){return null!==e&&"object"==typeof e}const u=(()=>{function e(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((e,t)=>`${t+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e})();let h=(()=>{class e{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:r,_unsubscribe:i,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(let e=0;e<n.length;++e)n[e].remove(this);if(s(i)){r&&(this._unsubscribe=void 0);try{i.call(this)}catch(a){t=a instanceof u?d(a.errors):[a]}}if(l(o)){let e=-1,n=o.length;for(;++e<n;){const n=o[e];if(c(n))try{n.unsubscribe()}catch(a){t=t||[],a instanceof u?t=t.concat(d(a.errors)):t.push(a)}}}if(t)throw new u(t)}add(t){let 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)){const t=n;n=new e,n._subscriptions=[t]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}let{_parentOrParents:s}=n;if(null===s)n._parentOrParents=this;else if(s instanceof e){if(s===this)return n;n._parentOrParents=[s,this]}else{if(-1!==s.indexOf(this))return n;s.push(this)}const r=this._subscriptions;return null===r?this._subscriptions=[n]:r.push(n),n}remove(e){const t=this._subscriptions;if(t){const n=t.indexOf(e);-1!==n&&t.splice(n,1)}}}return e.EMPTY=function(e){return e.closed=!0,e}(new e),e})();function d(e){return e.reduce((e,t)=>e.concat(t instanceof u?t.errors:t),[])}const p=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())();class f extends h{constructor(e,t,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a;break;case 1:if(!e){this.destination=a;break}if("object"==typeof e){e instanceof f?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new m(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new m(this,e,t,n)}}[p](){return this}static create(e,t,n){const s=new f(e,t,n);return s.syncErrorThrowable=!1,s}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class m extends f{constructor(e,t,n,r){let i;super(),this._parentSubscriber=e;let o=this;s(t)?i=t:t&&(i=t.next,n=t.error,r=t.complete,t!==a&&(o=Object.create(t),s(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=i,this._error=n,this._complete=r}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;i.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:n}=i;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):o(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;o(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);i.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),i.useDeprecatedSynchronousErrorHandling)throw n;o(n)}}__tryOrSetError(e,t,n){if(!i.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(s){return i.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=s,e.syncErrorThrown=!0,!0):(o(s),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const g=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")();function _(e){return e}let y=(()=>{class e{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(t){const n=new e;return n.source=this,n.operator=t,n}subscribe(e,t,n){const{operator:s}=this,r=function(e,t,n){if(e){if(e instanceof f)return e;if(e[p])return e[p]()}return e||t||n?new f(e,t,n):new f(a)}(e,t,n);if(r.add(s?s.call(r,this.source):this.source||i.useDeprecatedSynchronousErrorHandling&&!r.syncErrorThrowable?this._subscribe(r):this._trySubscribe(r)),i.useDeprecatedSynchronousErrorHandling&&r.syncErrorThrowable&&(r.syncErrorThrowable=!1,r.syncErrorThrown))throw r.syncErrorValue;return r}_trySubscribe(e){try{return this._subscribe(e)}catch(t){i.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){const{closed:t,destination:n,isStopped:s}=e;if(t||s)return!1;e=n&&n instanceof f?n:null}return!0}(e)?e.error(t):console.warn(t)}}forEach(e,t){return new(t=b(t))((t,n)=>{let s;s=this.subscribe(t=>{try{e(t)}catch(r){n(r),s&&s.unsubscribe()}},n,t)})}_subscribe(e){const{source:t}=this;return t&&t.subscribe(e)}[g](){return this}pipe(...e){return 0===e.length?this:(0===(t=e).length?_:1===t.length?t[0]:function(e){return t.reduce((e,t)=>t(e),e)})(this);var t}toPromise(e){return new(e=b(e))((e,t)=>{let n;this.subscribe(e=>n=e,e=>t(e),()=>e(n))})}}return e.create=t=>new e(t),e})();function b(e){if(e||(e=i.Promise||Promise),!e)throw new Error("no Promise impl found");return e}const v=(()=>{function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e})();class w extends h{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}class E extends f{constructor(e){super(e),this.destination=e}}let k=(()=>{class e extends y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[p](){return new E(this)}lift(e){const t=new C(this,this);return t.operator=e,t}next(e){if(this.closed)throw new v;if(!this.isStopped){const{observers:t}=this,n=t.length,s=t.slice();for(let r=0;r<n;r++)s[r].next(e)}}error(e){if(this.closed)throw new v;this.hasError=!0,this.thrownError=e,this.isStopped=!0;const{observers:t}=this,n=t.length,s=t.slice();for(let r=0;r<n;r++)s[r].error(e);this.observers.length=0}complete(){if(this.closed)throw new v;this.isStopped=!0;const{observers:e}=this,t=e.length,n=e.slice();for(let s=0;s<t;s++)n[s].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(e){if(this.closed)throw new v;return super._trySubscribe(e)}_subscribe(e){if(this.closed)throw new v;return this.hasError?(e.error(this.thrownError),h.EMPTY):this.isStopped?(e.complete(),h.EMPTY):(this.observers.push(e),new w(this,e))}asObservable(){const e=new y;return e.source=this,e}}return e.create=(e,t)=>new C(e,t),e})();class C extends k{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):h.EMPTY}}function S(e){return e&&"function"==typeof e.schedule}function x(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 T(e,t))}}class T{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new A(e,this.project,this.thisArg))}}class A extends f{constructor(e,t,n){super(e),this.project=t,this.count=0,this.thisArg=n||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}const I=e=>t=>{for(let n=0,s=e.length;n<s&&!t.closed;n++)t.next(e[n]);t.complete()};function O(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}const D=O(),N=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function P(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}const V=e=>{if(e&&"function"==typeof e[g])return s=e,e=>{const t=s[g]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if(N(e))return I(e);if(P(e))return n=e,e=>(n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,o),e);if(e&&"function"==typeof e[D])return t=e,e=>{const n=t[D]();for(;;){let t;try{t=n.next()}catch(s){return e.error(s),e}if(t.done){e.complete();break}if(e.next(t.value),e.closed)break}return"function"==typeof n.return&&e.add(()=>{n.return&&n.return()}),e};{const t=c(e)?"an invalid object":`'${e}'`;throw new TypeError(`You provided ${t} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var t,n,s};function F(e,t){return new y(n=>{const s=new h;let r=0;return s.add(t.schedule((function(){r!==e.length?(n.next(e[r++]),n.closed||s.add(this.schedule())):n.complete()}))),s})}function R(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[g]}(e))return function(e,t){return new y(n=>{const s=new h;return s.add(t.schedule(()=>{const r=e[g]();s.add(r.subscribe({next(e){s.add(t.schedule(()=>n.next(e)))},error(e){s.add(t.schedule(()=>n.error(e)))},complete(){s.add(t.schedule(()=>n.complete()))}}))})),s})}(e,t);if(P(e))return function(e,t){return new y(n=>{const s=new h;return s.add(t.schedule(()=>e.then(e=>{s.add(t.schedule(()=>{n.next(e),s.add(t.schedule(()=>n.complete()))}))},e=>{s.add(t.schedule(()=>n.error(e)))}))),s})}(e,t);if(N(e))return F(e,t);if(function(e){return e&&"function"==typeof e[D]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new y(n=>{const s=new h;let r;return s.add(()=>{r&&"function"==typeof r.return&&r.return()}),s.add(t.schedule(()=>{r=e[D](),s.add(t.schedule((function(){if(n.closed)return;let e,t;try{const n=r.next();e=n.value,t=n.done}catch(s){return void n.error(s)}t?n.complete():(n.next(e),this.schedule())})))})),s})}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof y?e:new y(V(e))}class M extends f{constructor(e){super(),this.parent=e}_next(e){this.parent.notifyNext(e)}_error(e){this.parent.notifyError(e),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class j extends f{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function L(e,t){if(!t.closed)return e instanceof y?e.subscribe(t):V(e)(t)}class B{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new H(e,this.project,this.concurrent))}}class H extends j{constructor(e,t,n=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}_tryNext(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(s){return void this.destination.error(s)}this.active++,this._innerSub(t)}_innerSub(e){const t=new M(this),n=this.destination;n.add(t);const s=L(e,t);s!==t&&n.add(s)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(e){this.destination.next(e)}notifyComplete(){const e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function q(e,t){return t?F(e,t):new y(I(e))}function $(...e){let t=Number.POSITIVE_INFINITY,n=null,s=e[e.length-1];return S(s)?(n=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(t=e.pop())):"number"==typeof s&&(t=e.pop()),null===n&&1===e.length&&e[0]instanceof y?e[0]:function(e=Number.POSITIVE_INFINITY){return function e(t,n,s=Number.POSITIVE_INFINITY){return"function"==typeof n?r=>r.pipe(e((e,s)=>R(t(e,s)).pipe(x((t,r)=>n(e,t,s,r))),s)):("number"==typeof n&&(s=n),e=>e.lift(new B(t,s)))}(_,e)}(t)(q(e,n))}function z(){return function(e){return e.lift(new Z(e))}}class Z{constructor(e){this.connectable=e}call(e,t){const{connectable:n}=this;n._refCount++;const s=new Q(e,n),r=t.subscribe(s);return s.closed||(s.connection=n.connect()),r}}class Q extends f{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:n}=this,s=e._connection;this.connection=null,!s||n&&s!==n||s.unsubscribe()}}class W extends y{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new h,e.add(this.source.subscribe(new K(this.getSubject(),this))),e.closed&&(this._connection=null,e=h.EMPTY)),e}refCount(){return z()(this)}}const U=(()=>{const e=W.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:e._subscribe},_isComplete:{value:e._isComplete,writable:!0},getSubject:{value:e.getSubject},connect:{value:e.connect},refCount:{value:e.refCount}}})();class K extends E{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}function G(){return new k}function Y(e){return{toString:e}.toString()}const J="__parameters__";function X(e,t,n){return Y(()=>{const s=function(e){return function(...t){if(e){const n=e(...t);for(const e in n)this[e]=n[e]}}}(t);function r(...e){if(this instanceof r)return s.apply(this,e),this;const t=new r(...e);return n.annotation=t,n;function n(e,n,s){const r=e.hasOwnProperty(J)?e[J]:Object.defineProperty(e,J,{value:[]})[J];for(;r.length<=s;)r.push(null);return(r[s]=r[s]||[]).push(t),e}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=e,r.annotationCls=r,r})}const ee=X("Inject",e=>({token:e})),te=X("Optional"),ne=X("Self"),se=X("SkipSelf");var re=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 ie(e){for(let t in e)if(e[t]===ie)return t;throw Error("Could not find renamed property on target object.")}function oe(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function ae(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function le(e){return{factory:e.factory,providers:e.providers||[],imports:e.imports||[]}}function ce(e){return ue(e,e[de])||ue(e,e[me])}function ue(e,t){return t&&t.token===e?t:null}function he(e){return e&&(e.hasOwnProperty(pe)||e.hasOwnProperty(ge))?e[pe]:null}const de=ie({"\u0275prov":ie}),pe=ie({"\u0275inj":ie}),fe=ie({"\u0275provFallback":ie}),me=ie({ngInjectableDef:ie}),ge=ie({ngInjectorDef:ie});function _e(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(_e).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return""+e.overriddenName;if(e.name)return""+e.name;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function ye(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const be=ie({__forward_ref__:ie});function ve(e){return e.__forward_ref__=ve,e.toString=function(){return _e(this())},e}function we(e){return Ee(e)?e():e}function Ee(e){return"function"==typeof e&&e.hasOwnProperty(be)&&e.__forward_ref__===ve}const ke="undefined"!=typeof globalThis&&globalThis,Ce="undefined"!=typeof window&&window,Se="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,xe="undefined"!=typeof global&&global,Te=ke||xe||Ce||Se,Ae=ie({"\u0275cmp":ie}),Ie=ie({"\u0275dir":ie}),Oe=ie({"\u0275pipe":ie}),De=ie({"\u0275mod":ie}),Ne=ie({"\u0275loc":ie}),Pe=ie({"\u0275fac":ie}),Ve=ie({__NG_ELEMENT_ID__:ie});class Fe{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=ae({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return"InjectionToken "+this._desc}}const Re=new Fe("INJECTOR",-1),Me={},je=/\n/gm,Le="__source",Be=ie({provide:String,useValue:ie});let He,qe=void 0;function $e(e){const t=qe;return qe=e,t}function ze(e){const t=He;return He=e,t}function Ze(e,t=re.Default){if(void 0===qe)throw new Error("inject() must be called from an injection context");return null===qe?We(e,void 0,t):qe.get(e,t&re.Optional?null:void 0,t)}function Qe(e,t=re.Default){return(He||Ze)(we(e),t)}function We(e,t,n){const s=ce(e);if(s&&"root"==s.providedIn)return void 0===s.value?s.value=s.factory():s.value;if(n&re.Optional)return null;if(void 0!==t)return t;throw new Error(`Injector: NOT_FOUND [${_e(e)}]`)}function Ue(e){const t=[];for(let n=0;n<e.length;n++){const s=we(e[n]);if(Array.isArray(s)){if(0===s.length)throw new Error("Arguments array must have arguments.");let e=void 0,n=re.Default;for(let t=0;t<s.length;t++){const r=s[t];r instanceof te||"Optional"===r.ngMetadataName||r===te?n|=re.Optional:r instanceof se||"SkipSelf"===r.ngMetadataName||r===se?n|=re.SkipSelf:r instanceof ne||"Self"===r.ngMetadataName||r===ne?n|=re.Self:e=r instanceof ee||r===ee?r.token:r}t.push(Qe(e,n))}else t.push(Qe(s))}return t}class Ke{get(e,t=Me){if(t===Me){const t=new Error(`NullInjectorError: No provider for ${_e(e)}!`);throw t.name="NullInjectorError",t}return t}}class Ge{}function Ye(e,t){e.forEach(e=>Array.isArray(e)?Ye(e,t):t(e))}function Je(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Xe(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function et(e,t){const n=[];for(let s=0;s<e;s++)n.push(t);return n}function tt(e,t,n){let s=st(e,t);return s>=0?e[1|s]=n:(s=~s,function(e,t,n,s){let r=e.length;if(r==t)e.push(n,s);else if(1===r)e.push(s,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]=s}}(e,s,t,n)),s}function nt(e,t){const n=st(e,t);if(n>=0)return e[1|n]}function st(e,t){return function(e,t,n){let s=0,r=e.length>>1;for(;r!==s;){const n=s+(r-s>>1),i=e[n<<1];if(t===i)return n<<1;i>t?r=n:s=n+1}return~(r<<1)}(e,t)}var rt=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),it=function(e){return e[e.Emulated=0]="Emulated",e[e.Native=1]="Native",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({});const ot={},at=[];let lt=0;function ct(e){return Y(()=>{const 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===rt.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||at,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||it.Emulated,id:"c",styles:e.styles||at,_:null,setInput:null,schemas:e.schemas||null,tView:null},s=e.directives,r=e.features,i=e.pipes;return n.id+=lt++,n.inputs=ft(e.inputs,t),n.outputs=ft(e.outputs),r&&r.forEach(e=>e(n)),n.directiveDefs=s?()=>("function"==typeof s?s():s).map(ut):null,n.pipeDefs=i?()=>("function"==typeof i?i():i).map(ht):null,n})}function ut(e){return gt(e)||function(e){return e[Ie]||null}(e)}function ht(e){return function(e){return e[Oe]||null}(e)}const dt={};function pt(e){const t={type:e.type,bootstrap:e.bootstrap||at,declarations:e.declarations||at,imports:e.imports||at,exports:e.exports||at,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&Y(()=>{dt[e.id]=e.type}),t}function ft(e,t){if(null==e)return ot;const n={};for(const s in e)if(e.hasOwnProperty(s)){let r=e[s],i=r;Array.isArray(r)&&(i=r[1],r=r[0]),n[r]=s,t&&(t[r]=i)}return n}const mt=ct;function gt(e){return e[Ae]||null}function _t(e,t){return e.hasOwnProperty(Pe)?e[Pe]:null}function yt(e,t){const n=e[De]||null;if(!n&&!0===t)throw new Error(`Type ${_e(e)} does not have '\u0275mod' property.`);return n}const bt=20,vt=10;function wt(e){return Array.isArray(e)&&"object"==typeof e[1]}function Et(e){return Array.isArray(e)&&!0===e[1]}function kt(e){return 0!=(8&e.flags)}function Ct(e){return 2==(2&e.flags)}function St(e){return 1==(1&e.flags)}function xt(e){return null!==e.template}function Tt(e){return 0!=(512&e[2])}class At{constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}}function It(){return Ot}function Ot(e){return e.type.prototype.ngOnChanges&&(e.setInput=Nt),Dt}function Dt(){const e=Pt(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===ot)e.previous=t;else for(let e in t)n[e]=t[e];e.current=null,this.ngOnChanges(t)}}function Nt(e,t,n,s){const r=Pt(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:ot,current:null}),i=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[n],l=o[a];i[a]=new At(l&&l.currentValue,t,o===ot),e[s]=t}function Pt(e){return e.__ngSimpleChanges__||null}It.ngInherit=!0;const Vt="http://www.w3.org/2000/svg";let Ft=void 0;function Rt(e){return!!e.listen}const Mt={createRenderer:(e,t)=>void 0!==Ft?Ft:"undefined"!=typeof document?document:void 0};function jt(e){for(;Array.isArray(e);)e=e[0];return e}function Lt(e,t){return jt(t[e+bt])}function Bt(e,t){return jt(t[e.index])}function Ht(e,t){return e.data[t+bt]}function qt(e,t){const n=t[e];return wt(n)?n:n[0]}function $t(e){const t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function zt(e){return 4==(4&e[2])}function Zt(e){return 128==(128&e[2])}function Qt(e,t){return null===e||null==t?null:e[t]}function Wt(e){e[18]=0}function Ut(e,t){e[5]+=t;let n=e,s=e[3];for(;null!==s&&(1===t&&1===n[5]||-1===t&&0===n[5]);)s[5]+=t,n=s,s=s[3]}const Kt={lFrame:fn(null),bindingsEnabled:!0,checkNoChangesMode:!1};function Gt(){return Kt.bindingsEnabled}function Yt(){return Kt.lFrame.lView}function Jt(){return Kt.lFrame.tView}function Xt(){return Kt.lFrame.previousOrParentTNode}function en(e,t){Kt.lFrame.previousOrParentTNode=e,Kt.lFrame.isParent=t}function tn(){return Kt.lFrame.isParent}function nn(){Kt.lFrame.isParent=!1}function sn(){return Kt.checkNoChangesMode}function rn(e){Kt.checkNoChangesMode=e}function on(){return Kt.lFrame.bindingIndex++}function an(e,t){const n=Kt.lFrame;n.bindingIndex=n.bindingRootIndex=e,ln(t)}function ln(e){Kt.lFrame.currentDirectiveIndex=e}function cn(){return Kt.lFrame.currentQueryIndex}function un(e){Kt.lFrame.currentQueryIndex=e}function hn(e,t){const n=pn();Kt.lFrame=n,n.previousOrParentTNode=t,n.lView=e}function dn(e,t){const n=pn(),s=e[1];Kt.lFrame=n,n.previousOrParentTNode=t,n.lView=e,n.tView=s,n.contextLView=e,n.bindingIndex=s.bindingStartIndex}function pn(){const e=Kt.lFrame,t=null===e?null:e.child;return null===t?fn(e):t}function fn(e){const t={previousOrParentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null};return null!==e&&(e.child=t),t}function mn(){const e=Kt.lFrame;return Kt.lFrame=e.parent,e.previousOrParentTNode=null,e.lView=null,e}const gn=mn;function _n(){const e=mn();e.isParent=!0,e.tView=null,e.selectedIndex=0,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function yn(){return Kt.lFrame.selectedIndex}function bn(e){Kt.lFrame.selectedIndex=e}function vn(){const e=Kt.lFrame;return Ht(e.tView,e.selectedIndex)}function wn(e,t){for(let n=t.directiveStart,s=t.directiveEnd;n<s;n++){const t=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:r,ngAfterViewInit:i,ngAfterViewChecked:o,ngOnDestroy:a}=t;s&&(e.contentHooks||(e.contentHooks=[])).push(-n,s),r&&((e.contentHooks||(e.contentHooks=[])).push(n,r),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,r)),i&&(e.viewHooks||(e.viewHooks=[])).push(-n,i),o&&((e.viewHooks||(e.viewHooks=[])).push(n,o),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,o)),null!=a&&(e.destroyHooks||(e.destroyHooks=[])).push(n,a)}}function En(e,t,n){Sn(e,t,3,n)}function kn(e,t,n,s){(3&e[2])===n&&Sn(e,t,n,s)}function Cn(e,t){let n=e[2];(3&n)===t&&(n&=2047,n+=1,e[2]=n)}function Sn(e,t,n,s){const r=null!=s?s:-1;let i=0;for(let o=void 0!==s?65535&e[18]:0;o<t.length;o++)if("number"==typeof t[o+1]){if(i=t[o],null!=s&&i>=s)break}else t[o]<0&&(e[18]+=65536),(i<r||-1==r)&&(xn(e,n,t,o),e[18]=(4294901760&e[18])+o+2),o++}function xn(e,t,n,s){const r=n[s]<0,i=n[s+1],o=e[r?-n[s]:n[s]];r?e[2]>>11<e[18]>>16&&(3&e[2])===t&&(e[2]+=2048,i.call(o)):i.call(o)}class Tn{constructor(e,t,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=n}}function An(e,t,n){const s=Rt(e);let r=0;for(;r<n.length;){const i=n[r];if("number"==typeof i){if(0!==i)break;r++;const o=n[r++],a=n[r++],l=n[r++];s?e.setAttribute(t,a,l,o):t.setAttributeNS(o,a,l)}else{const o=i,a=n[++r];On(o)?s&&e.setProperty(t,o,a):s?e.setAttribute(t,o,a):t.setAttribute(o,a),r++}}return r}function In(e){return 3===e||4===e||6===e}function On(e){return 64===e.charCodeAt(0)}function Dn(e,t){if(null===t||0===t.length);else if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let s=0;s<t.length;s++){const r=t[s];"number"==typeof r?n=r:0===n||Nn(e,n,r,null,-1===n||2===n?t[++s]:null)}}return e}function Nn(e,t,n,s,r){let i=0,o=e.length;if(-1===t)o=-1;else for(;i<e.length;){const n=e[i++];if("number"==typeof n){if(n===t){o=-1;break}if(n>t){o=i-1;break}}}for(;i<e.length;){const t=e[i];if("number"==typeof t)break;if(t===n){if(null===s)return void(null!==r&&(e[i+1]=r));if(s===e[i+1])return void(e[i+2]=r)}i++,null!==s&&i++,null!==r&&i++}-1!==o&&(e.splice(o,0,t),i=o+1),e.splice(i++,0,n),null!==s&&e.splice(i++,0,s),null!==r&&e.splice(i++,0,r)}function Pn(e){return-1!==e}function Vn(e){return 32767&e}function Fn(e){return e>>16}function Rn(e,t){let n=Fn(e),s=t;for(;n>0;)s=s[15],n--;return s}function Mn(e){return"string"==typeof e?e:null==e?"":""+e}function jn(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Mn(e)}const Ln=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Te))();function Bn(e){return e instanceof Function?e():e}let Hn=!0;function qn(e){const t=Hn;return Hn=e,t}let $n=0;function zn(e,t){const n=Qn(e,t);if(-1!==n)return n;const s=t[1];s.firstCreatePass&&(e.injectorIndex=t.length,Zn(s.data,e),Zn(t,null),Zn(s.blueprint,null));const r=Wn(e,t),i=e.injectorIndex;if(Pn(r)){const e=Vn(r),n=Rn(r,t),s=n[1].data;for(let r=0;r<8;r++)t[i+r]=n[e+r]|s[e+r]}return t[i+8]=r,i}function Zn(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Qn(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null==t[e.injectorIndex+8]?-1:e.injectorIndex}function Wn(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=t[6],s=1;for(;n&&-1===n.injectorIndex;)n=(t=t[15])?t[6]:null,s++;return n?n.injectorIndex|s<<16:-1}function Un(e,t,n){!function(e,t,n){let s;"string"==typeof n?s=n.charCodeAt(0)||0:n.hasOwnProperty(Ve)&&(s=n[Ve]),null==s&&(s=n[Ve]=$n++);const r=255&s,i=1<<r,o=64&r,a=32&r,l=t.data;128&r?o?a?l[e+7]|=i:l[e+6]|=i:a?l[e+5]|=i:l[e+4]|=i:o?a?l[e+3]|=i:l[e+2]|=i:a?l[e+1]|=i:l[e]|=i}(e,t,n)}function Kn(e,t,n,s=re.Default,r){if(null!==e){const r=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(Ve)?e[Ve]:void 0;return"number"==typeof t&&t>0?255&t:t}(n);if("function"==typeof r){hn(t,e);try{const e=r();if(null!=e||s&re.Optional)return e;throw new Error(`No provider for ${jn(n)}!`)}finally{gn()}}else if("number"==typeof r){if(-1===r)return new ns(e,t);let i=null,o=Qn(e,t),a=-1,l=s&re.Host?t[16][6]:null;for((-1===o||s&re.SkipSelf)&&(a=-1===o?Wn(e,t):t[o+8],ts(s,!1)?(i=t[1],o=Vn(a),t=Rn(a,t)):o=-1);-1!==o;){a=t[o+8];const e=t[1];if(es(r,o,e.data)){const e=Yn(o,t,n,i,s,l);if(e!==Gn)return e}ts(s,t[1].data[o+8]===l)&&es(r,o,t)?(i=e,o=Vn(a),t=Rn(a,t)):o=-1}}}if(s&re.Optional&&void 0===r&&(r=null),0==(s&(re.Self|re.Host))){const e=t[9],i=ze(void 0);try{return e?e.get(n,r,s&re.Optional):We(n,r,s&re.Optional)}finally{ze(i)}}if(s&re.Optional)return r;throw new Error(`NodeInjector: NOT_FOUND [${jn(n)}]`)}const Gn={};function Yn(e,t,n,s,r,i){const o=t[1],a=o.data[e+8],l=Jn(a,o,n,null==s?Ct(a)&&Hn:s!=o&&3===a.type,r&re.Host&&i===a);return null!==l?Xn(t,o,l,a):Gn}function Jn(e,t,n,s,r){const i=e.providerIndexes,o=t.data,a=1048575&i,l=e.directiveStart,c=i>>20,u=r?a+c:e.directiveEnd;for(let h=s?a:a+c;h<u;h++){const e=o[h];if(h<l&&n===e||h>=l&&e.type===n)return h}if(r){const e=o[l];if(e&&xt(e)&&e.type===n)return l}return null}function Xn(e,t,n,s){let r=e[n];const i=t.data;if(r instanceof Tn){const o=r;if(o.resolving)throw new Error("Circular dep for "+jn(i[n]));const a=qn(o.canSeeViewProviders);let l;o.resolving=!0,o.injectImpl&&(l=ze(o.injectImpl)),hn(e,s);try{r=e[n]=o.factory(void 0,i,e,s),t.firstCreatePass&&n>=s.directiveStart&&function(e,t,n){const{ngOnChanges:s,ngOnInit:r,ngDoCheck:i}=t.type.prototype;if(s){const s=Ot(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s)}r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,r),i&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,i))}(n,i[n],t)}finally{o.injectImpl&&ze(l),qn(a),o.resolving=!1,gn()}}return r}function es(e,t,n){const s=64&e,r=32&e;let i;return i=128&e?s?r?n[t+7]:n[t+6]:r?n[t+5]:n[t+4]:s?r?n[t+3]:n[t+2]:r?n[t+1]:n[t],!!(i&1<<e)}function ts(e,t){return!(e&re.Self||e&re.Host&&t)}class ns{constructor(e,t){this._tNode=e,this._lView=t}get(e,t){return Kn(this._tNode,this._lView,e,void 0,t)}}function ss(e){const t=e;if(Ee(e))return()=>{const e=ss(we(t));return e?e():null};let n=_t(t);if(null===n){const e=he(t);n=e&&e.factory}return n||null}function rs(e){return Y(()=>{const t=e.prototype.constructor,n=t[Pe]||ss(t),s=Object.prototype;let r=Object.getPrototypeOf(e.prototype).constructor;for(;r&&r!==s;){const e=r[Pe]||ss(r);if(e&&e!==n)return e;r=Object.getPrototypeOf(r)}return e=>new e})}function is(e){return e.ngDebugContext}function os(e){return e.ngOriginalError}function as(e,...t){e.error(...t)}class ls{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),n=this._findContext(e),s=function(e){return e.ngErrorLogger||as}(e);s(this._console,"ERROR",e),t&&s(this._console,"ORIGINAL ERROR",t),n&&s(this._console,"ERROR CONTEXT",n)}_findContext(e){return e?is(e)?is(e):this._findContext(os(e)):null}_findOriginalError(e){let t=os(e);for(;t&&os(t);)t=os(t);return t}}let cs=!0,us=!1;function hs(){return us=!0,cs}function ds(e,t){e.__ngContext__=t}function ps(e){throw new Error("Multiple components match node with tagname "+e.tagName)}function fs(){throw new Error("Cannot mix multi providers and regular providers")}function ms(e,t,n){let s=e.length;for(;;){const r=e.indexOf(t,n);if(-1===r)return r;if(0===r||e.charCodeAt(r-1)<=32){const n=t.length;if(r+n===s||e.charCodeAt(r+n)<=32)return r}n=r+1}}const gs="ng-template";function _s(e,t,n){let s=0;for(;s<e.length;){let r=e[s++];if(n&&"class"===r){if(r=e[s],-1!==ms(r.toLowerCase(),t,0))return!0}else if(1===r){for(;s<e.length&&"string"==typeof(r=e[s++]);)if(r.toLowerCase()===t)return!0;return!1}}return!1}function ys(e){return 0===e.type&&e.tagName!==gs}function bs(e,t,n){return t===(0!==e.type||n?e.tagName:gs)}function vs(e,t,n){let s=4;const r=e.attrs||[],i=function(e){for(let t=0;t<e.length;t++)if(In(e[t]))return t;return e.length}(r);let o=!1;for(let a=0;a<t.length;a++){const l=t[a];if("number"!=typeof l){if(!o)if(4&s){if(s=2|1&s,""!==l&&!bs(e,l,n)||""===l&&1===t.length){if(ws(s))return!1;o=!0}}else{const c=8&s?l:t[++a];if(8&s&&null!==e.attrs){if(!_s(e.attrs,c,n)){if(ws(s))return!1;o=!0}continue}const u=Es(8&s?"class":l,r,ys(e),n);if(-1===u){if(ws(s))return!1;o=!0;continue}if(""!==c){let e;e=u>i?"":r[u+1].toLowerCase();const t=8&s?e:null;if(t&&-1!==ms(t,c,0)||2&s&&c!==e){if(ws(s))return!1;o=!0}}}}else{if(!o&&!ws(s)&&!ws(l))return!1;if(o&&ws(l))continue;o=!1,s=l|1&s}}return ws(s)||o}function ws(e){return 0==(1&e)}function Es(e,t,n,s){if(null===t)return-1;let r=0;if(s||!n){let n=!1;for(;r<t.length;){const s=t[r];if(s===e)return r;if(3===s||6===s)n=!0;else{if(1===s||2===s){let e=t[++r];for(;"string"==typeof e;)e=t[++r];continue}if(4===s)break;if(0===s){r+=4;continue}}r+=n?1:2}return-1}return function(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){const s=e[n];if("number"==typeof s)return-1;if(s===t)return n;n++}return-1}(t,e)}function ks(e,t,n=!1){for(let s=0;s<t.length;s++)if(vs(e,t[s],n))return!0;return!1}function Cs(e,t){return e?":not("+t.trim()+")":t}function Ss(e){let t=e[0],n=1,s=2,r="",i=!1;for(;n<e.length;){let o=e[n];if("string"==typeof o)if(2&s){const t=e[++n];r+="["+o+(t.length>0?'="'+t+'"':"")+"]"}else 8&s?r+="."+o:4&s&&(r+=" "+o);else""===r||ws(o)||(t+=Cs(i,r),r=""),s=o,i=i||!ws(s);n++}return""!==r&&(t+=Cs(i,r)),t}const xs={};function Ts(e){const t=e[3];return Et(t)?t[3]:t}function As(e){return Os(e[13])}function Is(e){return Os(e[4])}function Os(e){for(;null!==e&&!Et(e);)e=e[4];return e}function Ds(e){Ns(Jt(),Yt(),yn()+e,sn())}function Ns(e,t,n,s){if(!s)if(3==(3&t[2])){const s=e.preOrderCheckHooks;null!==s&&En(t,s,n)}else{const s=e.preOrderHooks;null!==s&&kn(t,s,0,n)}bn(n)}function Ps(e,t){return e<<17|t<<2}function Vs(e){return e>>17&32767}function Fs(e){return 2|e}function Rs(e){return(131068&e)>>2}function Ms(e,t){return-131069&e|t<<2}function js(e){return 1|e}function Ls(e,t){const n=e.contentQueries;if(null!==n)for(let s=0;s<n.length;s+=2){const r=n[s],i=n[s+1];if(-1!==i){const n=e.data[i];un(r),n.contentQueries(2,t[i],i)}}}function Bs(e,t,n){return Rt(t)?t.createElement(e,n):null===n?t.createElement(e):t.createElementNS(n,e)}function Hs(e,t,n,s,r,i,o,a,l,c){const u=t.blueprint.slice();return u[0]=r,u[2]=140|s,Wt(u),u[3]=u[15]=e,u[8]=n,u[10]=o||e&&e[10],u[11]=a||e&&e[11],u[12]=l||e&&e[12]||null,u[9]=c||e&&e[9]||null,u[6]=i,u[16]=2==t.type?e[16]:u,u}function qs(e,t,n,s,r,i){const o=n+bt,a=e.data[o]||function(e,t,n,s,r,i){const o=Xt(),a=tn(),l=a?o:o&&o.parent,c=e.data[n]=Gs(0,l&&l!==t?l:null,s,n,r,i);return null===e.firstChild&&(e.firstChild=c),o&&(!a||null!=o.child||null===c.parent&&2!==o.type?a||(o.next=c):o.child=c),c}(e,t,o,s,r,i);return en(a,!0),a}function $s(e,t,n){dn(t,t[6]);try{const s=e.viewQuery;null!==s&&gr(1,s,n);const r=e.template;null!==r&&Qs(e,t,r,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&Ls(e,t),e.staticViewQueries&&gr(2,e.viewQuery,n);const i=e.components;null!==i&&function(e,t){for(let n=0;n<t.length;n++)hr(e,t[n])}(t,i)}catch(s){throw e.firstCreatePass&&(e.incompleteFirstPass=!0),s}finally{t[2]&=-5,_n()}}function zs(e,t,n,s){const r=t[2];if(256==(256&r))return;dn(t,t[6]);const i=sn();try{Wt(t),Kt.lFrame.bindingIndex=e.bindingStartIndex,null!==n&&Qs(e,t,n,2,s);const o=3==(3&r);if(!i)if(o){const n=e.preOrderCheckHooks;null!==n&&En(t,n,null)}else{const n=e.preOrderHooks;null!==n&&kn(t,n,0,null),Cn(t,0)}if(function(e){for(let t=As(e);null!==t;t=Is(t)){if(!t[2])continue;const e=t[9];for(let t=0;t<e.length;t++){const n=e[t],s=n[3];0==(1024&n[2])&&Ut(s,1),n[2]|=1024}}}(t),function(e){for(let t=As(e);null!==t;t=Is(t))for(let e=vt;e<t.length;e++){const n=t[e],s=n[1];Zt(n)&&zs(s,n,s.template,n[8])}}(t),null!==e.contentQueries&&Ls(e,t),!i)if(o){const n=e.contentCheckHooks;null!==n&&En(t,n)}else{const n=e.contentHooks;null!==n&&kn(t,n,1),Cn(t,1)}!function(e,t){try{const n=e.expandoInstructions;if(null!==n){let s=e.expandoStartIndex,r=-1,i=-1;for(let e=0;e<n.length;e++){const o=n[e];"number"==typeof o?o<=0?(i=0-o,bn(i),s+=9+n[++e],r=s):s+=o:(null!==o&&(an(s,r),o(2,t[r])),r++)}}}finally{bn(-1)}}(e,t);const a=e.components;null!==a&&function(e,t){for(let n=0;n<t.length;n++)ur(e,t[n])}(t,a);const l=e.viewQuery;if(null!==l&&gr(2,l,s),!i)if(o){const n=e.viewCheckHooks;null!==n&&En(t,n)}else{const n=e.viewHooks;null!==n&&kn(t,n,2),Cn(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),i||(t[2]&=-73),1024&t[2]&&(t[2]&=-1025,Ut(t[3],-1))}finally{_n()}}function Zs(e,t,n,s){const r=t[10],i=!sn(),o=zt(t);try{i&&!o&&r.begin&&r.begin(),o&&$s(e,t,s),zs(e,t,n,s)}finally{i&&!o&&r.end&&r.end()}}function Qs(e,t,n,s,r){const i=yn();try{bn(-1),2&s&&t.length>bt&&Ns(e,t,0,sn()),n(s,r)}finally{bn(i)}}function Ws(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=Us(1,-1,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function Us(e,t,n,s,r,i,o,a,l,c){const u=bt+s,h=u+r,d=function(e,t){const n=[];for(let s=0;s<t;s++)n.push(s<e?null:xs);return n}(u,h),p="function"==typeof c?c():c;return d[1]={type:e,id:t,blueprint:d,template:n,queries:null,viewQuery:a,node:null,data:d.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:h,expandoInstructions: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 i?i():i,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:l,consts:p,incompleteFirstPass:!1}}function Ks(e,t,n,s){const r=yr(t);r.push(n),e.firstCreatePass&&function(e){return e.cleanup||(e.cleanup=[])}(e).push(s,r.length-1)}function Gs(e,t,n,s,r,i){return{type:n,index:s,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,tagName:r,attrs:i,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}}function Ys(e,t,n){for(let s in e)if(e.hasOwnProperty(s)){const r=e[s];(n=null===n?{}:n).hasOwnProperty(s)?n[s].push(t,r):n[s]=[t,r]}return n}function Js(e,t,n,s,r,i,o,a){const l=Bt(t,n);let c,u=t.inputs;var h;!a&&null!=u&&(c=u[s])?(vr(e,n,c,s,r),Ct(t)&&function(e,t){const n=qt(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):3===t.type&&(s="class"===(h=s)?"className":"for"===h?"htmlFor":"formaction"===h?"formAction":"innerHtml"===h?"innerHTML":"readonly"===h?"readOnly":"tabindex"===h?"tabIndex":h,r=null!=o?o(r,t.tagName||"",s):r,Rt(i)?i.setProperty(l,s,r):On(s)||(l.setProperty?l.setProperty(s,r):l[s]=r))}function Xs(e,t){const n=e.expandoInstructions;n.push(t.hostBindings),0!==t.hostVars&&n.push(t.hostVars)}function er(e,t,n){for(let s=0;s<n;s++)t.push(xs),e.blueprint.push(xs),e.data.push(null)}function tr(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function nr(e,t,n){const s=bt-t.index,r=e.data.length-(1048575&t.providerIndexes);(e.expandoInstructions||(e.expandoInstructions=[])).push(s,r,n)}function sr(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function rr(e,t,n){if(n){if(t.exportAs)for(let s=0;s<t.exportAs.length;s++)n[t.exportAs[s]]=e;xt(t)&&(n[""]=e)}}function ir(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function or(e,t,n){e.data.push(n);const s=n.factory||(n.factory=_t(n.type)),r=new Tn(s,xt(n),null);e.blueprint.push(r),t.push(r)}function ar(e,t,n){const s=Bt(t,e),r=Ws(n),i=e[10],o=dr(e,Hs(e,r,null,n.onPush?64:16,s,t,i,i.createRenderer(s,n)));e[t.index]=o}function lr(e,t,n,s,r,i){const o=i[t];if(null!==o){const e=s.setInput;for(let t=0;t<o.length;){const r=o[t++],i=o[t++],a=o[t++];null!==e?s.setInput(n,a,r,i):n[i]=a}}}function cr(e,t){let n=null,s=0;for(;s<t.length;){const r=t[s];if(0!==r)if(5!==r){if("number"==typeof r)break;e.hasOwnProperty(r)&&(null===n&&(n=[]),n.push(r,e[r],t[s+1])),s+=2}else s+=2;else s+=4}return n}function ur(e,t){const n=qt(t,e);if(Zt(n)){const e=n[1];80&n[2]?zs(e,n,e.template,n[8]):n[5]>0&&function e(t){for(let s=As(t);null!==s;s=Is(s))for(let t=vt;t<s.length;t++){const n=s[t];if(1024&n[2]){const e=n[1];zs(e,n,e.template,n[8])}else n[5]>0&&e(n)}const n=t[1].components;if(null!==n)for(let s=0;s<n.length;s++){const r=qt(n[s],t);Zt(r)&&r[5]>0&&e(r)}}(n)}}function hr(e,t){const n=qt(t,e),s=n[1];!function(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(s,n),$s(s,n,n[8])}function dr(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function pr(e){for(;e;){e[2]|=64;const t=Ts(e);if(Tt(e)&&!t)return e;e=t}return null}function fr(e,t,n){const s=t[10];s.begin&&s.begin();try{zs(e,t,e.template,n)}catch(r){throw br(t,r),r}finally{s.end&&s.end()}}function mr(e){!function(e){for(let t=0;t<e.components.length;t++){const n=e.components[t],s=$t(n),r=s[1];Zs(r,s,r.template,n)}}(e[8])}function gr(e,t,n){un(0),t(e,n)}const _r=(()=>Promise.resolve(null))();function yr(e){return e[7]||(e[7]=[])}function br(e,t){const n=e[9],s=n?n.get(ls,null):null;s&&s.handleError(t)}function vr(e,t,n,s,r){for(let i=0;i<n.length;){const o=n[i++],a=n[i++],l=t[o],c=e.data[o];null!==c.setInput?c.setInput(l,r,s,a):l[a]=r}}function wr(e,t){const n=t[3];return-1===e.index?Et(n)?n:null:n}function Er(e,t){const n=wr(e,t);return n?Vr(t[11],n[7]):null}function kr(e,t,n,s,r){if(null!=s){let i,o=!1;Et(s)?i=s:wt(s)&&(o=!0,s=s[0]);const a=jt(s);0===e&&null!==n?null==r?Nr(t,n,a):Dr(t,n,a,r||null):1===e&&null!==n?Dr(t,n,a,r||null):2===e?function(e,t,n){const s=Vr(e,t);s&&function(e,t,n,s){Rt(e)?e.removeChild(t,n,s):t.removeChild(n)}(e,s,t,n)}(t,a,o):3===e&&t.destroyNode(a),null!=i&&function(e,t,n,s,r){const i=n[7];i!==jt(n)&&kr(t,e,s,i,r);for(let o=vt;o<n.length;o++){const r=n[o];Lr(r[1],r,e,t,s,i)}}(t,e,i,n,r)}}function Cr(e,t,n,s){const r=Er(e.node,t);r&&Lr(e,t,t[11],n?1:2,r,s)}function Sr(e,t){const n=e[9],s=n.indexOf(t);1024&t[2]&&Ut(t[3],-1),n.splice(s,1)}function xr(e,t){if(e.length<=vt)return;const n=vt+t,s=e[n];if(s){const r=s[17];null!==r&&r!==e&&Sr(r,s),t>0&&(e[n-1][4]=s[4]);const i=Xe(e,vt+t);Cr(s[1],s,!1,null);const o=i[19];null!==o&&o.detachView(i[1]),s[3]=null,s[4]=null,s[2]&=-129}return s}function Tr(e,t){if(!(256&t[2])){const n=t[11];Rt(n)&&n.destroyNode&&Lr(e,t,n,3,null,null),function(e){let t=e[13];if(!t)return Ir(e[1],e);for(;t;){let n=null;if(wt(t))n=t[13];else{const e=t[10];e&&(n=e)}if(!n){for(;t&&!t[4]&&t!==e;)wt(t)&&Ir(t[1],t),t=Ar(t,e);null===t&&(t=e),wt(t)&&Ir(t[1],t),n=t&&t[4]}t=n}}(t)}}function Ar(e,t){let n;return wt(e)&&(n=e[6])&&2===n.type?wr(n,e):e[3]===t?null:e[3]}function Ir(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let s=0;s<n.length;s+=2){const e=t[n[s]];if(!(e instanceof Tn)){const t=n[s+1];if(Array.isArray(t))for(let n=0;n<t.length;n+=2)t[n+1].call(e[t[n]]);else t.call(e)}}}(e,t),function(e,t){const n=e.cleanup;if(null!==n){const e=t[7];for(let s=0;s<n.length-1;s+=2)if("string"==typeof n[s]){const r=n[s+1],i="function"==typeof r?r(t):jt(t[r]),o=e[n[s+2]],a=n[s+3];"boolean"==typeof a?i.removeEventListener(n[s],o,a):a>=0?e[a]():e[-a].unsubscribe(),s+=2}else n[s].call(e[n[s+1]]);t[7]=null}}(e,t);const n=t[6];n&&3===n.type&&Rt(t[11])&&t[11].destroy();const s=t[17];if(null!==s&&Et(t[3])){s!==t[3]&&Sr(s,t);const n=t[19];null!==n&&n.detachView(e)}}}function Or(e,t,n){let s=t.parent;for(;null!=s&&(4===s.type||5===s.type);)s=(t=s).parent;if(null==s){const e=n[6];return 2===e.type?Er(e,n):n[0]}if(t&&5===t.type&&4&t.flags)return Bt(t,n).parentNode;if(2&s.flags){const t=e.data,n=t[t[s.index].directiveStart].encapsulation;if(n!==it.ShadowDom&&n!==it.Native)return null}return Bt(s,n)}function Dr(e,t,n,s){Rt(e)?e.insertBefore(t,n,s):t.insertBefore(n,s,!0)}function Nr(e,t,n){Rt(e)?e.appendChild(t,n):t.appendChild(n)}function Pr(e,t,n,s){null!==s?Dr(e,t,n,s):Nr(e,t,n)}function Vr(e,t){return Rt(e)?e.parentNode(t):t.parentNode}function Fr(e,t){if(2===e.type){const n=wr(e,t);return null===n?null:Mr(n.indexOf(t,vt)-vt,n)}return 4===e.type||5===e.type?Bt(e,t):null}function Rr(e,t,n,s){const r=Or(e,s,t);if(null!=r){const e=t[11],i=Fr(s.parent||t[6],t);if(Array.isArray(n))for(let t=0;t<n.length;t++)Pr(e,r,n[t],i);else Pr(e,r,n,i)}}function Mr(e,t){const n=vt+e+1;if(n<t.length){const e=t[n],s=e[1].firstChild;if(null!==s)return function e(t,n){if(null!==n){const s=n.type;if(3===s)return Bt(n,t);if(0===s)return Mr(-1,t[n.index]);if(4===s||5===s){const s=n.child;if(null!==s)return e(t,s);{const e=t[n.index];return Et(e)?Mr(-1,e):jt(e)}}{const s=t[16],r=s[6],i=Ts(s),o=r.projection[n.projection];return null!=o?e(i,o):e(t,n.next)}}return null}(e,s)}return t[7]}function jr(e,t,n,s,r,i,o){for(;null!=n;){const a=s[n.index],l=n.type;o&&0===t&&(a&&ds(jt(a),s),n.flags|=4),64!=(64&n.flags)&&(4===l||5===l?(jr(e,t,n.child,s,r,i,!1),kr(t,e,r,a,i)):1===l?Br(e,t,s,n,r,i):kr(t,e,r,a,i)),n=o?n.projectionNext:n.next}}function Lr(e,t,n,s,r,i){jr(n,s,e.node.child,t,r,i,!1)}function Br(e,t,n,s,r,i){const o=n[16],a=o[6].projection[s.projection];if(Array.isArray(a))for(let l=0;l<a.length;l++)kr(t,e,r,a[l],i);else jr(e,t,a,o[3],r,i,!0)}function Hr(e,t,n){Rt(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function qr(e,t,n){Rt(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}class $r{constructor(e,t){this._lView=e,this._cdRefInjectingView=t,this._appRef=null,this._viewContainerRef=null}get rootNodes(){const e=this._lView;return null==e[0]?function e(t,n,s,r,i=!1){for(;null!==s;){const o=n[s.index];if(null!==o&&r.push(jt(o)),Et(o))for(let t=vt;t<o.length;t++){const n=o[t],s=n[1].firstChild;null!==s&&e(n[1],n,s,r)}const a=s.type;if(4===a||5===a)e(t,n,s.child,r);else if(1===a){const t=n[16],i=t[6].projection[s.projection];if(Array.isArray(i))r.push(...i);else{const n=Ts(t);e(n[1],n,i,r,!0)}}s=i?s.projectionNext:s.next}return r}(e[1],e,e[6].child,[]):[]}get context(){return this._lView[8]}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._viewContainerRef){const e=this._viewContainerRef.indexOf(this);e>-1&&this._viewContainerRef.detach(e),this._viewContainerRef=null}Tr(this._lView[1],this._lView)}onDestroy(e){Ks(this._lView[1],this._lView,null,e)}markForCheck(){pr(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){fr(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(e,t,n){rn(!0);try{fr(e,t,n)}finally{rn(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}detachFromAppRef(){var e;this._appRef=null,Lr(this._lView[1],e=this._lView,e[11],2,null,null)}attachToAppRef(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}class zr extends $r{constructor(e){super(e),this._view=e}detectChanges(){mr(this._view)}checkNoChanges(){!function(e){rn(!0);try{mr(e)}finally{rn(!1)}}(this._view)}get context(){return null}}let Zr,Qr,Wr;function Ur(e,t,n){return Zr||(Zr=class extends e{}),new Zr(Bt(t,n))}function Kr(e,t,n,s){return Qr||(Qr=class extends e{constructor(e,t,n){super(),this._declarationView=e,this._declarationTContainer=t,this.elementRef=n}createEmbeddedView(e){const t=this._declarationTContainer.tViews,n=Hs(this._declarationView,t,e,16,null,t.node);n[17]=this._declarationView[this._declarationTContainer.index];const s=this._declarationView[19];return null!==s&&(n[19]=s.createEmbeddedView(t)),$s(t,n,e),new $r(n)}}),0===n.type?new Qr(s,n,Ur(t,n,s)):null}function Gr(e,t,n,s){let r;Wr||(Wr=class extends e{constructor(e,t,n){super(),this._lContainer=e,this._hostTNode=t,this._hostView=n}get element(){return Ur(t,this._hostTNode,this._hostView)}get injector(){return new ns(this._hostTNode,this._hostView)}get parentInjector(){const e=Wn(this._hostTNode,this._hostView),t=Rn(e,this._hostView),n=function(e,t,n){if(n.parent&&-1!==n.parent.injectorIndex){const e=n.parent.injectorIndex;let t=n.parent;for(;null!=t.parent&&e==t.parent.injectorIndex;)t=t.parent;return t}let s=Fn(e),r=t,i=t[6];for(;s>1;)r=r[15],i=r[6],s--;return i}(e,this._hostView,this._hostTNode);return Pn(e)&&null!=n?new ns(n,t):new ns(null,this._hostView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){return null!==this._lContainer[8]&&this._lContainer[8][e]||null}get length(){return this._lContainer.length-vt}createEmbeddedView(e,t,n){const s=e.createEmbeddedView(t||{});return this.insert(s,n),s}createComponent(e,t,n,s,r){const i=n||this.parentInjector;if(!r&&null==e.ngModule&&i){const e=i.get(Ge,null);e&&(r=e)}const o=e.create(i,s,void 0,r);return this.insert(o.hostView,t),o}insert(e,t){const n=e._lView,s=n[1];if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),Et(n[3])){const t=this.indexOf(e);if(-1!==t)this.detach(t);else{const t=n[3],s=new Wr(t,t[6],t[3]);s.detach(s.indexOf(e))}}const r=this._adjustIndex(t);return function(e,t,n,s){const r=vt+s,i=n.length;s>0&&(n[r-1][4]=t),s<i-vt?(t[4]=n[r],Je(n,vt+s,t)):(n.push(t),t[4]=null),t[3]=n;const o=t[17];null!==o&&n!==o&&function(e,t){const n=e[9];t[16]!==t[3][3][16]&&(e[2]=!0),null===n?e[9]=[t]:n.push(t)}(o,t);const a=t[19];null!==a&&a.insertView(e),t[2]|=128}(s,n,this._lContainer,r),Cr(s,n,!0,Mr(r,this._lContainer)),e.attachToViewContainerRef(this),Je(this._lContainer[8],r,e),e}move(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");return this.insert(e,t)}indexOf(e){const t=this._lContainer[8];return null!==t?t.indexOf(e):-1}remove(e){this.allocateContainerIfNeeded();const t=this._adjustIndex(e,-1),n=xr(this._lContainer,t);n&&(Xe(this._lContainer[8],t),Tr(n[1],n))}detach(e){this.allocateContainerIfNeeded();const t=this._adjustIndex(e,-1),n=xr(this._lContainer,t);return n&&null!=Xe(this._lContainer[8],t)?new $r(n):null}_adjustIndex(e,t=0){return null==e?this.length+t:e}allocateContainerIfNeeded(){null===this._lContainer[8]&&(this._lContainer[8]=[])}});const i=s[n.index];if(Et(i))r=i;else{let e;if(4===n.type)e=jt(i);else if(e=s[11].createComment(""),Tt(s)){const t=s[11],r=Bt(n,s);Dr(t,Vr(t,r),e,function(e,t){return Rt(e)?e.nextSibling(t):t.nextSibling}(t,r))}else Rr(s[1],s,e,n);s[n.index]=r=new Array(i,!0,!1,s,null,0,n,e,null,null),dr(s,r)}return new Wr(r,n,s)}let Yr=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Jr(),e})();const Jr=function(e=!1){return function(e,t,n){if(!n&&Ct(e)){const n=qt(e.index,t);return new $r(n,n)}return 3===e.type||0===e.type||4===e.type||5===e.type?new $r(t[16],t):null}(Xt(),Yt(),e)},Xr=new Fe("Set Injector scope."),ei={},ti={},ni=[];let si=void 0;function ri(){return void 0===si&&(si=new Ke),si}function ii(e,t=null,n=null,s){return new oi(e,n,t||ri(),s)}class oi{constructor(e,t,n,s=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const r=[];t&&Ye(t,n=>this.processProvider(n,e,t)),Ye([e],e=>this.processInjectorType(e,[],r)),this.records.set(Re,ci(void 0,this));const i=this.records.get(Xr);this.scope=null!=i?i.value:null,this.source=s||("object"==typeof e?null:_e(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,t=Me,n=re.Default){this.assertNotDestroyed();const s=$e(this);try{if(!(n&re.SkipSelf)){let t=this.records.get(e);if(void 0===t){const n=("function"==typeof(r=e)||"object"==typeof r&&r instanceof Fe)&&ce(e);t=n&&this.injectableDefInScope(n)?ci(ai(e),ei):null,this.records.set(e,t)}if(null!=t)return this.hydrate(e,t)}return(n&re.Self?ri():this.parent).get(e,t=n&re.Optional&&t===Me?null:t)}catch(i){if("NullInjectorError"===i.name){if((i.ngTempTokenPath=i.ngTempTokenPath||[]).unshift(_e(e)),s)throw i;return function(e,t,n,s){const r=e.ngTempTokenPath;throw t[Le]&&r.unshift(t[Le]),e.message=function(e,t,n,s=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let r=_e(t);if(Array.isArray(t))r=t.map(_e).join(" -> ");else if("object"==typeof t){let e=[];for(let n in t)if(t.hasOwnProperty(n)){let s=t[n];e.push(n+":"+("string"==typeof s?JSON.stringify(s):_e(s)))}r=`{${e.join(", ")}}`}return`${n}${s?"("+s+")":""}[${r}]: ${e.replace(je,"\n ")}`}("\n"+e.message,r,n,s),e.ngTokenPath=r,e.ngTempTokenPath=null,e}(i,e,"R3InjectorError",this.source)}throw i}finally{$e(s)}var r}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((t,n)=>e.push(_e(n))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(e,t,n){if(!(e=we(e)))return!1;let s=he(e);const r=null==s&&e.ngModule||void 0,i=void 0===r?e:r,o=-1!==n.indexOf(i);if(void 0!==r&&(s=he(r)),null==s)return!1;if(null!=s.imports&&!o){let e;n.push(i);try{Ye(s.imports,s=>{this.processInjectorType(s,t,n)&&(void 0===e&&(e=[]),e.push(s))})}finally{}if(void 0!==e)for(let t=0;t<e.length;t++){const{ngModule:n,providers:s}=e[t];Ye(s,e=>this.processProvider(e,n,s||ni))}}this.injectorDefTypes.add(i),this.records.set(i,ci(s.factory,ei));const a=s.providers;if(null!=a&&!o){const t=e;Ye(a,e=>this.processProvider(e,t,a))}return void 0!==r&&void 0!==e.providers}processProvider(e,t,n){let s=hi(e=we(e))?e:we(e&&e.provide);const r=function(e,t,n){return ui(e)?ci(void 0,e.useValue):ci(li(e,t,n),ei)}(e,t,n);if(hi(e)||!0!==e.multi){const e=this.records.get(s);e&&void 0!==e.multi&&fs()}else{let t=this.records.get(s);t?void 0===t.multi&&fs():(t=ci(void 0,ei,!0),t.factory=()=>Ue(t.multi),this.records.set(s,t)),s=e,t.multi.push(e)}this.records.set(s,r)}hydrate(e,t){var n;return t.value===ti?function(e){throw new Error("Cannot instantiate cyclic dependency! "+e)}(_e(e)):t.value===ei&&(t.value=ti,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}injectableDefInScope(e){return!!e.providedIn&&("string"==typeof e.providedIn?"any"===e.providedIn||e.providedIn===this.scope:this.injectorDefTypes.has(e.providedIn))}}function ai(e){const t=ce(e),n=null!==t?t.factory:_t(e);if(null!==n)return n;const s=he(e);if(null!==s)return s.factory;if(e instanceof Fe)throw new Error(`Token ${_e(e)} is missing a \u0275prov definition.`);if(e instanceof Function)return function(e){const t=e.length;if(t>0){const n=et(t,"?");throw new Error(`Can't resolve all parameters for ${_e(e)}: (${n.join(", ")}).`)}const n=function(e){const t=e&&(e[de]||e[me]||e[fe]&&e[fe]());if(t){const n=function(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${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 "${n}" class.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new Error("unreachable")}function li(e,t,n){let s=void 0;if(hi(e)){const t=we(e);return _t(t)||ai(t)}if(ui(e))s=()=>we(e.useValue);else if((r=e)&&r.useFactory)s=()=>e.useFactory(...Ue(e.deps||[]));else if(function(e){return!(!e||!e.useExisting)}(e))s=()=>Qe(we(e.useExisting));else{const r=we(e&&(e.useClass||e.provide));if(r||function(e,t,n){let s="";throw e&&t&&(s=` - only instances of Provider and Type are allowed, got: [${t.map(e=>e==n?"?"+n+"?":"...").join(", ")}]`),new Error(`Invalid provider for the NgModule '${_e(e)}'`+s)}(t,n,e),!function(e){return!!e.deps}(e))return _t(r)||ai(r);s=()=>new r(...Ue(e.deps))}var r;return s}function ci(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function ui(e){return null!==e&&"object"==typeof e&&Be in e}function hi(e){return"function"==typeof e}const di=function(e,t,n){return function(e,t=null,n=null,s){const r=ii(e,t,n,s);return r._resolveInjectorDefTypes(),r}({name:n},t,e,n)};let pi=(()=>{class e{static create(e,t){return Array.isArray(e)?di(e,t,""):di(e.providers,e.parent,e.name||"")}}return e.THROW_IF_NOT_FOUND=Me,e.NULL=new Ke,e.\u0275prov=ae({token:e,providedIn:"any",factory:()=>Qe(Re)}),e.__NG_ELEMENT_ID__=-1,e})();function fi(e,t,n){let s=n?e.styles:null,r=n?e.classes:null,i=0;if(null!==t)for(let o=0;o<t.length;o++){const e=t[o];"number"==typeof e?i=e:1==i?r=ye(r,e):2==i&&(s=ye(s,e+": "+t[++o]+";"))}n?e.styles=s:e.stylesWithoutHost=s,n?e.classes=r:e.classesWithoutHost=r}let mi=null;function gi(){if(!mi){const e=Te.Symbol;if(e&&e.iterator)mi=e.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;t<e.length;++t){const n=e[t];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(mi=n)}}}return mi}function _i(e){return!!yi(e)&&(Array.isArray(e)||!(e instanceof Map)&&gi()in e)}function yi(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function bi(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function vi(e,t,n,s){const r=Yt();return bi(r,on(),t)&&(Jt(),function(e,t,n,s,r,i){const o=Bt(e,t),a=t[11];if(null==s)Rt(a)?a.removeAttribute(o,n,i):o.removeAttribute(n);else{const t=null==r?Mn(s):r(s,e.tagName||"",n);Rt(a)?a.setAttribute(o,n,t,i):i?o.setAttributeNS(i,n,t):o.setAttribute(n,t)}}(vn(),r,e,t,n,s)),vi}function wi(e){return function(e,t){return e[t+bt]}(Kt.lFrame.contextLView,e)}function Ei(e,t=re.Default){const n=Yt();return null==n?Qe(e,t):Kn(Xt(),n,we(e),t)}function ki(e,t,n){const s=Yt();return bi(s,on(),t)&&Js(Jt(),vn(),s,e,t,s[11],n,!1),ki}function Ci(e,t,n,s,r){const i=r?"class":"style";vr(e,n,t.inputs[i],i,s)}function Si(e,t,n,s){const r=Yt(),i=Jt(),o=bt+e,a=r[11],l=r[o]=Bs(t,a,Kt.lFrame.currentNamespace),c=i.firstCreatePass?function(e,t,n,s,r,i,o){const a=t.consts,l=Qt(a,i),c=qs(t,n[6],e,3,r,l);return function(e,t,n,s){let r=!1;if(Gt()){const i=function(e,t,n){const s=e.directiveRegistry;let r=null;if(s)for(let i=0;i<s.length;i++){const o=s[i];ks(n,o.selectors,!1)&&(r||(r=[]),Un(zn(n,t),e,o.type),xt(o)?(2&n.flags&&ps(n),sr(e,n),r.unshift(o)):r.push(o))}return r}(e,t,n),o=null===s?null:{"":-1};if(null!==i){let s=0;r=!0,ir(n,e.data.length,i.length);for(let e=0;e<i.length;e++){const t=i[e];t.providersResolver&&t.providersResolver(t)}nr(e,n,i.length);let a=!1,l=!1;for(let r=0;r<i.length;r++){const c=i[r];n.mergedAttrs=Dn(n.mergedAttrs,c.hostAttrs),or(e,t,c),rr(e.data.length-1,c,o),null!==c.contentQueries&&(n.flags|=8),null===c.hostBindings&&null===c.hostAttrs&&0===c.hostVars||(n.flags|=128);const u=c.type.prototype;!a&&(u.ngOnChanges||u.ngOnInit||u.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index-bt),a=!0),l||!u.ngOnChanges&&!u.ngDoCheck||((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index-bt),l=!0),Xs(e,c),s+=c.hostVars}!function(e,t){const n=t.directiveEnd,s=e.data,r=t.attrs,i=[];let o=null,a=null;for(let l=t.directiveStart;l<n;l++){const e=s[l],n=e.inputs,c=null===r||ys(t)?null:cr(n,r);i.push(c),o=Ys(n,l,o),a=Ys(e.outputs,l,a)}null!==o&&(o.hasOwnProperty("class")&&(t.flags|=16),o.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=i,t.inputs=o,t.outputs=a}(e,n),er(e,t,s)}o&&function(e,t,n){if(t){const s=e.localNames=[];for(let e=0;e<t.length;e+=2){const r=n[t[e+1]];if(null==r)throw new Error(`Export of name '${t[e+1]}' not found!`);s.push(t[e],r)}}}(n,s,o)}n.mergedAttrs=Dn(n.mergedAttrs,n.attrs)}(t,n,c,Qt(a,o)),null!==c.attrs&&fi(c,c.attrs,!1),null!==c.mergedAttrs&&fi(c,c.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,c),c}(e,i,r,0,t,n,s):i.data[o];en(c,!0);const u=c.mergedAttrs;null!==u&&An(a,l,u);const h=c.classes;null!==h&&qr(a,l,h);const d=c.styles;null!==d&&Hr(a,l,d),Rr(i,r,l,c),0===Kt.lFrame.elementDepthCount&&ds(l,r),Kt.lFrame.elementDepthCount++,St(c)&&(function(e,t,n){Gt()&&(function(e,t,n,s){const r=n.directiveStart,i=n.directiveEnd;e.firstCreatePass||zn(n,t),ds(s,t);const o=n.initialInputs;for(let a=r;a<i;a++){const s=e.data[a],i=xt(s);i&&ar(t,n,s);const l=Xn(t,e,a,n);ds(l,t),null!==o&&lr(0,a-r,l,s,0,o),i&&(qt(n.index,t)[8]=l)}}(e,t,n,Bt(n,t)),128==(128&n.flags)&&function(e,t,n){const s=n.directiveStart,r=n.directiveEnd,i=e.expandoInstructions,o=e.firstCreatePass,a=n.index-bt,l=Kt.lFrame.currentDirectiveIndex;try{bn(a);for(let n=s;n<r;n++){const s=e.data[n],r=t[n];ln(n),null!==s.hostBindings||0!==s.hostVars||null!==s.hostAttrs?tr(s,r):o&&i.push(null)}}finally{bn(-1),ln(l)}}(e,t,n))}(i,r,c),function(e,t,n){if(kt(t)){const s=t.directiveEnd;for(let r=t.directiveStart;r<s;r++){const t=e.data[r];t.contentQueries&&t.contentQueries(1,n[r],r)}}}(i,c,r)),null!==s&&function(e,t,n=Bt){const s=t.localNames;if(null!==s){let r=t.index+1;for(let i=0;i<s.length;i+=2){const o=s[i+1],a=-1===o?n(t,e):e[o];e[r++]=a}}}(r,c)}function xi(){let e=Xt();tn()?nn():(e=e.parent,en(e,!1));const t=e;Kt.lFrame.elementDepthCount--;const n=Jt();n.firstCreatePass&&(wn(n,e),kt(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&Ci(n,t,Yt(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&Ci(n,t,Yt(),t.stylesWithoutHost,!1)}function Ti(e,t,n,s){Si(e,t,n,s),xi()}function Ai(e){return!!e&&"function"==typeof e.then}function Ii(e,t,n=!1,s){const r=Yt(),i=Jt(),o=Xt();return function(e,t,n,s,r,i,o=!1,a){const l=St(s),c=e.firstCreatePass&&(e.cleanup||(e.cleanup=[])),u=yr(t);let h=!0;if(3===s.type){const d=Bt(s,t),p=a?a(d):ot,f=p.target||d,m=u.length,g=a?e=>a(jt(e[s.index])).target:s.index;if(Rt(n)){let o=null;if(!a&&l&&(o=function(e,t,n,s){const r=e.cleanup;if(null!=r)for(let i=0;i<r.length-1;i+=2){const e=r[i];if(e===n&&r[i+1]===s){const e=t[7],n=r[i+2];return e.length>n?e[n]:null}"string"==typeof e&&(i+=2)}return null}(e,t,r,s.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=i,o.__ngLastListenerFn__=i,h=!1;else{i=Di(s,t,i,!1);const e=n.listen(p.name||f,r,i);u.push(i,e),c&&c.push(r,g,m,m+1)}}else i=Di(s,t,i,!0),f.addEventListener(r,i,o),u.push(i),c&&c.push(r,g,m,o)}const d=s.outputs;let p;if(h&&null!==d&&(p=d[r])){const e=p.length;if(e)for(let n=0;n<e;n+=2){const e=t[p[n]][p[n+1]].subscribe(i),o=u.length;u.push(i,e),c&&c.push(r,s.index,o,-(o+1))}}}(i,r,r[11],o,e,t,n,s),Ii}function Oi(e,t,n){try{return!1!==t(n)}catch(s){return br(e,s),!1}}function Di(e,t,n,s){return function r(i){if(i===Function)return n;const o=2&e.flags?qt(e.index,t):t;0==(32&t[2])&&pr(o);let a=Oi(t,n,i),l=r.__ngNextListenerFn__;for(;l;)a=Oi(t,l,i)&&a,l=l.__ngNextListenerFn__;return s&&!1===a&&(i.preventDefault(),i.returnValue=!1),a}}const Ni=[];function Pi(e,t,n,s,r){const i=e[n+1],o=null===t;let a=s?Vs(i):Rs(i),l=!1;for(;0!==a&&(!1===l||o);){const n=e[a+1];Vi(e[a],t)&&(l=!0,e[a+1]=s?js(n):Fs(n)),a=s?Vs(n):Rs(n)}l&&(e[n+1]=s?Fs(i):js(i))}function Vi(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&st(e,t)>=0}function Fi(e,t){return function(e,t,n,s){const r=Yt(),i=Jt(),o=function(e){const t=Kt.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+2,n}();i.firstUpdatePass&&function(e,t,n,s){const r=e.data;if(null===r[n+1]){const i=r[yn()+bt],o=function(e,t){return t>=e.expandoStartIndex}(e,n);(function(e,t){return 0!=(16&e.flags)})(i)&&null===t&&!o&&(t=!1),t=function(e,t,n,s){const r=function(e){const t=Kt.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let i=t.residualClasses;if(null===r)0===t.classBindings&&(n=Mi(n=Ri(null,e,t,n,s),t.attrs,s),i=null);else{const o=t.directiveStylingLast;if(-1===o||e[o]!==r)if(n=Ri(r,e,t,n,s),null===i){let n=function(e,t,n){const s=t.classBindings;if(0!==Rs(s))return e[Vs(s)]}(e,t);void 0!==n&&Array.isArray(n)&&(n=Ri(null,e,t,n[1],s),n=Mi(n,t.attrs,s),function(e,t,n,s){e[Vs(t.classBindings)]=s}(e,t,0,n))}else i=function(e,t,n){let s=void 0;const r=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<r;i++)s=Mi(s,e[i].hostAttrs,true);return Mi(s,t.attrs,true)}(e,t)}return void 0!==i&&(t.residualClasses=i),n}(r,i,t,s),function(e,t,n,s,r,i){let o=t.classBindings,a=Vs(o),l=Rs(o);e[s]=n;let c,u=!1;if(Array.isArray(n)){const e=n;c=e[1],(null===c||st(e,c)>0)&&(u=!0)}else c=n;if(r)if(0!==l){const t=Vs(e[a+1]);e[s+1]=Ps(t,a),0!==t&&(e[t+1]=Ms(e[t+1],s)),e[a+1]=131071&e[a+1]|s<<17}else e[s+1]=Ps(a,0),0!==a&&(e[a+1]=Ms(e[a+1],s)),a=s;else e[s+1]=Ps(l,0),0===a?a=s:e[l+1]=Ms(e[l+1],s),l=s;u&&(e[s+1]=Fs(e[s+1])),Pi(e,c,s,!0),Pi(e,c,s,!1),function(e,t,n,s,r){const i=e.residualClasses;null!=i&&"string"==typeof t&&st(i,t)>=0&&(n[s+1]=js(n[s+1]))}(t,c,e,s),o=Ps(a,l),t.classBindings=o}(r,i,t,n,o)}}(i,e,o,true),t!==xs&&bi(r,o,t)&&function(e,t,n,s,r,i,o,a){if(3!==t.type)return;const l=e.data,c=l[a+1];Li(1==(1&c)?ji(l,t,n,r,Rs(c),o):void 0)||(Li(i)||function(e){return 2==(2&e)}(c)&&(i=ji(l,null,n,r,a,o)),function(e,t,n,s,r){const i=Rt(e);r?i?e.addClass(n,s):n.classList.add(s):i?e.removeClass(n,s):n.classList.remove(s)}(s,0,Lt(yn(),n),r,i))}(i,i.data[yn()+bt],r,r[11],e,r[o+1]=function(e,t){return null==e||"object"==typeof e&&(e=_e(function(e){return e instanceof class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"}}?e.changingThisBreaksApplicationSecurity:e}(e))),e}(t),true,o)}(e,t),Fi}function Ri(e,t,n,s,r){let i=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<o&&(i=t[a],s=Mi(s,i.hostAttrs,r),i!==e);)a++;return null!==e&&(n.directiveStylingLast=a),s}function Mi(e,t,n){const s=n?1:2;let r=-1;if(null!==t)for(let i=0;i<t.length;i++){const o=t[i];"number"==typeof o?r=o:r===s&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),tt(e,o,!!n||t[++i]))}return void 0===e?null:e}function ji(e,t,n,s,r,i){const o=null===t;let a=void 0;for(;r>0;){const t=e[r],i=Array.isArray(t),l=i?t[1]:t,c=null===l;let u=n[r+1];u===xs&&(u=c?Ni:void 0);let h=c?nt(u,s):l===s?u:void 0;if(i&&!Li(h)&&(h=nt(t,s)),Li(h)&&(a=h,o))return a;const d=e[r+1];r=o?Vs(d):Rs(d)}if(null!==t){let e=i?t.residualClasses:t.residualStyles;null!=e&&(a=nt(e,s))}return a}function Li(e){return void 0!==e}function Bi(e,t=""){const n=Yt(),s=Jt(),r=e+bt,i=s.firstCreatePass?qs(s,n[6],e,3,null,null):s.data[r],o=n[r]=function(e,t){return Rt(t)?t.createText(e):t.createTextNode(e)}(t,n[11]);Rr(s,n,o,i),en(i,!1)}function Hi(e){return qi("",e,""),Hi}function qi(e,t,n){const s=Yt(),r=function(e,t,n,s){return bi(e,on(),n)?t+Mn(n)+s:xs}(s,e,t,n);return r!==xs&&function(e,t,n){const s=Lt(t,e),r=e[11];Rt(r)?r.setValue(s,n):s.textContent=n}(s,yn(),r),qi}function $i(e,t,n){const s=Yt();return bi(s,on(),t)&&Js(Jt(),vn(),s,e,t,s[11],n,!0),$i}function zi(e,t){const n=$t(e)[1],s=n.data.length-1;wn(n,{directiveStart:s,directiveEnd:s+1})}function Zi(e){let t=Object.getPrototypeOf(e.type.prototype).constructor,n=!0;const s=[e];for(;t;){let r=void 0;if(xt(e))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");r=t.\u0275dir}if(r){if(n){s.push(r);const t=e;t.inputs=Qi(e.inputs),t.declaredInputs=Qi(e.declaredInputs),t.outputs=Qi(e.outputs);const n=r.hostBindings;n&&Ki(e,n);const i=r.viewQuery,o=r.contentQueries;if(i&&Wi(e,i),o&&Ui(e,o),oe(e.inputs,r.inputs),oe(e.declaredInputs,r.declaredInputs),oe(e.outputs,r.outputs),xt(r)&&r.data.animation){const t=e.data;t.animation=(t.animation||[]).concat(r.data.animation)}}const t=r.features;if(t)for(let s=0;s<t.length;s++){const r=t[s];r&&r.ngInherit&&r(e),r===Zi&&(n=!1)}}t=Object.getPrototypeOf(t)}!function(e){let t=0,n=null;for(let s=e.length-1;s>=0;s--){const r=e[s];r.hostVars=t+=r.hostVars,r.hostAttrs=Dn(r.hostAttrs,n=Dn(n,r.hostAttrs))}}(s)}function Qi(e){return e===ot?{}:e===at?[]:e}function Wi(e,t){const n=e.viewQuery;e.viewQuery=n?(e,s)=>{t(e,s),n(e,s)}:t}function Ui(e,t){const n=e.contentQueries;e.contentQueries=n?(e,s,r)=>{t(e,s,r),n(e,s,r)}:t}function Ki(e,t){const n=e.hostBindings;e.hostBindings=n?(e,s)=>{t(e,s),n(e,s)}:t}function Gi(e,t,n,s,r){if(e=we(e),Array.isArray(e))for(let i=0;i<e.length;i++)Gi(e[i],t,n,s,r);else{const i=Jt(),o=Yt();let a=hi(e)?e:we(e.provide),l=li(e);const c=Xt(),u=1048575&c.providerIndexes,h=c.directiveStart,d=c.providerIndexes>>20;if(hi(e)||!e.multi){const s=new Tn(l,r,Ei),p=Xi(a,t,r?u:u+d,h);-1===p?(Un(zn(c,o),i,a),Yi(i,e,t.length),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(s),o.push(s)):(n[p]=s,o[p]=s)}else{const p=Xi(a,t,u+d,h),f=Xi(a,t,u,u+d),m=p>=0&&n[p],g=f>=0&&n[f];if(r&&!g||!r&&!m){Un(zn(c,o),i,a);const u=function(e,t,n,s,r){const i=new Tn(e,n,Ei);return i.multi=[],i.index=t,i.componentProviders=0,Ji(i,r,s&&!n),i}(r?to:eo,n.length,r,s,l);!r&&g&&(n[f].providerFactory=u),Yi(i,e,t.length,0),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(u),o.push(u)}else Yi(i,e,p>-1?p:f,Ji(n[r?f:p],l,!r&&s));!r&&s&&g&&n[f].componentProviders++}}}function Yi(e,t,n,s){const r=hi(t);if(r||t.useClass){const i=(t.useClass||t).prototype.ngOnDestroy;if(i){const o=e.destroyHooks||(e.destroyHooks=[]);if(!r&&t.multi){const e=o.indexOf(n);-1===e?o.push(n,[s,i]):o[e+1].push(s,i)}else o.push(n,i)}}}function Ji(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Xi(e,t,n,s){for(let r=n;r<s;r++)if(t[r]===e)return r;return-1}function eo(e,t,n,s){return no(this.multi,[])}function to(e,t,n,s){const r=this.multi;let i;if(this.providerFactory){const e=this.providerFactory.componentProviders,t=Xn(n,n[1],this.providerFactory.index,s);i=t.slice(0,e),no(r,i);for(let n=e;n<t.length;n++)i.push(t[n])}else i=[],no(r,i);return i}function no(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function so(e,t=[]){return n=>{n.providersResolver=(n,s)=>function(e,t,n){const s=Jt();if(s.firstCreatePass){const r=xt(e);Gi(n,s.data,s.blueprint,r,!0),Gi(t,s.data,s.blueprint,r,!1)}}(n,s?s(e):e,t)}}class ro{}class io{resolveComponentFactory(e){throw function(e){const t=Error(`No component factory found for ${_e(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(e)}}let oo=(()=>{class e{}return e.NULL=new io,e})(),ao=(()=>{class e{constructor(e){this.nativeElement=e}}return e.__NG_ELEMENT_ID__=()=>lo(e),e})();const lo=function(e){return Ur(e,Xt(),Yt())};class co{}var uo=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}({});let ho=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>po(),e})();const po=function(){const e=Yt(),t=qt(Xt().index,e);return function(e){const t=e[11];if(Rt(t))return t;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(wt(t)?t:e)};let fo=(()=>{class e{}return e.\u0275prov=ae({token:e,providedIn:"root",factory:()=>null}),e})();class mo{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const go=new mo("10.1.0");class _o{constructor(){}supports(e){return _i(e)}create(e){return new bo(e)}}const yo=(e,t)=>t;class bo{constructor(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=e||yo}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,n=this._removalsHead,s=0,r=null;for(;t||n;){const i=!n||t&&t.currentIndex<ko(n,s,r)?t:n,o=ko(i,s,r),a=i.currentIndex;if(i===n)s--,n=n._nextRemoved;else if(t=t._next,null==i.previousIndex)s++;else{r||(r=[]);const e=o-s,t=a-s;if(e!=t){for(let n=0;n<e;n++){const s=n<r.length?r[n]:r[n]=0,i=s+n;t<=i&&i<e&&(r[n]=s+1)}r[i.previousIndex]=t-e}}o!==a&&e(i,o,a)}}forEachPreviousItem(e){let t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachMovedItem(e){let t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}forEachIdentityChange(e){let t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}diff(e){if(null==e&&(e=[]),!_i(e))throw new Error(`Error trying to diff '${_e(e)}'. Only arrays and iterables are allowed`);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t,n,s,r=this._itHead,i=!1;if(Array.isArray(e)){this.length=e.length;for(let t=0;t<this.length;t++)n=e[t],s=this._trackByFn(t,n),null!==r&&Object.is(r.trackById,s)?(i&&(r=this._verifyReinsertion(r,n,s,t)),Object.is(r.item,n)||this._addIdentityChange(r,n)):(r=this._mismatch(r,n,s,t),i=!0),r=r._next}else t=0,function(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[gi()]();let s;for(;!(s=n.next()).done;)t(s.value)}}(e,e=>{s=this._trackByFn(t,e),null!==r&&Object.is(r.trackById,s)?(i&&(r=this._verifyReinsertion(r,e,s,t)),Object.is(r.item,e)||this._addIdentityChange(r,e)):(r=this._mismatch(r,e,s,t),i=!0),r=r._next,t++}),this.length=t;return this._truncate(r),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e,t;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=t)e.previousIndex=e.currentIndex,t=e._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,n,s){let r;return null===e?r=this._itTail:(r=e._prev,this._remove(e)),null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,s))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,r,s)):null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,r,s)):e=this._addAfter(new vo(t,n),r,s),e}_verifyReinsertion(e,t,n,s){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==r?e=this._reinsertAfter(r,e._prev,s):e.currentIndex!=s&&(e.currentIndex=s,this._addToMoves(e,s)),e}_truncate(e){for(;null!==e;){const 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)}_reinsertAfter(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const s=e._prevRemoved,r=e._nextRemoved;return null===s?this._removalsHead=r:s._nextRemoved=r,null===r?this._removalsTail=s:r._prevRemoved=s,this._insertAfter(e,t,n),this._addToMoves(e,n),e}_moveAfter(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}_addAfter(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,n){const s=null===t?this._itHead:t._next;return e._next=s,e._prev=t,null===s?this._itTail=e:s._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new Eo),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}_addToMoves(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Eo),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}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class vo{constructor(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class wo{constructor(){this._head=null,this._tail=null}add(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)}get(e,t){let 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}remove(e){const 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}}class Eo{constructor(){this.map=new Map}put(e){const t=e.trackById;let n=this.map.get(t);n||(n=new wo,this.map.set(t,n)),n.add(e)}get(e,t){const n=this.map.get(e);return n?n.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function ko(e,t,n){const s=e.previousIndex;if(null===s)return s;let r=0;return n&&s<n.length&&(r=n[s]),s+t+r}class Co{constructor(){}supports(e){return e instanceof Map||yi(e)}create(){return new So}}class So{constructor(){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}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(e){let t;for(t=this._mapHead;null!==t;t=t._next)e(t)}forEachPreviousItem(e){let t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}forEachChangedItem(e){let t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}diff(e){if(e){if(!(e instanceof Map||yi(e)))throw new Error(`Error trying to diff '${_e(e)}'. Only maps and objects are allowed`)}else e=new Map;return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t=this._mapHead;if(this._appendAfter=null,this._forEach(e,(e,n)=>{if(t&&t.key===n)this._maybeAddToChanges(t,e),this._appendAfter=t,t=t._next;else{const s=this._getOrCreateRecordForKey(n,e);t=this._insertBeforeOrAppend(t,s)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let e=t;null!==e;e=e._nextRemoved)e===this._mapHead&&(this._mapHead=null),this._records.delete(e.key),e._nextRemoved=e._next,e.previousValue=e.currentValue,e.currentValue=null,e._prev=null,e._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const 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}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const n=this._records.get(e);this._maybeAddToChanges(n,t);const s=n._prev,r=n._next;return s&&(s._next=r),r&&(r._prev=s),n._next=null,n._prev=null,n}const n=new xo(e);return this._records.set(e,n),n.currentValue=t,this._addToAdditions(n),n}_reset(){if(this.isDirty){let 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}}_maybeAddToChanges(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(n=>t(e[n],n))}}class xo{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}let To=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(null!=n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return e.create(t,n)},deps:[[e,new se,new te]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(null!=t)return t;throw new Error(`Cannot find a differ supporting object '${e}' of type '${n=e,n.name||typeof n}'`);var n}}return e.\u0275prov=ae({token:e,providedIn:"root",factory:()=>new e([new _o])}),e})(),Ao=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return e.create(t,n)},deps:[[e,new se,new te]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(t)return t;throw new Error(`Cannot find a differ supporting object '${e}'`)}}return e.\u0275prov=ae({token:e,providedIn:"root",factory:()=>new e([new Co])}),e})();const Io=[new Co],Oo=new To([new _o]),Do=new Ao(Io);let No=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Po(e,ao),e})();const Po=function(e,t){return Kr(e,t,Xt(),Yt())};let Vo=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Fo(e,ao),e})();const Fo=function(e,t){return Gr(e,t,Xt(),Yt())},Ro={};class Mo extends oo{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const t=gt(e);return new Bo(t,this.ngModule)}}function jo(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}const Lo=new Fe("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Ln});class Bo extends ro{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=e.selectors.map(Ss).join(","),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return jo(this.componentDef.inputs)}get outputs(){return jo(this.componentDef.outputs)}create(e,t,n,s){const r=(s=s||this.ngModule)?function(e,t){return{get:(n,s,r)=>{const i=e.get(n,Ro,r);return i!==Ro||s===Ro?i:t.get(n,s,r)}}}(e,s.injector):e,i=r.get(co,Mt),o=r.get(fo,null),a=i.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(e,t,n){if(Rt(e))return e.selectRootElement(t,n===it.ShadowDom);let s="string"==typeof t?e.querySelector(t):t;return s.textContent="",s}(a,n,this.componentDef.encapsulation):Bs(l,i.createRenderer(null,this.componentDef),function(e){const t=e.toLowerCase();return"svg"===t?Vt:"math"===t?"http://www.w3.org/1998/MathML/":null}(l)),u=this.componentDef.onPush?576:528,h={components:[],scheduler:Ln,clean:_r,playerHandler:null,flags:0},d=Us(0,-1,null,1,0,null,null,null,null,null),p=Hs(null,d,h,u,null,null,i,a,o,r);let f,m;dn(p,null);try{const e=function(e,t,n,s,r,i){const o=n[1];n[20]=e;const a=qs(o,null,0,3,null,null),l=a.mergedAttrs=t.hostAttrs;null!==l&&(fi(a,l,!0),null!==e&&(An(r,e,l),null!==a.classes&&qr(r,e,a.classes),null!==a.styles&&Hr(r,e,a.styles)));const c=s.createRenderer(e,t),u=Hs(n,Ws(t),null,t.onPush?64:16,n[20],a,s,c,void 0);return o.firstCreatePass&&(Un(zn(a,n),o,t.type),sr(o,a),ir(a,n.length,1)),dr(n,u),n[20]=u}(c,this.componentDef,p,i,a);if(c)if(n)An(a,c,["ng-version",go.full]);else{const{attrs:e,classes:t}=function(e){const t=[],n=[];let s=1,r=2;for(;s<e.length;){let i=e[s];if("string"==typeof i)2===r?""!==i&&t.push(i,e[++s]):8===r&&n.push(i);else{if(!ws(r))break;r=i}s++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]);e&&An(a,c,e),t&&t.length>0&&qr(a,c,t.join(" "))}if(m=Ht(d,0),void 0!==t){const e=m.projection=[];for(let n=0;n<this.ngContentSelectors.length;n++){const s=t[n];e.push(null!=s?Array.from(s):null)}}f=function(e,t,n,s,r){const i=n[1],o=function(e,t,n){const s=Xt();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),nr(e,s,1),or(e,t,n));const r=Xn(t,e,t.length-1,s);ds(r,t);const i=Bt(s,t);return i&&ds(i,t),r}(i,n,t);s.components.push(o),e[8]=o,r&&r.forEach(e=>e(o,t)),t.contentQueries&&t.contentQueries(1,o,n.length-1);const a=Xt();if(i.firstCreatePass&&(null!==t.hostBindings||null!==t.hostAttrs)){bn(a.index-bt);const e=n[1];Xs(e,t),er(e,n,t.hostVars),tr(t,o)}return o}(e,this.componentDef,p,h,[zi]),$s(d,p,null)}finally{_n()}const g=new Ho(this.componentType,f,Ur(ao,m,p),p,m);return d.node.child=m,g}}class Ho extends class{}{constructor(e,t,n,s,r){super(),this.location=n,this._rootLView=s,this._tNode=r,this.destroyCbs=[],this.instance=t,this.hostView=this.changeDetectorRef=new zr(s),function(e,t,n,s){let r=e.node;null==r&&(e.node=r=Gs(0,null,2,-1,null,null)),s[6]=r}(s[1],0,0,s),this.componentType=e}get injector(){return new ns(this._tNode,this._rootLView)}destroy(){this.destroyCbs&&(this.destroyCbs.forEach(e=>e()),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}onDestroy(e){this.destroyCbs&&this.destroyCbs.push(e)}}const qo=void 0;var $o=["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){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}];let zo={};function Zo(e){return e in zo||(zo[e]=Te.ng&&Te.ng.common&&Te.ng.common.locales&&Te.ng.common.locales[e]),zo[e]}var Qo=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}({});const Wo="en-US";let Uo=Wo;function Ko(e){var t,n;n="Expected localeId to be defined",null==(t=e)&&function(e,t,n,s){throw new Error("ASSERTION ERROR: "+e+` [Expected=> null != ${t} <=Actual]`)}(n,t),"string"==typeof e&&(Uo=e.toLowerCase().replace(/_/g,"-"))}const Go=new Map;class Yo extends Ge{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Mo(this);const n=yt(e),s=e[Ne]||null;s&&Ko(s),this._bootstrapComponents=Bn(n.bootstrap),this._r3Injector=ii(e,t,[{provide:Ge,useValue:this},{provide:oo,useValue:this.componentFactoryResolver}],_e(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,t=pi.THROW_IF_NOT_FOUND,n=re.Default){return e===pi||e===Ge||e===Re?this:this._r3Injector.get(e,t,n)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class Jo extends class{}{constructor(e){super(),this.moduleType=e,null!==yt(e)&&function e(t){if(null!==t.\u0275mod.id){const e=t.\u0275mod.id;(function(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${_e(t)} vs ${_e(t.name)}`)})(e,Go.get(e),t),Go.set(e,t)}let n=t.\u0275mod.imports;n instanceof Function&&(n=n()),n&&n.forEach(t=>e(t))}(e)}create(e){return new Yo(this.moduleType,e)}}const Xo=class extends k{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,n){let s,r=e=>null,i=()=>null;e&&"object"==typeof e?(s=this.__isAsync?t=>{setTimeout(()=>e.next(t))}:t=>{e.next(t)},e.error&&(r=this.__isAsync?t=>{setTimeout(()=>e.error(t))}:t=>{e.error(t)}),e.complete&&(i=this.__isAsync?()=>{setTimeout(()=>e.complete())}:()=>{e.complete()})):(s=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)},t&&(r=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)}),n&&(i=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const o=super.subscribe(s,r,i);return e instanceof h&&e.add(o),o}};function ea(){return this._results[gi()]()}class ta{constructor(){this.dirty=!0,this._results=[],this.changes=new Xo,this.length=0;const e=gi(),t=ta.prototype;t[e]||(t[e]=ea)}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e){this._results=function e(t,n){void 0===n&&(n=t);for(let s=0;s<t.length;s++){let r=t[s];Array.isArray(r)?(n===t&&(n=t.slice(0,s)),e(r,n)):n!==t&&n.push(r)}return n}(e),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}notifyOnChanges(){this.changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}class na{constructor(e){this.queryList=e,this.matches=null}clone(){return new na(this.queryList)}setDirty(){this.queryList.setDirty()}}class sa{constructor(e=[]){this.queries=e}createEmbeddedView(e){const t=e.queries;if(null!==t){const n=null!==e.contentQueries?e.contentQueries[0]:t.length,s=[];for(let e=0;e<n;e++){const n=t.getByIndex(e);s.push(this.queries[n.indexInDeclarationView].clone())}return new sa(s)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let t=0;t<this.queries.length;t++)null!==pa(e,t).matches&&this.queries[t].setDirty()}}class ra{constructor(e,t,n,s=null){this.predicate=e,this.descendants=t,this.isStatic=n,this.read=s}}class ia{constructor(e=[]){this.queries=e}elementStart(e,t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(e,t)}elementEnd(e){for(let t=0;t<this.queries.length;t++)this.queries[t].elementEnd(e)}embeddedTView(e){let t=null;for(let n=0;n<this.length;n++){const s=null!==t?t.length:0,r=this.getByIndex(n).embeddedTView(e,s);r&&(r.indexInDeclarationView=n,null!==t?t.push(r):t=[r])}return null!==t?new ia(t):null}template(e,t){for(let n=0;n<this.queries.length;n++)this.queries[n].template(e,t)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}}class oa{constructor(e,t=-1){this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=t}elementStart(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,t){this.elementStart(e,t)}embeddedTView(e,t){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,t),new oa(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&!1===this.metadata.descendants){const t=this._declarationNodeIndex;let n=e.parent;for(;null!==n&&4===n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}matchTNode(e,t){const n=this.metadata.predicate;if(Array.isArray(n))for(let s=0;s<n.length;s++){const r=n[s];this.matchTNodeWithReadOption(e,t,aa(t,r)),this.matchTNodeWithReadOption(e,t,Jn(t,e,r,!1,!1))}else n===No?0===t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,Jn(t,e,n,!1,!1))}matchTNodeWithReadOption(e,t,n){if(null!==n){const s=this.metadata.read;if(null!==s)if(s===ao||s===Vo||s===No&&0===t.type)this.addMatch(t.index,-2);else{const n=Jn(t,e,s,!1,!1);null!==n&&this.addMatch(t.index,n)}else this.addMatch(t.index,n)}}addMatch(e,t){null===this.matches?this.matches=[e,t]:this.matches.push(e,t)}}function aa(e,t){const n=e.localNames;if(null!==n)for(let s=0;s<n.length;s+=2)if(n[s]===t)return n[s+1];return null}function la(e,t,n,s){return-1===n?function(e,t){return 3===e.type||4===e.type?Ur(ao,e,t):0===e.type?Kr(No,ao,e,t):null}(t,e):-2===n?function(e,t,n){return n===ao?Ur(ao,t,e):n===No?Kr(No,ao,t,e):n===Vo?Gr(Vo,ao,t,e):void 0}(e,t,s):Xn(e,e[1],n,t)}function ca(e,t,n,s){const r=t[19].queries[s];if(null===r.matches){const s=e.data,i=n.matches,o=[];for(let e=0;e<i.length;e+=2){const r=i[e];o.push(r<0?null:la(t,s[r],i[e+1],n.metadata.read))}r.matches=o}return r.matches}function ua(e){const t=Yt(),n=Jt(),s=cn();un(s+1);const r=pa(n,s);if(e.dirty&&zt(t)===r.metadata.isStatic){if(null===r.matches)e.reset([]);else{const i=r.crossesNgTemplate?function e(t,n,s,r){const i=t.queries.getByIndex(s),o=i.matches;if(null!==o){const a=ca(t,n,i,s);for(let t=0;t<o.length;t+=2){const s=o[t];if(s>0)r.push(a[t/2]);else{const i=o[t+1],a=n[-s];for(let t=vt;t<a.length;t++){const n=a[t];n[17]===n[3]&&e(n[1],n,i,r)}if(null!==a[9]){const t=a[9];for(let n=0;n<t.length;n++){const s=t[n];e(s[1],s,i,r)}}}}}return r}(n,t,s,[]):ca(n,t,r,s);e.reset(i),e.notifyOnChanges()}return!0}return!1}function ha(e,t,n){!function(e,t,n,s,r,i){e.firstCreatePass&&function(e,t,n){null===e.queries&&(e.queries=new ia),e.queries.track(new oa(t,-1))}(e,new ra(n,s,false,r)),function(e,t){const n=new ta;Ks(e,t,n,n.destroy),null===t[19]&&(t[19]=new sa),t[19].queries.push(new na(n))}(e,t)}(Jt(),Yt(),e,t,n)}function da(){return e=Yt(),t=cn(),e[19].queries[t].queryList;var e,t}function pa(e,t){return e.queries.getByIndex(t)}const fa=new Fe("Application Initializer");let ma=(()=>{class e{constructor(e){this.appInits=e,this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}runInitializers(){if(this.initialized)return;const e=[],t=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n<this.appInits.length;n++){const t=this.appInits[n]();Ai(t)&&e.push(t)}Promise.all(e).then(()=>{t()}).catch(e=>{this.reject(e)}),0===e.length&&t(),this.initialized=!0}}return e.\u0275fac=function(t){return new(t||e)(Qe(fa,8))},e.\u0275prov=ae({token:e,factory:e.\u0275fac}),e})();const ga=new Fe("AppId"),_a={provide:ga,useFactory:function(){return`${ya()}${ya()}${ya()}`},deps:[]};function ya(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const ba=new Fe("Platform Initializer"),va=new Fe("Platform ID"),wa=new Fe("appBootstrapListener");let Ea=(()=>{class e{log(e){console.log(e)}warn(e){console.warn(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ae({token:e,factory:e.\u0275fac}),e})();const ka=new Fe("LocaleId"),Ca=new Fe("DefaultCurrencyCode");class Sa{constructor(e,t){this.ngModuleFactory=e,this.componentFactories=t}}const xa=function(e){return new Jo(e)},Ta=xa,Aa=function(e){return Promise.resolve(xa(e))},Ia=function(e){const t=xa(e),n=Bn(yt(e).declarations).reduce((e,t)=>{const n=gt(t);return n&&e.push(new Bo(n)),e},[]);return new Sa(t,n)},Oa=Ia,Da=function(e){return Promise.resolve(Ia(e))};let Na=(()=>{class e{constructor(){this.compileModuleSync=Ta,this.compileModuleAsync=Aa,this.compileModuleAndAllComponentsSync=Oa,this.compileModuleAndAllComponentsAsync=Da}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ae({token:e,factory:e.\u0275fac}),e})();const Pa=(()=>Promise.resolve(0))();function Va(e){"undefined"==typeof Zone?Pa.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Fa{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Xo(!1),this.onMicrotaskEmpty=new Xo(!1),this.onStable=new Xo(!1),this.onError=new Xo(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const n=this;n._nesting=0,n._outer=n._inner=Zone.current,Zone.wtfZoneSpec&&(n._inner=n._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(n._inner=n._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(n._inner=n._inner.fork(Zone.longStackTraceZoneSpec)),n.shouldCoalesceEventChangeDetection=t,n.lastRequestAnimationFrameId=-1,n.nativeRequestAnimationFrame=function(){let e=Te.requestAnimationFrame,t=Te.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const s=t[Zone.__symbol__("OriginalDelegate")];s&&(t=s)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function(e){const t=!!e.shouldCoalesceEventChangeDetection&&e.nativeRequestAnimationFrame&&(()=>{!function(e){-1===e.lastRequestAnimationFrameId&&(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Te,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,La(e),ja(e)},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),La(e))}(e)});e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:t},onInvokeTask:(n,s,r,i,o,a)=>{try{return Ba(e),n.invokeTask(r,i,o,a)}finally{t&&"eventTask"===i.type&&t(),Ha(e)}},onInvoke:(t,n,s,r,i,o,a)=>{try{return Ba(e),t.invoke(s,r,i,o,a)}finally{Ha(e)}},onHasTask:(t,n,s,r)=>{t.hasTask(s,r),n===s&&("microTask"==r.change?(e._hasPendingMicrotasks=r.microTask,La(e),ja(e)):"macroTask"==r.change&&(e.hasPendingMacrotasks=r.macroTask))},onHandleError:(t,n,s,r)=>(t.handleError(s,r),e.runOutsideAngular(()=>e.onError.emit(r)),!1)})}(n)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Fa.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Fa.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,n){return this._inner.run(e,t,n)}runTask(e,t,n,s){const r=this._inner,i=r.scheduleEventTask("NgZoneEvent: "+s,e,Ma,Ra,Ra);try{return r.runTask(i,t,n)}finally{r.cancelTask(i)}}runGuarded(e,t,n){return this._inner.runGuarded(e,t,n)}runOutsideAngular(e){return this._outer.run(e)}}function Ra(){}const Ma={};function ja(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(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function La(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||e.shouldCoalesceEventChangeDetection&&-1!==e.lastRequestAnimationFrameId)}function Ba(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Ha(e){e._nesting--,ja(e)}class qa{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Xo,this.onMicrotaskEmpty=new Xo,this.onStable=new Xo,this.onError=new Xo}run(e,t,n){return e.apply(t,n)}runGuarded(e,t,n){return e.apply(t,n)}runOutsideAngular(e){return e()}runTask(e,t,n,s){return e.apply(t,n)}}let $a=(()=>{class e{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Fa.assertNotInAngularZone(),Va(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Va(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(t=>!t.updateCb||!t.updateCb(e)||(clearTimeout(t.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,t,n){let s=-1;t&&t>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(e=>e.timeoutId!==s),e(this._didWork,this.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:s,updateCb:n})}whenStable(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()}getPendingRequestCount(){return this._pendingCount}findProviders(e,t,n){return[]}}return e.\u0275fac=function(t){return new(t||e)(Qe(Fa))},e.\u0275prov=ae({token:e,factory:e.\u0275fac}),e})(),za=(()=>{class e{constructor(){this._applications=new Map,Wa.addToWindow(this)}registerApplication(e,t){this._applications.set(e,t)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,t=!0){return Wa.findTestabilityInTree(this,e,t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ae({token:e,factory:e.\u0275fac}),e})();class Za{addToWindow(e){}findTestabilityInTree(e,t,n){return null}}let Qa,Wa=new Za;const Ua=new Fe("AllowMultipleToken");function Ka(e,t,n=[]){const s="Platform: "+t,r=new Fe(s);return(t=[])=>{let i=Ga();if(!i||i.injector.get(Ua,!1))if(e)e(n.concat(t).concat({provide:r,useValue:!0}));else{const e=n.concat(t).concat({provide:r,useValue:!0},{provide:Xr,useValue:"platform"});!function(e){if(Qa&&!Qa.destroyed&&!Qa.injector.get(Ua,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Qa=e.get(Ya);const t=e.get(ba,null);t&&t.forEach(e=>e())}(pi.create({providers:e,name:s}))}return function(e){const t=Ga();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 Ga(){return Qa&&!Qa.destroyed?Qa:null}let Ya=(()=>{class e{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,t){const n=function(e,t){let n;return n="noop"===e?new qa:("zone.js"===e?void 0:e)||new Fa({enableLongStackTrace:hs(),shouldCoalesceEventChangeDetection:t}),n}(t?t.ngZone:void 0,t&&t.ngZoneEventCoalescing||!1),s=[{provide:Fa,useValue:n}];return n.run(()=>{const t=pi.create({providers:s,parent:this.injector,name:e.moduleType.name}),r=e.create(t),i=r.injector.get(ls,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return r.onDestroy(()=>el(this._modules,r)),n.runOutsideAngular(()=>n.onError.subscribe({next:e=>{i.handleError(e)}})),function(e,t,n){try{const s=n();return Ai(s)?s.catch(n=>{throw t.runOutsideAngular(()=>e.handleError(n)),n}):s}catch(s){throw t.runOutsideAngular(()=>e.handleError(s)),s}}(i,n,()=>{const e=r.injector.get(ma);return e.runInitializers(),e.donePromise.then(()=>(Ko(r.injector.get(ka,Wo)||Wo),this._moduleDoBootstrap(r),r))})})}bootstrapModule(e,t=[]){const n=Ja({},t);return function(e,t,n){const s=new Jo(n);return Promise.resolve(s)}(0,0,e).then(e=>this.bootstrapModuleFactory(e,n))}_moduleDoBootstrap(e){const t=e.injector.get(Xa);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(e=>t.bootstrap(e));else{if(!e.instance.ngDoBootstrap)throw new Error(`The module ${_e(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)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(e=>e.destroy()),this._destroyListeners.forEach(e=>e()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(t){return new(t||e)(Qe(pi))},e.\u0275prov=ae({token:e,factory:e.\u0275fac}),e})();function Ja(e,t){return Array.isArray(t)?t.reduce(Ja,e):Object.assign(Object.assign({},e),t)}let Xa=(()=>{class e{constructor(e,t,n,s,r,i){this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=s,this._componentFactoryResolver=r,this._initStatus=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=hs(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new y(e=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{e.next(this._stable),e.complete()})}),a=new y(e=>{let t;this._zone.runOutsideAngular(()=>{t=this._zone.onStable.subscribe(()=>{Fa.assertNotInAngularZone(),Va(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,e.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{Fa.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{e.next(!1)}))});return()=>{t.unsubscribe(),n.unsubscribe()}});this.isStable=$(o,a.pipe(e=>{return z()((t=G,function(e){let n;n="function"==typeof t?t:function(){return t};const s=Object.create(e,U);return s.source=e,s.subjectFactory=n,s})(e));var t}))}bootstrap(e,t){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.");let n;n=e instanceof ro?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);const s=n.isBoundToModule?void 0:this._injector.get(Ge),r=n.create(pi.NULL,[],t||n.selector,s);r.onDestroy(()=>{this._unloadComponent(r)});const i=r.injector.get($a,null);return i&&r.injector.get(za).registerApplication(r.location.nativeElement,i),this._loadComponent(r),hs()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),r}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let e of this._views)e.detectChanges();if(this._enforceNoNewChanges)for(let e of this._views)e.checkNoChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const t=e;this._views.push(t),t.attachToAppRef(this)}detachView(e){const t=e;el(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(wa,[]).concat(this._bootstrapListeners).forEach(t=>t(e))}_unloadComponent(e){this.detachView(e.hostView),el(this.components,e)}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy())}get viewCount(){return this._views.length}}return e.\u0275fac=function(t){return new(t||e)(Qe(Fa),Qe(Ea),Qe(pi),Qe(ls),Qe(oo),Qe(ma))},e.\u0275prov=ae({token:e,factory:e.\u0275fac}),e})();function el(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const tl=Ka(null,"core",[{provide:va,useValue:"unknown"},{provide:Ya,deps:[pi]},{provide:za,deps:[]},{provide:Ea,deps:[]}]),nl=[{provide:Xa,useClass:Xa,deps:[Fa,Ea,pi,ls,oo,ma]},{provide:Lo,deps:[Fa],useFactory:function(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:ma,useClass:ma,deps:[[new te,fa]]},{provide:Na,useClass:Na,deps:[]},_a,{provide:To,useFactory:function(){return Oo},deps:[]},{provide:Ao,useFactory:function(){return Do},deps:[]},{provide:ka,useFactory:function(e){return Ko(e=e||"undefined"!=typeof $localize&&$localize.locale||Wo),e},deps:[[new ee(ka),new te,new se]]},{provide:Ca,useValue:"USD"}];let sl=(()=>{class e{constructor(e){}}return e.\u0275mod=pt({type:e}),e.\u0275inj=le({factory:function(t){return new(t||e)(Qe(Xa))},providers:nl}),e})();function rl(e){return null!=e&&""+e!="false"}function il(e,t=0){return function(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}(e)?Number(e):t}function ol(e){return e instanceof ao?e.nativeElement:e}function al(...e){let t=e[e.length-1];return S(t)?(e.pop(),F(e,t)):q(e)}class ll extends h{constructor(e,t){super()}schedule(e,t=0){return this}}class cl extends ll{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){if(this.closed)return this;this.state=e;const n=this.id,s=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(s,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(s,this.id,t),this}requestAsyncId(e,t,n=0){return setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,t,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let n=!1,s=void 0;try{this.work(e)}catch(r){n=!0,s=!!r&&r||new Error(r)}if(n)return this.unsubscribe(),s}_unsubscribe(){const e=this.id,t=this.scheduler,n=t.actions,s=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==s&&n.splice(s,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}let ul=(()=>{class e{constructor(t,n=e.now){this.SchedulerAction=t,this.now=n}schedule(e,t=0,n){return new this.SchedulerAction(this,e).schedule(n,t)}}return e.now=()=>Date.now(),e})();class hl extends ul{constructor(e,t=ul.now){super(e,()=>hl.delegate&&hl.delegate!==this?hl.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,n){return hl.delegate&&hl.delegate!==this?hl.delegate.schedule(e,t,n):super.schedule(e,t,n)}flush(e){const{actions:t}=this;if(this.active)return void t.push(e);let 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}}}const dl=new hl(cl);class pl{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new fl(e,this.predicate,this.thisArg))}}class fl extends f{constructor(e,t,n){super(e),this.predicate=t,this.thisArg=n,this.count=0}_next(e){let t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)}}class ml{constructor(e){this.project=e}call(e,t){return t.subscribe(new gl(e,this.project))}}class gl extends j{constructor(e,t){super(e),this.project=t,this.index=0}_next(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(s){return void this.destination.error(s)}this._innerSub(t)}_innerSub(e){const t=this.innerSubscription;t&&t.unsubscribe();const n=new M(this),s=this.destination;s.add(n),this.innerSubscription=L(e,n),this.innerSubscription!==n&&s.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;e&&!e.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(e){this.destination.next(e)}}class _l extends cl{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}schedule(e,t=0){return t>0?super.schedule(e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}execute(e,t){return t>0||this.closed?super.execute(e,t):this._execute(e,t)}requestAsyncId(e,t,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(e,t,n):e.flush(this)}}class yl extends hl{}const bl=new yl(_l),vl=new y(e=>e.complete());let wl=(()=>{class e{constructor(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}observe(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()}}do(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()}}accept(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}toObservable(){switch(this.kind){case"N":return al(this.value);case"E":return e=this.error,new y(t=>t.error(e));case"C":return vl}var e;throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}static createError(t){return new e("E",void 0,t)}static createComplete(){return e.completeNotification}}return e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e})();class El extends f{constructor(e,t,n=0){super(e),this.scheduler=t,this.delay=n}static dispatch(e){const{notification:t,destination:n}=e;t.observe(n),this.unsubscribe()}scheduleMessage(e){this.destination.add(this.scheduler.schedule(El.dispatch,this.delay,new kl(e,this.destination)))}_next(e){this.scheduleMessage(wl.createNext(e))}_error(e){this.scheduleMessage(wl.createError(e)),this.unsubscribe()}_complete(){this.scheduleMessage(wl.createComplete()),this.unsubscribe()}}class kl{constructor(e,t){this.notification=e,this.destination=t}}class Cl extends k{constructor(e=Number.POSITIVE_INFINITY,t=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=e<1?1:e,this._windowTime=t<1?1:t,t===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(e){const t=this._events;t.push(e),t.length>this._bufferSize&&t.shift(),super.next(e)}nextTimeWindow(e){this._events.push(new Sl(this._getNow(),e)),this._trimBufferThenGetEvents(),super.next(e)}_subscribe(e){const t=this._infiniteTimeWindow,n=t?this._events:this._trimBufferThenGetEvents(),s=this.scheduler,r=n.length;let i;if(this.closed)throw new v;if(this.isStopped||this.hasError?i=h.EMPTY:(this.observers.push(e),i=new w(this,e)),s&&e.add(e=new El(e,s)),t)for(let o=0;o<r&&!e.closed;o++)e.next(n[o]);else for(let o=0;o<r&&!e.closed;o++)e.next(n[o].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),i}_getNow(){return(this.scheduler||bl).now()}_trimBufferThenGetEvents(){const e=this._getNow(),t=this._bufferSize,n=this._windowTime,s=this._events,r=s.length;let i=0;for(;i<r&&!(e-s[i].time<n);)i++;return r>t&&(i=Math.max(i,r-t)),i>0&&s.splice(0,i),s}}class Sl{constructor(e,t){this.time=e,this.value=t}}let xl=null;function Tl(){return xl}const Al=new Fe("DocumentToken");var Il=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}({});class Ol{}let Dl,Nl=(()=>{class e extends Ol{constructor(e){super(),this.locale=e}getPluralCategory(e,t){switch(function(e){return function(e){const t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=Zo(t);if(n)return n;const s=t.split("-")[0];if(n=Zo(s),n)return n;if("en"===s)return $o;throw new Error(`Missing locale data for the locale "${e}".`)}(e)[Qo.PluralCase]}(t||this.locale)(e)){case Il.Zero:return"zero";case Il.One:return"one";case Il.Two:return"two";case Il.Few:return"few";case Il.Many:return"many";default:return"other"}}}return e.\u0275fac=function(t){return new(t||e)(Qe(ka))},e.\u0275prov=ae({token:e,factory:e.\u0275fac}),e})(),Pl=(()=>{class e{}return e.\u0275mod=pt({type:e}),e.\u0275inj=le({factory:function(t){return new(t||e)},providers:[{provide:Ol,useClass:Nl}]}),e})();try{Dl="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(sf){Dl=!1}let Vl,Fl,Rl=(()=>{class e{constructor(e){this._platformId=e,this.isBrowser=this._platformId?"browser"===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&&!Dl)&&"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}}return e.\u0275fac=function(t){return new(t||e)(Qe(va))},e.\u0275prov=ae({factory:function(){return new e(Qe(va))},token:e,providedIn:"root"}),e})(),Ml=(()=>{class e{}return e.\u0275mod=pt({type:e}),e.\u0275inj=le({factory:function(t){return new(t||e)}}),e})();function jl(e){return function(){if(null==Vl&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Vl=!0}))}finally{Vl=Vl||!1}return Vl}()?e:!!e.capture}let Ll=(()=>{class e{}return e.\u0275mod=pt({type:e}),e.\u0275inj=le({factory:function(t){return new(t||e)}}),e})();const Bl=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine);let Hl=(()=>{class e{constructor(e,t){this._platform=t,this._document=e}ngOnDestroy(){const e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e=this._platform?this._platform.isBrowser:"undefined"!=typeof window,t="cdk-overlay-container";if(e||Bl){const e=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let t=0;t<e.length;t++)e[t].parentNode.removeChild(e[t])}const n=this._document.createElement("div");n.classList.add(t),Bl?n.setAttribute("platform","test"):e||n.setAttribute("platform","server"),this._document.body.appendChild(n),this._containerElement=n}}return e.\u0275fac=function(t){return new(t||e)(Qe(Al),Qe(Rl))},e.\u0275prov=ae({factory:function(){return new e(Qe(Al),Qe(Rl))},token:e,providedIn:"root"}),e})();const ql=(()=>{const e=Element.prototype;return e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector})(),$l={schedule(e,t){const n=setTimeout(e,t);return()=>clearTimeout(n)},scheduleBeforeRender(e){if("undefined"==typeof window)return $l.schedule(e,0);if(void 0===window.requestAnimationFrame)return $l.schedule(e,16);const t=window.requestAnimationFrame(e);return()=>window.cancelAnimationFrame(t)}};function zl(e,t,n){let s=n;return function(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}(e)&&t.some((t,n)=>!("*"===t||!function(e,t){return ql.call(e,t)}(e,t)||(s=n,0))),s}class Zl{constructor(e,t){this.componentFactory=t.get(oo).resolveComponentFactory(e)}create(e){return new Ql(this.componentFactory,e)}}class Ql{constructor(e,t){this.componentFactory=e,this.injector=t,this.eventEmitters=new Cl(1),this.events=this.eventEmitters.pipe(function e(t,n){return"function"==typeof n?s=>s.pipe(e((e,s)=>R(t(e,s)).pipe(x((t,r)=>n(e,t,s,r))))):e=>e.lift(new ml(t))}(e=>$(...e))),this.componentRef=null,this.inputChanges=null,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set,this.ngZone=this.injector.get(Fa),this.elementZone="undefined"==typeof Zone?null:this.ngZone.run(()=>Zone.current)}connect(e){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(e)})}disconnect(){this.runInZone(()=>{null!==this.componentRef&&null===this.scheduledDestroyFn&&(this.scheduledDestroyFn=$l.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null)},10))})}getInputValue(e){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(e):this.componentRef.instance[e])}setInputValue(e,t){this.runInZone(()=>{var n,s;null!==this.componentRef?((n=t)!==(s=this.getInputValue(e))&&(n==n||s==s)||void 0===t&&this.unchangedInputs.has(e))&&(this.recordInputChange(e,t),this.componentRef.instance[e]=t,this.scheduleDetectChanges()):this.initialInputValues.set(e,t)})}initializeComponent(e){const t=pi.create({providers:[],parent:this.injector}),n=function(e,t){const n=e.childNodes,s=t.map(()=>[]);let r=-1;t.some((e,t)=>"*"===e&&(r=t,!0));for(let i=0,o=n.length;i<o;++i){const e=n[i],o=zl(e,t,r);-1!==o&&s[o].push(e)}return s}(e,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(t,n,e),this.implementsOnChanges="function"==typeof this.componentRef.instance.ngOnChanges,this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(Xa).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:e})=>{this.implementsOnChanges&&this.unchangedInputs.add(e),this.initialInputValues.has(e)&&this.setInputValue(e,this.initialInputValues.get(e))}),this.initialInputValues.clear()}initializeOutputs(e){const t=this.componentFactory.outputs.map(({propName:t,templateName:n})=>e.instance[t].pipe(x(e=>({name:n,value:e}))));this.eventEmitters.next(t)}callNgOnChanges(e){if(!this.implementsOnChanges||null===this.inputChanges)return;const t=this.inputChanges;this.inputChanges=null,e.instance.ngOnChanges(t)}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=$l.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(e,t){if(null!==this.componentRef&&!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const n=this.inputChanges[e];if(n)return void(n.currentValue=t);const s=this.unchangedInputs.has(e);this.unchangedInputs.delete(e);const r=s?void 0:this.getInputValue(e);this.inputChanges[e]=new At(r,t,s)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(e){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(e):e()}}class Wl extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}function Ul(e,t){e.forEach(({propName:e})=>{Object.defineProperty(t,e,{get(){return this.ngElementStrategy.getInputValue(e)},set(t){this.ngElementStrategy.setInputValue(e,t)},configurable:!0,enumerable:!0})})}function Kl(e,t){return new y(n=>{const s=e.length;if(0===s)return void n.complete();const r=new Array(s);let i=0,o=0;for(let a=0;a<s;a++){const l=R(e[a]);let c=!1;n.add(l.subscribe({next:e=>{c||(c=!0,o++),r[a]=e},error:e=>n.error(e),complete:()=>{i++,i!==s&&c||(o===s&&n.next(t?t.reduce((e,t,n)=>(e[t]=r[n],e),{}):r),n.complete())}}))}})}const Gl=new Fe("NgValueAccessor"),Yl={provide:Gl,useExisting:ve(()=>Jl),multi:!0};let Jl=(()=>{class e{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"checked",e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}return e.\u0275fac=function(t){return new(t||e)(Ei(ho),Ei(ao))},e.\u0275dir=mt({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,t){1&e&&Ii("change",(function(e){return t.onChange(e.target.checked)}))("blur",(function(){return t.onTouched()}))},features:[so([Yl])]}),e})();const Xl={provide:Gl,useExisting:ve(()=>tc),multi:!0},ec=new Fe("CompositionEventMode");let tc=(()=>{class e{constructor(e,t,n){this._renderer=e,this._elementRef=t,this._compositionMode=n,this.onChange=e=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const e=Tl()?Tl().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return e.\u0275fac=function(t){return new(t||e)(Ei(ho),Ei(ao),Ei(ec,8))},e.\u0275dir=mt({type:e,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&&Ii("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:[so([Xl])]}),e})(),nc=(()=>{class e{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}reset(e){this.control&&this.control.reset(e)}hasError(e,t){return!!this.control&&this.control.hasError(e,t)}getError(e,t){return this.control?this.control.getError(e,t):null}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=mt({type:e}),e})();class sc extends nc{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null,this._rawValidators=[],this._rawAsyncValidators=[]}get validator(){}get asyncValidator(){}}let rc=(()=>{class e extends class{constructor(e){this._cd=e}get ngClassUntouched(){return!!this._cd.control&&this._cd.control.untouched}get ngClassTouched(){return!!this._cd.control&&this._cd.control.touched}get ngClassPristine(){return!!this._cd.control&&this._cd.control.pristine}get ngClassDirty(){return!!this._cd.control&&this._cd.control.dirty}get ngClassValid(){return!!this._cd.control&&this._cd.control.valid}get ngClassInvalid(){return!!this._cd.control&&this._cd.control.invalid}get ngClassPending(){return!!this._cd.control&&this._cd.control.pending}}{constructor(e){super(e)}}return e.\u0275fac=function(t){return new(t||e)(Ei(sc,2))},e.\u0275dir=mt({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&Fi("ng-untouched",t.ngClassUntouched)("ng-touched",t.ngClassTouched)("ng-pristine",t.ngClassPristine)("ng-dirty",t.ngClassDirty)("ng-valid",t.ngClassValid)("ng-invalid",t.ngClassInvalid)("ng-pending",t.ngClassPending)},features:[Zi]}),e})();function ic(e){return null==e||0===e.length}function oc(e){return null!=e&&"number"==typeof e.length}const ac=new Fe("NgValidators"),lc=new Fe("NgAsyncValidators"),cc=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class uc{static min(e){return t=>{if(ic(t.value)||ic(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}}static max(e){return t=>{if(ic(t.value)||ic(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}static required(e){return ic(e.value)?{required:!0}:null}static requiredTrue(e){return!0===e.value?null:{required:!0}}static email(e){return ic(e.value)||cc.test(e.value)?null:{email:!0}}static minLength(e){return t=>ic(t.value)||!oc(t.value)?null:t.value.length<e?{minlength:{requiredLength:e,actualLength:t.value.length}}:null}static maxLength(e){return t=>oc(t.value)&&t.value.length>e?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}static pattern(e){if(!e)return uc.nullValidator;let t,n;return"string"==typeof e?(n="","^"!==e.charAt(0)&&(n+="^"),n+=e,"$"!==e.charAt(e.length-1)&&(n+="$"),t=new RegExp(n)):(n=e.toString(),t=e),e=>{if(ic(e.value))return null;const s=e.value;return t.test(s)?null:{pattern:{requiredPattern:n,actualValue:s}}}}static nullValidator(e){return null}static compose(e){if(!e)return null;const t=e.filter(hc);return 0==t.length?null:function(e){return pc(fc(e,t))}}static composeAsync(e){if(!e)return null;const t=e.filter(hc);return 0==t.length?null:function(e){return function(...e){if(1===e.length){const t=e[0];if(l(t))return Kl(t,null);if(c(t)&&Object.getPrototypeOf(t)===Object.prototype){const e=Object.keys(t);return Kl(e.map(e=>t[e]),e)}}if("function"==typeof e[e.length-1]){const t=e.pop();return Kl(e=1===e.length&&l(e[0])?e[0]:e,null).pipe(x(e=>t(...e)))}return Kl(e,null)}(fc(e,t).map(dc)).pipe(x(pc))}}}function hc(e){return null!=e}function dc(e){const t=Ai(e)?R(e):e;return t}function pc(e){let t={};return e.forEach(e=>{t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function fc(e,t){return t.map(t=>t(e))}function mc(e){return e.map(e=>function(e){return!e.validate}(e)?e:t=>e.validate(t))}const gc={provide:Gl,useExisting:ve(()=>_c),multi:!0};let _c=(()=>{class e{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}registerOnChange(e){this.onChange=t=>{e(""==t?null:parseFloat(t))}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}return e.\u0275fac=function(t){return new(t||e)(Ei(ho),Ei(ao))},e.\u0275dir=mt({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,t){1&e&&Ii("input",(function(e){return t.onChange(e.target.value)}))("blur",(function(){return t.onTouched()}))},features:[so([gc])]}),e})();const yc={provide:Gl,useExisting:ve(()=>vc),multi:!0};let bc=(()=>{class e{constructor(){this._accessors=[]}add(e,t){this._accessors.push([e,t])}remove(e){for(let t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)}select(e){this._accessors.forEach(t=>{this._isSameGroup(t,e)&&t[1]!==e&&t[1].fireUncheck(e.value)})}_isSameGroup(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ae({token:e,factory:e.\u0275fac}),e})(),vc=(()=>{class e{constructor(e,t,n,s){this._renderer=e,this._elementRef=t,this._registry=n,this._injector=s,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(sc),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(e){this._fn=e,this.onChange=()=>{e(this.value),this._registry.select(this)}}fireUncheck(e){this.writeValue(e)}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return e.\u0275fac=function(t){return new(t||e)(Ei(ho),Ei(ao),Ei(bc),Ei(pi))},e.\u0275dir=mt({type:e,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(e,t){1&e&&Ii("change",(function(){return t.onChange()}))("blur",(function(){return t.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[so([yc])]}),e})();const wc={provide:Gl,useExisting:ve(()=>Ec),multi:!0};let Ec=(()=>{class e{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))}registerOnChange(e){this.onChange=t=>{e(""==t?null:parseFloat(t))}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}return e.\u0275fac=function(t){return new(t||e)(Ei(ho),Ei(ao))},e.\u0275dir=mt({type:e,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(e,t){1&e&&Ii("change",(function(e){return t.onChange(e.target.value)}))("input",(function(e){return t.onChange(e.target.value)}))("blur",(function(){return t.onTouched()}))},features:[so([wc])]}),e})();const kc={provide:Gl,useExisting:ve(()=>Cc),multi:!0};let Cc=(()=>{class e{constructor(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=e=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;const t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const n=function(e,t){return null==e?""+t:(t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}registerOnChange(e){this.onChange=t=>{this.value=this._getOptionValue(t),e(this.value)}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const t of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(t),e))return t;return null}_getOptionValue(e){const t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t):e}}return e.\u0275fac=function(t){return new(t||e)(Ei(ho),Ei(ao))},e.\u0275dir=mt({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,t){1&e&&Ii("change",(function(e){return t.onChange(e.target.value)}))("blur",(function(){return t.onTouched()}))},inputs:{compareWith:"compareWith"},features:[so([kc])]}),e})();const Sc={provide:Gl,useExisting:ve(()=>xc),multi:!0};let xc=(()=>{class e{constructor(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=e=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){let t;if(this.value=e,Array.isArray(e)){const n=e.map(e=>this._getOptionId(e));t=(e,t)=>{e._setSelected(n.indexOf(t.toString())>-1)}}else t=(e,t)=>{e._setSelected(!1)};this._optionMap.forEach(t)}registerOnChange(e){this.onChange=t=>{const n=[];if(void 0!==t.selectedOptions){const e=t.selectedOptions;for(let t=0;t<e.length;t++){const s=e.item(t),r=this._getOptionValue(s.value);n.push(r)}}else{const e=t.options;for(let t=0;t<e.length;t++){const s=e.item(t);if(s.selected){const e=this._getOptionValue(s.value);n.push(e)}}}this.value=n,e(n)}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_registerOption(e){const t=(this._idCounter++).toString();return this._optionMap.set(t,e),t}_getOptionId(e){for(const t of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(t)._value,e))return t;return null}_getOptionValue(e){const t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t)._value:e}}return e.\u0275fac=function(t){return new(t||e)(Ei(ho),Ei(ao))},e.\u0275dir=mt({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(e,t){1&e&&Ii("change",(function(e){return t.onChange(e.target)}))("blur",(function(){return t.onTouched()}))},inputs:{compareWith:"compareWith"},features:[so([Sc])]}),e})();function Tc(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function Ac(e){return null!=e?uc.compose(mc(e)):null}function Ic(e){return null!=e?uc.composeAsync(mc(e)):null}const Oc=[Jl,Ec,_c,Cc,xc,vc],Dc="VALID",Nc="INVALID",Pc="PENDING",Vc="DISABLED";function Fc(e){return(Lc(e)?e.validators:e)||null}function Rc(e){return Array.isArray(e)?Ac(e):e||null}function Mc(e,t){return(Lc(t)?t.asyncValidators:e)||null}function jc(e){return Array.isArray(e)?Ic(e):e||null}function Lc(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class Bc{constructor(e,t){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=e,this._rawAsyncValidators=t,this._composedValidatorFn=Rc(this._rawValidators),this._composedAsyncValidatorFn=jc(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===Dc}get invalid(){return this.status===Nc}get pending(){return this.status==Pc}get disabled(){return this.status===Vc}get enabled(){return this.status!==Vc}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._rawValidators=e,this._composedValidatorFn=Rc(e)}setAsyncValidators(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=jc(e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=Pc,!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=Vc,this.errors=null,this._forEachChild(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(e=>e(!0))}enable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=Dc,this._forEachChild(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(e=>e(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==Dc&&this.status!==Pc||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)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Vc:Dc}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=Pc,this._hasOwnPendingAsyncValidator=!0;const t=dc(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}get(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;let s=e;return t.forEach(e=>{s=s instanceof qc?s.controls.hasOwnProperty(e)?s.controls[e]:null:s instanceof $c&&s.at(e)||null}),s}(this,e)}getError(e,t){const n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new Xo,this.statusChanges=new Xo}_calculateStatus(){return this._allControlsDisabled()?Vc:this.errors?Nc:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Pc)?Pc:this._anyControlsHaveStatus(Nc)?Nc:Dc}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_isBoxedValue(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){Lc(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}class Hc extends Bc{constructor(e=null,t,n){super(Fc(t),Mc(n,t)),this._onChange=[],this._applyFormState(e),this._setUpdateStrategy(t),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),this._initObservables()}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(e=>e(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=null,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_clearChangeFns(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=()=>{}}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_forEachChild(e){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(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}}class qc extends Bc{constructor(e,t,n){super(Fc(t),Mc(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}registerControl(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()}setControl(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,t={}){this._checkAllValuesPresent(e),Object.keys(e).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){Object.keys(e).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}reset(e={},t={}){this._forEachChild((n,s)=>{n.reset(e[s],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(e,t,n)=>(e[n]=t instanceof Hc?t.value:t.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error(`Cannot find form control with name: ${e}.`)}_forEachChild(e){Object.keys(this.controls).forEach(t=>e(this.controls[t],t))}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(const t of Object.keys(this.controls)){const n=this.controls[t];if(this.contains(t)&&e(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(e,t,n)=>((t.enabled||this.disabled)&&(e[n]=t.value),e))}_reduceChildren(e,t){let n=e;return this._forEachChild((e,s)=>{n=t(n,e,s)}),n}_allControlsDisabled(){for(const e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(e){this._forEachChild((t,n)=>{if(void 0===e[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class $c extends Bc{constructor(e,t,n){super(Fc(t),Mc(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}at(e){return this.controls[e]}push(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()}insert(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()}removeAt(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),this.updateValueAndValidity()}setControl(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,t={}){this._checkAllValuesPresent(e),e.forEach((e,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){e.forEach((e,n)=>{this.at(n)&&this.at(n).patchValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}reset(e=[],t={}){this._forEachChild((n,s)=>{n.reset(e[s],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(e=>e instanceof Hc?e.value:e.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let e=this.controls.reduce((e,t)=>!!t._syncPendingControls()||e,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error("Cannot find form control at index "+e)}_forEachChild(e){this.controls.forEach((t,n)=>{e(t,n)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(t=>t.enabled&&e(t))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_checkAllValuesPresent(e){this._forEachChild((t,n)=>{if(void 0===e[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}const zc=new Fe("NgModelWithFormControlWarning"),Zc={provide:sc,useExisting:ve(()=>Qc)};let Qc=(()=>{class e extends sc{constructor(e,t,n,s){super(),this._ngModelWarningConfig=s,this.update=new Xo,this._ngModelWarningSent=!1,this._rawValidators=e||[],this._rawAsyncValidators=t||[],this.valueAccessor=function(e,t){if(!t)return null;Array.isArray(t);let n=void 0,s=void 0,r=void 0;return t.forEach(e=>{var t;e.constructor===tc?n=e:(t=e,Oc.some(e=>t.constructor===e)?s=e:r=e)}),r||s||n||null}(0,n)}set isDisabled(e){}ngOnChanges(t){var n,s,r,i;this._isControlChanged(t)&&((r=this.form).validator=uc.compose([r.validator,(i=this).validator]),r.asyncValidator=uc.composeAsync([r.asyncValidator,i.asyncValidator]),i.valueAccessor.writeValue(r.value),function(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&Tc(e,t)})}(r,i),function(e,t){e.registerOnChange((e,n)=>{t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)})}(r,i),function(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&Tc(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(r,i),i.valueAccessor.setDisabledState&&r.registerOnDisabledChange(e=>{i.valueAccessor.setDisabledState(e)}),i._rawValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>r.updateValueAndValidity())}),i._rawAsyncValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>r.updateValueAndValidity())}),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),function(e,t){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}(t,this.viewModel)&&(n=e,this,s=this._ngModelWarningConfig,hs()&&"never"!==s&&((null!==s&&"once"!==s||n._ngModelWarningSentOnce)&&("always"!==s||this._ngModelWarningSent)||(n._ngModelWarningSentOnce=!0,this._ngModelWarningSent=!0)),this.form.setValue(this.model),this.viewModel=this.model)}get path(){return[]}get validator(){return Ac(this._rawValidators)}get asyncValidator(){return Ic(this._rawAsyncValidators)}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return e.\u0275fac=function(t){return new(t||e)(Ei(ac,10),Ei(lc,10),Ei(Gl,10),Ei(zc,8))},e.\u0275dir=mt({type:e,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[so([Zc]),Zi,It]}),e._ngModelWarningSentOnce=!1,e})(),Wc=(()=>{class e{}return e.\u0275mod=pt({type:e}),e.\u0275inj=le({factory:function(t){return new(t||e)}}),e})(),Uc=(()=>{class e{group(e,t=null){const n=this._reduceControls(e);let s=null,r=null,i=void 0;return null!=t&&(function(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}(t)?(s=null!=t.validators?t.validators:null,r=null!=t.asyncValidators?t.asyncValidators:null,i=null!=t.updateOn?t.updateOn:void 0):(s=null!=t.validator?t.validator:null,r=null!=t.asyncValidator?t.asyncValidator:null)),new qc(n,{asyncValidators:r,updateOn:i,validators:s})}control(e,t,n){return new Hc(e,t,n)}array(e,t,n){const s=e.map(e=>this._createControl(e));return new $c(s,t,n)}_reduceControls(e){const t={};return Object.keys(e).forEach(n=>{t[n]=this._createControl(e[n])}),t}_createControl(e){return e instanceof Hc||e instanceof qc||e instanceof $c?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ae({token:e,factory:e.\u0275fac}),e})(),Kc=(()=>{class e{}return e.\u0275mod=pt({type:e}),e.\u0275inj=le({factory:function(t){return new(t||e)},providers:[bc],imports:[Wc]}),e})(),Gc=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:zc,useValue:t.warnOnNgModelWithFormControl}]}}}return e.\u0275mod=pt({type:e}),e.\u0275inj=le({factory:function(t){return new(t||e)},providers:[Uc,bc],imports:[Wc]}),e})();class Yc{constructor(e,t){this.dueTime=e,this.scheduler=t}call(e,t){return t.subscribe(new Jc(e,this.dueTime,this.scheduler))}}class Jc extends f{constructor(e,t,n){super(e),this.dueTime=t,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(Xc,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:e}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}clearDebounce(){const e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}function Xc(e){e.debouncedNext()}let eu=(()=>{class e{create(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ae({factory:function(){return new e},token:e,providedIn:"root"}),e})(),tu=(()=>{class e{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){const t=ol(e);return new y(e=>{const n=this._observeElement(t).subscribe(e);return()=>{n.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const t=new k,n=this._mutationObserverFactory.create(e=>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}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:t,stream:n}=this._observedElements.get(e);t&&t.disconnect(),n.complete(),this._observedElements.delete(e)}}}return e.\u0275fac=function(t){return new(t||e)(Qe(eu))},e.\u0275prov=ae({factory:function(){return new e(Qe(eu))},token:e,providedIn:"root"}),e})(),nu=(()=>{class e{constructor(e,t,n){this._contentObserver=e,this._elementRef=t,this._ngZone=n,this.event=new Xo,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=rl(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=il(e),this._subscribe()}ngAfterContentInit(){this._currentSubscription||this.disabled||this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe(function(e,t=dl){return n=>n.lift(new Yc(e,t))}(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription&&this._currentSubscription.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(Ei(tu),Ei(ao),Ei(Fa))},e.\u0275dir=mt({type:e,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),e})(),su=(()=>{class e{}return e.\u0275mod=pt({type:e}),e.\u0275inj=le({factory:function(t){return new(t||e)},providers:[eu]}),e})();function ru(e){return 0===e.buttons}"undefined"!=typeof Element&&Element;const iu=new Fe("cdk-focus-monitor-default-options"),ou=jl({passive:!0,capture:!0});let au=(()=>{class e{constructor(e,t,n,s){this._ngZone=e,this._platform=t,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=e=>{if(!this._lastTouchTarget){const t=ru(e)?"keyboard":"mouse";this._setOriginForCurrentEventQueue(t)}},this._documentTouchstartListener=e=>{null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=lu(e),this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650)},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._rootNodeFocusAndBlurListener=e=>{const t=lu(e),n="focus"===e.type?this._onFocus:this._onBlur;for(let s=t;s;s=s.parentElement)n.call(this,e,s)},this._document=n,this._detectionMode=(null==s?void 0:s.detectionMode)||0}monitor(e,t=!1){if(!this._platform.isBrowser)return al(null);const n=ol(e),s=function(e){if(function(){if(null==Fl){const e="undefined"!=typeof document?document.head:null;Fl=!(!e||!e.createShadowRoot&&!e.attachShadow)}return Fl}()){const t=e.getRootNode?e.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}(n)||this._getDocument(),r=this._elementInfo.get(n);if(r)return t&&(r.checkChildren=!0),r.subject;const i={checkChildren:t,subject:new k,rootNode:s};return this._elementInfo.set(n,i),this._registerGlobalListeners(i),i.subject}stopMonitoring(e){const t=ol(e),n=this._elementInfo.get(t);n&&(n.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(n))}focusVia(e,t,n){const s=ol(e);this._setOriginForCurrentEventQueue(t),"function"==typeof s.focus&&s.focus(n)}ngOnDestroy(){this._elementInfo.forEach((e,t)=>this.stopMonitoring(t))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(e,t,n){n?e.classList.add(t):e.classList.remove(t)}_getFocusOrigin(e){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(e)?"touch":"program"}_setClasses(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)}_setOriginForCurrentEventQueue(e){this._ngZone.runOutsideAngular(()=>{this._origin=e,0===this._detectionMode&&(this._originTimeoutId=setTimeout(()=>this._origin=null,1))})}_wasCausedByTouch(e){const t=lu(e);return this._lastTouchTarget instanceof Node&&t instanceof Node&&(t===this._lastTouchTarget||t.contains(this._lastTouchTarget))}_onFocus(e,t){const n=this._elementInfo.get(t);if(!n||!n.checkChildren&&t!==lu(e))return;const s=this._getFocusOrigin(e);this._setClasses(t,s),this._emitOrigin(n.subject,s),this._lastFocusOrigin=s}_onBlur(e,t){const n=this._elementInfo.get(t);!n||n.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(n.subject,null))}_emitOrigin(e,t){this._ngZone.run(()=>e.next(t))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const t=e.rootNode,n=this._rootNodeFocusListenerCount.get(t)||0;n||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,ou),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,ou)}),this._rootNodeFocusListenerCount.set(t,n+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(()=>{const e=this._getDocument(),t=this._getWindow();e.addEventListener("keydown",this._documentKeydownListener,ou),e.addEventListener("mousedown",this._documentMousedownListener,ou),e.addEventListener("touchstart",this._documentTouchstartListener,ou),t.addEventListener("focus",this._windowFocusListener)})}_removeGlobalListeners(e){const t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){const e=this._rootNodeFocusListenerCount.get(t);e>1?this._rootNodeFocusListenerCount.set(t,e-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,ou),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,ou),this._rootNodeFocusListenerCount.delete(t))}if(!--this._monitoredElementCount){const e=this._getDocument(),t=this._getWindow();e.removeEventListener("keydown",this._documentKeydownListener,ou),e.removeEventListener("mousedown",this._documentMousedownListener,ou),e.removeEventListener("touchstart",this._documentTouchstartListener,ou),t.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}}return e.\u0275fac=function(t){return new(t||e)(Qe(Fa),Qe(Rl),Qe(Al,8),Qe(iu,8))},e.\u0275prov=ae({factory:function(){return new e(Qe(Fa),Qe(Rl),Qe(Al,8),Qe(iu,8))},token:e,providedIn:"root"}),e})();function lu(e){return e.composedPath?e.composedPath()[0]:e.target}const cu="cdk-high-contrast-black-on-white",uu="cdk-high-contrast-white-on-black",hu="cdk-high-contrast-active";let du=(()=>{class e{constructor(e,t){this._platform=e,this._document=t}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const t=this._document.defaultView||window,n=t&&t.getComputedStyle?t.getComputedStyle(e):null,s=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(e),s){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(hu),e.remove(cu),e.remove(uu);const t=this.getHighContrastMode();1===t?(e.add(hu),e.add(cu)):2===t&&(e.add(hu),e.add(uu))}}}return e.\u0275fac=function(t){return new(t||e)(Qe(Rl),Qe(Al))},e.\u0275prov=ae({factory:function(){return new e(Qe(Rl),Qe(Al))},token:e,providedIn:"root"}),e})();const pu=new mo("10.2.0");class fu extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var e;e=new fu,xl||(xl=e)}getProperty(e,t){return e[t]}log(e){window.console&&window.console.log&&window.console.log(e)}logGroup(e){window.console&&window.console.group&&window.console.group(e)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(e,t,n){return e.addEventListener(t,n,!1),()=>{e.removeEventListener(t,n,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){return e.parentNode&&e.parentNode.removeChild(e),e}getValue(e){return e.value}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(e){const t=gu||(gu=document.querySelector("base"),gu)?gu.getAttribute("href"):null;return null==t?null:(n=t,mu||(mu=document.createElement("a")),mu.setAttribute("href",n),"/"===mu.pathname.charAt(0)?mu.pathname:"/"+mu.pathname);var n}resetBaseElement(){gu=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(e){return function(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const e=n.indexOf("="),[s,r]=-1==e?[n,""]:[n.slice(0,e),n.slice(e+1)];if(s.trim()===t)return decodeURIComponent(r)}return null}(document.cookie,e)}}let mu,gu=null;const _u=new Fe("TRANSITION_ID"),yu=[{provide:fa,useFactory:function(e,t,n){return()=>{n.get(ma).donePromise.then(()=>{const n=Tl();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter(t=>t.getAttribute("ng-transition")===e).forEach(e=>n.remove(e))})}},deps:[_u,Al,pi],multi:!0}];class bu{static init(){var e;e=new bu,Wa=e}addToWindow(e){Te.getAngularTestability=(t,n=!0)=>{const s=e.findTestabilityInTree(t,n);if(null==s)throw new Error("Could not find testability for element.");return s},Te.getAllAngularTestabilities=()=>e.getAllTestabilities(),Te.getAllAngularRootElements=()=>e.getAllRootElements(),Te.frameworkStabilizers||(Te.frameworkStabilizers=[]),Te.frameworkStabilizers.push(e=>{const t=Te.getAllAngularTestabilities();let n=t.length,s=!1;const r=function(t){s=s||t,n--,0==n&&e(s)};t.forEach((function(e){e.whenStable(r)}))})}findTestabilityInTree(e,t,n){if(null==t)return null;const s=e.getTestability(t);return null!=s?s:n?Tl().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}const vu=new Fe("EventManagerPlugins");let wu=(()=>{class e{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(e=>e.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}addGlobalEventListener(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const n=this._plugins;for(let s=0;s<n.length;s++){const t=n[s];if(t.supports(e))return this._eventNameToPlugin.set(e,t),t}throw new Error("No event manager plugin found for event "+e)}}return e.\u0275fac=function(t){return new(t||e)(Qe(vu),Qe(Fa))},e.\u0275prov=ae({token:e,factory:e.\u0275fac}),e})();class Eu{constructor(e){this._doc=e}addGlobalEventListener(e,t,n){const s=Tl().getGlobalEventTarget(this._doc,e);if(!s)throw new Error(`Unsupported event target ${s} for event ${t}`);return this.addEventListener(s,t,n)}}let ku=(()=>{class e{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(e=>{this._stylesSet.has(e)||(this._stylesSet.add(e),t.add(e))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ae({token:e,factory:e.\u0275fac}),e})(),Cu=(()=>{class e extends ku{constructor(e){super(),this._doc=e,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(e.head)}_addStylesToHost(e,t){e.forEach(e=>{const n=this._doc.createElement("style");n.textContent=e,this._styleNodes.add(t.appendChild(n))})}addHost(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)}removeHost(e){this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach(t=>this._addStylesToHost(e,t))}ngOnDestroy(){this._styleNodes.forEach(e=>Tl().remove(e))}}return e.\u0275fac=function(t){return new(t||e)(Qe(Al))},e.\u0275prov=ae({token:e,factory:e.\u0275fac}),e})();const Su={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/"},xu=/%COMP%/g;function Tu(e,t,n){for(let s=0;s<t.length;s++){let r=t[s];Array.isArray(r)?Tu(e,r,n):(r=r.replace(xu,e),n.push(r))}return n}function Au(e){return t=>{if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let Iu=(()=>{class e{constructor(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new Ou(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case it.Emulated:{let n=this.rendererByCompId.get(t.id);return n||(n=new Du(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n}case it.Native:case it.ShadowDom:return new Nu(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const e=Tu(t.id,t.styles,[]);this.sharedStylesHost.addStyles(e),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return e.\u0275fac=function(t){return new(t||e)(Qe(wu),Qe(Cu),Qe(ga))},e.\u0275prov=ae({token:e,factory:e.\u0275fac}),e})();class Ou{constructor(e){this.eventManager=e,this.data=Object.create(null)}destroy(){}createElement(e,t){return t?document.createElementNS(Su[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){e.appendChild(t)}insertBefore(e,t,n){e&&e.insertBefore(t,n)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error(`The selector "${e}" did not match any elements`);return t||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,s){if(s){t=s+":"+t;const r=Su[s];r?e.setAttributeNS(r,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){const s=Su[n];s?e.removeAttributeNS(s,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,s){s&uo.DashCase?e.style.setProperty(t,n,s&uo.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&uo.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){e[t]=n}setValue(e,t){e.nodeValue=t}listen(e,t,n){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,Au(n)):this.eventManager.addEventListener(e,t,Au(n))}}class Du extends Ou{constructor(e,t,n,s){super(e),this.component=n;const r=Tu(s+"-"+n.id,n.styles,[]);t.addStyles(r),this.contentAttr="_ngcontent-%COMP%".replace(xu,s+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(xu,s+"-"+n.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,""),n}}class Nu extends Ou{constructor(e,t,n,s){super(e),this.sharedStylesHost=t,this.hostEl=n,this.component=s,this.shadowRoot=s.encapsulation===it.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const r=Tu(s.id,s.styles,[]);for(let i=0;i<r.length;i++){const e=document.createElement("style");e.textContent=r[i],this.shadowRoot.appendChild(e)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,n){return super.insertBefore(this.nodeOrShadowRoot(e),t,n)}removeChild(e,t){return super.removeChild(this.nodeOrShadowRoot(e),t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}}let Pu=(()=>{class e extends Eu{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,n){return e.addEventListener(t,n,!1),()=>this.removeEventListener(e,t,n)}removeEventListener(e,t,n){return e.removeEventListener(t,n)}}return e.\u0275fac=function(t){return new(t||e)(Qe(Al))},e.\u0275prov=ae({token:e,factory:e.\u0275fac}),e})();const Vu=["alt","control","meta","shift"],Fu={"\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"},Ru={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"},Mu={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let ju=(()=>{class e extends Eu{constructor(e){super(e)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,n,s){const r=e.parseEventName(n),i=e.eventCallback(r.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Tl().onAndCancel(t,r.domEventName,i))}static parseEventName(t){const n=t.toLowerCase().split("."),s=n.shift();if(0===n.length||"keydown"!==s&&"keyup"!==s)return null;const r=e._normalizeKey(n.pop());let i="";if(Vu.forEach(e=>{const t=n.indexOf(e);t>-1&&(n.splice(t,1),i+=e+".")}),i+=r,0!=n.length||0===r.length)return null;const o={};return o.domEventName=s,o.fullKey=i,o}static getEventFullKey(e){let t="",n=function(e){let t=e.key;if(null==t){if(t=e.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&Ru.hasOwnProperty(t)&&(t=Ru[t]))}return Fu[t]||t}(e);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),Vu.forEach(s=>{s!=n&&(0,Mu[s])(e)&&(t+=s+".")}),t+=n,t}static eventCallback(t,n,s){return r=>{e.getEventFullKey(r)===t&&s.runGuarded(()=>n(r))}}static _normalizeKey(e){switch(e){case"esc":return"escape";default:return e}}}return e.\u0275fac=function(t){return new(t||e)(Qe(Al))},e.\u0275prov=ae({token:e,factory:e.\u0275fac}),e})();const Lu=Ka(tl,"browser",[{provide:va,useValue:"browser"},{provide:ba,useValue:function(){fu.makeCurrent(),bu.init()},multi:!0},{provide:Al,useFactory:function(){return function(e){Ft=e}(document),document},deps:[]}]),Bu=[[],{provide:Xr,useValue:"root"},{provide:ls,useFactory:function(){return new ls},deps:[]},{provide:vu,useClass:Pu,multi:!0,deps:[Al,Fa,va]},{provide:vu,useClass:ju,multi:!0,deps:[Al]},[],{provide:Iu,useClass:Iu,deps:[wu,Cu,ga]},{provide:co,useExisting:Iu},{provide:ku,useExisting:Cu},{provide:Cu,useClass:Cu,deps:[Al]},{provide:$a,useClass:$a,deps:[Fa]},{provide:wu,useClass:wu,deps:[vu,Fa]},[]];let Hu=(()=>{class e{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(t){return{ngModule:e,providers:[{provide:ga,useValue:t.appId},{provide:_u,useExisting:ga},yu]}}}return e.\u0275mod=pt({type:e}),e.\u0275inj=le({factory:function(t){return new(t||e)(Qe(e,12))},providers:Bu,imports:[Pl,sl]}),e})();"undefined"!=typeof window&&window;class qu{}const $u="*";function zu(e,t=null){return{type:2,steps:e,options:t}}function Zu(e){return{type:6,styles:e,offset:null}}function Qu(e){Promise.resolve(null).then(e)}class Wu{constructor(e=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Qu(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){}setPosition(e){}getPosition(){return 0}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}class Uu{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,n=0,s=0;const r=this.players.length;0==r?Qu(()=>this._onFinish()):this.players.forEach(e=>{e.onDone(()=>{++t==r&&this._onFinish()}),e.onDestroy(()=>{++n==r&&this._onDestroy()}),e.onStart(()=>{++s==r&&this._onStart()})}),this.totalTime=this.players.reduce((e,t)=>Math.max(e,t.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const t=e*this.totalTime;this.players.forEach(e=>{const n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})}getPosition(){let e=0;return this.players.forEach(t=>{const n=t.getPosition();e=Math.min(n,e)}),e}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}function Ku(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Gu(e){switch(e.length){case 0:return new Wu;case 1:return e[0];default:return new Uu(e)}}function Yu(e,t,n,s,r={},i={}){const o=[],a=[];let l=-1,c=null;if(s.forEach(e=>{const n=e.offset,s=n==l,u=s&&c||{};Object.keys(e).forEach(n=>{let s=n,a=e[n];if("offset"!==n)switch(s=t.normalizePropertyName(s,o),a){case"!":a=r[n];break;case $u:a=i[n];break;default:a=t.normalizeStyleValue(n,s,a,o)}u[s]=a}),s||a.push(u),c=u,l=n}),o.length){const e="\n - ";throw new Error(`Unable to animate due to the following errors:${e}${o.join(e)}`)}return a}function Ju(e,t,n,s){switch(t){case"start":e.onStart(()=>s(n&&Xu(n,"start",e)));break;case"done":e.onDone(()=>s(n&&Xu(n,"done",e)));break;case"destroy":e.onDestroy(()=>s(n&&Xu(n,"destroy",e)))}}function Xu(e,t,n){const s=n.totalTime,r=eh(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==s?e.totalTime:s,!!n.disabled),i=e._data;return null!=i&&(r._data=i),r}function eh(e,t,n,s,r="",i=0,o){return{element:e,triggerName:t,fromState:n,toState:s,phaseName:r,totalTime:i,disabled:!!o}}function th(e,t,n){let s;return e instanceof Map?(s=e.get(t),s||e.set(t,s=n)):(s=e[t],s||(s=e[t]=n)),s}function nh(e){const t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}let sh=(e,t)=>!1,rh=(e,t)=>!1,ih=(e,t,n)=>[];const oh=Ku();(oh||"undefined"!=typeof Element)&&(sh=(e,t)=>e.contains(t),rh=(()=>{if(oh||Element.prototype.matches)return(e,t)=>e.matches(t);{const e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?(e,n)=>t.apply(e,[n]):rh}})(),ih=(e,t,n)=>{let s=[];if(n)s.push(...e.querySelectorAll(t));else{const n=e.querySelector(t);n&&s.push(n)}return s});let ah=null,lh=!1;function ch(e){ah||(ah=("undefined"!=typeof document?document.body:null)||{},lh=!!ah.style&&"WebkitAppearance"in ah.style);let t=!0;return ah.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&(t=e in ah.style,!t&&lh)&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in ah.style),t}const uh=rh,hh=sh,dh=ih;function ph(e){const t={};return Object.keys(e).forEach(n=>{const s=n.replace(/([a-z])([A-Z])/g,"$1-$2");t[s]=e[n]}),t}let fh=(()=>{class e{validateStyleProperty(e){return ch(e)}matchesElement(e,t){return uh(e,t)}containsElement(e,t){return hh(e,t)}query(e,t,n){return dh(e,t,n)}computeStyle(e,t,n){return n||""}animate(e,t,n,s,r,i=[],o){return new Wu(n,s)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ae({token:e,factory:e.\u0275fac}),e})(),mh=(()=>{class e{}return e.NOOP=new fh,e})();const gh="ng-enter",_h="ng-leave",yh="ng-trigger",bh=".ng-trigger",vh="ng-animating",wh=".ng-animating";function Eh(e){if("number"==typeof e)return e;const t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:kh(parseFloat(t[1]),t[2])}function kh(e,t){switch(t){case"s":return 1e3*e;default:return e}}function Ch(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){let s,r=0,i="";if("string"==typeof e){const n=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return t.push(`The provided timing value "${e}" is invalid.`),{duration:0,delay:0,easing:""};s=kh(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(r=kh(parseFloat(o),n[4]));const a=n[5];a&&(i=a)}else s=e;if(!n){let n=!1,i=t.length;s<0&&(t.push("Duration values below 0 are not allowed for this animation step."),n=!0),r<0&&(t.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&t.splice(i,0,`The provided timing value "${e}" is invalid.`)}return{duration:s,delay:r,easing:i}}(e,t,n)}function Sh(e,t={}){return Object.keys(e).forEach(n=>{t[n]=e[n]}),t}function xh(e,t,n={}){if(t)for(let s in e)n[s]=e[s];else Sh(e,n);return n}function Th(e,t,n){return n?t+":"+n+";":""}function Ah(e){let t="";for(let n=0;n<e.style.length;n++){const s=e.style.item(n);t+=Th(0,s,e.style.getPropertyValue(s))}for(const n in e.style)e.style.hasOwnProperty(n)&&!n.startsWith("_")&&(t+=Th(0,n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e.style[n]));e.setAttribute("style",t)}function Ih(e,t,n){e.style&&(Object.keys(t).forEach(s=>{const r=Mh(s);n&&!n.hasOwnProperty(s)&&(n[s]=e.style[r]),e.style[r]=t[s]}),Ku()&&Ah(e))}function Oh(e,t){e.style&&(Object.keys(t).forEach(t=>{const n=Mh(t);e.style[n]=""}),Ku()&&Ah(e))}function Dh(e){return Array.isArray(e)?1==e.length?e[0]:zu(e):e}const Nh=new RegExp("{{\\s*(.+?)\\s*}}","g");function Ph(e){let t=[];if("string"==typeof e){let n;for(;n=Nh.exec(e);)t.push(n[1]);Nh.lastIndex=0}return t}function Vh(e,t,n){const s=e.toString(),r=s.replace(Nh,(e,s)=>{let r=t[s];return t.hasOwnProperty(s)||(n.push("Please provide a value for the animation param "+s),r=""),r.toString()});return r==s?e:r}function Fh(e){const t=[];let n=e.next();for(;!n.done;)t.push(n.value),n=e.next();return t}const Rh=/-+([a-z0-9])/g;function Mh(e){return e.replace(Rh,(...e)=>e[1].toUpperCase())}function jh(e,t){return 0===e||0===t}function Lh(e,t,n){const s=Object.keys(n);if(s.length&&t.length){let i=t[0],o=[];if(s.forEach(e=>{i.hasOwnProperty(e)||o.push(e),i[e]=n[e]}),o.length)for(var r=1;r<t.length;r++){let n=t[r];o.forEach((function(t){n[t]=Hh(e,t)}))}}return t}function Bh(e,t,n){switch(t.type){case 7:return e.visitTrigger(t,n);case 0:return e.visitState(t,n);case 1:return e.visitTransition(t,n);case 2:return e.visitSequence(t,n);case 3:return e.visitGroup(t,n);case 4:return e.visitAnimate(t,n);case 5:return e.visitKeyframes(t,n);case 6:return e.visitStyle(t,n);case 8:return e.visitReference(t,n);case 9:return e.visitAnimateChild(t,n);case 10:return e.visitAnimateRef(t,n);case 11:return e.visitQuery(t,n);case 12:return e.visitStagger(t,n);default:throw new Error("Unable to resolve animation metadata node #"+t.type)}}function Hh(e,t){return window.getComputedStyle(e)[t]}const qh="*";function $h(e,t){const n=[];return"string"==typeof e?e.split(/\s*,\s*/).forEach(e=>function(e,t,n){if(":"==e[0]){const s=function(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t)<parseFloat(e);default:return t.push(`The transition alias value "${e}" is not supported`),"* => *"}}(e,n);if("function"==typeof s)return void t.push(s);e=s}const s=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==s||s.length<4)return n.push(`The provided transition expression "${e}" is not supported`),t;const r=s[1],i=s[2],o=s[3];t.push(Qh(r,o)),"<"!=i[0]||r==qh&&o==qh||t.push(Qh(o,r))}(e,n,t)):n.push(e),n}const zh=new Set(["true","1"]),Zh=new Set(["false","0"]);function Qh(e,t){const n=zh.has(e)||Zh.has(e),s=zh.has(t)||Zh.has(t);return(r,i)=>{let o=e==qh||e==r,a=t==qh||t==i;return!o&&n&&"boolean"==typeof r&&(o=r?zh.has(e):Zh.has(e)),!a&&s&&"boolean"==typeof i&&(a=i?zh.has(t):Zh.has(t)),o&&a}}const Wh=new RegExp("s*:selfs*,?","g");function Uh(e,t,n){return new Kh(e).build(t,n)}class Kh{constructor(e){this._driver=e}build(e,t){const n=new Gh(t);return this._resetContextStyleTimingState(n),Bh(this,Dh(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}visitTrigger(e,t){let n=t.queryCount=0,s=t.depCount=0;const r=[],i=[];return"@"==e.name.charAt(0)&&t.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach(e=>{if(this._resetContextStyleTimingState(t),0==e.type){const n=e,s=n.name;s.toString().split(/\s*,\s*/).forEach(e=>{n.name=e,r.push(this.visitState(n,t))}),n.name=s}else if(1==e.type){const r=this.visitTransition(e,t);n+=r.queryCount,s+=r.depCount,i.push(r)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:e.name,states:r,transitions:i,queryCount:n,depCount:s,options:null}}visitState(e,t){const n=this.visitStyle(e.styles,t),s=e.options&&e.options.params||null;if(n.containsDynamicStyles){const r=new Set,i=s||{};if(n.styles.forEach(e=>{if(Yh(e)){const t=e;Object.keys(t).forEach(e=>{Ph(t[e]).forEach(e=>{i.hasOwnProperty(e)||r.add(e)})})}}),r.size){const n=Fh(r.values());t.errors.push(`state("${e.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:e.name,style:n,options:s?{params:s}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const n=Bh(this,Dh(e.animation),t);return{type:1,matchers:$h(e.expr,t.errors),animation:n,queryCount:t.queryCount,depCount:t.depCount,options:Jh(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(e=>Bh(this,e,t)),options:Jh(e.options)}}visitGroup(e,t){const n=t.currentTime;let s=0;const r=e.steps.map(e=>{t.currentTime=n;const r=Bh(this,e,t);return s=Math.max(s,t.currentTime),r});return t.currentTime=s,{type:3,steps:r,options:Jh(e.options)}}visitAnimate(e,t){const n=function(e,t){let n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return Xh(Ch(e,t).duration,0,"");const s=e;if(s.split(/\s+/).some(e=>"{"==e.charAt(0)&&"{"==e.charAt(1))){const e=Xh(0,0,"");return e.dynamic=!0,e.strValue=s,e}return n=n||Ch(s,t),Xh(n.duration,n.delay,n.easing)}(e.timings,t.errors);let s;t.currentAnimateTimings=n;let r=e.styles?e.styles:Zu({});if(5==r.type)s=this.visitKeyframes(r,t);else{let r=e.styles,i=!1;if(!r){i=!0;const e={};n.easing&&(e.easing=n.easing),r=Zu(e)}t.currentTime+=n.duration+n.delay;const o=this.visitStyle(r,t);o.isEmptyStep=i,s=o}return t.currentAnimateTimings=null,{type:4,timings:n,style:s,options:null}}visitStyle(e,t){const n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}_makeStyleAst(e,t){const n=[];Array.isArray(e.styles)?e.styles.forEach(e=>{"string"==typeof e?e==$u?n.push(e):t.errors.push(`The provided style string value ${e} is not allowed.`):n.push(e)}):n.push(e.styles);let s=!1,r=null;return n.forEach(e=>{if(Yh(e)){const t=e,n=t.easing;if(n&&(r=n,delete t.easing),!s)for(let e in t)if(t[e].toString().indexOf("{{")>=0){s=!0;break}}}),{type:6,styles:n,easing:r,offset:e.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(e,t){const n=t.currentAnimateTimings;let s=t.currentTime,r=t.currentTime;n&&r>0&&(r-=n.duration+n.delay),e.styles.forEach(e=>{"string"!=typeof e&&Object.keys(e).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void t.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const i=t.collectedStyles[t.currentQuerySelector],o=i[n];let a=!0;o&&(r!=s&&r>=o.startTime&&s<=o.endTime&&(t.errors.push(`The CSS property "${n}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${r}ms" and "${s}ms"`),a=!1),r=o.startTime),a&&(i[n]={startTime:r,endTime:s}),t.options&&function(e,t,n){const s=t.params||{},r=Ph(e);r.length&&r.forEach(e=>{s.hasOwnProperty(e)||n.push(`Unable to resolve the local animation param ${e} in the given list of values`)})}(e[n],t.options,t.errors)})})}visitKeyframes(e,t){const n={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),n;let s=0;const r=[];let i=!1,o=!1,a=0;const l=e.steps.map(e=>{const n=this._makeStyleAst(e,t);let l=null!=n.offset?n.offset:function(e){if("string"==typeof e)return null;let t=null;if(Array.isArray(e))e.forEach(e=>{if(Yh(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}});else if(Yh(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}return t}(n.styles),c=0;return null!=l&&(s++,c=n.offset=l),o=o||c<0||c>1,i=i||c<a,a=c,r.push(c),n});o&&t.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),i&&t.errors.push("Please ensure that all keyframe offsets are in order");const c=e.steps.length;let u=0;s>0&&s<c?t.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==s&&(u=1/(c-1));const h=c-1,d=t.currentTime,p=t.currentAnimateTimings,f=p.duration;return l.forEach((e,s)=>{const i=u>0?s==h?1:u*s:r[s],o=i*f;t.currentTime=d+p.delay+o,p.duration=o,this._validateStyleAst(e,t),e.offset=i,n.styles.push(e)}),n}visitReference(e,t){return{type:8,animation:Bh(this,Dh(e.animation),t),options:Jh(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:Jh(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:Jh(e.options)}}visitQuery(e,t){const n=t.currentQuerySelector,s=e.options||{};t.queryCount++,t.currentQuery=e;const[r,i]=function(e){const t=!!e.split(/\s*,\s*/).find(e=>":self"==e);return t&&(e=e.replace(Wh,"")),[e=e.replace(/@\*/g,bh).replace(/@\w+/g,e=>".ng-trigger-"+e.substr(1)).replace(/:animating/g,wh),t]}(e.selector);t.currentQuerySelector=n.length?n+" "+r:r,th(t.collectedStyles,t.currentQuerySelector,{});const o=Bh(this,Dh(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:r,limit:s.limit||0,optional:!!s.optional,includeSelf:i,animation:o,originalSelector:e.selector,options:Jh(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");const n="full"===e.timings?{duration:0,delay:0,easing:"full"}:Ch(e.timings,t.errors,!0);return{type:12,animation:Bh(this,Dh(e.animation),t),timings:n,options:null}}}class Gh{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function Yh(e){return!Array.isArray(e)&&"object"==typeof e}function Jh(e){var t;return e?(e=Sh(e)).params&&(e.params=(t=e.params)?Sh(t):null):e={},e}function Xh(e,t,n){return{duration:e,delay:t,easing:n}}function ed(e,t,n,s,r,i,o=null,a=!1){return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:s,duration:r,delay:i,totalTime:r+i,easing:o,subTimeline:a}}class td{constructor(){this._map=new Map}consume(e){let t=this._map.get(e);return t?this._map.delete(e):t=[],t}append(e,t){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const nd=new RegExp(":enter","g"),sd=new RegExp(":leave","g");function rd(e,t,n,s,r,i={},o={},a,l,c=[]){return(new id).buildKeyframes(e,t,n,s,r,i,o,a,l,c)}class id{buildKeyframes(e,t,n,s,r,i,o,a,l,c=[]){l=l||new td;const u=new ad(e,t,l,s,r,c,[]);u.options=a,u.currentTimeline.setStyles([i],null,u.errors,a),Bh(this,n,u);const h=u.timelines.filter(e=>e.containsAnimation());if(h.length&&Object.keys(o).length){const e=h[h.length-1];e.allowOnlyTimelineStyles()||e.setStyles([o],null,u.errors,a)}return h.length?h.map(e=>e.buildKeyframes()):[ed(t,[],[],[],0,0,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const n=t.subInstructions.consume(t.element);if(n){const s=t.createSubContext(e.options),r=t.currentTimeline.currentTime,i=this._visitSubInstructions(n,s,s.options);r!=i&&t.transformIntoNewTimeline(i)}t.previousNode=e}visitAnimateRef(e,t){const n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}_visitSubInstructions(e,t,n){let s=t.currentTimeline.currentTime;const r=null!=n.duration?Eh(n.duration):null,i=null!=n.delay?Eh(n.delay):null;return 0!==r&&e.forEach(e=>{const n=t.appendInstructionToTimeline(e,r,i);s=Math.max(s,n.duration+n.delay)}),s}visitReference(e,t){t.updateOptions(e.options,!0),Bh(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const n=t.subContextCount;let s=t;const r=e.options;if(r&&(r.params||r.delay)&&(s=t.createSubContext(r),s.transformIntoNewTimeline(),null!=r.delay)){6==s.previousNode.type&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=od);const e=Eh(r.delay);s.delayNextStep(e)}e.steps.length&&(e.steps.forEach(e=>Bh(this,e,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>n&&s.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const n=[];let s=t.currentTimeline.currentTime;const r=e.options&&e.options.delay?Eh(e.options.delay):0;e.steps.forEach(i=>{const o=t.createSubContext(e.options);r&&o.delayNextStep(r),Bh(this,i,o),s=Math.max(s,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(e=>t.currentTimeline.mergeTimelineCollectedStyles(e)),t.transformIntoNewTimeline(s),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const n=e.strValue;return Ch(t.params?Vh(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const n=t.currentAnimateTimings=this._visitTiming(e.timings,t),s=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),s.snapshotCurrentStyles());const r=e.style;5==r.type?this.visitKeyframes(r,t):(t.incrementTime(n.duration),this.visitStyle(r,t),s.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const n=t.currentTimeline,s=t.currentAnimateTimings;!s&&n.getCurrentStyleProperties().length&&n.forwardFrame();const r=s&&s.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(r):n.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const n=t.currentAnimateTimings,s=t.currentTimeline.duration,r=n.duration,i=t.createSubContext().currentTimeline;i.easing=n.easing,e.styles.forEach(e=>{i.forwardTime((e.offset||0)*r),i.setStyles(e.styles,e.easing,t.errors,t.options),i.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(i),t.transformIntoNewTimeline(s+r),t.previousNode=e}visitQuery(e,t){const n=t.currentTimeline.currentTime,s=e.options||{},r=s.delay?Eh(s.delay):0;r&&(6===t.previousNode.type||0==n&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=od);let i=n;const o=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!s.optional,t.errors);t.currentQueryTotal=o.length;let a=null;o.forEach((n,s)=>{t.currentQueryIndex=s;const o=t.createSubContext(e.options,n);r&&o.delayNextStep(r),n===t.element&&(a=o.currentTimeline),Bh(this,e.animation,o),o.currentTimeline.applyStylesToKeyframe(),i=Math.max(i,o.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(i),a&&(t.currentTimeline.mergeTimelineCollectedStyles(a),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const n=t.parentContext,s=t.currentTimeline,r=e.timings,i=Math.abs(r.duration),o=i*(t.currentQueryTotal-1);let a=i*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const l=t.currentTimeline;a&&l.delayNextStep(a);const c=l.currentTime;Bh(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=s.currentTime-c+(s.startTime-n.currentTimeline.startTime)}}const od={};class ad{constructor(e,t,n,s,r,i,o,a){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=s,this._leaveClassName=r,this.errors=i,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=od,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new ld(this._driver,t,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const n=e;let s=this.options;null!=n.duration&&(s.duration=Eh(n.duration)),null!=n.delay&&(s.delay=Eh(n.delay));const r=n.params;if(r){let e=s.params;e||(e=this.options.params={}),Object.keys(r).forEach(n=>{t&&e.hasOwnProperty(n)||(e[n]=Vh(r[n],e,this.errors))})}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const n=e.params={};Object.keys(t).forEach(e=>{n[e]=t[e]})}}return e}createSubContext(e=null,t,n){const s=t||this.element,r=new ad(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,n||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(e){return this.previousNode=od,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,n){const s={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},r=new cd(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,s,e.stretchStartingKeyframe);return this.timelines.push(r),s}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,n,s,r,i){let o=[];if(s&&o.push(this.element),e.length>0){e=(e=e.replace(nd,"."+this._enterClassName)).replace(sd,"."+this._leaveClassName);let t=this._driver.query(this.element,e,1!=n);0!==n&&(t=n<0?t.slice(t.length+n,t.length):t.slice(0,n)),o.push(...t)}return r||0!=o.length||i.push(`\`query("${t}")\` returned zero elements. (Use \`query("${t}", { optional: true })\` if you wish to allow this.)`),o}}class ld{constructor(e,t,n,s){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=s,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(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(e){const t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new ld(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){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))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||$u,this._currentKeyframe[e]=$u}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,n,s){t&&(this._previousKeyframe.easing=t);const r=s&&s.params||{},i=function(e,t){const n={};let s;return e.forEach(e=>{"*"===e?(s=s||Object.keys(t),s.forEach(e=>{n[e]=$u})):xh(e,!1,n)}),n}(e,this._globalTimelineStyles);Object.keys(i).forEach(e=>{const t=Vh(i[e],r,n);this._pendingStyles[e]=t,this._localTimelineStyles.hasOwnProperty(e)||(this._backFill[e]=this._globalTimelineStyles.hasOwnProperty(e)?this._globalTimelineStyles[e]:$u),this._updateStyle(e,t)})}applyStylesToKeyframe(){const e=this._pendingStyles,t=Object.keys(e);0!=t.length&&(this._pendingStyles={},t.forEach(t=>{this._currentKeyframe[t]=e[t]}),Object.keys(this._localTimelineStyles).forEach(e=>{this._currentKeyframe.hasOwnProperty(e)||(this._currentKeyframe[e]=this._localTimelineStyles[e])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(e=>{const t=this._localTimelineStyles[e];this._pendingStyles[e]=t,this._updateStyle(e,t)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){Object.keys(e._styleSummary).forEach(t=>{const n=this._styleSummary[t],s=e._styleSummary[t];(!n||s.time>n.time)&&this._updateStyle(t,s.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,n=1===this._keyframes.size&&0===this.duration;let s=[];this._keyframes.forEach((r,i)=>{const o=xh(r,!0);Object.keys(o).forEach(n=>{const s=o[n];"!"==s?e.add(n):s==$u&&t.add(n)}),n||(o.offset=i/this.duration),s.push(o)});const r=e.size?Fh(e.values()):[],i=t.size?Fh(t.values()):[];if(n){const e=s[0],t=Sh(e);e.offset=0,t.offset=1,s=[e,t]}return ed(this.element,s,r,i,this.duration,this.startTime,this.easing,!1)}}class cd extends ld{constructor(e,t,n,s,r,i,o=!1){super(e,t,i.delay),this.element=t,this.keyframes=n,this.preStyleProps=s,this.postStyleProps=r,this._stretchStartingKeyframe=o,this.timings={duration:i.duration,delay:i.delay,easing:i.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:n,easing:s}=this.timings;if(this._stretchStartingKeyframe&&t){const r=[],i=n+t,o=t/i,a=xh(e[0],!1);a.offset=0,r.push(a);const l=xh(e[0],!1);l.offset=ud(o),r.push(l);const c=e.length-1;for(let s=1;s<=c;s++){let o=xh(e[s],!1);o.offset=ud((t+o.offset*n)/i),r.push(o)}n=i,t=0,s="",e=r}return ed(this.element,e,this.preStyleProps,this.postStyleProps,n,t,s,!0)}}function ud(e,t=3){const n=Math.pow(10,t-1);return Math.round(e*n)/n}class hd{}class dd extends hd{normalizePropertyName(e,t){return Mh(e)}normalizeStyleValue(e,t,n,s){let r="";const i=n.toString().trim();if(pd[t]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{const t=n.match(/^[+-]?[\d\.]+([a-z]*)$/);t&&0==t[1].length&&s.push(`Please provide a CSS unit value for ${e}:${n}`)}return i+r}}const pd=(()=>function(e){const t={};return e.forEach(e=>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 fd(e,t,n,s,r,i,o,a,l,c,u,h,d){return{type:0,element:e,triggerName:t,isRemovalTransition:r,fromState:n,fromStyles:i,toState:s,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:h,errors:d}}const md={};class gd{constructor(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}match(e,t,n,s){return function(e,t,n,s,r){return e.some(e=>e(t,n,s,r))}(this.ast.matchers,e,t,n,s)}buildStyles(e,t,n){const s=this._stateStyles["*"],r=this._stateStyles[e],i=s?s.buildStyles(t,n):{};return r?r.buildStyles(t,n):i}build(e,t,n,s,r,i,o,a,l,c){const u=[],h=this.ast.options&&this.ast.options.params||md,d=this.buildStyles(n,o&&o.params||md,u),p=a&&a.params||md,f=this.buildStyles(s,p,u),m=new Set,g=new Map,_=new Map,y="void"===s,b={params:Object.assign(Object.assign({},h),p)},v=c?[]:rd(e,t,this.ast.animation,r,i,d,f,b,l,u);let w=0;if(v.forEach(e=>{w=Math.max(e.duration+e.delay,w)}),u.length)return fd(t,this._triggerName,n,s,y,d,f,[],[],g,_,w,u);v.forEach(e=>{const n=e.element,s=th(g,n,{});e.preStyleProps.forEach(e=>s[e]=!0);const r=th(_,n,{});e.postStyleProps.forEach(e=>r[e]=!0),n!==t&&m.add(n)});const E=Fh(m.values());return fd(t,this._triggerName,n,s,y,d,f,v,E,g,_,w)}}class _d{constructor(e,t){this.styles=e,this.defaultParams=t}buildStyles(e,t){const n={},s=Sh(this.defaultParams);return Object.keys(e).forEach(t=>{const n=e[t];null!=n&&(s[t]=n)}),this.styles.styles.forEach(e=>{if("string"!=typeof e){const r=e;Object.keys(r).forEach(e=>{let i=r[e];i.length>1&&(i=Vh(i,s,t)),n[e]=i})}}),n}}class yd{constructor(e,t){this.name=e,this.ast=t,this.transitionFactories=[],this.states={},t.states.forEach(e=>{this.states[e.name]=new _d(e.style,e.options&&e.options.params||{})}),bd(this.states,"true","1"),bd(this.states,"false","0"),t.transitions.forEach(t=>{this.transitionFactories.push(new gd(e,t,this.states))}),this.fallbackTransition=new gd(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[(e,t)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,n,s){return this.transitionFactories.find(r=>r.match(e,t,n,s))||null}matchStyles(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}}function bd(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}const vd=new td;class wd{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(e,t){const n=[],s=Uh(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[e]=s}_buildPlayer(e,t,n){const s=e.element,r=Yu(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(s,r,e.duration,e.delay,e.easing,[],!0)}create(e,t,n={}){const s=[],r=this._animations[e];let i;const o=new Map;if(r?(i=rd(this._driver,t,r,gh,_h,{},{},n,vd,s),i.forEach(e=>{const t=th(o,e.element,{});e.postStyleProps.forEach(e=>t[e]=null)})):(s.push("The requested animation doesn't exist or has already been destroyed"),i=[]),s.length)throw new Error("Unable to create the animation due to the following errors: "+s.join("\n"));o.forEach((e,t)=>{Object.keys(e).forEach(n=>{e[n]=this._driver.computeStyle(t,n,$u)})});const a=Gu(i.map(e=>{const t=o.get(e.element);return this._buildPlayer(e,{},t)}));return this._playersById[e]=a,a.onDestroy(()=>this.destroy(e)),this.players.push(a),a}destroy(e){const t=this._getPlayer(e);t.destroy(),delete this._playersById[e];const n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}_getPlayer(e){const t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by "+e);return t}listen(e,t,n,s){const r=eh(t,"","","");return Ju(this._getPlayer(e),n,r,s),()=>{}}command(e,t,n,s){if("register"==n)return void this.register(e,s[0]);if("create"==n)return void this.create(e,t,s[0]||{});const 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(s[0]));break;case"destroy":this.destroy(e)}}}const Ed="ng-animate-queued",kd="ng-animate-disabled",Cd=".ng-animate-disabled",Sd=[],xd={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Td={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class Ad{constructor(e,t=""){this.namespaceId=t;const n=e&&e.hasOwnProperty("value");if(this.value=null!=(s=n?e.value:e)?s:null,n){const t=Sh(e);delete t.value,this.options=t}else this.options={};var s;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const t=e.params;if(t){const e=this.options.params;Object.keys(t).forEach(n=>{null==e[n]&&(e[n]=t[n])})}}}const Id="void",Od=new Ad(Id);class Dd{constructor(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,jd(t,this._hostClassName)}listen(e,t,n,s){if(!this._triggers.hasOwnProperty(t))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${t}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${t}" because the provided event is undefined!`);if("start"!=(r=n)&&"done"!=r)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${t}" is not supported!`);var r;const i=th(this._elementListeners,e,[]),o={name:t,phase:n,callback:s};i.push(o);const a=th(this._engine.statesByElement,e,{});return a.hasOwnProperty(t)||(jd(e,yh),jd(e,"ng-trigger-"+t),a[t]=Od),()=>{this._engine.afterFlush(()=>{const e=i.indexOf(o);e>=0&&i.splice(e,1),this._triggers[t]||delete a[t]})}}register(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}_getTrigger(e){const t=this._triggers[e];if(!t)throw new Error(`The provided animation trigger "${e}" has not been registered!`);return t}trigger(e,t,n,s=!0){const r=this._getTrigger(t),i=new Pd(this.id,t,e);let o=this._engine.statesByElement.get(e);o||(jd(e,yh),jd(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,o={}));let a=o[t];const l=new Ad(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[t]=l,a||(a=Od),l.value!==Id&&a.value===l.value){if(!function(e,t){const n=Object.keys(e),s=Object.keys(t);if(n.length!=s.length)return!1;for(let r=0;r<n.length;r++){const s=n[r];if(!t.hasOwnProperty(s)||e[s]!==t[s])return!1}return!0}(a.params,l.params)){const t=[],n=r.matchStyles(a.value,a.params,t),s=r.matchStyles(l.value,l.params,t);t.length?this._engine.reportError(t):this._engine.afterFlush(()=>{Oh(e,n),Ih(e,s)})}return}const c=th(this._engine.playersByElement,e,[]);c.forEach(e=>{e.namespaceId==this.id&&e.triggerName==t&&e.queued&&e.destroy()});let u=r.matchTransition(a.value,l.value,e,l.params),h=!1;if(!u){if(!s)return;u=r.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:u,fromState:a,toState:l,player:i,isFallbackTransition:h}),h||(jd(e,Ed),i.onStart(()=>{Ld(e,Ed)})),i.onDone(()=>{let t=this.players.indexOf(i);t>=0&&this.players.splice(t,1);const n=this._engine.playersByElement.get(e);if(n){let e=n.indexOf(i);e>=0&&n.splice(e,1)}}),this.players.push(i),c.push(i),i}deregister(e){delete this._triggers[e],this._engine.statesByElement.forEach((t,n)=>{delete t[e]}),this._elementListeners.forEach((t,n)=>{this._elementListeners.set(n,t.filter(t=>t.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach(e=>e.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const n=this._engine.driver.query(e,bh,!0);n.forEach(e=>{if(e.__ng_removed)return;const n=this._engine.fetchNamespacesByElement(e);n.size?n.forEach(n=>n.triggerLeaveAnimation(e,t,!1,!0)):this.clearElementCache(e)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(e=>this.clearElementCache(e)))}triggerLeaveAnimation(e,t,n,s){const r=this._engine.statesByElement.get(e);if(r){const i=[];if(Object.keys(r).forEach(t=>{if(this._triggers[t]){const n=this.trigger(e,t,Id,s);n&&i.push(n)}}),i.length)return this._engine.markElementAsRemoved(this.id,e,!0,t),n&&Gu(i).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e);if(t){const n=new Set;t.forEach(t=>{const s=t.name;if(n.has(s))return;n.add(s);const r=this._triggers[s].fallbackTransition,i=this._engine.statesByElement.get(e)[s]||Od,o=new Ad(Id),a=new Pd(this.id,s,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:s,transition:r,fromState:i,toState:o,player:a,isFallbackTransition:!0})})}}removeNode(e,t){const n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let s=!1;if(n.totalAnimations){const t=n.players.length?n.playersByQueriedElement.get(e):[];if(t&&t.length)s=!0;else{let t=e;for(;t=t.parentNode;)if(n.statesByElement.get(t)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(e),s)n.markElementAsRemoved(this.id,e,!1,t);else{const s=e.__ng_removed;s&&s!==xd||(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,t))}}insertNode(e,t){jd(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach(n=>{const s=n.player;if(s.destroyed)return;const r=n.element,i=this._elementListeners.get(r);i&&i.forEach(t=>{if(t.name==n.triggerName){const s=eh(r,n.triggerName,n.fromState.value,n.toState.value);s._data=e,Ju(n.player,t.phase,s,t.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):t.push(n)}),this._queue=[],t.sort((e,t)=>{const n=e.transition.ast.depCount,s=t.transition.ast.depCount;return 0==n||0==s?n-s:this._engine.driver.containsElement(e.element,t.element)?1:-1})}destroy(e){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find(t=>t.element===e)||t,t}}class Nd{constructor(e,t,n){this.bodyNode=e,this.driver=t,this._normalizer=n,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=(e,t)=>{}}_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){const e=[];return this._namespaceList.forEach(t=>{t.players.forEach(t=>{t.queued&&e.push(t)})}),e}createNamespace(e,t){const n=new Dd(e,t,this);return t.parentNode?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,t){const n=this._namespaceList.length-1;if(n>=0){let s=!1;for(let r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,t)){this._namespaceList.splice(r+1,0,e),s=!0;break}s||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}register(e,t){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}registerTrigger(e,t,n){let s=this._namespaceLookup[e];s&&s.register(t,n)&&this.totalAnimations++}destroy(e,t){if(!e)return;const n=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[e];const t=this._namespaceList.indexOf(n);t>=0&&this._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(()=>n.destroy(t))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,n=this.statesByElement.get(e);if(n){const e=Object.keys(n);for(let s=0;s<e.length;s++){const r=n[e[s]].namespaceId;if(r){const e=this._fetchNamespace(r);e&&t.add(e)}}}return t}trigger(e,t,n,s){if(Vd(t)){const r=this._fetchNamespace(e);if(r)return r.trigger(t,n,s),!0}return!1}insertNode(e,t,n,s){if(!Vd(t))return;const r=t.__ng_removed;if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;const e=this.collectedLeaveElements.indexOf(t);e>=0&&this.collectedLeaveElements.splice(e,1)}if(e){const s=this._fetchNamespace(e);s&&s.insertNode(t,n)}s&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),jd(e,kd)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Ld(e,kd))}removeNode(e,t,n,s){if(Vd(t)){const r=e?this._fetchNamespace(e):null;if(r?r.removeNode(t,s):this.markElementAsRemoved(e,t,!1,s),n){const n=this.namespacesByHostElement.get(t);n&&n.id!==e&&n.removeNode(t,s)}}else this._onRemovalComplete(t,s)}markElementAsRemoved(e,t,n,s){this.collectedLeaveElements.push(t),t.__ng_removed={namespaceId:e,setForRemoval:s,hasAnimation:n,removedBeforeQueried:!1}}listen(e,t,n,s,r){return Vd(t)?this._fetchNamespace(e).listen(t,n,s,r):()=>{}}_buildInstruction(e,t,n,s,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,s,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,bh,!0);t.forEach(e=>this.destroyActiveAnimationsForElement(e)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,wh,!0),t.forEach(e=>this.finishActiveQueriedAnimationOnElement(e)))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach(e=>{e.queued?e.markedForDestroy=!0:e.destroy()})}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach(e=>e.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Gu(this.players).onDone(()=>e());e()})}processLeaveNode(e){const t=e.__ng_removed;if(t&&t.setForRemoval){if(e.__ng_removed=xd,t.namespaceId){this.destroyInnerAnimations(e);const n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}this.driver.matchesElement(e,Cd)&&this.markElementAsDisabled(e,!1),this.driver.query(e,Cd,!0).forEach(e=>{this.markElementAsDisabled(e,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((e,t)=>this._balanceNamespaceList(e,t)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++)jd(this.collectedEnterElements[n],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const n=[];try{t=this._flushAnimations(n,e)}finally{for(let e=0;e<n.length;e++)n[e]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++)this.processLeaveNode(this.collectedLeaveElements[n]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(e=>e()),this._flushFns=[],this._whenQuietFns.length){const e=this._whenQuietFns;this._whenQuietFns=[],t.length?Gu(t).onDone(()=>{e.forEach(e=>e())}):e.forEach(e=>e())}}reportError(e){throw new Error("Unable to process animations due to the following failed trigger transitions\n "+e.join("\n"))}_flushAnimations(e,t){const n=new td,s=[],r=new Map,i=[],o=new Map,a=new Map,l=new Map,c=new Set;this.disabledNodes.forEach(e=>{c.add(e);const t=this.driver.query(e,".ng-animate-queued",!0);for(let n=0;n<t.length;n++)c.add(t[n])});const u=this.bodyNode,h=Array.from(this.statesByElement.keys()),d=Md(h,this.collectedEnterElements),p=new Map;let f=0;d.forEach((e,t)=>{const n=gh+f++;p.set(t,n),e.forEach(e=>jd(e,n))});const m=[],g=new Set,_=new Set;for(let O=0;O<this.collectedLeaveElements.length;O++){const e=this.collectedLeaveElements[O],t=e.__ng_removed;t&&t.setForRemoval&&(m.push(e),g.add(e),t.hasAnimation?this.driver.query(e,".ng-star-inserted",!0).forEach(e=>g.add(e)):_.add(e))}const y=new Map,b=Md(h,Array.from(g));b.forEach((e,t)=>{const n=_h+f++;y.set(t,n),e.forEach(e=>jd(e,n))}),e.push(()=>{d.forEach((e,t)=>{const n=p.get(t);e.forEach(e=>Ld(e,n))}),b.forEach((e,t)=>{const n=y.get(t);e.forEach(e=>Ld(e,n))}),m.forEach(e=>{this.processLeaveNode(e)})});const v=[],w=[];for(let O=this._namespaceList.length-1;O>=0;O--)this._namespaceList[O].drainQueuedTransitions(t).forEach(e=>{const t=e.player,r=e.element;if(v.push(t),this.collectedEnterElements.length){const e=r.__ng_removed;if(e&&e.setForMove)return void t.destroy()}const c=!u||!this.driver.containsElement(u,r),h=y.get(r),d=p.get(r),f=this._buildInstruction(e,n,d,h,c);if(f.errors&&f.errors.length)w.push(f);else{if(c)return t.onStart(()=>Oh(r,f.fromStyles)),t.onDestroy(()=>Ih(r,f.toStyles)),void s.push(t);if(e.isFallbackTransition)return t.onStart(()=>Oh(r,f.fromStyles)),t.onDestroy(()=>Ih(r,f.toStyles)),void s.push(t);f.timelines.forEach(e=>e.stretchStartingKeyframe=!0),n.append(r,f.timelines),i.push({instruction:f,player:t,element:r}),f.queriedElements.forEach(e=>th(o,e,[]).push(t)),f.preStyleProps.forEach((e,t)=>{const n=Object.keys(e);if(n.length){let e=a.get(t);e||a.set(t,e=new Set),n.forEach(t=>e.add(t))}}),f.postStyleProps.forEach((e,t)=>{const n=Object.keys(e);let s=l.get(t);s||l.set(t,s=new Set),n.forEach(e=>s.add(e))})}});if(w.length){const e=[];w.forEach(t=>{e.push(`@${t.triggerName} has failed due to:\n`),t.errors.forEach(t=>e.push(`- ${t}\n`))}),v.forEach(e=>e.destroy()),this.reportError(e)}const E=new Map,k=new Map;i.forEach(e=>{const t=e.element;n.has(t)&&(k.set(t,t),this._beforeAnimationBuild(e.player.namespaceId,e.instruction,E))}),s.forEach(e=>{const t=e.element;this._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(e=>{th(E,t,[]).push(e),e.destroy()})});const C=m.filter(e=>Hd(e,a,l)),S=new Map;Rd(S,this.driver,_,l,$u).forEach(e=>{Hd(e,a,l)&&C.push(e)});const x=new Map;d.forEach((e,t)=>{Rd(x,this.driver,new Set(e),a,"!")}),C.forEach(e=>{const t=S.get(e),n=x.get(e);S.set(e,Object.assign(Object.assign({},t),n))});const T=[],A=[],I={};i.forEach(e=>{const{element:t,player:i,instruction:o}=e;if(n.has(t)){if(c.has(t))return i.onDestroy(()=>Ih(t,o.toStyles)),i.disabled=!0,i.overrideTotalTime(o.totalTime),void s.push(i);let e=I;if(k.size>1){let n=t;const s=[];for(;n=n.parentNode;){const t=k.get(n);if(t){e=t;break}s.push(n)}s.forEach(t=>k.set(t,e))}const n=this._buildAnimation(i.namespaceId,o,E,r,x,S);if(i.setRealPlayer(n),e===I)T.push(i);else{const t=this.playersByElement.get(e);t&&t.length&&(i.parentPlayer=Gu(t)),s.push(i)}}else Oh(t,o.fromStyles),i.onDestroy(()=>Ih(t,o.toStyles)),A.push(i),c.has(t)&&s.push(i)}),A.forEach(e=>{const t=r.get(e.element);if(t&&t.length){const n=Gu(t);e.setRealPlayer(n)}}),s.forEach(e=>{e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(let O=0;O<m.length;O++){const e=m[O],t=e.__ng_removed;if(Ld(e,_h),t&&t.hasAnimation)continue;let n=[];if(o.size){let t=o.get(e);t&&t.length&&n.push(...t);let s=this.driver.query(e,wh,!0);for(let e=0;e<s.length;e++){let t=o.get(s[e]);t&&t.length&&n.push(...t)}}const s=n.filter(e=>!e.destroyed);s.length?Bd(this,e,s):this.processLeaveNode(e)}return m.length=0,T.forEach(e=>{this.players.push(e),e.onDone(()=>{e.destroy();const t=this.players.indexOf(e);this.players.splice(t,1)}),e.play()}),T}elementContainsData(e,t){let n=!1;const s=t.__ng_removed;return s&&s.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}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,n,s,r){let i=[];if(t){const t=this.playersByQueriedElement.get(e);t&&(i=t)}else{const t=this.playersByElement.get(e);if(t){const e=!r||r==Id;t.forEach(t=>{t.queued||(e||t.triggerName==s)&&i.push(t)})}}return(n||s)&&(i=i.filter(e=>!(n&&n!=e.namespaceId||s&&s!=e.triggerName))),i}_beforeAnimationBuild(e,t,n){const s=t.element,r=t.isRemovalTransition?void 0:e,i=t.isRemovalTransition?void 0:t.triggerName;for(const o of t.timelines){const e=o.element,a=e!==s,l=th(n,e,[]);this._getPreviousPlayers(e,a,r,i,t.toState).forEach(e=>{const t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),l.push(e)})}Oh(s,t.fromStyles)}_buildAnimation(e,t,n,s,r,i){const o=t.triggerName,a=t.element,l=[],c=new Set,u=new Set,h=t.timelines.map(t=>{const h=t.element;c.add(h);const d=h.__ng_removed;if(d&&d.removedBeforeQueried)return new Wu(t.duration,t.delay);const p=h!==a,f=function(e){const t=[];return function e(t,n){for(let s=0;s<t.length;s++){const r=t[s];r instanceof Uu?e(r.players,n):n.push(r)}}(e,t),t}((n.get(h)||Sd).map(e=>e.getRealPlayer())).filter(e=>!!e.element&&e.element===h),m=r.get(h),g=i.get(h),_=Yu(0,this._normalizer,0,t.keyframes,m,g),y=this._buildPlayer(t,_,f);if(t.subTimeline&&s&&u.add(h),p){const t=new Pd(e,o,h);t.setRealPlayer(y),l.push(t)}return y});l.forEach(e=>{th(this.playersByQueriedElement,e.element,[]).push(e),e.onDone(()=>function(e,t,n){let s;if(e instanceof Map){if(s=e.get(t),s){if(s.length){const e=s.indexOf(n);s.splice(e,1)}0==s.length&&e.delete(t)}}else if(s=e[t],s){if(s.length){const e=s.indexOf(n);s.splice(e,1)}0==s.length&&delete e[t]}return s}(this.playersByQueriedElement,e.element,e))}),c.forEach(e=>jd(e,vh));const d=Gu(h);return d.onDestroy(()=>{c.forEach(e=>Ld(e,vh)),Ih(a,t.toStyles)}),u.forEach(e=>{th(s,e,[]).push(d)}),d}_buildPlayer(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new Wu(e.duration,e.delay)}}class Pd{constructor(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new Wu,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(t=>{this._queuedCallbacks[t].forEach(n=>Ju(e,t,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){th(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function Vd(e){return e&&1===e.nodeType}function Fd(e,t){const n=e.style.display;return e.style.display=null!=t?t:"none",n}function Rd(e,t,n,s,r){const i=[];n.forEach(e=>i.push(Fd(e)));const o=[];s.forEach((n,s)=>{const i={};n.forEach(e=>{const n=i[e]=t.computeStyle(s,e,r);n&&0!=n.length||(s.__ng_removed=Td,o.push(s))}),e.set(s,i)});let a=0;return n.forEach(e=>Fd(e,i[a++])),o}function Md(e,t){const n=new Map;if(e.forEach(e=>n.set(e,[])),0==t.length)return n;const s=new Set(t),r=new Map;return t.forEach(e=>{const t=function e(t){if(!t)return 1;let i=r.get(t);if(i)return i;const o=t.parentNode;return i=n.has(o)?o:s.has(o)?1:e(o),r.set(t,i),i}(e);1!==t&&n.get(t).push(e)}),n}function jd(e,t){if(e.classList)e.classList.add(t);else{let n=e.$$classes;n||(n=e.$$classes={}),n[t]=!0}}function Ld(e,t){if(e.classList)e.classList.remove(t);else{let n=e.$$classes;n&&delete n[t]}}function Bd(e,t,n){Gu(n).onDone(()=>e.processLeaveNode(t))}function Hd(e,t,n){const s=n.get(e);if(!s)return!1;let r=t.get(e);return r?s.forEach(e=>r.add(e)):t.set(e,s),n.delete(e),!0}class qd{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._triggerCache={},this.onRemovalComplete=(e,t)=>{},this._transitionEngine=new Nd(e,t,n),this._timelineEngine=new wd(e,t,n),this._transitionEngine.onRemovalComplete=(e,t)=>this.onRemovalComplete(e,t)}registerTrigger(e,t,n,s,r){const i=e+"-"+s;let o=this._triggerCache[i];if(!o){const e=[],t=Uh(this._driver,r,e);if(e.length)throw new Error(`The animation trigger "${s}" has failed to build due to the following errors:\n - ${e.join("\n - ")}`);o=function(e,t){return new yd(e,t)}(s,t),this._triggerCache[i]=o}this._transitionEngine.registerTrigger(t,s,o)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,n,s){this._transitionEngine.insertNode(e,t,n,s)}onRemove(e,t,n,s){this._transitionEngine.removeNode(e,t,s||!1,n)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,n,s){if("@"==n.charAt(0)){const[e,r]=nh(n);this._timelineEngine.command(e,t,r,s)}else this._transitionEngine.trigger(e,t,n,s)}listen(e,t,n,s,r){if("@"==n.charAt(0)){const[e,s]=nh(n);return this._timelineEngine.listen(e,t,s,r)}return this._transitionEngine.listen(e,t,n,s,r)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function $d(e,t){let n=null,s=null;return Array.isArray(t)&&t.length?(n=Zd(t[0]),t.length>1&&(s=Zd(t[t.length-1]))):t&&(n=Zd(t)),n||s?new zd(e,n,s):null}let zd=(()=>{class e{constructor(t,n,s){this._element=t,this._startStyles=n,this._endStyles=s,this._state=0;let r=e.initialStylesByElement.get(t);r||e.initialStylesByElement.set(t,r={}),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&Ih(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ih(this._element,this._initialStyles),this._endStyles&&(Ih(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(Oh(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Oh(this._element,this._endStyles),this._endStyles=null),Ih(this._element,this._initialStyles),this._state=3)}}return e.initialStylesByElement=new WeakMap,e})();function Zd(e){let t=null;const n=Object.keys(e);for(let s=0;s<n.length;s++){const r=n[s];Qd(r)&&(t=t||{},t[r]=e[r])}return t}function Qd(e){return"display"===e||"position"===e}const Wd="animation",Ud="animationend";class Kd{constructor(e,t,n,s,r,i,o){this._element=e,this._name=t,this._duration=n,this._delay=s,this._easing=r,this._fillMode=i,this._onDoneFn=o,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=e=>this._handleCallback(e)}apply(){!function(e,t){const n=tp(e,"").trim();n.length&&(function(e,t){let n=0;for(let s=0;s<e.length;s++)","===e.charAt(s)&&n++}(n),t=`${n}, ${t}`),ep(e,"",t)}(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),Xd(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){Gd(this._element,this._name,"paused")}resume(){Gd(this._element,this._name,"running")}setPosition(e){const t=Yd(this._element,this._name);this._position=e*this._duration,ep(this._element,"Delay",`-${this._position}ms`,t)}getPosition(){return this._position}_handleCallback(e){const 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()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Xd(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(e,t){const n=tp(e,"").split(","),s=Jd(n,t);s>=0&&(n.splice(s,1),ep(e,"",n.join(",")))}(this._element,this._name))}}function Gd(e,t,n){ep(e,"PlayState",n,Yd(e,t))}function Yd(e,t){const n=tp(e,"");return n.indexOf(",")>0?Jd(n.split(","),t):Jd([n],t)}function Jd(e,t){for(let n=0;n<e.length;n++)if(e[n].indexOf(t)>=0)return n;return-1}function Xd(e,t,n){n?e.removeEventListener(Ud,t):e.addEventListener(Ud,t)}function ep(e,t,n,s){const r=Wd+t;if(null!=s){const t=e.style[r];if(t.length){const e=t.split(",");e[s]=n,n=e.join(",")}}e.style[r]=n}function tp(e,t){return e.style[Wd+t]}class np{constructor(e,t,n,s,r,i,o,a){this.element=e,this.keyframes=t,this.animationName=n,this._duration=s,this._delay=r,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=i||"linear",this.totalTime=s+r,this._buildStyler()}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(e){this._styler.setPosition(e)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new Kd(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}beforeDestroy(){this.init();const e={};if(this.hasStarted()){const t=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(e[n]=t?this._finalStyles[n]:Hh(this.element,n))})}this.currentSnapshot=e}}class sp extends Wu{constructor(e,t){super(),this.element=e,this._startingStyles={},this.__initialized=!1,this._styles=ph(t)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(e=>{this._startingStyles[e]=this.element.style[e]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(e=>this.element.style.setProperty(e,this._styles[e])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(e=>{const t=this._startingStyles[e];t?this.element.style.setProperty(e,t):this.element.style.removeProperty(e)}),this._startingStyles=null,super.destroy())}}class rp{constructor(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}validateStyleProperty(e){return ch(e)}matchesElement(e,t){return uh(e,t)}containsElement(e,t){return hh(e,t)}query(e,t,n){return dh(e,t,n)}computeStyle(e,t,n){return window.getComputedStyle(e)[t]}buildKeyframeElement(e,t,n){n=n.map(e=>ph(e));let s=`@keyframes ${t} {\n`,r="";n.forEach(e=>{r=" ";const t=parseFloat(e.offset);s+=`${r}${100*t}% {\n`,r+=" ",Object.keys(e).forEach(t=>{const n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(s+=`${r}animation-timing-function: ${n};\n`));default:return void(s+=`${r}${t}: ${n};\n`)}}),s+=r+"}\n"}),s+="}\n";const i=document.createElement("style");return i.innerHTML=s,i}animate(e,t,n,s,r,i=[],o){o&&this._notifyFaultyScrubber();const a=i.filter(e=>e instanceof np),l={};jh(n,s)&&a.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>l[e]=t[e])});const c=function(e){let t={};return e&&(Array.isArray(e)?e:[e]).forEach(e=>{Object.keys(e).forEach(n=>{"offset"!=n&&"easing"!=n&&(t[n]=e[n])})}),t}(t=Lh(e,t,l));if(0==n)return new sp(e,c);const u="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(e,u,t);document.querySelector("head").appendChild(h);const d=$d(e,t),p=new np(e,t,u,n,s,r,c,d);return p.onDestroy(()=>{var e;(e=h).parentNode.removeChild(e)}),p}_notifyFaultyScrubber(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}class ip{constructor(e,t,n,s){this.element=e,this.keyframes=t,this.options=n,this._specialStyles=s,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=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(e,t,n){return e.animate(t,n)}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(t=>{"offset"!=t&&(e[t]=this._finished?this._finalKeyframe[t]:Hh(this.element,t))}),this.currentSnapshot=e}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}class op{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(ap().toString()),this._cssKeyframesDriver=new rp}validateStyleProperty(e){return ch(e)}matchesElement(e,t){return uh(e,t)}containsElement(e,t){return hh(e,t)}query(e,t,n){return dh(e,t,n)}computeStyle(e,t,n){return window.getComputedStyle(e)[t]}overrideWebAnimationsSupport(e){this._isNativeImpl=e}animate(e,t,n,s,r,i=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,s,r,i);const a={duration:n,delay:s,fill:0==s?"both":"forwards"};r&&(a.easing=r);const l={},c=i.filter(e=>e instanceof ip);jh(n,s)&&c.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>l[e]=t[e])});const u=$d(e,t=Lh(e,t=t.map(e=>xh(e,!1)),l));return new ip(e,t,a,u)}}function ap(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}let lp=(()=>{class e extends qu{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:it.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(e)?zu(e):e;return hp(this._renderer,null,t,"register",[n]),new cp(t,this._renderer)}}return e.\u0275fac=function(t){return new(t||e)(Qe(co),Qe(Al))},e.\u0275prov=ae({token:e,factory:e.\u0275fac}),e})();class cp extends class{}{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new up(this._id,e,t||{},this._renderer)}}class up{constructor(e,t,n,s){this.id=e,this.element=t,this._renderer=s,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(e,t){return this._renderer.listen(this.element,`@@${this.id}:${e}`,t)}_command(e,...t){return hp(this._renderer,this.element,this.id,e,t)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset")}setPosition(e){this._command("setPosition",e)}getPosition(){return 0}}function hp(e,t,n,s,r){return e.setProperty(t,`@@${n}:${s}`,r)}const dp="@",pp="@.disabled";let fp=(()=>{class e{constructor(e,t,n){this.delegate=e,this.engine=t,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(e,t)=>{t&&t.parentNode(e)&&t.removeChild(e.parentNode,e)}}createRenderer(e,t){const n=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let e=this._rendererCache.get(n);return e||(e=new mp("",n,this.engine),this._rendererCache.set(n,e)),e}const s=t.id,r=t.id+"-"+this._currentId;this._currentId++,this.engine.register(r,e);const i=t=>{Array.isArray(t)?t.forEach(i):this.engine.registerTrigger(s,r,e,t.name,t)};return t.data.animation.forEach(i),new gp(this,r,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,n){e>=0&&e<this._microtaskId?this._zone.run(()=>t(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(e=>{const[t,n]=e;t(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,n]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return e.\u0275fac=function(t){return new(t||e)(Qe(co),Qe(qd),Qe(Fa))},e.\u0275prov=ae({token:e,factory:e.\u0275fac}),e})();class mp{constructor(e,t,n){this.namespaceId=e,this.delegate=t,this.engine=n,this.destroyNode=this.delegate.destroyNode?e=>t.destroyNode(e):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,n){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,!0)}removeChild(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,n,s){this.delegate.setAttribute(e,t,n,s)}removeAttribute(e,t,n){this.delegate.removeAttribute(e,t,n)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,n,s){this.delegate.setStyle(e,t,n,s)}removeStyle(e,t,n){this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){t.charAt(0)==dp&&t==pp?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,n){return this.delegate.listen(e,t,n)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}class gp extends mp{constructor(e,t,n,s){super(t,n,s),this.factory=e,this.namespaceId=t}setProperty(e,t,n){t.charAt(0)==dp?"."==t.charAt(1)&&t==pp?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)}listen(e,t,n){if(t.charAt(0)==dp){const s=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e);let r=t.substr(1),i="";return r.charAt(0)!=dp&&([r,i]=function(e){const t=e.indexOf(".");return[e.substring(0,t),e.substr(t+1)]}(r)),this.engine.listen(this.namespaceId,s,r,i,e=>{this.factory.scheduleListenerCallback(e._data||-1,n,e)})}return this.delegate.listen(e,t,n)}}let _p=(()=>{class e extends qd{constructor(e,t,n){super(e.body,t,n)}}return e.\u0275fac=function(t){return new(t||e)(Qe(Al),Qe(mh),Qe(hd))},e.\u0275prov=ae({token:e,factory:e.\u0275fac}),e})();const yp=new Fe("AnimationModuleType"),bp=[{provide:mh,useFactory:function(){return"function"==typeof ap()?new op:new rp}},{provide:yp,useValue:"BrowserAnimations"},{provide:qu,useClass:lp},{provide:hd,useFactory:function(){return new dd}},{provide:qd,useClass:_p},{provide:co,useFactory:function(e,t,n){return new fp(e,t,n)},deps:[Iu,qd,Fa]}];let vp=(()=>{class e{}return e.\u0275mod=pt({type:e}),e.\u0275inj=le({factory:function(t){return new(t||e)},providers:bp,imports:[Hu]}),e})();const wp=new mo("10.2.0"),Ep=new Fe("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let kp,Cp=(()=>{class e{constructor(e,t,n){this._hasDoneGlobalChecks=!1,this._document=n,e._applyBodyHighContrastModeCssClasses(),this._sanityChecks=t,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getDocument(){const e=this._document||document;return"object"==typeof e&&e?e:null}_getWindow(){const e=this._getDocument(),t=(null==e?void 0:e.defaultView)||window;return"object"==typeof t&&t?t:null}_checksAreEnabled(){return hs()&&!this._isTestEnv()}_isTestEnv(){const e=this._getWindow();return e&&(e.__karma__||e.jasmine)}_checkDoctypeIsDefined(){const e=this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype),t=this._getDocument();e&&t&&!t.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){const e=!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme,t=this._getDocument();if(e||!t||!t.body||"function"!=typeof getComputedStyle)return;const n=t.createElement("div");n.classList.add("mat-theme-loaded-marker"),t.body.appendChild(n);const s=getComputedStyle(n);s&&"none"!==s.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),t.body.removeChild(n)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&wp.full!==pu.full&&console.warn("The Angular Material version ("+wp.full+") does not match the Angular CDK version ("+pu.full+").\nPlease ensure the versions of these two packages exactly match.")}}return e.\u0275mod=pt({type:e}),e.\u0275inj=le({factory:function(t){return new(t||e)(Qe(du),Qe(Ep,8),Qe(Al,8))},imports:[[Ll],Ll]}),e})();function Sp(e){return class extends e{constructor(...e){super(...e),this._disabled=!1}get disabled(){return this._disabled}set disabled(e){this._disabled=rl(e)}}}function xp(e,t){return class extends e{constructor(...e){super(...e),this.defaultColor=t,this.color=t}get color(){return this._color}set color(e){const t=e||this.defaultColor;t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-"+this._color),t&&this._elementRef.nativeElement.classList.add("mat-"+t),this._color=t)}}}function Tp(e){return class extends e{constructor(...e){super(...e),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=rl(e)}}}function Ap(e,t=0){return class extends e{constructor(...e){super(...e),this._tabIndex=t,this.defaultTabIndex=t}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?il(e):this.defaultTabIndex}}}try{kp="undefined"!=typeof Intl}catch(sf){kp=!1}class Ip{constructor(e,t,n){this._renderer=e,this.element=t,this.config=n,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Op={enterDuration:450,exitDuration:400},Dp=jl({passive:!0}),Np=["mousedown","touchstart"],Pp=["mouseup","mouseleave","touchend","touchcancel"];class Vp{constructor(e,t,n,s){this._target=e,this._ngZone=t,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,s.isBrowser&&(this._containerElement=ol(n))}fadeInRipple(e,t,n={}){const s=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=Object.assign(Object.assign({},Op),n.animation);n.centered&&(e=s.left+s.width/2,t=s.top+s.height/2);const i=n.radius||function(e,t,n){const s=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(s*s+r*r)}(e,t,s),o=e-s.left,a=t-s.top,l=r.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=o-i+"px",c.style.top=a-i+"px",c.style.height=2*i+"px",c.style.width=2*i+"px",null!=n.color&&(c.style.backgroundColor=n.color),c.style.transitionDuration=l+"ms",this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";const u=new Ip(this,c,n);return u.state=0,this._activeRipples.add(u),n.persistent||(this._mostRecentTransientRipple=u),this._runTimeoutOutsideZone(()=>{const e=u===this._mostRecentTransientRipple;u.state=1,n.persistent||e&&this._isPointerDown||u.fadeOut()},l),u}fadeOutRipple(e){const t=this._activeRipples.delete(e);if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!t)return;const n=e.element,s=Object.assign(Object.assign({},Op),e.config.animation);n.style.transitionDuration=s.exitDuration+"ms",n.style.opacity="0",e.state=2,this._runTimeoutOutsideZone(()=>{e.state=3,n.parentNode.removeChild(n)},s.exitDuration)}fadeOutAll(){this._activeRipples.forEach(e=>e.fadeOut())}setupTriggerEvents(e){const t=ol(e);t&&t!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=t,this._registerEvents(Np))}handleEvent(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Pp),this._pointerUpEventsRegistered=!0)}_onMousedown(e){const t=ru(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))}_onTouchStart(e){if(!this._target.rippleDisabled){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const t=e.changedTouches;for(let e=0;e<t.length;e++)this.fadeInRipple(t[e].clientX,t[e].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._activeRipples.forEach(e=>{!e.config.persistent&&(1===e.state||e.config.terminateOnPointerUp&&0===e.state)&&e.fadeOut()}))}_runTimeoutOutsideZone(e,t=0){this._ngZone.runOutsideAngular(()=>setTimeout(e,t))}_registerEvents(e){this._ngZone.runOutsideAngular(()=>{e.forEach(e=>{this._triggerElement.addEventListener(e,this,Dp)})})}_removeTriggerEvents(){this._triggerElement&&(Np.forEach(e=>{this._triggerElement.removeEventListener(e,this,Dp)}),this._pointerUpEventsRegistered&&Pp.forEach(e=>{this._triggerElement.removeEventListener(e,this,Dp)}))}}const Fp=new Fe("mat-ripple-global-options");let Rp=(()=>{class e{constructor(e,t,n,s,r){this._elementRef=e,this._animationMode=r,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new Vp(this,t,e,n)}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}get rippleConfig(){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}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,t=0,n){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))}}return e.\u0275fac=function(t){return new(t||e)(Ei(ao),Ei(Fa),Ei(Rl),Ei(Fp,8),Ei(yp,8))},e.\u0275dir=mt({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&Fi("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"]}),e})(),Mp=(()=>{class e{}return e.\u0275mod=pt({type:e}),e.\u0275inj=le({factory:function(t){return new(t||e)},imports:[[Cp,Ml],Cp]}),e})();const jp=["input"],Lp=function(){return{enterDuration:150}},Bp=["*"],Hp=new Fe("mat-checkbox-default-options",{providedIn:"root",factory:function(){return{color:"accent",clickAction:"check-indeterminate"}}}),qp=new Fe("mat-checkbox-click-action");let $p=0;const zp={provide:Gl,useExisting:ve(()=>Up),multi:!0};class Zp{}class Qp{constructor(e){this._elementRef=e}}const Wp=Ap(xp(Tp(Sp(Qp))));let Up=(()=>{class e extends Wp{constructor(e,t,n,s,r,i,o,a){super(e),this._changeDetectorRef=t,this._focusMonitor=n,this._ngZone=s,this._clickAction=i,this._animationMode=o,this._options=a,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++$p,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new Xo,this.indeterminateChange=new Xo,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||{},this._options.color&&(this.color=this.defaultColor=this._options.color),this.tabIndex=parseInt(r)||0,this._clickAction=this._clickAction||this._options.clickAction}get inputId(){return(this.id||this._uniqueId)+"-input"}get required(){return this._required}set required(e){this._required=rl(e)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){const t=rl(e);t!==this.disabled&&(this._disabled=t,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){const t=e!=this._indeterminate;this._indeterminate=rl(e),t&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(e){let t=this._currentCheckState,n=this._elementRef.nativeElement;if(t!==e&&(this._currentAnimationClass.length>0&&n.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(t,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){n.classList.add(this._currentAnimationClass);const e=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{n.classList.remove(e)},1e3)})}}_emitChangeEvent(){const e=new Zp;e.source=this,e.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(e)}toggle(){this.checked=!this.checked}_onInputClick(e){e.stopPropagation(),this.disabled||"noop"===this._clickAction?this.disabled||"noop"!==this._clickAction||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==this._clickAction&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(e="keyboard",t){this._focusMonitor.focusVia(this._inputElement,e,t)}_onInteractionEvent(e){e.stopPropagation()}_getAnimationClassForCheckStateTransition(e,t){if("NoopAnimations"===this._animationMode)return"";let n="";switch(e){case 0:if(1===t)n="unchecked-checked";else{if(3!=t)return"";n="unchecked-indeterminate"}break;case 2:n=1===t?"unchecked-checked":"unchecked-indeterminate";break;case 1:n=2===t?"checked-unchecked":"checked-indeterminate";break;case 3:n=1===t?"indeterminate-checked":"indeterminate-unchecked"}return"mat-checkbox-anim-"+n}_syncIndeterminate(e){const t=this._inputElement;t&&(t.nativeElement.indeterminate=e)}}return e.\u0275fac=function(t){return new(t||e)(Ei(ao),Ei(Yr),Ei(au),Ei(Fa),("tabindex",function(e,t){const n=e.attrs;if(n){const e=n.length;let s=0;for(;s<e;){const r=n[s];if(In(r))break;if(0===r)s+=2;else if("number"==typeof r)for(s++;s<e&&"string"==typeof n[s];)s++;else{if(r===t)return n[s+1];s+=2}}}return null}(Xt(),"tabindex")),Ei(qp,8),Ei(yp,8),Ei(Hp,8))},e.\u0275cmp=ct({type:e,selectors:[["mat-checkbox"]],viewQuery:function(e,t){var n;1&e&&(ha(jp,!0),ha(Rp,!0)),2&e&&(ua(n=da())&&(t._inputElement=n.first),ua(n=da())&&(t.ripple=n.first))},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(e,t){2&e&&($i("id",t.id),vi("tabindex",null),Fi("mat-checkbox-indeterminate",t.indeterminate)("mat-checkbox-checked",t.checked)("mat-checkbox-disabled",t.disabled)("mat-checkbox-label-before","before"==t.labelPosition)("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",ariaDescribedby:["aria-describedby","ariaDescribedby"],value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[so([zp]),Zi],ngContentSelectors:Bp,decls:17,vars:20,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(e,t){if(1&e&&(function(e){const t=Yt()[16][6];if(!t.projection){const e=t.projection=et(1,null),n=e.slice();let s=t.child;for(;null!==s;){const t=0;null!==t&&(n[t]?n[t].projectionNext=s:e[t]=s,n[t]=s),s=s.next}}}(),Si(0,"label",0,1),Si(2,"div",2),Si(3,"input",3,4),Ii("change",(function(e){return t._onInteractionEvent(e)}))("click",(function(e){return t._onInputClick(e)})),xi(),Si(5,"div",5),Ti(6,"div",6),xi(),Ti(7,"div",7),Si(8,"div",8),Kt.lFrame.currentNamespace=Vt,Si(9,"svg",9),Ti(10,"path",10),xi(),Kt.lFrame.currentNamespace=null,Ti(11,"div",11),xi(),xi(),Si(12,"span",12,13),Ii("cdkObserveContent",(function(){return t._onLabelTextChange()})),Si(14,"span",14),Bi(15,"\xa0"),xi(),function(e,t=0,n){const s=Yt(),r=Jt(),i=qs(r,s[6],e,1,null,n||null);null===i.projection&&(i.projection=t),nn(),function(e,t,n){Br(t[11],0,t,n,Or(e,n,t),Fr(n.parent||t[6],t))}(r,s,i)}(16),xi(),xi()),2&e){const e=wi(1),n=wi(13);vi("for",t.inputId),Ds(2),Fi("mat-checkbox-inner-container-no-side-margin",!n.textContent||!n.textContent.trim()),Ds(1),ki("id",t.inputId)("required",t.required)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex),vi("value",t.value)("name",t.name)("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby)("aria-checked",t._getAriaChecked())("aria-describedby",t.ariaDescribedby),Ds(2),ki("matRippleTrigger",e)("matRippleDisabled",t._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",function(e,t,n){const s=function(){const e=Kt.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}()+e,r=Yt();return r[s]===xs?function(e,t,n){return e[t]=n}(r,s,n?t.call(n):t()):function(e,t){return e[t]}(r,s)}(19,Lp))}},directives:[Rp,nu],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-frame{border-style:dotted}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),e})(),Kp=(()=>{class e{}return e.\u0275mod=pt({type:e}),e.\u0275inj=le({factory:function(t){return new(t||e)}}),e})(),Gp=(()=>{class e{}return e.\u0275mod=pt({type:e}),e.\u0275inj=le({factory:function(t){return new(t||e)},imports:[[Mp,Cp,su,Kp],Cp,Kp]}),e})(),Yp=(()=>{class e{constructor(e){this._document=e}ngOnDestroy(){const e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container",t=this._document.querySelectorAll("."+e);if(null==t?void 0:t.length)this._containerElement=t[0];else{const t=this._document.createElement("div");t.classList.add(e),this._document.body.appendChild(t),this._containerElement=t}}}return e.\u0275fac=function(t){return new(t||e)(Qe(Al))},e.\u0275prov=ae({token:e,factory:e.\u0275fac}),e})(),Jp=(()=>{class e{constructor(){this.errorStateMatcher={isErrorState:()=>!!this.error||!this.valueCanBeChanged&&this.formControl.dirty},this.formControl=new Hc(""),this.valueCanBeChanged=!1}ngOnInit(){var e;this.valueChanges$=this.formControl.valueChanges.pipe((e=e=>(this.valueCanBeChanged=this.shouldValueChange(e),this.valueCanBeChanged),function(t){return t.lift(new pl(e,undefined))})).subscribe(e=>{this.updateOnBlur||this.triggerValueChange(e)})}triggerValueChange(e){this.onValueChange&&this.onValueChange({value:this.modifyValueBeforeChange(e)})}onBlur(){this.updateOnBlur&&this.shouldValueChange(this.formControl.value)&&this.triggerValueChange(this.formControl.value)}ngOnChanges(e){var t;this.disabled?this.formControl.disable({emitEvent:!1}):this.formControl.enable({emitEvent:!1}),e.value&&!(null===(t=this.input)||void 0===t?void 0:t.focused)&&this.formControl.setValue(this.value,{emitEvent:!1})}modifyValueBeforeChange(e){return e}shouldValueChange(e){return!0}ngOnDestroy(){this.valueChanges$&&this.valueChanges$.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ae({token:e,factory:e.\u0275fac}),e})();var Xp=n("MIfU");let ef=(()=>{class e extends Jp{constructor(){super(...arguments),this.id=Object(Xp.generate)()}ngOnChanges(e){this.updateOnBlur=!1,super.ngOnChanges(e)}}return e.\u0275fac=function(t){return tf(t||e)},e.\u0275cmp=ct({type:e,selectors:[["drayman-checkbox-internal"]],inputs:{onValueChange:"onValueChange",value:"value",label:"label",disabled:"disabled",placeholder:"placeholder",helpText:"helpText",error:"error",updateOnBlur:"updateOnBlur"},features:[Zi,It],decls:2,vars:3,consts:[[3,"id","formControl"]],template:function(e,t){1&e&&(Si(0,"mat-checkbox",0),Bi(1),xi()),2&e&&(ki("id",t.id)("formControl",t.formControl),Ds(1),Hi(t.label))},directives:[Up,rc,Qc],styles:[""]}),e})();const tf=rs(ef);let nf=(()=>{class e{constructor(e){this.injector=e}ngDoBootstrap(){const e=function(e,t){const n=function(e,t){return t.get(oo).resolveComponentFactory(e).inputs}(e,t.injector),s=t.strategyFactory||new Zl(e,t.injector),r=function(e){const t={};return e.forEach(({propName:e,templateName:n})=>{var s;t[(s=n,s.replace(/[A-Z]/g,e=>"-"+e.toLowerCase()))]=e}),t}(n);class i extends Wl{constructor(e){super(),this.injector=e}get ngElementStrategy(){if(!this._ngElementStrategy){const e=this._ngElementStrategy=s.create(this.injector||t.injector),r=n.filter(({propName:e})=>this.hasOwnProperty(e)).map(({propName:e})=>[e,this[e]]);this instanceof i?r.forEach(([e])=>delete this[e]):Ul(n,this),r.forEach(([t,n])=>e.setInputValue(t,n))}return this._ngElementStrategy}attributeChangedCallback(e,t,n,s){this.ngElementStrategy.setInputValue(r[e],n)}connectedCallback(){let e=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),e=!0),this.ngElementStrategy.connect(this),e||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(e=>{const t=function(e,t,n){if("function"!=typeof CustomEvent){const s=e.createEvent("CustomEvent");return s.initCustomEvent(t,!1,!1,n),s}return new CustomEvent(t,{bubbles:!1,cancelable:!1,detail:n})}(this.ownerDocument,e.name,e.value);this.dispatchEvent(t)})}}return i.observedAttributes=Object.keys(r),Object.defineProperty(i.prototype,"ngElementStrategy",{enumerable:!0}),Ul(n,i.prototype),i}(ef,{injector:this.injector});customElements.define("drayman-checkbox",e)}}return e.\u0275mod=pt({type:e}),e.\u0275inj=le({factory:function(t){return new(t||e)(Qe(pi))},providers:[{provide:Hl,useClass:Yp}],imports:[[Hu,vp,Gp,Gc,Kc]]}),e})();(function(){if(us)throw new Error("Cannot enable prod mode after platform setup.");cs=!1})(),Lu().bootstrapModule(nf).catch(e=>console.error(e))},zn8P:function(e,t){function n(e){return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="zn8P"}});
1
+ !function(e){var t={};function n(s){if(t[s])return t[s].exports;var r=t[s]={i:s,l:!1,exports:{}};return e[s].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,s){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:s})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var s=Object.create(null);if(n.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(s,r,(function(t){return e[t]}).bind(null,r));return s},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}({"+tDz":function(e,t){e.exports=function(e,t,n){for(var s=(2<<Math.log(t.length-1)/Math.LN2)-1,r=-~(1.6*s*n/t.length),i="";;)for(var o=e(r),a=r;a--;)if((i+=t[o[a]&s]||"").length===+n)return i}},0:function(e,t,n){e.exports=n("zUnb")},"2hQo":function(e,t,n){"use strict";var s=n("48Ti"),r=n("58k+"),i=n("+tDz");e.exports=function(e){for(var t,n=0,o="";!t;)o+=i(r,s.get(),1),t=e<Math.pow(16,n+1),n++;return o}},"48Ti":function(e,t,n){"use strict";var s,r,i,o=n("w9cF"),a="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-";function l(){i=!1}function c(e){if(e){if(e!==s){if(e.length!==a.length)throw new Error("Custom alphabet for shortid must be "+a.length+" unique characters. You submitted "+e.length+" characters: "+e);var t=e.split("").filter((function(e,t,n){return t!==n.lastIndexOf(e)}));if(t.length)throw new Error("Custom alphabet for shortid must be "+a.length+" unique characters. These characters were not unique: "+t.join(", "));s=e,l()}}else s!==a&&(s=a,l())}function u(){return i||(i=function(){s||c(a);for(var e,t=s.split(""),n=[],r=o.nextValue();t.length>0;)r=o.nextValue(),e=Math.floor(r*t.length),n.push(t.splice(e,1)[0]);return n.join("")}())}e.exports={get:function(){return s||a},characters:function(e){return c(e),s},seed:function(e){o.seed(e),r!==e&&(l(),r=e)},lookup:function(e){return u()[e]},shuffled:u}},"58k+":function(e,t,n){"use strict";var s="object"==typeof window&&(window.crypto||window.msCrypto);e.exports=s&&s.getRandomValues?function(e){return s.getRandomValues(new Uint8Array(e))}:function(e){for(var t=[],n=0;n<e;n++)t.push(Math.floor(256*Math.random()));return t}},G8Pb:function(e,t,n){"use strict";var s=n("48Ti"),r=n("tDlq"),i=n("gM+Z"),o=n("cHLG")||0;function a(){return r(o)}e.exports=a,e.exports.generate=a,e.exports.seed=function(t){return s.seed(t),e.exports},e.exports.worker=function(t){return o=t,e.exports},e.exports.characters=function(e){return void 0!==e&&s.characters(e),s.shuffled()},e.exports.isValid=i},MIfU:function(e,t,n){"use strict";e.exports=n("G8Pb")},cHLG:function(e,t,n){"use strict";e.exports=0},"gM+Z":function(e,t,n){"use strict";var s=n("48Ti");e.exports=function(e){return!(!e||"string"!=typeof e||e.length<6||new RegExp("[^"+s.get().replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")+"]").test(e))}},tDlq:function(e,t,n){"use strict";var s,r,i=n("2hQo");n("48Ti"),e.exports=function(e){var t="",n=Math.floor(.001*(Date.now()-1567752802062));return n===r?s++:(s=0,r=n),t+=i(7),t+=i(e),s>0&&(t+=i(s)),t+i(n)}},w9cF:function(e,t,n){"use strict";var s=1;e.exports={nextValue:function(){return(s=(9301*s+49297)%233280)/233280},seed:function(e){s=e}}},zUnb:function(e,t,n){"use strict";function s(e){return"function"==typeof e}n.r(t);let r=!1;const i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else r&&console.log("RxJS: Back to a better error behavior. Thank you. <3");r=e},get useDeprecatedSynchronousErrorHandling(){return r}};function o(e){setTimeout(()=>{throw e},0)}const a={closed:!0,next(e){},error(e){if(i.useDeprecatedSynchronousErrorHandling)throw e;o(e)},complete(){}},l=(()=>Array.isArray||(e=>e&&"number"==typeof e.length))();function c(e){return null!==e&&"object"==typeof e}const u=(()=>{function e(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((e,t)=>`${t+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e})();let h=(()=>{class e{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:r,_unsubscribe:i,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(let e=0;e<n.length;++e)n[e].remove(this);if(s(i)){r&&(this._unsubscribe=void 0);try{i.call(this)}catch(a){t=a instanceof u?d(a.errors):[a]}}if(l(o)){let e=-1,n=o.length;for(;++e<n;){const n=o[e];if(c(n))try{n.unsubscribe()}catch(a){t=t||[],a instanceof u?t=t.concat(d(a.errors)):t.push(a)}}}if(t)throw new u(t)}add(t){let 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)){const t=n;n=new e,n._subscriptions=[t]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}let{_parentOrParents:s}=n;if(null===s)n._parentOrParents=this;else if(s instanceof e){if(s===this)return n;n._parentOrParents=[s,this]}else{if(-1!==s.indexOf(this))return n;s.push(this)}const r=this._subscriptions;return null===r?this._subscriptions=[n]:r.push(n),n}remove(e){const t=this._subscriptions;if(t){const n=t.indexOf(e);-1!==n&&t.splice(n,1)}}}return e.EMPTY=function(e){return e.closed=!0,e}(new e),e})();function d(e){return e.reduce((e,t)=>e.concat(t instanceof u?t.errors:t),[])}const p=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())();class f extends h{constructor(e,t,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a;break;case 1:if(!e){this.destination=a;break}if("object"==typeof e){e instanceof f?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new m(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new m(this,e,t,n)}}[p](){return this}static create(e,t,n){const s=new f(e,t,n);return s.syncErrorThrowable=!1,s}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class m extends f{constructor(e,t,n,r){let i;super(),this._parentSubscriber=e;let o=this;s(t)?i=t:t&&(i=t.next,n=t.error,r=t.complete,t!==a&&(o=Object.create(t),s(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=i,this._error=n,this._complete=r}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;i.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:n}=i;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):o(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;o(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);i.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),i.useDeprecatedSynchronousErrorHandling)throw n;o(n)}}__tryOrSetError(e,t,n){if(!i.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(s){return i.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=s,e.syncErrorThrown=!0,!0):(o(s),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const g=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")();function _(e){return e}let y=(()=>{class e{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(t){const n=new e;return n.source=this,n.operator=t,n}subscribe(e,t,n){const{operator:s}=this,r=function(e,t,n){if(e){if(e instanceof f)return e;if(e[p])return e[p]()}return e||t||n?new f(e,t,n):new f(a)}(e,t,n);if(r.add(s?s.call(r,this.source):this.source||i.useDeprecatedSynchronousErrorHandling&&!r.syncErrorThrowable?this._subscribe(r):this._trySubscribe(r)),i.useDeprecatedSynchronousErrorHandling&&r.syncErrorThrowable&&(r.syncErrorThrowable=!1,r.syncErrorThrown))throw r.syncErrorValue;return r}_trySubscribe(e){try{return this._subscribe(e)}catch(t){i.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){const{closed:t,destination:n,isStopped:s}=e;if(t||s)return!1;e=n&&n instanceof f?n:null}return!0}(e)?e.error(t):console.warn(t)}}forEach(e,t){return new(t=b(t))((t,n)=>{let s;s=this.subscribe(t=>{try{e(t)}catch(r){n(r),s&&s.unsubscribe()}},n,t)})}_subscribe(e){const{source:t}=this;return t&&t.subscribe(e)}[g](){return this}pipe(...e){return 0===e.length?this:(0===(t=e).length?_:1===t.length?t[0]:function(e){return t.reduce((e,t)=>t(e),e)})(this);var t}toPromise(e){return new(e=b(e))((e,t)=>{let n;this.subscribe(e=>n=e,e=>t(e),()=>e(n))})}}return e.create=t=>new e(t),e})();function b(e){if(e||(e=i.Promise||Promise),!e)throw new Error("no Promise impl found");return e}const v=(()=>{function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e})();class w extends h{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}class E extends f{constructor(e){super(e),this.destination=e}}let k=(()=>{class e extends y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[p](){return new E(this)}lift(e){const t=new C(this,this);return t.operator=e,t}next(e){if(this.closed)throw new v;if(!this.isStopped){const{observers:t}=this,n=t.length,s=t.slice();for(let r=0;r<n;r++)s[r].next(e)}}error(e){if(this.closed)throw new v;this.hasError=!0,this.thrownError=e,this.isStopped=!0;const{observers:t}=this,n=t.length,s=t.slice();for(let r=0;r<n;r++)s[r].error(e);this.observers.length=0}complete(){if(this.closed)throw new v;this.isStopped=!0;const{observers:e}=this,t=e.length,n=e.slice();for(let s=0;s<t;s++)n[s].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(e){if(this.closed)throw new v;return super._trySubscribe(e)}_subscribe(e){if(this.closed)throw new v;return this.hasError?(e.error(this.thrownError),h.EMPTY):this.isStopped?(e.complete(),h.EMPTY):(this.observers.push(e),new w(this,e))}asObservable(){const e=new y;return e.source=this,e}}return e.create=(e,t)=>new C(e,t),e})();class C extends k{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):h.EMPTY}}function S(e){return e&&"function"==typeof e.schedule}function x(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 T(e,t))}}class T{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new A(e,this.project,this.thisArg))}}class A extends f{constructor(e,t,n){super(e),this.project=t,this.count=0,this.thisArg=n||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}const I=e=>t=>{for(let n=0,s=e.length;n<s&&!t.closed;n++)t.next(e[n]);t.complete()};function O(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}const D=O(),N=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function P(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}const V=e=>{if(e&&"function"==typeof e[g])return s=e,e=>{const t=s[g]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if(N(e))return I(e);if(P(e))return n=e,e=>(n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,o),e);if(e&&"function"==typeof e[D])return t=e,e=>{const n=t[D]();for(;;){let t;try{t=n.next()}catch(s){return e.error(s),e}if(t.done){e.complete();break}if(e.next(t.value),e.closed)break}return"function"==typeof n.return&&e.add(()=>{n.return&&n.return()}),e};{const t=c(e)?"an invalid object":`'${e}'`;throw new TypeError(`You provided ${t} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var t,n,s};function F(e,t){return new y(n=>{const s=new h;let r=0;return s.add(t.schedule((function(){r!==e.length?(n.next(e[r++]),n.closed||s.add(this.schedule())):n.complete()}))),s})}function R(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[g]}(e))return function(e,t){return new y(n=>{const s=new h;return s.add(t.schedule(()=>{const r=e[g]();s.add(r.subscribe({next(e){s.add(t.schedule(()=>n.next(e)))},error(e){s.add(t.schedule(()=>n.error(e)))},complete(){s.add(t.schedule(()=>n.complete()))}}))})),s})}(e,t);if(P(e))return function(e,t){return new y(n=>{const s=new h;return s.add(t.schedule(()=>e.then(e=>{s.add(t.schedule(()=>{n.next(e),s.add(t.schedule(()=>n.complete()))}))},e=>{s.add(t.schedule(()=>n.error(e)))}))),s})}(e,t);if(N(e))return F(e,t);if(function(e){return e&&"function"==typeof e[D]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new y(n=>{const s=new h;let r;return s.add(()=>{r&&"function"==typeof r.return&&r.return()}),s.add(t.schedule(()=>{r=e[D](),s.add(t.schedule((function(){if(n.closed)return;let e,t;try{const n=r.next();e=n.value,t=n.done}catch(s){return void n.error(s)}t?n.complete():(n.next(e),this.schedule())})))})),s})}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof y?e:new y(V(e))}class M extends f{constructor(e){super(),this.parent=e}_next(e){this.parent.notifyNext(e)}_error(e){this.parent.notifyError(e),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class j extends f{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function L(e,t){if(!t.closed)return e instanceof y?e.subscribe(t):V(e)(t)}class B{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new H(e,this.project,this.concurrent))}}class H extends j{constructor(e,t,n=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}_tryNext(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(s){return void this.destination.error(s)}this.active++,this._innerSub(t)}_innerSub(e){const t=new M(this),n=this.destination;n.add(t);const s=L(e,t);s!==t&&n.add(s)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(e){this.destination.next(e)}notifyComplete(){const e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function q(e,t){return t?F(e,t):new y(I(e))}function $(...e){let t=Number.POSITIVE_INFINITY,n=null,s=e[e.length-1];return S(s)?(n=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(t=e.pop())):"number"==typeof s&&(t=e.pop()),null===n&&1===e.length&&e[0]instanceof y?e[0]:function(e=Number.POSITIVE_INFINITY){return function e(t,n,s=Number.POSITIVE_INFINITY){return"function"==typeof n?r=>r.pipe(e((e,s)=>R(t(e,s)).pipe(x((t,r)=>n(e,t,s,r))),s)):("number"==typeof n&&(s=n),e=>e.lift(new B(t,s)))}(_,e)}(t)(q(e,n))}function z(){return function(e){return e.lift(new Z(e))}}class Z{constructor(e){this.connectable=e}call(e,t){const{connectable:n}=this;n._refCount++;const s=new Q(e,n),r=t.subscribe(s);return s.closed||(s.connection=n.connect()),r}}class Q extends f{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:n}=this,s=e._connection;this.connection=null,!s||n&&s!==n||s.unsubscribe()}}class W extends y{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new h,e.add(this.source.subscribe(new K(this.getSubject(),this))),e.closed&&(this._connection=null,e=h.EMPTY)),e}refCount(){return z()(this)}}const U=(()=>{const e=W.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:e._subscribe},_isComplete:{value:e._isComplete,writable:!0},getSubject:{value:e.getSubject},connect:{value:e.connect},refCount:{value:e.refCount}}})();class K extends E{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}function G(){return new k}function Y(e){return{toString:e}.toString()}const J="__parameters__";function X(e,t,n){return Y(()=>{const s=function(e){return function(...t){if(e){const n=e(...t);for(const e in n)this[e]=n[e]}}}(t);function r(...e){if(this instanceof r)return s.apply(this,e),this;const t=new r(...e);return n.annotation=t,n;function n(e,n,s){const r=e.hasOwnProperty(J)?e[J]:Object.defineProperty(e,J,{value:[]})[J];for(;r.length<=s;)r.push(null);return(r[s]=r[s]||[]).push(t),e}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=e,r.annotationCls=r,r})}const ee=X("Inject",e=>({token:e})),te=X("Optional"),ne=X("Self"),se=X("SkipSelf");var re=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 ie(e){for(let t in e)if(e[t]===ie)return t;throw Error("Could not find renamed property on target object.")}function oe(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function ae(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function le(e){return{factory:e.factory,providers:e.providers||[],imports:e.imports||[]}}function ce(e){return ue(e,e[de])||ue(e,e[me])}function ue(e,t){return t&&t.token===e?t:null}function he(e){return e&&(e.hasOwnProperty(pe)||e.hasOwnProperty(ge))?e[pe]:null}const de=ie({"\u0275prov":ie}),pe=ie({"\u0275inj":ie}),fe=ie({"\u0275provFallback":ie}),me=ie({ngInjectableDef:ie}),ge=ie({ngInjectorDef:ie});function _e(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(_e).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return""+e.overriddenName;if(e.name)return""+e.name;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function ye(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const be=ie({__forward_ref__:ie});function ve(e){return e.__forward_ref__=ve,e.toString=function(){return _e(this())},e}function we(e){return Ee(e)?e():e}function Ee(e){return"function"==typeof e&&e.hasOwnProperty(be)&&e.__forward_ref__===ve}const ke="undefined"!=typeof globalThis&&globalThis,Ce="undefined"!=typeof window&&window,Se="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,xe="undefined"!=typeof global&&global,Te=ke||xe||Ce||Se,Ae=ie({"\u0275cmp":ie}),Ie=ie({"\u0275dir":ie}),Oe=ie({"\u0275pipe":ie}),De=ie({"\u0275mod":ie}),Ne=ie({"\u0275loc":ie}),Pe=ie({"\u0275fac":ie}),Ve=ie({__NG_ELEMENT_ID__:ie});class Fe{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=ae({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return"InjectionToken "+this._desc}}const Re=new Fe("INJECTOR",-1),Me={},je=/\n/gm,Le="__source",Be=ie({provide:String,useValue:ie});let He,qe=void 0;function $e(e){const t=qe;return qe=e,t}function ze(e){const t=He;return He=e,t}function Ze(e,t=re.Default){if(void 0===qe)throw new Error("inject() must be called from an injection context");return null===qe?We(e,void 0,t):qe.get(e,t&re.Optional?null:void 0,t)}function Qe(e,t=re.Default){return(He||Ze)(we(e),t)}function We(e,t,n){const s=ce(e);if(s&&"root"==s.providedIn)return void 0===s.value?s.value=s.factory():s.value;if(n&re.Optional)return null;if(void 0!==t)return t;throw new Error(`Injector: NOT_FOUND [${_e(e)}]`)}function Ue(e){const t=[];for(let n=0;n<e.length;n++){const s=we(e[n]);if(Array.isArray(s)){if(0===s.length)throw new Error("Arguments array must have arguments.");let e=void 0,n=re.Default;for(let t=0;t<s.length;t++){const r=s[t];r instanceof te||"Optional"===r.ngMetadataName||r===te?n|=re.Optional:r instanceof se||"SkipSelf"===r.ngMetadataName||r===se?n|=re.SkipSelf:r instanceof ne||"Self"===r.ngMetadataName||r===ne?n|=re.Self:e=r instanceof ee||r===ee?r.token:r}t.push(Qe(e,n))}else t.push(Qe(s))}return t}class Ke{get(e,t=Me){if(t===Me){const t=new Error(`NullInjectorError: No provider for ${_e(e)}!`);throw t.name="NullInjectorError",t}return t}}class Ge{}function Ye(e,t){e.forEach(e=>Array.isArray(e)?Ye(e,t):t(e))}function Je(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Xe(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function et(e,t){const n=[];for(let s=0;s<e;s++)n.push(t);return n}function tt(e,t,n){let s=st(e,t);return s>=0?e[1|s]=n:(s=~s,function(e,t,n,s){let r=e.length;if(r==t)e.push(n,s);else if(1===r)e.push(s,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]=s}}(e,s,t,n)),s}function nt(e,t){const n=st(e,t);if(n>=0)return e[1|n]}function st(e,t){return function(e,t,n){let s=0,r=e.length>>1;for(;r!==s;){const n=s+(r-s>>1),i=e[n<<1];if(t===i)return n<<1;i>t?r=n:s=n+1}return~(r<<1)}(e,t)}var rt=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),it=function(e){return e[e.Emulated=0]="Emulated",e[e.Native=1]="Native",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({});const ot={},at=[];let lt=0;function ct(e){return Y(()=>{const 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===rt.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||at,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||it.Emulated,id:"c",styles:e.styles||at,_:null,setInput:null,schemas:e.schemas||null,tView:null},s=e.directives,r=e.features,i=e.pipes;return n.id+=lt++,n.inputs=ft(e.inputs,t),n.outputs=ft(e.outputs),r&&r.forEach(e=>e(n)),n.directiveDefs=s?()=>("function"==typeof s?s():s).map(ut):null,n.pipeDefs=i?()=>("function"==typeof i?i():i).map(ht):null,n})}function ut(e){return gt(e)||function(e){return e[Ie]||null}(e)}function ht(e){return function(e){return e[Oe]||null}(e)}const dt={};function pt(e){const t={type:e.type,bootstrap:e.bootstrap||at,declarations:e.declarations||at,imports:e.imports||at,exports:e.exports||at,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&Y(()=>{dt[e.id]=e.type}),t}function ft(e,t){if(null==e)return ot;const n={};for(const s in e)if(e.hasOwnProperty(s)){let r=e[s],i=r;Array.isArray(r)&&(i=r[1],r=r[0]),n[r]=s,t&&(t[r]=i)}return n}const mt=ct;function gt(e){return e[Ae]||null}function _t(e,t){return e.hasOwnProperty(Pe)?e[Pe]:null}function yt(e,t){const n=e[De]||null;if(!n&&!0===t)throw new Error(`Type ${_e(e)} does not have '\u0275mod' property.`);return n}const bt=20,vt=10;function wt(e){return Array.isArray(e)&&"object"==typeof e[1]}function Et(e){return Array.isArray(e)&&!0===e[1]}function kt(e){return 0!=(8&e.flags)}function Ct(e){return 2==(2&e.flags)}function St(e){return 1==(1&e.flags)}function xt(e){return null!==e.template}function Tt(e){return 0!=(512&e[2])}class At{constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}}function It(){return Ot}function Ot(e){return e.type.prototype.ngOnChanges&&(e.setInput=Nt),Dt}function Dt(){const e=Pt(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===ot)e.previous=t;else for(let e in t)n[e]=t[e];e.current=null,this.ngOnChanges(t)}}function Nt(e,t,n,s){const r=Pt(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:ot,current:null}),i=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[n],l=o[a];i[a]=new At(l&&l.currentValue,t,o===ot),e[s]=t}function Pt(e){return e.__ngSimpleChanges__||null}It.ngInherit=!0;const Vt="http://www.w3.org/2000/svg";let Ft=void 0;function Rt(e){return!!e.listen}const Mt={createRenderer:(e,t)=>void 0!==Ft?Ft:"undefined"!=typeof document?document:void 0};function jt(e){for(;Array.isArray(e);)e=e[0];return e}function Lt(e,t){return jt(t[e+bt])}function Bt(e,t){return jt(t[e.index])}function Ht(e,t){return e.data[t+bt]}function qt(e,t){const n=t[e];return wt(n)?n:n[0]}function $t(e){const t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function zt(e){return 4==(4&e[2])}function Zt(e){return 128==(128&e[2])}function Qt(e,t){return null===e||null==t?null:e[t]}function Wt(e){e[18]=0}function Ut(e,t){e[5]+=t;let n=e,s=e[3];for(;null!==s&&(1===t&&1===n[5]||-1===t&&0===n[5]);)s[5]+=t,n=s,s=s[3]}const Kt={lFrame:fn(null),bindingsEnabled:!0,checkNoChangesMode:!1};function Gt(){return Kt.bindingsEnabled}function Yt(){return Kt.lFrame.lView}function Jt(){return Kt.lFrame.tView}function Xt(){return Kt.lFrame.previousOrParentTNode}function en(e,t){Kt.lFrame.previousOrParentTNode=e,Kt.lFrame.isParent=t}function tn(){return Kt.lFrame.isParent}function nn(){Kt.lFrame.isParent=!1}function sn(){return Kt.checkNoChangesMode}function rn(e){Kt.checkNoChangesMode=e}function on(){return Kt.lFrame.bindingIndex++}function an(e,t){const n=Kt.lFrame;n.bindingIndex=n.bindingRootIndex=e,ln(t)}function ln(e){Kt.lFrame.currentDirectiveIndex=e}function cn(){return Kt.lFrame.currentQueryIndex}function un(e){Kt.lFrame.currentQueryIndex=e}function hn(e,t){const n=pn();Kt.lFrame=n,n.previousOrParentTNode=t,n.lView=e}function dn(e,t){const n=pn(),s=e[1];Kt.lFrame=n,n.previousOrParentTNode=t,n.lView=e,n.tView=s,n.contextLView=e,n.bindingIndex=s.bindingStartIndex}function pn(){const e=Kt.lFrame,t=null===e?null:e.child;return null===t?fn(e):t}function fn(e){const t={previousOrParentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null};return null!==e&&(e.child=t),t}function mn(){const e=Kt.lFrame;return Kt.lFrame=e.parent,e.previousOrParentTNode=null,e.lView=null,e}const gn=mn;function _n(){const e=mn();e.isParent=!0,e.tView=null,e.selectedIndex=0,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function yn(){return Kt.lFrame.selectedIndex}function bn(e){Kt.lFrame.selectedIndex=e}function vn(){const e=Kt.lFrame;return Ht(e.tView,e.selectedIndex)}function wn(e,t){for(let n=t.directiveStart,s=t.directiveEnd;n<s;n++){const t=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:r,ngAfterViewInit:i,ngAfterViewChecked:o,ngOnDestroy:a}=t;s&&(e.contentHooks||(e.contentHooks=[])).push(-n,s),r&&((e.contentHooks||(e.contentHooks=[])).push(n,r),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,r)),i&&(e.viewHooks||(e.viewHooks=[])).push(-n,i),o&&((e.viewHooks||(e.viewHooks=[])).push(n,o),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,o)),null!=a&&(e.destroyHooks||(e.destroyHooks=[])).push(n,a)}}function En(e,t,n){Sn(e,t,3,n)}function kn(e,t,n,s){(3&e[2])===n&&Sn(e,t,n,s)}function Cn(e,t){let n=e[2];(3&n)===t&&(n&=2047,n+=1,e[2]=n)}function Sn(e,t,n,s){const r=null!=s?s:-1;let i=0;for(let o=void 0!==s?65535&e[18]:0;o<t.length;o++)if("number"==typeof t[o+1]){if(i=t[o],null!=s&&i>=s)break}else t[o]<0&&(e[18]+=65536),(i<r||-1==r)&&(xn(e,n,t,o),e[18]=(4294901760&e[18])+o+2),o++}function xn(e,t,n,s){const r=n[s]<0,i=n[s+1],o=e[r?-n[s]:n[s]];r?e[2]>>11<e[18]>>16&&(3&e[2])===t&&(e[2]+=2048,i.call(o)):i.call(o)}class Tn{constructor(e,t,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=n}}function An(e,t,n){const s=Rt(e);let r=0;for(;r<n.length;){const i=n[r];if("number"==typeof i){if(0!==i)break;r++;const o=n[r++],a=n[r++],l=n[r++];s?e.setAttribute(t,a,l,o):t.setAttributeNS(o,a,l)}else{const o=i,a=n[++r];On(o)?s&&e.setProperty(t,o,a):s?e.setAttribute(t,o,a):t.setAttribute(o,a),r++}}return r}function In(e){return 3===e||4===e||6===e}function On(e){return 64===e.charCodeAt(0)}function Dn(e,t){if(null===t||0===t.length);else if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let s=0;s<t.length;s++){const r=t[s];"number"==typeof r?n=r:0===n||Nn(e,n,r,null,-1===n||2===n?t[++s]:null)}}return e}function Nn(e,t,n,s,r){let i=0,o=e.length;if(-1===t)o=-1;else for(;i<e.length;){const n=e[i++];if("number"==typeof n){if(n===t){o=-1;break}if(n>t){o=i-1;break}}}for(;i<e.length;){const t=e[i];if("number"==typeof t)break;if(t===n){if(null===s)return void(null!==r&&(e[i+1]=r));if(s===e[i+1])return void(e[i+2]=r)}i++,null!==s&&i++,null!==r&&i++}-1!==o&&(e.splice(o,0,t),i=o+1),e.splice(i++,0,n),null!==s&&e.splice(i++,0,s),null!==r&&e.splice(i++,0,r)}function Pn(e){return-1!==e}function Vn(e){return 32767&e}function Fn(e){return e>>16}function Rn(e,t){let n=Fn(e),s=t;for(;n>0;)s=s[15],n--;return s}function Mn(e){return"string"==typeof e?e:null==e?"":""+e}function jn(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Mn(e)}const Ln=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Te))();function Bn(e){return e instanceof Function?e():e}let Hn=!0;function qn(e){const t=Hn;return Hn=e,t}let $n=0;function zn(e,t){const n=Qn(e,t);if(-1!==n)return n;const s=t[1];s.firstCreatePass&&(e.injectorIndex=t.length,Zn(s.data,e),Zn(t,null),Zn(s.blueprint,null));const r=Wn(e,t),i=e.injectorIndex;if(Pn(r)){const e=Vn(r),n=Rn(r,t),s=n[1].data;for(let r=0;r<8;r++)t[i+r]=n[e+r]|s[e+r]}return t[i+8]=r,i}function Zn(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Qn(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null==t[e.injectorIndex+8]?-1:e.injectorIndex}function Wn(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=t[6],s=1;for(;n&&-1===n.injectorIndex;)n=(t=t[15])?t[6]:null,s++;return n?n.injectorIndex|s<<16:-1}function Un(e,t,n){!function(e,t,n){let s;"string"==typeof n?s=n.charCodeAt(0)||0:n.hasOwnProperty(Ve)&&(s=n[Ve]),null==s&&(s=n[Ve]=$n++);const r=255&s,i=1<<r,o=64&r,a=32&r,l=t.data;128&r?o?a?l[e+7]|=i:l[e+6]|=i:a?l[e+5]|=i:l[e+4]|=i:o?a?l[e+3]|=i:l[e+2]|=i:a?l[e+1]|=i:l[e]|=i}(e,t,n)}function Kn(e,t,n,s=re.Default,r){if(null!==e){const r=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(Ve)?e[Ve]:void 0;return"number"==typeof t&&t>0?255&t:t}(n);if("function"==typeof r){hn(t,e);try{const e=r();if(null!=e||s&re.Optional)return e;throw new Error(`No provider for ${jn(n)}!`)}finally{gn()}}else if("number"==typeof r){if(-1===r)return new ns(e,t);let i=null,o=Qn(e,t),a=-1,l=s&re.Host?t[16][6]:null;for((-1===o||s&re.SkipSelf)&&(a=-1===o?Wn(e,t):t[o+8],ts(s,!1)?(i=t[1],o=Vn(a),t=Rn(a,t)):o=-1);-1!==o;){a=t[o+8];const e=t[1];if(es(r,o,e.data)){const e=Yn(o,t,n,i,s,l);if(e!==Gn)return e}ts(s,t[1].data[o+8]===l)&&es(r,o,t)?(i=e,o=Vn(a),t=Rn(a,t)):o=-1}}}if(s&re.Optional&&void 0===r&&(r=null),0==(s&(re.Self|re.Host))){const e=t[9],i=ze(void 0);try{return e?e.get(n,r,s&re.Optional):We(n,r,s&re.Optional)}finally{ze(i)}}if(s&re.Optional)return r;throw new Error(`NodeInjector: NOT_FOUND [${jn(n)}]`)}const Gn={};function Yn(e,t,n,s,r,i){const o=t[1],a=o.data[e+8],l=Jn(a,o,n,null==s?Ct(a)&&Hn:s!=o&&3===a.type,r&re.Host&&i===a);return null!==l?Xn(t,o,l,a):Gn}function Jn(e,t,n,s,r){const i=e.providerIndexes,o=t.data,a=1048575&i,l=e.directiveStart,c=i>>20,u=r?a+c:e.directiveEnd;for(let h=s?a:a+c;h<u;h++){const e=o[h];if(h<l&&n===e||h>=l&&e.type===n)return h}if(r){const e=o[l];if(e&&xt(e)&&e.type===n)return l}return null}function Xn(e,t,n,s){let r=e[n];const i=t.data;if(r instanceof Tn){const o=r;if(o.resolving)throw new Error("Circular dep for "+jn(i[n]));const a=qn(o.canSeeViewProviders);let l;o.resolving=!0,o.injectImpl&&(l=ze(o.injectImpl)),hn(e,s);try{r=e[n]=o.factory(void 0,i,e,s),t.firstCreatePass&&n>=s.directiveStart&&function(e,t,n){const{ngOnChanges:s,ngOnInit:r,ngDoCheck:i}=t.type.prototype;if(s){const s=Ot(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s)}r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,r),i&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,i))}(n,i[n],t)}finally{o.injectImpl&&ze(l),qn(a),o.resolving=!1,gn()}}return r}function es(e,t,n){const s=64&e,r=32&e;let i;return i=128&e?s?r?n[t+7]:n[t+6]:r?n[t+5]:n[t+4]:s?r?n[t+3]:n[t+2]:r?n[t+1]:n[t],!!(i&1<<e)}function ts(e,t){return!(e&re.Self||e&re.Host&&t)}class ns{constructor(e,t){this._tNode=e,this._lView=t}get(e,t){return Kn(this._tNode,this._lView,e,void 0,t)}}function ss(e){const t=e;if(Ee(e))return()=>{const e=ss(we(t));return e?e():null};let n=_t(t);if(null===n){const e=he(t);n=e&&e.factory}return n||null}function rs(e){return Y(()=>{const t=e.prototype.constructor,n=t[Pe]||ss(t),s=Object.prototype;let r=Object.getPrototypeOf(e.prototype).constructor;for(;r&&r!==s;){const e=r[Pe]||ss(r);if(e&&e!==n)return e;r=Object.getPrototypeOf(r)}return e=>new e})}function is(e){return e.ngDebugContext}function os(e){return e.ngOriginalError}function as(e,...t){e.error(...t)}class ls{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),n=this._findContext(e),s=function(e){return e.ngErrorLogger||as}(e);s(this._console,"ERROR",e),t&&s(this._console,"ORIGINAL ERROR",t),n&&s(this._console,"ERROR CONTEXT",n)}_findContext(e){return e?is(e)?is(e):this._findContext(os(e)):null}_findOriginalError(e){let t=os(e);for(;t&&os(t);)t=os(t);return t}}let cs=!0,us=!1;function hs(){return us=!0,cs}function ds(e,t){e.__ngContext__=t}function ps(e){throw new Error("Multiple components match node with tagname "+e.tagName)}function fs(){throw new Error("Cannot mix multi providers and regular providers")}function ms(e,t,n){let s=e.length;for(;;){const r=e.indexOf(t,n);if(-1===r)return r;if(0===r||e.charCodeAt(r-1)<=32){const n=t.length;if(r+n===s||e.charCodeAt(r+n)<=32)return r}n=r+1}}const gs="ng-template";function _s(e,t,n){let s=0;for(;s<e.length;){let r=e[s++];if(n&&"class"===r){if(r=e[s],-1!==ms(r.toLowerCase(),t,0))return!0}else if(1===r){for(;s<e.length&&"string"==typeof(r=e[s++]);)if(r.toLowerCase()===t)return!0;return!1}}return!1}function ys(e){return 0===e.type&&e.tagName!==gs}function bs(e,t,n){return t===(0!==e.type||n?e.tagName:gs)}function vs(e,t,n){let s=4;const r=e.attrs||[],i=function(e){for(let t=0;t<e.length;t++)if(In(e[t]))return t;return e.length}(r);let o=!1;for(let a=0;a<t.length;a++){const l=t[a];if("number"!=typeof l){if(!o)if(4&s){if(s=2|1&s,""!==l&&!bs(e,l,n)||""===l&&1===t.length){if(ws(s))return!1;o=!0}}else{const c=8&s?l:t[++a];if(8&s&&null!==e.attrs){if(!_s(e.attrs,c,n)){if(ws(s))return!1;o=!0}continue}const u=Es(8&s?"class":l,r,ys(e),n);if(-1===u){if(ws(s))return!1;o=!0;continue}if(""!==c){let e;e=u>i?"":r[u+1].toLowerCase();const t=8&s?e:null;if(t&&-1!==ms(t,c,0)||2&s&&c!==e){if(ws(s))return!1;o=!0}}}}else{if(!o&&!ws(s)&&!ws(l))return!1;if(o&&ws(l))continue;o=!1,s=l|1&s}}return ws(s)||o}function ws(e){return 0==(1&e)}function Es(e,t,n,s){if(null===t)return-1;let r=0;if(s||!n){let n=!1;for(;r<t.length;){const s=t[r];if(s===e)return r;if(3===s||6===s)n=!0;else{if(1===s||2===s){let e=t[++r];for(;"string"==typeof e;)e=t[++r];continue}if(4===s)break;if(0===s){r+=4;continue}}r+=n?1:2}return-1}return function(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){const s=e[n];if("number"==typeof s)return-1;if(s===t)return n;n++}return-1}(t,e)}function ks(e,t,n=!1){for(let s=0;s<t.length;s++)if(vs(e,t[s],n))return!0;return!1}function Cs(e,t){return e?":not("+t.trim()+")":t}function Ss(e){let t=e[0],n=1,s=2,r="",i=!1;for(;n<e.length;){let o=e[n];if("string"==typeof o)if(2&s){const t=e[++n];r+="["+o+(t.length>0?'="'+t+'"':"")+"]"}else 8&s?r+="."+o:4&s&&(r+=" "+o);else""===r||ws(o)||(t+=Cs(i,r),r=""),s=o,i=i||!ws(s);n++}return""!==r&&(t+=Cs(i,r)),t}const xs={};function Ts(e){const t=e[3];return Et(t)?t[3]:t}function As(e){return Os(e[13])}function Is(e){return Os(e[4])}function Os(e){for(;null!==e&&!Et(e);)e=e[4];return e}function Ds(e){Ns(Jt(),Yt(),yn()+e,sn())}function Ns(e,t,n,s){if(!s)if(3==(3&t[2])){const s=e.preOrderCheckHooks;null!==s&&En(t,s,n)}else{const s=e.preOrderHooks;null!==s&&kn(t,s,0,n)}bn(n)}function Ps(e,t){return e<<17|t<<2}function Vs(e){return e>>17&32767}function Fs(e){return 2|e}function Rs(e){return(131068&e)>>2}function Ms(e,t){return-131069&e|t<<2}function js(e){return 1|e}function Ls(e,t){const n=e.contentQueries;if(null!==n)for(let s=0;s<n.length;s+=2){const r=n[s],i=n[s+1];if(-1!==i){const n=e.data[i];un(r),n.contentQueries(2,t[i],i)}}}function Bs(e,t,n){return Rt(t)?t.createElement(e,n):null===n?t.createElement(e):t.createElementNS(n,e)}function Hs(e,t,n,s,r,i,o,a,l,c){const u=t.blueprint.slice();return u[0]=r,u[2]=140|s,Wt(u),u[3]=u[15]=e,u[8]=n,u[10]=o||e&&e[10],u[11]=a||e&&e[11],u[12]=l||e&&e[12]||null,u[9]=c||e&&e[9]||null,u[6]=i,u[16]=2==t.type?e[16]:u,u}function qs(e,t,n,s,r,i){const o=n+bt,a=e.data[o]||function(e,t,n,s,r,i){const o=Xt(),a=tn(),l=a?o:o&&o.parent,c=e.data[n]=Gs(0,l&&l!==t?l:null,s,n,r,i);return null===e.firstChild&&(e.firstChild=c),o&&(!a||null!=o.child||null===c.parent&&2!==o.type?a||(o.next=c):o.child=c),c}(e,t,o,s,r,i);return en(a,!0),a}function $s(e,t,n){dn(t,t[6]);try{const s=e.viewQuery;null!==s&&gr(1,s,n);const r=e.template;null!==r&&Qs(e,t,r,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&Ls(e,t),e.staticViewQueries&&gr(2,e.viewQuery,n);const i=e.components;null!==i&&function(e,t){for(let n=0;n<t.length;n++)hr(e,t[n])}(t,i)}catch(s){throw e.firstCreatePass&&(e.incompleteFirstPass=!0),s}finally{t[2]&=-5,_n()}}function zs(e,t,n,s){const r=t[2];if(256==(256&r))return;dn(t,t[6]);const i=sn();try{Wt(t),Kt.lFrame.bindingIndex=e.bindingStartIndex,null!==n&&Qs(e,t,n,2,s);const o=3==(3&r);if(!i)if(o){const n=e.preOrderCheckHooks;null!==n&&En(t,n,null)}else{const n=e.preOrderHooks;null!==n&&kn(t,n,0,null),Cn(t,0)}if(function(e){for(let t=As(e);null!==t;t=Is(t)){if(!t[2])continue;const e=t[9];for(let t=0;t<e.length;t++){const n=e[t],s=n[3];0==(1024&n[2])&&Ut(s,1),n[2]|=1024}}}(t),function(e){for(let t=As(e);null!==t;t=Is(t))for(let e=vt;e<t.length;e++){const n=t[e],s=n[1];Zt(n)&&zs(s,n,s.template,n[8])}}(t),null!==e.contentQueries&&Ls(e,t),!i)if(o){const n=e.contentCheckHooks;null!==n&&En(t,n)}else{const n=e.contentHooks;null!==n&&kn(t,n,1),Cn(t,1)}!function(e,t){try{const n=e.expandoInstructions;if(null!==n){let s=e.expandoStartIndex,r=-1,i=-1;for(let e=0;e<n.length;e++){const o=n[e];"number"==typeof o?o<=0?(i=0-o,bn(i),s+=9+n[++e],r=s):s+=o:(null!==o&&(an(s,r),o(2,t[r])),r++)}}}finally{bn(-1)}}(e,t);const a=e.components;null!==a&&function(e,t){for(let n=0;n<t.length;n++)ur(e,t[n])}(t,a);const l=e.viewQuery;if(null!==l&&gr(2,l,s),!i)if(o){const n=e.viewCheckHooks;null!==n&&En(t,n)}else{const n=e.viewHooks;null!==n&&kn(t,n,2),Cn(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),i||(t[2]&=-73),1024&t[2]&&(t[2]&=-1025,Ut(t[3],-1))}finally{_n()}}function Zs(e,t,n,s){const r=t[10],i=!sn(),o=zt(t);try{i&&!o&&r.begin&&r.begin(),o&&$s(e,t,s),zs(e,t,n,s)}finally{i&&!o&&r.end&&r.end()}}function Qs(e,t,n,s,r){const i=yn();try{bn(-1),2&s&&t.length>bt&&Ns(e,t,0,sn()),n(s,r)}finally{bn(i)}}function Ws(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=Us(1,-1,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function Us(e,t,n,s,r,i,o,a,l,c){const u=bt+s,h=u+r,d=function(e,t){const n=[];for(let s=0;s<t;s++)n.push(s<e?null:xs);return n}(u,h),p="function"==typeof c?c():c;return d[1]={type:e,id:t,blueprint:d,template:n,queries:null,viewQuery:a,node:null,data:d.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:h,expandoInstructions: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 i?i():i,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:l,consts:p,incompleteFirstPass:!1}}function Ks(e,t,n,s){const r=yr(t);r.push(n),e.firstCreatePass&&function(e){return e.cleanup||(e.cleanup=[])}(e).push(s,r.length-1)}function Gs(e,t,n,s,r,i){return{type:n,index:s,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,tagName:r,attrs:i,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}}function Ys(e,t,n){for(let s in e)if(e.hasOwnProperty(s)){const r=e[s];(n=null===n?{}:n).hasOwnProperty(s)?n[s].push(t,r):n[s]=[t,r]}return n}function Js(e,t,n,s,r,i,o,a){const l=Bt(t,n);let c,u=t.inputs;var h;!a&&null!=u&&(c=u[s])?(vr(e,n,c,s,r),Ct(t)&&function(e,t){const n=qt(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):3===t.type&&(s="class"===(h=s)?"className":"for"===h?"htmlFor":"formaction"===h?"formAction":"innerHtml"===h?"innerHTML":"readonly"===h?"readOnly":"tabindex"===h?"tabIndex":h,r=null!=o?o(r,t.tagName||"",s):r,Rt(i)?i.setProperty(l,s,r):On(s)||(l.setProperty?l.setProperty(s,r):l[s]=r))}function Xs(e,t){const n=e.expandoInstructions;n.push(t.hostBindings),0!==t.hostVars&&n.push(t.hostVars)}function er(e,t,n){for(let s=0;s<n;s++)t.push(xs),e.blueprint.push(xs),e.data.push(null)}function tr(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function nr(e,t,n){const s=bt-t.index,r=e.data.length-(1048575&t.providerIndexes);(e.expandoInstructions||(e.expandoInstructions=[])).push(s,r,n)}function sr(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function rr(e,t,n){if(n){if(t.exportAs)for(let s=0;s<t.exportAs.length;s++)n[t.exportAs[s]]=e;xt(t)&&(n[""]=e)}}function ir(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function or(e,t,n){e.data.push(n);const s=n.factory||(n.factory=_t(n.type)),r=new Tn(s,xt(n),null);e.blueprint.push(r),t.push(r)}function ar(e,t,n){const s=Bt(t,e),r=Ws(n),i=e[10],o=dr(e,Hs(e,r,null,n.onPush?64:16,s,t,i,i.createRenderer(s,n)));e[t.index]=o}function lr(e,t,n,s,r,i){const o=i[t];if(null!==o){const e=s.setInput;for(let t=0;t<o.length;){const r=o[t++],i=o[t++],a=o[t++];null!==e?s.setInput(n,a,r,i):n[i]=a}}}function cr(e,t){let n=null,s=0;for(;s<t.length;){const r=t[s];if(0!==r)if(5!==r){if("number"==typeof r)break;e.hasOwnProperty(r)&&(null===n&&(n=[]),n.push(r,e[r],t[s+1])),s+=2}else s+=2;else s+=4}return n}function ur(e,t){const n=qt(t,e);if(Zt(n)){const e=n[1];80&n[2]?zs(e,n,e.template,n[8]):n[5]>0&&function e(t){for(let s=As(t);null!==s;s=Is(s))for(let t=vt;t<s.length;t++){const n=s[t];if(1024&n[2]){const e=n[1];zs(e,n,e.template,n[8])}else n[5]>0&&e(n)}const n=t[1].components;if(null!==n)for(let s=0;s<n.length;s++){const r=qt(n[s],t);Zt(r)&&r[5]>0&&e(r)}}(n)}}function hr(e,t){const n=qt(t,e),s=n[1];!function(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(s,n),$s(s,n,n[8])}function dr(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function pr(e){for(;e;){e[2]|=64;const t=Ts(e);if(Tt(e)&&!t)return e;e=t}return null}function fr(e,t,n){const s=t[10];s.begin&&s.begin();try{zs(e,t,e.template,n)}catch(r){throw br(t,r),r}finally{s.end&&s.end()}}function mr(e){!function(e){for(let t=0;t<e.components.length;t++){const n=e.components[t],s=$t(n),r=s[1];Zs(r,s,r.template,n)}}(e[8])}function gr(e,t,n){un(0),t(e,n)}const _r=(()=>Promise.resolve(null))();function yr(e){return e[7]||(e[7]=[])}function br(e,t){const n=e[9],s=n?n.get(ls,null):null;s&&s.handleError(t)}function vr(e,t,n,s,r){for(let i=0;i<n.length;){const o=n[i++],a=n[i++],l=t[o],c=e.data[o];null!==c.setInput?c.setInput(l,r,s,a):l[a]=r}}function wr(e,t){const n=t[3];return-1===e.index?Et(n)?n:null:n}function Er(e,t){const n=wr(e,t);return n?Vr(t[11],n[7]):null}function kr(e,t,n,s,r){if(null!=s){let i,o=!1;Et(s)?i=s:wt(s)&&(o=!0,s=s[0]);const a=jt(s);0===e&&null!==n?null==r?Nr(t,n,a):Dr(t,n,a,r||null):1===e&&null!==n?Dr(t,n,a,r||null):2===e?function(e,t,n){const s=Vr(e,t);s&&function(e,t,n,s){Rt(e)?e.removeChild(t,n,s):t.removeChild(n)}(e,s,t,n)}(t,a,o):3===e&&t.destroyNode(a),null!=i&&function(e,t,n,s,r){const i=n[7];i!==jt(n)&&kr(t,e,s,i,r);for(let o=vt;o<n.length;o++){const r=n[o];Lr(r[1],r,e,t,s,i)}}(t,e,i,n,r)}}function Cr(e,t,n,s){const r=Er(e.node,t);r&&Lr(e,t,t[11],n?1:2,r,s)}function Sr(e,t){const n=e[9],s=n.indexOf(t);1024&t[2]&&Ut(t[3],-1),n.splice(s,1)}function xr(e,t){if(e.length<=vt)return;const n=vt+t,s=e[n];if(s){const r=s[17];null!==r&&r!==e&&Sr(r,s),t>0&&(e[n-1][4]=s[4]);const i=Xe(e,vt+t);Cr(s[1],s,!1,null);const o=i[19];null!==o&&o.detachView(i[1]),s[3]=null,s[4]=null,s[2]&=-129}return s}function Tr(e,t){if(!(256&t[2])){const n=t[11];Rt(n)&&n.destroyNode&&Lr(e,t,n,3,null,null),function(e){let t=e[13];if(!t)return Ir(e[1],e);for(;t;){let n=null;if(wt(t))n=t[13];else{const e=t[10];e&&(n=e)}if(!n){for(;t&&!t[4]&&t!==e;)wt(t)&&Ir(t[1],t),t=Ar(t,e);null===t&&(t=e),wt(t)&&Ir(t[1],t),n=t&&t[4]}t=n}}(t)}}function Ar(e,t){let n;return wt(e)&&(n=e[6])&&2===n.type?wr(n,e):e[3]===t?null:e[3]}function Ir(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let s=0;s<n.length;s+=2){const e=t[n[s]];if(!(e instanceof Tn)){const t=n[s+1];if(Array.isArray(t))for(let n=0;n<t.length;n+=2)t[n+1].call(e[t[n]]);else t.call(e)}}}(e,t),function(e,t){const n=e.cleanup;if(null!==n){const e=t[7];for(let s=0;s<n.length-1;s+=2)if("string"==typeof n[s]){const r=n[s+1],i="function"==typeof r?r(t):jt(t[r]),o=e[n[s+2]],a=n[s+3];"boolean"==typeof a?i.removeEventListener(n[s],o,a):a>=0?e[a]():e[-a].unsubscribe(),s+=2}else n[s].call(e[n[s+1]]);t[7]=null}}(e,t);const n=t[6];n&&3===n.type&&Rt(t[11])&&t[11].destroy();const s=t[17];if(null!==s&&Et(t[3])){s!==t[3]&&Sr(s,t);const n=t[19];null!==n&&n.detachView(e)}}}function Or(e,t,n){let s=t.parent;for(;null!=s&&(4===s.type||5===s.type);)s=(t=s).parent;if(null==s){const e=n[6];return 2===e.type?Er(e,n):n[0]}if(t&&5===t.type&&4&t.flags)return Bt(t,n).parentNode;if(2&s.flags){const t=e.data,n=t[t[s.index].directiveStart].encapsulation;if(n!==it.ShadowDom&&n!==it.Native)return null}return Bt(s,n)}function Dr(e,t,n,s){Rt(e)?e.insertBefore(t,n,s):t.insertBefore(n,s,!0)}function Nr(e,t,n){Rt(e)?e.appendChild(t,n):t.appendChild(n)}function Pr(e,t,n,s){null!==s?Dr(e,t,n,s):Nr(e,t,n)}function Vr(e,t){return Rt(e)?e.parentNode(t):t.parentNode}function Fr(e,t){if(2===e.type){const n=wr(e,t);return null===n?null:Mr(n.indexOf(t,vt)-vt,n)}return 4===e.type||5===e.type?Bt(e,t):null}function Rr(e,t,n,s){const r=Or(e,s,t);if(null!=r){const e=t[11],i=Fr(s.parent||t[6],t);if(Array.isArray(n))for(let t=0;t<n.length;t++)Pr(e,r,n[t],i);else Pr(e,r,n,i)}}function Mr(e,t){const n=vt+e+1;if(n<t.length){const e=t[n],s=e[1].firstChild;if(null!==s)return function e(t,n){if(null!==n){const s=n.type;if(3===s)return Bt(n,t);if(0===s)return Mr(-1,t[n.index]);if(4===s||5===s){const s=n.child;if(null!==s)return e(t,s);{const e=t[n.index];return Et(e)?Mr(-1,e):jt(e)}}{const s=t[16],r=s[6],i=Ts(s),o=r.projection[n.projection];return null!=o?e(i,o):e(t,n.next)}}return null}(e,s)}return t[7]}function jr(e,t,n,s,r,i,o){for(;null!=n;){const a=s[n.index],l=n.type;o&&0===t&&(a&&ds(jt(a),s),n.flags|=4),64!=(64&n.flags)&&(4===l||5===l?(jr(e,t,n.child,s,r,i,!1),kr(t,e,r,a,i)):1===l?Br(e,t,s,n,r,i):kr(t,e,r,a,i)),n=o?n.projectionNext:n.next}}function Lr(e,t,n,s,r,i){jr(n,s,e.node.child,t,r,i,!1)}function Br(e,t,n,s,r,i){const o=n[16],a=o[6].projection[s.projection];if(Array.isArray(a))for(let l=0;l<a.length;l++)kr(t,e,r,a[l],i);else jr(e,t,a,o[3],r,i,!0)}function Hr(e,t,n){Rt(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function qr(e,t,n){Rt(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}class $r{constructor(e,t){this._lView=e,this._cdRefInjectingView=t,this._appRef=null,this._viewContainerRef=null}get rootNodes(){const e=this._lView;return null==e[0]?function e(t,n,s,r,i=!1){for(;null!==s;){const o=n[s.index];if(null!==o&&r.push(jt(o)),Et(o))for(let t=vt;t<o.length;t++){const n=o[t],s=n[1].firstChild;null!==s&&e(n[1],n,s,r)}const a=s.type;if(4===a||5===a)e(t,n,s.child,r);else if(1===a){const t=n[16],i=t[6].projection[s.projection];if(Array.isArray(i))r.push(...i);else{const n=Ts(t);e(n[1],n,i,r,!0)}}s=i?s.projectionNext:s.next}return r}(e[1],e,e[6].child,[]):[]}get context(){return this._lView[8]}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._viewContainerRef){const e=this._viewContainerRef.indexOf(this);e>-1&&this._viewContainerRef.detach(e),this._viewContainerRef=null}Tr(this._lView[1],this._lView)}onDestroy(e){Ks(this._lView[1],this._lView,null,e)}markForCheck(){pr(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){fr(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(e,t,n){rn(!0);try{fr(e,t,n)}finally{rn(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}detachFromAppRef(){var e;this._appRef=null,Lr(this._lView[1],e=this._lView,e[11],2,null,null)}attachToAppRef(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}class zr extends $r{constructor(e){super(e),this._view=e}detectChanges(){mr(this._view)}checkNoChanges(){!function(e){rn(!0);try{mr(e)}finally{rn(!1)}}(this._view)}get context(){return null}}let Zr,Qr,Wr;function Ur(e,t,n){return Zr||(Zr=class extends e{}),new Zr(Bt(t,n))}function Kr(e,t,n,s){return Qr||(Qr=class extends e{constructor(e,t,n){super(),this._declarationView=e,this._declarationTContainer=t,this.elementRef=n}createEmbeddedView(e){const t=this._declarationTContainer.tViews,n=Hs(this._declarationView,t,e,16,null,t.node);n[17]=this._declarationView[this._declarationTContainer.index];const s=this._declarationView[19];return null!==s&&(n[19]=s.createEmbeddedView(t)),$s(t,n,e),new $r(n)}}),0===n.type?new Qr(s,n,Ur(t,n,s)):null}function Gr(e,t,n,s){let r;Wr||(Wr=class extends e{constructor(e,t,n){super(),this._lContainer=e,this._hostTNode=t,this._hostView=n}get element(){return Ur(t,this._hostTNode,this._hostView)}get injector(){return new ns(this._hostTNode,this._hostView)}get parentInjector(){const e=Wn(this._hostTNode,this._hostView),t=Rn(e,this._hostView),n=function(e,t,n){if(n.parent&&-1!==n.parent.injectorIndex){const e=n.parent.injectorIndex;let t=n.parent;for(;null!=t.parent&&e==t.parent.injectorIndex;)t=t.parent;return t}let s=Fn(e),r=t,i=t[6];for(;s>1;)r=r[15],i=r[6],s--;return i}(e,this._hostView,this._hostTNode);return Pn(e)&&null!=n?new ns(n,t):new ns(null,this._hostView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){return null!==this._lContainer[8]&&this._lContainer[8][e]||null}get length(){return this._lContainer.length-vt}createEmbeddedView(e,t,n){const s=e.createEmbeddedView(t||{});return this.insert(s,n),s}createComponent(e,t,n,s,r){const i=n||this.parentInjector;if(!r&&null==e.ngModule&&i){const e=i.get(Ge,null);e&&(r=e)}const o=e.create(i,s,void 0,r);return this.insert(o.hostView,t),o}insert(e,t){const n=e._lView,s=n[1];if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),Et(n[3])){const t=this.indexOf(e);if(-1!==t)this.detach(t);else{const t=n[3],s=new Wr(t,t[6],t[3]);s.detach(s.indexOf(e))}}const r=this._adjustIndex(t);return function(e,t,n,s){const r=vt+s,i=n.length;s>0&&(n[r-1][4]=t),s<i-vt?(t[4]=n[r],Je(n,vt+s,t)):(n.push(t),t[4]=null),t[3]=n;const o=t[17];null!==o&&n!==o&&function(e,t){const n=e[9];t[16]!==t[3][3][16]&&(e[2]=!0),null===n?e[9]=[t]:n.push(t)}(o,t);const a=t[19];null!==a&&a.insertView(e),t[2]|=128}(s,n,this._lContainer,r),Cr(s,n,!0,Mr(r,this._lContainer)),e.attachToViewContainerRef(this),Je(this._lContainer[8],r,e),e}move(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");return this.insert(e,t)}indexOf(e){const t=this._lContainer[8];return null!==t?t.indexOf(e):-1}remove(e){this.allocateContainerIfNeeded();const t=this._adjustIndex(e,-1),n=xr(this._lContainer,t);n&&(Xe(this._lContainer[8],t),Tr(n[1],n))}detach(e){this.allocateContainerIfNeeded();const t=this._adjustIndex(e,-1),n=xr(this._lContainer,t);return n&&null!=Xe(this._lContainer[8],t)?new $r(n):null}_adjustIndex(e,t=0){return null==e?this.length+t:e}allocateContainerIfNeeded(){null===this._lContainer[8]&&(this._lContainer[8]=[])}});const i=s[n.index];if(Et(i))r=i;else{let e;if(4===n.type)e=jt(i);else if(e=s[11].createComment(""),Tt(s)){const t=s[11],r=Bt(n,s);Dr(t,Vr(t,r),e,function(e,t){return Rt(e)?e.nextSibling(t):t.nextSibling}(t,r))}else Rr(s[1],s,e,n);s[n.index]=r=new Array(i,!0,!1,s,null,0,n,e,null,null),dr(s,r)}return new Wr(r,n,s)}let Yr=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Jr(),e})();const Jr=function(e=!1){return function(e,t,n){if(!n&&Ct(e)){const n=qt(e.index,t);return new $r(n,n)}return 3===e.type||0===e.type||4===e.type||5===e.type?new $r(t[16],t):null}(Xt(),Yt(),e)},Xr=new Fe("Set Injector scope."),ei={},ti={},ni=[];let si=void 0;function ri(){return void 0===si&&(si=new Ke),si}function ii(e,t=null,n=null,s){return new oi(e,n,t||ri(),s)}class oi{constructor(e,t,n,s=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const r=[];t&&Ye(t,n=>this.processProvider(n,e,t)),Ye([e],e=>this.processInjectorType(e,[],r)),this.records.set(Re,ci(void 0,this));const i=this.records.get(Xr);this.scope=null!=i?i.value:null,this.source=s||("object"==typeof e?null:_e(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,t=Me,n=re.Default){this.assertNotDestroyed();const s=$e(this);try{if(!(n&re.SkipSelf)){let t=this.records.get(e);if(void 0===t){const n=("function"==typeof(r=e)||"object"==typeof r&&r instanceof Fe)&&ce(e);t=n&&this.injectableDefInScope(n)?ci(ai(e),ei):null,this.records.set(e,t)}if(null!=t)return this.hydrate(e,t)}return(n&re.Self?ri():this.parent).get(e,t=n&re.Optional&&t===Me?null:t)}catch(i){if("NullInjectorError"===i.name){if((i.ngTempTokenPath=i.ngTempTokenPath||[]).unshift(_e(e)),s)throw i;return function(e,t,n,s){const r=e.ngTempTokenPath;throw t[Le]&&r.unshift(t[Le]),e.message=function(e,t,n,s=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let r=_e(t);if(Array.isArray(t))r=t.map(_e).join(" -> ");else if("object"==typeof t){let e=[];for(let n in t)if(t.hasOwnProperty(n)){let s=t[n];e.push(n+":"+("string"==typeof s?JSON.stringify(s):_e(s)))}r=`{${e.join(", ")}}`}return`${n}${s?"("+s+")":""}[${r}]: ${e.replace(je,"\n ")}`}("\n"+e.message,r,n,s),e.ngTokenPath=r,e.ngTempTokenPath=null,e}(i,e,"R3InjectorError",this.source)}throw i}finally{$e(s)}var r}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((t,n)=>e.push(_e(n))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(e,t,n){if(!(e=we(e)))return!1;let s=he(e);const r=null==s&&e.ngModule||void 0,i=void 0===r?e:r,o=-1!==n.indexOf(i);if(void 0!==r&&(s=he(r)),null==s)return!1;if(null!=s.imports&&!o){let e;n.push(i);try{Ye(s.imports,s=>{this.processInjectorType(s,t,n)&&(void 0===e&&(e=[]),e.push(s))})}finally{}if(void 0!==e)for(let t=0;t<e.length;t++){const{ngModule:n,providers:s}=e[t];Ye(s,e=>this.processProvider(e,n,s||ni))}}this.injectorDefTypes.add(i),this.records.set(i,ci(s.factory,ei));const a=s.providers;if(null!=a&&!o){const t=e;Ye(a,e=>this.processProvider(e,t,a))}return void 0!==r&&void 0!==e.providers}processProvider(e,t,n){let s=hi(e=we(e))?e:we(e&&e.provide);const r=function(e,t,n){return ui(e)?ci(void 0,e.useValue):ci(li(e,t,n),ei)}(e,t,n);if(hi(e)||!0!==e.multi){const e=this.records.get(s);e&&void 0!==e.multi&&fs()}else{let t=this.records.get(s);t?void 0===t.multi&&fs():(t=ci(void 0,ei,!0),t.factory=()=>Ue(t.multi),this.records.set(s,t)),s=e,t.multi.push(e)}this.records.set(s,r)}hydrate(e,t){var n;return t.value===ti?function(e){throw new Error("Cannot instantiate cyclic dependency! "+e)}(_e(e)):t.value===ei&&(t.value=ti,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}injectableDefInScope(e){return!!e.providedIn&&("string"==typeof e.providedIn?"any"===e.providedIn||e.providedIn===this.scope:this.injectorDefTypes.has(e.providedIn))}}function ai(e){const t=ce(e),n=null!==t?t.factory:_t(e);if(null!==n)return n;const s=he(e);if(null!==s)return s.factory;if(e instanceof Fe)throw new Error(`Token ${_e(e)} is missing a \u0275prov definition.`);if(e instanceof Function)return function(e){const t=e.length;if(t>0){const n=et(t,"?");throw new Error(`Can't resolve all parameters for ${_e(e)}: (${n.join(", ")}).`)}const n=function(e){const t=e&&(e[de]||e[me]||e[fe]&&e[fe]());if(t){const n=function(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${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 "${n}" class.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new Error("unreachable")}function li(e,t,n){let s=void 0;if(hi(e)){const t=we(e);return _t(t)||ai(t)}if(ui(e))s=()=>we(e.useValue);else if((r=e)&&r.useFactory)s=()=>e.useFactory(...Ue(e.deps||[]));else if(function(e){return!(!e||!e.useExisting)}(e))s=()=>Qe(we(e.useExisting));else{const r=we(e&&(e.useClass||e.provide));if(r||function(e,t,n){let s="";throw e&&t&&(s=` - only instances of Provider and Type are allowed, got: [${t.map(e=>e==n?"?"+n+"?":"...").join(", ")}]`),new Error(`Invalid provider for the NgModule '${_e(e)}'`+s)}(t,n,e),!function(e){return!!e.deps}(e))return _t(r)||ai(r);s=()=>new r(...Ue(e.deps))}var r;return s}function ci(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function ui(e){return null!==e&&"object"==typeof e&&Be in e}function hi(e){return"function"==typeof e}const di=function(e,t,n){return function(e,t=null,n=null,s){const r=ii(e,t,n,s);return r._resolveInjectorDefTypes(),r}({name:n},t,e,n)};let pi=(()=>{class e{static create(e,t){return Array.isArray(e)?di(e,t,""):di(e.providers,e.parent,e.name||"")}}return e.THROW_IF_NOT_FOUND=Me,e.NULL=new Ke,e.\u0275prov=ae({token:e,providedIn:"any",factory:()=>Qe(Re)}),e.__NG_ELEMENT_ID__=-1,e})();function fi(e,t,n){let s=n?e.styles:null,r=n?e.classes:null,i=0;if(null!==t)for(let o=0;o<t.length;o++){const e=t[o];"number"==typeof e?i=e:1==i?r=ye(r,e):2==i&&(s=ye(s,e+": "+t[++o]+";"))}n?e.styles=s:e.stylesWithoutHost=s,n?e.classes=r:e.classesWithoutHost=r}let mi=null;function gi(){if(!mi){const e=Te.Symbol;if(e&&e.iterator)mi=e.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;t<e.length;++t){const n=e[t];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(mi=n)}}}return mi}function _i(e){return!!yi(e)&&(Array.isArray(e)||!(e instanceof Map)&&gi()in e)}function yi(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function bi(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function vi(e,t,n,s){const r=Yt();return bi(r,on(),t)&&(Jt(),function(e,t,n,s,r,i){const o=Bt(e,t),a=t[11];if(null==s)Rt(a)?a.removeAttribute(o,n,i):o.removeAttribute(n);else{const t=null==r?Mn(s):r(s,e.tagName||"",n);Rt(a)?a.setAttribute(o,n,t,i):i?o.setAttributeNS(i,n,t):o.setAttribute(n,t)}}(vn(),r,e,t,n,s)),vi}function wi(e){return function(e,t){return e[t+bt]}(Kt.lFrame.contextLView,e)}function Ei(e,t=re.Default){const n=Yt();return null==n?Qe(e,t):Kn(Xt(),n,we(e),t)}function ki(e,t,n){const s=Yt();return bi(s,on(),t)&&Js(Jt(),vn(),s,e,t,s[11],n,!1),ki}function Ci(e,t,n,s,r){const i=r?"class":"style";vr(e,n,t.inputs[i],i,s)}function Si(e,t,n,s){const r=Yt(),i=Jt(),o=bt+e,a=r[11],l=r[o]=Bs(t,a,Kt.lFrame.currentNamespace),c=i.firstCreatePass?function(e,t,n,s,r,i,o){const a=t.consts,l=Qt(a,i),c=qs(t,n[6],e,3,r,l);return function(e,t,n,s){let r=!1;if(Gt()){const i=function(e,t,n){const s=e.directiveRegistry;let r=null;if(s)for(let i=0;i<s.length;i++){const o=s[i];ks(n,o.selectors,!1)&&(r||(r=[]),Un(zn(n,t),e,o.type),xt(o)?(2&n.flags&&ps(n),sr(e,n),r.unshift(o)):r.push(o))}return r}(e,t,n),o=null===s?null:{"":-1};if(null!==i){let s=0;r=!0,ir(n,e.data.length,i.length);for(let e=0;e<i.length;e++){const t=i[e];t.providersResolver&&t.providersResolver(t)}nr(e,n,i.length);let a=!1,l=!1;for(let r=0;r<i.length;r++){const c=i[r];n.mergedAttrs=Dn(n.mergedAttrs,c.hostAttrs),or(e,t,c),rr(e.data.length-1,c,o),null!==c.contentQueries&&(n.flags|=8),null===c.hostBindings&&null===c.hostAttrs&&0===c.hostVars||(n.flags|=128);const u=c.type.prototype;!a&&(u.ngOnChanges||u.ngOnInit||u.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index-bt),a=!0),l||!u.ngOnChanges&&!u.ngDoCheck||((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index-bt),l=!0),Xs(e,c),s+=c.hostVars}!function(e,t){const n=t.directiveEnd,s=e.data,r=t.attrs,i=[];let o=null,a=null;for(let l=t.directiveStart;l<n;l++){const e=s[l],n=e.inputs,c=null===r||ys(t)?null:cr(n,r);i.push(c),o=Ys(n,l,o),a=Ys(e.outputs,l,a)}null!==o&&(o.hasOwnProperty("class")&&(t.flags|=16),o.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=i,t.inputs=o,t.outputs=a}(e,n),er(e,t,s)}o&&function(e,t,n){if(t){const s=e.localNames=[];for(let e=0;e<t.length;e+=2){const r=n[t[e+1]];if(null==r)throw new Error(`Export of name '${t[e+1]}' not found!`);s.push(t[e],r)}}}(n,s,o)}n.mergedAttrs=Dn(n.mergedAttrs,n.attrs)}(t,n,c,Qt(a,o)),null!==c.attrs&&fi(c,c.attrs,!1),null!==c.mergedAttrs&&fi(c,c.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,c),c}(e,i,r,0,t,n,s):i.data[o];en(c,!0);const u=c.mergedAttrs;null!==u&&An(a,l,u);const h=c.classes;null!==h&&qr(a,l,h);const d=c.styles;null!==d&&Hr(a,l,d),Rr(i,r,l,c),0===Kt.lFrame.elementDepthCount&&ds(l,r),Kt.lFrame.elementDepthCount++,St(c)&&(function(e,t,n){Gt()&&(function(e,t,n,s){const r=n.directiveStart,i=n.directiveEnd;e.firstCreatePass||zn(n,t),ds(s,t);const o=n.initialInputs;for(let a=r;a<i;a++){const s=e.data[a],i=xt(s);i&&ar(t,n,s);const l=Xn(t,e,a,n);ds(l,t),null!==o&&lr(0,a-r,l,s,0,o),i&&(qt(n.index,t)[8]=l)}}(e,t,n,Bt(n,t)),128==(128&n.flags)&&function(e,t,n){const s=n.directiveStart,r=n.directiveEnd,i=e.expandoInstructions,o=e.firstCreatePass,a=n.index-bt,l=Kt.lFrame.currentDirectiveIndex;try{bn(a);for(let n=s;n<r;n++){const s=e.data[n],r=t[n];ln(n),null!==s.hostBindings||0!==s.hostVars||null!==s.hostAttrs?tr(s,r):o&&i.push(null)}}finally{bn(-1),ln(l)}}(e,t,n))}(i,r,c),function(e,t,n){if(kt(t)){const s=t.directiveEnd;for(let r=t.directiveStart;r<s;r++){const t=e.data[r];t.contentQueries&&t.contentQueries(1,n[r],r)}}}(i,c,r)),null!==s&&function(e,t,n=Bt){const s=t.localNames;if(null!==s){let r=t.index+1;for(let i=0;i<s.length;i+=2){const o=s[i+1],a=-1===o?n(t,e):e[o];e[r++]=a}}}(r,c)}function xi(){let e=Xt();tn()?nn():(e=e.parent,en(e,!1));const t=e;Kt.lFrame.elementDepthCount--;const n=Jt();n.firstCreatePass&&(wn(n,e),kt(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&Ci(n,t,Yt(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&Ci(n,t,Yt(),t.stylesWithoutHost,!1)}function Ti(e,t,n,s){Si(e,t,n,s),xi()}function Ai(e){return!!e&&"function"==typeof e.then}function Ii(e,t,n=!1,s){const r=Yt(),i=Jt(),o=Xt();return function(e,t,n,s,r,i,o=!1,a){const l=St(s),c=e.firstCreatePass&&(e.cleanup||(e.cleanup=[])),u=yr(t);let h=!0;if(3===s.type){const d=Bt(s,t),p=a?a(d):ot,f=p.target||d,m=u.length,g=a?e=>a(jt(e[s.index])).target:s.index;if(Rt(n)){let o=null;if(!a&&l&&(o=function(e,t,n,s){const r=e.cleanup;if(null!=r)for(let i=0;i<r.length-1;i+=2){const e=r[i];if(e===n&&r[i+1]===s){const e=t[7],n=r[i+2];return e.length>n?e[n]:null}"string"==typeof e&&(i+=2)}return null}(e,t,r,s.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=i,o.__ngLastListenerFn__=i,h=!1;else{i=Di(s,t,i,!1);const e=n.listen(p.name||f,r,i);u.push(i,e),c&&c.push(r,g,m,m+1)}}else i=Di(s,t,i,!0),f.addEventListener(r,i,o),u.push(i),c&&c.push(r,g,m,o)}const d=s.outputs;let p;if(h&&null!==d&&(p=d[r])){const e=p.length;if(e)for(let n=0;n<e;n+=2){const e=t[p[n]][p[n+1]].subscribe(i),o=u.length;u.push(i,e),c&&c.push(r,s.index,o,-(o+1))}}}(i,r,r[11],o,e,t,n,s),Ii}function Oi(e,t,n){try{return!1!==t(n)}catch(s){return br(e,s),!1}}function Di(e,t,n,s){return function r(i){if(i===Function)return n;const o=2&e.flags?qt(e.index,t):t;0==(32&t[2])&&pr(o);let a=Oi(t,n,i),l=r.__ngNextListenerFn__;for(;l;)a=Oi(t,l,i)&&a,l=l.__ngNextListenerFn__;return s&&!1===a&&(i.preventDefault(),i.returnValue=!1),a}}const Ni=[];function Pi(e,t,n,s,r){const i=e[n+1],o=null===t;let a=s?Vs(i):Rs(i),l=!1;for(;0!==a&&(!1===l||o);){const n=e[a+1];Vi(e[a],t)&&(l=!0,e[a+1]=s?js(n):Fs(n)),a=s?Vs(n):Rs(n)}l&&(e[n+1]=s?Fs(i):js(i))}function Vi(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&st(e,t)>=0}function Fi(e,t){return function(e,t,n,s){const r=Yt(),i=Jt(),o=function(e){const t=Kt.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+2,n}();i.firstUpdatePass&&function(e,t,n,s){const r=e.data;if(null===r[n+1]){const i=r[yn()+bt],o=function(e,t){return t>=e.expandoStartIndex}(e,n);(function(e,t){return 0!=(16&e.flags)})(i)&&null===t&&!o&&(t=!1),t=function(e,t,n,s){const r=function(e){const t=Kt.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let i=t.residualClasses;if(null===r)0===t.classBindings&&(n=Mi(n=Ri(null,e,t,n,s),t.attrs,s),i=null);else{const o=t.directiveStylingLast;if(-1===o||e[o]!==r)if(n=Ri(r,e,t,n,s),null===i){let n=function(e,t,n){const s=t.classBindings;if(0!==Rs(s))return e[Vs(s)]}(e,t);void 0!==n&&Array.isArray(n)&&(n=Ri(null,e,t,n[1],s),n=Mi(n,t.attrs,s),function(e,t,n,s){e[Vs(t.classBindings)]=s}(e,t,0,n))}else i=function(e,t,n){let s=void 0;const r=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<r;i++)s=Mi(s,e[i].hostAttrs,true);return Mi(s,t.attrs,true)}(e,t)}return void 0!==i&&(t.residualClasses=i),n}(r,i,t,s),function(e,t,n,s,r,i){let o=t.classBindings,a=Vs(o),l=Rs(o);e[s]=n;let c,u=!1;if(Array.isArray(n)){const e=n;c=e[1],(null===c||st(e,c)>0)&&(u=!0)}else c=n;if(r)if(0!==l){const t=Vs(e[a+1]);e[s+1]=Ps(t,a),0!==t&&(e[t+1]=Ms(e[t+1],s)),e[a+1]=131071&e[a+1]|s<<17}else e[s+1]=Ps(a,0),0!==a&&(e[a+1]=Ms(e[a+1],s)),a=s;else e[s+1]=Ps(l,0),0===a?a=s:e[l+1]=Ms(e[l+1],s),l=s;u&&(e[s+1]=Fs(e[s+1])),Pi(e,c,s,!0),Pi(e,c,s,!1),function(e,t,n,s,r){const i=e.residualClasses;null!=i&&"string"==typeof t&&st(i,t)>=0&&(n[s+1]=js(n[s+1]))}(t,c,e,s),o=Ps(a,l),t.classBindings=o}(r,i,t,n,o)}}(i,e,o,true),t!==xs&&bi(r,o,t)&&function(e,t,n,s,r,i,o,a){if(3!==t.type)return;const l=e.data,c=l[a+1];Li(1==(1&c)?ji(l,t,n,r,Rs(c),o):void 0)||(Li(i)||function(e){return 2==(2&e)}(c)&&(i=ji(l,null,n,r,a,o)),function(e,t,n,s,r){const i=Rt(e);r?i?e.addClass(n,s):n.classList.add(s):i?e.removeClass(n,s):n.classList.remove(s)}(s,0,Lt(yn(),n),r,i))}(i,i.data[yn()+bt],r,r[11],e,r[o+1]=function(e,t){return null==e||"object"==typeof e&&(e=_e(function(e){return e instanceof class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"}}?e.changingThisBreaksApplicationSecurity:e}(e))),e}(t),true,o)}(e,t),Fi}function Ri(e,t,n,s,r){let i=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<o&&(i=t[a],s=Mi(s,i.hostAttrs,r),i!==e);)a++;return null!==e&&(n.directiveStylingLast=a),s}function Mi(e,t,n){const s=n?1:2;let r=-1;if(null!==t)for(let i=0;i<t.length;i++){const o=t[i];"number"==typeof o?r=o:r===s&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),tt(e,o,!!n||t[++i]))}return void 0===e?null:e}function ji(e,t,n,s,r,i){const o=null===t;let a=void 0;for(;r>0;){const t=e[r],i=Array.isArray(t),l=i?t[1]:t,c=null===l;let u=n[r+1];u===xs&&(u=c?Ni:void 0);let h=c?nt(u,s):l===s?u:void 0;if(i&&!Li(h)&&(h=nt(t,s)),Li(h)&&(a=h,o))return a;const d=e[r+1];r=o?Vs(d):Rs(d)}if(null!==t){let e=i?t.residualClasses:t.residualStyles;null!=e&&(a=nt(e,s))}return a}function Li(e){return void 0!==e}function Bi(e,t=""){const n=Yt(),s=Jt(),r=e+bt,i=s.firstCreatePass?qs(s,n[6],e,3,null,null):s.data[r],o=n[r]=function(e,t){return Rt(t)?t.createText(e):t.createTextNode(e)}(t,n[11]);Rr(s,n,o,i),en(i,!1)}function Hi(e){return qi("",e,""),Hi}function qi(e,t,n){const s=Yt(),r=function(e,t,n,s){return bi(e,on(),n)?t+Mn(n)+s:xs}(s,e,t,n);return r!==xs&&function(e,t,n){const s=Lt(t,e),r=e[11];Rt(r)?r.setValue(s,n):s.textContent=n}(s,yn(),r),qi}function $i(e,t,n){const s=Yt();return bi(s,on(),t)&&Js(Jt(),vn(),s,e,t,s[11],n,!0),$i}function zi(e,t){const n=$t(e)[1],s=n.data.length-1;wn(n,{directiveStart:s,directiveEnd:s+1})}function Zi(e){let t=Object.getPrototypeOf(e.type.prototype).constructor,n=!0;const s=[e];for(;t;){let r=void 0;if(xt(e))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");r=t.\u0275dir}if(r){if(n){s.push(r);const t=e;t.inputs=Qi(e.inputs),t.declaredInputs=Qi(e.declaredInputs),t.outputs=Qi(e.outputs);const n=r.hostBindings;n&&Ki(e,n);const i=r.viewQuery,o=r.contentQueries;if(i&&Wi(e,i),o&&Ui(e,o),oe(e.inputs,r.inputs),oe(e.declaredInputs,r.declaredInputs),oe(e.outputs,r.outputs),xt(r)&&r.data.animation){const t=e.data;t.animation=(t.animation||[]).concat(r.data.animation)}}const t=r.features;if(t)for(let s=0;s<t.length;s++){const r=t[s];r&&r.ngInherit&&r(e),r===Zi&&(n=!1)}}t=Object.getPrototypeOf(t)}!function(e){let t=0,n=null;for(let s=e.length-1;s>=0;s--){const r=e[s];r.hostVars=t+=r.hostVars,r.hostAttrs=Dn(r.hostAttrs,n=Dn(n,r.hostAttrs))}}(s)}function Qi(e){return e===ot?{}:e===at?[]:e}function Wi(e,t){const n=e.viewQuery;e.viewQuery=n?(e,s)=>{t(e,s),n(e,s)}:t}function Ui(e,t){const n=e.contentQueries;e.contentQueries=n?(e,s,r)=>{t(e,s,r),n(e,s,r)}:t}function Ki(e,t){const n=e.hostBindings;e.hostBindings=n?(e,s)=>{t(e,s),n(e,s)}:t}function Gi(e,t,n,s,r){if(e=we(e),Array.isArray(e))for(let i=0;i<e.length;i++)Gi(e[i],t,n,s,r);else{const i=Jt(),o=Yt();let a=hi(e)?e:we(e.provide),l=li(e);const c=Xt(),u=1048575&c.providerIndexes,h=c.directiveStart,d=c.providerIndexes>>20;if(hi(e)||!e.multi){const s=new Tn(l,r,Ei),p=Xi(a,t,r?u:u+d,h);-1===p?(Un(zn(c,o),i,a),Yi(i,e,t.length),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(s),o.push(s)):(n[p]=s,o[p]=s)}else{const p=Xi(a,t,u+d,h),f=Xi(a,t,u,u+d),m=p>=0&&n[p],g=f>=0&&n[f];if(r&&!g||!r&&!m){Un(zn(c,o),i,a);const u=function(e,t,n,s,r){const i=new Tn(e,n,Ei);return i.multi=[],i.index=t,i.componentProviders=0,Ji(i,r,s&&!n),i}(r?to:eo,n.length,r,s,l);!r&&g&&(n[f].providerFactory=u),Yi(i,e,t.length,0),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(u),o.push(u)}else Yi(i,e,p>-1?p:f,Ji(n[r?f:p],l,!r&&s));!r&&s&&g&&n[f].componentProviders++}}}function Yi(e,t,n,s){const r=hi(t);if(r||t.useClass){const i=(t.useClass||t).prototype.ngOnDestroy;if(i){const o=e.destroyHooks||(e.destroyHooks=[]);if(!r&&t.multi){const e=o.indexOf(n);-1===e?o.push(n,[s,i]):o[e+1].push(s,i)}else o.push(n,i)}}}function Ji(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Xi(e,t,n,s){for(let r=n;r<s;r++)if(t[r]===e)return r;return-1}function eo(e,t,n,s){return no(this.multi,[])}function to(e,t,n,s){const r=this.multi;let i;if(this.providerFactory){const e=this.providerFactory.componentProviders,t=Xn(n,n[1],this.providerFactory.index,s);i=t.slice(0,e),no(r,i);for(let n=e;n<t.length;n++)i.push(t[n])}else i=[],no(r,i);return i}function no(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function so(e,t=[]){return n=>{n.providersResolver=(n,s)=>function(e,t,n){const s=Jt();if(s.firstCreatePass){const r=xt(e);Gi(n,s.data,s.blueprint,r,!0),Gi(t,s.data,s.blueprint,r,!1)}}(n,s?s(e):e,t)}}class ro{}class io{resolveComponentFactory(e){throw function(e){const t=Error(`No component factory found for ${_e(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(e)}}let oo=(()=>{class e{}return e.NULL=new io,e})(),ao=(()=>{class e{constructor(e){this.nativeElement=e}}return e.__NG_ELEMENT_ID__=()=>lo(e),e})();const lo=function(e){return Ur(e,Xt(),Yt())};class co{}var uo=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}({});let ho=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>po(),e})();const po=function(){const e=Yt(),t=qt(Xt().index,e);return function(e){const t=e[11];if(Rt(t))return t;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(wt(t)?t:e)};let fo=(()=>{class e{}return e.\u0275prov=ae({token:e,providedIn:"root",factory:()=>null}),e})();class mo{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const go=new mo("10.1.0");class _o{constructor(){}supports(e){return _i(e)}create(e){return new bo(e)}}const yo=(e,t)=>t;class bo{constructor(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=e||yo}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,n=this._removalsHead,s=0,r=null;for(;t||n;){const i=!n||t&&t.currentIndex<ko(n,s,r)?t:n,o=ko(i,s,r),a=i.currentIndex;if(i===n)s--,n=n._nextRemoved;else if(t=t._next,null==i.previousIndex)s++;else{r||(r=[]);const e=o-s,t=a-s;if(e!=t){for(let n=0;n<e;n++){const s=n<r.length?r[n]:r[n]=0,i=s+n;t<=i&&i<e&&(r[n]=s+1)}r[i.previousIndex]=t-e}}o!==a&&e(i,o,a)}}forEachPreviousItem(e){let t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachMovedItem(e){let t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}forEachIdentityChange(e){let t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}diff(e){if(null==e&&(e=[]),!_i(e))throw new Error(`Error trying to diff '${_e(e)}'. Only arrays and iterables are allowed`);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t,n,s,r=this._itHead,i=!1;if(Array.isArray(e)){this.length=e.length;for(let t=0;t<this.length;t++)n=e[t],s=this._trackByFn(t,n),null!==r&&Object.is(r.trackById,s)?(i&&(r=this._verifyReinsertion(r,n,s,t)),Object.is(r.item,n)||this._addIdentityChange(r,n)):(r=this._mismatch(r,n,s,t),i=!0),r=r._next}else t=0,function(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[gi()]();let s;for(;!(s=n.next()).done;)t(s.value)}}(e,e=>{s=this._trackByFn(t,e),null!==r&&Object.is(r.trackById,s)?(i&&(r=this._verifyReinsertion(r,e,s,t)),Object.is(r.item,e)||this._addIdentityChange(r,e)):(r=this._mismatch(r,e,s,t),i=!0),r=r._next,t++}),this.length=t;return this._truncate(r),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e,t;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=t)e.previousIndex=e.currentIndex,t=e._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,n,s){let r;return null===e?r=this._itTail:(r=e._prev,this._remove(e)),null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,s))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,r,s)):null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,r,s)):e=this._addAfter(new vo(t,n),r,s),e}_verifyReinsertion(e,t,n,s){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==r?e=this._reinsertAfter(r,e._prev,s):e.currentIndex!=s&&(e.currentIndex=s,this._addToMoves(e,s)),e}_truncate(e){for(;null!==e;){const 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)}_reinsertAfter(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const s=e._prevRemoved,r=e._nextRemoved;return null===s?this._removalsHead=r:s._nextRemoved=r,null===r?this._removalsTail=s:r._prevRemoved=s,this._insertAfter(e,t,n),this._addToMoves(e,n),e}_moveAfter(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}_addAfter(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,n){const s=null===t?this._itHead:t._next;return e._next=s,e._prev=t,null===s?this._itTail=e:s._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new Eo),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}_addToMoves(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Eo),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}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class vo{constructor(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class wo{constructor(){this._head=null,this._tail=null}add(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)}get(e,t){let 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}remove(e){const 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}}class Eo{constructor(){this.map=new Map}put(e){const t=e.trackById;let n=this.map.get(t);n||(n=new wo,this.map.set(t,n)),n.add(e)}get(e,t){const n=this.map.get(e);return n?n.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function ko(e,t,n){const s=e.previousIndex;if(null===s)return s;let r=0;return n&&s<n.length&&(r=n[s]),s+t+r}class Co{constructor(){}supports(e){return e instanceof Map||yi(e)}create(){return new So}}class So{constructor(){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}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(e){let t;for(t=this._mapHead;null!==t;t=t._next)e(t)}forEachPreviousItem(e){let t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}forEachChangedItem(e){let t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}diff(e){if(e){if(!(e instanceof Map||yi(e)))throw new Error(`Error trying to diff '${_e(e)}'. Only maps and objects are allowed`)}else e=new Map;return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t=this._mapHead;if(this._appendAfter=null,this._forEach(e,(e,n)=>{if(t&&t.key===n)this._maybeAddToChanges(t,e),this._appendAfter=t,t=t._next;else{const s=this._getOrCreateRecordForKey(n,e);t=this._insertBeforeOrAppend(t,s)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let e=t;null!==e;e=e._nextRemoved)e===this._mapHead&&(this._mapHead=null),this._records.delete(e.key),e._nextRemoved=e._next,e.previousValue=e.currentValue,e.currentValue=null,e._prev=null,e._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const 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}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const n=this._records.get(e);this._maybeAddToChanges(n,t);const s=n._prev,r=n._next;return s&&(s._next=r),r&&(r._prev=s),n._next=null,n._prev=null,n}const n=new xo(e);return this._records.set(e,n),n.currentValue=t,this._addToAdditions(n),n}_reset(){if(this.isDirty){let 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}}_maybeAddToChanges(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(n=>t(e[n],n))}}class xo{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}let To=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(null!=n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return e.create(t,n)},deps:[[e,new se,new te]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(null!=t)return t;throw new Error(`Cannot find a differ supporting object '${e}' of type '${n=e,n.name||typeof n}'`);var n}}return e.\u0275prov=ae({token:e,providedIn:"root",factory:()=>new e([new _o])}),e})(),Ao=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return e.create(t,n)},deps:[[e,new se,new te]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(t)return t;throw new Error(`Cannot find a differ supporting object '${e}'`)}}return e.\u0275prov=ae({token:e,providedIn:"root",factory:()=>new e([new Co])}),e})();const Io=[new Co],Oo=new To([new _o]),Do=new Ao(Io);let No=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Po(e,ao),e})();const Po=function(e,t){return Kr(e,t,Xt(),Yt())};let Vo=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Fo(e,ao),e})();const Fo=function(e,t){return Gr(e,t,Xt(),Yt())},Ro={};class Mo extends oo{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const t=gt(e);return new Bo(t,this.ngModule)}}function jo(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}const Lo=new Fe("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Ln});class Bo extends ro{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=e.selectors.map(Ss).join(","),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return jo(this.componentDef.inputs)}get outputs(){return jo(this.componentDef.outputs)}create(e,t,n,s){const r=(s=s||this.ngModule)?function(e,t){return{get:(n,s,r)=>{const i=e.get(n,Ro,r);return i!==Ro||s===Ro?i:t.get(n,s,r)}}}(e,s.injector):e,i=r.get(co,Mt),o=r.get(fo,null),a=i.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(e,t,n){if(Rt(e))return e.selectRootElement(t,n===it.ShadowDom);let s="string"==typeof t?e.querySelector(t):t;return s.textContent="",s}(a,n,this.componentDef.encapsulation):Bs(l,i.createRenderer(null,this.componentDef),function(e){const t=e.toLowerCase();return"svg"===t?Vt:"math"===t?"http://www.w3.org/1998/MathML/":null}(l)),u=this.componentDef.onPush?576:528,h={components:[],scheduler:Ln,clean:_r,playerHandler:null,flags:0},d=Us(0,-1,null,1,0,null,null,null,null,null),p=Hs(null,d,h,u,null,null,i,a,o,r);let f,m;dn(p,null);try{const e=function(e,t,n,s,r,i){const o=n[1];n[20]=e;const a=qs(o,null,0,3,null,null),l=a.mergedAttrs=t.hostAttrs;null!==l&&(fi(a,l,!0),null!==e&&(An(r,e,l),null!==a.classes&&qr(r,e,a.classes),null!==a.styles&&Hr(r,e,a.styles)));const c=s.createRenderer(e,t),u=Hs(n,Ws(t),null,t.onPush?64:16,n[20],a,s,c,void 0);return o.firstCreatePass&&(Un(zn(a,n),o,t.type),sr(o,a),ir(a,n.length,1)),dr(n,u),n[20]=u}(c,this.componentDef,p,i,a);if(c)if(n)An(a,c,["ng-version",go.full]);else{const{attrs:e,classes:t}=function(e){const t=[],n=[];let s=1,r=2;for(;s<e.length;){let i=e[s];if("string"==typeof i)2===r?""!==i&&t.push(i,e[++s]):8===r&&n.push(i);else{if(!ws(r))break;r=i}s++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]);e&&An(a,c,e),t&&t.length>0&&qr(a,c,t.join(" "))}if(m=Ht(d,0),void 0!==t){const e=m.projection=[];for(let n=0;n<this.ngContentSelectors.length;n++){const s=t[n];e.push(null!=s?Array.from(s):null)}}f=function(e,t,n,s,r){const i=n[1],o=function(e,t,n){const s=Xt();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),nr(e,s,1),or(e,t,n));const r=Xn(t,e,t.length-1,s);ds(r,t);const i=Bt(s,t);return i&&ds(i,t),r}(i,n,t);s.components.push(o),e[8]=o,r&&r.forEach(e=>e(o,t)),t.contentQueries&&t.contentQueries(1,o,n.length-1);const a=Xt();if(i.firstCreatePass&&(null!==t.hostBindings||null!==t.hostAttrs)){bn(a.index-bt);const e=n[1];Xs(e,t),er(e,n,t.hostVars),tr(t,o)}return o}(e,this.componentDef,p,h,[zi]),$s(d,p,null)}finally{_n()}const g=new Ho(this.componentType,f,Ur(ao,m,p),p,m);return d.node.child=m,g}}class Ho extends class{}{constructor(e,t,n,s,r){super(),this.location=n,this._rootLView=s,this._tNode=r,this.destroyCbs=[],this.instance=t,this.hostView=this.changeDetectorRef=new zr(s),function(e,t,n,s){let r=e.node;null==r&&(e.node=r=Gs(0,null,2,-1,null,null)),s[6]=r}(s[1],0,0,s),this.componentType=e}get injector(){return new ns(this._tNode,this._rootLView)}destroy(){this.destroyCbs&&(this.destroyCbs.forEach(e=>e()),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}onDestroy(e){this.destroyCbs&&this.destroyCbs.push(e)}}const qo=void 0;var $o=["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){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}];let zo={};function Zo(e){return e in zo||(zo[e]=Te.ng&&Te.ng.common&&Te.ng.common.locales&&Te.ng.common.locales[e]),zo[e]}var Qo=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}({});const Wo="en-US";let Uo=Wo;function Ko(e){var t,n;n="Expected localeId to be defined",null==(t=e)&&function(e,t,n,s){throw new Error("ASSERTION ERROR: "+e+` [Expected=> null != ${t} <=Actual]`)}(n,t),"string"==typeof e&&(Uo=e.toLowerCase().replace(/_/g,"-"))}const Go=new Map;class Yo extends Ge{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Mo(this);const n=yt(e),s=e[Ne]||null;s&&Ko(s),this._bootstrapComponents=Bn(n.bootstrap),this._r3Injector=ii(e,t,[{provide:Ge,useValue:this},{provide:oo,useValue:this.componentFactoryResolver}],_e(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,t=pi.THROW_IF_NOT_FOUND,n=re.Default){return e===pi||e===Ge||e===Re?this:this._r3Injector.get(e,t,n)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class Jo extends class{}{constructor(e){super(),this.moduleType=e,null!==yt(e)&&function e(t){if(null!==t.\u0275mod.id){const e=t.\u0275mod.id;(function(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${_e(t)} vs ${_e(t.name)}`)})(e,Go.get(e),t),Go.set(e,t)}let n=t.\u0275mod.imports;n instanceof Function&&(n=n()),n&&n.forEach(t=>e(t))}(e)}create(e){return new Yo(this.moduleType,e)}}const Xo=class extends k{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,n){let s,r=e=>null,i=()=>null;e&&"object"==typeof e?(s=this.__isAsync?t=>{setTimeout(()=>e.next(t))}:t=>{e.next(t)},e.error&&(r=this.__isAsync?t=>{setTimeout(()=>e.error(t))}:t=>{e.error(t)}),e.complete&&(i=this.__isAsync?()=>{setTimeout(()=>e.complete())}:()=>{e.complete()})):(s=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)},t&&(r=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)}),n&&(i=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const o=super.subscribe(s,r,i);return e instanceof h&&e.add(o),o}};function ea(){return this._results[gi()]()}class ta{constructor(){this.dirty=!0,this._results=[],this.changes=new Xo,this.length=0;const e=gi(),t=ta.prototype;t[e]||(t[e]=ea)}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e){this._results=function e(t,n){void 0===n&&(n=t);for(let s=0;s<t.length;s++){let r=t[s];Array.isArray(r)?(n===t&&(n=t.slice(0,s)),e(r,n)):n!==t&&n.push(r)}return n}(e),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}notifyOnChanges(){this.changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}class na{constructor(e){this.queryList=e,this.matches=null}clone(){return new na(this.queryList)}setDirty(){this.queryList.setDirty()}}class sa{constructor(e=[]){this.queries=e}createEmbeddedView(e){const t=e.queries;if(null!==t){const n=null!==e.contentQueries?e.contentQueries[0]:t.length,s=[];for(let e=0;e<n;e++){const n=t.getByIndex(e);s.push(this.queries[n.indexInDeclarationView].clone())}return new sa(s)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let t=0;t<this.queries.length;t++)null!==pa(e,t).matches&&this.queries[t].setDirty()}}class ra{constructor(e,t,n,s=null){this.predicate=e,this.descendants=t,this.isStatic=n,this.read=s}}class ia{constructor(e=[]){this.queries=e}elementStart(e,t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(e,t)}elementEnd(e){for(let t=0;t<this.queries.length;t++)this.queries[t].elementEnd(e)}embeddedTView(e){let t=null;for(let n=0;n<this.length;n++){const s=null!==t?t.length:0,r=this.getByIndex(n).embeddedTView(e,s);r&&(r.indexInDeclarationView=n,null!==t?t.push(r):t=[r])}return null!==t?new ia(t):null}template(e,t){for(let n=0;n<this.queries.length;n++)this.queries[n].template(e,t)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}}class oa{constructor(e,t=-1){this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=t}elementStart(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,t){this.elementStart(e,t)}embeddedTView(e,t){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,t),new oa(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&!1===this.metadata.descendants){const t=this._declarationNodeIndex;let n=e.parent;for(;null!==n&&4===n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}matchTNode(e,t){const n=this.metadata.predicate;if(Array.isArray(n))for(let s=0;s<n.length;s++){const r=n[s];this.matchTNodeWithReadOption(e,t,aa(t,r)),this.matchTNodeWithReadOption(e,t,Jn(t,e,r,!1,!1))}else n===No?0===t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,Jn(t,e,n,!1,!1))}matchTNodeWithReadOption(e,t,n){if(null!==n){const s=this.metadata.read;if(null!==s)if(s===ao||s===Vo||s===No&&0===t.type)this.addMatch(t.index,-2);else{const n=Jn(t,e,s,!1,!1);null!==n&&this.addMatch(t.index,n)}else this.addMatch(t.index,n)}}addMatch(e,t){null===this.matches?this.matches=[e,t]:this.matches.push(e,t)}}function aa(e,t){const n=e.localNames;if(null!==n)for(let s=0;s<n.length;s+=2)if(n[s]===t)return n[s+1];return null}function la(e,t,n,s){return-1===n?function(e,t){return 3===e.type||4===e.type?Ur(ao,e,t):0===e.type?Kr(No,ao,e,t):null}(t,e):-2===n?function(e,t,n){return n===ao?Ur(ao,t,e):n===No?Kr(No,ao,t,e):n===Vo?Gr(Vo,ao,t,e):void 0}(e,t,s):Xn(e,e[1],n,t)}function ca(e,t,n,s){const r=t[19].queries[s];if(null===r.matches){const s=e.data,i=n.matches,o=[];for(let e=0;e<i.length;e+=2){const r=i[e];o.push(r<0?null:la(t,s[r],i[e+1],n.metadata.read))}r.matches=o}return r.matches}function ua(e){const t=Yt(),n=Jt(),s=cn();un(s+1);const r=pa(n,s);if(e.dirty&&zt(t)===r.metadata.isStatic){if(null===r.matches)e.reset([]);else{const i=r.crossesNgTemplate?function e(t,n,s,r){const i=t.queries.getByIndex(s),o=i.matches;if(null!==o){const a=ca(t,n,i,s);for(let t=0;t<o.length;t+=2){const s=o[t];if(s>0)r.push(a[t/2]);else{const i=o[t+1],a=n[-s];for(let t=vt;t<a.length;t++){const n=a[t];n[17]===n[3]&&e(n[1],n,i,r)}if(null!==a[9]){const t=a[9];for(let n=0;n<t.length;n++){const s=t[n];e(s[1],s,i,r)}}}}}return r}(n,t,s,[]):ca(n,t,r,s);e.reset(i),e.notifyOnChanges()}return!0}return!1}function ha(e,t,n){!function(e,t,n,s,r,i){e.firstCreatePass&&function(e,t,n){null===e.queries&&(e.queries=new ia),e.queries.track(new oa(t,-1))}(e,new ra(n,s,false,r)),function(e,t){const n=new ta;Ks(e,t,n,n.destroy),null===t[19]&&(t[19]=new sa),t[19].queries.push(new na(n))}(e,t)}(Jt(),Yt(),e,t,n)}function da(){return e=Yt(),t=cn(),e[19].queries[t].queryList;var e,t}function pa(e,t){return e.queries.getByIndex(t)}const fa=new Fe("Application Initializer");let ma=(()=>{class e{constructor(e){this.appInits=e,this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}runInitializers(){if(this.initialized)return;const e=[],t=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n<this.appInits.length;n++){const t=this.appInits[n]();Ai(t)&&e.push(t)}Promise.all(e).then(()=>{t()}).catch(e=>{this.reject(e)}),0===e.length&&t(),this.initialized=!0}}return e.\u0275fac=function(t){return new(t||e)(Qe(fa,8))},e.\u0275prov=ae({token:e,factory:e.\u0275fac}),e})();const ga=new Fe("AppId"),_a={provide:ga,useFactory:function(){return`${ya()}${ya()}${ya()}`},deps:[]};function ya(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const ba=new Fe("Platform Initializer"),va=new Fe("Platform ID"),wa=new Fe("appBootstrapListener");let Ea=(()=>{class e{log(e){console.log(e)}warn(e){console.warn(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ae({token:e,factory:e.\u0275fac}),e})();const ka=new Fe("LocaleId"),Ca=new Fe("DefaultCurrencyCode");class Sa{constructor(e,t){this.ngModuleFactory=e,this.componentFactories=t}}const xa=function(e){return new Jo(e)},Ta=xa,Aa=function(e){return Promise.resolve(xa(e))},Ia=function(e){const t=xa(e),n=Bn(yt(e).declarations).reduce((e,t)=>{const n=gt(t);return n&&e.push(new Bo(n)),e},[]);return new Sa(t,n)},Oa=Ia,Da=function(e){return Promise.resolve(Ia(e))};let Na=(()=>{class e{constructor(){this.compileModuleSync=Ta,this.compileModuleAsync=Aa,this.compileModuleAndAllComponentsSync=Oa,this.compileModuleAndAllComponentsAsync=Da}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ae({token:e,factory:e.\u0275fac}),e})();const Pa=(()=>Promise.resolve(0))();function Va(e){"undefined"==typeof Zone?Pa.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Fa{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Xo(!1),this.onMicrotaskEmpty=new Xo(!1),this.onStable=new Xo(!1),this.onError=new Xo(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const n=this;n._nesting=0,n._outer=n._inner=Zone.current,Zone.wtfZoneSpec&&(n._inner=n._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(n._inner=n._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(n._inner=n._inner.fork(Zone.longStackTraceZoneSpec)),n.shouldCoalesceEventChangeDetection=t,n.lastRequestAnimationFrameId=-1,n.nativeRequestAnimationFrame=function(){let e=Te.requestAnimationFrame,t=Te.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const s=t[Zone.__symbol__("OriginalDelegate")];s&&(t=s)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function(e){const t=!!e.shouldCoalesceEventChangeDetection&&e.nativeRequestAnimationFrame&&(()=>{!function(e){-1===e.lastRequestAnimationFrameId&&(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Te,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,La(e),ja(e)},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),La(e))}(e)});e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:t},onInvokeTask:(n,s,r,i,o,a)=>{try{return Ba(e),n.invokeTask(r,i,o,a)}finally{t&&"eventTask"===i.type&&t(),Ha(e)}},onInvoke:(t,n,s,r,i,o,a)=>{try{return Ba(e),t.invoke(s,r,i,o,a)}finally{Ha(e)}},onHasTask:(t,n,s,r)=>{t.hasTask(s,r),n===s&&("microTask"==r.change?(e._hasPendingMicrotasks=r.microTask,La(e),ja(e)):"macroTask"==r.change&&(e.hasPendingMacrotasks=r.macroTask))},onHandleError:(t,n,s,r)=>(t.handleError(s,r),e.runOutsideAngular(()=>e.onError.emit(r)),!1)})}(n)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Fa.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Fa.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,n){return this._inner.run(e,t,n)}runTask(e,t,n,s){const r=this._inner,i=r.scheduleEventTask("NgZoneEvent: "+s,e,Ma,Ra,Ra);try{return r.runTask(i,t,n)}finally{r.cancelTask(i)}}runGuarded(e,t,n){return this._inner.runGuarded(e,t,n)}runOutsideAngular(e){return this._outer.run(e)}}function Ra(){}const Ma={};function ja(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(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function La(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||e.shouldCoalesceEventChangeDetection&&-1!==e.lastRequestAnimationFrameId)}function Ba(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Ha(e){e._nesting--,ja(e)}class qa{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Xo,this.onMicrotaskEmpty=new Xo,this.onStable=new Xo,this.onError=new Xo}run(e,t,n){return e.apply(t,n)}runGuarded(e,t,n){return e.apply(t,n)}runOutsideAngular(e){return e()}runTask(e,t,n,s){return e.apply(t,n)}}let $a=(()=>{class e{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Fa.assertNotInAngularZone(),Va(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Va(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(t=>!t.updateCb||!t.updateCb(e)||(clearTimeout(t.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,t,n){let s=-1;t&&t>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(e=>e.timeoutId!==s),e(this._didWork,this.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:s,updateCb:n})}whenStable(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()}getPendingRequestCount(){return this._pendingCount}findProviders(e,t,n){return[]}}return e.\u0275fac=function(t){return new(t||e)(Qe(Fa))},e.\u0275prov=ae({token:e,factory:e.\u0275fac}),e})(),za=(()=>{class e{constructor(){this._applications=new Map,Wa.addToWindow(this)}registerApplication(e,t){this._applications.set(e,t)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,t=!0){return Wa.findTestabilityInTree(this,e,t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ae({token:e,factory:e.\u0275fac}),e})();class Za{addToWindow(e){}findTestabilityInTree(e,t,n){return null}}let Qa,Wa=new Za;const Ua=new Fe("AllowMultipleToken");function Ka(e,t,n=[]){const s="Platform: "+t,r=new Fe(s);return(t=[])=>{let i=Ga();if(!i||i.injector.get(Ua,!1))if(e)e(n.concat(t).concat({provide:r,useValue:!0}));else{const e=n.concat(t).concat({provide:r,useValue:!0},{provide:Xr,useValue:"platform"});!function(e){if(Qa&&!Qa.destroyed&&!Qa.injector.get(Ua,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Qa=e.get(Ya);const t=e.get(ba,null);t&&t.forEach(e=>e())}(pi.create({providers:e,name:s}))}return function(e){const t=Ga();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 Ga(){return Qa&&!Qa.destroyed?Qa:null}let Ya=(()=>{class e{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,t){const n=function(e,t){let n;return n="noop"===e?new qa:("zone.js"===e?void 0:e)||new Fa({enableLongStackTrace:hs(),shouldCoalesceEventChangeDetection:t}),n}(t?t.ngZone:void 0,t&&t.ngZoneEventCoalescing||!1),s=[{provide:Fa,useValue:n}];return n.run(()=>{const t=pi.create({providers:s,parent:this.injector,name:e.moduleType.name}),r=e.create(t),i=r.injector.get(ls,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return r.onDestroy(()=>el(this._modules,r)),n.runOutsideAngular(()=>n.onError.subscribe({next:e=>{i.handleError(e)}})),function(e,t,n){try{const s=n();return Ai(s)?s.catch(n=>{throw t.runOutsideAngular(()=>e.handleError(n)),n}):s}catch(s){throw t.runOutsideAngular(()=>e.handleError(s)),s}}(i,n,()=>{const e=r.injector.get(ma);return e.runInitializers(),e.donePromise.then(()=>(Ko(r.injector.get(ka,Wo)||Wo),this._moduleDoBootstrap(r),r))})})}bootstrapModule(e,t=[]){const n=Ja({},t);return function(e,t,n){const s=new Jo(n);return Promise.resolve(s)}(0,0,e).then(e=>this.bootstrapModuleFactory(e,n))}_moduleDoBootstrap(e){const t=e.injector.get(Xa);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(e=>t.bootstrap(e));else{if(!e.instance.ngDoBootstrap)throw new Error(`The module ${_e(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)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(e=>e.destroy()),this._destroyListeners.forEach(e=>e()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(t){return new(t||e)(Qe(pi))},e.\u0275prov=ae({token:e,factory:e.\u0275fac}),e})();function Ja(e,t){return Array.isArray(t)?t.reduce(Ja,e):Object.assign(Object.assign({},e),t)}let Xa=(()=>{class e{constructor(e,t,n,s,r,i){this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=s,this._componentFactoryResolver=r,this._initStatus=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=hs(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new y(e=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{e.next(this._stable),e.complete()})}),a=new y(e=>{let t;this._zone.runOutsideAngular(()=>{t=this._zone.onStable.subscribe(()=>{Fa.assertNotInAngularZone(),Va(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,e.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{Fa.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{e.next(!1)}))});return()=>{t.unsubscribe(),n.unsubscribe()}});this.isStable=$(o,a.pipe(e=>{return z()((t=G,function(e){let n;n="function"==typeof t?t:function(){return t};const s=Object.create(e,U);return s.source=e,s.subjectFactory=n,s})(e));var t}))}bootstrap(e,t){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.");let n;n=e instanceof ro?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);const s=n.isBoundToModule?void 0:this._injector.get(Ge),r=n.create(pi.NULL,[],t||n.selector,s);r.onDestroy(()=>{this._unloadComponent(r)});const i=r.injector.get($a,null);return i&&r.injector.get(za).registerApplication(r.location.nativeElement,i),this._loadComponent(r),hs()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),r}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let e of this._views)e.detectChanges();if(this._enforceNoNewChanges)for(let e of this._views)e.checkNoChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const t=e;this._views.push(t),t.attachToAppRef(this)}detachView(e){const t=e;el(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(wa,[]).concat(this._bootstrapListeners).forEach(t=>t(e))}_unloadComponent(e){this.detachView(e.hostView),el(this.components,e)}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy())}get viewCount(){return this._views.length}}return e.\u0275fac=function(t){return new(t||e)(Qe(Fa),Qe(Ea),Qe(pi),Qe(ls),Qe(oo),Qe(ma))},e.\u0275prov=ae({token:e,factory:e.\u0275fac}),e})();function el(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const tl=Ka(null,"core",[{provide:va,useValue:"unknown"},{provide:Ya,deps:[pi]},{provide:za,deps:[]},{provide:Ea,deps:[]}]),nl=[{provide:Xa,useClass:Xa,deps:[Fa,Ea,pi,ls,oo,ma]},{provide:Lo,deps:[Fa],useFactory:function(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:ma,useClass:ma,deps:[[new te,fa]]},{provide:Na,useClass:Na,deps:[]},_a,{provide:To,useFactory:function(){return Oo},deps:[]},{provide:Ao,useFactory:function(){return Do},deps:[]},{provide:ka,useFactory:function(e){return Ko(e=e||"undefined"!=typeof $localize&&$localize.locale||Wo),e},deps:[[new ee(ka),new te,new se]]},{provide:Ca,useValue:"USD"}];let sl=(()=>{class e{constructor(e){}}return e.\u0275mod=pt({type:e}),e.\u0275inj=le({factory:function(t){return new(t||e)(Qe(Xa))},providers:nl}),e})();function rl(e){return null!=e&&""+e!="false"}function il(e,t=0){return function(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}(e)?Number(e):t}function ol(e){return e instanceof ao?e.nativeElement:e}function al(...e){let t=e[e.length-1];return S(t)?(e.pop(),F(e,t)):q(e)}class ll extends h{constructor(e,t){super()}schedule(e,t=0){return this}}class cl extends ll{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){if(this.closed)return this;this.state=e;const n=this.id,s=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(s,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(s,this.id,t),this}requestAsyncId(e,t,n=0){return setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,t,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let n=!1,s=void 0;try{this.work(e)}catch(r){n=!0,s=!!r&&r||new Error(r)}if(n)return this.unsubscribe(),s}_unsubscribe(){const e=this.id,t=this.scheduler,n=t.actions,s=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==s&&n.splice(s,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}let ul=(()=>{class e{constructor(t,n=e.now){this.SchedulerAction=t,this.now=n}schedule(e,t=0,n){return new this.SchedulerAction(this,e).schedule(n,t)}}return e.now=()=>Date.now(),e})();class hl extends ul{constructor(e,t=ul.now){super(e,()=>hl.delegate&&hl.delegate!==this?hl.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,n){return hl.delegate&&hl.delegate!==this?hl.delegate.schedule(e,t,n):super.schedule(e,t,n)}flush(e){const{actions:t}=this;if(this.active)return void t.push(e);let 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}}}const dl=new hl(cl);class pl{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new fl(e,this.predicate,this.thisArg))}}class fl extends f{constructor(e,t,n){super(e),this.predicate=t,this.thisArg=n,this.count=0}_next(e){let t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)}}class ml{constructor(e){this.project=e}call(e,t){return t.subscribe(new gl(e,this.project))}}class gl extends j{constructor(e,t){super(e),this.project=t,this.index=0}_next(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(s){return void this.destination.error(s)}this._innerSub(t)}_innerSub(e){const t=this.innerSubscription;t&&t.unsubscribe();const n=new M(this),s=this.destination;s.add(n),this.innerSubscription=L(e,n),this.innerSubscription!==n&&s.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;e&&!e.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(e){this.destination.next(e)}}class _l extends cl{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}schedule(e,t=0){return t>0?super.schedule(e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}execute(e,t){return t>0||this.closed?super.execute(e,t):this._execute(e,t)}requestAsyncId(e,t,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(e,t,n):e.flush(this)}}class yl extends hl{}const bl=new yl(_l),vl=new y(e=>e.complete());let wl=(()=>{class e{constructor(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}observe(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()}}do(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()}}accept(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}toObservable(){switch(this.kind){case"N":return al(this.value);case"E":return e=this.error,new y(t=>t.error(e));case"C":return vl}var e;throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}static createError(t){return new e("E",void 0,t)}static createComplete(){return e.completeNotification}}return e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e})();class El extends f{constructor(e,t,n=0){super(e),this.scheduler=t,this.delay=n}static dispatch(e){const{notification:t,destination:n}=e;t.observe(n),this.unsubscribe()}scheduleMessage(e){this.destination.add(this.scheduler.schedule(El.dispatch,this.delay,new kl(e,this.destination)))}_next(e){this.scheduleMessage(wl.createNext(e))}_error(e){this.scheduleMessage(wl.createError(e)),this.unsubscribe()}_complete(){this.scheduleMessage(wl.createComplete()),this.unsubscribe()}}class kl{constructor(e,t){this.notification=e,this.destination=t}}class Cl extends k{constructor(e=Number.POSITIVE_INFINITY,t=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=e<1?1:e,this._windowTime=t<1?1:t,t===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(e){const t=this._events;t.push(e),t.length>this._bufferSize&&t.shift(),super.next(e)}nextTimeWindow(e){this._events.push(new Sl(this._getNow(),e)),this._trimBufferThenGetEvents(),super.next(e)}_subscribe(e){const t=this._infiniteTimeWindow,n=t?this._events:this._trimBufferThenGetEvents(),s=this.scheduler,r=n.length;let i;if(this.closed)throw new v;if(this.isStopped||this.hasError?i=h.EMPTY:(this.observers.push(e),i=new w(this,e)),s&&e.add(e=new El(e,s)),t)for(let o=0;o<r&&!e.closed;o++)e.next(n[o]);else for(let o=0;o<r&&!e.closed;o++)e.next(n[o].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),i}_getNow(){return(this.scheduler||bl).now()}_trimBufferThenGetEvents(){const e=this._getNow(),t=this._bufferSize,n=this._windowTime,s=this._events,r=s.length;let i=0;for(;i<r&&!(e-s[i].time<n);)i++;return r>t&&(i=Math.max(i,r-t)),i>0&&s.splice(0,i),s}}class Sl{constructor(e,t){this.time=e,this.value=t}}let xl=null;function Tl(){return xl}const Al=new Fe("DocumentToken");var Il=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}({});class Ol{}let Dl,Nl=(()=>{class e extends Ol{constructor(e){super(),this.locale=e}getPluralCategory(e,t){switch(function(e){return function(e){const t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=Zo(t);if(n)return n;const s=t.split("-")[0];if(n=Zo(s),n)return n;if("en"===s)return $o;throw new Error(`Missing locale data for the locale "${e}".`)}(e)[Qo.PluralCase]}(t||this.locale)(e)){case Il.Zero:return"zero";case Il.One:return"one";case Il.Two:return"two";case Il.Few:return"few";case Il.Many:return"many";default:return"other"}}}return e.\u0275fac=function(t){return new(t||e)(Qe(ka))},e.\u0275prov=ae({token:e,factory:e.\u0275fac}),e})(),Pl=(()=>{class e{}return e.\u0275mod=pt({type:e}),e.\u0275inj=le({factory:function(t){return new(t||e)},providers:[{provide:Ol,useClass:Nl}]}),e})();try{Dl="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(rf){Dl=!1}let Vl,Fl,Rl=(()=>{class e{constructor(e){this._platformId=e,this.isBrowser=this._platformId?"browser"===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&&!Dl)&&"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}}return e.\u0275fac=function(t){return new(t||e)(Qe(va))},e.\u0275prov=ae({factory:function(){return new e(Qe(va))},token:e,providedIn:"root"}),e})(),Ml=(()=>{class e{}return e.\u0275mod=pt({type:e}),e.\u0275inj=le({factory:function(t){return new(t||e)}}),e})();function jl(e){return function(){if(null==Vl&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Vl=!0}))}finally{Vl=Vl||!1}return Vl}()?e:!!e.capture}let Ll=(()=>{class e{}return e.\u0275mod=pt({type:e}),e.\u0275inj=le({factory:function(t){return new(t||e)}}),e})();const Bl=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine);let Hl=(()=>{class e{constructor(e,t){this._platform=t,this._document=e}ngOnDestroy(){const e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e=this._platform?this._platform.isBrowser:"undefined"!=typeof window,t="cdk-overlay-container";if(e||Bl){const e=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let t=0;t<e.length;t++)e[t].parentNode.removeChild(e[t])}const n=this._document.createElement("div");n.classList.add(t),Bl?n.setAttribute("platform","test"):e||n.setAttribute("platform","server"),this._document.body.appendChild(n),this._containerElement=n}}return e.\u0275fac=function(t){return new(t||e)(Qe(Al),Qe(Rl))},e.\u0275prov=ae({factory:function(){return new e(Qe(Al),Qe(Rl))},token:e,providedIn:"root"}),e})();const ql=(()=>{const e=Element.prototype;return e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector})(),$l={schedule(e,t){const n=setTimeout(e,t);return()=>clearTimeout(n)},scheduleBeforeRender(e){if("undefined"==typeof window)return $l.schedule(e,0);if(void 0===window.requestAnimationFrame)return $l.schedule(e,16);const t=window.requestAnimationFrame(e);return()=>window.cancelAnimationFrame(t)}};function zl(e,t,n){let s=n;return function(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}(e)&&t.some((t,n)=>!("*"===t||!function(e,t){return ql.call(e,t)}(e,t)||(s=n,0))),s}class Zl{constructor(e,t){this.componentFactory=t.get(oo).resolveComponentFactory(e)}create(e){return new Ql(this.componentFactory,e)}}class Ql{constructor(e,t){this.componentFactory=e,this.injector=t,this.eventEmitters=new Cl(1),this.events=this.eventEmitters.pipe(function e(t,n){return"function"==typeof n?s=>s.pipe(e((e,s)=>R(t(e,s)).pipe(x((t,r)=>n(e,t,s,r))))):e=>e.lift(new ml(t))}(e=>$(...e))),this.componentRef=null,this.inputChanges=null,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set,this.ngZone=this.injector.get(Fa),this.elementZone="undefined"==typeof Zone?null:this.ngZone.run(()=>Zone.current)}connect(e){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(e)})}disconnect(){this.runInZone(()=>{null!==this.componentRef&&null===this.scheduledDestroyFn&&(this.scheduledDestroyFn=$l.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null)},10))})}getInputValue(e){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(e):this.componentRef.instance[e])}setInputValue(e,t){this.runInZone(()=>{var n,s;null!==this.componentRef?((n=t)!==(s=this.getInputValue(e))&&(n==n||s==s)||void 0===t&&this.unchangedInputs.has(e))&&(this.recordInputChange(e,t),this.componentRef.instance[e]=t,this.scheduleDetectChanges()):this.initialInputValues.set(e,t)})}initializeComponent(e){const t=pi.create({providers:[],parent:this.injector}),n=function(e,t){const n=e.childNodes,s=t.map(()=>[]);let r=-1;t.some((e,t)=>"*"===e&&(r=t,!0));for(let i=0,o=n.length;i<o;++i){const e=n[i],o=zl(e,t,r);-1!==o&&s[o].push(e)}return s}(e,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(t,n,e),this.implementsOnChanges="function"==typeof this.componentRef.instance.ngOnChanges,this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(Xa).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:e})=>{this.implementsOnChanges&&this.unchangedInputs.add(e),this.initialInputValues.has(e)&&this.setInputValue(e,this.initialInputValues.get(e))}),this.initialInputValues.clear()}initializeOutputs(e){const t=this.componentFactory.outputs.map(({propName:t,templateName:n})=>e.instance[t].pipe(x(e=>({name:n,value:e}))));this.eventEmitters.next(t)}callNgOnChanges(e){if(!this.implementsOnChanges||null===this.inputChanges)return;const t=this.inputChanges;this.inputChanges=null,e.instance.ngOnChanges(t)}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=$l.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(e,t){if(null!==this.componentRef&&!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const n=this.inputChanges[e];if(n)return void(n.currentValue=t);const s=this.unchangedInputs.has(e);this.unchangedInputs.delete(e);const r=s?void 0:this.getInputValue(e);this.inputChanges[e]=new At(r,t,s)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(e){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(e):e()}}class Wl extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}function Ul(e,t){e.forEach(({propName:e})=>{Object.defineProperty(t,e,{get(){return this.ngElementStrategy.getInputValue(e)},set(t){this.ngElementStrategy.setInputValue(e,t)},configurable:!0,enumerable:!0})})}function Kl(e,t){return new y(n=>{const s=e.length;if(0===s)return void n.complete();const r=new Array(s);let i=0,o=0;for(let a=0;a<s;a++){const l=R(e[a]);let c=!1;n.add(l.subscribe({next:e=>{c||(c=!0,o++),r[a]=e},error:e=>n.error(e),complete:()=>{i++,i!==s&&c||(o===s&&n.next(t?t.reduce((e,t,n)=>(e[t]=r[n],e),{}):r),n.complete())}}))}})}const Gl=new Fe("NgValueAccessor"),Yl={provide:Gl,useExisting:ve(()=>Jl),multi:!0};let Jl=(()=>{class e{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"checked",e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}return e.\u0275fac=function(t){return new(t||e)(Ei(ho),Ei(ao))},e.\u0275dir=mt({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,t){1&e&&Ii("change",(function(e){return t.onChange(e.target.checked)}))("blur",(function(){return t.onTouched()}))},features:[so([Yl])]}),e})();const Xl={provide:Gl,useExisting:ve(()=>tc),multi:!0},ec=new Fe("CompositionEventMode");let tc=(()=>{class e{constructor(e,t,n){this._renderer=e,this._elementRef=t,this._compositionMode=n,this.onChange=e=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const e=Tl()?Tl().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return e.\u0275fac=function(t){return new(t||e)(Ei(ho),Ei(ao),Ei(ec,8))},e.\u0275dir=mt({type:e,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&&Ii("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:[so([Xl])]}),e})(),nc=(()=>{class e{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}reset(e){this.control&&this.control.reset(e)}hasError(e,t){return!!this.control&&this.control.hasError(e,t)}getError(e,t){return this.control?this.control.getError(e,t):null}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=mt({type:e}),e})();class sc extends nc{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null,this._rawValidators=[],this._rawAsyncValidators=[]}get validator(){}get asyncValidator(){}}let rc=(()=>{class e extends class{constructor(e){this._cd=e}get ngClassUntouched(){return!!this._cd.control&&this._cd.control.untouched}get ngClassTouched(){return!!this._cd.control&&this._cd.control.touched}get ngClassPristine(){return!!this._cd.control&&this._cd.control.pristine}get ngClassDirty(){return!!this._cd.control&&this._cd.control.dirty}get ngClassValid(){return!!this._cd.control&&this._cd.control.valid}get ngClassInvalid(){return!!this._cd.control&&this._cd.control.invalid}get ngClassPending(){return!!this._cd.control&&this._cd.control.pending}}{constructor(e){super(e)}}return e.\u0275fac=function(t){return new(t||e)(Ei(sc,2))},e.\u0275dir=mt({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&Fi("ng-untouched",t.ngClassUntouched)("ng-touched",t.ngClassTouched)("ng-pristine",t.ngClassPristine)("ng-dirty",t.ngClassDirty)("ng-valid",t.ngClassValid)("ng-invalid",t.ngClassInvalid)("ng-pending",t.ngClassPending)},features:[Zi]}),e})();function ic(e){return null==e||0===e.length}function oc(e){return null!=e&&"number"==typeof e.length}const ac=new Fe("NgValidators"),lc=new Fe("NgAsyncValidators"),cc=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class uc{static min(e){return t=>{if(ic(t.value)||ic(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}}static max(e){return t=>{if(ic(t.value)||ic(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}static required(e){return ic(e.value)?{required:!0}:null}static requiredTrue(e){return!0===e.value?null:{required:!0}}static email(e){return ic(e.value)||cc.test(e.value)?null:{email:!0}}static minLength(e){return t=>ic(t.value)||!oc(t.value)?null:t.value.length<e?{minlength:{requiredLength:e,actualLength:t.value.length}}:null}static maxLength(e){return t=>oc(t.value)&&t.value.length>e?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}static pattern(e){if(!e)return uc.nullValidator;let t,n;return"string"==typeof e?(n="","^"!==e.charAt(0)&&(n+="^"),n+=e,"$"!==e.charAt(e.length-1)&&(n+="$"),t=new RegExp(n)):(n=e.toString(),t=e),e=>{if(ic(e.value))return null;const s=e.value;return t.test(s)?null:{pattern:{requiredPattern:n,actualValue:s}}}}static nullValidator(e){return null}static compose(e){if(!e)return null;const t=e.filter(hc);return 0==t.length?null:function(e){return pc(fc(e,t))}}static composeAsync(e){if(!e)return null;const t=e.filter(hc);return 0==t.length?null:function(e){return function(...e){if(1===e.length){const t=e[0];if(l(t))return Kl(t,null);if(c(t)&&Object.getPrototypeOf(t)===Object.prototype){const e=Object.keys(t);return Kl(e.map(e=>t[e]),e)}}if("function"==typeof e[e.length-1]){const t=e.pop();return Kl(e=1===e.length&&l(e[0])?e[0]:e,null).pipe(x(e=>t(...e)))}return Kl(e,null)}(fc(e,t).map(dc)).pipe(x(pc))}}}function hc(e){return null!=e}function dc(e){const t=Ai(e)?R(e):e;return t}function pc(e){let t={};return e.forEach(e=>{t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function fc(e,t){return t.map(t=>t(e))}function mc(e){return e.map(e=>function(e){return!e.validate}(e)?e:t=>e.validate(t))}const gc={provide:Gl,useExisting:ve(()=>_c),multi:!0};let _c=(()=>{class e{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}registerOnChange(e){this.onChange=t=>{e(""==t?null:parseFloat(t))}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}return e.\u0275fac=function(t){return new(t||e)(Ei(ho),Ei(ao))},e.\u0275dir=mt({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,t){1&e&&Ii("input",(function(e){return t.onChange(e.target.value)}))("blur",(function(){return t.onTouched()}))},features:[so([gc])]}),e})();const yc={provide:Gl,useExisting:ve(()=>vc),multi:!0};let bc=(()=>{class e{constructor(){this._accessors=[]}add(e,t){this._accessors.push([e,t])}remove(e){for(let t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)}select(e){this._accessors.forEach(t=>{this._isSameGroup(t,e)&&t[1]!==e&&t[1].fireUncheck(e.value)})}_isSameGroup(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ae({token:e,factory:e.\u0275fac}),e})(),vc=(()=>{class e{constructor(e,t,n,s){this._renderer=e,this._elementRef=t,this._registry=n,this._injector=s,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(sc),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(e){this._fn=e,this.onChange=()=>{e(this.value),this._registry.select(this)}}fireUncheck(e){this.writeValue(e)}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return e.\u0275fac=function(t){return new(t||e)(Ei(ho),Ei(ao),Ei(bc),Ei(pi))},e.\u0275dir=mt({type:e,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(e,t){1&e&&Ii("change",(function(){return t.onChange()}))("blur",(function(){return t.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[so([yc])]}),e})();const wc={provide:Gl,useExisting:ve(()=>Ec),multi:!0};let Ec=(()=>{class e{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))}registerOnChange(e){this.onChange=t=>{e(""==t?null:parseFloat(t))}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}return e.\u0275fac=function(t){return new(t||e)(Ei(ho),Ei(ao))},e.\u0275dir=mt({type:e,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(e,t){1&e&&Ii("change",(function(e){return t.onChange(e.target.value)}))("input",(function(e){return t.onChange(e.target.value)}))("blur",(function(){return t.onTouched()}))},features:[so([wc])]}),e})();const kc={provide:Gl,useExisting:ve(()=>Cc),multi:!0};let Cc=(()=>{class e{constructor(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=e=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;const t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const n=function(e,t){return null==e?""+t:(t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}registerOnChange(e){this.onChange=t=>{this.value=this._getOptionValue(t),e(this.value)}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const t of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(t),e))return t;return null}_getOptionValue(e){const t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t):e}}return e.\u0275fac=function(t){return new(t||e)(Ei(ho),Ei(ao))},e.\u0275dir=mt({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,t){1&e&&Ii("change",(function(e){return t.onChange(e.target.value)}))("blur",(function(){return t.onTouched()}))},inputs:{compareWith:"compareWith"},features:[so([kc])]}),e})();const Sc={provide:Gl,useExisting:ve(()=>xc),multi:!0};let xc=(()=>{class e{constructor(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=e=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){let t;if(this.value=e,Array.isArray(e)){const n=e.map(e=>this._getOptionId(e));t=(e,t)=>{e._setSelected(n.indexOf(t.toString())>-1)}}else t=(e,t)=>{e._setSelected(!1)};this._optionMap.forEach(t)}registerOnChange(e){this.onChange=t=>{const n=[];if(void 0!==t.selectedOptions){const e=t.selectedOptions;for(let t=0;t<e.length;t++){const s=e.item(t),r=this._getOptionValue(s.value);n.push(r)}}else{const e=t.options;for(let t=0;t<e.length;t++){const s=e.item(t);if(s.selected){const e=this._getOptionValue(s.value);n.push(e)}}}this.value=n,e(n)}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_registerOption(e){const t=(this._idCounter++).toString();return this._optionMap.set(t,e),t}_getOptionId(e){for(const t of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(t)._value,e))return t;return null}_getOptionValue(e){const t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t)._value:e}}return e.\u0275fac=function(t){return new(t||e)(Ei(ho),Ei(ao))},e.\u0275dir=mt({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(e,t){1&e&&Ii("change",(function(e){return t.onChange(e.target)}))("blur",(function(){return t.onTouched()}))},inputs:{compareWith:"compareWith"},features:[so([Sc])]}),e})();function Tc(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function Ac(e){return null!=e?uc.compose(mc(e)):null}function Ic(e){return null!=e?uc.composeAsync(mc(e)):null}const Oc=[Jl,Ec,_c,Cc,xc,vc],Dc="VALID",Nc="INVALID",Pc="PENDING",Vc="DISABLED";function Fc(e){return(Lc(e)?e.validators:e)||null}function Rc(e){return Array.isArray(e)?Ac(e):e||null}function Mc(e,t){return(Lc(t)?t.asyncValidators:e)||null}function jc(e){return Array.isArray(e)?Ic(e):e||null}function Lc(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class Bc{constructor(e,t){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=e,this._rawAsyncValidators=t,this._composedValidatorFn=Rc(this._rawValidators),this._composedAsyncValidatorFn=jc(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===Dc}get invalid(){return this.status===Nc}get pending(){return this.status==Pc}get disabled(){return this.status===Vc}get enabled(){return this.status!==Vc}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._rawValidators=e,this._composedValidatorFn=Rc(e)}setAsyncValidators(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=jc(e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=Pc,!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=Vc,this.errors=null,this._forEachChild(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(e=>e(!0))}enable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=Dc,this._forEachChild(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(e=>e(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==Dc&&this.status!==Pc||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)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Vc:Dc}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=Pc,this._hasOwnPendingAsyncValidator=!0;const t=dc(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}get(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;let s=e;return t.forEach(e=>{s=s instanceof qc?s.controls.hasOwnProperty(e)?s.controls[e]:null:s instanceof $c&&s.at(e)||null}),s}(this,e)}getError(e,t){const n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new Xo,this.statusChanges=new Xo}_calculateStatus(){return this._allControlsDisabled()?Vc:this.errors?Nc:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Pc)?Pc:this._anyControlsHaveStatus(Nc)?Nc:Dc}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_isBoxedValue(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){Lc(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}class Hc extends Bc{constructor(e=null,t,n){super(Fc(t),Mc(n,t)),this._onChange=[],this._applyFormState(e),this._setUpdateStrategy(t),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),this._initObservables()}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(e=>e(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=null,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_clearChangeFns(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=()=>{}}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_forEachChild(e){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(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}}class qc extends Bc{constructor(e,t,n){super(Fc(t),Mc(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}registerControl(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()}setControl(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,t={}){this._checkAllValuesPresent(e),Object.keys(e).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){Object.keys(e).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}reset(e={},t={}){this._forEachChild((n,s)=>{n.reset(e[s],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(e,t,n)=>(e[n]=t instanceof Hc?t.value:t.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error(`Cannot find form control with name: ${e}.`)}_forEachChild(e){Object.keys(this.controls).forEach(t=>e(this.controls[t],t))}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(const t of Object.keys(this.controls)){const n=this.controls[t];if(this.contains(t)&&e(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(e,t,n)=>((t.enabled||this.disabled)&&(e[n]=t.value),e))}_reduceChildren(e,t){let n=e;return this._forEachChild((e,s)=>{n=t(n,e,s)}),n}_allControlsDisabled(){for(const e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(e){this._forEachChild((t,n)=>{if(void 0===e[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class $c extends Bc{constructor(e,t,n){super(Fc(t),Mc(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}at(e){return this.controls[e]}push(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()}insert(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()}removeAt(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),this.updateValueAndValidity()}setControl(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,t={}){this._checkAllValuesPresent(e),e.forEach((e,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){e.forEach((e,n)=>{this.at(n)&&this.at(n).patchValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}reset(e=[],t={}){this._forEachChild((n,s)=>{n.reset(e[s],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(e=>e instanceof Hc?e.value:e.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let e=this.controls.reduce((e,t)=>!!t._syncPendingControls()||e,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error("Cannot find form control at index "+e)}_forEachChild(e){this.controls.forEach((t,n)=>{e(t,n)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(t=>t.enabled&&e(t))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_checkAllValuesPresent(e){this._forEachChild((t,n)=>{if(void 0===e[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}const zc=new Fe("NgModelWithFormControlWarning"),Zc={provide:sc,useExisting:ve(()=>Qc)};let Qc=(()=>{class e extends sc{constructor(e,t,n,s){super(),this._ngModelWarningConfig=s,this.update=new Xo,this._ngModelWarningSent=!1,this._rawValidators=e||[],this._rawAsyncValidators=t||[],this.valueAccessor=function(e,t){if(!t)return null;Array.isArray(t);let n=void 0,s=void 0,r=void 0;return t.forEach(e=>{var t;e.constructor===tc?n=e:(t=e,Oc.some(e=>t.constructor===e)?s=e:r=e)}),r||s||n||null}(0,n)}set isDisabled(e){}ngOnChanges(t){var n,s,r,i;this._isControlChanged(t)&&((r=this.form).validator=uc.compose([r.validator,(i=this).validator]),r.asyncValidator=uc.composeAsync([r.asyncValidator,i.asyncValidator]),i.valueAccessor.writeValue(r.value),function(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&Tc(e,t)})}(r,i),function(e,t){e.registerOnChange((e,n)=>{t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)})}(r,i),function(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&Tc(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(r,i),i.valueAccessor.setDisabledState&&r.registerOnDisabledChange(e=>{i.valueAccessor.setDisabledState(e)}),i._rawValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>r.updateValueAndValidity())}),i._rawAsyncValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>r.updateValueAndValidity())}),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),function(e,t){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}(t,this.viewModel)&&(n=e,this,s=this._ngModelWarningConfig,hs()&&"never"!==s&&((null!==s&&"once"!==s||n._ngModelWarningSentOnce)&&("always"!==s||this._ngModelWarningSent)||(n._ngModelWarningSentOnce=!0,this._ngModelWarningSent=!0)),this.form.setValue(this.model),this.viewModel=this.model)}get path(){return[]}get validator(){return Ac(this._rawValidators)}get asyncValidator(){return Ic(this._rawAsyncValidators)}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return e.\u0275fac=function(t){return new(t||e)(Ei(ac,10),Ei(lc,10),Ei(Gl,10),Ei(zc,8))},e.\u0275dir=mt({type:e,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[so([Zc]),Zi,It]}),e._ngModelWarningSentOnce=!1,e})(),Wc=(()=>{class e{}return e.\u0275mod=pt({type:e}),e.\u0275inj=le({factory:function(t){return new(t||e)}}),e})(),Uc=(()=>{class e{group(e,t=null){const n=this._reduceControls(e);let s=null,r=null,i=void 0;return null!=t&&(function(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}(t)?(s=null!=t.validators?t.validators:null,r=null!=t.asyncValidators?t.asyncValidators:null,i=null!=t.updateOn?t.updateOn:void 0):(s=null!=t.validator?t.validator:null,r=null!=t.asyncValidator?t.asyncValidator:null)),new qc(n,{asyncValidators:r,updateOn:i,validators:s})}control(e,t,n){return new Hc(e,t,n)}array(e,t,n){const s=e.map(e=>this._createControl(e));return new $c(s,t,n)}_reduceControls(e){const t={};return Object.keys(e).forEach(n=>{t[n]=this._createControl(e[n])}),t}_createControl(e){return e instanceof Hc||e instanceof qc||e instanceof $c?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ae({token:e,factory:e.\u0275fac}),e})(),Kc=(()=>{class e{}return e.\u0275mod=pt({type:e}),e.\u0275inj=le({factory:function(t){return new(t||e)},providers:[bc],imports:[Wc]}),e})(),Gc=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:zc,useValue:t.warnOnNgModelWithFormControl}]}}}return e.\u0275mod=pt({type:e}),e.\u0275inj=le({factory:function(t){return new(t||e)},providers:[Uc,bc],imports:[Wc]}),e})();function Yc(e,t=dl){return n=>n.lift(new Jc(e,t))}class Jc{constructor(e,t){this.dueTime=e,this.scheduler=t}call(e,t){return t.subscribe(new Xc(e,this.dueTime,this.scheduler))}}class Xc extends f{constructor(e,t,n){super(e),this.dueTime=t,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(eu,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:e}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}clearDebounce(){const e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}function eu(e){e.debouncedNext()}let tu=(()=>{class e{create(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ae({factory:function(){return new e},token:e,providedIn:"root"}),e})(),nu=(()=>{class e{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){const t=ol(e);return new y(e=>{const n=this._observeElement(t).subscribe(e);return()=>{n.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const t=new k,n=this._mutationObserverFactory.create(e=>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}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:t,stream:n}=this._observedElements.get(e);t&&t.disconnect(),n.complete(),this._observedElements.delete(e)}}}return e.\u0275fac=function(t){return new(t||e)(Qe(tu))},e.\u0275prov=ae({factory:function(){return new e(Qe(tu))},token:e,providedIn:"root"}),e})(),su=(()=>{class e{constructor(e,t,n){this._contentObserver=e,this._elementRef=t,this._ngZone=n,this.event=new Xo,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=rl(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=il(e),this._subscribe()}ngAfterContentInit(){this._currentSubscription||this.disabled||this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe(Yc(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription&&this._currentSubscription.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(Ei(nu),Ei(ao),Ei(Fa))},e.\u0275dir=mt({type:e,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),e})(),ru=(()=>{class e{}return e.\u0275mod=pt({type:e}),e.\u0275inj=le({factory:function(t){return new(t||e)},providers:[tu]}),e})();function iu(e){return 0===e.buttons}"undefined"!=typeof Element&&Element;const ou=new Fe("cdk-focus-monitor-default-options"),au=jl({passive:!0,capture:!0});let lu=(()=>{class e{constructor(e,t,n,s){this._ngZone=e,this._platform=t,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=e=>{if(!this._lastTouchTarget){const t=iu(e)?"keyboard":"mouse";this._setOriginForCurrentEventQueue(t)}},this._documentTouchstartListener=e=>{null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=cu(e),this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650)},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._rootNodeFocusAndBlurListener=e=>{const t=cu(e),n="focus"===e.type?this._onFocus:this._onBlur;for(let s=t;s;s=s.parentElement)n.call(this,e,s)},this._document=n,this._detectionMode=(null==s?void 0:s.detectionMode)||0}monitor(e,t=!1){if(!this._platform.isBrowser)return al(null);const n=ol(e),s=function(e){if(function(){if(null==Fl){const e="undefined"!=typeof document?document.head:null;Fl=!(!e||!e.createShadowRoot&&!e.attachShadow)}return Fl}()){const t=e.getRootNode?e.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}(n)||this._getDocument(),r=this._elementInfo.get(n);if(r)return t&&(r.checkChildren=!0),r.subject;const i={checkChildren:t,subject:new k,rootNode:s};return this._elementInfo.set(n,i),this._registerGlobalListeners(i),i.subject}stopMonitoring(e){const t=ol(e),n=this._elementInfo.get(t);n&&(n.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(n))}focusVia(e,t,n){const s=ol(e);this._setOriginForCurrentEventQueue(t),"function"==typeof s.focus&&s.focus(n)}ngOnDestroy(){this._elementInfo.forEach((e,t)=>this.stopMonitoring(t))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(e,t,n){n?e.classList.add(t):e.classList.remove(t)}_getFocusOrigin(e){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(e)?"touch":"program"}_setClasses(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)}_setOriginForCurrentEventQueue(e){this._ngZone.runOutsideAngular(()=>{this._origin=e,0===this._detectionMode&&(this._originTimeoutId=setTimeout(()=>this._origin=null,1))})}_wasCausedByTouch(e){const t=cu(e);return this._lastTouchTarget instanceof Node&&t instanceof Node&&(t===this._lastTouchTarget||t.contains(this._lastTouchTarget))}_onFocus(e,t){const n=this._elementInfo.get(t);if(!n||!n.checkChildren&&t!==cu(e))return;const s=this._getFocusOrigin(e);this._setClasses(t,s),this._emitOrigin(n.subject,s),this._lastFocusOrigin=s}_onBlur(e,t){const n=this._elementInfo.get(t);!n||n.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(n.subject,null))}_emitOrigin(e,t){this._ngZone.run(()=>e.next(t))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const t=e.rootNode,n=this._rootNodeFocusListenerCount.get(t)||0;n||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,au),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,au)}),this._rootNodeFocusListenerCount.set(t,n+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(()=>{const e=this._getDocument(),t=this._getWindow();e.addEventListener("keydown",this._documentKeydownListener,au),e.addEventListener("mousedown",this._documentMousedownListener,au),e.addEventListener("touchstart",this._documentTouchstartListener,au),t.addEventListener("focus",this._windowFocusListener)})}_removeGlobalListeners(e){const t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){const e=this._rootNodeFocusListenerCount.get(t);e>1?this._rootNodeFocusListenerCount.set(t,e-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,au),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,au),this._rootNodeFocusListenerCount.delete(t))}if(!--this._monitoredElementCount){const e=this._getDocument(),t=this._getWindow();e.removeEventListener("keydown",this._documentKeydownListener,au),e.removeEventListener("mousedown",this._documentMousedownListener,au),e.removeEventListener("touchstart",this._documentTouchstartListener,au),t.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}}return e.\u0275fac=function(t){return new(t||e)(Qe(Fa),Qe(Rl),Qe(Al,8),Qe(ou,8))},e.\u0275prov=ae({factory:function(){return new e(Qe(Fa),Qe(Rl),Qe(Al,8),Qe(ou,8))},token:e,providedIn:"root"}),e})();function cu(e){return e.composedPath?e.composedPath()[0]:e.target}const uu="cdk-high-contrast-black-on-white",hu="cdk-high-contrast-white-on-black",du="cdk-high-contrast-active";let pu=(()=>{class e{constructor(e,t){this._platform=e,this._document=t}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const t=this._document.defaultView||window,n=t&&t.getComputedStyle?t.getComputedStyle(e):null,s=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(e),s){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(du),e.remove(uu),e.remove(hu);const t=this.getHighContrastMode();1===t?(e.add(du),e.add(uu)):2===t&&(e.add(du),e.add(hu))}}}return e.\u0275fac=function(t){return new(t||e)(Qe(Rl),Qe(Al))},e.\u0275prov=ae({factory:function(){return new e(Qe(Rl),Qe(Al))},token:e,providedIn:"root"}),e})();const fu=new mo("10.2.0");class mu extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var e;e=new mu,xl||(xl=e)}getProperty(e,t){return e[t]}log(e){window.console&&window.console.log&&window.console.log(e)}logGroup(e){window.console&&window.console.group&&window.console.group(e)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(e,t,n){return e.addEventListener(t,n,!1),()=>{e.removeEventListener(t,n,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){return e.parentNode&&e.parentNode.removeChild(e),e}getValue(e){return e.value}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(e){const t=_u||(_u=document.querySelector("base"),_u)?_u.getAttribute("href"):null;return null==t?null:(n=t,gu||(gu=document.createElement("a")),gu.setAttribute("href",n),"/"===gu.pathname.charAt(0)?gu.pathname:"/"+gu.pathname);var n}resetBaseElement(){_u=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(e){return function(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const e=n.indexOf("="),[s,r]=-1==e?[n,""]:[n.slice(0,e),n.slice(e+1)];if(s.trim()===t)return decodeURIComponent(r)}return null}(document.cookie,e)}}let gu,_u=null;const yu=new Fe("TRANSITION_ID"),bu=[{provide:fa,useFactory:function(e,t,n){return()=>{n.get(ma).donePromise.then(()=>{const n=Tl();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter(t=>t.getAttribute("ng-transition")===e).forEach(e=>n.remove(e))})}},deps:[yu,Al,pi],multi:!0}];class vu{static init(){var e;e=new vu,Wa=e}addToWindow(e){Te.getAngularTestability=(t,n=!0)=>{const s=e.findTestabilityInTree(t,n);if(null==s)throw new Error("Could not find testability for element.");return s},Te.getAllAngularTestabilities=()=>e.getAllTestabilities(),Te.getAllAngularRootElements=()=>e.getAllRootElements(),Te.frameworkStabilizers||(Te.frameworkStabilizers=[]),Te.frameworkStabilizers.push(e=>{const t=Te.getAllAngularTestabilities();let n=t.length,s=!1;const r=function(t){s=s||t,n--,0==n&&e(s)};t.forEach((function(e){e.whenStable(r)}))})}findTestabilityInTree(e,t,n){if(null==t)return null;const s=e.getTestability(t);return null!=s?s:n?Tl().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}const wu=new Fe("EventManagerPlugins");let Eu=(()=>{class e{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(e=>e.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}addGlobalEventListener(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const n=this._plugins;for(let s=0;s<n.length;s++){const t=n[s];if(t.supports(e))return this._eventNameToPlugin.set(e,t),t}throw new Error("No event manager plugin found for event "+e)}}return e.\u0275fac=function(t){return new(t||e)(Qe(wu),Qe(Fa))},e.\u0275prov=ae({token:e,factory:e.\u0275fac}),e})();class ku{constructor(e){this._doc=e}addGlobalEventListener(e,t,n){const s=Tl().getGlobalEventTarget(this._doc,e);if(!s)throw new Error(`Unsupported event target ${s} for event ${t}`);return this.addEventListener(s,t,n)}}let Cu=(()=>{class e{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(e=>{this._stylesSet.has(e)||(this._stylesSet.add(e),t.add(e))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ae({token:e,factory:e.\u0275fac}),e})(),Su=(()=>{class e extends Cu{constructor(e){super(),this._doc=e,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(e.head)}_addStylesToHost(e,t){e.forEach(e=>{const n=this._doc.createElement("style");n.textContent=e,this._styleNodes.add(t.appendChild(n))})}addHost(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)}removeHost(e){this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach(t=>this._addStylesToHost(e,t))}ngOnDestroy(){this._styleNodes.forEach(e=>Tl().remove(e))}}return e.\u0275fac=function(t){return new(t||e)(Qe(Al))},e.\u0275prov=ae({token:e,factory:e.\u0275fac}),e})();const xu={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/"},Tu=/%COMP%/g;function Au(e,t,n){for(let s=0;s<t.length;s++){let r=t[s];Array.isArray(r)?Au(e,r,n):(r=r.replace(Tu,e),n.push(r))}return n}function Iu(e){return t=>{if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let Ou=(()=>{class e{constructor(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new Du(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case it.Emulated:{let n=this.rendererByCompId.get(t.id);return n||(n=new Nu(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n}case it.Native:case it.ShadowDom:return new Pu(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const e=Au(t.id,t.styles,[]);this.sharedStylesHost.addStyles(e),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return e.\u0275fac=function(t){return new(t||e)(Qe(Eu),Qe(Su),Qe(ga))},e.\u0275prov=ae({token:e,factory:e.\u0275fac}),e})();class Du{constructor(e){this.eventManager=e,this.data=Object.create(null)}destroy(){}createElement(e,t){return t?document.createElementNS(xu[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){e.appendChild(t)}insertBefore(e,t,n){e&&e.insertBefore(t,n)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error(`The selector "${e}" did not match any elements`);return t||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,s){if(s){t=s+":"+t;const r=xu[s];r?e.setAttributeNS(r,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){const s=xu[n];s?e.removeAttributeNS(s,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,s){s&uo.DashCase?e.style.setProperty(t,n,s&uo.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&uo.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){e[t]=n}setValue(e,t){e.nodeValue=t}listen(e,t,n){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,Iu(n)):this.eventManager.addEventListener(e,t,Iu(n))}}class Nu extends Du{constructor(e,t,n,s){super(e),this.component=n;const r=Au(s+"-"+n.id,n.styles,[]);t.addStyles(r),this.contentAttr="_ngcontent-%COMP%".replace(Tu,s+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(Tu,s+"-"+n.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,""),n}}class Pu extends Du{constructor(e,t,n,s){super(e),this.sharedStylesHost=t,this.hostEl=n,this.component=s,this.shadowRoot=s.encapsulation===it.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const r=Au(s.id,s.styles,[]);for(let i=0;i<r.length;i++){const e=document.createElement("style");e.textContent=r[i],this.shadowRoot.appendChild(e)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,n){return super.insertBefore(this.nodeOrShadowRoot(e),t,n)}removeChild(e,t){return super.removeChild(this.nodeOrShadowRoot(e),t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}}let Vu=(()=>{class e extends ku{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,n){return e.addEventListener(t,n,!1),()=>this.removeEventListener(e,t,n)}removeEventListener(e,t,n){return e.removeEventListener(t,n)}}return e.\u0275fac=function(t){return new(t||e)(Qe(Al))},e.\u0275prov=ae({token:e,factory:e.\u0275fac}),e})();const Fu=["alt","control","meta","shift"],Ru={"\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"},Mu={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"},ju={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let Lu=(()=>{class e extends ku{constructor(e){super(e)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,n,s){const r=e.parseEventName(n),i=e.eventCallback(r.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Tl().onAndCancel(t,r.domEventName,i))}static parseEventName(t){const n=t.toLowerCase().split("."),s=n.shift();if(0===n.length||"keydown"!==s&&"keyup"!==s)return null;const r=e._normalizeKey(n.pop());let i="";if(Fu.forEach(e=>{const t=n.indexOf(e);t>-1&&(n.splice(t,1),i+=e+".")}),i+=r,0!=n.length||0===r.length)return null;const o={};return o.domEventName=s,o.fullKey=i,o}static getEventFullKey(e){let t="",n=function(e){let t=e.key;if(null==t){if(t=e.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&Mu.hasOwnProperty(t)&&(t=Mu[t]))}return Ru[t]||t}(e);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),Fu.forEach(s=>{s!=n&&(0,ju[s])(e)&&(t+=s+".")}),t+=n,t}static eventCallback(t,n,s){return r=>{e.getEventFullKey(r)===t&&s.runGuarded(()=>n(r))}}static _normalizeKey(e){switch(e){case"esc":return"escape";default:return e}}}return e.\u0275fac=function(t){return new(t||e)(Qe(Al))},e.\u0275prov=ae({token:e,factory:e.\u0275fac}),e})();const Bu=Ka(tl,"browser",[{provide:va,useValue:"browser"},{provide:ba,useValue:function(){mu.makeCurrent(),vu.init()},multi:!0},{provide:Al,useFactory:function(){return function(e){Ft=e}(document),document},deps:[]}]),Hu=[[],{provide:Xr,useValue:"root"},{provide:ls,useFactory:function(){return new ls},deps:[]},{provide:wu,useClass:Vu,multi:!0,deps:[Al,Fa,va]},{provide:wu,useClass:Lu,multi:!0,deps:[Al]},[],{provide:Ou,useClass:Ou,deps:[Eu,Su,ga]},{provide:co,useExisting:Ou},{provide:Cu,useExisting:Su},{provide:Su,useClass:Su,deps:[Al]},{provide:$a,useClass:$a,deps:[Fa]},{provide:Eu,useClass:Eu,deps:[wu,Fa]},[]];let qu=(()=>{class e{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(t){return{ngModule:e,providers:[{provide:ga,useValue:t.appId},{provide:yu,useExisting:ga},bu]}}}return e.\u0275mod=pt({type:e}),e.\u0275inj=le({factory:function(t){return new(t||e)(Qe(e,12))},providers:Hu,imports:[Pl,sl]}),e})();"undefined"!=typeof window&&window;class $u{}const zu="*";function Zu(e,t=null){return{type:2,steps:e,options:t}}function Qu(e){return{type:6,styles:e,offset:null}}function Wu(e){Promise.resolve(null).then(e)}class Uu{constructor(e=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Wu(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){}setPosition(e){}getPosition(){return 0}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}class Ku{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,n=0,s=0;const r=this.players.length;0==r?Wu(()=>this._onFinish()):this.players.forEach(e=>{e.onDone(()=>{++t==r&&this._onFinish()}),e.onDestroy(()=>{++n==r&&this._onDestroy()}),e.onStart(()=>{++s==r&&this._onStart()})}),this.totalTime=this.players.reduce((e,t)=>Math.max(e,t.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const t=e*this.totalTime;this.players.forEach(e=>{const n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})}getPosition(){let e=0;return this.players.forEach(t=>{const n=t.getPosition();e=Math.min(n,e)}),e}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}function Gu(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Yu(e){switch(e.length){case 0:return new Uu;case 1:return e[0];default:return new Ku(e)}}function Ju(e,t,n,s,r={},i={}){const o=[],a=[];let l=-1,c=null;if(s.forEach(e=>{const n=e.offset,s=n==l,u=s&&c||{};Object.keys(e).forEach(n=>{let s=n,a=e[n];if("offset"!==n)switch(s=t.normalizePropertyName(s,o),a){case"!":a=r[n];break;case zu:a=i[n];break;default:a=t.normalizeStyleValue(n,s,a,o)}u[s]=a}),s||a.push(u),c=u,l=n}),o.length){const e="\n - ";throw new Error(`Unable to animate due to the following errors:${e}${o.join(e)}`)}return a}function Xu(e,t,n,s){switch(t){case"start":e.onStart(()=>s(n&&eh(n,"start",e)));break;case"done":e.onDone(()=>s(n&&eh(n,"done",e)));break;case"destroy":e.onDestroy(()=>s(n&&eh(n,"destroy",e)))}}function eh(e,t,n){const s=n.totalTime,r=th(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==s?e.totalTime:s,!!n.disabled),i=e._data;return null!=i&&(r._data=i),r}function th(e,t,n,s,r="",i=0,o){return{element:e,triggerName:t,fromState:n,toState:s,phaseName:r,totalTime:i,disabled:!!o}}function nh(e,t,n){let s;return e instanceof Map?(s=e.get(t),s||e.set(t,s=n)):(s=e[t],s||(s=e[t]=n)),s}function sh(e){const t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}let rh=(e,t)=>!1,ih=(e,t)=>!1,oh=(e,t,n)=>[];const ah=Gu();(ah||"undefined"!=typeof Element)&&(rh=(e,t)=>e.contains(t),ih=(()=>{if(ah||Element.prototype.matches)return(e,t)=>e.matches(t);{const e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?(e,n)=>t.apply(e,[n]):ih}})(),oh=(e,t,n)=>{let s=[];if(n)s.push(...e.querySelectorAll(t));else{const n=e.querySelector(t);n&&s.push(n)}return s});let lh=null,ch=!1;function uh(e){lh||(lh=("undefined"!=typeof document?document.body:null)||{},ch=!!lh.style&&"WebkitAppearance"in lh.style);let t=!0;return lh.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&(t=e in lh.style,!t&&ch)&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in lh.style),t}const hh=ih,dh=rh,ph=oh;function fh(e){const t={};return Object.keys(e).forEach(n=>{const s=n.replace(/([a-z])([A-Z])/g,"$1-$2");t[s]=e[n]}),t}let mh=(()=>{class e{validateStyleProperty(e){return uh(e)}matchesElement(e,t){return hh(e,t)}containsElement(e,t){return dh(e,t)}query(e,t,n){return ph(e,t,n)}computeStyle(e,t,n){return n||""}animate(e,t,n,s,r,i=[],o){return new Uu(n,s)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ae({token:e,factory:e.\u0275fac}),e})(),gh=(()=>{class e{}return e.NOOP=new mh,e})();const _h="ng-enter",yh="ng-leave",bh="ng-trigger",vh=".ng-trigger",wh="ng-animating",Eh=".ng-animating";function kh(e){if("number"==typeof e)return e;const t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:Ch(parseFloat(t[1]),t[2])}function Ch(e,t){switch(t){case"s":return 1e3*e;default:return e}}function Sh(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){let s,r=0,i="";if("string"==typeof e){const n=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return t.push(`The provided timing value "${e}" is invalid.`),{duration:0,delay:0,easing:""};s=Ch(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(r=Ch(parseFloat(o),n[4]));const a=n[5];a&&(i=a)}else s=e;if(!n){let n=!1,i=t.length;s<0&&(t.push("Duration values below 0 are not allowed for this animation step."),n=!0),r<0&&(t.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&t.splice(i,0,`The provided timing value "${e}" is invalid.`)}return{duration:s,delay:r,easing:i}}(e,t,n)}function xh(e,t={}){return Object.keys(e).forEach(n=>{t[n]=e[n]}),t}function Th(e,t,n={}){if(t)for(let s in e)n[s]=e[s];else xh(e,n);return n}function Ah(e,t,n){return n?t+":"+n+";":""}function Ih(e){let t="";for(let n=0;n<e.style.length;n++){const s=e.style.item(n);t+=Ah(0,s,e.style.getPropertyValue(s))}for(const n in e.style)e.style.hasOwnProperty(n)&&!n.startsWith("_")&&(t+=Ah(0,n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e.style[n]));e.setAttribute("style",t)}function Oh(e,t,n){e.style&&(Object.keys(t).forEach(s=>{const r=jh(s);n&&!n.hasOwnProperty(s)&&(n[s]=e.style[r]),e.style[r]=t[s]}),Gu()&&Ih(e))}function Dh(e,t){e.style&&(Object.keys(t).forEach(t=>{const n=jh(t);e.style[n]=""}),Gu()&&Ih(e))}function Nh(e){return Array.isArray(e)?1==e.length?e[0]:Zu(e):e}const Ph=new RegExp("{{\\s*(.+?)\\s*}}","g");function Vh(e){let t=[];if("string"==typeof e){let n;for(;n=Ph.exec(e);)t.push(n[1]);Ph.lastIndex=0}return t}function Fh(e,t,n){const s=e.toString(),r=s.replace(Ph,(e,s)=>{let r=t[s];return t.hasOwnProperty(s)||(n.push("Please provide a value for the animation param "+s),r=""),r.toString()});return r==s?e:r}function Rh(e){const t=[];let n=e.next();for(;!n.done;)t.push(n.value),n=e.next();return t}const Mh=/-+([a-z0-9])/g;function jh(e){return e.replace(Mh,(...e)=>e[1].toUpperCase())}function Lh(e,t){return 0===e||0===t}function Bh(e,t,n){const s=Object.keys(n);if(s.length&&t.length){let i=t[0],o=[];if(s.forEach(e=>{i.hasOwnProperty(e)||o.push(e),i[e]=n[e]}),o.length)for(var r=1;r<t.length;r++){let n=t[r];o.forEach((function(t){n[t]=qh(e,t)}))}}return t}function Hh(e,t,n){switch(t.type){case 7:return e.visitTrigger(t,n);case 0:return e.visitState(t,n);case 1:return e.visitTransition(t,n);case 2:return e.visitSequence(t,n);case 3:return e.visitGroup(t,n);case 4:return e.visitAnimate(t,n);case 5:return e.visitKeyframes(t,n);case 6:return e.visitStyle(t,n);case 8:return e.visitReference(t,n);case 9:return e.visitAnimateChild(t,n);case 10:return e.visitAnimateRef(t,n);case 11:return e.visitQuery(t,n);case 12:return e.visitStagger(t,n);default:throw new Error("Unable to resolve animation metadata node #"+t.type)}}function qh(e,t){return window.getComputedStyle(e)[t]}const $h="*";function zh(e,t){const n=[];return"string"==typeof e?e.split(/\s*,\s*/).forEach(e=>function(e,t,n){if(":"==e[0]){const s=function(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t)<parseFloat(e);default:return t.push(`The transition alias value "${e}" is not supported`),"* => *"}}(e,n);if("function"==typeof s)return void t.push(s);e=s}const s=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==s||s.length<4)return n.push(`The provided transition expression "${e}" is not supported`),t;const r=s[1],i=s[2],o=s[3];t.push(Wh(r,o)),"<"!=i[0]||r==$h&&o==$h||t.push(Wh(o,r))}(e,n,t)):n.push(e),n}const Zh=new Set(["true","1"]),Qh=new Set(["false","0"]);function Wh(e,t){const n=Zh.has(e)||Qh.has(e),s=Zh.has(t)||Qh.has(t);return(r,i)=>{let o=e==$h||e==r,a=t==$h||t==i;return!o&&n&&"boolean"==typeof r&&(o=r?Zh.has(e):Qh.has(e)),!a&&s&&"boolean"==typeof i&&(a=i?Zh.has(t):Qh.has(t)),o&&a}}const Uh=new RegExp("s*:selfs*,?","g");function Kh(e,t,n){return new Gh(e).build(t,n)}class Gh{constructor(e){this._driver=e}build(e,t){const n=new Yh(t);return this._resetContextStyleTimingState(n),Hh(this,Nh(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}visitTrigger(e,t){let n=t.queryCount=0,s=t.depCount=0;const r=[],i=[];return"@"==e.name.charAt(0)&&t.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach(e=>{if(this._resetContextStyleTimingState(t),0==e.type){const n=e,s=n.name;s.toString().split(/\s*,\s*/).forEach(e=>{n.name=e,r.push(this.visitState(n,t))}),n.name=s}else if(1==e.type){const r=this.visitTransition(e,t);n+=r.queryCount,s+=r.depCount,i.push(r)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:e.name,states:r,transitions:i,queryCount:n,depCount:s,options:null}}visitState(e,t){const n=this.visitStyle(e.styles,t),s=e.options&&e.options.params||null;if(n.containsDynamicStyles){const r=new Set,i=s||{};if(n.styles.forEach(e=>{if(Jh(e)){const t=e;Object.keys(t).forEach(e=>{Vh(t[e]).forEach(e=>{i.hasOwnProperty(e)||r.add(e)})})}}),r.size){const n=Rh(r.values());t.errors.push(`state("${e.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:e.name,style:n,options:s?{params:s}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const n=Hh(this,Nh(e.animation),t);return{type:1,matchers:zh(e.expr,t.errors),animation:n,queryCount:t.queryCount,depCount:t.depCount,options:Xh(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(e=>Hh(this,e,t)),options:Xh(e.options)}}visitGroup(e,t){const n=t.currentTime;let s=0;const r=e.steps.map(e=>{t.currentTime=n;const r=Hh(this,e,t);return s=Math.max(s,t.currentTime),r});return t.currentTime=s,{type:3,steps:r,options:Xh(e.options)}}visitAnimate(e,t){const n=function(e,t){let n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return ed(Sh(e,t).duration,0,"");const s=e;if(s.split(/\s+/).some(e=>"{"==e.charAt(0)&&"{"==e.charAt(1))){const e=ed(0,0,"");return e.dynamic=!0,e.strValue=s,e}return n=n||Sh(s,t),ed(n.duration,n.delay,n.easing)}(e.timings,t.errors);let s;t.currentAnimateTimings=n;let r=e.styles?e.styles:Qu({});if(5==r.type)s=this.visitKeyframes(r,t);else{let r=e.styles,i=!1;if(!r){i=!0;const e={};n.easing&&(e.easing=n.easing),r=Qu(e)}t.currentTime+=n.duration+n.delay;const o=this.visitStyle(r,t);o.isEmptyStep=i,s=o}return t.currentAnimateTimings=null,{type:4,timings:n,style:s,options:null}}visitStyle(e,t){const n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}_makeStyleAst(e,t){const n=[];Array.isArray(e.styles)?e.styles.forEach(e=>{"string"==typeof e?e==zu?n.push(e):t.errors.push(`The provided style string value ${e} is not allowed.`):n.push(e)}):n.push(e.styles);let s=!1,r=null;return n.forEach(e=>{if(Jh(e)){const t=e,n=t.easing;if(n&&(r=n,delete t.easing),!s)for(let e in t)if(t[e].toString().indexOf("{{")>=0){s=!0;break}}}),{type:6,styles:n,easing:r,offset:e.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(e,t){const n=t.currentAnimateTimings;let s=t.currentTime,r=t.currentTime;n&&r>0&&(r-=n.duration+n.delay),e.styles.forEach(e=>{"string"!=typeof e&&Object.keys(e).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void t.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const i=t.collectedStyles[t.currentQuerySelector],o=i[n];let a=!0;o&&(r!=s&&r>=o.startTime&&s<=o.endTime&&(t.errors.push(`The CSS property "${n}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${r}ms" and "${s}ms"`),a=!1),r=o.startTime),a&&(i[n]={startTime:r,endTime:s}),t.options&&function(e,t,n){const s=t.params||{},r=Vh(e);r.length&&r.forEach(e=>{s.hasOwnProperty(e)||n.push(`Unable to resolve the local animation param ${e} in the given list of values`)})}(e[n],t.options,t.errors)})})}visitKeyframes(e,t){const n={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),n;let s=0;const r=[];let i=!1,o=!1,a=0;const l=e.steps.map(e=>{const n=this._makeStyleAst(e,t);let l=null!=n.offset?n.offset:function(e){if("string"==typeof e)return null;let t=null;if(Array.isArray(e))e.forEach(e=>{if(Jh(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}});else if(Jh(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}return t}(n.styles),c=0;return null!=l&&(s++,c=n.offset=l),o=o||c<0||c>1,i=i||c<a,a=c,r.push(c),n});o&&t.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),i&&t.errors.push("Please ensure that all keyframe offsets are in order");const c=e.steps.length;let u=0;s>0&&s<c?t.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==s&&(u=1/(c-1));const h=c-1,d=t.currentTime,p=t.currentAnimateTimings,f=p.duration;return l.forEach((e,s)=>{const i=u>0?s==h?1:u*s:r[s],o=i*f;t.currentTime=d+p.delay+o,p.duration=o,this._validateStyleAst(e,t),e.offset=i,n.styles.push(e)}),n}visitReference(e,t){return{type:8,animation:Hh(this,Nh(e.animation),t),options:Xh(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:Xh(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:Xh(e.options)}}visitQuery(e,t){const n=t.currentQuerySelector,s=e.options||{};t.queryCount++,t.currentQuery=e;const[r,i]=function(e){const t=!!e.split(/\s*,\s*/).find(e=>":self"==e);return t&&(e=e.replace(Uh,"")),[e=e.replace(/@\*/g,vh).replace(/@\w+/g,e=>".ng-trigger-"+e.substr(1)).replace(/:animating/g,Eh),t]}(e.selector);t.currentQuerySelector=n.length?n+" "+r:r,nh(t.collectedStyles,t.currentQuerySelector,{});const o=Hh(this,Nh(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:r,limit:s.limit||0,optional:!!s.optional,includeSelf:i,animation:o,originalSelector:e.selector,options:Xh(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");const n="full"===e.timings?{duration:0,delay:0,easing:"full"}:Sh(e.timings,t.errors,!0);return{type:12,animation:Hh(this,Nh(e.animation),t),timings:n,options:null}}}class Yh{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function Jh(e){return!Array.isArray(e)&&"object"==typeof e}function Xh(e){var t;return e?(e=xh(e)).params&&(e.params=(t=e.params)?xh(t):null):e={},e}function ed(e,t,n){return{duration:e,delay:t,easing:n}}function td(e,t,n,s,r,i,o=null,a=!1){return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:s,duration:r,delay:i,totalTime:r+i,easing:o,subTimeline:a}}class nd{constructor(){this._map=new Map}consume(e){let t=this._map.get(e);return t?this._map.delete(e):t=[],t}append(e,t){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const sd=new RegExp(":enter","g"),rd=new RegExp(":leave","g");function id(e,t,n,s,r,i={},o={},a,l,c=[]){return(new od).buildKeyframes(e,t,n,s,r,i,o,a,l,c)}class od{buildKeyframes(e,t,n,s,r,i,o,a,l,c=[]){l=l||new nd;const u=new ld(e,t,l,s,r,c,[]);u.options=a,u.currentTimeline.setStyles([i],null,u.errors,a),Hh(this,n,u);const h=u.timelines.filter(e=>e.containsAnimation());if(h.length&&Object.keys(o).length){const e=h[h.length-1];e.allowOnlyTimelineStyles()||e.setStyles([o],null,u.errors,a)}return h.length?h.map(e=>e.buildKeyframes()):[td(t,[],[],[],0,0,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const n=t.subInstructions.consume(t.element);if(n){const s=t.createSubContext(e.options),r=t.currentTimeline.currentTime,i=this._visitSubInstructions(n,s,s.options);r!=i&&t.transformIntoNewTimeline(i)}t.previousNode=e}visitAnimateRef(e,t){const n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}_visitSubInstructions(e,t,n){let s=t.currentTimeline.currentTime;const r=null!=n.duration?kh(n.duration):null,i=null!=n.delay?kh(n.delay):null;return 0!==r&&e.forEach(e=>{const n=t.appendInstructionToTimeline(e,r,i);s=Math.max(s,n.duration+n.delay)}),s}visitReference(e,t){t.updateOptions(e.options,!0),Hh(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const n=t.subContextCount;let s=t;const r=e.options;if(r&&(r.params||r.delay)&&(s=t.createSubContext(r),s.transformIntoNewTimeline(),null!=r.delay)){6==s.previousNode.type&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=ad);const e=kh(r.delay);s.delayNextStep(e)}e.steps.length&&(e.steps.forEach(e=>Hh(this,e,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>n&&s.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const n=[];let s=t.currentTimeline.currentTime;const r=e.options&&e.options.delay?kh(e.options.delay):0;e.steps.forEach(i=>{const o=t.createSubContext(e.options);r&&o.delayNextStep(r),Hh(this,i,o),s=Math.max(s,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(e=>t.currentTimeline.mergeTimelineCollectedStyles(e)),t.transformIntoNewTimeline(s),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const n=e.strValue;return Sh(t.params?Fh(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const n=t.currentAnimateTimings=this._visitTiming(e.timings,t),s=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),s.snapshotCurrentStyles());const r=e.style;5==r.type?this.visitKeyframes(r,t):(t.incrementTime(n.duration),this.visitStyle(r,t),s.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const n=t.currentTimeline,s=t.currentAnimateTimings;!s&&n.getCurrentStyleProperties().length&&n.forwardFrame();const r=s&&s.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(r):n.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const n=t.currentAnimateTimings,s=t.currentTimeline.duration,r=n.duration,i=t.createSubContext().currentTimeline;i.easing=n.easing,e.styles.forEach(e=>{i.forwardTime((e.offset||0)*r),i.setStyles(e.styles,e.easing,t.errors,t.options),i.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(i),t.transformIntoNewTimeline(s+r),t.previousNode=e}visitQuery(e,t){const n=t.currentTimeline.currentTime,s=e.options||{},r=s.delay?kh(s.delay):0;r&&(6===t.previousNode.type||0==n&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=ad);let i=n;const o=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!s.optional,t.errors);t.currentQueryTotal=o.length;let a=null;o.forEach((n,s)=>{t.currentQueryIndex=s;const o=t.createSubContext(e.options,n);r&&o.delayNextStep(r),n===t.element&&(a=o.currentTimeline),Hh(this,e.animation,o),o.currentTimeline.applyStylesToKeyframe(),i=Math.max(i,o.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(i),a&&(t.currentTimeline.mergeTimelineCollectedStyles(a),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const n=t.parentContext,s=t.currentTimeline,r=e.timings,i=Math.abs(r.duration),o=i*(t.currentQueryTotal-1);let a=i*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const l=t.currentTimeline;a&&l.delayNextStep(a);const c=l.currentTime;Hh(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=s.currentTime-c+(s.startTime-n.currentTimeline.startTime)}}const ad={};class ld{constructor(e,t,n,s,r,i,o,a){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=s,this._leaveClassName=r,this.errors=i,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ad,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new cd(this._driver,t,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const n=e;let s=this.options;null!=n.duration&&(s.duration=kh(n.duration)),null!=n.delay&&(s.delay=kh(n.delay));const r=n.params;if(r){let e=s.params;e||(e=this.options.params={}),Object.keys(r).forEach(n=>{t&&e.hasOwnProperty(n)||(e[n]=Fh(r[n],e,this.errors))})}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const n=e.params={};Object.keys(t).forEach(e=>{n[e]=t[e]})}}return e}createSubContext(e=null,t,n){const s=t||this.element,r=new ld(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,n||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(e){return this.previousNode=ad,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,n){const s={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},r=new ud(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,s,e.stretchStartingKeyframe);return this.timelines.push(r),s}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,n,s,r,i){let o=[];if(s&&o.push(this.element),e.length>0){e=(e=e.replace(sd,"."+this._enterClassName)).replace(rd,"."+this._leaveClassName);let t=this._driver.query(this.element,e,1!=n);0!==n&&(t=n<0?t.slice(t.length+n,t.length):t.slice(0,n)),o.push(...t)}return r||0!=o.length||i.push(`\`query("${t}")\` returned zero elements. (Use \`query("${t}", { optional: true })\` if you wish to allow this.)`),o}}class cd{constructor(e,t,n,s){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=s,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(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(e){const t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new cd(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){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))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||zu,this._currentKeyframe[e]=zu}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,n,s){t&&(this._previousKeyframe.easing=t);const r=s&&s.params||{},i=function(e,t){const n={};let s;return e.forEach(e=>{"*"===e?(s=s||Object.keys(t),s.forEach(e=>{n[e]=zu})):Th(e,!1,n)}),n}(e,this._globalTimelineStyles);Object.keys(i).forEach(e=>{const t=Fh(i[e],r,n);this._pendingStyles[e]=t,this._localTimelineStyles.hasOwnProperty(e)||(this._backFill[e]=this._globalTimelineStyles.hasOwnProperty(e)?this._globalTimelineStyles[e]:zu),this._updateStyle(e,t)})}applyStylesToKeyframe(){const e=this._pendingStyles,t=Object.keys(e);0!=t.length&&(this._pendingStyles={},t.forEach(t=>{this._currentKeyframe[t]=e[t]}),Object.keys(this._localTimelineStyles).forEach(e=>{this._currentKeyframe.hasOwnProperty(e)||(this._currentKeyframe[e]=this._localTimelineStyles[e])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(e=>{const t=this._localTimelineStyles[e];this._pendingStyles[e]=t,this._updateStyle(e,t)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){Object.keys(e._styleSummary).forEach(t=>{const n=this._styleSummary[t],s=e._styleSummary[t];(!n||s.time>n.time)&&this._updateStyle(t,s.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,n=1===this._keyframes.size&&0===this.duration;let s=[];this._keyframes.forEach((r,i)=>{const o=Th(r,!0);Object.keys(o).forEach(n=>{const s=o[n];"!"==s?e.add(n):s==zu&&t.add(n)}),n||(o.offset=i/this.duration),s.push(o)});const r=e.size?Rh(e.values()):[],i=t.size?Rh(t.values()):[];if(n){const e=s[0],t=xh(e);e.offset=0,t.offset=1,s=[e,t]}return td(this.element,s,r,i,this.duration,this.startTime,this.easing,!1)}}class ud extends cd{constructor(e,t,n,s,r,i,o=!1){super(e,t,i.delay),this.element=t,this.keyframes=n,this.preStyleProps=s,this.postStyleProps=r,this._stretchStartingKeyframe=o,this.timings={duration:i.duration,delay:i.delay,easing:i.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:n,easing:s}=this.timings;if(this._stretchStartingKeyframe&&t){const r=[],i=n+t,o=t/i,a=Th(e[0],!1);a.offset=0,r.push(a);const l=Th(e[0],!1);l.offset=hd(o),r.push(l);const c=e.length-1;for(let s=1;s<=c;s++){let o=Th(e[s],!1);o.offset=hd((t+o.offset*n)/i),r.push(o)}n=i,t=0,s="",e=r}return td(this.element,e,this.preStyleProps,this.postStyleProps,n,t,s,!0)}}function hd(e,t=3){const n=Math.pow(10,t-1);return Math.round(e*n)/n}class dd{}class pd extends dd{normalizePropertyName(e,t){return jh(e)}normalizeStyleValue(e,t,n,s){let r="";const i=n.toString().trim();if(fd[t]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{const t=n.match(/^[+-]?[\d\.]+([a-z]*)$/);t&&0==t[1].length&&s.push(`Please provide a CSS unit value for ${e}:${n}`)}return i+r}}const fd=(()=>function(e){const t={};return e.forEach(e=>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 md(e,t,n,s,r,i,o,a,l,c,u,h,d){return{type:0,element:e,triggerName:t,isRemovalTransition:r,fromState:n,fromStyles:i,toState:s,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:h,errors:d}}const gd={};class _d{constructor(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}match(e,t,n,s){return function(e,t,n,s,r){return e.some(e=>e(t,n,s,r))}(this.ast.matchers,e,t,n,s)}buildStyles(e,t,n){const s=this._stateStyles["*"],r=this._stateStyles[e],i=s?s.buildStyles(t,n):{};return r?r.buildStyles(t,n):i}build(e,t,n,s,r,i,o,a,l,c){const u=[],h=this.ast.options&&this.ast.options.params||gd,d=this.buildStyles(n,o&&o.params||gd,u),p=a&&a.params||gd,f=this.buildStyles(s,p,u),m=new Set,g=new Map,_=new Map,y="void"===s,b={params:Object.assign(Object.assign({},h),p)},v=c?[]:id(e,t,this.ast.animation,r,i,d,f,b,l,u);let w=0;if(v.forEach(e=>{w=Math.max(e.duration+e.delay,w)}),u.length)return md(t,this._triggerName,n,s,y,d,f,[],[],g,_,w,u);v.forEach(e=>{const n=e.element,s=nh(g,n,{});e.preStyleProps.forEach(e=>s[e]=!0);const r=nh(_,n,{});e.postStyleProps.forEach(e=>r[e]=!0),n!==t&&m.add(n)});const E=Rh(m.values());return md(t,this._triggerName,n,s,y,d,f,v,E,g,_,w)}}class yd{constructor(e,t){this.styles=e,this.defaultParams=t}buildStyles(e,t){const n={},s=xh(this.defaultParams);return Object.keys(e).forEach(t=>{const n=e[t];null!=n&&(s[t]=n)}),this.styles.styles.forEach(e=>{if("string"!=typeof e){const r=e;Object.keys(r).forEach(e=>{let i=r[e];i.length>1&&(i=Fh(i,s,t)),n[e]=i})}}),n}}class bd{constructor(e,t){this.name=e,this.ast=t,this.transitionFactories=[],this.states={},t.states.forEach(e=>{this.states[e.name]=new yd(e.style,e.options&&e.options.params||{})}),vd(this.states,"true","1"),vd(this.states,"false","0"),t.transitions.forEach(t=>{this.transitionFactories.push(new _d(e,t,this.states))}),this.fallbackTransition=new _d(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[(e,t)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,n,s){return this.transitionFactories.find(r=>r.match(e,t,n,s))||null}matchStyles(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}}function vd(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}const wd=new nd;class Ed{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(e,t){const n=[],s=Kh(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[e]=s}_buildPlayer(e,t,n){const s=e.element,r=Ju(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(s,r,e.duration,e.delay,e.easing,[],!0)}create(e,t,n={}){const s=[],r=this._animations[e];let i;const o=new Map;if(r?(i=id(this._driver,t,r,_h,yh,{},{},n,wd,s),i.forEach(e=>{const t=nh(o,e.element,{});e.postStyleProps.forEach(e=>t[e]=null)})):(s.push("The requested animation doesn't exist or has already been destroyed"),i=[]),s.length)throw new Error("Unable to create the animation due to the following errors: "+s.join("\n"));o.forEach((e,t)=>{Object.keys(e).forEach(n=>{e[n]=this._driver.computeStyle(t,n,zu)})});const a=Yu(i.map(e=>{const t=o.get(e.element);return this._buildPlayer(e,{},t)}));return this._playersById[e]=a,a.onDestroy(()=>this.destroy(e)),this.players.push(a),a}destroy(e){const t=this._getPlayer(e);t.destroy(),delete this._playersById[e];const n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}_getPlayer(e){const t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by "+e);return t}listen(e,t,n,s){const r=th(t,"","","");return Xu(this._getPlayer(e),n,r,s),()=>{}}command(e,t,n,s){if("register"==n)return void this.register(e,s[0]);if("create"==n)return void this.create(e,t,s[0]||{});const 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(s[0]));break;case"destroy":this.destroy(e)}}}const kd="ng-animate-queued",Cd="ng-animate-disabled",Sd=".ng-animate-disabled",xd=[],Td={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ad={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class Id{constructor(e,t=""){this.namespaceId=t;const n=e&&e.hasOwnProperty("value");if(this.value=null!=(s=n?e.value:e)?s:null,n){const t=xh(e);delete t.value,this.options=t}else this.options={};var s;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const t=e.params;if(t){const e=this.options.params;Object.keys(t).forEach(n=>{null==e[n]&&(e[n]=t[n])})}}}const Od="void",Dd=new Id(Od);class Nd{constructor(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Ld(t,this._hostClassName)}listen(e,t,n,s){if(!this._triggers.hasOwnProperty(t))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${t}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${t}" because the provided event is undefined!`);if("start"!=(r=n)&&"done"!=r)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${t}" is not supported!`);var r;const i=nh(this._elementListeners,e,[]),o={name:t,phase:n,callback:s};i.push(o);const a=nh(this._engine.statesByElement,e,{});return a.hasOwnProperty(t)||(Ld(e,bh),Ld(e,"ng-trigger-"+t),a[t]=Dd),()=>{this._engine.afterFlush(()=>{const e=i.indexOf(o);e>=0&&i.splice(e,1),this._triggers[t]||delete a[t]})}}register(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}_getTrigger(e){const t=this._triggers[e];if(!t)throw new Error(`The provided animation trigger "${e}" has not been registered!`);return t}trigger(e,t,n,s=!0){const r=this._getTrigger(t),i=new Vd(this.id,t,e);let o=this._engine.statesByElement.get(e);o||(Ld(e,bh),Ld(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,o={}));let a=o[t];const l=new Id(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[t]=l,a||(a=Dd),l.value!==Od&&a.value===l.value){if(!function(e,t){const n=Object.keys(e),s=Object.keys(t);if(n.length!=s.length)return!1;for(let r=0;r<n.length;r++){const s=n[r];if(!t.hasOwnProperty(s)||e[s]!==t[s])return!1}return!0}(a.params,l.params)){const t=[],n=r.matchStyles(a.value,a.params,t),s=r.matchStyles(l.value,l.params,t);t.length?this._engine.reportError(t):this._engine.afterFlush(()=>{Dh(e,n),Oh(e,s)})}return}const c=nh(this._engine.playersByElement,e,[]);c.forEach(e=>{e.namespaceId==this.id&&e.triggerName==t&&e.queued&&e.destroy()});let u=r.matchTransition(a.value,l.value,e,l.params),h=!1;if(!u){if(!s)return;u=r.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:u,fromState:a,toState:l,player:i,isFallbackTransition:h}),h||(Ld(e,kd),i.onStart(()=>{Bd(e,kd)})),i.onDone(()=>{let t=this.players.indexOf(i);t>=0&&this.players.splice(t,1);const n=this._engine.playersByElement.get(e);if(n){let e=n.indexOf(i);e>=0&&n.splice(e,1)}}),this.players.push(i),c.push(i),i}deregister(e){delete this._triggers[e],this._engine.statesByElement.forEach((t,n)=>{delete t[e]}),this._elementListeners.forEach((t,n)=>{this._elementListeners.set(n,t.filter(t=>t.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach(e=>e.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const n=this._engine.driver.query(e,vh,!0);n.forEach(e=>{if(e.__ng_removed)return;const n=this._engine.fetchNamespacesByElement(e);n.size?n.forEach(n=>n.triggerLeaveAnimation(e,t,!1,!0)):this.clearElementCache(e)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(e=>this.clearElementCache(e)))}triggerLeaveAnimation(e,t,n,s){const r=this._engine.statesByElement.get(e);if(r){const i=[];if(Object.keys(r).forEach(t=>{if(this._triggers[t]){const n=this.trigger(e,t,Od,s);n&&i.push(n)}}),i.length)return this._engine.markElementAsRemoved(this.id,e,!0,t),n&&Yu(i).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e);if(t){const n=new Set;t.forEach(t=>{const s=t.name;if(n.has(s))return;n.add(s);const r=this._triggers[s].fallbackTransition,i=this._engine.statesByElement.get(e)[s]||Dd,o=new Id(Od),a=new Vd(this.id,s,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:s,transition:r,fromState:i,toState:o,player:a,isFallbackTransition:!0})})}}removeNode(e,t){const n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let s=!1;if(n.totalAnimations){const t=n.players.length?n.playersByQueriedElement.get(e):[];if(t&&t.length)s=!0;else{let t=e;for(;t=t.parentNode;)if(n.statesByElement.get(t)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(e),s)n.markElementAsRemoved(this.id,e,!1,t);else{const s=e.__ng_removed;s&&s!==Td||(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,t))}}insertNode(e,t){Ld(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach(n=>{const s=n.player;if(s.destroyed)return;const r=n.element,i=this._elementListeners.get(r);i&&i.forEach(t=>{if(t.name==n.triggerName){const s=th(r,n.triggerName,n.fromState.value,n.toState.value);s._data=e,Xu(n.player,t.phase,s,t.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):t.push(n)}),this._queue=[],t.sort((e,t)=>{const n=e.transition.ast.depCount,s=t.transition.ast.depCount;return 0==n||0==s?n-s:this._engine.driver.containsElement(e.element,t.element)?1:-1})}destroy(e){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find(t=>t.element===e)||t,t}}class Pd{constructor(e,t,n){this.bodyNode=e,this.driver=t,this._normalizer=n,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=(e,t)=>{}}_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){const e=[];return this._namespaceList.forEach(t=>{t.players.forEach(t=>{t.queued&&e.push(t)})}),e}createNamespace(e,t){const n=new Nd(e,t,this);return t.parentNode?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,t){const n=this._namespaceList.length-1;if(n>=0){let s=!1;for(let r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,t)){this._namespaceList.splice(r+1,0,e),s=!0;break}s||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}register(e,t){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}registerTrigger(e,t,n){let s=this._namespaceLookup[e];s&&s.register(t,n)&&this.totalAnimations++}destroy(e,t){if(!e)return;const n=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[e];const t=this._namespaceList.indexOf(n);t>=0&&this._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(()=>n.destroy(t))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,n=this.statesByElement.get(e);if(n){const e=Object.keys(n);for(let s=0;s<e.length;s++){const r=n[e[s]].namespaceId;if(r){const e=this._fetchNamespace(r);e&&t.add(e)}}}return t}trigger(e,t,n,s){if(Fd(t)){const r=this._fetchNamespace(e);if(r)return r.trigger(t,n,s),!0}return!1}insertNode(e,t,n,s){if(!Fd(t))return;const r=t.__ng_removed;if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;const e=this.collectedLeaveElements.indexOf(t);e>=0&&this.collectedLeaveElements.splice(e,1)}if(e){const s=this._fetchNamespace(e);s&&s.insertNode(t,n)}s&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Ld(e,Cd)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Bd(e,Cd))}removeNode(e,t,n,s){if(Fd(t)){const r=e?this._fetchNamespace(e):null;if(r?r.removeNode(t,s):this.markElementAsRemoved(e,t,!1,s),n){const n=this.namespacesByHostElement.get(t);n&&n.id!==e&&n.removeNode(t,s)}}else this._onRemovalComplete(t,s)}markElementAsRemoved(e,t,n,s){this.collectedLeaveElements.push(t),t.__ng_removed={namespaceId:e,setForRemoval:s,hasAnimation:n,removedBeforeQueried:!1}}listen(e,t,n,s,r){return Fd(t)?this._fetchNamespace(e).listen(t,n,s,r):()=>{}}_buildInstruction(e,t,n,s,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,s,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,vh,!0);t.forEach(e=>this.destroyActiveAnimationsForElement(e)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,Eh,!0),t.forEach(e=>this.finishActiveQueriedAnimationOnElement(e)))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach(e=>{e.queued?e.markedForDestroy=!0:e.destroy()})}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach(e=>e.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Yu(this.players).onDone(()=>e());e()})}processLeaveNode(e){const t=e.__ng_removed;if(t&&t.setForRemoval){if(e.__ng_removed=Td,t.namespaceId){this.destroyInnerAnimations(e);const n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}this.driver.matchesElement(e,Sd)&&this.markElementAsDisabled(e,!1),this.driver.query(e,Sd,!0).forEach(e=>{this.markElementAsDisabled(e,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((e,t)=>this._balanceNamespaceList(e,t)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++)Ld(this.collectedEnterElements[n],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const n=[];try{t=this._flushAnimations(n,e)}finally{for(let e=0;e<n.length;e++)n[e]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++)this.processLeaveNode(this.collectedLeaveElements[n]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(e=>e()),this._flushFns=[],this._whenQuietFns.length){const e=this._whenQuietFns;this._whenQuietFns=[],t.length?Yu(t).onDone(()=>{e.forEach(e=>e())}):e.forEach(e=>e())}}reportError(e){throw new Error("Unable to process animations due to the following failed trigger transitions\n "+e.join("\n"))}_flushAnimations(e,t){const n=new nd,s=[],r=new Map,i=[],o=new Map,a=new Map,l=new Map,c=new Set;this.disabledNodes.forEach(e=>{c.add(e);const t=this.driver.query(e,".ng-animate-queued",!0);for(let n=0;n<t.length;n++)c.add(t[n])});const u=this.bodyNode,h=Array.from(this.statesByElement.keys()),d=jd(h,this.collectedEnterElements),p=new Map;let f=0;d.forEach((e,t)=>{const n=_h+f++;p.set(t,n),e.forEach(e=>Ld(e,n))});const m=[],g=new Set,_=new Set;for(let O=0;O<this.collectedLeaveElements.length;O++){const e=this.collectedLeaveElements[O],t=e.__ng_removed;t&&t.setForRemoval&&(m.push(e),g.add(e),t.hasAnimation?this.driver.query(e,".ng-star-inserted",!0).forEach(e=>g.add(e)):_.add(e))}const y=new Map,b=jd(h,Array.from(g));b.forEach((e,t)=>{const n=yh+f++;y.set(t,n),e.forEach(e=>Ld(e,n))}),e.push(()=>{d.forEach((e,t)=>{const n=p.get(t);e.forEach(e=>Bd(e,n))}),b.forEach((e,t)=>{const n=y.get(t);e.forEach(e=>Bd(e,n))}),m.forEach(e=>{this.processLeaveNode(e)})});const v=[],w=[];for(let O=this._namespaceList.length-1;O>=0;O--)this._namespaceList[O].drainQueuedTransitions(t).forEach(e=>{const t=e.player,r=e.element;if(v.push(t),this.collectedEnterElements.length){const e=r.__ng_removed;if(e&&e.setForMove)return void t.destroy()}const c=!u||!this.driver.containsElement(u,r),h=y.get(r),d=p.get(r),f=this._buildInstruction(e,n,d,h,c);if(f.errors&&f.errors.length)w.push(f);else{if(c)return t.onStart(()=>Dh(r,f.fromStyles)),t.onDestroy(()=>Oh(r,f.toStyles)),void s.push(t);if(e.isFallbackTransition)return t.onStart(()=>Dh(r,f.fromStyles)),t.onDestroy(()=>Oh(r,f.toStyles)),void s.push(t);f.timelines.forEach(e=>e.stretchStartingKeyframe=!0),n.append(r,f.timelines),i.push({instruction:f,player:t,element:r}),f.queriedElements.forEach(e=>nh(o,e,[]).push(t)),f.preStyleProps.forEach((e,t)=>{const n=Object.keys(e);if(n.length){let e=a.get(t);e||a.set(t,e=new Set),n.forEach(t=>e.add(t))}}),f.postStyleProps.forEach((e,t)=>{const n=Object.keys(e);let s=l.get(t);s||l.set(t,s=new Set),n.forEach(e=>s.add(e))})}});if(w.length){const e=[];w.forEach(t=>{e.push(`@${t.triggerName} has failed due to:\n`),t.errors.forEach(t=>e.push(`- ${t}\n`))}),v.forEach(e=>e.destroy()),this.reportError(e)}const E=new Map,k=new Map;i.forEach(e=>{const t=e.element;n.has(t)&&(k.set(t,t),this._beforeAnimationBuild(e.player.namespaceId,e.instruction,E))}),s.forEach(e=>{const t=e.element;this._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(e=>{nh(E,t,[]).push(e),e.destroy()})});const C=m.filter(e=>qd(e,a,l)),S=new Map;Md(S,this.driver,_,l,zu).forEach(e=>{qd(e,a,l)&&C.push(e)});const x=new Map;d.forEach((e,t)=>{Md(x,this.driver,new Set(e),a,"!")}),C.forEach(e=>{const t=S.get(e),n=x.get(e);S.set(e,Object.assign(Object.assign({},t),n))});const T=[],A=[],I={};i.forEach(e=>{const{element:t,player:i,instruction:o}=e;if(n.has(t)){if(c.has(t))return i.onDestroy(()=>Oh(t,o.toStyles)),i.disabled=!0,i.overrideTotalTime(o.totalTime),void s.push(i);let e=I;if(k.size>1){let n=t;const s=[];for(;n=n.parentNode;){const t=k.get(n);if(t){e=t;break}s.push(n)}s.forEach(t=>k.set(t,e))}const n=this._buildAnimation(i.namespaceId,o,E,r,x,S);if(i.setRealPlayer(n),e===I)T.push(i);else{const t=this.playersByElement.get(e);t&&t.length&&(i.parentPlayer=Yu(t)),s.push(i)}}else Dh(t,o.fromStyles),i.onDestroy(()=>Oh(t,o.toStyles)),A.push(i),c.has(t)&&s.push(i)}),A.forEach(e=>{const t=r.get(e.element);if(t&&t.length){const n=Yu(t);e.setRealPlayer(n)}}),s.forEach(e=>{e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(let O=0;O<m.length;O++){const e=m[O],t=e.__ng_removed;if(Bd(e,yh),t&&t.hasAnimation)continue;let n=[];if(o.size){let t=o.get(e);t&&t.length&&n.push(...t);let s=this.driver.query(e,Eh,!0);for(let e=0;e<s.length;e++){let t=o.get(s[e]);t&&t.length&&n.push(...t)}}const s=n.filter(e=>!e.destroyed);s.length?Hd(this,e,s):this.processLeaveNode(e)}return m.length=0,T.forEach(e=>{this.players.push(e),e.onDone(()=>{e.destroy();const t=this.players.indexOf(e);this.players.splice(t,1)}),e.play()}),T}elementContainsData(e,t){let n=!1;const s=t.__ng_removed;return s&&s.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}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,n,s,r){let i=[];if(t){const t=this.playersByQueriedElement.get(e);t&&(i=t)}else{const t=this.playersByElement.get(e);if(t){const e=!r||r==Od;t.forEach(t=>{t.queued||(e||t.triggerName==s)&&i.push(t)})}}return(n||s)&&(i=i.filter(e=>!(n&&n!=e.namespaceId||s&&s!=e.triggerName))),i}_beforeAnimationBuild(e,t,n){const s=t.element,r=t.isRemovalTransition?void 0:e,i=t.isRemovalTransition?void 0:t.triggerName;for(const o of t.timelines){const e=o.element,a=e!==s,l=nh(n,e,[]);this._getPreviousPlayers(e,a,r,i,t.toState).forEach(e=>{const t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),l.push(e)})}Dh(s,t.fromStyles)}_buildAnimation(e,t,n,s,r,i){const o=t.triggerName,a=t.element,l=[],c=new Set,u=new Set,h=t.timelines.map(t=>{const h=t.element;c.add(h);const d=h.__ng_removed;if(d&&d.removedBeforeQueried)return new Uu(t.duration,t.delay);const p=h!==a,f=function(e){const t=[];return function e(t,n){for(let s=0;s<t.length;s++){const r=t[s];r instanceof Ku?e(r.players,n):n.push(r)}}(e,t),t}((n.get(h)||xd).map(e=>e.getRealPlayer())).filter(e=>!!e.element&&e.element===h),m=r.get(h),g=i.get(h),_=Ju(0,this._normalizer,0,t.keyframes,m,g),y=this._buildPlayer(t,_,f);if(t.subTimeline&&s&&u.add(h),p){const t=new Vd(e,o,h);t.setRealPlayer(y),l.push(t)}return y});l.forEach(e=>{nh(this.playersByQueriedElement,e.element,[]).push(e),e.onDone(()=>function(e,t,n){let s;if(e instanceof Map){if(s=e.get(t),s){if(s.length){const e=s.indexOf(n);s.splice(e,1)}0==s.length&&e.delete(t)}}else if(s=e[t],s){if(s.length){const e=s.indexOf(n);s.splice(e,1)}0==s.length&&delete e[t]}return s}(this.playersByQueriedElement,e.element,e))}),c.forEach(e=>Ld(e,wh));const d=Yu(h);return d.onDestroy(()=>{c.forEach(e=>Bd(e,wh)),Oh(a,t.toStyles)}),u.forEach(e=>{nh(s,e,[]).push(d)}),d}_buildPlayer(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new Uu(e.duration,e.delay)}}class Vd{constructor(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new Uu,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(t=>{this._queuedCallbacks[t].forEach(n=>Xu(e,t,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){nh(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function Fd(e){return e&&1===e.nodeType}function Rd(e,t){const n=e.style.display;return e.style.display=null!=t?t:"none",n}function Md(e,t,n,s,r){const i=[];n.forEach(e=>i.push(Rd(e)));const o=[];s.forEach((n,s)=>{const i={};n.forEach(e=>{const n=i[e]=t.computeStyle(s,e,r);n&&0!=n.length||(s.__ng_removed=Ad,o.push(s))}),e.set(s,i)});let a=0;return n.forEach(e=>Rd(e,i[a++])),o}function jd(e,t){const n=new Map;if(e.forEach(e=>n.set(e,[])),0==t.length)return n;const s=new Set(t),r=new Map;return t.forEach(e=>{const t=function e(t){if(!t)return 1;let i=r.get(t);if(i)return i;const o=t.parentNode;return i=n.has(o)?o:s.has(o)?1:e(o),r.set(t,i),i}(e);1!==t&&n.get(t).push(e)}),n}function Ld(e,t){if(e.classList)e.classList.add(t);else{let n=e.$$classes;n||(n=e.$$classes={}),n[t]=!0}}function Bd(e,t){if(e.classList)e.classList.remove(t);else{let n=e.$$classes;n&&delete n[t]}}function Hd(e,t,n){Yu(n).onDone(()=>e.processLeaveNode(t))}function qd(e,t,n){const s=n.get(e);if(!s)return!1;let r=t.get(e);return r?s.forEach(e=>r.add(e)):t.set(e,s),n.delete(e),!0}class $d{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._triggerCache={},this.onRemovalComplete=(e,t)=>{},this._transitionEngine=new Pd(e,t,n),this._timelineEngine=new Ed(e,t,n),this._transitionEngine.onRemovalComplete=(e,t)=>this.onRemovalComplete(e,t)}registerTrigger(e,t,n,s,r){const i=e+"-"+s;let o=this._triggerCache[i];if(!o){const e=[],t=Kh(this._driver,r,e);if(e.length)throw new Error(`The animation trigger "${s}" has failed to build due to the following errors:\n - ${e.join("\n - ")}`);o=function(e,t){return new bd(e,t)}(s,t),this._triggerCache[i]=o}this._transitionEngine.registerTrigger(t,s,o)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,n,s){this._transitionEngine.insertNode(e,t,n,s)}onRemove(e,t,n,s){this._transitionEngine.removeNode(e,t,s||!1,n)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,n,s){if("@"==n.charAt(0)){const[e,r]=sh(n);this._timelineEngine.command(e,t,r,s)}else this._transitionEngine.trigger(e,t,n,s)}listen(e,t,n,s,r){if("@"==n.charAt(0)){const[e,s]=sh(n);return this._timelineEngine.listen(e,t,s,r)}return this._transitionEngine.listen(e,t,n,s,r)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function zd(e,t){let n=null,s=null;return Array.isArray(t)&&t.length?(n=Qd(t[0]),t.length>1&&(s=Qd(t[t.length-1]))):t&&(n=Qd(t)),n||s?new Zd(e,n,s):null}let Zd=(()=>{class e{constructor(t,n,s){this._element=t,this._startStyles=n,this._endStyles=s,this._state=0;let r=e.initialStylesByElement.get(t);r||e.initialStylesByElement.set(t,r={}),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&Oh(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Oh(this._element,this._initialStyles),this._endStyles&&(Oh(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(Dh(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Dh(this._element,this._endStyles),this._endStyles=null),Oh(this._element,this._initialStyles),this._state=3)}}return e.initialStylesByElement=new WeakMap,e})();function Qd(e){let t=null;const n=Object.keys(e);for(let s=0;s<n.length;s++){const r=n[s];Wd(r)&&(t=t||{},t[r]=e[r])}return t}function Wd(e){return"display"===e||"position"===e}const Ud="animation",Kd="animationend";class Gd{constructor(e,t,n,s,r,i,o){this._element=e,this._name=t,this._duration=n,this._delay=s,this._easing=r,this._fillMode=i,this._onDoneFn=o,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=e=>this._handleCallback(e)}apply(){!function(e,t){const n=np(e,"").trim();n.length&&(function(e,t){let n=0;for(let s=0;s<e.length;s++)","===e.charAt(s)&&n++}(n),t=`${n}, ${t}`),tp(e,"",t)}(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),ep(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){Yd(this._element,this._name,"paused")}resume(){Yd(this._element,this._name,"running")}setPosition(e){const t=Jd(this._element,this._name);this._position=e*this._duration,tp(this._element,"Delay",`-${this._position}ms`,t)}getPosition(){return this._position}_handleCallback(e){const 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()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),ep(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(e,t){const n=np(e,"").split(","),s=Xd(n,t);s>=0&&(n.splice(s,1),tp(e,"",n.join(",")))}(this._element,this._name))}}function Yd(e,t,n){tp(e,"PlayState",n,Jd(e,t))}function Jd(e,t){const n=np(e,"");return n.indexOf(",")>0?Xd(n.split(","),t):Xd([n],t)}function Xd(e,t){for(let n=0;n<e.length;n++)if(e[n].indexOf(t)>=0)return n;return-1}function ep(e,t,n){n?e.removeEventListener(Kd,t):e.addEventListener(Kd,t)}function tp(e,t,n,s){const r=Ud+t;if(null!=s){const t=e.style[r];if(t.length){const e=t.split(",");e[s]=n,n=e.join(",")}}e.style[r]=n}function np(e,t){return e.style[Ud+t]}class sp{constructor(e,t,n,s,r,i,o,a){this.element=e,this.keyframes=t,this.animationName=n,this._duration=s,this._delay=r,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=i||"linear",this.totalTime=s+r,this._buildStyler()}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(e){this._styler.setPosition(e)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new Gd(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}beforeDestroy(){this.init();const e={};if(this.hasStarted()){const t=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(e[n]=t?this._finalStyles[n]:qh(this.element,n))})}this.currentSnapshot=e}}class rp extends Uu{constructor(e,t){super(),this.element=e,this._startingStyles={},this.__initialized=!1,this._styles=fh(t)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(e=>{this._startingStyles[e]=this.element.style[e]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(e=>this.element.style.setProperty(e,this._styles[e])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(e=>{const t=this._startingStyles[e];t?this.element.style.setProperty(e,t):this.element.style.removeProperty(e)}),this._startingStyles=null,super.destroy())}}class ip{constructor(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}validateStyleProperty(e){return uh(e)}matchesElement(e,t){return hh(e,t)}containsElement(e,t){return dh(e,t)}query(e,t,n){return ph(e,t,n)}computeStyle(e,t,n){return window.getComputedStyle(e)[t]}buildKeyframeElement(e,t,n){n=n.map(e=>fh(e));let s=`@keyframes ${t} {\n`,r="";n.forEach(e=>{r=" ";const t=parseFloat(e.offset);s+=`${r}${100*t}% {\n`,r+=" ",Object.keys(e).forEach(t=>{const n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(s+=`${r}animation-timing-function: ${n};\n`));default:return void(s+=`${r}${t}: ${n};\n`)}}),s+=r+"}\n"}),s+="}\n";const i=document.createElement("style");return i.innerHTML=s,i}animate(e,t,n,s,r,i=[],o){o&&this._notifyFaultyScrubber();const a=i.filter(e=>e instanceof sp),l={};Lh(n,s)&&a.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>l[e]=t[e])});const c=function(e){let t={};return e&&(Array.isArray(e)?e:[e]).forEach(e=>{Object.keys(e).forEach(n=>{"offset"!=n&&"easing"!=n&&(t[n]=e[n])})}),t}(t=Bh(e,t,l));if(0==n)return new rp(e,c);const u="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(e,u,t);document.querySelector("head").appendChild(h);const d=zd(e,t),p=new sp(e,t,u,n,s,r,c,d);return p.onDestroy(()=>{var e;(e=h).parentNode.removeChild(e)}),p}_notifyFaultyScrubber(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}class op{constructor(e,t,n,s){this.element=e,this.keyframes=t,this.options=n,this._specialStyles=s,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=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(e,t,n){return e.animate(t,n)}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(t=>{"offset"!=t&&(e[t]=this._finished?this._finalKeyframe[t]:qh(this.element,t))}),this.currentSnapshot=e}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}class ap{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(lp().toString()),this._cssKeyframesDriver=new ip}validateStyleProperty(e){return uh(e)}matchesElement(e,t){return hh(e,t)}containsElement(e,t){return dh(e,t)}query(e,t,n){return ph(e,t,n)}computeStyle(e,t,n){return window.getComputedStyle(e)[t]}overrideWebAnimationsSupport(e){this._isNativeImpl=e}animate(e,t,n,s,r,i=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,s,r,i);const a={duration:n,delay:s,fill:0==s?"both":"forwards"};r&&(a.easing=r);const l={},c=i.filter(e=>e instanceof op);Lh(n,s)&&c.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>l[e]=t[e])});const u=zd(e,t=Bh(e,t=t.map(e=>Th(e,!1)),l));return new op(e,t,a,u)}}function lp(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}let cp=(()=>{class e extends $u{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:it.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(e)?Zu(e):e;return dp(this._renderer,null,t,"register",[n]),new up(t,this._renderer)}}return e.\u0275fac=function(t){return new(t||e)(Qe(co),Qe(Al))},e.\u0275prov=ae({token:e,factory:e.\u0275fac}),e})();class up extends class{}{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new hp(this._id,e,t||{},this._renderer)}}class hp{constructor(e,t,n,s){this.id=e,this.element=t,this._renderer=s,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(e,t){return this._renderer.listen(this.element,`@@${this.id}:${e}`,t)}_command(e,...t){return dp(this._renderer,this.element,this.id,e,t)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset")}setPosition(e){this._command("setPosition",e)}getPosition(){return 0}}function dp(e,t,n,s,r){return e.setProperty(t,`@@${n}:${s}`,r)}const pp="@",fp="@.disabled";let mp=(()=>{class e{constructor(e,t,n){this.delegate=e,this.engine=t,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(e,t)=>{t&&t.parentNode(e)&&t.removeChild(e.parentNode,e)}}createRenderer(e,t){const n=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let e=this._rendererCache.get(n);return e||(e=new gp("",n,this.engine),this._rendererCache.set(n,e)),e}const s=t.id,r=t.id+"-"+this._currentId;this._currentId++,this.engine.register(r,e);const i=t=>{Array.isArray(t)?t.forEach(i):this.engine.registerTrigger(s,r,e,t.name,t)};return t.data.animation.forEach(i),new _p(this,r,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,n){e>=0&&e<this._microtaskId?this._zone.run(()=>t(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(e=>{const[t,n]=e;t(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,n]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return e.\u0275fac=function(t){return new(t||e)(Qe(co),Qe($d),Qe(Fa))},e.\u0275prov=ae({token:e,factory:e.\u0275fac}),e})();class gp{constructor(e,t,n){this.namespaceId=e,this.delegate=t,this.engine=n,this.destroyNode=this.delegate.destroyNode?e=>t.destroyNode(e):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,n){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,!0)}removeChild(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,n,s){this.delegate.setAttribute(e,t,n,s)}removeAttribute(e,t,n){this.delegate.removeAttribute(e,t,n)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,n,s){this.delegate.setStyle(e,t,n,s)}removeStyle(e,t,n){this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){t.charAt(0)==pp&&t==fp?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,n){return this.delegate.listen(e,t,n)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}class _p extends gp{constructor(e,t,n,s){super(t,n,s),this.factory=e,this.namespaceId=t}setProperty(e,t,n){t.charAt(0)==pp?"."==t.charAt(1)&&t==fp?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)}listen(e,t,n){if(t.charAt(0)==pp){const s=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e);let r=t.substr(1),i="";return r.charAt(0)!=pp&&([r,i]=function(e){const t=e.indexOf(".");return[e.substring(0,t),e.substr(t+1)]}(r)),this.engine.listen(this.namespaceId,s,r,i,e=>{this.factory.scheduleListenerCallback(e._data||-1,n,e)})}return this.delegate.listen(e,t,n)}}let yp=(()=>{class e extends $d{constructor(e,t,n){super(e.body,t,n)}}return e.\u0275fac=function(t){return new(t||e)(Qe(Al),Qe(gh),Qe(dd))},e.\u0275prov=ae({token:e,factory:e.\u0275fac}),e})();const bp=new Fe("AnimationModuleType"),vp=[{provide:gh,useFactory:function(){return"function"==typeof lp()?new ap:new ip}},{provide:bp,useValue:"BrowserAnimations"},{provide:$u,useClass:cp},{provide:dd,useFactory:function(){return new pd}},{provide:$d,useClass:yp},{provide:co,useFactory:function(e,t,n){return new mp(e,t,n)},deps:[Ou,$d,Fa]}];let wp=(()=>{class e{}return e.\u0275mod=pt({type:e}),e.\u0275inj=le({factory:function(t){return new(t||e)},providers:vp,imports:[qu]}),e})();const Ep=new mo("10.2.0"),kp=new Fe("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let Cp,Sp=(()=>{class e{constructor(e,t,n){this._hasDoneGlobalChecks=!1,this._document=n,e._applyBodyHighContrastModeCssClasses(),this._sanityChecks=t,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getDocument(){const e=this._document||document;return"object"==typeof e&&e?e:null}_getWindow(){const e=this._getDocument(),t=(null==e?void 0:e.defaultView)||window;return"object"==typeof t&&t?t:null}_checksAreEnabled(){return hs()&&!this._isTestEnv()}_isTestEnv(){const e=this._getWindow();return e&&(e.__karma__||e.jasmine)}_checkDoctypeIsDefined(){const e=this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype),t=this._getDocument();e&&t&&!t.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){const e=!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme,t=this._getDocument();if(e||!t||!t.body||"function"!=typeof getComputedStyle)return;const n=t.createElement("div");n.classList.add("mat-theme-loaded-marker"),t.body.appendChild(n);const s=getComputedStyle(n);s&&"none"!==s.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),t.body.removeChild(n)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&Ep.full!==fu.full&&console.warn("The Angular Material version ("+Ep.full+") does not match the Angular CDK version ("+fu.full+").\nPlease ensure the versions of these two packages exactly match.")}}return e.\u0275mod=pt({type:e}),e.\u0275inj=le({factory:function(t){return new(t||e)(Qe(pu),Qe(kp,8),Qe(Al,8))},imports:[[Ll],Ll]}),e})();function xp(e){return class extends e{constructor(...e){super(...e),this._disabled=!1}get disabled(){return this._disabled}set disabled(e){this._disabled=rl(e)}}}function Tp(e,t){return class extends e{constructor(...e){super(...e),this.defaultColor=t,this.color=t}get color(){return this._color}set color(e){const t=e||this.defaultColor;t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-"+this._color),t&&this._elementRef.nativeElement.classList.add("mat-"+t),this._color=t)}}}function Ap(e){return class extends e{constructor(...e){super(...e),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=rl(e)}}}function Ip(e,t=0){return class extends e{constructor(...e){super(...e),this._tabIndex=t,this.defaultTabIndex=t}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?il(e):this.defaultTabIndex}}}try{Cp="undefined"!=typeof Intl}catch(rf){Cp=!1}class Op{constructor(e,t,n){this._renderer=e,this.element=t,this.config=n,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Dp={enterDuration:450,exitDuration:400},Np=jl({passive:!0}),Pp=["mousedown","touchstart"],Vp=["mouseup","mouseleave","touchend","touchcancel"];class Fp{constructor(e,t,n,s){this._target=e,this._ngZone=t,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,s.isBrowser&&(this._containerElement=ol(n))}fadeInRipple(e,t,n={}){const s=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=Object.assign(Object.assign({},Dp),n.animation);n.centered&&(e=s.left+s.width/2,t=s.top+s.height/2);const i=n.radius||function(e,t,n){const s=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(s*s+r*r)}(e,t,s),o=e-s.left,a=t-s.top,l=r.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=o-i+"px",c.style.top=a-i+"px",c.style.height=2*i+"px",c.style.width=2*i+"px",null!=n.color&&(c.style.backgroundColor=n.color),c.style.transitionDuration=l+"ms",this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";const u=new Op(this,c,n);return u.state=0,this._activeRipples.add(u),n.persistent||(this._mostRecentTransientRipple=u),this._runTimeoutOutsideZone(()=>{const e=u===this._mostRecentTransientRipple;u.state=1,n.persistent||e&&this._isPointerDown||u.fadeOut()},l),u}fadeOutRipple(e){const t=this._activeRipples.delete(e);if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!t)return;const n=e.element,s=Object.assign(Object.assign({},Dp),e.config.animation);n.style.transitionDuration=s.exitDuration+"ms",n.style.opacity="0",e.state=2,this._runTimeoutOutsideZone(()=>{e.state=3,n.parentNode.removeChild(n)},s.exitDuration)}fadeOutAll(){this._activeRipples.forEach(e=>e.fadeOut())}setupTriggerEvents(e){const t=ol(e);t&&t!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=t,this._registerEvents(Pp))}handleEvent(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Vp),this._pointerUpEventsRegistered=!0)}_onMousedown(e){const t=iu(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))}_onTouchStart(e){if(!this._target.rippleDisabled){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const t=e.changedTouches;for(let e=0;e<t.length;e++)this.fadeInRipple(t[e].clientX,t[e].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._activeRipples.forEach(e=>{!e.config.persistent&&(1===e.state||e.config.terminateOnPointerUp&&0===e.state)&&e.fadeOut()}))}_runTimeoutOutsideZone(e,t=0){this._ngZone.runOutsideAngular(()=>setTimeout(e,t))}_registerEvents(e){this._ngZone.runOutsideAngular(()=>{e.forEach(e=>{this._triggerElement.addEventListener(e,this,Np)})})}_removeTriggerEvents(){this._triggerElement&&(Pp.forEach(e=>{this._triggerElement.removeEventListener(e,this,Np)}),this._pointerUpEventsRegistered&&Vp.forEach(e=>{this._triggerElement.removeEventListener(e,this,Np)}))}}const Rp=new Fe("mat-ripple-global-options");let Mp=(()=>{class e{constructor(e,t,n,s,r){this._elementRef=e,this._animationMode=r,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new Fp(this,t,e,n)}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}get rippleConfig(){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}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,t=0,n){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))}}return e.\u0275fac=function(t){return new(t||e)(Ei(ao),Ei(Fa),Ei(Rl),Ei(Rp,8),Ei(bp,8))},e.\u0275dir=mt({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&Fi("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"]}),e})(),jp=(()=>{class e{}return e.\u0275mod=pt({type:e}),e.\u0275inj=le({factory:function(t){return new(t||e)},imports:[[Sp,Ml],Sp]}),e})();const Lp=["input"],Bp=function(){return{enterDuration:150}},Hp=["*"],qp=new Fe("mat-checkbox-default-options",{providedIn:"root",factory:function(){return{color:"accent",clickAction:"check-indeterminate"}}}),$p=new Fe("mat-checkbox-click-action");let zp=0;const Zp={provide:Gl,useExisting:ve(()=>Kp),multi:!0};class Qp{}class Wp{constructor(e){this._elementRef=e}}const Up=Ip(Tp(Ap(xp(Wp))));let Kp=(()=>{class e extends Up{constructor(e,t,n,s,r,i,o,a){super(e),this._changeDetectorRef=t,this._focusMonitor=n,this._ngZone=s,this._clickAction=i,this._animationMode=o,this._options=a,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++zp,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new Xo,this.indeterminateChange=new Xo,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||{},this._options.color&&(this.color=this.defaultColor=this._options.color),this.tabIndex=parseInt(r)||0,this._clickAction=this._clickAction||this._options.clickAction}get inputId(){return(this.id||this._uniqueId)+"-input"}get required(){return this._required}set required(e){this._required=rl(e)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){const t=rl(e);t!==this.disabled&&(this._disabled=t,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){const t=e!=this._indeterminate;this._indeterminate=rl(e),t&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(e){let t=this._currentCheckState,n=this._elementRef.nativeElement;if(t!==e&&(this._currentAnimationClass.length>0&&n.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(t,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){n.classList.add(this._currentAnimationClass);const e=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{n.classList.remove(e)},1e3)})}}_emitChangeEvent(){const e=new Qp;e.source=this,e.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(e)}toggle(){this.checked=!this.checked}_onInputClick(e){e.stopPropagation(),this.disabled||"noop"===this._clickAction?this.disabled||"noop"!==this._clickAction||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==this._clickAction&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(e="keyboard",t){this._focusMonitor.focusVia(this._inputElement,e,t)}_onInteractionEvent(e){e.stopPropagation()}_getAnimationClassForCheckStateTransition(e,t){if("NoopAnimations"===this._animationMode)return"";let n="";switch(e){case 0:if(1===t)n="unchecked-checked";else{if(3!=t)return"";n="unchecked-indeterminate"}break;case 2:n=1===t?"unchecked-checked":"unchecked-indeterminate";break;case 1:n=2===t?"checked-unchecked":"checked-indeterminate";break;case 3:n=1===t?"indeterminate-checked":"indeterminate-unchecked"}return"mat-checkbox-anim-"+n}_syncIndeterminate(e){const t=this._inputElement;t&&(t.nativeElement.indeterminate=e)}}return e.\u0275fac=function(t){return new(t||e)(Ei(ao),Ei(Yr),Ei(lu),Ei(Fa),("tabindex",function(e,t){const n=e.attrs;if(n){const e=n.length;let s=0;for(;s<e;){const r=n[s];if(In(r))break;if(0===r)s+=2;else if("number"==typeof r)for(s++;s<e&&"string"==typeof n[s];)s++;else{if(r===t)return n[s+1];s+=2}}}return null}(Xt(),"tabindex")),Ei($p,8),Ei(bp,8),Ei(qp,8))},e.\u0275cmp=ct({type:e,selectors:[["mat-checkbox"]],viewQuery:function(e,t){var n;1&e&&(ha(Lp,!0),ha(Mp,!0)),2&e&&(ua(n=da())&&(t._inputElement=n.first),ua(n=da())&&(t.ripple=n.first))},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(e,t){2&e&&($i("id",t.id),vi("tabindex",null),Fi("mat-checkbox-indeterminate",t.indeterminate)("mat-checkbox-checked",t.checked)("mat-checkbox-disabled",t.disabled)("mat-checkbox-label-before","before"==t.labelPosition)("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",ariaDescribedby:["aria-describedby","ariaDescribedby"],value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[so([Zp]),Zi],ngContentSelectors:Hp,decls:17,vars:20,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(e,t){if(1&e&&(function(e){const t=Yt()[16][6];if(!t.projection){const e=t.projection=et(1,null),n=e.slice();let s=t.child;for(;null!==s;){const t=0;null!==t&&(n[t]?n[t].projectionNext=s:e[t]=s,n[t]=s),s=s.next}}}(),Si(0,"label",0,1),Si(2,"div",2),Si(3,"input",3,4),Ii("change",(function(e){return t._onInteractionEvent(e)}))("click",(function(e){return t._onInputClick(e)})),xi(),Si(5,"div",5),Ti(6,"div",6),xi(),Ti(7,"div",7),Si(8,"div",8),Kt.lFrame.currentNamespace=Vt,Si(9,"svg",9),Ti(10,"path",10),xi(),Kt.lFrame.currentNamespace=null,Ti(11,"div",11),xi(),xi(),Si(12,"span",12,13),Ii("cdkObserveContent",(function(){return t._onLabelTextChange()})),Si(14,"span",14),Bi(15,"\xa0"),xi(),function(e,t=0,n){const s=Yt(),r=Jt(),i=qs(r,s[6],e,1,null,n||null);null===i.projection&&(i.projection=t),nn(),function(e,t,n){Br(t[11],0,t,n,Or(e,n,t),Fr(n.parent||t[6],t))}(r,s,i)}(16),xi(),xi()),2&e){const e=wi(1),n=wi(13);vi("for",t.inputId),Ds(2),Fi("mat-checkbox-inner-container-no-side-margin",!n.textContent||!n.textContent.trim()),Ds(1),ki("id",t.inputId)("required",t.required)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex),vi("value",t.value)("name",t.name)("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby)("aria-checked",t._getAriaChecked())("aria-describedby",t.ariaDescribedby),Ds(2),ki("matRippleTrigger",e)("matRippleDisabled",t._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",function(e,t,n){const s=function(){const e=Kt.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}()+e,r=Yt();return r[s]===xs?function(e,t,n){return e[t]=n}(r,s,n?t.call(n):t()):function(e,t){return e[t]}(r,s)}(19,Bp))}},directives:[Mp,su],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-frame{border-style:dotted}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),e})(),Gp=(()=>{class e{}return e.\u0275mod=pt({type:e}),e.\u0275inj=le({factory:function(t){return new(t||e)}}),e})(),Yp=(()=>{class e{}return e.\u0275mod=pt({type:e}),e.\u0275inj=le({factory:function(t){return new(t||e)},imports:[[jp,Sp,ru,Gp],Sp,Gp]}),e})(),Jp=(()=>{class e{constructor(e){this._document=e}ngOnDestroy(){const e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container",t=this._document.querySelectorAll("."+e);if(null==t?void 0:t.length)this._containerElement=t[0];else{const t=this._document.createElement("div");t.classList.add(e),this._document.body.appendChild(t),this._containerElement=t}}}return e.\u0275fac=function(t){return new(t||e)(Qe(Al))},e.\u0275prov=ae({token:e,factory:e.\u0275fac}),e})(),Xp=(()=>{class e{constructor(){this.errorStateMatcher={isErrorState:()=>!!this.error||!this.valueCanBeChanged&&this.formControl.dirty},this.formControl=new Hc(""),this.onEnter$=new k,this.valueCanBeChanged=!1}ngOnInit(){var e;this.onEnter$.pipe(Yc(100)).subscribe(()=>{var e;this.shouldValueChange(this.formControl.value)&&(null===(e=this.onEnter)||void 0===e||e.call(this,{value:this.modifyValueBeforeChange(this.formControl.value)}))}),this.valueChanges$=this.formControl.valueChanges.pipe((e=e=>(this.valueCanBeChanged=this.shouldValueChange(e),this.valueCanBeChanged),function(t){return t.lift(new pl(e,undefined))})).subscribe(e=>{this.updateOnBlur||this.triggerValueChange(e)})}triggerValueChange(e){this.onValueChange&&this.onValueChange({value:this.modifyValueBeforeChange(e)})}onEnterKeydown(e){this.onEnter$.next()}onBlur(){this.updateOnBlur&&this.shouldValueChange(this.formControl.value)&&this.triggerValueChange(this.formControl.value)}ngOnChanges(e){var t;this.disabled?this.formControl.disable({emitEvent:!1}):this.formControl.enable({emitEvent:!1}),e.value&&!(null===(t=this.input)||void 0===t?void 0:t.focused)&&this.formControl.setValue(this.value,{emitEvent:!1})}modifyValueBeforeChange(e){return e}shouldValueChange(e){return!0}ngOnDestroy(){this.valueChanges$&&this.valueChanges$.unsubscribe(),this.onEnter$&&this.onEnter$.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ae({token:e,factory:e.\u0275fac}),e})();var ef=n("MIfU");let tf=(()=>{class e extends Xp{constructor(){super(...arguments),this.id=Object(ef.generate)()}ngOnChanges(e){this.updateOnBlur=!1,super.ngOnChanges(e)}}return e.\u0275fac=function(t){return nf(t||e)},e.\u0275cmp=ct({type:e,selectors:[["drayman-checkbox-internal"]],inputs:{onValueChange:"onValueChange",value:"value",label:"label",disabled:"disabled",placeholder:"placeholder",helpText:"helpText",error:"error",updateOnBlur:"updateOnBlur"},features:[Zi,It],decls:2,vars:3,consts:[[3,"id","formControl"]],template:function(e,t){1&e&&(Si(0,"mat-checkbox",0),Bi(1),xi()),2&e&&(ki("id",t.id)("formControl",t.formControl),Ds(1),Hi(t.label))},directives:[Kp,rc,Qc],styles:[""]}),e})();const nf=rs(tf);let sf=(()=>{class e{constructor(e){this.injector=e}ngDoBootstrap(){const e=function(e,t){const n=function(e,t){return t.get(oo).resolveComponentFactory(e).inputs}(e,t.injector),s=t.strategyFactory||new Zl(e,t.injector),r=function(e){const t={};return e.forEach(({propName:e,templateName:n})=>{var s;t[(s=n,s.replace(/[A-Z]/g,e=>"-"+e.toLowerCase()))]=e}),t}(n);class i extends Wl{constructor(e){super(),this.injector=e}get ngElementStrategy(){if(!this._ngElementStrategy){const e=this._ngElementStrategy=s.create(this.injector||t.injector),r=n.filter(({propName:e})=>this.hasOwnProperty(e)).map(({propName:e})=>[e,this[e]]);this instanceof i?r.forEach(([e])=>delete this[e]):Ul(n,this),r.forEach(([t,n])=>e.setInputValue(t,n))}return this._ngElementStrategy}attributeChangedCallback(e,t,n,s){this.ngElementStrategy.setInputValue(r[e],n)}connectedCallback(){let e=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),e=!0),this.ngElementStrategy.connect(this),e||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(e=>{const t=function(e,t,n){if("function"!=typeof CustomEvent){const s=e.createEvent("CustomEvent");return s.initCustomEvent(t,!1,!1,n),s}return new CustomEvent(t,{bubbles:!1,cancelable:!1,detail:n})}(this.ownerDocument,e.name,e.value);this.dispatchEvent(t)})}}return i.observedAttributes=Object.keys(r),Object.defineProperty(i.prototype,"ngElementStrategy",{enumerable:!0}),Ul(n,i.prototype),i}(tf,{injector:this.injector});customElements.define("drayman-checkbox",e)}}return e.\u0275mod=pt({type:e}),e.\u0275inj=le({factory:function(t){return new(t||e)(Qe(pi))},providers:[{provide:Hl,useClass:Jp}],imports:[[qu,wp,Yp,Gc,Kc]]}),e})();(function(){if(us)throw new Error("Cannot enable prod mode after platform setup.");cs=!1})(),Bu().bootstrapModule(sf).catch(e=>console.error(e))},zn8P:function(e,t){function n(e){return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="zn8P"}});