@drayman/elements 1.74.0 → 1.75.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.
package/dist/menu/main.js CHANGED
@@ -1 +1 @@
1
- (()=>{"use strict";function Kr(n){return"function"==typeof n}let Fl=!1;const Ut={Promise:void 0,set useDeprecatedSynchronousErrorHandling(n){if(n){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else Fl&&console.log("RxJS: Back to a better error behavior. Thank you. <3");Fl=n},get useDeprecatedSynchronousErrorHandling(){return Fl}};function Li(n){setTimeout(()=>{throw n},0)}const po={closed:!0,next(n){},error(n){if(Ut.useDeprecatedSynchronousErrorHandling)throw n;Li(n)},complete(){}},Bi=Array.isArray||(n=>n&&"number"==typeof n.length);function Nl(n){return null!==n&&"object"==typeof n}const mo=(()=>{function n(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((t,i)=>`${i+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return n.prototype=Object.create(Error.prototype),n})();class Z{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:t,_ctorUnsubscribe:i,_unsubscribe:r,_subscriptions:s}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,t instanceof Z)t.remove(this);else if(null!==t)for(let o=0;o<t.length;++o)t[o].remove(this);if(Kr(r)){i&&(this._unsubscribe=void 0);try{r.call(this)}catch(o){e=o instanceof mo?ef(o.errors):[o]}}if(Bi(s)){let o=-1,a=s.length;for(;++o<a;){const l=s[o];if(Nl(l))try{l.unsubscribe()}catch(c){e=e||[],c instanceof mo?e=e.concat(ef(c.errors)):e.push(c)}}}if(e)throw new mo(e)}add(e){let t=e;if(!e)return Z.EMPTY;switch(typeof e){case"function":t=new Z(e);case"object":if(t===this||t.closed||"function"!=typeof t.unsubscribe)return t;if(this.closed)return t.unsubscribe(),t;if(!(t instanceof Z)){const s=t;t=new Z,t._subscriptions=[s]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}let{_parentOrParents:i}=t;if(null===i)t._parentOrParents=this;else if(i instanceof Z){if(i===this)return t;t._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return t;i.push(this)}const r=this._subscriptions;return null===r?this._subscriptions=[t]:r.push(t),t}remove(e){const t=this._subscriptions;if(t){const i=t.indexOf(e);-1!==i&&t.splice(i,1)}}}var n;function ef(n){return n.reduce((e,t)=>e.concat(t instanceof mo?t.errors:t),[])}Z.EMPTY=((n=new Z).closed=!0,n);const go="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class he extends Z{constructor(e,t,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=po;break;case 1:if(!e){this.destination=po;break}if("object"==typeof e){e instanceof he?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new tf(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new tf(this,e,t,i)}}[go](){return this}static create(e,t,i){const r=new he(e,t,i);return r.syncErrorThrowable=!1,r}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 tf extends he{constructor(e,t,i,r){super(),this._parentSubscriber=e;let s,o=this;Kr(t)?s=t:t&&(s=t.next,i=t.error,r=t.complete,t!==po&&(o=Object.create(t),Kr(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=s,this._error=i,this._complete=r}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;Ut.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:i}=Ut;if(this._error)i&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)i?(t.syncErrorValue=e,t.syncErrorThrown=!0):Li(e),this.unsubscribe();else{if(this.unsubscribe(),i)throw e;Li(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);Ut.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(i){if(this.unsubscribe(),Ut.useDeprecatedSynchronousErrorHandling)throw i;Li(i)}}__tryOrSetError(e,t,i){if(!Ut.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,i)}catch(r){return Ut.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(Li(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const Xr="function"==typeof Symbol&&Symbol.observable||"@@observable";function nf(n){return n}let le=(()=>{class n{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(t){const i=new n;return i.source=this,i.operator=t,i}subscribe(t,i,r){const{operator:s}=this,o=function OE(n,e,t){if(n){if(n instanceof he)return n;if(n[go])return n[go]()}return n||e||t?new he(n,e,t):new he(po)}(t,i,r);if(o.add(s?s.call(o,this.source):this.source||Ut.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),Ut.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o}_trySubscribe(t){try{return this._subscribe(t)}catch(i){Ut.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=i),function AE(n){for(;n;){const{closed:e,destination:t,isStopped:i}=n;if(e||i)return!1;n=t&&t instanceof he?t:null}return!0}(t)?t.error(i):console.warn(i)}}forEach(t,i){return new(i=sf(i))((r,s)=>{let o;o=this.subscribe(a=>{try{t(a)}catch(l){s(l),o&&o.unsubscribe()}},s,r)})}_subscribe(t){const{source:i}=this;return i&&i.subscribe(t)}[Xr](){return this}pipe(...t){return 0===t.length?this:function rf(n){return 0===n.length?nf:1===n.length?n[0]:function(t){return n.reduce((i,r)=>r(i),t)}}(t)(this)}toPromise(t){return new(t=sf(t))((i,r)=>{let s;this.subscribe(o=>s=o,o=>r(o),()=>i(s))})}}return n.create=e=>new n(e),n})();function sf(n){if(n||(n=Ut.Promise||Promise),!n)throw new Error("no Promise impl found");return n}const li=(()=>{function n(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return n.prototype=Object.create(Error.prototype),n})();class af extends Z{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 i=t.indexOf(this.subscriber);-1!==i&&t.splice(i,1)}}class lf extends he{constructor(e){super(e),this.destination=e}}let de=(()=>{class n extends le{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[go](){return new lf(this)}lift(t){const i=new cf(this,this);return i.operator=t,i}next(t){if(this.closed)throw new li;if(!this.isStopped){const{observers:i}=this,r=i.length,s=i.slice();for(let o=0;o<r;o++)s[o].next(t)}}error(t){if(this.closed)throw new li;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:i}=this,r=i.length,s=i.slice();for(let o=0;o<r;o++)s[o].error(t);this.observers.length=0}complete(){if(this.closed)throw new li;this.isStopped=!0;const{observers:t}=this,i=t.length,r=t.slice();for(let s=0;s<i;s++)r[s].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(t){if(this.closed)throw new li;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new li;return this.hasError?(t.error(this.thrownError),Z.EMPTY):this.isStopped?(t.complete(),Z.EMPTY):(this.observers.push(t),new af(this,t))}asObservable(){const t=new le;return t.source=this,t}}return n.create=(e,t)=>new cf(e,t),n})();class cf extends de{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):Z.EMPTY}}function Vi(n){return n&&"function"==typeof n.schedule}function Ve(n,e){return function(i){if("function"!=typeof n)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new RE(n,e))}}class RE{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new kE(e,this.project,this.thisArg))}}class kE extends he{constructor(e,t,i){super(e),this.project=t,this.count=0,this.thisArg=i||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(t)}}const uf=n=>e=>{for(let t=0,i=n.length;t<i&&!e.closed;t++)e.next(n[t]);e.complete()},_o=function FE(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),df=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function hf(n){return!!n&&"function"!=typeof n.subscribe&&"function"==typeof n.then}const Ll=n=>{if(n&&"function"==typeof n[Xr])return(n=>e=>{const t=n[Xr]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)})(n);if(df(n))return uf(n);if(hf(n))return(n=>e=>(n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,Li),e))(n);if(n&&"function"==typeof n[_o])return(n=>e=>{const t=n[_o]();for(;;){let i;try{i=t.next()}catch(r){return e.error(r),e}if(i.done){e.complete();break}if(e.next(i.value),e.closed)break}return"function"==typeof t.return&&e.add(()=>{t.return&&t.return()}),e})(n);{const t=`You provided ${Nl(n)?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(t)}};function Bl(n,e){return new le(t=>{const i=new Z;let r=0;return i.add(e.schedule(function(){r!==n.length?(t.next(n[r++]),t.closed||i.add(this.schedule())):t.complete()})),i})}function Vl(n,e){return e?function UE(n,e){if(null!=n){if(function jE(n){return n&&"function"==typeof n[Xr]}(n))return function BE(n,e){return new le(t=>{const i=new Z;return i.add(e.schedule(()=>{const r=n[Xr]();i.add(r.subscribe({next(s){i.add(e.schedule(()=>t.next(s)))},error(s){i.add(e.schedule(()=>t.error(s)))},complete(){i.add(e.schedule(()=>t.complete()))}}))})),i})}(n,e);if(hf(n))return function VE(n,e){return new le(t=>{const i=new Z;return i.add(e.schedule(()=>n.then(r=>{i.add(e.schedule(()=>{t.next(r),i.add(e.schedule(()=>t.complete()))}))},r=>{i.add(e.schedule(()=>t.error(r)))}))),i})}(n,e);if(df(n))return Bl(n,e);if(function $E(n){return n&&"function"==typeof n[_o]}(n)||"string"==typeof n)return function HE(n,e){if(!n)throw new Error("Iterable cannot be null");return new le(t=>{const i=new Z;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(e.schedule(()=>{r=n[_o](),i.add(e.schedule(function(){if(t.closed)return;let s,o;try{const a=r.next();s=a.value,o=a.done}catch(a){return void t.error(a)}o?t.complete():(t.next(s),this.schedule())}))})),i})}(n,e)}throw new TypeError((null!==n&&typeof n||n)+" is not observable")}(n,e):n instanceof le?n:new le(Ll(n))}class Zr extends he{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 Qr extends he{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function Jr(n,e){if(!e.closed)return n instanceof le?n.subscribe(e):Ll(n)(e)}function yo(n,e,t=Number.POSITIVE_INFINITY){return"function"==typeof e?i=>i.pipe(yo((r,s)=>Vl(n(r,s)).pipe(Ve((o,a)=>e(r,o,s,a))),t)):("number"==typeof e&&(t=e),i=>i.lift(new zE(n,t)))}class zE{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new WE(e,this.project,this.concurrent))}}class WE extends Qr{constructor(e,t,i=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=i,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 i=this.index++;try{t=this.project(e,i)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(t)}_innerSub(e){const t=new Zr(this),i=this.destination;i.add(t);const r=Jr(e,t);r!==t&&i.add(r)}_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 ff(n=Number.POSITIVE_INFINITY){return yo(nf,n)}function Hl(n,e){return e?Bl(n,e):new le(uf(n))}function Hi(...n){let e=Number.POSITIVE_INFINITY,t=null,i=n[n.length-1];return Vi(i)?(t=n.pop(),n.length>1&&"number"==typeof n[n.length-1]&&(e=n.pop())):"number"==typeof i&&(e=n.pop()),null===t&&1===n.length&&n[0]instanceof le?n[0]:ff(e)(Hl(n,t))}function pf(){return function(e){return e.lift(new GE(e))}}class GE{constructor(e){this.connectable=e}call(e,t){const{connectable:i}=this;i._refCount++;const r=new qE(e,i),s=t.subscribe(r);return r.closed||(r.connection=i.connect()),s}}class qE extends he{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:i}=this,r=e._connection;this.connection=null,r&&(!i||r===i)&&r.unsubscribe()}}class YE extends le{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 Z,e.add(this.source.subscribe(new XE(this.getSubject(),this))),e.closed&&(this._connection=null,e=Z.EMPTY)),e}refCount(){return pf()(this)}}const KE=(()=>{const n=YE.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:n._subscribe},_isComplete:{value:n._isComplete,writable:!0},getSubject:{value:n.getSubject},connect:{value:n.connect},refCount:{value:n.refCount}}})();class XE extends lf{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()}}}class JE{constructor(e,t){this.subjectFactory=e,this.selector=t}call(e,t){const{selector:i}=this,r=this.subjectFactory(),s=i(r).subscribe(e);return s.add(t.subscribe(r)),s}}function eD(){return new de}function mf(){return n=>pf()(function QE(n,e){return function(i){let r;if(r="function"==typeof n?n:function(){return n},"function"==typeof e)return i.lift(new JE(r,e));const s=Object.create(i,KE);return s.source=i,s.subjectFactory=r,s}}(eD)(n))}function oe(n){for(let e in n)if(n[e]===oe)return e;throw Error("Could not find renamed property on target object.")}function jl(n,e){for(const t in e)e.hasOwnProperty(t)&&!n.hasOwnProperty(t)&&(n[t]=e[t])}function te(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(te).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const e=n.toString();if(null==e)return""+e;const t=e.indexOf("\n");return-1===t?e:e.substring(0,t)}function $l(n,e){return null==n||""===n?null===e?"":e:null==e||""===e?n:n+" "+e}const tD=oe({__forward_ref__:oe});function Ul(n){return n.__forward_ref__=Ul,n.toString=function(){return te(this())},n}function $(n){return gf(n)?n():n}function gf(n){return"function"==typeof n&&n.hasOwnProperty(tD)&&n.__forward_ref__===Ul}class S extends Error{constructor(e,t){super(function zl(n,e){return`NG0${Math.abs(n)}${e?": "+e:""}`}(e,t)),this.code=e}}function N(n){return"string"==typeof n?n:null==n?"":String(n)}function Ue(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():N(n)}function vo(n,e){const t=e?` in ${e}`:"";throw new S(-201,`No provider for ${Ue(n)} found${t}`)}function ft(n,e){null==n&&function ne(n,e,t,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${t} ${i} ${e} <=Actual]`))}(e,n,null,"!=")}function x(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function fe(n){return{providers:n.providers||[],imports:n.imports||[]}}function Wl(n){return _f(n,bo)||_f(n,vf)}function _f(n,e){return n.hasOwnProperty(e)?n[e]:null}function yf(n){return n&&(n.hasOwnProperty(Gl)||n.hasOwnProperty(lD))?n[Gl]:null}const bo=oe({\u0275prov:oe}),Gl=oe({\u0275inj:oe}),vf=oe({ngInjectableDef:oe}),lD=oe({ngInjectorDef:oe});var V=(()=>((V=V||{})[V.Default=0]="Default",V[V.Host=1]="Host",V[V.Self=2]="Self",V[V.SkipSelf=4]="SkipSelf",V[V.Optional=8]="Optional",V))();let ql;function Hn(n){const e=ql;return ql=n,e}function bf(n,e,t){const i=Wl(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:t&V.Optional?null:void 0!==e?e:void vo(te(n),"Injector")}function jn(n){return{toString:n}.toString()}var zt=(()=>((zt=zt||{})[zt.OnPush=0]="OnPush",zt[zt.Default=1]="Default",zt))(),Wt=(()=>(function(n){n[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom"}(Wt||(Wt={})),Wt))();const uD="undefined"!=typeof globalThis&&globalThis,dD="undefined"!=typeof window&&window,hD="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,se=uD||"undefined"!=typeof global&&global||dD||hD,ji={},ae=[],wo=oe({\u0275cmp:oe}),Yl=oe({\u0275dir:oe}),Kl=oe({\u0275pipe:oe}),wf=oe({\u0275mod:oe}),Mn=oe({\u0275fac:oe}),es=oe({__NG_ELEMENT_ID__:oe});let fD=0;function Gt(n){return jn(()=>{const t={},i={type:n.type,providersResolver:null,decls:n.decls,vars:n.vars,factory:null,template:n.template||null,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===zt.OnPush,directiveDefs:null,pipeDefs:null,selectors:n.selectors||ae,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||Wt.Emulated,id:"c",styles:n.styles||ae,_:null,setInput:null,schemas:n.schemas||null,tView:null},r=n.directives,s=n.features,o=n.pipes;return i.id+=fD++,i.inputs=Sf(n.inputs,t),i.outputs=Sf(n.outputs),s&&s.forEach(a=>a(i)),i.directiveDefs=r?()=>("function"==typeof r?r():r).map(Ef):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map(Df):null,i})}function Ef(n){return ze(n)||function $n(n){return n[Yl]||null}(n)}function Df(n){return function ci(n){return n[Kl]||null}(n)}const Cf={};function ge(n){return jn(()=>{const e={type:n.type,bootstrap:n.bootstrap||ae,declarations:n.declarations||ae,imports:n.imports||ae,exports:n.exports||ae,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null};return null!=n.id&&(Cf[n.id]=n.type),e})}function Sf(n,e){if(null==n)return ji;const t={};for(const i in n)if(n.hasOwnProperty(i)){let r=n[i],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),t[r]=i,e&&(e[r]=s)}return t}const Ce=Gt;function at(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,onDestroy:n.type.prototype.ngOnDestroy||null}}function ze(n){return n[wo]||null}function Ot(n,e){const t=n[wf]||null;if(!t&&!0===e)throw new Error(`Type ${te(n)} does not have '\u0275mod' property.`);return t}const j=11;function ln(n){return Array.isArray(n)&&"object"==typeof n[1]}function Yt(n){return Array.isArray(n)&&!0===n[1]}function Ql(n){return 0!=(8&n.flags)}function So(n){return 2==(2&n.flags)}function Mo(n){return 1==(1&n.flags)}function Kt(n){return null!==n.template}function vD(n){return 0!=(512&n[2])}function fi(n,e){return n.hasOwnProperty(Mn)?n[Mn]:null}class Tf{constructor(e,t,i){this.previousValue=e,this.currentValue=t,this.firstChange=i}isFirstChange(){return this.firstChange}}function Gi(){return If}function If(n){return n.type.prototype.ngOnChanges&&(n.setInput=DD),ED}function ED(){const n=Af(this),e=null==n?void 0:n.current;if(e){const t=n.previous;if(t===ji)n.previous=e;else for(let i in e)t[i]=e[i];n.current=null,this.ngOnChanges(e)}}function DD(n,e,t,i){const r=Af(n)||function CD(n,e){return n[xf]=e}(n,{previous:ji,current:null}),s=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[t],l=o[a];s[a]=new Tf(l&&l.currentValue,e,o===ji),n[i]=e}Gi.ngInherit=!0;const xf="__ngSimpleChanges__";function Af(n){return n[xf]||null}let ic;function rc(){return void 0!==ic?ic:"undefined"!=typeof document?document:void 0}function Ee(n){return!!n.listen}const Of={createRenderer:(n,e)=>rc()};function Te(n){for(;Array.isArray(n);)n=n[0];return n}function To(n,e){return Te(e[n])}function mt(n,e){return Te(e[n.index])}function sc(n,e){return n.data[e]}function qi(n,e){return n[e]}function gt(n,e){const t=e[n];return ln(t)?t:t[0]}function Rf(n){return 4==(4&n[2])}function oc(n){return 128==(128&n[2])}function Un(n,e){return null==e?null:n[e]}function kf(n){n[18]=0}function ac(n,e){n[5]+=e;let t=n,i=n[3];for(;null!==i&&(1===e&&1===t[5]||-1===e&&0===t[5]);)i[5]+=e,t=i,i=i[3]}const L={lFrame:$f(null),bindingsEnabled:!0};function Ff(){return L.bindingsEnabled}function b(){return L.lFrame.lView}function K(){return L.lFrame.tView}function Ze(n){return L.lFrame.contextLView=n,n[8]}function ke(){let n=Nf();for(;null!==n&&64===n.type;)n=n.parent;return n}function Nf(){return L.lFrame.currentTNode}function cn(n,e){const t=L.lFrame;t.currentTNode=n,t.isParent=e}function lc(){return L.lFrame.isParent}function cc(){L.lFrame.isParent=!1}function Yi(){return L.lFrame.bindingIndex++}function In(n){const e=L.lFrame,t=e.bindingIndex;return e.bindingIndex=e.bindingIndex+n,t}function jD(n,e){const t=L.lFrame;t.bindingIndex=t.bindingRootIndex=n,uc(e)}function uc(n){L.lFrame.currentDirectiveIndex=n}function Vf(){return L.lFrame.currentQueryIndex}function hc(n){L.lFrame.currentQueryIndex=n}function UD(n){const e=n[1];return 2===e.type?e.declTNode:1===e.type?n[6]:null}function Hf(n,e,t){if(t&V.SkipSelf){let r=e,s=n;for(;!(r=r.parent,null!==r||t&V.Host||(r=UD(s),null===r||(s=s[15],10&r.type))););if(null===r)return!1;e=r,n=s}const i=L.lFrame=jf();return i.currentTNode=e,i.lView=n,!0}function xo(n){const e=jf(),t=n[1];L.lFrame=e,e.currentTNode=t.firstChild,e.lView=n,e.tView=t,e.contextLView=n,e.bindingIndex=t.bindingStartIndex,e.inI18n=!1}function jf(){const n=L.lFrame,e=null===n?null:n.child;return null===e?$f(n):e}function $f(n){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:n,child:null,inI18n:!1};return null!==n&&(n.child=e),e}function Uf(){const n=L.lFrame;return L.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const zf=Uf;function Ao(){const n=Uf();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function Je(){return L.lFrame.selectedIndex}function zn(n){L.lFrame.selectedIndex=n}function _e(){const n=L.lFrame;return sc(n.tView,n.selectedIndex)}function Oo(n,e){for(let t=e.directiveStart,i=e.directiveEnd;t<i;t++){const s=n.data[t].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:u}=s;o&&(n.contentHooks||(n.contentHooks=[])).push(-t,o),a&&((n.contentHooks||(n.contentHooks=[])).push(t,a),(n.contentCheckHooks||(n.contentCheckHooks=[])).push(t,a)),l&&(n.viewHooks||(n.viewHooks=[])).push(-t,l),c&&((n.viewHooks||(n.viewHooks=[])).push(t,c),(n.viewCheckHooks||(n.viewCheckHooks=[])).push(t,c)),null!=u&&(n.destroyHooks||(n.destroyHooks=[])).push(t,u)}}function Ro(n,e,t){Gf(n,e,3,t)}function ko(n,e,t,i){(3&n[2])===t&&Gf(n,e,t,i)}function fc(n,e){let t=n[2];(3&t)===e&&(t&=2047,t+=1,n[2]=t)}function Gf(n,e,t,i){const s=null!=i?i:-1,o=e.length-1;let a=0;for(let l=void 0!==i?65535&n[18]:0;l<o;l++)if("number"==typeof e[l+1]){if(a=e[l],null!=i&&a>=i)break}else e[l]<0&&(n[18]+=65536),(a<s||-1==s)&&(ZD(n,t,e,l),n[18]=(4294901760&n[18])+l+2),l++}function ZD(n,e,t,i){const r=t[i]<0,s=t[i+1],a=n[r?-t[i]:t[i]];if(r){if(n[2]>>11<n[18]>>16&&(3&n[2])===e){n[2]+=2048;try{s.call(a)}finally{}}}else try{s.call(a)}finally{}}class ss{constructor(e,t,i){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=i}}function Po(n,e,t){const i=Ee(n);let r=0;for(;r<t.length;){const s=t[r];if("number"==typeof s){if(0!==s)break;r++;const o=t[r++],a=t[r++],l=t[r++];i?n.setAttribute(e,a,l,o):e.setAttributeNS(o,a,l)}else{const o=s,a=t[++r];mc(o)?i&&n.setProperty(e,o,a):i?n.setAttribute(e,o,a):e.setAttribute(o,a),r++}}return r}function qf(n){return 3===n||4===n||6===n}function mc(n){return 64===n.charCodeAt(0)}function Fo(n,e){if(null!==e&&0!==e.length)if(null===n||0===n.length)n=e.slice();else{let t=-1;for(let i=0;i<e.length;i++){const r=e[i];"number"==typeof r?t=r:0===t||Yf(n,t,r,null,-1===t||2===t?e[++i]:null)}}return n}function Yf(n,e,t,i,r){let s=0,o=n.length;if(-1===e)o=-1;else for(;s<n.length;){const a=n[s++];if("number"==typeof a){if(a===e){o=-1;break}if(a>e){o=s-1;break}}}for(;s<n.length;){const a=n[s];if("number"==typeof a)break;if(a===t){if(null===i)return void(null!==r&&(n[s+1]=r));if(i===n[s+1])return void(n[s+2]=r)}s++,null!==i&&s++,null!==r&&s++}-1!==o&&(n.splice(o,0,e),s=o+1),n.splice(s++,0,t),null!==i&&n.splice(s++,0,i),null!==r&&n.splice(s++,0,r)}function Kf(n){return-1!==n}function Ki(n){return 32767&n}function Xi(n,e){let t=function nC(n){return n>>16}(n),i=e;for(;t>0;)i=i[15],t--;return i}let gc=!0;function No(n){const e=gc;return gc=n,e}let iC=0;function as(n,e){const t=yc(n,e);if(-1!==t)return t;const i=e[1];i.firstCreatePass&&(n.injectorIndex=e.length,_c(i.data,n),_c(e,null),_c(i.blueprint,null));const r=Lo(n,e),s=n.injectorIndex;if(Kf(r)){const o=Ki(r),a=Xi(r,e),l=a[1].data;for(let c=0;c<8;c++)e[s+c]=a[o+c]|l[o+c]}return e[s+8]=r,s}function _c(n,e){n.push(0,0,0,0,0,0,0,0,e)}function yc(n,e){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===e[n.injectorIndex+8]?-1:n.injectorIndex}function Lo(n,e){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let t=0,i=null,r=e;for(;null!==r;){const s=r[1],o=s.type;if(i=2===o?s.declTNode:1===o?r[6]:null,null===i)return-1;if(t++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|t<<16}return-1}function Bo(n,e,t){!function rC(n,e,t){let i;"string"==typeof t?i=t.charCodeAt(0)||0:t.hasOwnProperty(es)&&(i=t[es]),null==i&&(i=t[es]=iC++);const r=255&i;e.data[n+(r>>5)]|=1<<r}(n,e,t)}function Qf(n,e,t){if(t&V.Optional)return n;vo(e,"NodeInjector")}function Jf(n,e,t,i){if(t&V.Optional&&void 0===i&&(i=null),0==(t&(V.Self|V.Host))){const r=n[9],s=Hn(void 0);try{return r?r.get(e,i,t&V.Optional):bf(e,i,t&V.Optional)}finally{Hn(s)}}return Qf(i,e,t)}function ep(n,e,t,i=V.Default,r){if(null!==n){const s=function lC(n){if("string"==typeof n)return n.charCodeAt(0)||0;const e=n.hasOwnProperty(es)?n[es]:void 0;return"number"==typeof e?e>=0?255&e:oC:e}(t);if("function"==typeof s){if(!Hf(e,n,i))return i&V.Host?Qf(r,t,i):Jf(e,t,i,r);try{const o=s(i);if(null!=o||i&V.Optional)return o;vo(t)}finally{zf()}}else if("number"==typeof s){let o=null,a=yc(n,e),l=-1,c=i&V.Host?e[16][6]:null;for((-1===a||i&V.SkipSelf)&&(l=-1===a?Lo(n,e):e[a+8],-1!==l&&ip(i,!1)?(o=e[1],a=Ki(l),e=Xi(l,e)):a=-1);-1!==a;){const u=e[1];if(np(s,a,u.data)){const d=aC(a,e,t,o,i,c);if(d!==tp)return d}l=e[a+8],-1!==l&&ip(i,e[1].data[a+8]===c)&&np(s,a,e)?(o=u,a=Ki(l),e=Xi(l,e)):a=-1}}}return Jf(e,t,i,r)}const tp={};function oC(){return new Zi(ke(),b())}function aC(n,e,t,i,r,s){const o=e[1],a=o.data[n+8],u=Vo(a,o,t,null==i?So(a)&&gc:i!=o&&0!=(3&a.type),r&V.Host&&s===a);return null!==u?ls(e,o,u,a):tp}function Vo(n,e,t,i,r){const s=n.providerIndexes,o=e.data,a=1048575&s,l=n.directiveStart,u=s>>20,h=r?a+u:n.directiveEnd;for(let f=i?a:a+u;f<h;f++){const p=o[f];if(f<l&&t===p||f>=l&&p.type===t)return f}if(r){const f=o[l];if(f&&Kt(f)&&f.type===t)return l}return null}function ls(n,e,t,i){let r=n[t];const s=e.data;if(function QD(n){return n instanceof ss}(r)){const o=r;o.resolving&&function nD(n,e){const t=e?`. Dependency path: ${e.join(" > ")} > ${n}`:"";throw new S(-200,`Circular dependency in DI detected for ${n}${t}`)}(Ue(s[t]));const a=No(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?Hn(o.injectImpl):null;Hf(n,i,V.Default);try{r=n[t]=o.factory(void 0,s,n,i),e.firstCreatePass&&t>=i.directiveStart&&function XD(n,e,t){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=e.type.prototype;if(i){const o=If(e);(t.preOrderHooks||(t.preOrderHooks=[])).push(n,o),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n,o)}r&&(t.preOrderHooks||(t.preOrderHooks=[])).push(0-n,r),s&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n,s),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n,s))}(t,s[t],e)}finally{null!==l&&Hn(l),No(a),o.resolving=!1,zf()}}return r}function np(n,e,t){return!!(t[e+(n>>5)]&1<<n)}function ip(n,e){return!(n&V.Self||n&V.Host&&e)}class Zi{constructor(e,t){this._tNode=e,this._lView=t}get(e,t,i){return ep(this._tNode,this._lView,e,i,t)}}function vc(n){return gf(n)?()=>{const e=vc($(n));return e&&e()}:fi(n)}const Ji="__parameters__";function tr(n,e,t){return jn(()=>{const i=function bc(n){return function(...t){if(n){const i=n(...t);for(const r in i)this[r]=i[r]}}}(e);function r(...s){if(this instanceof r)return i.apply(this,s),this;const o=new r(...s);return a.annotation=o,a;function a(l,c,u){const d=l.hasOwnProperty(Ji)?l[Ji]:Object.defineProperty(l,Ji,{value:[]})[Ji];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(o),l}}return t&&(r.prototype=Object.create(t.prototype)),r.prototype.ngMetadataName=n,r.annotationCls=r,r})}class I{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=x({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}function Pt(n,e){void 0===e&&(e=n);for(let t=0;t<n.length;t++){let i=n[t];Array.isArray(i)?(e===n&&(e=n.slice(0,t)),Pt(i,e)):e!==n&&e.push(i)}return e}function un(n,e){n.forEach(t=>Array.isArray(t)?un(t,e):e(t))}function op(n,e,t){e>=n.length?n.push(t):n.splice(e,0,t)}function jo(n,e){return e>=n.length-1?n.pop():n.splice(e,1)[0]}function ds(n,e){const t=[];for(let i=0;i<n;i++)t.push(e);return t}function _t(n,e,t){let i=nr(n,e);return i>=0?n[1|i]=t:(i=~i,function hC(n,e,t,i){let r=n.length;if(r==e)n.push(t,i);else if(1===r)n.push(i,n[0]),n[0]=t;else{for(r--,n.push(n[r-1],n[r]);r>e;)n[r]=n[r-2],r--;n[e]=t,n[e+1]=i}}(n,i,e,t)),i}function Ec(n,e){const t=nr(n,e);if(t>=0)return n[1|t]}function nr(n,e){return function cp(n,e,t){let i=0,r=n.length>>t;for(;r!==i;){const s=i+(r-i>>1),o=n[s<<t];if(e===o)return s<<t;o>e?r=s:i=s+1}return~(r<<t)}(n,e,1)}const hs={},Cc="__NG_DI_FLAG__",Uo="ngTempTokenPath",vC=/\n/gm,dp="__source",wC=oe({provide:String,useValue:oe});let fs;function hp(n){const e=fs;return fs=n,e}function EC(n,e=V.Default){if(void 0===fs)throw new S(203,"");return null===fs?bf(n,void 0,e):fs.get(n,e&V.Optional?null:void 0,e)}function v(n,e=V.Default){return(function cD(){return ql}()||EC)($(n),e)}const zo=v;function Sc(n){const e=[];for(let t=0;t<n.length;t++){const i=$(n[t]);if(Array.isArray(i)){if(0===i.length)throw new S(900,"");let r,s=V.Default;for(let o=0;o<i.length;o++){const a=i[o],l=DC(a);"number"==typeof l?-1===l?r=a.token:s|=l:r=a}e.push(v(r,s))}else e.push(v(i))}return e}function ps(n,e){return n[Cc]=e,n.prototype[Cc]=e,n}function DC(n){return n[Cc]}const pi=ps(tr("Optional"),8),ms=ps(tr("SkipSelf"),4);var yt=(()=>((yt=yt||{})[yt.Important=1]="Important",yt[yt.DashCase=2]="DashCase",yt))();const bp="__ngContext__";function Ye(n,e){n[bp]=e}function xc(n){const e=function _s(n){return n[bp]||null}(n);return e?Array.isArray(e)?e:e.lView:null}function Oc(n,e){return undefined(n,e)}function ys(n){const e=n[3];return Yt(e)?e[3]:e}function Rc(n){return Tp(n[13])}function kc(n){return Tp(n[4])}function Tp(n){for(;null!==n&&!Yt(n);)n=n[4];return n}function rr(n,e,t,i,r){if(null!=i){let s,o=!1;Yt(i)?s=i:ln(i)&&(o=!0,i=i[0]);const a=Te(i);0===n&&null!==t?null==r?kp(e,t,a):mi(e,t,a,r||null,!0):1===n&&null!==t?mi(e,t,a,r||null,!0):2===n?function Hc(n,e,t){const i=Go(n,e);i&&function e0(n,e,t,i){Ee(n)?n.removeChild(e,t,i):e.removeChild(t)}(n,i,e,t)}(e,a,o):3===n&&e.destroyNode(a),null!=s&&function r0(n,e,t,i,r){const s=t[7];s!==Te(t)&&rr(e,n,i,s,r);for(let a=10;a<t.length;a++){const l=t[a];vs(l[1],l,n,e,i,s)}}(e,n,s,t,r)}}function Fc(n,e,t){if(Ee(n))return n.createElement(e,t);{const i=null!==t?function ID(n){const e=n.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(t):null;return null===i?n.createElement(e):n.createElementNS(i,e)}}function xp(n,e){const t=n[9],i=t.indexOf(e),r=e[3];1024&e[2]&&(e[2]&=-1025,ac(r,-1)),t.splice(i,1)}function Nc(n,e){if(n.length<=10)return;const t=10+e,i=n[t];if(i){const r=i[17];null!==r&&r!==n&&xp(r,i),e>0&&(n[t-1][4]=i[4]);const s=jo(n,10+e);!function GC(n,e){vs(n,e,e[j],2,null,null),e[0]=null,e[6]=null}(i[1],i);const o=s[19];null!==o&&o.detachView(s[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function Ap(n,e){if(!(256&e[2])){const t=e[j];Ee(t)&&t.destroyNode&&vs(n,e,t,3,null,null),function KC(n){let e=n[13];if(!e)return Lc(n[1],n);for(;e;){let t=null;if(ln(e))t=e[13];else{const i=e[10];i&&(t=i)}if(!t){for(;e&&!e[4]&&e!==n;)ln(e)&&Lc(e[1],e),e=e[3];null===e&&(e=n),ln(e)&&Lc(e[1],e),t=e&&e[4]}e=t}}(e)}}function Lc(n,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function JC(n,e){let t;if(null!=n&&null!=(t=n.destroyHooks))for(let i=0;i<t.length;i+=2){const r=e[t[i]];if(!(r instanceof ss)){const s=t[i+1];if(Array.isArray(s))for(let o=0;o<s.length;o+=2){const a=r[s[o]],l=s[o+1];try{l.call(a)}finally{}}else try{s.call(r)}finally{}}}}(n,e),function QC(n,e){const t=n.cleanup,i=e[7];let r=-1;if(null!==t)for(let s=0;s<t.length-1;s+=2)if("string"==typeof t[s]){const o=t[s+1],a="function"==typeof o?o(e):Te(e[o]),l=i[r=t[s+2]],c=t[s+3];"boolean"==typeof c?a.removeEventListener(t[s],l,c):c>=0?i[r=c]():i[r=-c].unsubscribe(),s+=2}else{const o=i[r=t[s+1]];t[s].call(o)}if(null!==i){for(let s=r+1;s<i.length;s++)i[s]();e[7]=null}}(n,e),1===e[1].type&&Ee(e[j])&&e[j].destroy();const t=e[17];if(null!==t&&Yt(e[3])){t!==e[3]&&xp(t,e);const i=e[19];null!==i&&i.detachView(n)}}}function Op(n,e,t){return function Rp(n,e,t){let i=e;for(;null!==i&&40&i.type;)i=(e=i).parent;if(null===i)return t[0];if(2&i.flags){const r=n.data[i.directiveStart].encapsulation;if(r===Wt.None||r===Wt.Emulated)return null}return mt(i,t)}(n,e.parent,t)}function mi(n,e,t,i,r){Ee(n)?n.insertBefore(e,t,i,r):e.insertBefore(t,i,r)}function kp(n,e,t){Ee(n)?n.appendChild(e,t):e.appendChild(t)}function Pp(n,e,t,i,r){null!==i?mi(n,e,t,i,r):kp(n,e,t)}function Go(n,e){return Ee(n)?n.parentNode(e):e.parentNode}function Fp(n,e,t){return Lp(n,e,t)}let Ko,Xo,Lp=function Np(n,e,t){return 40&n.type?mt(n,t):null};function qo(n,e,t,i){const r=Op(n,i,e),s=e[j],a=Fp(i.parent||e[6],i,e);if(null!=r)if(Array.isArray(t))for(let l=0;l<t.length;l++)Pp(s,r,t[l],a,!1);else Pp(s,r,t,a,!1)}function Yo(n,e){if(null!==e){const t=e.type;if(3&t)return mt(e,n);if(4&t)return Vc(-1,n[e.index]);if(8&t){const i=e.child;if(null!==i)return Yo(n,i);{const r=n[e.index];return Yt(r)?Vc(-1,r):Te(r)}}if(32&t)return Oc(e,n)()||Te(n[e.index]);{const i=Vp(n,e);return null!==i?Array.isArray(i)?i[0]:Yo(ys(n[16]),i):Yo(n,e.next)}}return null}function Vp(n,e){return null!==e?n[16][6].projection[e.projection]:null}function Vc(n,e){const t=10+n+1;if(t<e.length){const i=e[t],r=i[1].firstChild;if(null!==r)return Yo(i,r)}return e[7]}function jc(n,e,t,i,r,s,o){for(;null!=t;){const a=i[t.index],l=t.type;if(o&&0===e&&(a&&Ye(Te(a),i),t.flags|=4),64!=(64&t.flags))if(8&l)jc(n,e,t.child,i,r,s,!1),rr(e,n,r,a,s);else if(32&l){const c=Oc(t,i);let u;for(;u=c();)rr(e,n,r,u,s);rr(e,n,r,a,s)}else 16&l?Hp(n,e,i,t,r,s):rr(e,n,r,a,s);t=o?t.projectionNext:t.next}}function vs(n,e,t,i,r,s){jc(t,i,n.firstChild,e,r,s,!1)}function Hp(n,e,t,i,r,s){const o=t[16],l=o[6].projection[i.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++)rr(e,n,r,l[c],s);else jc(n,e,l,o[3],r,s,!0)}function jp(n,e,t){Ee(n)?n.setAttribute(e,"style",t):e.style.cssText=t}function $c(n,e,t){Ee(n)?""===t?n.removeAttribute(e,"class"):n.setAttribute(e,"class",t):e.className=t}function gi(n){var e;return(null===(e=function Uc(){if(void 0===Ko&&(Ko=null,se.trustedTypes))try{Ko=se.trustedTypes.createPolicy("angular",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return Ko}())||void 0===e?void 0:e.createHTML(n))||n}function $p(n){var e;return(null===(e=function zc(){if(void 0===Xo&&(Xo=null,se.trustedTypes))try{Xo=se.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return Xo}())||void 0===e?void 0:e.createHTML(n))||n}class _i{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class c0 extends _i{getTypeName(){return"HTML"}}class u0 extends _i{getTypeName(){return"Style"}}class d0 extends _i{getTypeName(){return"Script"}}class h0 extends _i{getTypeName(){return"URL"}}class f0 extends _i{getTypeName(){return"ResourceURL"}}function vt(n){return n instanceof _i?n.changingThisBreaksApplicationSecurity:n}function dn(n,e){const t=Wp(n);if(null!=t&&t!==e){if("ResourceURL"===t&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${t} (see https://g.co/ng/security#xss)`)}return t===e}function Wp(n){return n instanceof _i&&n.getTypeName()||null}class v0{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{const t=(new window.DOMParser).parseFromString(gi(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch(t){return null}}}class b0{constructor(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const i=this.inertDocument.createElement("body");t.appendChild(i)}}getInertBodyElement(e){const t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=gi(e),t;const i=this.inertDocument.createElement("body");return i.innerHTML=gi(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(e){const t=e.attributes;for(let r=t.length-1;0<r;r--){const o=t.item(r).name;("xmlns:ns1"===o||0===o.indexOf("ns1:"))&&e.removeAttribute(o)}let i=e.firstChild;for(;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}const E0=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,D0=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function bs(n){return(n=String(n)).match(E0)||n.match(D0)?n:"unsafe:"+n}function qp(n){return(n=String(n)).split(",").map(e=>bs(e.trim())).join(", ")}function hn(n){const e={};for(const t of n.split(","))e[t]=!0;return e}function ws(...n){const e={};for(const t of n)for(const i in t)t.hasOwnProperty(i)&&(e[i]=!0);return e}const Yp=hn("area,br,col,hr,img,wbr"),Kp=hn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Xp=hn("rp,rt"),Wc=ws(Yp,ws(Kp,hn("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),ws(Xp,hn("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),ws(Xp,Kp)),Gc=hn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),qc=hn("srcset"),Zp=ws(Gc,qc,hn("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),hn("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),C0=hn("script,style,template");class S0{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let t=e.firstChild,i=!0;for(;t;)if(t.nodeType===Node.ELEMENT_NODE?i=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,i&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let r=this.checkClobberedElement(t,t.nextSibling);if(r){t=r;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}startElement(e){const t=e.nodeName.toLowerCase();if(!Wc.hasOwnProperty(t))return this.sanitizedSomething=!0,!C0.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const i=e.attributes;for(let r=0;r<i.length;r++){const s=i.item(r),o=s.name,a=o.toLowerCase();if(!Zp.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=s.value;Gc[a]&&(l=bs(l)),qc[a]&&(l=qp(l)),this.buf.push(" ",o,'="',Qp(l),'"')}return this.buf.push(">"),!0}endElement(e){const t=e.nodeName.toLowerCase();Wc.hasOwnProperty(t)&&!Yp.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(e){this.buf.push(Qp(e))}checkClobberedElement(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`);return t}}const M0=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,T0=/([^\#-~ |!])/g;function Qp(n){return n.replace(/&/g,"&amp;").replace(M0,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(T0,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Zo;function Jp(n,e){let t=null;try{Zo=Zo||function Gp(n){const e=new b0(n);return function w0(){try{return!!(new window.DOMParser).parseFromString(gi(""),"text/html")}catch(n){return!1}}()?new v0(e):e}(n);let i=e?String(e):"";t=Zo.getInertBodyElement(i);let r=5,s=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=s,s=t.innerHTML,t=Zo.getInertBodyElement(i)}while(i!==s);return gi((new S0).sanitizeChildren(Yc(t)||t))}finally{if(t){const i=Yc(t)||t;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function Yc(n){return"content"in n&&function I0(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var J=(()=>((J=J||{})[J.NONE=0]="NONE",J[J.HTML=1]="HTML",J[J.STYLE=2]="STYLE",J[J.SCRIPT=3]="SCRIPT",J[J.URL=4]="URL",J[J.RESOURCE_URL=5]="RESOURCE_URL",J))();function em(n){const e=function Es(){const n=b();return n&&n[12]}();return e?$p(e.sanitize(J.HTML,n)||""):dn(n,"HTML")?$p(vt(n)):Jp(rc(),N(n))}function Xc(n){return n.ngOriginalError}function B0(n,...e){n.error(...e)}class Gn{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),i=function L0(n){return n&&n.ngErrorLogger||B0}(e);i(this._console,"ERROR",e),t&&i(this._console,"ORIGINAL ERROR",t)}_findOriginalError(e){let t=e&&Xc(e);for(;t&&Xc(t);)t=Xc(t);return t||null}}const W0=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(se))();function fn(n){return n instanceof Function?n():n}function rm(n,e,t){let i=n.length;for(;;){const r=n.indexOf(e,t);if(-1===r)return r;if(0===r||n.charCodeAt(r-1)<=32){const s=e.length;if(r+s===i||n.charCodeAt(r+s)<=32)return r}t=r+1}}const sm="ng-template";function K0(n,e,t){let i=0;for(;i<n.length;){let r=n[i++];if(t&&"class"===r){if(r=n[i],-1!==rm(r.toLowerCase(),e,0))return!0}else if(1===r){for(;i<n.length&&"string"==typeof(r=n[i++]);)if(r.toLowerCase()===e)return!0;return!1}}return!1}function om(n){return 4===n.type&&n.value!==sm}function X0(n,e,t){return e===(4!==n.type||t?n.value:sm)}function Z0(n,e,t){let i=4;const r=n.attrs||[],s=function eS(n){for(let e=0;e<n.length;e++)if(qf(n[e]))return e;return n.length}(r);let o=!1;for(let a=0;a<e.length;a++){const l=e[a];if("number"!=typeof l){if(!o)if(4&i){if(i=2|1&i,""!==l&&!X0(n,l,t)||""===l&&1===e.length){if(Xt(i))return!1;o=!0}}else{const c=8&i?l:e[++a];if(8&i&&null!==n.attrs){if(!K0(n.attrs,c,t)){if(Xt(i))return!1;o=!0}continue}const d=Q0(8&i?"class":l,r,om(n),t);if(-1===d){if(Xt(i))return!1;o=!0;continue}if(""!==c){let h;h=d>s?"":r[d+1].toLowerCase();const f=8&i?h:null;if(f&&-1!==rm(f,c,0)||2&i&&c!==h){if(Xt(i))return!1;o=!0}}}}else{if(!o&&!Xt(i)&&!Xt(l))return!1;if(o&&Xt(l))continue;o=!1,i=l|1&i}}return Xt(i)||o}function Xt(n){return 0==(1&n)}function Q0(n,e,t,i){if(null===e)return-1;let r=0;if(i||!t){let s=!1;for(;r<e.length;){const o=e[r];if(o===n)return r;if(3===o||6===o)s=!0;else{if(1===o||2===o){let a=e[++r];for(;"string"==typeof a;)a=e[++r];continue}if(4===o)break;if(0===o){r+=4;continue}}r+=s?1:2}return-1}return function tS(n,e){let t=n.indexOf(4);if(t>-1)for(t++;t<n.length;){const i=n[t];if("number"==typeof i)return-1;if(i===e)return t;t++}return-1}(e,n)}function am(n,e,t=!1){for(let i=0;i<e.length;i++)if(Z0(n,e[i],t))return!0;return!1}function nS(n,e){e:for(let t=0;t<e.length;t++){const i=e[t];if(n.length===i.length){for(let r=0;r<n.length;r++)if(n[r]!==i[r])continue e;return!0}}return!1}function lm(n,e){return n?":not("+e.trim()+")":e}function iS(n){let e=n[0],t=1,i=2,r="",s=!1;for(;t<n.length;){let o=n[t];if("string"==typeof o)if(2&i){const a=n[++t];r+="["+o+(a.length>0?'="'+a+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""!==r&&!Xt(o)&&(e+=lm(s,r),r=""),i=o,s=s||!Xt(i);t++}return""!==r&&(e+=lm(s,r)),e}const B={};function k(n){cm(K(),b(),Je()+n,!1)}function cm(n,e,t,i){if(!i)if(3==(3&e[2])){const s=n.preOrderCheckHooks;null!==s&&Ro(e,s,t)}else{const s=n.preOrderHooks;null!==s&&ko(e,s,0,t)}zn(t)}function Qo(n,e){return n<<17|e<<2}function Zt(n){return n>>17&32767}function Zc(n){return 2|n}function xn(n){return(131068&n)>>2}function Qc(n,e){return-131069&n|e<<2}function Jc(n){return 1|n}function bm(n,e){const t=n.contentQueries;if(null!==t)for(let i=0;i<t.length;i+=2){const r=t[i],s=t[i+1];if(-1!==s){const o=n.data[s];hc(r),o.contentQueries(2,e[s],s)}}}function Ds(n,e,t,i,r,s,o,a,l,c){const u=e.blueprint.slice();return u[0]=r,u[2]=140|i,kf(u),u[3]=u[15]=n,u[8]=t,u[10]=o||n&&n[10],u[j]=a||n&&n[j],u[12]=l||n&&n[12]||null,u[9]=c||n&&n[9]||null,u[6]=s,u[16]=2==e.type?n[16]:u,u}function or(n,e,t,i,r){let s=n.data[e];if(null===s)s=function lu(n,e,t,i,r){const s=Nf(),o=lc(),l=n.data[e]=function wS(n,e,t,i,r,s){return{type:t,index:i,insertBeforeIndex:null,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:r,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,o?s:s&&s.parent,t,e,i,r);return null===n.firstChild&&(n.firstChild=l),null!==s&&(o?null==s.child&&null!==l.parent&&(s.child=l):null===s.next&&(s.next=l)),l}(n,e,t,i,r),function HD(){return L.lFrame.inI18n}()&&(s.flags|=64);else if(64&s.type){s.type=t,s.value=i,s.attrs=r;const o=function rs(){const n=L.lFrame,e=n.currentTNode;return n.isParent?e:e.parent}();s.injectorIndex=null===o?-1:o.injectorIndex}return cn(s,!0),s}function ar(n,e,t,i){if(0===t)return-1;const r=e.length;for(let s=0;s<t;s++)e.push(i),n.blueprint.push(i),n.data.push(null);return r}function Cs(n,e,t){xo(e);try{const i=n.viewQuery;null!==i&&_u(1,i,t);const r=n.template;null!==r&&wm(n,e,r,1,t),n.firstCreatePass&&(n.firstCreatePass=!1),n.staticContentQueries&&bm(n,e),n.staticViewQueries&&_u(2,n.viewQuery,t);const s=n.components;null!==s&&function yS(n,e){for(let t=0;t<e.length;t++)VS(n,e[t])}(e,s)}catch(i){throw n.firstCreatePass&&(n.incompleteFirstPass=!0,n.firstCreatePass=!1),i}finally{e[2]&=-5,Ao()}}function lr(n,e,t,i){const r=e[2];if(256!=(256&r)){xo(e);try{kf(e),function Lf(n){return L.lFrame.bindingIndex=n}(n.bindingStartIndex),null!==t&&wm(n,e,t,2,i);const o=3==(3&r);if(o){const c=n.preOrderCheckHooks;null!==c&&Ro(e,c,null)}else{const c=n.preOrderHooks;null!==c&&ko(e,c,0,null),fc(e,0)}if(function LS(n){for(let e=Rc(n);null!==e;e=kc(e)){if(!e[2])continue;const t=e[9];for(let i=0;i<t.length;i++){const r=t[i],s=r[3];0==(1024&r[2])&&ac(s,1),r[2]|=1024}}}(e),function NS(n){for(let e=Rc(n);null!==e;e=kc(e))for(let t=10;t<e.length;t++){const i=e[t],r=i[1];oc(i)&&lr(r,i,r.template,i[8])}}(e),null!==n.contentQueries&&bm(n,e),o){const c=n.contentCheckHooks;null!==c&&Ro(e,c)}else{const c=n.contentHooks;null!==c&&ko(e,c,1),fc(e,1)}!function gS(n,e){const t=n.hostBindingOpCodes;if(null!==t)try{for(let i=0;i<t.length;i++){const r=t[i];if(r<0)zn(~r);else{const s=r,o=t[++i],a=t[++i];jD(o,s),a(2,e[s])}}}finally{zn(-1)}}(n,e);const a=n.components;null!==a&&function _S(n,e){for(let t=0;t<e.length;t++)BS(n,e[t])}(e,a);const l=n.viewQuery;if(null!==l&&_u(2,l,i),o){const c=n.viewCheckHooks;null!==c&&Ro(e,c)}else{const c=n.viewHooks;null!==c&&ko(e,c,2),fc(e,2)}!0===n.firstUpdatePass&&(n.firstUpdatePass=!1),e[2]&=-73,1024&e[2]&&(e[2]&=-1025,ac(e[3],-1))}finally{Ao()}}}function vS(n,e,t,i){const r=e[10],o=Rf(e);try{!o&&r.begin&&r.begin(),o&&Cs(n,e,i),lr(n,e,t,i)}finally{!o&&r.end&&r.end()}}function wm(n,e,t,i,r){const s=Je(),o=2&i;try{zn(-1),o&&e.length>20&&cm(n,e,20,!1),t(i,r)}finally{zn(s)}}function Em(n,e,t){if(Ql(e)){const r=e.directiveEnd;for(let s=e.directiveStart;s<r;s++){const o=n.data[s];o.contentQueries&&o.contentQueries(1,t[s],s)}}}function cu(n,e,t){!Ff()||(function IS(n,e,t,i){const r=t.directiveStart,s=t.directiveEnd;n.firstCreatePass||as(t,e),Ye(i,e);const o=t.initialInputs;for(let a=r;a<s;a++){const l=n.data[a],c=Kt(l);c&&kS(e,t,l);const u=ls(e,n,a,t);Ye(u,e),null!==o&&PS(0,a-r,u,l,0,o),c&&(gt(t.index,e)[8]=u)}}(n,e,t,mt(t,e)),128==(128&t.flags)&&function xS(n,e,t){const i=t.directiveStart,r=t.directiveEnd,o=t.index,a=function $D(){return L.lFrame.currentDirectiveIndex}();try{zn(o);for(let l=i;l<r;l++){const c=n.data[l],u=e[l];uc(l),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&Am(c,u)}}finally{zn(-1),uc(a)}}(n,e,t))}function uu(n,e,t=mt){const i=e.localNames;if(null!==i){let r=e.index+1;for(let s=0;s<i.length;s+=2){const o=i[s+1],a=-1===o?t(e,n):n[o];n[r++]=a}}}function Dm(n){const e=n.tView;return null===e||e.incompleteFirstPass?n.tView=ta(1,null,n.template,n.decls,n.vars,n.directiveDefs,n.pipeDefs,n.viewQuery,n.schemas,n.consts):e}function ta(n,e,t,i,r,s,o,a,l,c){const u=20+i,d=u+r,h=function bS(n,e){const t=[];for(let i=0;i<e;i++)t.push(i<n?null:B);return t}(u,d),f="function"==typeof c?c():c;return h[1]={type:n,blueprint:h,template:t,queries:null,viewQuery:a,declTNode:e,data:h.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:d,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof s?s():s,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:l,consts:f,incompleteFirstPass:!1}}function Mm(n,e,t,i){const r=Nm(e);null===t?r.push(i):(r.push(t),n.firstCreatePass&&Lm(n).push(i,r.length-1))}function Tm(n,e,t){for(let i in n)if(n.hasOwnProperty(i)){const r=n[i];(t=null===t?{}:t).hasOwnProperty(i)?t[i].push(e,r):t[i]=[e,r]}return t}function du(n,e,t,i){let r=!1;if(Ff()){const s=function AS(n,e,t){const i=n.directiveRegistry;let r=null;if(i)for(let s=0;s<i.length;s++){const o=i[s];am(t,o.selectors,!1)&&(r||(r=[]),Bo(as(t,e),n,o.type),Kt(o)?(Om(n,t),r.unshift(o)):r.push(o))}return r}(n,e,t),o=null===i?null:{"":-1};if(null!==s){r=!0,Rm(t,n.data.length,s.length);for(let u=0;u<s.length;u++){const d=s[u];d.providersResolver&&d.providersResolver(d)}let a=!1,l=!1,c=ar(n,e,s.length,null);for(let u=0;u<s.length;u++){const d=s[u];t.mergedAttrs=Fo(t.mergedAttrs,d.hostAttrs),km(n,t,e,c,d),RS(c,d,o),null!==d.contentQueries&&(t.flags|=8),(null!==d.hostBindings||null!==d.hostAttrs||0!==d.hostVars)&&(t.flags|=128);const h=d.type.prototype;!a&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t.index),a=!0),!l&&(h.ngOnChanges||h.ngDoCheck)&&((n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t.index),l=!0),c++}!function ES(n,e){const i=e.directiveEnd,r=n.data,s=e.attrs,o=[];let a=null,l=null;for(let c=e.directiveStart;c<i;c++){const u=r[c],d=u.inputs,h=null===s||om(e)?null:FS(d,s);o.push(h),a=Tm(d,c,a),l=Tm(u.outputs,c,l)}null!==a&&(a.hasOwnProperty("class")&&(e.flags|=16),a.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=o,e.inputs=a,e.outputs=l}(n,t)}o&&function OS(n,e,t){if(e){const i=n.localNames=[];for(let r=0;r<e.length;r+=2){const s=t[e[r+1]];if(null==s)throw new S(-301,!1);i.push(e[r],s)}}}(t,i,o)}return t.mergedAttrs=Fo(t.mergedAttrs,t.attrs),r}function xm(n,e,t,i,r,s){const o=s.hostBindings;if(o){let a=n.hostBindingOpCodes;null===a&&(a=n.hostBindingOpCodes=[]);const l=~e.index;(function TS(n){let e=n.length;for(;e>0;){const t=n[--e];if("number"==typeof t&&t<0)return t}return 0})(a)!=l&&a.push(l),a.push(i,r,o)}}function Am(n,e){null!==n.hostBindings&&n.hostBindings(1,e)}function Om(n,e){e.flags|=2,(n.components||(n.components=[])).push(e.index)}function RS(n,e,t){if(t){if(e.exportAs)for(let i=0;i<e.exportAs.length;i++)t[e.exportAs[i]]=n;Kt(e)&&(t[""]=n)}}function Rm(n,e,t){n.flags|=1,n.directiveStart=e,n.directiveEnd=e+t,n.providerIndexes=e}function km(n,e,t,i,r){n.data[i]=r;const s=r.factory||(r.factory=fi(r.type)),o=new ss(s,Kt(r),null);n.blueprint[i]=o,t[i]=o,xm(n,e,0,i,ar(n,t,r.hostVars,B),r)}function kS(n,e,t){const i=mt(e,n),r=Dm(t),s=n[10],o=na(n,Ds(n,r,null,t.onPush?64:16,i,e,s,s.createRenderer(i,t),null,null));n[e.index]=o}function pn(n,e,t,i,r,s){const o=mt(n,e);!function hu(n,e,t,i,r,s,o){if(null==s)Ee(n)?n.removeAttribute(e,r,t):e.removeAttribute(r);else{const a=null==o?N(s):o(s,i||"",r);Ee(n)?n.setAttribute(e,r,a,t):t?e.setAttributeNS(t,r,a):e.setAttribute(r,a)}}(e[j],o,s,n.value,t,i,r)}function PS(n,e,t,i,r,s){const o=s[e];if(null!==o){const a=i.setInput;for(let l=0;l<o.length;){const c=o[l++],u=o[l++],d=o[l++];null!==a?i.setInput(t,d,c,u):t[u]=d}}}function FS(n,e){let t=null,i=0;for(;i<e.length;){const r=e[i];if(0!==r)if(5!==r){if("number"==typeof r)break;n.hasOwnProperty(r)&&(null===t&&(t=[]),t.push(r,n[r],e[i+1])),i+=2}else i+=2;else i+=4}return t}function Pm(n,e,t,i){return new Array(n,!0,!1,e,null,0,i,t,null,null)}function BS(n,e){const t=gt(e,n);if(oc(t)){const i=t[1];80&t[2]?lr(i,t,i.template,t[8]):t[5]>0&&fu(t)}}function fu(n){for(let i=Rc(n);null!==i;i=kc(i))for(let r=10;r<i.length;r++){const s=i[r];if(1024&s[2]){const o=s[1];lr(o,s,o.template,s[8])}else s[5]>0&&fu(s)}const t=n[1].components;if(null!==t)for(let i=0;i<t.length;i++){const r=gt(t[i],n);oc(r)&&r[5]>0&&fu(r)}}function VS(n,e){const t=gt(e,n),i=t[1];(function HS(n,e){for(let t=e.length;t<n.blueprint.length;t++)e.push(n.blueprint[t])})(i,t),Cs(i,t,t[8])}function na(n,e){return n[13]?n[14][4]=e:n[13]=e,n[14]=e,e}function pu(n){for(;n;){n[2]|=64;const e=ys(n);if(vD(n)&&!e)return n;n=e}return null}function Fm(n){!function mu(n){for(let e=0;e<n.components.length;e++){const t=n.components[e],i=xc(t),r=i[1];vS(r,i,r.template,t)}}(n[8])}function _u(n,e,t){hc(0),e(n,t)}const $S=(()=>Promise.resolve(null))();function Nm(n){return n[7]||(n[7]=[])}function Lm(n){return n.cleanup||(n.cleanup=[])}function Vm(n,e){const t=n[9],i=t?t.get(Gn,null):null;i&&i.handleError(e)}function Hm(n,e,t,i,r){for(let s=0;s<t.length;){const o=t[s++],a=t[s++],l=e[o],c=n.data[o];null!==c.setInput?c.setInput(l,r,i,a):l[a]=r}}function An(n,e,t){const i=To(e,n);!function Ip(n,e,t){Ee(n)?n.setValue(e,t):e.textContent=t}(n[j],i,t)}function ia(n,e,t){let i=t?n.styles:null,r=t?n.classes:null,s=0;if(null!==e)for(let o=0;o<e.length;o++){const a=e[o];"number"==typeof a?s=a:1==s?r=$l(r,a):2==s&&(i=$l(i,a+": "+e[++o]+";"))}t?n.styles=i:n.stylesWithoutHost=i,t?n.classes=r:n.classesWithoutHost=r}const yu=new I("INJECTOR",-1);class jm{get(e,t=hs){if(t===hs){const i=new Error(`NullInjectorError: No provider for ${te(e)}!`);throw i.name="NullInjectorError",i}return t}}const vu=new I("Set Injector scope."),Ss={},WS={};let bu;function $m(){return void 0===bu&&(bu=new jm),bu}function Um(n,e=null,t=null,i){const r=zm(n,e,t,i);return r._resolveInjectorDefTypes(),r}function zm(n,e=null,t=null,i){return new GS(n,t,e||$m(),i)}class GS{constructor(e,t,i,r=null){this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const s=[];t&&un(t,a=>this.processProvider(a,e,t)),un([e],a=>this.processInjectorType(a,[],s)),this.records.set(yu,cr(void 0,this));const o=this.records.get(vu);this.scope=null!=o?o.value:null,this.source=r||("object"==typeof e?null:te(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=hs,i=V.Default){this.assertNotDestroyed();const r=hp(this),s=Hn(void 0);try{if(!(i&V.SkipSelf)){let a=this.records.get(e);if(void 0===a){const l=function eM(n){return"function"==typeof n||"object"==typeof n&&n instanceof I}(e)&&Wl(e);a=l&&this.injectableDefInScope(l)?cr(wu(e),Ss):null,this.records.set(e,a)}if(null!=a)return this.hydrate(e,a)}return(i&V.Self?$m():this.parent).get(e,t=i&V.Optional&&t===hs?null:t)}catch(o){if("NullInjectorError"===o.name){if((o[Uo]=o[Uo]||[]).unshift(te(e)),r)throw o;return function CC(n,e,t,i){const r=n[Uo];throw e[dp]&&r.unshift(e[dp]),n.message=function SC(n,e,t,i=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.substr(2):n;let r=te(e);if(Array.isArray(e))r=e.map(te).join(" -> ");else if("object"==typeof e){let s=[];for(let o in e)if(e.hasOwnProperty(o)){let a=e[o];s.push(o+":"+("string"==typeof a?JSON.stringify(a):te(a)))}r=`{${s.join(", ")}}`}return`${t}${i?"("+i+")":""}[${r}]: ${n.replace(vC,"\n ")}`}("\n"+n.message,r,t,i),n.ngTokenPath=r,n[Uo]=null,n}(o,e,"R3InjectorError",this.source)}throw o}finally{Hn(s),hp(r)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((i,r)=>e.push(te(r))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new S(205,!1)}processInjectorType(e,t,i){if(!(e=$(e)))return!1;let r=yf(e);const s=null==r&&e.ngModule||void 0,o=void 0===s?e:s,a=-1!==i.indexOf(o);if(void 0!==s&&(r=yf(s)),null==r)return!1;if(null!=r.imports&&!a){let u;i.push(o);try{un(r.imports,d=>{this.processInjectorType(d,t,i)&&(void 0===u&&(u=[]),u.push(d))})}finally{}if(void 0!==u)for(let d=0;d<u.length;d++){const{ngModule:h,providers:f}=u[d];un(f,p=>this.processProvider(p,h,f||ae))}}this.injectorDefTypes.add(o);const l=fi(o)||(()=>new o);this.records.set(o,cr(l,Ss));const c=r.providers;if(null!=c&&!a){const u=e;un(c,d=>this.processProvider(d,u,c))}return void 0!==s&&void 0!==e.providers}processProvider(e,t,i){let r=ur(e=$(e))?e:$(e&&e.provide);const s=function YS(n,e,t){return Gm(n)?cr(void 0,n.useValue):cr(Wm(n),Ss)}(e);if(ur(e)||!0!==e.multi)this.records.get(r);else{let o=this.records.get(r);o||(o=cr(void 0,Ss,!0),o.factory=()=>Sc(o.multi),this.records.set(r,o)),r=e,o.multi.push(e)}this.records.set(r,s)}hydrate(e,t){return t.value===Ss&&(t.value=WS,t.value=t.factory()),"object"==typeof t.value&&t.value&&function JS(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(t.value)&&this.onDestroy.add(t.value),t.value}injectableDefInScope(e){if(!e.providedIn)return!1;const t=$(e.providedIn);return"string"==typeof t?"any"===t||t===this.scope:this.injectorDefTypes.has(t)}}function wu(n){const e=Wl(n),t=null!==e?e.factory:fi(n);if(null!==t)return t;if(n instanceof I)throw new S(204,!1);if(n instanceof Function)return function qS(n){const e=n.length;if(e>0)throw ds(e,"?"),new S(204,!1);const t=function oD(n){const e=n&&(n[bo]||n[vf]);if(e){const t=function aD(n){if(n.hasOwnProperty("name"))return n.name;const e=(""+n).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${t}" 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 "${t}" class.`),e}return null}(n);return null!==t?()=>t.factory(n):()=>new n}(n);throw new S(204,!1)}function Wm(n,e,t){let i;if(ur(n)){const r=$(n);return fi(r)||wu(r)}if(Gm(n))i=()=>$(n.useValue);else if(function XS(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...Sc(n.deps||[]));else if(function KS(n){return!(!n||!n.useExisting)}(n))i=()=>v($(n.useExisting));else{const r=$(n&&(n.useClass||n.provide));if(!function QS(n){return!!n.deps}(n))return fi(r)||wu(r);i=()=>new r(...Sc(n.deps))}return i}function cr(n,e,t=!1){return{factory:n,value:e,multi:t?[]:void 0}}function Gm(n){return null!==n&&"object"==typeof n&&wC in n}function ur(n){return"function"==typeof n}let tt=(()=>{class n{static create(t,i){var r;if(Array.isArray(t))return Um({name:""},i,t,"");{const s=null!==(r=t.name)&&void 0!==r?r:"";return Um({name:s},t.parent,t.providers,s)}}}return n.THROW_IF_NOT_FOUND=hs,n.NULL=new jm,n.\u0275prov=x({token:n,providedIn:"any",factory:()=>v(yu)}),n.__NG_ELEMENT_ID__=-1,n})();function lM(n,e){Oo(xc(n)[1],ke())}function On(n){let e=function rg(n){return Object.getPrototypeOf(n.prototype).constructor}(n.type),t=!0;const i=[n];for(;e;){let r;if(Kt(n))r=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new S(903,"");r=e.\u0275dir}if(r){if(t){i.push(r);const o=n;o.inputs=Cu(n.inputs),o.declaredInputs=Cu(n.declaredInputs),o.outputs=Cu(n.outputs);const a=r.hostBindings;a&&hM(n,a);const l=r.viewQuery,c=r.contentQueries;if(l&&uM(n,l),c&&dM(n,c),jl(n.inputs,r.inputs),jl(n.declaredInputs,r.declaredInputs),jl(n.outputs,r.outputs),Kt(r)&&r.data.animation){const u=n.data;u.animation=(u.animation||[]).concat(r.data.animation)}}const s=r.features;if(s)for(let o=0;o<s.length;o++){const a=s[o];a&&a.ngInherit&&a(n),a===On&&(t=!1)}}e=Object.getPrototypeOf(e)}!function cM(n){let e=0,t=null;for(let i=n.length-1;i>=0;i--){const r=n[i];r.hostVars=e+=r.hostVars,r.hostAttrs=Fo(r.hostAttrs,t=Fo(t,r.hostAttrs))}}(i)}function Cu(n){return n===ji?{}:n===ae?[]:n}function uM(n,e){const t=n.viewQuery;n.viewQuery=t?(i,r)=>{e(i,r),t(i,r)}:e}function dM(n,e){const t=n.contentQueries;n.contentQueries=t?(i,r,s)=>{e(i,r,s),t(i,r,s)}:e}function hM(n,e){const t=n.hostBindings;n.hostBindings=t?(i,r)=>{e(i,r),t(i,r)}:e}let ra=null;function dr(){if(!ra){const n=se.Symbol;if(n&&n.iterator)ra=n.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;t<e.length;++t){const i=e[t];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(ra=i)}}}return ra}function Ms(n){return!!Su(n)&&(Array.isArray(n)||!(n instanceof Map)&&dr()in n)}function Su(n){return null!==n&&("function"==typeof n||"object"==typeof n)}function Ke(n,e,t){return!Object.is(n[e],t)&&(n[e]=t,!0)}function We(n,e,t,i){const r=b();return Ke(r,Yi(),e)&&(K(),pn(_e(),r,n,e,t,i)),We}function ee(n,e,t,i,r,s,o,a){const l=b(),c=K(),u=n+20,d=c.firstCreatePass?function vM(n,e,t,i,r,s,o,a,l){const c=e.consts,u=or(e,n,4,o||null,Un(c,a));du(e,t,u,Un(c,l)),Oo(e,u);const d=u.tViews=ta(2,u,i,r,s,e.directiveRegistry,e.pipeRegistry,null,e.schemas,c);return null!==e.queries&&(e.queries.template(e,u),d.queries=e.queries.embeddedTView(u)),u}(u,c,l,e,t,i,r,s,o):c.data[u];cn(d,!1);const h=l[j].createComment("");qo(c,l,h,d),Ye(h,l),na(l,l[u]=Pm(h,l,h,d)),Mo(d)&&cu(c,l,d),null!=o&&uu(l,d,a)}function Fe(n){return qi(function VD(){return L.lFrame.contextLView}(),20+n)}function w(n,e=V.Default){const t=b();return null===t?v(n,e):ep(ke(),t,$(n),e)}function O(n,e,t){const i=b();return Ke(i,Yi(),e)&&function bt(n,e,t,i,r,s,o,a){const l=mt(e,t);let u,c=e.inputs;!a&&null!=c&&(u=c[i])?(Hm(n,t,u,i,r),So(e)&&function CS(n,e){const t=gt(e,n);16&t[2]||(t[2]|=64)}(t,e.index)):3&e.type&&(i=function DS(n){return"class"===n?"className":"for"===n?"htmlFor":"formaction"===n?"formAction":"innerHtml"===n?"innerHTML":"readonly"===n?"readOnly":"tabindex"===n?"tabIndex":n}(i),r=null!=o?o(r,e.value||"",i):r,Ee(s)?s.setProperty(l,i,r):mc(i)||(l.setProperty?l.setProperty(i,r):l[i]=r))}(K(),_e(),i,n,e,i[j],t,!1),O}function Au(n,e,t,i,r){const o=r?"class":"style";Hm(n,t,e.inputs[o],o,i)}function Q(n,e,t,i){const r=b(),s=K(),o=20+n,a=r[j],l=r[o]=Fc(a,e,function KD(){return L.lFrame.currentNamespace}()),c=s.firstCreatePass?function HM(n,e,t,i,r,s,o){const a=e.consts,c=or(e,n,2,r,Un(a,s));return du(e,t,c,Un(a,o)),null!==c.attrs&&ia(c,c.attrs,!1),null!==c.mergedAttrs&&ia(c,c.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,c),c}(o,s,r,0,e,t,i):s.data[o];cn(c,!0);const u=c.mergedAttrs;null!==u&&Po(a,l,u);const d=c.classes;null!==d&&$c(a,l,d);const h=c.styles;return null!==h&&jp(a,l,h),64!=(64&c.flags)&&qo(s,r,l,c),0===function PD(){return L.lFrame.elementDepthCount}()&&Ye(l,r),function FD(){L.lFrame.elementDepthCount++}(),Mo(c)&&(cu(s,r,c),Em(s,c,r)),null!==i&&uu(r,c),Q}function ie(){let n=ke();lc()?cc():(n=n.parent,cn(n,!1));const e=n;!function ND(){L.lFrame.elementDepthCount--}();const t=K();return t.firstCreatePass&&(Oo(t,n),Ql(n)&&t.queries.elementEnd(n)),null!=e.classesWithoutHost&&function eC(n){return 0!=(16&n.flags)}(e)&&Au(t,e,b(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function tC(n){return 0!=(32&n.flags)}(e)&&Au(t,e,b(),e.stylesWithoutHost,!1),ie}function Kn(n,e,t,i){return Q(n,e,t,i),ie(),Kn}function nt(n,e,t){const i=b(),r=K(),s=n+20,o=r.firstCreatePass?function jM(n,e,t,i,r){const s=e.consts,o=Un(s,i),a=or(e,n,8,"ng-container",o);return null!==o&&ia(a,o,!0),du(e,t,a,Un(s,r)),null!==e.queries&&e.queries.elementStart(e,a),a}(s,r,i,e,t):r.data[s];cn(o,!0);const a=i[s]=i[j].createComment("");return qo(r,i,a,o),Ye(a,i),Mo(o)&&(cu(r,i,o),Em(r,o,i)),null!=t&&uu(i,o),nt}function it(){let n=ke();const e=K();return lc()?cc():(n=n.parent,cn(n,!1)),e.firstCreatePass&&(Oo(e,n),Ql(n)&&e.queries.elementEnd(n)),it}function gn(n,e,t){return nt(n,e,t),it(),gn}function Nt(){return b()}function Ou(n){return!!n&&"function"==typeof n.then}function Sg(n){return!!n&&"function"==typeof n.subscribe}const $M=Sg;function je(n,e,t,i){const r=b(),s=K(),o=ke();return function Tg(n,e,t,i,r,s,o,a){const l=Mo(i),u=n.firstCreatePass&&Lm(n),d=e[8],h=Nm(e);let f=!0;if(3&i.type||a){const _=mt(i,e),y=a?a(_):_,g=h.length,E=a?T=>a(Te(T[i.index])):i.index;if(Ee(t)){let T=null;if(!a&&l&&(T=function UM(n,e,t,i){const r=n.cleanup;if(null!=r)for(let s=0;s<r.length-1;s+=2){const o=r[s];if(o===t&&r[s+1]===i){const a=e[7],l=r[s+2];return a.length>l?a[l]:null}"string"==typeof o&&(s+=2)}return null}(n,e,r,i.index)),null!==T)(T.__ngLastListenerFn__||T).__ngNextListenerFn__=s,T.__ngLastListenerFn__=s,f=!1;else{s=Ru(i,e,d,s,!1);const H=t.listen(y,r,s);h.push(s,H),u&&u.push(r,E,g,g+1)}}else s=Ru(i,e,d,s,!0),y.addEventListener(r,s,o),h.push(s),u&&u.push(r,E,g,o)}else s=Ru(i,e,d,s,!1);const p=i.outputs;let m;if(f&&null!==p&&(m=p[r])){const _=m.length;if(_)for(let y=0;y<_;y+=2){const me=e[m[y]][m[y+1]].subscribe(s),ve=h.length;h.push(s,me),u&&u.push(r,i.index,ve,-(ve+1))}}}(s,r,r[j],o,n,e,!!t,i),je}function Ig(n,e,t,i){try{return!1!==t(i)}catch(r){return Vm(n,r),!1}}function Ru(n,e,t,i,r){return function s(o){if(o===Function)return i;const a=2&n.flags?gt(n.index,e):e;0==(32&e[2])&&pu(a);let l=Ig(e,0,i,o),c=s.__ngNextListenerFn__;for(;c;)l=Ig(e,0,c,o)&&l,c=c.__ngNextListenerFn__;return r&&!1===l&&(o.preventDefault(),o.returnValue=!1),l}}function Y(n=1){return function zD(n){return(L.lFrame.contextLView=function WD(n,e){for(;n>0;)e=e[15],n--;return e}(n,L.lFrame.contextLView))[8]}(n)}function zM(n,e){let t=null;const i=function J0(n){const e=n.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(n);for(let r=0;r<e.length;r++){const s=e[r];if("*"!==s){if(null===i?am(n,s,!0):nS(i,s))return r}else t=r}return t}function Er(n){const e=b()[16][6];if(!e.projection){const i=e.projection=ds(n?n.length:1,null),r=i.slice();let s=e.child;for(;null!==s;){const o=n?zM(s,n):0;null!==o&&(r[o]?r[o].projectionNext=s:i[o]=s,r[o]=s),s=s.next}}}function vi(n,e=0,t){const i=b(),r=K(),s=or(r,20+n,16,null,t||null);null===s.projection&&(s.projection=e),cc(),64!=(64&s.flags)&&function n0(n,e,t){Hp(e[j],0,e,t,Op(n,t,e),Fp(t.parent||e[6],t,e))}(r,i,s)}function Bg(n,e,t,i,r){const s=n[t+1],o=null===e;let a=i?Zt(s):xn(s),l=!1;for(;0!==a&&(!1===l||o);){const u=n[a+1];qM(n[a],e)&&(l=!0,n[a+1]=i?Jc(u):Zc(u)),a=i?Zt(u):xn(u)}l&&(n[t+1]=i?Zc(s):Jc(s))}function qM(n,e){return null===n||null==e||(Array.isArray(n)?n[1]:n)===e||!(!Array.isArray(n)||"string"!=typeof e)&&nr(n,e)>=0}const Ne={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Vg(n){return n.substring(Ne.key,Ne.keyEnd)}function YM(n){return n.substring(Ne.value,Ne.valueEnd)}function jg(n,e){const t=Ne.textEnd;let i=Ne.key=Dr(n,e,t);return t===i?-1:(i=Ne.keyEnd=function QM(n,e,t){let i;for(;e<t&&(45===(i=n.charCodeAt(e))||95===i||(-33&i)>=65&&(-33&i)<=90||i>=48&&i<=57);)e++;return e}(n,i,t),i=Ug(n,i,t),i=Ne.value=Dr(n,i,t),i=Ne.valueEnd=function JM(n,e,t){let i=-1,r=-1,s=-1,o=e,a=o;for(;o<t;){const l=n.charCodeAt(o++);if(59===l)return a;34===l||39===l?a=o=zg(n,l,o,t):e===o-4&&85===s&&82===r&&76===i&&40===l?a=o=zg(n,41,o,t):l>32&&(a=o),s=r,r=i,i=-33&l}return a}(n,i,t),Ug(n,i,t))}function Dr(n,e,t){for(;e<t&&n.charCodeAt(e)<=32;)e++;return e}function Ug(n,e,t,i){return(e=Dr(n,e,t))<t&&e++,e}function zg(n,e,t,i){let r=-1,s=t;for(;s<i;){const o=n.charCodeAt(s++);if(o==e&&92!==r)return s;r=92==o&&92===r?0:o}throw new Error}function Is(n,e,t){return en(n,e,t,!1),Is}function _n(n,e){return en(n,e,null,!0),_n}function Jt(n){!function tn(n,e,t,i){const r=K(),s=In(2);r.firstUpdatePass&&Gg(r,null,s,i);const o=b();if(t!==B&&Ke(o,s,t)){const a=r.data[Je()];if(Xg(a,i)&&!Wg(r,s)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(t=$l(l,t||"")),Au(r,a,o,t,i)}else!function aT(n,e,t,i,r,s,o,a){r===B&&(r=ae);let l=0,c=0,u=0<r.length?r[0]:null,d=0<s.length?s[0]:null;for(;null!==u||null!==d;){const h=l<r.length?r[l+1]:void 0,f=c<s.length?s[c+1]:void 0;let m,p=null;u===d?(l+=2,c+=2,h!==f&&(p=d,m=f)):null===d||null!==u&&u<d?(l+=2,p=u):(c+=2,p=d,m=f),null!==p&&Yg(n,e,t,i,p,m,o,a),u=l<r.length?r[l]:null,d=c<s.length?s[c]:null}}(r,a,o,o[j],o[s+1],o[s+1]=function oT(n,e,t){if(null==t||""===t)return ae;const i=[],r=vt(t);if(Array.isArray(r))for(let s=0;s<r.length;s++)n(i,r[s],!0);else if("object"==typeof r)for(const s in r)r.hasOwnProperty(s)&&n(i,s,r[s]);else"string"==typeof r&&e(i,r);return i}(n,e,t),i,s)}}(qg,eT,n,!1)}function eT(n,e){for(let t=function XM(n){return function $g(n){Ne.key=0,Ne.keyEnd=0,Ne.value=0,Ne.valueEnd=0,Ne.textEnd=n.length}(n),jg(n,Dr(n,0,Ne.textEnd))}(e);t>=0;t=jg(e,t))qg(n,Vg(e),YM(e))}function en(n,e,t,i){const r=b(),s=K(),o=In(2);s.firstUpdatePass&&Gg(s,n,o,i),e!==B&&Ke(r,o,e)&&Yg(s,s.data[Je()],r,r[j],n,r[o+1]=function lT(n,e){return null==n||("string"==typeof e?n+=e:"object"==typeof n&&(n=te(vt(n)))),n}(e,t),i,o)}function Wg(n,e){return e>=n.expandoStartIndex}function Gg(n,e,t,i){const r=n.data;if(null===r[t+1]){const s=r[Je()],o=Wg(n,t);Xg(s,i)&&null===e&&!o&&(e=!1),e=function nT(n,e,t,i){const r=function dc(n){const e=L.lFrame.currentDirectiveIndex;return-1===e?null:n[e]}(n);let s=i?e.residualClasses:e.residualStyles;if(null===r)0===(i?e.classBindings:e.styleBindings)&&(t=xs(t=Pu(null,n,e,t,i),e.attrs,i),s=null);else{const o=e.directiveStylingLast;if(-1===o||n[o]!==r)if(t=Pu(r,n,e,t,i),null===s){let l=function iT(n,e,t){const i=t?e.classBindings:e.styleBindings;if(0!==xn(i))return n[Zt(i)]}(n,e,i);void 0!==l&&Array.isArray(l)&&(l=Pu(null,n,e,l[1],i),l=xs(l,e.attrs,i),function rT(n,e,t,i){n[Zt(t?e.classBindings:e.styleBindings)]=i}(n,e,i,l))}else s=function sT(n,e,t){let i;const r=e.directiveEnd;for(let s=1+e.directiveStylingLast;s<r;s++)i=xs(i,n[s].hostAttrs,t);return xs(i,e.attrs,t)}(n,e,i)}return void 0!==s&&(i?e.residualClasses=s:e.residualStyles=s),t}(r,s,e,i),function WM(n,e,t,i,r,s){let o=s?e.classBindings:e.styleBindings,a=Zt(o),l=xn(o);n[i]=t;let u,c=!1;if(Array.isArray(t)){const d=t;u=d[1],(null===u||nr(d,u)>0)&&(c=!0)}else u=t;if(r)if(0!==l){const h=Zt(n[a+1]);n[i+1]=Qo(h,a),0!==h&&(n[h+1]=Qc(n[h+1],i)),n[a+1]=function oS(n,e){return 131071&n|e<<17}(n[a+1],i)}else n[i+1]=Qo(a,0),0!==a&&(n[a+1]=Qc(n[a+1],i)),a=i;else n[i+1]=Qo(l,0),0===a?a=i:n[l+1]=Qc(n[l+1],i),l=i;c&&(n[i+1]=Zc(n[i+1])),Bg(n,u,i,!0),Bg(n,u,i,!1),function GM(n,e,t,i,r){const s=r?n.residualClasses:n.residualStyles;null!=s&&"string"==typeof e&&nr(s,e)>=0&&(t[i+1]=Jc(t[i+1]))}(e,u,n,i,s),o=Qo(a,l),s?e.classBindings=o:e.styleBindings=o}(r,s,e,t,o,i)}}function Pu(n,e,t,i,r){let s=null;const o=t.directiveEnd;let a=t.directiveStylingLast;for(-1===a?a=t.directiveStart:a++;a<o&&(s=e[a],i=xs(i,s.hostAttrs,r),s!==n);)a++;return null!==n&&(t.directiveStylingLast=a),i}function xs(n,e,t){const i=t?1:2;let r=-1;if(null!==e)for(let s=0;s<e.length;s++){const o=e[s];"number"==typeof o?r=o:r===i&&(Array.isArray(n)||(n=void 0===n?[]:["",n]),_t(n,o,!!t||e[++s]))}return void 0===n?null:n}function qg(n,e,t){_t(n,e,vt(t))}function Yg(n,e,t,i,r,s,o,a){if(!(3&e.type))return;const l=n.data,c=l[a+1];aa(function hm(n){return 1==(1&n)}(c)?Kg(l,e,t,r,xn(c),o):void 0)||(aa(s)||function dm(n){return 2==(2&n)}(c)&&(s=Kg(l,null,t,r,a,o)),function s0(n,e,t,i,r){const s=Ee(n);if(e)r?s?n.addClass(t,i):t.classList.add(i):s?n.removeClass(t,i):t.classList.remove(i);else{let o=-1===i.indexOf("-")?void 0:yt.DashCase;if(null==r)s?n.removeStyle(t,i,o):t.style.removeProperty(i);else{const a="string"==typeof r&&r.endsWith("!important");a&&(r=r.slice(0,-10),o|=yt.Important),s?n.setStyle(t,i,r,o):t.style.setProperty(i,r,a?"important":"")}}}(i,o,To(Je(),t),r,s))}function Kg(n,e,t,i,r,s){const o=null===e;let a;for(;r>0;){const l=n[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=t[r+1];h===B&&(h=d?ae:void 0);let f=d?Ec(h,i):u===i?h:void 0;if(c&&!aa(f)&&(f=Ec(l,i)),aa(f)&&(a=f,o))return a;const p=n[r+1];r=o?Zt(p):xn(p)}if(null!==e){let l=s?e.residualClasses:e.residualStyles;null!=l&&(a=Ec(l,i))}return a}function aa(n){return void 0!==n}function Xg(n,e){return 0!=(n.flags&(e?16:32))}function Rn(n,e=""){const t=b(),i=K(),r=n+20,s=i.firstCreatePass?or(i,r,1,e,null):i.data[r],o=t[r]=function Pc(n,e){return Ee(n)?n.createText(e):n.createTextNode(e)}(t[j],e);qo(i,t,o,s),cn(s,!1)}function vn(n){return Fu("",n,""),vn}function Fu(n,e,t){const i=b(),r=function fr(n,e,t,i){return Ke(n,Yi(),t)?e+N(t)+i:B}(i,n,e,t);return r!==B&&An(i,Je(),r),Fu}const la="en-US";let y_=la;function Bu(n,e,t,i,r){if(n=$(n),Array.isArray(n))for(let s=0;s<n.length;s++)Bu(n[s],e,t,i,r);else{const s=K(),o=b();let a=ur(n)?n:$(n.provide),l=Wm(n);const c=ke(),u=1048575&c.providerIndexes,d=c.directiveStart,h=c.providerIndexes>>20;if(ur(n)||!n.multi){const f=new ss(l,r,w),p=Hu(a,e,r?u:u+h,d);-1===p?(Bo(as(c,o),s,a),Vu(s,n,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),t.push(f),o.push(f)):(t[p]=f,o[p]=f)}else{const f=Hu(a,e,u+h,d),p=Hu(a,e,u,u+h),m=f>=0&&t[f],_=p>=0&&t[p];if(r&&!_||!r&&!m){Bo(as(c,o),s,a);const y=function TI(n,e,t,i,r){const s=new ss(n,t,w);return s.multi=[],s.index=e,s.componentProviders=0,$_(s,r,i&&!t),s}(r?MI:SI,t.length,r,i,l);!r&&_&&(t[p].providerFactory=y),Vu(s,n,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),t.push(y),o.push(y)}else Vu(s,n,f>-1?f:p,$_(t[r?p:f],l,!r&&i));!r&&i&&_&&t[p].componentProviders++}}}function Vu(n,e,t,i){const r=ur(e),s=function ZS(n){return!!n.useClass}(e);if(r||s){const l=(s?$(e.useClass):e).prototype.ngOnDestroy;if(l){const c=n.destroyHooks||(n.destroyHooks=[]);if(!r&&e.multi){const u=c.indexOf(t);-1===u?c.push(t,[i,l]):c[u+1].push(i,l)}else c.push(t,l)}}}function $_(n,e,t){return t&&n.componentProviders++,n.multi.push(e)-1}function Hu(n,e,t,i){for(let r=t;r<i;r++)if(e[r]===n)return r;return-1}function SI(n,e,t,i){return ju(this.multi,[])}function MI(n,e,t,i){const r=this.multi;let s;if(this.providerFactory){const o=this.providerFactory.componentProviders,a=ls(t,t[1],this.providerFactory.index,i);s=a.slice(0,o),ju(r,s);for(let l=o;l<a.length;l++)s.push(a[l])}else s=[],ju(r,s);return s}function ju(n,e){for(let t=0;t<n.length;t++)e.push((0,n[t])());return e}function U_(n,e=[]){return t=>{t.providersResolver=(i,r)=>function CI(n,e,t){const i=K();if(i.firstCreatePass){const r=Kt(n);Bu(t,i.data,i.blueprint,r,!0),Bu(e,i.data,i.blueprint,r,!1)}}(i,r?r(n):n,e)}}class z_{}class AI{resolveComponentFactory(e){throw function xI(n){const e=Error(`No component factory found for ${te(n)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=n,e}(e)}}let Xn=(()=>{class n{}return n.NULL=new AI,n})();function OI(){return Mr(ke(),b())}function Mr(n,e){return new Ie(mt(n,e))}let Ie=(()=>{class n{constructor(t){this.nativeElement=t}}return n.__NG_ELEMENT_ID__=OI,n})();function RI(n){return n instanceof Ie?n.nativeElement:n}class Ps{}let fa=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function PI(){const n=b(),t=gt(ke().index,n);return function kI(n){return n[j]}(ln(t)?t:n)}(),n})(),FI=(()=>{class n{}return n.\u0275prov=x({token:n,providedIn:"root",factory:()=>null}),n})();class Tr{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const NI=new Tr("13.4.0"),$u={};function pa(n,e,t,i,r=!1){for(;null!==t;){const s=e[t.index];if(null!==s&&i.push(Te(s)),Yt(s))for(let a=10;a<s.length;a++){const l=s[a],c=l[1].firstChild;null!==c&&pa(l[1],l,c,i)}const o=t.type;if(8&o)pa(n,e,t.child,i);else if(32&o){const a=Oc(t,e);let l;for(;l=a();)i.push(l)}else if(16&o){const a=Vp(e,t);if(Array.isArray(a))i.push(...a);else{const l=ys(e[16]);pa(l[1],l,a,i,!0)}}t=r?t.projectionNext:t.next}return i}class Fs{constructor(e,t){this._lView=e,this._cdRefInjectingView=t,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const e=this._lView,t=e[1];return pa(t,e,t.firstChild,[])}get context(){return this._lView[8]}set context(e){this._lView[8]=e}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const e=this._lView[3];if(Yt(e)){const t=e[8],i=t?t.indexOf(this):-1;i>-1&&(Nc(e,i),jo(t,i))}this._attachedToViewContainer=!1}Ap(this._lView[1],this._lView)}onDestroy(e){Mm(this._lView[1],this._lView,null,e)}markForCheck(){pu(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function gu(n,e,t){const i=e[10];i.begin&&i.begin();try{lr(n,e,n.template,t)}catch(r){throw Vm(e,r),r}finally{i.end&&i.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new S(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function YC(n,e){vs(n,e,e[j],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new S(902,"");this._appRef=e}}class LI extends Fs{constructor(e){super(e),this._view=e}detectChanges(){Fm(this._view)}checkNoChanges(){}get context(){return null}}class G_ extends Xn{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const t=ze(e);return new Uu(t,this.ngModule)}}function q_(n){const e=[];for(let t in n)n.hasOwnProperty(t)&&e.push({propName:n[t],templateName:t});return e}class Uu extends z_{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=function rS(n){return n.map(iS).join(",")}(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return q_(this.componentDef.inputs)}get outputs(){return q_(this.componentDef.outputs)}create(e,t,i,r){const s=(r=r||this.ngModule)?function VI(n,e){return{get:(t,i,r)=>{const s=n.get(t,$u,r);return s!==$u||i===$u?s:e.get(t,i,r)}}}(e,r.injector):e,o=s.get(Ps,Of),a=s.get(FI,null),l=o.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",u=i?function Sm(n,e,t){if(Ee(n))return n.selectRootElement(e,t===Wt.ShadowDom);let i="string"==typeof e?n.querySelector(e):e;return i.textContent="",i}(l,i,this.componentDef.encapsulation):Fc(o.createRenderer(null,this.componentDef),c,function BI(n){const e=n.toLowerCase();return"svg"===e?"svg":"math"===e?"math":null}(c)),d=this.componentDef.onPush?576:528,h=function ig(n,e){return{components:[],scheduler:n||W0,clean:$S,playerHandler:e||null,flags:0}}(),f=ta(0,null,null,1,0,null,null,null,null,null),p=Ds(null,f,h,d,null,null,o,l,a,s);let m,_;xo(p);try{const y=function tg(n,e,t,i,r,s){const o=t[1];t[20]=n;const l=or(o,20,2,"#host",null),c=l.mergedAttrs=e.hostAttrs;null!==c&&(ia(l,c,!0),null!==n&&(Po(r,n,c),null!==l.classes&&$c(r,n,l.classes),null!==l.styles&&jp(r,n,l.styles)));const u=i.createRenderer(n,e),d=Ds(t,Dm(e),null,e.onPush?64:16,t[20],l,i,u,s||null,null);return o.firstCreatePass&&(Bo(as(l,t),o,e.type),Om(o,l),Rm(l,t.length,1)),na(t,d),t[20]=d}(u,this.componentDef,p,o,l);if(u)if(i)Po(l,u,["ng-version",NI.full]);else{const{attrs:g,classes:E}=function sS(n){const e=[],t=[];let i=1,r=2;for(;i<n.length;){let s=n[i];if("string"==typeof s)2===r?""!==s&&e.push(s,n[++i]):8===r&&t.push(s);else{if(!Xt(r))break;r=s}i++}return{attrs:e,classes:t}}(this.componentDef.selectors[0]);g&&Po(l,u,g),E&&E.length>0&&$c(l,u,E.join(" "))}if(_=sc(f,20),void 0!==t){const g=_.projection=[];for(let E=0;E<this.ngContentSelectors.length;E++){const T=t[E];g.push(null!=T?Array.from(T):null)}}m=function ng(n,e,t,i,r){const s=t[1],o=function MS(n,e,t){const i=ke();n.firstCreatePass&&(t.providersResolver&&t.providersResolver(t),km(n,i,e,ar(n,e,1,null),t));const r=ls(e,n,i.directiveStart,i);Ye(r,e);const s=mt(i,e);return s&&Ye(s,e),r}(s,t,e);if(i.components.push(o),n[8]=o,r&&r.forEach(l=>l(o,e)),e.contentQueries){const l=ke();e.contentQueries(1,o,l.directiveStart)}const a=ke();return!s.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(zn(a.index),xm(t[1],a,0,a.directiveStart,a.directiveEnd,e),Am(e,o)),o}(y,this.componentDef,p,h,[lM]),Cs(f,p,null)}finally{Ao()}return new jI(this.componentType,m,Mr(_,p),p,_)}}class jI extends class II{}{constructor(e,t,i,r,s){super(),this.location=i,this._rootLView=r,this._tNode=s,this.instance=t,this.hostView=this.changeDetectorRef=new LI(r),this.componentType=e}get injector(){return new Zi(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}}class Ir{}const xr=new Map;class X_ extends Ir{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new G_(this);const i=Ot(e);this._bootstrapComponents=fn(i.bootstrap),this._r3Injector=zm(e,t,[{provide:Ir,useValue:this},{provide:Xn,useValue:this.componentFactoryResolver}],te(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,t=tt.THROW_IF_NOT_FOUND,i=V.Default){return e===tt||e===Ir||e===yu?this:this._r3Injector.get(e,t,i)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class zu extends class UI{}{constructor(e){super(),this.moduleType=e,null!==Ot(e)&&function zI(n){const e=new Set;!function t(i){const r=Ot(i,!0),s=r.id;null!==s&&(function Y_(n,e,t){if(e&&e!==t)throw new Error(`Duplicate module registered for ${n} - ${te(e)} vs ${te(e.name)}`)}(s,xr.get(s),i),xr.set(s,i));const o=fn(r.imports);for(const a of o)e.has(a)||(e.add(a),t(a))}(n)}(e)}create(e){return new X_(this.moduleType,e)}}function Z_(n,e,t,i,r,s){const o=e+t;return Ke(n,o,r)?function mn(n,e,t){return n[e]=t}(n,o+1,s?i.call(s,r):i(r)):function Ns(n,e){const t=n[e];return t===B?void 0:t}(n,o+1)}function iy(n,e,t){const i=n+20,r=b(),s=qi(r,i);return function Ls(n,e){return n[1].data[e].pure}(r,i)?Z_(r,function Qe(){const n=L.lFrame;let e=n.bindingRootIndex;return-1===e&&(e=n.bindingRootIndex=n.tView.bindingStartIndex),e}(),e,s.transform,t,s):s.transform(t)}function Wu(n){return e=>{setTimeout(n,void 0,e)}}const xe=class ox extends de{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,i){var r,s,o;let a=e,l=t||(()=>null),c=i;if(e&&"object"==typeof e){const d=e;a=null===(r=d.next)||void 0===r?void 0:r.bind(d),l=null===(s=d.error)||void 0===s?void 0:s.bind(d),c=null===(o=d.complete)||void 0===o?void 0:o.bind(d)}this.__isAsync&&(l=Wu(l),a&&(a=Wu(a)),c&&(c=Wu(c)));const u=super.subscribe({next:a,error:l,complete:c});return e instanceof Z&&e.add(u),u}};function ax(){return this._results[dr()]()}class Ar{constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const t=dr(),i=Ar.prototype;i[t]||(i[t]=ax)}get changes(){return this._changes||(this._changes=new xe)}get(e){return this._results[e]}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,t){const i=this;i.dirty=!1;const r=Pt(e);(this._changesDetected=!function uC(n,e,t){if(n.length!==e.length)return!1;for(let i=0;i<n.length;i++){let r=n[i],s=e[i];if(t&&(r=t(r),s=t(s)),s!==r)return!1}return!0}(i._results,r,t))&&(i._results=r,i.length=r.length,i.last=r[this.length-1],i.first=r[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;let bn=(()=>{class n{}return n.__NG_ELEMENT_ID__=ux,n})();const lx=bn,cx=class extends lx{constructor(e,t,i){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=i}createEmbeddedView(e){const t=this._declarationTContainer.tViews,i=Ds(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(i[19]=s.createEmbeddedView(t)),Cs(t,i,e),new Fs(i)}};function ux(){return ma(ke(),b())}function ma(n,e){return 4&n.type?new cx(e,n,Mr(n,e)):null}let lt=(()=>{class n{}return n.__NG_ELEMENT_ID__=dx,n})();function dx(){return oy(ke(),b())}const hx=lt,ry=class extends hx{constructor(e,t,i){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=i}get element(){return Mr(this._hostTNode,this._hostLView)}get injector(){return new Zi(this._hostTNode,this._hostLView)}get parentInjector(){const e=Lo(this._hostTNode,this._hostLView);if(Kf(e)){const t=Xi(e,this._hostLView),i=Ki(e);return new Zi(t[1].data[i+8],t)}return new Zi(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const t=sy(this._lContainer);return null!==t&&t[e]||null}get length(){return this._lContainer.length-10}createEmbeddedView(e,t,i){const r=e.createEmbeddedView(t||{});return this.insert(r,i),r}createComponent(e,t,i,r,s){const o=e&&!function us(n){return"function"==typeof n}(e);let a;if(o)a=t;else{const d=t||{};a=d.index,i=d.injector,r=d.projectableNodes,s=d.ngModuleRef}const l=o?e:new Uu(ze(e)),c=i||this.parentInjector;if(!s&&null==l.ngModule){const h=(o?c:this.parentInjector).get(Ir,null);h&&(s=h)}const u=l.create(c,r,void 0,s);return this.insert(u.hostView,a),u}insert(e,t){const i=e._lView,r=i[1];if(function kD(n){return Yt(n[3])}(i)){const u=this.indexOf(e);if(-1!==u)this.detach(u);else{const d=i[3],h=new ry(d,d[6],d[3]);h.detach(h.indexOf(e))}}const s=this._adjustIndex(t),o=this._lContainer;!function XC(n,e,t,i){const r=10+i,s=t.length;i>0&&(t[r-1][4]=e),i<s-10?(e[4]=t[r],op(t,10+i,e)):(t.push(e),e[4]=null),e[3]=t;const o=e[17];null!==o&&t!==o&&function ZC(n,e){const t=n[9];e[16]!==e[3][3][16]&&(n[2]=!0),null===t?n[9]=[e]:t.push(e)}(o,e);const a=e[19];null!==a&&a.insertView(n),e[2]|=128}(r,i,o,s);const a=Vc(s,o),l=i[j],c=Go(l,o[7]);return null!==c&&function qC(n,e,t,i,r,s){i[0]=r,i[6]=e,vs(n,i,t,1,r,s)}(r,o[6],l,i,c,a),e.attachToViewContainerRef(),op(Gu(o),s,e),e}move(e,t){return this.insert(e,t)}indexOf(e){const t=sy(this._lContainer);return null!==t?t.indexOf(e):-1}remove(e){const t=this._adjustIndex(e,-1),i=Nc(this._lContainer,t);i&&(jo(Gu(this._lContainer),t),Ap(i[1],i))}detach(e){const t=this._adjustIndex(e,-1),i=Nc(this._lContainer,t);return i&&null!=jo(Gu(this._lContainer),t)?new Fs(i):null}_adjustIndex(e,t=0){return null==e?this.length+t:e}};function sy(n){return n[8]}function Gu(n){return n[8]||(n[8]=[])}function oy(n,e){let t;const i=e[n.index];if(Yt(i))t=i;else{let r;if(8&n.type)r=Te(i);else{const s=e[j];r=s.createComment("");const o=mt(n,e);mi(s,Go(s,o),r,function t0(n,e){return Ee(n)?n.nextSibling(e):e.nextSibling}(s,o),!1)}e[n.index]=t=Pm(i,e,r,n),na(e,t)}return new ry(t,n,e)}class qu{constructor(e){this.queryList=e,this.matches=null}clone(){return new qu(this.queryList)}setDirty(){this.queryList.setDirty()}}class Yu{constructor(e=[]){this.queries=e}createEmbeddedView(e){const t=e.queries;if(null!==t){const i=null!==e.contentQueries?e.contentQueries[0]:t.length,r=[];for(let s=0;s<i;s++){const o=t.getByIndex(s);r.push(this.queries[o.indexInDeclarationView].clone())}return new Yu(r)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let t=0;t<this.queries.length;t++)null!==dy(e,t).matches&&this.queries[t].setDirty()}}class ay{constructor(e,t,i=null){this.predicate=e,this.flags=t,this.read=i}}class Ku{constructor(e=[]){this.queries=e}elementStart(e,t){for(let i=0;i<this.queries.length;i++)this.queries[i].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 i=0;i<this.length;i++){const r=null!==t?t.length:0,s=this.getByIndex(i).embeddedTView(e,r);s&&(s.indexInDeclarationView=i,null!==t?t.push(s):t=[s])}return null!==t?new Ku(t):null}template(e,t){for(let i=0;i<this.queries.length;i++)this.queries[i].template(e,t)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}}class Xu{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 Xu(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const t=this._declarationNodeIndex;let i=e.parent;for(;null!==i&&8&i.type&&i.index!==t;)i=i.parent;return t===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(e,t){const i=this.metadata.predicate;if(Array.isArray(i))for(let r=0;r<i.length;r++){const s=i[r];this.matchTNodeWithReadOption(e,t,mx(t,s)),this.matchTNodeWithReadOption(e,t,Vo(t,e,s,!1,!1))}else i===bn?4&t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,Vo(t,e,i,!1,!1))}matchTNodeWithReadOption(e,t,i){if(null!==i){const r=this.metadata.read;if(null!==r)if(r===Ie||r===lt||r===bn&&4&t.type)this.addMatch(t.index,-2);else{const s=Vo(t,e,r,!1,!1);null!==s&&this.addMatch(t.index,s)}else this.addMatch(t.index,i)}}addMatch(e,t){null===this.matches?this.matches=[e,t]:this.matches.push(e,t)}}function mx(n,e){const t=n.localNames;if(null!==t)for(let i=0;i<t.length;i+=2)if(t[i]===e)return t[i+1];return null}function _x(n,e,t,i){return-1===t?function gx(n,e){return 11&n.type?Mr(n,e):4&n.type?ma(n,e):null}(e,n):-2===t?function yx(n,e,t){return t===Ie?Mr(e,n):t===bn?ma(e,n):t===lt?oy(e,n):void 0}(n,e,i):ls(n,n[1],t,e)}function ly(n,e,t,i){const r=e[19].queries[i];if(null===r.matches){const s=n.data,o=t.matches,a=[];for(let l=0;l<o.length;l+=2){const c=o[l];a.push(c<0?null:_x(e,s[c],o[l+1],t.metadata.read))}r.matches=a}return r.matches}function Zu(n,e,t,i){const r=n.queries.getByIndex(t),s=r.matches;if(null!==s){const o=ly(n,e,r,t);for(let a=0;a<s.length;a+=2){const l=s[a];if(l>0)i.push(o[a/2]);else{const c=s[a+1],u=e[-l];for(let d=10;d<u.length;d++){const h=u[d];h[17]===h[3]&&Zu(h[1],h,c,i)}if(null!==u[9]){const d=u[9];for(let h=0;h<d.length;h++){const f=d[h];Zu(f[1],f,c,i)}}}}}return i}function Zn(n){const e=b(),t=K(),i=Vf();hc(i+1);const r=dy(t,i);if(n.dirty&&Rf(e)===(2==(2&r.metadata.flags))){if(null===r.matches)n.reset([]);else{const s=r.crossesNgTemplate?Zu(t,e,i,[]):ly(t,e,r,i);n.reset(s,RI),n.notifyOnChanges()}return!0}return!1}function Bs(n,e,t){const i=K();i.firstCreatePass&&(uy(i,new ay(n,e,t),-1),2==(2&e)&&(i.staticViewQueries=!0)),cy(i,b(),e)}function ga(n,e,t,i){const r=K();if(r.firstCreatePass){const s=ke();uy(r,new ay(e,t,i),s.index),function bx(n,e){const t=n.contentQueries||(n.contentQueries=[]);e!==(t.length?t[t.length-1]:-1)&&t.push(n.queries.length-1,e)}(r,n),2==(2&t)&&(r.staticContentQueries=!0)}cy(r,b(),t)}function Qn(){return function vx(n,e){return n[19].queries[e].queryList}(b(),Vf())}function cy(n,e,t){const i=new Ar(4==(4&t));Mm(n,e,i,i.destroy),null===e[19]&&(e[19]=new Yu),e[19].queries.push(new qu(i))}function uy(n,e,t){null===n.queries&&(n.queries=new Ku),n.queries.track(new Xu(e,t))}function dy(n,e){return n.queries.getByIndex(e)}function hy(n,e){return ma(n,e)}function va(...n){}const ba=new I("Application Initializer");let id=(()=>{class n{constructor(t){this.appInits=t,this.resolve=va,this.reject=va,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const t=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r<this.appInits.length;r++){const s=this.appInits[r]();if(Ou(s))t.push(s);else if($M(s)){const o=new Promise((a,l)=>{s.subscribe({complete:a,error:l})});t.push(o)}}Promise.all(t).then(()=>{i()}).catch(r=>{this.reject(r)}),0===t.length&&i(),this.initialized=!0}}return n.\u0275fac=function(t){return new(t||n)(v(ba,8))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Hs=new I("AppId",{providedIn:"root",factory:function xy(){return`${rd()}${rd()}${rd()}`}});function rd(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Ay=new I("Platform Initializer"),wa=new I("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Lx=new I("appBootstrapListener"),kn=new I("LocaleId",{providedIn:"root",factory:()=>zo(kn,V.Optional|V.SkipSelf)||function Bx(){return"undefined"!=typeof $localize&&$localize.locale||la}()}),$x=(()=>Promise.resolve(0))();function sd(n){"undefined"==typeof Zone?$x.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class re{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new xe(!1),this.onMicrotaskEmpty=new xe(!1),this.onStable=new xe(!1),this.onError=new xe(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&t,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function Ux(){let n=se.requestAnimationFrame,e=se.cancelAnimationFrame;if("undefined"!=typeof Zone&&n&&e){const t=n[Zone.__symbol__("OriginalDelegate")];t&&(n=t);const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function Gx(n){const e=()=>{!function Wx(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(se,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,ad(n),n.isCheckStableRunning=!0,od(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),ad(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,i,r,s,o,a)=>{try{return Oy(n),t.invokeTask(r,s,o,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||n.shouldCoalesceRunChangeDetection)&&e(),Ry(n)}},onInvoke:(t,i,r,s,o,a,l)=>{try{return Oy(n),t.invoke(r,s,o,a,l)}finally{n.shouldCoalesceRunChangeDetection&&e(),Ry(n)}},onHasTask:(t,i,r,s)=>{t.hasTask(r,s),i===r&&("microTask"==s.change?(n._hasPendingMicrotasks=s.microTask,ad(n),od(n)):"macroTask"==s.change&&(n.hasPendingMacrotasks=s.macroTask))},onHandleError:(t,i,r,s)=>(t.handleError(r,s),n.runOutsideAngular(()=>n.onError.emit(s)),!1)})}(r)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!re.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(re.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,i){return this._inner.run(e,t,i)}runTask(e,t,i,r){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+r,e,zx,va,va);try{return s.runTask(o,t,i)}finally{s.cancelTask(o)}}runGuarded(e,t,i){return this._inner.runGuarded(e,t,i)}runOutsideAngular(e){return this._outer.run(e)}}const zx={};function od(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function ad(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function Oy(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function Ry(n){n._nesting--,od(n)}class qx{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new xe,this.onMicrotaskEmpty=new xe,this.onStable=new xe,this.onError=new xe}run(e,t,i){return e.apply(t,i)}runGuarded(e,t,i){return e.apply(t,i)}runOutsideAngular(e){return e()}runTask(e,t,i,r){return e.apply(t,i)}}let ld=(()=>{class n{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.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:()=>{re.assertNotInAngularZone(),sd(()=>{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())sd(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(t)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,i,r){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==s),t(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:t,timeoutId:s,updateCb:r})}whenStable(t,i,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,i,r){return[]}}return n.\u0275fac=function(t){return new(t||n)(v(re))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),Yx=(()=>{class n{constructor(){this._applications=new Map,cd.addToWindow(this)}registerApplication(t,i){this._applications.set(t,i)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,i=!0){return cd.findTestabilityInTree(this,t,i)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();class Kx{addToWindow(e){}findTestabilityInTree(e,t,i){return null}}let cd=new Kx,wi=null;const ky=new I("AllowMultipleToken"),Py=new I("PlatformOnDestroy");function Fy(n,e,t=[]){const i=`Platform: ${e}`,r=new I(i);return(s=[])=>{let o=ud();if(!o||o.injector.get(ky,!1)){const a=[...t,...s,{provide:r,useValue:!0}];n?n(a):function Jx(n){if(wi&&!wi.get(ky,!1))throw new S(400,"");wi=n;const e=n.get(Ny),t=n.get(Ay,null);t&&t.forEach(i=>i())}(function tA(n=[],e){return tt.create({name:e,providers:[{provide:vu,useValue:"platform"},{provide:Py,useValue:()=>wi=null},...n]})}(a,i))}return function eA(n){const e=ud();if(!e)throw new S(401,"");return e}()}}function ud(){var n;return null!==(n=null==wi?void 0:wi.get(Ny))&&void 0!==n?n:null}let Ny=(()=>{class n{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,i){const a=function nA(n,e){let t;return t="noop"===n?new qx:("zone.js"===n?void 0:n)||new re({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),t}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),l=[{provide:re,useValue:a}];return a.run(()=>{const c=tt.create({providers:l,parent:this.injector,name:t.moduleType.name}),u=t.create(c),d=u.injector.get(Gn,null);if(!d)throw new S(402,"");return a.runOutsideAngular(()=>{const h=a.onError.subscribe({next:f=>{d.handleError(f)}});u.onDestroy(()=>{dd(this._modules,u),h.unsubscribe()})}),function iA(n,e,t){try{const i=t();return Ou(i)?i.catch(r=>{throw e.runOutsideAngular(()=>n.handleError(r)),r}):i}catch(i){throw e.runOutsideAngular(()=>n.handleError(i)),i}}(d,a,()=>{const h=u.injector.get(id);return h.runInitializers(),h.donePromise.then(()=>(function kT(n){ft(n,"Expected localeId to be defined"),"string"==typeof n&&(y_=n.toLowerCase().replace(/_/g,"-"))}(u.injector.get(kn,la)||la),this._moduleDoBootstrap(u),u))})})}bootstrapModule(t,i=[]){const r=Ly({},i);return function Zx(n,e,t){const i=new zu(t);return Promise.resolve(i)}(0,0,t).then(s=>this.bootstrapModuleFactory(s,r))}_moduleDoBootstrap(t){const i=t.injector.get(Ea);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!t.instance.ngDoBootstrap)throw new S(403,"");t.instance.ngDoBootstrap(i)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new S(404,"");this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const t=this._injector.get(Py,null);null==t||t(),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(t){return new(t||n)(v(tt))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function Ly(n,e){return Array.isArray(e)?e.reduce(Ly,n):Object.assign(Object.assign({},n),e)}let Ea=(()=>{class n{constructor(t,i,r,s){this._zone=t,this._injector=i,this._exceptionHandler=r,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new le(l=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{l.next(this._stable),l.complete()})}),a=new le(l=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{re.assertNotInAngularZone(),sd(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,l.next(!0))})})});const u=this._zone.onUnstable.subscribe(()=>{re.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{l.next(!1)}))});return()=>{c.unsubscribe(),u.unsubscribe()}});this.isStable=Hi(o,a.pipe(mf()))}bootstrap(t,i){if(!this._initStatus.done)throw new S(405,"");let r;r=t instanceof z_?t:this._injector.get(Xn).resolveComponentFactory(t),this.componentTypes.push(r.componentType);const s=function Qx(n){return n.isBoundToModule}(r)?void 0:this._injector.get(Ir),a=r.create(tt.NULL,[],i||r.selector,s),l=a.location.nativeElement,c=a.injector.get(ld,null),u=c&&a.injector.get(Yx);return c&&u&&u.registerApplication(l,c),a.onDestroy(()=>{this.detachView(a.hostView),dd(this.components,a),u&&u.unregisterApplication(l)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new S(101,"");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const i=t;this._views.push(i),i.attachToAppRef(this)}detachView(t){const i=t;dd(this._views,i),i.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Lx,[]).concat(this._bootstrapListeners).forEach(r=>r(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return n.\u0275fac=function(t){return new(t||n)(v(re),v(tt),v(Gn),v(id))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function dd(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}let Vy=!0,Ei=(()=>{class n{}return n.__NG_ELEMENT_ID__=oA,n})();function oA(n){return function aA(n,e,t){if(So(n)&&!t){const i=gt(n.index,e);return new Fs(i,i)}return 47&n.type?new Fs(e[16],e):null}(ke(),b(),16==(16&n))}class zy{constructor(){}supports(e){return Ms(e)}create(e){return new fA(e)}}const hA=(n,e)=>e;class fA{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||hA}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,i=this._removalsHead,r=0,s=null;for(;t||i;){const o=!i||t&&t.currentIndex<Gy(i,r,s)?t:i,a=Gy(o,r,s),l=o.currentIndex;if(o===i)r--,i=i._nextRemoved;else if(t=t._next,null==o.previousIndex)r++;else{s||(s=[]);const c=a-r,u=l-r;if(c!=u){for(let h=0;h<c;h++){const f=h<s.length?s[h]:s[h]=0,p=f+h;u<=p&&p<c&&(s[h]=f+1)}s[o.previousIndex]=u-c}}a!==l&&e(o,a,l)}}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=[]),!Ms(e))throw new S(900,"");return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let r,s,o,t=this._itHead,i=!1;if(Array.isArray(e)){this.length=e.length;for(let a=0;a<this.length;a++)s=e[a],o=this._trackByFn(a,s),null!==t&&Object.is(t.trackById,o)?(i&&(t=this._verifyReinsertion(t,s,o,a)),Object.is(t.item,s)||this._addIdentityChange(t,s)):(t=this._mismatch(t,s,o,a),i=!0),t=t._next}else r=0,function yM(n,e){if(Array.isArray(n))for(let t=0;t<n.length;t++)e(n[t]);else{const t=n[dr()]();let i;for(;!(i=t.next()).done;)e(i.value)}}(e,a=>{o=this._trackByFn(r,a),null!==t&&Object.is(t.trackById,o)?(i&&(t=this._verifyReinsertion(t,a,o,r)),Object.is(t.item,a)||this._addIdentityChange(t,a)):(t=this._mismatch(t,a,o,r),i=!0),t=t._next,r++}),this.length=r;return this._truncate(t),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;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,i,r){let s;return null===e?s=this._itTail:(s=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,s,r)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,s,r)):e=this._addAfter(new pA(t,i),s,r),e}_verifyReinsertion(e,t,i,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?e=this._reinsertAfter(s,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),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,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const r=e._prevRemoved,s=e._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(e,t,i),this._addToMoves(e,i),e}_moveAfter(e,t,i){return this._unlink(e),this._insertAfter(e,t,i),this._addToMoves(e,i),e}_addAfter(e,t,i){return this._insertAfter(e,t,i),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,i){const r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new Wy),this._linkedRecords.put(e),e.currentIndex=i,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,i=e._next;return null===t?this._itHead=i:t._next=i,null===i?this._itTail=t:i._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 Wy),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 pA{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 mA{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 i;for(i=this._head;null!==i;i=i._nextDup)if((null===t||t<=i.currentIndex)&&Object.is(i.trackById,e))return i;return null}remove(e){const t=e._prevDup,i=e._nextDup;return null===t?this._head=i:t._nextDup=i,null===i?this._tail=t:i._prevDup=t,null===this._head}}class Wy{constructor(){this.map=new Map}put(e){const t=e.trackById;let i=this.map.get(t);i||(i=new mA,this.map.set(t,i)),i.add(e)}get(e,t){const r=this.map.get(e);return r?r.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 Gy(n,e,t){const i=n.previousIndex;if(null===i)return i;let r=0;return t&&i<t.length&&(r=t[i]),i+e+r}class qy{constructor(){}supports(e){return e instanceof Map||Su(e)}create(){return new gA}}class gA{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||Su(e)))throw new S(900,"")}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,(i,r)=>{if(t&&t.key===r)this._maybeAddToChanges(t,i),this._appendAfter=t,t=t._next;else{const s=this._getOrCreateRecordForKey(r,i);t=this._insertBeforeOrAppend(t,s)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let i=t;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const i=e._prev;return t._next=e,t._prev=i,e._prev=t,i&&(i._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 r=this._records.get(e);this._maybeAddToChanges(r,t);const s=r._prev,o=r._next;return s&&(s._next=o),o&&(o._prev=s),r._next=null,r._prev=null,r}const i=new _A(e);return this._records.set(e,i),i.currentValue=t,this._addToAdditions(i),i}_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(i=>t(e[i],i))}}class _A{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}}function Yy(){return new Sa([new zy])}let Sa=(()=>{class n{constructor(t){this.factories=t}static create(t,i){if(null!=i){const r=i.factories.slice();t=t.concat(r)}return new n(t)}static extend(t){return{provide:n,useFactory:i=>n.create(t,i||Yy()),deps:[[n,new ms,new pi]]}}find(t){const i=this.factories.find(r=>r.supports(t));if(null!=i)return i;throw new S(901,"")}}return n.\u0275prov=x({token:n,providedIn:"root",factory:Yy}),n})();function Ky(){return new js([new qy])}let js=(()=>{class n{constructor(t){this.factories=t}static create(t,i){if(i){const r=i.factories.slice();t=t.concat(r)}return new n(t)}static extend(t){return{provide:n,useFactory:i=>n.create(t,i||Ky()),deps:[[n,new ms,new pi]]}}find(t){const i=this.factories.find(s=>s.supports(t));if(i)return i;throw new S(901,"")}}return n.\u0275prov=x({token:n,providedIn:"root",factory:Ky}),n})();const bA=Fy(null,"core",[]);let wA=(()=>{class n{constructor(t){}}return n.\u0275fac=function(t){return new(t||n)(v(Ea))},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({}),n})(),Ma=null;function Jn(){return Ma}const G=new I("DocumentToken");let $s=(()=>{class n{historyGo(t){throw new Error("Not implemented")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=x({token:n,factory:function(){return function SA(){return v(Xy)}()},providedIn:"platform"}),n})(),Xy=(()=>{class n extends $s{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Jn().getBaseHref(this._doc)}onPopState(t){const i=Jn().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",t,!1),()=>i.removeEventListener("popstate",t)}onHashChange(t){const i=Jn().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",t,!1),()=>i.removeEventListener("hashchange",t)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,i,r){Zy()?this._history.pushState(t,i,r):this.location.hash=r}replaceState(t,i,r){Zy()?this._history.replaceState(t,i,r):this.location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return n.\u0275fac=function(t){return new(t||n)(v(G))},n.\u0275prov=x({token:n,factory:function(){return function MA(){return new Xy(v(G))}()},providedIn:"platform"}),n})();function Zy(){return!!window.history.pushState}function Qy(n,e){if(0==n.length)return e;if(0==e.length)return n;let t=0;return n.endsWith("/")&&t++,e.startsWith("/")&&t++,2==t?n+e.substring(1):1==t?n+e:n+"/"+e}function Jy(n){const e=n.match(/#|\?|$/),t=e&&e.index||n.length;return n.slice(0,t-("/"===n[t-1]?1:0))+n.slice(t)}function Ci(n){return n&&"?"!==n[0]?"?"+n:n}let gd=(()=>{class n{historyGo(t){throw new Error("Not implemented")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=x({token:n,factory:function(){return function TA(n){const e=v(G).location;return new xA(v($s),e&&e.origin||"")}()},providedIn:"root"}),n})();const IA=new I("appBaseHref");let xA=(()=>{class n extends gd{constructor(t,i){if(super(),this._platformLocation=t,this._removeListenerFns=[],null==i&&(i=this._platformLocation.getBaseHrefFromDOM()),null==i)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=i}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return Qy(this._baseHref,t)}path(t=!1){const i=this._platformLocation.pathname+Ci(this._platformLocation.search),r=this._platformLocation.hash;return r&&t?`${i}${r}`:i}pushState(t,i,r,s){const o=this.prepareExternalUrl(r+Ci(s));this._platformLocation.pushState(t,i,o)}replaceState(t,i,r,s){const o=this.prepareExternalUrl(r+Ci(s));this._platformLocation.replaceState(t,i,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var i,r;null===(r=(i=this._platformLocation).historyGo)||void 0===r||r.call(i,t)}}return n.\u0275fac=function(t){return new(t||n)(v($s),v(IA,8))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),ev=(()=>{class n{constructor(t,i){this._subject=new xe,this._urlChangeListeners=[],this._platformStrategy=t;const r=this._platformStrategy.getBaseHref();this._platformLocation=i,this._baseHref=Jy(tv(r)),this._platformStrategy.onPopState(s=>{this._subject.emit({url:this.path(!0),pop:!0,state:s.state,type:s.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,i=""){return this.path()==this.normalize(t+Ci(i))}normalize(t){return n.stripTrailingSlash(function OA(n,e){return n&&e.startsWith(n)?e.substring(n.length):e}(this._baseHref,tv(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,i="",r=null){this._platformStrategy.pushState(r,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Ci(i)),r)}replaceState(t,i="",r=null){this._platformStrategy.replaceState(r,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Ci(i)),r)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(t=0){var i,r;null===(r=(i=this._platformStrategy).historyGo)||void 0===r||r.call(i,t)}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}))}_notifyUrlChangeListeners(t="",i){this._urlChangeListeners.forEach(r=>r(t,i))}subscribe(t,i,r){return this._subject.subscribe({next:t,error:i,complete:r})}}return n.normalizeQueryParams=Ci,n.joinWithSlash=Qy,n.stripTrailingSlash=Jy,n.\u0275fac=function(t){return new(t||n)(v(gd),v($s))},n.\u0275prov=x({token:n,factory:function(){return function AA(){return new ev(v(gd),v($s))}()},providedIn:"root"}),n})();function tv(n){return n.replace(/\/index.html$/,"")}let Na=(()=>{class n{constructor(t,i,r,s){this._iterableDiffers=t,this._keyValueDiffers=i,this._ngEl=r,this._renderer=s,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(Ms(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(i=>this._toggleClass(i.key,i.currentValue)),t.forEachChangedItem(i=>this._toggleClass(i.key,i.currentValue)),t.forEachRemovedItem(i=>{i.previousValue&&this._toggleClass(i.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(i=>{if("string"!=typeof i.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${te(i.item)}`);this._toggleClass(i.item,!0)}),t.forEachRemovedItem(i=>this._toggleClass(i.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(i=>this._toggleClass(i,!0)):Object.keys(t).forEach(i=>this._toggleClass(i,!!t[i])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(i=>this._toggleClass(i,!1)):Object.keys(t).forEach(i=>this._toggleClass(i,!1)))}_toggleClass(t,i){(t=t.trim())&&t.split(/\s+/g).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return n.\u0275fac=function(t){return new(t||n)(w(Sa),w(js),w(Ie),w(fa))},n.\u0275dir=Ce({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),n})();class gO{constructor(e,t,i,r){this.$implicit=e,this.ngForOf=t,this.index=i,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let uv=(()=>{class n{constructor(t,i,r){this._viewContainer=t,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const i=this._viewContainer;t.forEachOperation((r,s,o)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new gO(r.item,this._ngForOf,-1,-1),null===o?void 0:o);else if(null==o)i.remove(null===s?void 0:s);else if(null!==s){const a=i.get(s);i.move(a,o),dv(a,r)}});for(let r=0,s=i.length;r<s;r++){const a=i.get(r).context;a.index=r,a.count=s,a.ngForOf=this._ngForOf}t.forEachIdentityChange(r=>{dv(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(t,i){return!0}}return n.\u0275fac=function(t){return new(t||n)(w(lt),w(bn),w(Sa))},n.\u0275dir=Ce({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),n})();function dv(n,e){n.context.$implicit=e.item}let Ws=(()=>{class n{constructor(t,i){this._viewContainer=t,this._context=new _O,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){hv("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){hv("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,i){return!0}}return n.\u0275fac=function(t){return new(t||n)(w(lt),w(bn))},n.\u0275dir=Ce({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),n})();class _O{constructor(){this.$implicit=null,this.ngIf=null}}function hv(n,e){if(e&&!e.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${te(e)}'.`)}const fv="browser";class Id{constructor(e,t){this._viewContainerRef=e,this._templateRef=t,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}}let Va=(()=>{class n{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const i=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let i=0;i<this._defaultViews.length;i++)this._defaultViews[i].enforceState(t)}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=Ce({type:n,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),n})(),yv=(()=>{class n{constructor(t,i,r){this.ngSwitch=r,r._addCase(),this._view=new Id(t,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return n.\u0275fac=function(t){return new(t||n)(w(lt),w(bn),w(Va,9))},n.\u0275dir=Ce({type:n,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),n})(),vv=(()=>{class n{constructor(t,i,r){r._addDefault(new Id(t,i))}}return n.\u0275fac=function(t){return new(t||n)(w(lt),w(bn),w(Va,9))},n.\u0275dir=Ce({type:n,selectors:[["","ngSwitchDefault",""]]}),n})(),xd=(()=>{class n{constructor(t,i,r){this._ngEl=t,this._differs=i,this._renderer=r,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,i){const[r,s]=t.split(".");null!=(i=null!=i&&s?`${i}${s}`:i)?this._renderer.setStyle(this._ngEl.nativeElement,r,i):this._renderer.removeStyle(this._ngEl.nativeElement,r)}_applyChanges(t){t.forEachRemovedItem(i=>this._setStyle(i.key,null)),t.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),t.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}}return n.\u0275fac=function(t){return new(t||n)(w(Ie),w(js),w(fa))},n.\u0275dir=Ce({type:n,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),n})(),wv=(()=>{class n{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(t.ngTemplateOutlet){const i=this._viewContainerRef;this._viewRef&&i.remove(i.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?i.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&t.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return n.\u0275fac=function(t){return new(t||n)(w(lt))},n.\u0275dir=Ce({type:n,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[Gi]}),n})();class KO{createSubscription(e,t){return e.subscribe({next:t,error:i=>{throw i}})}dispose(e){e.unsubscribe()}onDestroy(e){e.unsubscribe()}}class XO{createSubscription(e,t){return e.then(t,i=>{throw i})}dispose(e){}onDestroy(e){}}const ZO=new XO,QO=new KO;let Ev=(()=>{class n{constructor(t){this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,i=>this._updateLatestValue(t,i))}_selectStrategy(t){if(Ou(t))return ZO;if(Sg(t))return QO;throw function rn(n,e){return new S(2100,"")}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,i){t===this._obj&&(this._latestValue=i,this._ref.markForCheck())}}return n.\u0275fac=function(t){return new(t||n)(w(Ei,16))},n.\u0275pipe=at({name:"async",type:n,pure:!1}),n})(),Ha=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({}),n})();class Rd extends class yR extends class CA{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function DA(n){Ma||(Ma=n)}(new Rd)}onAndCancel(e,t,i){return e.addEventListener(t,i,!1),()=>{e.removeEventListener(t,i,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}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}getBaseHref(e){const t=function vR(){return qs=qs||document.querySelector("base"),qs?qs.getAttribute("href"):null}();return null==t?null:function bR(n){ja=ja||document.createElement("a"),ja.setAttribute("href",n);const e=ja.pathname;return"/"===e.charAt(0)?e:`/${e}`}(t)}resetBaseElement(){qs=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return function pO(n,e){e=encodeURIComponent(e);for(const t of n.split(";")){const i=t.indexOf("="),[r,s]=-1==i?[t,""]:[t.slice(0,i),t.slice(i+1)];if(r.trim()===e)return decodeURIComponent(s)}return null}(document.cookie,e)}}let ja,qs=null;const Sv=new I("TRANSITION_ID"),ER=[{provide:ba,useFactory:function wR(n,e,t){return()=>{t.get(id).donePromise.then(()=>{const i=Jn(),r=e.querySelectorAll(`style[ng-transition="${n}"]`);for(let s=0;s<r.length;s++)i.remove(r[s])})}},deps:[Sv,G,tt],multi:!0}];class kd{static init(){!function Xx(n){cd=n}(new kd)}addToWindow(e){se.getAngularTestability=(i,r=!0)=>{const s=e.findTestabilityInTree(i,r);if(null==s)throw new Error("Could not find testability for element.");return s},se.getAllAngularTestabilities=()=>e.getAllTestabilities(),se.getAllAngularRootElements=()=>e.getAllRootElements(),se.frameworkStabilizers||(se.frameworkStabilizers=[]),se.frameworkStabilizers.push(i=>{const r=se.getAllAngularTestabilities();let s=r.length,o=!1;const a=function(l){o=o||l,s--,0==s&&i(o)};r.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(e,t,i){if(null==t)return null;const r=e.getTestability(t);return null!=r?r:i?Jn().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}let DR=(()=>{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();const $a=new I("EventManagerPlugins");let Ua=(()=>{class n{constructor(t,i){this._zone=i,this._eventNameToPlugin=new Map,t.forEach(r=>r.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,i,r){return this._findPluginFor(i).addEventListener(t,i,r)}addGlobalEventListener(t,i,r){return this._findPluginFor(i).addGlobalEventListener(t,i,r)}getZone(){return this._zone}_findPluginFor(t){const i=this._eventNameToPlugin.get(t);if(i)return i;const r=this._plugins;for(let s=0;s<r.length;s++){const o=r[s];if(o.supports(t))return this._eventNameToPlugin.set(t,o),o}throw new Error(`No event manager plugin found for event ${t}`)}}return n.\u0275fac=function(t){return new(t||n)(v($a),v(re))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();class Mv{constructor(e){this._doc=e}addGlobalEventListener(e,t,i){const r=Jn().getGlobalEventTarget(this._doc,e);if(!r)throw new Error(`Unsupported event target ${r} for event ${t}`);return this.addEventListener(r,t,i)}}let Tv=(()=>{class n{constructor(){this._stylesSet=new Set}addStyles(t){const i=new Set;t.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),i.add(r))}),this.onStylesAdded(i)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),Ys=(()=>{class n extends Tv{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,i,r){t.forEach(s=>{const o=this._doc.createElement("style");o.textContent=s,r.push(i.appendChild(o))})}addHost(t){const i=[];this._addStylesToHost(this._stylesSet,t,i),this._hostNodes.set(t,i)}removeHost(t){const i=this._hostNodes.get(t);i&&i.forEach(Iv),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(t,r,i)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(Iv))}}return n.\u0275fac=function(t){return new(t||n)(v(G))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();function Iv(n){Jn().remove(n)}const Pd={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/",math:"http://www.w3.org/1998/MathML/"},Fd=/%COMP%/g;function za(n,e,t){for(let i=0;i<e.length;i++){let r=e[i];Array.isArray(r)?za(n,r,t):(r=r.replace(Fd,n),t.push(r))}return t}function Ov(n){return e=>{if("__ngUnwrap__"===e)return n;!1===n(e)&&(e.preventDefault(),e.returnValue=!1)}}let Wa=(()=>{class n{constructor(t,i,r){this.eventManager=t,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new Nd(t)}createRenderer(t,i){if(!t||!i)return this.defaultRenderer;switch(i.encapsulation){case Wt.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new xR(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(t),r}case 1:case Wt.ShadowDom:return new AR(this.eventManager,this.sharedStylesHost,t,i);default:if(!this.rendererByCompId.has(i.id)){const r=za(i.id,i.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(t){return new(t||n)(v(Ua),v(Ys),v(Hs))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();class Nd{constructor(e){this.eventManager=e,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(e,t){return t?document.createElementNS(Pd[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,i){e&&e.insertBefore(t,i)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let i="string"==typeof e?document.querySelector(e):e;if(!i)throw new Error(`The selector "${e}" did not match any elements`);return t||(i.textContent=""),i}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,i,r){if(r){t=r+":"+t;const s=Pd[r];s?e.setAttributeNS(s,t,i):e.setAttribute(t,i)}else e.setAttribute(t,i)}removeAttribute(e,t,i){if(i){const r=Pd[i];r?e.removeAttributeNS(r,t):e.removeAttribute(`${i}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,i,r){r&(yt.DashCase|yt.Important)?e.style.setProperty(t,i,r&yt.Important?"important":""):e.style[t]=i}removeStyle(e,t,i){i&yt.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,i){e[t]=i}setValue(e,t){e.nodeValue=t}listen(e,t,i){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,Ov(i)):this.eventManager.addEventListener(e,t,Ov(i))}}class xR extends Nd{constructor(e,t,i,r){super(e),this.component=i;const s=za(r+"-"+i.id,i.styles,[]);t.addStyles(s),this.contentAttr=function MR(n){return"_ngcontent-%COMP%".replace(Fd,n)}(r+"-"+i.id),this.hostAttr=function TR(n){return"_nghost-%COMP%".replace(Fd,n)}(r+"-"+i.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const i=super.createElement(e,t);return super.setAttribute(i,this.contentAttr,""),i}}class AR extends Nd{constructor(e,t,i,r){super(e),this.sharedStylesHost=t,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=za(r.id,r.styles,[]);for(let o=0;o<s.length;o++){const a=document.createElement("style");a.textContent=s[o],this.shadowRoot.appendChild(a)}}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,i){return super.insertBefore(this.nodeOrShadowRoot(e),t,i)}removeChild(e,t){return super.removeChild(this.nodeOrShadowRoot(e),t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}}let OR=(()=>{class n extends Mv{constructor(t){super(t)}supports(t){return!0}addEventListener(t,i,r){return t.addEventListener(i,r,!1),()=>this.removeEventListener(t,i,r)}removeEventListener(t,i,r){return t.removeEventListener(i,r)}}return n.\u0275fac=function(t){return new(t||n)(v(G))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();const kv=["alt","control","meta","shift"],kR={"\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"},Pv={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"},PR={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let FR=(()=>{class n extends Mv{constructor(t){super(t)}supports(t){return null!=n.parseEventName(t)}addEventListener(t,i,r){const s=n.parseEventName(i),o=n.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Jn().onAndCancel(t,s.domEventName,o))}static parseEventName(t){const i=t.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const s=n._normalizeKey(i.pop());let o="";if(kv.forEach(l=>{const c=i.indexOf(l);c>-1&&(i.splice(c,1),o+=l+".")}),o+=s,0!=i.length||0===s.length)return null;const a={};return a.domEventName=r,a.fullKey=o,a}static getEventFullKey(t){let i="",r=function NR(n){let e=n.key;if(null==e){if(e=n.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===n.location&&Pv.hasOwnProperty(e)&&(e=Pv[e]))}return kR[e]||e}(t);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),kv.forEach(s=>{s!=r&&PR[s](t)&&(i+=s+".")}),i+=r,i}static eventCallback(t,i,r){return s=>{n.getEventFullKey(s)===t&&r.runGuarded(()=>i(s))}}static _normalizeKey(t){return"esc"===t?"escape":t}}return n.\u0275fac=function(t){return new(t||n)(v(G))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();const HR=Fy(bA,"browser",[{provide:wa,useValue:fv},{provide:Ay,useValue:function LR(){Rd.makeCurrent(),kd.init()},multi:!0},{provide:G,useFactory:function VR(){return function xD(n){ic=n}(document),document},deps:[]}]),jR=[{provide:vu,useValue:"root"},{provide:Gn,useFactory:function BR(){return new Gn},deps:[]},{provide:$a,useClass:OR,multi:!0,deps:[G,re,wa]},{provide:$a,useClass:FR,multi:!0,deps:[G]},{provide:Wa,useClass:Wa,deps:[Ua,Ys,Hs]},{provide:Ps,useExisting:Wa},{provide:Tv,useExisting:Ys},{provide:Ys,useClass:Ys,deps:[G]},{provide:ld,useClass:ld,deps:[re]},{provide:Ua,useClass:Ua,deps:[$a,re]},{provide:class gR{},useClass:DR,deps:[]}];let Ld=(()=>{class n{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(t){return{ngModule:n,providers:[{provide:Hs,useValue:t.appId},{provide:Sv,useExisting:Hs},ER]}}}return n.\u0275fac=function(t){return new(t||n)(v(n,12))},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({providers:jR,imports:[Ha,wA]}),n})();"undefined"!=typeof window&&window;let Vd=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=x({token:n,factory:function(t){let i=null;return i=t?new(t||n):v(Lv),i},providedIn:"root"}),n})(),Lv=(()=>{class n extends Vd{constructor(t){super(),this._doc=t}sanitize(t,i){if(null==i)return null;switch(t){case J.NONE:return i;case J.HTML:return dn(i,"HTML")?vt(i):Jp(this._doc,String(i)).toString();case J.STYLE:return dn(i,"Style")?vt(i):i;case J.SCRIPT:if(dn(i,"Script"))return vt(i);throw new Error("unsafe value used in a script context");case J.URL:return Wp(i),dn(i,"URL")?vt(i):bs(String(i));case J.RESOURCE_URL:if(dn(i,"ResourceURL"))return vt(i);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return function p0(n){return new c0(n)}(t)}bypassSecurityTrustStyle(t){return function m0(n){return new u0(n)}(t)}bypassSecurityTrustScript(t){return function g0(n){return new d0(n)}(t)}bypassSecurityTrustUrl(t){return function _0(n){return new h0(n)}(t)}bypassSecurityTrustResourceUrl(t){return function y0(n){return new f0(n)}(t)}}return n.\u0275fac=function(t){return new(t||n)(v(G))},n.\u0275prov=x({token:n,factory:function(t){let i=null;return i=t?new t:function ZR(n){return new Lv(n.get(G))}(v(tt)),i},providedIn:"root"}),n})();class QR extends Z{constructor(e,t){super()}schedule(e,t=0){return this}}class Ga extends QR{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 i=this.id,r=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(r,i,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this}requestAsyncId(e,t,i=0){return setInterval(e.flush.bind(e,this),i)}recycleAsyncId(e,t,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return t;clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(e,t);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let r,i=!1;try{this.work(e)}catch(s){i=!0,r=!!s&&s||new Error(s)}if(i)return this.unsubscribe(),r}_unsubscribe(){const e=this.id,t=this.scheduler,i=t.actions,r=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&i.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}let Bv=(()=>{class n{constructor(t,i=n.now){this.SchedulerAction=t,this.now=i}schedule(t,i=0,r){return new this.SchedulerAction(this,t).schedule(r,i)}}return n.now=()=>Date.now(),n})();class sn extends Bv{constructor(e,t=Bv.now){super(e,()=>sn.delegate&&sn.delegate!==this?sn.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,i){return sn.delegate&&sn.delegate!==this?sn.delegate.schedule(e,t,i):super.schedule(e,t,i)}flush(e){const{actions:t}=this;if(this.active)return void t.push(e);let i;this.active=!0;do{if(i=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,i){for(;e=t.shift();)e.unsubscribe();throw i}}}const tk=new class ek extends sn{}(class JR extends Ga{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,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(e,t,i):e.flush(this)}}),nk=new le(n=>n.complete());function Vv(n){return n?function ik(n){return new le(e=>n.schedule(()=>e.complete()))}(n):nk}function ut(...n){let e=n[n.length-1];return Vi(e)?(n.pop(),Bl(n,e)):Hl(n)}function Hv(n,e){return new le(e?t=>e.schedule(rk,0,{error:n,subscriber:t}):t=>t.error(n))}function rk({error:n,subscriber:e}){e.error(n)}class dt{constructor(e,t,i){this.kind=e,this.value=t,this.error=i,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,i){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return i&&i()}}accept(e,t,i){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,i)}toObservable(){switch(this.kind){case"N":return ut(this.value);case"E":return Hv(this.error);case"C":return Vv()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new dt("N",e):dt.undefinedValueNotification}static createError(e){return new dt("E",void 0,e)}static createComplete(){return dt.completeNotification}}dt.completeNotification=new dt("C"),dt.undefinedValueNotification=new dt("N",void 0);class qa extends he{constructor(e,t,i=0){super(e),this.scheduler=t,this.delay=i}static dispatch(e){const{notification:t,destination:i}=e;t.observe(i),this.unsubscribe()}scheduleMessage(e){this.destination.add(this.scheduler.schedule(qa.dispatch,this.delay,new ok(e,this.destination)))}_next(e){this.scheduleMessage(dt.createNext(e))}_error(e){this.scheduleMessage(dt.createError(e)),this.unsubscribe()}_complete(){this.scheduleMessage(dt.createComplete()),this.unsubscribe()}}class ok{constructor(e,t){this.notification=e,this.destination=t}}class jv extends de{constructor(e=Number.POSITIVE_INFINITY,t=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,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 ak(this._getNow(),e)),this._trimBufferThenGetEvents(),super.next(e)}_subscribe(e){const t=this._infiniteTimeWindow,i=t?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,s=i.length;let o;if(this.closed)throw new li;if(this.isStopped||this.hasError?o=Z.EMPTY:(this.observers.push(e),o=new af(this,e)),r&&e.add(e=new qa(e,r)),t)for(let a=0;a<s&&!e.closed;a++)e.next(i[a]);else for(let a=0;a<s&&!e.closed;a++)e.next(i[a].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),o}_getNow(){return(this.scheduler||tk).now()}_trimBufferThenGetEvents(){const e=this._getNow(),t=this._bufferSize,i=this._windowTime,r=this._events,s=r.length;let o=0;for(;o<s&&!(e-r[o].time<i);)o++;return s>t&&(o=Math.max(o,s-t)),o>0&&r.splice(0,o),r}}class ak{constructor(e,t){this.time=e,this.value=t}}function Ks(n,e){return"function"==typeof e?t=>t.pipe(Ks((i,r)=>Vl(n(i,r)).pipe(Ve((s,o)=>e(i,s,r,o))))):t=>t.lift(new lk(n))}class lk{constructor(e){this.project=e}call(e,t){return t.subscribe(new ck(e,this.project))}}class ck extends Qr{constructor(e,t){super(e),this.project=t,this.index=0}_next(e){let t;const i=this.index++;try{t=this.project(e,i)}catch(r){return void this.destination.error(r)}this._innerSub(t)}_innerSub(e){const t=this.innerSubscription;t&&t.unsubscribe();const i=new Zr(this),r=this.destination;r.add(i),this.innerSubscription=Jr(e,i),this.innerSubscription!==i&&r.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)}}const Ya={schedule(n,e){const t=setTimeout(n,e);return()=>clearTimeout(t)},scheduleBeforeRender(n){if("undefined"==typeof window)return Ya.schedule(n,0);if(void 0===window.requestAnimationFrame)return Ya.schedule(n,16);const e=window.requestAnimationFrame(n);return()=>window.cancelAnimationFrame(e)}};let Hd;function yk(n,e,t){let i=t;return function dk(n){return!!n&&n.nodeType===Node.ELEMENT_NODE}(n)&&e.some((r,s)=>!("*"===r||!function fk(n,e){if(!Hd){const t=Element.prototype;Hd=t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}return n.nodeType===Node.ELEMENT_NODE&&Hd.call(n,e)}(n,r)||(i=s,0))),i}class bk{constructor(e,t){this.componentFactory=t.get(Xn).resolveComponentFactory(e)}create(e){return new wk(this.componentFactory,e)}}class wk{constructor(e,t){this.componentFactory=e,this.injector=t,this.eventEmitters=new jv(1),this.events=this.eventEmitters.pipe(Ks(i=>Hi(...i))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(({propName:i})=>i)),this.ngZone=this.injector.get(re),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=Ya.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(e){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(e):this.componentRef.instance[e])}setInputValue(e,t){this.runInZone(()=>{null!==this.componentRef?function pk(n,e){return n===e||n!=n&&e!=e}(t,this.getInputValue(e))&&(void 0!==t||!this.unchangedInputs.has(e))||(this.recordInputChange(e,t),this.unchangedInputs.delete(e),this.hasInputChanges=!0,this.componentRef.instance[e]=t,this.scheduleDetectChanges()):this.initialInputValues.set(e,t)})}initializeComponent(e){const t=tt.create({providers:[],parent:this.injector}),i=function _k(n,e){const t=n.childNodes,i=e.map(()=>[]);let r=-1;e.some((s,o)=>"*"===s&&(r=o,!0));for(let s=0,o=t.length;s<o;++s){const a=t[s],l=yk(a,e,r);-1!==l&&i[l].push(a)}return i}(e,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(t,i,e),this.viewChangeDetectorRef=this.componentRef.injector.get(Ei),this.implementsOnChanges=function hk(n){return"function"==typeof n}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(Ea).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:e})=>{this.initialInputValues.has(e)&&this.setInputValue(e,this.initialInputValues.get(e))}),this.initialInputValues.clear()}initializeOutputs(e){const t=this.componentFactory.outputs.map(({propName:i,templateName:r})=>e.instance[i].pipe(Ve(o=>({name:r,value:o}))));this.eventEmitters.next(t)}callNgOnChanges(e){if(!this.implementsOnChanges||null===this.inputChanges)return;const t=this.inputChanges;this.inputChanges=null,e.instance.ngOnChanges(t)}markViewForCheck(e){this.hasInputChanges&&(this.hasInputChanges=!1,e.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=Ya.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(e,t){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const i=this.inputChanges[e];if(i)return void(i.currentValue=t);const r=this.unchangedInputs.has(e),s=r?void 0:this.getInputValue(e);this.inputChanges[e]=new Tf(s,t,r)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(e){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(e):e()}}class Ek extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}function $v(n,e){const t=function gk(n,e){return e.get(Xn).resolveComponentFactory(n).inputs}(n,e.injector),i=e.strategyFactory||new bk(n,e.injector),r=function mk(n){const e={};return n.forEach(({propName:t,templateName:i})=>{e[function uk(n){return n.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}(i)]=t}),e}(t);class s extends Ek{constructor(a){super(),this.injector=a}get ngElementStrategy(){if(!this._ngElementStrategy){const a=this._ngElementStrategy=i.create(this.injector||e.injector);t.forEach(({propName:l})=>{if(!this.hasOwnProperty(l))return;const c=this[l];delete this[l],a.setInputValue(l,c)})}return this._ngElementStrategy}attributeChangedCallback(a,l,c,u){this.ngElementStrategy.setInputValue(r[a],c)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{const l=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(l)})}}return s.observedAttributes=Object.keys(r),t.forEach(({propName:o})=>{Object.defineProperty(s.prototype,o,{get(){return this.ngElementStrategy.getInputValue(o)},set(a){this.ngElementStrategy.setInputValue(o,a)},configurable:!0,enumerable:!0})}),s}class Uv{}const Fn="*";function jd(n,e){return{type:7,name:n,definitions:e,options:{}}}function Xs(n,e=null){return{type:4,styles:e,timings:n}}function zv(n,e=null){return{type:2,steps:n,options:e}}function wt(n){return{type:6,styles:n,offset:null}}function Ka(n,e,t){return{type:0,name:n,styles:e,options:t}}function Ck(n){return{type:5,steps:n}}function Zs(n,e,t=null){return{type:1,expr:n,animation:e,options:t}}function Wv(n){Promise.resolve(null).then(n)}class Qs{constructor(e=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,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(){Wv(()=>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(){this._started=!1}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}class Gv{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,i=0,r=0;const s=this.players.length;0==s?Wv(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++t==s&&this._onFinish()}),o.onDestroy(()=>{++i==s&&this._onDestroy()}),o.onStart(()=>{++r==s&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.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(i=>{const r=i.totalTime?Math.min(1,t/i.totalTime):1;i.setPosition(r)})}getPosition(){const e=this.players.reduce((t,i)=>null===t||i.totalTime>t.totalTime?i:t,null);return null!=e?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}const q=!1;function qv(n){return new S(3e3,q)}function rP(){return"undefined"!=typeof window&&void 0!==window.document}function Ud(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function ti(n){switch(n.length){case 0:return new Qs;case 1:return n[0];default:return new Gv(n)}}function Yv(n,e,t,i,r={},s={}){const o=[],a=[];let l=-1,c=null;if(i.forEach(u=>{const d=u.offset,h=d==l,f=h&&c||{};Object.keys(u).forEach(p=>{let m=p,_=u[p];if("offset"!==p)switch(m=e.normalizePropertyName(m,o),_){case"!":_=r[p];break;case Fn:_=s[p];break;default:_=e.normalizeStyleValue(p,m,_,o)}f[m]=_}),h||a.push(f),c=f,l=d}),o.length)throw function qk(n){return new S(3502,q)}();return a}function zd(n,e,t,i){switch(e){case"start":n.onStart(()=>i(t&&Wd(t,"start",n)));break;case"done":n.onDone(()=>i(t&&Wd(t,"done",n)));break;case"destroy":n.onDestroy(()=>i(t&&Wd(t,"destroy",n)))}}function Wd(n,e,t){const i=t.totalTime,s=Gd(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,null==i?n.totalTime:i,!!t.disabled),o=n._data;return null!=o&&(s._data=o),s}function Gd(n,e,t,i,r="",s=0,o){return{element:n,triggerName:e,fromState:t,toState:i,phaseName:r,totalTime:s,disabled:!!o}}function Et(n,e,t){let i;return n instanceof Map?(i=n.get(e),i||n.set(e,i=t)):(i=n[e],i||(i=n[e]=t)),i}function Kv(n){const e=n.indexOf(":");return[n.substring(1,e),n.substr(e+1)]}let qd=(n,e)=>!1,Xv=(n,e,t)=>[],Zv=null;function Yd(n){const e=n.parentNode||n.host;return e===Zv?null:e}(Ud()||"undefined"!=typeof Element)&&(rP()?(Zv=(()=>document.documentElement)(),qd=(n,e)=>{for(;e;){if(e===n)return!0;e=Yd(e)}return!1}):qd=(n,e)=>n.contains(e),Xv=(n,e,t)=>{if(t)return Array.from(n.querySelectorAll(e));const i=n.querySelector(e);return i?[i]:[]});let Si=null,Qv=!1;function Jv(n){Si||(Si=function oP(){return"undefined"!=typeof document?document.body:null}()||{},Qv=!!Si.style&&"WebkitAppearance"in Si.style);let e=!0;return Si.style&&!function sP(n){return"ebkit"==n.substring(1,6)}(n)&&(e=n in Si.style,!e&&Qv&&(e="Webkit"+n.charAt(0).toUpperCase()+n.substr(1)in Si.style)),e}const eb=qd,tb=Xv;let nb=(()=>{class n{validateStyleProperty(t){return Jv(t)}matchesElement(t,i){return!1}containsElement(t,i){return eb(t,i)}getParentElement(t){return Yd(t)}query(t,i,r){return tb(t,i,r)}computeStyle(t,i,r){return r||""}animate(t,i,r,s,o,a=[],l){return new Qs(r,s)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),Kd=(()=>{class n{}return n.NOOP=new nb,n})();const Xd="ng-enter",Za="ng-leave",Qa="ng-trigger",Ja=".ng-trigger",rb="ng-animating",Zd=".ng-animating";function Mi(n){if("number"==typeof n)return n;const e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Qd(parseFloat(e[1]),e[2])}function Qd(n,e){return"s"===e?1e3*n:n}function el(n,e,t){return n.hasOwnProperty("duration")?n:function cP(n,e,t){let r,s=0,o="";if("string"==typeof n){const a=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return e.push(qv()),{duration:0,delay:0,easing:""};r=Qd(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(s=Qd(parseFloat(l),a[4]));const c=a[5];c&&(o=c)}else r=n;if(!t){let a=!1,l=e.length;r<0&&(e.push(function Sk(){return new S(3100,q)}()),a=!0),s<0&&(e.push(function Mk(){return new S(3101,q)}()),a=!0),a&&e.splice(l,0,qv())}return{duration:r,delay:s,easing:o}}(n,e,t)}function Rr(n,e={}){return Object.keys(n).forEach(t=>{e[t]=n[t]}),e}function ni(n,e,t={}){if(e)for(let i in n)t[i]=n[i];else Rr(n,t);return t}function ob(n,e,t){return t?e+":"+t+";":""}function ab(n){let e="";for(let t=0;t<n.style.length;t++){const i=n.style.item(t);e+=ob(0,i,n.style.getPropertyValue(i))}for(const t in n.style)n.style.hasOwnProperty(t)&&!t.startsWith("_")&&(e+=ob(0,hP(t),n.style[t]));n.setAttribute("style",e)}function wn(n,e,t){n.style&&(Object.keys(e).forEach(i=>{const r=eh(i);t&&!t.hasOwnProperty(i)&&(t[i]=n.style[r]),n.style[r]=e[i]}),Ud()&&ab(n))}function Ti(n,e){n.style&&(Object.keys(e).forEach(t=>{const i=eh(t);n.style[i]=""}),Ud()&&ab(n))}function Js(n){return Array.isArray(n)?1==n.length?n[0]:zv(n):n}const Jd=new RegExp("{{\\s*(.+?)\\s*}}","g");function lb(n){let e=[];if("string"==typeof n){let t;for(;t=Jd.exec(n);)e.push(t[1]);Jd.lastIndex=0}return e}function tl(n,e,t){const i=n.toString(),r=i.replace(Jd,(s,o)=>{let a=e[o];return e.hasOwnProperty(o)||(t.push(function Ik(n){return new S(3003,q)}()),a=""),a.toString()});return r==i?n:r}function nl(n){const e=[];let t=n.next();for(;!t.done;)e.push(t.value),t=n.next();return e}const dP=/-+([a-z0-9])/g;function eh(n){return n.replace(dP,(...e)=>e[1].toUpperCase())}function hP(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Dt(n,e,t){switch(e.type){case 7:return n.visitTrigger(e,t);case 0:return n.visitState(e,t);case 1:return n.visitTransition(e,t);case 2:return n.visitSequence(e,t);case 3:return n.visitGroup(e,t);case 4:return n.visitAnimate(e,t);case 5:return n.visitKeyframes(e,t);case 6:return n.visitStyle(e,t);case 8:return n.visitReference(e,t);case 9:return n.visitAnimateChild(e,t);case 10:return n.visitAnimateRef(e,t);case 11:return n.visitQuery(e,t);case 12:return n.visitStagger(e,t);default:throw function xk(n){return new S(3004,q)}()}}function cb(n,e){return window.getComputedStyle(n)[e]}function yP(n,e){const t=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(i=>function vP(n,e,t){if(":"==n[0]){const l=function bP(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,i)=>parseFloat(i)>parseFloat(t);case":decrement":return(t,i)=>parseFloat(i)<parseFloat(t);default:return e.push(function Uk(n){return new S(3016,q)}()),"* => *"}}(n,t);if("function"==typeof l)return void e.push(l);n=l}const i=n.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return t.push(function $k(n){return new S(3015,q)}()),e;const r=i[1],s=i[2],o=i[3];e.push(ub(r,o));"<"==s[0]&&!("*"==r&&"*"==o)&&e.push(ub(o,r))}(i,t,e)):t.push(n),t}const ol=new Set(["true","1"]),al=new Set(["false","0"]);function ub(n,e){const t=ol.has(n)||al.has(n),i=ol.has(e)||al.has(e);return(r,s)=>{let o="*"==n||n==r,a="*"==e||e==s;return!o&&t&&"boolean"==typeof r&&(o=r?ol.has(n):al.has(n)),!a&&i&&"boolean"==typeof s&&(a=s?ol.has(e):al.has(e)),o&&a}}const wP=new RegExp("s*:selfs*,?","g");function th(n,e,t,i){return new EP(n).build(e,t,i)}class EP{constructor(e){this._driver=e}build(e,t,i){const r=new SP(t);this._resetContextStyleTimingState(r);const s=Dt(this,Js(e),r);return r.unsupportedCSSPropertiesFound.size&&r.unsupportedCSSPropertiesFound.keys(),s}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}visitTrigger(e,t){let i=t.queryCount=0,r=t.depCount=0;const s=[],o=[];return"@"==e.name.charAt(0)&&t.errors.push(function Ok(){return new S(3006,q)}()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,s.push(this.visitState(l,t))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,t);i+=l.queryCount,r+=l.depCount,o.push(l)}else t.errors.push(function Rk(){return new S(3007,q)}())}),{type:7,name:e.name,states:s,transitions:o,queryCount:i,depCount:r,options:null}}visitState(e,t){const i=this.visitStyle(e.styles,t),r=e.options&&e.options.params||null;if(i.containsDynamicStyles){const s=new Set,o=r||{};i.styles.forEach(a=>{if(ll(a)){const l=a;Object.keys(l).forEach(c=>{lb(l[c]).forEach(u=>{o.hasOwnProperty(u)||s.add(u)})})}}),s.size&&(nl(s.values()),t.errors.push(function kk(n,e){return new S(3008,q)}()))}return{type:0,name:e.name,style:i,options:r?{params:r}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const i=Dt(this,Js(e.animation),t);return{type:1,matchers:yP(e.expr,t.errors),animation:i,queryCount:t.queryCount,depCount:t.depCount,options:Ii(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(i=>Dt(this,i,t)),options:Ii(e.options)}}visitGroup(e,t){const i=t.currentTime;let r=0;const s=e.steps.map(o=>{t.currentTime=i;const a=Dt(this,o,t);return r=Math.max(r,t.currentTime),a});return t.currentTime=r,{type:3,steps:s,options:Ii(e.options)}}visitAnimate(e,t){const i=function TP(n,e){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return nh(el(n,e).duration,0,"");const t=n;if(t.split(/\s+/).some(s=>"{"==s.charAt(0)&&"{"==s.charAt(1))){const s=nh(0,0,"");return s.dynamic=!0,s.strValue=t,s}const r=el(t,e);return nh(r.duration,r.delay,r.easing)}(e.timings,t.errors);t.currentAnimateTimings=i;let r,s=e.styles?e.styles:wt({});if(5==s.type)r=this.visitKeyframes(s,t);else{let o=e.styles,a=!1;if(!o){a=!0;const c={};i.easing&&(c.easing=i.easing),o=wt(c)}t.currentTime+=i.duration+i.delay;const l=this.visitStyle(o,t);l.isEmptyStep=a,r=l}return t.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(e,t){const i=this._makeStyleAst(e,t);return this._validateStyleAst(i,t),i}_makeStyleAst(e,t){const i=[];Array.isArray(e.styles)?e.styles.forEach(o=>{"string"==typeof o?o==Fn?i.push(o):t.errors.push(function Pk(n){return new S(3002,q)}()):i.push(o)}):i.push(e.styles);let r=!1,s=null;return i.forEach(o=>{if(ll(o)){const a=o,l=a.easing;if(l&&(s=l,delete a.easing),!r)for(let c in a)if(a[c].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:i,easing:s,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){const i=t.currentAnimateTimings;let r=t.currentTime,s=t.currentTime;i&&s>0&&(s-=i.duration+i.delay),e.styles.forEach(o=>{"string"!=typeof o&&Object.keys(o).forEach(a=>{if(!this._driver.validateStyleProperty(a))return delete o[a],void t.unsupportedCSSPropertiesFound.add(a);const l=t.collectedStyles[t.currentQuerySelector],c=l[a];let u=!0;c&&(s!=r&&s>=c.startTime&&r<=c.endTime&&(t.errors.push(function Fk(n,e,t,i,r){return new S(3010,q)}()),u=!1),s=c.startTime),u&&(l[a]={startTime:s,endTime:r}),t.options&&function uP(n,e,t){const i=e.params||{},r=lb(n);r.length&&r.forEach(s=>{i.hasOwnProperty(s)||t.push(function Tk(n){return new S(3001,q)}())})}(o[a],t.options,t.errors)})})}visitKeyframes(e,t){const i={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(function Nk(){return new S(3011,q)}()),i;let s=0;const o=[];let a=!1,l=!1,c=0;const u=e.steps.map(y=>{const g=this._makeStyleAst(y,t);let E=null!=g.offset?g.offset:function MP(n){if("string"==typeof n)return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(ll(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}});else if(ll(n)&&n.hasOwnProperty("offset")){const t=n;e=parseFloat(t.offset),delete t.offset}return e}(g.styles),T=0;return null!=E&&(s++,T=g.offset=E),l=l||T<0||T>1,a=a||T<c,c=T,o.push(T),g});l&&t.errors.push(function Lk(){return new S(3012,q)}()),a&&t.errors.push(function Bk(){return new S(3200,q)}());const d=e.steps.length;let h=0;s>0&&s<d?t.errors.push(function Vk(){return new S(3202,q)}()):0==s&&(h=1/(d-1));const f=d-1,p=t.currentTime,m=t.currentAnimateTimings,_=m.duration;return u.forEach((y,g)=>{const E=h>0?g==f?1:h*g:o[g],T=E*_;t.currentTime=p+m.delay+T,m.duration=T,this._validateStyleAst(y,t),y.offset=E,i.styles.push(y)}),i}visitReference(e,t){return{type:8,animation:Dt(this,Js(e.animation),t),options:Ii(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:Ii(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:Ii(e.options)}}visitQuery(e,t){const i=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;const[s,o]=function DP(n){const e=!!n.split(/\s*,\s*/).find(t=>":self"==t);return e&&(n=n.replace(wP,"")),n=n.replace(/@\*/g,Ja).replace(/@\w+/g,t=>Ja+"-"+t.substr(1)).replace(/:animating/g,Zd),[n,e]}(e.selector);t.currentQuerySelector=i.length?i+" "+s:s,Et(t.collectedStyles,t.currentQuerySelector,{});const a=Dt(this,Js(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=i,{type:11,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:Ii(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(function Hk(){return new S(3013,q)}());const i="full"===e.timings?{duration:0,delay:0,easing:"full"}:el(e.timings,t.errors,!0);return{type:12,animation:Dt(this,Js(e.animation),t),timings:i,options:null}}}class SP{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,this.unsupportedCSSPropertiesFound=new Set}}function ll(n){return!Array.isArray(n)&&"object"==typeof n}function Ii(n){return n?(n=Rr(n)).params&&(n.params=function CP(n){return n?Rr(n):null}(n.params)):n={},n}function nh(n,e,t){return{duration:n,delay:e,easing:t}}function ih(n,e,t,i,r,s,o=null,a=!1){return{type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:i,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}class cl{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let i=this._map.get(e);i||this._map.set(e,i=[]),i.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const AP=new RegExp(":enter","g"),RP=new RegExp(":leave","g");function rh(n,e,t,i,r,s={},o={},a,l,c=[]){return(new kP).buildKeyframes(n,e,t,i,r,s,o,a,l,c)}class kP{buildKeyframes(e,t,i,r,s,o,a,l,c,u=[]){c=c||new cl;const d=new sh(e,t,c,r,s,u,[]);d.options=l,d.currentTimeline.setStyles([o],null,d.errors,l),Dt(this,i,d);const h=d.timelines.filter(f=>f.containsAnimation());if(Object.keys(a).length){let f;for(let p=h.length-1;p>=0;p--){const m=h[p];if(m.element===t){f=m;break}}f&&!f.allowOnlyTimelineStyles()&&f.setStyles([a],null,d.errors,l)}return h.length?h.map(f=>f.buildKeyframes()):[ih(t,[],[],[],0,0,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const i=t.subInstructions.get(t.element);if(i){const r=t.createSubContext(e.options),s=t.currentTimeline.currentTime,o=this._visitSubInstructions(i,r,r.options);s!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){const i=t.createSubContext(e.options);i.transformIntoNewTimeline(),this.visitReference(e.animation,i),t.transformIntoNewTimeline(i.currentTimeline.currentTime),t.previousNode=e}_visitSubInstructions(e,t,i){let s=t.currentTimeline.currentTime;const o=null!=i.duration?Mi(i.duration):null,a=null!=i.delay?Mi(i.delay):null;return 0!==o&&e.forEach(l=>{const c=t.appendInstructionToTimeline(l,o,a);s=Math.max(s,c.duration+c.delay)}),s}visitReference(e,t){t.updateOptions(e.options,!0),Dt(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const i=t.subContextCount;let r=t;const s=e.options;if(s&&(s.params||s.delay)&&(r=t.createSubContext(s),r.transformIntoNewTimeline(),null!=s.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=ul);const o=Mi(s.delay);r.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>Dt(this,o,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const i=[];let r=t.currentTimeline.currentTime;const s=e.options&&e.options.delay?Mi(e.options.delay):0;e.steps.forEach(o=>{const a=t.createSubContext(e.options);s&&a.delayNextStep(s),Dt(this,o,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(r),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const i=e.strValue;return el(t.params?tl(i,t.params,t.errors):i,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const i=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;i.delay&&(t.incrementTime(i.delay),r.snapshotCurrentStyles());const s=e.style;5==s.type?this.visitKeyframes(s,t):(t.incrementTime(i.duration),this.visitStyle(s,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const i=t.currentTimeline,r=t.currentAnimateTimings;!r&&i.getCurrentStyleProperties().length&&i.forwardFrame();const s=r&&r.easing||e.easing;e.isEmptyStep?i.applyEmptyStep(s):i.setStyles(e.styles,s,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const i=t.currentAnimateTimings,r=t.currentTimeline.duration,s=i.duration,a=t.createSubContext().currentTimeline;a.easing=i.easing,e.styles.forEach(l=>{a.forwardTime((l.offset||0)*s),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(r+s),t.previousNode=e}visitQuery(e,t){const i=t.currentTimeline.currentTime,r=e.options||{},s=r.delay?Mi(r.delay):0;s&&(6===t.previousNode.type||0==i&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=ul);let o=i;const a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{t.currentQueryIndex=u;const d=t.createSubContext(e.options,c);s&&d.delayNextStep(s),c===t.element&&(l=d.currentTimeline),Dt(this,e.animation,d),d.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,d.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const i=t.parentContext,r=t.currentTimeline,s=e.timings,o=Math.abs(s.duration),a=o*(t.currentQueryTotal-1);let l=o*t.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=t.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;Dt(this,e.animation,t),t.previousNode=e,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const ul={};class sh{constructor(e,t,i,r,s,o,a,l){this._driver=e,this.element=t,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ul,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new dl(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const i=e;let r=this.options;null!=i.duration&&(r.duration=Mi(i.duration)),null!=i.delay&&(r.delay=Mi(i.delay));const s=i.params;if(s){let o=r.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=tl(s[a],o,this.errors))})}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const i=e.params={};Object.keys(t).forEach(r=>{i[r]=t[r]})}}return e}createSubContext(e=null,t,i){const r=t||this.element,s=new sh(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(e),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(e){return this.previousNode=ul,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,i){const r={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+e.delay,easing:""},s=new PP(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,i,r,s,o){let a=[];if(r&&a.push(this.element),e.length>0){e=(e=e.replace(AP,"."+this._enterClassName)).replace(RP,"."+this._leaveClassName);let c=this._driver.query(this.element,e,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!s&&0==a.length&&o.push(function jk(n){return new S(3014,q)}()),a}}class dl{constructor(e,t,i,r){this._driver=e,this.element=t,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(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 dl(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(t=>{this._backFill[t]=this._globalTimelineStyles[t]||Fn,this._currentKeyframe[t]=Fn}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,i,r){t&&(this._previousKeyframe.easing=t);const s=r&&r.params||{},o=function FP(n,e){const t={};let i;return n.forEach(r=>{"*"===r?(i=i||Object.keys(e),i.forEach(s=>{t[s]=Fn})):ni(r,!1,t)}),t}(e,this._globalTimelineStyles);Object.keys(o).forEach(a=>{const l=tl(o[a],s,i);this._pendingStyles[a]=l,this._localTimelineStyles.hasOwnProperty(a)||(this._backFill[a]=this._globalTimelineStyles.hasOwnProperty(a)?this._globalTimelineStyles[a]:Fn),this._updateStyle(a,l)})}applyStylesToKeyframe(){const e=this._pendingStyles,t=Object.keys(e);0!=t.length&&(this._pendingStyles={},t.forEach(i=>{this._currentKeyframe[i]=e[i]}),Object.keys(this._localTimelineStyles).forEach(i=>{this._currentKeyframe.hasOwnProperty(i)||(this._currentKeyframe[i]=this._localTimelineStyles[i])}))}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 i=this._styleSummary[t],r=e._styleSummary[t];(!i||r.time>i.time)&&this._updateStyle(t,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=ni(a,!0);Object.keys(c).forEach(u=>{const d=c[u];"!"==d?e.add(u):d==Fn&&t.add(u)}),i||(c.offset=l/this.duration),r.push(c)});const s=e.size?nl(e.values()):[],o=t.size?nl(t.values()):[];if(i){const a=r[0],l=Rr(a);a.offset=0,l.offset=1,r=[a,l]}return ih(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}}class PP extends dl{constructor(e,t,i,r,s,o,a=!1){super(e,t,o.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&t){const s=[],o=i+t,a=t/o,l=ni(e[0],!1);l.offset=0,s.push(l);const c=ni(e[0],!1);c.offset=fb(a),s.push(c);const u=e.length-1;for(let d=1;d<=u;d++){let h=ni(e[d],!1);h.offset=fb((t+h.offset*i)/o),s.push(h)}i=o,t=0,r="",e=s}return ih(this.element,e,this.preStyleProps,this.postStyleProps,i,t,r,!0)}}function fb(n,e=3){const t=Math.pow(10,e-1);return Math.round(n*t)/t}class oh{}class NP extends oh{normalizePropertyName(e,t){return eh(e)}normalizeStyleValue(e,t,i,r){let s="";const o=i.toString().trim();if(LP[t]&&0!==i&&"0"!==i)if("number"==typeof i)s="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function Ak(n,e){return new S(3005,q)}())}return o+s}}const LP=(()=>function BP(n){const e={};return n.forEach(t=>e[t]=!0),e}("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 pb(n,e,t,i,r,s,o,a,l,c,u,d,h){return{type:0,element:n,triggerName:e,isRemovalTransition:r,fromState:t,fromStyles:s,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const ah={};class mb{constructor(e,t,i){this._triggerName=e,this.ast=t,this._stateStyles=i}match(e,t,i,r){return function VP(n,e,t,i,r){return n.some(s=>s(e,t,i,r))}(this.ast.matchers,e,t,i,r)}buildStyles(e,t,i){const r=this._stateStyles["*"],s=this._stateStyles[e],o=r?r.buildStyles(t,i):{};return s?s.buildStyles(t,i):o}build(e,t,i,r,s,o,a,l,c,u){const d=[],h=this.ast.options&&this.ast.options.params||ah,p=this.buildStyles(i,a&&a.params||ah,d),m=l&&l.params||ah,_=this.buildStyles(r,m,d),y=new Set,g=new Map,E=new Map,T="void"===r,H={params:Object.assign(Object.assign({},h),m)},me=u?[]:rh(e,t,this.ast.animation,s,o,p,_,H,c,d);let ve=0;if(me.forEach(It=>{ve=Math.max(It.duration+It.delay,ve)}),d.length)return pb(t,this._triggerName,i,r,T,p,_,[],[],g,E,ve,d);me.forEach(It=>{const xt=It.element,Gr=Et(g,xt,{});It.preStyleProps.forEach(an=>Gr[an]=!0);const Vn=Et(E,xt,{});It.postStyleProps.forEach(an=>Vn[an]=!0),xt!==t&&y.add(xt)});const Tt=nl(y.values());return pb(t,this._triggerName,i,r,T,p,_,me,Tt,g,E,ve)}}class HP{constructor(e,t,i){this.styles=e,this.defaultParams=t,this.normalizer=i}buildStyles(e,t){const i={},r=Rr(this.defaultParams);return Object.keys(e).forEach(s=>{const o=e[s];null!=o&&(r[s]=o)}),this.styles.styles.forEach(s=>{if("string"!=typeof s){const o=s;Object.keys(o).forEach(a=>{let l=o[a];l.length>1&&(l=tl(l,r,t));const c=this.normalizer.normalizePropertyName(a,t);l=this.normalizer.normalizeStyleValue(a,c,l,t),i[c]=l})}}),i}}class $P{constructor(e,t,i){this.name=e,this.ast=t,this._normalizer=i,this.transitionFactories=[],this.states={},t.states.forEach(r=>{this.states[r.name]=new HP(r.style,r.options&&r.options.params||{},i)}),gb(this.states,"true","1"),gb(this.states,"false","0"),t.transitions.forEach(r=>{this.transitionFactories.push(new mb(e,r,this.states))}),this.fallbackTransition=function UP(n,e,t){return new mb(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(o,a)=>!0],options:null,queryCount:0,depCount:0},e)}(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,i,r){return this.transitionFactories.find(o=>o.match(e,t,i,r))||null}matchStyles(e,t,i){return this.fallbackTransition.buildStyles(e,t,i)}}function gb(n,e,t){n.hasOwnProperty(e)?n.hasOwnProperty(t)||(n[t]=n[e]):n.hasOwnProperty(t)&&(n[e]=n[t])}const zP=new cl;class WP{constructor(e,t,i){this.bodyNode=e,this._driver=t,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(e,t){const i=[],s=th(this._driver,t,i,[]);if(i.length)throw function Yk(n){return new S(3503,q)}();this._animations[e]=s}_buildPlayer(e,t,i){const r=e.element,s=Yv(0,this._normalizer,0,e.keyframes,t,i);return this._driver.animate(r,s,e.duration,e.delay,e.easing,[],!0)}create(e,t,i={}){const r=[],s=this._animations[e];let o;const a=new Map;if(s?(o=rh(this._driver,t,s,Xd,Za,{},{},i,zP,r),o.forEach(u=>{const d=Et(a,u.element,{});u.postStyleProps.forEach(h=>d[h]=null)})):(r.push(function Kk(){return new S(3300,q)}()),o=[]),r.length)throw function Xk(n){return new S(3504,q)}();a.forEach((u,d)=>{Object.keys(u).forEach(h=>{u[h]=this._driver.computeStyle(d,h,Fn)})});const c=ti(o.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,{},d)}));return this._playersById[e]=c,c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){const t=this._getPlayer(e);t.destroy(),delete this._playersById[e];const i=this.players.indexOf(t);i>=0&&this.players.splice(i,1)}_getPlayer(e){const t=this._playersById[e];if(!t)throw function Zk(n){return new S(3301,q)}();return t}listen(e,t,i,r){const s=Gd(t,"","","");return zd(this._getPlayer(e),i,s,r),()=>{}}command(e,t,i,r){if("register"==i)return void this.register(e,r[0]);if("create"==i)return void this.create(e,t,r[0]||{});const s=this._getPlayer(e);switch(i){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e)}}}const _b="ng-animate-queued",lh="ng-animate-disabled",XP=[],yb={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ZP={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Vt="__ng_removed";class ch{constructor(e,t=""){this.namespaceId=t;const i=e&&e.hasOwnProperty("value");if(this.value=function tF(n){return null!=n?n:null}(i?e.value:e),i){const s=Rr(e);delete s.value,this.options=s}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const t=e.params;if(t){const i=this.options.params;Object.keys(t).forEach(r=>{null==i[r]&&(i[r]=t[r])})}}}const eo="void",uh=new ch(eo);class QP{constructor(e,t,i){this.id=e,this.hostElement=t,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Ht(t,this._hostClassName)}listen(e,t,i,r){if(!this._triggers.hasOwnProperty(t))throw function Qk(n,e){return new S(3302,q)}();if(null==i||0==i.length)throw function Jk(n){return new S(3303,q)}();if(!function nF(n){return"start"==n||"done"==n}(i))throw function eP(n,e){return new S(3400,q)}();const s=Et(this._elementListeners,e,[]),o={name:t,phase:i,callback:r};s.push(o);const a=Et(this._engine.statesByElement,e,{});return a.hasOwnProperty(t)||(Ht(e,Qa),Ht(e,Qa+"-"+t),a[t]=uh),()=>{this._engine.afterFlush(()=>{const l=s.indexOf(o);l>=0&&s.splice(l,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 function tP(n){return new S(3401,q)}();return t}trigger(e,t,i,r=!0){const s=this._getTrigger(t),o=new dh(this.id,t,e);let a=this._engine.statesByElement.get(e);a||(Ht(e,Qa),Ht(e,Qa+"-"+t),this._engine.statesByElement.set(e,a={}));let l=a[t];const c=new ch(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a[t]=c,l||(l=uh),c.value!==eo&&l.value===c.value){if(!function sF(n,e){const t=Object.keys(n),i=Object.keys(e);if(t.length!=i.length)return!1;for(let r=0;r<t.length;r++){const s=t[r];if(!e.hasOwnProperty(s)||n[s]!==e[s])return!1}return!0}(l.params,c.params)){const m=[],_=s.matchStyles(l.value,l.params,m),y=s.matchStyles(c.value,c.params,m);m.length?this._engine.reportError(m):this._engine.afterFlush(()=>{Ti(e,_),wn(e,y)})}return}const h=Et(this._engine.playersByElement,e,[]);h.forEach(m=>{m.namespaceId==this.id&&m.triggerName==t&&m.queued&&m.destroy()});let f=s.matchTransition(l.value,c.value,e,c.params),p=!1;if(!f){if(!r)return;f=s.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:f,fromState:l,toState:c,player:o,isFallbackTransition:p}),p||(Ht(e,_b),o.onStart(()=>{kr(e,_b)})),o.onDone(()=>{let m=this.players.indexOf(o);m>=0&&this.players.splice(m,1);const _=this._engine.playersByElement.get(e);if(_){let y=_.indexOf(o);y>=0&&_.splice(y,1)}}),this.players.push(o),h.push(o),o}deregister(e){delete this._triggers[e],this._engine.statesByElement.forEach((t,i)=>{delete t[e]}),this._elementListeners.forEach((t,i)=>{this._elementListeners.set(i,t.filter(r=>r.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach(i=>i.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const i=this._engine.driver.query(e,Ja,!0);i.forEach(r=>{if(r[Vt])return;const s=this._engine.fetchNamespacesByElement(r);s.size?s.forEach(o=>o.triggerLeaveAnimation(r,t,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(e,t,i,r){const s=this._engine.statesByElement.get(e),o=new Map;if(s){const a=[];if(Object.keys(s).forEach(l=>{if(o.set(l,s[l].value),this._triggers[l]){const c=this.trigger(e,l,eo,r);c&&a.push(c)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),i&&ti(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e),i=this._engine.statesByElement.get(e);if(t&&i){const r=new Set;t.forEach(s=>{const o=s.name;if(r.has(o))return;r.add(o);const l=this._triggers[o].fallbackTransition,c=i[o]||uh,u=new ch(eo),d=new dh(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(e,t){const i=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let r=!1;if(i.totalAnimations){const s=i.players.length?i.playersByQueriedElement.get(e):[];if(s&&s.length)r=!0;else{let o=e;for(;o=o.parentNode;)if(i.statesByElement.get(o)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(e),r)i.markElementAsRemoved(this.id,e,!1,t);else{const s=e[Vt];(!s||s===yb)&&(i.afterFlush(()=>this.clearElementCache(e)),i.destroyInnerAnimations(e),i._onRemovalComplete(e,t))}}insertNode(e,t){Ht(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const s=i.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==i.triggerName){const l=Gd(s,i.triggerName,i.fromState.value,i.toState.value);l._data=e,zd(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):t.push(i)}),this._queue=[],t.sort((i,r)=>{const s=i.transition.ast.depCount,o=r.transition.ast.depCount;return 0==s||0==o?s-o:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find(i=>i.element===e)||t,t}}class JP{constructor(e,t,i){this.bodyNode=e,this.driver=t,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,s)=>{}}_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){const e=[];return this._namespaceList.forEach(t=>{t.players.forEach(i=>{i.queued&&e.push(i)})}),e}createNamespace(e,t){const i=new QP(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(i,t):(this.newHostElements.set(t,i),this.collectEnterElement(t)),this._namespaceLookup[e]=i}_balanceNamespaceList(e,t){const i=this._namespaceList,r=this.namespacesByHostElement,s=i.length-1;if(s>=0){let o=!1;if(void 0!==this.driver.getParentElement){let a=this.driver.getParentElement(t);for(;a;){const l=r.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}}else for(let a=s;a>=0;a--)if(this.driver.containsElement(i[a].hostElement,t)){i.splice(a+1,0,e),o=!0;break}o||i.unshift(e)}else i.push(e);return r.set(t,e),e}register(e,t){let i=this._namespaceLookup[e];return i||(i=this.createNamespace(e,t)),i}registerTrigger(e,t,i){let r=this._namespaceLookup[e];r&&r.register(t,i)&&this.totalAnimations++}destroy(e,t){if(!e)return;const i=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[e];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(t))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,i=this.statesByElement.get(e);if(i){const r=Object.keys(i);for(let s=0;s<r.length;s++){const o=i[r[s]].namespaceId;if(o){const a=this._fetchNamespace(o);a&&t.add(a)}}}return t}trigger(e,t,i,r){if(hl(t)){const s=this._fetchNamespace(e);if(s)return s.trigger(t,i,r),!0}return!1}insertNode(e,t,i,r){if(!hl(t))return;const s=t[Vt];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){const o=this._fetchNamespace(e);o&&o.insertNode(t,i)}r&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Ht(e,lh)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),kr(e,lh))}removeNode(e,t,i,r){if(hl(t)){const s=e?this._fetchNamespace(e):null;if(s?s.removeNode(t,r):this.markElementAsRemoved(e,t,!1,r),i){const o=this.namespacesByHostElement.get(t);o&&o.id!==e&&o.removeNode(t,r)}}else this._onRemovalComplete(t,r)}markElementAsRemoved(e,t,i,r,s){this.collectedLeaveElements.push(t),t[Vt]={namespaceId:e,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:s}}listen(e,t,i,r,s){return hl(t)?this._fetchNamespace(e).listen(t,i,r,s):()=>{}}_buildInstruction(e,t,i,r,s){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,i,r,e.fromState.options,e.toState.options,t,s)}destroyInnerAnimations(e){let t=this.driver.query(e,Ja,!0);t.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,Zd,!0),t.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return ti(this.players).onDone(()=>e());e()})}processLeaveNode(e){var t;const i=e[Vt];if(i&&i.setForRemoval){if(e[Vt]=yb,i.namespaceId){this.destroyInnerAnimations(e);const r=this._fetchNamespace(i.namespaceId);r&&r.clearElementCache(e)}this._onRemovalComplete(e,i.setForRemoval)}(null===(t=e.classList)||void 0===t?void 0:t.contains(lh))&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++)Ht(this.collectedEnterElements[i],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const i=[];try{t=this._flushAnimations(i,e)}finally{for(let r=0;r<i.length;r++)i[r]()}}else for(let i=0;i<this.collectedLeaveElements.length;i++)this.processLeaveNode(this.collectedLeaveElements[i]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(i=>i()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],t.length?ti(t).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(e){throw function nP(n){return new S(3402,q)}()}_flushAnimations(e,t){const i=new cl,r=[],s=new Map,o=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(M=>{u.add(M);const A=this.driver.query(M,".ng-animate-queued",!0);for(let F=0;F<A.length;F++)u.add(A[F])});const d=this.bodyNode,h=Array.from(this.statesByElement.keys()),f=wb(h,this.collectedEnterElements),p=new Map;let m=0;f.forEach((M,A)=>{const F=Xd+m++;p.set(A,F),M.forEach(X=>Ht(X,F))});const _=[],y=new Set,g=new Set;for(let M=0;M<this.collectedLeaveElements.length;M++){const A=this.collectedLeaveElements[M],F=A[Vt];F&&F.setForRemoval&&(_.push(A),y.add(A),F.hasAnimation?this.driver.query(A,".ng-star-inserted",!0).forEach(X=>y.add(X)):g.add(A))}const E=new Map,T=wb(h,Array.from(y));T.forEach((M,A)=>{const F=Za+m++;E.set(A,F),M.forEach(X=>Ht(X,F))}),e.push(()=>{f.forEach((M,A)=>{const F=p.get(A);M.forEach(X=>kr(X,F))}),T.forEach((M,A)=>{const F=E.get(A);M.forEach(X=>kr(X,F))}),_.forEach(M=>{this.processLeaveNode(M)})});const H=[],me=[];for(let M=this._namespaceList.length-1;M>=0;M--)this._namespaceList[M].drainQueuedTransitions(t).forEach(F=>{const X=F.player,$e=F.element;if(H.push(X),this.collectedEnterElements.length){const ot=$e[Vt];if(ot&&ot.setForMove){if(ot.previousTriggersValues&&ot.previousTriggersValues.has(F.triggerName)){const Fi=ot.previousTriggersValues.get(F.triggerName),ai=this.statesByElement.get(F.element);ai&&ai[F.triggerName]&&(ai[F.triggerName].value=Fi)}return void X.destroy()}}const Cn=!d||!this.driver.containsElement(d,$e),At=E.get($e),oi=p.get($e),be=this._buildInstruction(F,i,oi,At,Cn);if(be.errors&&be.errors.length)return void me.push(be);if(Cn)return X.onStart(()=>Ti($e,be.fromStyles)),X.onDestroy(()=>wn($e,be.toStyles)),void r.push(X);if(F.isFallbackTransition)return X.onStart(()=>Ti($e,be.fromStyles)),X.onDestroy(()=>wn($e,be.toStyles)),void r.push(X);const xE=[];be.timelines.forEach(ot=>{ot.stretchStartingKeyframe=!0,this.disabledNodes.has(ot.element)||xE.push(ot)}),be.timelines=xE,i.append($e,be.timelines),o.push({instruction:be,player:X,element:$e}),be.queriedElements.forEach(ot=>Et(a,ot,[]).push(X)),be.preStyleProps.forEach((ot,Fi)=>{const ai=Object.keys(ot);if(ai.length){let Ni=l.get(Fi);Ni||l.set(Fi,Ni=new Set),ai.forEach(Jh=>Ni.add(Jh))}}),be.postStyleProps.forEach((ot,Fi)=>{const ai=Object.keys(ot);let Ni=c.get(Fi);Ni||c.set(Fi,Ni=new Set),ai.forEach(Jh=>Ni.add(Jh))})});if(me.length){const M=[];me.forEach(A=>{M.push(function iP(n,e){return new S(3505,q)}())}),H.forEach(A=>A.destroy()),this.reportError(M)}const ve=new Map,Tt=new Map;o.forEach(M=>{const A=M.element;i.has(A)&&(Tt.set(A,A),this._beforeAnimationBuild(M.player.namespaceId,M.instruction,ve))}),r.forEach(M=>{const A=M.element;this._getPreviousPlayers(A,!1,M.namespaceId,M.triggerName,null).forEach(X=>{Et(ve,A,[]).push(X),X.destroy()})});const It=_.filter(M=>Db(M,l,c)),xt=new Map;bb(xt,this.driver,g,c,Fn).forEach(M=>{Db(M,l,c)&&It.push(M)});const Vn=new Map;f.forEach((M,A)=>{bb(Vn,this.driver,new Set(M),l,"!")}),It.forEach(M=>{const A=xt.get(M),F=Vn.get(M);xt.set(M,Object.assign(Object.assign({},A),F))});const an=[],qr=[],Yr={};o.forEach(M=>{const{element:A,player:F,instruction:X}=M;if(i.has(A)){if(u.has(A))return F.onDestroy(()=>wn(A,X.toStyles)),F.disabled=!0,F.overrideTotalTime(X.totalTime),void r.push(F);let $e=Yr;if(Tt.size>1){let At=A;const oi=[];for(;At=At.parentNode;){const be=Tt.get(At);if(be){$e=be;break}oi.push(At)}oi.forEach(be=>Tt.set(be,$e))}const Cn=this._buildAnimation(F.namespaceId,X,ve,s,Vn,xt);if(F.setRealPlayer(Cn),$e===Yr)an.push(F);else{const At=this.playersByElement.get($e);At&&At.length&&(F.parentPlayer=ti(At)),r.push(F)}}else Ti(A,X.fromStyles),F.onDestroy(()=>wn(A,X.toStyles)),qr.push(F),u.has(A)&&r.push(F)}),qr.forEach(M=>{const A=s.get(M.element);if(A&&A.length){const F=ti(A);M.setRealPlayer(F)}}),r.forEach(M=>{M.parentPlayer?M.syncPlayerEvents(M.parentPlayer):M.destroy()});for(let M=0;M<_.length;M++){const A=_[M],F=A[Vt];if(kr(A,Za),F&&F.hasAnimation)continue;let X=[];if(a.size){let Cn=a.get(A);Cn&&Cn.length&&X.push(...Cn);let At=this.driver.query(A,Zd,!0);for(let oi=0;oi<At.length;oi++){let be=a.get(At[oi]);be&&be.length&&X.push(...be)}}const $e=X.filter(Cn=>!Cn.destroyed);$e.length?iF(this,A,$e):this.processLeaveNode(A)}return _.length=0,an.forEach(M=>{this.players.push(M),M.onDone(()=>{M.destroy();const A=this.players.indexOf(M);this.players.splice(A,1)}),M.play()}),an}elementContainsData(e,t){let i=!1;const r=t[Vt];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(t)&&(i=!0),this.playersByQueriedElement.has(t)&&(i=!0),this.statesByElement.has(t)&&(i=!0),this._fetchNamespace(e).elementContainsData(t)||i}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,i,r,s){let o=[];if(t){const a=this.playersByQueriedElement.get(e);a&&(o=a)}else{const a=this.playersByElement.get(e);if(a){const l=!s||s==eo;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||o.push(c)})}}return(i||r)&&(o=o.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),o}_beforeAnimationBuild(e,t,i){const s=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:t.triggerName;for(const l of t.timelines){const c=l.element,u=c!==s,d=Et(i,c,[]);this._getPreviousPlayers(c,u,o,a,t.toState).forEach(f=>{const p=f.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),f.destroy(),d.push(f)})}Ti(s,t.fromStyles)}_buildAnimation(e,t,i,r,s,o){const a=t.triggerName,l=t.element,c=[],u=new Set,d=new Set,h=t.timelines.map(p=>{const m=p.element;u.add(m);const _=m[Vt];if(_&&_.removedBeforeQueried)return new Qs(p.duration,p.delay);const y=m!==l,g=function rF(n){const e=[];return Eb(n,e),e}((i.get(m)||XP).map(ve=>ve.getRealPlayer())).filter(ve=>!!ve.element&&ve.element===m),E=s.get(m),T=o.get(m),H=Yv(0,this._normalizer,0,p.keyframes,E,T),me=this._buildPlayer(p,H,g);if(p.subTimeline&&r&&d.add(m),y){const ve=new dh(e,a,m);ve.setRealPlayer(me),c.push(ve)}return me});c.forEach(p=>{Et(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function eF(n,e,t){let i;if(n instanceof Map){if(i=n.get(e),i){if(i.length){const r=i.indexOf(t);i.splice(r,1)}0==i.length&&n.delete(e)}}else if(i=n[e],i){if(i.length){const r=i.indexOf(t);i.splice(r,1)}0==i.length&&delete n[e]}return i}(this.playersByQueriedElement,p.element,p))}),u.forEach(p=>Ht(p,rb));const f=ti(h);return f.onDestroy(()=>{u.forEach(p=>kr(p,rb)),wn(l,t.toStyles)}),d.forEach(p=>{Et(r,p,[]).push(f)}),f}_buildPlayer(e,t,i){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,i):new Qs(e.duration,e.delay)}}class dh{constructor(e,t,i){this.namespaceId=e,this.triggerName=t,this.element=i,this._player=new Qs,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(i=>zd(e,t,void 0,i))}),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){Et(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 hl(n){return n&&1===n.nodeType}function vb(n,e){const t=n.style.display;return n.style.display=null!=e?e:"none",t}function bb(n,e,t,i,r){const s=[];t.forEach(l=>s.push(vb(l)));const o=[];i.forEach((l,c)=>{const u={};l.forEach(d=>{const h=u[d]=e.computeStyle(c,d,r);(!h||0==h.length)&&(c[Vt]=ZP,o.push(c))}),n.set(c,u)});let a=0;return t.forEach(l=>vb(l,s[a++])),o}function wb(n,e){const t=new Map;if(n.forEach(a=>t.set(a,[])),0==e.length)return t;const r=new Set(e),s=new Map;function o(a){if(!a)return 1;let l=s.get(a);if(l)return l;const c=a.parentNode;return l=t.has(c)?c:r.has(c)?1:o(c),s.set(a,l),l}return e.forEach(a=>{const l=o(a);1!==l&&t.get(l).push(a)}),t}function Ht(n,e){var t;null===(t=n.classList)||void 0===t||t.add(e)}function kr(n,e){var t;null===(t=n.classList)||void 0===t||t.remove(e)}function iF(n,e,t){ti(t).onDone(()=>n.processLeaveNode(e))}function Eb(n,e){for(let t=0;t<n.length;t++){const i=n[t];i instanceof Gv?Eb(i.players,e):e.push(i)}}function Db(n,e,t){const i=t.get(n);if(!i)return!1;let r=e.get(n);return r?i.forEach(s=>r.add(s)):e.set(n,i),t.delete(n),!0}class fl{constructor(e,t,i){this.bodyNode=e,this._driver=t,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,s)=>{},this._transitionEngine=new JP(e,t,i),this._timelineEngine=new WP(e,t,i),this._transitionEngine.onRemovalComplete=(r,s)=>this.onRemovalComplete(r,s)}registerTrigger(e,t,i,r,s){const o=e+"-"+r;let a=this._triggerCache[o];if(!a){const l=[],u=th(this._driver,s,l,[]);if(l.length)throw function Gk(n,e){return new S(3404,q)}();a=function jP(n,e,t){return new $P(n,e,t)}(r,u,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,r,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,i,r){this._transitionEngine.insertNode(e,t,i,r)}onRemove(e,t,i,r){this._transitionEngine.removeNode(e,t,r||!1,i)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,i,r){if("@"==i.charAt(0)){const[s,o]=Kv(i);this._timelineEngine.command(s,t,o,r)}else this._transitionEngine.trigger(e,t,i,r)}listen(e,t,i,r,s){if("@"==i.charAt(0)){const[o,a]=Kv(i);return this._timelineEngine.listen(o,t,a,s)}return this._transitionEngine.listen(e,t,i,r,s)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let aF=(()=>{class n{constructor(t,i,r){this._element=t,this._startStyles=i,this._endStyles=r,this._state=0;let s=n.initialStylesByElement.get(t);s||n.initialStylesByElement.set(t,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&wn(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(wn(this._element,this._initialStyles),this._endStyles&&(wn(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(Ti(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ti(this._element,this._endStyles),this._endStyles=null),wn(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function hh(n){let e=null;const t=Object.keys(n);for(let i=0;i<t.length;i++){const r=t[i];lF(r)&&(e=e||{},e[r]=n[r])}return e}function lF(n){return"display"===n||"position"===n}class Cb{constructor(e,t,i,r){this.element=e,this.keyframes=t,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_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,i){return e.animate(t,i)}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){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e={};if(this.hasStarted()){const t=this._finalKeyframe;Object.keys(t).forEach(i=>{"offset"!=i&&(e[i]=this._finished?t[i]:cb(this.element,i))})}this.currentSnapshot=e}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}class cF{validateStyleProperty(e){return Jv(e)}matchesElement(e,t){return!1}containsElement(e,t){return eb(e,t)}getParentElement(e){return Yd(e)}query(e,t,i){return tb(e,t,i)}computeStyle(e,t,i){return window.getComputedStyle(e)[t]}animate(e,t,i,r,s,o=[]){const l={duration:i,delay:r,fill:0==r?"both":"forwards"};s&&(l.easing=s);const c={},u=o.filter(h=>h instanceof Cb);(function fP(n,e){return 0===n||0===e})(i,r)&&u.forEach(h=>{let f=h.currentSnapshot;Object.keys(f).forEach(p=>c[p]=f[p])}),t=function pP(n,e,t){const i=Object.keys(t);if(i.length&&e.length){let s=e[0],o=[];if(i.forEach(a=>{s.hasOwnProperty(a)||o.push(a),s[a]=t[a]}),o.length)for(var r=1;r<e.length;r++){let a=e[r];o.forEach(function(l){a[l]=cb(n,l)})}}return e}(e,t=t.map(h=>ni(h,!1)),c);const d=function oF(n,e){let t=null,i=null;return Array.isArray(e)&&e.length?(t=hh(e[0]),e.length>1&&(i=hh(e[e.length-1]))):e&&(t=hh(e)),t||i?new aF(n,t,i):null}(e,t);return new Cb(e,t,l,d)}}let uF=(()=>{class n extends Uv{constructor(t,i){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(i.body,{id:"0",encapsulation:Wt.None,styles:[],data:{animation:[]}})}build(t){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(t)?zv(t):t;return Sb(this._renderer,null,i,"register",[r]),new dF(i,this._renderer)}}return n.\u0275fac=function(t){return new(t||n)(v(Ps),v(G))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();class dF extends class Dk{}{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new hF(this._id,e,t||{},this._renderer)}}class hF{constructor(e,t,i,r){this.id=e,this.element=t,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(e,t){return this._renderer.listen(this.element,`@@${this.id}:${e}`,t)}_command(e,...t){return Sb(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"),this._started=!1}setPosition(e){this._command("setPosition",e)}getPosition(){var e,t;return null!==(t=null===(e=this._renderer.engine.players[+this.id])||void 0===e?void 0:e.getPosition())&&void 0!==t?t:0}}function Sb(n,e,t,i,r){return n.setProperty(e,`@@${t}:${i}`,r)}const Mb="@.disabled";let fF=(()=>{class n{constructor(t,i,r){this.delegate=t,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(s,o)=>{const a=null==o?void 0:o.parentNode(s);a&&o.removeChild(a,s)}}createRenderer(t,i){const s=this.delegate.createRenderer(t,i);if(!(t&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(s);return u||(u=new Tb("",s,this.engine),this._rendererCache.set(s,u)),u}const o=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,t);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(o,a,t,u.name,u)};return i.data.animation.forEach(l),new pF(this,a,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,i,r){t>=0&&t<this._microtaskId?this._zone.run(()=>i(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(s=>{const[o,a]=s;o(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,r]))}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 n.\u0275fac=function(t){return new(t||n)(v(Ps),v(fl),v(re))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();class Tb{constructor(e,t,i){this.namespaceId=e,this.delegate=t,this.engine=i,this.destroyNode=this.delegate.destroyNode?r=>t.destroyNode(r):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,i,r=!0){this.delegate.insertBefore(e,t,i),this.engine.onInsert(this.namespaceId,t,e,r)}removeChild(e,t,i){this.engine.onRemove(this.namespaceId,t,this.delegate,i)}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,i,r){this.delegate.setAttribute(e,t,i,r)}removeAttribute(e,t,i){this.delegate.removeAttribute(e,t,i)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,i,r){this.delegate.setStyle(e,t,i,r)}removeStyle(e,t,i){this.delegate.removeStyle(e,t,i)}setProperty(e,t,i){"@"==t.charAt(0)&&t==Mb?this.disableAnimations(e,!!i):this.delegate.setProperty(e,t,i)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,i){return this.delegate.listen(e,t,i)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}class pF extends Tb{constructor(e,t,i,r){super(t,i,r),this.factory=e,this.namespaceId=t}setProperty(e,t,i){"@"==t.charAt(0)?"."==t.charAt(1)&&t==Mb?this.disableAnimations(e,i=void 0===i||!!i):this.engine.process(this.namespaceId,e,t.substr(1),i):this.delegate.setProperty(e,t,i)}listen(e,t,i){if("@"==t.charAt(0)){const r=function mF(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(e);let s=t.substr(1),o="";return"@"!=s.charAt(0)&&([s,o]=function gF(n){const e=n.indexOf(".");return[n.substring(0,e),n.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,r,s,o,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(e,t,i)}}let _F=(()=>{class n extends fl{constructor(t,i,r){super(t.body,i,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(t){return new(t||n)(v(G),v(Kd),v(oh))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();const ml=new I("AnimationModuleType"),Ib=[{provide:Uv,useClass:uF},{provide:oh,useFactory:function yF(){return new NP}},{provide:fl,useClass:_F},{provide:Ps,useFactory:function vF(n,e,t){return new fF(n,e,t)},deps:[Wa,fl,re]}],xb=[{provide:Kd,useFactory:()=>new cF},{provide:ml,useValue:"BrowserAnimations"},...Ib],bF=[{provide:Kd,useClass:nb},{provide:ml,useValue:"NoopAnimations"},...Ib];let Ab=(()=>{class n{static withConfig(t){return{ngModule:n,providers:t.disableAnimations?bF:xb}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({providers:xb,imports:[Ld]}),n})();function Pr(n){return null!=n&&"false"!=`${n}`}function Ob(n,e=0){return function wF(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}(n)?Number(n):e}function gl(n){return Array.isArray(n)?n:[n]}function Re(n){return null==n?"":"string"==typeof n?n:`${n}px`}function Fr(n){return n instanceof Ie?n.nativeElement:n}function Rb(n,e,t,i){return Kr(t)&&(i=t,t=void 0),i?Rb(n,e,t).pipe(Ve(r=>Bi(r)?i(...r):i(r))):new le(r=>{kb(n,e,function s(o){r.next(arguments.length>1?Array.prototype.slice.call(arguments):o)},r,t)})}function kb(n,e,t,i,r){let s;if(function CF(n){return n&&"function"==typeof n.addEventListener&&"function"==typeof n.removeEventListener}(n)){const o=n;n.addEventListener(e,t,r),s=()=>o.removeEventListener(e,t,r)}else if(function DF(n){return n&&"function"==typeof n.on&&"function"==typeof n.off}(n)){const o=n;n.on(e,t),s=()=>o.off(e,t)}else if(function EF(n){return n&&"function"==typeof n.addListener&&"function"==typeof n.removeListener}(n)){const o=n;n.addListener(e,t),s=()=>o.removeListener(e,t)}else{if(!n||!n.length)throw new TypeError("Invalid event target");for(let o=0,a=n.length;o<a;o++)kb(n[o],e,t,i,r)}i.add(s)}new class MF extends sn{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let i,r=-1,s=t.length;e=e||t.shift();do{if(i=e.execute(e.state,e.delay))break}while(++r<s&&(e=t.shift()));if(this.active=!1,i){for(;++r<s&&(e=t.shift());)e.unsubscribe();throw i}}}(class SF extends Ga{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,i=0){return null!==i&&i>0?super.requestAsyncId(e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(()=>e.flush(null))))}recycleAsyncId(e,t,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(e,t,i);0===e.actions.length&&(cancelAnimationFrame(t),e.scheduled=void 0)}});let IF=1;const xF=Promise.resolve(),_l={};function Pb(n){return n in _l&&(delete _l[n],!0)}const Fb={setImmediate(n){const e=IF++;return _l[e]=!0,xF.then(()=>Pb(e)&&n()),e},clearImmediate(n){Pb(n)}},fh=new class OF extends sn{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let i,r=-1,s=t.length;e=e||t.shift();do{if(i=e.execute(e.state,e.delay))break}while(++r<s&&(e=t.shift()));if(this.active=!1,i){for(;++r<s&&(e=t.shift());)e.unsubscribe();throw i}}}(class AF extends Ga{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,i=0){return null!==i&&i>0?super.requestAsyncId(e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=Fb.setImmediate(e.flush.bind(e,null))))}recycleAsyncId(e,t,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(e,t,i);0===e.actions.length&&(Fb.clearImmediate(t),e.scheduled=void 0)}}),yl=new sn(Ga);class kF{constructor(e){this.durationSelector=e}call(e,t){return t.subscribe(new PF(e,this.durationSelector))}}class PF extends Qr{constructor(e,t){super(e),this.durationSelector=t,this.hasValue=!1}_next(e){if(this.value=e,this.hasValue=!0,!this.throttled){let t;try{const{durationSelector:r}=this;t=r(e)}catch(r){return this.destination.error(r)}const i=Jr(t,new Zr(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:e,hasValue:t,throttled:i}=this;i&&(this.remove(i),this.throttled=void 0,i.unsubscribe()),t&&(this.value=void 0,this.hasValue=!1,this.destination.next(e))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function Nb(n){return!Bi(n)&&n-parseFloat(n)+1>=0}function NF(n){const{index:e,period:t,subscriber:i}=n;if(i.next(e),!i.closed){if(-1===t)return i.complete();n.index=e+1,this.schedule(n,t)}}function Lb(n,e=yl){return function RF(n){return function(t){return t.lift(new kF(n))}}(()=>function FF(n=0,e,t){let i=-1;return Nb(e)?i=Number(e)<1?1:Number(e):Vi(e)&&(t=e),Vi(t)||(t=yl),new le(r=>{const s=Nb(n)?n:+n-t.now();return t.schedule(NF,s,{index:0,period:i,subscriber:r})})}(n,e))}function Nn(n,e){return function(i){return i.lift(new LF(n,e))}}class LF{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new BF(e,this.predicate,this.thisArg))}}class BF extends he{constructor(e,t,i){super(e),this.predicate=t,this.thisArg=i,this.count=0}_next(e){let t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(i){return void this.destination.error(i)}t&&this.destination.next(e)}}let ph;try{ph="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(n){ph=!1}let to,xi,gh,on=(()=>{class n{constructor(t){this._platformId=t,this.isBrowser=this._platformId?function wO(n){return n===fv}(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&&!ph)&&"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 n.\u0275fac=function(t){return new(t||n)(v(wa))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),mh=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({}),n})();function no(n){return function VF(){if(null==to&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>to=!0}))}finally{to=to||!1}return to}()?n:!!n.capture}function HF(){if(null==xi){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return xi=!1,xi;if("scrollBehavior"in document.documentElement.style)xi=!0;else{const n=Element.prototype.scrollTo;xi=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return xi}function Ai(n){return n.composedPath?n.composedPath()[0]:n.target}function _h(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}const UF=new I("cdk-dir-doc",{providedIn:"root",factory:function zF(){return zo(G)}}),WF=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let yh=(()=>{class n{constructor(t){if(this.value="ltr",this.change=new xe,t){const r=t.documentElement?t.documentElement.dir:null;this.value=function GF(n){const e=(null==n?void 0:n.toLowerCase())||"";return"auto"===e&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?WF.test(navigator.language)?"rtl":"ltr":"rtl"===e?"rtl":"ltr"}((t.body?t.body.dir:null)||r||"ltr")}}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(t){return new(t||n)(v(UF,8))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),io=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({}),n})(),Vb=(()=>{class n{constructor(t,i,r){this._ngZone=t,this._platform=i,this._scrolled=new de,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const i=this.scrollContainers.get(t);i&&(i.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new le(i=>{this._globalSubscription||this._addGlobalListener();const r=t>0?this._scrolled.pipe(Lb(t)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):ut()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(t,i){const r=this.getAncestorScrollContainers(t);return this.scrolled(i).pipe(Nn(s=>!s||r.indexOf(s)>-1))}getAncestorScrollContainers(t){const i=[];return this.scrollContainers.forEach((r,s)=>{this._scrollableContainsElement(s,t)&&i.push(s)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,i){let r=Fr(i),s=t.getElementRef().nativeElement;do{if(r==s)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Rb(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return n.\u0275fac=function(t){return new(t||n)(v(re),v(on),v(G,8))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Hb=(()=>{class n{constructor(t,i,r){this._platform=t,this._change=new de,this._changeListener=s=>{this._change.next(s)},this._document=r,i.runOutsideAngular(()=>{if(t.isBrowser){const s=this._getWindow();s.addEventListener("resize",this._changeListener),s.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+r,right:t.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,i=this._getWindow(),r=t.documentElement,s=r.getBoundingClientRect();return{top:-s.top||t.body.scrollTop||i.scrollY||r.scrollTop||0,left:-s.left||t.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(Lb(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return n.\u0275fac=function(t){return new(t||n)(v(on),v(re),v(G,8))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),bl=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({}),n})(),jb=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({imports:[[io,mh,bl],io,bl]}),n})();class vh{attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;null!=e&&(this._attachedHost=null,e.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(e){this._attachedHost=e}}class $b extends vh{constructor(e,t,i,r){super(),this.component=e,this.viewContainerRef=t,this.injector=i,this.componentFactoryResolver=r}}class Ub extends vh{constructor(e,t,i){super(),this.templateRef=e,this.viewContainerRef=t,this.context=i}get origin(){return this.templateRef.elementRef}attach(e,t=this.context){return this.context=t,super.attach(e)}detach(){return this.context=void 0,super.detach()}}class KF extends vh{constructor(e){super(),this.element=e instanceof Ie?e.nativeElement:e}}class ZF extends class XF{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(e){return e instanceof $b?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof Ub?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof KF?(this._attachedPortal=e,this.attachDomPortal(e)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}{constructor(e,t,i,r,s){super(),this.outletElement=e,this._componentFactoryResolver=t,this._appRef=i,this._defaultInjector=r,this.attachDomPortal=o=>{const a=o.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=o,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=s}attachComponentPortal(e){const i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);let r;return e.viewContainerRef?(r=e.viewContainerRef.createComponent(i,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=i.create(e.injector||this._defaultInjector),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=e,r}attachTemplatePortal(e){let t=e.viewContainerRef,i=t.createEmbeddedView(e.templateRef,e.context);return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=t.indexOf(i);-1!==r&&t.remove(r)}),this._attachedPortal=e,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(e){return e.hostView.rootNodes[0]}}let QF=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({}),n})();const JF=(()=>{function n(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return n.prototype=Object.create(Error.prototype),n})();function Ln(n){return e=>0===n?Vv():e.lift(new eN(n))}class eN{constructor(e){if(this.total=e,this.total<0)throw new JF}call(e,t){return t.subscribe(new tN(e,this.total))}}class tN extends he{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){const t=this.total,i=++this.count;i<=t&&(this.destination.next(e),i===t&&(this.destination.complete(),this.unsubscribe()))}}function Ct(n){return e=>e.lift(new nN(n))}class nN{constructor(e){this.notifier=e}call(e,t){const i=new iN(e),r=Jr(this.notifier,new Zr(i));return r&&!i.seenValue?(i.add(r),t.subscribe(i)):i}}class iN extends Qr{constructor(e){super(e),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}const zb=HF();class rN{constructor(e,t){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=t}attach(){}enable(){if(this._canBeEnabled()){const e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=Re(-this._previousScrollPosition.left),e.style.top=Re(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const e=this._document.documentElement,i=e.style,r=this._document.body.style,s=i.scrollBehavior||"",o=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),zb&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),zb&&(i.scrollBehavior=s,r.scrollBehavior=o)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,i=this._viewportRuler.getViewportSize();return t.scrollHeight>i.height||t.scrollWidth>i.width}}class sN{constructor(e,t,i,r){this._scrollDispatcher=e,this._ngZone=t,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(e){this._overlayRef=e}enable(){if(this._scrollSubscription)return;const e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Wb{enable(){}disable(){}attach(){}}function bh(n,e){return e.some(t=>n.bottom<t.top||n.top>t.bottom||n.right<t.left||n.left>t.right)}function Gb(n,e){return e.some(t=>n.top<t.top||n.bottom>t.bottom||n.left<t.left||n.right>t.right)}class oN{constructor(e,t,i,r){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=i,this._config=r,this._scrollSubscription=null}attach(e){this._overlayRef=e}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();bh(t,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let aN=(()=>{class n{constructor(t,i,r,s){this._scrollDispatcher=t,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new Wb,this.close=o=>new sN(this._scrollDispatcher,this._ngZone,this._viewportRuler,o),this.block=()=>new rN(this._viewportRuler,this._document),this.reposition=o=>new oN(this._scrollDispatcher,this._viewportRuler,this._ngZone,o),this._document=s}}return n.\u0275fac=function(t){return new(t||n)(v(Vb),v(Hb),v(re),v(G))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class qb{constructor(e){if(this.scrollStrategy=new Wb,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e){const t=Object.keys(e);for(const i of t)void 0!==e[i]&&(this[i]=e[i])}}}class lN{constructor(e,t){this.connectionPair=e,this.scrollableViewProperties=t}}class cN{constructor(e,t,i,r,s,o,a,l,c){this._portalOutlet=e,this._host=t,this._pane=i,this._config=r,this._ngZone=s,this._keyboardDispatcher=o,this._document=a,this._location=l,this._outsideClickDispatcher=c,this._backdropElement=null,this._backdropClick=new de,this._attachments=new de,this._detachments=new de,this._locationChanges=Z.EMPTY,this._backdropClickHandler=u=>this._backdropClick.next(u),this._keydownEvents=new de,this._outsidePointerEvents=new de,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(e){let t=this._portalOutlet.attach(e);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(Ln(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),t}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){var e;const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(e=this._host)||void 0===e||e.remove(),this._previousHostParent=this._pane=this._host=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config=Object.assign(Object.assign({},this._config),e),this._updateElementSize()}setDirection(e){this._config=Object.assign(Object.assign({},this._config),{direction:e}),this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){const e=this._config.direction;return e?"string"==typeof e?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const e=this._pane.style;e.width=Re(this._config.width),e.height=Re(this._config.height),e.minWidth=Re(this._config.minWidth),e.minHeight=Re(this._config.minHeight),e.maxWidth=Re(this._config.maxWidth),e.maxHeight=Re(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){const e="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(e)})}):this._backdropElement.classList.add(e)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const e=this._backdropElement;if(!e)return;let t;const i=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",i),this._disposeBackdrop(e)),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),clearTimeout(t)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",i)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(i,500))}_toggleClasses(e,t,i){const r=gl(t||[]).filter(s=>!!s);r.length&&(i?e.classList.add(...r):e.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const e=this._ngZone.onStable.pipe(Ct(Hi(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),e.unsubscribe())})})}_disposeScrollStrategy(){const e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}_disposeBackdrop(e){e&&(e.remove(),this._backdropElement===e&&(this._backdropElement=null))}}let wl=(()=>{class n{constructor(t,i){this._platform=i,this._document=t}ngOnDestroy(){var t;null===(t=this._containerElement)||void 0===t||t.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container";if(this._platform.isBrowser||_h()){const r=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let s=0;s<r.length;s++)r[s].remove()}const i=this._document.createElement("div");i.classList.add(t),_h()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}}return n.\u0275fac=function(t){return new(t||n)(v(G),v(on))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Yb="cdk-overlay-connected-position-bounding-box",uN=/([A-Za-z%]+)$/;class dN{constructor(e,t,i,r,s){this._viewportRuler=t,this._document=i,this._platform=r,this._overlayContainer=s,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new de,this._resizeSubscription=Z.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(e)}get positions(){return this._preferredPositions}attach(e){this._validatePositions(),e.hostElement.classList.add(Yb),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._originRect,t=this._overlayRect,i=this._viewportRect,r=this._containerRect,s=[];let o;for(let a of this._preferredPositions){let l=this._getOriginPoint(e,r,a),c=this._getOverlayPoint(l,t,a),u=this._getOverlayFit(c,t,i,a);if(u.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,l);this._canFitWithFlexibleDimensions(u,c,i)?s.push({position:a,origin:l,overlayRect:t,boundingBoxRect:this._calculateBoundingBoxRect(l,a)}):(!o||o.overlayFit.visibleArea<u.visibleArea)&&(o={overlayFit:u,overlayPoint:c,originPoint:l,position:a,overlayRect:t})}if(s.length){let a=null,l=-1;for(const c of s){const u=c.boundingBoxRect.width*c.boundingBoxRect.height*(c.position.weight||1);u>l&&(l=u,a=c)}return this._isPushed=!1,void this._applyPosition(a.position,a.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(o.position,o.originPoint);this._applyPosition(o.position,o.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Oi(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Yb),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._lastPosition||this._preferredPositions[0],t=this._getOriginPoint(this._originRect,this._containerRect,e);this._applyPosition(e,t)}}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=!0){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=!0){return this._growAfterOpen=e,this}withPush(e=!0){return this._canPush=e,this}withLockedPosition(e=!0){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}_getOriginPoint(e,t,i){let r,s;if("center"==i.originX)r=e.left+e.width/2;else{const o=this._isRtl()?e.right:e.left,a=this._isRtl()?e.left:e.right;r="start"==i.originX?o:a}return t.left<0&&(r-=t.left),s="center"==i.originY?e.top+e.height/2:"top"==i.originY?e.top:e.bottom,t.top<0&&(s-=t.top),{x:r,y:s}}_getOverlayPoint(e,t,i){let r,s;return r="center"==i.overlayX?-t.width/2:"start"===i.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,s="center"==i.overlayY?-t.height/2:"top"==i.overlayY?0:-t.height,{x:e.x+r,y:e.y+s}}_getOverlayFit(e,t,i,r){const s=Xb(t);let{x:o,y:a}=e,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(o+=l),c&&(a+=c);let h=0-a,f=a+s.height-i.height,p=this._subtractOverflows(s.width,0-o,o+s.width-i.width),m=this._subtractOverflows(s.height,h,f),_=p*m;return{visibleArea:_,isCompletelyWithinViewport:s.width*s.height===_,fitsInViewportVertically:m===s.height,fitsInViewportHorizontally:p==s.width}}_canFitWithFlexibleDimensions(e,t,i){if(this._hasFlexibleDimensions){const r=i.bottom-t.y,s=i.right-t.x,o=Kb(this._overlayRef.getConfig().minHeight),a=Kb(this._overlayRef.getConfig().minWidth),c=e.fitsInViewportHorizontally||null!=a&&a<=s;return(e.fitsInViewportVertically||null!=o&&o<=r)&&c}return!1}_pushOverlayOnScreen(e,t,i){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};const r=Xb(t),s=this._viewportRect,o=Math.max(e.x+r.width-s.width,0),a=Math.max(e.y+r.height-s.height,0),l=Math.max(s.top-i.top-e.y,0),c=Math.max(s.left-i.left-e.x,0);let u=0,d=0;return u=r.width<=s.width?c||-o:e.x<this._viewportMargin?s.left-i.left-e.x:0,d=r.height<=s.height?l||-a:e.y<this._viewportMargin?s.top-i.top-e.y:0,this._previousPushAmount={x:u,y:d},{x:e.x+u,y:e.y+d}}_applyPosition(e,t){if(this._setTransformOrigin(e),this._setOverlayElementStyles(t,e),this._setBoundingBoxStyles(t,e),e.panelClass&&this._addPanelClasses(e.panelClass),this._lastPosition=e,this._positionChanges.observers.length){const i=this._getScrollVisibility(),r=new lN(e,i);this._positionChanges.next(r)}this._isInitialRender=!1}_setTransformOrigin(e){if(!this._transformOriginSelector)return;const t=this._boundingBox.querySelectorAll(this._transformOriginSelector);let i,r=e.overlayY;i="center"===e.overlayX?"center":this._isRtl()?"start"===e.overlayX?"right":"left":"start"===e.overlayX?"left":"right";for(let s=0;s<t.length;s++)t[s].style.transformOrigin=`${i} ${r}`}_calculateBoundingBoxRect(e,t){const i=this._viewportRect,r=this._isRtl();let s,o,a,u,d,h;if("top"===t.overlayY)o=e.y,s=i.height-o+this._viewportMargin;else if("bottom"===t.overlayY)a=i.height-e.y+2*this._viewportMargin,s=i.height-a+this._viewportMargin;else{const f=Math.min(i.bottom-e.y+i.top,e.y),p=this._lastBoundingBoxSize.height;s=2*f,o=e.y-f,s>p&&!this._isInitialRender&&!this._growAfterOpen&&(o=e.y-p/2)}if("end"===t.overlayX&&!r||"start"===t.overlayX&&r)h=i.width-e.x+this._viewportMargin,u=e.x-this._viewportMargin;else if("start"===t.overlayX&&!r||"end"===t.overlayX&&r)d=e.x,u=i.right-e.x;else{const f=Math.min(i.right-e.x+i.left,e.x),p=this._lastBoundingBoxSize.width;u=2*f,d=e.x-f,u>p&&!this._isInitialRender&&!this._growAfterOpen&&(d=e.x-p/2)}return{top:o,left:d,bottom:a,right:h,width:u,height:s}}_setBoundingBoxStyles(e,t){const i=this._calculateBoundingBoxRect(e,t);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const s=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;r.height=Re(i.height),r.top=Re(i.top),r.bottom=Re(i.bottom),r.width=Re(i.width),r.left=Re(i.left),r.right=Re(i.right),r.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",r.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",s&&(r.maxHeight=Re(s)),o&&(r.maxWidth=Re(o))}this._lastBoundingBoxSize=i,Oi(this._boundingBox.style,r)}_resetBoundingBoxStyles(){Oi(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Oi(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,t){const i={},r=this._hasExactPosition(),s=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(r){const u=this._viewportRuler.getViewportScrollPosition();Oi(i,this._getExactOverlayY(t,e,u)),Oi(i,this._getExactOverlayX(t,e,u))}else i.position="static";let a="",l=this._getOffset(t,"x"),c=this._getOffset(t,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),i.transform=a.trim(),o.maxHeight&&(r?i.maxHeight=Re(o.maxHeight):s&&(i.maxHeight="")),o.maxWidth&&(r?i.maxWidth=Re(o.maxWidth):s&&(i.maxWidth="")),Oi(this._pane.style,i)}_getExactOverlayY(e,t,i){let r={top:"",bottom:""},s=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),"bottom"===e.overlayY?r.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":r.top=Re(s.y),r}_getExactOverlayX(e,t,i){let o,r={left:"",right:""},s=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),o=this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left","right"===o?r.right=this._document.documentElement.clientWidth-(s.x+this._overlayRect.width)+"px":r.left=Re(s.x),r}_getScrollVisibility(){const e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Gb(e,i),isOriginOutsideView:bh(e,i),isOverlayClipped:Gb(t,i),isOverlayOutsideView:bh(t,i)}}_subtractOverflows(e,...t){return t.reduce((i,r)=>i-Math.max(r,0),e)}_getNarrowedViewportRect(){const e=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+e-this._viewportMargin,bottom:i.top+t-this._viewportMargin,width:e-2*this._viewportMargin,height:t-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,t){return"x"===t?null==e.offsetX?this._offsetX:e.offsetX:null==e.offsetY?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&gl(e).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){const e=this._origin;if(e instanceof Ie)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();const t=e.width||0,i=e.height||0;return{top:e.y,bottom:e.y+i,left:e.x,right:e.x+t,height:i,width:t}}}function Oi(n,e){for(let t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}function Kb(n){if("number"!=typeof n&&null!=n){const[e,t]=n.split(uN);return t&&"px"!==t?null:parseFloat(e)}return n||null}function Xb(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}const Zb="cdk-global-overlay-wrapper";class hN{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(e){const t=e.getConfig();this._overlayRef=e,this._width&&!t.width&&e.updateSize({width:this._width}),this._height&&!t.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(Zb),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._rightOffset="",this._leftOffset=e,this._justifyContent="flex-start",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._leftOffset="",this._rightOffset=e,this._justifyContent="flex-end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._justifyContent="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:r,height:s,maxWidth:o,maxHeight:a}=i,l=!("100%"!==r&&"100vw"!==r||o&&"100%"!==o&&"100vw"!==o),c=!("100%"!==s&&"100vh"!==s||a&&"100%"!==a&&"100vh"!==a);e.position=this._cssPosition,e.marginLeft=l?"0":this._leftOffset,e.marginTop=c?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,l?t.justifyContent="flex-start":"center"===this._justifyContent?t.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?t.justifyContent="flex-end":"flex-end"===this._justifyContent&&(t.justifyContent="flex-start"):t.justifyContent=this._justifyContent,t.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,i=t.style;t.classList.remove(Zb),i.justifyContent=i.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}let fN=(()=>{class n{constructor(t,i,r,s){this._viewportRuler=t,this._document=i,this._platform=r,this._overlayContainer=s}global(){return new hN}flexibleConnectedTo(t){return new dN(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(t){return new(t||n)(v(Hb),v(G),v(on),v(wl))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Qb=(()=>{class n{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const i=this._attachedOverlays.indexOf(t);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}}return n.\u0275fac=function(t){return new(t||n)(v(G))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),pN=(()=>{class n extends Qb{constructor(t){super(t),this._keydownListener=i=>{const r=this._attachedOverlays;for(let s=r.length-1;s>-1;s--)if(r[s]._keydownEvents.observers.length>0){r[s]._keydownEvents.next(i);break}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return n.\u0275fac=function(t){return new(t||n)(v(G))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),mN=(()=>{class n extends Qb{constructor(t,i){super(t),this._platform=i,this._cursorStyleIsSet=!1,this._pointerDownListener=r=>{this._pointerDownEventTarget=Ai(r)},this._clickListener=r=>{const s=Ai(r),o="click"===r.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:s;this._pointerDownEventTarget=null;const a=this._attachedOverlays.slice();for(let l=a.length-1;l>-1;l--){const c=a[l];if(!(c._outsidePointerEvents.observers.length<1)&&c.hasAttached()){if(c.overlayElement.contains(s)||c.overlayElement.contains(o))break;c._outsidePointerEvents.next(r)}}}}add(t){if(super.add(t),!this._isAttached){const i=this._document.body;i.addEventListener("pointerdown",this._pointerDownListener,!0),i.addEventListener("click",this._clickListener,!0),i.addEventListener("auxclick",this._clickListener,!0),i.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const t=this._document.body;t.removeEventListener("pointerdown",this._pointerDownListener,!0),t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return n.\u0275fac=function(t){return new(t||n)(v(G),v(on))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),gN=0,Lr=(()=>{class n{constructor(t,i,r,s,o,a,l,c,u,d,h){this.scrollStrategies=t,this._overlayContainer=i,this._componentFactoryResolver=r,this._positionBuilder=s,this._keyboardDispatcher=o,this._injector=a,this._ngZone=l,this._document=c,this._directionality=u,this._location=d,this._outsideClickDispatcher=h}create(t){const i=this._createHostElement(),r=this._createPaneElement(i),s=this._createPortalOutlet(r),o=new qb(t);return o.direction=o.direction||this._directionality.value,new cN(s,i,r,o,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const i=this._document.createElement("div");return i.id="cdk-overlay-"+gN++,i.classList.add("cdk-overlay-pane"),t.appendChild(i),i}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(Ea)),new ZF(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(t){return new(t||n)(v(aN),v(wl),v(Xn),v(fN),v(pN),v(tt),v(re),v(G),v(yh),v(ev),v(mN))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();const vN={provide:new I("cdk-connected-overlay-scroll-strategy"),deps:[Lr],useFactory:function yN(n){return()=>n.scrollStrategies.reposition()}};let Jb=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({providers:[Lr,vN],imports:[[io,QF,jb],jb]}),n})();class bN extends de{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return t&&!t.closed&&e.next(this._value),t}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new li;return this._value}next(e){super.next(this._value=e)}}function Dh(n,...e){return e.length?e.some(t=>n[t]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}function Bn(){}function St(n,e,t){return function(r){return r.lift(new FN(n,e,t))}}class FN{constructor(e,t,i){this.nextOrObserver=e,this.error=t,this.complete=i}call(e,t){return t.subscribe(new NN(e,this.nextOrObserver,this.error,this.complete))}}class NN extends he{constructor(e,t,i,r){super(e),this._tapNext=Bn,this._tapError=Bn,this._tapComplete=Bn,this._tapError=i||Bn,this._tapComplete=r||Bn,Kr(t)?(this._context=this,this._tapNext=t):t&&(this._context=t,this._tapNext=t.next||Bn,this._tapError=t.error||Bn,this._tapComplete=t.complete||Bn)}_next(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}function rw(n,e=yl){return t=>t.lift(new LN(n,e))}class LN{constructor(e,t){this.dueTime=e,this.scheduler=t}call(e,t){return t.subscribe(new BN(e,this.dueTime,this.scheduler))}}class BN extends he{constructor(e,t,i){super(e),this.dueTime=t,this.scheduler=i,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(VN,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 VN(n){n.debouncedNext()}function sw(n){return e=>e.lift(new HN(n))}class HN{constructor(e){this.total=e}call(e,t){return t.subscribe(new jN(e,this.total))}}class jN extends he{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){++this.count>this.total&&this.destination.next(e)}}class UN{constructor(e,t){this.compare=e,this.keySelector=t}call(e,t){return t.subscribe(new zN(e,this.compare,this.keySelector))}}class zN extends he{constructor(e,t,i){super(e),this.keySelector=i,this.hasKey=!1,"function"==typeof t&&(this.compare=t)}compare(e,t){return e===t}_next(e){let t;try{const{keySelector:r}=this;t=r?r(e):e}catch(r){return this.destination.error(r)}let i=!1;if(this.hasKey)try{const{compare:r}=this;i=r(this.key,t)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=t,this.destination.next(e))}}let WN=(()=>{class n{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),GN=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({providers:[WN]}),n})();function El(n,e){return(n.getAttribute(e)||"").match(/\S+/g)||[]}const aw="cdk-describedby-message-container",lw="cdk-describedby-message",Dl="cdk-describedby-host";let KN=0;const En=new Map;let Mt=null,XN=(()=>{class n{constructor(t){this._document=t}describe(t,i,r){if(!this._canBeDescribed(t,i))return;const s=Ch(i,r);"string"!=typeof i?(cw(i),En.set(s,{messageElement:i,referenceCount:0})):En.has(s)||this._createMessageElement(i,r),this._isElementDescribedByMessage(t,s)||this._addMessageReference(t,s)}removeDescription(t,i,r){if(!i||!this._isElementNode(t))return;const s=Ch(i,r);if(this._isElementDescribedByMessage(t,s)&&this._removeMessageReference(t,s),"string"==typeof i){const o=En.get(s);o&&0===o.referenceCount&&this._deleteMessageElement(s)}Mt&&0===Mt.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const t=this._document.querySelectorAll(`[${Dl}]`);for(let i=0;i<t.length;i++)this._removeCdkDescribedByReferenceIds(t[i]),t[i].removeAttribute(Dl);Mt&&this._deleteMessagesContainer(),En.clear()}_createMessageElement(t,i){const r=this._document.createElement("div");cw(r),r.textContent=t,i&&r.setAttribute("role",i),this._createMessagesContainer(),Mt.appendChild(r),En.set(Ch(t,i),{messageElement:r,referenceCount:0})}_deleteMessageElement(t){var i;const r=En.get(t);null===(i=null==r?void 0:r.messageElement)||void 0===i||i.remove(),En.delete(t)}_createMessagesContainer(){if(!Mt){const t=this._document.getElementById(aw);null==t||t.remove(),Mt=this._document.createElement("div"),Mt.id=aw,Mt.style.visibility="hidden",Mt.classList.add("cdk-visually-hidden"),this._document.body.appendChild(Mt)}}_deleteMessagesContainer(){Mt&&(Mt.remove(),Mt=null)}_removeCdkDescribedByReferenceIds(t){const i=El(t,"aria-describedby").filter(r=>0!=r.indexOf(lw));t.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(t,i){const r=En.get(i);(function qN(n,e,t){const i=El(n,e);i.some(r=>r.trim()==t.trim())||(i.push(t.trim()),n.setAttribute(e,i.join(" ")))})(t,"aria-describedby",r.messageElement.id),t.setAttribute(Dl,""),r.referenceCount++}_removeMessageReference(t,i){const r=En.get(i);r.referenceCount--,function YN(n,e,t){const r=El(n,e).filter(s=>s!=t.trim());r.length?n.setAttribute(e,r.join(" ")):n.removeAttribute(e)}(t,"aria-describedby",r.messageElement.id),t.removeAttribute(Dl)}_isElementDescribedByMessage(t,i){const r=El(t,"aria-describedby"),s=En.get(i),o=s&&s.messageElement.id;return!!o&&-1!=r.indexOf(o)}_canBeDescribed(t,i){if(!this._isElementNode(t))return!1;if(i&&"object"==typeof i)return!0;const r=null==i?"":`${i}`.trim(),s=t.getAttribute("aria-label");return!(!r||s&&s.trim()===r)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return n.\u0275fac=function(t){return new(t||n)(v(G))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Ch(n,e){return"string"==typeof n?`${e||""}/${n}`:n}function cw(n){n.id||(n.id=`${lw}-${KN++}`)}class QN extends class ZN{constructor(e){this._items=e,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new de,this._typeaheadSubscription=Z.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new de,this.change=new de,e instanceof Ar&&e.changes.subscribe(t=>{if(this._activeItem){const r=t.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}})}skipPredicate(e){return this._skipPredicateFn=e,this}withWrap(e=!0){return this._wrap=e,this}withVerticalOrientation(e=!0){return this._vertical=e,this}withHorizontalOrientation(e){return this._horizontal=e,this}withAllowedModifierKeys(e){return this._allowedModifierKeys=e,this}withTypeAhead(e=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(St(t=>this._pressedLetters.push(t)),rw(e),Nn(()=>this._pressedLetters.length>0),Ve(()=>this._pressedLetters.join(""))).subscribe(t=>{const i=this._getItemsArray();for(let r=1;r<i.length+1;r++){const s=(this._activeItemIndex+r)%i.length,o=i[s];if(!this._skipPredicateFn(o)&&0===o.getLabel().toUpperCase().trim().indexOf(t)){this.setActiveItem(s);break}}this._pressedLetters=[]}),this}withHomeAndEnd(e=!0){return this._homeAndEnd=e,this}setActiveItem(e){const t=this._activeItem;this.updateActiveItem(e),this._activeItem!==t&&this.change.next(this._activeItemIndex)}onKeydown(e){const t=e.keyCode,r=["altKey","ctrlKey","metaKey","shiftKey"].every(s=>!e[s]||this._allowedModifierKeys.indexOf(s)>-1);switch(t){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;default:return void((r||Dh(e,"shiftKey"))&&(e.key&&1===e.key.length?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(t>=65&&t<=90||t>=48&&t<=57)&&this._letterKeyStream.next(String.fromCharCode(t))))}this._pressedLetters=[],e.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(e){const t=this._getItemsArray(),i="number"==typeof e?e:t.indexOf(e),r=t[i];this._activeItem=null==r?null:r,this._activeItemIndex=i}_setActiveItemByDelta(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}_setActiveInWrapMode(e){const t=this._getItemsArray();for(let i=1;i<=t.length;i++){const r=(this._activeItemIndex+e*i+t.length)%t.length;if(!this._skipPredicateFn(t[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}_setActiveItemByIndex(e,t){const i=this._getItemsArray();if(i[e]){for(;this._skipPredicateFn(i[e]);)if(!i[e+=t])return;this.setActiveItem(e)}}_getItemsArray(){return this._items instanceof Ar?this._items.toArray():this._items}}{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(e){return this._origin=e,this}setActiveItem(e){super.setActiveItem(e),this.activeItem&&this.activeItem.focus(this._origin)}}function Sh(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}function Mh(n){const e=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!e||-1!==e.identifier||null!=e.radiusX&&1!==e.radiusX||null!=e.radiusY&&1!==e.radiusY)}const s1=new I("cdk-input-modality-detector-options"),o1={ignoreKeys:[18,17,224,91,16]},Br=no({passive:!0,capture:!0});let a1=(()=>{class n{constructor(t,i,r,s){this._platform=t,this._mostRecentTarget=null,this._modality=new bN(null),this._lastTouchMs=0,this._onKeydown=o=>{var a,l;(null===(l=null===(a=this._options)||void 0===a?void 0:a.ignoreKeys)||void 0===l?void 0:l.some(c=>c===o.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=Ai(o))},this._onMousedown=o=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Sh(o)?"keyboard":"mouse"),this._mostRecentTarget=Ai(o))},this._onTouchstart=o=>{Mh(o)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Ai(o))},this._options=Object.assign(Object.assign({},o1),s),this.modalityDetected=this._modality.pipe(sw(1)),this.modalityChanged=this.modalityDetected.pipe(function $N(n,e){return t=>t.lift(new UN(n,e))}()),t.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,Br),r.addEventListener("mousedown",this._onMousedown,Br),r.addEventListener("touchstart",this._onTouchstart,Br)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Br),document.removeEventListener("mousedown",this._onMousedown,Br),document.removeEventListener("touchstart",this._onTouchstart,Br))}}return n.\u0275fac=function(t){return new(t||n)(v(on),v(re),v(G),v(s1,8))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const c1=new I("cdk-focus-monitor-default-options"),Cl=no({passive:!0,capture:!0});let Sl=(()=>{class n{constructor(t,i,r,s,o){this._ngZone=t,this._platform=i,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new de,this._rootNodeFocusAndBlurListener=a=>{const l=Ai(a),c="focus"===a.type?this._onFocus:this._onBlur;for(let u=l;u;u=u.parentElement)c.call(this,a,u)},this._document=s,this._detectionMode=(null==o?void 0:o.detectionMode)||0}monitor(t,i=!1){const r=Fr(t);if(!this._platform.isBrowser||1!==r.nodeType)return ut(null);const s=function $F(n){if(function jF(){if(null==gh){const n="undefined"!=typeof document?document.head:null;gh=!(!n||!n.createShadowRoot&&!n.attachShadow)}return gh}()){const e=n.getRootNode?n.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}(r)||this._getDocument(),o=this._elementInfo.get(r);if(o)return i&&(o.checkChildren=!0),o.subject;const a={checkChildren:i,subject:new de,rootNode:s};return this._elementInfo.set(r,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(t){const i=Fr(t),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(t,i,r){const s=Fr(t);s===this._getDocument().activeElement?this._getClosestElementsInfo(s).forEach(([a,l])=>this._originChanged(a,i,l)):(this._setOrigin(i),"function"==typeof s.focus&&s.focus(r))}ngOnDestroy(){this._elementInfo.forEach((t,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(t){return 1===this._detectionMode||!!(null==t?void 0:t.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(t,i){t.classList.toggle("cdk-focused",!!i),t.classList.toggle("cdk-touch-focused","touch"===i),t.classList.toggle("cdk-keyboard-focused","keyboard"===i),t.classList.toggle("cdk-mouse-focused","mouse"===i),t.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(t,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=t,this._originFromTouchInteraction="touch"===t&&i,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(t,i){const r=this._elementInfo.get(i),s=Ai(t);!r||!r.checkChildren&&i!==s||this._originChanged(i,this._getFocusOrigin(s),r)}_onBlur(t,i){const r=this._elementInfo.get(i);!r||r.checkChildren&&t.relatedTarget instanceof Node&&i.contains(t.relatedTarget)||(this._setClasses(i),this._emitOrigin(r.subject,null))}_emitOrigin(t,i){this._ngZone.run(()=>t.next(i))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const i=t.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,Cl),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,Cl)}),this._rootNodeFocusListenerCount.set(i,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Ct(this._stopInputModalityDetector)).subscribe(s=>{this._setOrigin(s,!0)}))}_removeGlobalListeners(t){const i=t.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Cl),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Cl),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(t,i,r){this._setClasses(t,i),this._emitOrigin(r.subject,i),this._lastFocusOrigin=i}_getClosestElementsInfo(t){const i=[];return this._elementInfo.forEach((r,s)=>{(s===t||r.checkChildren&&s.contains(t))&&i.push([s,r])}),i}}return n.\u0275fac=function(t){return new(t||n)(v(re),v(on),v(a1),v(G,8),v(c1,8))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const hw="cdk-high-contrast-black-on-white",fw="cdk-high-contrast-white-on-black",Th="cdk-high-contrast-active";let pw=(()=>{class n{constructor(t,i){this._platform=t,this._document=i}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(t):null,s=(r&&r.backgroundColor||"").replace(/ /g,"");switch(t.remove(),s){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove(Th),t.remove(hw),t.remove(fw),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?(t.add(Th),t.add(hw)):2===i&&(t.add(Th),t.add(fw))}}}return n.\u0275fac=function(t){return new(t||n)(v(on),v(G))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),u1=(()=>{class n{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return n.\u0275fac=function(t){return new(t||n)(v(pw))},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({imports:[[mh,GN]]}),n})();const h1=new I("mat-sanity-checks",{providedIn:"root",factory:function d1(){return!0}});let Dn=(()=>{class n{constructor(t,i,r){this._sanityChecks=i,this._document=r,this._hasDoneGlobalChecks=!1,t._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(t){return!_h()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[t])}}return n.\u0275fac=function(t){return new(t||n)(v(pw),v(h1,8),v(G))},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({imports:[[io],io]}),n})();function gw(n){return class extends n{constructor(...e){super(...e),this._disabled=!1}get disabled(){return this._disabled}set disabled(e){this._disabled=Pr(e)}}}function _w(n,e){return class extends n{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const i=t||this.defaultColor;i!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),i&&this._elementRef.nativeElement.classList.add(`mat-${i}`),this._color=i)}}}function yw(n){return class extends n{constructor(...e){super(...e),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=Pr(e)}}}class p1{constructor(e,t,i){this._renderer=e,this.element=t,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const vw={enterDuration:225,exitDuration:150},Ih=no({passive:!0}),bw=["mousedown","touchstart"],ww=["mouseup","mouseleave","touchend","touchcancel"];class g1{constructor(e,t,i,r){this._target=e,this._ngZone=t,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Fr(i))}fadeInRipple(e,t,i={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},vw),i.animation);i.centered&&(e=r.left+r.width/2,t=r.top+r.height/2);const o=i.radius||function y1(n,e,t){const i=Math.max(Math.abs(n-t.left),Math.abs(n-t.right)),r=Math.max(Math.abs(e-t.top),Math.abs(e-t.bottom));return Math.sqrt(i*i+r*r)}(e,t,r),a=e-r.left,l=t-r.top,c=s.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=a-o+"px",u.style.top=l-o+"px",u.style.height=2*o+"px",u.style.width=2*o+"px",null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u),function _1(n){window.getComputedStyle(n).getPropertyValue("opacity")}(u),u.style.transform="scale(1)";const d=new p1(this,u,i);return d.state=0,this._activeRipples.add(d),i.persistent||(this._mostRecentTransientRipple=d),this._runTimeoutOutsideZone(()=>{const h=d===this._mostRecentTransientRipple;d.state=1,!i.persistent&&(!h||!this._isPointerDown)&&d.fadeOut()},c),d}fadeOutRipple(e){const t=this._activeRipples.delete(e);if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!t)return;const i=e.element,r=Object.assign(Object.assign({},vw),e.config.animation);i.style.transitionDuration=`${r.exitDuration}ms`,i.style.opacity="0",e.state=2,this._runTimeoutOutsideZone(()=>{e.state=3,i.remove()},r.exitDuration)}fadeOutAll(){this._activeRipples.forEach(e=>e.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(e=>{e.config.persistent||e.fadeOut()})}setupTriggerEvents(e){const t=Fr(e);!t||t===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=t,this._registerEvents(bw))}handleEvent(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(ww),this._pointerUpEventsRegistered=!0)}_onMousedown(e){const t=Sh(e),i=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!t&&!i&&(this._isPointerDown=!0,this.fadeInRipple(e.clientX,e.clientY,this._target.rippleConfig))}_onTouchStart(e){if(!this._target.rippleDisabled&&!Mh(e)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const t=e.changedTouches;for(let i=0;i<t.length;i++)this.fadeInRipple(t[i].clientX,t[i].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(t=>{this._triggerElement.addEventListener(t,this,Ih)})})}_removeTriggerEvents(){this._triggerElement&&(bw.forEach(e=>{this._triggerElement.removeEventListener(e,this,Ih)}),this._pointerUpEventsRegistered&&ww.forEach(e=>{this._triggerElement.removeEventListener(e,this,Ih)}))}}const v1=new I("mat-ripple-global-options");let xh=(()=>{class n{constructor(t,i,r,s,o){this._elementRef=t,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new g1(this,i,t,r)}get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}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(t,i=0,r){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,i,Object.assign(Object.assign({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return n.\u0275fac=function(t){return new(t||n)(w(Ie),w(re),w(on),w(v1,8),w(ml,8))},n.\u0275dir=Ce({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,i){2&t&&_n("mat-ripple-unbounded",i.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),n})(),Ew=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({imports:[[Dn,mh],Dn]}),n})();const b1=["mat-button",""],w1=["*"],D1=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],C1=_w(gw(yw(class{constructor(n){this._elementRef=n}})));let S1=(()=>{class n extends C1{constructor(t,i,r){super(t),this._focusMonitor=i,this._animationMode=r,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const s of D1)this._hasHostAttributes(s)&&this._getHostElement().classList.add(s);t.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(t,i){t?this._focusMonitor.focusVia(this._getHostElement(),t,i):this._getHostElement().focus(i)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(i=>this._getHostElement().hasAttribute(i))}}return n.\u0275fac=function(t){return new(t||n)(w(Ie),w(Sl),w(ml,8))},n.\u0275cmp=Gt({type:n,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(t,i){if(1&t&&Bs(xh,5),2&t){let r;Zn(r=Qn())&&(i.ripple=r.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,i){2&t&&(We("disabled",i.disabled||null),_n("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-button-disabled",i.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[On],attrs:b1,ngContentSelectors:w1,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,i){1&t&&(Er(),Q(0,"span",0),vi(1),ie(),Kn(2,"span",1)(3,"span",2)),2&t&&(k(2),_n("mat-button-ripple-round",i.isRoundButton||i.isIconButton),O("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i.isIconButton)("matRippleTrigger",i._getHostElement()))},directives:[xh],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),n})(),M1=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({imports:[[Ew,Dn],Dn]}),n})();function Ml(n,e){return new le(t=>{const i=n.length;if(0===i)return void t.complete();const r=new Array(i);let s=0,o=0;for(let a=0;a<i;a++){const l=Vl(n[a]);let c=!1;t.add(l.subscribe({next:u=>{c||(c=!0,o++),r[a]=u},error:u=>t.error(u),complete:()=>{s++,(s===i||!c)&&(o===i&&t.next(e?e.reduce((u,d,h)=>(u[d]=r[h],u),{}):r),t.complete())}}))}})}function Dw(n){return function(t){const i=new I1(n),r=t.lift(i);return i.caught=r}}class I1{constructor(e){this.selector=e}call(e,t){return t.subscribe(new x1(e,this.selector,this.caught))}}class x1 extends Qr{constructor(e,t,i){super(e),this.selector=t,this.caught=i}error(e){if(!this.isStopped){let t;try{t=this.selector(e,this.caught)}catch(s){return void super.error(s)}this._unsubscribeAndRecycle();const i=new Zr(this);this.add(i);const r=Jr(t,i);r!==i&&this.add(r)}}}class O1{constructor(e){this.callback=e}call(e,t){return t.subscribe(new R1(e,this.callback))}}class R1 extends he{constructor(e,t){super(e),this.add(new Z(t))}}class P1{}class ii{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?()=>{this.headers=new Map,e.split("\n").forEach(t=>{const i=t.indexOf(":");if(i>0){const r=t.slice(0,i),s=r.toLowerCase(),o=t.slice(i+1).trim();this.maybeSetNormalizedName(r,s),this.headers.has(s)?this.headers.get(s).push(o):this.headers.set(s,[o])}})}:()=>{this.headers=new Map,Object.keys(e).forEach(t=>{let i=e[t];const r=t.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(r,i),this.maybeSetNormalizedName(t,r))})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,t){return this.clone({name:e,value:t,op:"a"})}set(e,t){return this.clone({name:e,value:t,op:"s"})}delete(e,t){return this.clone({name:e,value:t,op:"d"})}maybeSetNormalizedName(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}init(){this.lazyInit&&(this.lazyInit instanceof ii?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(t=>{this.headers.set(t,e.headers.get(t)),this.normalizedNames.set(t,e.normalizedNames.get(t))})}clone(e){const t=new ii;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof ii?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([e]),t}applyUpdate(e){const t=e.name.toLowerCase();switch(e.op){case"a":case"s":let i=e.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(e.name,t);const r=("a"===e.op?this.headers.get(t):void 0)||[];r.push(...i),this.headers.set(t,r);break;case"d":const s=e.value;if(s){let o=this.headers.get(t);if(!o)return;o=o.filter(a=>-1===s.indexOf(a)),0===o.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,o)}else this.headers.delete(t),this.normalizedNames.delete(t)}}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>e(this.normalizedNames.get(t),this.headers.get(t)))}}class F1{encodeKey(e){return Cw(e)}encodeValue(e){return Cw(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}const L1=/%(\d[a-f0-9])/gi,B1={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function Cw(n){return encodeURIComponent(n).replace(L1,(e,t)=>{var i;return null!==(i=B1[t])&&void 0!==i?i:e})}function Sw(n){return`${n}`}class ri{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new F1,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function N1(n,e){const t=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(r=>{const s=r.indexOf("="),[o,a]=-1==s?[e.decodeKey(r),""]:[e.decodeKey(r.slice(0,s)),e.decodeValue(r.slice(s+1))],l=t.get(o)||[];l.push(a),t.set(o,l)}),t}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(t=>{const i=e.fromObject[t];this.map.set(t,Array.isArray(i)?i:[i])})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const t=this.map.get(e);return t?t[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,t){return this.clone({param:e,value:t,op:"a"})}appendAll(e){const t=[];return Object.keys(e).forEach(i=>{const r=e[i];Array.isArray(r)?r.forEach(s=>{t.push({param:i,value:s,op:"a"})}):t.push({param:i,value:r,op:"a"})}),this.clone(t)}set(e,t){return this.clone({param:e,value:t,op:"s"})}delete(e,t){return this.clone({param:e,value:t,op:"d"})}toString(){return this.init(),this.keys().map(e=>{const t=this.encoder.encodeKey(e);return this.map.get(e).map(i=>t+"="+this.encoder.encodeValue(i)).join("&")}).filter(e=>""!==e).join("&")}clone(e){const t=new ri({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(e),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":const t=("a"===e.op?this.map.get(e.param):void 0)||[];t.push(Sw(e.value)),this.map.set(e.param,t);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let i=this.map.get(e.param)||[];const r=i.indexOf(Sw(e.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(e.param,i):this.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)}}class V1{constructor(){this.map=new Map}set(e,t){return this.map.set(e,t),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}}function Mw(n){return"undefined"!=typeof ArrayBuffer&&n instanceof ArrayBuffer}function Tw(n){return"undefined"!=typeof Blob&&n instanceof Blob}function Iw(n){return"undefined"!=typeof FormData&&n instanceof FormData}class so{constructor(e,t,i,r){let s;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function H1(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,s=r):s=i,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new ii),this.context||(this.context=new V1),this.params){const o=this.params.toString();if(0===o.length)this.urlWithParams=t;else{const a=t.indexOf("?");this.urlWithParams=t+(-1===a?"?":a<t.length-1?"&":"")+o}}else this.params=new ri,this.urlWithParams=t}serializeBody(){return null===this.body?null:Mw(this.body)||Tw(this.body)||Iw(this.body)||function j1(n){return"undefined"!=typeof URLSearchParams&&n instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof ri?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||Iw(this.body)?null:Tw(this.body)?this.body.type||null:Mw(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof ri?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(e={}){var t;const i=e.method||this.method,r=e.url||this.url,s=e.responseType||this.responseType,o=void 0!==e.body?e.body:this.body,a=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,l=void 0!==e.reportProgress?e.reportProgress:this.reportProgress;let c=e.headers||this.headers,u=e.params||this.params;const d=null!==(t=e.context)&&void 0!==t?t:this.context;return void 0!==e.setHeaders&&(c=Object.keys(e.setHeaders).reduce((h,f)=>h.set(f,e.setHeaders[f]),c)),e.setParams&&(u=Object.keys(e.setParams).reduce((h,f)=>h.set(f,e.setParams[f]),u)),new so(i,r,o,{params:u,headers:c,context:d,reportProgress:l,responseType:s,withCredentials:a})}}var Ge=(()=>((Ge=Ge||{})[Ge.Sent=0]="Sent",Ge[Ge.UploadProgress=1]="UploadProgress",Ge[Ge.ResponseHeader=2]="ResponseHeader",Ge[Ge.DownloadProgress=3]="DownloadProgress",Ge[Ge.Response=4]="Response",Ge[Ge.User=5]="User",Ge))();class Ah extends class $1{constructor(e,t=200,i="OK"){this.headers=e.headers||new ii,this.status=void 0!==e.status?e.status:t,this.statusText=e.statusText||i,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}{constructor(e={}){super(e),this.type=Ge.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new Ah({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}function Oh(n,e){return{body:e,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}let Aw=(()=>{class n{constructor(t){this.handler=t}request(t,i,r={}){let s;if(t instanceof so)s=t;else{let l,c;l=r.headers instanceof ii?r.headers:new ii(r.headers),r.params&&(c=r.params instanceof ri?r.params:new ri({fromObject:r.params})),s=new so(t,i,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const o=ut(s).pipe(function k1(n,e){return yo(n,e,1)}(l=>this.handler.handle(l)));if(t instanceof so||"events"===r.observe)return o;const a=o.pipe(Nn(l=>l instanceof Ah));switch(r.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return a.pipe(Ve(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(Ve(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(Ve(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(Ve(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(t,i={}){return this.request("DELETE",t,i)}get(t,i={}){return this.request("GET",t,i)}head(t,i={}){return this.request("HEAD",t,i)}jsonp(t,i){return this.request("JSONP",t,{params:(new ri).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,i={}){return this.request("OPTIONS",t,i)}patch(t,i,r={}){return this.request("PATCH",t,Oh(r,i))}post(t,i,r={}){return this.request("POST",t,Oh(r,i))}put(t,i,r={}){return this.request("PUT",t,Oh(r,i))}}return n.\u0275fac=function(t){return new(t||n)(v(P1))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();const z1=["*"];let Tl;function oo(n){var e;return(null===(e=function W1(){if(void 0===Tl&&(Tl=null,"undefined"!=typeof window)){const n=window;void 0!==n.trustedTypes&&(Tl=n.trustedTypes.createPolicy("angular#components",{createHTML:e=>e}))}return Tl}())||void 0===e?void 0:e.createHTML(n))||n}function Ow(n){return Error(`Unable to find icon with the name "${n}"`)}function Rw(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function kw(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class Ri{constructor(e,t,i){this.url=e,this.svgText=t,this.options=i}}let Vr=(()=>{class n{constructor(t,i,r,s){this._httpClient=t,this._sanitizer=i,this._errorHandler=s,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=r}addSvgIcon(t,i,r){return this.addSvgIconInNamespace("",t,i,r)}addSvgIconLiteral(t,i,r){return this.addSvgIconLiteralInNamespace("",t,i,r)}addSvgIconInNamespace(t,i,r,s){return this._addSvgIconConfig(t,i,new Ri(r,null,s))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,i,r,s){const o=this._sanitizer.sanitize(J.HTML,r);if(!o)throw kw(r);const a=oo(o);return this._addSvgIconConfig(t,i,new Ri("",a,s))}addSvgIconSet(t,i){return this.addSvgIconSetInNamespace("",t,i)}addSvgIconSetLiteral(t,i){return this.addSvgIconSetLiteralInNamespace("",t,i)}addSvgIconSetInNamespace(t,i,r){return this._addSvgIconSetConfig(t,new Ri(i,null,r))}addSvgIconSetLiteralInNamespace(t,i,r){const s=this._sanitizer.sanitize(J.HTML,i);if(!s)throw kw(i);const o=oo(s);return this._addSvgIconSetConfig(t,new Ri("",o,r))}registerFontClassAlias(t,i=t){return this._fontCssClassesByAlias.set(t,i),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const i=this._sanitizer.sanitize(J.RESOURCE_URL,t);if(!i)throw Rw(t);const r=this._cachedIconsByUrl.get(i);return r?ut(Il(r)):this._loadSvgIconFromConfig(new Ri(t,null)).pipe(St(s=>this._cachedIconsByUrl.set(i,s)),Ve(s=>Il(s)))}getNamedSvgIcon(t,i=""){const r=Pw(i,t);let s=this._svgIconConfigs.get(r);if(s)return this._getSvgFromConfig(s);if(s=this._getIconConfigFromResolvers(i,t),s)return this._svgIconConfigs.set(r,s),this._getSvgFromConfig(s);const o=this._iconSetConfigs.get(i);return o?this._getSvgFromIconSetConfigs(t,o):Hv(Ow(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?ut(Il(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(Ve(i=>Il(i)))}_getSvgFromIconSetConfigs(t,i){const r=this._extractIconWithNameFromAnySet(t,i);return r?ut(r):function T1(...n){if(1===n.length){const e=n[0];if(Bi(e))return Ml(e,null);if(Nl(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return Ml(t.map(i=>e[i]),t)}}if("function"==typeof n[n.length-1]){const e=n.pop();return Ml(n=1===n.length&&Bi(n[0])?n[0]:n,null).pipe(Ve(t=>e(...t)))}return Ml(n,null)}(i.filter(o=>!o.svgText).map(o=>this._loadSvgIconSetFromConfig(o).pipe(Dw(a=>{const c=`Loading icon set URL: ${this._sanitizer.sanitize(J.RESOURCE_URL,o.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(c)),ut(null)})))).pipe(Ve(()=>{const o=this._extractIconWithNameFromAnySet(t,i);if(!o)throw Ow(t);return o}))}_extractIconWithNameFromAnySet(t,i){for(let r=i.length-1;r>=0;r--){const s=i[r];if(s.svgText&&s.svgText.toString().indexOf(t)>-1){const o=this._svgElementFromConfig(s),a=this._extractSvgIconFromSet(o,t,s.options);if(a)return a}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(St(i=>t.svgText=i),Ve(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?ut(null):this._fetchIcon(t).pipe(St(i=>t.svgText=i))}_extractSvgIconFromSet(t,i,r){const s=t.querySelector(`[id="${i}"]`);if(!s)return null;const o=s.cloneNode(!0);if(o.removeAttribute("id"),"svg"===o.nodeName.toLowerCase())return this._setSvgAttributes(o,r);if("symbol"===o.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(o),r);const a=this._svgElementFromString(oo("<svg></svg>"));return a.appendChild(o),this._setSvgAttributes(a,r)}_svgElementFromString(t){const i=this._document.createElement("DIV");i.innerHTML=t;const r=i.querySelector("svg");if(!r)throw Error("<svg> tag not found");return r}_toSvgElement(t){const i=this._svgElementFromString(oo("<svg></svg>")),r=t.attributes;for(let s=0;s<r.length;s++){const{name:o,value:a}=r[s];"id"!==o&&i.setAttribute(o,a)}for(let s=0;s<t.childNodes.length;s++)t.childNodes[s].nodeType===this._document.ELEMENT_NODE&&i.appendChild(t.childNodes[s].cloneNode(!0));return i}_setSvgAttributes(t,i){return t.setAttribute("fit",""),t.setAttribute("height","100%"),t.setAttribute("width","100%"),t.setAttribute("preserveAspectRatio","xMidYMid meet"),t.setAttribute("focusable","false"),i&&i.viewBox&&t.setAttribute("viewBox",i.viewBox),t}_fetchIcon(t){var i;const{url:r,options:s}=t,o=null!==(i=null==s?void 0:s.withCredentials)&&void 0!==i&&i;if(!this._httpClient)throw function G1(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}();if(null==r)throw Error(`Cannot fetch icon from URL "${r}".`);const a=this._sanitizer.sanitize(J.RESOURCE_URL,r);if(!a)throw Rw(r);const l=this._inProgressUrlFetches.get(a);if(l)return l;const c=this._httpClient.get(a,{responseType:"text",withCredentials:o}).pipe(Ve(u=>oo(u)),function A1(n){return e=>e.lift(new O1(n))}(()=>this._inProgressUrlFetches.delete(a)),mf());return this._inProgressUrlFetches.set(a,c),c}_addSvgIconConfig(t,i,r){return this._svgIconConfigs.set(Pw(t,i),r),this}_addSvgIconSetConfig(t,i){const r=this._iconSetConfigs.get(t);return r?r.push(i):this._iconSetConfigs.set(t,[i]),this}_svgElementFromConfig(t){if(!t.svgElement){const i=this._svgElementFromString(t.svgText);this._setSvgAttributes(i,t.options),t.svgElement=i}return t.svgElement}_getIconConfigFromResolvers(t,i){for(let r=0;r<this._resolvers.length;r++){const s=this._resolvers[r](i,t);if(s)return Y1(s)?new Ri(s.url,null,s.options):new Ri(s,null)}}}return n.\u0275fac=function(t){return new(t||n)(v(Aw,8),v(Vd),v(G,8),v(Gn))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Il(n){return n.cloneNode(!0)}function Pw(n,e){return n+":"+e}function Y1(n){return!(!n.url||!n.options)}const K1=_w(class{constructor(n){this._elementRef=n}}),X1=new I("mat-icon-location",{providedIn:"root",factory:function Z1(){const n=zo(G),e=n?n.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}}),Fw=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Q1=Fw.map(n=>`[${n}]`).join(", "),J1=/^url\(['"]?#(.*?)['"]?\)$/;let Nw=(()=>{class n extends K1{constructor(t,i,r,s,o){super(t),this._iconRegistry=i,this._location=s,this._errorHandler=o,this._inline=!1,this._currentIconFetch=Z.EMPTY,r||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=Pr(t)}get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}get fontSet(){return this._fontSet}set fontSet(t){const i=this._cleanupFontValue(t);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(t){const i=this._cleanupFontValue(t);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}_splitIconName(t){if(!t)return["",""];const i=t.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&t.size){const i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();const i=t.querySelectorAll("style");for(let s=0;s<i.length;s++)i[s].textContent+=" ";const r=this._location.getPathname();this._previousPath=r,this._cacheChildrenWithExternalReferences(t),this._prependPathToReferences(r),this._elementRef.nativeElement.appendChild(t)}_clearSvgElement(){const t=this._elementRef.nativeElement;let i=t.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){const r=t.childNodes[i];(1!==r.nodeType||"svg"===r.nodeName.toLowerCase())&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const t=this._elementRef.nativeElement,i=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();i!=this._previousFontSetClass&&(this._previousFontSetClass&&t.classList.remove(this._previousFontSetClass),i&&t.classList.add(i),this._previousFontSetClass=i),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&t.classList.remove(this._previousFontIconClass),this.fontIcon&&t.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(t){return"string"==typeof t?t.trim().split(" ")[0]:t}_prependPathToReferences(t){const i=this._elementsWithExternalReferences;i&&i.forEach((r,s)=>{r.forEach(o=>{s.setAttribute(o.name,`url('${t}#${o.value}')`)})})}_cacheChildrenWithExternalReferences(t){const i=t.querySelectorAll(Q1),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let s=0;s<i.length;s++)Fw.forEach(o=>{const a=i[s],l=a.getAttribute(o),c=l?l.match(J1):null;if(c){let u=r.get(a);u||(u=[],r.set(a,u)),u.push({name:o,value:c[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){const[i,r]=this._splitIconName(t);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(Ln(1)).subscribe(s=>this._setSvgElement(s),s=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${i}:${r}! ${s.message}`))})}}}return n.\u0275fac=function(t){return new(t||n)(w(Ie),w(Vr),function Ho(n){return function sC(n,e){if("class"===e)return n.classes;if("style"===e)return n.styles;const t=n.attrs;if(t){const i=t.length;let r=0;for(;r<i;){const s=t[r];if(qf(s))break;if(0===s)r+=2;else if("number"==typeof s)for(r++;r<i&&"string"==typeof t[r];)r++;else{if(s===e)return t[r+1];r+=2}}}return null}(ke(),n)}("aria-hidden"),w(X1),w(Gn))},n.\u0275cmp=Gt({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(t,i){2&t&&(We("data-mat-icon-type",i._usingFontIcon()?"font":"svg")("data-mat-icon-name",i._svgName||i.fontIcon)("data-mat-icon-namespace",i._svgNamespace||i.fontSet),_n("mat-icon-inline",i.inline)("mat-icon-no-color","primary"!==i.color&&"accent"!==i.color&&"warn"!==i.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[On],ngContentSelectors:z1,decls:1,vars:0,template:function(t,i){1&t&&(Er(),vi(0))},styles:[".mat-icon{-webkit-user-select:none;-moz-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),n})(),Lw=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({imports:[[Dn],Dn]}),n})();class eL extends he{notifyNext(e,t,i,r,s){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}class tL extends he{constructor(e,t,i){super(),this.parent=e,this.outerValue=t,this.outerIndex=i,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function nL(n,e,t,i,r=new tL(n,t,i)){if(!r.closed)return e instanceof le?e.subscribe(r):Ll(e)(r)}const Bw={};class rL{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new sL(e,this.resultSelector))}}class sL extends eL{constructor(e,t){super(e),this.resultSelector=t,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(Bw),this.observables.push(e)}_complete(){const e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(let i=0;i<t;i++)this.add(nL(this,e[i],void 0,i))}}notifyComplete(e){0==(this.active-=1)&&this.destination.complete()}notifyNext(e,t,i){const r=this.values,o=this.toRespond?r[i]===Bw?--this.toRespond:this.toRespond:0;r[i]=t,0===o&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))}_tryResultSelector(e){let t;try{t=this.resultSelector.apply(this,e)}catch(i){return void this.destination.error(i)}this.destination.next(t)}}function Rh(...n){return function oL(){return ff(1)}()(ut(...n))}function xl(...n){const e=n[n.length-1];return Vi(e)?(n.pop(),t=>Rh(n,t,e)):t=>Rh(n,t)}const Vw=new Set;let Hr,aL=(()=>{class n{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):cL}matchMedia(t){return(this._platform.WEBKIT||this._platform.BLINK)&&function lL(n){if(!Vw.has(n))try{Hr||(Hr=document.createElement("style"),Hr.setAttribute("type","text/css"),document.head.appendChild(Hr)),Hr.sheet&&(Hr.sheet.insertRule(`@media ${n} {body{ }}`,0),Vw.add(n))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return n.\u0275fac=function(t){return new(t||n)(v(on))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function cL(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let uL=(()=>{class n{constructor(t,i){this._mediaMatcher=t,this._zone=i,this._queries=new Map,this._destroySubject=new de}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return Hw(gl(t)).some(r=>this._registerQuery(r).mql.matches)}observe(t){let s=function iL(...n){let e,t;return Vi(n[n.length-1])&&(t=n.pop()),"function"==typeof n[n.length-1]&&(e=n.pop()),1===n.length&&Bi(n[0])&&(n=n[0]),Hl(n,t).lift(new rL(e))}(Hw(gl(t)).map(o=>this._registerQuery(o).observable));return s=Rh(s.pipe(Ln(1)),s.pipe(sw(1),rw(0))),s.pipe(Ve(o=>{const a={matches:!1,breakpoints:{}};return o.forEach(({matches:l,query:c})=>{a.matches=a.matches||l,a.breakpoints[c]=l}),a}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const i=this._mediaMatcher.matchMedia(t),s={observable:new le(o=>{const a=l=>this._zone.run(()=>o.next(l));return i.addListener(a),()=>{i.removeListener(a)}}).pipe(xl(i),Ve(({matches:o})=>({query:t,matches:o})),Ct(this._destroySubject)),mql:i};return this._queries.set(t,s),s}}return n.\u0275fac=function(t){return new(t||n)(v(aL),v(re))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Hw(n){return n.map(e=>e.split(",")).reduce((e,t)=>e.concat(t)).map(e=>e.trim())}const hL={tooltipState:jd("state",[Ka("initial, void, hidden",wt({opacity:0,transform:"scale(0)"})),Ka("visible",wt({transform:"scale(1)"})),Zs("* => visible",Xs("200ms cubic-bezier(0, 0, 0.2, 1)",Ck([wt({opacity:0,transform:"scale(0)",offset:0}),wt({opacity:.5,transform:"scale(0.99)",offset:.5}),wt({opacity:1,transform:"scale(1)",offset:1})]))),Zs("* => hidden",Xs("100ms cubic-bezier(0, 0, 0.2, 1)",wt({opacity:0})))])},jw="tooltip-panel",$w=no({passive:!0}),Uw=new I("mat-tooltip-scroll-strategy"),gL={provide:Uw,deps:[Lr],useFactory:function mL(n){return()=>n.scrollStrategies.reposition({scrollThrottle:20})}},_L=new I("mat-tooltip-default-options",{providedIn:"root",factory:function yL(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let vL=(()=>{class n{constructor(t,i,r,s,o,a,l,c,u,d,h,f){this._overlay=t,this._elementRef=i,this._scrollDispatcher=r,this._viewContainerRef=s,this._ngZone=o,this._platform=a,this._ariaDescriber=l,this._focusMonitor=c,this._dir=d,this._defaultOptions=h,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new de,this._scrollStrategy=u,this._document=f,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),d.change.pipe(Ct(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(t){var i;t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(i=this._tooltipInstance)||void 0===i||i.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(t){this._disabled=Pr(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(t){this._showDelay=Ob(t)}get hideDelay(){return this._hideDelay}set hideDelay(t){this._hideDelay=Ob(t)}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=t?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Ct(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([i,r])=>{t.removeEventListener(i,r,$w)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const i=this._createOverlay();this._detach(),this._portal=this._portal||new $b(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=i.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Ct(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}hide(t=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(t)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),i=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t);return i.positionChanges.pipe(Ct(this._destroyed)).subscribe(r=>{this._updateCurrentPositionClass(r.connectionPair),this._tooltipInstance&&r.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:i,panelClass:`${this._cssClassPrefix}-${jw}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Ct(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Ct(this._destroyed)).subscribe(()=>{var r;return null===(r=this._tooltipInstance)||void 0===r?void 0:r._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe(Ct(this._destroyed)).subscribe(r=>{this._isTooltipVisible()&&27===r.keyCode&&!Dh(r)&&(r.preventDefault(),r.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(t){const i=t.getConfig().positionStrategy,r=this._getOrigin(),s=this._getOverlayPosition();i.withPositions([this._addOffset(Object.assign(Object.assign({},r.main),s.main)),this._addOffset(Object.assign(Object.assign({},r.fallback),s.fallback))])}_addOffset(t){return t}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,i=this.position;let r;"above"==i||"below"==i?r={originX:"center",originY:"above"==i?"top":"bottom"}:"before"==i||"left"==i&&t||"right"==i&&!t?r={originX:"start",originY:"center"}:("after"==i||"right"==i&&t||"left"==i&&!t)&&(r={originX:"end",originY:"center"});const{x:s,y:o}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:s,originY:o}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,i=this.position;let r;"above"==i?r={overlayX:"center",overlayY:"bottom"}:"below"==i?r={overlayX:"center",overlayY:"top"}:"before"==i||"left"==i&&t||"right"==i&&!t?r={overlayX:"end",overlayY:"center"}:("after"==i||"right"==i&&t||"left"==i&&!t)&&(r={overlayX:"start",overlayY:"center"});const{x:s,y:o}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:s,overlayY:o}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Ln(1),Ct(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,i){return"above"===this.position||"below"===this.position?"top"===i?i="bottom":"bottom"===i&&(i="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:i}}_updateCurrentPositionClass(t){const{overlayY:i,originX:r,originY:s}=t;let o;if(o="center"===i?this._dir&&"rtl"===this._dir.value?"end"===r?"left":"right":"start"===r?"left":"right":"bottom"===i&&"top"===s?"above":"below",o!==this._currentPosition){const a=this._overlayRef;if(a){const l=`${this._cssClassPrefix}-${jw}-`;a.removePanelClass(l+this._currentPosition),a.addPanelClass(l+o)}this._currentPosition=o}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",()=>this.hide()],["wheel",i=>this._wheelListener(i)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const i=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",i],["touchcancel",i])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([i,r])=>{this._elementRef.nativeElement.addEventListener(i,r,$w)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){const i=this._document.elementFromPoint(t.clientX,t.clientY),r=this._elementRef.nativeElement;i!==r&&!r.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){const t=this.touchGestures;if("off"!==t){const i=this._elementRef.nativeElement,r=i.style;("on"===t||"INPUT"!==i.nodeName&&"TEXTAREA"!==i.nodeName)&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),("on"===t||!i.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}}return n.\u0275fac=function(t){!function Cg(){throw new Error("invalid")}()},n.\u0275dir=Ce({type:n,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),n})(),bL=(()=>{class n extends vL{constructor(t,i,r,s,o,a,l,c,u,d,h,f){super(t,i,r,s,o,a,l,c,u,d,h,f),this._tooltipComponent=EL}}return n.\u0275fac=function(t){return new(t||n)(w(Lr),w(Ie),w(Vb),w(lt),w(re),w(on),w(XN),w(Sl),w(Uw),w(yh,8),w(_L,8),w(G))},n.\u0275dir=Ce({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[On]}),n})(),wL=(()=>{class n{constructor(t){this._changeDetectorRef=t,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new de}show(t){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},t)}hide(t){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},t)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(t){const i=t.toState;"hidden"===i&&!this.isVisible()&&this._onHide.next(),("visible"===i||"hidden"===i)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_onShow(){}}return n.\u0275fac=function(t){return new(t||n)(w(Ei))},n.\u0275dir=Ce({type:n}),n})(),EL=(()=>{class n extends wL{constructor(t,i){super(t),this._breakpointObserver=i,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return n.\u0275fac=function(t){return new(t||n)(w(Ei),w(uL))},n.\u0275cmp=Gt({type:n,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,i){2&t&&Is("zoom","visible"===i._visibility?1:null)},features:[On],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,i){if(1&t&&(Q(0,"div",0),je("@state.start",function(){return i._animationStart()})("@state.done",function(s){return i._animationDone(s)}),function ny(n,e){const t=K();let i;const r=n+20;t.firstCreatePass?(i=function tx(n,e){if(e)for(let t=e.length-1;t>=0;t--){const i=e[t];if(n===i.name)return i}}(e,t.pipeRegistry),t.data[r]=i,i.onDestroy&&(t.destroyHooks||(t.destroyHooks=[])).push(r,i.onDestroy)):i=t.data[r];const s=i.factory||(i.factory=fi(i.type)),o=Hn(w);try{const a=No(!1),l=s();return No(a),function bM(n,e,t,i){t>=n.data.length&&(n.data[t]=null,n.blueprint[t]=null),e[t]=i}(t,b(),r,l),l}finally{Hn(o)}}(1,"async"),Rn(2),ie()),2&t){let r;_n("mat-tooltip-handset",null==(r=iy(1,5,i._isHandset))?null:r.matches),O("ngClass",i.tooltipClass)("@state",i._visibility),k(2),vn(i.message)}},directives:[Na],pipes:[Ev],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[hL.tooltipState]},changeDetection:0}),n})(),DL=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({providers:[gL],imports:[[u1,Ha,Jb,Dn],Dn,bl]}),n})(),zw=(()=>{class n{constructor(t){this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container",i=this._document.querySelectorAll(`.${t}`);if(null==i?void 0:i.length)this._containerElement=i[0];else{const r=this._document.createElement("div");r.classList.add(t),this._document.body.appendChild(r),this._containerElement=r}}}return n.\u0275fac=function(t){return new(t||n)(v(G))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();const CL=new le(Bn);function Ww(n){return Boolean(n.parentElement&&"picture"===n.parentElement.nodeName.toLowerCase())}function ao(n){return"img"===n.nodeName.toLowerCase()}function Gw(n,e,t){return ao(n)?t&&"srcset"in n?n.srcset=e:n.src=e:n.style.backgroundImage=`url('${e}')`,n}function kh(n){return e=>{const t=e.parentElement.getElementsByTagName("source");for(let i=0;i<t.length;i++){const r=t[i].getAttribute(n);r&&("srcset"in t[i]?t[i].srcset=r:t[i].src=r)}}}const TL=kh("defaultImage"),qw=kh("lazyLoad"),IL=kh("errorImage");function Ph(n){return(e,t,i)=>{ao(e)&&Ww(e)&&n(e),t&&Gw(e,t,i)}}const xL=Ph(TL),AL=Ph(qw),OL=Ph(IL);function Yw(n,e){n.className=n.className.replace(e,"")}function Fh(n,e){n.className.includes(e)||(n.className+=` ${e}`)}class Kw extends class PL extends class RL{constructor(){this.navigator=function ML(){return"undefined"!=typeof window?window.navigator:void 0}()}setPlatformId(e){this.platformId=e}onDestroy(e){}onAttributeChange(e){}}{setup(e){xL(e.element,e.defaultImagePath,e.useSrcset),e.imagePath&&Fh(e.element,"ng-lazyloading"),function kL(n,e){return n.className&&n.className.includes(e)}(e.element,"ng-lazyloaded")&&Yw(e.element,"ng-lazyloaded")}finally(e){Fh(e.element,"ng-lazyloaded"),Yw(e.element,"ng-lazyloading")}loadImage(e){if(this.skipLazyLoading(e))return[e.imagePath];const{element:t,useSrcset:i,imagePath:r,decode:s}=e;let o;return ao(t)&&Ww(t)?(o=t.parentNode.cloneNode(!0).getElementsByTagName("img")[0],qw(o),Gw(o,r,i)):(o=new Image,ao(t)&&t.referrerPolicy&&(o.referrerPolicy=t.referrerPolicy),ao(t)&&t.sizes&&(o.sizes=t.sizes),i&&"srcset"in o?o.srcset=r:o.src=r),s&&o.decode?o.decode().then(()=>r):new Promise((a,l)=>{o.onload=()=>a(r),o.onerror=()=>l(null)})}setErrorImage(e,t){const{element:i,useSrcset:r,errorImagePath:s}=t;OL(i,s,r),Fh(i,"ng-failed-lazyloaded")}setLoadedImage(e,t){const{element:i,useSrcset:r}=t;AL(i,e,r)}isDisabled(){return function EO(n){return"server"===n}(this.platformId)&&!this.isBot()}skipLazyLoading(e){return this.isBot(e)}isBot(e){var t;return!!(null===(t=this.navigator)||void 0===t?void 0:t.userAgent)&&/googlebot|bingbot|yandex|baiduspider|facebookexternalhit|twitterbot|rogerbot|linkedinbot|embedly|quora\ link\ preview|showyoubot|outbrain|pinterest\/0\.|pinterestbot|slackbot|vkShare|W3C_Validator|whatsapp|duckduckbot/i.test(this.navigator.userAgent)}}{constructor(){super(...arguments),this.observers=new WeakMap,this.intersectionSubject=new de,this.uniqKey={}}getObservable(e){if(this.skipLazyLoading(e))return ut({isIntersecting:!0});if(e.customObservable)return e.customObservable;const t=e.scrollContainer||this.uniqKey,i={root:e.scrollContainer||null};e.offset&&(i.rootMargin=`${e.offset}px`);let r=this.observers.get(t);return r||(r=new IntersectionObserver(s=>this.loadingCallback(s),i),this.observers.set(t,r)),r.observe(e.element),le.create(s=>{const o=this.intersectionSubject.pipe(Nn(a=>a.target===e.element)).subscribe(s);return()=>{o.unsubscribe(),r.unobserve(e.element)}})}isVisible(e){return e.isIntersecting}loadingCallback(e){e.forEach(t=>this.intersectionSubject.next(t))}}const Nh=new I("LazyLoadImageHooks");let NL=(()=>{class n{constructor(t,i,r,s){this.onStateChange=new xe,this.elementRef=t,this.ngZone=i,this.propertyChanges$=new jv,this.hooks=s,this.hooks.setPlatformId(r),this.uid=Math.random().toString(36).substr(2,9)}ngOnChanges(){!0===this.debug&&!this.debugSubscription&&(this.debugSubscription=this.onStateChange.subscribe(t=>console.log(t))),this.propertyChanges$.next({element:this.elementRef.nativeElement,imagePath:this.lazyImage,defaultImagePath:this.defaultImage,errorImagePath:this.errorImage,useSrcset:this.useSrcset,offset:this.offset?0|this.offset:0,scrollContainer:this.scrollTarget,customObservable:this.customObservable,decode:this.decode,onStateChange:this.onStateChange,id:this.uid})}ngAfterContentInit(){if(this.hooks.isDisabled())return null;this.ngZone.runOutsideAngular(()=>{this.loadSubscription=this.propertyChanges$.pipe(St(t=>this.hooks.onAttributeChange(t)),St(t=>t.onStateChange.emit({reason:"setup"})),St(t=>this.hooks.setup(t)),Ks(t=>t.imagePath?this.hooks.getObservable(t).pipe(function FL(n,e){return t=>t.pipe(St(i=>e.onStateChange.emit({reason:"observer-emit",data:i})),Nn(i=>n.isVisible(i,e)),Ln(1),St(()=>e.onStateChange.emit({reason:"start-loading"})),yo(()=>n.loadImage(e)),St(()=>e.onStateChange.emit({reason:"mount-image"})),St(i=>n.setLoadedImage(i,e)),St(()=>e.onStateChange.emit({reason:"loading-succeeded"})),Ve(()=>!0),Dw(i=>(e.onStateChange.emit({reason:"loading-failed",data:i}),n.setErrorImage(i,e),ut(!1))),St(()=>{e.onStateChange.emit({reason:"finally"}),n.finally(e)}))}(this.hooks,t)):function SL(){return CL}())).subscribe({next:()=>null})})}ngOnDestroy(){var t,i;this.propertyChanges$.pipe(Ln(1)).subscribe({next:r=>this.hooks.onDestroy(r)}).unsubscribe(),null===(t=this.loadSubscription)||void 0===t||t.unsubscribe(),null===(i=this.debugSubscription)||void 0===i||i.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)(w(Ie),w(re),w(wa),w(Nh))},n.\u0275dir=Ce({type:n,selectors:[["","lazyLoad",""]],inputs:{lazyImage:["lazyLoad","lazyImage"],defaultImage:"defaultImage",errorImage:"errorImage",scrollTarget:"scrollTarget",customObservable:"customObservable",offset:"offset",useSrcset:"useSrcset",decode:"decode",debug:"debug"},outputs:{onStateChange:"onStateChange"},features:[Gi]}),n})(),LL=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({providers:[{provide:Nh,useClass:Kw}]}),n})();class jt{constructor(e,t,i,r){this.left=e,this.top=t,this.right=i,this.bottom=r}static fromElement(e){const{left:t,top:i,right:r,bottom:s}=e.getBoundingClientRect();return 0===t&&0===i&&0===r&&0===s?jt.empty:new jt(t,i,r,s)}static fromWindow(e){return new jt(0,0,e.innerWidth,e.innerHeight)}inflate(e){this.left-=e,this.top-=e,this.right+=e,this.bottom+=e}intersectsWith(e){return e.left<this.right&&this.left<e.right&&e.top<this.bottom&&this.top<e.bottom}getIntersectionWith(e){const t=Math.max(this.left,e.left),i=Math.max(this.top,e.top),r=Math.min(this.right,e.right),s=Math.min(this.bottom,e.bottom);return r>=t&&s>=i?new jt(t,i,r,s):jt.empty}}jt.empty=new jt(0,0,0,0);var lo="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,BL=function(){for(var n=["Edge","Trident","Firefox"],e=0;e<n.length;e+=1)if(lo&&navigator.userAgent.indexOf(n[e])>=0)return 1;return 0}(),$L=lo&&window.Promise?function VL(n){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then(function(){e=!1,n()}))}}:function HL(n){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,n()},BL))}};function Xw(n){return n&&"[object Function]"==={}.toString.call(n)}function ki(n,e){if(1!==n.nodeType)return[];var i=n.ownerDocument.defaultView.getComputedStyle(n,null);return e?i[e]:i}function Lh(n){return"HTML"===n.nodeName?n:n.parentNode||n.host}function co(n){if(!n)return document.body;switch(n.nodeName){case"HTML":case"BODY":return n.ownerDocument.body;case"#document":return n.body}var e=ki(n);return/(auto|scroll|overlay)/.test(e.overflow+e.overflowY+e.overflowX)?n:co(Lh(n))}function Zw(n){return n&&n.referenceNode?n.referenceNode:n}var Qw=lo&&!(!window.MSInputMethodContext||!document.documentMode),Jw=lo&&/MSIE 10/.test(navigator.userAgent);function $r(n){return 11===n?Qw:10===n?Jw:Qw||Jw}function Ur(n){if(!n)return document.documentElement;for(var e=$r(10)?document.body:null,t=n.offsetParent||null;t===e&&n.nextElementSibling;)t=(n=n.nextElementSibling).offsetParent;var i=t&&t.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(t.nodeName)&&"static"===ki(t,"position")?Ur(t):t:n?n.ownerDocument.documentElement:document.documentElement}function Bh(n){return null!==n.parentNode?Bh(n.parentNode):n}function Al(n,e){if(!(n&&n.nodeType&&e&&e.nodeType))return document.documentElement;var t=n.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,i=t?n:e,r=t?e:n,s=document.createRange();s.setStart(i,0),s.setEnd(r,0);var o=s.commonAncestorContainer;if(n!==o&&e!==o||i.contains(r))return function UL(n){var e=n.nodeName;return"BODY"!==e&&("HTML"===e||Ur(n.firstElementChild)===n)}(o)?o:Ur(o);var a=Bh(n);return a.host?Al(a.host,e):Al(n,Bh(e).host)}function zr(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",t="top"===e?"scrollTop":"scrollLeft",i=n.nodeName;if("BODY"===i||"HTML"===i){var r=n.ownerDocument.documentElement,s=n.ownerDocument.scrollingElement||r;return s[t]}return n[t]}function zL(n,e){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=zr(e,"top"),r=zr(e,"left"),s=t?-1:1;return n.top+=i*s,n.bottom+=i*s,n.left+=r*s,n.right+=r*s,n}function eE(n,e){var t="x"===e?"Left":"Top",i="Left"===t?"Right":"Bottom";return parseFloat(n["border"+t+"Width"])+parseFloat(n["border"+i+"Width"])}function tE(n,e,t,i){return Math.max(e["offset"+n],e["scroll"+n],t["client"+n],t["offset"+n],t["scroll"+n],$r(10)?parseInt(t["offset"+n])+parseInt(i["margin"+("Height"===n?"Top":"Left")])+parseInt(i["margin"+("Height"===n?"Bottom":"Right")]):0)}function nE(n){var e=n.body,t=n.documentElement,i=$r(10)&&getComputedStyle(t);return{height:tE("Height",e,t,i),width:tE("Width",e,t,i)}}var WL=function(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")},GL=function(){function n(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}}(),Wr=function(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n},$t=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])}return n};function si(n){return $t({},n,{right:n.left+n.width,bottom:n.top+n.height})}function Vh(n){var e={};try{if($r(10)){e=n.getBoundingClientRect();var t=zr(n,"top"),i=zr(n,"left");e.top+=t,e.left+=i,e.bottom+=t,e.right+=i}else e=n.getBoundingClientRect()}catch(d){}var r={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},s="HTML"===n.nodeName?nE(n.ownerDocument):{},l=n.offsetWidth-(s.width||n.clientWidth||r.width),c=n.offsetHeight-(s.height||n.clientHeight||r.height);if(l||c){var u=ki(n);l-=eE(u,"x"),c-=eE(u,"y"),r.width-=l,r.height-=c}return si(r)}function Hh(n,e){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=$r(10),r="HTML"===e.nodeName,s=Vh(n),o=Vh(e),a=co(n),l=ki(e),c=parseFloat(l.borderTopWidth),u=parseFloat(l.borderLeftWidth);t&&r&&(o.top=Math.max(o.top,0),o.left=Math.max(o.left,0));var d=si({top:s.top-o.top-c,left:s.left-o.left-u,width:s.width,height:s.height});if(d.marginTop=0,d.marginLeft=0,!i&&r){var h=parseFloat(l.marginTop),f=parseFloat(l.marginLeft);d.top-=c-h,d.bottom-=c-h,d.left-=u-f,d.right-=u-f,d.marginTop=h,d.marginLeft=f}return(i&&!t?e.contains(a):e===a&&"BODY"!==a.nodeName)&&(d=zL(d,e)),d}function qL(n){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=n.ownerDocument.documentElement,i=Hh(n,t),r=Math.max(t.clientWidth,window.innerWidth||0),s=Math.max(t.clientHeight,window.innerHeight||0),o=e?0:zr(t),a=e?0:zr(t,"left"),l={top:o-i.top+i.marginTop,left:a-i.left+i.marginLeft,width:r,height:s};return si(l)}function iE(n){var e=n.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===ki(n,"position"))return!0;var t=Lh(n);return!!t&&iE(t)}function rE(n){if(!n||!n.parentElement||$r())return document.documentElement;for(var e=n.parentElement;e&&"none"===ki(e,"transform");)e=e.parentElement;return e||document.documentElement}function jh(n,e,t,i){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s={top:0,left:0},o=r?rE(n):Al(n,Zw(e));if("viewport"===i)s=qL(o,r);else{var a=void 0;"scrollParent"===i?"BODY"===(a=co(Lh(e))).nodeName&&(a=n.ownerDocument.documentElement):a="window"===i?n.ownerDocument.documentElement:i;var l=Hh(a,o,r);if("HTML"!==a.nodeName||iE(o))s=l;else{var c=nE(n.ownerDocument),u=c.height,d=c.width;s.top+=l.top-l.marginTop,s.bottom=u+l.top,s.left+=l.left-l.marginLeft,s.right=d+l.left}}var h="number"==typeof(t=t||0);return s.left+=h?t:t.left||0,s.top+=h?t:t.top||0,s.right-=h?t:t.right||0,s.bottom-=h?t:t.bottom||0,s}function YL(n){return n.width*n.height}function sE(n,e,t,i,r){var s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===n.indexOf("auto"))return n;var o=jh(t,i,s,r),a={top:{width:o.width,height:e.top-o.top},right:{width:o.right-e.right,height:o.height},bottom:{width:o.width,height:o.bottom-e.bottom},left:{width:e.left-o.left,height:o.height}},l=Object.keys(a).map(function(h){return $t({key:h},a[h],{area:YL(a[h])})}).sort(function(h,f){return f.area-h.area}),c=l.filter(function(h){return h.width>=t.clientWidth&&h.height>=t.clientHeight}),u=c.length>0?c[0].key:l[0].key,d=n.split("-")[1];return u+(d?"-"+d:"")}function oE(n,e,t){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=i?rE(e):Al(e,Zw(t));return Hh(t,r,i)}function aE(n){var t=n.ownerDocument.defaultView.getComputedStyle(n),i=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:n.offsetWidth+r,height:n.offsetHeight+i}}function Ol(n){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return n.replace(/left|right|bottom|top/g,function(t){return e[t]})}function lE(n,e,t){t=t.split("-")[0];var i=aE(n),r={width:i.width,height:i.height},s=-1!==["right","left"].indexOf(t),o=s?"top":"left",a=s?"left":"top",l=s?"height":"width",c=s?"width":"height";return r[o]=e[o]+e[l]/2-i[l]/2,r[a]=t===a?e[a]-i[c]:e[Ol(a)],r}function uo(n,e){return Array.prototype.find?n.find(e):n.filter(e)[0]}function cE(n,e,t){var i=void 0===t?n:n.slice(0,function KL(n,e,t){if(Array.prototype.findIndex)return n.findIndex(function(r){return r[e]===t});var i=uo(n,function(r){return r[e]===t});return n.indexOf(i)}(n,"name",t));return i.forEach(function(r){r.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var s=r.function||r.fn;r.enabled&&Xw(s)&&(e.offsets.popper=si(e.offsets.popper),e.offsets.reference=si(e.offsets.reference),e=s(e,r))}),e}function XL(){if(!this.state.isDestroyed){var n={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};n.offsets.reference=oE(this.state,this.popper,this.reference,this.options.positionFixed),n.placement=sE(this.options.placement,n.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),n.originalPlacement=n.placement,n.positionFixed=this.options.positionFixed,n.offsets.popper=lE(this.popper,n.offsets.reference,n.placement),n.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",n=cE(this.modifiers,n),this.state.isCreated?this.options.onUpdate(n):(this.state.isCreated=!0,this.options.onCreate(n))}}function uE(n,e){return n.some(function(t){return t.enabled&&t.name===e})}function $h(n){for(var e=[!1,"ms","Webkit","Moz","O"],t=n.charAt(0).toUpperCase()+n.slice(1),i=0;i<e.length;i++){var r=e[i],s=r?""+r+t:n;if(void 0!==document.body.style[s])return s}return null}function ZL(){return this.state.isDestroyed=!0,uE(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[$h("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function dE(n){var e=n.ownerDocument;return e?e.defaultView:window}function hE(n,e,t,i){var r="BODY"===n.nodeName,s=r?n.ownerDocument.defaultView:n;s.addEventListener(e,t,{passive:!0}),r||hE(co(s.parentNode),e,t,i),i.push(s)}function QL(n,e,t,i){t.updateBound=i,dE(n).addEventListener("resize",t.updateBound,{passive:!0});var r=co(n);return hE(r,"scroll",t.updateBound,t.scrollParents),t.scrollElement=r,t.eventsEnabled=!0,t}function JL(){this.state.eventsEnabled||(this.state=QL(this.reference,0,this.state,this.scheduleUpdate))}function tB(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=function eB(n,e){return dE(n).removeEventListener("resize",e.updateBound),e.scrollParents.forEach(function(t){t.removeEventListener("scroll",e.updateBound)}),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e}(this.reference,this.state))}function Uh(n){return""!==n&&!isNaN(parseFloat(n))&&isFinite(n)}function zh(n,e){Object.keys(e).forEach(function(t){var i="";-1!==["width","height","top","right","bottom","left"].indexOf(t)&&Uh(e[t])&&(i="px"),n.style[t]=e[t]+i})}var oB=lo&&/Firefox/i.test(navigator.userAgent);function fE(n,e,t){var i=uo(n,function(a){return a.name===e}),r=!!i&&n.some(function(a){return a.name===t&&a.enabled&&a.order<i.order});if(!r){var s="`"+e+"`";console.warn("`"+t+"` modifier is required by "+s+" modifier in order to work, be sure to include it before "+s+"!")}return r}var pE=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Wh=pE.slice(3);function mE(n){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=Wh.indexOf(n),i=Wh.slice(t+1).concat(Wh.slice(0,t));return e?i.reverse():i}var vB={shift:{order:100,enabled:!0,fn:function gB(n){var e=n.placement,t=e.split("-")[0],i=e.split("-")[1];if(i){var r=n.offsets,s=r.reference,o=r.popper,a=-1!==["bottom","top"].indexOf(t),l=a?"left":"top",c=a?"width":"height",u={start:Wr({},l,s[l]),end:Wr({},l,s[l]+s[c]-o[c])};n.offsets.popper=$t({},o,u[i])}return n}},offset:{order:200,enabled:!0,fn:function pB(n,e){var l,t=e.offset,r=n.offsets,s=r.popper,o=r.reference,a=n.placement.split("-")[0];return l=Uh(+t)?[+t,0]:function fB(n,e,t,i){var r=[0,0],s=-1!==["right","left"].indexOf(i),o=n.split(/(\+|\-)/).map(function(u){return u.trim()}),a=o.indexOf(uo(o,function(u){return-1!==u.search(/,|\s/)}));o[a]&&-1===o[a].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==a?[o.slice(0,a).concat([o[a].split(l)[0]]),[o[a].split(l)[1]].concat(o.slice(a+1))]:[o];return c=c.map(function(u,d){var h=(1===d?!s:s)?"height":"width",f=!1;return u.reduce(function(p,m){return""===p[p.length-1]&&-1!==["+","-"].indexOf(m)?(p[p.length-1]=m,f=!0,p):f?(p[p.length-1]+=m,f=!1,p):p.concat(m)},[]).map(function(p){return function hB(n,e,t,i){var r=n.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),s=+r[1],o=r[2];return s?0===o.indexOf("%")?si("%p"===o?t:i)[e]/100*s:"vh"===o||"vw"===o?("vh"===o?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*s:s:n}(p,h,e,t)})}),c.forEach(function(u,d){u.forEach(function(h,f){Uh(h)&&(r[d]+=h*("-"===u[f-1]?-1:1))})}),r}(t,s,o,a),"left"===a?(s.top+=l[0],s.left-=l[1]):"right"===a?(s.top+=l[0],s.left+=l[1]):"top"===a?(s.left+=l[0],s.top-=l[1]):"bottom"===a&&(s.left+=l[0],s.top+=l[1]),n.popper=s,n},offset:0},preventOverflow:{order:300,enabled:!0,fn:function mB(n,e){var t=e.boundariesElement||Ur(n.instance.popper);n.instance.reference===t&&(t=Ur(t));var i=$h("transform"),r=n.instance.popper.style,s=r.top,o=r.left,a=r[i];r.top="",r.left="",r[i]="";var l=jh(n.instance.popper,n.instance.reference,e.padding,t,n.positionFixed);r.top=s,r.left=o,r[i]=a,e.boundaries=l;var u=n.offsets.popper,d={primary:function(f){var p=u[f];return u[f]<l[f]&&!e.escapeWithReference&&(p=Math.max(u[f],l[f])),Wr({},f,p)},secondary:function(f){var p="right"===f?"left":"top",m=u[p];return u[f]>l[f]&&!e.escapeWithReference&&(m=Math.min(u[p],l[f]-("right"===f?u.width:u.height))),Wr({},p,m)}};return e.priority.forEach(function(h){var f=-1!==["left","top"].indexOf(h)?"primary":"secondary";u=$t({},u,d[f](h))}),n.offsets.popper=u,n},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function dB(n){var e=n.offsets,t=e.popper,i=e.reference,r=n.placement.split("-")[0],s=Math.floor,o=-1!==["top","bottom"].indexOf(r),a=o?"right":"bottom",l=o?"left":"top",c=o?"width":"height";return t[a]<s(i[l])&&(n.offsets.popper[l]=s(i[l])-t[c]),t[l]>s(i[a])&&(n.offsets.popper[l]=s(i[a])),n}},arrow:{order:500,enabled:!0,fn:function lB(n,e){var t;if(!fE(n.instance.modifiers,"arrow","keepTogether"))return n;var i=e.element;if("string"==typeof i){if(!(i=n.instance.popper.querySelector(i)))return n}else if(!n.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),n;var r=n.placement.split("-")[0],s=n.offsets,o=s.popper,a=s.reference,l=-1!==["left","right"].indexOf(r),c=l?"height":"width",u=l?"Top":"Left",d=u.toLowerCase(),h=l?"left":"top",f=l?"bottom":"right",p=aE(i)[c];a[f]-p<o[d]&&(n.offsets.popper[d]-=o[d]-(a[f]-p)),a[d]+p>o[f]&&(n.offsets.popper[d]+=a[d]+p-o[f]),n.offsets.popper=si(n.offsets.popper);var m=a[d]+a[c]/2-p/2,_=ki(n.instance.popper),y=parseFloat(_["margin"+u]),g=parseFloat(_["border"+u+"Width"]),E=m-n.offsets.popper[d]-y-g;return E=Math.max(Math.min(o[c]-p,E),0),n.arrowElement=i,n.offsets.arrow=(Wr(t={},d,Math.round(E)),Wr(t,h,""),t),n},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function uB(n,e){if(uE(n.instance.modifiers,"inner")||n.flipped&&n.placement===n.originalPlacement)return n;var t=jh(n.instance.popper,n.instance.reference,e.padding,e.boundariesElement,n.positionFixed),i=n.placement.split("-")[0],r=Ol(i),s=n.placement.split("-")[1]||"",o=[];switch(e.behavior){case"flip":o=[i,r];break;case"clockwise":o=mE(i);break;case"counterclockwise":o=mE(i,!0);break;default:o=e.behavior}return o.forEach(function(a,l){if(i!==a||o.length===l+1)return n;i=n.placement.split("-")[0],r=Ol(i);var c=n.offsets.popper,u=n.offsets.reference,d=Math.floor,h="left"===i&&d(c.right)>d(u.left)||"right"===i&&d(c.left)<d(u.right)||"top"===i&&d(c.bottom)>d(u.top)||"bottom"===i&&d(c.top)<d(u.bottom),f=d(c.left)<d(t.left),p=d(c.right)>d(t.right),m=d(c.top)<d(t.top),_=d(c.bottom)>d(t.bottom),y="left"===i&&f||"right"===i&&p||"top"===i&&m||"bottom"===i&&_,g=-1!==["top","bottom"].indexOf(i),H=!!e.flipVariations&&(g&&"start"===s&&f||g&&"end"===s&&p||!g&&"start"===s&&m||!g&&"end"===s&&_)||!!e.flipVariationsByContent&&(g&&"start"===s&&p||g&&"end"===s&&f||!g&&"start"===s&&_||!g&&"end"===s&&m);(h||y||H)&&(n.flipped=!0,(h||y)&&(i=o[l+1]),H&&(s=function cB(n){return"end"===n?"start":"start"===n?"end":n}(s)),n.placement=i+(s?"-"+s:""),n.offsets.popper=$t({},n.offsets.popper,lE(n.instance.popper,n.offsets.reference,n.placement)),n=cE(n.instance.modifiers,n,"flip"))}),n},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function yB(n){var e=n.placement,t=e.split("-")[0],i=n.offsets,r=i.popper,s=i.reference,o=-1!==["left","right"].indexOf(t),a=-1===["top","left"].indexOf(t);return r[o?"left":"top"]=s[t]-(a?r[o?"width":"height"]:0),n.placement=Ol(e),n.offsets.popper=si(r),n}},hide:{order:800,enabled:!0,fn:function _B(n){if(!fE(n.instance.modifiers,"hide","preventOverflow"))return n;var e=n.offsets.reference,t=uo(n.instance.modifiers,function(i){return"preventOverflow"===i.name}).boundaries;if(e.bottom<t.top||e.left>t.right||e.top>t.bottom||e.right<t.left){if(!0===n.hide)return n;n.hide=!0,n.attributes["x-out-of-boundaries"]=""}else{if(!1===n.hide)return n;n.hide=!1,n.attributes["x-out-of-boundaries"]=!1}return n}},computeStyle:{order:850,enabled:!0,fn:function aB(n,e){var t=e.x,i=e.y,r=n.offsets.popper,s=uo(n.instance.modifiers,function(E){return"applyStyle"===E.name}).gpuAcceleration;void 0!==s&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var p,m,o=void 0!==s?s:e.gpuAcceleration,a=Ur(n.instance.popper),l=Vh(a),c={position:r.position},u=function sB(n,e){var t=n.offsets,i=t.popper,s=Math.round,o=Math.floor,a=function(y){return y},l=s(t.reference.width),c=s(i.width),u=-1!==["left","right"].indexOf(n.placement),d=-1!==n.placement.indexOf("-"),p=e?u||d||l%2==c%2?s:o:a,m=e?s:a;return{left:p(l%2==1&&c%2==1&&!d&&e?i.left-1:i.left),top:m(i.top),bottom:m(i.bottom),right:p(i.right)}}(n,window.devicePixelRatio<2||!oB),d="bottom"===t?"top":"bottom",h="right"===i?"left":"right",f=$h("transform");if(m="bottom"===d?"HTML"===a.nodeName?-a.clientHeight+u.bottom:-l.height+u.bottom:u.top,p="right"===h?"HTML"===a.nodeName?-a.clientWidth+u.right:-l.width+u.right:u.left,o&&f)c[f]="translate3d("+p+"px, "+m+"px, 0)",c[d]=0,c[h]=0,c.willChange="transform";else{var y="right"===h?-1:1;c[d]=m*("bottom"===d?-1:1),c[h]=p*y,c.willChange=d+", "+h}return n.attributes=$t({},{"x-placement":n.placement},n.attributes),n.styles=$t({},c,n.styles),n.arrowStyles=$t({},n.offsets.arrow,n.arrowStyles),n},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function iB(n){return zh(n.instance.popper,n.styles),function nB(n,e){Object.keys(e).forEach(function(t){!1!==e[t]?n.setAttribute(t,e[t]):n.removeAttribute(t)})}(n.instance.popper,n.attributes),n.arrowElement&&Object.keys(n.arrowStyles).length&&zh(n.arrowElement,n.arrowStyles),n},onLoad:function rB(n,e,t,i,r){var s=oE(r,e,n,t.positionFixed),o=sE(t.placement,s,e,n,t.modifiers.flip.boundariesElement,t.modifiers.flip.padding);return e.setAttribute("x-placement",o),zh(e,{position:t.positionFixed?"fixed":"absolute"}),t},gpuAcceleration:void 0}},bB={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:vB},Rl=function(){function n(e,t){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};WL(this,n),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=$L(this.update.bind(this)),this.options=$t({},n.Defaults,r),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=t&&t.jquery?t[0]:t,this.options.modifiers={},Object.keys($t({},n.Defaults.modifiers,r.modifiers)).forEach(function(o){i.options.modifiers[o]=$t({},n.Defaults.modifiers[o]||{},r.modifiers?r.modifiers[o]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(o){return $t({name:o},i.options.modifiers[o])}).sort(function(o,a){return o.order-a.order}),this.modifiers.forEach(function(o){o.enabled&&Xw(o.onLoad)&&o.onLoad(i.reference,i.popper,i.options,o,i.state)}),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return GL(n,[{key:"update",value:function(){return XL.call(this)}},{key:"destroy",value:function(){return ZL.call(this)}},{key:"enableEventListeners",value:function(){return JL.call(this)}},{key:"disableEventListeners",value:function(){return tB.call(this)}}]),n}();Rl.Utils=("undefined"!=typeof window?window:global).PopperUtils,Rl.placements=pE,Rl.Defaults=bB;const wB=Rl,EB=["popperViewRef"];function DB(n,e){1&n&&(Q(0,"div",5),vi(1),ie()),2&n&&O("innerHTML",Y().text,em)}function CB(n,e){1&n&&(Q(0,"div",6),vi(1,1),ie())}const gE=["*","*"];let Pi=(()=>{class n{}return n.CLICK="click",n.HOVER="hover",n.MOUSEDOWN="mousedown",n.NONE="none",n})(),_E=(()=>{class n{}return n.Top="top",n.Bottom="bottom",n.Left="left",n.Right="right",n.TopStart="top-start",n.BottomStart="bottom-start",n.LeftStart="left-start",n.RightStart="right-start",n.TopEnd="top-end",n.BottomEnd="bottom-end",n.LeftEnd="left-end",n.RightEnd="right-end",n.Auto="auto",n.AutoStart="auto-start",n.AutoEnd="auto-end",n})(),yE=(()=>{class n{constructor(t,i,r,s){this.elemRef=t,this.renderer=i,this.viewRef=r,this.CDR=s,this.popperOptions={disableAnimation:!1,disableDefaultStyling:!1,placement:_E.Auto,boundariesElement:"",trigger:Pi.HOVER,positionFixed:!1,appendToBody:!1,popperModifiers:{}},this.isMouseOver=!1,this.onHidden=new xe,this.displayType="none",this.opacity=0,this.ariaHidden="true",this.arrowColor=null,this.state=!0}onMouseOver(){this.isMouseOver=!0}showOnLeave(){this.isMouseOver=!1,(this.popperOptions.trigger===Pi.HOVER||this.popperOptions.hideOnMouseLeave)&&this.hide()}onDocumentResize(){this.update()}ngOnDestroy(){this.clean(),this.popperOptions.appendTo&&this.elemRef&&this.elemRef.nativeElement&&this.elemRef.nativeElement.parentNode&&(this.viewRef.detach(),this.elemRef.nativeElement.parentNode.removeChild(this.elemRef.nativeElement))}clean(){this.toggleVisibility(!1),this.popperInstance&&(this.popperInstance.disableEventListeners(),this.popperInstance.destroy())}show(){if(!this.referenceObject)return;const t=this.popperOptions.appendTo&&document.querySelector(this.popperOptions.appendTo);t&&this.elemRef.nativeElement.parentNode!==t&&(this.elemRef.nativeElement.parentNode&&this.elemRef.nativeElement.parentNode.removeChild(this.elemRef.nativeElement),t.appendChild(this.elemRef.nativeElement));let i={placement:this.popperOptions.placement,positionFixed:this.popperOptions.positionFixed,modifiers:{arrow:{element:this.popperViewRef.nativeElement.querySelector(".ngxp__arrow")}}};this.onUpdate&&(i.onUpdate=this.onUpdate);let r=this.popperOptions.boundariesElement&&document.querySelector(this.popperOptions.boundariesElement);i.modifiers&&r&&(i.modifiers.preventOverflow={boundariesElement:r}),i.modifiers&&void 0!==this.popperOptions.preventOverflow&&(i.modifiers.preventOverflow=i.modifiers.preventOverflow||{},i.modifiers.preventOverflow.enabled=this.popperOptions.preventOverflow,i.modifiers.preventOverflow.enabled||(i.modifiers.hide={enabled:!1})),this.determineArrowColor(),i.modifiers=Object.assign(i.modifiers,this.popperOptions.popperModifiers),this.popperInstance=new wB(this.referenceObject,this.popperViewRef.nativeElement,i),this.popperInstance.enableEventListeners(),this.scheduleUpdate(),this.toggleVisibility(!0),this.globalResize=this.renderer.listen("document","resize",this.onDocumentResize.bind(this))}determineArrowColor(){["background-color","backgroundColor"].some(t=>!(!this.popperOptions.styles||!this.popperOptions.styles.hasOwnProperty(t)||(this.arrowColor=this.popperOptions.styles[t],0)))}update(){this.popperInstance&&this.popperInstance.update()}scheduleUpdate(){this.popperInstance&&this.popperInstance.scheduleUpdate()}hide(){this.popperInstance&&this.popperInstance.destroy(),this.toggleVisibility(!1),this.onHidden.emit()}toggleVisibility(t){t?(this.opacity=1,this.displayType="block",this.ariaHidden="false",this.state=!0):(this.opacity=0,this.displayType="none",this.ariaHidden="true",this.state=!1),this.CDR.destroyed||this.CDR.detectChanges()}extractAppliedClassListExpr(t){if(!t||"string"!=typeof t)return null;try{return t.replace(/ /,"").split(",").reduce((i,r)=>(i[r]=!0,i),{})}catch(i){return null}}clearGlobalResize(){this.globalResize&&"function"==typeof this.globalResize&&this.globalResize()}}return n.\u0275fac=function(t){return new(t||n)(w(Ie),w(fa),w(lt),w(Ei))},n.\u0275cmp=Gt({type:n,selectors:[["popper-content"]],viewQuery:function(t,i){if(1&t&&Bs(EB,5),2&t){let r;Zn(r=Qn())&&(i.popperViewRef=r.first)}},hostBindings:function(t,i){1&t&&je("mouseover",function(){return i.onMouseOver()})("mouseleave",function(){return i.showOnLeave()})},ngContentSelectors:gE,decls:5,vars:20,consts:[[3,"ngStyle","ngClass"],["popperViewRef",""],["class","ngxp__inner",3,"innerHTML",4,"ngIf"],["class","ngxp__inner",4,"ngIf"],[1,"ngxp__arrow",3,"ngClass"],[1,"ngxp__inner",3,"innerHTML"],[1,"ngxp__inner"]],template:function(t,i){1&t&&(Er(gE),Q(0,"div",0,1),ee(2,DB,2,1,"div",2),ee(3,CB,2,0,"div",3),Kn(4,"div",4),ie()),2&t&&(Is("display",i.displayType)("opacity",i.opacity),_n("ngxp__container",!i.popperOptions.disableDefaultStyling)("ngxp__animation",!i.popperOptions.disableAnimation),O("ngStyle",i.popperOptions.styles)("ngClass",i.extractAppliedClassListExpr(i.popperOptions.applyClass)),We("aria-hidden",i.ariaHidden)("aria-describedby",i.popperOptions.ariaDescribe||null)("role",i.popperOptions.ariaRole),k(2),O("ngIf",i.text),k(1),O("ngIf",!i.text),k(1),Is("border-color",i.arrowColor),_n("__force-arrow",i.arrowColor),O("ngClass",i.extractAppliedClassListExpr(i.popperOptions.applyArrowClass)))},directives:[xd,Na,Ws],styles:[".ngxp__container{display:none;position:absolute;border-radius:3px;border:1px solid grey;box-shadow:0 0 2px rgba(0,0,0,.5);padding:10px}.ngxp__container.ngxp__animation{-webkit-animation:150ms ease-out ngxp-fadeIn;animation:150ms ease-out ngxp-fadeIn}.ngxp__container>.ngxp__arrow{border-color:grey;width:0;height:0;border-style:solid;position:absolute;margin:5px}.ngxp__container[x-placement^=bottom],.ngxp__container[x-placement^=left],.ngxp__container[x-placement^=right],.ngxp__container[x-placement^=top]{display:block}.ngxp__container[x-placement^=top]{margin-bottom:5px}.ngxp__container[x-placement^=top]>.ngxp__arrow{border-width:5px 5px 0;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;bottom:-5px;left:calc(50% - 5px);margin-top:0;margin-bottom:0}.ngxp__container[x-placement^=top]>.ngxp__arrow.__force-arrow{border-right-color:transparent!important;border-bottom-color:transparent!important;border-left-color:transparent!important}.ngxp__container[x-placement^=bottom]{margin-top:5px}.ngxp__container[x-placement^=bottom]>.ngxp__arrow{border-width:0 5px 5px;border-top-color:transparent;border-right-color:transparent;border-left-color:transparent;top:-5px;left:calc(50% - 5px);margin-top:0;margin-bottom:0}.ngxp__container[x-placement^=bottom]>.ngxp__arrow.__force-arrow{border-top-color:transparent!important;border-right-color:transparent!important;border-left-color:transparent!important}.ngxp__container[x-placement^=right]{margin-left:5px}.ngxp__container[x-placement^=right]>.ngxp__arrow{border-width:5px 5px 5px 0;border-top-color:transparent;border-bottom-color:transparent;border-left-color:transparent;left:-5px;top:calc(50% - 5px);margin-left:0;margin-right:0}.ngxp__container[x-placement^=right]>.ngxp__arrow.__force-arrow{border-top-color:transparent!important;border-bottom-color:transparent!important;border-left-color:transparent!important}.ngxp__container[x-placement^=left]{margin-right:5px}.ngxp__container[x-placement^=left]>.ngxp__arrow{border-width:5px 0 5px 5px;border-top-color:transparent;border-bottom-color:transparent;border-right-color:transparent;right:-5px;top:calc(50% - 5px);margin-left:0;margin-right:0}.ngxp__container[x-placement^=left]>.ngxp__arrow.__force-arrow{border-top-color:transparent!important;border-bottom-color:transparent!important;border-right-color:transparent!important}@-webkit-keyframes ngxp-fadeIn{0%{display:none;opacity:0}1%{display:block;opacity:0}100%{display:block;opacity:1}}@keyframes ngxp-fadeIn{0%{display:none;opacity:0}1%{display:block;opacity:0}100%{display:block;opacity:1}}"],encapsulation:2,changeDetection:0}),n})();class Be{constructor(e,t,i,r,s,o={}){this.viewContainerRef=e,this.changeDetectorRef=t,this.resolver=i,this.elementRef=r,this.renderer=s,this.popperDefaults=o,this.popperContentClass=yE,this.shown=!1,this.subscriptions=[],this.eventListeners=[],this.globalEventListeners=[],this.hideTimeout=0,this.timeoutAfterShow=0,this.popperOnShown=new xe,this.popperOnHidden=new xe,this.popperOnUpdate=new xe,Be.baseOptions=Object.assign({},Be.baseOptions,this.popperDefaults)}hideOnClickOutsideHandler(e){this.disabled||!this.hideOnClickOutside||e.srcElement&&e.srcElement===this.popperContent.elemRef.nativeElement||this.popperContent.elemRef.nativeElement.contains(e.srcElement)||this.scheduledHide(e,this.hideTimeout)}hideOnScrollHandler(e){this.disabled||!this.hideOnScroll||this.scheduledHide(e,this.hideTimeout)}applyTriggerListeners(){switch(this.showTrigger){case Pi.CLICK:this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"click",this.toggle.bind(this)));break;case Pi.MOUSEDOWN:this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"mousedown",this.toggle.bind(this)));break;case Pi.HOVER:this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"mouseenter",this.scheduledShow.bind(this,this.showDelay))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"touchend",this.scheduledHide.bind(this,null,this.hideTimeout))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"touchcancel",this.scheduledHide.bind(this,null,this.hideTimeout))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"mouseleave",this.scheduledHide.bind(this,null,this.hideTimeout)))}this.showTrigger!==Pi.HOVER&&this.hideOnMouseLeave&&(this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"touchend",this.scheduledHide.bind(this,null,this.hideTimeout))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"touchcancel",this.scheduledHide.bind(this,null,this.hideTimeout))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"mouseleave",this.scheduledHide.bind(this,null,this.hideTimeout))))}static assignDefined(e,...t){for(const i of t)for(const r of Object.keys(i)){const s=i[r];void 0!==s&&(e[r]=s)}return e}ngOnInit(){if(this.hideOnClickOutside=void 0===this.hideOnClickOutside?this.closeOnClickOutside:this.hideOnClickOutside,"string"==typeof this.content){const t=this.content;this.popperContent=this.constructContent(),this.popperContent.text=t}else this.popperContent=this.content;const e=this.popperContent;e.referenceObject=this.getRefElement(),this.setContentProperties(e),this.setDefaults(),this.applyTriggerListeners(),this.showOnStart&&this.scheduledShow()}ngOnChanges(e){e.popperDisabled&&e.popperDisabled.currentValue&&this.hide(),e.content&&!e.content.firstChange&&"string"==typeof e.content.currentValue&&(this.popperContent.text=e.content.currentValue),e.applyClass&&!e.applyClass.firstChange&&"string"==typeof e.applyClass.currentValue&&(this.popperContent.popperOptions.applyClass=e.applyClass.currentValue),e.applyArrowClass&&!e.applyArrowClass.firstChange&&"string"==typeof e.applyArrowClass.currentValue&&(this.popperContent.popperOptions.applyArrowClass=e.applyArrowClass.currentValue)}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe&&e.unsubscribe()),this.subscriptions.length=0,this.clearEventListeners(),this.clearGlobalEventListeners(),clearTimeout(this.scheduledShowTimeout),clearTimeout(this.scheduledHideTimeout),this.popperContent&&this.popperContent.clean()}toggle(){this.disabled||(this.shown?this.scheduledHide(null,this.hideTimeout):this.scheduledShow())}show(){if(this.shown)return void this.overrideHideTimeout();this.shown=!0;const e=this.popperContent,t=this.getRefElement();e.referenceObject!==t&&(e.referenceObject=t),this.setContentProperties(e),e.show(),this.popperOnShown.emit(this),this.timeoutAfterShow>0&&this.scheduledHide(null,this.timeoutAfterShow),this.globalEventListeners.push(this.renderer.listen("document","touchend",this.hideOnClickOutsideHandler.bind(this))),this.globalEventListeners.push(this.renderer.listen("document","click",this.hideOnClickOutsideHandler.bind(this))),this.globalEventListeners.push(this.renderer.listen(this.getScrollParent(this.getRefElement()),"scroll",this.hideOnScrollHandler.bind(this)))}hide(){if(!this.disabled){if(!this.shown)return void this.overrideShowTimeout();this.shown=!1,this.popperContentRef?this.popperContentRef.instance.hide():this.popperContent.hide(),this.popperOnHidden.emit(this),this.clearGlobalEventListeners()}}scheduledShow(e=this.showDelay){this.disabled||(this.overrideHideTimeout(),this.scheduledShowTimeout=setTimeout(()=>{this.show(),this.applyChanges()},e))}scheduledHide(e=null,t=this.hideTimeout){this.disabled||(this.overrideShowTimeout(),this.scheduledHideTimeout=setTimeout(()=>{const i=e?e.toElement:null,r=!!this.popperContent.popperViewRef&&this.popperContent.popperViewRef.nativeElement;!r||r===i||r.contains(i)||this.content.isMouseOver||(this.hide(),this.applyChanges())},t))}getRefElement(){return this.targetElement||this.viewContainerRef.element.nativeElement}applyChanges(){this.changeDetectorRef.markForCheck(),this.changeDetectorRef.detectChanges()}setDefaults(){this.showDelay=void 0===this.showDelay?Be.baseOptions.showDelay:this.showDelay,this.showTrigger=void 0===this.showTrigger?Be.baseOptions.trigger:this.showTrigger,this.hideOnClickOutside=void 0===this.hideOnClickOutside?Be.baseOptions.hideOnClickOutside:this.hideOnClickOutside,this.hideOnScroll=void 0===this.hideOnScroll?Be.baseOptions.hideOnScroll:this.hideOnScroll,this.hideOnMouseLeave=void 0===this.hideOnMouseLeave?Be.baseOptions.hideOnMouseLeave:this.hideOnMouseLeave,this.ariaRole=void 0===this.ariaRole?Be.baseOptions.ariaRole:this.ariaRole,this.ariaDescribe=void 0===this.ariaDescribe?Be.baseOptions.ariaDescribe:this.ariaDescribe,this.styles=void 0===this.styles?Object.assign({},Be.baseOptions.styles):this.styles}clearEventListeners(){this.eventListeners.forEach(e=>{e&&"function"==typeof e&&e()}),this.eventListeners.length=0}clearGlobalEventListeners(){this.globalEventListeners.forEach(e=>{e&&"function"==typeof e&&e()}),this.globalEventListeners.length=0}overrideShowTimeout(){this.scheduledShowTimeout&&(clearTimeout(this.scheduledShowTimeout),this.scheduledHideTimeout=0)}overrideHideTimeout(){this.scheduledHideTimeout&&(clearTimeout(this.scheduledHideTimeout),this.scheduledHideTimeout=0)}constructContent(){const e=this.resolver.resolveComponentFactory(this.popperContentClass);return this.popperContentRef=this.viewContainerRef.createComponent(e),this.popperContentRef.instance}setContentProperties(e){e.popperOptions=Be.assignDefined(e.popperOptions,Be.baseOptions,{showDelay:this.showDelay,disableAnimation:this.disableAnimation,disableDefaultStyling:this.disableStyle,placement:this.placement,boundariesElement:this.boundariesElement,trigger:this.showTrigger,positionFixed:this.positionFixed,popperModifiers:this.popperModifiers,ariaDescribe:this.ariaDescribe,ariaRole:this.ariaRole,applyClass:this.applyClass,applyArrowClass:this.applyArrowClass,hideOnMouseLeave:this.hideOnMouseLeave,styles:this.styles,appendTo:this.appendTo,preventOverflow:this.preventOverflow}),e.onUpdate=this.onPopperUpdate.bind(this),this.subscriptions.push(e.onHidden.subscribe(this.hide.bind(this)))}getScrollParent(e){const i=e instanceof HTMLElement&&window.getComputedStyle(e).overflowY;return e?"visible"!==i&&"hidden"!==i&&e.scrollHeight>=e.clientHeight?e:this.getScrollParent(e.parentNode)||document:null}onPopperUpdate(e){this.popperOnUpdate.emit(e)}}Be.\u0275fac=function(e){return new(e||Be)(w(lt),w(Ei),w(Xn),w(Ie),w(fa),w("popperDefaults"))},Be.\u0275dir=Ce({type:Be,selectors:[["","popper",""]],inputs:{hideTimeout:["popperTimeout","hideTimeout"],timeoutAfterShow:["popperTimeoutAfterShow","timeoutAfterShow"],hideOnClickOutside:["popperHideOnClickOutside","hideOnClickOutside"],showDelay:["popperDelay","showDelay"],showTrigger:["popperTrigger","showTrigger"],hideOnScroll:["popperHideOnScroll","hideOnScroll"],hideOnMouseLeave:["popperHideOnMouseLeave","hideOnMouseLeave"],ariaRole:["popperAriaRole","ariaRole"],ariaDescribe:["popperAriaDescribeBy","ariaDescribe"],styles:["popperStyles","styles"],content:["popper","content"],disabled:["popperDisabled","disabled"],placement:["popperPlacement","placement"],targetElement:["popperTarget","targetElement"],boundariesElement:["popperBoundaries","boundariesElement"],showOnStart:["popperShowOnStart","showOnStart"],closeOnClickOutside:["popperCloseOnClickOutside","closeOnClickOutside"],positionFixed:["popperPositionFixed","positionFixed"],popperModifiers:"popperModifiers",disableStyle:["popperDisableStyle","disableStyle"],disableAnimation:["popperDisableAnimation","disableAnimation"],applyClass:["popperApplyClass","applyClass"],applyArrowClass:["popperApplyArrowClass","applyArrowClass"],appendTo:["popperAppendTo","appendTo"],preventOverflow:["popperPreventOverflow","preventOverflow"]},outputs:{popperOnShown:"popperOnShown",popperOnHidden:"popperOnHidden",popperOnUpdate:"popperOnUpdate"},exportAs:["popper"],features:[Gi]}),Be.baseOptions={showDelay:0,placement:_E.Auto,hideOnClickOutside:!0,hideOnMouseLeave:!1,hideOnScroll:!1,showTrigger:Pi.HOVER,appendTo:void 0,ariaRole:"popper",ariaDescribe:"",styles:{}};let SB=(()=>{class n{ngDoBootstrap(){}static forRoot(t={}){return{ngModule:n,providers:[{provide:"popperDefaults",useValue:t}]}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({imports:[[Ha]]}),n})();function MB(n,e){1&n&&gn(0)}function TB(n,e){if(1&n){const t=Nt();nt(0),Q(1,"button",7),je("click",function(r){return Ze(t),Y().emitClick(r)}),ee(2,MB,1,0,"ng-container",8),ie(),it()}if(2&n){const t=Y(),i=Fe(12),r=Fe(10);k(1),O("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup)),We("ref",t.buttonRef)("aria-label",t.label+" raised button"),k(1),O("ngTemplateOutlet",r)}}function IB(n,e){1&n&&gn(0)}function xB(n,e){if(1&n){const t=Nt();nt(0),Q(1,"button",9),je("click",function(r){return Ze(t),Y().emitClick(r)}),ee(2,IB,1,0,"ng-container",8),ie(),it()}if(2&n){const t=Y(),i=Fe(12),r=Fe(10);k(1),O("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup)),We("ref",t.buttonRef)("aria-label",t.label+" stroked button"),k(1),O("ngTemplateOutlet",r)}}function AB(n,e){1&n&&gn(0)}function OB(n,e){if(1&n){const t=Nt();nt(0),Q(1,"button",10),je("click",function(r){return Ze(t),Y().emitClick(r)}),ee(2,AB,1,0,"ng-container",8),ie(),it()}if(2&n){const t=Y(),i=Fe(12),r=Fe(10);k(1),O("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup)),We("ref",t.buttonRef)("aria-label",t.label+" flat button"),k(1),O("ngTemplateOutlet",r)}}function RB(n,e){1&n&&gn(0)}function kB(n,e){if(1&n){const t=Nt();nt(0),Q(1,"button",11),je("click",function(r){return Ze(t),Y().emitClick(r)}),ee(2,RB,1,0,"ng-container",8),ie(),it()}if(2&n){const t=Y(),i=Fe(12),r=Fe(10);k(1),O("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup)),We("ref",t.buttonRef)("aria-label",t.label+" icon button"),k(1),O("ngTemplateOutlet",r)}}function PB(n,e){1&n&&gn(0)}function FB(n,e){if(1&n){const t=Nt();nt(0),Q(1,"button",12),je("click",function(r){return Ze(t),Y().emitClick(r)}),ee(2,PB,1,0,"ng-container",8),ie(),it()}if(2&n){const t=Y(),i=Fe(12),r=Fe(10);k(1),O("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup)),We("ref",t.buttonRef)("aria-label",t.label+" fab button"),k(1),O("ngTemplateOutlet",r)}}function NB(n,e){1&n&&gn(0)}function LB(n,e){if(1&n){const t=Nt();nt(0),Q(1,"button",13),je("click",function(r){return Ze(t),Y().emitClick(r)}),ee(2,NB,1,0,"ng-container",8),ie(),it()}if(2&n){const t=Y(),i=Fe(12),r=Fe(10);k(1),O("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup)),We("ref",t.buttonRef)("aria-label",t.label+" mini fab button"),k(1),O("ngTemplateOutlet",r)}}function BB(n,e){1&n&&gn(0)}function VB(n,e){if(1&n){const t=Nt();nt(0),Q(1,"button",14),je("click",function(r){return Ze(t),Y().emitClick(r)}),ee(2,BB,1,0,"ng-container",8),ie(),it()}if(2&n){const t=Y(),i=Fe(12),r=Fe(10);k(1),O("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup)),We("ref",t.buttonRef)("aria-label",t.label+" unstyled button"),k(1),O("ngTemplateOutlet",r)}}function HB(n,e){1&n&&gn(0)}function jB(n,e){if(1&n){const t=Nt();nt(0),Q(1,"button",15),je("click",function(r){return Ze(t),Y().emitClick(r)}),ee(2,HB,1,0,"ng-container",8),ie(),it()}if(2&n){const t=Y(),i=Fe(12),r=Fe(10);k(1),O("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup))("popperAppendTo","body"),We("ref",t.buttonRef)("aria-label",t.label+" basic button"),k(1),O("ngTemplateOutlet",r)}}function $B(n,e){if(1&n&&(Q(0,"mat-icon",18),Rn(1),ie()),2&n){const t=Y(2);O("ngStyle",t.buttonIconStyle),k(1),vn(t.icon)}}function UB(n,e){if(1&n&&(Q(0,"div"),Rn(1),ie()),2&n){const t=Y(2);k(1),vn(t.label||"Button")}}function zB(n,e){if(1&n&&(ee(0,$B,2,2,"mat-icon",16),ee(1,UB,2,1,"div",17)),2&n){const t=Y();O("ngIf",t.icon),k(1),O("ngIf",!t.icon)}}function WB(n,e){1&n&&Kn(0,"img",19),2&n&&O("lazyLoad",Y().imgUrl)}function GB(n,e){if(1&n&&(Q(0,"div"),Rn(1),ie()),2&n){const t=Y();Jt(t.popup.style),k(1),vn(t.popup.text)}}let vE=(()=>{class n{emitClick(t){this.onClick&&(t.stopPropagation(),this.onClick())}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=Gt({type:n,selectors:[["drayman-button-internal"]],inputs:{onClick:"onClick",label:"label",view:"view",icon:"icon",tooltip:"tooltip",disabled:"disabled",imgUrl:"imgUrl",popup:"popup",buttonStyle:"buttonStyle",buttonIconStyle:"buttonIconStyle",buttonRef:"buttonRef"},decls:15,vars:10,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["button",""],["thumbnailContent",""],["style","width: 150px; z-index: 1001;",3,"lazyLoad",4,"ngIf"],[3,"style",4,"ngIf"],["type","button","mat-raised-button","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],[4,"ngTemplateOutlet"],["type","button","mat-stroked-button","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button","mat-flat-button","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button","mat-icon-button","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button","mat-fab","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button","mat-mini-fab","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button","mat-button","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","popperAppendTo","click"],[3,"ngStyle",4,"ngIf"],[4,"ngIf"],[3,"ngStyle"],[2,"width","150px","z-index","1001",3,"lazyLoad"]],template:function(t,i){1&t&&(nt(0,0),ee(1,TB,3,8,"ng-container",1),ee(2,xB,3,8,"ng-container",1),ee(3,OB,3,8,"ng-container",1),ee(4,kB,3,8,"ng-container",1),ee(5,FB,3,8,"ng-container",1),ee(6,LB,3,8,"ng-container",1),ee(7,VB,3,8,"ng-container",1),ee(8,jB,3,9,"ng-container",2),it(),ee(9,zB,2,2,"ng-template",null,3,hy),Q(11,"popper-content",null,4),ee(13,WB,1,1,"img",5),ee(14,GB,2,3,"div",6),ie()),2&t&&(O("ngSwitch",i.view),k(1),O("ngSwitchCase","raised"),k(1),O("ngSwitchCase","stroked"),k(1),O("ngSwitchCase","flat"),k(1),O("ngSwitchCase","icon"),k(1),O("ngSwitchCase","fab"),k(1),O("ngSwitchCase","miniFab"),k(1),O("ngSwitchCase","unstyled"),k(6),O("ngIf",i.imgUrl),k(1),O("ngIf",i.popup))},directives:[Va,yv,S1,bL,xd,Be,wv,vv,Ws,Nw,yE,NL],styles:[""]}),n})();"function"==typeof SuppressedError&&SuppressedError;class gV extends Kw{loadImage({imagePath:e}){return function bE(n,e,t,i){return new(t||(t=Promise))(function(s,o){function a(u){try{c(i.next(u))}catch(d){o(d)}}function l(u){try{c(i.throw(u))}catch(d){o(d)}}function c(u){u.done?s(u.value):function r(s){return s instanceof t?s:new t(function(o){o(s)})}(u.value).then(a,l)}c((i=i.apply(n,e||[])).next())})}(this,void 0,void 0,function*(){const i=yield(yield fetch(e)).blob();if(i.size)return URL.createObjectURL(i)})}}let _V=(()=>{class n{constructor(t){this.injector=t}ngDoBootstrap(){const t=$v(vE,{injector:this.injector});customElements.define("drayman-button",t)}}return n.\u0275fac=function(t){return new(t||n)(v(tt))},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({providers:[{provide:Nh,useClass:gV},{provide:wl,useClass:zw},{provide:ba,multi:!0,useFactory:e=>()=>{e.setDefaultFontSetClass("material-symbols-rounded")},deps:[Vr]}],imports:[[Ld,Ab,M1,DL,Lw,LL,SB.forRoot({disableDefaultStyling:!0,applyArrowClass:"hidden",showDelay:500,trigger:"hover",hideOnClickOutside:!1,styles:{position:"relative",background:"#fff",padding:"5px 5px 0 5px","z-index":"1001","border-radius":"2px","box-shadow":"0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23)"},placement:"right"})]]}),n})();function EE(n,e=yl){const i=function yV(n){return n instanceof Date&&!isNaN(+n)}(n)?+n-e.now():Math.abs(n);return r=>r.lift(new vV(i,e))}class vV{constructor(e,t){this.delay=e,this.scheduler=t}call(e,t){return t.subscribe(new Zh(e,this.delay,this.scheduler))}}class Zh extends he{constructor(e,t,i){super(e),this.delay=t,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}static dispatch(e){const t=e.source,i=t.queue,r=e.scheduler,s=e.destination;for(;i.length>0&&i[0].time-r.now()<=0;)i.shift().notification.observe(s);if(i.length>0){const o=Math.max(0,i[0].time-r.now());this.schedule(e,o)}else this.unsubscribe(),t.active=!1}_schedule(e){this.active=!0,this.destination.add(e.schedule(Zh.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}scheduleNotification(e){if(!0===this.errored)return;const t=this.scheduler,i=new bV(t.now()+this.delay,e);this.queue.push(i),!1===this.active&&this._schedule(t)}_next(e){this.scheduleNotification(dt.createNext(e))}_error(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}_complete(){this.scheduleNotification(dt.createComplete()),this.unsubscribe()}}class bV{constructor(e,t){this.time=e,this.notification=t}}const wV=["mat-menu-item",""];function EV(n,e){1&n&&(function Wf(){L.lFrame.currentNamespace="svg"}(),Q(0,"svg",2),Kn(1,"polygon",3),ie())}const DE=["*"];function DV(n,e){if(1&n){const t=Nt();Q(0,"div",0),je("keydown",function(r){return Ze(t),Y()._handleKeydown(r)})("click",function(){return Ze(t),Y().closed.emit("click")})("@transformMenu.start",function(r){return Ze(t),Y()._onAnimationStart(r)})("@transformMenu.done",function(r){return Ze(t),Y()._onAnimationDone(r)}),Q(1,"div",1),vi(2),ie()()}if(2&n){const t=Y();O("id",t.panelId)("ngClass",t._classList)("@transformMenu",t._panelAnimationState),We("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby||null)("aria-describedby",t.ariaDescribedby||null)}}const kl={transformMenu:jd("transformMenu",[Ka("void",wt({opacity:0,transform:"scale(0.8)"})),Zs("void => enter",Xs("120ms cubic-bezier(0, 0, 0.2, 1)",wt({opacity:1,transform:"scale(1)"}))),Zs("* => void",Xs("100ms 25ms linear",wt({opacity:0})))]),fadeInItems:jd("fadeInItems",[Ka("showing",wt({opacity:1})),Zs("void => *",[wt({opacity:0}),Xs("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},CV=new I("MatMenuContent"),Qh=new I("MAT_MENU_PANEL"),SV=yw(gw(class{}));let Pl=(()=>{class n extends SV{constructor(t,i,r,s,o){var a;super(),this._elementRef=t,this._focusMonitor=r,this._parentMenu=s,this._changeDetectorRef=o,this.role="menuitem",this._hovered=new de,this._focused=new de,this._highlighted=!1,this._triggersSubmenu=!1,null===(a=null==s?void 0:s.addItem)||void 0===a||a.call(s,this)}focus(t,i){this._focusMonitor&&t?this._focusMonitor.focusVia(this._getHostElement(),t,i):this._getHostElement().focus(i),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var t;const i=this._elementRef.nativeElement.cloneNode(!0),r=i.querySelectorAll("mat-icon, .material-icons");for(let s=0;s<r.length;s++)r[s].remove();return(null===(t=i.textContent)||void 0===t?void 0:t.trim())||""}_setHighlighted(t){var i;this._highlighted=t,null===(i=this._changeDetectorRef)||void 0===i||i.markForCheck()}}return n.\u0275fac=function(t){return new(t||n)(w(Ie),w(G),w(Sl),w(Qh,8),w(Ei))},n.\u0275cmp=Gt({type:n,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(t,i){1&t&&je("click",function(s){return i._checkDisabled(s)})("mouseenter",function(){return i._handleMouseEnter()}),2&t&&(We("role",i.role)("tabindex",i._getTabIndex())("aria-disabled",i.disabled.toString())("disabled",i.disabled||null),_n("mat-menu-item",!0)("mat-menu-item-highlighted",i._highlighted)("mat-menu-item-submenu-trigger",i._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[On],attrs:wV,ngContentSelectors:DE,decls:3,vars:3,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["class","mat-menu-submenu-icon","viewBox","0 0 5 10","focusable","false",4,"ngIf"],["viewBox","0 0 5 10","focusable","false",1,"mat-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(t,i){1&t&&(Er(),vi(0),Kn(1,"div",0),ee(2,EV,2,0,"svg",1)),2&t&&(k(1),O("matRippleDisabled",i.disableRipple||i.disabled)("matRippleTrigger",i._getHostElement()),k(1),O("ngIf",i._triggersSubmenu))},directives:[xh,Ws],encapsulation:2,changeDetection:0}),n})();const CE=new I("mat-menu-default-options",{providedIn:"root",factory:function MV(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let TV=0,fo=(()=>{class n{constructor(t,i,r){this._elementRef=t,this._ngZone=i,this._defaultOptions=r,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new Ar,this._tabSubscription=Z.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new de,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new xe,this.close=this.closed,this.panelId="mat-menu-panel-"+TV++}get xPosition(){return this._xPosition}set xPosition(t){this._xPosition=t,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(t){this._yPosition=t,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(t){this._overlapTrigger=Pr(t)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=Pr(t)}set panelClass(t){const i=this._previousPanelClass;i&&i.length&&i.split(" ").forEach(r=>{this._classList[r]=!1}),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach(r=>{this._classList[r]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(t){this.panelClass=t}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new QN(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(xl(this._directDescendantItems),Ks(t=>Hi(...t.map(i=>i._focused)))).subscribe(t=>this._keyManager.updateActiveItem(t))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(xl(this._directDescendantItems),Ks(i=>Hi(...i.map(r=>r._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){const i=t.keyCode,r=this._keyManager;switch(i){case 27:Dh(t)||(t.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===i||40===i)&&r.setFocusOrigin("keyboard"),void r.onKeydown(t)}t.stopPropagation()}focusFirstItem(t="program"){this.lazyContent?this._ngZone.onStable.pipe(Ln(1)).subscribe(()=>this._focusFirstItem(t)):this._focusFirstItem(t)}_focusFirstItem(t){const i=this._keyManager;if(i.setFocusOrigin(t).setFirstItemActive(),!i.activeItem&&this._directDescendantItems.length){let r=this._directDescendantItems.first._getHostElement().parentElement;for(;r;){if("menu"===r.getAttribute("role")){r.focus();break}r=r.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(t){const i=Math.min(this._baseElevation+t,24),r=`${this._elevationPrefix}${i}`,s=Object.keys(this._classList).find(o=>o.startsWith(this._elevationPrefix));(!s||s===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[r]=!0,this._previousElevation=r)}setPositionClasses(t=this.xPosition,i=this.yPosition){const r=this._classList;r["mat-menu-before"]="before"===t,r["mat-menu-after"]="after"===t,r["mat-menu-above"]="above"===i,r["mat-menu-below"]="below"===i}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(t){this._animationDone.next(t),this._isAnimating=!1}_onAnimationStart(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(xl(this._allItems)).subscribe(t=>{this._directDescendantItems.reset(t.filter(i=>i._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return n.\u0275fac=function(t){return new(t||n)(w(Ie),w(re),w(CE))},n.\u0275dir=Ce({type:n,contentQueries:function(t,i,r){if(1&t&&(ga(r,CV,5),ga(r,Pl,5),ga(r,Pl,4)),2&t){let s;Zn(s=Qn())&&(i.lazyContent=s.first),Zn(s=Qn())&&(i._allItems=s),Zn(s=Qn())&&(i.items=s)}},viewQuery:function(t,i){if(1&t&&Bs(bn,5),2&t){let r;Zn(r=Qn())&&(i.templateRef=r.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),n})(),IV=(()=>{class n extends fo{constructor(t,i,r){super(t,i,r),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return n.\u0275fac=function(t){return new(t||n)(w(Ie),w(re),w(CE))},n.\u0275cmp=Gt({type:n,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(t,i){2&t&&We("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[U_([{provide:Qh,useExisting:n}]),On],ngContentSelectors:DE,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,i){1&t&&(Er(),ee(0,DV,3,6,"ng-template"))},directives:[Na],styles:["mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,data:{animation:[kl.transformMenu,kl.fadeInItems]},changeDetection:0}),n})();const SE=new I("mat-menu-scroll-strategy"),AV={provide:SE,deps:[Lr],useFactory:function xV(n){return()=>n.scrollStrategies.reposition()}},TE=no({passive:!0});let OV=(()=>{class n{constructor(t,i,r,s,o,a,l,c){this._overlay=t,this._element=i,this._viewContainerRef=r,this._menuItemInstance=a,this._dir=l,this._focusMonitor=c,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Z.EMPTY,this._hoverSubscription=Z.EMPTY,this._menuCloseSubscription=Z.EMPTY,this._handleTouchStart=u=>{Mh(u)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new xe,this.onMenuOpen=this.menuOpened,this.menuClosed=new xe,this.onMenuClose=this.menuClosed,this._scrollStrategy=s,this._parentMaterialMenu=o instanceof fo?o:void 0,i.nativeElement.addEventListener("touchstart",this._handleTouchStart,TE),a&&(a._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(t){this.menu=t}get menu(){return this._menu}set menu(t){t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.subscribe(i=>{this._destroyMenu(i),("click"===i||"tab"===i)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(i)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,TE),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const t=this._createOverlay(),i=t.getConfig();this._setPosition(i.positionStrategy),i.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof fo&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(t,i){this._focusMonitor&&t?this._focusMonitor.focusVia(this._element,t,i):this._element.nativeElement.focus(i)}updatePosition(){var t;null===(t=this._overlayRef)||void 0===t||t.updatePosition()}_destroyMenu(t){if(!this._overlayRef||!this.menuOpen)return;const i=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===t||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,i instanceof fo?(i._resetAnimation(),i.lazyContent?i._animationDone.pipe(Nn(r=>"void"===r.toState),Ln(1),Ct(i.lazyContent._attached)).subscribe({next:()=>i.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),i.lazyContent&&i.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let t=0,i=this.menu.parentMenu;for(;i;)t++,i=i.parentMenu;this.menu.setElevation(t)}}_setIsMenuOpen(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(t)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new qb({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(t){this.menu.setPositionClasses&&t.positionChanges.subscribe(i=>{this.menu.setPositionClasses("start"===i.connectionPair.overlayX?"after":"before","top"===i.connectionPair.overlayY?"below":"above")})}_setPosition(t){let[i,r]="before"===this.menu.xPosition?["end","start"]:["start","end"],[s,o]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[a,l]=[s,o],[c,u]=[i,r],d=0;this.triggersSubmenu()?(u=i="before"===this.menu.xPosition?"start":"end",r=c="end"===i?"start":"end",d="bottom"===s?8:-8):this.menu.overlapTrigger||(a="top"===s?"bottom":"top",l="top"===o?"bottom":"top"),t.withPositions([{originX:i,originY:a,overlayX:c,overlayY:s,offsetY:d},{originX:r,originY:a,overlayX:u,overlayY:s,offsetY:d},{originX:i,originY:l,overlayX:c,overlayY:o,offsetY:-d},{originX:r,originY:l,overlayX:u,overlayY:o,offsetY:-d}])}_menuClosingActions(){const t=this._overlayRef.backdropClick(),i=this._overlayRef.detachments();return Hi(t,this._parentMaterialMenu?this._parentMaterialMenu.closed:ut(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Nn(o=>o!==this._menuItemInstance),Nn(()=>this._menuOpen)):ut(),i)}_handleMousedown(t){Sh(t)||(this._openedBy=0===t.button?"mouse":void 0,this.triggersSubmenu()&&t.preventDefault())}_handleKeydown(t){const i=t.keyCode;(13===i||32===i)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===i&&"ltr"===this.dir||37===i&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(Nn(t=>t===this._menuItemInstance&&!t.disabled),EE(0,fh)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof fo&&this.menu._isAnimating?this.menu._animationDone.pipe(Ln(1),EE(0,fh),Ct(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new Ub(this.menu.templateRef,this._viewContainerRef)),this._portal}}return n.\u0275fac=function(t){return new(t||n)(w(Lr),w(Ie),w(lt),w(SE),w(Qh,8),w(Pl,10),w(yh,8),w(Sl))},n.\u0275dir=Ce({type:n,hostAttrs:["aria-haspopup","true"],hostVars:2,hostBindings:function(t,i){1&t&&je("click",function(s){return i._handleClick(s)})("mousedown",function(s){return i._handleMousedown(s)})("keydown",function(s){return i._handleKeydown(s)}),2&t&&We("aria-expanded",i.menuOpen||null)("aria-controls",i.menuOpen?i.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),n})(),IE=(()=>{class n extends OV{}return n.\u0275fac=function(){let e;return function(i){return(e||(e=function rp(n){return jn(()=>{const e=n.prototype.constructor,t=e[Mn]||vc(e),i=Object.prototype;let r=Object.getPrototypeOf(n.prototype).constructor;for(;r&&r!==i;){const s=r[Mn]||vc(r);if(s&&s!==t)return s;r=Object.getPrototypeOf(r)}return s=>new s})}(n)))(i||n)}}(),n.\u0275dir=Ce({type:n,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[On]}),n})(),RV=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({providers:[AV],imports:[[Ha,Dn,Ew,Jb],bl,Dn]}),n})();const kV=["childMenu"];function PV(n,e){if(1&n&&(Q(0,"mat-icon"),Rn(1),ie()),2&n){const t=Y(2).$implicit;k(1),vn(t.icon)}}function FV(n,e){if(1&n){const t=Nt();nt(0),Q(1,"button",3),ee(2,PV,2,1,"mat-icon",2),Q(3,"span"),Rn(4),ie()(),Q(5,"drayman-menu-item-internal",4,5),je("itemClick",function(r){return Ze(t),Y(2).itemClick.emit(r)}),ie(),it()}if(2&n){const t=Fe(6),i=Y().$implicit;k(1),O("disabled",i.disabled)("matMenuTriggerFor",t.childMenu),k(1),O("ngIf",i.icon),k(2),vn(i.label),k(1),O("items",i.items)}}function NV(n,e){if(1&n&&(Q(0,"mat-icon"),Rn(1),ie()),2&n){const t=Y(2).$implicit;k(1),vn(t.icon)}}function LV(n,e){if(1&n){const t=Nt();nt(0),Q(1,"button",6),je("click",function(){Ze(t);const r=Y().$implicit;return Y().itemClick.emit(r)}),ee(2,NV,2,1,"mat-icon",2),Q(3,"span"),Rn(4),ie()(),it()}if(2&n){const t=Y().$implicit;k(1),O("disabled",t.disabled),k(1),O("ngIf",t.icon),k(2),vn(t.label)}}function BV(n,e){if(1&n&&(nt(0),ee(1,FV,7,5,"ng-container",2),ee(2,LV,5,3,"ng-container",2),it()),2&n){const t=e.$implicit;k(1),O("ngIf",null==t.items?null:t.items.length),k(1),O("ngIf",!(null!=t.items&&t.items.length))}}let VV=(()=>{class n{constructor(){this.items=[],this.itemClick=new xe}ngOnInit(){}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=Gt({type:n,selectors:[["drayman-menu-item-internal"]],viewQuery:function(t,i){if(1&t&&Bs(kV,7),2&t){let r;Zn(r=Qn())&&(i.childMenu=r.first)}},inputs:{items:"items"},outputs:{itemClick:"itemClick"},decls:3,vars:1,consts:[["childMenu","matMenu"],[4,"ngFor","ngForOf"],[4,"ngIf"],["mat-menu-item","",3,"disabled","matMenuTriggerFor"],[3,"items","itemClick"],["menu",""],["mat-menu-item","",3,"disabled","click"]],template:function(t,i){1&t&&(Q(0,"mat-menu",null,0),ee(2,BV,3,2,"ng-container",1),ie()),2&t&&(k(2),O("ngForOf",i.items))},directives:[IV,uv,Ws,Pl,IE,Nw,n],styles:[""]}),n})(),HV=(()=>{class n{constructor(){}ngOnInit(){}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=Gt({type:n,selectors:[["drayman-menu-internal"]],inputs:{items:"items",onItemClick:"onItemClick",label:"label",view:"view",icon:"icon",tooltip:"tooltip",disabled:"disabled",imgUrl:"imgUrl",buttonStyle:"buttonStyle"},decls:3,vars:9,consts:[[1,"trigger-btn",3,"label","view","icon","tooltip","disabled","imgUrl","buttonStyle","matMenuTriggerFor"],[3,"items","itemClick"],["menu",""]],template:function(t,i){if(1&t&&(Kn(0,"drayman-button-internal",0),Q(1,"drayman-menu-item-internal",1,2),je("itemClick",function(s){return i.onItemClick(s)}),ie()),2&t){const r=Fe(2);O("label",i.label)("view",i.view)("icon",i.icon)("tooltip",i.tooltip)("disabled",i.disabled)("imgUrl",i.imgUrl)("buttonStyle",i.buttonStyle)("matMenuTriggerFor",r.childMenu),k(1),O("items",i.items)}},directives:[vE,IE,VV],styles:[".trigger-btn[_ngcontent-%COMP%]{display:block}"]}),n})(),jV=(()=>{class n{constructor(t){this.injector=t}ngDoBootstrap(){const t=$v(HV,{injector:this.injector});customElements.define("drayman-menu",t)}}return n.\u0275fac=function(t){return new(t||n)(v(tt))},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({providers:[{provide:wl,useClass:zw},{provide:ba,multi:!0,useFactory:e=>()=>{e.setDefaultFontSetClass("material-symbols-rounded")},deps:[Vr]}],imports:[[Ld,Ab,_V,RV,Lw]]}),n})();(function sA(){Vy=!1})(),HR().bootstrapModule(jV).catch(n=>console.error(n))})();
1
+ (()=>{"use strict";function Kr(n){return"function"==typeof n}let Ll=!1;const Ut={Promise:void 0,set useDeprecatedSynchronousErrorHandling(n){if(n){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else Ll&&console.log("RxJS: Back to a better error behavior. Thank you. <3");Ll=n},get useDeprecatedSynchronousErrorHandling(){return Ll}};function Li(n){setTimeout(()=>{throw n},0)}const po={closed:!0,next(n){},error(n){if(Ut.useDeprecatedSynchronousErrorHandling)throw n;Li(n)},complete(){}},Bi=Array.isArray||(n=>n&&"number"==typeof n.length);function Bl(n){return null!==n&&"object"==typeof n}const mo=(()=>{function n(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((t,i)=>`${i+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return n.prototype=Object.create(Error.prototype),n})();class Z{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:t,_ctorUnsubscribe:i,_unsubscribe:r,_subscriptions:s}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,t instanceof Z)t.remove(this);else if(null!==t)for(let o=0;o<t.length;++o)t[o].remove(this);if(Kr(r)){i&&(this._unsubscribe=void 0);try{r.call(this)}catch(o){e=o instanceof mo?tf(o.errors):[o]}}if(Bi(s)){let o=-1,a=s.length;for(;++o<a;){const l=s[o];if(Bl(l))try{l.unsubscribe()}catch(c){e=e||[],c instanceof mo?e=e.concat(tf(c.errors)):e.push(c)}}}if(e)throw new mo(e)}add(e){let t=e;if(!e)return Z.EMPTY;switch(typeof e){case"function":t=new Z(e);case"object":if(t===this||t.closed||"function"!=typeof t.unsubscribe)return t;if(this.closed)return t.unsubscribe(),t;if(!(t instanceof Z)){const s=t;t=new Z,t._subscriptions=[s]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}let{_parentOrParents:i}=t;if(null===i)t._parentOrParents=this;else if(i instanceof Z){if(i===this)return t;t._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return t;i.push(this)}const r=this._subscriptions;return null===r?this._subscriptions=[t]:r.push(t),t}remove(e){const t=this._subscriptions;if(t){const i=t.indexOf(e);-1!==i&&t.splice(i,1)}}}var n;function tf(n){return n.reduce((e,t)=>e.concat(t instanceof mo?t.errors:t),[])}Z.EMPTY=((n=new Z).closed=!0,n);const go="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class he extends Z{constructor(e,t,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=po;break;case 1:if(!e){this.destination=po;break}if("object"==typeof e){e instanceof he?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new nf(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new nf(this,e,t,i)}}[go](){return this}static create(e,t,i){const r=new he(e,t,i);return r.syncErrorThrowable=!1,r}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 nf extends he{constructor(e,t,i,r){super(),this._parentSubscriber=e;let s,o=this;Kr(t)?s=t:t&&(s=t.next,i=t.error,r=t.complete,t!==po&&(o=Object.create(t),Kr(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=s,this._error=i,this._complete=r}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;Ut.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:i}=Ut;if(this._error)i&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)i?(t.syncErrorValue=e,t.syncErrorThrown=!0):Li(e),this.unsubscribe();else{if(this.unsubscribe(),i)throw e;Li(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);Ut.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(i){if(this.unsubscribe(),Ut.useDeprecatedSynchronousErrorHandling)throw i;Li(i)}}__tryOrSetError(e,t,i){if(!Ut.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,i)}catch(r){return Ut.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(Li(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const Xr="function"==typeof Symbol&&Symbol.observable||"@@observable";function rf(n){return n}let le=(()=>{class n{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(t){const i=new n;return i.source=this,i.operator=t,i}subscribe(t,i,r){const{operator:s}=this,o=function OE(n,e,t){if(n){if(n instanceof he)return n;if(n[go])return n[go]()}return n||e||t?new he(n,e,t):new he(po)}(t,i,r);if(o.add(s?s.call(o,this.source):this.source||Ut.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),Ut.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o}_trySubscribe(t){try{return this._subscribe(t)}catch(i){Ut.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=i),function AE(n){for(;n;){const{closed:e,destination:t,isStopped:i}=n;if(e||i)return!1;n=t&&t instanceof he?t:null}return!0}(t)?t.error(i):console.warn(i)}}forEach(t,i){return new(i=af(i))((r,s)=>{let o;o=this.subscribe(a=>{try{t(a)}catch(l){s(l),o&&o.unsubscribe()}},s,r)})}_subscribe(t){const{source:i}=this;return i&&i.subscribe(t)}[Xr](){return this}pipe(...t){return 0===t.length?this:function sf(n){return 0===n.length?rf:1===n.length?n[0]:function(t){return n.reduce((i,r)=>r(i),t)}}(t)(this)}toPromise(t){return new(t=af(t))((i,r)=>{let s;this.subscribe(o=>s=o,o=>r(o),()=>i(s))})}}return n.create=e=>new n(e),n})();function af(n){if(n||(n=Ut.Promise||Promise),!n)throw new Error("no Promise impl found");return n}const li=(()=>{function n(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return n.prototype=Object.create(Error.prototype),n})();class lf extends Z{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 i=t.indexOf(this.subscriber);-1!==i&&t.splice(i,1)}}class cf extends he{constructor(e){super(e),this.destination=e}}let de=(()=>{class n extends le{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[go](){return new cf(this)}lift(t){const i=new uf(this,this);return i.operator=t,i}next(t){if(this.closed)throw new li;if(!this.isStopped){const{observers:i}=this,r=i.length,s=i.slice();for(let o=0;o<r;o++)s[o].next(t)}}error(t){if(this.closed)throw new li;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:i}=this,r=i.length,s=i.slice();for(let o=0;o<r;o++)s[o].error(t);this.observers.length=0}complete(){if(this.closed)throw new li;this.isStopped=!0;const{observers:t}=this,i=t.length,r=t.slice();for(let s=0;s<i;s++)r[s].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(t){if(this.closed)throw new li;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new li;return this.hasError?(t.error(this.thrownError),Z.EMPTY):this.isStopped?(t.complete(),Z.EMPTY):(this.observers.push(t),new lf(this,t))}asObservable(){const t=new le;return t.source=this,t}}return n.create=(e,t)=>new uf(e,t),n})();class uf extends de{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):Z.EMPTY}}function Vi(n){return n&&"function"==typeof n.schedule}function Ve(n,e){return function(i){if("function"!=typeof n)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new RE(n,e))}}class RE{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new kE(e,this.project,this.thisArg))}}class kE extends he{constructor(e,t,i){super(e),this.project=t,this.count=0,this.thisArg=i||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(t)}}const df=n=>e=>{for(let t=0,i=n.length;t<i&&!e.closed;t++)e.next(n[t]);e.complete()},_o=function FE(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),hf=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function ff(n){return!!n&&"function"!=typeof n.subscribe&&"function"==typeof n.then}const Vl=n=>{if(n&&"function"==typeof n[Xr])return(n=>e=>{const t=n[Xr]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)})(n);if(hf(n))return df(n);if(ff(n))return(n=>e=>(n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,Li),e))(n);if(n&&"function"==typeof n[_o])return(n=>e=>{const t=n[_o]();for(;;){let i;try{i=t.next()}catch(r){return e.error(r),e}if(i.done){e.complete();break}if(e.next(i.value),e.closed)break}return"function"==typeof t.return&&e.add(()=>{t.return&&t.return()}),e})(n);{const t=`You provided ${Bl(n)?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(t)}};function Hl(n,e){return new le(t=>{const i=new Z;let r=0;return i.add(e.schedule(function(){r!==n.length?(t.next(n[r++]),t.closed||i.add(this.schedule())):t.complete()})),i})}function jl(n,e){return e?function UE(n,e){if(null!=n){if(function jE(n){return n&&"function"==typeof n[Xr]}(n))return function BE(n,e){return new le(t=>{const i=new Z;return i.add(e.schedule(()=>{const r=n[Xr]();i.add(r.subscribe({next(s){i.add(e.schedule(()=>t.next(s)))},error(s){i.add(e.schedule(()=>t.error(s)))},complete(){i.add(e.schedule(()=>t.complete()))}}))})),i})}(n,e);if(ff(n))return function VE(n,e){return new le(t=>{const i=new Z;return i.add(e.schedule(()=>n.then(r=>{i.add(e.schedule(()=>{t.next(r),i.add(e.schedule(()=>t.complete()))}))},r=>{i.add(e.schedule(()=>t.error(r)))}))),i})}(n,e);if(hf(n))return Hl(n,e);if(function $E(n){return n&&"function"==typeof n[_o]}(n)||"string"==typeof n)return function HE(n,e){if(!n)throw new Error("Iterable cannot be null");return new le(t=>{const i=new Z;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(e.schedule(()=>{r=n[_o](),i.add(e.schedule(function(){if(t.closed)return;let s,o;try{const a=r.next();s=a.value,o=a.done}catch(a){return void t.error(a)}o?t.complete():(t.next(s),this.schedule())}))})),i})}(n,e)}throw new TypeError((null!==n&&typeof n||n)+" is not observable")}(n,e):n instanceof le?n:new le(Vl(n))}class Zr extends he{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 Qr extends he{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function Jr(n,e){if(!e.closed)return n instanceof le?n.subscribe(e):Vl(n)(e)}function yo(n,e,t=Number.POSITIVE_INFINITY){return"function"==typeof e?i=>i.pipe(yo((r,s)=>jl(n(r,s)).pipe(Ve((o,a)=>e(r,o,s,a))),t)):("number"==typeof e&&(t=e),i=>i.lift(new zE(n,t)))}class zE{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new WE(e,this.project,this.concurrent))}}class WE extends Qr{constructor(e,t,i=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=i,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 i=this.index++;try{t=this.project(e,i)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(t)}_innerSub(e){const t=new Zr(this),i=this.destination;i.add(t);const r=Jr(e,t);r!==t&&i.add(r)}_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 pf(n=Number.POSITIVE_INFINITY){return yo(rf,n)}function $l(n,e){return e?Hl(n,e):new le(df(n))}function Hi(...n){let e=Number.POSITIVE_INFINITY,t=null,i=n[n.length-1];return Vi(i)?(t=n.pop(),n.length>1&&"number"==typeof n[n.length-1]&&(e=n.pop())):"number"==typeof i&&(e=n.pop()),null===t&&1===n.length&&n[0]instanceof le?n[0]:pf(e)($l(n,t))}function mf(){return function(e){return e.lift(new GE(e))}}class GE{constructor(e){this.connectable=e}call(e,t){const{connectable:i}=this;i._refCount++;const r=new qE(e,i),s=t.subscribe(r);return r.closed||(r.connection=i.connect()),s}}class qE extends he{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:i}=this,r=e._connection;this.connection=null,r&&(!i||r===i)&&r.unsubscribe()}}class YE extends le{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 Z,e.add(this.source.subscribe(new XE(this.getSubject(),this))),e.closed&&(this._connection=null,e=Z.EMPTY)),e}refCount(){return mf()(this)}}const KE=(()=>{const n=YE.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:n._subscribe},_isComplete:{value:n._isComplete,writable:!0},getSubject:{value:n.getSubject},connect:{value:n.connect},refCount:{value:n.refCount}}})();class XE extends cf{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()}}}class JE{constructor(e,t){this.subjectFactory=e,this.selector=t}call(e,t){const{selector:i}=this,r=this.subjectFactory(),s=i(r).subscribe(e);return s.add(t.subscribe(r)),s}}function eD(){return new de}function gf(){return n=>mf()(function QE(n,e){return function(i){let r;if(r="function"==typeof n?n:function(){return n},"function"==typeof e)return i.lift(new JE(r,e));const s=Object.create(i,KE);return s.source=i,s.subjectFactory=r,s}}(eD)(n))}function oe(n){for(let e in n)if(n[e]===oe)return e;throw Error("Could not find renamed property on target object.")}function Ul(n,e){for(const t in e)e.hasOwnProperty(t)&&!n.hasOwnProperty(t)&&(n[t]=e[t])}function te(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(te).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const e=n.toString();if(null==e)return""+e;const t=e.indexOf("\n");return-1===t?e:e.substring(0,t)}function zl(n,e){return null==n||""===n?null===e?"":e:null==e||""===e?n:n+" "+e}const tD=oe({__forward_ref__:oe});function Wl(n){return n.__forward_ref__=Wl,n.toString=function(){return te(this())},n}function $(n){return _f(n)?n():n}function _f(n){return"function"==typeof n&&n.hasOwnProperty(tD)&&n.__forward_ref__===Wl}class S extends Error{constructor(e,t){super(function Gl(n,e){return`NG0${Math.abs(n)}${e?": "+e:""}`}(e,t)),this.code=e}}function N(n){return"string"==typeof n?n:null==n?"":String(n)}function Ue(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():N(n)}function vo(n,e){const t=e?` in ${e}`:"";throw new S(-201,`No provider for ${Ue(n)} found${t}`)}function ft(n,e){null==n&&function ne(n,e,t,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${t} ${i} ${e} <=Actual]`))}(e,n,null,"!=")}function x(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function fe(n){return{providers:n.providers||[],imports:n.imports||[]}}function ql(n){return yf(n,bo)||yf(n,bf)}function yf(n,e){return n.hasOwnProperty(e)?n[e]:null}function vf(n){return n&&(n.hasOwnProperty(Yl)||n.hasOwnProperty(lD))?n[Yl]:null}const bo=oe({\u0275prov:oe}),Yl=oe({\u0275inj:oe}),bf=oe({ngInjectableDef:oe}),lD=oe({ngInjectorDef:oe});var V=(()=>((V=V||{})[V.Default=0]="Default",V[V.Host=1]="Host",V[V.Self=2]="Self",V[V.SkipSelf=4]="SkipSelf",V[V.Optional=8]="Optional",V))();let Kl;function Hn(n){const e=Kl;return Kl=n,e}function wf(n,e,t){const i=ql(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:t&V.Optional?null:void 0!==e?e:void vo(te(n),"Injector")}function jn(n){return{toString:n}.toString()}var zt=(()=>((zt=zt||{})[zt.OnPush=0]="OnPush",zt[zt.Default=1]="Default",zt))(),Wt=(()=>(function(n){n[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom"}(Wt||(Wt={})),Wt))();const uD="undefined"!=typeof globalThis&&globalThis,dD="undefined"!=typeof window&&window,hD="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,re=uD||"undefined"!=typeof global&&global||dD||hD,ji={},ae=[],wo=oe({\u0275cmp:oe}),Xl=oe({\u0275dir:oe}),Zl=oe({\u0275pipe:oe}),Ef=oe({\u0275mod:oe}),Sn=oe({\u0275fac:oe}),es=oe({__NG_ELEMENT_ID__:oe});let fD=0;function Gt(n){return jn(()=>{const t={},i={type:n.type,providersResolver:null,decls:n.decls,vars:n.vars,factory:null,template:n.template||null,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===zt.OnPush,directiveDefs:null,pipeDefs:null,selectors:n.selectors||ae,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||Wt.Emulated,id:"c",styles:n.styles||ae,_:null,setInput:null,schemas:n.schemas||null,tView:null},r=n.directives,s=n.features,o=n.pipes;return i.id+=fD++,i.inputs=Mf(n.inputs,t),i.outputs=Mf(n.outputs),s&&s.forEach(a=>a(i)),i.directiveDefs=r?()=>("function"==typeof r?r():r).map(Df):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map(Cf):null,i})}function Df(n){return ze(n)||function $n(n){return n[Xl]||null}(n)}function Cf(n){return function ci(n){return n[Zl]||null}(n)}const Sf={};function ge(n){return jn(()=>{const e={type:n.type,bootstrap:n.bootstrap||ae,declarations:n.declarations||ae,imports:n.imports||ae,exports:n.exports||ae,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null};return null!=n.id&&(Sf[n.id]=n.type),e})}function Mf(n,e){if(null==n)return ji;const t={};for(const i in n)if(n.hasOwnProperty(i)){let r=n[i],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),t[r]=i,e&&(e[r]=s)}return t}const Ce=Gt;function at(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,onDestroy:n.type.prototype.ngOnDestroy||null}}function ze(n){return n[wo]||null}function Ot(n,e){const t=n[Ef]||null;if(!t&&!0===e)throw new Error(`Type ${te(n)} does not have '\u0275mod' property.`);return t}const j=11;function ln(n){return Array.isArray(n)&&"object"==typeof n[1]}function Yt(n){return Array.isArray(n)&&!0===n[1]}function ec(n){return 0!=(8&n.flags)}function So(n){return 2==(2&n.flags)}function Mo(n){return 1==(1&n.flags)}function Kt(n){return null!==n.template}function vD(n){return 0!=(512&n[2])}function fi(n,e){return n.hasOwnProperty(Sn)?n[Sn]:null}class If{constructor(e,t,i){this.previousValue=e,this.currentValue=t,this.firstChange=i}isFirstChange(){return this.firstChange}}function Gi(){return xf}function xf(n){return n.type.prototype.ngOnChanges&&(n.setInput=DD),ED}function ED(){const n=Of(this),e=null==n?void 0:n.current;if(e){const t=n.previous;if(t===ji)n.previous=e;else for(let i in e)t[i]=e[i];n.current=null,this.ngOnChanges(e)}}function DD(n,e,t,i){const r=Of(n)||function CD(n,e){return n[Af]=e}(n,{previous:ji,current:null}),s=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[t],l=o[a];s[a]=new If(l&&l.currentValue,e,o===ji),n[i]=e}Gi.ngInherit=!0;const Af="__ngSimpleChanges__";function Of(n){return n[Af]||null}let sc;function oc(){return void 0!==sc?sc:"undefined"!=typeof document?document:void 0}function Ee(n){return!!n.listen}const Rf={createRenderer:(n,e)=>oc()};function Te(n){for(;Array.isArray(n);)n=n[0];return n}function To(n,e){return Te(e[n])}function mt(n,e){return Te(e[n.index])}function ac(n,e){return n.data[e]}function qi(n,e){return n[e]}function gt(n,e){const t=e[n];return ln(t)?t:t[0]}function kf(n){return 4==(4&n[2])}function lc(n){return 128==(128&n[2])}function Un(n,e){return null==e?null:n[e]}function Pf(n){n[18]=0}function cc(n,e){n[5]+=e;let t=n,i=n[3];for(;null!==i&&(1===e&&1===t[5]||-1===e&&0===t[5]);)i[5]+=e,t=i,i=i[3]}const L={lFrame:Uf(null),bindingsEnabled:!0};function Nf(){return L.bindingsEnabled}function b(){return L.lFrame.lView}function K(){return L.lFrame.tView}function Ze(n){return L.lFrame.contextLView=n,n[8]}function ke(){let n=Lf();for(;null!==n&&64===n.type;)n=n.parent;return n}function Lf(){return L.lFrame.currentTNode}function cn(n,e){const t=L.lFrame;t.currentTNode=n,t.isParent=e}function uc(){return L.lFrame.isParent}function dc(){L.lFrame.isParent=!1}function Yi(){return L.lFrame.bindingIndex++}function Tn(n){const e=L.lFrame,t=e.bindingIndex;return e.bindingIndex=e.bindingIndex+n,t}function jD(n,e){const t=L.lFrame;t.bindingIndex=t.bindingRootIndex=n,hc(e)}function hc(n){L.lFrame.currentDirectiveIndex=n}function Hf(){return L.lFrame.currentQueryIndex}function pc(n){L.lFrame.currentQueryIndex=n}function UD(n){const e=n[1];return 2===e.type?e.declTNode:1===e.type?n[6]:null}function jf(n,e,t){if(t&V.SkipSelf){let r=e,s=n;for(;!(r=r.parent,null!==r||t&V.Host||(r=UD(s),null===r||(s=s[15],10&r.type))););if(null===r)return!1;e=r,n=s}const i=L.lFrame=$f();return i.currentTNode=e,i.lView=n,!0}function xo(n){const e=$f(),t=n[1];L.lFrame=e,e.currentTNode=t.firstChild,e.lView=n,e.tView=t,e.contextLView=n,e.bindingIndex=t.bindingStartIndex,e.inI18n=!1}function $f(){const n=L.lFrame,e=null===n?null:n.child;return null===e?Uf(n):e}function Uf(n){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:n,child:null,inI18n:!1};return null!==n&&(n.child=e),e}function zf(){const n=L.lFrame;return L.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const Wf=zf;function Ao(){const n=zf();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function Je(){return L.lFrame.selectedIndex}function zn(n){L.lFrame.selectedIndex=n}function _e(){const n=L.lFrame;return ac(n.tView,n.selectedIndex)}function Oo(n,e){for(let t=e.directiveStart,i=e.directiveEnd;t<i;t++){const s=n.data[t].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:u}=s;o&&(n.contentHooks||(n.contentHooks=[])).push(-t,o),a&&((n.contentHooks||(n.contentHooks=[])).push(t,a),(n.contentCheckHooks||(n.contentCheckHooks=[])).push(t,a)),l&&(n.viewHooks||(n.viewHooks=[])).push(-t,l),c&&((n.viewHooks||(n.viewHooks=[])).push(t,c),(n.viewCheckHooks||(n.viewCheckHooks=[])).push(t,c)),null!=u&&(n.destroyHooks||(n.destroyHooks=[])).push(t,u)}}function Ro(n,e,t){qf(n,e,3,t)}function ko(n,e,t,i){(3&n[2])===t&&qf(n,e,t,i)}function mc(n,e){let t=n[2];(3&t)===e&&(t&=2047,t+=1,n[2]=t)}function qf(n,e,t,i){const s=null!=i?i:-1,o=e.length-1;let a=0;for(let l=void 0!==i?65535&n[18]:0;l<o;l++)if("number"==typeof e[l+1]){if(a=e[l],null!=i&&a>=i)break}else e[l]<0&&(n[18]+=65536),(a<s||-1==s)&&(ZD(n,t,e,l),n[18]=(4294901760&n[18])+l+2),l++}function ZD(n,e,t,i){const r=t[i]<0,s=t[i+1],a=n[r?-t[i]:t[i]];if(r){if(n[2]>>11<n[18]>>16&&(3&n[2])===e){n[2]+=2048;try{s.call(a)}finally{}}}else try{s.call(a)}finally{}}class ss{constructor(e,t,i){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=i}}function Po(n,e,t){const i=Ee(n);let r=0;for(;r<t.length;){const s=t[r];if("number"==typeof s){if(0!==s)break;r++;const o=t[r++],a=t[r++],l=t[r++];i?n.setAttribute(e,a,l,o):e.setAttributeNS(o,a,l)}else{const o=s,a=t[++r];_c(o)?i&&n.setProperty(e,o,a):i?n.setAttribute(e,o,a):e.setAttribute(o,a),r++}}return r}function Yf(n){return 3===n||4===n||6===n}function _c(n){return 64===n.charCodeAt(0)}function Fo(n,e){if(null!==e&&0!==e.length)if(null===n||0===n.length)n=e.slice();else{let t=-1;for(let i=0;i<e.length;i++){const r=e[i];"number"==typeof r?t=r:0===t||Kf(n,t,r,null,-1===t||2===t?e[++i]:null)}}return n}function Kf(n,e,t,i,r){let s=0,o=n.length;if(-1===e)o=-1;else for(;s<n.length;){const a=n[s++];if("number"==typeof a){if(a===e){o=-1;break}if(a>e){o=s-1;break}}}for(;s<n.length;){const a=n[s];if("number"==typeof a)break;if(a===t){if(null===i)return void(null!==r&&(n[s+1]=r));if(i===n[s+1])return void(n[s+2]=r)}s++,null!==i&&s++,null!==r&&s++}-1!==o&&(n.splice(o,0,e),s=o+1),n.splice(s++,0,t),null!==i&&n.splice(s++,0,i),null!==r&&n.splice(s++,0,r)}function Xf(n){return-1!==n}function Ki(n){return 32767&n}function Xi(n,e){let t=function nC(n){return n>>16}(n),i=e;for(;t>0;)i=i[15],t--;return i}let yc=!0;function No(n){const e=yc;return yc=n,e}let iC=0;function as(n,e){const t=bc(n,e);if(-1!==t)return t;const i=e[1];i.firstCreatePass&&(n.injectorIndex=e.length,vc(i.data,n),vc(e,null),vc(i.blueprint,null));const r=Lo(n,e),s=n.injectorIndex;if(Xf(r)){const o=Ki(r),a=Xi(r,e),l=a[1].data;for(let c=0;c<8;c++)e[s+c]=a[o+c]|l[o+c]}return e[s+8]=r,s}function vc(n,e){n.push(0,0,0,0,0,0,0,0,e)}function bc(n,e){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===e[n.injectorIndex+8]?-1:n.injectorIndex}function Lo(n,e){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let t=0,i=null,r=e;for(;null!==r;){const s=r[1],o=s.type;if(i=2===o?s.declTNode:1===o?r[6]:null,null===i)return-1;if(t++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|t<<16}return-1}function Bo(n,e,t){!function rC(n,e,t){let i;"string"==typeof t?i=t.charCodeAt(0)||0:t.hasOwnProperty(es)&&(i=t[es]),null==i&&(i=t[es]=iC++);const r=255&i;e.data[n+(r>>5)]|=1<<r}(n,e,t)}function Jf(n,e,t){if(t&V.Optional)return n;vo(e,"NodeInjector")}function ep(n,e,t,i){if(t&V.Optional&&void 0===i&&(i=null),0==(t&(V.Self|V.Host))){const r=n[9],s=Hn(void 0);try{return r?r.get(e,i,t&V.Optional):wf(e,i,t&V.Optional)}finally{Hn(s)}}return Jf(i,e,t)}function tp(n,e,t,i=V.Default,r){if(null!==n){const s=function lC(n){if("string"==typeof n)return n.charCodeAt(0)||0;const e=n.hasOwnProperty(es)?n[es]:void 0;return"number"==typeof e?e>=0?255&e:oC:e}(t);if("function"==typeof s){if(!jf(e,n,i))return i&V.Host?Jf(r,t,i):ep(e,t,i,r);try{const o=s(i);if(null!=o||i&V.Optional)return o;vo(t)}finally{Wf()}}else if("number"==typeof s){let o=null,a=bc(n,e),l=-1,c=i&V.Host?e[16][6]:null;for((-1===a||i&V.SkipSelf)&&(l=-1===a?Lo(n,e):e[a+8],-1!==l&&rp(i,!1)?(o=e[1],a=Ki(l),e=Xi(l,e)):a=-1);-1!==a;){const u=e[1];if(ip(s,a,u.data)){const d=aC(a,e,t,o,i,c);if(d!==np)return d}l=e[a+8],-1!==l&&rp(i,e[1].data[a+8]===c)&&ip(s,a,e)?(o=u,a=Ki(l),e=Xi(l,e)):a=-1}}}return ep(e,t,i,r)}const np={};function oC(){return new Zi(ke(),b())}function aC(n,e,t,i,r,s){const o=e[1],a=o.data[n+8],u=Vo(a,o,t,null==i?So(a)&&yc:i!=o&&0!=(3&a.type),r&V.Host&&s===a);return null!==u?ls(e,o,u,a):np}function Vo(n,e,t,i,r){const s=n.providerIndexes,o=e.data,a=1048575&s,l=n.directiveStart,u=s>>20,h=r?a+u:n.directiveEnd;for(let f=i?a:a+u;f<h;f++){const p=o[f];if(f<l&&t===p||f>=l&&p.type===t)return f}if(r){const f=o[l];if(f&&Kt(f)&&f.type===t)return l}return null}function ls(n,e,t,i){let r=n[t];const s=e.data;if(function QD(n){return n instanceof ss}(r)){const o=r;o.resolving&&function nD(n,e){const t=e?`. Dependency path: ${e.join(" > ")} > ${n}`:"";throw new S(-200,`Circular dependency in DI detected for ${n}${t}`)}(Ue(s[t]));const a=No(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?Hn(o.injectImpl):null;jf(n,i,V.Default);try{r=n[t]=o.factory(void 0,s,n,i),e.firstCreatePass&&t>=i.directiveStart&&function XD(n,e,t){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=e.type.prototype;if(i){const o=xf(e);(t.preOrderHooks||(t.preOrderHooks=[])).push(n,o),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n,o)}r&&(t.preOrderHooks||(t.preOrderHooks=[])).push(0-n,r),s&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n,s),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n,s))}(t,s[t],e)}finally{null!==l&&Hn(l),No(a),o.resolving=!1,Wf()}}return r}function ip(n,e,t){return!!(t[e+(n>>5)]&1<<n)}function rp(n,e){return!(n&V.Self||n&V.Host&&e)}class Zi{constructor(e,t){this._tNode=e,this._lView=t}get(e,t,i){return tp(this._tNode,this._lView,e,i,t)}}function wc(n){return _f(n)?()=>{const e=wc($(n));return e&&e()}:fi(n)}const Ji="__parameters__";function tr(n,e,t){return jn(()=>{const i=function Ec(n){return function(...t){if(n){const i=n(...t);for(const r in i)this[r]=i[r]}}}(e);function r(...s){if(this instanceof r)return i.apply(this,s),this;const o=new r(...s);return a.annotation=o,a;function a(l,c,u){const d=l.hasOwnProperty(Ji)?l[Ji]:Object.defineProperty(l,Ji,{value:[]})[Ji];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(o),l}}return t&&(r.prototype=Object.create(t.prototype)),r.prototype.ngMetadataName=n,r.annotationCls=r,r})}class I{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=x({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}function Pt(n,e){void 0===e&&(e=n);for(let t=0;t<n.length;t++){let i=n[t];Array.isArray(i)?(e===n&&(e=n.slice(0,t)),Pt(i,e)):e!==n&&e.push(i)}return e}function un(n,e){n.forEach(t=>Array.isArray(t)?un(t,e):e(t))}function ap(n,e,t){e>=n.length?n.push(t):n.splice(e,0,t)}function jo(n,e){return e>=n.length-1?n.pop():n.splice(e,1)[0]}function ds(n,e){const t=[];for(let i=0;i<n;i++)t.push(e);return t}function _t(n,e,t){let i=nr(n,e);return i>=0?n[1|i]=t:(i=~i,function hC(n,e,t,i){let r=n.length;if(r==e)n.push(t,i);else if(1===r)n.push(i,n[0]),n[0]=t;else{for(r--,n.push(n[r-1],n[r]);r>e;)n[r]=n[r-2],r--;n[e]=t,n[e+1]=i}}(n,i,e,t)),i}function Cc(n,e){const t=nr(n,e);if(t>=0)return n[1|t]}function nr(n,e){return function up(n,e,t){let i=0,r=n.length>>t;for(;r!==i;){const s=i+(r-i>>1),o=n[s<<t];if(e===o)return s<<t;o>e?r=s:i=s+1}return~(r<<t)}(n,e,1)}const hs={},Mc="__NG_DI_FLAG__",Uo="ngTempTokenPath",vC=/\n/gm,hp="__source",wC=oe({provide:String,useValue:oe});let fs;function fp(n){const e=fs;return fs=n,e}function EC(n,e=V.Default){if(void 0===fs)throw new S(203,"");return null===fs?wf(n,void 0,e):fs.get(n,e&V.Optional?null:void 0,e)}function v(n,e=V.Default){return(function cD(){return Kl}()||EC)($(n),e)}const zo=v;function Tc(n){const e=[];for(let t=0;t<n.length;t++){const i=$(n[t]);if(Array.isArray(i)){if(0===i.length)throw new S(900,"");let r,s=V.Default;for(let o=0;o<i.length;o++){const a=i[o],l=DC(a);"number"==typeof l?-1===l?r=a.token:s|=l:r=a}e.push(v(r,s))}else e.push(v(i))}return e}function ps(n,e){return n[Mc]=e,n.prototype[Mc]=e,n}function DC(n){return n[Mc]}const pi=ps(tr("Optional"),8),ms=ps(tr("SkipSelf"),4);var yt=(()=>((yt=yt||{})[yt.Important=1]="Important",yt[yt.DashCase=2]="DashCase",yt))();const wp="__ngContext__";function Ye(n,e){n[wp]=e}function Oc(n){const e=function _s(n){return n[wp]||null}(n);return e?Array.isArray(e)?e:e.lView:null}function kc(n,e){return undefined(n,e)}function ys(n){const e=n[3];return Yt(e)?e[3]:e}function Pc(n){return Ip(n[13])}function Fc(n){return Ip(n[4])}function Ip(n){for(;null!==n&&!Yt(n);)n=n[4];return n}function rr(n,e,t,i,r){if(null!=i){let s,o=!1;Yt(i)?s=i:ln(i)&&(o=!0,i=i[0]);const a=Te(i);0===n&&null!==t?null==r?Pp(e,t,a):mi(e,t,a,r||null,!0):1===n&&null!==t?mi(e,t,a,r||null,!0):2===n?function $c(n,e,t){const i=Go(n,e);i&&function e0(n,e,t,i){Ee(n)?n.removeChild(e,t,i):e.removeChild(t)}(n,i,e,t)}(e,a,o):3===n&&e.destroyNode(a),null!=s&&function r0(n,e,t,i,r){const s=t[7];s!==Te(t)&&rr(e,n,i,s,r);for(let a=10;a<t.length;a++){const l=t[a];vs(l[1],l,n,e,i,s)}}(e,n,s,t,r)}}function Lc(n,e,t){if(Ee(n))return n.createElement(e,t);{const i=null!==t?function ID(n){const e=n.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(t):null;return null===i?n.createElement(e):n.createElementNS(i,e)}}function Ap(n,e){const t=n[9],i=t.indexOf(e),r=e[3];1024&e[2]&&(e[2]&=-1025,cc(r,-1)),t.splice(i,1)}function Bc(n,e){if(n.length<=10)return;const t=10+e,i=n[t];if(i){const r=i[17];null!==r&&r!==n&&Ap(r,i),e>0&&(n[t-1][4]=i[4]);const s=jo(n,10+e);!function GC(n,e){vs(n,e,e[j],2,null,null),e[0]=null,e[6]=null}(i[1],i);const o=s[19];null!==o&&o.detachView(s[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function Op(n,e){if(!(256&e[2])){const t=e[j];Ee(t)&&t.destroyNode&&vs(n,e,t,3,null,null),function KC(n){let e=n[13];if(!e)return Vc(n[1],n);for(;e;){let t=null;if(ln(e))t=e[13];else{const i=e[10];i&&(t=i)}if(!t){for(;e&&!e[4]&&e!==n;)ln(e)&&Vc(e[1],e),e=e[3];null===e&&(e=n),ln(e)&&Vc(e[1],e),t=e&&e[4]}e=t}}(e)}}function Vc(n,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function JC(n,e){let t;if(null!=n&&null!=(t=n.destroyHooks))for(let i=0;i<t.length;i+=2){const r=e[t[i]];if(!(r instanceof ss)){const s=t[i+1];if(Array.isArray(s))for(let o=0;o<s.length;o+=2){const a=r[s[o]],l=s[o+1];try{l.call(a)}finally{}}else try{s.call(r)}finally{}}}}(n,e),function QC(n,e){const t=n.cleanup,i=e[7];let r=-1;if(null!==t)for(let s=0;s<t.length-1;s+=2)if("string"==typeof t[s]){const o=t[s+1],a="function"==typeof o?o(e):Te(e[o]),l=i[r=t[s+2]],c=t[s+3];"boolean"==typeof c?a.removeEventListener(t[s],l,c):c>=0?i[r=c]():i[r=-c].unsubscribe(),s+=2}else{const o=i[r=t[s+1]];t[s].call(o)}if(null!==i){for(let s=r+1;s<i.length;s++)i[s]();e[7]=null}}(n,e),1===e[1].type&&Ee(e[j])&&e[j].destroy();const t=e[17];if(null!==t&&Yt(e[3])){t!==e[3]&&Ap(t,e);const i=e[19];null!==i&&i.detachView(n)}}}function Rp(n,e,t){return function kp(n,e,t){let i=e;for(;null!==i&&40&i.type;)i=(e=i).parent;if(null===i)return t[0];if(2&i.flags){const r=n.data[i.directiveStart].encapsulation;if(r===Wt.None||r===Wt.Emulated)return null}return mt(i,t)}(n,e.parent,t)}function mi(n,e,t,i,r){Ee(n)?n.insertBefore(e,t,i,r):e.insertBefore(t,i,r)}function Pp(n,e,t){Ee(n)?n.appendChild(e,t):e.appendChild(t)}function Fp(n,e,t,i,r){null!==i?mi(n,e,t,i,r):Pp(n,e,t)}function Go(n,e){return Ee(n)?n.parentNode(e):e.parentNode}function Np(n,e,t){return Bp(n,e,t)}let Ko,Xo,Bp=function Lp(n,e,t){return 40&n.type?mt(n,t):null};function qo(n,e,t,i){const r=Rp(n,i,e),s=e[j],a=Np(i.parent||e[6],i,e);if(null!=r)if(Array.isArray(t))for(let l=0;l<t.length;l++)Fp(s,r,t[l],a,!1);else Fp(s,r,t,a,!1)}function Yo(n,e){if(null!==e){const t=e.type;if(3&t)return mt(e,n);if(4&t)return jc(-1,n[e.index]);if(8&t){const i=e.child;if(null!==i)return Yo(n,i);{const r=n[e.index];return Yt(r)?jc(-1,r):Te(r)}}if(32&t)return kc(e,n)()||Te(n[e.index]);{const i=Hp(n,e);return null!==i?Array.isArray(i)?i[0]:Yo(ys(n[16]),i):Yo(n,e.next)}}return null}function Hp(n,e){return null!==e?n[16][6].projection[e.projection]:null}function jc(n,e){const t=10+n+1;if(t<e.length){const i=e[t],r=i[1].firstChild;if(null!==r)return Yo(i,r)}return e[7]}function Uc(n,e,t,i,r,s,o){for(;null!=t;){const a=i[t.index],l=t.type;if(o&&0===e&&(a&&Ye(Te(a),i),t.flags|=4),64!=(64&t.flags))if(8&l)Uc(n,e,t.child,i,r,s,!1),rr(e,n,r,a,s);else if(32&l){const c=kc(t,i);let u;for(;u=c();)rr(e,n,r,u,s);rr(e,n,r,a,s)}else 16&l?jp(n,e,i,t,r,s):rr(e,n,r,a,s);t=o?t.projectionNext:t.next}}function vs(n,e,t,i,r,s){Uc(t,i,n.firstChild,e,r,s,!1)}function jp(n,e,t,i,r,s){const o=t[16],l=o[6].projection[i.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++)rr(e,n,r,l[c],s);else Uc(n,e,l,o[3],r,s,!0)}function $p(n,e,t){Ee(n)?n.setAttribute(e,"style",t):e.style.cssText=t}function zc(n,e,t){Ee(n)?""===t?n.removeAttribute(e,"class"):n.setAttribute(e,"class",t):e.className=t}function gi(n){var e;return(null===(e=function Wc(){if(void 0===Ko&&(Ko=null,re.trustedTypes))try{Ko=re.trustedTypes.createPolicy("angular",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return Ko}())||void 0===e?void 0:e.createHTML(n))||n}function Up(n){var e;return(null===(e=function Gc(){if(void 0===Xo&&(Xo=null,re.trustedTypes))try{Xo=re.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return Xo}())||void 0===e?void 0:e.createHTML(n))||n}class _i{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class c0 extends _i{getTypeName(){return"HTML"}}class u0 extends _i{getTypeName(){return"Style"}}class d0 extends _i{getTypeName(){return"Script"}}class h0 extends _i{getTypeName(){return"URL"}}class f0 extends _i{getTypeName(){return"ResourceURL"}}function vt(n){return n instanceof _i?n.changingThisBreaksApplicationSecurity:n}function dn(n,e){const t=Gp(n);if(null!=t&&t!==e){if("ResourceURL"===t&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${t} (see https://g.co/ng/security#xss)`)}return t===e}function Gp(n){return n instanceof _i&&n.getTypeName()||null}class v0{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{const t=(new window.DOMParser).parseFromString(gi(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch(t){return null}}}class b0{constructor(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const i=this.inertDocument.createElement("body");t.appendChild(i)}}getInertBodyElement(e){const t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=gi(e),t;const i=this.inertDocument.createElement("body");return i.innerHTML=gi(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(e){const t=e.attributes;for(let r=t.length-1;0<r;r--){const o=t.item(r).name;("xmlns:ns1"===o||0===o.indexOf("ns1:"))&&e.removeAttribute(o)}let i=e.firstChild;for(;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}const E0=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,D0=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function bs(n){return(n=String(n)).match(E0)||n.match(D0)?n:"unsafe:"+n}function Yp(n){return(n=String(n)).split(",").map(e=>bs(e.trim())).join(", ")}function hn(n){const e={};for(const t of n.split(","))e[t]=!0;return e}function ws(...n){const e={};for(const t of n)for(const i in t)t.hasOwnProperty(i)&&(e[i]=!0);return e}const Kp=hn("area,br,col,hr,img,wbr"),Xp=hn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Zp=hn("rp,rt"),qc=ws(Kp,ws(Xp,hn("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),ws(Zp,hn("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),ws(Zp,Xp)),Yc=hn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Kc=hn("srcset"),Qp=ws(Yc,Kc,hn("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),hn("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),C0=hn("script,style,template");class S0{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let t=e.firstChild,i=!0;for(;t;)if(t.nodeType===Node.ELEMENT_NODE?i=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,i&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let r=this.checkClobberedElement(t,t.nextSibling);if(r){t=r;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}startElement(e){const t=e.nodeName.toLowerCase();if(!qc.hasOwnProperty(t))return this.sanitizedSomething=!0,!C0.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const i=e.attributes;for(let r=0;r<i.length;r++){const s=i.item(r),o=s.name,a=o.toLowerCase();if(!Qp.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=s.value;Yc[a]&&(l=bs(l)),Kc[a]&&(l=Yp(l)),this.buf.push(" ",o,'="',Jp(l),'"')}return this.buf.push(">"),!0}endElement(e){const t=e.nodeName.toLowerCase();qc.hasOwnProperty(t)&&!Kp.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(e){this.buf.push(Jp(e))}checkClobberedElement(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`);return t}}const M0=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,T0=/([^\#-~ |!])/g;function Jp(n){return n.replace(/&/g,"&amp;").replace(M0,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(T0,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Zo;function em(n,e){let t=null;try{Zo=Zo||function qp(n){const e=new b0(n);return function w0(){try{return!!(new window.DOMParser).parseFromString(gi(""),"text/html")}catch(n){return!1}}()?new v0(e):e}(n);let i=e?String(e):"";t=Zo.getInertBodyElement(i);let r=5,s=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=s,s=t.innerHTML,t=Zo.getInertBodyElement(i)}while(i!==s);return gi((new S0).sanitizeChildren(Xc(t)||t))}finally{if(t){const i=Xc(t)||t;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function Xc(n){return"content"in n&&function I0(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var Q=(()=>((Q=Q||{})[Q.NONE=0]="NONE",Q[Q.HTML=1]="HTML",Q[Q.STYLE=2]="STYLE",Q[Q.SCRIPT=3]="SCRIPT",Q[Q.URL=4]="URL",Q[Q.RESOURCE_URL=5]="RESOURCE_URL",Q))();function Zc(n){const e=function Es(){const n=b();return n&&n[12]}();return e?Up(e.sanitize(Q.HTML,n)||""):dn(n,"HTML")?Up(vt(n)):em(oc(),N(n))}function Jc(n){return n.ngOriginalError}function B0(n,...e){n.error(...e)}class Gn{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),i=function L0(n){return n&&n.ngErrorLogger||B0}(e);i(this._console,"ERROR",e),t&&i(this._console,"ORIGINAL ERROR",t)}_findOriginalError(e){let t=e&&Jc(e);for(;t&&Jc(t);)t=Jc(t);return t||null}}const W0=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(re))();function fn(n){return n instanceof Function?n():n}function rm(n,e,t){let i=n.length;for(;;){const r=n.indexOf(e,t);if(-1===r)return r;if(0===r||n.charCodeAt(r-1)<=32){const s=e.length;if(r+s===i||n.charCodeAt(r+s)<=32)return r}t=r+1}}const sm="ng-template";function K0(n,e,t){let i=0;for(;i<n.length;){let r=n[i++];if(t&&"class"===r){if(r=n[i],-1!==rm(r.toLowerCase(),e,0))return!0}else if(1===r){for(;i<n.length&&"string"==typeof(r=n[i++]);)if(r.toLowerCase()===e)return!0;return!1}}return!1}function om(n){return 4===n.type&&n.value!==sm}function X0(n,e,t){return e===(4!==n.type||t?n.value:sm)}function Z0(n,e,t){let i=4;const r=n.attrs||[],s=function eS(n){for(let e=0;e<n.length;e++)if(Yf(n[e]))return e;return n.length}(r);let o=!1;for(let a=0;a<e.length;a++){const l=e[a];if("number"!=typeof l){if(!o)if(4&i){if(i=2|1&i,""!==l&&!X0(n,l,t)||""===l&&1===e.length){if(Xt(i))return!1;o=!0}}else{const c=8&i?l:e[++a];if(8&i&&null!==n.attrs){if(!K0(n.attrs,c,t)){if(Xt(i))return!1;o=!0}continue}const d=Q0(8&i?"class":l,r,om(n),t);if(-1===d){if(Xt(i))return!1;o=!0;continue}if(""!==c){let h;h=d>s?"":r[d+1].toLowerCase();const f=8&i?h:null;if(f&&-1!==rm(f,c,0)||2&i&&c!==h){if(Xt(i))return!1;o=!0}}}}else{if(!o&&!Xt(i)&&!Xt(l))return!1;if(o&&Xt(l))continue;o=!1,i=l|1&i}}return Xt(i)||o}function Xt(n){return 0==(1&n)}function Q0(n,e,t,i){if(null===e)return-1;let r=0;if(i||!t){let s=!1;for(;r<e.length;){const o=e[r];if(o===n)return r;if(3===o||6===o)s=!0;else{if(1===o||2===o){let a=e[++r];for(;"string"==typeof a;)a=e[++r];continue}if(4===o)break;if(0===o){r+=4;continue}}r+=s?1:2}return-1}return function tS(n,e){let t=n.indexOf(4);if(t>-1)for(t++;t<n.length;){const i=n[t];if("number"==typeof i)return-1;if(i===e)return t;t++}return-1}(e,n)}function am(n,e,t=!1){for(let i=0;i<e.length;i++)if(Z0(n,e[i],t))return!0;return!1}function nS(n,e){e:for(let t=0;t<e.length;t++){const i=e[t];if(n.length===i.length){for(let r=0;r<n.length;r++)if(n[r]!==i[r])continue e;return!0}}return!1}function lm(n,e){return n?":not("+e.trim()+")":e}function iS(n){let e=n[0],t=1,i=2,r="",s=!1;for(;t<n.length;){let o=n[t];if("string"==typeof o)if(2&i){const a=n[++t];r+="["+o+(a.length>0?'="'+a+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""!==r&&!Xt(o)&&(e+=lm(s,r),r=""),i=o,s=s||!Xt(i);t++}return""!==r&&(e+=lm(s,r)),e}const B={};function k(n){cm(K(),b(),Je()+n,!1)}function cm(n,e,t,i){if(!i)if(3==(3&e[2])){const s=n.preOrderCheckHooks;null!==s&&Ro(e,s,t)}else{const s=n.preOrderHooks;null!==s&&ko(e,s,0,t)}zn(t)}function Qo(n,e){return n<<17|e<<2}function Zt(n){return n>>17&32767}function eu(n){return 2|n}function In(n){return(131068&n)>>2}function tu(n,e){return-131069&n|e<<2}function nu(n){return 1|n}function bm(n,e){const t=n.contentQueries;if(null!==t)for(let i=0;i<t.length;i+=2){const r=t[i],s=t[i+1];if(-1!==s){const o=n.data[s];pc(r),o.contentQueries(2,e[s],s)}}}function Ds(n,e,t,i,r,s,o,a,l,c){const u=e.blueprint.slice();return u[0]=r,u[2]=140|i,Pf(u),u[3]=u[15]=n,u[8]=t,u[10]=o||n&&n[10],u[j]=a||n&&n[j],u[12]=l||n&&n[12]||null,u[9]=c||n&&n[9]||null,u[6]=s,u[16]=2==e.type?n[16]:u,u}function or(n,e,t,i,r){let s=n.data[e];if(null===s)s=function du(n,e,t,i,r){const s=Lf(),o=uc(),l=n.data[e]=function wS(n,e,t,i,r,s){return{type:t,index:i,insertBeforeIndex:null,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:r,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,o?s:s&&s.parent,t,e,i,r);return null===n.firstChild&&(n.firstChild=l),null!==s&&(o?null==s.child&&null!==l.parent&&(s.child=l):null===s.next&&(s.next=l)),l}(n,e,t,i,r),function HD(){return L.lFrame.inI18n}()&&(s.flags|=64);else if(64&s.type){s.type=t,s.value=i,s.attrs=r;const o=function rs(){const n=L.lFrame,e=n.currentTNode;return n.isParent?e:e.parent}();s.injectorIndex=null===o?-1:o.injectorIndex}return cn(s,!0),s}function ar(n,e,t,i){if(0===t)return-1;const r=e.length;for(let s=0;s<t;s++)e.push(i),n.blueprint.push(i),n.data.push(null);return r}function Cs(n,e,t){xo(e);try{const i=n.viewQuery;null!==i&&bu(1,i,t);const r=n.template;null!==r&&wm(n,e,r,1,t),n.firstCreatePass&&(n.firstCreatePass=!1),n.staticContentQueries&&bm(n,e),n.staticViewQueries&&bu(2,n.viewQuery,t);const s=n.components;null!==s&&function yS(n,e){for(let t=0;t<e.length;t++)VS(n,e[t])}(e,s)}catch(i){throw n.firstCreatePass&&(n.incompleteFirstPass=!0,n.firstCreatePass=!1),i}finally{e[2]&=-5,Ao()}}function lr(n,e,t,i){const r=e[2];if(256!=(256&r)){xo(e);try{Pf(e),function Bf(n){return L.lFrame.bindingIndex=n}(n.bindingStartIndex),null!==t&&wm(n,e,t,2,i);const o=3==(3&r);if(o){const c=n.preOrderCheckHooks;null!==c&&Ro(e,c,null)}else{const c=n.preOrderHooks;null!==c&&ko(e,c,0,null),mc(e,0)}if(function LS(n){for(let e=Pc(n);null!==e;e=Fc(e)){if(!e[2])continue;const t=e[9];for(let i=0;i<t.length;i++){const r=t[i],s=r[3];0==(1024&r[2])&&cc(s,1),r[2]|=1024}}}(e),function NS(n){for(let e=Pc(n);null!==e;e=Fc(e))for(let t=10;t<e.length;t++){const i=e[t],r=i[1];lc(i)&&lr(r,i,r.template,i[8])}}(e),null!==n.contentQueries&&bm(n,e),o){const c=n.contentCheckHooks;null!==c&&Ro(e,c)}else{const c=n.contentHooks;null!==c&&ko(e,c,1),mc(e,1)}!function gS(n,e){const t=n.hostBindingOpCodes;if(null!==t)try{for(let i=0;i<t.length;i++){const r=t[i];if(r<0)zn(~r);else{const s=r,o=t[++i],a=t[++i];jD(o,s),a(2,e[s])}}}finally{zn(-1)}}(n,e);const a=n.components;null!==a&&function _S(n,e){for(let t=0;t<e.length;t++)BS(n,e[t])}(e,a);const l=n.viewQuery;if(null!==l&&bu(2,l,i),o){const c=n.viewCheckHooks;null!==c&&Ro(e,c)}else{const c=n.viewHooks;null!==c&&ko(e,c,2),mc(e,2)}!0===n.firstUpdatePass&&(n.firstUpdatePass=!1),e[2]&=-73,1024&e[2]&&(e[2]&=-1025,cc(e[3],-1))}finally{Ao()}}}function vS(n,e,t,i){const r=e[10],o=kf(e);try{!o&&r.begin&&r.begin(),o&&Cs(n,e,i),lr(n,e,t,i)}finally{!o&&r.end&&r.end()}}function wm(n,e,t,i,r){const s=Je(),o=2&i;try{zn(-1),o&&e.length>20&&cm(n,e,20,!1),t(i,r)}finally{zn(s)}}function Em(n,e,t){if(ec(e)){const r=e.directiveEnd;for(let s=e.directiveStart;s<r;s++){const o=n.data[s];o.contentQueries&&o.contentQueries(1,t[s],s)}}}function hu(n,e,t){!Nf()||(function IS(n,e,t,i){const r=t.directiveStart,s=t.directiveEnd;n.firstCreatePass||as(t,e),Ye(i,e);const o=t.initialInputs;for(let a=r;a<s;a++){const l=n.data[a],c=Kt(l);c&&kS(e,t,l);const u=ls(e,n,a,t);Ye(u,e),null!==o&&PS(0,a-r,u,l,0,o),c&&(gt(t.index,e)[8]=u)}}(n,e,t,mt(t,e)),128==(128&t.flags)&&function xS(n,e,t){const i=t.directiveStart,r=t.directiveEnd,o=t.index,a=function $D(){return L.lFrame.currentDirectiveIndex}();try{zn(o);for(let l=i;l<r;l++){const c=n.data[l],u=e[l];hc(l),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&Am(c,u)}}finally{zn(-1),hc(a)}}(n,e,t))}function fu(n,e,t=mt){const i=e.localNames;if(null!==i){let r=e.index+1;for(let s=0;s<i.length;s+=2){const o=i[s+1],a=-1===o?t(e,n):n[o];n[r++]=a}}}function Dm(n){const e=n.tView;return null===e||e.incompleteFirstPass?n.tView=ta(1,null,n.template,n.decls,n.vars,n.directiveDefs,n.pipeDefs,n.viewQuery,n.schemas,n.consts):e}function ta(n,e,t,i,r,s,o,a,l,c){const u=20+i,d=u+r,h=function bS(n,e){const t=[];for(let i=0;i<e;i++)t.push(i<n?null:B);return t}(u,d),f="function"==typeof c?c():c;return h[1]={type:n,blueprint:h,template:t,queries:null,viewQuery:a,declTNode:e,data:h.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:d,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof s?s():s,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:l,consts:f,incompleteFirstPass:!1}}function Mm(n,e,t,i){const r=Nm(e);null===t?r.push(i):(r.push(t),n.firstCreatePass&&Lm(n).push(i,r.length-1))}function Tm(n,e,t){for(let i in n)if(n.hasOwnProperty(i)){const r=n[i];(t=null===t?{}:t).hasOwnProperty(i)?t[i].push(e,r):t[i]=[e,r]}return t}function pu(n,e,t,i){let r=!1;if(Nf()){const s=function AS(n,e,t){const i=n.directiveRegistry;let r=null;if(i)for(let s=0;s<i.length;s++){const o=i[s];am(t,o.selectors,!1)&&(r||(r=[]),Bo(as(t,e),n,o.type),Kt(o)?(Om(n,t),r.unshift(o)):r.push(o))}return r}(n,e,t),o=null===i?null:{"":-1};if(null!==s){r=!0,Rm(t,n.data.length,s.length);for(let u=0;u<s.length;u++){const d=s[u];d.providersResolver&&d.providersResolver(d)}let a=!1,l=!1,c=ar(n,e,s.length,null);for(let u=0;u<s.length;u++){const d=s[u];t.mergedAttrs=Fo(t.mergedAttrs,d.hostAttrs),km(n,t,e,c,d),RS(c,d,o),null!==d.contentQueries&&(t.flags|=8),(null!==d.hostBindings||null!==d.hostAttrs||0!==d.hostVars)&&(t.flags|=128);const h=d.type.prototype;!a&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t.index),a=!0),!l&&(h.ngOnChanges||h.ngDoCheck)&&((n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t.index),l=!0),c++}!function ES(n,e){const i=e.directiveEnd,r=n.data,s=e.attrs,o=[];let a=null,l=null;for(let c=e.directiveStart;c<i;c++){const u=r[c],d=u.inputs,h=null===s||om(e)?null:FS(d,s);o.push(h),a=Tm(d,c,a),l=Tm(u.outputs,c,l)}null!==a&&(a.hasOwnProperty("class")&&(e.flags|=16),a.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=o,e.inputs=a,e.outputs=l}(n,t)}o&&function OS(n,e,t){if(e){const i=n.localNames=[];for(let r=0;r<e.length;r+=2){const s=t[e[r+1]];if(null==s)throw new S(-301,!1);i.push(e[r],s)}}}(t,i,o)}return t.mergedAttrs=Fo(t.mergedAttrs,t.attrs),r}function xm(n,e,t,i,r,s){const o=s.hostBindings;if(o){let a=n.hostBindingOpCodes;null===a&&(a=n.hostBindingOpCodes=[]);const l=~e.index;(function TS(n){let e=n.length;for(;e>0;){const t=n[--e];if("number"==typeof t&&t<0)return t}return 0})(a)!=l&&a.push(l),a.push(i,r,o)}}function Am(n,e){null!==n.hostBindings&&n.hostBindings(1,e)}function Om(n,e){e.flags|=2,(n.components||(n.components=[])).push(e.index)}function RS(n,e,t){if(t){if(e.exportAs)for(let i=0;i<e.exportAs.length;i++)t[e.exportAs[i]]=n;Kt(e)&&(t[""]=n)}}function Rm(n,e,t){n.flags|=1,n.directiveStart=e,n.directiveEnd=e+t,n.providerIndexes=e}function km(n,e,t,i,r){n.data[i]=r;const s=r.factory||(r.factory=fi(r.type)),o=new ss(s,Kt(r),null);n.blueprint[i]=o,t[i]=o,xm(n,e,0,i,ar(n,t,r.hostVars,B),r)}function kS(n,e,t){const i=mt(e,n),r=Dm(t),s=n[10],o=na(n,Ds(n,r,null,t.onPush?64:16,i,e,s,s.createRenderer(i,t),null,null));n[e.index]=o}function pn(n,e,t,i,r,s){const o=mt(n,e);!function mu(n,e,t,i,r,s,o){if(null==s)Ee(n)?n.removeAttribute(e,r,t):e.removeAttribute(r);else{const a=null==o?N(s):o(s,i||"",r);Ee(n)?n.setAttribute(e,r,a,t):t?e.setAttributeNS(t,r,a):e.setAttribute(r,a)}}(e[j],o,s,n.value,t,i,r)}function PS(n,e,t,i,r,s){const o=s[e];if(null!==o){const a=i.setInput;for(let l=0;l<o.length;){const c=o[l++],u=o[l++],d=o[l++];null!==a?i.setInput(t,d,c,u):t[u]=d}}}function FS(n,e){let t=null,i=0;for(;i<e.length;){const r=e[i];if(0!==r)if(5!==r){if("number"==typeof r)break;n.hasOwnProperty(r)&&(null===t&&(t=[]),t.push(r,n[r],e[i+1])),i+=2}else i+=2;else i+=4}return t}function Pm(n,e,t,i){return new Array(n,!0,!1,e,null,0,i,t,null,null)}function BS(n,e){const t=gt(e,n);if(lc(t)){const i=t[1];80&t[2]?lr(i,t,i.template,t[8]):t[5]>0&&gu(t)}}function gu(n){for(let i=Pc(n);null!==i;i=Fc(i))for(let r=10;r<i.length;r++){const s=i[r];if(1024&s[2]){const o=s[1];lr(o,s,o.template,s[8])}else s[5]>0&&gu(s)}const t=n[1].components;if(null!==t)for(let i=0;i<t.length;i++){const r=gt(t[i],n);lc(r)&&r[5]>0&&gu(r)}}function VS(n,e){const t=gt(e,n),i=t[1];(function HS(n,e){for(let t=e.length;t<n.blueprint.length;t++)e.push(n.blueprint[t])})(i,t),Cs(i,t,t[8])}function na(n,e){return n[13]?n[14][4]=e:n[13]=e,n[14]=e,e}function _u(n){for(;n;){n[2]|=64;const e=ys(n);if(vD(n)&&!e)return n;n=e}return null}function Fm(n){!function yu(n){for(let e=0;e<n.components.length;e++){const t=n.components[e],i=Oc(t),r=i[1];vS(r,i,r.template,t)}}(n[8])}function bu(n,e,t){pc(0),e(n,t)}const $S=(()=>Promise.resolve(null))();function Nm(n){return n[7]||(n[7]=[])}function Lm(n){return n.cleanup||(n.cleanup=[])}function Vm(n,e){const t=n[9],i=t?t.get(Gn,null):null;i&&i.handleError(e)}function Hm(n,e,t,i,r){for(let s=0;s<t.length;){const o=t[s++],a=t[s++],l=e[o],c=n.data[o];null!==c.setInput?c.setInput(l,r,i,a):l[a]=r}}function xn(n,e,t){const i=To(e,n);!function xp(n,e,t){Ee(n)?n.setValue(e,t):e.textContent=t}(n[j],i,t)}function ia(n,e,t){let i=t?n.styles:null,r=t?n.classes:null,s=0;if(null!==e)for(let o=0;o<e.length;o++){const a=e[o];"number"==typeof a?s=a:1==s?r=zl(r,a):2==s&&(i=zl(i,a+": "+e[++o]+";"))}t?n.styles=i:n.stylesWithoutHost=i,t?n.classes=r:n.classesWithoutHost=r}const wu=new I("INJECTOR",-1);class jm{get(e,t=hs){if(t===hs){const i=new Error(`NullInjectorError: No provider for ${te(e)}!`);throw i.name="NullInjectorError",i}return t}}const Eu=new I("Set Injector scope."),Ss={},WS={};let Du;function $m(){return void 0===Du&&(Du=new jm),Du}function Um(n,e=null,t=null,i){const r=zm(n,e,t,i);return r._resolveInjectorDefTypes(),r}function zm(n,e=null,t=null,i){return new GS(n,t,e||$m(),i)}class GS{constructor(e,t,i,r=null){this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const s=[];t&&un(t,a=>this.processProvider(a,e,t)),un([e],a=>this.processInjectorType(a,[],s)),this.records.set(wu,cr(void 0,this));const o=this.records.get(Eu);this.scope=null!=o?o.value:null,this.source=r||("object"==typeof e?null:te(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=hs,i=V.Default){this.assertNotDestroyed();const r=fp(this),s=Hn(void 0);try{if(!(i&V.SkipSelf)){let a=this.records.get(e);if(void 0===a){const l=function eM(n){return"function"==typeof n||"object"==typeof n&&n instanceof I}(e)&&ql(e);a=l&&this.injectableDefInScope(l)?cr(Cu(e),Ss):null,this.records.set(e,a)}if(null!=a)return this.hydrate(e,a)}return(i&V.Self?$m():this.parent).get(e,t=i&V.Optional&&t===hs?null:t)}catch(o){if("NullInjectorError"===o.name){if((o[Uo]=o[Uo]||[]).unshift(te(e)),r)throw o;return function CC(n,e,t,i){const r=n[Uo];throw e[hp]&&r.unshift(e[hp]),n.message=function SC(n,e,t,i=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.substr(2):n;let r=te(e);if(Array.isArray(e))r=e.map(te).join(" -> ");else if("object"==typeof e){let s=[];for(let o in e)if(e.hasOwnProperty(o)){let a=e[o];s.push(o+":"+("string"==typeof a?JSON.stringify(a):te(a)))}r=`{${s.join(", ")}}`}return`${t}${i?"("+i+")":""}[${r}]: ${n.replace(vC,"\n ")}`}("\n"+n.message,r,t,i),n.ngTokenPath=r,n[Uo]=null,n}(o,e,"R3InjectorError",this.source)}throw o}finally{Hn(s),fp(r)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((i,r)=>e.push(te(r))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new S(205,!1)}processInjectorType(e,t,i){if(!(e=$(e)))return!1;let r=vf(e);const s=null==r&&e.ngModule||void 0,o=void 0===s?e:s,a=-1!==i.indexOf(o);if(void 0!==s&&(r=vf(s)),null==r)return!1;if(null!=r.imports&&!a){let u;i.push(o);try{un(r.imports,d=>{this.processInjectorType(d,t,i)&&(void 0===u&&(u=[]),u.push(d))})}finally{}if(void 0!==u)for(let d=0;d<u.length;d++){const{ngModule:h,providers:f}=u[d];un(f,p=>this.processProvider(p,h,f||ae))}}this.injectorDefTypes.add(o);const l=fi(o)||(()=>new o);this.records.set(o,cr(l,Ss));const c=r.providers;if(null!=c&&!a){const u=e;un(c,d=>this.processProvider(d,u,c))}return void 0!==s&&void 0!==e.providers}processProvider(e,t,i){let r=ur(e=$(e))?e:$(e&&e.provide);const s=function YS(n,e,t){return Gm(n)?cr(void 0,n.useValue):cr(Wm(n),Ss)}(e);if(ur(e)||!0!==e.multi)this.records.get(r);else{let o=this.records.get(r);o||(o=cr(void 0,Ss,!0),o.factory=()=>Tc(o.multi),this.records.set(r,o)),r=e,o.multi.push(e)}this.records.set(r,s)}hydrate(e,t){return t.value===Ss&&(t.value=WS,t.value=t.factory()),"object"==typeof t.value&&t.value&&function JS(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(t.value)&&this.onDestroy.add(t.value),t.value}injectableDefInScope(e){if(!e.providedIn)return!1;const t=$(e.providedIn);return"string"==typeof t?"any"===t||t===this.scope:this.injectorDefTypes.has(t)}}function Cu(n){const e=ql(n),t=null!==e?e.factory:fi(n);if(null!==t)return t;if(n instanceof I)throw new S(204,!1);if(n instanceof Function)return function qS(n){const e=n.length;if(e>0)throw ds(e,"?"),new S(204,!1);const t=function oD(n){const e=n&&(n[bo]||n[bf]);if(e){const t=function aD(n){if(n.hasOwnProperty("name"))return n.name;const e=(""+n).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${t}" 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 "${t}" class.`),e}return null}(n);return null!==t?()=>t.factory(n):()=>new n}(n);throw new S(204,!1)}function Wm(n,e,t){let i;if(ur(n)){const r=$(n);return fi(r)||Cu(r)}if(Gm(n))i=()=>$(n.useValue);else if(function XS(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...Tc(n.deps||[]));else if(function KS(n){return!(!n||!n.useExisting)}(n))i=()=>v($(n.useExisting));else{const r=$(n&&(n.useClass||n.provide));if(!function QS(n){return!!n.deps}(n))return fi(r)||Cu(r);i=()=>new r(...Tc(n.deps))}return i}function cr(n,e,t=!1){return{factory:n,value:e,multi:t?[]:void 0}}function Gm(n){return null!==n&&"object"==typeof n&&wC in n}function ur(n){return"function"==typeof n}let tt=(()=>{class n{static create(t,i){var r;if(Array.isArray(t))return Um({name:""},i,t,"");{const s=null!==(r=t.name)&&void 0!==r?r:"";return Um({name:s},t.parent,t.providers,s)}}}return n.THROW_IF_NOT_FOUND=hs,n.NULL=new jm,n.\u0275prov=x({token:n,providedIn:"any",factory:()=>v(wu)}),n.__NG_ELEMENT_ID__=-1,n})();function lM(n,e){Oo(Oc(n)[1],ke())}function An(n){let e=function rg(n){return Object.getPrototypeOf(n.prototype).constructor}(n.type),t=!0;const i=[n];for(;e;){let r;if(Kt(n))r=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new S(903,"");r=e.\u0275dir}if(r){if(t){i.push(r);const o=n;o.inputs=Tu(n.inputs),o.declaredInputs=Tu(n.declaredInputs),o.outputs=Tu(n.outputs);const a=r.hostBindings;a&&hM(n,a);const l=r.viewQuery,c=r.contentQueries;if(l&&uM(n,l),c&&dM(n,c),Ul(n.inputs,r.inputs),Ul(n.declaredInputs,r.declaredInputs),Ul(n.outputs,r.outputs),Kt(r)&&r.data.animation){const u=n.data;u.animation=(u.animation||[]).concat(r.data.animation)}}const s=r.features;if(s)for(let o=0;o<s.length;o++){const a=s[o];a&&a.ngInherit&&a(n),a===An&&(t=!1)}}e=Object.getPrototypeOf(e)}!function cM(n){let e=0,t=null;for(let i=n.length-1;i>=0;i--){const r=n[i];r.hostVars=e+=r.hostVars,r.hostAttrs=Fo(r.hostAttrs,t=Fo(t,r.hostAttrs))}}(i)}function Tu(n){return n===ji?{}:n===ae?[]:n}function uM(n,e){const t=n.viewQuery;n.viewQuery=t?(i,r)=>{e(i,r),t(i,r)}:e}function dM(n,e){const t=n.contentQueries;n.contentQueries=t?(i,r,s)=>{e(i,r,s),t(i,r,s)}:e}function hM(n,e){const t=n.hostBindings;n.hostBindings=t?(i,r)=>{e(i,r),t(i,r)}:e}let ra=null;function dr(){if(!ra){const n=re.Symbol;if(n&&n.iterator)ra=n.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;t<e.length;++t){const i=e[t];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(ra=i)}}}return ra}function Ms(n){return!!Iu(n)&&(Array.isArray(n)||!(n instanceof Map)&&dr()in n)}function Iu(n){return null!==n&&("function"==typeof n||"object"==typeof n)}function Ke(n,e,t){return!Object.is(n[e],t)&&(n[e]=t,!0)}function We(n,e,t,i){const r=b();return Ke(r,Yi(),e)&&(K(),pn(_e(),r,n,e,t,i)),We}function J(n,e,t,i,r,s,o,a){const l=b(),c=K(),u=n+20,d=c.firstCreatePass?function vM(n,e,t,i,r,s,o,a,l){const c=e.consts,u=or(e,n,4,o||null,Un(c,a));pu(e,t,u,Un(c,l)),Oo(e,u);const d=u.tViews=ta(2,u,i,r,s,e.directiveRegistry,e.pipeRegistry,null,e.schemas,c);return null!==e.queries&&(e.queries.template(e,u),d.queries=e.queries.embeddedTView(u)),u}(u,c,l,e,t,i,r,s,o):c.data[u];cn(d,!1);const h=l[j].createComment("");qo(c,l,h,d),Ye(h,l),na(l,l[u]=Pm(h,l,h,d)),Mo(d)&&hu(c,l,d),null!=o&&fu(l,d,a)}function Fe(n){return qi(function VD(){return L.lFrame.contextLView}(),20+n)}function w(n,e=V.Default){const t=b();return null===t?v(n,e):tp(ke(),t,$(n),e)}function A(n,e,t){const i=b();return Ke(i,Yi(),e)&&function bt(n,e,t,i,r,s,o,a){const l=mt(e,t);let u,c=e.inputs;!a&&null!=c&&(u=c[i])?(Hm(n,t,u,i,r),So(e)&&function CS(n,e){const t=gt(e,n);16&t[2]||(t[2]|=64)}(t,e.index)):3&e.type&&(i=function DS(n){return"class"===n?"className":"for"===n?"htmlFor":"formaction"===n?"formAction":"innerHtml"===n?"innerHTML":"readonly"===n?"readOnly":"tabindex"===n?"tabIndex":n}(i),r=null!=o?o(r,e.value||"",i):r,Ee(s)?s.setProperty(l,i,r):_c(i)||(l.setProperty?l.setProperty(i,r):l[i]=r))}(K(),_e(),i,n,e,i[j],t,!1),A}function ku(n,e,t,i,r){const o=r?"class":"style";Hm(n,t,e.inputs[o],o,i)}function ee(n,e,t,i){const r=b(),s=K(),o=20+n,a=r[j],l=r[o]=Lc(a,e,function KD(){return L.lFrame.currentNamespace}()),c=s.firstCreatePass?function HM(n,e,t,i,r,s,o){const a=e.consts,c=or(e,n,2,r,Un(a,s));return pu(e,t,c,Un(a,o)),null!==c.attrs&&ia(c,c.attrs,!1),null!==c.mergedAttrs&&ia(c,c.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,c),c}(o,s,r,0,e,t,i):s.data[o];cn(c,!0);const u=c.mergedAttrs;null!==u&&Po(a,l,u);const d=c.classes;null!==d&&zc(a,l,d);const h=c.styles;return null!==h&&$p(a,l,h),64!=(64&c.flags)&&qo(s,r,l,c),0===function PD(){return L.lFrame.elementDepthCount}()&&Ye(l,r),function FD(){L.lFrame.elementDepthCount++}(),Mo(c)&&(hu(s,r,c),Em(s,c,r)),null!==i&&fu(r,c),ee}function se(){let n=ke();uc()?dc():(n=n.parent,cn(n,!1));const e=n;!function ND(){L.lFrame.elementDepthCount--}();const t=K();return t.firstCreatePass&&(Oo(t,n),ec(n)&&t.queries.elementEnd(n)),null!=e.classesWithoutHost&&function eC(n){return 0!=(16&n.flags)}(e)&&ku(t,e,b(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function tC(n){return 0!=(32&n.flags)}(e)&&ku(t,e,b(),e.stylesWithoutHost,!1),se}function On(n,e,t,i){return ee(n,e,t,i),se(),On}function nt(n,e,t){const i=b(),r=K(),s=n+20,o=r.firstCreatePass?function jM(n,e,t,i,r){const s=e.consts,o=Un(s,i),a=or(e,n,8,"ng-container",o);return null!==o&&ia(a,o,!0),pu(e,t,a,Un(s,r)),null!==e.queries&&e.queries.elementStart(e,a),a}(s,r,i,e,t):r.data[s];cn(o,!0);const a=i[s]=i[j].createComment("");return qo(r,i,a,o),Ye(a,i),Mo(o)&&(hu(r,i,o),Em(r,o,i)),null!=t&&fu(i,o),nt}function it(){let n=ke();const e=K();return uc()?dc():(n=n.parent,cn(n,!1)),e.firstCreatePass&&(Oo(e,n),ec(n)&&e.queries.elementEnd(n)),it}function gn(n,e,t){return nt(n,e,t),it(),gn}function Nt(){return b()}function Pu(n){return!!n&&"function"==typeof n.then}function Sg(n){return!!n&&"function"==typeof n.subscribe}const $M=Sg;function je(n,e,t,i){const r=b(),s=K(),o=ke();return function Tg(n,e,t,i,r,s,o,a){const l=Mo(i),u=n.firstCreatePass&&Lm(n),d=e[8],h=Nm(e);let f=!0;if(3&i.type||a){const _=mt(i,e),y=a?a(_):_,g=h.length,E=a?T=>a(Te(T[i.index])):i.index;if(Ee(t)){let T=null;if(!a&&l&&(T=function UM(n,e,t,i){const r=n.cleanup;if(null!=r)for(let s=0;s<r.length-1;s+=2){const o=r[s];if(o===t&&r[s+1]===i){const a=e[7],l=r[s+2];return a.length>l?a[l]:null}"string"==typeof o&&(s+=2)}return null}(n,e,r,i.index)),null!==T)(T.__ngLastListenerFn__||T).__ngNextListenerFn__=s,T.__ngLastListenerFn__=s,f=!1;else{s=Fu(i,e,d,s,!1);const H=t.listen(y,r,s);h.push(s,H),u&&u.push(r,E,g,g+1)}}else s=Fu(i,e,d,s,!0),y.addEventListener(r,s,o),h.push(s),u&&u.push(r,E,g,o)}else s=Fu(i,e,d,s,!1);const p=i.outputs;let m;if(f&&null!==p&&(m=p[r])){const _=m.length;if(_)for(let y=0;y<_;y+=2){const me=e[m[y]][m[y+1]].subscribe(s),ve=h.length;h.push(s,me),u&&u.push(r,i.index,ve,-(ve+1))}}}(s,r,r[j],o,n,e,!!t,i),je}function Ig(n,e,t,i){try{return!1!==t(i)}catch(r){return Vm(n,r),!1}}function Fu(n,e,t,i,r){return function s(o){if(o===Function)return i;const a=2&n.flags?gt(n.index,e):e;0==(32&e[2])&&_u(a);let l=Ig(e,0,i,o),c=s.__ngNextListenerFn__;for(;c;)l=Ig(e,0,c,o)&&l,c=c.__ngNextListenerFn__;return r&&!1===l&&(o.preventDefault(),o.returnValue=!1),l}}function Y(n=1){return function zD(n){return(L.lFrame.contextLView=function WD(n,e){for(;n>0;)e=e[15],n--;return e}(n,L.lFrame.contextLView))[8]}(n)}function zM(n,e){let t=null;const i=function J0(n){const e=n.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(n);for(let r=0;r<e.length;r++){const s=e[r];if("*"!==s){if(null===i?am(n,s,!0):nS(i,s))return r}else t=r}return t}function Er(n){const e=b()[16][6];if(!e.projection){const i=e.projection=ds(n?n.length:1,null),r=i.slice();let s=e.child;for(;null!==s;){const o=n?zM(s,n):0;null!==o&&(r[o]?r[o].projectionNext=s:i[o]=s,r[o]=s),s=s.next}}}function vi(n,e=0,t){const i=b(),r=K(),s=or(r,20+n,16,null,t||null);null===s.projection&&(s.projection=e),dc(),64!=(64&s.flags)&&function n0(n,e,t){jp(e[j],0,e,t,Rp(n,t,e),Np(t.parent||e[6],t,e))}(r,i,s)}function Bg(n,e,t,i,r){const s=n[t+1],o=null===e;let a=i?Zt(s):In(s),l=!1;for(;0!==a&&(!1===l||o);){const u=n[a+1];qM(n[a],e)&&(l=!0,n[a+1]=i?nu(u):eu(u)),a=i?Zt(u):In(u)}l&&(n[t+1]=i?eu(s):nu(s))}function qM(n,e){return null===n||null==e||(Array.isArray(n)?n[1]:n)===e||!(!Array.isArray(n)||"string"!=typeof e)&&nr(n,e)>=0}const Ne={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Vg(n){return n.substring(Ne.key,Ne.keyEnd)}function YM(n){return n.substring(Ne.value,Ne.valueEnd)}function jg(n,e){const t=Ne.textEnd;let i=Ne.key=Dr(n,e,t);return t===i?-1:(i=Ne.keyEnd=function QM(n,e,t){let i;for(;e<t&&(45===(i=n.charCodeAt(e))||95===i||(-33&i)>=65&&(-33&i)<=90||i>=48&&i<=57);)e++;return e}(n,i,t),i=Ug(n,i,t),i=Ne.value=Dr(n,i,t),i=Ne.valueEnd=function JM(n,e,t){let i=-1,r=-1,s=-1,o=e,a=o;for(;o<t;){const l=n.charCodeAt(o++);if(59===l)return a;34===l||39===l?a=o=zg(n,l,o,t):e===o-4&&85===s&&82===r&&76===i&&40===l?a=o=zg(n,41,o,t):l>32&&(a=o),s=r,r=i,i=-33&l}return a}(n,i,t),Ug(n,i,t))}function Dr(n,e,t){for(;e<t&&n.charCodeAt(e)<=32;)e++;return e}function Ug(n,e,t,i){return(e=Dr(n,e,t))<t&&e++,e}function zg(n,e,t,i){let r=-1,s=t;for(;s<i;){const o=n.charCodeAt(s++);if(o==e&&92!==r)return s;r=92==o&&92===r?0:o}throw new Error}function Is(n,e,t){return en(n,e,t,!1),Is}function _n(n,e){return en(n,e,null,!0),_n}function Jt(n){!function tn(n,e,t,i){const r=K(),s=Tn(2);r.firstUpdatePass&&Gg(r,null,s,i);const o=b();if(t!==B&&Ke(o,s,t)){const a=r.data[Je()];if(Xg(a,i)&&!Wg(r,s)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(t=zl(l,t||"")),ku(r,a,o,t,i)}else!function aT(n,e,t,i,r,s,o,a){r===B&&(r=ae);let l=0,c=0,u=0<r.length?r[0]:null,d=0<s.length?s[0]:null;for(;null!==u||null!==d;){const h=l<r.length?r[l+1]:void 0,f=c<s.length?s[c+1]:void 0;let m,p=null;u===d?(l+=2,c+=2,h!==f&&(p=d,m=f)):null===d||null!==u&&u<d?(l+=2,p=u):(c+=2,p=d,m=f),null!==p&&Yg(n,e,t,i,p,m,o,a),u=l<r.length?r[l]:null,d=c<s.length?s[c]:null}}(r,a,o,o[j],o[s+1],o[s+1]=function oT(n,e,t){if(null==t||""===t)return ae;const i=[],r=vt(t);if(Array.isArray(r))for(let s=0;s<r.length;s++)n(i,r[s],!0);else if("object"==typeof r)for(const s in r)r.hasOwnProperty(s)&&n(i,s,r[s]);else"string"==typeof r&&e(i,r);return i}(n,e,t),i,s)}}(qg,eT,n,!1)}function eT(n,e){for(let t=function XM(n){return function $g(n){Ne.key=0,Ne.keyEnd=0,Ne.value=0,Ne.valueEnd=0,Ne.textEnd=n.length}(n),jg(n,Dr(n,0,Ne.textEnd))}(e);t>=0;t=jg(e,t))qg(n,Vg(e),YM(e))}function en(n,e,t,i){const r=b(),s=K(),o=Tn(2);s.firstUpdatePass&&Gg(s,n,o,i),e!==B&&Ke(r,o,e)&&Yg(s,s.data[Je()],r,r[j],n,r[o+1]=function lT(n,e){return null==n||("string"==typeof e?n+=e:"object"==typeof n&&(n=te(vt(n)))),n}(e,t),i,o)}function Wg(n,e){return e>=n.expandoStartIndex}function Gg(n,e,t,i){const r=n.data;if(null===r[t+1]){const s=r[Je()],o=Wg(n,t);Xg(s,i)&&null===e&&!o&&(e=!1),e=function nT(n,e,t,i){const r=function fc(n){const e=L.lFrame.currentDirectiveIndex;return-1===e?null:n[e]}(n);let s=i?e.residualClasses:e.residualStyles;if(null===r)0===(i?e.classBindings:e.styleBindings)&&(t=xs(t=Lu(null,n,e,t,i),e.attrs,i),s=null);else{const o=e.directiveStylingLast;if(-1===o||n[o]!==r)if(t=Lu(r,n,e,t,i),null===s){let l=function iT(n,e,t){const i=t?e.classBindings:e.styleBindings;if(0!==In(i))return n[Zt(i)]}(n,e,i);void 0!==l&&Array.isArray(l)&&(l=Lu(null,n,e,l[1],i),l=xs(l,e.attrs,i),function rT(n,e,t,i){n[Zt(t?e.classBindings:e.styleBindings)]=i}(n,e,i,l))}else s=function sT(n,e,t){let i;const r=e.directiveEnd;for(let s=1+e.directiveStylingLast;s<r;s++)i=xs(i,n[s].hostAttrs,t);return xs(i,e.attrs,t)}(n,e,i)}return void 0!==s&&(i?e.residualClasses=s:e.residualStyles=s),t}(r,s,e,i),function WM(n,e,t,i,r,s){let o=s?e.classBindings:e.styleBindings,a=Zt(o),l=In(o);n[i]=t;let u,c=!1;if(Array.isArray(t)){const d=t;u=d[1],(null===u||nr(d,u)>0)&&(c=!0)}else u=t;if(r)if(0!==l){const h=Zt(n[a+1]);n[i+1]=Qo(h,a),0!==h&&(n[h+1]=tu(n[h+1],i)),n[a+1]=function oS(n,e){return 131071&n|e<<17}(n[a+1],i)}else n[i+1]=Qo(a,0),0!==a&&(n[a+1]=tu(n[a+1],i)),a=i;else n[i+1]=Qo(l,0),0===a?a=i:n[l+1]=tu(n[l+1],i),l=i;c&&(n[i+1]=eu(n[i+1])),Bg(n,u,i,!0),Bg(n,u,i,!1),function GM(n,e,t,i,r){const s=r?n.residualClasses:n.residualStyles;null!=s&&"string"==typeof e&&nr(s,e)>=0&&(t[i+1]=nu(t[i+1]))}(e,u,n,i,s),o=Qo(a,l),s?e.classBindings=o:e.styleBindings=o}(r,s,e,t,o,i)}}function Lu(n,e,t,i,r){let s=null;const o=t.directiveEnd;let a=t.directiveStylingLast;for(-1===a?a=t.directiveStart:a++;a<o&&(s=e[a],i=xs(i,s.hostAttrs,r),s!==n);)a++;return null!==n&&(t.directiveStylingLast=a),i}function xs(n,e,t){const i=t?1:2;let r=-1;if(null!==e)for(let s=0;s<e.length;s++){const o=e[s];"number"==typeof o?r=o:r===i&&(Array.isArray(n)||(n=void 0===n?[]:["",n]),_t(n,o,!!t||e[++s]))}return void 0===n?null:n}function qg(n,e,t){_t(n,e,vt(t))}function Yg(n,e,t,i,r,s,o,a){if(!(3&e.type))return;const l=n.data,c=l[a+1];aa(function hm(n){return 1==(1&n)}(c)?Kg(l,e,t,r,In(c),o):void 0)||(aa(s)||function dm(n){return 2==(2&n)}(c)&&(s=Kg(l,null,t,r,a,o)),function s0(n,e,t,i,r){const s=Ee(n);if(e)r?s?n.addClass(t,i):t.classList.add(i):s?n.removeClass(t,i):t.classList.remove(i);else{let o=-1===i.indexOf("-")?void 0:yt.DashCase;if(null==r)s?n.removeStyle(t,i,o):t.style.removeProperty(i);else{const a="string"==typeof r&&r.endsWith("!important");a&&(r=r.slice(0,-10),o|=yt.Important),s?n.setStyle(t,i,r,o):t.style.setProperty(i,r,a?"important":"")}}}(i,o,To(Je(),t),r,s))}function Kg(n,e,t,i,r,s){const o=null===e;let a;for(;r>0;){const l=n[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=t[r+1];h===B&&(h=d?ae:void 0);let f=d?Cc(h,i):u===i?h:void 0;if(c&&!aa(f)&&(f=Cc(l,i)),aa(f)&&(a=f,o))return a;const p=n[r+1];r=o?Zt(p):In(p)}if(null!==e){let l=s?e.residualClasses:e.residualStyles;null!=l&&(a=Cc(l,i))}return a}function aa(n){return void 0!==n}function Xg(n,e){return 0!=(n.flags&(e?16:32))}function Kn(n,e=""){const t=b(),i=K(),r=n+20,s=i.firstCreatePass?or(i,r,1,e,null):i.data[r],o=t[r]=function Nc(n,e){return Ee(n)?n.createText(e):n.createTextNode(e)}(t[j],e);qo(i,t,o,s),cn(s,!1)}function Rn(n){return Bu("",n,""),Rn}function Bu(n,e,t){const i=b(),r=function fr(n,e,t,i){return Ke(n,Yi(),t)?e+N(t)+i:B}(i,n,e,t);return r!==B&&xn(i,Je(),r),Bu}const la="en-US";let y_=la;function ju(n,e,t,i,r){if(n=$(n),Array.isArray(n))for(let s=0;s<n.length;s++)ju(n[s],e,t,i,r);else{const s=K(),o=b();let a=ur(n)?n:$(n.provide),l=Wm(n);const c=ke(),u=1048575&c.providerIndexes,d=c.directiveStart,h=c.providerIndexes>>20;if(ur(n)||!n.multi){const f=new ss(l,r,w),p=Uu(a,e,r?u:u+h,d);-1===p?(Bo(as(c,o),s,a),$u(s,n,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),t.push(f),o.push(f)):(t[p]=f,o[p]=f)}else{const f=Uu(a,e,u+h,d),p=Uu(a,e,u,u+h),m=f>=0&&t[f],_=p>=0&&t[p];if(r&&!_||!r&&!m){Bo(as(c,o),s,a);const y=function TI(n,e,t,i,r){const s=new ss(n,t,w);return s.multi=[],s.index=e,s.componentProviders=0,$_(s,r,i&&!t),s}(r?MI:SI,t.length,r,i,l);!r&&_&&(t[p].providerFactory=y),$u(s,n,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),t.push(y),o.push(y)}else $u(s,n,f>-1?f:p,$_(t[r?p:f],l,!r&&i));!r&&i&&_&&t[p].componentProviders++}}}function $u(n,e,t,i){const r=ur(e),s=function ZS(n){return!!n.useClass}(e);if(r||s){const l=(s?$(e.useClass):e).prototype.ngOnDestroy;if(l){const c=n.destroyHooks||(n.destroyHooks=[]);if(!r&&e.multi){const u=c.indexOf(t);-1===u?c.push(t,[i,l]):c[u+1].push(i,l)}else c.push(t,l)}}}function $_(n,e,t){return t&&n.componentProviders++,n.multi.push(e)-1}function Uu(n,e,t,i){for(let r=t;r<i;r++)if(e[r]===n)return r;return-1}function SI(n,e,t,i){return zu(this.multi,[])}function MI(n,e,t,i){const r=this.multi;let s;if(this.providerFactory){const o=this.providerFactory.componentProviders,a=ls(t,t[1],this.providerFactory.index,i);s=a.slice(0,o),zu(r,s);for(let l=o;l<a.length;l++)s.push(a[l])}else s=[],zu(r,s);return s}function zu(n,e){for(let t=0;t<n.length;t++)e.push((0,n[t])());return e}function U_(n,e=[]){return t=>{t.providersResolver=(i,r)=>function CI(n,e,t){const i=K();if(i.firstCreatePass){const r=Kt(n);ju(t,i.data,i.blueprint,r,!0),ju(e,i.data,i.blueprint,r,!1)}}(i,r?r(n):n,e)}}class z_{}class AI{resolveComponentFactory(e){throw function xI(n){const e=Error(`No component factory found for ${te(n)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=n,e}(e)}}let Xn=(()=>{class n{}return n.NULL=new AI,n})();function OI(){return Mr(ke(),b())}function Mr(n,e){return new Ie(mt(n,e))}let Ie=(()=>{class n{constructor(t){this.nativeElement=t}}return n.__NG_ELEMENT_ID__=OI,n})();function RI(n){return n instanceof Ie?n.nativeElement:n}class Ps{}let fa=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function PI(){const n=b(),t=gt(ke().index,n);return function kI(n){return n[j]}(ln(t)?t:n)}(),n})(),FI=(()=>{class n{}return n.\u0275prov=x({token:n,providedIn:"root",factory:()=>null}),n})();class Tr{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const NI=new Tr("13.4.0"),Wu={};function pa(n,e,t,i,r=!1){for(;null!==t;){const s=e[t.index];if(null!==s&&i.push(Te(s)),Yt(s))for(let a=10;a<s.length;a++){const l=s[a],c=l[1].firstChild;null!==c&&pa(l[1],l,c,i)}const o=t.type;if(8&o)pa(n,e,t.child,i);else if(32&o){const a=kc(t,e);let l;for(;l=a();)i.push(l)}else if(16&o){const a=Hp(e,t);if(Array.isArray(a))i.push(...a);else{const l=ys(e[16]);pa(l[1],l,a,i,!0)}}t=r?t.projectionNext:t.next}return i}class Fs{constructor(e,t){this._lView=e,this._cdRefInjectingView=t,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const e=this._lView,t=e[1];return pa(t,e,t.firstChild,[])}get context(){return this._lView[8]}set context(e){this._lView[8]=e}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const e=this._lView[3];if(Yt(e)){const t=e[8],i=t?t.indexOf(this):-1;i>-1&&(Bc(e,i),jo(t,i))}this._attachedToViewContainer=!1}Op(this._lView[1],this._lView)}onDestroy(e){Mm(this._lView[1],this._lView,null,e)}markForCheck(){_u(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function vu(n,e,t){const i=e[10];i.begin&&i.begin();try{lr(n,e,n.template,t)}catch(r){throw Vm(e,r),r}finally{i.end&&i.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new S(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function YC(n,e){vs(n,e,e[j],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new S(902,"");this._appRef=e}}class LI extends Fs{constructor(e){super(e),this._view=e}detectChanges(){Fm(this._view)}checkNoChanges(){}get context(){return null}}class G_ extends Xn{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const t=ze(e);return new Gu(t,this.ngModule)}}function q_(n){const e=[];for(let t in n)n.hasOwnProperty(t)&&e.push({propName:n[t],templateName:t});return e}class Gu extends z_{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=function rS(n){return n.map(iS).join(",")}(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return q_(this.componentDef.inputs)}get outputs(){return q_(this.componentDef.outputs)}create(e,t,i,r){const s=(r=r||this.ngModule)?function VI(n,e){return{get:(t,i,r)=>{const s=n.get(t,Wu,r);return s!==Wu||i===Wu?s:e.get(t,i,r)}}}(e,r.injector):e,o=s.get(Ps,Rf),a=s.get(FI,null),l=o.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",u=i?function Sm(n,e,t){if(Ee(n))return n.selectRootElement(e,t===Wt.ShadowDom);let i="string"==typeof e?n.querySelector(e):e;return i.textContent="",i}(l,i,this.componentDef.encapsulation):Lc(o.createRenderer(null,this.componentDef),c,function BI(n){const e=n.toLowerCase();return"svg"===e?"svg":"math"===e?"math":null}(c)),d=this.componentDef.onPush?576:528,h=function ig(n,e){return{components:[],scheduler:n||W0,clean:$S,playerHandler:e||null,flags:0}}(),f=ta(0,null,null,1,0,null,null,null,null,null),p=Ds(null,f,h,d,null,null,o,l,a,s);let m,_;xo(p);try{const y=function tg(n,e,t,i,r,s){const o=t[1];t[20]=n;const l=or(o,20,2,"#host",null),c=l.mergedAttrs=e.hostAttrs;null!==c&&(ia(l,c,!0),null!==n&&(Po(r,n,c),null!==l.classes&&zc(r,n,l.classes),null!==l.styles&&$p(r,n,l.styles)));const u=i.createRenderer(n,e),d=Ds(t,Dm(e),null,e.onPush?64:16,t[20],l,i,u,s||null,null);return o.firstCreatePass&&(Bo(as(l,t),o,e.type),Om(o,l),Rm(l,t.length,1)),na(t,d),t[20]=d}(u,this.componentDef,p,o,l);if(u)if(i)Po(l,u,["ng-version",NI.full]);else{const{attrs:g,classes:E}=function sS(n){const e=[],t=[];let i=1,r=2;for(;i<n.length;){let s=n[i];if("string"==typeof s)2===r?""!==s&&e.push(s,n[++i]):8===r&&t.push(s);else{if(!Xt(r))break;r=s}i++}return{attrs:e,classes:t}}(this.componentDef.selectors[0]);g&&Po(l,u,g),E&&E.length>0&&zc(l,u,E.join(" "))}if(_=ac(f,20),void 0!==t){const g=_.projection=[];for(let E=0;E<this.ngContentSelectors.length;E++){const T=t[E];g.push(null!=T?Array.from(T):null)}}m=function ng(n,e,t,i,r){const s=t[1],o=function MS(n,e,t){const i=ke();n.firstCreatePass&&(t.providersResolver&&t.providersResolver(t),km(n,i,e,ar(n,e,1,null),t));const r=ls(e,n,i.directiveStart,i);Ye(r,e);const s=mt(i,e);return s&&Ye(s,e),r}(s,t,e);if(i.components.push(o),n[8]=o,r&&r.forEach(l=>l(o,e)),e.contentQueries){const l=ke();e.contentQueries(1,o,l.directiveStart)}const a=ke();return!s.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(zn(a.index),xm(t[1],a,0,a.directiveStart,a.directiveEnd,e),Am(e,o)),o}(y,this.componentDef,p,h,[lM]),Cs(f,p,null)}finally{Ao()}return new jI(this.componentType,m,Mr(_,p),p,_)}}class jI extends class II{}{constructor(e,t,i,r,s){super(),this.location=i,this._rootLView=r,this._tNode=s,this.instance=t,this.hostView=this.changeDetectorRef=new LI(r),this.componentType=e}get injector(){return new Zi(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}}class Ir{}const xr=new Map;class X_ extends Ir{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new G_(this);const i=Ot(e);this._bootstrapComponents=fn(i.bootstrap),this._r3Injector=zm(e,t,[{provide:Ir,useValue:this},{provide:Xn,useValue:this.componentFactoryResolver}],te(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,t=tt.THROW_IF_NOT_FOUND,i=V.Default){return e===tt||e===Ir||e===wu?this:this._r3Injector.get(e,t,i)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class qu extends class UI{}{constructor(e){super(),this.moduleType=e,null!==Ot(e)&&function zI(n){const e=new Set;!function t(i){const r=Ot(i,!0),s=r.id;null!==s&&(function Y_(n,e,t){if(e&&e!==t)throw new Error(`Duplicate module registered for ${n} - ${te(e)} vs ${te(e.name)}`)}(s,xr.get(s),i),xr.set(s,i));const o=fn(r.imports);for(const a of o)e.has(a)||(e.add(a),t(a))}(n)}(e)}create(e){return new X_(this.moduleType,e)}}function Z_(n,e,t,i,r,s){const o=e+t;return Ke(n,o,r)?function mn(n,e,t){return n[e]=t}(n,o+1,s?i.call(s,r):i(r)):function Ns(n,e){const t=n[e];return t===B?void 0:t}(n,o+1)}function iy(n,e,t){const i=n+20,r=b(),s=qi(r,i);return function Ls(n,e){return n[1].data[e].pure}(r,i)?Z_(r,function Qe(){const n=L.lFrame;let e=n.bindingRootIndex;return-1===e&&(e=n.bindingRootIndex=n.tView.bindingStartIndex),e}(),e,s.transform,t,s):s.transform(t)}function Yu(n){return e=>{setTimeout(n,void 0,e)}}const xe=class ox extends de{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,i){var r,s,o;let a=e,l=t||(()=>null),c=i;if(e&&"object"==typeof e){const d=e;a=null===(r=d.next)||void 0===r?void 0:r.bind(d),l=null===(s=d.error)||void 0===s?void 0:s.bind(d),c=null===(o=d.complete)||void 0===o?void 0:o.bind(d)}this.__isAsync&&(l=Yu(l),a&&(a=Yu(a)),c&&(c=Yu(c)));const u=super.subscribe({next:a,error:l,complete:c});return e instanceof Z&&e.add(u),u}};function ax(){return this._results[dr()]()}class Ar{constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const t=dr(),i=Ar.prototype;i[t]||(i[t]=ax)}get changes(){return this._changes||(this._changes=new xe)}get(e){return this._results[e]}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,t){const i=this;i.dirty=!1;const r=Pt(e);(this._changesDetected=!function uC(n,e,t){if(n.length!==e.length)return!1;for(let i=0;i<n.length;i++){let r=n[i],s=e[i];if(t&&(r=t(r),s=t(s)),s!==r)return!1}return!0}(i._results,r,t))&&(i._results=r,i.length=r.length,i.last=r[this.length-1],i.first=r[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;let vn=(()=>{class n{}return n.__NG_ELEMENT_ID__=ux,n})();const lx=vn,cx=class extends lx{constructor(e,t,i){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=i}createEmbeddedView(e){const t=this._declarationTContainer.tViews,i=Ds(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(i[19]=s.createEmbeddedView(t)),Cs(t,i,e),new Fs(i)}};function ux(){return ma(ke(),b())}function ma(n,e){return 4&n.type?new cx(e,n,Mr(n,e)):null}let lt=(()=>{class n{}return n.__NG_ELEMENT_ID__=dx,n})();function dx(){return oy(ke(),b())}const hx=lt,ry=class extends hx{constructor(e,t,i){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=i}get element(){return Mr(this._hostTNode,this._hostLView)}get injector(){return new Zi(this._hostTNode,this._hostLView)}get parentInjector(){const e=Lo(this._hostTNode,this._hostLView);if(Xf(e)){const t=Xi(e,this._hostLView),i=Ki(e);return new Zi(t[1].data[i+8],t)}return new Zi(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const t=sy(this._lContainer);return null!==t&&t[e]||null}get length(){return this._lContainer.length-10}createEmbeddedView(e,t,i){const r=e.createEmbeddedView(t||{});return this.insert(r,i),r}createComponent(e,t,i,r,s){const o=e&&!function us(n){return"function"==typeof n}(e);let a;if(o)a=t;else{const d=t||{};a=d.index,i=d.injector,r=d.projectableNodes,s=d.ngModuleRef}const l=o?e:new Gu(ze(e)),c=i||this.parentInjector;if(!s&&null==l.ngModule){const h=(o?c:this.parentInjector).get(Ir,null);h&&(s=h)}const u=l.create(c,r,void 0,s);return this.insert(u.hostView,a),u}insert(e,t){const i=e._lView,r=i[1];if(function kD(n){return Yt(n[3])}(i)){const u=this.indexOf(e);if(-1!==u)this.detach(u);else{const d=i[3],h=new ry(d,d[6],d[3]);h.detach(h.indexOf(e))}}const s=this._adjustIndex(t),o=this._lContainer;!function XC(n,e,t,i){const r=10+i,s=t.length;i>0&&(t[r-1][4]=e),i<s-10?(e[4]=t[r],ap(t,10+i,e)):(t.push(e),e[4]=null),e[3]=t;const o=e[17];null!==o&&t!==o&&function ZC(n,e){const t=n[9];e[16]!==e[3][3][16]&&(n[2]=!0),null===t?n[9]=[e]:t.push(e)}(o,e);const a=e[19];null!==a&&a.insertView(n),e[2]|=128}(r,i,o,s);const a=jc(s,o),l=i[j],c=Go(l,o[7]);return null!==c&&function qC(n,e,t,i,r,s){i[0]=r,i[6]=e,vs(n,i,t,1,r,s)}(r,o[6],l,i,c,a),e.attachToViewContainerRef(),ap(Ku(o),s,e),e}move(e,t){return this.insert(e,t)}indexOf(e){const t=sy(this._lContainer);return null!==t?t.indexOf(e):-1}remove(e){const t=this._adjustIndex(e,-1),i=Bc(this._lContainer,t);i&&(jo(Ku(this._lContainer),t),Op(i[1],i))}detach(e){const t=this._adjustIndex(e,-1),i=Bc(this._lContainer,t);return i&&null!=jo(Ku(this._lContainer),t)?new Fs(i):null}_adjustIndex(e,t=0){return null==e?this.length+t:e}};function sy(n){return n[8]}function Ku(n){return n[8]||(n[8]=[])}function oy(n,e){let t;const i=e[n.index];if(Yt(i))t=i;else{let r;if(8&n.type)r=Te(i);else{const s=e[j];r=s.createComment("");const o=mt(n,e);mi(s,Go(s,o),r,function t0(n,e){return Ee(n)?n.nextSibling(e):e.nextSibling}(s,o),!1)}e[n.index]=t=Pm(i,e,r,n),na(e,t)}return new ry(t,n,e)}class Xu{constructor(e){this.queryList=e,this.matches=null}clone(){return new Xu(this.queryList)}setDirty(){this.queryList.setDirty()}}class Zu{constructor(e=[]){this.queries=e}createEmbeddedView(e){const t=e.queries;if(null!==t){const i=null!==e.contentQueries?e.contentQueries[0]:t.length,r=[];for(let s=0;s<i;s++){const o=t.getByIndex(s);r.push(this.queries[o.indexInDeclarationView].clone())}return new Zu(r)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let t=0;t<this.queries.length;t++)null!==dy(e,t).matches&&this.queries[t].setDirty()}}class ay{constructor(e,t,i=null){this.predicate=e,this.flags=t,this.read=i}}class Qu{constructor(e=[]){this.queries=e}elementStart(e,t){for(let i=0;i<this.queries.length;i++)this.queries[i].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 i=0;i<this.length;i++){const r=null!==t?t.length:0,s=this.getByIndex(i).embeddedTView(e,r);s&&(s.indexInDeclarationView=i,null!==t?t.push(s):t=[s])}return null!==t?new Qu(t):null}template(e,t){for(let i=0;i<this.queries.length;i++)this.queries[i].template(e,t)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}}class Ju{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 Ju(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const t=this._declarationNodeIndex;let i=e.parent;for(;null!==i&&8&i.type&&i.index!==t;)i=i.parent;return t===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(e,t){const i=this.metadata.predicate;if(Array.isArray(i))for(let r=0;r<i.length;r++){const s=i[r];this.matchTNodeWithReadOption(e,t,mx(t,s)),this.matchTNodeWithReadOption(e,t,Vo(t,e,s,!1,!1))}else i===vn?4&t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,Vo(t,e,i,!1,!1))}matchTNodeWithReadOption(e,t,i){if(null!==i){const r=this.metadata.read;if(null!==r)if(r===Ie||r===lt||r===vn&&4&t.type)this.addMatch(t.index,-2);else{const s=Vo(t,e,r,!1,!1);null!==s&&this.addMatch(t.index,s)}else this.addMatch(t.index,i)}}addMatch(e,t){null===this.matches?this.matches=[e,t]:this.matches.push(e,t)}}function mx(n,e){const t=n.localNames;if(null!==t)for(let i=0;i<t.length;i+=2)if(t[i]===e)return t[i+1];return null}function _x(n,e,t,i){return-1===t?function gx(n,e){return 11&n.type?Mr(n,e):4&n.type?ma(n,e):null}(e,n):-2===t?function yx(n,e,t){return t===Ie?Mr(e,n):t===vn?ma(e,n):t===lt?oy(e,n):void 0}(n,e,i):ls(n,n[1],t,e)}function ly(n,e,t,i){const r=e[19].queries[i];if(null===r.matches){const s=n.data,o=t.matches,a=[];for(let l=0;l<o.length;l+=2){const c=o[l];a.push(c<0?null:_x(e,s[c],o[l+1],t.metadata.read))}r.matches=a}return r.matches}function ed(n,e,t,i){const r=n.queries.getByIndex(t),s=r.matches;if(null!==s){const o=ly(n,e,r,t);for(let a=0;a<s.length;a+=2){const l=s[a];if(l>0)i.push(o[a/2]);else{const c=s[a+1],u=e[-l];for(let d=10;d<u.length;d++){const h=u[d];h[17]===h[3]&&ed(h[1],h,c,i)}if(null!==u[9]){const d=u[9];for(let h=0;h<d.length;h++){const f=d[h];ed(f[1],f,c,i)}}}}}return i}function Zn(n){const e=b(),t=K(),i=Hf();pc(i+1);const r=dy(t,i);if(n.dirty&&kf(e)===(2==(2&r.metadata.flags))){if(null===r.matches)n.reset([]);else{const s=r.crossesNgTemplate?ed(t,e,i,[]):ly(t,e,r,i);n.reset(s,RI),n.notifyOnChanges()}return!0}return!1}function Bs(n,e,t){const i=K();i.firstCreatePass&&(uy(i,new ay(n,e,t),-1),2==(2&e)&&(i.staticViewQueries=!0)),cy(i,b(),e)}function ga(n,e,t,i){const r=K();if(r.firstCreatePass){const s=ke();uy(r,new ay(e,t,i),s.index),function bx(n,e){const t=n.contentQueries||(n.contentQueries=[]);e!==(t.length?t[t.length-1]:-1)&&t.push(n.queries.length-1,e)}(r,n),2==(2&t)&&(r.staticContentQueries=!0)}cy(r,b(),t)}function Qn(){return function vx(n,e){return n[19].queries[e].queryList}(b(),Hf())}function cy(n,e,t){const i=new Ar(4==(4&t));Mm(n,e,i,i.destroy),null===e[19]&&(e[19]=new Zu),e[19].queries.push(new Xu(i))}function uy(n,e,t){null===n.queries&&(n.queries=new Qu),n.queries.track(new Ju(e,t))}function dy(n,e){return n.queries.getByIndex(e)}function hy(n,e){return ma(n,e)}function va(...n){}const ba=new I("Application Initializer");let od=(()=>{class n{constructor(t){this.appInits=t,this.resolve=va,this.reject=va,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const t=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r<this.appInits.length;r++){const s=this.appInits[r]();if(Pu(s))t.push(s);else if($M(s)){const o=new Promise((a,l)=>{s.subscribe({complete:a,error:l})});t.push(o)}}Promise.all(t).then(()=>{i()}).catch(r=>{this.reject(r)}),0===t.length&&i(),this.initialized=!0}}return n.\u0275fac=function(t){return new(t||n)(v(ba,8))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Hs=new I("AppId",{providedIn:"root",factory:function xy(){return`${ad()}${ad()}${ad()}`}});function ad(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Ay=new I("Platform Initializer"),wa=new I("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Lx=new I("appBootstrapListener"),kn=new I("LocaleId",{providedIn:"root",factory:()=>zo(kn,V.Optional|V.SkipSelf)||function Bx(){return"undefined"!=typeof $localize&&$localize.locale||la}()}),$x=(()=>Promise.resolve(0))();function ld(n){"undefined"==typeof Zone?$x.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class ie{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new xe(!1),this.onMicrotaskEmpty=new xe(!1),this.onStable=new xe(!1),this.onError=new xe(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&t,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function Ux(){let n=re.requestAnimationFrame,e=re.cancelAnimationFrame;if("undefined"!=typeof Zone&&n&&e){const t=n[Zone.__symbol__("OriginalDelegate")];t&&(n=t);const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function Gx(n){const e=()=>{!function Wx(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(re,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,ud(n),n.isCheckStableRunning=!0,cd(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),ud(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,i,r,s,o,a)=>{try{return Oy(n),t.invokeTask(r,s,o,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||n.shouldCoalesceRunChangeDetection)&&e(),Ry(n)}},onInvoke:(t,i,r,s,o,a,l)=>{try{return Oy(n),t.invoke(r,s,o,a,l)}finally{n.shouldCoalesceRunChangeDetection&&e(),Ry(n)}},onHasTask:(t,i,r,s)=>{t.hasTask(r,s),i===r&&("microTask"==s.change?(n._hasPendingMicrotasks=s.microTask,ud(n),cd(n)):"macroTask"==s.change&&(n.hasPendingMacrotasks=s.macroTask))},onHandleError:(t,i,r,s)=>(t.handleError(r,s),n.runOutsideAngular(()=>n.onError.emit(s)),!1)})}(r)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ie.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(ie.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,i){return this._inner.run(e,t,i)}runTask(e,t,i,r){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+r,e,zx,va,va);try{return s.runTask(o,t,i)}finally{s.cancelTask(o)}}runGuarded(e,t,i){return this._inner.runGuarded(e,t,i)}runOutsideAngular(e){return this._outer.run(e)}}const zx={};function cd(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function ud(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function Oy(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function Ry(n){n._nesting--,cd(n)}class qx{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new xe,this.onMicrotaskEmpty=new xe,this.onStable=new xe,this.onError=new xe}run(e,t,i){return e.apply(t,i)}runGuarded(e,t,i){return e.apply(t,i)}runOutsideAngular(e){return e()}runTask(e,t,i,r){return e.apply(t,i)}}let dd=(()=>{class n{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.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:()=>{ie.assertNotInAngularZone(),ld(()=>{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())ld(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(t)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,i,r){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==s),t(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:t,timeoutId:s,updateCb:r})}whenStable(t,i,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,i,r){return[]}}return n.\u0275fac=function(t){return new(t||n)(v(ie))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),Yx=(()=>{class n{constructor(){this._applications=new Map,hd.addToWindow(this)}registerApplication(t,i){this._applications.set(t,i)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,i=!0){return hd.findTestabilityInTree(this,t,i)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();class Kx{addToWindow(e){}findTestabilityInTree(e,t,i){return null}}let hd=new Kx,wi=null;const ky=new I("AllowMultipleToken"),Py=new I("PlatformOnDestroy");function Fy(n,e,t=[]){const i=`Platform: ${e}`,r=new I(i);return(s=[])=>{let o=fd();if(!o||o.injector.get(ky,!1)){const a=[...t,...s,{provide:r,useValue:!0}];n?n(a):function Jx(n){if(wi&&!wi.get(ky,!1))throw new S(400,"");wi=n;const e=n.get(Ny),t=n.get(Ay,null);t&&t.forEach(i=>i())}(function tA(n=[],e){return tt.create({name:e,providers:[{provide:Eu,useValue:"platform"},{provide:Py,useValue:()=>wi=null},...n]})}(a,i))}return function eA(n){const e=fd();if(!e)throw new S(401,"");return e}()}}function fd(){var n;return null!==(n=null==wi?void 0:wi.get(Ny))&&void 0!==n?n:null}let Ny=(()=>{class n{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,i){const a=function nA(n,e){let t;return t="noop"===n?new qx:("zone.js"===n?void 0:n)||new ie({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),t}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),l=[{provide:ie,useValue:a}];return a.run(()=>{const c=tt.create({providers:l,parent:this.injector,name:t.moduleType.name}),u=t.create(c),d=u.injector.get(Gn,null);if(!d)throw new S(402,"");return a.runOutsideAngular(()=>{const h=a.onError.subscribe({next:f=>{d.handleError(f)}});u.onDestroy(()=>{pd(this._modules,u),h.unsubscribe()})}),function iA(n,e,t){try{const i=t();return Pu(i)?i.catch(r=>{throw e.runOutsideAngular(()=>n.handleError(r)),r}):i}catch(i){throw e.runOutsideAngular(()=>n.handleError(i)),i}}(d,a,()=>{const h=u.injector.get(od);return h.runInitializers(),h.donePromise.then(()=>(function kT(n){ft(n,"Expected localeId to be defined"),"string"==typeof n&&(y_=n.toLowerCase().replace(/_/g,"-"))}(u.injector.get(kn,la)||la),this._moduleDoBootstrap(u),u))})})}bootstrapModule(t,i=[]){const r=Ly({},i);return function Zx(n,e,t){const i=new qu(t);return Promise.resolve(i)}(0,0,t).then(s=>this.bootstrapModuleFactory(s,r))}_moduleDoBootstrap(t){const i=t.injector.get(Ea);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!t.instance.ngDoBootstrap)throw new S(403,"");t.instance.ngDoBootstrap(i)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new S(404,"");this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const t=this._injector.get(Py,null);null==t||t(),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(t){return new(t||n)(v(tt))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function Ly(n,e){return Array.isArray(e)?e.reduce(Ly,n):Object.assign(Object.assign({},n),e)}let Ea=(()=>{class n{constructor(t,i,r,s){this._zone=t,this._injector=i,this._exceptionHandler=r,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new le(l=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{l.next(this._stable),l.complete()})}),a=new le(l=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{ie.assertNotInAngularZone(),ld(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,l.next(!0))})})});const u=this._zone.onUnstable.subscribe(()=>{ie.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{l.next(!1)}))});return()=>{c.unsubscribe(),u.unsubscribe()}});this.isStable=Hi(o,a.pipe(gf()))}bootstrap(t,i){if(!this._initStatus.done)throw new S(405,"");let r;r=t instanceof z_?t:this._injector.get(Xn).resolveComponentFactory(t),this.componentTypes.push(r.componentType);const s=function Qx(n){return n.isBoundToModule}(r)?void 0:this._injector.get(Ir),a=r.create(tt.NULL,[],i||r.selector,s),l=a.location.nativeElement,c=a.injector.get(dd,null),u=c&&a.injector.get(Yx);return c&&u&&u.registerApplication(l,c),a.onDestroy(()=>{this.detachView(a.hostView),pd(this.components,a),u&&u.unregisterApplication(l)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new S(101,"");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const i=t;this._views.push(i),i.attachToAppRef(this)}detachView(t){const i=t;pd(this._views,i),i.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Lx,[]).concat(this._bootstrapListeners).forEach(r=>r(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return n.\u0275fac=function(t){return new(t||n)(v(ie),v(tt),v(Gn),v(od))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function pd(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}let Vy=!0,Ei=(()=>{class n{}return n.__NG_ELEMENT_ID__=oA,n})();function oA(n){return function aA(n,e,t){if(So(n)&&!t){const i=gt(n.index,e);return new Fs(i,i)}return 47&n.type?new Fs(e[16],e):null}(ke(),b(),16==(16&n))}class zy{constructor(){}supports(e){return Ms(e)}create(e){return new fA(e)}}const hA=(n,e)=>e;class fA{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||hA}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,i=this._removalsHead,r=0,s=null;for(;t||i;){const o=!i||t&&t.currentIndex<Gy(i,r,s)?t:i,a=Gy(o,r,s),l=o.currentIndex;if(o===i)r--,i=i._nextRemoved;else if(t=t._next,null==o.previousIndex)r++;else{s||(s=[]);const c=a-r,u=l-r;if(c!=u){for(let h=0;h<c;h++){const f=h<s.length?s[h]:s[h]=0,p=f+h;u<=p&&p<c&&(s[h]=f+1)}s[o.previousIndex]=u-c}}a!==l&&e(o,a,l)}}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=[]),!Ms(e))throw new S(900,"");return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let r,s,o,t=this._itHead,i=!1;if(Array.isArray(e)){this.length=e.length;for(let a=0;a<this.length;a++)s=e[a],o=this._trackByFn(a,s),null!==t&&Object.is(t.trackById,o)?(i&&(t=this._verifyReinsertion(t,s,o,a)),Object.is(t.item,s)||this._addIdentityChange(t,s)):(t=this._mismatch(t,s,o,a),i=!0),t=t._next}else r=0,function yM(n,e){if(Array.isArray(n))for(let t=0;t<n.length;t++)e(n[t]);else{const t=n[dr()]();let i;for(;!(i=t.next()).done;)e(i.value)}}(e,a=>{o=this._trackByFn(r,a),null!==t&&Object.is(t.trackById,o)?(i&&(t=this._verifyReinsertion(t,a,o,r)),Object.is(t.item,a)||this._addIdentityChange(t,a)):(t=this._mismatch(t,a,o,r),i=!0),t=t._next,r++}),this.length=r;return this._truncate(t),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;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,i,r){let s;return null===e?s=this._itTail:(s=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,s,r)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,s,r)):e=this._addAfter(new pA(t,i),s,r),e}_verifyReinsertion(e,t,i,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?e=this._reinsertAfter(s,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),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,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const r=e._prevRemoved,s=e._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(e,t,i),this._addToMoves(e,i),e}_moveAfter(e,t,i){return this._unlink(e),this._insertAfter(e,t,i),this._addToMoves(e,i),e}_addAfter(e,t,i){return this._insertAfter(e,t,i),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,i){const r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new Wy),this._linkedRecords.put(e),e.currentIndex=i,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,i=e._next;return null===t?this._itHead=i:t._next=i,null===i?this._itTail=t:i._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 Wy),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 pA{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 mA{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 i;for(i=this._head;null!==i;i=i._nextDup)if((null===t||t<=i.currentIndex)&&Object.is(i.trackById,e))return i;return null}remove(e){const t=e._prevDup,i=e._nextDup;return null===t?this._head=i:t._nextDup=i,null===i?this._tail=t:i._prevDup=t,null===this._head}}class Wy{constructor(){this.map=new Map}put(e){const t=e.trackById;let i=this.map.get(t);i||(i=new mA,this.map.set(t,i)),i.add(e)}get(e,t){const r=this.map.get(e);return r?r.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 Gy(n,e,t){const i=n.previousIndex;if(null===i)return i;let r=0;return t&&i<t.length&&(r=t[i]),i+e+r}class qy{constructor(){}supports(e){return e instanceof Map||Iu(e)}create(){return new gA}}class gA{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||Iu(e)))throw new S(900,"")}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,(i,r)=>{if(t&&t.key===r)this._maybeAddToChanges(t,i),this._appendAfter=t,t=t._next;else{const s=this._getOrCreateRecordForKey(r,i);t=this._insertBeforeOrAppend(t,s)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let i=t;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const i=e._prev;return t._next=e,t._prev=i,e._prev=t,i&&(i._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 r=this._records.get(e);this._maybeAddToChanges(r,t);const s=r._prev,o=r._next;return s&&(s._next=o),o&&(o._prev=s),r._next=null,r._prev=null,r}const i=new _A(e);return this._records.set(e,i),i.currentValue=t,this._addToAdditions(i),i}_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(i=>t(e[i],i))}}class _A{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}}function Yy(){return new Sa([new zy])}let Sa=(()=>{class n{constructor(t){this.factories=t}static create(t,i){if(null!=i){const r=i.factories.slice();t=t.concat(r)}return new n(t)}static extend(t){return{provide:n,useFactory:i=>n.create(t,i||Yy()),deps:[[n,new ms,new pi]]}}find(t){const i=this.factories.find(r=>r.supports(t));if(null!=i)return i;throw new S(901,"")}}return n.\u0275prov=x({token:n,providedIn:"root",factory:Yy}),n})();function Ky(){return new js([new qy])}let js=(()=>{class n{constructor(t){this.factories=t}static create(t,i){if(i){const r=i.factories.slice();t=t.concat(r)}return new n(t)}static extend(t){return{provide:n,useFactory:i=>n.create(t,i||Ky()),deps:[[n,new ms,new pi]]}}find(t){const i=this.factories.find(s=>s.supports(t));if(i)return i;throw new S(901,"")}}return n.\u0275prov=x({token:n,providedIn:"root",factory:Ky}),n})();const bA=Fy(null,"core",[]);let wA=(()=>{class n{constructor(t){}}return n.\u0275fac=function(t){return new(t||n)(v(Ea))},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({}),n})(),Ma=null;function Jn(){return Ma}const G=new I("DocumentToken");let $s=(()=>{class n{historyGo(t){throw new Error("Not implemented")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=x({token:n,factory:function(){return function SA(){return v(Xy)}()},providedIn:"platform"}),n})(),Xy=(()=>{class n extends $s{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Jn().getBaseHref(this._doc)}onPopState(t){const i=Jn().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",t,!1),()=>i.removeEventListener("popstate",t)}onHashChange(t){const i=Jn().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",t,!1),()=>i.removeEventListener("hashchange",t)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,i,r){Zy()?this._history.pushState(t,i,r):this.location.hash=r}replaceState(t,i,r){Zy()?this._history.replaceState(t,i,r):this.location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return n.\u0275fac=function(t){return new(t||n)(v(G))},n.\u0275prov=x({token:n,factory:function(){return function MA(){return new Xy(v(G))}()},providedIn:"platform"}),n})();function Zy(){return!!window.history.pushState}function Qy(n,e){if(0==n.length)return e;if(0==e.length)return n;let t=0;return n.endsWith("/")&&t++,e.startsWith("/")&&t++,2==t?n+e.substring(1):1==t?n+e:n+"/"+e}function Jy(n){const e=n.match(/#|\?|$/),t=e&&e.index||n.length;return n.slice(0,t-("/"===n[t-1]?1:0))+n.slice(t)}function Ci(n){return n&&"?"!==n[0]?"?"+n:n}let vd=(()=>{class n{historyGo(t){throw new Error("Not implemented")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=x({token:n,factory:function(){return function TA(n){const e=v(G).location;return new xA(v($s),e&&e.origin||"")}()},providedIn:"root"}),n})();const IA=new I("appBaseHref");let xA=(()=>{class n extends vd{constructor(t,i){if(super(),this._platformLocation=t,this._removeListenerFns=[],null==i&&(i=this._platformLocation.getBaseHrefFromDOM()),null==i)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=i}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return Qy(this._baseHref,t)}path(t=!1){const i=this._platformLocation.pathname+Ci(this._platformLocation.search),r=this._platformLocation.hash;return r&&t?`${i}${r}`:i}pushState(t,i,r,s){const o=this.prepareExternalUrl(r+Ci(s));this._platformLocation.pushState(t,i,o)}replaceState(t,i,r,s){const o=this.prepareExternalUrl(r+Ci(s));this._platformLocation.replaceState(t,i,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var i,r;null===(r=(i=this._platformLocation).historyGo)||void 0===r||r.call(i,t)}}return n.\u0275fac=function(t){return new(t||n)(v($s),v(IA,8))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),ev=(()=>{class n{constructor(t,i){this._subject=new xe,this._urlChangeListeners=[],this._platformStrategy=t;const r=this._platformStrategy.getBaseHref();this._platformLocation=i,this._baseHref=Jy(tv(r)),this._platformStrategy.onPopState(s=>{this._subject.emit({url:this.path(!0),pop:!0,state:s.state,type:s.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,i=""){return this.path()==this.normalize(t+Ci(i))}normalize(t){return n.stripTrailingSlash(function OA(n,e){return n&&e.startsWith(n)?e.substring(n.length):e}(this._baseHref,tv(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,i="",r=null){this._platformStrategy.pushState(r,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Ci(i)),r)}replaceState(t,i="",r=null){this._platformStrategy.replaceState(r,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Ci(i)),r)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(t=0){var i,r;null===(r=(i=this._platformStrategy).historyGo)||void 0===r||r.call(i,t)}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}))}_notifyUrlChangeListeners(t="",i){this._urlChangeListeners.forEach(r=>r(t,i))}subscribe(t,i,r){return this._subject.subscribe({next:t,error:i,complete:r})}}return n.normalizeQueryParams=Ci,n.joinWithSlash=Qy,n.stripTrailingSlash=Jy,n.\u0275fac=function(t){return new(t||n)(v(vd),v($s))},n.\u0275prov=x({token:n,factory:function(){return function AA(){return new ev(v(vd),v($s))}()},providedIn:"root"}),n})();function tv(n){return n.replace(/\/index.html$/,"")}let Na=(()=>{class n{constructor(t,i,r,s){this._iterableDiffers=t,this._keyValueDiffers=i,this._ngEl=r,this._renderer=s,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(Ms(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(i=>this._toggleClass(i.key,i.currentValue)),t.forEachChangedItem(i=>this._toggleClass(i.key,i.currentValue)),t.forEachRemovedItem(i=>{i.previousValue&&this._toggleClass(i.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(i=>{if("string"!=typeof i.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${te(i.item)}`);this._toggleClass(i.item,!0)}),t.forEachRemovedItem(i=>this._toggleClass(i.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(i=>this._toggleClass(i,!0)):Object.keys(t).forEach(i=>this._toggleClass(i,!!t[i])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(i=>this._toggleClass(i,!1)):Object.keys(t).forEach(i=>this._toggleClass(i,!1)))}_toggleClass(t,i){(t=t.trim())&&t.split(/\s+/g).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return n.\u0275fac=function(t){return new(t||n)(w(Sa),w(js),w(Ie),w(fa))},n.\u0275dir=Ce({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),n})();class gO{constructor(e,t,i,r){this.$implicit=e,this.ngForOf=t,this.index=i,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let uv=(()=>{class n{constructor(t,i,r){this._viewContainer=t,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const i=this._viewContainer;t.forEachOperation((r,s,o)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new gO(r.item,this._ngForOf,-1,-1),null===o?void 0:o);else if(null==o)i.remove(null===s?void 0:s);else if(null!==s){const a=i.get(s);i.move(a,o),dv(a,r)}});for(let r=0,s=i.length;r<s;r++){const a=i.get(r).context;a.index=r,a.count=s,a.ngForOf=this._ngForOf}t.forEachIdentityChange(r=>{dv(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(t,i){return!0}}return n.\u0275fac=function(t){return new(t||n)(w(lt),w(vn),w(Sa))},n.\u0275dir=Ce({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),n})();function dv(n,e){n.context.$implicit=e.item}let Ws=(()=>{class n{constructor(t,i){this._viewContainer=t,this._context=new _O,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){hv("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){hv("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,i){return!0}}return n.\u0275fac=function(t){return new(t||n)(w(lt),w(vn))},n.\u0275dir=Ce({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),n})();class _O{constructor(){this.$implicit=null,this.ngIf=null}}function hv(n,e){if(e&&!e.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${te(e)}'.`)}const fv="browser";class Od{constructor(e,t){this._viewContainerRef=e,this._templateRef=t,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}}let Va=(()=>{class n{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const i=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let i=0;i<this._defaultViews.length;i++)this._defaultViews[i].enforceState(t)}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=Ce({type:n,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),n})(),yv=(()=>{class n{constructor(t,i,r){this.ngSwitch=r,r._addCase(),this._view=new Od(t,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return n.\u0275fac=function(t){return new(t||n)(w(lt),w(vn),w(Va,9))},n.\u0275dir=Ce({type:n,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),n})(),vv=(()=>{class n{constructor(t,i,r){r._addDefault(new Od(t,i))}}return n.\u0275fac=function(t){return new(t||n)(w(lt),w(vn),w(Va,9))},n.\u0275dir=Ce({type:n,selectors:[["","ngSwitchDefault",""]]}),n})(),Ha=(()=>{class n{constructor(t,i,r){this._ngEl=t,this._differs=i,this._renderer=r,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,i){const[r,s]=t.split(".");null!=(i=null!=i&&s?`${i}${s}`:i)?this._renderer.setStyle(this._ngEl.nativeElement,r,i):this._renderer.removeStyle(this._ngEl.nativeElement,r)}_applyChanges(t){t.forEachRemovedItem(i=>this._setStyle(i.key,null)),t.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),t.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}}return n.\u0275fac=function(t){return new(t||n)(w(Ie),w(js),w(fa))},n.\u0275dir=Ce({type:n,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),n})(),wv=(()=>{class n{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(t.ngTemplateOutlet){const i=this._viewContainerRef;this._viewRef&&i.remove(i.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?i.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&t.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return n.\u0275fac=function(t){return new(t||n)(w(lt))},n.\u0275dir=Ce({type:n,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[Gi]}),n})();class KO{createSubscription(e,t){return e.subscribe({next:t,error:i=>{throw i}})}dispose(e){e.unsubscribe()}onDestroy(e){e.unsubscribe()}}class XO{createSubscription(e,t){return e.then(t,i=>{throw i})}dispose(e){}onDestroy(e){}}const ZO=new XO,QO=new KO;let Ev=(()=>{class n{constructor(t){this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,i=>this._updateLatestValue(t,i))}_selectStrategy(t){if(Pu(t))return ZO;if(Sg(t))return QO;throw function rn(n,e){return new S(2100,"")}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,i){t===this._obj&&(this._latestValue=i,this._ref.markForCheck())}}return n.\u0275fac=function(t){return new(t||n)(w(Ei,16))},n.\u0275pipe=at({name:"async",type:n,pure:!1}),n})(),ja=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({}),n})();class Pd extends class yR extends class CA{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function DA(n){Ma||(Ma=n)}(new Pd)}onAndCancel(e,t,i){return e.addEventListener(t,i,!1),()=>{e.removeEventListener(t,i,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}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}getBaseHref(e){const t=function vR(){return qs=qs||document.querySelector("base"),qs?qs.getAttribute("href"):null}();return null==t?null:function bR(n){$a=$a||document.createElement("a"),$a.setAttribute("href",n);const e=$a.pathname;return"/"===e.charAt(0)?e:`/${e}`}(t)}resetBaseElement(){qs=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return function pO(n,e){e=encodeURIComponent(e);for(const t of n.split(";")){const i=t.indexOf("="),[r,s]=-1==i?[t,""]:[t.slice(0,i),t.slice(i+1)];if(r.trim()===e)return decodeURIComponent(s)}return null}(document.cookie,e)}}let $a,qs=null;const Sv=new I("TRANSITION_ID"),ER=[{provide:ba,useFactory:function wR(n,e,t){return()=>{t.get(od).donePromise.then(()=>{const i=Jn(),r=e.querySelectorAll(`style[ng-transition="${n}"]`);for(let s=0;s<r.length;s++)i.remove(r[s])})}},deps:[Sv,G,tt],multi:!0}];class Fd{static init(){!function Xx(n){hd=n}(new Fd)}addToWindow(e){re.getAngularTestability=(i,r=!0)=>{const s=e.findTestabilityInTree(i,r);if(null==s)throw new Error("Could not find testability for element.");return s},re.getAllAngularTestabilities=()=>e.getAllTestabilities(),re.getAllAngularRootElements=()=>e.getAllRootElements(),re.frameworkStabilizers||(re.frameworkStabilizers=[]),re.frameworkStabilizers.push(i=>{const r=re.getAllAngularTestabilities();let s=r.length,o=!1;const a=function(l){o=o||l,s--,0==s&&i(o)};r.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(e,t,i){if(null==t)return null;const r=e.getTestability(t);return null!=r?r:i?Jn().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}let DR=(()=>{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();const Ua=new I("EventManagerPlugins");let za=(()=>{class n{constructor(t,i){this._zone=i,this._eventNameToPlugin=new Map,t.forEach(r=>r.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,i,r){return this._findPluginFor(i).addEventListener(t,i,r)}addGlobalEventListener(t,i,r){return this._findPluginFor(i).addGlobalEventListener(t,i,r)}getZone(){return this._zone}_findPluginFor(t){const i=this._eventNameToPlugin.get(t);if(i)return i;const r=this._plugins;for(let s=0;s<r.length;s++){const o=r[s];if(o.supports(t))return this._eventNameToPlugin.set(t,o),o}throw new Error(`No event manager plugin found for event ${t}`)}}return n.\u0275fac=function(t){return new(t||n)(v(Ua),v(ie))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();class Mv{constructor(e){this._doc=e}addGlobalEventListener(e,t,i){const r=Jn().getGlobalEventTarget(this._doc,e);if(!r)throw new Error(`Unsupported event target ${r} for event ${t}`);return this.addEventListener(r,t,i)}}let Tv=(()=>{class n{constructor(){this._stylesSet=new Set}addStyles(t){const i=new Set;t.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),i.add(r))}),this.onStylesAdded(i)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),Ys=(()=>{class n extends Tv{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,i,r){t.forEach(s=>{const o=this._doc.createElement("style");o.textContent=s,r.push(i.appendChild(o))})}addHost(t){const i=[];this._addStylesToHost(this._stylesSet,t,i),this._hostNodes.set(t,i)}removeHost(t){const i=this._hostNodes.get(t);i&&i.forEach(Iv),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(t,r,i)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(Iv))}}return n.\u0275fac=function(t){return new(t||n)(v(G))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();function Iv(n){Jn().remove(n)}const Nd={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/",math:"http://www.w3.org/1998/MathML/"},Ld=/%COMP%/g;function Wa(n,e,t){for(let i=0;i<e.length;i++){let r=e[i];Array.isArray(r)?Wa(n,r,t):(r=r.replace(Ld,n),t.push(r))}return t}function Ov(n){return e=>{if("__ngUnwrap__"===e)return n;!1===n(e)&&(e.preventDefault(),e.returnValue=!1)}}let Ga=(()=>{class n{constructor(t,i,r){this.eventManager=t,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new Bd(t)}createRenderer(t,i){if(!t||!i)return this.defaultRenderer;switch(i.encapsulation){case Wt.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new xR(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(t),r}case 1:case Wt.ShadowDom:return new AR(this.eventManager,this.sharedStylesHost,t,i);default:if(!this.rendererByCompId.has(i.id)){const r=Wa(i.id,i.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(t){return new(t||n)(v(za),v(Ys),v(Hs))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();class Bd{constructor(e){this.eventManager=e,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(e,t){return t?document.createElementNS(Nd[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,i){e&&e.insertBefore(t,i)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let i="string"==typeof e?document.querySelector(e):e;if(!i)throw new Error(`The selector "${e}" did not match any elements`);return t||(i.textContent=""),i}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,i,r){if(r){t=r+":"+t;const s=Nd[r];s?e.setAttributeNS(s,t,i):e.setAttribute(t,i)}else e.setAttribute(t,i)}removeAttribute(e,t,i){if(i){const r=Nd[i];r?e.removeAttributeNS(r,t):e.removeAttribute(`${i}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,i,r){r&(yt.DashCase|yt.Important)?e.style.setProperty(t,i,r&yt.Important?"important":""):e.style[t]=i}removeStyle(e,t,i){i&yt.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,i){e[t]=i}setValue(e,t){e.nodeValue=t}listen(e,t,i){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,Ov(i)):this.eventManager.addEventListener(e,t,Ov(i))}}class xR extends Bd{constructor(e,t,i,r){super(e),this.component=i;const s=Wa(r+"-"+i.id,i.styles,[]);t.addStyles(s),this.contentAttr=function MR(n){return"_ngcontent-%COMP%".replace(Ld,n)}(r+"-"+i.id),this.hostAttr=function TR(n){return"_nghost-%COMP%".replace(Ld,n)}(r+"-"+i.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const i=super.createElement(e,t);return super.setAttribute(i,this.contentAttr,""),i}}class AR extends Bd{constructor(e,t,i,r){super(e),this.sharedStylesHost=t,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=Wa(r.id,r.styles,[]);for(let o=0;o<s.length;o++){const a=document.createElement("style");a.textContent=s[o],this.shadowRoot.appendChild(a)}}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,i){return super.insertBefore(this.nodeOrShadowRoot(e),t,i)}removeChild(e,t){return super.removeChild(this.nodeOrShadowRoot(e),t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}}let OR=(()=>{class n extends Mv{constructor(t){super(t)}supports(t){return!0}addEventListener(t,i,r){return t.addEventListener(i,r,!1),()=>this.removeEventListener(t,i,r)}removeEventListener(t,i,r){return t.removeEventListener(i,r)}}return n.\u0275fac=function(t){return new(t||n)(v(G))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();const kv=["alt","control","meta","shift"],kR={"\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"},Pv={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"},PR={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let FR=(()=>{class n extends Mv{constructor(t){super(t)}supports(t){return null!=n.parseEventName(t)}addEventListener(t,i,r){const s=n.parseEventName(i),o=n.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Jn().onAndCancel(t,s.domEventName,o))}static parseEventName(t){const i=t.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const s=n._normalizeKey(i.pop());let o="";if(kv.forEach(l=>{const c=i.indexOf(l);c>-1&&(i.splice(c,1),o+=l+".")}),o+=s,0!=i.length||0===s.length)return null;const a={};return a.domEventName=r,a.fullKey=o,a}static getEventFullKey(t){let i="",r=function NR(n){let e=n.key;if(null==e){if(e=n.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===n.location&&Pv.hasOwnProperty(e)&&(e=Pv[e]))}return kR[e]||e}(t);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),kv.forEach(s=>{s!=r&&PR[s](t)&&(i+=s+".")}),i+=r,i}static eventCallback(t,i,r){return s=>{n.getEventFullKey(s)===t&&r.runGuarded(()=>i(s))}}static _normalizeKey(t){return"esc"===t?"escape":t}}return n.\u0275fac=function(t){return new(t||n)(v(G))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();const HR=Fy(bA,"browser",[{provide:wa,useValue:fv},{provide:Ay,useValue:function LR(){Pd.makeCurrent(),Fd.init()},multi:!0},{provide:G,useFactory:function VR(){return function xD(n){sc=n}(document),document},deps:[]}]),jR=[{provide:Eu,useValue:"root"},{provide:Gn,useFactory:function BR(){return new Gn},deps:[]},{provide:Ua,useClass:OR,multi:!0,deps:[G,ie,wa]},{provide:Ua,useClass:FR,multi:!0,deps:[G]},{provide:Ga,useClass:Ga,deps:[za,Ys,Hs]},{provide:Ps,useExisting:Ga},{provide:Tv,useExisting:Ys},{provide:Ys,useClass:Ys,deps:[G]},{provide:dd,useClass:dd,deps:[ie]},{provide:za,useClass:za,deps:[Ua,ie]},{provide:class gR{},useClass:DR,deps:[]}];let Vd=(()=>{class n{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(t){return{ngModule:n,providers:[{provide:Hs,useValue:t.appId},{provide:Sv,useExisting:Hs},ER]}}}return n.\u0275fac=function(t){return new(t||n)(v(n,12))},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({providers:jR,imports:[ja,wA]}),n})();"undefined"!=typeof window&&window;let qa=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=x({token:n,factory:function(t){let i=null;return i=t?new(t||n):v(Lv),i},providedIn:"root"}),n})(),Lv=(()=>{class n extends qa{constructor(t){super(),this._doc=t}sanitize(t,i){if(null==i)return null;switch(t){case Q.NONE:return i;case Q.HTML:return dn(i,"HTML")?vt(i):em(this._doc,String(i)).toString();case Q.STYLE:return dn(i,"Style")?vt(i):i;case Q.SCRIPT:if(dn(i,"Script"))return vt(i);throw new Error("unsafe value used in a script context");case Q.URL:return Gp(i),dn(i,"URL")?vt(i):bs(String(i));case Q.RESOURCE_URL:if(dn(i,"ResourceURL"))return vt(i);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return function p0(n){return new c0(n)}(t)}bypassSecurityTrustStyle(t){return function m0(n){return new u0(n)}(t)}bypassSecurityTrustScript(t){return function g0(n){return new d0(n)}(t)}bypassSecurityTrustUrl(t){return function _0(n){return new h0(n)}(t)}bypassSecurityTrustResourceUrl(t){return function y0(n){return new f0(n)}(t)}}return n.\u0275fac=function(t){return new(t||n)(v(G))},n.\u0275prov=x({token:n,factory:function(t){let i=null;return i=t?new t:function ZR(n){return new Lv(n.get(G))}(v(tt)),i},providedIn:"root"}),n})();class QR extends Z{constructor(e,t){super()}schedule(e,t=0){return this}}class Ya extends QR{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 i=this.id,r=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(r,i,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this}requestAsyncId(e,t,i=0){return setInterval(e.flush.bind(e,this),i)}recycleAsyncId(e,t,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return t;clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(e,t);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let r,i=!1;try{this.work(e)}catch(s){i=!0,r=!!s&&s||new Error(s)}if(i)return this.unsubscribe(),r}_unsubscribe(){const e=this.id,t=this.scheduler,i=t.actions,r=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&i.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}let Bv=(()=>{class n{constructor(t,i=n.now){this.SchedulerAction=t,this.now=i}schedule(t,i=0,r){return new this.SchedulerAction(this,t).schedule(r,i)}}return n.now=()=>Date.now(),n})();class sn extends Bv{constructor(e,t=Bv.now){super(e,()=>sn.delegate&&sn.delegate!==this?sn.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,i){return sn.delegate&&sn.delegate!==this?sn.delegate.schedule(e,t,i):super.schedule(e,t,i)}flush(e){const{actions:t}=this;if(this.active)return void t.push(e);let i;this.active=!0;do{if(i=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,i){for(;e=t.shift();)e.unsubscribe();throw i}}}const tk=new class ek extends sn{}(class JR extends Ya{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,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(e,t,i):e.flush(this)}}),nk=new le(n=>n.complete());function Vv(n){return n?function ik(n){return new le(e=>n.schedule(()=>e.complete()))}(n):nk}function ut(...n){let e=n[n.length-1];return Vi(e)?(n.pop(),Hl(n,e)):$l(n)}function Hv(n,e){return new le(e?t=>e.schedule(rk,0,{error:n,subscriber:t}):t=>t.error(n))}function rk({error:n,subscriber:e}){e.error(n)}class dt{constructor(e,t,i){this.kind=e,this.value=t,this.error=i,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,i){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return i&&i()}}accept(e,t,i){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,i)}toObservable(){switch(this.kind){case"N":return ut(this.value);case"E":return Hv(this.error);case"C":return Vv()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new dt("N",e):dt.undefinedValueNotification}static createError(e){return new dt("E",void 0,e)}static createComplete(){return dt.completeNotification}}dt.completeNotification=new dt("C"),dt.undefinedValueNotification=new dt("N",void 0);class Ka extends he{constructor(e,t,i=0){super(e),this.scheduler=t,this.delay=i}static dispatch(e){const{notification:t,destination:i}=e;t.observe(i),this.unsubscribe()}scheduleMessage(e){this.destination.add(this.scheduler.schedule(Ka.dispatch,this.delay,new ok(e,this.destination)))}_next(e){this.scheduleMessage(dt.createNext(e))}_error(e){this.scheduleMessage(dt.createError(e)),this.unsubscribe()}_complete(){this.scheduleMessage(dt.createComplete()),this.unsubscribe()}}class ok{constructor(e,t){this.notification=e,this.destination=t}}class jv extends de{constructor(e=Number.POSITIVE_INFINITY,t=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,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 ak(this._getNow(),e)),this._trimBufferThenGetEvents(),super.next(e)}_subscribe(e){const t=this._infiniteTimeWindow,i=t?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,s=i.length;let o;if(this.closed)throw new li;if(this.isStopped||this.hasError?o=Z.EMPTY:(this.observers.push(e),o=new lf(this,e)),r&&e.add(e=new Ka(e,r)),t)for(let a=0;a<s&&!e.closed;a++)e.next(i[a]);else for(let a=0;a<s&&!e.closed;a++)e.next(i[a].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),o}_getNow(){return(this.scheduler||tk).now()}_trimBufferThenGetEvents(){const e=this._getNow(),t=this._bufferSize,i=this._windowTime,r=this._events,s=r.length;let o=0;for(;o<s&&!(e-r[o].time<i);)o++;return s>t&&(o=Math.max(o,s-t)),o>0&&r.splice(0,o),r}}class ak{constructor(e,t){this.time=e,this.value=t}}function Ks(n,e){return"function"==typeof e?t=>t.pipe(Ks((i,r)=>jl(n(i,r)).pipe(Ve((s,o)=>e(i,s,r,o))))):t=>t.lift(new lk(n))}class lk{constructor(e){this.project=e}call(e,t){return t.subscribe(new ck(e,this.project))}}class ck extends Qr{constructor(e,t){super(e),this.project=t,this.index=0}_next(e){let t;const i=this.index++;try{t=this.project(e,i)}catch(r){return void this.destination.error(r)}this._innerSub(t)}_innerSub(e){const t=this.innerSubscription;t&&t.unsubscribe();const i=new Zr(this),r=this.destination;r.add(i),this.innerSubscription=Jr(e,i),this.innerSubscription!==i&&r.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)}}const Xa={schedule(n,e){const t=setTimeout(n,e);return()=>clearTimeout(t)},scheduleBeforeRender(n){if("undefined"==typeof window)return Xa.schedule(n,0);if(void 0===window.requestAnimationFrame)return Xa.schedule(n,16);const e=window.requestAnimationFrame(n);return()=>window.cancelAnimationFrame(e)}};let jd;function yk(n,e,t){let i=t;return function dk(n){return!!n&&n.nodeType===Node.ELEMENT_NODE}(n)&&e.some((r,s)=>!("*"===r||!function fk(n,e){if(!jd){const t=Element.prototype;jd=t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}return n.nodeType===Node.ELEMENT_NODE&&jd.call(n,e)}(n,r)||(i=s,0))),i}class bk{constructor(e,t){this.componentFactory=t.get(Xn).resolveComponentFactory(e)}create(e){return new wk(this.componentFactory,e)}}class wk{constructor(e,t){this.componentFactory=e,this.injector=t,this.eventEmitters=new jv(1),this.events=this.eventEmitters.pipe(Ks(i=>Hi(...i))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(({propName:i})=>i)),this.ngZone=this.injector.get(ie),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=Xa.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(e){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(e):this.componentRef.instance[e])}setInputValue(e,t){this.runInZone(()=>{null!==this.componentRef?function pk(n,e){return n===e||n!=n&&e!=e}(t,this.getInputValue(e))&&(void 0!==t||!this.unchangedInputs.has(e))||(this.recordInputChange(e,t),this.unchangedInputs.delete(e),this.hasInputChanges=!0,this.componentRef.instance[e]=t,this.scheduleDetectChanges()):this.initialInputValues.set(e,t)})}initializeComponent(e){const t=tt.create({providers:[],parent:this.injector}),i=function _k(n,e){const t=n.childNodes,i=e.map(()=>[]);let r=-1;e.some((s,o)=>"*"===s&&(r=o,!0));for(let s=0,o=t.length;s<o;++s){const a=t[s],l=yk(a,e,r);-1!==l&&i[l].push(a)}return i}(e,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(t,i,e),this.viewChangeDetectorRef=this.componentRef.injector.get(Ei),this.implementsOnChanges=function hk(n){return"function"==typeof n}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(Ea).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:e})=>{this.initialInputValues.has(e)&&this.setInputValue(e,this.initialInputValues.get(e))}),this.initialInputValues.clear()}initializeOutputs(e){const t=this.componentFactory.outputs.map(({propName:i,templateName:r})=>e.instance[i].pipe(Ve(o=>({name:r,value:o}))));this.eventEmitters.next(t)}callNgOnChanges(e){if(!this.implementsOnChanges||null===this.inputChanges)return;const t=this.inputChanges;this.inputChanges=null,e.instance.ngOnChanges(t)}markViewForCheck(e){this.hasInputChanges&&(this.hasInputChanges=!1,e.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=Xa.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(e,t){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const i=this.inputChanges[e];if(i)return void(i.currentValue=t);const r=this.unchangedInputs.has(e),s=r?void 0:this.getInputValue(e);this.inputChanges[e]=new If(s,t,r)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(e){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(e):e()}}class Ek extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}function $v(n,e){const t=function gk(n,e){return e.get(Xn).resolveComponentFactory(n).inputs}(n,e.injector),i=e.strategyFactory||new bk(n,e.injector),r=function mk(n){const e={};return n.forEach(({propName:t,templateName:i})=>{e[function uk(n){return n.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}(i)]=t}),e}(t);class s extends Ek{constructor(a){super(),this.injector=a}get ngElementStrategy(){if(!this._ngElementStrategy){const a=this._ngElementStrategy=i.create(this.injector||e.injector);t.forEach(({propName:l})=>{if(!this.hasOwnProperty(l))return;const c=this[l];delete this[l],a.setInputValue(l,c)})}return this._ngElementStrategy}attributeChangedCallback(a,l,c,u){this.ngElementStrategy.setInputValue(r[a],c)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{const l=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(l)})}}return s.observedAttributes=Object.keys(r),t.forEach(({propName:o})=>{Object.defineProperty(s.prototype,o,{get(){return this.ngElementStrategy.getInputValue(o)},set(a){this.ngElementStrategy.setInputValue(o,a)},configurable:!0,enumerable:!0})}),s}class Uv{}const Fn="*";function $d(n,e){return{type:7,name:n,definitions:e,options:{}}}function Xs(n,e=null){return{type:4,styles:e,timings:n}}function zv(n,e=null){return{type:2,steps:n,options:e}}function wt(n){return{type:6,styles:n,offset:null}}function Za(n,e,t){return{type:0,name:n,styles:e,options:t}}function Ck(n){return{type:5,steps:n}}function Zs(n,e,t=null){return{type:1,expr:n,animation:e,options:t}}function Wv(n){Promise.resolve(null).then(n)}class Qs{constructor(e=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,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(){Wv(()=>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(){this._started=!1}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}class Gv{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,i=0,r=0;const s=this.players.length;0==s?Wv(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++t==s&&this._onFinish()}),o.onDestroy(()=>{++i==s&&this._onDestroy()}),o.onStart(()=>{++r==s&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.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(i=>{const r=i.totalTime?Math.min(1,t/i.totalTime):1;i.setPosition(r)})}getPosition(){const e=this.players.reduce((t,i)=>null===t||i.totalTime>t.totalTime?i:t,null);return null!=e?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}const q=!1;function qv(n){return new S(3e3,q)}function rP(){return"undefined"!=typeof window&&void 0!==window.document}function zd(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function ti(n){switch(n.length){case 0:return new Qs;case 1:return n[0];default:return new Gv(n)}}function Yv(n,e,t,i,r={},s={}){const o=[],a=[];let l=-1,c=null;if(i.forEach(u=>{const d=u.offset,h=d==l,f=h&&c||{};Object.keys(u).forEach(p=>{let m=p,_=u[p];if("offset"!==p)switch(m=e.normalizePropertyName(m,o),_){case"!":_=r[p];break;case Fn:_=s[p];break;default:_=e.normalizeStyleValue(p,m,_,o)}f[m]=_}),h||a.push(f),c=f,l=d}),o.length)throw function qk(n){return new S(3502,q)}();return a}function Wd(n,e,t,i){switch(e){case"start":n.onStart(()=>i(t&&Gd(t,"start",n)));break;case"done":n.onDone(()=>i(t&&Gd(t,"done",n)));break;case"destroy":n.onDestroy(()=>i(t&&Gd(t,"destroy",n)))}}function Gd(n,e,t){const i=t.totalTime,s=qd(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,null==i?n.totalTime:i,!!t.disabled),o=n._data;return null!=o&&(s._data=o),s}function qd(n,e,t,i,r="",s=0,o){return{element:n,triggerName:e,fromState:t,toState:i,phaseName:r,totalTime:s,disabled:!!o}}function Et(n,e,t){let i;return n instanceof Map?(i=n.get(e),i||n.set(e,i=t)):(i=n[e],i||(i=n[e]=t)),i}function Kv(n){const e=n.indexOf(":");return[n.substring(1,e),n.substr(e+1)]}let Yd=(n,e)=>!1,Xv=(n,e,t)=>[],Zv=null;function Kd(n){const e=n.parentNode||n.host;return e===Zv?null:e}(zd()||"undefined"!=typeof Element)&&(rP()?(Zv=(()=>document.documentElement)(),Yd=(n,e)=>{for(;e;){if(e===n)return!0;e=Kd(e)}return!1}):Yd=(n,e)=>n.contains(e),Xv=(n,e,t)=>{if(t)return Array.from(n.querySelectorAll(e));const i=n.querySelector(e);return i?[i]:[]});let Si=null,Qv=!1;function Jv(n){Si||(Si=function oP(){return"undefined"!=typeof document?document.body:null}()||{},Qv=!!Si.style&&"WebkitAppearance"in Si.style);let e=!0;return Si.style&&!function sP(n){return"ebkit"==n.substring(1,6)}(n)&&(e=n in Si.style,!e&&Qv&&(e="Webkit"+n.charAt(0).toUpperCase()+n.substr(1)in Si.style)),e}const eb=Yd,tb=Xv;let nb=(()=>{class n{validateStyleProperty(t){return Jv(t)}matchesElement(t,i){return!1}containsElement(t,i){return eb(t,i)}getParentElement(t){return Kd(t)}query(t,i,r){return tb(t,i,r)}computeStyle(t,i,r){return r||""}animate(t,i,r,s,o,a=[],l){return new Qs(r,s)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),Xd=(()=>{class n{}return n.NOOP=new nb,n})();const Zd="ng-enter",Ja="ng-leave",el="ng-trigger",tl=".ng-trigger",rb="ng-animating",Qd=".ng-animating";function Mi(n){if("number"==typeof n)return n;const e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Jd(parseFloat(e[1]),e[2])}function Jd(n,e){return"s"===e?1e3*n:n}function nl(n,e,t){return n.hasOwnProperty("duration")?n:function cP(n,e,t){let r,s=0,o="";if("string"==typeof n){const a=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return e.push(qv()),{duration:0,delay:0,easing:""};r=Jd(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(s=Jd(parseFloat(l),a[4]));const c=a[5];c&&(o=c)}else r=n;if(!t){let a=!1,l=e.length;r<0&&(e.push(function Sk(){return new S(3100,q)}()),a=!0),s<0&&(e.push(function Mk(){return new S(3101,q)}()),a=!0),a&&e.splice(l,0,qv())}return{duration:r,delay:s,easing:o}}(n,e,t)}function Rr(n,e={}){return Object.keys(n).forEach(t=>{e[t]=n[t]}),e}function ni(n,e,t={}){if(e)for(let i in n)t[i]=n[i];else Rr(n,t);return t}function ob(n,e,t){return t?e+":"+t+";":""}function ab(n){let e="";for(let t=0;t<n.style.length;t++){const i=n.style.item(t);e+=ob(0,i,n.style.getPropertyValue(i))}for(const t in n.style)n.style.hasOwnProperty(t)&&!t.startsWith("_")&&(e+=ob(0,hP(t),n.style[t]));n.setAttribute("style",e)}function bn(n,e,t){n.style&&(Object.keys(e).forEach(i=>{const r=th(i);t&&!t.hasOwnProperty(i)&&(t[i]=n.style[r]),n.style[r]=e[i]}),zd()&&ab(n))}function Ti(n,e){n.style&&(Object.keys(e).forEach(t=>{const i=th(t);n.style[i]=""}),zd()&&ab(n))}function Js(n){return Array.isArray(n)?1==n.length?n[0]:zv(n):n}const eh=new RegExp("{{\\s*(.+?)\\s*}}","g");function lb(n){let e=[];if("string"==typeof n){let t;for(;t=eh.exec(n);)e.push(t[1]);eh.lastIndex=0}return e}function il(n,e,t){const i=n.toString(),r=i.replace(eh,(s,o)=>{let a=e[o];return e.hasOwnProperty(o)||(t.push(function Ik(n){return new S(3003,q)}()),a=""),a.toString()});return r==i?n:r}function rl(n){const e=[];let t=n.next();for(;!t.done;)e.push(t.value),t=n.next();return e}const dP=/-+([a-z0-9])/g;function th(n){return n.replace(dP,(...e)=>e[1].toUpperCase())}function hP(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Dt(n,e,t){switch(e.type){case 7:return n.visitTrigger(e,t);case 0:return n.visitState(e,t);case 1:return n.visitTransition(e,t);case 2:return n.visitSequence(e,t);case 3:return n.visitGroup(e,t);case 4:return n.visitAnimate(e,t);case 5:return n.visitKeyframes(e,t);case 6:return n.visitStyle(e,t);case 8:return n.visitReference(e,t);case 9:return n.visitAnimateChild(e,t);case 10:return n.visitAnimateRef(e,t);case 11:return n.visitQuery(e,t);case 12:return n.visitStagger(e,t);default:throw function xk(n){return new S(3004,q)}()}}function cb(n,e){return window.getComputedStyle(n)[e]}function yP(n,e){const t=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(i=>function vP(n,e,t){if(":"==n[0]){const l=function bP(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,i)=>parseFloat(i)>parseFloat(t);case":decrement":return(t,i)=>parseFloat(i)<parseFloat(t);default:return e.push(function Uk(n){return new S(3016,q)}()),"* => *"}}(n,t);if("function"==typeof l)return void e.push(l);n=l}const i=n.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return t.push(function $k(n){return new S(3015,q)}()),e;const r=i[1],s=i[2],o=i[3];e.push(ub(r,o));"<"==s[0]&&!("*"==r&&"*"==o)&&e.push(ub(o,r))}(i,t,e)):t.push(n),t}const ll=new Set(["true","1"]),cl=new Set(["false","0"]);function ub(n,e){const t=ll.has(n)||cl.has(n),i=ll.has(e)||cl.has(e);return(r,s)=>{let o="*"==n||n==r,a="*"==e||e==s;return!o&&t&&"boolean"==typeof r&&(o=r?ll.has(n):cl.has(n)),!a&&i&&"boolean"==typeof s&&(a=s?ll.has(e):cl.has(e)),o&&a}}const wP=new RegExp("s*:selfs*,?","g");function nh(n,e,t,i){return new EP(n).build(e,t,i)}class EP{constructor(e){this._driver=e}build(e,t,i){const r=new SP(t);this._resetContextStyleTimingState(r);const s=Dt(this,Js(e),r);return r.unsupportedCSSPropertiesFound.size&&r.unsupportedCSSPropertiesFound.keys(),s}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}visitTrigger(e,t){let i=t.queryCount=0,r=t.depCount=0;const s=[],o=[];return"@"==e.name.charAt(0)&&t.errors.push(function Ok(){return new S(3006,q)}()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,s.push(this.visitState(l,t))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,t);i+=l.queryCount,r+=l.depCount,o.push(l)}else t.errors.push(function Rk(){return new S(3007,q)}())}),{type:7,name:e.name,states:s,transitions:o,queryCount:i,depCount:r,options:null}}visitState(e,t){const i=this.visitStyle(e.styles,t),r=e.options&&e.options.params||null;if(i.containsDynamicStyles){const s=new Set,o=r||{};i.styles.forEach(a=>{if(ul(a)){const l=a;Object.keys(l).forEach(c=>{lb(l[c]).forEach(u=>{o.hasOwnProperty(u)||s.add(u)})})}}),s.size&&(rl(s.values()),t.errors.push(function kk(n,e){return new S(3008,q)}()))}return{type:0,name:e.name,style:i,options:r?{params:r}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const i=Dt(this,Js(e.animation),t);return{type:1,matchers:yP(e.expr,t.errors),animation:i,queryCount:t.queryCount,depCount:t.depCount,options:Ii(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(i=>Dt(this,i,t)),options:Ii(e.options)}}visitGroup(e,t){const i=t.currentTime;let r=0;const s=e.steps.map(o=>{t.currentTime=i;const a=Dt(this,o,t);return r=Math.max(r,t.currentTime),a});return t.currentTime=r,{type:3,steps:s,options:Ii(e.options)}}visitAnimate(e,t){const i=function TP(n,e){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return ih(nl(n,e).duration,0,"");const t=n;if(t.split(/\s+/).some(s=>"{"==s.charAt(0)&&"{"==s.charAt(1))){const s=ih(0,0,"");return s.dynamic=!0,s.strValue=t,s}const r=nl(t,e);return ih(r.duration,r.delay,r.easing)}(e.timings,t.errors);t.currentAnimateTimings=i;let r,s=e.styles?e.styles:wt({});if(5==s.type)r=this.visitKeyframes(s,t);else{let o=e.styles,a=!1;if(!o){a=!0;const c={};i.easing&&(c.easing=i.easing),o=wt(c)}t.currentTime+=i.duration+i.delay;const l=this.visitStyle(o,t);l.isEmptyStep=a,r=l}return t.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(e,t){const i=this._makeStyleAst(e,t);return this._validateStyleAst(i,t),i}_makeStyleAst(e,t){const i=[];Array.isArray(e.styles)?e.styles.forEach(o=>{"string"==typeof o?o==Fn?i.push(o):t.errors.push(function Pk(n){return new S(3002,q)}()):i.push(o)}):i.push(e.styles);let r=!1,s=null;return i.forEach(o=>{if(ul(o)){const a=o,l=a.easing;if(l&&(s=l,delete a.easing),!r)for(let c in a)if(a[c].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:i,easing:s,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){const i=t.currentAnimateTimings;let r=t.currentTime,s=t.currentTime;i&&s>0&&(s-=i.duration+i.delay),e.styles.forEach(o=>{"string"!=typeof o&&Object.keys(o).forEach(a=>{if(!this._driver.validateStyleProperty(a))return delete o[a],void t.unsupportedCSSPropertiesFound.add(a);const l=t.collectedStyles[t.currentQuerySelector],c=l[a];let u=!0;c&&(s!=r&&s>=c.startTime&&r<=c.endTime&&(t.errors.push(function Fk(n,e,t,i,r){return new S(3010,q)}()),u=!1),s=c.startTime),u&&(l[a]={startTime:s,endTime:r}),t.options&&function uP(n,e,t){const i=e.params||{},r=lb(n);r.length&&r.forEach(s=>{i.hasOwnProperty(s)||t.push(function Tk(n){return new S(3001,q)}())})}(o[a],t.options,t.errors)})})}visitKeyframes(e,t){const i={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(function Nk(){return new S(3011,q)}()),i;let s=0;const o=[];let a=!1,l=!1,c=0;const u=e.steps.map(y=>{const g=this._makeStyleAst(y,t);let E=null!=g.offset?g.offset:function MP(n){if("string"==typeof n)return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(ul(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}});else if(ul(n)&&n.hasOwnProperty("offset")){const t=n;e=parseFloat(t.offset),delete t.offset}return e}(g.styles),T=0;return null!=E&&(s++,T=g.offset=E),l=l||T<0||T>1,a=a||T<c,c=T,o.push(T),g});l&&t.errors.push(function Lk(){return new S(3012,q)}()),a&&t.errors.push(function Bk(){return new S(3200,q)}());const d=e.steps.length;let h=0;s>0&&s<d?t.errors.push(function Vk(){return new S(3202,q)}()):0==s&&(h=1/(d-1));const f=d-1,p=t.currentTime,m=t.currentAnimateTimings,_=m.duration;return u.forEach((y,g)=>{const E=h>0?g==f?1:h*g:o[g],T=E*_;t.currentTime=p+m.delay+T,m.duration=T,this._validateStyleAst(y,t),y.offset=E,i.styles.push(y)}),i}visitReference(e,t){return{type:8,animation:Dt(this,Js(e.animation),t),options:Ii(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:Ii(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:Ii(e.options)}}visitQuery(e,t){const i=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;const[s,o]=function DP(n){const e=!!n.split(/\s*,\s*/).find(t=>":self"==t);return e&&(n=n.replace(wP,"")),n=n.replace(/@\*/g,tl).replace(/@\w+/g,t=>tl+"-"+t.substr(1)).replace(/:animating/g,Qd),[n,e]}(e.selector);t.currentQuerySelector=i.length?i+" "+s:s,Et(t.collectedStyles,t.currentQuerySelector,{});const a=Dt(this,Js(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=i,{type:11,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:Ii(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(function Hk(){return new S(3013,q)}());const i="full"===e.timings?{duration:0,delay:0,easing:"full"}:nl(e.timings,t.errors,!0);return{type:12,animation:Dt(this,Js(e.animation),t),timings:i,options:null}}}class SP{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,this.unsupportedCSSPropertiesFound=new Set}}function ul(n){return!Array.isArray(n)&&"object"==typeof n}function Ii(n){return n?(n=Rr(n)).params&&(n.params=function CP(n){return n?Rr(n):null}(n.params)):n={},n}function ih(n,e,t){return{duration:n,delay:e,easing:t}}function rh(n,e,t,i,r,s,o=null,a=!1){return{type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:i,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}class dl{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let i=this._map.get(e);i||this._map.set(e,i=[]),i.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const AP=new RegExp(":enter","g"),RP=new RegExp(":leave","g");function sh(n,e,t,i,r,s={},o={},a,l,c=[]){return(new kP).buildKeyframes(n,e,t,i,r,s,o,a,l,c)}class kP{buildKeyframes(e,t,i,r,s,o,a,l,c,u=[]){c=c||new dl;const d=new oh(e,t,c,r,s,u,[]);d.options=l,d.currentTimeline.setStyles([o],null,d.errors,l),Dt(this,i,d);const h=d.timelines.filter(f=>f.containsAnimation());if(Object.keys(a).length){let f;for(let p=h.length-1;p>=0;p--){const m=h[p];if(m.element===t){f=m;break}}f&&!f.allowOnlyTimelineStyles()&&f.setStyles([a],null,d.errors,l)}return h.length?h.map(f=>f.buildKeyframes()):[rh(t,[],[],[],0,0,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const i=t.subInstructions.get(t.element);if(i){const r=t.createSubContext(e.options),s=t.currentTimeline.currentTime,o=this._visitSubInstructions(i,r,r.options);s!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){const i=t.createSubContext(e.options);i.transformIntoNewTimeline(),this.visitReference(e.animation,i),t.transformIntoNewTimeline(i.currentTimeline.currentTime),t.previousNode=e}_visitSubInstructions(e,t,i){let s=t.currentTimeline.currentTime;const o=null!=i.duration?Mi(i.duration):null,a=null!=i.delay?Mi(i.delay):null;return 0!==o&&e.forEach(l=>{const c=t.appendInstructionToTimeline(l,o,a);s=Math.max(s,c.duration+c.delay)}),s}visitReference(e,t){t.updateOptions(e.options,!0),Dt(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const i=t.subContextCount;let r=t;const s=e.options;if(s&&(s.params||s.delay)&&(r=t.createSubContext(s),r.transformIntoNewTimeline(),null!=s.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=hl);const o=Mi(s.delay);r.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>Dt(this,o,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const i=[];let r=t.currentTimeline.currentTime;const s=e.options&&e.options.delay?Mi(e.options.delay):0;e.steps.forEach(o=>{const a=t.createSubContext(e.options);s&&a.delayNextStep(s),Dt(this,o,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(r),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const i=e.strValue;return nl(t.params?il(i,t.params,t.errors):i,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const i=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;i.delay&&(t.incrementTime(i.delay),r.snapshotCurrentStyles());const s=e.style;5==s.type?this.visitKeyframes(s,t):(t.incrementTime(i.duration),this.visitStyle(s,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const i=t.currentTimeline,r=t.currentAnimateTimings;!r&&i.getCurrentStyleProperties().length&&i.forwardFrame();const s=r&&r.easing||e.easing;e.isEmptyStep?i.applyEmptyStep(s):i.setStyles(e.styles,s,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const i=t.currentAnimateTimings,r=t.currentTimeline.duration,s=i.duration,a=t.createSubContext().currentTimeline;a.easing=i.easing,e.styles.forEach(l=>{a.forwardTime((l.offset||0)*s),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(r+s),t.previousNode=e}visitQuery(e,t){const i=t.currentTimeline.currentTime,r=e.options||{},s=r.delay?Mi(r.delay):0;s&&(6===t.previousNode.type||0==i&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=hl);let o=i;const a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{t.currentQueryIndex=u;const d=t.createSubContext(e.options,c);s&&d.delayNextStep(s),c===t.element&&(l=d.currentTimeline),Dt(this,e.animation,d),d.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,d.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const i=t.parentContext,r=t.currentTimeline,s=e.timings,o=Math.abs(s.duration),a=o*(t.currentQueryTotal-1);let l=o*t.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=t.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;Dt(this,e.animation,t),t.previousNode=e,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const hl={};class oh{constructor(e,t,i,r,s,o,a,l){this._driver=e,this.element=t,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=hl,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new fl(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const i=e;let r=this.options;null!=i.duration&&(r.duration=Mi(i.duration)),null!=i.delay&&(r.delay=Mi(i.delay));const s=i.params;if(s){let o=r.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=il(s[a],o,this.errors))})}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const i=e.params={};Object.keys(t).forEach(r=>{i[r]=t[r]})}}return e}createSubContext(e=null,t,i){const r=t||this.element,s=new oh(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(e),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(e){return this.previousNode=hl,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,i){const r={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+e.delay,easing:""},s=new PP(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,i,r,s,o){let a=[];if(r&&a.push(this.element),e.length>0){e=(e=e.replace(AP,"."+this._enterClassName)).replace(RP,"."+this._leaveClassName);let c=this._driver.query(this.element,e,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!s&&0==a.length&&o.push(function jk(n){return new S(3014,q)}()),a}}class fl{constructor(e,t,i,r){this._driver=e,this.element=t,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(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 fl(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(t=>{this._backFill[t]=this._globalTimelineStyles[t]||Fn,this._currentKeyframe[t]=Fn}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,i,r){t&&(this._previousKeyframe.easing=t);const s=r&&r.params||{},o=function FP(n,e){const t={};let i;return n.forEach(r=>{"*"===r?(i=i||Object.keys(e),i.forEach(s=>{t[s]=Fn})):ni(r,!1,t)}),t}(e,this._globalTimelineStyles);Object.keys(o).forEach(a=>{const l=il(o[a],s,i);this._pendingStyles[a]=l,this._localTimelineStyles.hasOwnProperty(a)||(this._backFill[a]=this._globalTimelineStyles.hasOwnProperty(a)?this._globalTimelineStyles[a]:Fn),this._updateStyle(a,l)})}applyStylesToKeyframe(){const e=this._pendingStyles,t=Object.keys(e);0!=t.length&&(this._pendingStyles={},t.forEach(i=>{this._currentKeyframe[i]=e[i]}),Object.keys(this._localTimelineStyles).forEach(i=>{this._currentKeyframe.hasOwnProperty(i)||(this._currentKeyframe[i]=this._localTimelineStyles[i])}))}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 i=this._styleSummary[t],r=e._styleSummary[t];(!i||r.time>i.time)&&this._updateStyle(t,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=ni(a,!0);Object.keys(c).forEach(u=>{const d=c[u];"!"==d?e.add(u):d==Fn&&t.add(u)}),i||(c.offset=l/this.duration),r.push(c)});const s=e.size?rl(e.values()):[],o=t.size?rl(t.values()):[];if(i){const a=r[0],l=Rr(a);a.offset=0,l.offset=1,r=[a,l]}return rh(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}}class PP extends fl{constructor(e,t,i,r,s,o,a=!1){super(e,t,o.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&t){const s=[],o=i+t,a=t/o,l=ni(e[0],!1);l.offset=0,s.push(l);const c=ni(e[0],!1);c.offset=fb(a),s.push(c);const u=e.length-1;for(let d=1;d<=u;d++){let h=ni(e[d],!1);h.offset=fb((t+h.offset*i)/o),s.push(h)}i=o,t=0,r="",e=s}return rh(this.element,e,this.preStyleProps,this.postStyleProps,i,t,r,!0)}}function fb(n,e=3){const t=Math.pow(10,e-1);return Math.round(n*t)/t}class ah{}class NP extends ah{normalizePropertyName(e,t){return th(e)}normalizeStyleValue(e,t,i,r){let s="";const o=i.toString().trim();if(LP[t]&&0!==i&&"0"!==i)if("number"==typeof i)s="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function Ak(n,e){return new S(3005,q)}())}return o+s}}const LP=(()=>function BP(n){const e={};return n.forEach(t=>e[t]=!0),e}("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 pb(n,e,t,i,r,s,o,a,l,c,u,d,h){return{type:0,element:n,triggerName:e,isRemovalTransition:r,fromState:t,fromStyles:s,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const lh={};class mb{constructor(e,t,i){this._triggerName=e,this.ast=t,this._stateStyles=i}match(e,t,i,r){return function VP(n,e,t,i,r){return n.some(s=>s(e,t,i,r))}(this.ast.matchers,e,t,i,r)}buildStyles(e,t,i){const r=this._stateStyles["*"],s=this._stateStyles[e],o=r?r.buildStyles(t,i):{};return s?s.buildStyles(t,i):o}build(e,t,i,r,s,o,a,l,c,u){const d=[],h=this.ast.options&&this.ast.options.params||lh,p=this.buildStyles(i,a&&a.params||lh,d),m=l&&l.params||lh,_=this.buildStyles(r,m,d),y=new Set,g=new Map,E=new Map,T="void"===r,H={params:Object.assign(Object.assign({},h),m)},me=u?[]:sh(e,t,this.ast.animation,s,o,p,_,H,c,d);let ve=0;if(me.forEach(It=>{ve=Math.max(It.duration+It.delay,ve)}),d.length)return pb(t,this._triggerName,i,r,T,p,_,[],[],g,E,ve,d);me.forEach(It=>{const xt=It.element,Gr=Et(g,xt,{});It.preStyleProps.forEach(an=>Gr[an]=!0);const Vn=Et(E,xt,{});It.postStyleProps.forEach(an=>Vn[an]=!0),xt!==t&&y.add(xt)});const Tt=rl(y.values());return pb(t,this._triggerName,i,r,T,p,_,me,Tt,g,E,ve)}}class HP{constructor(e,t,i){this.styles=e,this.defaultParams=t,this.normalizer=i}buildStyles(e,t){const i={},r=Rr(this.defaultParams);return Object.keys(e).forEach(s=>{const o=e[s];null!=o&&(r[s]=o)}),this.styles.styles.forEach(s=>{if("string"!=typeof s){const o=s;Object.keys(o).forEach(a=>{let l=o[a];l.length>1&&(l=il(l,r,t));const c=this.normalizer.normalizePropertyName(a,t);l=this.normalizer.normalizeStyleValue(a,c,l,t),i[c]=l})}}),i}}class $P{constructor(e,t,i){this.name=e,this.ast=t,this._normalizer=i,this.transitionFactories=[],this.states={},t.states.forEach(r=>{this.states[r.name]=new HP(r.style,r.options&&r.options.params||{},i)}),gb(this.states,"true","1"),gb(this.states,"false","0"),t.transitions.forEach(r=>{this.transitionFactories.push(new mb(e,r,this.states))}),this.fallbackTransition=function UP(n,e,t){return new mb(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(o,a)=>!0],options:null,queryCount:0,depCount:0},e)}(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,i,r){return this.transitionFactories.find(o=>o.match(e,t,i,r))||null}matchStyles(e,t,i){return this.fallbackTransition.buildStyles(e,t,i)}}function gb(n,e,t){n.hasOwnProperty(e)?n.hasOwnProperty(t)||(n[t]=n[e]):n.hasOwnProperty(t)&&(n[e]=n[t])}const zP=new dl;class WP{constructor(e,t,i){this.bodyNode=e,this._driver=t,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(e,t){const i=[],s=nh(this._driver,t,i,[]);if(i.length)throw function Yk(n){return new S(3503,q)}();this._animations[e]=s}_buildPlayer(e,t,i){const r=e.element,s=Yv(0,this._normalizer,0,e.keyframes,t,i);return this._driver.animate(r,s,e.duration,e.delay,e.easing,[],!0)}create(e,t,i={}){const r=[],s=this._animations[e];let o;const a=new Map;if(s?(o=sh(this._driver,t,s,Zd,Ja,{},{},i,zP,r),o.forEach(u=>{const d=Et(a,u.element,{});u.postStyleProps.forEach(h=>d[h]=null)})):(r.push(function Kk(){return new S(3300,q)}()),o=[]),r.length)throw function Xk(n){return new S(3504,q)}();a.forEach((u,d)=>{Object.keys(u).forEach(h=>{u[h]=this._driver.computeStyle(d,h,Fn)})});const c=ti(o.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,{},d)}));return this._playersById[e]=c,c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){const t=this._getPlayer(e);t.destroy(),delete this._playersById[e];const i=this.players.indexOf(t);i>=0&&this.players.splice(i,1)}_getPlayer(e){const t=this._playersById[e];if(!t)throw function Zk(n){return new S(3301,q)}();return t}listen(e,t,i,r){const s=qd(t,"","","");return Wd(this._getPlayer(e),i,s,r),()=>{}}command(e,t,i,r){if("register"==i)return void this.register(e,r[0]);if("create"==i)return void this.create(e,t,r[0]||{});const s=this._getPlayer(e);switch(i){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e)}}}const _b="ng-animate-queued",ch="ng-animate-disabled",XP=[],yb={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ZP={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Vt="__ng_removed";class uh{constructor(e,t=""){this.namespaceId=t;const i=e&&e.hasOwnProperty("value");if(this.value=function tF(n){return null!=n?n:null}(i?e.value:e),i){const s=Rr(e);delete s.value,this.options=s}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const t=e.params;if(t){const i=this.options.params;Object.keys(t).forEach(r=>{null==i[r]&&(i[r]=t[r])})}}}const eo="void",dh=new uh(eo);class QP{constructor(e,t,i){this.id=e,this.hostElement=t,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Ht(t,this._hostClassName)}listen(e,t,i,r){if(!this._triggers.hasOwnProperty(t))throw function Qk(n,e){return new S(3302,q)}();if(null==i||0==i.length)throw function Jk(n){return new S(3303,q)}();if(!function nF(n){return"start"==n||"done"==n}(i))throw function eP(n,e){return new S(3400,q)}();const s=Et(this._elementListeners,e,[]),o={name:t,phase:i,callback:r};s.push(o);const a=Et(this._engine.statesByElement,e,{});return a.hasOwnProperty(t)||(Ht(e,el),Ht(e,el+"-"+t),a[t]=dh),()=>{this._engine.afterFlush(()=>{const l=s.indexOf(o);l>=0&&s.splice(l,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 function tP(n){return new S(3401,q)}();return t}trigger(e,t,i,r=!0){const s=this._getTrigger(t),o=new hh(this.id,t,e);let a=this._engine.statesByElement.get(e);a||(Ht(e,el),Ht(e,el+"-"+t),this._engine.statesByElement.set(e,a={}));let l=a[t];const c=new uh(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a[t]=c,l||(l=dh),c.value!==eo&&l.value===c.value){if(!function sF(n,e){const t=Object.keys(n),i=Object.keys(e);if(t.length!=i.length)return!1;for(let r=0;r<t.length;r++){const s=t[r];if(!e.hasOwnProperty(s)||n[s]!==e[s])return!1}return!0}(l.params,c.params)){const m=[],_=s.matchStyles(l.value,l.params,m),y=s.matchStyles(c.value,c.params,m);m.length?this._engine.reportError(m):this._engine.afterFlush(()=>{Ti(e,_),bn(e,y)})}return}const h=Et(this._engine.playersByElement,e,[]);h.forEach(m=>{m.namespaceId==this.id&&m.triggerName==t&&m.queued&&m.destroy()});let f=s.matchTransition(l.value,c.value,e,c.params),p=!1;if(!f){if(!r)return;f=s.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:f,fromState:l,toState:c,player:o,isFallbackTransition:p}),p||(Ht(e,_b),o.onStart(()=>{kr(e,_b)})),o.onDone(()=>{let m=this.players.indexOf(o);m>=0&&this.players.splice(m,1);const _=this._engine.playersByElement.get(e);if(_){let y=_.indexOf(o);y>=0&&_.splice(y,1)}}),this.players.push(o),h.push(o),o}deregister(e){delete this._triggers[e],this._engine.statesByElement.forEach((t,i)=>{delete t[e]}),this._elementListeners.forEach((t,i)=>{this._elementListeners.set(i,t.filter(r=>r.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach(i=>i.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const i=this._engine.driver.query(e,tl,!0);i.forEach(r=>{if(r[Vt])return;const s=this._engine.fetchNamespacesByElement(r);s.size?s.forEach(o=>o.triggerLeaveAnimation(r,t,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(e,t,i,r){const s=this._engine.statesByElement.get(e),o=new Map;if(s){const a=[];if(Object.keys(s).forEach(l=>{if(o.set(l,s[l].value),this._triggers[l]){const c=this.trigger(e,l,eo,r);c&&a.push(c)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),i&&ti(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e),i=this._engine.statesByElement.get(e);if(t&&i){const r=new Set;t.forEach(s=>{const o=s.name;if(r.has(o))return;r.add(o);const l=this._triggers[o].fallbackTransition,c=i[o]||dh,u=new uh(eo),d=new hh(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(e,t){const i=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let r=!1;if(i.totalAnimations){const s=i.players.length?i.playersByQueriedElement.get(e):[];if(s&&s.length)r=!0;else{let o=e;for(;o=o.parentNode;)if(i.statesByElement.get(o)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(e),r)i.markElementAsRemoved(this.id,e,!1,t);else{const s=e[Vt];(!s||s===yb)&&(i.afterFlush(()=>this.clearElementCache(e)),i.destroyInnerAnimations(e),i._onRemovalComplete(e,t))}}insertNode(e,t){Ht(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const s=i.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==i.triggerName){const l=qd(s,i.triggerName,i.fromState.value,i.toState.value);l._data=e,Wd(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):t.push(i)}),this._queue=[],t.sort((i,r)=>{const s=i.transition.ast.depCount,o=r.transition.ast.depCount;return 0==s||0==o?s-o:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find(i=>i.element===e)||t,t}}class JP{constructor(e,t,i){this.bodyNode=e,this.driver=t,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,s)=>{}}_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){const e=[];return this._namespaceList.forEach(t=>{t.players.forEach(i=>{i.queued&&e.push(i)})}),e}createNamespace(e,t){const i=new QP(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(i,t):(this.newHostElements.set(t,i),this.collectEnterElement(t)),this._namespaceLookup[e]=i}_balanceNamespaceList(e,t){const i=this._namespaceList,r=this.namespacesByHostElement,s=i.length-1;if(s>=0){let o=!1;if(void 0!==this.driver.getParentElement){let a=this.driver.getParentElement(t);for(;a;){const l=r.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}}else for(let a=s;a>=0;a--)if(this.driver.containsElement(i[a].hostElement,t)){i.splice(a+1,0,e),o=!0;break}o||i.unshift(e)}else i.push(e);return r.set(t,e),e}register(e,t){let i=this._namespaceLookup[e];return i||(i=this.createNamespace(e,t)),i}registerTrigger(e,t,i){let r=this._namespaceLookup[e];r&&r.register(t,i)&&this.totalAnimations++}destroy(e,t){if(!e)return;const i=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[e];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(t))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,i=this.statesByElement.get(e);if(i){const r=Object.keys(i);for(let s=0;s<r.length;s++){const o=i[r[s]].namespaceId;if(o){const a=this._fetchNamespace(o);a&&t.add(a)}}}return t}trigger(e,t,i,r){if(pl(t)){const s=this._fetchNamespace(e);if(s)return s.trigger(t,i,r),!0}return!1}insertNode(e,t,i,r){if(!pl(t))return;const s=t[Vt];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){const o=this._fetchNamespace(e);o&&o.insertNode(t,i)}r&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Ht(e,ch)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),kr(e,ch))}removeNode(e,t,i,r){if(pl(t)){const s=e?this._fetchNamespace(e):null;if(s?s.removeNode(t,r):this.markElementAsRemoved(e,t,!1,r),i){const o=this.namespacesByHostElement.get(t);o&&o.id!==e&&o.removeNode(t,r)}}else this._onRemovalComplete(t,r)}markElementAsRemoved(e,t,i,r,s){this.collectedLeaveElements.push(t),t[Vt]={namespaceId:e,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:s}}listen(e,t,i,r,s){return pl(t)?this._fetchNamespace(e).listen(t,i,r,s):()=>{}}_buildInstruction(e,t,i,r,s){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,i,r,e.fromState.options,e.toState.options,t,s)}destroyInnerAnimations(e){let t=this.driver.query(e,tl,!0);t.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,Qd,!0),t.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return ti(this.players).onDone(()=>e());e()})}processLeaveNode(e){var t;const i=e[Vt];if(i&&i.setForRemoval){if(e[Vt]=yb,i.namespaceId){this.destroyInnerAnimations(e);const r=this._fetchNamespace(i.namespaceId);r&&r.clearElementCache(e)}this._onRemovalComplete(e,i.setForRemoval)}(null===(t=e.classList)||void 0===t?void 0:t.contains(ch))&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++)Ht(this.collectedEnterElements[i],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const i=[];try{t=this._flushAnimations(i,e)}finally{for(let r=0;r<i.length;r++)i[r]()}}else for(let i=0;i<this.collectedLeaveElements.length;i++)this.processLeaveNode(this.collectedLeaveElements[i]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(i=>i()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],t.length?ti(t).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(e){throw function nP(n){return new S(3402,q)}()}_flushAnimations(e,t){const i=new dl,r=[],s=new Map,o=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(M=>{u.add(M);const O=this.driver.query(M,".ng-animate-queued",!0);for(let F=0;F<O.length;F++)u.add(O[F])});const d=this.bodyNode,h=Array.from(this.statesByElement.keys()),f=wb(h,this.collectedEnterElements),p=new Map;let m=0;f.forEach((M,O)=>{const F=Zd+m++;p.set(O,F),M.forEach(X=>Ht(X,F))});const _=[],y=new Set,g=new Set;for(let M=0;M<this.collectedLeaveElements.length;M++){const O=this.collectedLeaveElements[M],F=O[Vt];F&&F.setForRemoval&&(_.push(O),y.add(O),F.hasAnimation?this.driver.query(O,".ng-star-inserted",!0).forEach(X=>y.add(X)):g.add(O))}const E=new Map,T=wb(h,Array.from(y));T.forEach((M,O)=>{const F=Ja+m++;E.set(O,F),M.forEach(X=>Ht(X,F))}),e.push(()=>{f.forEach((M,O)=>{const F=p.get(O);M.forEach(X=>kr(X,F))}),T.forEach((M,O)=>{const F=E.get(O);M.forEach(X=>kr(X,F))}),_.forEach(M=>{this.processLeaveNode(M)})});const H=[],me=[];for(let M=this._namespaceList.length-1;M>=0;M--)this._namespaceList[M].drainQueuedTransitions(t).forEach(F=>{const X=F.player,$e=F.element;if(H.push(X),this.collectedEnterElements.length){const ot=$e[Vt];if(ot&&ot.setForMove){if(ot.previousTriggersValues&&ot.previousTriggersValues.has(F.triggerName)){const Fi=ot.previousTriggersValues.get(F.triggerName),ai=this.statesByElement.get(F.element);ai&&ai[F.triggerName]&&(ai[F.triggerName].value=Fi)}return void X.destroy()}}const Dn=!d||!this.driver.containsElement(d,$e),At=E.get($e),oi=p.get($e),be=this._buildInstruction(F,i,oi,At,Dn);if(be.errors&&be.errors.length)return void me.push(be);if(Dn)return X.onStart(()=>Ti($e,be.fromStyles)),X.onDestroy(()=>bn($e,be.toStyles)),void r.push(X);if(F.isFallbackTransition)return X.onStart(()=>Ti($e,be.fromStyles)),X.onDestroy(()=>bn($e,be.toStyles)),void r.push(X);const xE=[];be.timelines.forEach(ot=>{ot.stretchStartingKeyframe=!0,this.disabledNodes.has(ot.element)||xE.push(ot)}),be.timelines=xE,i.append($e,be.timelines),o.push({instruction:be,player:X,element:$e}),be.queriedElements.forEach(ot=>Et(a,ot,[]).push(X)),be.preStyleProps.forEach((ot,Fi)=>{const ai=Object.keys(ot);if(ai.length){let Ni=l.get(Fi);Ni||l.set(Fi,Ni=new Set),ai.forEach(ef=>Ni.add(ef))}}),be.postStyleProps.forEach((ot,Fi)=>{const ai=Object.keys(ot);let Ni=c.get(Fi);Ni||c.set(Fi,Ni=new Set),ai.forEach(ef=>Ni.add(ef))})});if(me.length){const M=[];me.forEach(O=>{M.push(function iP(n,e){return new S(3505,q)}())}),H.forEach(O=>O.destroy()),this.reportError(M)}const ve=new Map,Tt=new Map;o.forEach(M=>{const O=M.element;i.has(O)&&(Tt.set(O,O),this._beforeAnimationBuild(M.player.namespaceId,M.instruction,ve))}),r.forEach(M=>{const O=M.element;this._getPreviousPlayers(O,!1,M.namespaceId,M.triggerName,null).forEach(X=>{Et(ve,O,[]).push(X),X.destroy()})});const It=_.filter(M=>Db(M,l,c)),xt=new Map;bb(xt,this.driver,g,c,Fn).forEach(M=>{Db(M,l,c)&&It.push(M)});const Vn=new Map;f.forEach((M,O)=>{bb(Vn,this.driver,new Set(M),l,"!")}),It.forEach(M=>{const O=xt.get(M),F=Vn.get(M);xt.set(M,Object.assign(Object.assign({},O),F))});const an=[],qr=[],Yr={};o.forEach(M=>{const{element:O,player:F,instruction:X}=M;if(i.has(O)){if(u.has(O))return F.onDestroy(()=>bn(O,X.toStyles)),F.disabled=!0,F.overrideTotalTime(X.totalTime),void r.push(F);let $e=Yr;if(Tt.size>1){let At=O;const oi=[];for(;At=At.parentNode;){const be=Tt.get(At);if(be){$e=be;break}oi.push(At)}oi.forEach(be=>Tt.set(be,$e))}const Dn=this._buildAnimation(F.namespaceId,X,ve,s,Vn,xt);if(F.setRealPlayer(Dn),$e===Yr)an.push(F);else{const At=this.playersByElement.get($e);At&&At.length&&(F.parentPlayer=ti(At)),r.push(F)}}else Ti(O,X.fromStyles),F.onDestroy(()=>bn(O,X.toStyles)),qr.push(F),u.has(O)&&r.push(F)}),qr.forEach(M=>{const O=s.get(M.element);if(O&&O.length){const F=ti(O);M.setRealPlayer(F)}}),r.forEach(M=>{M.parentPlayer?M.syncPlayerEvents(M.parentPlayer):M.destroy()});for(let M=0;M<_.length;M++){const O=_[M],F=O[Vt];if(kr(O,Ja),F&&F.hasAnimation)continue;let X=[];if(a.size){let Dn=a.get(O);Dn&&Dn.length&&X.push(...Dn);let At=this.driver.query(O,Qd,!0);for(let oi=0;oi<At.length;oi++){let be=a.get(At[oi]);be&&be.length&&X.push(...be)}}const $e=X.filter(Dn=>!Dn.destroyed);$e.length?iF(this,O,$e):this.processLeaveNode(O)}return _.length=0,an.forEach(M=>{this.players.push(M),M.onDone(()=>{M.destroy();const O=this.players.indexOf(M);this.players.splice(O,1)}),M.play()}),an}elementContainsData(e,t){let i=!1;const r=t[Vt];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(t)&&(i=!0),this.playersByQueriedElement.has(t)&&(i=!0),this.statesByElement.has(t)&&(i=!0),this._fetchNamespace(e).elementContainsData(t)||i}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,i,r,s){let o=[];if(t){const a=this.playersByQueriedElement.get(e);a&&(o=a)}else{const a=this.playersByElement.get(e);if(a){const l=!s||s==eo;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||o.push(c)})}}return(i||r)&&(o=o.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),o}_beforeAnimationBuild(e,t,i){const s=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:t.triggerName;for(const l of t.timelines){const c=l.element,u=c!==s,d=Et(i,c,[]);this._getPreviousPlayers(c,u,o,a,t.toState).forEach(f=>{const p=f.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),f.destroy(),d.push(f)})}Ti(s,t.fromStyles)}_buildAnimation(e,t,i,r,s,o){const a=t.triggerName,l=t.element,c=[],u=new Set,d=new Set,h=t.timelines.map(p=>{const m=p.element;u.add(m);const _=m[Vt];if(_&&_.removedBeforeQueried)return new Qs(p.duration,p.delay);const y=m!==l,g=function rF(n){const e=[];return Eb(n,e),e}((i.get(m)||XP).map(ve=>ve.getRealPlayer())).filter(ve=>!!ve.element&&ve.element===m),E=s.get(m),T=o.get(m),H=Yv(0,this._normalizer,0,p.keyframes,E,T),me=this._buildPlayer(p,H,g);if(p.subTimeline&&r&&d.add(m),y){const ve=new hh(e,a,m);ve.setRealPlayer(me),c.push(ve)}return me});c.forEach(p=>{Et(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function eF(n,e,t){let i;if(n instanceof Map){if(i=n.get(e),i){if(i.length){const r=i.indexOf(t);i.splice(r,1)}0==i.length&&n.delete(e)}}else if(i=n[e],i){if(i.length){const r=i.indexOf(t);i.splice(r,1)}0==i.length&&delete n[e]}return i}(this.playersByQueriedElement,p.element,p))}),u.forEach(p=>Ht(p,rb));const f=ti(h);return f.onDestroy(()=>{u.forEach(p=>kr(p,rb)),bn(l,t.toStyles)}),d.forEach(p=>{Et(r,p,[]).push(f)}),f}_buildPlayer(e,t,i){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,i):new Qs(e.duration,e.delay)}}class hh{constructor(e,t,i){this.namespaceId=e,this.triggerName=t,this.element=i,this._player=new Qs,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(i=>Wd(e,t,void 0,i))}),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){Et(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 pl(n){return n&&1===n.nodeType}function vb(n,e){const t=n.style.display;return n.style.display=null!=e?e:"none",t}function bb(n,e,t,i,r){const s=[];t.forEach(l=>s.push(vb(l)));const o=[];i.forEach((l,c)=>{const u={};l.forEach(d=>{const h=u[d]=e.computeStyle(c,d,r);(!h||0==h.length)&&(c[Vt]=ZP,o.push(c))}),n.set(c,u)});let a=0;return t.forEach(l=>vb(l,s[a++])),o}function wb(n,e){const t=new Map;if(n.forEach(a=>t.set(a,[])),0==e.length)return t;const r=new Set(e),s=new Map;function o(a){if(!a)return 1;let l=s.get(a);if(l)return l;const c=a.parentNode;return l=t.has(c)?c:r.has(c)?1:o(c),s.set(a,l),l}return e.forEach(a=>{const l=o(a);1!==l&&t.get(l).push(a)}),t}function Ht(n,e){var t;null===(t=n.classList)||void 0===t||t.add(e)}function kr(n,e){var t;null===(t=n.classList)||void 0===t||t.remove(e)}function iF(n,e,t){ti(t).onDone(()=>n.processLeaveNode(e))}function Eb(n,e){for(let t=0;t<n.length;t++){const i=n[t];i instanceof Gv?Eb(i.players,e):e.push(i)}}function Db(n,e,t){const i=t.get(n);if(!i)return!1;let r=e.get(n);return r?i.forEach(s=>r.add(s)):e.set(n,i),t.delete(n),!0}class ml{constructor(e,t,i){this.bodyNode=e,this._driver=t,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,s)=>{},this._transitionEngine=new JP(e,t,i),this._timelineEngine=new WP(e,t,i),this._transitionEngine.onRemovalComplete=(r,s)=>this.onRemovalComplete(r,s)}registerTrigger(e,t,i,r,s){const o=e+"-"+r;let a=this._triggerCache[o];if(!a){const l=[],u=nh(this._driver,s,l,[]);if(l.length)throw function Gk(n,e){return new S(3404,q)}();a=function jP(n,e,t){return new $P(n,e,t)}(r,u,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,r,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,i,r){this._transitionEngine.insertNode(e,t,i,r)}onRemove(e,t,i,r){this._transitionEngine.removeNode(e,t,r||!1,i)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,i,r){if("@"==i.charAt(0)){const[s,o]=Kv(i);this._timelineEngine.command(s,t,o,r)}else this._transitionEngine.trigger(e,t,i,r)}listen(e,t,i,r,s){if("@"==i.charAt(0)){const[o,a]=Kv(i);return this._timelineEngine.listen(o,t,a,s)}return this._transitionEngine.listen(e,t,i,r,s)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let aF=(()=>{class n{constructor(t,i,r){this._element=t,this._startStyles=i,this._endStyles=r,this._state=0;let s=n.initialStylesByElement.get(t);s||n.initialStylesByElement.set(t,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&bn(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(bn(this._element,this._initialStyles),this._endStyles&&(bn(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(Ti(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ti(this._element,this._endStyles),this._endStyles=null),bn(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function fh(n){let e=null;const t=Object.keys(n);for(let i=0;i<t.length;i++){const r=t[i];lF(r)&&(e=e||{},e[r]=n[r])}return e}function lF(n){return"display"===n||"position"===n}class Cb{constructor(e,t,i,r){this.element=e,this.keyframes=t,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_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,i){return e.animate(t,i)}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){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e={};if(this.hasStarted()){const t=this._finalKeyframe;Object.keys(t).forEach(i=>{"offset"!=i&&(e[i]=this._finished?t[i]:cb(this.element,i))})}this.currentSnapshot=e}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}class cF{validateStyleProperty(e){return Jv(e)}matchesElement(e,t){return!1}containsElement(e,t){return eb(e,t)}getParentElement(e){return Kd(e)}query(e,t,i){return tb(e,t,i)}computeStyle(e,t,i){return window.getComputedStyle(e)[t]}animate(e,t,i,r,s,o=[]){const l={duration:i,delay:r,fill:0==r?"both":"forwards"};s&&(l.easing=s);const c={},u=o.filter(h=>h instanceof Cb);(function fP(n,e){return 0===n||0===e})(i,r)&&u.forEach(h=>{let f=h.currentSnapshot;Object.keys(f).forEach(p=>c[p]=f[p])}),t=function pP(n,e,t){const i=Object.keys(t);if(i.length&&e.length){let s=e[0],o=[];if(i.forEach(a=>{s.hasOwnProperty(a)||o.push(a),s[a]=t[a]}),o.length)for(var r=1;r<e.length;r++){let a=e[r];o.forEach(function(l){a[l]=cb(n,l)})}}return e}(e,t=t.map(h=>ni(h,!1)),c);const d=function oF(n,e){let t=null,i=null;return Array.isArray(e)&&e.length?(t=fh(e[0]),e.length>1&&(i=fh(e[e.length-1]))):e&&(t=fh(e)),t||i?new aF(n,t,i):null}(e,t);return new Cb(e,t,l,d)}}let uF=(()=>{class n extends Uv{constructor(t,i){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(i.body,{id:"0",encapsulation:Wt.None,styles:[],data:{animation:[]}})}build(t){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(t)?zv(t):t;return Sb(this._renderer,null,i,"register",[r]),new dF(i,this._renderer)}}return n.\u0275fac=function(t){return new(t||n)(v(Ps),v(G))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();class dF extends class Dk{}{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new hF(this._id,e,t||{},this._renderer)}}class hF{constructor(e,t,i,r){this.id=e,this.element=t,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(e,t){return this._renderer.listen(this.element,`@@${this.id}:${e}`,t)}_command(e,...t){return Sb(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"),this._started=!1}setPosition(e){this._command("setPosition",e)}getPosition(){var e,t;return null!==(t=null===(e=this._renderer.engine.players[+this.id])||void 0===e?void 0:e.getPosition())&&void 0!==t?t:0}}function Sb(n,e,t,i,r){return n.setProperty(e,`@@${t}:${i}`,r)}const Mb="@.disabled";let fF=(()=>{class n{constructor(t,i,r){this.delegate=t,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(s,o)=>{const a=null==o?void 0:o.parentNode(s);a&&o.removeChild(a,s)}}createRenderer(t,i){const s=this.delegate.createRenderer(t,i);if(!(t&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(s);return u||(u=new Tb("",s,this.engine),this._rendererCache.set(s,u)),u}const o=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,t);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(o,a,t,u.name,u)};return i.data.animation.forEach(l),new pF(this,a,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,i,r){t>=0&&t<this._microtaskId?this._zone.run(()=>i(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(s=>{const[o,a]=s;o(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,r]))}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 n.\u0275fac=function(t){return new(t||n)(v(Ps),v(ml),v(ie))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();class Tb{constructor(e,t,i){this.namespaceId=e,this.delegate=t,this.engine=i,this.destroyNode=this.delegate.destroyNode?r=>t.destroyNode(r):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,i,r=!0){this.delegate.insertBefore(e,t,i),this.engine.onInsert(this.namespaceId,t,e,r)}removeChild(e,t,i){this.engine.onRemove(this.namespaceId,t,this.delegate,i)}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,i,r){this.delegate.setAttribute(e,t,i,r)}removeAttribute(e,t,i){this.delegate.removeAttribute(e,t,i)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,i,r){this.delegate.setStyle(e,t,i,r)}removeStyle(e,t,i){this.delegate.removeStyle(e,t,i)}setProperty(e,t,i){"@"==t.charAt(0)&&t==Mb?this.disableAnimations(e,!!i):this.delegate.setProperty(e,t,i)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,i){return this.delegate.listen(e,t,i)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}class pF extends Tb{constructor(e,t,i,r){super(t,i,r),this.factory=e,this.namespaceId=t}setProperty(e,t,i){"@"==t.charAt(0)?"."==t.charAt(1)&&t==Mb?this.disableAnimations(e,i=void 0===i||!!i):this.engine.process(this.namespaceId,e,t.substr(1),i):this.delegate.setProperty(e,t,i)}listen(e,t,i){if("@"==t.charAt(0)){const r=function mF(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(e);let s=t.substr(1),o="";return"@"!=s.charAt(0)&&([s,o]=function gF(n){const e=n.indexOf(".");return[n.substring(0,e),n.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,r,s,o,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(e,t,i)}}let _F=(()=>{class n extends ml{constructor(t,i,r){super(t.body,i,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(t){return new(t||n)(v(G),v(Xd),v(ah))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();const _l=new I("AnimationModuleType"),Ib=[{provide:Uv,useClass:uF},{provide:ah,useFactory:function yF(){return new NP}},{provide:ml,useClass:_F},{provide:Ps,useFactory:function vF(n,e,t){return new fF(n,e,t)},deps:[Ga,ml,ie]}],xb=[{provide:Xd,useFactory:()=>new cF},{provide:_l,useValue:"BrowserAnimations"},...Ib],bF=[{provide:Xd,useClass:nb},{provide:_l,useValue:"NoopAnimations"},...Ib];let Ab=(()=>{class n{static withConfig(t){return{ngModule:n,providers:t.disableAnimations?bF:xb}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({providers:xb,imports:[Vd]}),n})();function Pr(n){return null!=n&&"false"!=`${n}`}function Ob(n,e=0){return function wF(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}(n)?Number(n):e}function yl(n){return Array.isArray(n)?n:[n]}function Re(n){return null==n?"":"string"==typeof n?n:`${n}px`}function Fr(n){return n instanceof Ie?n.nativeElement:n}function Rb(n,e,t,i){return Kr(t)&&(i=t,t=void 0),i?Rb(n,e,t).pipe(Ve(r=>Bi(r)?i(...r):i(r))):new le(r=>{kb(n,e,function s(o){r.next(arguments.length>1?Array.prototype.slice.call(arguments):o)},r,t)})}function kb(n,e,t,i,r){let s;if(function CF(n){return n&&"function"==typeof n.addEventListener&&"function"==typeof n.removeEventListener}(n)){const o=n;n.addEventListener(e,t,r),s=()=>o.removeEventListener(e,t,r)}else if(function DF(n){return n&&"function"==typeof n.on&&"function"==typeof n.off}(n)){const o=n;n.on(e,t),s=()=>o.off(e,t)}else if(function EF(n){return n&&"function"==typeof n.addListener&&"function"==typeof n.removeListener}(n)){const o=n;n.addListener(e,t),s=()=>o.removeListener(e,t)}else{if(!n||!n.length)throw new TypeError("Invalid event target");for(let o=0,a=n.length;o<a;o++)kb(n[o],e,t,i,r)}i.add(s)}new class MF extends sn{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let i,r=-1,s=t.length;e=e||t.shift();do{if(i=e.execute(e.state,e.delay))break}while(++r<s&&(e=t.shift()));if(this.active=!1,i){for(;++r<s&&(e=t.shift());)e.unsubscribe();throw i}}}(class SF extends Ya{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,i=0){return null!==i&&i>0?super.requestAsyncId(e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(()=>e.flush(null))))}recycleAsyncId(e,t,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(e,t,i);0===e.actions.length&&(cancelAnimationFrame(t),e.scheduled=void 0)}});let IF=1;const xF=Promise.resolve(),vl={};function Pb(n){return n in vl&&(delete vl[n],!0)}const Fb={setImmediate(n){const e=IF++;return vl[e]=!0,xF.then(()=>Pb(e)&&n()),e},clearImmediate(n){Pb(n)}},ph=new class OF extends sn{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let i,r=-1,s=t.length;e=e||t.shift();do{if(i=e.execute(e.state,e.delay))break}while(++r<s&&(e=t.shift()));if(this.active=!1,i){for(;++r<s&&(e=t.shift());)e.unsubscribe();throw i}}}(class AF extends Ya{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,i=0){return null!==i&&i>0?super.requestAsyncId(e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=Fb.setImmediate(e.flush.bind(e,null))))}recycleAsyncId(e,t,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(e,t,i);0===e.actions.length&&(Fb.clearImmediate(t),e.scheduled=void 0)}}),bl=new sn(Ya);class kF{constructor(e){this.durationSelector=e}call(e,t){return t.subscribe(new PF(e,this.durationSelector))}}class PF extends Qr{constructor(e,t){super(e),this.durationSelector=t,this.hasValue=!1}_next(e){if(this.value=e,this.hasValue=!0,!this.throttled){let t;try{const{durationSelector:r}=this;t=r(e)}catch(r){return this.destination.error(r)}const i=Jr(t,new Zr(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:e,hasValue:t,throttled:i}=this;i&&(this.remove(i),this.throttled=void 0,i.unsubscribe()),t&&(this.value=void 0,this.hasValue=!1,this.destination.next(e))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function Nb(n){return!Bi(n)&&n-parseFloat(n)+1>=0}function NF(n){const{index:e,period:t,subscriber:i}=n;if(i.next(e),!i.closed){if(-1===t)return i.complete();n.index=e+1,this.schedule(n,t)}}function Lb(n,e=bl){return function RF(n){return function(t){return t.lift(new kF(n))}}(()=>function FF(n=0,e,t){let i=-1;return Nb(e)?i=Number(e)<1?1:Number(e):Vi(e)&&(t=e),Vi(t)||(t=bl),new le(r=>{const s=Nb(n)?n:+n-t.now();return t.schedule(NF,s,{index:0,period:i,subscriber:r})})}(n,e))}function Nn(n,e){return function(i){return i.lift(new LF(n,e))}}class LF{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new BF(e,this.predicate,this.thisArg))}}class BF extends he{constructor(e,t,i){super(e),this.predicate=t,this.thisArg=i,this.count=0}_next(e){let t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(i){return void this.destination.error(i)}t&&this.destination.next(e)}}let mh;try{mh="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(n){mh=!1}let to,xi,_h,on=(()=>{class n{constructor(t){this._platformId=t,this.isBrowser=this._platformId?function wO(n){return n===fv}(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&&!mh)&&"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 n.\u0275fac=function(t){return new(t||n)(v(wa))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),gh=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({}),n})();function no(n){return function VF(){if(null==to&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>to=!0}))}finally{to=to||!1}return to}()?n:!!n.capture}function HF(){if(null==xi){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return xi=!1,xi;if("scrollBehavior"in document.documentElement.style)xi=!0;else{const n=Element.prototype.scrollTo;xi=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return xi}function Ai(n){return n.composedPath?n.composedPath()[0]:n.target}function yh(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}const UF=new I("cdk-dir-doc",{providedIn:"root",factory:function zF(){return zo(G)}}),WF=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let vh=(()=>{class n{constructor(t){if(this.value="ltr",this.change=new xe,t){const r=t.documentElement?t.documentElement.dir:null;this.value=function GF(n){const e=(null==n?void 0:n.toLowerCase())||"";return"auto"===e&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?WF.test(navigator.language)?"rtl":"ltr":"rtl"===e?"rtl":"ltr"}((t.body?t.body.dir:null)||r||"ltr")}}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(t){return new(t||n)(v(UF,8))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),io=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({}),n})(),Vb=(()=>{class n{constructor(t,i,r){this._ngZone=t,this._platform=i,this._scrolled=new de,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const i=this.scrollContainers.get(t);i&&(i.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new le(i=>{this._globalSubscription||this._addGlobalListener();const r=t>0?this._scrolled.pipe(Lb(t)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):ut()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(t,i){const r=this.getAncestorScrollContainers(t);return this.scrolled(i).pipe(Nn(s=>!s||r.indexOf(s)>-1))}getAncestorScrollContainers(t){const i=[];return this.scrollContainers.forEach((r,s)=>{this._scrollableContainsElement(s,t)&&i.push(s)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,i){let r=Fr(i),s=t.getElementRef().nativeElement;do{if(r==s)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Rb(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return n.\u0275fac=function(t){return new(t||n)(v(ie),v(on),v(G,8))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Hb=(()=>{class n{constructor(t,i,r){this._platform=t,this._change=new de,this._changeListener=s=>{this._change.next(s)},this._document=r,i.runOutsideAngular(()=>{if(t.isBrowser){const s=this._getWindow();s.addEventListener("resize",this._changeListener),s.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+r,right:t.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,i=this._getWindow(),r=t.documentElement,s=r.getBoundingClientRect();return{top:-s.top||t.body.scrollTop||i.scrollY||r.scrollTop||0,left:-s.left||t.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(Lb(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return n.\u0275fac=function(t){return new(t||n)(v(on),v(ie),v(G,8))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),El=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({}),n})(),jb=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({imports:[[io,gh,El],io,El]}),n})();class bh{attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;null!=e&&(this._attachedHost=null,e.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(e){this._attachedHost=e}}class $b extends bh{constructor(e,t,i,r){super(),this.component=e,this.viewContainerRef=t,this.injector=i,this.componentFactoryResolver=r}}class Ub extends bh{constructor(e,t,i){super(),this.templateRef=e,this.viewContainerRef=t,this.context=i}get origin(){return this.templateRef.elementRef}attach(e,t=this.context){return this.context=t,super.attach(e)}detach(){return this.context=void 0,super.detach()}}class KF extends bh{constructor(e){super(),this.element=e instanceof Ie?e.nativeElement:e}}class ZF extends class XF{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(e){return e instanceof $b?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof Ub?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof KF?(this._attachedPortal=e,this.attachDomPortal(e)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}{constructor(e,t,i,r,s){super(),this.outletElement=e,this._componentFactoryResolver=t,this._appRef=i,this._defaultInjector=r,this.attachDomPortal=o=>{const a=o.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=o,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=s}attachComponentPortal(e){const i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);let r;return e.viewContainerRef?(r=e.viewContainerRef.createComponent(i,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=i.create(e.injector||this._defaultInjector),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=e,r}attachTemplatePortal(e){let t=e.viewContainerRef,i=t.createEmbeddedView(e.templateRef,e.context);return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=t.indexOf(i);-1!==r&&t.remove(r)}),this._attachedPortal=e,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(e){return e.hostView.rootNodes[0]}}let QF=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({}),n})();const JF=(()=>{function n(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return n.prototype=Object.create(Error.prototype),n})();function Ln(n){return e=>0===n?Vv():e.lift(new eN(n))}class eN{constructor(e){if(this.total=e,this.total<0)throw new JF}call(e,t){return t.subscribe(new tN(e,this.total))}}class tN extends he{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){const t=this.total,i=++this.count;i<=t&&(this.destination.next(e),i===t&&(this.destination.complete(),this.unsubscribe()))}}function Ct(n){return e=>e.lift(new nN(n))}class nN{constructor(e){this.notifier=e}call(e,t){const i=new iN(e),r=Jr(this.notifier,new Zr(i));return r&&!i.seenValue?(i.add(r),t.subscribe(i)):i}}class iN extends Qr{constructor(e){super(e),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}const zb=HF();class rN{constructor(e,t){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=t}attach(){}enable(){if(this._canBeEnabled()){const e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=Re(-this._previousScrollPosition.left),e.style.top=Re(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const e=this._document.documentElement,i=e.style,r=this._document.body.style,s=i.scrollBehavior||"",o=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),zb&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),zb&&(i.scrollBehavior=s,r.scrollBehavior=o)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,i=this._viewportRuler.getViewportSize();return t.scrollHeight>i.height||t.scrollWidth>i.width}}class sN{constructor(e,t,i,r){this._scrollDispatcher=e,this._ngZone=t,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(e){this._overlayRef=e}enable(){if(this._scrollSubscription)return;const e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Wb{enable(){}disable(){}attach(){}}function wh(n,e){return e.some(t=>n.bottom<t.top||n.top>t.bottom||n.right<t.left||n.left>t.right)}function Gb(n,e){return e.some(t=>n.top<t.top||n.bottom>t.bottom||n.left<t.left||n.right>t.right)}class oN{constructor(e,t,i,r){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=i,this._config=r,this._scrollSubscription=null}attach(e){this._overlayRef=e}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();wh(t,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let aN=(()=>{class n{constructor(t,i,r,s){this._scrollDispatcher=t,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new Wb,this.close=o=>new sN(this._scrollDispatcher,this._ngZone,this._viewportRuler,o),this.block=()=>new rN(this._viewportRuler,this._document),this.reposition=o=>new oN(this._scrollDispatcher,this._viewportRuler,this._ngZone,o),this._document=s}}return n.\u0275fac=function(t){return new(t||n)(v(Vb),v(Hb),v(ie),v(G))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class qb{constructor(e){if(this.scrollStrategy=new Wb,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e){const t=Object.keys(e);for(const i of t)void 0!==e[i]&&(this[i]=e[i])}}}class lN{constructor(e,t){this.connectionPair=e,this.scrollableViewProperties=t}}class cN{constructor(e,t,i,r,s,o,a,l,c){this._portalOutlet=e,this._host=t,this._pane=i,this._config=r,this._ngZone=s,this._keyboardDispatcher=o,this._document=a,this._location=l,this._outsideClickDispatcher=c,this._backdropElement=null,this._backdropClick=new de,this._attachments=new de,this._detachments=new de,this._locationChanges=Z.EMPTY,this._backdropClickHandler=u=>this._backdropClick.next(u),this._keydownEvents=new de,this._outsidePointerEvents=new de,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(e){let t=this._portalOutlet.attach(e);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(Ln(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),t}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){var e;const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(e=this._host)||void 0===e||e.remove(),this._previousHostParent=this._pane=this._host=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config=Object.assign(Object.assign({},this._config),e),this._updateElementSize()}setDirection(e){this._config=Object.assign(Object.assign({},this._config),{direction:e}),this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){const e=this._config.direction;return e?"string"==typeof e?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const e=this._pane.style;e.width=Re(this._config.width),e.height=Re(this._config.height),e.minWidth=Re(this._config.minWidth),e.minHeight=Re(this._config.minHeight),e.maxWidth=Re(this._config.maxWidth),e.maxHeight=Re(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){const e="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(e)})}):this._backdropElement.classList.add(e)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const e=this._backdropElement;if(!e)return;let t;const i=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",i),this._disposeBackdrop(e)),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),clearTimeout(t)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",i)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(i,500))}_toggleClasses(e,t,i){const r=yl(t||[]).filter(s=>!!s);r.length&&(i?e.classList.add(...r):e.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const e=this._ngZone.onStable.pipe(Ct(Hi(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),e.unsubscribe())})})}_disposeScrollStrategy(){const e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}_disposeBackdrop(e){e&&(e.remove(),this._backdropElement===e&&(this._backdropElement=null))}}let Dl=(()=>{class n{constructor(t,i){this._platform=i,this._document=t}ngOnDestroy(){var t;null===(t=this._containerElement)||void 0===t||t.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container";if(this._platform.isBrowser||yh()){const r=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let s=0;s<r.length;s++)r[s].remove()}const i=this._document.createElement("div");i.classList.add(t),yh()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}}return n.\u0275fac=function(t){return new(t||n)(v(G),v(on))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Yb="cdk-overlay-connected-position-bounding-box",uN=/([A-Za-z%]+)$/;class dN{constructor(e,t,i,r,s){this._viewportRuler=t,this._document=i,this._platform=r,this._overlayContainer=s,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new de,this._resizeSubscription=Z.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(e)}get positions(){return this._preferredPositions}attach(e){this._validatePositions(),e.hostElement.classList.add(Yb),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._originRect,t=this._overlayRect,i=this._viewportRect,r=this._containerRect,s=[];let o;for(let a of this._preferredPositions){let l=this._getOriginPoint(e,r,a),c=this._getOverlayPoint(l,t,a),u=this._getOverlayFit(c,t,i,a);if(u.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,l);this._canFitWithFlexibleDimensions(u,c,i)?s.push({position:a,origin:l,overlayRect:t,boundingBoxRect:this._calculateBoundingBoxRect(l,a)}):(!o||o.overlayFit.visibleArea<u.visibleArea)&&(o={overlayFit:u,overlayPoint:c,originPoint:l,position:a,overlayRect:t})}if(s.length){let a=null,l=-1;for(const c of s){const u=c.boundingBoxRect.width*c.boundingBoxRect.height*(c.position.weight||1);u>l&&(l=u,a=c)}return this._isPushed=!1,void this._applyPosition(a.position,a.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(o.position,o.originPoint);this._applyPosition(o.position,o.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Oi(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Yb),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._lastPosition||this._preferredPositions[0],t=this._getOriginPoint(this._originRect,this._containerRect,e);this._applyPosition(e,t)}}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=!0){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=!0){return this._growAfterOpen=e,this}withPush(e=!0){return this._canPush=e,this}withLockedPosition(e=!0){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}_getOriginPoint(e,t,i){let r,s;if("center"==i.originX)r=e.left+e.width/2;else{const o=this._isRtl()?e.right:e.left,a=this._isRtl()?e.left:e.right;r="start"==i.originX?o:a}return t.left<0&&(r-=t.left),s="center"==i.originY?e.top+e.height/2:"top"==i.originY?e.top:e.bottom,t.top<0&&(s-=t.top),{x:r,y:s}}_getOverlayPoint(e,t,i){let r,s;return r="center"==i.overlayX?-t.width/2:"start"===i.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,s="center"==i.overlayY?-t.height/2:"top"==i.overlayY?0:-t.height,{x:e.x+r,y:e.y+s}}_getOverlayFit(e,t,i,r){const s=Xb(t);let{x:o,y:a}=e,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(o+=l),c&&(a+=c);let h=0-a,f=a+s.height-i.height,p=this._subtractOverflows(s.width,0-o,o+s.width-i.width),m=this._subtractOverflows(s.height,h,f),_=p*m;return{visibleArea:_,isCompletelyWithinViewport:s.width*s.height===_,fitsInViewportVertically:m===s.height,fitsInViewportHorizontally:p==s.width}}_canFitWithFlexibleDimensions(e,t,i){if(this._hasFlexibleDimensions){const r=i.bottom-t.y,s=i.right-t.x,o=Kb(this._overlayRef.getConfig().minHeight),a=Kb(this._overlayRef.getConfig().minWidth),c=e.fitsInViewportHorizontally||null!=a&&a<=s;return(e.fitsInViewportVertically||null!=o&&o<=r)&&c}return!1}_pushOverlayOnScreen(e,t,i){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};const r=Xb(t),s=this._viewportRect,o=Math.max(e.x+r.width-s.width,0),a=Math.max(e.y+r.height-s.height,0),l=Math.max(s.top-i.top-e.y,0),c=Math.max(s.left-i.left-e.x,0);let u=0,d=0;return u=r.width<=s.width?c||-o:e.x<this._viewportMargin?s.left-i.left-e.x:0,d=r.height<=s.height?l||-a:e.y<this._viewportMargin?s.top-i.top-e.y:0,this._previousPushAmount={x:u,y:d},{x:e.x+u,y:e.y+d}}_applyPosition(e,t){if(this._setTransformOrigin(e),this._setOverlayElementStyles(t,e),this._setBoundingBoxStyles(t,e),e.panelClass&&this._addPanelClasses(e.panelClass),this._lastPosition=e,this._positionChanges.observers.length){const i=this._getScrollVisibility(),r=new lN(e,i);this._positionChanges.next(r)}this._isInitialRender=!1}_setTransformOrigin(e){if(!this._transformOriginSelector)return;const t=this._boundingBox.querySelectorAll(this._transformOriginSelector);let i,r=e.overlayY;i="center"===e.overlayX?"center":this._isRtl()?"start"===e.overlayX?"right":"left":"start"===e.overlayX?"left":"right";for(let s=0;s<t.length;s++)t[s].style.transformOrigin=`${i} ${r}`}_calculateBoundingBoxRect(e,t){const i=this._viewportRect,r=this._isRtl();let s,o,a,u,d,h;if("top"===t.overlayY)o=e.y,s=i.height-o+this._viewportMargin;else if("bottom"===t.overlayY)a=i.height-e.y+2*this._viewportMargin,s=i.height-a+this._viewportMargin;else{const f=Math.min(i.bottom-e.y+i.top,e.y),p=this._lastBoundingBoxSize.height;s=2*f,o=e.y-f,s>p&&!this._isInitialRender&&!this._growAfterOpen&&(o=e.y-p/2)}if("end"===t.overlayX&&!r||"start"===t.overlayX&&r)h=i.width-e.x+this._viewportMargin,u=e.x-this._viewportMargin;else if("start"===t.overlayX&&!r||"end"===t.overlayX&&r)d=e.x,u=i.right-e.x;else{const f=Math.min(i.right-e.x+i.left,e.x),p=this._lastBoundingBoxSize.width;u=2*f,d=e.x-f,u>p&&!this._isInitialRender&&!this._growAfterOpen&&(d=e.x-p/2)}return{top:o,left:d,bottom:a,right:h,width:u,height:s}}_setBoundingBoxStyles(e,t){const i=this._calculateBoundingBoxRect(e,t);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const s=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;r.height=Re(i.height),r.top=Re(i.top),r.bottom=Re(i.bottom),r.width=Re(i.width),r.left=Re(i.left),r.right=Re(i.right),r.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",r.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",s&&(r.maxHeight=Re(s)),o&&(r.maxWidth=Re(o))}this._lastBoundingBoxSize=i,Oi(this._boundingBox.style,r)}_resetBoundingBoxStyles(){Oi(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Oi(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,t){const i={},r=this._hasExactPosition(),s=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(r){const u=this._viewportRuler.getViewportScrollPosition();Oi(i,this._getExactOverlayY(t,e,u)),Oi(i,this._getExactOverlayX(t,e,u))}else i.position="static";let a="",l=this._getOffset(t,"x"),c=this._getOffset(t,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),i.transform=a.trim(),o.maxHeight&&(r?i.maxHeight=Re(o.maxHeight):s&&(i.maxHeight="")),o.maxWidth&&(r?i.maxWidth=Re(o.maxWidth):s&&(i.maxWidth="")),Oi(this._pane.style,i)}_getExactOverlayY(e,t,i){let r={top:"",bottom:""},s=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),"bottom"===e.overlayY?r.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":r.top=Re(s.y),r}_getExactOverlayX(e,t,i){let o,r={left:"",right:""},s=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),o=this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left","right"===o?r.right=this._document.documentElement.clientWidth-(s.x+this._overlayRect.width)+"px":r.left=Re(s.x),r}_getScrollVisibility(){const e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Gb(e,i),isOriginOutsideView:wh(e,i),isOverlayClipped:Gb(t,i),isOverlayOutsideView:wh(t,i)}}_subtractOverflows(e,...t){return t.reduce((i,r)=>i-Math.max(r,0),e)}_getNarrowedViewportRect(){const e=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+e-this._viewportMargin,bottom:i.top+t-this._viewportMargin,width:e-2*this._viewportMargin,height:t-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,t){return"x"===t?null==e.offsetX?this._offsetX:e.offsetX:null==e.offsetY?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&yl(e).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){const e=this._origin;if(e instanceof Ie)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();const t=e.width||0,i=e.height||0;return{top:e.y,bottom:e.y+i,left:e.x,right:e.x+t,height:i,width:t}}}function Oi(n,e){for(let t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}function Kb(n){if("number"!=typeof n&&null!=n){const[e,t]=n.split(uN);return t&&"px"!==t?null:parseFloat(e)}return n||null}function Xb(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}const Zb="cdk-global-overlay-wrapper";class hN{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(e){const t=e.getConfig();this._overlayRef=e,this._width&&!t.width&&e.updateSize({width:this._width}),this._height&&!t.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(Zb),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._rightOffset="",this._leftOffset=e,this._justifyContent="flex-start",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._leftOffset="",this._rightOffset=e,this._justifyContent="flex-end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._justifyContent="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:r,height:s,maxWidth:o,maxHeight:a}=i,l=!("100%"!==r&&"100vw"!==r||o&&"100%"!==o&&"100vw"!==o),c=!("100%"!==s&&"100vh"!==s||a&&"100%"!==a&&"100vh"!==a);e.position=this._cssPosition,e.marginLeft=l?"0":this._leftOffset,e.marginTop=c?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,l?t.justifyContent="flex-start":"center"===this._justifyContent?t.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?t.justifyContent="flex-end":"flex-end"===this._justifyContent&&(t.justifyContent="flex-start"):t.justifyContent=this._justifyContent,t.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,i=t.style;t.classList.remove(Zb),i.justifyContent=i.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}let fN=(()=>{class n{constructor(t,i,r,s){this._viewportRuler=t,this._document=i,this._platform=r,this._overlayContainer=s}global(){return new hN}flexibleConnectedTo(t){return new dN(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(t){return new(t||n)(v(Hb),v(G),v(on),v(Dl))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Qb=(()=>{class n{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const i=this._attachedOverlays.indexOf(t);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}}return n.\u0275fac=function(t){return new(t||n)(v(G))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),pN=(()=>{class n extends Qb{constructor(t){super(t),this._keydownListener=i=>{const r=this._attachedOverlays;for(let s=r.length-1;s>-1;s--)if(r[s]._keydownEvents.observers.length>0){r[s]._keydownEvents.next(i);break}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return n.\u0275fac=function(t){return new(t||n)(v(G))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),mN=(()=>{class n extends Qb{constructor(t,i){super(t),this._platform=i,this._cursorStyleIsSet=!1,this._pointerDownListener=r=>{this._pointerDownEventTarget=Ai(r)},this._clickListener=r=>{const s=Ai(r),o="click"===r.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:s;this._pointerDownEventTarget=null;const a=this._attachedOverlays.slice();for(let l=a.length-1;l>-1;l--){const c=a[l];if(!(c._outsidePointerEvents.observers.length<1)&&c.hasAttached()){if(c.overlayElement.contains(s)||c.overlayElement.contains(o))break;c._outsidePointerEvents.next(r)}}}}add(t){if(super.add(t),!this._isAttached){const i=this._document.body;i.addEventListener("pointerdown",this._pointerDownListener,!0),i.addEventListener("click",this._clickListener,!0),i.addEventListener("auxclick",this._clickListener,!0),i.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const t=this._document.body;t.removeEventListener("pointerdown",this._pointerDownListener,!0),t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return n.\u0275fac=function(t){return new(t||n)(v(G),v(on))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),gN=0,Lr=(()=>{class n{constructor(t,i,r,s,o,a,l,c,u,d,h){this.scrollStrategies=t,this._overlayContainer=i,this._componentFactoryResolver=r,this._positionBuilder=s,this._keyboardDispatcher=o,this._injector=a,this._ngZone=l,this._document=c,this._directionality=u,this._location=d,this._outsideClickDispatcher=h}create(t){const i=this._createHostElement(),r=this._createPaneElement(i),s=this._createPortalOutlet(r),o=new qb(t);return o.direction=o.direction||this._directionality.value,new cN(s,i,r,o,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const i=this._document.createElement("div");return i.id="cdk-overlay-"+gN++,i.classList.add("cdk-overlay-pane"),t.appendChild(i),i}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(Ea)),new ZF(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(t){return new(t||n)(v(aN),v(Dl),v(Xn),v(fN),v(pN),v(tt),v(ie),v(G),v(vh),v(ev),v(mN))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();const vN={provide:new I("cdk-connected-overlay-scroll-strategy"),deps:[Lr],useFactory:function yN(n){return()=>n.scrollStrategies.reposition()}};let Jb=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({providers:[Lr,vN],imports:[[io,QF,jb],jb]}),n})();class bN extends de{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return t&&!t.closed&&e.next(this._value),t}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new li;return this._value}next(e){super.next(this._value=e)}}function Ch(n,...e){return e.length?e.some(t=>n[t]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}function Bn(){}function St(n,e,t){return function(r){return r.lift(new FN(n,e,t))}}class FN{constructor(e,t,i){this.nextOrObserver=e,this.error=t,this.complete=i}call(e,t){return t.subscribe(new NN(e,this.nextOrObserver,this.error,this.complete))}}class NN extends he{constructor(e,t,i,r){super(e),this._tapNext=Bn,this._tapError=Bn,this._tapComplete=Bn,this._tapError=i||Bn,this._tapComplete=r||Bn,Kr(t)?(this._context=this,this._tapNext=t):t&&(this._context=t,this._tapNext=t.next||Bn,this._tapError=t.error||Bn,this._tapComplete=t.complete||Bn)}_next(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}function rw(n,e=bl){return t=>t.lift(new LN(n,e))}class LN{constructor(e,t){this.dueTime=e,this.scheduler=t}call(e,t){return t.subscribe(new BN(e,this.dueTime,this.scheduler))}}class BN extends he{constructor(e,t,i){super(e),this.dueTime=t,this.scheduler=i,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(VN,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 VN(n){n.debouncedNext()}function sw(n){return e=>e.lift(new HN(n))}class HN{constructor(e){this.total=e}call(e,t){return t.subscribe(new jN(e,this.total))}}class jN extends he{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){++this.count>this.total&&this.destination.next(e)}}class UN{constructor(e,t){this.compare=e,this.keySelector=t}call(e,t){return t.subscribe(new zN(e,this.compare,this.keySelector))}}class zN extends he{constructor(e,t,i){super(e),this.keySelector=i,this.hasKey=!1,"function"==typeof t&&(this.compare=t)}compare(e,t){return e===t}_next(e){let t;try{const{keySelector:r}=this;t=r?r(e):e}catch(r){return this.destination.error(r)}let i=!1;if(this.hasKey)try{const{compare:r}=this;i=r(this.key,t)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=t,this.destination.next(e))}}let WN=(()=>{class n{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),GN=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({providers:[WN]}),n})();function Cl(n,e){return(n.getAttribute(e)||"").match(/\S+/g)||[]}const aw="cdk-describedby-message-container",lw="cdk-describedby-message",Sl="cdk-describedby-host";let KN=0;const wn=new Map;let Mt=null,XN=(()=>{class n{constructor(t){this._document=t}describe(t,i,r){if(!this._canBeDescribed(t,i))return;const s=Sh(i,r);"string"!=typeof i?(cw(i),wn.set(s,{messageElement:i,referenceCount:0})):wn.has(s)||this._createMessageElement(i,r),this._isElementDescribedByMessage(t,s)||this._addMessageReference(t,s)}removeDescription(t,i,r){if(!i||!this._isElementNode(t))return;const s=Sh(i,r);if(this._isElementDescribedByMessage(t,s)&&this._removeMessageReference(t,s),"string"==typeof i){const o=wn.get(s);o&&0===o.referenceCount&&this._deleteMessageElement(s)}Mt&&0===Mt.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const t=this._document.querySelectorAll(`[${Sl}]`);for(let i=0;i<t.length;i++)this._removeCdkDescribedByReferenceIds(t[i]),t[i].removeAttribute(Sl);Mt&&this._deleteMessagesContainer(),wn.clear()}_createMessageElement(t,i){const r=this._document.createElement("div");cw(r),r.textContent=t,i&&r.setAttribute("role",i),this._createMessagesContainer(),Mt.appendChild(r),wn.set(Sh(t,i),{messageElement:r,referenceCount:0})}_deleteMessageElement(t){var i;const r=wn.get(t);null===(i=null==r?void 0:r.messageElement)||void 0===i||i.remove(),wn.delete(t)}_createMessagesContainer(){if(!Mt){const t=this._document.getElementById(aw);null==t||t.remove(),Mt=this._document.createElement("div"),Mt.id=aw,Mt.style.visibility="hidden",Mt.classList.add("cdk-visually-hidden"),this._document.body.appendChild(Mt)}}_deleteMessagesContainer(){Mt&&(Mt.remove(),Mt=null)}_removeCdkDescribedByReferenceIds(t){const i=Cl(t,"aria-describedby").filter(r=>0!=r.indexOf(lw));t.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(t,i){const r=wn.get(i);(function qN(n,e,t){const i=Cl(n,e);i.some(r=>r.trim()==t.trim())||(i.push(t.trim()),n.setAttribute(e,i.join(" ")))})(t,"aria-describedby",r.messageElement.id),t.setAttribute(Sl,""),r.referenceCount++}_removeMessageReference(t,i){const r=wn.get(i);r.referenceCount--,function YN(n,e,t){const r=Cl(n,e).filter(s=>s!=t.trim());r.length?n.setAttribute(e,r.join(" ")):n.removeAttribute(e)}(t,"aria-describedby",r.messageElement.id),t.removeAttribute(Sl)}_isElementDescribedByMessage(t,i){const r=Cl(t,"aria-describedby"),s=wn.get(i),o=s&&s.messageElement.id;return!!o&&-1!=r.indexOf(o)}_canBeDescribed(t,i){if(!this._isElementNode(t))return!1;if(i&&"object"==typeof i)return!0;const r=null==i?"":`${i}`.trim(),s=t.getAttribute("aria-label");return!(!r||s&&s.trim()===r)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return n.\u0275fac=function(t){return new(t||n)(v(G))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Sh(n,e){return"string"==typeof n?`${e||""}/${n}`:n}function cw(n){n.id||(n.id=`${lw}-${KN++}`)}class QN extends class ZN{constructor(e){this._items=e,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new de,this._typeaheadSubscription=Z.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new de,this.change=new de,e instanceof Ar&&e.changes.subscribe(t=>{if(this._activeItem){const r=t.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}})}skipPredicate(e){return this._skipPredicateFn=e,this}withWrap(e=!0){return this._wrap=e,this}withVerticalOrientation(e=!0){return this._vertical=e,this}withHorizontalOrientation(e){return this._horizontal=e,this}withAllowedModifierKeys(e){return this._allowedModifierKeys=e,this}withTypeAhead(e=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(St(t=>this._pressedLetters.push(t)),rw(e),Nn(()=>this._pressedLetters.length>0),Ve(()=>this._pressedLetters.join(""))).subscribe(t=>{const i=this._getItemsArray();for(let r=1;r<i.length+1;r++){const s=(this._activeItemIndex+r)%i.length,o=i[s];if(!this._skipPredicateFn(o)&&0===o.getLabel().toUpperCase().trim().indexOf(t)){this.setActiveItem(s);break}}this._pressedLetters=[]}),this}withHomeAndEnd(e=!0){return this._homeAndEnd=e,this}setActiveItem(e){const t=this._activeItem;this.updateActiveItem(e),this._activeItem!==t&&this.change.next(this._activeItemIndex)}onKeydown(e){const t=e.keyCode,r=["altKey","ctrlKey","metaKey","shiftKey"].every(s=>!e[s]||this._allowedModifierKeys.indexOf(s)>-1);switch(t){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;default:return void((r||Ch(e,"shiftKey"))&&(e.key&&1===e.key.length?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(t>=65&&t<=90||t>=48&&t<=57)&&this._letterKeyStream.next(String.fromCharCode(t))))}this._pressedLetters=[],e.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(e){const t=this._getItemsArray(),i="number"==typeof e?e:t.indexOf(e),r=t[i];this._activeItem=null==r?null:r,this._activeItemIndex=i}_setActiveItemByDelta(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}_setActiveInWrapMode(e){const t=this._getItemsArray();for(let i=1;i<=t.length;i++){const r=(this._activeItemIndex+e*i+t.length)%t.length;if(!this._skipPredicateFn(t[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}_setActiveItemByIndex(e,t){const i=this._getItemsArray();if(i[e]){for(;this._skipPredicateFn(i[e]);)if(!i[e+=t])return;this.setActiveItem(e)}}_getItemsArray(){return this._items instanceof Ar?this._items.toArray():this._items}}{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(e){return this._origin=e,this}setActiveItem(e){super.setActiveItem(e),this.activeItem&&this.activeItem.focus(this._origin)}}function Mh(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}function Th(n){const e=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!e||-1!==e.identifier||null!=e.radiusX&&1!==e.radiusX||null!=e.radiusY&&1!==e.radiusY)}const s1=new I("cdk-input-modality-detector-options"),o1={ignoreKeys:[18,17,224,91,16]},Br=no({passive:!0,capture:!0});let a1=(()=>{class n{constructor(t,i,r,s){this._platform=t,this._mostRecentTarget=null,this._modality=new bN(null),this._lastTouchMs=0,this._onKeydown=o=>{var a,l;(null===(l=null===(a=this._options)||void 0===a?void 0:a.ignoreKeys)||void 0===l?void 0:l.some(c=>c===o.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=Ai(o))},this._onMousedown=o=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Mh(o)?"keyboard":"mouse"),this._mostRecentTarget=Ai(o))},this._onTouchstart=o=>{Th(o)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Ai(o))},this._options=Object.assign(Object.assign({},o1),s),this.modalityDetected=this._modality.pipe(sw(1)),this.modalityChanged=this.modalityDetected.pipe(function $N(n,e){return t=>t.lift(new UN(n,e))}()),t.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,Br),r.addEventListener("mousedown",this._onMousedown,Br),r.addEventListener("touchstart",this._onTouchstart,Br)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Br),document.removeEventListener("mousedown",this._onMousedown,Br),document.removeEventListener("touchstart",this._onTouchstart,Br))}}return n.\u0275fac=function(t){return new(t||n)(v(on),v(ie),v(G),v(s1,8))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const c1=new I("cdk-focus-monitor-default-options"),Ml=no({passive:!0,capture:!0});let Tl=(()=>{class n{constructor(t,i,r,s,o){this._ngZone=t,this._platform=i,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new de,this._rootNodeFocusAndBlurListener=a=>{const l=Ai(a),c="focus"===a.type?this._onFocus:this._onBlur;for(let u=l;u;u=u.parentElement)c.call(this,a,u)},this._document=s,this._detectionMode=(null==o?void 0:o.detectionMode)||0}monitor(t,i=!1){const r=Fr(t);if(!this._platform.isBrowser||1!==r.nodeType)return ut(null);const s=function $F(n){if(function jF(){if(null==_h){const n="undefined"!=typeof document?document.head:null;_h=!(!n||!n.createShadowRoot&&!n.attachShadow)}return _h}()){const e=n.getRootNode?n.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}(r)||this._getDocument(),o=this._elementInfo.get(r);if(o)return i&&(o.checkChildren=!0),o.subject;const a={checkChildren:i,subject:new de,rootNode:s};return this._elementInfo.set(r,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(t){const i=Fr(t),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(t,i,r){const s=Fr(t);s===this._getDocument().activeElement?this._getClosestElementsInfo(s).forEach(([a,l])=>this._originChanged(a,i,l)):(this._setOrigin(i),"function"==typeof s.focus&&s.focus(r))}ngOnDestroy(){this._elementInfo.forEach((t,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(t){return 1===this._detectionMode||!!(null==t?void 0:t.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(t,i){t.classList.toggle("cdk-focused",!!i),t.classList.toggle("cdk-touch-focused","touch"===i),t.classList.toggle("cdk-keyboard-focused","keyboard"===i),t.classList.toggle("cdk-mouse-focused","mouse"===i),t.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(t,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=t,this._originFromTouchInteraction="touch"===t&&i,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(t,i){const r=this._elementInfo.get(i),s=Ai(t);!r||!r.checkChildren&&i!==s||this._originChanged(i,this._getFocusOrigin(s),r)}_onBlur(t,i){const r=this._elementInfo.get(i);!r||r.checkChildren&&t.relatedTarget instanceof Node&&i.contains(t.relatedTarget)||(this._setClasses(i),this._emitOrigin(r.subject,null))}_emitOrigin(t,i){this._ngZone.run(()=>t.next(i))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const i=t.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,Ml),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,Ml)}),this._rootNodeFocusListenerCount.set(i,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Ct(this._stopInputModalityDetector)).subscribe(s=>{this._setOrigin(s,!0)}))}_removeGlobalListeners(t){const i=t.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Ml),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Ml),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(t,i,r){this._setClasses(t,i),this._emitOrigin(r.subject,i),this._lastFocusOrigin=i}_getClosestElementsInfo(t){const i=[];return this._elementInfo.forEach((r,s)=>{(s===t||r.checkChildren&&s.contains(t))&&i.push([s,r])}),i}}return n.\u0275fac=function(t){return new(t||n)(v(ie),v(on),v(a1),v(G,8),v(c1,8))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const hw="cdk-high-contrast-black-on-white",fw="cdk-high-contrast-white-on-black",Ih="cdk-high-contrast-active";let pw=(()=>{class n{constructor(t,i){this._platform=t,this._document=i}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(t):null,s=(r&&r.backgroundColor||"").replace(/ /g,"");switch(t.remove(),s){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove(Ih),t.remove(hw),t.remove(fw),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?(t.add(Ih),t.add(hw)):2===i&&(t.add(Ih),t.add(fw))}}}return n.\u0275fac=function(t){return new(t||n)(v(on),v(G))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),u1=(()=>{class n{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return n.\u0275fac=function(t){return new(t||n)(v(pw))},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({imports:[[gh,GN]]}),n})();const h1=new I("mat-sanity-checks",{providedIn:"root",factory:function d1(){return!0}});let En=(()=>{class n{constructor(t,i,r){this._sanityChecks=i,this._document=r,this._hasDoneGlobalChecks=!1,t._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(t){return!yh()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[t])}}return n.\u0275fac=function(t){return new(t||n)(v(pw),v(h1,8),v(G))},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({imports:[[io],io]}),n})();function gw(n){return class extends n{constructor(...e){super(...e),this._disabled=!1}get disabled(){return this._disabled}set disabled(e){this._disabled=Pr(e)}}}function _w(n,e){return class extends n{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const i=t||this.defaultColor;i!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),i&&this._elementRef.nativeElement.classList.add(`mat-${i}`),this._color=i)}}}function yw(n){return class extends n{constructor(...e){super(...e),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=Pr(e)}}}class p1{constructor(e,t,i){this._renderer=e,this.element=t,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const vw={enterDuration:225,exitDuration:150},xh=no({passive:!0}),bw=["mousedown","touchstart"],ww=["mouseup","mouseleave","touchend","touchcancel"];class g1{constructor(e,t,i,r){this._target=e,this._ngZone=t,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Fr(i))}fadeInRipple(e,t,i={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},vw),i.animation);i.centered&&(e=r.left+r.width/2,t=r.top+r.height/2);const o=i.radius||function y1(n,e,t){const i=Math.max(Math.abs(n-t.left),Math.abs(n-t.right)),r=Math.max(Math.abs(e-t.top),Math.abs(e-t.bottom));return Math.sqrt(i*i+r*r)}(e,t,r),a=e-r.left,l=t-r.top,c=s.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=a-o+"px",u.style.top=l-o+"px",u.style.height=2*o+"px",u.style.width=2*o+"px",null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u),function _1(n){window.getComputedStyle(n).getPropertyValue("opacity")}(u),u.style.transform="scale(1)";const d=new p1(this,u,i);return d.state=0,this._activeRipples.add(d),i.persistent||(this._mostRecentTransientRipple=d),this._runTimeoutOutsideZone(()=>{const h=d===this._mostRecentTransientRipple;d.state=1,!i.persistent&&(!h||!this._isPointerDown)&&d.fadeOut()},c),d}fadeOutRipple(e){const t=this._activeRipples.delete(e);if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!t)return;const i=e.element,r=Object.assign(Object.assign({},vw),e.config.animation);i.style.transitionDuration=`${r.exitDuration}ms`,i.style.opacity="0",e.state=2,this._runTimeoutOutsideZone(()=>{e.state=3,i.remove()},r.exitDuration)}fadeOutAll(){this._activeRipples.forEach(e=>e.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(e=>{e.config.persistent||e.fadeOut()})}setupTriggerEvents(e){const t=Fr(e);!t||t===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=t,this._registerEvents(bw))}handleEvent(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(ww),this._pointerUpEventsRegistered=!0)}_onMousedown(e){const t=Mh(e),i=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!t&&!i&&(this._isPointerDown=!0,this.fadeInRipple(e.clientX,e.clientY,this._target.rippleConfig))}_onTouchStart(e){if(!this._target.rippleDisabled&&!Th(e)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const t=e.changedTouches;for(let i=0;i<t.length;i++)this.fadeInRipple(t[i].clientX,t[i].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(t=>{this._triggerElement.addEventListener(t,this,xh)})})}_removeTriggerEvents(){this._triggerElement&&(bw.forEach(e=>{this._triggerElement.removeEventListener(e,this,xh)}),this._pointerUpEventsRegistered&&ww.forEach(e=>{this._triggerElement.removeEventListener(e,this,xh)}))}}const v1=new I("mat-ripple-global-options");let Ah=(()=>{class n{constructor(t,i,r,s,o){this._elementRef=t,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new g1(this,i,t,r)}get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}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(t,i=0,r){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,i,Object.assign(Object.assign({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return n.\u0275fac=function(t){return new(t||n)(w(Ie),w(ie),w(on),w(v1,8),w(_l,8))},n.\u0275dir=Ce({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,i){2&t&&_n("mat-ripple-unbounded",i.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),n})(),Ew=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({imports:[[En,gh],En]}),n})();const b1=["mat-button",""],w1=["*"],D1=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],C1=_w(gw(yw(class{constructor(n){this._elementRef=n}})));let S1=(()=>{class n extends C1{constructor(t,i,r){super(t),this._focusMonitor=i,this._animationMode=r,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const s of D1)this._hasHostAttributes(s)&&this._getHostElement().classList.add(s);t.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(t,i){t?this._focusMonitor.focusVia(this._getHostElement(),t,i):this._getHostElement().focus(i)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(i=>this._getHostElement().hasAttribute(i))}}return n.\u0275fac=function(t){return new(t||n)(w(Ie),w(Tl),w(_l,8))},n.\u0275cmp=Gt({type:n,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(t,i){if(1&t&&Bs(Ah,5),2&t){let r;Zn(r=Qn())&&(i.ripple=r.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,i){2&t&&(We("disabled",i.disabled||null),_n("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-button-disabled",i.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[An],attrs:b1,ngContentSelectors:w1,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,i){1&t&&(Er(),ee(0,"span",0),vi(1),se(),On(2,"span",1)(3,"span",2)),2&t&&(k(2),_n("mat-button-ripple-round",i.isRoundButton||i.isIconButton),A("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i.isIconButton)("matRippleTrigger",i._getHostElement()))},directives:[Ah],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),n})(),M1=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({imports:[[Ew,En],En]}),n})();function Il(n,e){return new le(t=>{const i=n.length;if(0===i)return void t.complete();const r=new Array(i);let s=0,o=0;for(let a=0;a<i;a++){const l=jl(n[a]);let c=!1;t.add(l.subscribe({next:u=>{c||(c=!0,o++),r[a]=u},error:u=>t.error(u),complete:()=>{s++,(s===i||!c)&&(o===i&&t.next(e?e.reduce((u,d,h)=>(u[d]=r[h],u),{}):r),t.complete())}}))}})}function Dw(n){return function(t){const i=new I1(n),r=t.lift(i);return i.caught=r}}class I1{constructor(e){this.selector=e}call(e,t){return t.subscribe(new x1(e,this.selector,this.caught))}}class x1 extends Qr{constructor(e,t,i){super(e),this.selector=t,this.caught=i}error(e){if(!this.isStopped){let t;try{t=this.selector(e,this.caught)}catch(s){return void super.error(s)}this._unsubscribeAndRecycle();const i=new Zr(this);this.add(i);const r=Jr(t,i);r!==i&&this.add(r)}}}class O1{constructor(e){this.callback=e}call(e,t){return t.subscribe(new R1(e,this.callback))}}class R1 extends he{constructor(e,t){super(e),this.add(new Z(t))}}class P1{}class ii{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?()=>{this.headers=new Map,e.split("\n").forEach(t=>{const i=t.indexOf(":");if(i>0){const r=t.slice(0,i),s=r.toLowerCase(),o=t.slice(i+1).trim();this.maybeSetNormalizedName(r,s),this.headers.has(s)?this.headers.get(s).push(o):this.headers.set(s,[o])}})}:()=>{this.headers=new Map,Object.keys(e).forEach(t=>{let i=e[t];const r=t.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(r,i),this.maybeSetNormalizedName(t,r))})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,t){return this.clone({name:e,value:t,op:"a"})}set(e,t){return this.clone({name:e,value:t,op:"s"})}delete(e,t){return this.clone({name:e,value:t,op:"d"})}maybeSetNormalizedName(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}init(){this.lazyInit&&(this.lazyInit instanceof ii?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(t=>{this.headers.set(t,e.headers.get(t)),this.normalizedNames.set(t,e.normalizedNames.get(t))})}clone(e){const t=new ii;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof ii?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([e]),t}applyUpdate(e){const t=e.name.toLowerCase();switch(e.op){case"a":case"s":let i=e.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(e.name,t);const r=("a"===e.op?this.headers.get(t):void 0)||[];r.push(...i),this.headers.set(t,r);break;case"d":const s=e.value;if(s){let o=this.headers.get(t);if(!o)return;o=o.filter(a=>-1===s.indexOf(a)),0===o.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,o)}else this.headers.delete(t),this.normalizedNames.delete(t)}}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>e(this.normalizedNames.get(t),this.headers.get(t)))}}class F1{encodeKey(e){return Cw(e)}encodeValue(e){return Cw(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}const L1=/%(\d[a-f0-9])/gi,B1={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function Cw(n){return encodeURIComponent(n).replace(L1,(e,t)=>{var i;return null!==(i=B1[t])&&void 0!==i?i:e})}function Sw(n){return`${n}`}class ri{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new F1,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function N1(n,e){const t=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(r=>{const s=r.indexOf("="),[o,a]=-1==s?[e.decodeKey(r),""]:[e.decodeKey(r.slice(0,s)),e.decodeValue(r.slice(s+1))],l=t.get(o)||[];l.push(a),t.set(o,l)}),t}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(t=>{const i=e.fromObject[t];this.map.set(t,Array.isArray(i)?i:[i])})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const t=this.map.get(e);return t?t[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,t){return this.clone({param:e,value:t,op:"a"})}appendAll(e){const t=[];return Object.keys(e).forEach(i=>{const r=e[i];Array.isArray(r)?r.forEach(s=>{t.push({param:i,value:s,op:"a"})}):t.push({param:i,value:r,op:"a"})}),this.clone(t)}set(e,t){return this.clone({param:e,value:t,op:"s"})}delete(e,t){return this.clone({param:e,value:t,op:"d"})}toString(){return this.init(),this.keys().map(e=>{const t=this.encoder.encodeKey(e);return this.map.get(e).map(i=>t+"="+this.encoder.encodeValue(i)).join("&")}).filter(e=>""!==e).join("&")}clone(e){const t=new ri({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(e),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":const t=("a"===e.op?this.map.get(e.param):void 0)||[];t.push(Sw(e.value)),this.map.set(e.param,t);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let i=this.map.get(e.param)||[];const r=i.indexOf(Sw(e.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(e.param,i):this.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)}}class V1{constructor(){this.map=new Map}set(e,t){return this.map.set(e,t),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}}function Mw(n){return"undefined"!=typeof ArrayBuffer&&n instanceof ArrayBuffer}function Tw(n){return"undefined"!=typeof Blob&&n instanceof Blob}function Iw(n){return"undefined"!=typeof FormData&&n instanceof FormData}class so{constructor(e,t,i,r){let s;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function H1(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,s=r):s=i,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new ii),this.context||(this.context=new V1),this.params){const o=this.params.toString();if(0===o.length)this.urlWithParams=t;else{const a=t.indexOf("?");this.urlWithParams=t+(-1===a?"?":a<t.length-1?"&":"")+o}}else this.params=new ri,this.urlWithParams=t}serializeBody(){return null===this.body?null:Mw(this.body)||Tw(this.body)||Iw(this.body)||function j1(n){return"undefined"!=typeof URLSearchParams&&n instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof ri?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||Iw(this.body)?null:Tw(this.body)?this.body.type||null:Mw(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof ri?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(e={}){var t;const i=e.method||this.method,r=e.url||this.url,s=e.responseType||this.responseType,o=void 0!==e.body?e.body:this.body,a=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,l=void 0!==e.reportProgress?e.reportProgress:this.reportProgress;let c=e.headers||this.headers,u=e.params||this.params;const d=null!==(t=e.context)&&void 0!==t?t:this.context;return void 0!==e.setHeaders&&(c=Object.keys(e.setHeaders).reduce((h,f)=>h.set(f,e.setHeaders[f]),c)),e.setParams&&(u=Object.keys(e.setParams).reduce((h,f)=>h.set(f,e.setParams[f]),u)),new so(i,r,o,{params:u,headers:c,context:d,reportProgress:l,responseType:s,withCredentials:a})}}var Ge=(()=>((Ge=Ge||{})[Ge.Sent=0]="Sent",Ge[Ge.UploadProgress=1]="UploadProgress",Ge[Ge.ResponseHeader=2]="ResponseHeader",Ge[Ge.DownloadProgress=3]="DownloadProgress",Ge[Ge.Response=4]="Response",Ge[Ge.User=5]="User",Ge))();class Oh extends class $1{constructor(e,t=200,i="OK"){this.headers=e.headers||new ii,this.status=void 0!==e.status?e.status:t,this.statusText=e.statusText||i,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}{constructor(e={}){super(e),this.type=Ge.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new Oh({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}function Rh(n,e){return{body:e,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}let Aw=(()=>{class n{constructor(t){this.handler=t}request(t,i,r={}){let s;if(t instanceof so)s=t;else{let l,c;l=r.headers instanceof ii?r.headers:new ii(r.headers),r.params&&(c=r.params instanceof ri?r.params:new ri({fromObject:r.params})),s=new so(t,i,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const o=ut(s).pipe(function k1(n,e){return yo(n,e,1)}(l=>this.handler.handle(l)));if(t instanceof so||"events"===r.observe)return o;const a=o.pipe(Nn(l=>l instanceof Oh));switch(r.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return a.pipe(Ve(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(Ve(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(Ve(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(Ve(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(t,i={}){return this.request("DELETE",t,i)}get(t,i={}){return this.request("GET",t,i)}head(t,i={}){return this.request("HEAD",t,i)}jsonp(t,i){return this.request("JSONP",t,{params:(new ri).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,i={}){return this.request("OPTIONS",t,i)}patch(t,i,r={}){return this.request("PATCH",t,Rh(r,i))}post(t,i,r={}){return this.request("POST",t,Rh(r,i))}put(t,i,r={}){return this.request("PUT",t,Rh(r,i))}}return n.\u0275fac=function(t){return new(t||n)(v(P1))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();const z1=["*"];let xl;function oo(n){var e;return(null===(e=function W1(){if(void 0===xl&&(xl=null,"undefined"!=typeof window)){const n=window;void 0!==n.trustedTypes&&(xl=n.trustedTypes.createPolicy("angular#components",{createHTML:e=>e}))}return xl}())||void 0===e?void 0:e.createHTML(n))||n}function Ow(n){return Error(`Unable to find icon with the name "${n}"`)}function Rw(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function kw(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class Ri{constructor(e,t,i){this.url=e,this.svgText=t,this.options=i}}let Vr=(()=>{class n{constructor(t,i,r,s){this._httpClient=t,this._sanitizer=i,this._errorHandler=s,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=r}addSvgIcon(t,i,r){return this.addSvgIconInNamespace("",t,i,r)}addSvgIconLiteral(t,i,r){return this.addSvgIconLiteralInNamespace("",t,i,r)}addSvgIconInNamespace(t,i,r,s){return this._addSvgIconConfig(t,i,new Ri(r,null,s))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,i,r,s){const o=this._sanitizer.sanitize(Q.HTML,r);if(!o)throw kw(r);const a=oo(o);return this._addSvgIconConfig(t,i,new Ri("",a,s))}addSvgIconSet(t,i){return this.addSvgIconSetInNamespace("",t,i)}addSvgIconSetLiteral(t,i){return this.addSvgIconSetLiteralInNamespace("",t,i)}addSvgIconSetInNamespace(t,i,r){return this._addSvgIconSetConfig(t,new Ri(i,null,r))}addSvgIconSetLiteralInNamespace(t,i,r){const s=this._sanitizer.sanitize(Q.HTML,i);if(!s)throw kw(i);const o=oo(s);return this._addSvgIconSetConfig(t,new Ri("",o,r))}registerFontClassAlias(t,i=t){return this._fontCssClassesByAlias.set(t,i),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const i=this._sanitizer.sanitize(Q.RESOURCE_URL,t);if(!i)throw Rw(t);const r=this._cachedIconsByUrl.get(i);return r?ut(Al(r)):this._loadSvgIconFromConfig(new Ri(t,null)).pipe(St(s=>this._cachedIconsByUrl.set(i,s)),Ve(s=>Al(s)))}getNamedSvgIcon(t,i=""){const r=Pw(i,t);let s=this._svgIconConfigs.get(r);if(s)return this._getSvgFromConfig(s);if(s=this._getIconConfigFromResolvers(i,t),s)return this._svgIconConfigs.set(r,s),this._getSvgFromConfig(s);const o=this._iconSetConfigs.get(i);return o?this._getSvgFromIconSetConfigs(t,o):Hv(Ow(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?ut(Al(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(Ve(i=>Al(i)))}_getSvgFromIconSetConfigs(t,i){const r=this._extractIconWithNameFromAnySet(t,i);return r?ut(r):function T1(...n){if(1===n.length){const e=n[0];if(Bi(e))return Il(e,null);if(Bl(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return Il(t.map(i=>e[i]),t)}}if("function"==typeof n[n.length-1]){const e=n.pop();return Il(n=1===n.length&&Bi(n[0])?n[0]:n,null).pipe(Ve(t=>e(...t)))}return Il(n,null)}(i.filter(o=>!o.svgText).map(o=>this._loadSvgIconSetFromConfig(o).pipe(Dw(a=>{const c=`Loading icon set URL: ${this._sanitizer.sanitize(Q.RESOURCE_URL,o.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(c)),ut(null)})))).pipe(Ve(()=>{const o=this._extractIconWithNameFromAnySet(t,i);if(!o)throw Ow(t);return o}))}_extractIconWithNameFromAnySet(t,i){for(let r=i.length-1;r>=0;r--){const s=i[r];if(s.svgText&&s.svgText.toString().indexOf(t)>-1){const o=this._svgElementFromConfig(s),a=this._extractSvgIconFromSet(o,t,s.options);if(a)return a}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(St(i=>t.svgText=i),Ve(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?ut(null):this._fetchIcon(t).pipe(St(i=>t.svgText=i))}_extractSvgIconFromSet(t,i,r){const s=t.querySelector(`[id="${i}"]`);if(!s)return null;const o=s.cloneNode(!0);if(o.removeAttribute("id"),"svg"===o.nodeName.toLowerCase())return this._setSvgAttributes(o,r);if("symbol"===o.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(o),r);const a=this._svgElementFromString(oo("<svg></svg>"));return a.appendChild(o),this._setSvgAttributes(a,r)}_svgElementFromString(t){const i=this._document.createElement("DIV");i.innerHTML=t;const r=i.querySelector("svg");if(!r)throw Error("<svg> tag not found");return r}_toSvgElement(t){const i=this._svgElementFromString(oo("<svg></svg>")),r=t.attributes;for(let s=0;s<r.length;s++){const{name:o,value:a}=r[s];"id"!==o&&i.setAttribute(o,a)}for(let s=0;s<t.childNodes.length;s++)t.childNodes[s].nodeType===this._document.ELEMENT_NODE&&i.appendChild(t.childNodes[s].cloneNode(!0));return i}_setSvgAttributes(t,i){return t.setAttribute("fit",""),t.setAttribute("height","100%"),t.setAttribute("width","100%"),t.setAttribute("preserveAspectRatio","xMidYMid meet"),t.setAttribute("focusable","false"),i&&i.viewBox&&t.setAttribute("viewBox",i.viewBox),t}_fetchIcon(t){var i;const{url:r,options:s}=t,o=null!==(i=null==s?void 0:s.withCredentials)&&void 0!==i&&i;if(!this._httpClient)throw function G1(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}();if(null==r)throw Error(`Cannot fetch icon from URL "${r}".`);const a=this._sanitizer.sanitize(Q.RESOURCE_URL,r);if(!a)throw Rw(r);const l=this._inProgressUrlFetches.get(a);if(l)return l;const c=this._httpClient.get(a,{responseType:"text",withCredentials:o}).pipe(Ve(u=>oo(u)),function A1(n){return e=>e.lift(new O1(n))}(()=>this._inProgressUrlFetches.delete(a)),gf());return this._inProgressUrlFetches.set(a,c),c}_addSvgIconConfig(t,i,r){return this._svgIconConfigs.set(Pw(t,i),r),this}_addSvgIconSetConfig(t,i){const r=this._iconSetConfigs.get(t);return r?r.push(i):this._iconSetConfigs.set(t,[i]),this}_svgElementFromConfig(t){if(!t.svgElement){const i=this._svgElementFromString(t.svgText);this._setSvgAttributes(i,t.options),t.svgElement=i}return t.svgElement}_getIconConfigFromResolvers(t,i){for(let r=0;r<this._resolvers.length;r++){const s=this._resolvers[r](i,t);if(s)return Y1(s)?new Ri(s.url,null,s.options):new Ri(s,null)}}}return n.\u0275fac=function(t){return new(t||n)(v(Aw,8),v(qa),v(G,8),v(Gn))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Al(n){return n.cloneNode(!0)}function Pw(n,e){return n+":"+e}function Y1(n){return!(!n.url||!n.options)}const K1=_w(class{constructor(n){this._elementRef=n}}),X1=new I("mat-icon-location",{providedIn:"root",factory:function Z1(){const n=zo(G),e=n?n.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}}),Fw=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Q1=Fw.map(n=>`[${n}]`).join(", "),J1=/^url\(['"]?#(.*?)['"]?\)$/;let Nw=(()=>{class n extends K1{constructor(t,i,r,s,o){super(t),this._iconRegistry=i,this._location=s,this._errorHandler=o,this._inline=!1,this._currentIconFetch=Z.EMPTY,r||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=Pr(t)}get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}get fontSet(){return this._fontSet}set fontSet(t){const i=this._cleanupFontValue(t);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(t){const i=this._cleanupFontValue(t);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}_splitIconName(t){if(!t)return["",""];const i=t.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&t.size){const i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();const i=t.querySelectorAll("style");for(let s=0;s<i.length;s++)i[s].textContent+=" ";const r=this._location.getPathname();this._previousPath=r,this._cacheChildrenWithExternalReferences(t),this._prependPathToReferences(r),this._elementRef.nativeElement.appendChild(t)}_clearSvgElement(){const t=this._elementRef.nativeElement;let i=t.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){const r=t.childNodes[i];(1!==r.nodeType||"svg"===r.nodeName.toLowerCase())&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const t=this._elementRef.nativeElement,i=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();i!=this._previousFontSetClass&&(this._previousFontSetClass&&t.classList.remove(this._previousFontSetClass),i&&t.classList.add(i),this._previousFontSetClass=i),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&t.classList.remove(this._previousFontIconClass),this.fontIcon&&t.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(t){return"string"==typeof t?t.trim().split(" ")[0]:t}_prependPathToReferences(t){const i=this._elementsWithExternalReferences;i&&i.forEach((r,s)=>{r.forEach(o=>{s.setAttribute(o.name,`url('${t}#${o.value}')`)})})}_cacheChildrenWithExternalReferences(t){const i=t.querySelectorAll(Q1),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let s=0;s<i.length;s++)Fw.forEach(o=>{const a=i[s],l=a.getAttribute(o),c=l?l.match(J1):null;if(c){let u=r.get(a);u||(u=[],r.set(a,u)),u.push({name:o,value:c[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){const[i,r]=this._splitIconName(t);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(Ln(1)).subscribe(s=>this._setSvgElement(s),s=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${i}:${r}! ${s.message}`))})}}}return n.\u0275fac=function(t){return new(t||n)(w(Ie),w(Vr),function Ho(n){return function sC(n,e){if("class"===e)return n.classes;if("style"===e)return n.styles;const t=n.attrs;if(t){const i=t.length;let r=0;for(;r<i;){const s=t[r];if(Yf(s))break;if(0===s)r+=2;else if("number"==typeof s)for(r++;r<i&&"string"==typeof t[r];)r++;else{if(s===e)return t[r+1];r+=2}}}return null}(ke(),n)}("aria-hidden"),w(X1),w(Gn))},n.\u0275cmp=Gt({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(t,i){2&t&&(We("data-mat-icon-type",i._usingFontIcon()?"font":"svg")("data-mat-icon-name",i._svgName||i.fontIcon)("data-mat-icon-namespace",i._svgNamespace||i.fontSet),_n("mat-icon-inline",i.inline)("mat-icon-no-color","primary"!==i.color&&"accent"!==i.color&&"warn"!==i.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[An],ngContentSelectors:z1,decls:1,vars:0,template:function(t,i){1&t&&(Er(),vi(0))},styles:[".mat-icon{-webkit-user-select:none;-moz-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),n})(),Lw=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({imports:[[En],En]}),n})();class eL extends he{notifyNext(e,t,i,r,s){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}class tL extends he{constructor(e,t,i){super(),this.parent=e,this.outerValue=t,this.outerIndex=i,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function nL(n,e,t,i,r=new tL(n,t,i)){if(!r.closed)return e instanceof le?e.subscribe(r):Vl(e)(r)}const Bw={};class rL{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new sL(e,this.resultSelector))}}class sL extends eL{constructor(e,t){super(e),this.resultSelector=t,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(Bw),this.observables.push(e)}_complete(){const e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(let i=0;i<t;i++)this.add(nL(this,e[i],void 0,i))}}notifyComplete(e){0==(this.active-=1)&&this.destination.complete()}notifyNext(e,t,i){const r=this.values,o=this.toRespond?r[i]===Bw?--this.toRespond:this.toRespond:0;r[i]=t,0===o&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))}_tryResultSelector(e){let t;try{t=this.resultSelector.apply(this,e)}catch(i){return void this.destination.error(i)}this.destination.next(t)}}function kh(...n){return function oL(){return pf(1)}()(ut(...n))}function Ol(...n){const e=n[n.length-1];return Vi(e)?(n.pop(),t=>kh(n,t,e)):t=>kh(n,t)}const Vw=new Set;let Hr,aL=(()=>{class n{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):cL}matchMedia(t){return(this._platform.WEBKIT||this._platform.BLINK)&&function lL(n){if(!Vw.has(n))try{Hr||(Hr=document.createElement("style"),Hr.setAttribute("type","text/css"),document.head.appendChild(Hr)),Hr.sheet&&(Hr.sheet.insertRule(`@media ${n} {body{ }}`,0),Vw.add(n))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return n.\u0275fac=function(t){return new(t||n)(v(on))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function cL(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let uL=(()=>{class n{constructor(t,i){this._mediaMatcher=t,this._zone=i,this._queries=new Map,this._destroySubject=new de}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return Hw(yl(t)).some(r=>this._registerQuery(r).mql.matches)}observe(t){let s=function iL(...n){let e,t;return Vi(n[n.length-1])&&(t=n.pop()),"function"==typeof n[n.length-1]&&(e=n.pop()),1===n.length&&Bi(n[0])&&(n=n[0]),$l(n,t).lift(new rL(e))}(Hw(yl(t)).map(o=>this._registerQuery(o).observable));return s=kh(s.pipe(Ln(1)),s.pipe(sw(1),rw(0))),s.pipe(Ve(o=>{const a={matches:!1,breakpoints:{}};return o.forEach(({matches:l,query:c})=>{a.matches=a.matches||l,a.breakpoints[c]=l}),a}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const i=this._mediaMatcher.matchMedia(t),s={observable:new le(o=>{const a=l=>this._zone.run(()=>o.next(l));return i.addListener(a),()=>{i.removeListener(a)}}).pipe(Ol(i),Ve(({matches:o})=>({query:t,matches:o})),Ct(this._destroySubject)),mql:i};return this._queries.set(t,s),s}}return n.\u0275fac=function(t){return new(t||n)(v(aL),v(ie))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Hw(n){return n.map(e=>e.split(",")).reduce((e,t)=>e.concat(t)).map(e=>e.trim())}const hL={tooltipState:$d("state",[Za("initial, void, hidden",wt({opacity:0,transform:"scale(0)"})),Za("visible",wt({transform:"scale(1)"})),Zs("* => visible",Xs("200ms cubic-bezier(0, 0, 0.2, 1)",Ck([wt({opacity:0,transform:"scale(0)",offset:0}),wt({opacity:.5,transform:"scale(0.99)",offset:.5}),wt({opacity:1,transform:"scale(1)",offset:1})]))),Zs("* => hidden",Xs("100ms cubic-bezier(0, 0, 0.2, 1)",wt({opacity:0})))])},jw="tooltip-panel",$w=no({passive:!0}),Uw=new I("mat-tooltip-scroll-strategy"),gL={provide:Uw,deps:[Lr],useFactory:function mL(n){return()=>n.scrollStrategies.reposition({scrollThrottle:20})}},_L=new I("mat-tooltip-default-options",{providedIn:"root",factory:function yL(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let vL=(()=>{class n{constructor(t,i,r,s,o,a,l,c,u,d,h,f){this._overlay=t,this._elementRef=i,this._scrollDispatcher=r,this._viewContainerRef=s,this._ngZone=o,this._platform=a,this._ariaDescriber=l,this._focusMonitor=c,this._dir=d,this._defaultOptions=h,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new de,this._scrollStrategy=u,this._document=f,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),d.change.pipe(Ct(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(t){var i;t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(i=this._tooltipInstance)||void 0===i||i.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(t){this._disabled=Pr(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(t){this._showDelay=Ob(t)}get hideDelay(){return this._hideDelay}set hideDelay(t){this._hideDelay=Ob(t)}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=t?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Ct(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([i,r])=>{t.removeEventListener(i,r,$w)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const i=this._createOverlay();this._detach(),this._portal=this._portal||new $b(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=i.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Ct(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}hide(t=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(t)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),i=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t);return i.positionChanges.pipe(Ct(this._destroyed)).subscribe(r=>{this._updateCurrentPositionClass(r.connectionPair),this._tooltipInstance&&r.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:i,panelClass:`${this._cssClassPrefix}-${jw}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Ct(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Ct(this._destroyed)).subscribe(()=>{var r;return null===(r=this._tooltipInstance)||void 0===r?void 0:r._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe(Ct(this._destroyed)).subscribe(r=>{this._isTooltipVisible()&&27===r.keyCode&&!Ch(r)&&(r.preventDefault(),r.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(t){const i=t.getConfig().positionStrategy,r=this._getOrigin(),s=this._getOverlayPosition();i.withPositions([this._addOffset(Object.assign(Object.assign({},r.main),s.main)),this._addOffset(Object.assign(Object.assign({},r.fallback),s.fallback))])}_addOffset(t){return t}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,i=this.position;let r;"above"==i||"below"==i?r={originX:"center",originY:"above"==i?"top":"bottom"}:"before"==i||"left"==i&&t||"right"==i&&!t?r={originX:"start",originY:"center"}:("after"==i||"right"==i&&t||"left"==i&&!t)&&(r={originX:"end",originY:"center"});const{x:s,y:o}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:s,originY:o}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,i=this.position;let r;"above"==i?r={overlayX:"center",overlayY:"bottom"}:"below"==i?r={overlayX:"center",overlayY:"top"}:"before"==i||"left"==i&&t||"right"==i&&!t?r={overlayX:"end",overlayY:"center"}:("after"==i||"right"==i&&t||"left"==i&&!t)&&(r={overlayX:"start",overlayY:"center"});const{x:s,y:o}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:s,overlayY:o}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Ln(1),Ct(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,i){return"above"===this.position||"below"===this.position?"top"===i?i="bottom":"bottom"===i&&(i="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:i}}_updateCurrentPositionClass(t){const{overlayY:i,originX:r,originY:s}=t;let o;if(o="center"===i?this._dir&&"rtl"===this._dir.value?"end"===r?"left":"right":"start"===r?"left":"right":"bottom"===i&&"top"===s?"above":"below",o!==this._currentPosition){const a=this._overlayRef;if(a){const l=`${this._cssClassPrefix}-${jw}-`;a.removePanelClass(l+this._currentPosition),a.addPanelClass(l+o)}this._currentPosition=o}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",()=>this.hide()],["wheel",i=>this._wheelListener(i)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const i=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",i],["touchcancel",i])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([i,r])=>{this._elementRef.nativeElement.addEventListener(i,r,$w)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){const i=this._document.elementFromPoint(t.clientX,t.clientY),r=this._elementRef.nativeElement;i!==r&&!r.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){const t=this.touchGestures;if("off"!==t){const i=this._elementRef.nativeElement,r=i.style;("on"===t||"INPUT"!==i.nodeName&&"TEXTAREA"!==i.nodeName)&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),("on"===t||!i.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}}return n.\u0275fac=function(t){!function Cg(){throw new Error("invalid")}()},n.\u0275dir=Ce({type:n,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),n})(),bL=(()=>{class n extends vL{constructor(t,i,r,s,o,a,l,c,u,d,h,f){super(t,i,r,s,o,a,l,c,u,d,h,f),this._tooltipComponent=EL}}return n.\u0275fac=function(t){return new(t||n)(w(Lr),w(Ie),w(Vb),w(lt),w(ie),w(on),w(XN),w(Tl),w(Uw),w(vh,8),w(_L,8),w(G))},n.\u0275dir=Ce({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[An]}),n})(),wL=(()=>{class n{constructor(t){this._changeDetectorRef=t,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new de}show(t){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},t)}hide(t){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},t)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(t){const i=t.toState;"hidden"===i&&!this.isVisible()&&this._onHide.next(),("visible"===i||"hidden"===i)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_onShow(){}}return n.\u0275fac=function(t){return new(t||n)(w(Ei))},n.\u0275dir=Ce({type:n}),n})(),EL=(()=>{class n extends wL{constructor(t,i){super(t),this._breakpointObserver=i,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return n.\u0275fac=function(t){return new(t||n)(w(Ei),w(uL))},n.\u0275cmp=Gt({type:n,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,i){2&t&&Is("zoom","visible"===i._visibility?1:null)},features:[An],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,i){if(1&t&&(ee(0,"div",0),je("@state.start",function(){return i._animationStart()})("@state.done",function(s){return i._animationDone(s)}),function ny(n,e){const t=K();let i;const r=n+20;t.firstCreatePass?(i=function tx(n,e){if(e)for(let t=e.length-1;t>=0;t--){const i=e[t];if(n===i.name)return i}}(e,t.pipeRegistry),t.data[r]=i,i.onDestroy&&(t.destroyHooks||(t.destroyHooks=[])).push(r,i.onDestroy)):i=t.data[r];const s=i.factory||(i.factory=fi(i.type)),o=Hn(w);try{const a=No(!1),l=s();return No(a),function bM(n,e,t,i){t>=n.data.length&&(n.data[t]=null,n.blueprint[t]=null),e[t]=i}(t,b(),r,l),l}finally{Hn(o)}}(1,"async"),Kn(2),se()),2&t){let r;_n("mat-tooltip-handset",null==(r=iy(1,5,i._isHandset))?null:r.matches),A("ngClass",i.tooltipClass)("@state",i._visibility),k(2),Rn(i.message)}},directives:[Na],pipes:[Ev],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[hL.tooltipState]},changeDetection:0}),n})(),DL=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({providers:[gL],imports:[[u1,ja,Jb,En],En,El]}),n})(),zw=(()=>{class n{constructor(t){this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container",i=this._document.querySelectorAll(`.${t}`);if(null==i?void 0:i.length)this._containerElement=i[0];else{const r=this._document.createElement("div");r.classList.add(t),this._document.body.appendChild(r),this._containerElement=r}}}return n.\u0275fac=function(t){return new(t||n)(v(G))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();const CL=new le(Bn);function Ww(n){return Boolean(n.parentElement&&"picture"===n.parentElement.nodeName.toLowerCase())}function ao(n){return"img"===n.nodeName.toLowerCase()}function Gw(n,e,t){return ao(n)?t&&"srcset"in n?n.srcset=e:n.src=e:n.style.backgroundImage=`url('${e}')`,n}function Ph(n){return e=>{const t=e.parentElement.getElementsByTagName("source");for(let i=0;i<t.length;i++){const r=t[i].getAttribute(n);r&&("srcset"in t[i]?t[i].srcset=r:t[i].src=r)}}}const TL=Ph("defaultImage"),qw=Ph("lazyLoad"),IL=Ph("errorImage");function Fh(n){return(e,t,i)=>{ao(e)&&Ww(e)&&n(e),t&&Gw(e,t,i)}}const xL=Fh(TL),AL=Fh(qw),OL=Fh(IL);function Yw(n,e){n.className=n.className.replace(e,"")}function Nh(n,e){n.className.includes(e)||(n.className+=` ${e}`)}class Kw extends class PL extends class RL{constructor(){this.navigator=function ML(){return"undefined"!=typeof window?window.navigator:void 0}()}setPlatformId(e){this.platformId=e}onDestroy(e){}onAttributeChange(e){}}{setup(e){xL(e.element,e.defaultImagePath,e.useSrcset),e.imagePath&&Nh(e.element,"ng-lazyloading"),function kL(n,e){return n.className&&n.className.includes(e)}(e.element,"ng-lazyloaded")&&Yw(e.element,"ng-lazyloaded")}finally(e){Nh(e.element,"ng-lazyloaded"),Yw(e.element,"ng-lazyloading")}loadImage(e){if(this.skipLazyLoading(e))return[e.imagePath];const{element:t,useSrcset:i,imagePath:r,decode:s}=e;let o;return ao(t)&&Ww(t)?(o=t.parentNode.cloneNode(!0).getElementsByTagName("img")[0],qw(o),Gw(o,r,i)):(o=new Image,ao(t)&&t.referrerPolicy&&(o.referrerPolicy=t.referrerPolicy),ao(t)&&t.sizes&&(o.sizes=t.sizes),i&&"srcset"in o?o.srcset=r:o.src=r),s&&o.decode?o.decode().then(()=>r):new Promise((a,l)=>{o.onload=()=>a(r),o.onerror=()=>l(null)})}setErrorImage(e,t){const{element:i,useSrcset:r,errorImagePath:s}=t;OL(i,s,r),Nh(i,"ng-failed-lazyloaded")}setLoadedImage(e,t){const{element:i,useSrcset:r}=t;AL(i,e,r)}isDisabled(){return function EO(n){return"server"===n}(this.platformId)&&!this.isBot()}skipLazyLoading(e){return this.isBot(e)}isBot(e){var t;return!!(null===(t=this.navigator)||void 0===t?void 0:t.userAgent)&&/googlebot|bingbot|yandex|baiduspider|facebookexternalhit|twitterbot|rogerbot|linkedinbot|embedly|quora\ link\ preview|showyoubot|outbrain|pinterest\/0\.|pinterestbot|slackbot|vkShare|W3C_Validator|whatsapp|duckduckbot/i.test(this.navigator.userAgent)}}{constructor(){super(...arguments),this.observers=new WeakMap,this.intersectionSubject=new de,this.uniqKey={}}getObservable(e){if(this.skipLazyLoading(e))return ut({isIntersecting:!0});if(e.customObservable)return e.customObservable;const t=e.scrollContainer||this.uniqKey,i={root:e.scrollContainer||null};e.offset&&(i.rootMargin=`${e.offset}px`);let r=this.observers.get(t);return r||(r=new IntersectionObserver(s=>this.loadingCallback(s),i),this.observers.set(t,r)),r.observe(e.element),le.create(s=>{const o=this.intersectionSubject.pipe(Nn(a=>a.target===e.element)).subscribe(s);return()=>{o.unsubscribe(),r.unobserve(e.element)}})}isVisible(e){return e.isIntersecting}loadingCallback(e){e.forEach(t=>this.intersectionSubject.next(t))}}const Lh=new I("LazyLoadImageHooks");let NL=(()=>{class n{constructor(t,i,r,s){this.onStateChange=new xe,this.elementRef=t,this.ngZone=i,this.propertyChanges$=new jv,this.hooks=s,this.hooks.setPlatformId(r),this.uid=Math.random().toString(36).substr(2,9)}ngOnChanges(){!0===this.debug&&!this.debugSubscription&&(this.debugSubscription=this.onStateChange.subscribe(t=>console.log(t))),this.propertyChanges$.next({element:this.elementRef.nativeElement,imagePath:this.lazyImage,defaultImagePath:this.defaultImage,errorImagePath:this.errorImage,useSrcset:this.useSrcset,offset:this.offset?0|this.offset:0,scrollContainer:this.scrollTarget,customObservable:this.customObservable,decode:this.decode,onStateChange:this.onStateChange,id:this.uid})}ngAfterContentInit(){if(this.hooks.isDisabled())return null;this.ngZone.runOutsideAngular(()=>{this.loadSubscription=this.propertyChanges$.pipe(St(t=>this.hooks.onAttributeChange(t)),St(t=>t.onStateChange.emit({reason:"setup"})),St(t=>this.hooks.setup(t)),Ks(t=>t.imagePath?this.hooks.getObservable(t).pipe(function FL(n,e){return t=>t.pipe(St(i=>e.onStateChange.emit({reason:"observer-emit",data:i})),Nn(i=>n.isVisible(i,e)),Ln(1),St(()=>e.onStateChange.emit({reason:"start-loading"})),yo(()=>n.loadImage(e)),St(()=>e.onStateChange.emit({reason:"mount-image"})),St(i=>n.setLoadedImage(i,e)),St(()=>e.onStateChange.emit({reason:"loading-succeeded"})),Ve(()=>!0),Dw(i=>(e.onStateChange.emit({reason:"loading-failed",data:i}),n.setErrorImage(i,e),ut(!1))),St(()=>{e.onStateChange.emit({reason:"finally"}),n.finally(e)}))}(this.hooks,t)):function SL(){return CL}())).subscribe({next:()=>null})})}ngOnDestroy(){var t,i;this.propertyChanges$.pipe(Ln(1)).subscribe({next:r=>this.hooks.onDestroy(r)}).unsubscribe(),null===(t=this.loadSubscription)||void 0===t||t.unsubscribe(),null===(i=this.debugSubscription)||void 0===i||i.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)(w(Ie),w(ie),w(wa),w(Lh))},n.\u0275dir=Ce({type:n,selectors:[["","lazyLoad",""]],inputs:{lazyImage:["lazyLoad","lazyImage"],defaultImage:"defaultImage",errorImage:"errorImage",scrollTarget:"scrollTarget",customObservable:"customObservable",offset:"offset",useSrcset:"useSrcset",decode:"decode",debug:"debug"},outputs:{onStateChange:"onStateChange"},features:[Gi]}),n})(),LL=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({providers:[{provide:Lh,useClass:Kw}]}),n})();class jt{constructor(e,t,i,r){this.left=e,this.top=t,this.right=i,this.bottom=r}static fromElement(e){const{left:t,top:i,right:r,bottom:s}=e.getBoundingClientRect();return 0===t&&0===i&&0===r&&0===s?jt.empty:new jt(t,i,r,s)}static fromWindow(e){return new jt(0,0,e.innerWidth,e.innerHeight)}inflate(e){this.left-=e,this.top-=e,this.right+=e,this.bottom+=e}intersectsWith(e){return e.left<this.right&&this.left<e.right&&e.top<this.bottom&&this.top<e.bottom}getIntersectionWith(e){const t=Math.max(this.left,e.left),i=Math.max(this.top,e.top),r=Math.min(this.right,e.right),s=Math.min(this.bottom,e.bottom);return r>=t&&s>=i?new jt(t,i,r,s):jt.empty}}jt.empty=new jt(0,0,0,0);var lo="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,BL=function(){for(var n=["Edge","Trident","Firefox"],e=0;e<n.length;e+=1)if(lo&&navigator.userAgent.indexOf(n[e])>=0)return 1;return 0}(),$L=lo&&window.Promise?function VL(n){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then(function(){e=!1,n()}))}}:function HL(n){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,n()},BL))}};function Xw(n){return n&&"[object Function]"==={}.toString.call(n)}function ki(n,e){if(1!==n.nodeType)return[];var i=n.ownerDocument.defaultView.getComputedStyle(n,null);return e?i[e]:i}function Bh(n){return"HTML"===n.nodeName?n:n.parentNode||n.host}function co(n){if(!n)return document.body;switch(n.nodeName){case"HTML":case"BODY":return n.ownerDocument.body;case"#document":return n.body}var e=ki(n);return/(auto|scroll|overlay)/.test(e.overflow+e.overflowY+e.overflowX)?n:co(Bh(n))}function Zw(n){return n&&n.referenceNode?n.referenceNode:n}var Qw=lo&&!(!window.MSInputMethodContext||!document.documentMode),Jw=lo&&/MSIE 10/.test(navigator.userAgent);function $r(n){return 11===n?Qw:10===n?Jw:Qw||Jw}function Ur(n){if(!n)return document.documentElement;for(var e=$r(10)?document.body:null,t=n.offsetParent||null;t===e&&n.nextElementSibling;)t=(n=n.nextElementSibling).offsetParent;var i=t&&t.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(t.nodeName)&&"static"===ki(t,"position")?Ur(t):t:n?n.ownerDocument.documentElement:document.documentElement}function Vh(n){return null!==n.parentNode?Vh(n.parentNode):n}function Rl(n,e){if(!(n&&n.nodeType&&e&&e.nodeType))return document.documentElement;var t=n.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,i=t?n:e,r=t?e:n,s=document.createRange();s.setStart(i,0),s.setEnd(r,0);var o=s.commonAncestorContainer;if(n!==o&&e!==o||i.contains(r))return function UL(n){var e=n.nodeName;return"BODY"!==e&&("HTML"===e||Ur(n.firstElementChild)===n)}(o)?o:Ur(o);var a=Vh(n);return a.host?Rl(a.host,e):Rl(n,Vh(e).host)}function zr(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",t="top"===e?"scrollTop":"scrollLeft",i=n.nodeName;if("BODY"===i||"HTML"===i){var r=n.ownerDocument.documentElement,s=n.ownerDocument.scrollingElement||r;return s[t]}return n[t]}function zL(n,e){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=zr(e,"top"),r=zr(e,"left"),s=t?-1:1;return n.top+=i*s,n.bottom+=i*s,n.left+=r*s,n.right+=r*s,n}function eE(n,e){var t="x"===e?"Left":"Top",i="Left"===t?"Right":"Bottom";return parseFloat(n["border"+t+"Width"])+parseFloat(n["border"+i+"Width"])}function tE(n,e,t,i){return Math.max(e["offset"+n],e["scroll"+n],t["client"+n],t["offset"+n],t["scroll"+n],$r(10)?parseInt(t["offset"+n])+parseInt(i["margin"+("Height"===n?"Top":"Left")])+parseInt(i["margin"+("Height"===n?"Bottom":"Right")]):0)}function nE(n){var e=n.body,t=n.documentElement,i=$r(10)&&getComputedStyle(t);return{height:tE("Height",e,t,i),width:tE("Width",e,t,i)}}var WL=function(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")},GL=function(){function n(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}}(),Wr=function(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n},$t=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])}return n};function si(n){return $t({},n,{right:n.left+n.width,bottom:n.top+n.height})}function Hh(n){var e={};try{if($r(10)){e=n.getBoundingClientRect();var t=zr(n,"top"),i=zr(n,"left");e.top+=t,e.left+=i,e.bottom+=t,e.right+=i}else e=n.getBoundingClientRect()}catch(d){}var r={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},s="HTML"===n.nodeName?nE(n.ownerDocument):{},l=n.offsetWidth-(s.width||n.clientWidth||r.width),c=n.offsetHeight-(s.height||n.clientHeight||r.height);if(l||c){var u=ki(n);l-=eE(u,"x"),c-=eE(u,"y"),r.width-=l,r.height-=c}return si(r)}function jh(n,e){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=$r(10),r="HTML"===e.nodeName,s=Hh(n),o=Hh(e),a=co(n),l=ki(e),c=parseFloat(l.borderTopWidth),u=parseFloat(l.borderLeftWidth);t&&r&&(o.top=Math.max(o.top,0),o.left=Math.max(o.left,0));var d=si({top:s.top-o.top-c,left:s.left-o.left-u,width:s.width,height:s.height});if(d.marginTop=0,d.marginLeft=0,!i&&r){var h=parseFloat(l.marginTop),f=parseFloat(l.marginLeft);d.top-=c-h,d.bottom-=c-h,d.left-=u-f,d.right-=u-f,d.marginTop=h,d.marginLeft=f}return(i&&!t?e.contains(a):e===a&&"BODY"!==a.nodeName)&&(d=zL(d,e)),d}function qL(n){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=n.ownerDocument.documentElement,i=jh(n,t),r=Math.max(t.clientWidth,window.innerWidth||0),s=Math.max(t.clientHeight,window.innerHeight||0),o=e?0:zr(t),a=e?0:zr(t,"left"),l={top:o-i.top+i.marginTop,left:a-i.left+i.marginLeft,width:r,height:s};return si(l)}function iE(n){var e=n.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===ki(n,"position"))return!0;var t=Bh(n);return!!t&&iE(t)}function rE(n){if(!n||!n.parentElement||$r())return document.documentElement;for(var e=n.parentElement;e&&"none"===ki(e,"transform");)e=e.parentElement;return e||document.documentElement}function $h(n,e,t,i){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s={top:0,left:0},o=r?rE(n):Rl(n,Zw(e));if("viewport"===i)s=qL(o,r);else{var a=void 0;"scrollParent"===i?"BODY"===(a=co(Bh(e))).nodeName&&(a=n.ownerDocument.documentElement):a="window"===i?n.ownerDocument.documentElement:i;var l=jh(a,o,r);if("HTML"!==a.nodeName||iE(o))s=l;else{var c=nE(n.ownerDocument),u=c.height,d=c.width;s.top+=l.top-l.marginTop,s.bottom=u+l.top,s.left+=l.left-l.marginLeft,s.right=d+l.left}}var h="number"==typeof(t=t||0);return s.left+=h?t:t.left||0,s.top+=h?t:t.top||0,s.right-=h?t:t.right||0,s.bottom-=h?t:t.bottom||0,s}function YL(n){return n.width*n.height}function sE(n,e,t,i,r){var s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===n.indexOf("auto"))return n;var o=$h(t,i,s,r),a={top:{width:o.width,height:e.top-o.top},right:{width:o.right-e.right,height:o.height},bottom:{width:o.width,height:o.bottom-e.bottom},left:{width:e.left-o.left,height:o.height}},l=Object.keys(a).map(function(h){return $t({key:h},a[h],{area:YL(a[h])})}).sort(function(h,f){return f.area-h.area}),c=l.filter(function(h){return h.width>=t.clientWidth&&h.height>=t.clientHeight}),u=c.length>0?c[0].key:l[0].key,d=n.split("-")[1];return u+(d?"-"+d:"")}function oE(n,e,t){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=i?rE(e):Rl(e,Zw(t));return jh(t,r,i)}function aE(n){var t=n.ownerDocument.defaultView.getComputedStyle(n),i=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:n.offsetWidth+r,height:n.offsetHeight+i}}function kl(n){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return n.replace(/left|right|bottom|top/g,function(t){return e[t]})}function lE(n,e,t){t=t.split("-")[0];var i=aE(n),r={width:i.width,height:i.height},s=-1!==["right","left"].indexOf(t),o=s?"top":"left",a=s?"left":"top",l=s?"height":"width",c=s?"width":"height";return r[o]=e[o]+e[l]/2-i[l]/2,r[a]=t===a?e[a]-i[c]:e[kl(a)],r}function uo(n,e){return Array.prototype.find?n.find(e):n.filter(e)[0]}function cE(n,e,t){var i=void 0===t?n:n.slice(0,function KL(n,e,t){if(Array.prototype.findIndex)return n.findIndex(function(r){return r[e]===t});var i=uo(n,function(r){return r[e]===t});return n.indexOf(i)}(n,"name",t));return i.forEach(function(r){r.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var s=r.function||r.fn;r.enabled&&Xw(s)&&(e.offsets.popper=si(e.offsets.popper),e.offsets.reference=si(e.offsets.reference),e=s(e,r))}),e}function XL(){if(!this.state.isDestroyed){var n={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};n.offsets.reference=oE(this.state,this.popper,this.reference,this.options.positionFixed),n.placement=sE(this.options.placement,n.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),n.originalPlacement=n.placement,n.positionFixed=this.options.positionFixed,n.offsets.popper=lE(this.popper,n.offsets.reference,n.placement),n.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",n=cE(this.modifiers,n),this.state.isCreated?this.options.onUpdate(n):(this.state.isCreated=!0,this.options.onCreate(n))}}function uE(n,e){return n.some(function(t){return t.enabled&&t.name===e})}function Uh(n){for(var e=[!1,"ms","Webkit","Moz","O"],t=n.charAt(0).toUpperCase()+n.slice(1),i=0;i<e.length;i++){var r=e[i],s=r?""+r+t:n;if(void 0!==document.body.style[s])return s}return null}function ZL(){return this.state.isDestroyed=!0,uE(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[Uh("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function dE(n){var e=n.ownerDocument;return e?e.defaultView:window}function hE(n,e,t,i){var r="BODY"===n.nodeName,s=r?n.ownerDocument.defaultView:n;s.addEventListener(e,t,{passive:!0}),r||hE(co(s.parentNode),e,t,i),i.push(s)}function QL(n,e,t,i){t.updateBound=i,dE(n).addEventListener("resize",t.updateBound,{passive:!0});var r=co(n);return hE(r,"scroll",t.updateBound,t.scrollParents),t.scrollElement=r,t.eventsEnabled=!0,t}function JL(){this.state.eventsEnabled||(this.state=QL(this.reference,0,this.state,this.scheduleUpdate))}function tB(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=function eB(n,e){return dE(n).removeEventListener("resize",e.updateBound),e.scrollParents.forEach(function(t){t.removeEventListener("scroll",e.updateBound)}),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e}(this.reference,this.state))}function zh(n){return""!==n&&!isNaN(parseFloat(n))&&isFinite(n)}function Wh(n,e){Object.keys(e).forEach(function(t){var i="";-1!==["width","height","top","right","bottom","left"].indexOf(t)&&zh(e[t])&&(i="px"),n.style[t]=e[t]+i})}var oB=lo&&/Firefox/i.test(navigator.userAgent);function fE(n,e,t){var i=uo(n,function(a){return a.name===e}),r=!!i&&n.some(function(a){return a.name===t&&a.enabled&&a.order<i.order});if(!r){var s="`"+e+"`";console.warn("`"+t+"` modifier is required by "+s+" modifier in order to work, be sure to include it before "+s+"!")}return r}var pE=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Gh=pE.slice(3);function mE(n){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=Gh.indexOf(n),i=Gh.slice(t+1).concat(Gh.slice(0,t));return e?i.reverse():i}var vB={shift:{order:100,enabled:!0,fn:function gB(n){var e=n.placement,t=e.split("-")[0],i=e.split("-")[1];if(i){var r=n.offsets,s=r.reference,o=r.popper,a=-1!==["bottom","top"].indexOf(t),l=a?"left":"top",c=a?"width":"height",u={start:Wr({},l,s[l]),end:Wr({},l,s[l]+s[c]-o[c])};n.offsets.popper=$t({},o,u[i])}return n}},offset:{order:200,enabled:!0,fn:function pB(n,e){var l,t=e.offset,r=n.offsets,s=r.popper,o=r.reference,a=n.placement.split("-")[0];return l=zh(+t)?[+t,0]:function fB(n,e,t,i){var r=[0,0],s=-1!==["right","left"].indexOf(i),o=n.split(/(\+|\-)/).map(function(u){return u.trim()}),a=o.indexOf(uo(o,function(u){return-1!==u.search(/,|\s/)}));o[a]&&-1===o[a].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==a?[o.slice(0,a).concat([o[a].split(l)[0]]),[o[a].split(l)[1]].concat(o.slice(a+1))]:[o];return c=c.map(function(u,d){var h=(1===d?!s:s)?"height":"width",f=!1;return u.reduce(function(p,m){return""===p[p.length-1]&&-1!==["+","-"].indexOf(m)?(p[p.length-1]=m,f=!0,p):f?(p[p.length-1]+=m,f=!1,p):p.concat(m)},[]).map(function(p){return function hB(n,e,t,i){var r=n.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),s=+r[1],o=r[2];return s?0===o.indexOf("%")?si("%p"===o?t:i)[e]/100*s:"vh"===o||"vw"===o?("vh"===o?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*s:s:n}(p,h,e,t)})}),c.forEach(function(u,d){u.forEach(function(h,f){zh(h)&&(r[d]+=h*("-"===u[f-1]?-1:1))})}),r}(t,s,o,a),"left"===a?(s.top+=l[0],s.left-=l[1]):"right"===a?(s.top+=l[0],s.left+=l[1]):"top"===a?(s.left+=l[0],s.top-=l[1]):"bottom"===a&&(s.left+=l[0],s.top+=l[1]),n.popper=s,n},offset:0},preventOverflow:{order:300,enabled:!0,fn:function mB(n,e){var t=e.boundariesElement||Ur(n.instance.popper);n.instance.reference===t&&(t=Ur(t));var i=Uh("transform"),r=n.instance.popper.style,s=r.top,o=r.left,a=r[i];r.top="",r.left="",r[i]="";var l=$h(n.instance.popper,n.instance.reference,e.padding,t,n.positionFixed);r.top=s,r.left=o,r[i]=a,e.boundaries=l;var u=n.offsets.popper,d={primary:function(f){var p=u[f];return u[f]<l[f]&&!e.escapeWithReference&&(p=Math.max(u[f],l[f])),Wr({},f,p)},secondary:function(f){var p="right"===f?"left":"top",m=u[p];return u[f]>l[f]&&!e.escapeWithReference&&(m=Math.min(u[p],l[f]-("right"===f?u.width:u.height))),Wr({},p,m)}};return e.priority.forEach(function(h){var f=-1!==["left","top"].indexOf(h)?"primary":"secondary";u=$t({},u,d[f](h))}),n.offsets.popper=u,n},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function dB(n){var e=n.offsets,t=e.popper,i=e.reference,r=n.placement.split("-")[0],s=Math.floor,o=-1!==["top","bottom"].indexOf(r),a=o?"right":"bottom",l=o?"left":"top",c=o?"width":"height";return t[a]<s(i[l])&&(n.offsets.popper[l]=s(i[l])-t[c]),t[l]>s(i[a])&&(n.offsets.popper[l]=s(i[a])),n}},arrow:{order:500,enabled:!0,fn:function lB(n,e){var t;if(!fE(n.instance.modifiers,"arrow","keepTogether"))return n;var i=e.element;if("string"==typeof i){if(!(i=n.instance.popper.querySelector(i)))return n}else if(!n.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),n;var r=n.placement.split("-")[0],s=n.offsets,o=s.popper,a=s.reference,l=-1!==["left","right"].indexOf(r),c=l?"height":"width",u=l?"Top":"Left",d=u.toLowerCase(),h=l?"left":"top",f=l?"bottom":"right",p=aE(i)[c];a[f]-p<o[d]&&(n.offsets.popper[d]-=o[d]-(a[f]-p)),a[d]+p>o[f]&&(n.offsets.popper[d]+=a[d]+p-o[f]),n.offsets.popper=si(n.offsets.popper);var m=a[d]+a[c]/2-p/2,_=ki(n.instance.popper),y=parseFloat(_["margin"+u]),g=parseFloat(_["border"+u+"Width"]),E=m-n.offsets.popper[d]-y-g;return E=Math.max(Math.min(o[c]-p,E),0),n.arrowElement=i,n.offsets.arrow=(Wr(t={},d,Math.round(E)),Wr(t,h,""),t),n},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function uB(n,e){if(uE(n.instance.modifiers,"inner")||n.flipped&&n.placement===n.originalPlacement)return n;var t=$h(n.instance.popper,n.instance.reference,e.padding,e.boundariesElement,n.positionFixed),i=n.placement.split("-")[0],r=kl(i),s=n.placement.split("-")[1]||"",o=[];switch(e.behavior){case"flip":o=[i,r];break;case"clockwise":o=mE(i);break;case"counterclockwise":o=mE(i,!0);break;default:o=e.behavior}return o.forEach(function(a,l){if(i!==a||o.length===l+1)return n;i=n.placement.split("-")[0],r=kl(i);var c=n.offsets.popper,u=n.offsets.reference,d=Math.floor,h="left"===i&&d(c.right)>d(u.left)||"right"===i&&d(c.left)<d(u.right)||"top"===i&&d(c.bottom)>d(u.top)||"bottom"===i&&d(c.top)<d(u.bottom),f=d(c.left)<d(t.left),p=d(c.right)>d(t.right),m=d(c.top)<d(t.top),_=d(c.bottom)>d(t.bottom),y="left"===i&&f||"right"===i&&p||"top"===i&&m||"bottom"===i&&_,g=-1!==["top","bottom"].indexOf(i),H=!!e.flipVariations&&(g&&"start"===s&&f||g&&"end"===s&&p||!g&&"start"===s&&m||!g&&"end"===s&&_)||!!e.flipVariationsByContent&&(g&&"start"===s&&p||g&&"end"===s&&f||!g&&"start"===s&&_||!g&&"end"===s&&m);(h||y||H)&&(n.flipped=!0,(h||y)&&(i=o[l+1]),H&&(s=function cB(n){return"end"===n?"start":"start"===n?"end":n}(s)),n.placement=i+(s?"-"+s:""),n.offsets.popper=$t({},n.offsets.popper,lE(n.instance.popper,n.offsets.reference,n.placement)),n=cE(n.instance.modifiers,n,"flip"))}),n},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function yB(n){var e=n.placement,t=e.split("-")[0],i=n.offsets,r=i.popper,s=i.reference,o=-1!==["left","right"].indexOf(t),a=-1===["top","left"].indexOf(t);return r[o?"left":"top"]=s[t]-(a?r[o?"width":"height"]:0),n.placement=kl(e),n.offsets.popper=si(r),n}},hide:{order:800,enabled:!0,fn:function _B(n){if(!fE(n.instance.modifiers,"hide","preventOverflow"))return n;var e=n.offsets.reference,t=uo(n.instance.modifiers,function(i){return"preventOverflow"===i.name}).boundaries;if(e.bottom<t.top||e.left>t.right||e.top>t.bottom||e.right<t.left){if(!0===n.hide)return n;n.hide=!0,n.attributes["x-out-of-boundaries"]=""}else{if(!1===n.hide)return n;n.hide=!1,n.attributes["x-out-of-boundaries"]=!1}return n}},computeStyle:{order:850,enabled:!0,fn:function aB(n,e){var t=e.x,i=e.y,r=n.offsets.popper,s=uo(n.instance.modifiers,function(E){return"applyStyle"===E.name}).gpuAcceleration;void 0!==s&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var p,m,o=void 0!==s?s:e.gpuAcceleration,a=Ur(n.instance.popper),l=Hh(a),c={position:r.position},u=function sB(n,e){var t=n.offsets,i=t.popper,s=Math.round,o=Math.floor,a=function(y){return y},l=s(t.reference.width),c=s(i.width),u=-1!==["left","right"].indexOf(n.placement),d=-1!==n.placement.indexOf("-"),p=e?u||d||l%2==c%2?s:o:a,m=e?s:a;return{left:p(l%2==1&&c%2==1&&!d&&e?i.left-1:i.left),top:m(i.top),bottom:m(i.bottom),right:p(i.right)}}(n,window.devicePixelRatio<2||!oB),d="bottom"===t?"top":"bottom",h="right"===i?"left":"right",f=Uh("transform");if(m="bottom"===d?"HTML"===a.nodeName?-a.clientHeight+u.bottom:-l.height+u.bottom:u.top,p="right"===h?"HTML"===a.nodeName?-a.clientWidth+u.right:-l.width+u.right:u.left,o&&f)c[f]="translate3d("+p+"px, "+m+"px, 0)",c[d]=0,c[h]=0,c.willChange="transform";else{var y="right"===h?-1:1;c[d]=m*("bottom"===d?-1:1),c[h]=p*y,c.willChange=d+", "+h}return n.attributes=$t({},{"x-placement":n.placement},n.attributes),n.styles=$t({},c,n.styles),n.arrowStyles=$t({},n.offsets.arrow,n.arrowStyles),n},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function iB(n){return Wh(n.instance.popper,n.styles),function nB(n,e){Object.keys(e).forEach(function(t){!1!==e[t]?n.setAttribute(t,e[t]):n.removeAttribute(t)})}(n.instance.popper,n.attributes),n.arrowElement&&Object.keys(n.arrowStyles).length&&Wh(n.arrowElement,n.arrowStyles),n},onLoad:function rB(n,e,t,i,r){var s=oE(r,e,n,t.positionFixed),o=sE(t.placement,s,e,n,t.modifiers.flip.boundariesElement,t.modifiers.flip.padding);return e.setAttribute("x-placement",o),Wh(e,{position:t.positionFixed?"fixed":"absolute"}),t},gpuAcceleration:void 0}},bB={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:vB},Pl=function(){function n(e,t){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};WL(this,n),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=$L(this.update.bind(this)),this.options=$t({},n.Defaults,r),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=t&&t.jquery?t[0]:t,this.options.modifiers={},Object.keys($t({},n.Defaults.modifiers,r.modifiers)).forEach(function(o){i.options.modifiers[o]=$t({},n.Defaults.modifiers[o]||{},r.modifiers?r.modifiers[o]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(o){return $t({name:o},i.options.modifiers[o])}).sort(function(o,a){return o.order-a.order}),this.modifiers.forEach(function(o){o.enabled&&Xw(o.onLoad)&&o.onLoad(i.reference,i.popper,i.options,o,i.state)}),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return GL(n,[{key:"update",value:function(){return XL.call(this)}},{key:"destroy",value:function(){return ZL.call(this)}},{key:"enableEventListeners",value:function(){return JL.call(this)}},{key:"disableEventListeners",value:function(){return tB.call(this)}}]),n}();Pl.Utils=("undefined"!=typeof window?window:global).PopperUtils,Pl.placements=pE,Pl.Defaults=bB;const wB=Pl,EB=["popperViewRef"];function DB(n,e){1&n&&(ee(0,"div",5),vi(1),se()),2&n&&A("innerHTML",Y().text,Zc)}function CB(n,e){1&n&&(ee(0,"div",6),vi(1,1),se())}const gE=["*","*"];let Pi=(()=>{class n{}return n.CLICK="click",n.HOVER="hover",n.MOUSEDOWN="mousedown",n.NONE="none",n})(),_E=(()=>{class n{}return n.Top="top",n.Bottom="bottom",n.Left="left",n.Right="right",n.TopStart="top-start",n.BottomStart="bottom-start",n.LeftStart="left-start",n.RightStart="right-start",n.TopEnd="top-end",n.BottomEnd="bottom-end",n.LeftEnd="left-end",n.RightEnd="right-end",n.Auto="auto",n.AutoStart="auto-start",n.AutoEnd="auto-end",n})(),yE=(()=>{class n{constructor(t,i,r,s){this.elemRef=t,this.renderer=i,this.viewRef=r,this.CDR=s,this.popperOptions={disableAnimation:!1,disableDefaultStyling:!1,placement:_E.Auto,boundariesElement:"",trigger:Pi.HOVER,positionFixed:!1,appendToBody:!1,popperModifiers:{}},this.isMouseOver=!1,this.onHidden=new xe,this.displayType="none",this.opacity=0,this.ariaHidden="true",this.arrowColor=null,this.state=!0}onMouseOver(){this.isMouseOver=!0}showOnLeave(){this.isMouseOver=!1,(this.popperOptions.trigger===Pi.HOVER||this.popperOptions.hideOnMouseLeave)&&this.hide()}onDocumentResize(){this.update()}ngOnDestroy(){this.clean(),this.popperOptions.appendTo&&this.elemRef&&this.elemRef.nativeElement&&this.elemRef.nativeElement.parentNode&&(this.viewRef.detach(),this.elemRef.nativeElement.parentNode.removeChild(this.elemRef.nativeElement))}clean(){this.toggleVisibility(!1),this.popperInstance&&(this.popperInstance.disableEventListeners(),this.popperInstance.destroy())}show(){if(!this.referenceObject)return;const t=this.popperOptions.appendTo&&document.querySelector(this.popperOptions.appendTo);t&&this.elemRef.nativeElement.parentNode!==t&&(this.elemRef.nativeElement.parentNode&&this.elemRef.nativeElement.parentNode.removeChild(this.elemRef.nativeElement),t.appendChild(this.elemRef.nativeElement));let i={placement:this.popperOptions.placement,positionFixed:this.popperOptions.positionFixed,modifiers:{arrow:{element:this.popperViewRef.nativeElement.querySelector(".ngxp__arrow")}}};this.onUpdate&&(i.onUpdate=this.onUpdate);let r=this.popperOptions.boundariesElement&&document.querySelector(this.popperOptions.boundariesElement);i.modifiers&&r&&(i.modifiers.preventOverflow={boundariesElement:r}),i.modifiers&&void 0!==this.popperOptions.preventOverflow&&(i.modifiers.preventOverflow=i.modifiers.preventOverflow||{},i.modifiers.preventOverflow.enabled=this.popperOptions.preventOverflow,i.modifiers.preventOverflow.enabled||(i.modifiers.hide={enabled:!1})),this.determineArrowColor(),i.modifiers=Object.assign(i.modifiers,this.popperOptions.popperModifiers),this.popperInstance=new wB(this.referenceObject,this.popperViewRef.nativeElement,i),this.popperInstance.enableEventListeners(),this.scheduleUpdate(),this.toggleVisibility(!0),this.globalResize=this.renderer.listen("document","resize",this.onDocumentResize.bind(this))}determineArrowColor(){["background-color","backgroundColor"].some(t=>!(!this.popperOptions.styles||!this.popperOptions.styles.hasOwnProperty(t)||(this.arrowColor=this.popperOptions.styles[t],0)))}update(){this.popperInstance&&this.popperInstance.update()}scheduleUpdate(){this.popperInstance&&this.popperInstance.scheduleUpdate()}hide(){this.popperInstance&&this.popperInstance.destroy(),this.toggleVisibility(!1),this.onHidden.emit()}toggleVisibility(t){t?(this.opacity=1,this.displayType="block",this.ariaHidden="false",this.state=!0):(this.opacity=0,this.displayType="none",this.ariaHidden="true",this.state=!1),this.CDR.destroyed||this.CDR.detectChanges()}extractAppliedClassListExpr(t){if(!t||"string"!=typeof t)return null;try{return t.replace(/ /,"").split(",").reduce((i,r)=>(i[r]=!0,i),{})}catch(i){return null}}clearGlobalResize(){this.globalResize&&"function"==typeof this.globalResize&&this.globalResize()}}return n.\u0275fac=function(t){return new(t||n)(w(Ie),w(fa),w(lt),w(Ei))},n.\u0275cmp=Gt({type:n,selectors:[["popper-content"]],viewQuery:function(t,i){if(1&t&&Bs(EB,5),2&t){let r;Zn(r=Qn())&&(i.popperViewRef=r.first)}},hostBindings:function(t,i){1&t&&je("mouseover",function(){return i.onMouseOver()})("mouseleave",function(){return i.showOnLeave()})},ngContentSelectors:gE,decls:5,vars:20,consts:[[3,"ngStyle","ngClass"],["popperViewRef",""],["class","ngxp__inner",3,"innerHTML",4,"ngIf"],["class","ngxp__inner",4,"ngIf"],[1,"ngxp__arrow",3,"ngClass"],[1,"ngxp__inner",3,"innerHTML"],[1,"ngxp__inner"]],template:function(t,i){1&t&&(Er(gE),ee(0,"div",0,1),J(2,DB,2,1,"div",2),J(3,CB,2,0,"div",3),On(4,"div",4),se()),2&t&&(Is("display",i.displayType)("opacity",i.opacity),_n("ngxp__container",!i.popperOptions.disableDefaultStyling)("ngxp__animation",!i.popperOptions.disableAnimation),A("ngStyle",i.popperOptions.styles)("ngClass",i.extractAppliedClassListExpr(i.popperOptions.applyClass)),We("aria-hidden",i.ariaHidden)("aria-describedby",i.popperOptions.ariaDescribe||null)("role",i.popperOptions.ariaRole),k(2),A("ngIf",i.text),k(1),A("ngIf",!i.text),k(1),Is("border-color",i.arrowColor),_n("__force-arrow",i.arrowColor),A("ngClass",i.extractAppliedClassListExpr(i.popperOptions.applyArrowClass)))},directives:[Ha,Na,Ws],styles:[".ngxp__container{display:none;position:absolute;border-radius:3px;border:1px solid grey;box-shadow:0 0 2px rgba(0,0,0,.5);padding:10px}.ngxp__container.ngxp__animation{-webkit-animation:150ms ease-out ngxp-fadeIn;animation:150ms ease-out ngxp-fadeIn}.ngxp__container>.ngxp__arrow{border-color:grey;width:0;height:0;border-style:solid;position:absolute;margin:5px}.ngxp__container[x-placement^=bottom],.ngxp__container[x-placement^=left],.ngxp__container[x-placement^=right],.ngxp__container[x-placement^=top]{display:block}.ngxp__container[x-placement^=top]{margin-bottom:5px}.ngxp__container[x-placement^=top]>.ngxp__arrow{border-width:5px 5px 0;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;bottom:-5px;left:calc(50% - 5px);margin-top:0;margin-bottom:0}.ngxp__container[x-placement^=top]>.ngxp__arrow.__force-arrow{border-right-color:transparent!important;border-bottom-color:transparent!important;border-left-color:transparent!important}.ngxp__container[x-placement^=bottom]{margin-top:5px}.ngxp__container[x-placement^=bottom]>.ngxp__arrow{border-width:0 5px 5px;border-top-color:transparent;border-right-color:transparent;border-left-color:transparent;top:-5px;left:calc(50% - 5px);margin-top:0;margin-bottom:0}.ngxp__container[x-placement^=bottom]>.ngxp__arrow.__force-arrow{border-top-color:transparent!important;border-right-color:transparent!important;border-left-color:transparent!important}.ngxp__container[x-placement^=right]{margin-left:5px}.ngxp__container[x-placement^=right]>.ngxp__arrow{border-width:5px 5px 5px 0;border-top-color:transparent;border-bottom-color:transparent;border-left-color:transparent;left:-5px;top:calc(50% - 5px);margin-left:0;margin-right:0}.ngxp__container[x-placement^=right]>.ngxp__arrow.__force-arrow{border-top-color:transparent!important;border-bottom-color:transparent!important;border-left-color:transparent!important}.ngxp__container[x-placement^=left]{margin-right:5px}.ngxp__container[x-placement^=left]>.ngxp__arrow{border-width:5px 0 5px 5px;border-top-color:transparent;border-bottom-color:transparent;border-right-color:transparent;right:-5px;top:calc(50% - 5px);margin-left:0;margin-right:0}.ngxp__container[x-placement^=left]>.ngxp__arrow.__force-arrow{border-top-color:transparent!important;border-bottom-color:transparent!important;border-right-color:transparent!important}@-webkit-keyframes ngxp-fadeIn{0%{display:none;opacity:0}1%{display:block;opacity:0}100%{display:block;opacity:1}}@keyframes ngxp-fadeIn{0%{display:none;opacity:0}1%{display:block;opacity:0}100%{display:block;opacity:1}}"],encapsulation:2,changeDetection:0}),n})();class Be{constructor(e,t,i,r,s,o={}){this.viewContainerRef=e,this.changeDetectorRef=t,this.resolver=i,this.elementRef=r,this.renderer=s,this.popperDefaults=o,this.popperContentClass=yE,this.shown=!1,this.subscriptions=[],this.eventListeners=[],this.globalEventListeners=[],this.hideTimeout=0,this.timeoutAfterShow=0,this.popperOnShown=new xe,this.popperOnHidden=new xe,this.popperOnUpdate=new xe,Be.baseOptions=Object.assign({},Be.baseOptions,this.popperDefaults)}hideOnClickOutsideHandler(e){this.disabled||!this.hideOnClickOutside||e.srcElement&&e.srcElement===this.popperContent.elemRef.nativeElement||this.popperContent.elemRef.nativeElement.contains(e.srcElement)||this.scheduledHide(e,this.hideTimeout)}hideOnScrollHandler(e){this.disabled||!this.hideOnScroll||this.scheduledHide(e,this.hideTimeout)}applyTriggerListeners(){switch(this.showTrigger){case Pi.CLICK:this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"click",this.toggle.bind(this)));break;case Pi.MOUSEDOWN:this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"mousedown",this.toggle.bind(this)));break;case Pi.HOVER:this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"mouseenter",this.scheduledShow.bind(this,this.showDelay))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"touchend",this.scheduledHide.bind(this,null,this.hideTimeout))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"touchcancel",this.scheduledHide.bind(this,null,this.hideTimeout))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"mouseleave",this.scheduledHide.bind(this,null,this.hideTimeout)))}this.showTrigger!==Pi.HOVER&&this.hideOnMouseLeave&&(this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"touchend",this.scheduledHide.bind(this,null,this.hideTimeout))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"touchcancel",this.scheduledHide.bind(this,null,this.hideTimeout))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"mouseleave",this.scheduledHide.bind(this,null,this.hideTimeout))))}static assignDefined(e,...t){for(const i of t)for(const r of Object.keys(i)){const s=i[r];void 0!==s&&(e[r]=s)}return e}ngOnInit(){if(this.hideOnClickOutside=void 0===this.hideOnClickOutside?this.closeOnClickOutside:this.hideOnClickOutside,"string"==typeof this.content){const t=this.content;this.popperContent=this.constructContent(),this.popperContent.text=t}else this.popperContent=this.content;const e=this.popperContent;e.referenceObject=this.getRefElement(),this.setContentProperties(e),this.setDefaults(),this.applyTriggerListeners(),this.showOnStart&&this.scheduledShow()}ngOnChanges(e){e.popperDisabled&&e.popperDisabled.currentValue&&this.hide(),e.content&&!e.content.firstChange&&"string"==typeof e.content.currentValue&&(this.popperContent.text=e.content.currentValue),e.applyClass&&!e.applyClass.firstChange&&"string"==typeof e.applyClass.currentValue&&(this.popperContent.popperOptions.applyClass=e.applyClass.currentValue),e.applyArrowClass&&!e.applyArrowClass.firstChange&&"string"==typeof e.applyArrowClass.currentValue&&(this.popperContent.popperOptions.applyArrowClass=e.applyArrowClass.currentValue)}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe&&e.unsubscribe()),this.subscriptions.length=0,this.clearEventListeners(),this.clearGlobalEventListeners(),clearTimeout(this.scheduledShowTimeout),clearTimeout(this.scheduledHideTimeout),this.popperContent&&this.popperContent.clean()}toggle(){this.disabled||(this.shown?this.scheduledHide(null,this.hideTimeout):this.scheduledShow())}show(){if(this.shown)return void this.overrideHideTimeout();this.shown=!0;const e=this.popperContent,t=this.getRefElement();e.referenceObject!==t&&(e.referenceObject=t),this.setContentProperties(e),e.show(),this.popperOnShown.emit(this),this.timeoutAfterShow>0&&this.scheduledHide(null,this.timeoutAfterShow),this.globalEventListeners.push(this.renderer.listen("document","touchend",this.hideOnClickOutsideHandler.bind(this))),this.globalEventListeners.push(this.renderer.listen("document","click",this.hideOnClickOutsideHandler.bind(this))),this.globalEventListeners.push(this.renderer.listen(this.getScrollParent(this.getRefElement()),"scroll",this.hideOnScrollHandler.bind(this)))}hide(){if(!this.disabled){if(!this.shown)return void this.overrideShowTimeout();this.shown=!1,this.popperContentRef?this.popperContentRef.instance.hide():this.popperContent.hide(),this.popperOnHidden.emit(this),this.clearGlobalEventListeners()}}scheduledShow(e=this.showDelay){this.disabled||(this.overrideHideTimeout(),this.scheduledShowTimeout=setTimeout(()=>{this.show(),this.applyChanges()},e))}scheduledHide(e=null,t=this.hideTimeout){this.disabled||(this.overrideShowTimeout(),this.scheduledHideTimeout=setTimeout(()=>{const i=e?e.toElement:null,r=!!this.popperContent.popperViewRef&&this.popperContent.popperViewRef.nativeElement;!r||r===i||r.contains(i)||this.content.isMouseOver||(this.hide(),this.applyChanges())},t))}getRefElement(){return this.targetElement||this.viewContainerRef.element.nativeElement}applyChanges(){this.changeDetectorRef.markForCheck(),this.changeDetectorRef.detectChanges()}setDefaults(){this.showDelay=void 0===this.showDelay?Be.baseOptions.showDelay:this.showDelay,this.showTrigger=void 0===this.showTrigger?Be.baseOptions.trigger:this.showTrigger,this.hideOnClickOutside=void 0===this.hideOnClickOutside?Be.baseOptions.hideOnClickOutside:this.hideOnClickOutside,this.hideOnScroll=void 0===this.hideOnScroll?Be.baseOptions.hideOnScroll:this.hideOnScroll,this.hideOnMouseLeave=void 0===this.hideOnMouseLeave?Be.baseOptions.hideOnMouseLeave:this.hideOnMouseLeave,this.ariaRole=void 0===this.ariaRole?Be.baseOptions.ariaRole:this.ariaRole,this.ariaDescribe=void 0===this.ariaDescribe?Be.baseOptions.ariaDescribe:this.ariaDescribe,this.styles=void 0===this.styles?Object.assign({},Be.baseOptions.styles):this.styles}clearEventListeners(){this.eventListeners.forEach(e=>{e&&"function"==typeof e&&e()}),this.eventListeners.length=0}clearGlobalEventListeners(){this.globalEventListeners.forEach(e=>{e&&"function"==typeof e&&e()}),this.globalEventListeners.length=0}overrideShowTimeout(){this.scheduledShowTimeout&&(clearTimeout(this.scheduledShowTimeout),this.scheduledHideTimeout=0)}overrideHideTimeout(){this.scheduledHideTimeout&&(clearTimeout(this.scheduledHideTimeout),this.scheduledHideTimeout=0)}constructContent(){const e=this.resolver.resolveComponentFactory(this.popperContentClass);return this.popperContentRef=this.viewContainerRef.createComponent(e),this.popperContentRef.instance}setContentProperties(e){e.popperOptions=Be.assignDefined(e.popperOptions,Be.baseOptions,{showDelay:this.showDelay,disableAnimation:this.disableAnimation,disableDefaultStyling:this.disableStyle,placement:this.placement,boundariesElement:this.boundariesElement,trigger:this.showTrigger,positionFixed:this.positionFixed,popperModifiers:this.popperModifiers,ariaDescribe:this.ariaDescribe,ariaRole:this.ariaRole,applyClass:this.applyClass,applyArrowClass:this.applyArrowClass,hideOnMouseLeave:this.hideOnMouseLeave,styles:this.styles,appendTo:this.appendTo,preventOverflow:this.preventOverflow}),e.onUpdate=this.onPopperUpdate.bind(this),this.subscriptions.push(e.onHidden.subscribe(this.hide.bind(this)))}getScrollParent(e){const i=e instanceof HTMLElement&&window.getComputedStyle(e).overflowY;return e?"visible"!==i&&"hidden"!==i&&e.scrollHeight>=e.clientHeight?e:this.getScrollParent(e.parentNode)||document:null}onPopperUpdate(e){this.popperOnUpdate.emit(e)}}Be.\u0275fac=function(e){return new(e||Be)(w(lt),w(Ei),w(Xn),w(Ie),w(fa),w("popperDefaults"))},Be.\u0275dir=Ce({type:Be,selectors:[["","popper",""]],inputs:{hideTimeout:["popperTimeout","hideTimeout"],timeoutAfterShow:["popperTimeoutAfterShow","timeoutAfterShow"],hideOnClickOutside:["popperHideOnClickOutside","hideOnClickOutside"],showDelay:["popperDelay","showDelay"],showTrigger:["popperTrigger","showTrigger"],hideOnScroll:["popperHideOnScroll","hideOnScroll"],hideOnMouseLeave:["popperHideOnMouseLeave","hideOnMouseLeave"],ariaRole:["popperAriaRole","ariaRole"],ariaDescribe:["popperAriaDescribeBy","ariaDescribe"],styles:["popperStyles","styles"],content:["popper","content"],disabled:["popperDisabled","disabled"],placement:["popperPlacement","placement"],targetElement:["popperTarget","targetElement"],boundariesElement:["popperBoundaries","boundariesElement"],showOnStart:["popperShowOnStart","showOnStart"],closeOnClickOutside:["popperCloseOnClickOutside","closeOnClickOutside"],positionFixed:["popperPositionFixed","positionFixed"],popperModifiers:"popperModifiers",disableStyle:["popperDisableStyle","disableStyle"],disableAnimation:["popperDisableAnimation","disableAnimation"],applyClass:["popperApplyClass","applyClass"],applyArrowClass:["popperApplyArrowClass","applyArrowClass"],appendTo:["popperAppendTo","appendTo"],preventOverflow:["popperPreventOverflow","preventOverflow"]},outputs:{popperOnShown:"popperOnShown",popperOnHidden:"popperOnHidden",popperOnUpdate:"popperOnUpdate"},exportAs:["popper"],features:[Gi]}),Be.baseOptions={showDelay:0,placement:_E.Auto,hideOnClickOutside:!0,hideOnMouseLeave:!1,hideOnScroll:!1,showTrigger:Pi.HOVER,appendTo:void 0,ariaRole:"popper",ariaDescribe:"",styles:{}};let SB=(()=>{class n{ngDoBootstrap(){}static forRoot(t={}){return{ngModule:n,providers:[{provide:"popperDefaults",useValue:t}]}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({imports:[[ja]]}),n})();function MB(n,e){1&n&&gn(0)}function TB(n,e){if(1&n){const t=Nt();nt(0),ee(1,"button",7),je("click",function(r){return Ze(t),Y().emitClick(r)}),J(2,MB,1,0,"ng-container",8),se(),it()}if(2&n){const t=Y(),i=Fe(12),r=Fe(10);k(1),A("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup)),We("ref",t.buttonRef)("aria-label",t.label+" raised button"),k(1),A("ngTemplateOutlet",r)}}function IB(n,e){1&n&&gn(0)}function xB(n,e){if(1&n){const t=Nt();nt(0),ee(1,"button",9),je("click",function(r){return Ze(t),Y().emitClick(r)}),J(2,IB,1,0,"ng-container",8),se(),it()}if(2&n){const t=Y(),i=Fe(12),r=Fe(10);k(1),A("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup)),We("ref",t.buttonRef)("aria-label",t.label+" stroked button"),k(1),A("ngTemplateOutlet",r)}}function AB(n,e){1&n&&gn(0)}function OB(n,e){if(1&n){const t=Nt();nt(0),ee(1,"button",10),je("click",function(r){return Ze(t),Y().emitClick(r)}),J(2,AB,1,0,"ng-container",8),se(),it()}if(2&n){const t=Y(),i=Fe(12),r=Fe(10);k(1),A("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup)),We("ref",t.buttonRef)("aria-label",t.label+" flat button"),k(1),A("ngTemplateOutlet",r)}}function RB(n,e){1&n&&gn(0)}function kB(n,e){if(1&n){const t=Nt();nt(0),ee(1,"button",11),je("click",function(r){return Ze(t),Y().emitClick(r)}),J(2,RB,1,0,"ng-container",8),se(),it()}if(2&n){const t=Y(),i=Fe(12),r=Fe(10);k(1),A("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup)),We("ref",t.buttonRef)("aria-label",t.label+" icon button"),k(1),A("ngTemplateOutlet",r)}}function PB(n,e){1&n&&gn(0)}function FB(n,e){if(1&n){const t=Nt();nt(0),ee(1,"button",12),je("click",function(r){return Ze(t),Y().emitClick(r)}),J(2,PB,1,0,"ng-container",8),se(),it()}if(2&n){const t=Y(),i=Fe(12),r=Fe(10);k(1),A("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup)),We("ref",t.buttonRef)("aria-label",t.label+" fab button"),k(1),A("ngTemplateOutlet",r)}}function NB(n,e){1&n&&gn(0)}function LB(n,e){if(1&n){const t=Nt();nt(0),ee(1,"button",13),je("click",function(r){return Ze(t),Y().emitClick(r)}),J(2,NB,1,0,"ng-container",8),se(),it()}if(2&n){const t=Y(),i=Fe(12),r=Fe(10);k(1),A("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup)),We("ref",t.buttonRef)("aria-label",t.label+" mini fab button"),k(1),A("ngTemplateOutlet",r)}}function BB(n,e){1&n&&gn(0)}function VB(n,e){if(1&n){const t=Nt();nt(0),ee(1,"button",14),je("click",function(r){return Ze(t),Y().emitClick(r)}),J(2,BB,1,0,"ng-container",8),se(),it()}if(2&n){const t=Y(),i=Fe(12),r=Fe(10);k(1),A("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup)),We("ref",t.buttonRef)("aria-label",t.label+" unstyled button"),k(1),A("ngTemplateOutlet",r)}}function HB(n,e){1&n&&gn(0)}function jB(n,e){if(1&n){const t=Nt();nt(0),ee(1,"button",15),je("click",function(r){return Ze(t),Y().emitClick(r)}),J(2,HB,1,0,"ng-container",8),se(),it()}if(2&n){const t=Y(),i=Fe(12),r=Fe(10);k(1),A("matTooltip",t.tooltip)("disabled",t.disabled)("ngStyle",t.buttonStyle)("popper",i)("popperDisabled",!(t.imgUrl||t.popup))("popperAppendTo","body"),We("ref",t.buttonRef)("aria-label",t.label+" basic button"),k(1),A("ngTemplateOutlet",r)}}function $B(n,e){if(1&n&&(ee(0,"mat-icon",18),Kn(1),se()),2&n){const t=Y(2);A("ngStyle",t.buttonIconStyle),k(1),Rn(t.icon)}}function UB(n,e){1&n&&On(0,"div",19),2&n&&A("innerHTML",Y(2).safeLabelHtml,Zc)}function zB(n,e){if(1&n&&(J(0,$B,2,2,"mat-icon",16),J(1,UB,1,1,"div",17)),2&n){const t=Y();A("ngIf",t.icon),k(1),A("ngIf",!t.icon)}}function WB(n,e){1&n&&On(0,"img",20),2&n&&A("lazyLoad",Y().imgUrl)}function GB(n,e){if(1&n&&(ee(0,"div"),Kn(1),se()),2&n){const t=Y();Jt(t.popup.style),k(1),Rn(t.popup.text)}}let vE=(()=>{class n{constructor(t){this.sanitizer=t}get safeLabelHtml(){var t;const i=null!==(t=this.label)&&void 0!==t?t:"Button";return this.sanitizer.bypassSecurityTrustHtml(i)}emitClick(t){this.onClick&&(t.stopPropagation(),this.onClick())}}return n.\u0275fac=function(t){return new(t||n)(w(qa))},n.\u0275cmp=Gt({type:n,selectors:[["drayman-button-internal"]],inputs:{onClick:"onClick",label:"label",view:"view",icon:"icon",tooltip:"tooltip",disabled:"disabled",imgUrl:"imgUrl",popup:"popup",buttonStyle:"buttonStyle",buttonIconStyle:"buttonIconStyle",buttonRef:"buttonRef"},decls:15,vars:10,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["button",""],["thumbnailContent",""],["style","width: 150px; z-index: 1001;",3,"lazyLoad",4,"ngIf"],[3,"style",4,"ngIf"],["type","button","mat-raised-button","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],[4,"ngTemplateOutlet"],["type","button","mat-stroked-button","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button","mat-flat-button","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button","mat-icon-button","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button","mat-fab","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button","mat-mini-fab","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","click"],["type","button","mat-button","",3,"matTooltip","disabled","ngStyle","popper","popperDisabled","popperAppendTo","click"],[3,"ngStyle",4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"ngStyle"],[3,"innerHTML"],[2,"width","150px","z-index","1001",3,"lazyLoad"]],template:function(t,i){1&t&&(nt(0,0),J(1,TB,3,8,"ng-container",1),J(2,xB,3,8,"ng-container",1),J(3,OB,3,8,"ng-container",1),J(4,kB,3,8,"ng-container",1),J(5,FB,3,8,"ng-container",1),J(6,LB,3,8,"ng-container",1),J(7,VB,3,8,"ng-container",1),J(8,jB,3,9,"ng-container",2),it(),J(9,zB,2,2,"ng-template",null,3,hy),ee(11,"popper-content",null,4),J(13,WB,1,1,"img",5),J(14,GB,2,3,"div",6),se()),2&t&&(A("ngSwitch",i.view),k(1),A("ngSwitchCase","raised"),k(1),A("ngSwitchCase","stroked"),k(1),A("ngSwitchCase","flat"),k(1),A("ngSwitchCase","icon"),k(1),A("ngSwitchCase","fab"),k(1),A("ngSwitchCase","miniFab"),k(1),A("ngSwitchCase","unstyled"),k(6),A("ngIf",i.imgUrl),k(1),A("ngIf",i.popup))},directives:[Va,yv,S1,bL,Ha,Be,wv,vv,Ws,Nw,yE,NL],styles:[""]}),n})();"function"==typeof SuppressedError&&SuppressedError;class gV extends Kw{loadImage({imagePath:e}){return function bE(n,e,t,i){return new(t||(t=Promise))(function(s,o){function a(u){try{c(i.next(u))}catch(d){o(d)}}function l(u){try{c(i.throw(u))}catch(d){o(d)}}function c(u){u.done?s(u.value):function r(s){return s instanceof t?s:new t(function(o){o(s)})}(u.value).then(a,l)}c((i=i.apply(n,e||[])).next())})}(this,void 0,void 0,function*(){const i=yield(yield fetch(e)).blob();if(i.size)return URL.createObjectURL(i)})}}let _V=(()=>{class n{constructor(t){this.injector=t}ngDoBootstrap(){const t=$v(vE,{injector:this.injector});customElements.define("drayman-button",t)}}return n.\u0275fac=function(t){return new(t||n)(v(tt))},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({providers:[{provide:Lh,useClass:gV},{provide:Dl,useClass:zw},{provide:ba,multi:!0,useFactory:e=>()=>{e.setDefaultFontSetClass("material-symbols-rounded")},deps:[Vr]}],imports:[[Vd,Ab,M1,DL,Lw,LL,SB.forRoot({disableDefaultStyling:!0,applyArrowClass:"hidden",showDelay:500,trigger:"hover",hideOnClickOutside:!1,styles:{position:"relative",background:"#fff",padding:"5px 5px 0 5px","z-index":"1001","border-radius":"2px","box-shadow":"0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23)"},placement:"right"})]]}),n})();function EE(n,e=bl){const i=function yV(n){return n instanceof Date&&!isNaN(+n)}(n)?+n-e.now():Math.abs(n);return r=>r.lift(new vV(i,e))}class vV{constructor(e,t){this.delay=e,this.scheduler=t}call(e,t){return t.subscribe(new Qh(e,this.delay,this.scheduler))}}class Qh extends he{constructor(e,t,i){super(e),this.delay=t,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}static dispatch(e){const t=e.source,i=t.queue,r=e.scheduler,s=e.destination;for(;i.length>0&&i[0].time-r.now()<=0;)i.shift().notification.observe(s);if(i.length>0){const o=Math.max(0,i[0].time-r.now());this.schedule(e,o)}else this.unsubscribe(),t.active=!1}_schedule(e){this.active=!0,this.destination.add(e.schedule(Qh.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}scheduleNotification(e){if(!0===this.errored)return;const t=this.scheduler,i=new bV(t.now()+this.delay,e);this.queue.push(i),!1===this.active&&this._schedule(t)}_next(e){this.scheduleNotification(dt.createNext(e))}_error(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}_complete(){this.scheduleNotification(dt.createComplete()),this.unsubscribe()}}class bV{constructor(e,t){this.time=e,this.notification=t}}const wV=["mat-menu-item",""];function EV(n,e){1&n&&(function Gf(){L.lFrame.currentNamespace="svg"}(),ee(0,"svg",2),On(1,"polygon",3),se())}const DE=["*"];function DV(n,e){if(1&n){const t=Nt();ee(0,"div",0),je("keydown",function(r){return Ze(t),Y()._handleKeydown(r)})("click",function(){return Ze(t),Y().closed.emit("click")})("@transformMenu.start",function(r){return Ze(t),Y()._onAnimationStart(r)})("@transformMenu.done",function(r){return Ze(t),Y()._onAnimationDone(r)}),ee(1,"div",1),vi(2),se()()}if(2&n){const t=Y();A("id",t.panelId)("ngClass",t._classList)("@transformMenu",t._panelAnimationState),We("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby||null)("aria-describedby",t.ariaDescribedby||null)}}const Fl={transformMenu:$d("transformMenu",[Za("void",wt({opacity:0,transform:"scale(0.8)"})),Zs("void => enter",Xs("120ms cubic-bezier(0, 0, 0.2, 1)",wt({opacity:1,transform:"scale(1)"}))),Zs("* => void",Xs("100ms 25ms linear",wt({opacity:0})))]),fadeInItems:$d("fadeInItems",[Za("showing",wt({opacity:1})),Zs("void => *",[wt({opacity:0}),Xs("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},CV=new I("MatMenuContent"),Jh=new I("MAT_MENU_PANEL"),SV=yw(gw(class{}));let Nl=(()=>{class n extends SV{constructor(t,i,r,s,o){var a;super(),this._elementRef=t,this._focusMonitor=r,this._parentMenu=s,this._changeDetectorRef=o,this.role="menuitem",this._hovered=new de,this._focused=new de,this._highlighted=!1,this._triggersSubmenu=!1,null===(a=null==s?void 0:s.addItem)||void 0===a||a.call(s,this)}focus(t,i){this._focusMonitor&&t?this._focusMonitor.focusVia(this._getHostElement(),t,i):this._getHostElement().focus(i),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var t;const i=this._elementRef.nativeElement.cloneNode(!0),r=i.querySelectorAll("mat-icon, .material-icons");for(let s=0;s<r.length;s++)r[s].remove();return(null===(t=i.textContent)||void 0===t?void 0:t.trim())||""}_setHighlighted(t){var i;this._highlighted=t,null===(i=this._changeDetectorRef)||void 0===i||i.markForCheck()}}return n.\u0275fac=function(t){return new(t||n)(w(Ie),w(G),w(Tl),w(Jh,8),w(Ei))},n.\u0275cmp=Gt({type:n,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(t,i){1&t&&je("click",function(s){return i._checkDisabled(s)})("mouseenter",function(){return i._handleMouseEnter()}),2&t&&(We("role",i.role)("tabindex",i._getTabIndex())("aria-disabled",i.disabled.toString())("disabled",i.disabled||null),_n("mat-menu-item",!0)("mat-menu-item-highlighted",i._highlighted)("mat-menu-item-submenu-trigger",i._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[An],attrs:wV,ngContentSelectors:DE,decls:3,vars:3,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["class","mat-menu-submenu-icon","viewBox","0 0 5 10","focusable","false",4,"ngIf"],["viewBox","0 0 5 10","focusable","false",1,"mat-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(t,i){1&t&&(Er(),vi(0),On(1,"div",0),J(2,EV,2,0,"svg",1)),2&t&&(k(1),A("matRippleDisabled",i.disableRipple||i.disabled)("matRippleTrigger",i._getHostElement()),k(1),A("ngIf",i._triggersSubmenu))},directives:[Ah,Ws],encapsulation:2,changeDetection:0}),n})();const CE=new I("mat-menu-default-options",{providedIn:"root",factory:function MV(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let TV=0,fo=(()=>{class n{constructor(t,i,r){this._elementRef=t,this._ngZone=i,this._defaultOptions=r,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new Ar,this._tabSubscription=Z.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new de,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new xe,this.close=this.closed,this.panelId="mat-menu-panel-"+TV++}get xPosition(){return this._xPosition}set xPosition(t){this._xPosition=t,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(t){this._yPosition=t,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(t){this._overlapTrigger=Pr(t)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=Pr(t)}set panelClass(t){const i=this._previousPanelClass;i&&i.length&&i.split(" ").forEach(r=>{this._classList[r]=!1}),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach(r=>{this._classList[r]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(t){this.panelClass=t}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new QN(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Ol(this._directDescendantItems),Ks(t=>Hi(...t.map(i=>i._focused)))).subscribe(t=>this._keyManager.updateActiveItem(t))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(Ol(this._directDescendantItems),Ks(i=>Hi(...i.map(r=>r._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){const i=t.keyCode,r=this._keyManager;switch(i){case 27:Ch(t)||(t.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===i||40===i)&&r.setFocusOrigin("keyboard"),void r.onKeydown(t)}t.stopPropagation()}focusFirstItem(t="program"){this.lazyContent?this._ngZone.onStable.pipe(Ln(1)).subscribe(()=>this._focusFirstItem(t)):this._focusFirstItem(t)}_focusFirstItem(t){const i=this._keyManager;if(i.setFocusOrigin(t).setFirstItemActive(),!i.activeItem&&this._directDescendantItems.length){let r=this._directDescendantItems.first._getHostElement().parentElement;for(;r;){if("menu"===r.getAttribute("role")){r.focus();break}r=r.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(t){const i=Math.min(this._baseElevation+t,24),r=`${this._elevationPrefix}${i}`,s=Object.keys(this._classList).find(o=>o.startsWith(this._elevationPrefix));(!s||s===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[r]=!0,this._previousElevation=r)}setPositionClasses(t=this.xPosition,i=this.yPosition){const r=this._classList;r["mat-menu-before"]="before"===t,r["mat-menu-after"]="after"===t,r["mat-menu-above"]="above"===i,r["mat-menu-below"]="below"===i}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(t){this._animationDone.next(t),this._isAnimating=!1}_onAnimationStart(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(Ol(this._allItems)).subscribe(t=>{this._directDescendantItems.reset(t.filter(i=>i._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return n.\u0275fac=function(t){return new(t||n)(w(Ie),w(ie),w(CE))},n.\u0275dir=Ce({type:n,contentQueries:function(t,i,r){if(1&t&&(ga(r,CV,5),ga(r,Nl,5),ga(r,Nl,4)),2&t){let s;Zn(s=Qn())&&(i.lazyContent=s.first),Zn(s=Qn())&&(i._allItems=s),Zn(s=Qn())&&(i.items=s)}},viewQuery:function(t,i){if(1&t&&Bs(vn,5),2&t){let r;Zn(r=Qn())&&(i.templateRef=r.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),n})(),IV=(()=>{class n extends fo{constructor(t,i,r){super(t,i,r),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return n.\u0275fac=function(t){return new(t||n)(w(Ie),w(ie),w(CE))},n.\u0275cmp=Gt({type:n,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(t,i){2&t&&We("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[U_([{provide:Jh,useExisting:n}]),An],ngContentSelectors:DE,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,i){1&t&&(Er(),J(0,DV,3,6,"ng-template"))},directives:[Na],styles:["mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,data:{animation:[Fl.transformMenu,Fl.fadeInItems]},changeDetection:0}),n})();const SE=new I("mat-menu-scroll-strategy"),AV={provide:SE,deps:[Lr],useFactory:function xV(n){return()=>n.scrollStrategies.reposition()}},TE=no({passive:!0});let OV=(()=>{class n{constructor(t,i,r,s,o,a,l,c){this._overlay=t,this._element=i,this._viewContainerRef=r,this._menuItemInstance=a,this._dir=l,this._focusMonitor=c,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Z.EMPTY,this._hoverSubscription=Z.EMPTY,this._menuCloseSubscription=Z.EMPTY,this._handleTouchStart=u=>{Th(u)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new xe,this.onMenuOpen=this.menuOpened,this.menuClosed=new xe,this.onMenuClose=this.menuClosed,this._scrollStrategy=s,this._parentMaterialMenu=o instanceof fo?o:void 0,i.nativeElement.addEventListener("touchstart",this._handleTouchStart,TE),a&&(a._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(t){this.menu=t}get menu(){return this._menu}set menu(t){t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.subscribe(i=>{this._destroyMenu(i),("click"===i||"tab"===i)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(i)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,TE),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const t=this._createOverlay(),i=t.getConfig();this._setPosition(i.positionStrategy),i.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof fo&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(t,i){this._focusMonitor&&t?this._focusMonitor.focusVia(this._element,t,i):this._element.nativeElement.focus(i)}updatePosition(){var t;null===(t=this._overlayRef)||void 0===t||t.updatePosition()}_destroyMenu(t){if(!this._overlayRef||!this.menuOpen)return;const i=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===t||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,i instanceof fo?(i._resetAnimation(),i.lazyContent?i._animationDone.pipe(Nn(r=>"void"===r.toState),Ln(1),Ct(i.lazyContent._attached)).subscribe({next:()=>i.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),i.lazyContent&&i.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let t=0,i=this.menu.parentMenu;for(;i;)t++,i=i.parentMenu;this.menu.setElevation(t)}}_setIsMenuOpen(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(t)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new qb({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(t){this.menu.setPositionClasses&&t.positionChanges.subscribe(i=>{this.menu.setPositionClasses("start"===i.connectionPair.overlayX?"after":"before","top"===i.connectionPair.overlayY?"below":"above")})}_setPosition(t){let[i,r]="before"===this.menu.xPosition?["end","start"]:["start","end"],[s,o]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[a,l]=[s,o],[c,u]=[i,r],d=0;this.triggersSubmenu()?(u=i="before"===this.menu.xPosition?"start":"end",r=c="end"===i?"start":"end",d="bottom"===s?8:-8):this.menu.overlapTrigger||(a="top"===s?"bottom":"top",l="top"===o?"bottom":"top"),t.withPositions([{originX:i,originY:a,overlayX:c,overlayY:s,offsetY:d},{originX:r,originY:a,overlayX:u,overlayY:s,offsetY:d},{originX:i,originY:l,overlayX:c,overlayY:o,offsetY:-d},{originX:r,originY:l,overlayX:u,overlayY:o,offsetY:-d}])}_menuClosingActions(){const t=this._overlayRef.backdropClick(),i=this._overlayRef.detachments();return Hi(t,this._parentMaterialMenu?this._parentMaterialMenu.closed:ut(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Nn(o=>o!==this._menuItemInstance),Nn(()=>this._menuOpen)):ut(),i)}_handleMousedown(t){Mh(t)||(this._openedBy=0===t.button?"mouse":void 0,this.triggersSubmenu()&&t.preventDefault())}_handleKeydown(t){const i=t.keyCode;(13===i||32===i)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===i&&"ltr"===this.dir||37===i&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(Nn(t=>t===this._menuItemInstance&&!t.disabled),EE(0,ph)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof fo&&this.menu._isAnimating?this.menu._animationDone.pipe(Ln(1),EE(0,ph),Ct(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new Ub(this.menu.templateRef,this._viewContainerRef)),this._portal}}return n.\u0275fac=function(t){return new(t||n)(w(Lr),w(Ie),w(lt),w(SE),w(Jh,8),w(Nl,10),w(vh,8),w(Tl))},n.\u0275dir=Ce({type:n,hostAttrs:["aria-haspopup","true"],hostVars:2,hostBindings:function(t,i){1&t&&je("click",function(s){return i._handleClick(s)})("mousedown",function(s){return i._handleMousedown(s)})("keydown",function(s){return i._handleKeydown(s)}),2&t&&We("aria-expanded",i.menuOpen||null)("aria-controls",i.menuOpen?i.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),n})(),IE=(()=>{class n extends OV{}return n.\u0275fac=function(){let e;return function(i){return(e||(e=function sp(n){return jn(()=>{const e=n.prototype.constructor,t=e[Sn]||wc(e),i=Object.prototype;let r=Object.getPrototypeOf(n.prototype).constructor;for(;r&&r!==i;){const s=r[Sn]||wc(r);if(s&&s!==t)return s;r=Object.getPrototypeOf(r)}return s=>new s})}(n)))(i||n)}}(),n.\u0275dir=Ce({type:n,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[An]}),n})(),RV=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({providers:[AV],imports:[[ja,En,Ew,Jb],El,En]}),n})();const kV=["childMenu"];function PV(n,e){if(1&n&&(ee(0,"mat-icon",7),Kn(1),se()),2&n){const t=Y(2).$implicit;A("ngStyle",t.iconStyle),k(1),Rn(t.icon)}}function FV(n,e){if(1&n){const t=Nt();nt(0),ee(1,"button",3),J(2,PV,2,2,"mat-icon",4),ee(3,"span"),Kn(4),se()(),ee(5,"drayman-menu-item-internal",5,6),je("itemClick",function(r){return Ze(t),Y(2).itemClick.emit(r)}),se(),it()}if(2&n){const t=Fe(6),i=Y().$implicit;k(1),A("ngStyle",i.itemStyle)("disabled",i.disabled)("matMenuTriggerFor",t.childMenu),k(1),A("ngIf",i.icon),k(2),Rn(i.label),k(1),A("items",i.items)}}function NV(n,e){if(1&n&&(ee(0,"mat-icon",7),Kn(1),se()),2&n){const t=Y(2).$implicit;A("ngStyle",t.iconStyle),k(1),Rn(t.icon)}}function LV(n,e){if(1&n){const t=Nt();nt(0),ee(1,"button",8),je("click",function(){Ze(t);const r=Y().$implicit;return Y().itemClick.emit(r)}),J(2,NV,2,2,"mat-icon",4),ee(3,"span"),Kn(4),se()(),it()}if(2&n){const t=Y().$implicit;k(1),A("ngStyle",t.itemStyle)("disabled",t.disabled),k(1),A("ngIf",t.icon),k(2),Rn(t.label)}}function BV(n,e){if(1&n&&(nt(0),J(1,FV,7,6,"ng-container",2),J(2,LV,5,4,"ng-container",2),it()),2&n){const t=e.$implicit;k(1),A("ngIf",null==t.items?null:t.items.length),k(1),A("ngIf",!(null!=t.items&&t.items.length))}}let VV=(()=>{class n{constructor(){this.items=[],this.itemClick=new xe}ngOnInit(){}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=Gt({type:n,selectors:[["drayman-menu-item-internal"]],viewQuery:function(t,i){if(1&t&&Bs(kV,7),2&t){let r;Zn(r=Qn())&&(i.childMenu=r.first)}},inputs:{items:"items"},outputs:{itemClick:"itemClick"},decls:3,vars:1,consts:[["childMenu","matMenu"],[4,"ngFor","ngForOf"],[4,"ngIf"],["mat-menu-item","",3,"ngStyle","disabled","matMenuTriggerFor"],[3,"ngStyle",4,"ngIf"],[3,"items","itemClick"],["menu",""],[3,"ngStyle"],["mat-menu-item","",3,"ngStyle","disabled","click"]],template:function(t,i){1&t&&(ee(0,"mat-menu",null,0),J(2,BV,3,2,"ng-container",1),se()),2&t&&(k(2),A("ngForOf",i.items))},directives:[IV,uv,Ws,Nl,Ha,IE,Nw,n],styles:[""]}),n})(),HV=(()=>{class n{constructor(){}ngOnInit(){}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=Gt({type:n,selectors:[["drayman-menu-internal"]],inputs:{items:"items",onItemClick:"onItemClick",label:"label",view:"view",icon:"icon",tooltip:"tooltip",disabled:"disabled",imgUrl:"imgUrl",buttonStyle:"buttonStyle"},decls:3,vars:9,consts:[[1,"trigger-btn",3,"label","view","icon","tooltip","disabled","imgUrl","buttonStyle","matMenuTriggerFor"],[3,"items","itemClick"],["menu",""]],template:function(t,i){if(1&t&&(On(0,"drayman-button-internal",0),ee(1,"drayman-menu-item-internal",1,2),je("itemClick",function(s){return i.onItemClick(s)}),se()),2&t){const r=Fe(2);A("label",i.label)("view",i.view)("icon",i.icon)("tooltip",i.tooltip)("disabled",i.disabled)("imgUrl",i.imgUrl)("buttonStyle",i.buttonStyle)("matMenuTriggerFor",r.childMenu),k(1),A("items",i.items)}},directives:[vE,IE,VV],styles:[".trigger-btn[_ngcontent-%COMP%]{display:block}"]}),n})(),jV=(()=>{class n{constructor(t){this.injector=t}ngDoBootstrap(){const t=$v(HV,{injector:this.injector});customElements.define("drayman-menu",t)}}return n.\u0275fac=function(t){return new(t||n)(v(tt))},n.\u0275mod=ge({type:n}),n.\u0275inj=fe({providers:[{provide:Dl,useClass:zw},{provide:ba,multi:!0,useFactory:e=>()=>{e.setDefaultFontSetClass("material-symbols-rounded")},deps:[Vr]}],imports:[[Vd,Ab,_V,RV,Lw]]}),n})();(function sA(){Vy=!1})(),HR().bootstrapModule(jV).catch(n=>console.error(n))})();