"use strict";(self.webpackChunkFOMC_materials=self.webpackChunkFOMC_materials||[]).push([[179],{989:()=>{function Ei(t){return"function"==typeof t}let $o=!1;const hn={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const n=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+n.stack)}else $o&&console.log("RxJS: Back to a better error behavior. Thank you. <3");$o=t},get useDeprecatedSynchronousErrorHandling(){return $o}};function Mi(t){setTimeout(()=>{throw t},0)}const Oa={closed:!0,next(t){},error(t){if(hn.useDeprecatedSynchronousErrorHandling)throw t;Mi(t)},complete(){}},Ni=Array.isArray||(t=>t&&"number"==typeof t.length);function vu(t){return null!==t&&"object"==typeof t}const Aa=(()=>{function t(n){return Error.call(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((e,i)=>`${i+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n,this}return t.prototype=Object.create(Error.prototype),t})();class Be{constructor(n){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,n&&(this._ctorUnsubscribe=!0,this._unsubscribe=n)}unsubscribe(){let n;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:i,_unsubscribe:r,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof Be)e.remove(this);else if(null!==e)for(let s=0;s<e.length;++s)e[s].remove(this);if(Ei(r)){i&&(this._unsubscribe=void 0);try{r.call(this)}catch(s){n=s instanceof Aa?hg(s.errors):[s]}}if(Ni(o)){let s=-1,a=o.length;for(;++s<a;){const l=o[s];if(vu(l))try{l.unsubscribe()}catch(c){n=n||[],c instanceof Aa?n=n.concat(hg(c.errors)):n.push(c)}}}if(n)throw new Aa(n)}add(n){let e=n;if(!n)return Be.EMPTY;switch(typeof n){case"function":e=new Be(n);case"object":if(e===this||e.closed||"function"!=typeof e.unsubscribe)return e;if(this.closed)return e.unsubscribe(),e;if(!(e instanceof Be)){const o=e;e=new Be,e._subscriptions=[o]}break;default:throw new Error("unrecognized teardown "+n+" added to Subscription.")}let{_parentOrParents:i}=e;if(null===i)e._parentOrParents=this;else if(i instanceof Be){if(i===this)return e;e._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return e;i.push(this)}const r=this._subscriptions;return null===r?this._subscriptions=[e]:r.push(e),e}remove(n){const e=this._subscriptions;if(e){const i=e.indexOf(n);-1!==i&&e.splice(i,1)}}}var t;function hg(t){return t.reduce((n,e)=>n.concat(e instanceof Aa?e.errors:e),[])}Be.EMPTY=((t=new Be).closed=!0,t);const xa="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class ge extends Be{constructor(n,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=Oa;break;case 1:if(!n){this.destination=Oa;break}if("object"==typeof n){n instanceof ge?(this.syncErrorThrowable=n.syncErrorThrowable,this.destination=n,n.add(this)):(this.syncErrorThrowable=!0,this.destination=new pg(this,n));break}default:this.syncErrorThrowable=!0,this.destination=new pg(this,n,e,i)}}[xa](){return this}static create(n,e,i){const r=new ge(n,e,i);return r.syncErrorThrowable=!1,r}next(n){this.isStopped||this._next(n)}error(n){this.isStopped||(this.isStopped=!0,this._error(n))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(n){this.destination.next(n)}_error(n){this.destination.error(n),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:n}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=n,this}}class pg extends ge{constructor(n,e,i,r){super(),this._parentSubscriber=n;let o,s=this;Ei(e)?o=e:e&&(o=e.next,i=e.error,r=e.complete,e!==Oa&&(s=Object.create(e),Ei(s.unsubscribe)&&this.add(s.unsubscribe.bind(s)),s.unsubscribe=this.unsubscribe.bind(this))),this._context=s,this._next=o,this._error=i,this._complete=r}next(n){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;hn.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,n)&&this.unsubscribe():this.__tryOrUnsub(this._next,n)}}error(n){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:i}=hn;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,n),this.unsubscribe()):(this.__tryOrUnsub(this._error,n),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=n,e.syncErrorThrown=!0):Mi(n),this.unsubscribe();else{if(this.unsubscribe(),i)throw n;Mi(n)}}}complete(){if(!this.isStopped){const{_parentSubscriber:n}=this;if(this._complete){const e=()=>this._complete.call(this._context);hn.useDeprecatedSynchronousErrorHandling&&n.syncErrorThrowable?(this.__tryOrSetError(n,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(n,e){try{n.call(this._context,e)}catch(i){if(this.unsubscribe(),hn.useDeprecatedSynchronousErrorHandling)throw i;Mi(i)}}__tryOrSetError(n,e,i){if(!hn.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(r){return hn.useDeprecatedSynchronousErrorHandling?(n.syncErrorValue=r,n.syncErrorThrown=!0,!0):(Mi(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:n}=this;this._context=null,this._parentSubscriber=null,n.unsubscribe()}}const Uo="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ra(t){return t}function gg(t){return 0===t.length?Ra:1===t.length?t[0]:function(e){return t.reduce((i,r)=>r(i),e)}}let Te=(()=>{class t{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,r){const{operator:o}=this,s=function TS(t,n,e){if(t){if(t instanceof ge)return t;if(t[xa])return t[xa]()}return t||n||e?new ge(t,n,e):new ge(Oa)}(e,i,r);if(s.add(o?o.call(s,this.source):this.source||hn.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),hn.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(e){try{return this._subscribe(e)}catch(i){hn.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=i),function SS(t){for(;t;){const{closed:n,destination:e,isStopped:i}=t;if(n||i)return!1;t=e&&e instanceof ge?e:null}return!0}(e)?e.error(i):console.warn(i)}}forEach(e,i){return new(i=mg(i))((r,o)=>{let s;s=this.subscribe(a=>{try{e(a)}catch(l){o(l),s&&s.unsubscribe()}},o,r)})}_subscribe(e){const{source:i}=this;return i&&i.subscribe(e)}[Uo](){return this}pipe(...e){return 0===e.length?this:gg(e)(this)}toPromise(e){return new(e=mg(e))((i,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>i(o))})}}return t.create=n=>new t(n),t})();function mg(t){if(t||(t=hn.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const Pr=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class MS extends Be{constructor(n,e){super(),this.subject=n,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const n=this.subject,e=n.observers;if(this.subject=null,!e||0===e.length||n.isStopped||n.closed)return;const i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}class _g extends ge{constructor(n){super(n),this.destination=n}}let Ee=(()=>{class t extends Te{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[xa](){return new _g(this)}lift(e){const i=new vg(this,this);return i.operator=e,i}next(e){if(this.closed)throw new Pr;if(!this.isStopped){const{observers:i}=this,r=i.length,o=i.slice();for(let s=0;s<r;s++)o[s].next(e)}}error(e){if(this.closed)throw new Pr;this.hasError=!0,this.thrownError=e,this.isStopped=!0;const{observers:i}=this,r=i.length,o=i.slice();for(let s=0;s<r;s++)o[s].error(e);this.observers.length=0}complete(){if(this.closed)throw new Pr;this.isStopped=!0;const{observers:e}=this,i=e.length,r=e.slice();for(let o=0;o<i;o++)r[o].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(e){if(this.closed)throw new Pr;return super._trySubscribe(e)}_subscribe(e){if(this.closed)throw new Pr;return this.hasError?(e.error(this.thrownError),Be.EMPTY):this.isStopped?(e.complete(),Be.EMPTY):(this.observers.push(e),new MS(this,e))}asObservable(){const e=new Te;return e.source=this,e}}return t.create=(n,e)=>new vg(n,e),t})();class vg extends Ee{constructor(n,e){super(),this.destination=n,this.source=e}next(n){const{destination:e}=this;e&&e.next&&e.next(n)}error(n){const{destination:e}=this;e&&e.error&&this.destination.error(n)}complete(){const{destination:n}=this;n&&n.complete&&this.destination.complete()}_subscribe(n){const{source:e}=this;return e?this.source.subscribe(n):Be.EMPTY}}function kr(t){return t&&"function"==typeof t.schedule}function j(t,n){return function(i){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new NS(t,n))}}class NS{constructor(n,e){this.project=n,this.thisArg=e}call(n,e){return e.subscribe(new IS(n,this.project,this.thisArg))}}class IS extends ge{constructor(n,e,i){super(n),this.project=e,this.count=0,this.thisArg=i||this}_next(n){let e;try{e=this.project.call(this.thisArg,n,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}const yg=t=>n=>{for(let e=0,i=t.length;e<i&&!n.closed;e++)n.next(t[e]);n.complete()},Ii=function AS(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),bg=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function Dg(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const yu=t=>{if(t&&"function"==typeof t[Uo])return(t=>n=>{const e=t[Uo]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(n)})(t);if(bg(t))return yg(t);if(Dg(t))return(t=>n=>(t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,Mi),n))(t);if(t&&"function"==typeof t[Ii])return(t=>n=>{const e=t[Ii]();for(;;){let i;try{i=e.next()}catch(r){return n.error(r),n}if(i.done){n.complete();break}if(n.next(i.value),n.closed)break}return"function"==typeof e.return&&n.add(()=>{e.return&&e.return()}),n})(t);{const e=`You provided ${vu(t)?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(e)}};function bu(t,n){return new Te(e=>{const i=new Be;let r=0;return i.add(n.schedule(function(){r!==t.length?(e.next(t[r++]),e.closed||i.add(this.schedule())):e.complete()})),i})}function rt(t,n){return n?function BS(t,n){if(null!=t){if(function LS(t){return t&&"function"==typeof t[Uo]}(t))return function PS(t,n){return new Te(e=>{const i=new Be;return i.add(n.schedule(()=>{const r=t[Uo]();i.add(r.subscribe({next(o){i.add(n.schedule(()=>e.next(o)))},error(o){i.add(n.schedule(()=>e.error(o)))},complete(){i.add(n.schedule(()=>e.complete()))}}))})),i})}(t,n);if(Dg(t))return function kS(t,n){return new Te(e=>{const i=new Be;return i.add(n.schedule(()=>t.then(r=>{i.add(n.schedule(()=>{e.next(r),i.add(n.schedule(()=>e.complete()))}))},r=>{i.add(n.schedule(()=>e.error(r)))}))),i})}(t,n);if(bg(t))return bu(t,n);if(function VS(t){return t&&"function"==typeof t[Ii]}(t)||"string"==typeof t)return function FS(t,n){if(!t)throw new Error("Iterable cannot be null");return new Te(e=>{const i=new Be;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(n.schedule(()=>{r=t[Ii](),i.add(n.schedule(function(){if(e.closed)return;let o,s;try{const a=r.next();o=a.value,s=a.done}catch(a){return void e.error(a)}s?e.complete():(e.next(o),this.schedule())}))})),i})}(t,n)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,n):t instanceof Te?t:new Te(yu(t))}class Go extends ge{constructor(n){super(),this.parent=n}_next(n){this.parent.notifyNext(n)}_error(n){this.parent.notifyError(n),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class Wo extends ge{notifyNext(n){this.destination.next(n)}notifyError(n){this.destination.error(n)}notifyComplete(){this.destination.complete()}}function zo(t,n){if(n.closed)return;if(t instanceof Te)return t.subscribe(n);let e;try{e=yu(t)(n)}catch(i){n.error(i)}return e}function Tt(t,n,e=Number.POSITIVE_INFINITY){return"function"==typeof n?i=>i.pipe(Tt((r,o)=>rt(t(r,o)).pipe(j((s,a)=>n(r,s,o,a))),e)):("number"==typeof n&&(e=n),i=>i.lift(new jS(t,e)))}class jS{constructor(n,e=Number.POSITIVE_INFINITY){this.project=n,this.concurrent=e}call(n,e){return e.subscribe(new HS(n,this.project,this.concurrent))}}class HS extends Wo{constructor(n,e,i=Number.POSITIVE_INFINITY){super(n),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(n){this.active<this.concurrent?this._tryNext(n):this.buffer.push(n)}_tryNext(n){let e;const i=this.index++;try{e=this.project(n,i)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(e)}_innerSub(n){const e=new Go(this),i=this.destination;i.add(e);const r=zo(n,e);r!==e&&i.add(r)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(n){this.destination.next(n)}notifyComplete(){const n=this.buffer;this.active--,n.length>0?this._next(n.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function Fr(t=Number.POSITIVE_INFINITY){return Tt(Ra,t)}function qo(t,n){return n?bu(t,n):new Te(yg(t))}function wg(...t){let n=Number.POSITIVE_INFINITY,e=null,i=t[t.length-1];return kr(i)?(e=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof i&&(n=t.pop()),null===e&&1===t.length&&t[0]instanceof Te?t[0]:Fr(n)(qo(t,e))}function Pa(){return function(n){return n.lift(new $S(n))}}class $S{constructor(n){this.connectable=n}call(n,e){const{connectable:i}=this;i._refCount++;const r=new US(n,i),o=e.subscribe(r);return r.closed||(r.connection=i.connect()),o}}class US extends ge{constructor(n,e){super(n),this.connectable=e}_unsubscribe(){const{connectable:n}=this;if(!n)return void(this.connection=null);this.connectable=null;const e=n._refCount;if(e<=0)return void(this.connection=null);if(n._refCount=e-1,e>1)return void(this.connection=null);const{connection:i}=this,r=n._connection;this.connection=null,r&&(!i||r===i)&&r.unsubscribe()}}class Du extends Te{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let n=this._connection;return n||(this._isComplete=!1,n=this._connection=new Be,n.add(this.source.subscribe(new WS(this.getSubject(),this))),n.closed&&(this._connection=null,n=Be.EMPTY)),n}refCount(){return Pa()(this)}}const GS=(()=>{const t=Du.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class WS extends _g{constructor(n,e){super(n),this.connectable=e}_error(n){this._unsubscribe(),super._error(n)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const n=this.connectable;if(n){this.connectable=null;const e=n._connection;n._refCount=0,n._subject=null,n._connection=null,e&&e.unsubscribe()}}}class KS{constructor(n,e){this.subjectFactory=n,this.selector=e}call(n,e){const{selector:i}=this,r=this.subjectFactory(),o=i(r).subscribe(n);return o.add(e.subscribe(r)),o}}function YS(){return new Ee}function Me(t){for(let n in t)if(t[n]===Me)return n;throw Error("Could not find renamed property on target object.")}function wu(t,n){for(const e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function Ne(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(Ne).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const n=t.toString();if(null==n)return""+n;const e=n.indexOf("\n");return-1===e?n:n.substring(0,e)}function Cu(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}const ZS=Me({__forward_ref__:Me});function ie(t){return t.__forward_ref__=ie,t.toString=function(){return Ne(this())},t}function z(t){return Su(t)?t():t}function Su(t){return"function"==typeof t&&t.hasOwnProperty(ZS)&&t.__forward_ref__===ie}class A extends Error{constructor(n,e){super(function ka(t,n){return`NG0${Math.abs(t)}${n?": "+n.trim():""}`}(n,e)),this.code=n}}function K(t){return"string"==typeof t?t:null==t?"":String(t)}function Fa(t,n){throw new A(-201,!1)}function Zt(t,n){null==t&&function de(t,n,e,i){throw new Error(`ASSERTION ERROR: ${t}`+(null==i?"":` [Expected=> ${e} ${i} ${n} <=Actual]`))}(n,t,null,"!=")}function x(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function fe(t){return{providers:t.providers||[],imports:t.imports||[]}}function La(t){return Cg(t,Va)||Cg(t,Tg)}function Cg(t,n){return t.hasOwnProperty(n)?t[n]:null}function Sg(t){return t&&(t.hasOwnProperty(Tu)||t.hasOwnProperty(sT))?t[Tu]:null}const Va=Me({\u0275prov:Me}),Tu=Me({\u0275inj:Me}),Tg=Me({ngInjectableDef:Me}),sT=Me({ngInjectorDef:Me});var U=(()=>((U=U||{})[U.Default=0]="Default",U[U.Host=1]="Host",U[U.Self=2]="Self",U[U.SkipSelf=4]="SkipSelf",U[U.Optional=8]="Optional",U))();let Eu;function pn(t){const n=Eu;return Eu=t,n}function Eg(t,n,e){const i=La(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&U.Optional?null:void 0!==n?n:void Fa(Ne(t))}function Oi(t){return{toString:t}.toString()}var En=(()=>((En=En||{})[En.OnPush=0]="OnPush",En[En.Default=1]="Default",En))(),qn=(()=>(function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"}(qn||(qn={})),qn))();const Oe=(()=>"undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof global&&global||"undefined"!=typeof window&&window||"undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self)(),Lr={},ue=[],Ba=Me({\u0275cmp:Me}),Mu=Me({\u0275dir:Me}),Nu=Me({\u0275pipe:Me}),Mg=Me({\u0275mod:Me}),si=Me({\u0275fac:Me}),Ko=Me({__NG_ELEMENT_ID__:Me});let lT=0;function ot(t){return Oi(()=>{const e=!0===t.standalone,i={},r={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:i,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===En.OnPush,directiveDefs:null,pipeDefs:null,standalone:e,dependencies:e&&t.dependencies||null,getStandaloneInjector:null,selectors:t.selectors||ue,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||qn.Emulated,id:"c"+lT++,styles:t.styles||ue,_:null,setInput:null,schemas:t.schemas||null,tView:null},o=t.dependencies,s=t.features;return r.inputs=Og(t.inputs,i),r.outputs=Og(t.outputs),s&&s.forEach(a=>a(r)),r.directiveDefs=o?()=>("function"==typeof o?o():o).map(Ng).filter(Ig):null,r.pipeDefs=o?()=>("function"==typeof o?o():o).map(Ft).filter(Ig):null,r})}function Ng(t){return _e(t)||kt(t)}function Ig(t){return null!==t}function me(t){return Oi(()=>({type:t.type,bootstrap:t.bootstrap||ue,declarations:t.declarations||ue,imports:t.imports||ue,exports:t.exports||ue,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function Og(t,n){if(null==t)return Lr;const e={};for(const i in t)if(t.hasOwnProperty(i)){let r=t[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),e[r]=i,n&&(n[r]=o)}return e}const R=ot;function Et(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,standalone:!0===t.standalone,onDestroy:t.type.prototype.ngOnDestroy||null}}function _e(t){return t[Ba]||null}function kt(t){return t[Mu]||null}function Ft(t){return t[Nu]||null}function Qt(t,n){const e=t[Mg]||null;if(!e&&!0===n)throw new Error(`Type ${Ne(t)} does not have '\u0275mod' property.`);return e}const X=11;function Wt(t){return Array.isArray(t)&&"object"==typeof t[1]}function Nn(t){return Array.isArray(t)&&!0===t[1]}function Au(t){return 0!=(8&t.flags)}function Ua(t){return 2==(2&t.flags)}function Ga(t){return 1==(1&t.flags)}function In(t){return null!==t.template}function pT(t){return 0!=(256&t[2])}function tr(t,n){return t.hasOwnProperty(si)?t[si]:null}class _T{constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function yt(){return Rg}function Rg(t){return t.type.prototype.ngOnChanges&&(t.setInput=yT),vT}function vT(){const t=kg(this),n=null==t?void 0:t.current;if(n){const e=t.previous;if(e===Lr)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function yT(t,n,e,i){const r=kg(t)||function bT(t,n){return t[Pg]=n}(t,{previous:Lr,current:null}),o=r.current||(r.current={}),s=r.previous,a=this.declaredInputs[e],l=s[a];o[a]=new _T(l&&l.currentValue,n,s===Lr),t[i]=n}yt.ngInherit=!0;const Pg="__ngSimpleChanges__";function kg(t){return t[Pg]||null}function Xe(t){for(;Array.isArray(t);)t=t[0];return t}function Wa(t,n){return Xe(n[t])}function _n(t,n){return Xe(n[t.index])}function Fu(t,n){return t.data[n]}function $r(t,n){return t[n]}function en(t,n){const e=n[t];return Wt(e)?e:e[0]}function za(t){return 64==(64&t[2])}function Ai(t,n){return null==n?null:t[n]}function Fg(t){t[18]=0}function Lu(t,n){t[5]+=n;let e=t,i=t[3];for(;null!==i&&(1===n&&1===e[5]||-1===n&&0===e[5]);)i[5]+=n,e=i,i=i[3]}const q={lFrame:zg(null),bindingsEnabled:!0};function Vg(){return q.bindingsEnabled}function N(){return q.lFrame.lView}function re(){return q.lFrame.tView}function ve(t){return q.lFrame.contextLView=t,t[8]}function ye(t){return q.lFrame.contextLView=null,t}function st(){let t=Bg();for(;null!==t&&64===t.type;)t=t.parent;return t}function Bg(){return q.lFrame.currentTNode}function Kn(t,n){const e=q.lFrame;e.currentTNode=t,e.isParent=n}function Vu(){return q.lFrame.isParent}function Bu(){q.lFrame.isParent=!1}function Lt(){const t=q.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function Ur(){return q.lFrame.bindingIndex++}function li(t){const n=q.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function kT(t,n){const e=q.lFrame;e.bindingIndex=e.bindingRootIndex=t,ju(n)}function ju(t){q.lFrame.currentDirectiveIndex=t}function Ug(){return q.lFrame.currentQueryIndex}function $u(t){q.lFrame.currentQueryIndex=t}function LT(t){const n=t[1];return 2===n.type?n.declTNode:1===n.type?t[6]:null}function Gg(t,n,e){if(e&U.SkipSelf){let r=n,o=t;for(;!(r=r.parent,null!==r||e&U.Host||(r=LT(o),null===r||(o=o[15],10&r.type))););if(null===r)return!1;n=r,t=o}const i=q.lFrame=Wg();return i.currentTNode=n,i.lView=t,!0}function Uu(t){const n=Wg(),e=t[1];q.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function Wg(){const t=q.lFrame,n=null===t?null:t.child;return null===n?zg(t):n}function zg(t){const n={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:t,child:null,inI18n:!1};return null!==t&&(t.child=n),n}function qg(){const t=q.lFrame;return q.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const Kg=qg;function Gu(){const t=qg();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Vt(){return q.lFrame.selectedIndex}function xi(t){q.lFrame.selectedIndex=t}function We(){const t=q.lFrame;return Fu(t.tView,t.selectedIndex)}function qa(t,n){for(let e=n.directiveStart,i=n.directiveEnd;e<i;e++){const o=t.data[e].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:u}=o;s&&(t.contentHooks||(t.contentHooks=[])).push(-e,s),a&&((t.contentHooks||(t.contentHooks=[])).push(e,a),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(e,a)),l&&(t.viewHooks||(t.viewHooks=[])).push(-e,l),c&&((t.viewHooks||(t.viewHooks=[])).push(e,c),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(e,c)),null!=u&&(t.destroyHooks||(t.destroyHooks=[])).push(e,u)}}function Ka(t,n,e){Yg(t,n,3,e)}function Ya(t,n,e,i){(3&t[2])===e&&Yg(t,n,e,i)}function Wu(t,n){let e=t[2];(3&e)===n&&(e&=2047,e+=1,t[2]=e)}function Yg(t,n,e,i){const o=null!=i?i:-1,s=n.length-1;let a=0;for(let l=void 0!==i?65535&t[18]:0;l<s;l++)if("number"==typeof n[l+1]){if(a=n[l],null!=i&&a>=i)break}else n[l]<0&&(t[18]+=65536),(a<o||-1==o)&&(zT(t,e,n,l),t[18]=(4294901760&t[18])+l+2),l++}function zT(t,n,e,i){const r=e[i]<0,o=e[i+1],a=t[r?-e[i]:e[i]];if(r){if(t[2]>>11<t[18]>>16&&(3&t[2])===n){t[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}}class es{constructor(n,e,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function Ja(t,n,e){let i=0;for(;i<e.length;){const r=e[i];if("number"==typeof r){if(0!==r)break;i++;const o=e[i++],s=e[i++],a=e[i++];t.setAttribute(n,s,a,o)}else{const o=r,s=e[++i];Zg(o)?t.setProperty(n,o,s):t.setAttribute(n,o,s),i++}}return i}function Jg(t){return 3===t||4===t||6===t}function Zg(t){return 64===t.charCodeAt(0)}function Za(t,n){if(null!==n&&0!==n.length)if(null===t||0===t.length)t=n.slice();else{let e=-1;for(let i=0;i<n.length;i++){const r=n[i];"number"==typeof r?e=r:0===e||Qg(t,e,r,null,-1===e||2===e?n[++i]:null)}}return t}function Qg(t,n,e,i,r){let o=0,s=t.length;if(-1===n)s=-1;else for(;o<t.length;){const a=t[o++];if("number"==typeof a){if(a===n){s=-1;break}if(a>n){s=o-1;break}}}for(;o<t.length;){const a=t[o];if("number"==typeof a)break;if(a===e){if(null===i)return void(null!==r&&(t[o+1]=r));if(i===t[o+1])return void(t[o+2]=r)}o++,null!==i&&o++,null!==r&&o++}-1!==s&&(t.splice(s,0,n),o=s+1),t.splice(o++,0,e),null!==i&&t.splice(o++,0,i),null!==r&&t.splice(o++,0,r)}function Xg(t){return-1!==t}function Gr(t){return 32767&t}function Wr(t,n){let e=function ZT(t){return t>>16}(t),i=n;for(;e>0;)i=i[15],e--;return i}let qu=!0;function Qa(t){const n=qu;return qu=t,n}let QT=0;const Yn={};function ns(t,n){const e=Yu(t,n);if(-1!==e)return e;const i=n[1];i.firstCreatePass&&(t.injectorIndex=n.length,Ku(i.data,t),Ku(n,null),Ku(i.blueprint,null));const r=Xa(t,n),o=t.injectorIndex;if(Xg(r)){const s=Gr(r),a=Wr(r,n),l=a[1].data;for(let c=0;c<8;c++)n[o+c]=a[s+c]|l[s+c]}return n[o+8]=r,o}function Ku(t,n){t.push(0,0,0,0,0,0,0,0,n)}function Yu(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function Xa(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,i=null,r=n;for(;null!==r;){if(i=lm(r),null===i)return-1;if(e++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return-1}function el(t,n,e){!function XT(t,n,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(Ko)&&(i=e[Ko]),null==i&&(i=e[Ko]=QT++);const r=255&i;n.data[t+(r>>5)]|=1<<r}(t,n,e)}function nm(t,n,e){if(e&U.Optional||void 0!==t)return t;Fa()}function im(t,n,e,i){if(e&U.Optional&&void 0===i&&(i=null),0==(e&(U.Self|U.Host))){const r=t[9],o=pn(void 0);try{return r?r.get(n,i,e&U.Optional):Eg(n,i,e&U.Optional)}finally{pn(o)}}return nm(i,0,e)}function rm(t,n,e,i=U.Default,r){if(null!==t){if(1024&n[2]){const s=function rE(t,n,e,i,r){let o=t,s=n;for(;null!==o&&null!==s&&1024&s[2]&&!(256&s[2]);){const a=om(o,s,e,i|U.Self,Yn);if(a!==Yn)return a;let l=o.parent;if(!l){const c=s[21];if(c){const u=c.get(e,Yn,i);if(u!==Yn)return u}l=lm(s),s=s[15]}o=l}return r}(t,n,e,i,Yn);if(s!==Yn)return s}const o=om(t,n,e,i,Yn);if(o!==Yn)return o}return im(n,e,i,r)}function om(t,n,e,i,r){const o=function nE(t){if("string"==typeof t)return t.charCodeAt(0)||0;const n=t.hasOwnProperty(Ko)?t[Ko]:void 0;return"number"==typeof n?n>=0?255&n:iE:n}(e);if("function"==typeof o){if(!Gg(n,t,i))return i&U.Host?nm(r,0,i):im(n,e,i,r);try{const s=o(i);if(null!=s||i&U.Optional)return s;Fa()}finally{Kg()}}else if("number"==typeof o){let s=null,a=Yu(t,n),l=-1,c=i&U.Host?n[16][6]:null;for((-1===a||i&U.SkipSelf)&&(l=-1===a?Xa(t,n):n[a+8],-1!==l&&am(i,!1)?(s=n[1],a=Gr(l),n=Wr(l,n)):a=-1);-1!==a;){const u=n[1];if(sm(o,a,u.data)){const d=tE(a,n,e,s,i,c);if(d!==Yn)return d}l=n[a+8],-1!==l&&am(i,n[1].data[a+8]===c)&&sm(o,a,n)?(s=u,a=Gr(l),n=Wr(l,n)):a=-1}}return r}function tE(t,n,e,i,r,o){const s=n[1],a=s.data[t+8],u=tl(a,s,e,null==i?Ua(a)&&qu:i!=s&&0!=(3&a.type),r&U.Host&&o===a);return null!==u?is(n,s,u,a):Yn}function tl(t,n,e,i,r){const o=t.providerIndexes,s=n.data,a=1048575&o,l=t.directiveStart,u=o>>20,f=r?a+u:t.directiveEnd;for(let h=i?a:a+u;h<f;h++){const g=s[h];if(h<l&&e===g||h>=l&&g.type===e)return h}if(r){const h=s[l];if(h&&In(h)&&h.type===e)return l}return null}function is(t,n,e,i){let r=t[e];const o=n.data;if(function qT(t){return t instanceof es}(r)){const s=r;s.resolving&&function QS(t,n){const e=n?`. Dependency path: ${n.join(" > ")} > ${t}`:"";throw new A(-200,`Circular dependency in DI detected for ${t}${e}`)}(function ce(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():K(t)}(o[e]));const a=Qa(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?pn(s.injectImpl):null;Gg(t,i,U.Default);try{r=t[e]=s.factory(void 0,o,t,i),n.firstCreatePass&&e>=i.directiveStart&&function WT(t,n,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=n.type.prototype;if(i){const s=Rg(n);(e.preOrderHooks||(e.preOrderHooks=[])).push(t,s),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,s)}r&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-t,r),o&&((e.preOrderHooks||(e.preOrderHooks=[])).push(t,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,o))}(e,o[e],n)}finally{null!==l&&pn(l),Qa(a),s.resolving=!1,Kg()}}return r}function sm(t,n,e){return!!(e[n+(t>>5)]&1<<t)}function am(t,n){return!(t&U.Self||t&U.Host&&n)}class zr{constructor(n,e){this._tNode=n,this._lView=e}get(n,e,i){return rm(this._tNode,this._lView,n,i,e)}}function iE(){return new zr(st(),N())}function ze(t){return Oi(()=>{const n=t.prototype.constructor,e=n[si]||Ju(n),i=Object.prototype;let r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){const o=r[si]||Ju(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function Ju(t){return Su(t)?()=>{const n=Ju(z(t));return n&&n()}:tr(t)}function lm(t){const n=t[1],e=n.type;return 2===e?n.declTNode:1===e?t[6]:null}const Kr="__parameters__";function Jr(t,n,e){return Oi(()=>{const i=function Zu(t){return function(...e){if(t){const i=t(...e);for(const r in i)this[r]=i[r]}}}(n);function r(...o){if(this instanceof r)return i.apply(this,o),this;const s=new r(...o);return a.annotation=s,a;function a(l,c,u){const d=l.hasOwnProperty(Kr)?l[Kr]:Object.defineProperty(l,Kr,{value:[]})[Kr];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),l}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}class H{constructor(n,e){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=x({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function tn(t,n){void 0===n&&(n=t);for(let e=0;e<t.length;e++){let i=t[e];Array.isArray(i)?(n===t&&(n=t.slice(0,e)),tn(i,n)):n!==t&&n.push(i)}return n}function ci(t,n){t.forEach(e=>Array.isArray(e)?ci(e,n):n(e))}function um(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function nl(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function ss(t,n){const e=[];for(let i=0;i<t;i++)e.push(n);return e}function nn(t,n,e){let i=Zr(t,n);return i>=0?t[1|i]=e:(i=~i,function lE(t,n,e,i){let r=t.length;if(r==n)t.push(e,i);else if(1===r)t.push(i,t[0]),t[0]=e;else{for(r--,t.push(t[r-1],t[r]);r>n;)t[r]=t[r-2],r--;t[n]=e,t[n+1]=i}}(t,i,n,e)),i}function Xu(t,n){const e=Zr(t,n);if(e>=0)return t[1|e]}function Zr(t,n){return function hm(t,n,e){let i=0,r=t.length>>e;for(;r!==i;){const o=i+(r-i>>1),s=t[o<<e];if(n===s)return o<<e;s>n?r=o:i=o+1}return~(r<<e)}(t,n,1)}const as={},td="__NG_DI_FLAG__",rl="ngTempTokenPath",mE=/\n/gm,pm="__source";let ls;function Qr(t){const n=ls;return ls=t,n}function vE(t,n=U.Default){if(void 0===ls)throw new A(-203,!1);return null===ls?Eg(t,void 0,n):ls.get(t,n&U.Optional?null:void 0,n)}function O(t,n=U.Default){return(function aT(){return Eu}()||vE)(z(t),n)}function Ze(t,n=U.Default){return"number"!=typeof n&&(n=0|(n.optional&&8)|(n.host&&1)|(n.self&&2)|(n.skipSelf&&4)),O(t,n)}function nd(t){const n=[];for(let e=0;e<t.length;e++){const i=z(t[e]);if(Array.isArray(i)){if(0===i.length)throw new A(900,!1);let r,o=U.Default;for(let s=0;s<i.length;s++){const a=i[s],l=yE(a);"number"==typeof l?-1===l?r=a.token:o|=l:r=a}n.push(O(r,o))}else n.push(O(i))}return n}function cs(t,n){return t[td]=n,t.prototype[td]=n,t}function yE(t){return t[td]}const us=cs(Jr("Optional"),8),ds=cs(Jr("SkipSelf"),4);let rd,al,ll;function eo(t){var n;return(null===(n=function od(){if(void 0===al&&(al=null,Oe.trustedTypes))try{al=Oe.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return al}())||void 0===n?void 0:n.createHTML(t))||t}function Sm(t){var n;return(null===(n=function sd(){if(void 0===ll&&(ll=null,Oe.trustedTypes))try{ll=Oe.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return ll}())||void 0===n?void 0:n.createHTML(t))||t}class Mm{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}function Pi(t){return t instanceof Mm?t.changingThisBreaksApplicationSecurity:t}function ps(t,n){const e=function BE(t){return t instanceof Mm&&t.getTypeName()||null}(t);if(null!=e&&e!==n){if("ResourceURL"===e&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${e} (see https://g.co/ng/security#xss)`)}return e===n}class jE{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n="<body><remove></remove>"+n;try{const e=(new window.DOMParser).parseFromString(eo(n),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(n):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class HE{constructor(n){if(this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const i=this.inertDocument.createElement("body");e.appendChild(i)}}getInertBodyElement(n){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=eo(n),e;const i=this.inertDocument.createElement("body");return i.innerHTML=eo(n),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(n){const e=n.attributes;for(let r=e.length-1;0<r;r--){const s=e.item(r).name;("xmlns:ns1"===s||0===s.indexOf("ns1:"))&&n.removeAttribute(s)}let i=n.firstChild;for(;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}const UE=/^(?:(?:https?|mailto|data|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi;function ad(t){return(t=String(t)).match(UE)?t:"unsafe:"+t}function ui(t){const n={};for(const e of t.split(","))n[e]=!0;return n}function gs(...t){const n={};for(const e of t)for(const i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}const Im=ui("area,br,col,hr,img,wbr"),Om=ui("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Am=ui("rp,rt"),ld=gs(Im,gs(Om,ui("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")),gs(Am,ui("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")),gs(Am,Om)),cd=ui("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),xm=gs(cd,ui("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,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),ui("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")),GE=ui("script,style,template");class WE{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let e=n.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=this.checkClobberedElement(e,e.nextSibling);if(r){e=r;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(n){const e=n.nodeName.toLowerCase();if(!ld.hasOwnProperty(e))return this.sanitizedSomething=!0,!GE.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=n.attributes;for(let r=0;r<i.length;r++){const o=i.item(r),s=o.name,a=s.toLowerCase();if(!xm.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=o.value;cd[a]&&(l=ad(l)),this.buf.push(" ",s,'="',Rm(l),'"')}return this.buf.push(">"),!0}endElement(n){const e=n.nodeName.toLowerCase();ld.hasOwnProperty(e)&&!Im.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(n){this.buf.push(Rm(n))}checkClobberedElement(n,e){if(e&&(n.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`);return e}}const zE=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,qE=/([^\#-~ |!])/g;function Rm(t){return t.replace(/&/g,"&").replace(zE,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(qE,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let cl;function ud(t){return"content"in t&&function YE(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var et=(()=>((et=et||{})[et.NONE=0]="NONE",et[et.HTML=1]="HTML",et[et.STYLE=2]="STYLE",et[et.SCRIPT=3]="SCRIPT",et[et.URL=4]="URL",et[et.RESOURCE_URL=5]="RESOURCE_URL",et))();function ms(t){const n=_s();return n?Sm(n.sanitize(et.HTML,t)||""):ps(t,"HTML")?Sm(Pi(t)):function KE(t,n){let e=null;try{cl=cl||function Nm(t){const n=new HE(t);return function $E(){try{return!!(new window.DOMParser).parseFromString(eo(""),"text/html")}catch(t){return!1}}()?new jE(n):n}(t);let i=n?String(n):"";e=cl.getInertBodyElement(i);let r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=e.innerHTML,e=cl.getInertBodyElement(i)}while(i!==o);return eo((new WE).sanitizeChildren(ud(e)||e))}finally{if(e){const i=ud(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}(function Cm(){return void 0!==rd?rd:"undefined"!=typeof document?document:void 0}(),K(t))}function Fe(t){const n=_s();return n?n.sanitize(et.URL,t)||"":ps(t,"URL")?Pi(t):ad(K(t))}function _s(){const t=N();return t&&t[12]}const dd=new H("ENVIRONMENT_INITIALIZER"),km=new H("INJECTOR",-1),Fm=new H("INJECTOR_DEF_TYPES");class Lm{get(n,e=as){if(e===as){const i=new Error(`NullInjectorError: No provider for ${Ne(n)}!`);throw i.name="NullInjectorError",i}return e}}function nM(...t){return{\u0275providers:Vm(0,t)}}function Vm(t,...n){const e=[],i=new Set;let r;return ci(n,o=>{const s=o;fd(s,e,[],i)&&(r||(r=[]),r.push(s))}),void 0!==r&&Bm(r,e),e}function Bm(t,n){for(let e=0;e<t.length;e++){const{providers:r}=t[e];ci(r,o=>{n.push(o)})}}function fd(t,n,e,i){if(!(t=z(t)))return!1;let r=null,o=Sg(t);const s=!o&&_e(t);if(o||s){if(s&&!s.standalone)return!1;r=t}else{const l=t.ngModule;if(o=Sg(l),!o)return!1;r=l}const a=i.has(r);if(s){if(a)return!1;if(i.add(r),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const c of l)fd(c,n,e,i)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let c;i.add(r);try{ci(o.imports,u=>{fd(u,n,e,i)&&(c||(c=[]),c.push(u))})}finally{}void 0!==c&&Bm(c,n)}if(!a){const c=tr(r)||(()=>new r);n.push({provide:r,useFactory:c,deps:ue},{provide:Fm,useValue:r,multi:!0},{provide:dd,useValue:()=>O(r),multi:!0})}const l=o.providers;null==l||a||ci(l,u=>{n.push(u)})}}return r!==t&&void 0!==t.providers}const iM=Me({provide:String,useValue:Me});function hd(t){return null!==t&&"object"==typeof t&&iM in t}function ir(t){return"function"==typeof t}const pd=new H("Set Injector scope."),ul={},oM={};let gd;function dl(){return void 0===gd&&(gd=new Lm),gd}class ki{}class $m extends ki{constructor(n,e,i,r){super(),this.parent=e,this.source=i,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,_d(n,s=>this.processProvider(s)),this.records.set(km,to(void 0,this)),r.has("environment")&&this.records.set(ki,to(void 0,this));const o=this.records.get(pd);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Fm.multi,ue,U.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const n of this._ngOnDestroyHooks)n.ngOnDestroy();for(const n of this._onDestroyHooks)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(n){this._onDestroyHooks.push(n)}runInContext(n){this.assertNotDestroyed();const e=Qr(this),i=pn(void 0);try{return n()}finally{Qr(e),pn(i)}}get(n,e=as,i=U.Default){this.assertNotDestroyed();const r=Qr(this),o=pn(void 0);try{if(!(i&U.SkipSelf)){let a=this.records.get(n);if(void 0===a){const l=function uM(t){return"function"==typeof t||"object"==typeof t&&t instanceof H}(n)&&La(n);a=l&&this.injectableDefInScope(l)?to(md(n),ul):null,this.records.set(n,a)}if(null!=a)return this.hydrate(n,a)}return(i&U.Self?dl():this.parent).get(n,e=i&U.Optional&&e===as?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[rl]=s[rl]||[]).unshift(Ne(n)),r)throw s;return function bE(t,n,e,i){const r=t[rl];throw n[pm]&&r.unshift(n[pm]),t.message=function DE(t,n,e,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.slice(2):t;let r=Ne(n);if(Array.isArray(n))r=n.map(Ne).join(" -> ");else if("object"==typeof n){let o=[];for(let s in n)if(n.hasOwnProperty(s)){let a=n[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):Ne(a)))}r=`{${o.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${t.replace(mE,"\n ")}`}("\n"+t.message,r,e,i),t.ngTokenPath=r,t[rl]=null,t}(s,n,"R3InjectorError",this.source)}throw s}finally{pn(o),Qr(r)}}resolveInjectorInitializers(){const n=Qr(this),e=pn(void 0);try{const i=this.get(dd.multi,ue,U.Self);for(const r of i)r()}finally{Qr(n),pn(e)}}toString(){const n=[],e=this.records;for(const i of e.keys())n.push(Ne(i));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new A(205,!1)}processProvider(n){let e=ir(n=z(n))?n:z(n&&n.provide);const i=function aM(t){return hd(t)?to(void 0,t.useValue):to(Um(t),ul)}(n);if(ir(n)||!0!==n.multi)this.records.get(e);else{let r=this.records.get(e);r||(r=to(void 0,ul,!0),r.factory=()=>nd(r.multi),this.records.set(e,r)),e=n,r.multi.push(n)}this.records.set(e,i)}hydrate(n,e){return e.value===ul&&(e.value=oM,e.value=e.factory()),"object"==typeof e.value&&e.value&&function cM(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(n){if(!n.providedIn)return!1;const e=z(n.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}}function md(t){const n=La(t),e=null!==n?n.factory:tr(t);if(null!==e)return e;if(t instanceof H)throw new A(204,!1);if(t instanceof Function)return function sM(t){const n=t.length;if(n>0)throw ss(n,"?"),new A(204,!1);const e=function rT(t){const n=t&&(t[Va]||t[Tg]);if(n){const e=function oT(t){if(t.hasOwnProperty("name"))return t.name;const n=(""+t).match(/^function\s*([^\s(]+)/);return null===n?"":n[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" 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 "${e}" class.`),n}return null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new A(204,!1)}function Um(t,n,e){let i;if(ir(t)){const r=z(t);return tr(r)||md(r)}if(hd(t))i=()=>z(t.useValue);else if(function Hm(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(...nd(t.deps||[]));else if(function jm(t){return!(!t||!t.useExisting)}(t))i=()=>O(z(t.useExisting));else{const r=z(t&&(t.useClass||t.provide));if(!function lM(t){return!!t.deps}(t))return tr(r)||md(r);i=()=>new r(...nd(t.deps))}return i}function to(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function dM(t){return!!t.\u0275providers}function _d(t,n){for(const e of t)Array.isArray(e)?_d(e,n):dM(e)?_d(e.\u0275providers,n):n(e)}class Gm{}class pM{resolveComponentFactory(n){throw function hM(t){const n=Error(`No component factory found for ${Ne(t)}. Did you add it to @NgModule.entryComponents?`);return n.ngComponent=t,n}(n)}}let vs=(()=>{class t{}return t.NULL=new pM,t})();function gM(){return no(st(),N())}function no(t,n){return new be(_n(t,n))}let be=(()=>{class t{constructor(e){this.nativeElement=e}}return t.__NG_ELEMENT_ID__=gM,t})();function mM(t){return t instanceof be?t.nativeElement:t}class vd{}let rn=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>function _M(){const t=N(),e=en(st().index,t);return(Wt(e)?e:t)[X]}(),t})(),vM=(()=>{class t{}return t.\u0275prov=x({token:t,providedIn:"root",factory:()=>null}),t})();class ys{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const yM=new ys("14.2.7"),yd={};function Sd(t){return t.ngOriginalError}class io{constructor(){this._console=console}handleError(n){const e=this._findOriginalError(n);this._console.error("ERROR",n),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(n){let e=n&&Sd(n);for(;e&&Sd(e);)e=Sd(e);return e||null}}const Td=new Map;let AM=0;const Md="__ngContext__";function It(t,n){Wt(n)?(t[Md]=n[20],function RM(t){Td.set(t[20],t)}(n)):t[Md]=n}function di(t){return t instanceof Function?t():t}var zt=(()=>((zt=zt||{})[zt.Important=1]="Important",zt[zt.DashCase=2]="DashCase",zt))();function Id(t,n){return undefined(t,n)}function Ds(t){const n=t[3];return Nn(n)?n[3]:n}function Od(t){return o_(t[13])}function Ad(t){return o_(t[4])}function o_(t){for(;null!==t&&!Nn(t);)t=t[4];return t}function oo(t,n,e,i,r){if(null!=i){let o,s=!1;Nn(i)?o=i:Wt(i)&&(s=!0,i=i[0]);const a=Xe(i);0===t&&null!==e?null==r?d_(n,e,a):rr(n,e,a,r||null,!0):1===t&&null!==e?rr(n,e,a,r||null,!0):2===t?function v_(t,n,e){const i=fl(t,n);i&&function sN(t,n,e,i){t.removeChild(n,e,i)}(t,i,n,e)}(n,a,s):3===t&&n.destroyNode(a),null!=o&&function cN(t,n,e,i,r){const o=e[7];o!==Xe(e)&&oo(n,t,i,o,r);for(let a=10;a<e.length;a++){const l=e[a];ws(l[1],l,t,n,i,o)}}(n,t,o,e,r)}}function Rd(t,n,e){return t.createElement(n,e)}function a_(t,n){const e=t[9],i=e.indexOf(n),r=n[3];512&n[2]&&(n[2]&=-513,Lu(r,-1)),e.splice(i,1)}function Pd(t,n){if(t.length<=10)return;const e=10+n,i=t[e];if(i){const r=i[17];null!==r&&r!==t&&a_(r,i),n>0&&(t[e-1][4]=i[4]);const o=nl(t,10+n);!function QM(t,n){ws(t,n,n[X],2,null,null),n[0]=null,n[6]=null}(i[1],i);const s=o[19];null!==s&&s.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-65}return i}function l_(t,n){if(!(128&n[2])){const e=n[X];e.destroyNode&&ws(t,n,e,3,null,null),function tN(t){let n=t[13];if(!n)return kd(t[1],t);for(;n;){let e=null;if(Wt(n))e=n[13];else{const i=n[10];i&&(e=i)}if(!e){for(;n&&!n[4]&&n!==t;)Wt(n)&&kd(n[1],n),n=n[3];null===n&&(n=t),Wt(n)&&kd(n[1],n),e=n&&n[4]}n=e}}(n)}}function kd(t,n){if(!(128&n[2])){n[2]&=-65,n[2]|=128,function oN(t,n){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let i=0;i<e.length;i+=2){const r=n[e[i]];if(!(r instanceof es)){const o=e[i+1];if(Array.isArray(o))for(let s=0;s<o.length;s+=2){const a=r[o[s]],l=o[s+1];try{l.call(a)}finally{}}else try{o.call(r)}finally{}}}}(t,n),function rN(t,n){const e=t.cleanup,i=n[7];let r=-1;if(null!==e)for(let o=0;o<e.length-1;o+=2)if("string"==typeof e[o]){const s=e[o+1],a="function"==typeof s?s(n):Xe(n[s]),l=i[r=e[o+2]],c=e[o+3];"boolean"==typeof c?a.removeEventListener(e[o],l,c):c>=0?i[r=c]():i[r=-c].unsubscribe(),o+=2}else{const s=i[r=e[o+1]];e[o].call(s)}if(null!==i){for(let o=r+1;o<i.length;o++)(0,i[o])();n[7]=null}}(t,n),1===n[1].type&&n[X].destroy();const e=n[17];if(null!==e&&Nn(n[3])){e!==n[3]&&a_(e,n);const i=n[19];null!==i&&i.detachView(t)}!function PM(t){Td.delete(t[20])}(n)}}function c_(t,n,e){return function u_(t,n,e){let i=n;for(;null!==i&&40&i.type;)i=(n=i).parent;if(null===i)return e[0];if(2&i.flags){const r=t.data[i.directiveStart].encapsulation;if(r===qn.None||r===qn.Emulated)return null}return _n(i,e)}(t,n.parent,e)}function rr(t,n,e,i,r){t.insertBefore(n,e,i,r)}function d_(t,n,e){t.appendChild(n,e)}function f_(t,n,e,i,r){null!==i?rr(t,n,e,i,r):d_(t,n,e)}function fl(t,n){return t.parentNode(n)}function h_(t,n,e){return g_(t,n,e)}let g_=function p_(t,n,e){return 40&t.type?_n(t,e):null};function hl(t,n,e,i){const r=c_(t,i,n),o=n[X],a=h_(i.parent||n[6],i,n);if(null!=r)if(Array.isArray(e))for(let l=0;l<e.length;l++)f_(o,r,e[l],a,!1);else f_(o,r,e,a,!1)}function pl(t,n){if(null!==n){const e=n.type;if(3&e)return _n(n,t);if(4&e)return Ld(-1,t[n.index]);if(8&e){const i=n.child;if(null!==i)return pl(t,i);{const r=t[n.index];return Nn(r)?Ld(-1,r):Xe(r)}}if(32&e)return Id(n,t)()||Xe(t[n.index]);{const i=__(t,n);return null!==i?Array.isArray(i)?i[0]:pl(Ds(t[16]),i):pl(t,n.next)}}return null}function __(t,n){return null!==n?t[16][6].projection[n.projection]:null}function Ld(t,n){const e=10+t+1;if(e<n.length){const i=n[e],r=i[1].firstChild;if(null!==r)return pl(i,r)}return n[7]}function Vd(t,n,e,i,r,o,s){for(;null!=e;){const a=i[e.index],l=e.type;if(s&&0===n&&(a&&It(Xe(a),i),e.flags|=4),64!=(64&e.flags))if(8&l)Vd(t,n,e.child,i,r,o,!1),oo(n,t,r,a,o);else if(32&l){const c=Id(e,i);let u;for(;u=c();)oo(n,t,r,u,o);oo(n,t,r,a,o)}else 16&l?y_(t,n,i,e,r,o):oo(n,t,r,a,o);e=s?e.projectionNext:e.next}}function ws(t,n,e,i,r,o){Vd(e,i,t.firstChild,n,r,o,!1)}function y_(t,n,e,i,r,o){const s=e[16],l=s[6].projection[i.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++)oo(n,t,r,l[c],o);else Vd(t,n,l,s[3],r,o,!0)}function b_(t,n,e){t.setAttribute(n,"style",e)}function Bd(t,n,e){""===e?t.removeAttribute(n,"class"):t.setAttribute(n,"class",e)}function D_(t,n,e){let i=t.length;for(;;){const r=t.indexOf(n,e);if(-1===r)return r;if(0===r||t.charCodeAt(r-1)<=32){const o=n.length;if(r+o===i||t.charCodeAt(r+o)<=32)return r}e=r+1}}const w_="ng-template";function dN(t,n,e){let i=0;for(;i<t.length;){let r=t[i++];if(e&&"class"===r){if(r=t[i],-1!==D_(r.toLowerCase(),n,0))return!0}else if(1===r){for(;i<t.length&&"string"==typeof(r=t[i++]);)if(r.toLowerCase()===n)return!0;return!1}}return!1}function C_(t){return 4===t.type&&t.value!==w_}function fN(t,n,e){return n===(4!==t.type||e?t.value:w_)}function hN(t,n,e){let i=4;const r=t.attrs||[],o=function mN(t){for(let n=0;n<t.length;n++)if(Jg(t[n]))return n;return t.length}(r);let s=!1;for(let a=0;a<n.length;a++){const l=n[a];if("number"!=typeof l){if(!s)if(4&i){if(i=2|1&i,""!==l&&!fN(t,l,e)||""===l&&1===n.length){if(On(i))return!1;s=!0}}else{const c=8&i?l:n[++a];if(8&i&&null!==t.attrs){if(!dN(t.attrs,c,e)){if(On(i))return!1;s=!0}continue}const d=pN(8&i?"class":l,r,C_(t),e);if(-1===d){if(On(i))return!1;s=!0;continue}if(""!==c){let f;f=d>o?"":r[d+1].toLowerCase();const h=8&i?f:null;if(h&&-1!==D_(h,c,0)||2&i&&c!==f){if(On(i))return!1;s=!0}}}}else{if(!s&&!On(i)&&!On(l))return!1;if(s&&On(l))continue;s=!1,i=l|1&i}}return On(i)||s}function On(t){return 0==(1&t)}function pN(t,n,e,i){if(null===n)return-1;let r=0;if(i||!e){let o=!1;for(;r<n.length;){const s=n[r];if(s===t)return r;if(3===s||6===s)o=!0;else{if(1===s||2===s){let a=n[++r];for(;"string"==typeof a;)a=n[++r];continue}if(4===s)break;if(0===s){r+=4;continue}}r+=o?1:2}return-1}return function _N(t,n){let e=t.indexOf(4);if(e>-1)for(e++;e<t.length;){const i=t[e];if("number"==typeof i)return-1;if(i===n)return e;e++}return-1}(n,t)}function S_(t,n,e=!1){for(let i=0;i<n.length;i++)if(hN(t,n[i],e))return!0;return!1}function vN(t,n){e:for(let e=0;e<n.length;e++){const i=n[e];if(t.length===i.length){for(let r=0;r<t.length;r++)if(t[r]!==i[r])continue e;return!0}}return!1}function T_(t,n){return t?":not("+n.trim()+")":n}function yN(t){let n=t[0],e=1,i=2,r="",o=!1;for(;e<t.length;){let s=t[e];if("string"==typeof s)if(2&i){const a=t[++e];r+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else 8&i?r+="."+s:4&i&&(r+=" "+s);else""!==r&&!On(s)&&(n+=T_(o,r),r=""),i=s,o=o||!On(i);e++}return""!==r&&(n+=T_(o,r)),n}const Y={};function p(t){E_(re(),N(),Vt()+t,!1)}function E_(t,n,e,i){if(!i)if(3==(3&n[2])){const o=t.preOrderCheckHooks;null!==o&&Ka(n,o,e)}else{const o=t.preOrderHooks;null!==o&&Ya(n,o,0,e)}xi(e)}function O_(t,n=null,e=null,i){const r=A_(t,n,e,i);return r.resolveInjectorInitializers(),r}function A_(t,n=null,e=null,i,r=new Set){const o=[e||ue,nM(t)];return i=i||("object"==typeof t?void 0:Ne(t)),new $m(o,n||dl(),i||null,r)}let bt=(()=>{class t{static create(e,i){var r;if(Array.isArray(e))return O_({name:""},i,e,"");{const o=null!==(r=e.name)&&void 0!==r?r:"";return O_({name:o},e.parent,e.providers,o)}}}return t.THROW_IF_NOT_FOUND=as,t.NULL=new Lm,t.\u0275prov=x({token:t,providedIn:"any",factory:()=>O(km)}),t.__NG_ELEMENT_ID__=-1,t})();function v(t,n=U.Default){const e=N();return null===e?O(t,n):rm(st(),e,z(t),n)}function Gd(){throw new Error("invalid")}function ml(t,n){return t<<17|n<<2}function An(t){return t>>17&32767}function Wd(t){return 2|t}function fi(t){return(131068&t)>>2}function zd(t,n){return-131069&t|n<<2}function qd(t){return 1|t}function K_(t,n){const e=t.contentQueries;if(null!==e)for(let i=0;i<e.length;i+=2){const r=e[i],o=e[i+1];if(-1!==o){const s=t.data[o];$u(r),s.contentQueries(2,n[o],o)}}}function yl(t,n,e,i,r,o,s,a,l,c,u){const d=n.blueprint.slice();return d[0]=r,d[2]=76|i,(null!==u||t&&1024&t[2])&&(d[2]|=1024),Fg(d),d[3]=d[15]=t,d[8]=e,d[10]=s||t&&t[10],d[X]=a||t&&t[X],d[12]=l||t&&t[12]||null,d[9]=c||t&&t[9]||null,d[6]=o,d[20]=function xM(){return AM++}(),d[21]=u,d[16]=2==n.type?t[16]:d,d}function ao(t,n,e,i,r){let o=t.data[n];if(null===o)o=function tf(t,n,e,i,r){const o=Bg(),s=Vu(),l=t.data[n]=function tI(t,n,e,i,r,o){return{type:e,index:i,insertBeforeIndex:null,injectorIndex:n?n.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:r,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?o:o&&o.parent,e,n,i,r);return null===t.firstChild&&(t.firstChild=l),null!==o&&(s?null==o.child&&null!==l.parent&&(o.child=l):null===o.next&&(o.next=l)),l}(t,n,e,i,r),function PT(){return q.lFrame.inI18n}()&&(o.flags|=64);else if(64&o.type){o.type=e,o.value=i,o.attrs=r;const s=function Xo(){const t=q.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}();o.injectorIndex=null===s?-1:s.injectorIndex}return Kn(o,!0),o}function lo(t,n,e,i){if(0===e)return-1;const r=n.length;for(let o=0;o<e;o++)n.push(i),t.blueprint.push(i),t.data.push(null);return r}function nf(t,n,e){Uu(n);try{const i=t.viewQuery;null!==i&&ff(1,i,e);const r=t.template;null!==r&&Y_(t,n,r,1,e),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&K_(t,n),t.staticViewQueries&&ff(2,t.viewQuery,e);const o=t.components;null!==o&&function QN(t,n){for(let e=0;e<n.length;e++)_I(t,n[e])}(n,o)}catch(i){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),i}finally{n[2]&=-5,Gu()}}function bl(t,n,e,i){const r=n[2];if(128!=(128&r)){Uu(n);try{Fg(n),function Hg(t){return q.lFrame.bindingIndex=t}(t.bindingStartIndex),null!==e&&Y_(t,n,e,2,i);const s=3==(3&r);if(s){const c=t.preOrderCheckHooks;null!==c&&Ka(n,c,null)}else{const c=t.preOrderHooks;null!==c&&Ya(n,c,0,null),Wu(n,0)}if(function gI(t){for(let n=Od(t);null!==n;n=Ad(n)){if(!n[2])continue;const e=n[9];for(let i=0;i<e.length;i++){const r=e[i],o=r[3];0==(512&r[2])&&Lu(o,1),r[2]|=512}}}(n),function pI(t){for(let n=Od(t);null!==n;n=Ad(n))for(let e=10;e<n.length;e++){const i=n[e],r=i[1];za(i)&&bl(r,i,r.template,i[8])}}(n),null!==t.contentQueries&&K_(t,n),s){const c=t.contentCheckHooks;null!==c&&Ka(n,c)}else{const c=t.contentHooks;null!==c&&Ya(n,c,1),Wu(n,1)}!function JN(t,n){const e=t.hostBindingOpCodes;if(null!==e)try{for(let i=0;i<e.length;i++){const r=e[i];if(r<0)xi(~r);else{const o=r,s=e[++i],a=e[++i];kT(s,o),a(2,n[o])}}}finally{xi(-1)}}(t,n);const a=t.components;null!==a&&function ZN(t,n){for(let e=0;e<n.length;e++)mI(t,n[e])}(n,a);const l=t.viewQuery;if(null!==l&&ff(2,l,i),s){const c=t.viewCheckHooks;null!==c&&Ka(n,c)}else{const c=t.viewHooks;null!==c&&Ya(n,c,2),Wu(n,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),n[2]&=-41,512&n[2]&&(n[2]&=-513,Lu(n[3],-1))}finally{Gu()}}}function Y_(t,n,e,i,r){const o=Vt(),s=2&i;try{xi(-1),s&&n.length>22&&E_(t,n,22,!1),e(i,r)}finally{xi(o)}}function rf(t,n,e){!Vg()||(function sI(t,n,e,i){const r=e.directiveStart,o=e.directiveEnd;t.firstCreatePass||ns(e,n),It(i,n);const s=e.initialInputs;for(let a=r;a<o;a++){const l=t.data[a],c=In(l);c&&dI(n,e,l);const u=is(n,t,a,e);It(u,n),null!==s&&fI(0,a-r,u,l,0,s),c&&(en(e.index,n)[8]=u)}}(t,n,e,_n(e,n)),128==(128&e.flags)&&function aI(t,n,e){const i=e.directiveStart,r=e.directiveEnd,o=e.index,s=function FT(){return q.lFrame.currentDirectiveIndex}();try{xi(o);for(let a=i;a<r;a++){const l=t.data[a],c=n[a];ju(a),(null!==l.hostBindings||0!==l.hostVars||null!==l.hostAttrs)&&iv(l,c)}}finally{xi(-1),ju(s)}}(t,n,e))}function sf(t,n,e=_n){const i=n.localNames;if(null!==i){let r=n.index+1;for(let o=0;o<i.length;o+=2){const s=i[o+1],a=-1===s?e(n,t):t[s];t[r++]=a}}}function Z_(t){const n=t.tView;return null===n||n.incompleteFirstPass?t.tView=af(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):n}function af(t,n,e,i,r,o,s,a,l,c){const u=22+i,d=u+r,f=function XN(t,n){const e=[];for(let i=0;i<n;i++)e.push(i<t?null:Y);return e}(u,d),h="function"==typeof c?c():c;return f[1]={type:t,blueprint:f,template:e,queries:null,viewQuery:a,declTNode:n,data:f.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 o?o():o,pipeRegistry:"function"==typeof s?s():s,firstChild:null,schemas:l,consts:h,incompleteFirstPass:!1}}function Q_(t,n,e,i){const r=lv(n);null===e?r.push(i):(r.push(e),t.firstCreatePass&&cv(t).push(i,r.length-1))}function X_(t,n,e){for(let i in t)if(t.hasOwnProperty(i)){const r=t[i];(e=null===e?{}:e).hasOwnProperty(i)?e[i].push(n,r):e[i]=[n,r]}return e}function ev(t,n){const i=n.directiveEnd,r=t.data,o=n.attrs,s=[];let a=null,l=null;for(let c=n.directiveStart;c<i;c++){const u=r[c],d=u.inputs,f=null===o||C_(n)?null:hI(d,o);s.push(f),a=X_(d,c,a),l=X_(u.outputs,c,l)}null!==a&&(a.hasOwnProperty("class")&&(n.flags|=16),a.hasOwnProperty("style")&&(n.flags|=32)),n.initialInputs=s,n.inputs=a,n.outputs=l}function on(t,n,e,i,r,o,s,a){const l=_n(n,e);let u,c=n.inputs;!a&&null!=c&&(u=c[i])?(hf(t,e,u,i,r),Ua(n)&&tv(e,n.index)):3&n.type&&(i=function nI(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(i),r=null!=s?s(r,n.value||"",i):r,o.setProperty(l,i,r))}function tv(t,n){const e=en(n,t);16&e[2]||(e[2]|=32)}function lf(t,n,e,i){let r=!1;if(Vg()){const o=function lI(t,n,e){const i=t.directiveRegistry;let r=null;if(i)for(let o=0;o<i.length;o++){const s=i[o];S_(e,s.selectors,!1)&&(r||(r=[]),el(ns(e,n),t,s.type),In(s)?(rv(t,e),r.unshift(s)):r.push(s))}return r}(t,n,e),s=null===i?null:{"":-1};if(null!==o){r=!0,ov(e,t.data.length,o.length);for(let u=0;u<o.length;u++){const d=o[u];d.providersResolver&&d.providersResolver(d)}let a=!1,l=!1,c=lo(t,n,o.length,null);for(let u=0;u<o.length;u++){const d=o[u];e.mergedAttrs=Za(e.mergedAttrs,d.hostAttrs),sv(t,e,n,c,d),uI(c,d,s),null!==d.contentQueries&&(e.flags|=8),(null!==d.hostBindings||null!==d.hostAttrs||0!==d.hostVars)&&(e.flags|=128);const f=d.type.prototype;!a&&(f.ngOnChanges||f.ngOnInit||f.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(e.index),a=!0),!l&&(f.ngOnChanges||f.ngDoCheck)&&((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e.index),l=!0),c++}ev(t,e)}s&&function cI(t,n,e){if(n){const i=t.localNames=[];for(let r=0;r<n.length;r+=2){const o=e[n[r+1]];if(null==o)throw new A(-301,!1);i.push(n[r],o)}}}(e,i,s)}return e.mergedAttrs=Za(e.mergedAttrs,e.attrs),r}function nv(t,n,e,i,r,o){const s=o.hostBindings;if(s){let a=t.hostBindingOpCodes;null===a&&(a=t.hostBindingOpCodes=[]);const l=~n.index;(function oI(t){let n=t.length;for(;n>0;){const e=t[--n];if("number"==typeof e&&e<0)return e}return 0})(a)!=l&&a.push(l),a.push(i,r,s)}}function iv(t,n){null!==t.hostBindings&&t.hostBindings(1,n)}function rv(t,n){n.flags|=2,(t.components||(t.components=[])).push(n.index)}function uI(t,n,e){if(e){if(n.exportAs)for(let i=0;i<n.exportAs.length;i++)e[n.exportAs[i]]=t;In(n)&&(e[""]=t)}}function ov(t,n,e){t.flags|=1,t.directiveStart=n,t.directiveEnd=n+e,t.providerIndexes=n}function sv(t,n,e,i,r){t.data[i]=r;const o=r.factory||(r.factory=tr(r.type)),s=new es(o,In(r),v);t.blueprint[i]=s,e[i]=s,nv(t,n,0,i,lo(t,e,r.hostVars,Y),r)}function dI(t,n,e){const i=_n(n,t),r=Z_(e),o=t[10],s=Dl(t,yl(t,r,null,e.onPush?32:16,i,n,o,o.createRenderer(i,e),null,null,null));t[n.index]=s}function Jn(t,n,e,i,r,o){const s=_n(t,n);!function cf(t,n,e,i,r,o,s){if(null==o)t.removeAttribute(n,r,e);else{const a=null==s?K(o):s(o,i||"",r);t.setAttribute(n,r,a,e)}}(n[X],s,o,t.value,e,i,r)}function fI(t,n,e,i,r,o){const s=o[n];if(null!==s){const a=i.setInput;for(let l=0;l<s.length;){const c=s[l++],u=s[l++],d=s[l++];null!==a?i.setInput(e,d,c,u):e[u]=d}}}function hI(t,n){let e=null,i=0;for(;i<n.length;){const r=n[i];if(0!==r)if(5!==r){if("number"==typeof r)break;t.hasOwnProperty(r)&&(null===e&&(e=[]),e.push(r,t[r],n[i+1])),i+=2}else i+=2;else i+=4}return e}function av(t,n,e,i){return new Array(t,!0,!1,n,null,0,i,e,null,null)}function mI(t,n){const e=en(n,t);if(za(e)){const i=e[1];48&e[2]?bl(i,e,i.template,e[8]):e[5]>0&&uf(e)}}function uf(t){for(let i=Od(t);null!==i;i=Ad(i))for(let r=10;r<i.length;r++){const o=i[r];if(za(o))if(512&o[2]){const s=o[1];bl(s,o,s.template,o[8])}else o[5]>0&&uf(o)}const e=t[1].components;if(null!==e)for(let i=0;i<e.length;i++){const r=en(e[i],t);za(r)&&r[5]>0&&uf(r)}}function _I(t,n){const e=en(n,t),i=e[1];(function vI(t,n){for(let e=n.length;e<t.blueprint.length;e++)n.push(t.blueprint[e])})(i,e),nf(i,e,e[8])}function Dl(t,n){return t[13]?t[14][4]=n:t[13]=n,t[14]=n,n}function df(t){for(;t;){t[2]|=32;const n=Ds(t);if(pT(t)&&!n)return t;t=n}return null}function wl(t,n,e,i=!0){const r=n[10];r.begin&&r.begin();try{bl(t,n,t.template,e)}catch(s){throw i&&dv(n,s),s}finally{r.end&&r.end()}}function ff(t,n,e){$u(0),n(t,e)}function lv(t){return t[7]||(t[7]=[])}function cv(t){return t.cleanup||(t.cleanup=[])}function dv(t,n){const e=t[9],i=e?e.get(io,null):null;i&&i.handleError(n)}function hf(t,n,e,i,r){for(let o=0;o<e.length;){const s=e[o++],a=e[o++],l=n[s],c=t.data[s];null!==c.setInput?c.setInput(l,r,i,a):l[a]=r}}function hi(t,n,e){const i=Wa(n,t);!function s_(t,n,e){t.setValue(n,e)}(t[X],i,e)}function Cl(t,n,e){let i=e?t.styles:null,r=e?t.classes:null,o=0;if(null!==n)for(let s=0;s<n.length;s++){const a=n[s];"number"==typeof a?o=a:1==o?r=Cu(r,a):2==o&&(i=Cu(i,a+": "+n[++s]+";"))}e?t.styles=i:t.stylesWithoutHost=i,e?t.classes=r:t.classesWithoutHost=r}function Sl(t,n,e,i,r=!1){for(;null!==e;){const o=n[e.index];if(null!==o&&i.push(Xe(o)),Nn(o))for(let a=10;a<o.length;a++){const l=o[a],c=l[1].firstChild;null!==c&&Sl(l[1],l,c,i)}const s=e.type;if(8&s)Sl(t,n,e.child,i);else if(32&s){const a=Id(e,n);let l;for(;l=a();)i.push(l)}else if(16&s){const a=__(n,e);if(Array.isArray(a))i.push(...a);else{const l=Ds(n[16]);Sl(l[1],l,a,i,!0)}}e=r?e.projectionNext:e.next}return i}class Cs{constructor(n,e){this._lView=n,this._cdRefInjectingView=e,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const n=this._lView,e=n[1];return Sl(e,n,e.firstChild,[])}get context(){return this._lView[8]}set context(n){this._lView[8]=n}get destroyed(){return 128==(128&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const n=this._lView[3];if(Nn(n)){const e=n[8],i=e?e.indexOf(this):-1;i>-1&&(Pd(n,i),nl(e,i))}this._attachedToViewContainer=!1}l_(this._lView[1],this._lView)}onDestroy(n){Q_(this._lView[1],this._lView,null,n)}markForCheck(){df(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){wl(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new A(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function eN(t,n){ws(t,n,n[X],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new A(902,!1);this._appRef=n}}class yI extends Cs{constructor(n){super(n),this._view=n}detectChanges(){const n=this._view;wl(n[1],n,n[8],!1)}checkNoChanges(){}get context(){return null}}class pf extends vs{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const e=_e(n);return new Ss(e,this.ngModule)}}function fv(t){const n=[];for(let e in t)t.hasOwnProperty(e)&&n.push({propName:t[e],templateName:e});return n}class DI{constructor(n,e){this.injector=n,this.parentInjector=e}get(n,e,i){const r=this.injector.get(n,yd,i);return r!==yd||e===yd?r:this.parentInjector.get(n,e,i)}}class Ss extends Gm{constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=function bN(t){return t.map(yN).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return fv(this.componentDef.inputs)}get outputs(){return fv(this.componentDef.outputs)}create(n,e,i,r){let o=(r=r||this.ngModule)instanceof ki?r:null==r?void 0:r.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const s=o?new DI(n,o):n,a=s.get(vd,null);if(null===a)throw new A(407,!1);const l=s.get(vM,null),c=a.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",d=i?function eI(t,n,e){return t.selectRootElement(n,e===qn.ShadowDom)}(c,i,this.componentDef.encapsulation):Rd(a.createRenderer(null,this.componentDef),u,function bI(t){const n=t.toLowerCase();return"svg"===n?"svg":"math"===n?"math":null}(u)),f=this.componentDef.onPush?288:272,h=af(0,null,null,1,0,null,null,null,null,null),g=yl(null,h,null,f,null,null,a,c,l,s,null);let b,w;Uu(g);try{const S=function SI(t,n,e,i,r,o){const s=e[1];e[22]=t;const l=ao(s,22,2,"#host",null),c=l.mergedAttrs=n.hostAttrs;null!==c&&(Cl(l,c,!0),null!==t&&(Ja(r,t,c),null!==l.classes&&Bd(r,t,l.classes),null!==l.styles&&b_(r,t,l.styles)));const u=i.createRenderer(t,n),d=yl(e,Z_(n),null,n.onPush?32:16,e[22],l,i,u,o||null,null,null);return s.firstCreatePass&&(el(ns(l,e),s,n.type),rv(s,l),ov(l,e.length,1)),Dl(e,d),e[22]=d}(d,this.componentDef,g,a,c);if(d)if(i)Ja(c,d,["ng-version",yM.full]);else{const{attrs:M,classes:C}=function DN(t){const n=[],e=[];let i=1,r=2;for(;i<t.length;){let o=t[i];if("string"==typeof o)2===r?""!==o&&n.push(o,t[++i]):8===r&&e.push(o);else{if(!On(r))break;r=o}i++}return{attrs:n,classes:e}}(this.componentDef.selectors[0]);M&&Ja(c,d,M),C&&C.length>0&&Bd(c,d,C.join(" "))}if(w=Fu(h,22),void 0!==e){const M=w.projection=[];for(let C=0;C<this.ngContentSelectors.length;C++){const I=e[C];M.push(null!=I?Array.from(I):null)}}b=function TI(t,n,e,i){const r=e[1],o=function rI(t,n,e){const i=st();t.firstCreatePass&&(e.providersResolver&&e.providersResolver(e),sv(t,i,n,lo(t,n,1,null),e),ev(t,i));const r=is(n,t,i.directiveStart,i);It(r,n);const o=_n(i,n);return o&&It(o,n),r}(r,e,n);if(t[8]=e[8]=o,null!==i)for(const a of i)a(o,n);if(n.contentQueries){const a=st();n.contentQueries(1,o,a.directiveStart)}const s=st();return!r.firstCreatePass||null===n.hostBindings&&null===n.hostAttrs||(xi(s.index),nv(e[1],s,0,s.directiveStart,s.directiveEnd,n),iv(n,o)),o}(S,this.componentDef,g,[EI]),nf(h,g,null)}finally{Gu()}return new CI(this.componentType,b,no(w,g),g,w)}}class CI extends class fM{}{constructor(n,e,i,r,o){super(),this.location=i,this._rootLView=r,this._tNode=o,this.instance=e,this.hostView=this.changeDetectorRef=new yI(r),this.componentType=n}setInput(n,e){const i=this._tNode.inputs;let r;if(null!==i&&(r=i[n])){const o=this._rootLView;hf(o[1],o,r,n,e),tv(o,this._tNode.index)}}get injector(){return new zr(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}}function EI(){const t=st();qa(N()[1],t)}function he(t){let n=function hv(t){return Object.getPrototypeOf(t.prototype).constructor}(t.type),e=!0;const i=[t];for(;n;){let r;if(In(t))r=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new A(903,!1);r=n.\u0275dir}if(r){if(e){i.push(r);const s=t;s.inputs=gf(t.inputs),s.declaredInputs=gf(t.declaredInputs),s.outputs=gf(t.outputs);const a=r.hostBindings;a&&OI(t,a);const l=r.viewQuery,c=r.contentQueries;if(l&&NI(t,l),c&&II(t,c),wu(t.inputs,r.inputs),wu(t.declaredInputs,r.declaredInputs),wu(t.outputs,r.outputs),In(r)&&r.data.animation){const u=t.data;u.animation=(u.animation||[]).concat(r.data.animation)}}const o=r.features;if(o)for(let s=0;s<o.length;s++){const a=o[s];a&&a.ngInherit&&a(t),a===he&&(e=!1)}}n=Object.getPrototypeOf(n)}!function MI(t){let n=0,e=null;for(let i=t.length-1;i>=0;i--){const r=t[i];r.hostVars=n+=r.hostVars,r.hostAttrs=Za(r.hostAttrs,e=Za(e,r.hostAttrs))}}(i)}function gf(t){return t===Lr?{}:t===ue?[]:t}function NI(t,n){const e=t.viewQuery;t.viewQuery=e?(i,r)=>{n(i,r),e(i,r)}:n}function II(t,n){const e=t.contentQueries;t.contentQueries=e?(i,r,o)=>{n(i,r,o),e(i,r,o)}:n}function OI(t,n){const e=t.hostBindings;t.hostBindings=e?(i,r)=>{n(i,r),e(i,r)}:n}let Tl=null;function or(){if(!Tl){const t=Oe.Symbol;if(t&&t.iterator)Tl=t.iterator;else{const n=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<n.length;++e){const i=n[e];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(Tl=i)}}}return Tl}function Ts(t){return!!mf(t)&&(Array.isArray(t)||!(t instanceof Map)&&or()in t)}function mf(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function Zn(t,n,e){return t[n]=e}function Ot(t,n,e){return!Object.is(t[n],e)&&(t[n]=e,!0)}function sr(t,n,e,i){const r=Ot(t,n,e);return Ot(t,n+1,i)||r}function De(t,n,e,i){const r=N();return Ot(r,Ur(),n)&&(re(),Jn(We(),r,t,n,e,i)),De}function uo(t,n,e,i){return Ot(t,Ur(),e)?n+K(e)+i:Y}function fo(t,n,e,i,r,o){const a=sr(t,function ai(){return q.lFrame.bindingIndex}(),e,r);return li(2),a?n+K(e)+i+K(r)+o:Y}function D(t,n,e,i,r,o,s,a){const l=N(),c=re(),u=t+22,d=c.firstCreatePass?function VI(t,n,e,i,r,o,s,a,l){const c=n.consts,u=ao(n,t,4,s||null,Ai(c,a));lf(n,e,u,Ai(c,l)),qa(n,u);const d=u.tViews=af(2,u,i,r,o,n.directiveRegistry,n.pipeRegistry,null,n.schemas,c);return null!==n.queries&&(n.queries.template(n,u),d.queries=n.queries.embeddedTView(u)),u}(u,c,l,n,e,i,r,o,s):c.data[u];Kn(d,!1);const f=l[X].createComment("");hl(c,l,f,d),It(f,l),Dl(l,l[u]=av(f,l,f,d)),Ga(d)&&rf(c,l,d),null!=s&&sf(l,d,a)}function Dt(t){return $r(function RT(){return q.lFrame.contextLView}(),22+t)}function y(t,n,e){const i=N();return Ot(i,Ur(),n)&&on(re(),We(),i,t,n,i[X],e,!1),y}function _f(t,n,e,i,r){const s=r?"class":"style";hf(t,e,n.inputs[s],s,i)}function m(t,n,e,i){const r=N(),o=re(),s=22+t,a=r[X],l=r[s]=Rd(a,n,function GT(){return q.lFrame.currentNamespace}()),c=o.firstCreatePass?function jI(t,n,e,i,r,o,s){const a=n.consts,c=ao(n,t,2,r,Ai(a,o));return lf(n,e,c,Ai(a,s)),null!==c.attrs&&Cl(c,c.attrs,!1),null!==c.mergedAttrs&&Cl(c,c.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,c),c}(s,o,r,0,n,e,i):o.data[s];Kn(c,!0);const u=c.mergedAttrs;null!==u&&Ja(a,l,u);const d=c.classes;null!==d&&Bd(a,l,d);const f=c.styles;return null!==f&&b_(a,l,f),64!=(64&c.flags)&&hl(o,r,l,c),0===function NT(){return q.lFrame.elementDepthCount}()&&It(l,r),function IT(){q.lFrame.elementDepthCount++}(),Ga(c)&&(rf(o,r,c),function J_(t,n,e){if(Au(n)){const r=n.directiveEnd;for(let o=n.directiveStart;o<r;o++){const s=t.data[o];s.contentQueries&&s.contentQueries(1,e[o],o)}}}(o,c,r)),null!==i&&sf(r,c),m}function _(){let t=st();Vu()?Bu():(t=t.parent,Kn(t,!1));const n=t;!function OT(){q.lFrame.elementDepthCount--}();const e=re();return e.firstCreatePass&&(qa(e,t),Au(t)&&e.queries.elementEnd(t)),null!=n.classesWithoutHost&&function YT(t){return 0!=(16&t.flags)}(n)&&_f(e,n,N(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function JT(t){return 0!=(32&t.flags)}(n)&&_f(e,n,N(),n.stylesWithoutHost,!1),_}function pe(t,n,e,i){return m(t,n,e,i),_(),pe}function lt(){return N()}function Ms(t){return!!t&&"function"==typeof t.then}const bf=function Sv(t){return!!t&&"function"==typeof t.subscribe};function B(t,n,e,i){const r=N(),o=re(),s=st();return function Ev(t,n,e,i,r,o,s,a){const l=Ga(i),u=t.firstCreatePass&&cv(t),d=n[8],f=lv(n);let h=!0;if(3&i.type||a){const w=_n(i,n),S=a?a(w):w,M=f.length,C=a?P=>a(Xe(P[i.index])):i.index;let I=null;if(!a&&l&&(I=function $I(t,n,e,i){const r=t.cleanup;if(null!=r)for(let o=0;o<r.length-1;o+=2){const s=r[o];if(s===e&&r[o+1]===i){const a=n[7],l=r[o+2];return a.length>l?a[l]:null}"string"==typeof s&&(o+=2)}return null}(t,n,r,i.index)),null!==I)(I.__ngLastListenerFn__||I).__ngNextListenerFn__=o,I.__ngLastListenerFn__=o,h=!1;else{o=Nv(i,n,d,o,!1);const P=e.listen(S,r,o);f.push(o,P),u&&u.push(r,C,M,M+1)}}else o=Nv(i,n,d,o,!1);const g=i.outputs;let b;if(h&&null!==g&&(b=g[r])){const w=b.length;if(w)for(let S=0;S<w;S+=2){const V=n[b[S]][b[S+1]].subscribe(o),ae=f.length;f.push(o,V),u&&u.push(r,i.index,ae,-(ae+1))}}}(o,r,r[X],s,t,n,0,i),B}function Mv(t,n,e,i){try{return!1!==e(i)}catch(r){return dv(t,r),!1}}function Nv(t,n,e,i,r){return function o(s){if(s===Function)return i;df(2&t.flags?en(t.index,n):n);let l=Mv(n,0,i,s),c=o.__ngNextListenerFn__;for(;c;)l=Mv(n,0,c,s)&&l,c=c.__ngNextListenerFn__;return r&&!1===l&&(s.preventDefault(),s.returnValue=!1),l}}function E(t=1){return function VT(t){return(q.lFrame.contextLView=function BT(t,n){for(;t>0;)n=n[15],t--;return n}(t,q.lFrame.contextLView))[8]}(t)}function UI(t,n){let e=null;const i=function gN(t){const n=t.attrs;if(null!=n){const e=n.indexOf(5);if(0==(1&e))return n[e+1]}return null}(t);for(let r=0;r<n.length;r++){const o=n[r];if("*"!==o){if(null===i?S_(t,o,!0):vN(i,o))return r}else e=r}return e}function Re(t,n,e){return Ml(t,"",n,"",e),Re}function Ml(t,n,e,i,r){const o=N(),s=uo(o,n,e,i);return s!==Y&&on(re(),We(),o,t,s,o[X],r,!1),Ml}function Bv(t,n,e,i,r){const o=t[e+1],s=null===n;let a=i?An(o):fi(o),l=!1;for(;0!==a&&(!1===l||s);){const u=t[a+1];zI(t[a],n)&&(l=!0,t[a+1]=i?qd(u):Wd(u)),a=i?An(u):fi(u)}l&&(t[e+1]=i?Wd(o):qd(o))}function zI(t,n){return null===t||null==n||(Array.isArray(t)?t[1]:t)===n||!(!Array.isArray(t)||"string"!=typeof n)&&Zr(t,n)>=0}const ct={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function jv(t){return t.substring(ct.key,ct.keyEnd)}function Hv(t,n){const e=ct.textEnd;return e===n?-1:(n=ct.keyEnd=function JI(t,n,e){for(;n<e&&t.charCodeAt(n)>32;)n++;return n}(t,ct.key=n,e),yo(t,n,e))}function yo(t,n,e){for(;n<e&&t.charCodeAt(n)<=32;)n++;return n}function Ie(t,n){return function xn(t,n,e,i){const r=N(),o=re(),s=li(2);o.firstUpdatePass&&qv(o,t,s,i),n!==Y&&Ot(r,s,n)&&Yv(o,o.data[Vt()],r,r[X],t,r[s+1]=function sO(t,n){return null==t||("string"==typeof n?t+=n:"object"==typeof t&&(t=Ne(Pi(t)))),t}(n,e),i,s)}(t,n,null,!0),Ie}function ar(t){!function Rn(t,n,e,i){const r=re(),o=li(2);r.firstUpdatePass&&qv(r,null,o,i);const s=N();if(e!==Y&&Ot(s,o,e)){const a=r.data[Vt()];if(Zv(a,i)&&!zv(r,o)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=Cu(l,e||"")),_f(r,a,s,e,i)}else!function oO(t,n,e,i,r,o,s,a){r===Y&&(r=ue);let l=0,c=0,u=0<r.length?r[0]:null,d=0<o.length?o[0]:null;for(;null!==u||null!==d;){const f=l<r.length?r[l+1]:void 0,h=c<o.length?o[c+1]:void 0;let b,g=null;u===d?(l+=2,c+=2,f!==h&&(g=d,b=h)):null===d||null!==u&&u<d?(l+=2,g=u):(c+=2,g=d,b=h),null!==g&&Yv(t,n,e,i,g,b,s,a),u=l<r.length?r[l]:null,d=c<o.length?o[c]:null}}(r,a,s,s[X],s[o+1],s[o+1]=function rO(t,n,e){if(null==e||""===e)return ue;const i=[],r=Pi(e);if(Array.isArray(r))for(let o=0;o<r.length;o++)t(i,r[o],!0);else if("object"==typeof r)for(const o in r)r.hasOwnProperty(o)&&t(i,o,r[o]);else"string"==typeof r&&n(i,r);return i}(t,n,e),i,o)}}(nn,Xn,t,!0)}function Xn(t,n){for(let e=function KI(t){return function Uv(t){ct.key=0,ct.keyEnd=0,ct.value=0,ct.valueEnd=0,ct.textEnd=t.length}(t),Hv(t,yo(t,0,ct.textEnd))}(n);e>=0;e=Hv(n,e))nn(t,jv(n),!0)}function zv(t,n){return n>=t.expandoStartIndex}function qv(t,n,e,i){const r=t.data;if(null===r[e+1]){const o=r[Vt()],s=zv(t,e);Zv(o,i)&&null===n&&!s&&(n=!1),n=function eO(t,n,e,i){const r=function Hu(t){const n=q.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}(t);let o=i?n.residualClasses:n.residualStyles;if(null===r)0===(i?n.classBindings:n.styleBindings)&&(e=Ns(e=wf(null,t,n,e,i),n.attrs,i),o=null);else{const s=n.directiveStylingLast;if(-1===s||t[s]!==r)if(e=wf(r,t,n,e,i),null===o){let l=function tO(t,n,e){const i=e?n.classBindings:n.styleBindings;if(0!==fi(i))return t[An(i)]}(t,n,i);void 0!==l&&Array.isArray(l)&&(l=wf(null,t,n,l[1],i),l=Ns(l,n.attrs,i),function nO(t,n,e,i){t[An(e?n.classBindings:n.styleBindings)]=i}(t,n,i,l))}else o=function iO(t,n,e){let i;const r=n.directiveEnd;for(let o=1+n.directiveStylingLast;o<r;o++)i=Ns(i,t[o].hostAttrs,e);return Ns(i,n.attrs,e)}(t,n,i)}return void 0!==o&&(i?n.residualClasses=o:n.residualStyles=o),e}(r,o,n,i),function GI(t,n,e,i,r,o){let s=o?n.classBindings:n.styleBindings,a=An(s),l=fi(s);t[i]=e;let u,c=!1;if(Array.isArray(e)){const d=e;u=d[1],(null===u||Zr(d,u)>0)&&(c=!0)}else u=e;if(r)if(0!==l){const f=An(t[a+1]);t[i+1]=ml(f,a),0!==f&&(t[f+1]=zd(t[f+1],i)),t[a+1]=function jN(t,n){return 131071&t|n<<17}(t[a+1],i)}else t[i+1]=ml(a,0),0!==a&&(t[a+1]=zd(t[a+1],i)),a=i;else t[i+1]=ml(l,0),0===a?a=i:t[l+1]=zd(t[l+1],i),l=i;c&&(t[i+1]=Wd(t[i+1])),Bv(t,u,i,!0),Bv(t,u,i,!1),function WI(t,n,e,i,r){const o=r?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof n&&Zr(o,n)>=0&&(e[i+1]=qd(e[i+1]))}(n,u,t,i,o),s=ml(a,l),o?n.classBindings=s:n.styleBindings=s}(r,o,n,e,s,i)}}function wf(t,n,e,i,r){let o=null;const s=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a<s&&(o=n[a],i=Ns(i,o.hostAttrs,r),o!==t);)a++;return null!==t&&(e.directiveStylingLast=a),i}function Ns(t,n,e){const i=e?1:2;let r=-1;if(null!==n)for(let o=0;o<n.length;o++){const s=n[o];"number"==typeof s?r=s:r===i&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),nn(t,s,!!e||n[++o]))}return void 0===t?null:t}function Yv(t,n,e,i,r,o,s,a){if(!(3&n.type))return;const l=t.data,c=l[a+1];Nl(function j_(t){return 1==(1&t)}(c)?Jv(l,n,e,r,fi(c),s):void 0)||(Nl(o)||function B_(t){return 2==(2&t)}(c)&&(o=Jv(l,null,e,r,a,s)),function uN(t,n,e,i,r){if(n)r?t.addClass(e,i):t.removeClass(e,i);else{let o=-1===i.indexOf("-")?void 0:zt.DashCase;null==r?t.removeStyle(e,i,o):("string"==typeof r&&r.endsWith("!important")&&(r=r.slice(0,-10),o|=zt.Important),t.setStyle(e,i,r,o))}}(i,s,Wa(Vt(),e),r,o))}function Jv(t,n,e,i,r,o){const s=null===n;let a;for(;r>0;){const l=t[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let f=e[r+1];f===Y&&(f=d?ue:void 0);let h=d?Xu(f,i):u===i?f:void 0;if(c&&!Nl(h)&&(h=Xu(l,i)),Nl(h)&&(a=h,s))return a;const g=t[r+1];r=s?An(g):fi(g)}if(null!==n){let l=o?n.residualClasses:n.residualStyles;null!=l&&(a=Xu(l,i))}return a}function Nl(t){return void 0!==t}function Zv(t,n){return 0!=(t.flags&(n?16:32))}function T(t,n=""){const e=N(),i=re(),r=t+22,o=i.firstCreatePass?ao(i,r,1,n,null):i.data[r],s=e[r]=function xd(t,n){return t.createText(n)}(e[X],n);hl(i,e,s,o),Kn(o,!1)}function jt(t){return ne("",t,""),jt}function ne(t,n,e){const i=N(),r=uo(i,t,n,e);return r!==Y&&hi(i,Vt(),r),ne}function Cf(t,n,e,i,r){const o=N(),s=fo(o,t,n,e,i,r);return s!==Y&&hi(o,Vt(),s),Cf}function lr(t,n,e){const i=N();return Ot(i,Ur(),n)&&on(re(),We(),i,t,n,i[X],e,!0),lr}const cr=void 0;var EO=["en",[["a","p"],["AM","PM"],cr],[["AM","PM"],cr,cr],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],cr,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],cr,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",cr,"{1} 'at' {0}",cr],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function TO(t){const e=Math.floor(Math.abs(t)),i=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}];let bo={};function Ht(t){const n=function MO(t){return t.toLowerCase().replace(/_/g,"-")}(t);let e=my(n);if(e)return e;const i=n.split("-")[0];if(e=my(i),e)return e;if("en"===i)return EO;throw new A(701,!1)}function my(t){return t in bo||(bo[t]=Oe.ng&&Oe.ng.common&&Oe.ng.common.locales&&Oe.ng.common.locales[t]),bo[t]}var F=(()=>((F=F||{})[F.LocaleId=0]="LocaleId",F[F.DayPeriodsFormat=1]="DayPeriodsFormat",F[F.DayPeriodsStandalone=2]="DayPeriodsStandalone",F[F.DaysFormat=3]="DaysFormat",F[F.DaysStandalone=4]="DaysStandalone",F[F.MonthsFormat=5]="MonthsFormat",F[F.MonthsStandalone=6]="MonthsStandalone",F[F.Eras=7]="Eras",F[F.FirstDayOfWeek=8]="FirstDayOfWeek",F[F.WeekendRange=9]="WeekendRange",F[F.DateFormat=10]="DateFormat",F[F.TimeFormat=11]="TimeFormat",F[F.DateTimeFormat=12]="DateTimeFormat",F[F.NumberSymbols=13]="NumberSymbols",F[F.NumberFormats=14]="NumberFormats",F[F.CurrencyCode=15]="CurrencyCode",F[F.CurrencySymbol=16]="CurrencySymbol",F[F.CurrencyName=17]="CurrencyName",F[F.Currencies=18]="Currencies",F[F.Directionality=19]="Directionality",F[F.PluralCase=20]="PluralCase",F[F.ExtraData=21]="ExtraData",F))();const Do="en-US";let _y=Do;function Mf(t,n,e,i,r){if(t=z(t),Array.isArray(t))for(let o=0;o<t.length;o++)Mf(t[o],n,e,i,r);else{const o=re(),s=N();let a=ir(t)?t:z(t.provide),l=Um(t);const c=st(),u=1048575&c.providerIndexes,d=c.directiveStart,f=c.providerIndexes>>20;if(ir(t)||!t.multi){const h=new es(l,r,v),g=If(a,n,r?u:u+f,d);-1===g?(el(ns(c,s),o,a),Nf(o,t,n.length),n.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(h),s.push(h)):(e[g]=h,s[g]=h)}else{const h=If(a,n,u+f,d),g=If(a,n,u,u+f),b=h>=0&&e[h],w=g>=0&&e[g];if(r&&!w||!r&&!b){el(ns(c,s),o,a);const S=function wA(t,n,e,i,r){const o=new es(t,e,v);return o.multi=[],o.index=n,o.componentProviders=0,$y(o,r,i&&!e),o}(r?DA:bA,e.length,r,i,l);!r&&w&&(e[g].providerFactory=S),Nf(o,t,n.length,0),n.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(S),s.push(S)}else Nf(o,t,h>-1?h:g,$y(e[r?g:h],l,!r&&i));!r&&i&&w&&e[g].componentProviders++}}}function Nf(t,n,e,i){const r=ir(n),o=function rM(t){return!!t.useClass}(n);if(r||o){const l=(o?z(n.useClass):n).prototype.ngOnDestroy;if(l){const c=t.destroyHooks||(t.destroyHooks=[]);if(!r&&n.multi){const u=c.indexOf(e);-1===u?c.push(e,[i,l]):c[u+1].push(i,l)}else c.push(e,l)}}}function $y(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function If(t,n,e,i){for(let r=e;r<i;r++)if(n[r]===t)return r;return-1}function bA(t,n,e,i){return Of(this.multi,[])}function DA(t,n,e,i){const r=this.multi;let o;if(this.providerFactory){const s=this.providerFactory.componentProviders,a=is(e,e[1],this.providerFactory.index,i);o=a.slice(0,s),Of(r,o);for(let l=s;l<a.length;l++)o.push(a[l])}else o=[],Of(r,o);return o}function Of(t,n){for(let e=0;e<t.length;e++)n.push((0,t[e])());return n}function we(t,n=[]){return e=>{e.providersResolver=(i,r)=>function yA(t,n,e){const i=re();if(i.firstCreatePass){const r=In(t);Mf(e,i.data,i.blueprint,r,!0),Mf(n,i.data,i.blueprint,r,!1)}}(i,r?r(t):t,n)}}class ur{}class Uy{}class Gy extends ur{constructor(n,e){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new pf(this);const i=Qt(n);this._bootstrapComponents=di(i.bootstrap),this._r3Injector=A_(n,e,[{provide:ur,useValue:this},{provide:vs,useValue:this.componentFactoryResolver}],Ne(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class Af extends Uy{constructor(n){super(),this.moduleType=n}create(n){return new Gy(this.moduleType,n)}}class SA extends ur{constructor(n,e,i){super(),this.componentFactoryResolver=new pf(this),this.instance=null;const r=new $m([...n,{provide:ur,useValue:this},{provide:vs,useValue:this.componentFactoryResolver}],e||dl(),i,new Set(["environment"]));this.injector=r,r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function Rl(t,n,e=null){return new SA(t,n,e).injector}let TA=(()=>{class t{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e.id)){const i=Vm(0,e.type),r=i.length>0?Rl([i],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e.id,r)}return this.cachedInjectors.get(e.id)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}}return t.\u0275prov=x({token:t,providedIn:"environment",factory:()=>new t(O(ki))}),t})();function Wy(t){t.getStandaloneInjector=n=>n.get(TA).getOrCreateStandaloneInjector(t)}function pi(t,n,e,i){return Xy(N(),Lt(),t,n,e,i)}function ks(t,n){const e=t[n];return e===Y?void 0:e}function Xy(t,n,e,i,r,o){const s=n+e;return Ot(t,s,r)?Zn(t,s+1,o?i.call(o,r):i(r)):ks(t,s+1)}function Qe(t,n){const e=re();let i;const r=t+22;e.firstCreatePass?(i=function jA(t,n){if(n)for(let e=n.length-1;e>=0;e--){const i=n[e];if(t===i.name)return i}}(n,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(r,i.onDestroy)):i=e.data[r];const o=i.factory||(i.factory=tr(i.type)),s=pn(v);try{const a=Qa(!1),l=o();return Qa(a),function BI(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=i}(e,N(),r,l),l}finally{pn(s)}}function gi(t,n,e){const i=t+22,r=N(),o=$r(r,i);return Fs(r,i)?Xy(r,Lt(),n,o.transform,e,o):o.transform(e)}function sn(t,n,e,i){const r=t+22,o=N(),s=$r(o,r);return Fs(o,r)?function e0(t,n,e,i,r,o,s){const a=n+e;return sr(t,a,r,o)?Zn(t,a+2,s?i.call(s,r,o):i(r,o)):ks(t,a+2)}(o,Lt(),n,s.transform,e,i,s):s.transform(e,i)}function Fs(t,n){return t[1].data[n].pure}function Pf(t){return n=>{setTimeout(t,void 0,n)}}const G=class GA extends Ee{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,e,i){var r,o,s;let a=n,l=e||(()=>null),c=i;if(n&&"object"==typeof n){const d=n;a=null===(r=d.next)||void 0===r?void 0:r.bind(d),l=null===(o=d.error)||void 0===o?void 0:o.bind(d),c=null===(s=d.complete)||void 0===s?void 0:s.bind(d)}this.__isAsync&&(l=Pf(l),a&&(a=Pf(a)),c&&(c=Pf(c)));const u=super.subscribe({next:a,error:l,complete:c});return n instanceof Be&&n.add(u),u}};function WA(){return this._results[or()]()}class kf{constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=or(),i=kf.prototype;i[e]||(i[e]=WA)}get changes(){return this._changes||(this._changes=new G)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){const i=this;i.dirty=!1;const r=tn(n);(this._changesDetected=!function sE(t,n,e){if(t.length!==n.length)return!1;for(let i=0;i<t.length;i++){let r=t[i],o=n[i];if(e&&(r=e(r),o=e(o)),o!==r)return!1}return!0}(i._results,r,e))&&(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()}}let je=(()=>{class t{}return t.__NG_ELEMENT_ID__=KA,t})();const zA=je,qA=class extends zA{constructor(n,e,i){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(n,e){const i=this._declarationTContainer.tViews,r=yl(this._declarationLView,i,n,16,null,i.declTNode,null,null,null,null,e||null);r[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(r[19]=s.createEmbeddedView(i)),nf(i,r,n),new Cs(r)}};function KA(){return Pl(st(),N())}function Pl(t,n){return 4&t.type?new qA(n,t,no(t,n)):null}let yn=(()=>{class t{}return t.__NG_ELEMENT_ID__=YA,t})();function YA(){return a0(st(),N())}const JA=yn,o0=class extends JA{constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return no(this._hostTNode,this._hostLView)}get injector(){return new zr(this._hostTNode,this._hostLView)}get parentInjector(){const n=Xa(this._hostTNode,this._hostLView);if(Xg(n)){const e=Wr(n,this._hostLView),i=Gr(n);return new zr(e[1].data[i+8],e)}return new zr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const e=s0(this._lContainer);return null!==e&&e[n]||null}get length(){return this._lContainer.length-10}createEmbeddedView(n,e,i){let r,o;"number"==typeof i?r=i:null!=i&&(r=i.index,o=i.injector);const s=n.createEmbeddedView(e||{},o);return this.insert(s,r),s}createComponent(n,e,i,r,o){const s=n&&!function os(t){return"function"==typeof t}(n);let a;if(s)a=e;else{const d=e||{};a=d.index,i=d.injector,r=d.projectableNodes,o=d.environmentInjector||d.ngModuleRef}const l=s?n:new Ss(_e(n)),c=i||this.parentInjector;if(!o&&null==l.ngModule){const f=(s?c:this.parentInjector).get(ki,null);f&&(o=f)}const u=l.create(c,r,void 0,o);return this.insert(u.hostView,a),u}insert(n,e){const i=n._lView,r=i[1];if(function MT(t){return Nn(t[3])}(i)){const u=this.indexOf(n);if(-1!==u)this.detach(u);else{const d=i[3],f=new o0(d,d[6],d[3]);f.detach(f.indexOf(n))}}const o=this._adjustIndex(e),s=this._lContainer;!function nN(t,n,e,i){const r=10+i,o=e.length;i>0&&(e[r-1][4]=n),i<o-10?(n[4]=e[r],um(e,10+i,n)):(e.push(n),n[4]=null),n[3]=e;const s=n[17];null!==s&&e!==s&&function iN(t,n){const e=t[9];n[16]!==n[3][3][16]&&(t[2]=!0),null===e?t[9]=[n]:e.push(n)}(s,n);const a=n[19];null!==a&&a.insertView(t),n[2]|=64}(r,i,s,o);const a=Ld(o,s),l=i[X],c=fl(l,s[7]);return null!==c&&function XM(t,n,e,i,r,o){i[0]=r,i[6]=n,ws(t,i,e,1,r,o)}(r,s[6],l,i,c,a),n.attachToViewContainerRef(),um(Ff(s),o,n),n}move(n,e){return this.insert(n,e)}indexOf(n){const e=s0(this._lContainer);return null!==e?e.indexOf(n):-1}remove(n){const e=this._adjustIndex(n,-1),i=Pd(this._lContainer,e);i&&(nl(Ff(this._lContainer),e),l_(i[1],i))}detach(n){const e=this._adjustIndex(n,-1),i=Pd(this._lContainer,e);return i&&null!=nl(Ff(this._lContainer),e)?new Cs(i):null}_adjustIndex(n,e=0){return null==n?this.length+e:n}};function s0(t){return t[8]}function Ff(t){return t[8]||(t[8]=[])}function a0(t,n){let e;const i=n[t.index];if(Nn(i))e=i;else{let r;if(8&t.type)r=Xe(i);else{const o=n[X];r=o.createComment("");const s=_n(t,n);rr(o,fl(o,s),r,function aN(t,n){return t.nextSibling(n)}(o,s),!1)}n[t.index]=e=av(i,n,r,t),Dl(n,e)}return new o0(e,t,n)}class Lf{constructor(n){this.queryList=n,this.matches=null}clone(){return new Lf(this.queryList)}setDirty(){this.queryList.setDirty()}}class Vf{constructor(n=[]){this.queries=n}createEmbeddedView(n){const e=n.queries;if(null!==e){const i=null!==n.contentQueries?n.contentQueries[0]:e.length,r=[];for(let o=0;o<i;o++){const s=e.getByIndex(o);r.push(this.queries[s.indexInDeclarationView].clone())}return new Vf(r)}return null}insertView(n){this.dirtyQueriesWithMatches(n)}detachView(n){this.dirtyQueriesWithMatches(n)}dirtyQueriesWithMatches(n){for(let e=0;e<this.queries.length;e++)null!==f0(n,e).matches&&this.queries[e].setDirty()}}class l0{constructor(n,e,i=null){this.predicate=n,this.flags=e,this.read=i}}class Bf{constructor(n=[]){this.queries=n}elementStart(n,e){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(n,e)}elementEnd(n){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(n)}embeddedTView(n){let e=null;for(let i=0;i<this.length;i++){const r=null!==e?e.length:0,o=this.getByIndex(i).embeddedTView(n,r);o&&(o.indexInDeclarationView=i,null!==e?e.push(o):e=[o])}return null!==e?new Bf(e):null}template(n,e){for(let i=0;i<this.queries.length;i++)this.queries[i].template(n,e)}getByIndex(n){return this.queries[n]}get length(){return this.queries.length}track(n){this.queries.push(n)}}class jf{constructor(n,e=-1){this.metadata=n,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(n,e){this.isApplyingToNode(e)&&this.matchTNode(n,e)}elementEnd(n){this._declarationNodeIndex===n.index&&(this._appliesToNextNode=!1)}template(n,e){this.elementStart(n,e)}embeddedTView(n,e){return this.isApplyingToNode(n)?(this.crossesNgTemplate=!0,this.addMatch(-n.index,e),new jf(this.metadata)):null}isApplyingToNode(n){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const e=this._declarationNodeIndex;let i=n.parent;for(;null!==i&&8&i.type&&i.index!==e;)i=i.parent;return e===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(n,e){const i=this.metadata.predicate;if(Array.isArray(i))for(let r=0;r<i.length;r++){const o=i[r];this.matchTNodeWithReadOption(n,e,XA(e,o)),this.matchTNodeWithReadOption(n,e,tl(e,n,o,!1,!1))}else i===je?4&e.type&&this.matchTNodeWithReadOption(n,e,-1):this.matchTNodeWithReadOption(n,e,tl(e,n,i,!1,!1))}matchTNodeWithReadOption(n,e,i){if(null!==i){const r=this.metadata.read;if(null!==r)if(r===be||r===yn||r===je&&4&e.type)this.addMatch(e.index,-2);else{const o=tl(e,n,r,!1,!1);null!==o&&this.addMatch(e.index,o)}else this.addMatch(e.index,i)}}addMatch(n,e){null===this.matches?this.matches=[n,e]:this.matches.push(n,e)}}function XA(t,n){const e=t.localNames;if(null!==e)for(let i=0;i<e.length;i+=2)if(e[i]===n)return e[i+1];return null}function tx(t,n,e,i){return-1===e?function ex(t,n){return 11&t.type?no(t,n):4&t.type?Pl(t,n):null}(n,t):-2===e?function nx(t,n,e){return e===be?no(n,t):e===je?Pl(n,t):e===yn?a0(n,t):void 0}(t,n,i):is(t,t[1],e,n)}function c0(t,n,e,i){const r=n[19].queries[i];if(null===r.matches){const o=t.data,s=e.matches,a=[];for(let l=0;l<s.length;l+=2){const c=s[l];a.push(c<0?null:tx(n,o[c],s[l+1],e.metadata.read))}r.matches=a}return r.matches}function Hf(t,n,e,i){const r=t.queries.getByIndex(e),o=r.matches;if(null!==o){const s=c0(t,n,r,e);for(let a=0;a<o.length;a+=2){const l=o[a];if(l>0)i.push(s[a/2]);else{const c=o[a+1],u=n[-l];for(let d=10;d<u.length;d++){const f=u[d];f[17]===f[3]&&Hf(f[1],f,c,i)}if(null!==u[9]){const d=u[9];for(let f=0;f<d.length;f++){const h=d[f];Hf(h[1],h,c,i)}}}}}return i}function oe(t){const n=N(),e=re(),i=Ug();$u(i+1);const r=f0(e,i);if(t.dirty&&function ET(t){return 4==(4&t[2])}(n)===(2==(2&r.metadata.flags))){if(null===r.matches)t.reset([]);else{const o=r.crossesNgTemplate?Hf(e,n,i,[]):c0(e,n,r,i);t.reset(o,mM),t.notifyOnChanges()}return!0}return!1}function an(t,n,e){const i=re();i.firstCreatePass&&(d0(i,new l0(t,n,e),-1),2==(2&n)&&(i.staticViewQueries=!0)),u0(i,N(),n)}function se(){return function ix(t,n){return t[19].queries[n].queryList}(N(),Ug())}function u0(t,n,e){const i=new kf(4==(4&e));Q_(t,n,i,i.destroy),null===n[19]&&(n[19]=new Vf),n[19].queries.push(new Lf(i))}function d0(t,n,e){null===t.queries&&(t.queries=new Bf),t.queries.track(new jf(n,e))}function f0(t,n){return t.queries.getByIndex(n)}function ln(t,n){return Pl(t,n)}function Fl(...t){}const Vs=new H("Application Initializer");let Ll=(()=>{class t{constructor(e){this.appInits=e,this.resolve=Fl,this.reject=Fl,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r<this.appInits.length;r++){const o=this.appInits[r]();if(Ms(o))e.push(o);else if(bf(o)){const s=new Promise((a,l)=>{o.subscribe({complete:a,error:l})});e.push(s)}}Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),0===e.length&&i(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(O(Vs,8))},t.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Bs=new H("AppId",{providedIn:"root",factory:function A0(){return`${zf()}${zf()}${zf()}`}});function zf(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const x0=new H("Platform Initializer"),Vl=new H("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),R0=new H("appBootstrapListener");let Sx=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const Pn=new H("LocaleId",{providedIn:"root",factory:()=>Ze(Pn,U.Optional|U.SkipSelf)||function Tx(){return"undefined"!=typeof $localize&&$localize.locale||Do}()});class Mx{constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}}let qf=(()=>{class t{compileModuleSync(e){return new Af(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),o=di(Qt(e).declarations).reduce((s,a)=>{const l=_e(a);return l&&s.push(new Ss(l)),s},[]);return new Mx(i,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Ox=(()=>Promise.resolve(0))();function Kf(t){"undefined"==typeof Zone?Ox.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Se{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new G(!1),this.onMicrotaskEmpty=new G(!1),this.onStable=new G(!1),this.onError=new G(!1),"undefined"==typeof Zone)throw new A(908,!1);Zone.assertZonePatched();const r=this;if(r._nesting=0,r._outer=r._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const o=Zone.AsyncStackTaggingZoneSpec;r._inner=r._inner.fork(new o("Angular"))}Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&e,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function Ax(){let t=Oe.requestAnimationFrame,n=Oe.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&n){const e=t[Zone.__symbol__("OriginalDelegate")];e&&(t=e);const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function Px(t){const n=()=>{!function Rx(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Oe,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Jf(t),t.isCheckStableRunning=!0,Yf(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Jf(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,o,s,a)=>{try{return F0(t),e.invokeTask(r,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&n(),L0(t)}},onInvoke:(e,i,r,o,s,a,l)=>{try{return F0(t),e.invoke(r,o,s,a,l)}finally{t.shouldCoalesceRunChangeDetection&&n(),L0(t)}},onHasTask:(e,i,r,o)=>{e.hasTask(r,o),i===r&&("microTask"==o.change?(t._hasPendingMicrotasks=o.microTask,Jf(t),Yf(t)):"macroTask"==o.change&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,i,r,o)=>(e.handleError(r,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}(r)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Se.isInAngularZone())throw new A(909,!1)}static assertNotInAngularZone(){if(Se.isInAngularZone())throw new A(909,!1)}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,r){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,n,xx,Fl,Fl);try{return o.runTask(s,e,i)}finally{o.cancelTask(s)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}}const xx={};function Yf(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Jf(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function F0(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function L0(t){t._nesting--,Yf(t)}class kx{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new G,this.onMicrotaskEmpty=new G,this.onStable=new G,this.onError=new G}run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,r){return n.apply(e,i)}}const V0=new H(""),Bl=new H("");let js,Zf=(()=>{class t{constructor(e,i,r){this._ngZone=e,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,js||(function Fx(t){js=t}(r),r.addToWindow(i)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Se.assertNotInAngularZone(),Kf(()=>{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())Kf(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,r){let o=-1;i&&i>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:r})}whenStable(e,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(e,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,i,r){return[]}}return t.\u0275fac=function(e){return new(e||t)(O(Se),O(Qf),O(Bl))},t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})(),Qf=(()=>{class t{constructor(){this._applications=new Map}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){var r;return null!==(r=null==js?void 0:js.findTestabilityInTree(this,e,i))&&void 0!==r?r:null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})(),ei=null;const B0=new H("AllowMultipleToken"),Xf=new H("PlatformDestroyListeners");class j0{constructor(n,e){this.name=n,this.token=e}}function $0(t,n,e=[]){const i=`Platform: ${n}`,r=new H(i);return(o=[])=>{let s=eh();if(!s||s.injector.get(B0,!1)){const a=[...e,...o,{provide:r,useValue:!0}];t?t(a):function Bx(t){if(ei&&!ei.get(B0,!1))throw new A(400,!1);ei=t;const n=t.get(G0);(function H0(t){const n=t.get(x0,null);n&&n.forEach(e=>e())})(t)}(function U0(t=[],n){return bt.create({name:n,providers:[{provide:pd,useValue:"platform"},{provide:Xf,useValue:new Set([()=>ei=null])},...t]})}(a,i))}return function Hx(t){const n=eh();if(!n)throw new A(401,!1);return n}()}}function eh(){var t;return null!==(t=null==ei?void 0:ei.get(G0))&&void 0!==t?t:null}let G0=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const r=function z0(t,n){let e;return e="noop"===t?new kx:("zone.js"===t?void 0:t)||new Se(n),e}(null==i?void 0:i.ngZone,function W0(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!t||!t.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!t||!t.ngZoneRunCoalescing)||!1}}(i)),o=[{provide:Se,useValue:r}];return r.run(()=>{const s=bt.create({providers:o,parent:this.injector,name:e.moduleType.name}),a=e.create(s),l=a.injector.get(io,null);if(!l)throw new A(402,!1);return r.runOutsideAngular(()=>{const c=r.onError.subscribe({next:u=>{l.handleError(u)}});a.onDestroy(()=>{jl(this._modules,a),c.unsubscribe()})}),function q0(t,n,e){try{const i=e();return Ms(i)?i.catch(r=>{throw n.runOutsideAngular(()=>t.handleError(r)),r}):i}catch(i){throw n.runOutsideAngular(()=>t.handleError(i)),i}}(l,r,()=>{const c=a.injector.get(Ll);return c.runInitializers(),c.donePromise.then(()=>(function vy(t){Zt(t,"Expected localeId to be defined"),"string"==typeof t&&(_y=t.toLowerCase().replace(/_/g,"-"))}(a.injector.get(Pn,Do)||Do),this._moduleDoBootstrap(a),a))})})}bootstrapModule(e,i=[]){const r=K0({},i);return function Lx(t,n,e){const i=new Af(e);return Promise.resolve(i)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(e){const i=e.injector.get(Hs);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new A(403,!1);e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new A(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(Xf,null);e&&(e.forEach(i=>i()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(O(bt))},t.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function K0(t,n){return Array.isArray(n)?n.reduce(K0,t):Object.assign(Object.assign({},t),n)}let Hs=(()=>{class t{constructor(e,i,r){this._zone=e,this._injector=i,this._exceptionHandler=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new Te(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new Te(a=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{Se.assertNotInAngularZone(),Kf(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const c=this._zone.onUnstable.subscribe(()=>{Se.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{l.unsubscribe(),c.unsubscribe()}});this.isStable=wg(o,s.pipe(function JS(){return t=>Pa()(function qS(t,n){return function(i){let r;if(r="function"==typeof t?t:function(){return t},"function"==typeof n)return i.lift(new KS(r,n));const o=Object.create(i,GS);return o.source=i,o.subjectFactory=r,o}}(YS)(t))}()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,i){const r=e instanceof Gm;if(!this._injector.get(Ll).done)throw!r&&function Vr(t){const n=_e(t)||kt(t)||Ft(t);return null!==n&&n.standalone}(e),new A(405,false);let s;s=r?e:this._injector.get(vs).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const a=function Vx(t){return t.isBoundToModule}(s)?void 0:this._injector.get(ur),c=s.create(bt.NULL,[],i||s.selector,a),u=c.location.nativeElement,d=c.injector.get(V0,null);return null==d||d.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),jl(this.components,c),null==d||d.unregisterApplication(u)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new A(101,!1);try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;jl(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(R0,[]).concat(this._bootstrapListeners).forEach(r=>r(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>jl(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new A(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return t.\u0275fac=function(e){return new(e||t)(O(Se),O(ki),O(io))},t.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function jl(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}let J0=!0,Fn=(()=>{class t{}return t.__NG_ELEMENT_ID__=Gx,t})();function Gx(t){return function Wx(t,n,e){if(Ua(t)&&!e){const i=en(t.index,n);return new Cs(i,i)}return 47&t.type?new Cs(n[16],n):null}(st(),N(),16==(16&t))}class t1{constructor(){}supports(n){return Ts(n)}create(n){return new Zx(n)}}const Jx=(t,n)=>n;class Zx{constructor(n){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=n||Jx}forEachItem(n){let e;for(e=this._itHead;null!==e;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,r=0,o=null;for(;e||i;){const s=!i||e&&e.currentIndex<i1(i,r,o)?e:i,a=i1(s,r,o),l=s.currentIndex;if(s===i)r--,i=i._nextRemoved;else if(e=e._next,null==s.previousIndex)r++;else{o||(o=[]);const c=a-r,u=l-r;if(c!=u){for(let f=0;f<c;f++){const h=f<o.length?o[f]:o[f]=0,g=h+f;u<=g&&g<c&&(o[f]=h+1)}o[s.previousIndex]=u-c}}a!==l&&n(s,a,l)}}forEachPreviousItem(n){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)n(e)}forEachAddedItem(n){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)n(e)}forEachMovedItem(n){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)n(e)}forEachRemovedItem(n){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)n(e)}forEachIdentityChange(n){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)n(e)}diff(n){if(null==n&&(n=[]),!Ts(n))throw new A(900,!1);return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let r,o,s,e=this._itHead,i=!1;if(Array.isArray(n)){this.length=n.length;for(let a=0;a<this.length;a++)o=n[a],s=this._trackByFn(a,o),null!==e&&Object.is(e.trackById,s)?(i&&(e=this._verifyReinsertion(e,o,s,a)),Object.is(e.item,o)||this._addIdentityChange(e,o)):(e=this._mismatch(e,o,s,a),i=!0),e=e._next}else r=0,function kI(t,n){if(Array.isArray(t))for(let e=0;e<t.length;e++)n(t[e]);else{const e=t[or()]();let i;for(;!(i=e.next()).done;)n(i.value)}}(n,a=>{s=this._trackByFn(r,a),null!==e&&Object.is(e.trackById,s)?(i&&(e=this._verifyReinsertion(e,a,s,r)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,s,r),i=!0),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,i,r){let o;return null===n?o=this._itTail:(o=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,o,r)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,o,r)):n=this._addAfter(new Qx(e,i),o,r),n}_verifyReinsertion(n,e,i,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==o?n=this._reinsertAfter(o,n._prev,r):n.currentIndex!=r&&(n.currentIndex=r,this._addToMoves(n,r)),n}_truncate(n){for(;null!==n;){const e=n._next;this._addToRemovals(this._unlink(n)),n=e}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(n,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const r=n._prevRemoved,o=n._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){const r=null===e?this._itHead:e._next;return n._next=r,n._prev=e,null===r?this._itTail=n:r._prev=n,null===e?this._itHead=n:e._next=n,null===this._linkedRecords&&(this._linkedRecords=new n1),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const e=n._prev,i=n._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new n1),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class Qx{constructor(n,e){this.item=n,this.trackById=e,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 Xx{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const e=n._prevDup,i=n._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class n1{constructor(){this.map=new Map}put(n){const e=n.trackById;let i=this.map.get(e);i||(i=new Xx,this.map.set(e,i)),i.add(n)}get(n,e){const r=this.map.get(n);return r?r.get(n,e):null}remove(n){const e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function i1(t,n,e){const i=t.previousIndex;if(null===i)return i;let r=0;return e&&i<e.length&&(r=e[i]),i+n+r}class r1{constructor(){}supports(n){return n instanceof Map||mf(n)}create(){return new eR}}class eR{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(n){let e;for(e=this._mapHead;null!==e;e=e._next)n(e)}forEachPreviousItem(n){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)n(e)}forEachChangedItem(n){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)n(e)}forEachAddedItem(n){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)n(e)}forEachRemovedItem(n){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)n(e)}diff(n){if(n){if(!(n instanceof Map||mf(n)))throw new A(900,!1)}else n=new Map;return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(n,(i,r)=>{if(e&&e.key===r)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const o=this._getOrCreateRecordForKey(r,i);e=this._insertBeforeOrAppend(e,o)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;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(n,e){if(n){const i=n._prev;return e._next=n,e._prev=i,n._prev=e,i&&(i._next=e),n===this._mapHead&&(this._mapHead=e),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(n,e){if(this._records.has(n)){const r=this._records.get(n);this._maybeAddToChanges(r,e);const o=r._prev,s=r._next;return o&&(o._next=s),s&&(s._prev=o),r._next=null,r._prev=null,r}const i=new tR(n);return this._records.set(n,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,e){Object.is(e,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=e,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,e){n instanceof Map?n.forEach(e):Object.keys(n).forEach(i=>e(n[i],i))}}class tR{constructor(n){this.key=n,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 o1(){return new Ul([new t1])}let Ul=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(null!=i){const r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||o1()),deps:[[t,new ds,new us]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new A(901,!1)}}return t.\u0275prov=x({token:t,providedIn:"root",factory:o1}),t})();function s1(){return new $s([new r1])}let $s=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(i){const r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||s1()),deps:[[t,new ds,new us]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(i)return i;throw new A(901,!1)}}return t.\u0275prov=x({token:t,providedIn:"root",factory:s1}),t})();const rR=$0(null,"core",[]);let oR=(()=>{class t{constructor(e){}}return t.\u0275fac=function(e){return new(e||t)(O(Hs))},t.\u0275mod=me({type:t}),t.\u0275inj=fe({}),t})();function _i(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}function oh(t,n){const e=_e(t),i=n.elementInjector||dl();return new Ss(e).create(i,n.projectableNodes,n.hostElement,n.environmentInjector)}let Gl=null;function ti(){return Gl}const Ye=new H("DocumentToken");let sh=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=x({token:t,factory:function(){return function cR(){return O(a1)}()},providedIn:"platform"}),t})();const uR=new H("Location Initialized");let a1=(()=>{class t extends sh{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return ti().getBaseHref(this._doc)}onPopState(e){const i=ti().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=ti().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}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(e){this.location.pathname=e}pushState(e,i,r){l1()?this._history.pushState(e,i,r):this.location.hash=r}replaceState(e,i,r){l1()?this._history.replaceState(e,i,r):this.location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(O(Ye))},t.\u0275prov=x({token:t,factory:function(){return function dR(){return new a1(O(Ye))}()},providedIn:"platform"}),t})();function l1(){return!!window.history.pushState}function ah(t,n){if(0==t.length)return n;if(0==n.length)return t;let e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,2==e?t+n.substring(1):1==e?t+n:t+"/"+n}function c1(t){const n=t.match(/#|\?|$/),e=n&&n.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function vi(t){return t&&"?"!==t[0]?"?"+t:t}let fr=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=x({token:t,factory:function(){return Ze(d1)},providedIn:"root"}),t})();const u1=new H("appBaseHref");let d1=(()=>{class t extends fr{constructor(e,i){var r,o,s;super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=null!==(s=null!==(r=null!=i?i:this._platformLocation.getBaseHrefFromDOM())&&void 0!==r?r:null===(o=Ze(Ye).location)||void 0===o?void 0:o.origin)&&void 0!==s?s:""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return ah(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+vi(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,o){const s=this.prepareExternalUrl(r+vi(o));this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){const s=this.prepareExternalUrl(r+vi(o));this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){var i,r;null===(r=(i=this._platformLocation).historyGo)||void 0===r||r.call(i,e)}}return t.\u0275fac=function(e){return new(e||t)(O(sh),O(u1,8))},t.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),fR=(()=>{class t extends fr{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let i=this._platformLocation.hash;return null==i&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(e){const i=ah(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,r,o){let s=this.prepareExternalUrl(r+vi(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){let s=this.prepareExternalUrl(r+vi(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){var i,r;null===(r=(i=this._platformLocation).historyGo)||void 0===r||r.call(i,e)}}return t.\u0275fac=function(e){return new(e||t)(O(sh),O(u1,8))},t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})(),lh=(()=>{class t{constructor(e){this._subject=new G,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._baseHref=c1(f1(i)),this._locationStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){var e;null===(e=this._urlChangeSubscription)||void 0===e||e.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+vi(i))}normalize(e){return t.stripTrailingSlash(function pR(t,n){return t&&n.startsWith(t)?n.substring(t.length):n}(this._baseHref,f1(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._locationStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+vi(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+vi(i)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){var i,r;null===(r=(i=this._locationStrategy).historyGo)||void 0===r||r.call(i,e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)})),()=>{var i;const r=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(r,1),0===this._urlChangeListeners.length&&(null===(i=this._urlChangeSubscription)||void 0===i||i.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i,complete:r})}}return t.normalizeQueryParams=vi,t.joinWithSlash=ah,t.stripTrailingSlash=c1,t.\u0275fac=function(e){return new(e||t)(O(fr))},t.\u0275prov=x({token:t,factory:function(){return function hR(){return new lh(O(fr))}()},providedIn:"root"}),t})();function f1(t){return t.replace(/\/index.html$/,"")}var Le=(()=>((Le=Le||{})[Le.Format=0]="Format",Le[Le.Standalone=1]="Standalone",Le))(),J=(()=>((J=J||{})[J.Narrow=0]="Narrow",J[J.Abbreviated=1]="Abbreviated",J[J.Wide=2]="Wide",J[J.Short=3]="Short",J))(),He=(()=>((He=He||{})[He.Short=0]="Short",He[He.Medium=1]="Medium",He[He.Long=2]="Long",He[He.Full=3]="Full",He))(),$=(()=>(($=$||{})[$.Decimal=0]="Decimal",$[$.Group=1]="Group",$[$.List=2]="List",$[$.PercentSign=3]="PercentSign",$[$.PlusSign=4]="PlusSign",$[$.MinusSign=5]="MinusSign",$[$.Exponential=6]="Exponential",$[$.SuperscriptingExponent=7]="SuperscriptingExponent",$[$.PerMille=8]="PerMille",$[$.Infinity=9]="Infinity",$[$.NaN=10]="NaN",$[$.TimeSeparator=11]="TimeSeparator",$[$.CurrencyDecimal=12]="CurrencyDecimal",$[$.CurrencyGroup=13]="CurrencyGroup",$))();function p1(t,n,e){const i=Ht(t),o=Dn([i[F.DaysFormat],i[F.DaysStandalone]],n);return Dn(o,e)}function ch(t,n,e){const i=Ht(t),o=Dn([i[F.MonthsFormat],i[F.MonthsStandalone]],n);return Dn(o,e)}function Wl(t,n){return Dn(Ht(t)[F.DateFormat],n)}function zl(t,n){return Dn(Ht(t)[F.TimeFormat],n)}function ql(t,n){return Dn(Ht(t)[F.DateTimeFormat],n)}function bn(t,n){const e=Ht(t),i=e[F.NumberSymbols][n];if(void 0===i){if(n===$.CurrencyDecimal)return e[F.NumberSymbols][$.Decimal];if(n===$.CurrencyGroup)return e[F.NumberSymbols][$.Group]}return i}function g1(t){if(!t[F.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[F.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Dn(t,n){for(let e=n;e>-1;e--)if(void 0!==t[e])return t[e];throw new Error("Locale data API: locale data undefined")}function dh(t){const[n,e]=t.split(":");return{hours:+n,minutes:+e}}const TR=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Us={},ER=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var ut=(()=>((ut=ut||{})[ut.Short=0]="Short",ut[ut.ShortGMT=1]="ShortGMT",ut[ut.Long=2]="Long",ut[ut.Extended=3]="Extended",ut))(),W=(()=>((W=W||{})[W.FullYear=0]="FullYear",W[W.Month=1]="Month",W[W.Date=2]="Date",W[W.Hours=3]="Hours",W[W.Minutes=4]="Minutes",W[W.Seconds=5]="Seconds",W[W.FractionalSeconds=6]="FractionalSeconds",W[W.Day=7]="Day",W))(),Q=(()=>((Q=Q||{})[Q.DayPeriods=0]="DayPeriods",Q[Q.Days=1]="Days",Q[Q.Months=2]="Months",Q[Q.Eras=3]="Eras",Q))();function m1(t,n,e,i){let r=function kR(t){if(y1(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){const[r,o=1,s=1]=t.split("-").map(a=>+a);return Kl(r,o-1,s)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let i;if(i=t.match(TR))return function FR(t){const n=new Date(0);let e=0,i=0;const r=t[8]?n.setUTCFullYear:n.setFullYear,o=t[8]?n.setUTCHours:n.setHours;t[9]&&(e=Number(t[9]+t[10]),i=Number(t[9]+t[11])),r.call(n,Number(t[1]),Number(t[2])-1,Number(t[3]));const s=Number(t[4]||0)-e,a=Number(t[5]||0)-i,l=Number(t[6]||0),c=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return o.call(n,s,a,l,c),n}(i)}const n=new Date(t);if(!y1(n))throw new Error(`Unable to convert "${t}" into a date`);return n}(t);n=yi(e,n)||n;let a,s=[];for(;n;){if(a=ER.exec(n),!a){s.push(n);break}{s=s.concat(a.slice(1));const u=s.pop();if(!u)break;n=u}}let l=r.getTimezoneOffset();i&&(l=v1(i,l),r=function PR(t,n,e){const i=e?-1:1,r=t.getTimezoneOffset();return function RR(t,n){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+n),t}(t,i*(v1(n,r)-r))}(r,i,!0));let c="";return s.forEach(u=>{const d=function xR(t){if(hh[t])return hh[t];let n;switch(t){case"G":case"GG":case"GGG":n=xe(Q.Eras,J.Abbreviated);break;case"GGGG":n=xe(Q.Eras,J.Wide);break;case"GGGGG":n=xe(Q.Eras,J.Narrow);break;case"y":n=nt(W.FullYear,1,0,!1,!0);break;case"yy":n=nt(W.FullYear,2,0,!0,!0);break;case"yyy":n=nt(W.FullYear,3,0,!1,!0);break;case"yyyy":n=nt(W.FullYear,4,0,!1,!0);break;case"Y":n=Ql(1);break;case"YY":n=Ql(2,!0);break;case"YYY":n=Ql(3);break;case"YYYY":n=Ql(4);break;case"M":case"L":n=nt(W.Month,1,1);break;case"MM":case"LL":n=nt(W.Month,2,1);break;case"MMM":n=xe(Q.Months,J.Abbreviated);break;case"MMMM":n=xe(Q.Months,J.Wide);break;case"MMMMM":n=xe(Q.Months,J.Narrow);break;case"LLL":n=xe(Q.Months,J.Abbreviated,Le.Standalone);break;case"LLLL":n=xe(Q.Months,J.Wide,Le.Standalone);break;case"LLLLL":n=xe(Q.Months,J.Narrow,Le.Standalone);break;case"w":n=fh(1);break;case"ww":n=fh(2);break;case"W":n=fh(1,!0);break;case"d":n=nt(W.Date,1);break;case"dd":n=nt(W.Date,2);break;case"c":case"cc":n=nt(W.Day,1);break;case"ccc":n=xe(Q.Days,J.Abbreviated,Le.Standalone);break;case"cccc":n=xe(Q.Days,J.Wide,Le.Standalone);break;case"ccccc":n=xe(Q.Days,J.Narrow,Le.Standalone);break;case"cccccc":n=xe(Q.Days,J.Short,Le.Standalone);break;case"E":case"EE":case"EEE":n=xe(Q.Days,J.Abbreviated);break;case"EEEE":n=xe(Q.Days,J.Wide);break;case"EEEEE":n=xe(Q.Days,J.Narrow);break;case"EEEEEE":n=xe(Q.Days,J.Short);break;case"a":case"aa":case"aaa":n=xe(Q.DayPeriods,J.Abbreviated);break;case"aaaa":n=xe(Q.DayPeriods,J.Wide);break;case"aaaaa":n=xe(Q.DayPeriods,J.Narrow);break;case"b":case"bb":case"bbb":n=xe(Q.DayPeriods,J.Abbreviated,Le.Standalone,!0);break;case"bbbb":n=xe(Q.DayPeriods,J.Wide,Le.Standalone,!0);break;case"bbbbb":n=xe(Q.DayPeriods,J.Narrow,Le.Standalone,!0);break;case"B":case"BB":case"BBB":n=xe(Q.DayPeriods,J.Abbreviated,Le.Format,!0);break;case"BBBB":n=xe(Q.DayPeriods,J.Wide,Le.Format,!0);break;case"BBBBB":n=xe(Q.DayPeriods,J.Narrow,Le.Format,!0);break;case"h":n=nt(W.Hours,1,-12);break;case"hh":n=nt(W.Hours,2,-12);break;case"H":n=nt(W.Hours,1);break;case"HH":n=nt(W.Hours,2);break;case"m":n=nt(W.Minutes,1);break;case"mm":n=nt(W.Minutes,2);break;case"s":n=nt(W.Seconds,1);break;case"ss":n=nt(W.Seconds,2);break;case"S":n=nt(W.FractionalSeconds,1);break;case"SS":n=nt(W.FractionalSeconds,2);break;case"SSS":n=nt(W.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":n=Jl(ut.Short);break;case"ZZZZZ":n=Jl(ut.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":n=Jl(ut.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":n=Jl(ut.Long);break;default:return null}return hh[t]=n,n}(u);c+=d?d(r,e,l):"''"===u?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function Kl(t,n,e){const i=new Date(0);return i.setFullYear(t,n,e),i.setHours(0,0,0),i}function yi(t,n){const e=function gR(t){return Ht(t)[F.LocaleId]}(t);if(Us[e]=Us[e]||{},Us[e][n])return Us[e][n];let i="";switch(n){case"shortDate":i=Wl(t,He.Short);break;case"mediumDate":i=Wl(t,He.Medium);break;case"longDate":i=Wl(t,He.Long);break;case"fullDate":i=Wl(t,He.Full);break;case"shortTime":i=zl(t,He.Short);break;case"mediumTime":i=zl(t,He.Medium);break;case"longTime":i=zl(t,He.Long);break;case"fullTime":i=zl(t,He.Full);break;case"short":const r=yi(t,"shortTime"),o=yi(t,"shortDate");i=Yl(ql(t,He.Short),[r,o]);break;case"medium":const s=yi(t,"mediumTime"),a=yi(t,"mediumDate");i=Yl(ql(t,He.Medium),[s,a]);break;case"long":const l=yi(t,"longTime"),c=yi(t,"longDate");i=Yl(ql(t,He.Long),[l,c]);break;case"full":const u=yi(t,"fullTime"),d=yi(t,"fullDate");i=Yl(ql(t,He.Full),[u,d])}return i&&(Us[e][n]=i),i}function Yl(t,n){return n&&(t=t.replace(/\{([^}]+)}/g,function(e,i){return null!=n&&i in n?n[i]:e})),t}function Ln(t,n,e="-",i,r){let o="";(t<0||r&&t<=0)&&(r?t=1-t:(t=-t,o=e));let s=String(t);for(;s.length<n;)s="0"+s;return i&&(s=s.slice(s.length-n)),o+s}function nt(t,n,e=0,i=!1,r=!1){return function(o,s){let a=function NR(t,n){switch(t){case W.FullYear:return n.getFullYear();case W.Month:return n.getMonth();case W.Date:return n.getDate();case W.Hours:return n.getHours();case W.Minutes:return n.getMinutes();case W.Seconds:return n.getSeconds();case W.FractionalSeconds:return n.getMilliseconds();case W.Day:return n.getDay();default:throw new Error(`Unknown DateType value "${t}".`)}}(t,o);if((e>0||a>-e)&&(a+=e),t===W.Hours)0===a&&-12===e&&(a=12);else if(t===W.FractionalSeconds)return function MR(t,n){return Ln(t,3).substring(0,n)}(a,n);const l=bn(s,$.MinusSign);return Ln(a,n,l,i,r)}}function xe(t,n,e=Le.Format,i=!1){return function(r,o){return function IR(t,n,e,i,r,o){switch(e){case Q.Months:return ch(n,r,i)[t.getMonth()];case Q.Days:return p1(n,r,i)[t.getDay()];case Q.DayPeriods:const s=t.getHours(),a=t.getMinutes();if(o){const c=function bR(t){const n=Ht(t);return g1(n),(n[F.ExtraData][2]||[]).map(i=>"string"==typeof i?dh(i):[dh(i[0]),dh(i[1])])}(n),u=function DR(t,n,e){const i=Ht(t);g1(i);const o=Dn([i[F.ExtraData][0],i[F.ExtraData][1]],n)||[];return Dn(o,e)||[]}(n,r,i),d=c.findIndex(f=>{if(Array.isArray(f)){const[h,g]=f,b=s>=h.hours&&a>=h.minutes,w=s<g.hours||s===g.hours&&a<g.minutes;if(h.hours<g.hours){if(b&&w)return!0}else if(b||w)return!0}else if(f.hours===s&&f.minutes===a)return!0;return!1});if(-1!==d)return u[d]}return function mR(t,n,e){const i=Ht(t),o=Dn([i[F.DayPeriodsFormat],i[F.DayPeriodsStandalone]],n);return Dn(o,e)}(n,r,i)[s<12?0:1];case Q.Eras:return function _R(t,n){return Dn(Ht(t)[F.Eras],n)}(n,i)[t.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${e}`)}}(r,o,t,n,e,i)}}function Jl(t){return function(n,e,i){const r=-1*i,o=bn(e,$.MinusSign),s=r>0?Math.floor(r/60):Math.ceil(r/60);switch(t){case ut.Short:return(r>=0?"+":"")+Ln(s,2,o)+Ln(Math.abs(r%60),2,o);case ut.ShortGMT:return"GMT"+(r>=0?"+":"")+Ln(s,1,o);case ut.Long:return"GMT"+(r>=0?"+":"")+Ln(s,2,o)+":"+Ln(Math.abs(r%60),2,o);case ut.Extended:return 0===i?"Z":(r>=0?"+":"")+Ln(s,2,o)+":"+Ln(Math.abs(r%60),2,o);default:throw new Error(`Unknown zone width "${t}"`)}}}function _1(t){return Kl(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function fh(t,n=!1){return function(e,i){let r;if(n){const o=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,s=e.getDate();r=1+Math.floor((s+o)/7)}else{const o=_1(e),s=function AR(t){const n=Kl(t,0,1).getDay();return Kl(t,0,1+(n<=4?4:11)-n)}(o.getFullYear()),a=o.getTime()-s.getTime();r=1+Math.round(a/6048e5)}return Ln(r,t,bn(i,$.MinusSign))}}function Ql(t,n=!1){return function(e,i){return Ln(_1(e).getFullYear(),t,bn(i,$.MinusSign),n)}}const hh={};function v1(t,n){t=t.replace(/:/g,"");const e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?n:e}function y1(t){return t instanceof Date&&!isNaN(t.valueOf())}function C1(t,n){n=encodeURIComponent(n);for(const e of t.split(";")){const i=e.indexOf("="),[r,o]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===n)return decodeURIComponent(o)}return null}let S1=(()=>{class t{constructor(e,i,r,o){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=r,this._renderer=o,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Ts(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachChangedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachRemovedItem(i=>{i.previousValue&&this._toggleClass(i.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(i=>{if("string"!=typeof i.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${Ne(i.item)}`);this._toggleClass(i.item,!0)}),e.forEachRemovedItem(i=>this._toggleClass(i.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!0)):Object.keys(e).forEach(i=>this._toggleClass(i,!!e[i])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!1)):Object.keys(e).forEach(i=>this._toggleClass(i,!1)))}_toggleClass(e,i){(e=e.trim())&&e.split(/\s+/g).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return t.\u0275fac=function(e){return new(e||t)(v(Ul),v($s),v(be),v(rn))},t.\u0275dir=R({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),t})();class YR{constructor(n,e,i,r){this.$implicit=n,this.ngForOf=e,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 Vn=(()=>{class t{constructor(e,i,r){this._viewContainer=e,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=this._viewContainer;e.forEachOperation((r,o,s)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new YR(r.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)i.remove(null===o?void 0:o);else if(null!==o){const a=i.get(o);i.move(a,s),M1(a,r)}});for(let r=0,o=i.length;r<o;r++){const a=i.get(r).context;a.index=r,a.count=o,a.ngForOf=this._ngForOf}e.forEachIdentityChange(r=>{M1(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(v(yn),v(je),v(Ul))},t.\u0275dir=R({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),t})();function M1(t,n){t.context.$implicit=n.item}let bi=(()=>{class t{constructor(e,i){this._viewContainer=e,this._context=new ZR,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){N1("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){N1("ngIfElse",e),this._elseTemplateRef=e,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(e,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(v(yn),v(je))},t.\u0275dir=R({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),t})();class ZR{constructor(){this.$implicit=null,this.ngIf=null}}function N1(t,n){if(n&&!n.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Ne(n)}'.`)}class yh{constructor(n,e){this._viewContainerRef=n,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(n){n&&!this._created?this.create():!n&&this._created&&this.destroy()}}let ec=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const i=e==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(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let i=0;i<this._defaultViews.length;i++)this._defaultViews[i].enforceState(e)}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=R({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),t})(),I1=(()=>{class t{constructor(e,i,r){this.ngSwitch=r,r._addCase(),this._view=new yh(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(v(yn),v(je),v(ec,9))},t.\u0275dir=R({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),t})(),O1=(()=>{class t{constructor(e,i,r){r._addDefault(new yh(e,i))}}return t.\u0275fac=function(e){return new(e||t)(v(yn),v(je),v(ec,9))},t.\u0275dir=R({type:t,selectors:[["","ngSwitchDefault",""]],standalone:!0}),t})(),hr=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(e.ngTemplateOutlet||e.ngTemplateOutletInjector){const i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:r,ngTemplateOutletContext:o,ngTemplateOutletInjector:s}=this;this._viewRef=i.createEmbeddedView(r,o,s?{injector:s}:void 0)}else this._viewRef=null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t.\u0275fac=function(e){return new(e||t)(v(yn))},t.\u0275dir=R({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[yt]}),t})();const cP=new H("DATE_PIPE_DEFAULT_TIMEZONE");let x1=(()=>{class t{constructor(e,i){this.locale=e,this.defaultTimezone=i}transform(e,i="mediumDate",r,o){var s;if(null==e||""===e||e!=e)return null;try{return m1(e,i,o||this.locale,null!==(s=null!=r?r:this.defaultTimezone)&&void 0!==s?s:void 0)}catch(a){throw function Bn(t,n){return new A(2100,!1)}()}}}return t.\u0275fac=function(e){return new(e||t)(v(Pn,16),v(cP,24))},t.\u0275pipe=Et({name:"date",type:t,pure:!0,standalone:!0}),t})(),cn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=me({type:t}),t.\u0275inj=fe({}),t})();let SP=(()=>{class t{}return t.\u0275prov=x({token:t,providedIn:"root",factory:()=>new TP(O(Ye),window)}),t})();class TP{constructor(n,e){this.document=n,this.window=e,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(n){this.supportsScrolling()&&this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){if(!this.supportsScrolling())return;const e=function EP(t,n){const e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let r=i.currentNode;for(;r;){const o=r.shadowRoot;if(o){const s=o.getElementById(n)||o.querySelector(`[name="${n}"]`);if(s)return s}r=i.nextNode()}}return null}(this.document,n);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(n){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=n)}}scrollToElement(n){const e=n.getBoundingClientRect(),i=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(i-o[0],r-o[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const n=k1(this.window.history)||k1(Object.getPrototypeOf(this.window.history));return!(!n||!n.writable&&!n.set)}catch(n){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(n){return!1}}}function k1(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class F1{}class Sh extends class GP extends class lR{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function aR(t){Gl||(Gl=t)}(new Sh)}onAndCancel(n,e,i){return n.addEventListener(e,i,!1),()=>{n.removeEventListener(e,i,!1)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,e){return(e=e||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return"window"===e?window:"document"===e?n:"body"===e?n.body:null}getBaseHref(n){const e=function WP(){return zs=zs||document.querySelector("base"),zs?zs.getAttribute("href"):null}();return null==e?null:function zP(t){nc=nc||document.createElement("a"),nc.setAttribute("href",t);const n=nc.pathname;return"/"===n.charAt(0)?n:`/${n}`}(e)}resetBaseElement(){zs=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return C1(document.cookie,n)}}let nc,zs=null;const j1=new H("TRANSITION_ID"),KP=[{provide:Vs,useFactory:function qP(t,n,e){return()=>{e.get(Ll).donePromise.then(()=>{const i=ti(),r=n.querySelectorAll(`style[ng-transition="${t}"]`);for(let o=0;o<r.length;o++)i.remove(r[o])})}},deps:[j1,Ye,bt],multi:!0}];let JP=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})();const ic=new H("EventManagerPlugins");let rc=(()=>{class t{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>r.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}addGlobalEventListener(e,i,r){return this._findPluginFor(i).addGlobalEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const r=this._plugins;for(let o=0;o<r.length;o++){const s=r[o];if(s.supports(e))return this._eventNameToPlugin.set(e,s),s}throw new Error(`No event manager plugin found for event ${e}`)}}return t.\u0275fac=function(e){return new(e||t)(O(ic),O(Se))},t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})();class H1{constructor(n){this._doc=n}addGlobalEventListener(n,e,i){const r=ti().getGlobalEventTarget(this._doc,n);if(!r)throw new Error(`Unsupported event target ${r} for event ${e}`);return this.addEventListener(r,e,i)}}let $1=(()=>{class t{constructor(){this._stylesSet=new Set}addStyles(e){const i=new Set;e.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),i.add(r))}),this.onStylesAdded(i)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})(),qs=(()=>{class t extends $1{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,i,r){e.forEach(o=>{const s=this._doc.createElement("style");s.textContent=o,r.push(i.appendChild(s))})}addHost(e){const i=[];this._addStylesToHost(this._stylesSet,e,i),this._hostNodes.set(e,i)}removeHost(e){const i=this._hostNodes.get(e);i&&i.forEach(U1),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(e,r,i)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(U1))}}return t.\u0275fac=function(e){return new(e||t)(O(Ye))},t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})();function U1(t){ti().remove(t)}const Th={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/"},Eh=/%COMP%/g;function oc(t,n,e){for(let i=0;i<n.length;i++){let r=n[i];Array.isArray(r)?oc(t,r,e):(r=r.replace(Eh,t),e.push(r))}return e}function z1(t){return n=>{if("__ngUnwrap__"===n)return t;!1===t(n)&&(n.preventDefault(),n.returnValue=!1)}}let Mh=(()=>{class t{constructor(e,i,r){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new Nh(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case qn.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new nk(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(e),r}case 1:case qn.ShadowDom:return new ik(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){const r=oc(i.id,i.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(O(rc),O(qs),O(Bs))},t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})();class Nh{constructor(n){this.eventManager=n,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,e){return e?document.createElementNS(Th[e]||e,n):document.createElement(n)}createComment(n){return document.createComment(n)}createText(n){return document.createTextNode(n)}appendChild(n,e){(K1(n)?n.content:n).appendChild(e)}insertBefore(n,e,i){n&&(K1(n)?n.content:n).insertBefore(e,i)}removeChild(n,e){n&&n.removeChild(e)}selectRootElement(n,e){let i="string"==typeof n?document.querySelector(n):n;if(!i)throw new Error(`The selector "${n}" did not match any elements`);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,r){if(r){e=r+":"+e;const o=Th[r];o?n.setAttributeNS(o,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){const r=Th[i];r?n.removeAttributeNS(r,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,r){r&(zt.DashCase|zt.Important)?n.style.setProperty(e,i,r&zt.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&zt.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){n[e]=i}setValue(n,e){n.nodeValue=e}listen(n,e,i){return"string"==typeof n?this.eventManager.addGlobalEventListener(n,e,z1(i)):this.eventManager.addEventListener(n,e,z1(i))}}function K1(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class nk extends Nh{constructor(n,e,i,r){super(n),this.component=i;const o=oc(r+"-"+i.id,i.styles,[]);e.addStyles(o),this.contentAttr=function XP(t){return"_ngcontent-%COMP%".replace(Eh,t)}(r+"-"+i.id),this.hostAttr=function ek(t){return"_nghost-%COMP%".replace(Eh,t)}(r+"-"+i.id)}applyToHost(n){super.setAttribute(n,this.hostAttr,"")}createElement(n,e){const i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}}class ik extends Nh{constructor(n,e,i,r){super(n),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=oc(r.id,r.styles,[]);for(let s=0;s<o.length;s++){const a=document.createElement("style");a.textContent=o[s],this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i)}removeChild(n,e){return super.removeChild(this.nodeOrShadowRoot(n),e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}}let rk=(()=>{class t extends H1{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}}return t.\u0275fac=function(e){return new(e||t)(O(Ye))},t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})();const Y1=["alt","control","meta","shift"],ok={"\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"},sk={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let ak=(()=>{class t extends H1{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,r){const o=t.parseEventName(i),s=t.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ti().onAndCancel(e,o.domEventName,s))}static parseEventName(e){const i=e.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const o=t._normalizeKey(i.pop());let s="",a=i.indexOf("code");if(a>-1&&(i.splice(a,1),s="code."),Y1.forEach(c=>{const u=i.indexOf(c);u>-1&&(i.splice(u,1),s+=c+".")}),s+=o,0!=i.length||0===o.length)return null;const l={};return l.domEventName=r,l.fullKey=s,l}static matchEventFullKeyCode(e,i){let r=ok[e.key]||e.key,o="";return i.indexOf("code.")>-1&&(r=e.code,o="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),Y1.forEach(s=>{s!==r&&(0,sk[s])(e)&&(o+=s+".")}),o+=r,o===i)}static eventCallback(e,i,r){return o=>{t.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>i(o))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return t.\u0275fac=function(e){return new(e||t)(O(Ye))},t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})();const Z1=[{provide:Vl,useValue:"browser"},{provide:x0,useValue:function lk(){Sh.makeCurrent()},multi:!0},{provide:Ye,useFactory:function uk(){return function AE(t){rd=t}(document),document},deps:[]}],dk=$0(rR,"browser",Z1),Q1=new H(""),X1=[{provide:Bl,useClass:class YP{addToWindow(n){Oe.getAngularTestability=(i,r=!0)=>{const o=n.findTestabilityInTree(i,r);if(null==o)throw new Error("Could not find testability for element.");return o},Oe.getAllAngularTestabilities=()=>n.getAllTestabilities(),Oe.getAllAngularRootElements=()=>n.getAllRootElements(),Oe.frameworkStabilizers||(Oe.frameworkStabilizers=[]),Oe.frameworkStabilizers.push(i=>{const r=Oe.getAllAngularTestabilities();let o=r.length,s=!1;const a=function(l){s=s||l,o--,0==o&&i(s)};r.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(n,e,i){if(null==e)return null;const r=n.getTestability(e);return null!=r?r:i?ti().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null}},deps:[]},{provide:V0,useClass:Zf,deps:[Se,Qf,Bl]},{provide:Zf,useClass:Zf,deps:[Se,Qf,Bl]}],eb=[{provide:pd,useValue:"root"},{provide:io,useFactory:function ck(){return new io},deps:[]},{provide:ic,useClass:rk,multi:!0,deps:[Ye,Se,Vl]},{provide:ic,useClass:ak,multi:!0,deps:[Ye]},{provide:Mh,useClass:Mh,deps:[rc,qs,Bs]},{provide:vd,useExisting:Mh},{provide:$1,useExisting:qs},{provide:qs,useClass:qs,deps:[Ye]},{provide:rc,useClass:rc,deps:[ic,Se]},{provide:F1,useClass:JP,deps:[]},[]];let fk=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:Bs,useValue:e.appId},{provide:j1,useExisting:Bs},KP]}}}return t.\u0275fac=function(e){return new(e||t)(O(Q1,12))},t.\u0275mod=me({type:t}),t.\u0275inj=fe({providers:[...eb,...X1],imports:[cn,oR]}),t})(),tb=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return t.\u0275fac=function(e){return new(e||t)(O(Ye))},t.\u0275prov=x({token:t,factory:function(e){let i=null;return i=e?new e:function pk(){return new tb(O(Ye))}(),i},providedIn:"root"}),t})();function sc(...t){if(1===t.length){const n=t[0];if(Ni(n))return ac(n,null);if(vu(n)&&Object.getPrototypeOf(n)===Object.prototype){const e=Object.keys(n);return ac(e.map(i=>n[i]),e)}}if("function"==typeof t[t.length-1]){const n=t.pop();return ac(t=1===t.length&&Ni(t[0])?t[0]:t,null).pipe(j(e=>n(...e)))}return ac(t,null)}function ac(t,n){return new Te(e=>{const i=t.length;if(0===i)return void e.complete();const r=new Array(i);let o=0,s=0;for(let a=0;a<i;a++){const l=rt(t[a]);let c=!1;e.add(l.subscribe({next:u=>{c||(c=!0,s++),r[a]=u},error:u=>e.error(u),complete:()=>{o++,(o===i||!c)&&(s===i&&e.next(n?n.reduce((u,d,f)=>(u[d]=r[f],u),{}):r),e.complete())}}))}})}"undefined"!=typeof window&&window;let rb=(()=>{class t{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return t.\u0275fac=function(e){return new(e||t)(v(rn),v(be))},t.\u0275dir=R({type:t}),t})(),pr=(()=>{class t extends rb{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ze(t)))(i||t)}}(),t.\u0275dir=R({type:t,features:[he]}),t})();const wn=new H("NgValueAccessor"),wk={provide:wn,useExisting:ie(()=>Ah),multi:!0};let Ah=(()=>{class t extends pr{writeValue(e){this.setProperty("checked",e)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ze(t)))(i||t)}}(),t.\u0275dir=R({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,i){1&e&&B("change",function(o){return i.onChange(o.target.checked)})("blur",function(){return i.onTouched()})},features:[we([wk]),he]}),t})();const Ck={provide:wn,useExisting:ie(()=>lc),multi:!0},Tk=new H("CompositionEventMode");let lc=(()=>{class t extends rb{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function Sk(){const t=ti()?ti().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(e){this.setProperty("value",null==e?"":e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return t.\u0275fac=function(e){return new(e||t)(v(rn),v(be),v(Tk,8))},t.\u0275dir=R({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,i){1&e&&B("input",function(o){return i._handleInput(o.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(o){return i._compositionEnd(o.target.value)})},features:[we([Ck]),he]}),t})();const gt=new H("NgValidators"),Hi=new H("NgAsyncValidators");function pb(t){return null!=t}function gb(t){return Ms(t)?rt(t):t}function mb(t){let n={};return t.forEach(e=>{n=null!=e?Object.assign(Object.assign({},n),e):n}),0===Object.keys(n).length?null:n}function _b(t,n){return n.map(e=>e(t))}function vb(t){return t.map(n=>function Nk(t){return!t.validate}(n)?n:e=>n.validate(e))}function xh(t){return null!=t?function yb(t){if(!t)return null;const n=t.filter(pb);return 0==n.length?null:function(e){return mb(_b(e,n))}}(vb(t)):null}function Rh(t){return null!=t?function bb(t){if(!t)return null;const n=t.filter(pb);return 0==n.length?null:function(e){return sc(_b(e,n).map(gb)).pipe(j(mb))}}(vb(t)):null}function Db(t,n){return null===t?[n]:Array.isArray(t)?[...t,n]:[t,n]}function Ph(t){return t?Array.isArray(t)?t:[t]:[]}function uc(t,n){return Array.isArray(t)?t.includes(n):t===n}function Sb(t,n){const e=Ph(n);return Ph(t).forEach(r=>{uc(e,r)||e.push(r)}),e}function Tb(t,n){return Ph(n).filter(e=>!uc(t,e))}class Eb{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=xh(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=Rh(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n){this.control&&this.control.reset(n)}hasError(n,e){return!!this.control&&this.control.hasError(n,e)}getError(n,e){return this.control?this.control.getError(n,e):null}}class $i extends Eb{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class xt extends Eb{get formDirective(){return null}get path(){return null}}class Mb{constructor(n){this._cd=n}get isTouched(){var n,e;return!(null===(e=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===e||!e.touched)}get isUntouched(){var n,e;return!(null===(e=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===e||!e.untouched)}get isPristine(){var n,e;return!(null===(e=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===e||!e.pristine)}get isDirty(){var n,e;return!(null===(e=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===e||!e.dirty)}get isValid(){var n,e;return!(null===(e=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===e||!e.valid)}get isInvalid(){var n,e;return!(null===(e=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===e||!e.invalid)}get isPending(){var n,e;return!(null===(e=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===e||!e.pending)}get isSubmitted(){var n;return!(null===(n=this._cd)||void 0===n||!n.submitted)}}let kh=(()=>{class t extends Mb{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(v($i,2))},t.\u0275dir=R({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&&Ie("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[he]}),t})(),Nb=(()=>{class t extends Mb{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(v(xt,10))},t.\u0275dir=R({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,i){2&e&&Ie("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)("ng-submitted",i.isSubmitted)},features:[he]}),t})();const Ks="VALID",fc="INVALID",So="PENDING",Ys="DISABLED";function Bh(t){return(hc(t)?t.validators:t)||null}function Ob(t){return Array.isArray(t)?xh(t):t||null}function jh(t,n){return(hc(n)?n.asyncValidators:t)||null}function Ab(t){return Array.isArray(t)?Rh(t):t||null}function hc(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class Pb{constructor(n,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=n,this._rawAsyncValidators=e,this._composedValidatorFn=Ob(this._rawValidators),this._composedAsyncValidatorFn=Ab(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===Ks}get invalid(){return this.status===fc}get pending(){return this.status==So}get disabled(){return this.status===Ys}get enabled(){return this.status!==Ys}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._rawValidators=n,this._composedValidatorFn=Ob(n)}setAsyncValidators(n){this._rawAsyncValidators=n,this._composedAsyncValidatorFn=Ab(n)}addValidators(n){this.setValidators(Sb(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(Sb(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(Tb(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(Tb(n,this._rawAsyncValidators))}hasValidator(n){return uc(this._rawValidators,n)}hasAsyncValidator(n){return uc(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=So,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=Ys,this.errors=null,this._forEachChild(i=>{i.disable(Object.assign(Object.assign({},n),{onlySelf:!0}))}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},n),{skipPristineCheck:e})),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=Ks,this._forEachChild(i=>{i.enable(Object.assign(Object.assign({},n),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},n),{skipPristineCheck:e})),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ks||this.status===So)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ys:Ks}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=So,this._hasOwnPendingAsyncValidator=!0;const e=gb(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(!1!==e.emitEvent)}get(n){let e=n;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(n,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new G,this.statusChanges=new G}_calculateStatus(){return this._allControlsDisabled()?Ys:this.errors?fc:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(So)?So:this._anyControlsHaveStatus(fc)?fc:Ks}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){hc(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}}class Hh extends Pb{constructor(n,e,i){super(Bh(e),jh(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,e){return this.controls[n]?this.controls[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,i={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){(function Rb(t,n,e){t._forEachChild((i,r)=>{if(void 0===e[r])throw new A(1002,"")})})(this,0,n),Object.keys(n).forEach(i=>{(function xb(t,n,e){const i=t.controls;if(!(n?Object.keys(i):i).length)throw new A(1e3,"");if(!i[e])throw new A(1001,"")})(this,!0,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(Object.keys(n).forEach(i=>{const r=this.controls[i];r&&r.patchValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((i,r)=>{i.reset(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(n,e,i)=>(n[i]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&n(i,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[e,i]of Object.entries(this.controls))if(this.contains(e)&&n(i))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(n,e){let i=n;return this._forEachChild((r,o)=>{i=e(i,r,o)}),i}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}function Js(t,n){var e,i;$h(t,n),n.valueAccessor.writeValue(t.value),t.disabled&&(null===(i=(e=n.valueAccessor).setDisabledState)||void 0===i||i.call(e,!0)),function Lk(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&kb(t,n)})}(t,n),function Bk(t,n){const e=(i,r)=>{n.valueAccessor.writeValue(i),r&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,n),function Vk(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&kb(t,n),"submit"!==t.updateOn&&t.markAsTouched()})}(t,n),function Fk(t,n){if(n.valueAccessor.setDisabledState){const e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,n)}function mc(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function $h(t,n){const e=function wb(t){return t._rawValidators}(t);null!==n.validator?t.setValidators(Db(e,n.validator)):"function"==typeof e&&t.setValidators([e]);const i=function Cb(t){return t._rawAsyncValidators}(t);null!==n.asyncValidator?t.setAsyncValidators(Db(i,n.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const r=()=>t.updateValueAndValidity();mc(n._rawValidators,r),mc(n._rawAsyncValidators,r)}function kb(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}const Gk={provide:xt,useExisting:ie(()=>Qs)},Zs=(()=>Promise.resolve())();let Qs=(()=>{class t extends xt{constructor(e,i){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new G,this.form=new Hh({},xh(e),Rh(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Zs.then(()=>{const i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),Js(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Zs.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Zs.then(()=>{const i=this._findContainer(e.path),r=new Hh({});(function Fb(t,n){$h(t,n)})(r,e),i.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Zs.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){Zs.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){var i;return this.submitted=!0,function Vb(t,n){t._syncPendingControls(),n.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}(this.form,this._directives),this.ngSubmit.emit(e),"dialog"===(null===(i=null==e?void 0:e.target)||void 0===i?void 0:i.method)}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return t.\u0275fac=function(e){return new(e||t)(v(gt,10),v(Hi,10))},t.\u0275dir=R({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,i){1&e&&B("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[we([Gk]),he]}),t})();function Bb(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function jb(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const Hb=class extends Pb{constructor(n=null,e,i){super(Bh(e),jh(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),hc(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=jb(n)?n.value:n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){Bb(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){Bb(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(n){jb(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}},qk={provide:$i,useExisting:ie(()=>vc)},Gb=(()=>Promise.resolve())();let vc=(()=>{class t extends $i{constructor(e,i,r,o,s){super(),this._changeDetectorRef=s,this.control=new Hb,this._registered=!1,this.update=new G,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=function Gh(t,n){if(!n)return null;let e,i,r;return Array.isArray(n),n.forEach(o=>{o.constructor===lc?e=o:function $k(t){return Object.getPrototypeOf(t.constructor)===pr}(o)?i=o:r=o}),r||i||e||null}(0,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),function Uh(t,n){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(n,e.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Js(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){Gb.then(()=>{var i;this.control.setValue(e,{emitViewToModelChange:!1}),null===(i=this._changeDetectorRef)||void 0===i||i.markForCheck()})}_updateDisabled(e){const i=e.isDisabled.currentValue,r=0!==i&&_i(i);Gb.then(()=>{var o;r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),null===(o=this._changeDetectorRef)||void 0===o||o.markForCheck()})}_getPath(e){return this._parent?function pc(t,n){return[...n.path,t]}(e,this._parent):[e]}}return t.\u0275fac=function(e){return new(e||t)(v(xt,9),v(gt,10),v(Hi,10),v(wn,10),v(Fn,8))},t.\u0275dir=R({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[we([qk]),he,yt]}),t})(),Wb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=R({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})(),qb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=me({type:t}),t.\u0275inj=fe({}),t})();const iF={provide:wn,useExisting:ie(()=>Kh),multi:!0};function eD(t,n){return null==t?`${n}`:(n&&"object"==typeof n&&(n="Object"),`${t}: ${n}`.slice(0,50))}let Kh=(()=>{class t extends pr{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;const r=eD(this._getOptionId(e),e);this.setProperty("value",r)}registerOnChange(e){this.onChange=i=>{this.value=this._getOptionValue(i),e(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const i of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(i),e))return i;return null}_getOptionValue(e){const i=function rF(t){return t.split(":")[0]}(e);return this._optionMap.has(i)?this._optionMap.get(i):e}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ze(t)))(i||t)}}(),t.\u0275dir=R({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,i){1&e&&B("change",function(o){return i.onChange(o.target.value)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},features:[we([iF]),he]}),t})(),tD=(()=>{class t{constructor(e,i,r){this._element=e,this._renderer=i,this._select=r,this._select&&(this.id=this._select._registerOption())}set ngValue(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(eD(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(v(be),v(rn),v(Kh,9))},t.\u0275dir=R({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const oF={provide:wn,useExisting:ie(()=>Yh),multi:!0};function nD(t,n){return null==t?`${n}`:("string"==typeof n&&(n=`'${n}'`),n&&"object"==typeof n&&(n="Object"),`${t}: ${n}`.slice(0,50))}let Yh=(()=>{class t extends pr{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){let i;if(this.value=e,Array.isArray(e)){const r=e.map(o=>this._getOptionId(o));i=(o,s)=>{o._setSelected(r.indexOf(s.toString())>-1)}}else i=(r,o)=>{r._setSelected(!1)};this._optionMap.forEach(i)}registerOnChange(e){this.onChange=i=>{const r=[],o=i.selectedOptions;if(void 0!==o){const s=o;for(let a=0;a<s.length;a++){const c=this._getOptionValue(s[a].value);r.push(c)}}else{const s=i.options;for(let a=0;a<s.length;a++){const l=s[a];if(l.selected){const c=this._getOptionValue(l.value);r.push(c)}}}this.value=r,e(r)}}_registerOption(e){const i=(this._idCounter++).toString();return this._optionMap.set(i,e),i}_getOptionId(e){for(const i of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(i)._value,e))return i;return null}_getOptionValue(e){const i=function sF(t){return t.split(":")[0]}(e);return this._optionMap.has(i)?this._optionMap.get(i)._value:e}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ze(t)))(i||t)}}(),t.\u0275dir=R({type:t,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(e,i){1&e&&B("change",function(o){return i.onChange(o.target)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},features:[we([oF]),he]}),t})(),iD=(()=>{class t{constructor(e,i,r){this._element=e,this._renderer=i,this._select=r,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){null!=this._select&&(this._value=e,this._setElementValue(nD(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(nD(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(v(be),v(rn),v(Yh,9))},t.\u0275dir=R({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})(),gF=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=me({type:t}),t.\u0275inj=fe({imports:[qb]}),t})(),hD=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=me({type:t}),t.\u0275inj=fe({imports:[gF]}),t})();function L(...t){let n=t[t.length-1];return kr(n)?(t.pop(),bu(t,n)):qo(t)}class mt extends Ee{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const e=super._subscribe(n);return e&&!e.closed&&n.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Pr;return this._value}next(n){super.next(this._value=n)}}const yc=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();class Zh extends ge{notifyNext(n,e,i,r,o){this.destination.next(e)}notifyError(n,e){this.destination.error(n)}notifyComplete(n){this.destination.complete()}}class _F extends ge{constructor(n,e,i){super(),this.parent=n,this.outerValue=e,this.outerIndex=i,this.index=0}_next(n){this.parent.notifyNext(this.outerValue,n,this.outerIndex,this.index++,this)}_error(n){this.parent.notifyError(n,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function Qh(t,n,e,i,r=new _F(t,e,i)){if(!r.closed)return n instanceof Te?n.subscribe(r):yu(n)(r)}const pD={};function bc(...t){let n,e;return kr(t[t.length-1])&&(e=t.pop()),"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&Ni(t[0])&&(t=t[0]),qo(t,e).lift(new vF(n))}class vF{constructor(n){this.resultSelector=n}call(n,e){return e.subscribe(new yF(n,this.resultSelector))}}class yF extends Zh{constructor(n,e){super(n),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(n){this.values.push(pD),this.observables.push(n)}_complete(){const n=this.observables,e=n.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let i=0;i<e;i++)this.add(Qh(this,n[i],void 0,i))}}notifyComplete(n){0==(this.active-=1)&&this.destination.complete()}notifyNext(n,e,i){const r=this.values,s=this.toRespond?r[i]===pD?--this.toRespond:this.toRespond:0;r[i]=e,0===s&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))}_tryResultSelector(n){let e;try{e=this.resultSelector.apply(this,n)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}function Dc(...t){return function bF(){return Fr(1)}()(L(...t))}const mr=new Te(t=>t.complete());function wc(t){return t?function DF(t){return new Te(n=>t.schedule(()=>n.complete()))}(t):mr}function gD(t){return new Te(n=>{let e;try{e=t()}catch(r){return void n.error(r)}return(e?rt(e):wc()).subscribe(n)})}function To(t,n){return new Te(n?e=>n.schedule(wF,0,{error:t,subscriber:e}):e=>e.error(t))}function wF({error:t,subscriber:n}){n.error(t)}function un(t,n){return"function"==typeof n?e=>e.pipe(un((i,r)=>rt(t(i,r)).pipe(j((o,s)=>n(i,o,r,s))))):e=>e.lift(new CF(t))}class CF{constructor(n){this.project=n}call(n,e){return e.subscribe(new SF(n,this.project))}}class SF extends Wo{constructor(n,e){super(n),this.project=e,this.index=0}_next(n){let e;const i=this.index++;try{e=this.project(n,i)}catch(r){return void this.destination.error(r)}this._innerSub(e)}_innerSub(n){const e=this.innerSubscription;e&&e.unsubscribe();const i=new Go(this),r=this.destination;r.add(i),this.innerSubscription=zo(n,i),this.innerSubscription!==i&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:n}=this;(!n||n.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(n){this.destination.next(n)}}const mD=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function Rt(t){return n=>0===t?wc():n.lift(new TF(t))}class TF{constructor(n){if(this.total=n,this.total<0)throw new mD}call(n,e){return e.subscribe(new EF(n,this.total))}}class EF extends ge{constructor(n,e){super(n),this.total=e,this.count=0}_next(n){const e=this.total,i=++this.count;i<=e&&(this.destination.next(n),i===e&&(this.destination.complete(),this.unsubscribe()))}}function _t(t,n){return function(i){return i.lift(new MF(t,n))}}class MF{constructor(n,e){this.predicate=n,this.thisArg=e}call(n,e){return e.subscribe(new NF(n,this.predicate,this.thisArg))}}class NF extends ge{constructor(n,e,i){super(n),this.predicate=e,this.thisArg=i,this.count=0}_next(n){let e;try{e=this.predicate.call(this.thisArg,n,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(n)}}function Sc(t=null){return n=>n.lift(new IF(t))}class IF{constructor(n){this.defaultValue=n}call(n,e){return e.subscribe(new OF(n,this.defaultValue))}}class OF extends ge{constructor(n,e){super(n),this.defaultValue=e,this.isEmpty=!0}_next(n){this.isEmpty=!1,this.destination.next(n)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function _D(t=RF){return n=>n.lift(new AF(t))}class AF{constructor(n){this.errorFactory=n}call(n,e){return e.subscribe(new xF(n,this.errorFactory))}}class xF extends ge{constructor(n,e){super(n),this.errorFactory=e,this.hasValue=!1}_next(n){this.hasValue=!0,this.destination.next(n)}_complete(){if(this.hasValue)return this.destination.complete();{let n;try{n=this.errorFactory()}catch(e){n=e}this.destination.error(n)}}}function RF(){return new yc}function Ui(t,n){const e=arguments.length>=2;return i=>i.pipe(t?_t((r,o)=>t(r,o,i)):Ra,Rt(1),e?Sc(n):_D(()=>new yc))}function Gi(t,n){return Tt(t,n,1)}function Di(){}function dt(t,n,e){return function(r){return r.lift(new PF(t,n,e))}}class PF{constructor(n,e,i){this.nextOrObserver=n,this.error=e,this.complete=i}call(n,e){return e.subscribe(new kF(n,this.nextOrObserver,this.error,this.complete))}}class kF extends ge{constructor(n,e,i,r){super(n),this._tapNext=Di,this._tapError=Di,this._tapComplete=Di,this._tapError=i||Di,this._tapComplete=r||Di,Ei(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||Di,this._tapError=e.error||Di,this._tapComplete=e.complete||Di)}_next(n){try{this._tapNext.call(this._context,n)}catch(e){return void this.destination.error(e)}this.destination.next(n)}_error(n){try{this._tapError.call(this._context,n)}catch(e){return void this.destination.error(e)}this.destination.error(n)}_complete(){try{this._tapComplete.call(this._context)}catch(n){return void this.destination.error(n)}return this.destination.complete()}}function _r(t){return function(e){const i=new FF(t),r=e.lift(i);return i.caught=r}}class FF{constructor(n){this.selector=n}call(n,e){return e.subscribe(new LF(n,this.selector,this.caught))}}class LF extends Wo{constructor(n,e,i){super(n),this.selector=e,this.caught=i}error(n){if(!this.isStopped){let e;try{e=this.selector(n,this.caught)}catch(o){return void super.error(o)}this._unsubscribeAndRecycle();const i=new Go(this);this.add(i);const r=zo(e,i);r!==i&&this.add(r)}}}function vD(t,n){let e=!1;return arguments.length>=2&&(e=!0),function(r){return r.lift(new VF(t,n,e))}}class VF{constructor(n,e,i=!1){this.accumulator=n,this.seed=e,this.hasSeed=i}call(n,e){return e.subscribe(new BF(n,this.accumulator,this.seed,this.hasSeed))}}class BF extends ge{constructor(n,e,i,r){super(n),this.accumulator=e,this._seed=i,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(n){this.hasSeed=!0,this._seed=n}_next(n){if(this.hasSeed)return this._tryNext(n);this.seed=n,this.destination.next(n)}_tryNext(n){const e=this.index++;let i;try{i=this.accumulator(this.seed,n,e)}catch(r){this.destination.error(r)}this.seed=i,this.destination.next(i)}}function Xh(t){return function(e){return 0===t?wc():e.lift(new jF(t))}}class jF{constructor(n){if(this.total=n,this.total<0)throw new mD}call(n,e){return e.subscribe(new HF(n,this.total))}}class HF extends ge{constructor(n,e){super(n),this.total=e,this.ring=new Array,this.count=0}_next(n){const e=this.ring,i=this.total,r=this.count++;e.length<i?e.push(n):e[r%i]=n}_complete(){const n=this.destination;let e=this.count;if(e>0){const i=this.count>=this.total?this.total:this.count,r=this.ring;for(let o=0;o<i;o++){const s=e++%i;n.next(r[s])}}n.complete()}}function yD(t,n){const e=arguments.length>=2;return i=>i.pipe(t?_t((r,o)=>t(r,o,i)):Ra,Xh(1),e?Sc(n):_D(()=>new yc))}class UF{constructor(n,e){this.predicate=n,this.inclusive=e}call(n,e){return e.subscribe(new GF(n,this.predicate,this.inclusive))}}class GF extends ge{constructor(n,e,i){super(n),this.predicate=e,this.inclusive=i,this.index=0}_next(n){const e=this.destination;let i;try{i=this.predicate(n,this.index++)}catch(r){return void e.error(r)}this.nextOrComplete(n,i)}nextOrComplete(n,e){const i=this.destination;Boolean(e)?i.next(n):(this.inclusive&&i.next(n),i.complete())}}class zF{constructor(n){this.value=n}call(n,e){return e.subscribe(new qF(n,this.value))}}class qF extends ge{constructor(n,e){super(n),this.value=e}_next(n){this.destination.next(this.value)}}function ep(t){return n=>n.lift(new KF(t))}class KF{constructor(n){this.callback=n}call(n,e){return e.subscribe(new YF(n,this.callback))}}class YF extends ge{constructor(n,e){super(n),this.add(new Be(e))}}const ee="primary",Xs=Symbol("RouteTitle");class JF{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Eo(t){return new JF(t)}function ZF(t,n,e){const i=e.path.split("/");if(i.length>t.length||"full"===e.pathMatch&&(n.hasChildren()||i.length<t.length))return null;const r={};for(let o=0;o<i.length;o++){const s=i[o],a=t[o];if(s.startsWith(":"))r[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:t.slice(0,i.length),posParams:r}}function ni(t,n){const e=t?Object.keys(t):void 0,i=n?Object.keys(n):void 0;if(!e||!i||e.length!=i.length)return!1;let r;for(let o=0;o<e.length;o++)if(r=e[o],!bD(t[r],n[r]))return!1;return!0}function bD(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return!1;const e=[...t].sort(),i=[...n].sort();return e.every((r,o)=>i[o]===r)}return t===n}function DD(t){return Array.prototype.concat.apply([],t)}function wD(t){return t.length>0?t[t.length-1]:null}function wt(t,n){for(const e in t)t.hasOwnProperty(e)&&n(t[e],e)}function Wi(t){return bf(t)?t:Ms(t)?rt(Promise.resolve(t)):L(t)}const e2={exact:function TD(t,n,e){if(!yr(t.segments,n.segments)||!Tc(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!t.children[i]||!TD(t.children[i],n.children[i],e))return!1;return!0},subset:ED},CD={exact:function t2(t,n){return ni(t,n)},subset:function n2(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>bD(t[e],n[e]))},ignored:()=>!0};function SD(t,n,e){return e2[e.paths](t.root,n.root,e.matrixParams)&&CD[e.queryParams](t.queryParams,n.queryParams)&&!("exact"===e.fragment&&t.fragment!==n.fragment)}function ED(t,n,e){return MD(t,n,n.segments,e)}function MD(t,n,e,i){if(t.segments.length>e.length){const r=t.segments.slice(0,e.length);return!(!yr(r,e)||n.hasChildren()||!Tc(r,e,i))}if(t.segments.length===e.length){if(!yr(t.segments,e)||!Tc(t.segments,e,i))return!1;for(const r in n.children)if(!t.children[r]||!ED(t.children[r],n.children[r],i))return!1;return!0}{const r=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!!(yr(t.segments,r)&&Tc(t.segments,r,i)&&t.children[ee])&&MD(t.children[ee],n,o,i)}}function Tc(t,n,e){return n.every((i,r)=>CD[e](t[r].parameters,i.parameters))}class vr{constructor(n,e,i){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Eo(this.queryParams)),this._queryParamMap}toString(){return s2.serialize(this)}}class te{constructor(n,e){this.segments=n,this.children=e,this.parent=null,wt(e,(i,r)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Ec(this)}}class ea{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Eo(this.parameters)),this._parameterMap}toString(){return AD(this)}}function yr(t,n){return t.length===n.length&&t.every((e,i)=>e.path===n[i].path)}let ND=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=x({token:t,factory:function(){return new np},providedIn:"root"}),t})();class np{parse(n){const e=new g2(n);return new vr(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){const e=`/${ta(n.root,!0)}`,i=function c2(t){const n=Object.keys(t).map(e=>{const i=t[e];return Array.isArray(i)?i.map(r=>`${Mc(e)}=${Mc(r)}`).join("&"):`${Mc(e)}=${Mc(i)}`}).filter(e=>!!e);return n.length?`?${n.join("&")}`:""}(n.queryParams),r="string"==typeof n.fragment?`#${function a2(t){return encodeURI(t)}(n.fragment)}`:"";return`${e}${i}${r}`}}const s2=new np;function Ec(t){return t.segments.map(n=>AD(n)).join("/")}function ta(t,n){if(!t.hasChildren())return Ec(t);if(n){const e=t.children[ee]?ta(t.children[ee],!1):"",i=[];return wt(t.children,(r,o)=>{o!==ee&&i.push(`${o}:${ta(r,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function o2(t,n){let e=[];return wt(t.children,(i,r)=>{r===ee&&(e=e.concat(n(i,r)))}),wt(t.children,(i,r)=>{r!==ee&&(e=e.concat(n(i,r)))}),e}(t,(i,r)=>r===ee?[ta(t.children[ee],!1)]:[`${r}:${ta(i,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[ee]?`${Ec(t)}/${e[0]}`:`${Ec(t)}/(${e.join("//")})`}}function ID(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Mc(t){return ID(t).replace(/%3B/gi,";")}function ip(t){return ID(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Nc(t){return decodeURIComponent(t)}function OD(t){return Nc(t.replace(/\+/g,"%20"))}function AD(t){return`${ip(t.path)}${function l2(t){return Object.keys(t).map(n=>`;${ip(n)}=${ip(t[n])}`).join("")}(t.parameters)}`}const u2=/^[^\/()?;=#]+/;function Ic(t){const n=t.match(u2);return n?n[0]:""}const d2=/^[^=?&#]+/,h2=/^[^&#]+/;class g2{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new te([],{}):new te([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(i[ee]=new te(n,e)),i}parseSegment(){const n=Ic(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new A(4009,!1);return this.capture(n),new ea(Nc(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const e=Ic(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const r=Ic(this.remaining);r&&(i=r,this.capture(i))}n[Nc(e)]=Nc(i)}parseQueryParam(n){const e=function f2(t){const n=t.match(d2);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const s=function p2(t){const n=t.match(h2);return n?n[0]:""}(this.remaining);s&&(i=s,this.capture(i))}const r=OD(e),o=OD(i);if(n.hasOwnProperty(r)){let s=n[r];Array.isArray(s)||(s=[s],n[r]=s),s.push(o)}else n[r]=o}parseParens(n){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=Ic(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new A(4010,!1);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=ee);const s=this.parseChildren();e[o]=1===Object.keys(s).length?s[ee]:new te([],s),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new A(4011,!1)}}function rp(t){return t.segments.length>0?new te([],{[ee]:t}):t}function Oc(t){const n={};for(const i of Object.keys(t.children)){const o=Oc(t.children[i]);(o.segments.length>0||o.hasChildren())&&(n[i]=o)}return function m2(t){if(1===t.numberOfChildren&&t.children[ee]){const n=t.children[ee];return new te(t.segments.concat(n.segments),n.children)}return t}(new te(t.segments,n))}function br(t){return t instanceof vr}function y2(t,n,e,i,r){var o;if(0===e.length)return Mo(n.root,n.root,n.root,i,r);const a=function PD(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new RD(!0,0,t);let n=0,e=!1;const i=t.reduce((r,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return wt(o.outlets,(l,c)=>{a[c]="string"==typeof l?l.split("/"):l}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return"string"!=typeof o?[...r,o]:0===s?(o.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?e=!0:".."===a?n++:""!=a&&r.push(a))}),r):[...r,o]},[]);return new RD(e,n,i)}(e);return a.toRoot()?Mo(n.root,n.root,new te([],{}),i,r):function l(u){var d;const f=function D2(t,n,e,i){if(t.isAbsolute)return new No(n.root,!0,0);if(-1===i)return new No(e,e===n.root,0);return function kD(t,n,e){let i=t,r=n,o=e;for(;o>r;){if(o-=r,i=i.parent,!i)throw new A(4005,!1);r=i.segments.length}return new No(i,!1,r-o)}(e,i+(na(t.commands[0])?0:1),t.numberOfDoubleDots)}(a,n,null===(d=t.snapshot)||void 0===d?void 0:d._urlSegment,u),h=f.processChildren?ra(f.segmentGroup,f.index,a.commands):sp(f.segmentGroup,f.index,a.commands);return Mo(n.root,f.segmentGroup,h,i,r)}(null===(o=t.snapshot)||void 0===o?void 0:o._lastPathIndex)}function na(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function ia(t){return"object"==typeof t&&null!=t&&t.outlets}function Mo(t,n,e,i,r){let s,o={};i&&wt(i,(l,c)=>{o[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`}),s=t===n?e:xD(t,n,e);const a=rp(Oc(s));return new vr(a,o,r)}function xD(t,n,e){const i={};return wt(t.children,(r,o)=>{i[o]=r===n?e:xD(r,n,e)}),new te(t.segments,i)}class RD{constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&na(i[0]))throw new A(4003,!1);const r=i.find(ia);if(r&&r!==wD(i))throw new A(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class No{constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}}function sp(t,n,e){if(t||(t=new te([],{})),0===t.segments.length&&t.hasChildren())return ra(t,n,e);const i=function C2(t,n,e){let i=0,r=n;const o={match:!1,pathIndex:0,commandIndex:0};for(;r<t.segments.length;){if(i>=e.length)return o;const s=t.segments[r],a=e[i];if(ia(a))break;const l=`${a}`,c=i<e.length-1?e[i+1]:null;if(r>0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!LD(l,c,s))return o;i+=2}else{if(!LD(l,{},s))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(t,n,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndex<t.segments.length){const o=new te(t.segments.slice(0,i.pathIndex),{});return o.children[ee]=new te(t.segments.slice(i.pathIndex),t.children),ra(o,0,r)}return i.match&&0===r.length?new te(t.segments,{}):i.match&&!t.hasChildren()?ap(t,n,e):i.match?ra(t,0,r):ap(t,n,e)}function ra(t,n,e){if(0===e.length)return new te(t.segments,{});{const i=function w2(t){return ia(t[0])?t[0].outlets:{[ee]:t}}(e),r={};return wt(i,(o,s)=>{"string"==typeof o&&(o=[o]),null!==o&&(r[s]=sp(t.children[s],n,o))}),wt(t.children,(o,s)=>{void 0===i[s]&&(r[s]=o)}),new te(t.segments,r)}}function ap(t,n,e){const i=t.segments.slice(0,n);let r=0;for(;r<e.length;){const o=e[r];if(ia(o)){const l=S2(o.outlets);return new te(i,l)}if(0===r&&na(e[0])){i.push(new ea(t.segments[n].path,FD(e[0]))),r++;continue}const s=ia(o)?o.outlets[ee]:`${o}`,a=r<e.length-1?e[r+1]:null;s&&a&&na(a)?(i.push(new ea(s,FD(a))),r+=2):(i.push(new ea(s,{})),r++)}return new te(i,{})}function S2(t){const n={};return wt(t,(e,i)=>{"string"==typeof e&&(e=[e]),null!==e&&(n[i]=ap(new te([],{}),0,e))}),n}function FD(t){const n={};return wt(t,(e,i)=>n[i]=`${e}`),n}function LD(t,n,e){return t==e.path&&ni(n,e.parameters)}class wi{constructor(n,e){this.id=n,this.url=e}}class lp extends wi{constructor(n,e,i="imperative",r=null){super(n,e),this.type=0,this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Dr extends wi{constructor(n,e,i){super(n,e),this.urlAfterRedirects=i,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Ac extends wi{constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class VD extends wi{constructor(n,e,i,r){super(n,e),this.error=i,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class T2 extends wi{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class E2 extends wi{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class M2 extends wi{constructor(n,e,i,r,o){super(n,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class N2 extends wi{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class I2 extends wi{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class O2{constructor(n){this.route=n,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class A2{constructor(n){this.route=n,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class x2{constructor(n){this.snapshot=n,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class R2{constructor(n){this.snapshot=n,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class P2{constructor(n){this.snapshot=n,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class k2{constructor(n){this.snapshot=n,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class BD{constructor(n,e,i){this.routerEvent=n,this.position=e,this.anchor=i,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class jD{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){const e=cp(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){const e=cp(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){const e=up(n,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==n)}pathFromRoot(n){return up(n,this._root).map(e=>e.value)}}function cp(t,n){if(t===n.value)return n;for(const e of n.children){const i=cp(t,e);if(i)return i}return null}function up(t,n){if(t===n.value)return[n];for(const e of n.children){const i=up(t,e);if(i.length)return i.unshift(n),i}return[]}class Ci{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}}function Io(t){const n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}class HD extends jD{constructor(n,e){super(n),this.snapshot=e,dp(this,n)}toString(){return this.snapshot.toString()}}function $D(t,n){const e=function L2(t,n){const s=new xc([],{},{},"",{},ee,n,null,t.root,-1,{});return new GD("",new Ci(s,[]))}(t,n),i=new mt([new ea("",{})]),r=new mt({}),o=new mt({}),s=new mt({}),a=new mt(""),l=new wr(i,r,s,a,o,ee,n,e.root);return l.snapshot=e.root,new HD(new Ci(l,[]),e)}class wr{constructor(n,e,i,r,o,s,a,l){var c,u;this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.title=null!==(u=null===(c=this.data)||void 0===c?void 0:c.pipe(j(d=>d[Xs])))&&void 0!==u?u:L(void 0),this._futureSnapshot=l}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(j(n=>Eo(n)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(j(n=>Eo(n)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function UD(t,n="emptyOnly"){const e=t.pathFromRoot;let i=0;if("always"!==n)for(i=e.length-1;i>=1;){const r=e[i],o=e[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(o.component)break;i--}}return function V2(t){return t.reduce((n,e)=>{var i;return{params:Object.assign(Object.assign({},n.params),e.params),data:Object.assign(Object.assign({},n.data),e.data),resolve:Object.assign(Object.assign(Object.assign(Object.assign({},e.data),n.resolve),null===(i=e.routeConfig)||void 0===i?void 0:i.data),e._resolvedData)}},{params:{},data:{},resolve:{}})}(e.slice(i))}class xc{constructor(n,e,i,r,o,s,a,l,c,u,d,f){var h;this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.title=null===(h=this.data)||void 0===h?void 0:h[Xs],this.routeConfig=l,this._urlSegment=c,this._lastPathIndex=u,this._correctedLastPathIndex=null!=f?f:u,this._resolve=d}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Eo(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Eo(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class GD extends jD{constructor(n,e){super(e),this.url=n,dp(this,e)}toString(){return WD(this._root)}}function dp(t,n){n.value._routerState=t,n.children.forEach(e=>dp(t,e))}function WD(t){const n=t.children.length>0?` { ${t.children.map(WD).join(", ")} } `:"";return`${t.value}${n}`}function fp(t){if(t.snapshot){const n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,ni(n.queryParams,e.queryParams)||t.queryParams.next(e.queryParams),n.fragment!==e.fragment&&t.fragment.next(e.fragment),ni(n.params,e.params)||t.params.next(e.params),function QF(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;++e)if(!ni(t[e],n[e]))return!1;return!0}(n.url,e.url)||t.url.next(e.url),ni(n.data,e.data)||t.data.next(e.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function hp(t,n){const e=ni(t.params,n.params)&&function r2(t,n){return yr(t,n)&&t.every((e,i)=>ni(e.parameters,n[i].parameters))}(t.url,n.url);return e&&!(!t.parent!=!n.parent)&&(!t.parent||hp(t.parent,n.parent))}function oa(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=n.value;const r=function j2(t,n,e){return n.children.map(i=>{for(const r of e.children)if(t.shouldReuseRoute(i.value,r.value.snapshot))return oa(t,i,r);return oa(t,i)})}(t,n,e);return new Ci(i,r)}{if(t.shouldAttach(n.value)){const o=t.retrieve(n.value);if(null!==o){const s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>oa(t,a)),s}}const i=function H2(t){return new wr(new mt(t.url),new mt(t.params),new mt(t.queryParams),new mt(t.fragment),new mt(t.data),t.outlet,t.component,t)}(n.value),r=n.children.map(o=>oa(t,o));return new Ci(i,r)}}const pp="ngNavigationCancelingError";function zD(t,n){const{redirectTo:e,navigationBehaviorOptions:i}=br(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,r=qD(!1,0,n);return r.url=e,r.navigationBehaviorOptions=i,r}function qD(t,n,e){const i=new Error("NavigationCancelingError: "+(t||""));return i[pp]=!0,i.cancellationCode=n,e&&(i.url=e),i}function KD(t){return YD(t)&&br(t.url)}function YD(t){return t&&t[pp]}class $2{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new sa,this.attachRef=null}}let sa=(()=>{class t{constructor(){this.contexts=new Map}onChildOutletCreated(e,i){const r=this.getOrCreateContext(e);r.outlet=i,this.contexts.set(e,r)}onChildOutletDestroyed(e){const i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new $2,this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Rc=!1;let gp=(()=>{class t{constructor(e,i,r,o,s){this.parentContexts=e,this.location=i,this.changeDetector=o,this.environmentInjector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new G,this.deactivateEvents=new G,this.attachEvents=new G,this.detachEvents=new G,this.name=r||ee,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){var e;(null===(e=this.parentContexts.getContext(this.name))||void 0===e?void 0:e.outlet)===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new A(4012,Rc);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new A(4012,Rc);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new A(4012,Rc);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new A(4013,Rc);this._activatedRoute=e;const r=this.location,s=e._futureSnapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new U2(e,a,r.injector);if(i&&function G2(t){return!!t.resolveComponentFactory}(i)){const c=i.resolveComponentFactory(s);this.activated=r.createComponent(c,r.length,l)}else this.activated=r.createComponent(s,{index:r.length,injector:l,environmentInjector:null!=i?i:this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(v(sa),v(yn),function nr(t){return function eE(t,n){if("class"===n)return t.classes;if("style"===n)return t.styles;const e=t.attrs;if(e){const i=e.length;let r=0;for(;r<i;){const o=e[r];if(Jg(o))break;if(0===o)r+=2;else if("number"==typeof o)for(r++;r<i&&"string"==typeof e[r];)r++;else{if(o===n)return e[r+1];r+=2}}}return null}(st(),t)}("name"),v(Fn),v(ki))},t.\u0275dir=R({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0}),t})();class U2{constructor(n,e,i){this.route=n,this.childContexts=e,this.parent=i}get(n,e){return n===wr?this.route:n===sa?this.childContexts:this.parent.get(n,e)}}let mp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ot({type:t,selectors:[["ng-component"]],standalone:!0,features:[Wy],decls:1,vars:0,template:function(e,i){1&e&&pe(0,"router-outlet")},dependencies:[gp],encapsulation:2}),t})();function JD(t,n){var e;return t.providers&&!t._injector&&(t._injector=Rl(t.providers,n,`Route: ${t.path}`)),null!==(e=t._injector)&&void 0!==e?e:n}function vp(t){const n=t.children&&t.children.map(vp),e=n?Object.assign(Object.assign({},t),{children:n}):Object.assign({},t);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==ee&&(e.component=mp),e}function Cn(t){return t.outlet||ee}function ZD(t,n){const e=t.filter(i=>Cn(i)===n);return e.push(...t.filter(i=>Cn(i)!==n)),e}function aa(t){var n;if(!t)return null;if(null!==(n=t.routeConfig)&&void 0!==n&&n._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){const i=e.routeConfig;if(null!=i&&i._loadedInjector)return i._loadedInjector;if(null!=i&&i._injector)return i._injector}return null}class Y2{constructor(n,e,i,r){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=r}activate(n){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),fp(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){const r=Io(e);n.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,r[s],i),delete r[s]}),wt(r,(o,s)=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(n,e,i){const r=n.value,o=e?e.value:null;if(r===o)if(r.component){const s=i.getContext(r.outlet);s&&this.deactivateChildRoutes(n,e,s.children)}else this.deactivateChildRoutes(n,e,i);else o&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){const i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=Io(n);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);if(i&&i.outlet){const s=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,e){const i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=Io(n);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(n,e,i){const r=Io(e);n.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new k2(o.value.snapshot))}),n.children.length&&this.forwardEvent(new R2(n.value.snapshot))}activateRoutes(n,e,i){var r;const o=n.value,s=e?e.value:null;if(fp(o),o===s)if(o.component){const a=i.getOrCreateContext(o.outlet);this.activateChildRoutes(n,e,a.children)}else this.activateChildRoutes(n,e,i);else if(o.component){const a=i.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const l=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),a.children.onOutletReAttached(l.contexts),a.attachRef=l.componentRef,a.route=l.route.value,a.outlet&&a.outlet.attach(l.componentRef,l.route.value),fp(l.route.value),this.activateChildRoutes(n,null,a.children)}else{const l=aa(o.snapshot),c=null!==(r=null==l?void 0:l.get(vs))&&void 0!==r?r:null;a.attachRef=null,a.route=o,a.resolver=c,a.injector=l,a.outlet&&a.outlet.activateWith(o,a.injector),this.activateChildRoutes(n,null,a.children)}}else this.activateChildRoutes(n,null,i)}}class QD{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class Pc{constructor(n,e){this.component=n,this.route=e}}function J2(t,n,e){const i=t._root;return la(i,n?n._root:null,e,[i.value])}function Oo(t,n){const e=Symbol(),i=n.get(t,e);return i===e?"function"!=typeof t||function iT(t){return null!==La(t)}(t)?n.get(t):t:i}function la(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=Io(n);return t.children.forEach(s=>{(function Q2(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=t.value,s=n?n.value:null,a=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const l=function X2(t,n,e){if("function"==typeof e)return e(t,n);switch(e){case"pathParamsChange":return!yr(t.url,n.url);case"pathParamsOrQueryParamsChange":return!yr(t.url,n.url)||!ni(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!hp(t,n)||!ni(t.queryParams,n.queryParams);default:return!hp(t,n)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new QD(i)):(o.data=s.data,o._resolvedData=s._resolvedData),la(t,n,o.component?a?a.children:null:e,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Pc(a.outlet.component,s))}else s&&ca(n,a,r),r.canActivateChecks.push(new QD(i)),la(t,null,o.component?a?a.children:null:e,i,r)})(s,o[s.value.outlet],e,i.concat([s.value]),r),delete o[s.value.outlet]}),wt(o,(s,a)=>ca(s,e.getContext(a),r)),r}function ca(t,n,e){const i=Io(t),r=t.value;wt(i,(o,s)=>{ca(o,r.component?n?n.children.getContext(s):null:n,e)}),e.canDeactivateChecks.push(new Pc(r.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,r))}function ua(t){return"function"==typeof t}function yp(t){return t instanceof yc||"EmptyError"===(null==t?void 0:t.name)}const kc=Symbol("INITIAL_VALUE");function Ao(){return un(t=>bc(t.map(n=>n.pipe(Rt(1),function Cc(...t){const n=t[t.length-1];return kr(n)?(t.pop(),e=>Dc(t,e,n)):e=>Dc(t,e)}(kc)))).pipe(j(n=>{for(const e of n)if(!0!==e){if(e===kc)return kc;if(!1===e||e instanceof vr)return e}return!0}),_t(n=>n!==kc),Rt(1)))}function XD(t){return function ES(...t){return gg(t)}(dt(n=>{if(br(n))throw zD(0,n)}),j(n=>!0===n))}const bp={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ew(t,n,e,i,r){const o=Dp(t,n,e);return o.matched?function mL(t,n,e,i){const r=n.canMatch;return r&&0!==r.length?L(r.map(s=>{const a=Oo(s,t);return Wi(function oL(t){return t&&ua(t.canMatch)}(a)?a.canMatch(n,e):t.runInContext(()=>a(n,e)))})).pipe(Ao(),XD()):L(!0)}(i=JD(n,i),n,e).pipe(j(s=>!0===s?o:Object.assign({},bp))):L(o)}function Dp(t,n,e){var i;if(""===n.path)return"full"===n.pathMatch&&(t.hasChildren()||e.length>0)?Object.assign({},bp):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const o=(n.matcher||ZF)(e,t,n);if(!o)return Object.assign({},bp);const s={};wt(o.posParams,(l,c)=>{s[c]=l.path});const a=o.consumed.length>0?Object.assign(Object.assign({},s),o.consumed[o.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:o.consumed,remainingSegments:e.slice(o.consumed.length),parameters:a,positionalParamSegments:null!==(i=o.posParams)&&void 0!==i?i:{}}}function Fc(t,n,e,i,r="corrected"){if(e.length>0&&function yL(t,n,e){return e.some(i=>Lc(t,n,i)&&Cn(i)!==ee)}(t,e,i)){const s=new te(n,function vL(t,n,e,i){const r={};r[ee]=i,i._sourceSegment=t,i._segmentIndexShift=n.length;for(const o of e)if(""===o.path&&Cn(o)!==ee){const s=new te([],{});s._sourceSegment=t,s._segmentIndexShift=n.length,r[Cn(o)]=s}return r}(t,n,i,new te(e,t.children)));return s._sourceSegment=t,s._segmentIndexShift=n.length,{segmentGroup:s,slicedSegments:[]}}if(0===e.length&&function bL(t,n,e){return e.some(i=>Lc(t,n,i))}(t,e,i)){const s=new te(t.segments,function _L(t,n,e,i,r,o){const s={};for(const a of i)if(Lc(t,e,a)&&!r[Cn(a)]){const l=new te([],{});l._sourceSegment=t,l._segmentIndexShift="legacy"===o?t.segments.length:n.length,s[Cn(a)]=l}return Object.assign(Object.assign({},r),s)}(t,n,e,i,t.children,r));return s._sourceSegment=t,s._segmentIndexShift=n.length,{segmentGroup:s,slicedSegments:e}}const o=new te(t.segments,t.children);return o._sourceSegment=t,o._segmentIndexShift=n.length,{segmentGroup:o,slicedSegments:e}}function Lc(t,n,e){return(!(t.hasChildren()||n.length>0)||"full"!==e.pathMatch)&&""===e.path}function tw(t,n,e,i){return!!(Cn(t)===i||i!==ee&&Lc(n,e,t))&&("**"===t.path||Dp(n,t,e).matched)}function nw(t,n,e){return 0===n.length&&!t.children[e]}const Vc=!1;class Bc{constructor(n){this.segmentGroup=n||null}}class iw{constructor(n){this.urlTree=n}}function da(t){return To(new Bc(t))}function rw(t){return To(new iw(t))}class SL{constructor(n,e,i,r,o){this.injector=n,this.configLoader=e,this.urlSerializer=i,this.urlTree=r,this.config=o,this.allowRedirects=!0}apply(){const n=Fc(this.urlTree.root,[],[],this.config).segmentGroup,e=new te(n.segments,n.children);return this.expandSegmentGroup(this.injector,this.config,e,ee).pipe(j(o=>this.createUrlTree(Oc(o),this.urlTree.queryParams,this.urlTree.fragment))).pipe(_r(o=>{if(o instanceof iw)return this.allowRedirects=!1,this.match(o.urlTree);throw o instanceof Bc?this.noMatchError(o):o}))}match(n){return this.expandSegmentGroup(this.injector,this.config,n.root,ee).pipe(j(r=>this.createUrlTree(Oc(r),n.queryParams,n.fragment))).pipe(_r(r=>{throw r instanceof Bc?this.noMatchError(r):r}))}noMatchError(n){return new A(4002,Vc)}createUrlTree(n,e,i){const r=rp(n);return new vr(r,e,i)}expandSegmentGroup(n,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(n,e,i).pipe(j(o=>new te([],o))):this.expandSegment(n,i,e,i.segments,r,!0)}expandChildren(n,e,i){const r=[];for(const o of Object.keys(i.children))"primary"===o?r.unshift(o):r.push(o);return rt(r).pipe(Gi(o=>{const s=i.children[o],a=ZD(e,o);return this.expandSegmentGroup(n,a,s,o).pipe(j(l=>({segment:l,outlet:o})))}),vD((o,s)=>(o[s.outlet]=s.segment,o),{}),yD())}expandSegment(n,e,i,r,o,s){return rt(i).pipe(Gi(a=>this.expandSegmentAgainstRoute(n,e,i,a,r,o,s).pipe(_r(c=>{if(c instanceof Bc)return L(null);throw c}))),Ui(a=>!!a),_r((a,l)=>{if(yp(a))return nw(e,r,o)?L(new te([],{})):da(e);throw a}))}expandSegmentAgainstRoute(n,e,i,r,o,s,a){return tw(r,e,o,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(n,e,r,o,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s):da(e):da(e)}expandSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(n,i,r,s):this.expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(n,e,i,r){const o=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?rw(o):this.lineralizeSegments(i,o).pipe(Tt(s=>{const a=new te(s,{});return this.expandSegment(n,a,e,s,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s){const{matched:a,consumedSegments:l,remainingSegments:c,positionalParamSegments:u}=Dp(e,r,o);if(!a)return da(e);const d=this.applyRedirectCommands(l,r.redirectTo,u);return r.redirectTo.startsWith("/")?rw(d):this.lineralizeSegments(r,d).pipe(Tt(f=>this.expandSegment(n,e,i,f.concat(c),s,!1)))}matchSegmentAgainstRoute(n,e,i,r,o){return"**"===i.path?(n=JD(i,n),i.loadChildren?(i._loadedRoutes?L({routes:i._loadedRoutes,injector:i._loadedInjector}):this.configLoader.loadChildren(n,i)).pipe(j(a=>(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,new te(r,{})))):L(new te(r,{}))):ew(e,i,r,n).pipe(un(({matched:s,consumedSegments:a,remainingSegments:l})=>{var c;return s?(n=null!==(c=i._injector)&&void 0!==c?c:n,this.getChildConfig(n,i,r).pipe(Tt(d=>{var f;const h=null!==(f=d.injector)&&void 0!==f?f:n,g=d.routes,{segmentGroup:b,slicedSegments:w}=Fc(e,a,l,g),S=new te(b.segments,b.children);if(0===w.length&&S.hasChildren())return this.expandChildren(h,g,S).pipe(j(P=>new te(a,P)));if(0===g.length&&0===w.length)return L(new te(a,{}));const M=Cn(i)===o;return this.expandSegment(h,S,g,w,M?ee:o,!0).pipe(j(I=>new te(a.concat(I.segments),I.children)))}))):da(e)}))}getChildConfig(n,e,i){return e.children?L({routes:e.children,injector:n}):e.loadChildren?void 0!==e._loadedRoutes?L({routes:e._loadedRoutes,injector:e._loadedInjector}):function gL(t,n,e,i){const r=n.canLoad;return void 0===r||0===r.length?L(!0):L(r.map(s=>{const a=Oo(s,t);return Wi(function tL(t){return t&&ua(t.canLoad)}(a)?a.canLoad(n,e):t.runInContext(()=>a(n,e)))})).pipe(Ao(),XD())}(n,e,i).pipe(Tt(r=>r?this.configLoader.loadChildren(n,e).pipe(dt(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):function wL(t){return To(qD(Vc,3))}())):L({routes:[],injector:n})}lineralizeSegments(n,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return L(i);if(r.numberOfChildren>1||!r.children[ee])return To(new A(4e3,Vc));r=r.children[ee]}}applyRedirectCommands(n,e,i){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,i)}applyRedirectCreateUrlTree(n,e,i,r){const o=this.createSegmentGroup(n,e.root,i,r);return new vr(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){const i={};return wt(n,(r,o)=>{if("string"==typeof r&&r.startsWith(":")){const a=r.substring(1);i[o]=e[a]}else i[o]=r}),i}createSegmentGroup(n,e,i,r){const o=this.createSegments(n,e.segments,i,r);let s={};return wt(e.children,(a,l)=>{s[l]=this.createSegmentGroup(n,a,i,r)}),new te(o,s)}createSegments(n,e,i,r){return e.map(o=>o.path.startsWith(":")?this.findPosParam(n,o,r):this.findOrReturn(o,i))}findPosParam(n,e,i){const r=i[e.path.substring(1)];if(!r)throw new A(4001,Vc);return r}findOrReturn(n,e){let i=0;for(const r of e){if(r.path===n.path)return e.splice(i),r;i++}return n}}class EL{}class IL{constructor(n,e,i,r,o,s,a,l){this.injector=n,this.rootComponentType=e,this.config=i,this.urlTree=r,this.url=o,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=a,this.urlSerializer=l}recognize(){const n=Fc(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,n,ee).pipe(j(e=>{if(null===e)return null;const i=new xc([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},ee,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Ci(i,e),o=new GD(this.url,r);return this.inheritParamsAndData(o._root),o}))}inheritParamsAndData(n){const e=n.value,i=UD(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),n.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(n,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.processChildren(n,e,i):this.processSegment(n,e,i,i.segments,r)}processChildren(n,e,i){return rt(Object.keys(i.children)).pipe(Gi(r=>{const o=i.children[r],s=ZD(e,r);return this.processSegmentGroup(n,s,o,r)}),vD((r,o)=>r&&o?(r.push(...o),r):null),function $F(t,n=!1){return e=>e.lift(new UF(t,n))}(r=>null!==r),Sc(null),yD(),j(r=>{if(null===r)return null;const o=ow(r);return function OL(t){t.sort((n,e)=>n.value.outlet===ee?-1:e.value.outlet===ee?1:n.value.outlet.localeCompare(e.value.outlet))}(o),o}))}processSegment(n,e,i,r,o){return rt(e).pipe(Gi(s=>{var a;return this.processSegmentAgainstRoute(null!==(a=s._injector)&&void 0!==a?a:n,s,i,r,o)}),Ui(s=>!!s),_r(s=>{if(yp(s))return nw(i,r,o)?L([]):L(null);throw s}))}processSegmentAgainstRoute(n,e,i,r,o){var s,a;if(e.redirectTo||!tw(e,i,r,o))return L(null);let l;if("**"===e.path){const c=r.length>0?wD(r).parameters:{},u=aw(i)+r.length;l=L({snapshot:new xc(r,c,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,cw(e),Cn(e),null!==(a=null!==(s=e.component)&&void 0!==s?s:e._loadedComponent)&&void 0!==a?a:null,e,sw(i),u,uw(e),u),consumedSegments:[],remainingSegments:[]})}else l=ew(i,e,r,n).pipe(j(({matched:c,consumedSegments:u,remainingSegments:d,parameters:f})=>{var h,g;if(!c)return null;const b=aw(i)+u.length;return{snapshot:new xc(u,f,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,cw(e),Cn(e),null!==(g=null!==(h=e.component)&&void 0!==h?h:e._loadedComponent)&&void 0!==g?g:null,e,sw(i),b,uw(e),b),consumedSegments:u,remainingSegments:d}}));return l.pipe(un(c=>{var u,d;if(null===c)return L(null);const{snapshot:f,consumedSegments:h,remainingSegments:g}=c;n=null!==(u=e._injector)&&void 0!==u?u:n;const b=null!==(d=e._loadedInjector)&&void 0!==d?d:n,w=function AL(t){return t.children?t.children:t.loadChildren?t._loadedRoutes:[]}(e),{segmentGroup:S,slicedSegments:M}=Fc(i,h,g,w.filter(I=>void 0===I.redirectTo),this.relativeLinkResolution);if(0===M.length&&S.hasChildren())return this.processChildren(b,w,S).pipe(j(I=>null===I?null:[new Ci(f,I)]));if(0===w.length&&0===M.length)return L([new Ci(f,[])]);const C=Cn(e)===o;return this.processSegment(b,w,S,M,C?ee:o).pipe(j(I=>null===I?null:[new Ci(f,I)]))}))}}function xL(t){const n=t.value.routeConfig;return n&&""===n.path&&void 0===n.redirectTo}function ow(t){const n=[],e=new Set;for(const i of t){if(!xL(i)){n.push(i);continue}const r=n.find(o=>i.value.routeConfig===o.value.routeConfig);void 0!==r?(r.children.push(...i.children),e.add(r)):n.push(i)}for(const i of e){const r=ow(i.children);n.push(new Ci(i.value,r))}return n.filter(i=>!e.has(i))}function sw(t){let n=t;for(;n._sourceSegment;)n=n._sourceSegment;return n}function aw(t){var n,e;let i=t,r=null!==(n=i._segmentIndexShift)&&void 0!==n?n:0;for(;i._sourceSegment;)i=i._sourceSegment,r+=null!==(e=i._segmentIndexShift)&&void 0!==e?e:0;return r-1}function cw(t){return t.data||{}}function uw(t){return t.resolve||{}}function dw(t){return"string"==typeof t.title||null===t.title}function wp(t){return un(n=>{const e=t(n);return e?rt(e).pipe(j(()=>n)):L(n)})}let fw=(()=>{class t{buildTitle(e){var i;let r,o=e.root;for(;void 0!==o;)r=null!==(i=this.getResolvedTitleForRoute(o))&&void 0!==i?i:r,o=o.children.find(s=>s.outlet===ee);return r}getResolvedTitleForRoute(e){return e.data[Xs]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=x({token:t,factory:function(){return Ze(hw)},providedIn:"root"}),t})(),hw=(()=>{class t extends fw{constructor(e){super(),this.title=e}updateTitle(e){const i=this.buildTitle(e);void 0!==i&&this.title.setTitle(i)}}return t.\u0275fac=function(e){return new(e||t)(O(tb))},t.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class jL{}class $L extends class HL{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}}{}const Hc=new H("",{providedIn:"root",factory:()=>({})}),Cp=new H("ROUTES");let Sp=(()=>{class t{constructor(e,i){this.injector=e,this.compiler=i,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return L(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const i=Wi(e.loadComponent()).pipe(dt(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),ep(()=>{this.componentLoaders.delete(e)})),r=new Du(i,()=>new Ee).pipe(Pa());return this.componentLoaders.set(e,r),r}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return L({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const o=this.loadModuleFactoryOrRoutes(i.loadChildren).pipe(j(a=>{this.onLoadEndListener&&this.onLoadEndListener(i);let l,c,u=!1;Array.isArray(a)?c=a:(l=a.create(e).injector,c=DD(l.get(Cp,[],U.Self|U.Optional)));return{routes:c.map(vp),injector:l}}),ep(()=>{this.childrenLoaders.delete(i)})),s=new Du(o,()=>new Ee).pipe(Pa());return this.childrenLoaders.set(i,s),s}loadModuleFactoryOrRoutes(e){return Wi(e()).pipe(Tt(i=>i instanceof Uy||Array.isArray(i)?L(i):rt(this.compiler.compileModuleAsync(i))))}}return t.\u0275fac=function(e){return new(e||t)(O(bt),O(qf))},t.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class GL{}class WL{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,e){return n}}function zL(t){throw t}function qL(t,n,e){return n.parse("/")}const KL={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},YL={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function gw(){var t,n;const e=Ze(ND),i=Ze(sa),r=Ze(lh),o=Ze(bt),s=Ze(qf),a=null!==(t=Ze(Cp,{optional:!0}))&&void 0!==t?t:[],l=null!==(n=Ze(Hc,{optional:!0}))&&void 0!==n?n:{},c=Ze(hw),u=Ze(fw,{optional:!0}),d=Ze(GL,{optional:!0}),f=Ze(jL,{optional:!0}),h=new vt(null,e,i,r,o,s,DD(a));return d&&(h.urlHandlingStrategy=d),f&&(h.routeReuseStrategy=f),h.titleStrategy=null!=u?u:c,function JL(t,n){t.errorHandler&&(n.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(n.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(n.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(n.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(n.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(n.urlUpdateStrategy=t.urlUpdateStrategy),t.canceledNavigationResolution&&(n.canceledNavigationResolution=t.canceledNavigationResolution)}(l,h),h}let vt=(()=>{class t{constructor(e,i,r,o,s,a,l){this.rootComponentType=e,this.urlSerializer=i,this.rootContexts=r,this.location=o,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Ee,this.errorHandler=zL,this.malformedUriErrorHandler=qL,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>L(void 0),this.urlHandlingStrategy=new WL,this.routeReuseStrategy=new $L,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=s.get(Sp),this.configLoader.onLoadEndListener=f=>this.triggerEvent(new A2(f)),this.configLoader.onLoadStartListener=f=>this.triggerEvent(new O2(f)),this.ngModule=s.get(ur),this.console=s.get(Sx);const d=s.get(Se);this.isNgZoneEnabled=d instanceof Se&&Se.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=function XF(){return new vr(new te([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=$D(this.currentUrlTree,this.rootComponentType),this.transitions=new mt({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var e;return null===(e=this.location.getState())||void 0===e?void 0:e.\u0275routerPageId}setupNavigations(e){const i=this.events;return e.pipe(_t(r=>0!==r.id),j(r=>Object.assign(Object.assign({},r),{extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),un(r=>{let o=!1,s=!1;return L(r).pipe(dt(a=>{this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),un(a=>{const l=this.browserUrlTree.toString(),c=!this.navigated||a.extractedUrl.toString()!==l||l!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||c)&&this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return mw(a.source)&&(this.browserUrlTree=a.extractedUrl),L(a).pipe(un(d=>{const f=this.transitions.getValue();return i.next(new lp(d.id,this.serializeUrl(d.extractedUrl),d.source,d.restoredState)),f!==this.transitions.getValue()?mr:Promise.resolve(d)}),function TL(t,n,e,i){return un(r=>function CL(t,n,e,i,r){return new SL(t,n,e,i,r).apply()}(t,n,e,r.extractedUrl,i).pipe(j(o=>Object.assign(Object.assign({},r),{urlAfterRedirects:o}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),dt(d=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:d.urlAfterRedirects}),r.urlAfterRedirects=d.urlAfterRedirects}),function PL(t,n,e,i,r,o){return Tt(s=>function NL(t,n,e,i,r,o,s="emptyOnly",a="legacy"){return new IL(t,n,e,i,r,s,a,o).recognize().pipe(un(l=>null===l?function ML(t){return new Te(n=>n.error(t))}(new EL):L(l)))}(t,n,e,s.urlAfterRedirects,i.serialize(s.urlAfterRedirects),i,r,o).pipe(j(a=>Object.assign(Object.assign({},s),{targetSnapshot:a}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),dt(d=>{if(r.targetSnapshot=d.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!d.extras.skipLocationChange){const h=this.urlHandlingStrategy.merge(d.urlAfterRedirects,d.rawUrl);this.setBrowserUrl(h,d)}this.browserUrlTree=d.urlAfterRedirects}const f=new T2(d.id,this.serializeUrl(d.extractedUrl),this.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);i.next(f)}));if(c&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:f,extractedUrl:h,source:g,restoredState:b,extras:w}=a,S=new lp(f,this.serializeUrl(h),g,b);i.next(S);const M=$D(h,this.rootComponentType).snapshot;return L(r=Object.assign(Object.assign({},a),{targetSnapshot:M,urlAfterRedirects:h,extras:Object.assign(Object.assign({},w),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=a.rawUrl,a.resolve(null),mr}),dt(a=>{const l=new E2(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(l)}),j(a=>r=Object.assign(Object.assign({},a),{guards:J2(a.targetSnapshot,a.currentSnapshot,this.rootContexts)})),function aL(t,n){return Tt(e=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return 0===s.length&&0===o.length?L(Object.assign(Object.assign({},e),{guardsResult:!0})):function lL(t,n,e,i){return rt(t).pipe(Tt(r=>function pL(t,n,e,i,r){const o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return o&&0!==o.length?L(o.map(a=>{var l;const c=null!==(l=aa(n))&&void 0!==l?l:r,u=Oo(a,c);return Wi(function rL(t){return t&&ua(t.canDeactivate)}(u)?u.canDeactivate(t,n,e,i):c.runInContext(()=>u(t,n,e,i))).pipe(Ui())})).pipe(Ao()):L(!0)}(r.component,r.route,e,n,i)),Ui(r=>!0!==r,!0))}(s,i,r,t).pipe(Tt(a=>a&&function eL(t){return"boolean"==typeof t}(a)?function cL(t,n,e,i){return rt(n).pipe(Gi(r=>Dc(function dL(t,n){return null!==t&&n&&n(new x2(t)),L(!0)}(r.route.parent,i),function uL(t,n){return null!==t&&n&&n(new P2(t)),L(!0)}(r.route,i),function hL(t,n,e){const i=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>function Z2(t){const n=t.routeConfig?t.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:t,guards:n}:null}(s)).filter(s=>null!==s).map(s=>gD(()=>L(s.guards.map(l=>{var c;const u=null!==(c=aa(s.node))&&void 0!==c?c:e,d=Oo(l,u);return Wi(function iL(t){return t&&ua(t.canActivateChild)}(d)?d.canActivateChild(i,t):u.runInContext(()=>d(i,t))).pipe(Ui())})).pipe(Ao())));return L(o).pipe(Ao())}(t,r.path,e),function fL(t,n,e){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return L(!0);const r=i.map(o=>gD(()=>{var s;const a=null!==(s=aa(n))&&void 0!==s?s:e,l=Oo(o,a);return Wi(function nL(t){return t&&ua(t.canActivate)}(l)?l.canActivate(n,t):a.runInContext(()=>l(n,t))).pipe(Ui())}));return L(r).pipe(Ao())}(t,r.route,e))),Ui(r=>!0!==r,!0))}(i,o,t,n):L(a)),j(a=>Object.assign(Object.assign({},e),{guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),dt(a=>{if(r.guardsResult=a.guardsResult,br(a.guardsResult))throw zD(0,a.guardsResult);const l=new M2(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(l)}),_t(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,"",3),!1)),wp(a=>{if(a.guards.canActivateChecks.length)return L(a).pipe(dt(l=>{const c=new N2(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}),un(l=>{let c=!1;return L(l).pipe(function kL(t,n){return Tt(e=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return L(e);let o=0;return rt(r).pipe(Gi(s=>function FL(t,n,e,i){const r=t.routeConfig,o=t._resolve;return void 0!==(null==r?void 0:r.title)&&!dw(r)&&(o[Xs]=r.title),function LL(t,n,e,i){const r=function VL(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}(t);if(0===r.length)return L({});const o={};return rt(r).pipe(Tt(s=>function BL(t,n,e,i){var r;const o=null!==(r=aa(n))&&void 0!==r?r:i,s=Oo(t,o);return Wi(s.resolve?s.resolve(n,e):o.runInContext(()=>s(n,e)))}(t[s],n,e,i).pipe(Ui(),dt(a=>{o[s]=a}))),Xh(1),function WF(t){return n=>n.lift(new zF(t))}(o),_r(s=>yp(s)?mr:To(s)))}(o,t,n,i).pipe(j(s=>(t._resolvedData=s,t.data=UD(t,e).resolve,r&&dw(r)&&(t.data[Xs]=r.title),null)))}(s.route,i,t,n)),dt(()=>o++),Xh(1),Tt(s=>o===r.length?L(e):mr))})}(this.paramsInheritanceStrategy,this.ngModule.injector),dt({next:()=>c=!0,complete:()=>{c||(this.restoreHistory(l),this.cancelNavigationTransition(l,"",2))}}))}),dt(l=>{const c=new I2(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}))}),wp(a=>{const l=c=>{var u;const d=[];(null===(u=c.routeConfig)||void 0===u?void 0:u.loadComponent)&&!c.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(c.routeConfig).pipe(dt(f=>{c.component=f}),j(()=>{})));for(const f of c.children)d.push(...l(f));return d};return bc(l(a.targetSnapshot.root)).pipe(Sc(),Rt(1))}),wp(()=>this.afterPreactivation()),j(a=>{const l=function B2(t,n,e){const i=oa(t,n._root,e?e._root:void 0);return new HD(i,n)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return r=Object.assign(Object.assign({},a),{targetRouterState:l})}),dt(a=>{this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects)}),((t,n,e)=>j(i=>(new Y2(n,i.targetRouterState,i.currentRouterState,e).activate(t),i)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),dt({next(){o=!0},complete(){o=!0}}),ep(()=>{var a;o||s||this.cancelNavigationTransition(r,"",1),(null===(a=this.currentNavigation)||void 0===a?void 0:a.id)===r.id&&(this.currentNavigation=null)}),_r(a=>{var l;if(s=!0,YD(a)){KD(a)||(this.navigated=!0,this.restoreHistory(r,!0));const c=new Ac(r.id,this.serializeUrl(r.extractedUrl),a.message,a.cancellationCode);if(i.next(c),KD(a)){const u=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),d={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||mw(r.source)};this.scheduleNavigation(u,"imperative",null,d,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{this.restoreHistory(r,!0);const c=new VD(r.id,this.serializeUrl(r.extractedUrl),a,null!==(l=r.targetSnapshot)&&void 0!==l?l:void 0);i.next(c);try{r.resolve(this.errorHandler(a))}catch(u){r.reject(u)}}return mr}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),e))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const i="popstate"===e.type?"popstate":"hashchange";"popstate"===i&&setTimeout(()=>{var r;const o={replaceUrl:!0},s=null!==(r=e.state)&&void 0!==r&&r.navigationId?e.state:null;if(s){const l=Object.assign({},s);delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(o.state=l)}const a=this.parseUrl(e.url);this.scheduleNavigation(a,i,s,o)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){this.config=e.map(vp),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,i={}){const{relativeTo:r,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=i,c=r||this.routerState.root,u=l?this.currentUrlTree.fragment:s;let d=null;switch(a){case"merge":d=Object.assign(Object.assign({},this.currentUrlTree.queryParams),o);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}return null!==d&&(d=this.removeEmptyProps(d)),y2(c,this.currentUrlTree,e,d,null!=u?u:null)}navigateByUrl(e,i={skipLocationChange:!1}){const r=br(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,"imperative",null,i)}navigate(e,i={skipLocationChange:!1}){return function ZL(t){for(let n=0;n<t.length;n++){if(null==t[n])throw new A(4008,false)}}(e),this.navigateByUrl(this.createUrlTree(e,i),i)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){let i;try{i=this.urlSerializer.parse(e)}catch(r){i=this.malformedUriErrorHandler(r,this.urlSerializer,e)}return i}isActive(e,i){let r;if(r=!0===i?Object.assign({},KL):!1===i?Object.assign({},YL):i,br(e))return SD(this.currentUrlTree,e,r);const o=this.parseUrl(e);return SD(this.currentUrlTree,o,r)}removeEmptyProps(e){return Object.keys(e).reduce((i,r)=>{const o=e[r];return null!=o&&(i[r]=o),i},{})}processNavigations(){this.navigations.subscribe(e=>{var i;this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new Dr(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,null===(i=this.titleStrategy)||void 0===i||i.updateTitle(this.routerState.snapshot),e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,i,r,o,s){var a,l;if(this.disposed)return Promise.resolve(!1);let c,u,d;s?(c=s.resolve,u=s.reject,d=s.promise):d=new Promise((g,b)=>{c=g,u=b});const f=++this.navigationId;let h;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(r=this.location.getState()),h=r&&r.\u0275routerPageId?r.\u0275routerPageId:o.replaceUrl||o.skipLocationChange?null!==(a=this.browserPageId)&&void 0!==a?a:0:(null!==(l=this.browserPageId)&&void 0!==l?l:0)+1):h=0,this.setTransition({id:f,targetPageId:h,source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:o,resolve:c,reject:u,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),d.catch(g=>Promise.reject(g))}setBrowserUrl(e,i){const r=this.urlSerializer.serialize(e),o=Object.assign(Object.assign({},i.extras.state),this.generateNgRouterState(i.id,i.targetPageId));this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl?this.location.replaceState(r,"",o):this.location.go(r,"",o)}restoreHistory(e,i=!1){var r,o;if("computed"===this.canceledNavigationResolution){const s=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(r=this.currentNavigation)||void 0===r?void 0:r.finalUrl)||0===s?this.currentUrlTree===(null===(o=this.currentNavigation)||void 0===o?void 0:o.finalUrl)&&0===s&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(s)}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,i,r){const o=new Ac(e.id,this.serializeUrl(e.extractedUrl),i,r);this.triggerEvent(o),e.resolve(!1)}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}}return t.\u0275fac=function(e){Gd()},t.\u0275prov=x({token:t,factory:function(){return gw()},providedIn:"root"}),t})();function mw(t){return"imperative"!==t}let Uc=(()=>{class t{constructor(e,i,r){this.router=e,this.route=i,this.locationStrategy=r,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.commands=null,this.href=null,this.onChanges=new Ee,this.subscription=e.events.subscribe(o=>{o instanceof Dr&&this.updateTargetUrlAndHref()})}set preserveFragment(e){this._preserveFragment=_i(e)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(e){this._skipLocationChange=_i(e)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(e){this._replaceUrl=_i(e)}get replaceUrl(){return this._replaceUrl}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:null}ngOnChanges(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,i,r,o,s){return!!(0!==e||i||r||o||s||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!1)}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return t.\u0275fac=function(e){return new(e||t)(v(vt),v(wr),v(fr))},t.\u0275dir=R({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,i){1&e&&B("click",function(o){return i.onClick(o.button,o.ctrlKey,o.shiftKey,o.altKey,o.metaKey)}),2&e&&De("target",i.target)("href",i.href,Fe)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[yt]}),t})();class _w{}let eV=(()=>{class t{constructor(e,i,r,o,s){this.router=e,this.injector=r,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(_t(e=>e instanceof Dr),Gi(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){var r,o,s;const a=[];for(const l of i){l.providers&&!l._injector&&(l._injector=Rl(l.providers,e,`Route: ${l.path}`));const c=null!==(r=l._injector)&&void 0!==r?r:e,u=null!==(o=l._loadedInjector)&&void 0!==o?o:c;l.loadChildren&&!l._loadedRoutes&&void 0===l.canLoad||l.loadComponent&&!l._loadedComponent?a.push(this.preloadConfig(c,l)):(l.children||l._loadedRoutes)&&a.push(this.processRoutes(u,null!==(s=l.children)&&void 0!==s?s:l._loadedRoutes))}return rt(a).pipe(Fr())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let r;r=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(e,i):L(null);const o=r.pipe(Tt(s=>{var a;return null===s?L(void 0):(i._loadedRoutes=s.routes,i._loadedInjector=s.injector,this.processRoutes(null!==(a=s.injector)&&void 0!==a?a:e,s.routes))}));return i.loadComponent&&!i._loadedComponent?rt([o,this.loader.loadComponent(i)]).pipe(Fr()):o})}}return t.\u0275fac=function(e){return new(e||t)(O(vt),O(qf),O(ki),O(_w),O(Sp))},t.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Ep=new H("");let vw=(()=>{class t{constructor(e,i,r={}){this.router=e,this.viewportScroller=i,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof lp?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Dr&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof BD&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.router.triggerEvent(new BD(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){Gd()},t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})();function xo(t,n){return{\u0275kind:t,\u0275providers:n}}function Mp(t){return[{provide:Cp,multi:!0,useValue:t}]}function bw(){const t=Ze(bt);return n=>{var e,i;const r=t.get(Hs);if(n!==r.components[0])return;const o=t.get(vt),s=t.get(Dw);1===t.get(Np)&&o.initialNavigation(),null===(e=t.get(ww,null,U.Optional))||void 0===e||e.setUpPreloading(),null===(i=t.get(Ep,null,U.Optional))||void 0===i||i.init(),o.resetRootComponentType(r.componentTypes[0]),s.next(),s.complete()}}const Dw=new H("",{factory:()=>new Ee}),Np=new H("",{providedIn:"root",factory:()=>1});const ww=new H("");function rV(t){return xo(0,[{provide:ww,useExisting:eV},{provide:_w,useExisting:t}])}const Cw=new H("ROUTER_FORROOT_GUARD"),oV=[lh,{provide:ND,useClass:np},{provide:vt,useFactory:gw},sa,{provide:wr,useFactory:function yw(t){return t.routerState.root},deps:[vt]},Sp];function sV(){return new j0("Router",vt)}let aV=(()=>{class t{constructor(e){}static forRoot(e,i){return{ngModule:t,providers:[oV,[],Mp(e),{provide:Cw,useFactory:dV,deps:[[vt,new us,new ds]]},{provide:Hc,useValue:i||{}},null!=i&&i.useHash?{provide:fr,useClass:fR}:{provide:fr,useClass:d1},{provide:Ep,useFactory:()=>{const t=Ze(vt),n=Ze(SP),e=Ze(Hc);return e.scrollOffset&&n.setOffset(e.scrollOffset),new vw(t,n,e)}},null!=i&&i.preloadingStrategy?rV(i.preloadingStrategy).\u0275providers:[],{provide:j0,multi:!0,useFactory:sV},null!=i&&i.initialNavigation?fV(i):[],[{provide:Sw,useFactory:bw},{provide:R0,multi:!0,useExisting:Sw}]]}}static forChild(e){return{ngModule:t,providers:[Mp(e)]}}}return t.\u0275fac=function(e){return new(e||t)(O(Cw,8))},t.\u0275mod=me({type:t}),t.\u0275inj=fe({imports:[mp]}),t})();function dV(t){return"guarded"}function fV(t){return["disabled"===t.initialNavigation?xo(3,[{provide:Vs,multi:!0,useFactory:()=>{const n=Ze(vt);return()=>{n.setUpLocationChangeListener()}}},{provide:Np,useValue:2}]).\u0275providers:[],"enabledBlocking"===t.initialNavigation?xo(2,[{provide:Np,useValue:0},{provide:Vs,multi:!0,deps:[bt],useFactory:n=>{const e=n.get(uR,Promise.resolve());let i=!1;return()=>e.then(()=>new Promise(o=>{const s=n.get(vt),a=n.get(Dw);(function r(o){n.get(vt).events.pipe(_t(a=>a instanceof Dr||a instanceof Ac||a instanceof VD),j(a=>a instanceof Dr||a instanceof Ac&&(0===a.code||1===a.code)&&null),_t(a=>null!==a),Rt(1)).subscribe(()=>{o()})})(()=>{o(!0),i=!0}),s.afterPreactivation=()=>(o(!0),i||a.closed?L(void 0):a),s.initialNavigation()}))}}]).\u0275providers:[]]}const Sw=new H("");class Tw{}class Ew{}class Si{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?this.lazyInit="string"==typeof n?()=>{this.headers=new Map,n.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const r=e.slice(0,i),o=r.toLowerCase(),s=e.slice(i+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:()=>{this.headers=new Map,Object.keys(n).forEach(e=>{let i=n[e];const r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(r,i),this.maybeSetNormalizedName(e,r))})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof Si?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){const e=new Si;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Si?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){const e=n.name.toLowerCase();switch(n.op){case"a":case"s":let i=n.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(n.name,e);const r=("a"===n.op?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":const o=n.value;if(o){let s=this.headers.get(e);if(!s)return;s=s.filter(a=>-1===o.indexOf(a)),0===s.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}}class pV{encodeKey(n){return Mw(n)}encodeValue(n){return Mw(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const mV=/%(\d[a-f0-9])/gi,_V={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Mw(t){return encodeURIComponent(t).replace(mV,(n,e)=>{var i;return null!==(i=_V[e])&&void 0!==i?i:n})}function zc(t){return`${t}`}class zi{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new pV,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function gV(t,n){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[s,a]=-1==o?[n.decodeKey(r),""]:[n.decodeKey(r.slice(0,o)),n.decodeValue(r.slice(o+1))],l=e.get(s)||[];l.push(a),e.set(s,l)}),e}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{const i=n.fromObject[e],r=Array.isArray(i)?i.map(zc):[zc(i)];this.map.set(e,r)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){const e=[];return Object.keys(n).forEach(i=>{const r=n[i];Array.isArray(r)?r.forEach(o=>{e.push({param:i,value:o,op:"a"})}):e.push({param:i,value:r,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const e=this.encoder.encodeKey(n);return this.map.get(n).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const e=new zi({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const e=("a"===n.op?this.map.get(n.param):void 0)||[];e.push(zc(n.value)),this.map.set(n.param,e);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let i=this.map.get(n.param)||[];const r=i.indexOf(zc(n.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class vV{constructor(){this.map=new Map}set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function Nw(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function Iw(t){return"undefined"!=typeof Blob&&t instanceof Blob}function Ow(t){return"undefined"!=typeof FormData&&t instanceof FormData}class fa{constructor(n,e,i,r){let o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function yV(t){switch(t){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,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new Si),this.context||(this.context=new vV),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":a<e.length-1?"&":"")+s}}else this.params=new zi,this.urlWithParams=e}serializeBody(){return null===this.body?null:Nw(this.body)||Iw(this.body)||Ow(this.body)||function bV(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof zi?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||Ow(this.body)?null:Iw(this.body)?this.body.type||null:Nw(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof zi?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(n={}){var e;const i=n.method||this.method,r=n.url||this.url,o=n.responseType||this.responseType,s=void 0!==n.body?n.body:this.body,a=void 0!==n.withCredentials?n.withCredentials:this.withCredentials,l=void 0!==n.reportProgress?n.reportProgress:this.reportProgress;let c=n.headers||this.headers,u=n.params||this.params;const d=null!==(e=n.context)&&void 0!==e?e:this.context;return void 0!==n.setHeaders&&(c=Object.keys(n.setHeaders).reduce((f,h)=>f.set(h,n.setHeaders[h]),c)),n.setParams&&(u=Object.keys(n.setParams).reduce((f,h)=>f.set(h,n.setParams[h]),u)),new fa(i,r,s,{params:u,headers:c,context:d,reportProgress:l,responseType:o,withCredentials:a})}}var it=(()=>((it=it||{})[it.Sent=0]="Sent",it[it.UploadProgress=1]="UploadProgress",it[it.ResponseHeader=2]="ResponseHeader",it[it.DownloadProgress=3]="DownloadProgress",it[it.Response=4]="Response",it[it.User=5]="User",it))();class Ip{constructor(n,e=200,i="OK"){this.headers=n.headers||new Si,this.status=void 0!==n.status?n.status:e,this.statusText=n.statusText||i,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class Op extends Ip{constructor(n={}){super(n),this.type=it.ResponseHeader}clone(n={}){return new Op({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class qc extends Ip{constructor(n={}){super(n),this.type=it.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new qc({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class Ap extends Ip{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}function xp(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let Rp=(()=>{class t{constructor(e){this.handler=e}request(e,i,r={}){let o;if(e instanceof fa)o=e;else{let l,c;l=r.headers instanceof Si?r.headers:new Si(r.headers),r.params&&(c=r.params instanceof zi?r.params:new zi({fromObject:r.params})),o=new fa(e,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 s=L(o).pipe(Gi(l=>this.handler.handle(l)));if(e instanceof fa||"events"===r.observe)return s;const a=s.pipe(_t(l=>l instanceof qc));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(j(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(j(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(j(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(j(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new zi).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,xp(r,i))}post(e,i,r={}){return this.request("POST",e,xp(r,i))}put(e,i,r={}){return this.request("PUT",e,xp(r,i))}}return t.\u0275fac=function(e){return new(e||t)(O(Tw))},t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})();class Aw{constructor(n,e){this.next=n,this.interceptor=e}handle(n){return this.interceptor.intercept(n,this.next)}}const xw=new H("HTTP_INTERCEPTORS");let DV=(()=>{class t{intercept(e,i){return i.handle(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})();const wV=/^\)\]\}',?\n/;let Rw=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new Te(i=>{const r=this.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((h,g)=>r.setRequestHeader(h,g.join(","))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const h=e.detectContentTypeHeader();null!==h&&r.setRequestHeader("Content-Type",h)}if(e.responseType){const h=e.responseType.toLowerCase();r.responseType="json"!==h?h:"text"}const o=e.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const h=r.statusText||"OK",g=new Si(r.getAllResponseHeaders()),b=function CV(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(r)||e.url;return s=new Op({headers:g,status:r.status,statusText:h,url:b}),s},l=()=>{let{headers:h,status:g,statusText:b,url:w}=a(),S=null;204!==g&&(S=void 0===r.response?r.responseText:r.response),0===g&&(g=S?200:0);let M=g>=200&&g<300;if("json"===e.responseType&&"string"==typeof S){const C=S;S=S.replace(wV,"");try{S=""!==S?JSON.parse(S):null}catch(I){S=C,M&&(M=!1,S={error:I,text:S})}}M?(i.next(new qc({body:S,headers:h,status:g,statusText:b,url:w||void 0})),i.complete()):i.error(new Ap({error:S,headers:h,status:g,statusText:b,url:w||void 0}))},c=h=>{const{url:g}=a(),b=new Ap({error:h,status:r.status||0,statusText:r.statusText||"Unknown Error",url:g||void 0});i.error(b)};let u=!1;const d=h=>{u||(i.next(a()),u=!0);let g={type:it.DownloadProgress,loaded:h.loaded};h.lengthComputable&&(g.total=h.total),"text"===e.responseType&&!!r.responseText&&(g.partialText=r.responseText),i.next(g)},f=h=>{let g={type:it.UploadProgress,loaded:h.loaded};h.lengthComputable&&(g.total=h.total),i.next(g)};return r.addEventListener("load",l),r.addEventListener("error",c),r.addEventListener("timeout",c),r.addEventListener("abort",c),e.reportProgress&&(r.addEventListener("progress",d),null!==o&&r.upload&&r.upload.addEventListener("progress",f)),r.send(o),i.next({type:it.Sent}),()=>{r.removeEventListener("error",c),r.removeEventListener("abort",c),r.removeEventListener("load",l),r.removeEventListener("timeout",c),e.reportProgress&&(r.removeEventListener("progress",d),null!==o&&r.upload&&r.upload.removeEventListener("progress",f)),r.readyState!==r.DONE&&r.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(O(F1))},t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})();const Pp=new H("XSRF_COOKIE_NAME"),kp=new H("XSRF_HEADER_NAME");class Pw{}let SV=(()=>{class t{constructor(e,i,r){this.doc=e,this.platform=i,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=C1(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(O(Ye),O(Vl),O(Pp))},t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})(),Fp=(()=>{class t{constructor(e,i){this.tokenService=e,this.headerName=i}intercept(e,i){const r=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||r.startsWith("http://")||r.startsWith("https://"))return i.handle(e);const o=this.tokenService.getToken();return null!==o&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,o)})),i.handle(e)}}return t.\u0275fac=function(e){return new(e||t)(O(Pw),O(kp))},t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})(),TV=(()=>{class t{constructor(e,i){this.backend=e,this.injector=i,this.chain=null}handle(e){if(null===this.chain){const i=this.injector.get(xw,[]);this.chain=i.reduceRight((r,o)=>new Aw(r,o),this.backend)}return this.chain.handle(e)}}return t.\u0275fac=function(e){return new(e||t)(O(Ew),O(bt))},t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})(),EV=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:Fp,useClass:DV}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:Pp,useValue:e.cookieName}:[],e.headerName?{provide:kp,useValue:e.headerName}:[]]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=me({type:t}),t.\u0275inj=fe({providers:[Fp,{provide:xw,useExisting:Fp,multi:!0},{provide:Pw,useClass:SV},{provide:Pp,useValue:"XSRF-TOKEN"},{provide:kp,useValue:"X-XSRF-TOKEN"}]}),t})(),MV=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=me({type:t}),t.\u0275inj=fe({providers:[Rp,{provide:Tw,useClass:TV},Rw,{provide:Ew,useExisting:Rw}],imports:[EV.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),t})(),Lp=(()=>{class t{constructor(e){this._http=e,this.URLHist2010="assets/final-hist.json",this.URLRecent2012="assets/final-recent.json",this.URLMemos="assets/final-memos.json",this.URLDocTypes="assets/doctypes.json",this.docType=[]}getAllDocTypes(){return this._http.get(this.URLDocTypes)}getJoinedData(){return sc([this._http.get(this.URLRecent2012),this._http.get(this.URLHist2010),this._http.get(this.URLMemos)])}getFilterJoinedData(e,i,r){return sc("all"===r?[this._http.get(this.URLRecent2012).pipe(j(o=>o.mtgitems.filter(s=>e<=new Date(s.d)&&new Date(s.d)<=i))),this._http.get(this.URLHist2010).pipe(j(o=>o.mtgitems.filter(s=>e<=new Date(s.d)&&new Date(s.d)<=i))),this._http.get(this.URLMemos).pipe(j(o=>o.mtgitems.filter(s=>e<=new Date(s.d)&&new Date(s.d)<=i)))]:[this._http.get(this.URLRecent2012).pipe(j(o=>o.mtgitems.filter(s=>-1!==r.indexOf(s.type)&&e<=new Date(s.d)&&new Date(s.d)<=i))),this._http.get(this.URLHist2010).pipe(j(o=>o.mtgitems.filter(s=>-1!==r.indexOf(s.type)&&e<=new Date(s.d)&&new Date(s.d)<=i))),this._http.get(this.URLMemos).pipe(j(o=>o.mtgitems.filter(s=>-1!==r.indexOf(s.type)&&e<=new Date(s.d)&&new Date(s.d)<=i)))])}}return t.\u0275fac=function(e){return new(e||t)(O(Rp))},t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})();function Pt(t,n,e,i){return Ei(e)&&(i=e,e=void 0),i?Pt(t,n,e).pipe(j(r=>Ni(r)?i(...r):i(r))):new Te(r=>{kw(t,n,function o(s){r.next(arguments.length>1?Array.prototype.slice.call(arguments):s)},r,e)})}function kw(t,n,e,i,r){let o;if(function OV(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const s=t;t.addEventListener(n,e,r),o=()=>s.removeEventListener(n,e,r)}else if(function IV(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const s=t;t.on(n,e),o=()=>s.off(n,e)}else if(function NV(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const s=t;t.addListener(n,e),o=()=>s.removeListener(n,e)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let s=0,a=t.length;s<a;s++)kw(t[s],n,e,i,r)}i.add(o)}class AV extends Be{constructor(n,e){super()}schedule(n,e=0){return this}}let Fw=(()=>{class t{constructor(e,i=t.now){this.SchedulerAction=e,this.now=i}schedule(e,i=0,r){return new this.SchedulerAction(this,e).schedule(r,i)}}return t.now=()=>Date.now(),t})();class qi extends Fw{constructor(n,e=Fw.now){super(n,()=>qi.delegate&&qi.delegate!==this?qi.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(n,e=0,i){return qi.delegate&&qi.delegate!==this?qi.delegate.schedule(n,e,i):super.schedule(n,e,i)}flush(n){const{actions:e}=this;if(this.active)return void e.push(n);let i;this.active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=e.shift());if(this.active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}}const Lw=new qi(class xV extends AV{constructor(n,e){super(n,e),this.scheduler=n,this.work=e,this.pending=!1}schedule(n,e=0){if(this.closed)return this;this.state=n;const i=this.id,r=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(r,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this}requestAsyncId(n,e,i=0){return setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,e){let r,i=!1;try{this.work(n)}catch(o){i=!0,r=!!o&&o||new Error(o)}if(i)return this.unsubscribe(),r}_unsubscribe(){const n=this.id,e=this.scheduler,i=e.actions,r=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&i.splice(r,1),null!=n&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null}});function Vw(t){return!Ni(t)&&t-parseFloat(t)+1>=0}function RV(t){const{index:n,period:e,subscriber:i}=t;if(i.next(n),!i.closed){if(-1===e)return i.complete();t.index=n+1,this.schedule(t,e)}}function jw(...t){if(1===t.length){if(!Ni(t[0]))return t[0];t=t[0]}return qo(t,void 0).lift(new PV)}class PV{call(n,e){return e.subscribe(new kV(n))}}class kV extends Zh{constructor(n){super(n),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(n){this.observables.push(n)}_complete(){const n=this.observables,e=n.length;if(0===e)this.destination.complete();else{for(let i=0;i<e&&!this.hasFirst;i++){const o=Qh(this,n[i],void 0,i);this.subscriptions&&this.subscriptions.push(o),this.add(o)}this.observables=null}}notifyNext(n,e,i){if(!this.hasFirst){this.hasFirst=!0;for(let r=0;r<this.subscriptions.length;r++)if(r!==i){let o=this.subscriptions[r];o.unsubscribe(),this.remove(o)}this.subscriptions=null}this.destination.next(e)}}function Kc(...t){const n=t[t.length-1];return"function"==typeof n&&t.pop(),qo(t,void 0).lift(new FV(n))}new Te(Di);class FV{constructor(n){this.resultSelector=n}call(n,e){return e.subscribe(new LV(n,this.resultSelector))}}class LV extends ge{constructor(n,e,i=Object.create(null)){super(n),this.resultSelector=e,this.iterators=[],this.active=0,this.resultSelector="function"==typeof e?e:void 0}_next(n){const e=this.iterators;Ni(n)?e.push(new BV(n)):e.push("function"==typeof n[Ii]?new VV(n[Ii]()):new jV(this.destination,this,n))}_complete(){const n=this.iterators,e=n.length;if(this.unsubscribe(),0!==e){this.active=e;for(let i=0;i<e;i++){let r=n[i];r.stillUnsubscribed?this.destination.add(r.subscribe()):this.active--}}else this.destination.complete()}notifyInactive(){this.active--,0===this.active&&this.destination.complete()}checkIterators(){const n=this.iterators,e=n.length,i=this.destination;for(let s=0;s<e;s++){let a=n[s];if("function"==typeof a.hasValue&&!a.hasValue())return}let r=!1;const o=[];for(let s=0;s<e;s++){let a=n[s],l=a.next();if(a.hasCompleted()&&(r=!0),l.done)return void i.complete();o.push(l.value)}this.resultSelector?this._tryresultSelector(o):i.next(o),r&&i.complete()}_tryresultSelector(n){let e;try{e=this.resultSelector.apply(this,n)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}class VV{constructor(n){this.iterator=n,this.nextResult=n.next()}hasValue(){return!0}next(){const n=this.nextResult;return this.nextResult=this.iterator.next(),n}hasCompleted(){const n=this.nextResult;return Boolean(n&&n.done)}}class BV{constructor(n){this.array=n,this.index=0,this.length=0,this.length=n.length}[Ii](){return this}next(n){const e=this.index++;return e<this.length?{value:this.array[e],done:!1}:{value:null,done:!0}}hasValue(){return this.array.length>this.index}hasCompleted(){return this.array.length===this.index}}class jV extends Wo{constructor(n,e,i){super(n),this.parent=e,this.observable=i,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[Ii](){return this}next(){const n=this.buffer;return 0===n.length&&this.isComplete?{value:null,done:!0}:{value:n.shift(),done:!1}}hasValue(){return this.buffer.length>0}hasCompleted(){return 0===this.buffer.length&&this.isComplete}notifyComplete(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}notifyNext(n){this.buffer.push(n),this.parent.checkIterators()}subscribe(){return zo(this.observable,new Go(this))}}function Je(t){return n=>n.lift(new $V(t))}class $V{constructor(n){this.notifier=n}call(n,e){const i=new UV(n),r=zo(this.notifier,new Go(i));return r&&!i.seenValue?(i.add(r),e.subscribe(i)):i}}class UV extends Wo{constructor(n){super(n),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function Bp(...t){return n=>{let e;return"function"==typeof t[t.length-1]&&(e=t.pop()),n.lift(new zV(t,e))}}class zV{constructor(n,e){this.observables=n,this.project=e}call(n,e){return e.subscribe(new qV(n,this.observables,this.project))}}class qV extends Zh{constructor(n,e,i){super(n),this.observables=e,this.project=i,this.toRespond=[];const r=e.length;this.values=new Array(r);for(let o=0;o<r;o++)this.toRespond.push(o);for(let o=0;o<r;o++)this.add(Qh(this,e[o],void 0,o))}notifyNext(n,e,i){this.values[i]=e;const r=this.toRespond;if(r.length>0){const o=r.indexOf(i);-1!==o&&r.splice(o,1)}}notifyComplete(){}_next(n){if(0===this.toRespond.length){const e=[n,...this.values];this.project?this._tryProject(e):this.destination.next(e)}}_tryProject(n){let e;try{e=this.project.apply(this,n)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}class jn{constructor(n,e,i){this.kind=n,this.value=e,this.error=i,this.hasValue="N"===n}observe(n){switch(this.kind){case"N":return n.next&&n.next(this.value);case"E":return n.error&&n.error(this.error);case"C":return n.complete&&n.complete()}}do(n,e,i){switch(this.kind){case"N":return n&&n(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(n,e,i){return n&&"function"==typeof n.next?this.observe(n):this.do(n,e,i)}toObservable(){switch(this.kind){case"N":return L(this.value);case"E":return To(this.error);case"C":return wc()}throw new Error("unexpected notification kind value")}static createNext(n){return void 0!==n?new jn("N",n):jn.undefinedValueNotification}static createError(n){return new jn("E",void 0,n)}static createComplete(){return jn.completeNotification}}jn.completeNotification=new jn("C"),jn.undefinedValueNotification=new jn("N",void 0);class JV{constructor(n,e){this.delay=n,this.scheduler=e}call(n,e){return e.subscribe(new jp(n,this.delay,this.scheduler))}}class jp extends ge{constructor(n,e,i){super(n),this.delay=e,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}static dispatch(n){const e=n.source,i=e.queue,r=n.scheduler,o=n.destination;for(;i.length>0&&i[0].time-r.now()<=0;)i.shift().notification.observe(o);if(i.length>0){const s=Math.max(0,i[0].time-r.now());this.schedule(n,s)}else this.unsubscribe(),e.active=!1}_schedule(n){this.active=!0,this.destination.add(n.schedule(jp.dispatch,this.delay,{source:this,destination:this.destination,scheduler:n}))}scheduleNotification(n){if(!0===this.errored)return;const e=this.scheduler,i=new ZV(e.now()+this.delay,n);this.queue.push(i),!1===this.active&&this._schedule(e)}_next(n){this.scheduleNotification(jn.createNext(n))}_error(n){this.errored=!0,this.queue=[],this.destination.error(n),this.unsubscribe()}_complete(){this.scheduleNotification(jn.createComplete()),this.unsubscribe()}}class ZV{constructor(n,e){this.time=n,this.notification=e}}var tB={left:"right",right:"left",bottom:"top",top:"bottom"};function Yc(t){return t.replace(/left|right|bottom|top/g,function(n){return tB[n]})}function ii(t){return t.split("-")[0]}var nB={start:"end",end:"start"};function $w(t){return t.replace(/start|end/g,function(n){return nB[n]})}var dn="top",Hn="bottom",$n="right",fn="left",Hp="auto",ha=[dn,Hn,$n,fn],Ro="start",pa="end",Uw="viewport",ga="popper",Gw=ha.reduce(function(t,n){return t.concat([n+"-"+Ro,n+"-"+pa])},[]),Ww=[].concat(ha,[Hp]).reduce(function(t,n){return t.concat([n,n+"-"+Ro,n+"-"+pa])},[]),pB=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Sn(t){if(null==t)return window;if("[object Window]"!==t.toString()){var n=t.ownerDocument;return n&&n.defaultView||window}return t}function Cr(t){return t instanceof Sn(t).Element||t instanceof Element}function Tn(t){return t instanceof Sn(t).HTMLElement||t instanceof HTMLElement}function $p(t){return"undefined"!=typeof ShadowRoot&&(t instanceof Sn(t).ShadowRoot||t instanceof ShadowRoot)}function Ki(t){return((Cr(t)?t.ownerDocument:t.document)||window.document).documentElement}var Sr=Math.max,Jc=Math.min,Po=Math.round;function Up(){var t=navigator.userAgentData;return null!=t&&t.brands?t.brands.map(function(n){return n.brand+"/"+n.version}).join(" "):navigator.userAgent}function zw(){return!/^((?!chrome|android).)*safari/i.test(Up())}function ko(t,n,e){void 0===n&&(n=!1),void 0===e&&(e=!1);var i=t.getBoundingClientRect(),r=1,o=1;n&&Tn(t)&&(r=t.offsetWidth>0&&Po(i.width)/t.offsetWidth||1,o=t.offsetHeight>0&&Po(i.height)/t.offsetHeight||1);var a=(Cr(t)?Sn(t):window).visualViewport,l=!zw()&&e,c=(i.left+(l&&a?a.offsetLeft:0))/r,u=(i.top+(l&&a?a.offsetTop:0))/o,d=i.width/r,f=i.height/o;return{width:d,height:f,top:u,right:c+d,bottom:u+f,left:c,x:c,y:u}}function Gp(t){var n=Sn(t);return{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function Wp(t){return ko(Ki(t)).left+Gp(t).scrollLeft}function Ti(t){return Sn(t).getComputedStyle(t)}function ri(t){return t?(t.nodeName||"").toLowerCase():null}function Zc(t){return"html"===ri(t)?t:t.assignedSlot||t.parentNode||($p(t)?t.host:null)||Ki(t)}function zp(t){var n=Ti(t);return/auto|scroll|overlay|hidden/.test(n.overflow+n.overflowY+n.overflowX)}function qw(t){return["html","body","#document"].indexOf(ri(t))>=0?t.ownerDocument.body:Tn(t)&&zp(t)?t:qw(Zc(t))}function ma(t,n){var e;void 0===n&&(n=[]);var i=qw(t),r=i===(null==(e=t.ownerDocument)?void 0:e.body),o=Sn(i),s=r?[o].concat(o.visualViewport||[],zp(i)?i:[]):i,a=n.concat(s);return r?a:a.concat(ma(Zc(s)))}function _B(t){return["table","td","th"].indexOf(ri(t))>=0}function Kw(t){return Tn(t)&&"fixed"!==Ti(t).position?t.offsetParent:null}function _a(t){for(var n=Sn(t),e=Kw(t);e&&_B(e)&&"static"===Ti(e).position;)e=Kw(e);return e&&("html"===ri(e)||"body"===ri(e)&&"static"===Ti(e).position)?n:e||function vB(t){var n=/firefox/i.test(Up());if(/Trident/i.test(Up())&&Tn(t)&&"fixed"===Ti(t).position)return null;var r=Zc(t);for($p(r)&&(r=r.host);Tn(r)&&["html","body"].indexOf(ri(r))<0;){var o=Ti(r);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||n&&"filter"===o.willChange||n&&o.filter&&"none"!==o.filter)return r;r=r.parentNode}return null}(t)||n}function Yw(t,n){var e=n.getRootNode&&n.getRootNode();if(t.contains(n))return!0;if(e&&$p(e)){var i=n;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function qp(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Jw(t,n,e){return n===Uw?qp(function gB(t,n){var e=Sn(t),i=Ki(t),r=e.visualViewport,o=i.clientWidth,s=i.clientHeight,a=0,l=0;if(r){o=r.width,s=r.height;var c=zw();(c||!c&&"fixed"===n)&&(a=r.offsetLeft,l=r.offsetTop)}return{width:o,height:s,x:a+Wp(t),y:l}}(t,e)):Cr(n)?function yB(t,n){var e=ko(t,!1,"fixed"===n);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}(n,e):qp(function mB(t){var n,e=Ki(t),i=Gp(t),r=null==(n=t.ownerDocument)?void 0:n.body,o=Sr(e.scrollWidth,e.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=Sr(e.scrollHeight,e.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-i.scrollLeft+Wp(t),l=-i.scrollTop;return"rtl"===Ti(r||e).direction&&(a+=Sr(e.clientWidth,r?r.clientWidth:0)-o),{width:o,height:s,x:a,y:l}}(Ki(t)))}function Fo(t){return t.split("-")[1]}function Kp(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Zw(t){var l,n=t.reference,e=t.element,i=t.placement,r=i?ii(i):null,o=i?Fo(i):null,s=n.x+n.width/2-e.width/2,a=n.y+n.height/2-e.height/2;switch(r){case dn:l={x:s,y:n.y-e.height};break;case Hn:l={x:s,y:n.y+n.height};break;case $n:l={x:n.x+n.width,y:a};break;case fn:l={x:n.x-e.width,y:a};break;default:l={x:n.x,y:n.y}}var c=r?Kp(r):null;if(null!=c){var u="y"===c?"height":"width";switch(o){case Ro:l[c]=l[c]-(n[u]/2-e[u]/2);break;case pa:l[c]=l[c]+(n[u]/2-e[u]/2)}}return l}function Xw(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function eC(t,n){return n.reduce(function(e,i){return e[i]=t,e},{})}function Yp(t,n){void 0===n&&(n={});var i=n.placement,r=void 0===i?t.placement:i,o=n.strategy,s=void 0===o?t.strategy:o,a=n.boundary,l=void 0===a?"clippingParents":a,c=n.rootBoundary,u=void 0===c?Uw:c,d=n.elementContext,f=void 0===d?ga:d,h=n.altBoundary,g=void 0!==h&&h,b=n.padding,w=void 0===b?0:b,S=Xw("number"!=typeof w?w:eC(w,ha)),C=t.rects.popper,I=t.elements[g?f===ga?"reference":ga:f],P=function DB(t,n,e,i){var r="clippingParents"===n?function bB(t){var n=ma(Zc(t)),i=["absolute","fixed"].indexOf(Ti(t).position)>=0&&Tn(t)?_a(t):t;return Cr(i)?n.filter(function(r){return Cr(r)&&Yw(r,i)&&"body"!==ri(r)}):[]}(t):[].concat(n),o=[].concat(r,[e]),a=o.reduce(function(l,c){var u=Jw(t,c,i);return l.top=Sr(u.top,l.top),l.right=Jc(u.right,l.right),l.bottom=Jc(u.bottom,l.bottom),l.left=Sr(u.left,l.left),l},Jw(t,o[0],i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(Cr(I)?I:I.contextElement||Ki(t.elements.popper),l,u,s),V=ko(t.elements.reference),ae=Zw({reference:V,element:C,strategy:"absolute",placement:r}),le=qp(Object.assign({},C,ae)),$e=f===ga?le:V,Ue={top:P.top-$e.top+S.top,bottom:$e.bottom-P.bottom+S.bottom,left:P.left-$e.left+S.left,right:$e.right-P.right+S.right},Pe=t.modifiersData.offset;if(f===ga&&Pe){var Gt=Pe[r];Object.keys(Ue).forEach(function(ht){var Gn=[$n,Hn].indexOf(ht)>=0?1:-1,Wn=[dn,Hn].indexOf(ht)>=0?"y":"x";Ue[ht]+=Gt[Wn]*Gn})}return Ue}const TB={name:"flip",enabled:!0,phase:"main",fn:function SB(t){var n=t.state,e=t.options,i=t.name;if(!n.modifiersData[i]._skip){for(var r=e.mainAxis,o=void 0===r||r,s=e.altAxis,a=void 0===s||s,l=e.fallbackPlacements,c=e.padding,u=e.boundary,d=e.rootBoundary,f=e.altBoundary,h=e.flipVariations,g=void 0===h||h,b=e.allowedAutoPlacements,w=n.options.placement,S=ii(w),C=l||(S!==w&&g?function CB(t){if(ii(t)===Hp)return[];var n=Yc(t);return[$w(t),n,$w(n)]}(w):[Yc(w)]),I=[w].concat(C).reduce(function(Ho,Ji){return Ho.concat(ii(Ji)===Hp?function wB(t,n){void 0===n&&(n={});var r=n.boundary,o=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?Ww:l,u=Fo(n.placement),d=u?a?Gw:Gw.filter(function(g){return Fo(g)===u}):ha,f=d.filter(function(g){return c.indexOf(g)>=0});0===f.length&&(f=d);var h=f.reduce(function(g,b){return g[b]=Yp(t,{placement:b,boundary:r,rootBoundary:o,padding:s})[ii(b)],g},{});return Object.keys(h).sort(function(g,b){return h[g]-h[b]})}(n,{placement:Ji,boundary:u,rootBoundary:d,padding:c,flipVariations:g,allowedAutoPlacements:b}):Ji)},[]),P=n.rects.reference,V=n.rects.popper,ae=new Map,le=!0,$e=I[0],Ue=0;Ue<I.length;Ue++){var Pe=I[Ue],Gt=ii(Pe),ht=Fo(Pe)===Ro,Gn=[dn,Hn].indexOf(Gt)>=0,Wn=Gn?"width":"height",St=Yp(n,{placement:Pe,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),zn=Gn?ht?$n:fn:ht?Hn:dn;P[Wn]>V[Wn]&&(zn=Yc(zn));var hu=Yc(zn),Ar=[];if(o&&Ar.push(St[Gt]<=0),a&&Ar.push(St[zn]<=0,St[hu]<=0),Ar.every(function(Ho){return Ho})){$e=Pe,le=!1;break}ae.set(Pe,Ar)}if(le)for(var cg=function(Ji){var Ia=I.find(function(mu){var xr=ae.get(mu);if(xr)return xr.slice(0,Ji).every(function(ug){return ug})});if(Ia)return $e=Ia,"break"},Na=g?3:1;Na>0&&"break"!==cg(Na);Na--);n.placement!==$e&&(n.modifiersData[i]._skip=!0,n.placement=$e,n.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function va(t,n,e){return Sr(t,Jc(n,e))}function Jp(t){var n=ko(t),e=t.offsetWidth,i=t.offsetHeight;return Math.abs(n.width-e)<=1&&(e=n.width),Math.abs(n.height-i)<=1&&(i=n.height),{x:t.offsetLeft,y:t.offsetTop,width:e,height:i}}const IB={name:"preventOverflow",enabled:!0,phase:"main",fn:function NB(t){var n=t.state,e=t.options,i=t.name,r=e.mainAxis,o=void 0===r||r,s=e.altAxis,a=void 0!==s&&s,f=e.tether,h=void 0===f||f,g=e.tetherOffset,b=void 0===g?0:g,w=Yp(n,{boundary:e.boundary,rootBoundary:e.rootBoundary,padding:e.padding,altBoundary:e.altBoundary}),S=ii(n.placement),M=Fo(n.placement),C=!M,I=Kp(S),P=function EB(t){return"x"===t?"y":"x"}(I),V=n.modifiersData.popperOffsets,ae=n.rects.reference,le=n.rects.popper,$e="function"==typeof b?b(Object.assign({},n.rects,{placement:n.placement})):b,Ue="number"==typeof $e?{mainAxis:$e,altAxis:$e}:Object.assign({mainAxis:0,altAxis:0},$e),Pe=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,Gt={x:0,y:0};if(V){if(o){var ht,Gn="y"===I?dn:fn,Wn="y"===I?Hn:$n,St="y"===I?"height":"width",zn=V[I],hu=zn+w[Gn],Ar=zn-w[Wn],pu=h?-le[St]/2:0,cg=M===Ro?ae[St]:le[St],Na=M===Ro?-le[St]:-ae[St],gu=n.elements.arrow,Ho=h&&gu?Jp(gu):{width:0,height:0},Ji=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Ia=Ji[Gn],mu=Ji[Wn],xr=va(0,ae[St],Ho[St]),ug=C?ae[St]/2-pu-xr-Ia-Ue.mainAxis:cg-xr-Ia-Ue.mainAxis,IU=C?-ae[St]/2+pu+xr+mu+Ue.mainAxis:Na+xr+mu+Ue.mainAxis,dg=n.elements.arrow&&_a(n.elements.arrow),gS=null!=(ht=null==Pe?void 0:Pe[I])?ht:0,xU=zn+IU-gS,mS=va(h?Jc(hu,zn+ug-gS-(dg?"y"===I?dg.clientTop||0:dg.clientLeft||0:0)):hu,zn,h?Sr(Ar,xU):Ar);V[I]=mS,Gt[I]=mS-zn}if(a){var _S,Rr=V[P],_u="y"===P?"height":"width",vS=Rr+w["x"===I?dn:fn],yS=Rr-w["x"===I?Hn:$n],fg=-1!==[dn,fn].indexOf(S),bS=null!=(_S=null==Pe?void 0:Pe[P])?_S:0,DS=fg?vS:Rr-ae[_u]-le[_u]-bS+Ue.altAxis,wS=fg?Rr+ae[_u]+le[_u]-bS-Ue.altAxis:yS,CS=h&&fg?function MB(t,n,e){var i=va(t,n,e);return i>e?e:i}(DS,Rr,wS):va(h?DS:vS,Rr,h?wS:yS);V[P]=CS,Gt[P]=CS-Rr}n.modifiersData[i]=Gt}},requiresIfExists:["offset"]},RB={name:"arrow",enabled:!0,phase:"main",fn:function AB(t){var n,e=t.state,i=t.name,r=t.options,o=e.elements.arrow,s=e.modifiersData.popperOffsets,a=ii(e.placement),l=Kp(a),u=[fn,$n].indexOf(a)>=0?"height":"width";if(o&&s){var d=function(n,e){return Xw("number"!=typeof(n="function"==typeof n?n(Object.assign({},e.rects,{placement:e.placement})):n)?n:eC(n,ha))}(r.padding,e),f=Jp(o),h="y"===l?dn:fn,g="y"===l?Hn:$n,b=e.rects.reference[u]+e.rects.reference[l]-s[l]-e.rects.popper[u],w=s[l]-e.rects.reference[l],S=_a(o),M=S?"y"===l?S.clientHeight||0:S.clientWidth||0:0,V=M/2-f[u]/2+(b/2-w/2),ae=va(d[h],V,M-f[u]-d[g]);e.modifiersData[i]=((n={})[l]=ae,n.centerOffset=ae-V,n)}},effect:function xB(t){var n=t.state,i=t.options.element,r=void 0===i?"[data-popper-arrow]":i;null!=r&&("string"==typeof r&&!(r=n.elements.popper.querySelector(r))||!Yw(n.elements.popper,r)||(n.elements.arrow=r))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function LB(t,n,e){void 0===e&&(e=!1);var i=Tn(n),r=Tn(n)&&function FB(t){var n=t.getBoundingClientRect(),e=Po(n.width)/t.offsetWidth||1,i=Po(n.height)/t.offsetHeight||1;return 1!==e||1!==i}(n),o=Ki(n),s=ko(t,r,e),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!e)&&(("body"!==ri(n)||zp(o))&&(a=function kB(t){return t!==Sn(t)&&Tn(t)?function PB(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}(t):Gp(t)}(n)),Tn(n)?((l=ko(n,!0)).x+=n.clientLeft,l.y+=n.clientTop):o&&(l.x=Wp(o))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function VB(t){var n=new Map,e=new Set,i=[];function r(o){e.add(o.name),[].concat(o.requires||[],o.requiresIfExists||[]).forEach(function(a){if(!e.has(a)){var l=n.get(a);l&&r(l)}}),i.push(o)}return t.forEach(function(o){n.set(o.name,o)}),t.forEach(function(o){e.has(o.name)||r(o)}),i}function jB(t){var n;return function(){return n||(n=new Promise(function(e){Promise.resolve().then(function(){n=void 0,e(t())})})),n}}var tC={placement:"bottom",modifiers:[],strategy:"absolute"};function nC(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];return!n.some(function(i){return!(i&&"function"==typeof i.getBoundingClientRect)})}function $B(t){void 0===t&&(t={});var e=t.defaultModifiers,i=void 0===e?[]:e,r=t.defaultOptions,o=void 0===r?tC:r;return function(a,l,c){void 0===c&&(c=o);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},tC,o),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},d=[],f=!1,h={state:u,setOptions:function(S){var M="function"==typeof S?S(u.options):S;b(),u.options=Object.assign({},o,u.options,M),u.scrollParents={reference:Cr(a)?ma(a):a.contextElement?ma(a.contextElement):[],popper:ma(l)};var C=function BB(t){var n=VB(t);return pB.reduce(function(e,i){return e.concat(n.filter(function(r){return r.phase===i}))},[])}(function HB(t){var n=t.reduce(function(e,i){var r=e[i.name];return e[i.name]=r?Object.assign({},r,i,{options:Object.assign({},r.options,i.options),data:Object.assign({},r.data,i.data)}):i,e},{});return Object.keys(n).map(function(e){return n[e]})}([].concat(i,u.options.modifiers)));return u.orderedModifiers=C.filter(function(Pe){return Pe.enabled}),function g(){u.orderedModifiers.forEach(function(w){var M=w.options,I=w.effect;if("function"==typeof I){var P=I({state:u,name:w.name,instance:h,options:void 0===M?{}:M});d.push(P||function(){})}})}(),h.update()},forceUpdate:function(){if(!f){var S=u.elements,M=S.reference,C=S.popper;if(nC(M,C)){u.rects={reference:LB(M,_a(C),"fixed"===u.options.strategy),popper:Jp(C)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(Pe){return u.modifiersData[Pe.name]=Object.assign({},Pe.data)});for(var P=0;P<u.orderedModifiers.length;P++)if(!0!==u.reset){var V=u.orderedModifiers[P],ae=V.fn,le=V.options;"function"==typeof ae&&(u=ae({state:u,options:void 0===le?{}:le,name:V.name,instance:h})||u)}else u.reset=!1,P=-1}}},update:jB(function(){return new Promise(function(w){h.forceUpdate(),w(u)})}),destroy:function(){b(),f=!0}};if(!nC(a,l))return h;function b(){d.forEach(function(w){return w()}),d=[]}return h.setOptions(c).then(function(w){!f&&c.onFirstUpdate&&c.onFirstUpdate(w)}),h}}var Qc={passive:!0};const GB={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function UB(t){var n=t.state,e=t.instance,i=t.options,r=i.scroll,o=void 0===r||r,s=i.resize,a=void 0===s||s,l=Sn(n.elements.popper),c=[].concat(n.scrollParents.reference,n.scrollParents.popper);return o&&c.forEach(function(u){u.addEventListener("scroll",e.update,Qc)}),a&&l.addEventListener("resize",e.update,Qc),function(){o&&c.forEach(function(u){u.removeEventListener("scroll",e.update,Qc)}),a&&l.removeEventListener("resize",e.update,Qc)}},data:{}},zB={name:"popperOffsets",enabled:!0,phase:"read",fn:function WB(t){var n=t.state;n.modifiersData[t.name]=Zw({reference:n.rects.reference,element:n.rects.popper,strategy:"absolute",placement:n.placement})},data:{}};var qB={top:"auto",right:"auto",bottom:"auto",left:"auto"};function iC(t){var n,e=t.popper,i=t.popperRect,r=t.placement,o=t.variation,s=t.offsets,a=t.position,l=t.gpuAcceleration,c=t.adaptive,u=t.roundOffsets,d=t.isFixed,f=s.x,h=void 0===f?0:f,g=s.y,b=void 0===g?0:g,w="function"==typeof u?u({x:h,y:b}):{x:h,y:b};h=w.x,b=w.y;var S=s.hasOwnProperty("x"),M=s.hasOwnProperty("y"),C=fn,I=dn,P=window;if(c){var V=_a(e),ae="clientHeight",le="clientWidth";V===Sn(e)&&"static"!==Ti(V=Ki(e)).position&&"absolute"===a&&(ae="scrollHeight",le="scrollWidth"),(r===dn||(r===fn||r===$n)&&o===pa)&&(I=Hn,b-=(d&&V===P&&P.visualViewport?P.visualViewport.height:V[ae])-i.height,b*=l?1:-1),r!==fn&&(r!==dn&&r!==Hn||o!==pa)||(C=$n,h-=(d&&V===P&&P.visualViewport?P.visualViewport.width:V[le])-i.width,h*=l?1:-1)}var ht,Pe=Object.assign({position:a},c&&qB),Gt=!0===u?function KB(t){var e=t.y,r=window.devicePixelRatio||1;return{x:Po(t.x*r)/r||0,y:Po(e*r)/r||0}}({x:h,y:b}):{x:h,y:b};return h=Gt.x,b=Gt.y,Object.assign({},Pe,l?((ht={})[I]=M?"0":"",ht[C]=S?"0":"",ht.transform=(P.devicePixelRatio||1)<=1?"translate("+h+"px, "+b+"px)":"translate3d("+h+"px, "+b+"px, 0)",ht):((n={})[I]=M?b+"px":"",n[C]=S?h+"px":"",n.transform="",n))}const JB={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function YB(t){var n=t.state,e=t.options,i=e.gpuAcceleration,r=void 0===i||i,o=e.adaptive,s=void 0===o||o,a=e.roundOffsets,l=void 0===a||a,u={placement:ii(n.placement),variation:Fo(n.placement),popper:n.elements.popper,popperRect:n.rects.popper,gpuAcceleration:r,isFixed:"fixed"===n.options.strategy};null!=n.modifiersData.popperOffsets&&(n.styles.popper=Object.assign({},n.styles.popper,iC(Object.assign({},u,{offsets:n.modifiersData.popperOffsets,position:n.options.strategy,adaptive:s,roundOffsets:l})))),null!=n.modifiersData.arrow&&(n.styles.arrow=Object.assign({},n.styles.arrow,iC(Object.assign({},u,{offsets:n.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-placement":n.placement})},data:{}};var XB=[GB,zB,JB,{name:"applyStyles",enabled:!0,phase:"write",fn:function ZB(t){var n=t.state;Object.keys(n.elements).forEach(function(e){var i=n.styles[e]||{},r=n.attributes[e]||{},o=n.elements[e];!Tn(o)||!ri(o)||(Object.assign(o.style,i),Object.keys(r).forEach(function(s){var a=r[s];!1===a?o.removeAttribute(s):o.setAttribute(s,!0===a?"":a)}))})},effect:function QB(t){var n=t.state,e={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(n.elements.popper.style,e.popper),n.styles=e,n.elements.arrow&&Object.assign(n.elements.arrow.style,e.arrow),function(){Object.keys(n.elements).forEach(function(i){var r=n.elements[i],o=n.attributes[i]||{},a=Object.keys(n.styles.hasOwnProperty(i)?n.styles[i]:e[i]).reduce(function(l,c){return l[c]="",l},{});!Tn(r)||!ri(r)||(Object.assign(r.style,a),Object.keys(o).forEach(function(l){r.removeAttribute(l)}))})}},requires:["computeStyles"]}],ej=$B({defaultModifiers:XB});const ij={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function nj(t){var n=t.state,i=t.name,r=t.options.offset,o=void 0===r?[0,0]:r,s=Ww.reduce(function(u,d){return u[d]=function tj(t,n,e){var i=ii(t),r=[fn,dn].indexOf(i)>=0?-1:1,o="function"==typeof e?e(Object.assign({},n,{placement:t})):e,s=o[0],a=o[1];return s=s||0,a=(a||0)*r,[fn,$n].indexOf(i)>=0?{x:a,y:s}:{x:s,y:a}}(d,n.rects,o),u},{}),a=s[n.placement],c=a.y;null!=n.modifiersData.popperOffsets&&(n.modifiersData.popperOffsets.x+=a.x,n.modifiersData.popperOffsets.y+=c),n.modifiersData[i]=s}},dj=["*"],_j=["month"],vj=["year"];function yj(t,n){if(1&t&&(m(0,"option",5),T(1),_()),2&t){const e=n.$implicit,i=E();y("value",e),De("aria-label",i.i18n.getMonthFullName(e,i.date.year)),p(1),jt(i.i18n.getMonthShortName(e,i.date.year))}}function bj(t,n){if(1&t&&(m(0,"option",5),T(1),_()),2&t){const e=n.$implicit,i=E();y("value",e),p(1),jt(i.i18n.getYearNumerals(e))}}function Dj(t,n){if(1&t){const e=lt();m(0,"ngb-datepicker-navigation-select",7),B("select",function(r){return ve(e),ye(E().select.emit(r))}),_()}if(2&t){const e=E();y("date",e.date)("disabled",e.disabled)("months",e.selectBoxes.months)("years",e.selectBoxes.years)}}function wj(t,n){1&t&&pe(0,"div",0)}function Cj(t,n){1&t&&pe(0,"div",0)}function Sj(t,n){if(1&t&&(D(0,wj,1,0,"div",9),m(1,"div",10),T(2),_(),D(3,Cj,1,0,"div",9)),2&t){const e=n.$implicit,i=n.index,r=E(2);y("ngIf",i>0),p(2),ne(" ",r.i18n.getMonthLabel(e.firstDate)," "),p(1),y("ngIf",i!==r.months.length-1)}}function Tj(t,n){1&t&&D(0,Sj,4,3,"ng-template",8),2&t&&y("ngForOf",E().months)}const Ej=["ngbDatepickerDayView",""],Mj=["defaultDayTemplate"],Nj=["content"];function Ij(t,n){if(1&t&&pe(0,"div",7),2&t){const i=n.currentMonth,r=n.selected,o=n.disabled,s=n.focused;y("date",n.date)("currentMonth",i)("selected",r)("disabled",o)("focused",s)}}function Oj(t,n){if(1&t&&(m(0,"div",12),T(1),_()),2&t){const e=E().$implicit,i=E(2);p(1),ne(" ",i.i18n.getMonthLabel(e.firstDate)," ")}}function Aj(t,n){if(1&t&&(m(0,"div",9),D(1,Oj,2,1,"div",10),pe(2,"ngb-datepicker-month",11),_()),2&t){const e=n.$implicit,i=E(2);p(1),y("ngIf","none"===i.navigation||i.displayMonths>1&&"select"===i.navigation),p(1),y("month",e.firstDate)}}function xj(t,n){1&t&&D(0,Aj,3,2,"div",8),2&t&&y("ngForOf",E().model.months)}function Rj(t,n){if(1&t){const e=lt();m(0,"ngb-datepicker-navigation",13),B("navigate",function(r){return ve(e),ye(E().onNavigateEvent(r))})("select",function(r){return ve(e),ye(E().onNavigateDateSelect(r))}),_()}if(2&t){const e=E();y("date",e.model.firstDate)("months",e.model.months)("disabled",e.model.disabled)("showSelect","select"===e.model.navigation)("prevDisabled",e.model.prevDisabled)("nextDisabled",e.model.nextDisabled)("selectBoxes",e.model.selectBoxes)}}function Pj(t,n){}function kj(t,n){}function Fj(t,n){if(1&t&&(m(0,"div",5),T(1),_()),2&t){const e=E(2);p(1),jt(e.i18n.getWeekLabel())}}function Lj(t,n){if(1&t&&(m(0,"div",6),T(1),_()),2&t){const e=n.$implicit;p(1),jt(e)}}function Vj(t,n){if(1&t&&(m(0,"div",2),D(1,Fj,2,1,"div",3),D(2,Lj,2,1,"div",4),_()),2&t){const e=E();p(1),y("ngIf",e.datepicker.showWeekNumbers),p(1),y("ngForOf",e.viewModel.weekdays)}}function Bj(t,n){if(1&t&&(m(0,"div",11),T(1),_()),2&t){const e=E(2).$implicit,i=E();p(1),jt(i.i18n.getWeekNumerals(e.number))}}function jj(t,n){}function Hj(t,n){if(1&t&&D(0,jj,0,0,"ng-template",14),2&t){const e=E().$implicit;y("ngTemplateOutlet",E(3).datepicker.dayTemplate)("ngTemplateOutletContext",e.context)}}function $j(t,n){if(1&t){const e=lt();m(0,"div",12),B("click",function(r){const s=ve(e).$implicit;return E(3).doSelect(s),ye(r.preventDefault())}),D(1,Hj,1,2,"ng-template",13),_()}if(2&t){const e=n.$implicit;Ie("disabled",e.context.disabled)("hidden",e.hidden)("ngb-dp-today",e.context.today),y("tabindex",e.tabindex),De("aria-label",e.ariaLabel),p(1),y("ngIf",!e.hidden)}}function Uj(t,n){if(1&t&&(m(0,"div",8),D(1,Bj,2,1,"div",9),D(2,$j,2,9,"div",10),_()),2&t){const e=E().$implicit,i=E();p(1),y("ngIf",i.datepicker.showWeekNumbers),p(1),y("ngForOf",e.days)}}function Gj(t,n){1&t&&D(0,Uj,3,2,"div",7),2&t&&y("ngIf",!n.$implicit.collapsed)}const Wj=["dialog"];function Kt(t){return parseInt(`${t}`,10)}function ya(t){return"string"==typeof t}function Ct(t){return!isNaN(Kt(t))}function Yt(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t}function Tr(t){return null!=t}function oC(t){return Ct(t)?`0${t}`.slice(-2):""}function sC(t,n){return t&&t.className&&t.className.split&&t.className.split(/\s+/).indexOf(n)>=0}function Lo(t){return(t||document.body).getBoundingClientRect()}const aC={animation:!0,transitionTimerDelayMs:5},B3=()=>{},{transitionTimerDelayMs:j3}=aC,ba=new Map,Ut=(t,n,e,i)=>{let r=i.context||{};const o=ba.get(n);if(o)switch(i.runningTransition){case"continue":return mr;case"stop":t.run(()=>o.transition$.complete()),r=Object.assign(o.context,r),ba.delete(n)}const s=e(n,i.animation,r)||B3;if(!i.animation||"none"===window.getComputedStyle(n).transitionProperty)return t.run(()=>s()),L(void 0).pipe(function L3(t){return n=>new Te(e=>n.subscribe({next:s=>t.run(()=>e.next(s)),error:s=>t.run(()=>e.error(s)),complete:()=>t.run(()=>e.complete())}))}(t));const a=new Ee,l=new Ee,c=a.pipe(function HV(...t){return n=>Dc(n,L(...t))}(!0));ba.set(n,{transition$:a,complete:()=>{l.next(),l.complete()},context:r});const u=function V3(t){const{transitionDelay:n,transitionDuration:e}=window.getComputedStyle(t);return 1e3*(parseFloat(n)+parseFloat(e))}(n);return t.runOutsideAngular(()=>{const d=Pt(n,"transitionend").pipe(Je(c),_t(({target:h})=>h===n));jw(function Bw(t=0,n,e){let i=-1;return Vw(n)?i=Number(n)<1?1:Number(n):kr(n)&&(e=n),kr(e)||(e=Lw),new Te(r=>{const o=Vw(t)?t:+t-e.now();return e.schedule(RV,o,{index:0,period:i,subscriber:r})})}(u+j3).pipe(Je(c)),d,l).pipe(Je(c)).subscribe(()=>{ba.delete(n),t.run(()=>{s(),a.next(),a.complete()})})}),a.asObservable()};let Xc=(()=>{class t{constructor(){this.animation=aC.animation}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),hC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=me({type:t}),t.\u0275inj=fe({imports:[cn]}),t})(),pC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=me({type:t}),t.\u0275inj=fe({imports:[cn]}),t})(),_C=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=me({type:t}),t.\u0275inj=fe({imports:[cn]}),t})(),vC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=me({type:t}),t.\u0275inj=fe({}),t})();class ft{constructor(n,e,i){this.year=Yt(n)?n:null,this.month=Yt(e)?e:null,this.day=Yt(i)?i:null}static from(n){return n instanceof ft?n:n?new ft(n.year,n.month,n.day):null}equals(n){return null!=n&&this.year===n.year&&this.month===n.month&&this.day===n.day}before(n){return!!n&&(this.year===n.year?this.month===n.month?this.day!==n.day&&this.day<n.day:this.month<n.month:this.year<n.year)}after(n){return!!n&&(this.year===n.year?this.month===n.month?this.day!==n.day&&this.day>n.day:this.month>n.month:this.year>n.year)}}function Vo(t,n){return!function Z3(t,n){return!t&&!n||!!t&&!!n&&t.equals(n)}(t,n)}function yC(t,n){return!(!t&&!n||t&&n&&t.year===n.year&&t.month===n.month)}function tu(t,n,e){return t&&n&&t.before(n)?n:t&&e&&t.after(e)?e:t||null}function eg(t,n){const{minDate:e,maxDate:i,disabled:r,markDisabled:o}=n;return!(null==t||r||o&&o(t,{year:t.year,month:t.month})||e&&t.before(e)||i&&t.after(i))}function bC(t){return new ft(t.getFullYear(),t.getMonth()+1,t.getDate())}function nu(t){const n=new Date(t.year,t.month-1,t.day,12);return isNaN(n.getTime())||n.setFullYear(t.year),n}let iu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=x({token:t,factory:function(){return function sH(){return new aH}()},providedIn:"root"}),t})(),aH=(()=>{class t extends iu{getDaysPerWeek(){return 7}getMonths(){return[1,2,3,4,5,6,7,8,9,10,11,12]}getWeeksPerMonth(){return 6}getNext(e,i="d",r=1){let o=nu(e),s=!0,a=o.getMonth();switch(i){case"y":o.setFullYear(o.getFullYear()+r);break;case"m":a+=r,o.setMonth(a),a%=12,a<0&&(a+=12);break;case"d":o.setDate(o.getDate()+r),s=!1;break;default:return e}return s&&o.getMonth()!==a&&o.setDate(0),bC(o)}getPrev(e,i="d",r=1){return this.getNext(e,i,-r)}getWeekday(e){let r=nu(e).getDay();return 0===r?7:r}getWeekNumber(e,i){7===i&&(i=0);const s=nu(e[(11-i)%7]);s.setDate(s.getDate()+4-(s.getDay()||7));const a=s.getTime();return s.setMonth(0),s.setDate(1),Math.floor(Math.round((a-s.getTime())/864e5)/7)+1}getToday(){return bC(new Date)}isValid(e){if(!(e&&Yt(e.year)&&Yt(e.month)&&Yt(e.day)&&0!==e.year))return!1;const i=nu(e);return!isNaN(i.getTime())&&i.getFullYear()===e.year&&i.getMonth()+1===e.month&&i.getDate()===e.day}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ze(t)))(i||t)}}(),t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})(),Mr=(()=>{class t{getMonthLabel(e){return`${this.getMonthFullName(e.month,e.year)} ${this.getYearNumerals(e.year)}`}getDayNumerals(e){return`${e.day}`}getWeekNumerals(e){return`${e}`}getYearNumerals(e){return`${e}`}getWeekLabel(){return""}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=x({token:t,factory:function(e){let i=null;return i=e?new e:function lH(t){return new cH(t)}(O(Pn)),i},providedIn:"root"}),t})(),cH=(()=>{class t extends Mr{constructor(e){super(),this._locale=e,this._monthsShort=ch(e,Le.Standalone,J.Abbreviated),this._monthsFull=ch(e,Le.Standalone,J.Wide)}getWeekdayLabel(e,i){const r=p1(this._locale,Le.Standalone,void 0===i?J.Short:i);return r.map((s,a)=>r[(a+1)%7])[e-1]||""}getMonthShortName(e){return this._monthsShort[e-1]||""}getMonthFullName(e){return this._monthsFull[e-1]||""}getDayAriaLabel(e){return m1(new Date(e.year,e.month-1,e.day),"fullDate",this._locale)}}return t.\u0275fac=function(e){return new(e||t)(O(Pn))},t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})(),tg=(()=>{class t{constructor(e,i){this._calendar=e,this._i18n=i,this._VALIDATORS={dayTemplateData:r=>{if(this._state.dayTemplateData!==r)return{dayTemplateData:r}},displayMonths:r=>{if(Yt(r=Kt(r))&&r>0&&this._state.displayMonths!==r)return{displayMonths:r}},disabled:r=>{if(this._state.disabled!==r)return{disabled:r}},firstDayOfWeek:r=>{if(Yt(r=Kt(r))&&r>=0&&this._state.firstDayOfWeek!==r)return{firstDayOfWeek:r}},focusVisible:r=>{if(this._state.focusVisible!==r&&!this._state.disabled)return{focusVisible:r}},markDisabled:r=>{if(this._state.markDisabled!==r)return{markDisabled:r}},maxDate:r=>{const o=this.toValidDate(r,null);if(Vo(this._state.maxDate,o))return{maxDate:o}},minDate:r=>{const o=this.toValidDate(r,null);if(Vo(this._state.minDate,o))return{minDate:o}},navigation:r=>{if(this._state.navigation!==r)return{navigation:r}},outsideDays:r=>{if(this._state.outsideDays!==r)return{outsideDays:r}},weekdays:r=>{const o=!0===r||!1===r?J.Short:r,s=!0!==r&&!1!==r||r;if(this._state.weekdayWidth!==o||this._state.weekdaysVisible!==s)return{weekdayWidth:o,weekdaysVisible:s}}},this._model$=new Ee,this._dateSelect$=new Ee,this._state={dayTemplateData:null,markDisabled:null,maxDate:null,minDate:null,disabled:!1,displayMonths:1,firstDate:null,firstDayOfWeek:1,lastDate:null,focusDate:null,focusVisible:!1,months:[],navigation:"select",outsideDays:"visible",prevDisabled:!1,nextDisabled:!1,selectedDate:null,selectBoxes:{years:[],months:[]},weekdayWidth:J.Short,weekdaysVisible:!0}}get model$(){return this._model$.pipe(_t(e=>e.months.length>0))}get dateSelect$(){return this._dateSelect$.pipe(_t(e=>null!==e))}set(e){let i=Object.keys(e).map(r=>this._VALIDATORS[r](e[r])).reduce((r,o)=>Object.assign(Object.assign({},r),o),{});Object.keys(i).length>0&&this._nextState(i)}focus(e){const i=this.toValidDate(e,null);null!=i&&!this._state.disabled&&Vo(this._state.focusDate,i)&&this._nextState({focusDate:e})}focusSelect(){eg(this._state.focusDate,this._state)&&this.select(this._state.focusDate,{emitEvent:!0})}open(e){const i=this.toValidDate(e,this._calendar.getToday());null!=i&&!this._state.disabled&&(!this._state.firstDate||yC(this._state.firstDate,i))&&this._nextState({firstDate:i})}select(e,i={}){const r=this.toValidDate(e,null);null!=r&&!this._state.disabled&&(Vo(this._state.selectedDate,r)&&this._nextState({selectedDate:r}),i.emitEvent&&eg(r,this._state)&&this._dateSelect$.next(r))}toValidDate(e,i){const r=ft.from(e);return void 0===i&&(i=this._calendar.getToday()),this._calendar.isValid(r)?r:i}getMonth(e){for(let i of this._state.months)if(e.month===i.number&&e.year===i.year)return i;throw new Error(`month ${e.month} of year ${e.year} not found`)}_nextState(e){const i=this._updateState(e);this._patchContexts(i),this._state=i,this._model$.next(this._state)}_patchContexts(e){const{months:i,displayMonths:r,selectedDate:o,focusDate:s,focusVisible:a,disabled:l,outsideDays:c}=e;e.months.forEach(u=>{u.weeks.forEach(d=>{d.days.forEach(f=>{s&&(f.context.focused=s.equals(f.date)&&a),f.tabindex=!l&&s&&f.date.equals(s)&&s.month===u.number?0:-1,!0===l&&(f.context.disabled=!0),void 0!==o&&(f.context.selected=null!==o&&o.equals(f.date)),u.number!==f.date.month&&(f.hidden="hidden"===c||"collapsed"===c||r>1&&f.date.after(i[0].firstDate)&&f.date.before(i[r-1].lastDate))})})})}_updateState(e){const i=Object.assign({},this._state,e);let r=i.firstDate;if(("minDate"in e||"maxDate"in e)&&(function Q3(t,n){if(n&&t&&n.before(t))throw new Error(`'maxDate' ${n} should be greater than 'minDate' ${t}`)}(i.minDate,i.maxDate),i.focusDate=tu(i.focusDate,i.minDate,i.maxDate),i.firstDate=tu(i.firstDate,i.minDate,i.maxDate),r=i.focusDate),"disabled"in e&&(i.focusVisible=!1),"selectedDate"in e&&0===this._state.months.length&&(r=i.selectedDate),"focusVisible"in e||"focusDate"in e&&(i.focusDate=tu(i.focusDate,i.minDate,i.maxDate),r=i.focusDate,0!==i.months.length&&i.focusDate&&!i.focusDate.before(i.firstDate)&&!i.focusDate.after(i.lastDate)))return i;if("firstDate"in e&&(i.firstDate=tu(i.firstDate,i.minDate,i.maxDate),r=i.firstDate),r){const s=function iH(t,n,e,i,r){const{displayMonths:o,months:s}=e,a=s.splice(0,s.length);return Array.from({length:o},(c,u)=>{const d=Object.assign(t.getNext(n,"m",u),{day:1});if(s[u]=null,!r){const f=a.findIndex(h=>h.firstDate.equals(d));-1!==f&&(s[u]=a.splice(f,1)[0])}return d}).forEach((c,u)=>{null===s[u]&&(s[u]=function rH(t,n,e,i,r={}){const{dayTemplateData:o,minDate:s,maxDate:a,firstDayOfWeek:l,markDisabled:c,outsideDays:u,weekdayWidth:d,weekdaysVisible:f}=e,h=t.getToday();r.firstDate=null,r.lastDate=null,r.number=n.month,r.year=n.year,r.weeks=r.weeks||[],r.weekdays=r.weekdays||[],n=function oH(t,n,e){const i=t.getDaysPerWeek(),r=new ft(n.year,n.month,1),o=t.getWeekday(r)%i;return t.getPrev(r,"d",(i+o-e)%i)}(t,n,l),f||(r.weekdays.length=0);for(let g=0;g<t.getWeeksPerMonth();g++){let b=r.weeks[g];b||(b=r.weeks[g]={number:0,days:[],collapsed:!0});const w=b.days;for(let S=0;S<t.getDaysPerWeek();S++){0===g&&f&&(r.weekdays[S]=i.getWeekdayLabel(t.getWeekday(n),d));const M=new ft(n.year,n.month,n.day),C=t.getNext(M),I=i.getDayAriaLabel(M);let P=!!(s&&M.before(s)||a&&M.after(a));!P&&c&&(P=c(M,{month:r.number,year:r.year}));let V=M.equals(h),ae=o?o(M,{month:r.number,year:r.year}):void 0;null===r.firstDate&&M.month===r.number&&(r.firstDate=M),M.month===r.number&&C.month!==r.number&&(r.lastDate=M);let le=w[S];le||(le=w[S]={}),le.date=M,le.context=Object.assign(le.context||{},{$implicit:M,date:M,data:ae,currentMonth:r.number,currentYear:r.year,disabled:P,focused:!1,selected:!1,today:V}),le.tabindex=-1,le.ariaLabel=I,le.hidden=!1,n=C}b.number=t.getWeekNumber(w.map(S=>S.date),l),b.collapsed="collapsed"===u&&w[0].date.month!==r.number&&w[w.length-1].date.month!==r.number}return r}(t,c,e,i,a.shift()||{}))}),s}(this._calendar,r,i,this._i18n,"dayTemplateData"in e||"firstDayOfWeek"in e||"markDisabled"in e||"minDate"in e||"maxDate"in e||"disabled"in e||"outsideDays"in e||"weekdaysVisible"in e);i.months=s,i.firstDate=s[0].firstDate,i.lastDate=s[s.length-1].lastDate,"selectedDate"in e&&!eg(i.selectedDate,i)&&(i.selectedDate=null),"firstDate"in e&&(!i.focusDate||i.focusDate.before(i.firstDate)||i.focusDate.after(i.lastDate))&&(i.focusDate=r);const a=!this._state.firstDate||this._state.firstDate.year!==i.firstDate.year,l=!this._state.firstDate||this._state.firstDate.month!==i.firstDate.month;"select"===i.navigation?(("minDate"in e||"maxDate"in e||0===i.selectBoxes.years.length||a)&&(i.selectBoxes.years=function eH(t,n,e){if(!t)return[];const i=n?Math.max(n.year,t.year-500):t.year-10,o=(e?Math.min(e.year,t.year+500):t.year+10)-i+1,s=Array(o);for(let a=0;a<o;a++)s[a]=i+a;return s}(i.firstDate,i.minDate,i.maxDate)),("minDate"in e||"maxDate"in e||0===i.selectBoxes.months.length||a)&&(i.selectBoxes.months=function X3(t,n,e,i){if(!n)return[];let r=t.getMonths(n.year);if(e&&n.year===e.year){const o=r.findIndex(s=>s===e.month);r=r.slice(o)}if(i&&n.year===i.year){const o=r.findIndex(s=>s===i.month);r=r.slice(0,o+1)}return r}(this._calendar,i.firstDate,i.minDate,i.maxDate))):i.selectBoxes={years:[],months:[]},("arrows"===i.navigation||"select"===i.navigation)&&(l||a||"minDate"in e||"maxDate"in e||"disabled"in e)&&(i.prevDisabled=i.disabled||function nH(t,n,e){const i=Object.assign(t.getPrev(n,"m"),{day:1});return null!=e&&(i.year===e.year&&i.month<e.month||i.year<e.year&&1===e.month)}(this._calendar,i.firstDate,i.minDate),i.nextDisabled=i.disabled||function tH(t,n,e){const i=Object.assign(t.getNext(n,"m"),{day:1});return null!=e&&i.after(e)}(this._calendar,i.lastDate,i.maxDate))}return i}}return t.\u0275fac=function(e){return new(e||t)(O(iu),O(Mr))},t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})();var Bo=(()=>(function(t){t[t.PREV=0]="PREV",t[t.NEXT=1]="NEXT"}(Bo||(Bo={})),Bo))();let wa=(()=>{class t{constructor(){this.displayMonths=1,this.firstDayOfWeek=1,this.navigation="select",this.outsideDays="visible",this.showWeekNumbers=!1,this.weekdays=J.Short}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Ca=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=x({token:t,factory:function(){return function uH(){return new dH}()},providedIn:"root"}),t})(),dH=(()=>{class t extends Ca{fromModel(e){return e&&Yt(e.year)&&Yt(e.month)&&Yt(e.day)?{year:e.year,month:e.month,day:e.day}:null}toModel(e){return e&&Yt(e.year)&&Yt(e.month)&&Yt(e.day)?{year:e.year,month:e.month,day:e.day}:null}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ze(t)))(i||t)}}(),t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})(),fH=(()=>{class t{constructor(e,i){this.i18n=e,this._renderer=i,this.select=new G,this._month=-1,this._year=-1}changeMonth(e){this.select.emit(new ft(this.date.year,Kt(e),1))}changeYear(e){this.select.emit(new ft(Kt(e),this.date.month,1))}ngAfterViewChecked(){this.date&&(this.date.month!==this._month&&(this._month=this.date.month,this._renderer.setProperty(this.monthSelect.nativeElement,"value",this._month)),this.date.year!==this._year&&(this._year=this.date.year,this._renderer.setProperty(this.yearSelect.nativeElement,"value",this._year)))}}return t.\u0275fac=function(e){return new(e||t)(v(Mr),v(rn))},t.\u0275cmp=ot({type:t,selectors:[["ngb-datepicker-navigation-select"]],viewQuery:function(e,i){if(1&e&&(an(_j,7,be),an(vj,7,be)),2&e){let r;oe(r=se())&&(i.monthSelect=r.first),oe(r=se())&&(i.yearSelect=r.first)}},inputs:{date:"date",disabled:"disabled",months:"months",years:"years"},outputs:{select:"select"},decls:6,vars:4,consts:function(){let n,e,i,r;return n=$localize`:@@ngb.datepicker.select-month:Select month`,e=$localize`:@@ngb.datepicker.select-month:Select month`,i=$localize`:@@ngb.datepicker.select-year:Select year`,r=$localize`:@@ngb.datepicker.select-year:Select year`,[["aria-label",n,"title",e,1,"form-select",3,"disabled","change"],["month",""],[3,"value",4,"ngFor","ngForOf"],["aria-label",i,"title",r,1,"form-select",3,"disabled","change"],["year",""],[3,"value"]]},template:function(e,i){1&e&&(m(0,"select",0,1),B("change",function(o){return i.changeMonth(o.target.value)}),D(2,yj,2,3,"option",2),_(),m(3,"select",3,4),B("change",function(o){return i.changeYear(o.target.value)}),D(5,bj,2,2,"option",2),_()),2&e&&(y("disabled",i.disabled),p(2),y("ngForOf",i.months),p(1),y("disabled",i.disabled),p(2),y("ngForOf",i.years))},dependencies:[Vn,tD,iD],styles:["ngb-datepicker-navigation-select>.form-select{flex:1 1 auto;padding:0 .5rem;font-size:.875rem;height:1.85rem}ngb-datepicker-navigation-select>.form-select:focus{z-index:1}ngb-datepicker-navigation-select>.form-select::-ms-value{background-color:transparent!important}\n"],encapsulation:2,changeDetection:0}),t})(),hH=(()=>{class t{constructor(e){this.i18n=e,this.navigation=Bo,this.months=[],this.navigate=new G,this.select=new G}onClickPrev(e){e.currentTarget.focus(),this.navigate.emit(this.navigation.PREV)}onClickNext(e){e.currentTarget.focus(),this.navigate.emit(this.navigation.NEXT)}}return t.\u0275fac=function(e){return new(e||t)(v(Mr))},t.\u0275cmp=ot({type:t,selectors:[["ngb-datepicker-navigation"]],inputs:{date:"date",disabled:"disabled",months:"months",showSelect:"showSelect",prevDisabled:"prevDisabled",nextDisabled:"nextDisabled",selectBoxes:"selectBoxes"},outputs:{navigate:"navigate",select:"select"},decls:8,vars:4,consts:function(){let n,e,i,r;return n=$localize`:@@ngb.datepicker.previous-month:Previous month`,e=$localize`:@@ngb.datepicker.previous-month:Previous month`,i=$localize`:@@ngb.datepicker.next-month:Next month`,r=$localize`:@@ngb.datepicker.next-month:Next month`,[[1,"ngb-dp-arrow"],["type","button","aria-label",n,"title",e,1,"btn","btn-link","ngb-dp-arrow-btn",3,"disabled","click"],[1,"ngb-dp-navigation-chevron"],["class","ngb-dp-navigation-select",3,"date","disabled","months","years","select",4,"ngIf"],[4,"ngIf"],[1,"ngb-dp-arrow","right"],["type","button","aria-label",i,"title",r,1,"btn","btn-link","ngb-dp-arrow-btn",3,"disabled","click"],[1,"ngb-dp-navigation-select",3,"date","disabled","months","years","select"],["ngFor","",3,"ngForOf"],["class","ngb-dp-arrow",4,"ngIf"],[1,"ngb-dp-month-name"]]},template:function(e,i){1&e&&(m(0,"div",0)(1,"button",1),B("click",function(o){return i.onClickPrev(o)}),pe(2,"span",2),_()(),D(3,Dj,1,4,"ngb-datepicker-navigation-select",3),D(4,Tj,1,1,null,4),m(5,"div",5)(6,"button",6),B("click",function(o){return i.onClickNext(o)}),pe(7,"span",2),_()()),2&e&&(p(1),y("disabled",i.prevDisabled),p(2),y("ngIf",i.showSelect),p(1),y("ngIf",!i.showSelect),p(2),y("disabled",i.nextDisabled))},dependencies:[Vn,bi,fH],styles:["ngb-datepicker-navigation{display:flex;align-items:center}.ngb-dp-navigation-chevron{border-style:solid;border-width:.2em .2em 0 0;display:inline-block;width:.75em;height:.75em;margin-left:.25em;margin-right:.15em;transform:rotate(-135deg)}.ngb-dp-arrow{display:flex;flex:1 1 auto;padding-right:0;padding-left:0;margin:0;width:2rem;height:2rem}.ngb-dp-arrow.right{justify-content:flex-end}.ngb-dp-arrow.right .ngb-dp-navigation-chevron{transform:rotate(45deg);margin-left:.15em;margin-right:.25em}.ngb-dp-arrow-btn{padding:0 .25rem;margin:0 .5rem;border:none;background-color:transparent;z-index:1}.ngb-dp-arrow-btn:focus{outline-width:1px;outline-style:auto}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.ngb-dp-arrow-btn:focus{outline-style:solid}}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center}.ngb-dp-navigation-select{display:flex;flex:1 1 9rem}\n"],encapsulation:2,changeDetection:0}),t})(),pH=(()=>{class t{constructor(e){this.i18n=e}isMuted(){return!this.selected&&(this.date.month!==this.currentMonth||this.disabled)}}return t.\u0275fac=function(e){return new(e||t)(v(Mr))},t.\u0275cmp=ot({type:t,selectors:[["","ngbDatepickerDayView",""]],hostAttrs:[1,"btn-light"],hostVars:10,hostBindings:function(e,i){2&e&&Ie("bg-primary",i.selected)("text-white",i.selected)("text-muted",i.isMuted())("outside",i.isMuted())("active",i.focused)},inputs:{currentMonth:"currentMonth",date:"date",disabled:"disabled",focused:"focused",selected:"selected"},attrs:Ej,decls:1,vars:1,template:function(e,i){1&e&&T(0),2&e&&jt(i.i18n.getDayNumerals(i.date))},styles:["[ngbDatepickerDayView]{text-align:center;width:2rem;height:2rem;line-height:2rem;border-radius:.25rem;background:transparent}[ngbDatepickerDayView]:hover:not(.bg-primary),[ngbDatepickerDayView].active:not(.bg-primary){background-color:var(--bs-btn-bg);outline:1px solid var(--bs-border-color)}[ngbDatepickerDayView].outside{opacity:.5}\n"],encapsulation:2,changeDetection:0}),t})();var Ce=(()=>(function(t){t[t.Tab=9]="Tab",t[t.Enter=13]="Enter",t[t.Escape=27]="Escape",t[t.Space=32]="Space",t[t.PageUp=33]="PageUp",t[t.PageDown=34]="PageDown",t[t.End=35]="End",t[t.Home=36]="Home",t[t.ArrowLeft=37]="ArrowLeft",t[t.ArrowUp=38]="ArrowUp",t[t.ArrowRight=39]="ArrowRight",t[t.ArrowDown=40]="ArrowDown"}(Ce||(Ce={})),Ce))();let gH=(()=>{class t{processKey(e,i){const{state:r,calendar:o}=i;switch(e.which){case Ce.PageUp:i.focusDate(o.getPrev(r.focusedDate,e.shiftKey?"y":"m",1));break;case Ce.PageDown:i.focusDate(o.getNext(r.focusedDate,e.shiftKey?"y":"m",1));break;case Ce.End:i.focusDate(e.shiftKey?r.maxDate:r.lastDate);break;case Ce.Home:i.focusDate(e.shiftKey?r.minDate:r.firstDate);break;case Ce.ArrowLeft:i.focusDate(o.getPrev(r.focusedDate,"d",1));break;case Ce.ArrowUp:i.focusDate(o.getPrev(r.focusedDate,"d",o.getDaysPerWeek()));break;case Ce.ArrowRight:i.focusDate(o.getNext(r.focusedDate,"d",1));break;case Ce.ArrowDown:i.focusDate(o.getNext(r.focusedDate,"d",o.getDaysPerWeek()));break;case Ce.Enter:case Ce.Space:i.focusSelect();break;default:return}e.preventDefault(),e.stopPropagation()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),mH=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(v(je))},t.\u0275dir=R({type:t,selectors:[["ng-template","ngbDatepickerContent",""]]}),t})(),DC=(()=>{class t{constructor(e,i,r,o,s,a,l,c){this._service=e,this._calendar=i,this.i18n=r,this._elementRef=a,this._ngbDateAdapter=l,this._ngZone=c,this._controlValue=null,this._destroyed$=new Ee,this._publicState={},this.navigate=new G,this.dateSelect=new G,this.onChange=u=>{},this.onTouched=()=>{},["dayTemplate","dayTemplateData","displayMonths","firstDayOfWeek","footerTemplate","markDisabled","minDate","maxDate","navigation","outsideDays","showWeekNumbers","startDate","weekdays"].forEach(u=>this[u]=o[u]),e.dateSelect$.pipe(Je(this._destroyed$)).subscribe(u=>{this.dateSelect.emit(u)}),e.model$.pipe(Je(this._destroyed$)).subscribe(u=>{const d=u.firstDate,f=this.model?this.model.firstDate:null;this._publicState={maxDate:u.maxDate,minDate:u.minDate,firstDate:u.firstDate,lastDate:u.lastDate,focusedDate:u.focusDate,months:u.months.map(S=>S.firstDate)};let h=!1;if(!d.equals(f)&&(this.navigate.emit({current:f?{year:f.year,month:f.month}:null,next:{year:d.year,month:d.month},preventDefault:()=>h=!0}),h&&null!==f))return void this._service.open(f);const g=u.selectedDate,b=u.focusDate,w=this.model?this.model.focusDate:null;this.model=u,Vo(g,this._controlValue)&&(this._controlValue=g,this.onTouched(),this.onChange(this._ngbDateAdapter.toModel(g))),Vo(b,w)&&w&&u.focusVisible&&this.focus(),s.markForCheck()})}get state(){return this._publicState}get calendar(){return this._calendar}focusDate(e){this._service.focus(ft.from(e))}focusSelect(){this._service.focusSelect()}focus(){this._ngZone.onStable.asObservable().pipe(Rt(1)).subscribe(()=>{const e=this._elementRef.nativeElement.querySelector('div.ngb-dp-day[tabindex="0"]');e&&e.focus()})}navigateTo(e){this._service.open(ft.from(e?e.day?e:Object.assign(Object.assign({},e),{day:1}):null))}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const e=Pt(this._contentEl.nativeElement,"focusin"),i=Pt(this._contentEl.nativeElement,"focusout"),{nativeElement:r}=this._elementRef;wg(e,i).pipe(_t(({target:o,relatedTarget:s})=>!(sC(o,"ngb-dp-day")&&sC(s,"ngb-dp-day")&&r.contains(o)&&r.contains(s))),Je(this._destroyed$)).subscribe(({type:o})=>this._ngZone.run(()=>this._service.set({focusVisible:"focusin"===o})))})}ngOnDestroy(){this._destroyed$.next()}ngOnInit(){if(void 0===this.model){const e={};["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays","weekdays"].forEach(i=>e[i]=this[i]),this._service.set(e),this.navigateTo(this.startDate)}this.dayTemplate||(this.dayTemplate=this._defaultDayTemplate)}ngOnChanges(e){const i={};if(["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays","weekdays"].filter(r=>r in e).forEach(r=>i[r]=this[r]),this._service.set(i),"startDate"in e){const{currentValue:r,previousValue:o}=e.startDate;yC(o,r)&&this.navigateTo(this.startDate)}}onDateSelect(e){this._service.focus(e),this._service.select(e,{emitEvent:!0})}onNavigateDateSelect(e){this._service.open(e)}onNavigateEvent(e){switch(e){case Bo.PREV:this._service.open(this._calendar.getPrev(this.model.firstDate,"m",1));break;case Bo.NEXT:this._service.open(this._calendar.getNext(this.model.firstDate,"m",1))}}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._service.set({disabled:e})}writeValue(e){this._controlValue=ft.from(this._ngbDateAdapter.fromModel(e)),this._service.select(this._controlValue)}}return t.\u0275fac=function(e){return new(e||t)(v(tg),v(iu),v(Mr),v(wa),v(Fn),v(be),v(Ca),v(Se))},t.\u0275cmp=ot({type:t,selectors:[["ngb-datepicker"]],contentQueries:function(e,i,r){if(1&e&&function Ke(t,n,e,i){const r=re();if(r.firstCreatePass){const o=st();d0(r,new l0(n,e,i),o.index),function rx(t,n){const e=t.contentQueries||(t.contentQueries=[]);n!==(e.length?e[e.length-1]:-1)&&e.push(t.queries.length-1,n)}(r,t),2==(2&e)&&(r.staticContentQueries=!0)}u0(r,N(),e)}(r,mH,7),2&e){let o;oe(o=se())&&(i.contentTemplate=o.first)}},viewQuery:function(e,i){if(1&e&&(an(Mj,7),an(Nj,7)),2&e){let r;oe(r=se())&&(i._defaultDayTemplate=r.first),oe(r=se())&&(i._contentEl=r.first)}},hostVars:2,hostBindings:function(e,i){2&e&&Ie("disabled",i.model.disabled)},inputs:{dayTemplate:"dayTemplate",dayTemplateData:"dayTemplateData",displayMonths:"displayMonths",firstDayOfWeek:"firstDayOfWeek",footerTemplate:"footerTemplate",markDisabled:"markDisabled",maxDate:"maxDate",minDate:"minDate",navigation:"navigation",outsideDays:"outsideDays",showWeekNumbers:"showWeekNumbers",startDate:"startDate",weekdays:"weekdays"},outputs:{navigate:"navigate",dateSelect:"dateSelect"},exportAs:["ngbDatepicker"],features:[we([{provide:wn,useExisting:ie(()=>t),multi:!0},tg]),yt],decls:10,vars:5,consts:[["defaultDayTemplate",""],["defaultContentTemplate",""],[1,"ngb-dp-header"],[3,"date","months","disabled","showSelect","prevDisabled","nextDisabled","selectBoxes","navigate","select",4,"ngIf"],[1,"ngb-dp-content"],["content",""],[3,"ngTemplateOutlet"],["ngbDatepickerDayView","",3,"date","currentMonth","selected","disabled","focused"],["class","ngb-dp-month",4,"ngFor","ngForOf"],[1,"ngb-dp-month"],["class","ngb-dp-month-name",4,"ngIf"],[3,"month"],[1,"ngb-dp-month-name"],[3,"date","months","disabled","showSelect","prevDisabled","nextDisabled","selectBoxes","navigate","select"]],template:function(e,i){if(1&e&&(D(0,Ij,1,5,"ng-template",null,0,ln),D(2,xj,1,1,"ng-template",null,1,ln),m(4,"div",2),D(5,Rj,1,7,"ngb-datepicker-navigation",3),_(),m(6,"div",4,5),D(8,Pj,0,0,"ng-template",6),_(),D(9,kj,0,0,"ng-template",6)),2&e){const r=Dt(3);p(5),y("ngIf","none"!==i.navigation),p(1),Ie("ngb-dp-months",!i.contentTemplate),p(2),y("ngTemplateOutlet",(null==i.contentTemplate?null:i.contentTemplate.templateRef)||r),p(1),y("ngTemplateOutlet",i.footerTemplate)}},dependencies:function(){return[Vn,bi,hr,_H,hH,pH]},styles:["ngb-datepicker{border:1px solid var(--bs-border-color);border-radius:.25rem;display:inline-block}ngb-datepicker-month{pointer-events:auto}ngb-datepicker.dropdown-menu{padding:0}ngb-datepicker.disabled .ngb-dp-weekday,ngb-datepicker.disabled .ngb-dp-week-number,ngb-datepicker.disabled .ngb-dp-month-name{color:var(--bs-text-muted)}.ngb-dp-body{z-index:1055}.ngb-dp-header{border-bottom:0;border-radius:.25rem .25rem 0 0;padding-top:.25rem;background-color:var(--bs-light)}.ngb-dp-months{display:flex}.ngb-dp-month{pointer-events:none}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center;background-color:var(--bs-light)}.ngb-dp-month+.ngb-dp-month .ngb-dp-month-name,.ngb-dp-month+.ngb-dp-month .ngb-dp-week{padding-left:1rem}.ngb-dp-month:last-child .ngb-dp-week{padding-right:.25rem}.ngb-dp-month:first-child .ngb-dp-week{padding-left:.25rem}.ngb-dp-month .ngb-dp-week:last-child{padding-bottom:.25rem}\n"],encapsulation:2,changeDetection:0}),t})(),_H=(()=>{class t{constructor(e,i,r,o){this.i18n=e,this.datepicker=i,this._keyboardService=r,this._service=o}set month(e){this.viewModel=this._service.getMonth(e)}onKeyDown(e){this._keyboardService.processKey(e,this.datepicker)}doSelect(e){!e.context.disabled&&!e.hidden&&this.datepicker.onDateSelect(e.date)}}return t.\u0275fac=function(e){return new(e||t)(v(Mr),v(DC),v(gH),v(tg))},t.\u0275cmp=ot({type:t,selectors:[["ngb-datepicker-month"]],hostAttrs:["role","grid"],hostBindings:function(e,i){1&e&&B("keydown",function(o){return i.onKeyDown(o)})},inputs:{month:"month"},decls:2,vars:2,consts:[["class","ngb-dp-week ngb-dp-weekdays","role","row",4,"ngIf"],["ngFor","",3,"ngForOf"],["role","row",1,"ngb-dp-week","ngb-dp-weekdays"],["class","ngb-dp-weekday ngb-dp-showweek small",4,"ngIf"],["class","ngb-dp-weekday small","role","columnheader",4,"ngFor","ngForOf"],[1,"ngb-dp-weekday","ngb-dp-showweek","small"],["role","columnheader",1,"ngb-dp-weekday","small"],["class","ngb-dp-week","role","row",4,"ngIf"],["role","row",1,"ngb-dp-week"],["class","ngb-dp-week-number small text-muted",4,"ngIf"],["class","ngb-dp-day","role","gridcell",3,"disabled","tabindex","hidden","ngb-dp-today","click",4,"ngFor","ngForOf"],[1,"ngb-dp-week-number","small","text-muted"],["role","gridcell",1,"ngb-dp-day",3,"tabindex","click"],[3,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,i){1&e&&(D(0,Vj,3,2,"div",0),D(1,Gj,1,1,"ng-template",1)),2&e&&(y("ngIf",i.viewModel.weekdays.length>0),p(1),y("ngForOf",i.viewModel.weeks))},dependencies:[Vn,bi,hr],styles:['ngb-datepicker-month{display:block}.ngb-dp-weekday,.ngb-dp-week-number{line-height:2rem;text-align:center;font-style:italic}.ngb-dp-weekday{color:var(--bs-info)}.ngb-dp-week{border-radius:.25rem;display:flex}.ngb-dp-weekdays{border-bottom:1px solid var(--bs-border-color);border-radius:0;background-color:var(--bs-light)}.ngb-dp-day,.ngb-dp-weekday,.ngb-dp-week-number{width:2rem;height:2rem}.ngb-dp-day{cursor:pointer}.ngb-dp-day.disabled,.ngb-dp-day.hidden{cursor:default;pointer-events:none}.ngb-dp-day[tabindex="0"]{z-index:1}\n'],encapsulation:2}),t})();const ru=(t,n)=>!!n&&n.some(e=>e.contains(t)),wC=(t,n)=>!n||null!=function F3(t,n){return n&&void 0!==t.closest?t.closest(n):null}(t,n),vH="undefined"!=typeof navigator&&!!navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent));function CC(t,n,e,i,r,o,s,a){e&&t.runOutsideAngular((t=>vH?()=>setTimeout(()=>t(),100):t)(()=>{const c=Pt(n,"keydown").pipe(Je(r),_t(f=>f.which===Ce.Escape),dt(f=>f.preventDefault())),u=Pt(n,"mousedown").pipe(j(f=>{const h=f.target;return 2!==f.button&&!ru(h,s)&&("inside"===e?ru(h,o)&&wC(h,a):"outside"===e?!ru(h,o):wC(h,a)||!ru(h,o))}),Je(r)),d=Pt(n,"mouseup").pipe(Bp(u),_t(([f,h])=>h),function YV(t,n=Lw){const i=function KV(t){return t instanceof Date&&!isNaN(+t)}(t)?+t-n.now():Math.abs(t);return r=>r.lift(new JV(i,n))}(0),Je(r));jw([c.pipe(j(f=>0)),d.pipe(j(f=>1))]).subscribe(f=>t.run(()=>i(f)))}))}const SC=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function TC(t){const n=Array.from(t.querySelectorAll(SC)).filter(e=>-1!==e.tabIndex);return[n[0],n[n.length-1]]}const EC=(t,n,e,i=!1)=>{t.runOutsideAngular(()=>{const r=Pt(n,"focusin").pipe(Je(e),j(o=>o.target));Pt(n,"keydown").pipe(Je(e),_t(o=>o.which===Ce.Tab),Bp(r)).subscribe(([o,s])=>{const[a,l]=TC(n);(s===a||s===n)&&o.shiftKey&&(l.focus(),o.preventDefault()),s===l&&!o.shiftKey&&(a.focus(),o.preventDefault())}),i&&Pt(n,"click").pipe(Je(e),Bp(r),j(o=>o[1])).subscribe(o=>o.focus())})},bH=/\s+/,DH=/ +/gi,wH={top:["top"],bottom:["bottom"],start:["left","right"],left:["left"],end:["right","left"],right:["right"],"top-start":["top-start","top-end"],"top-left":["top-start"],"top-end":["top-end","top-start"],"top-right":["top-end"],"bottom-start":["bottom-start","bottom-end"],"bottom-left":["bottom-start"],"bottom-end":["bottom-end","bottom-start"],"bottom-right":["bottom-end"],"start-top":["left-start","right-start"],"left-top":["left-start"],"start-bottom":["left-end","right-end"],"left-bottom":["left-end"],"end-top":["right-start","left-start"],"right-top":["right-start"],"end-bottom":["right-end","left-end"],"right-bottom":["right-end"]},SH=/^left/,TH=/^right/,EH=/^start/,MH=/^end/;function MC({placement:t,baseClass:n},e){let i=Array.isArray(t)?t:t.split(bH),o=i.findIndex(c=>"auto"===c);o>=0&&["top","bottom","start","end","top-start","top-end","bottom-start","bottom-end","start-top","start-bottom","end-top","end-bottom"].forEach(function(c){null==i.find(u=>-1!==u.search("^"+c))&&i.splice(o++,1,c)});const s=i.map(c=>function CH(t,n){const[e,i]=wH[t];return n&&i||e}(c,e.isRTL()));return{placement:s.shift(),modifiers:[{name:"bootstrapClasses",enabled:!!n,phase:"write",fn({state:c}){const u=new RegExp(n+"(-[a-z]+)*","gi"),d=c.elements.popper,f=c.placement;let h=d.className;h=h.replace(u,""),h+=` ${function NH(t,n){let[e,i]=n.split("-");const r=e.replace(SH,"start").replace(TH,"end");let o=[r];if(i){let s=i;("left"===e||"right"===e)&&(s=s.replace(EH,"top").replace(MH,"bottom")),o.push(`${r}-${s}`)}return t&&(o=o.map(s=>`${t}-${s}`)),o.join(" ")}(n,f)}`,h=h.trim().replace(DH," "),d.className=h}},TB,IB,RB,{enabled:!0,name:"flip",options:{fallbackPlacements:s}},{enabled:!0,name:"preventOverflow",phase:"main",fn:function(){}}]}}function NC(t){return t}let OC=(()=>{class t extends wa{constructor(){super(...arguments),this.autoClose=!0,this.placement=["bottom-start","bottom-end","top-start","top-end"],this.popperOptions=e=>e,this.restoreFocus=!0}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ze(t)))(i||t)}}(),t.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();let Sa=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=x({token:t,factory:function(){return function IH(){return new OH}()},providedIn:"root"}),t})(),OH=(()=>{class t extends Sa{parse(e){if(null!=e){const i=e.trim().split("-");if(1===i.length&&Ct(i[0]))return{year:Kt(i[0]),month:null,day:null};if(2===i.length&&Ct(i[0])&&Ct(i[1]))return{year:Kt(i[0]),month:Kt(i[1]),day:null};if(3===i.length&&Ct(i[0])&&Ct(i[1])&&Ct(i[2]))return{year:Kt(i[0]),month:Kt(i[1]),day:Kt(i[2])}}return null}format(e){return e?`${e.year}-${Ct(e.month)?oC(e.month):""}-${Ct(e.day)?oC(e.day):""}`:""}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ze(t)))(i||t)}}(),t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})(),xC=(()=>{class t{constructor(e){this._element=e.documentElement}isRTL(){return"rtl"===(this._element.getAttribute("dir")||"").toLowerCase()}}return t.\u0275fac=function(e){return new(e||t)(O(Ye))},t.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),AH=(()=>{class t{constructor(e,i,r,o,s,a,l,c,u,d,f){this._parserFormatter=e,this._elRef=i,this._vcRef=r,this._renderer=o,this._ngZone=s,this._calendar=a,this._dateAdapter=l,this._document=u,this._changeDetector=d,this._cRef=null,this._disabled=!1,this._elWithFocus=null,this._model=null,this._destroyCloseHandlers$=new Ee,this.dateSelect=new G,this.navigate=new G,this.closed=new G,this._onChange=h=>{},this._onTouched=()=>{},this._validatorChange=()=>{},["autoClose","container","positionTarget","placement","popperOptions"].forEach(h=>this[h]=f[h]),this._positioning=function IC(t){let n=null;return{createPopper(e){if(!n){let r=(e.updatePopperOptions||NC)(MC(e,t));n=ej(e.hostElement,e.targetElement,r)}},update(){n&&n.update()},setOptions(e){if(n){let r=(e.updatePopperOptions||NC)(MC(e,t));n.setOptions(r)}},destroy(){n&&(n.destroy(),n=null)}}}(c)}get disabled(){return this._disabled}set disabled(e){this._disabled=""===e||e&&"false"!==e,this.isOpen()&&this._cRef.instance.setDisabledState(this._disabled)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}registerOnValidatorChange(e){this._validatorChange=e}setDisabledState(e){this.disabled=e}validate(e){const{value:i}=e;if(null!=i){const r=this._fromDateStruct(this._dateAdapter.fromModel(i));if(!r)return{ngbDate:{invalid:i}};if(this.minDate&&r.before(ft.from(this.minDate)))return{ngbDate:{minDate:{minDate:this.minDate,actual:i}}};if(this.maxDate&&r.after(ft.from(this.maxDate)))return{ngbDate:{maxDate:{maxDate:this.maxDate,actual:i}}}}return null}writeValue(e){this._model=this._fromDateStruct(this._dateAdapter.fromModel(e)),this._writeModelValue(this._model)}manualDateChange(e,i=!1){const r=e!==this._inputValue;r&&(this._inputValue=e,this._model=this._fromDateStruct(this._parserFormatter.parse(e))),(r||!i)&&this._onChange(this._model?this._dateAdapter.toModel(this._model):""===e?null:e),i&&this._model&&this._writeModelValue(this._model)}isOpen(){return!!this._cRef}open(){if(!this.isOpen()){let e;if(this._cRef=this._vcRef.createComponent(DC),this._applyPopupStyling(this._cRef.location.nativeElement),this._applyDatepickerInputs(this._cRef),this._subscribeForDatepickerOutputs(this._cRef.instance),this._cRef.instance.ngOnInit(),this._cRef.instance.writeValue(this._dateAdapter.toModel(this._model)),this._cRef.instance.registerOnChange(i=>{this.writeValue(i),this._onChange(i),this._onTouched()}),this._cRef.changeDetectorRef.detectChanges(),this._cRef.instance.setDisabledState(this.disabled),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._cRef.location.nativeElement),this._elWithFocus=this._document.activeElement,EC(this._ngZone,this._cRef.location.nativeElement,this.closed,!0),setTimeout(()=>{var i;return null===(i=this._cRef)||void 0===i?void 0:i.instance.focus()}),e=ya(this.positionTarget)?this._document.querySelector(this.positionTarget):this.positionTarget instanceof HTMLElement?this.positionTarget:this._elRef.nativeElement,this._ngZone.runOutsideAngular(()=>{this._cRef&&(this._positioning.createPopper({hostElement:e,targetElement:this._cRef.location.nativeElement,placement:this.placement,appendToBody:"body"===this.container,updatePopperOptions:i=>this.popperOptions(function AC(t){return n=>(n.modifiers.push(ij,{name:"offset",options:{offset:()=>t}}),n)}([0,2])(i))}),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positioning.update()))}),this.positionTarget&&!e)throw new Error("ngbDatepicker could not find element declared in [positionTarget] to position against.");this._setCloseHandlers()}}close(){var e;if(this.isOpen()){this._vcRef.remove(this._vcRef.indexOf(this._cRef.hostView)),this._cRef=null,this._positioning.destroy(),null===(e=this._zoneSubscription)||void 0===e||e.unsubscribe(),this._destroyCloseHandlers$.next(),this.closed.emit(),this._changeDetector.markForCheck();let i=this._elWithFocus;ya(this.restoreFocus)?i=this._document.querySelector(this.restoreFocus):void 0!==this.restoreFocus&&(i=this.restoreFocus),i&&i.focus?i.focus():this._document.body.focus()}}toggle(){this.isOpen()?this.close():this.open()}navigateTo(e){this.isOpen()&&this._cRef.instance.navigateTo(e)}onBlur(){this._onTouched()}onFocus(){this._elWithFocus=this._elRef.nativeElement}ngOnChanges(e){if((e.minDate||e.maxDate)&&(this._validatorChange(),this.isOpen()&&(e.minDate&&(this._cRef.instance.minDate=this.minDate),e.maxDate&&(this._cRef.instance.maxDate=this.maxDate),this._cRef.instance.ngOnChanges(e))),e.datepickerClass){const{currentValue:i,previousValue:r}=e.datepickerClass;this._applyPopupClass(i,r)}e.autoClose&&this.isOpen()&&this._setCloseHandlers()}ngOnDestroy(){this.close()}_applyDatepickerInputs(e){["dayTemplate","dayTemplateData","displayMonths","firstDayOfWeek","footerTemplate","markDisabled","minDate","maxDate","navigation","outsideDays","showNavigation","showWeekNumbers","weekdays"].forEach(i=>{void 0!==this[i]&&e.setInput(i,this[i])}),e.setInput("startDate",this.startDate||this._model)}_applyPopupClass(e,i){var r;const o=null===(r=this._cRef)||void 0===r?void 0:r.location.nativeElement;o&&(e&&this._renderer.addClass(o,e),i&&this._renderer.removeClass(o,i))}_applyPopupStyling(e){this._renderer.addClass(e,"dropdown-menu"),this._renderer.addClass(e,"show"),"body"===this.container&&this._renderer.addClass(e,"ngb-dp-body"),this._applyPopupClass(this.datepickerClass)}_subscribeForDatepickerOutputs(e){e.navigate.subscribe(i=>this.navigate.emit(i)),e.dateSelect.subscribe(i=>{this.dateSelect.emit(i),(!0===this.autoClose||"inside"===this.autoClose)&&this.close()})}_writeModelValue(e){const i=this._parserFormatter.format(e);this._inputValue=i,this._renderer.setProperty(this._elRef.nativeElement,"value",i),this.isOpen()&&(this._cRef.instance.writeValue(this._dateAdapter.toModel(e)),this._onTouched())}_fromDateStruct(e){const i=e?new ft(e.year,e.month,e.day):null;return this._calendar.isValid(i)?i:null}_setCloseHandlers(){this._destroyCloseHandlers$.next(),CC(this._ngZone,this._document,this.autoClose,()=>this.close(),this._destroyCloseHandlers$,[],[this._elRef.nativeElement,this._cRef.location.nativeElement])}}return t.\u0275fac=function(e){return new(e||t)(v(Sa),v(be),v(yn),v(rn),v(Se),v(iu),v(Ca),v(xC),v(Ye),v(Fn),v(OC))},t.\u0275dir=R({type:t,selectors:[["input","ngbDatepicker",""]],hostVars:1,hostBindings:function(e,i){1&e&&B("input",function(o){return i.manualDateChange(o.target.value)})("change",function(o){return i.manualDateChange(o.target.value,!0)})("focus",function(){return i.onFocus()})("blur",function(){return i.onBlur()}),2&e&&lr("disabled",i.disabled)},inputs:{autoClose:"autoClose",datepickerClass:"datepickerClass",dayTemplate:"dayTemplate",dayTemplateData:"dayTemplateData",displayMonths:"displayMonths",firstDayOfWeek:"firstDayOfWeek",footerTemplate:"footerTemplate",markDisabled:"markDisabled",minDate:"minDate",maxDate:"maxDate",navigation:"navigation",outsideDays:"outsideDays",placement:"placement",popperOptions:"popperOptions",restoreFocus:"restoreFocus",showWeekNumbers:"showWeekNumbers",startDate:"startDate",container:"container",positionTarget:"positionTarget",weekdays:"weekdays",disabled:"disabled"},outputs:{dateSelect:"dateSelect",navigate:"navigate",closed:"closed"},exportAs:["ngbDatepicker"],features:[we([{provide:wn,useExisting:ie(()=>t),multi:!0},{provide:gt,useExisting:ie(()=>t),multi:!0},{provide:wa,useExisting:OC}]),yt]}),t})();new Date(1882,10,12),new Date(2174,10,25);let VC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=me({type:t}),t.\u0275inj=fe({imports:[cn,hD]}),t})(),$C=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=me({type:t}),t.\u0275inj=fe({}),t})();class Or{constructor(n,e,i){this.nodes=n,this.viewRef=e,this.componentRef=i}}let HH=(()=>{class t{constructor(e,i){this._el=e,this._zone=i}ngOnInit(){this._zone.onStable.asObservable().pipe(Rt(1)).subscribe(()=>{Ut(this._zone,this._el.nativeElement,(e,i)=>{i&&Lo(e),e.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return Ut(this._zone,this._el.nativeElement,({classList:e})=>e.remove("show"),{animation:this.animation,runningTransition:"stop"})}}return t.\u0275fac=function(e){return new(e||t)(v(be),v(Se))},t.\u0275cmp=ot({type:t,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(e,i){2&e&&(ar("modal-backdrop"+(i.backdropClass?" "+i.backdropClass:"")),Ie("show",!i.animation)("fade",i.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})();class UC{close(n){}dismiss(n){}}class $H{constructor(n,e,i,r){this._windowCmptRef=n,this._contentRef=e,this._backdropCmptRef=i,this._beforeDismiss=r,this._closed=new Ee,this._dismissed=new Ee,this._hidden=new Ee,n.instance.dismissEvent.subscribe(o=>{this.dismiss(o)}),this.result=new Promise((o,s)=>{this._resolve=o,this._reject=s}),this.result.then(null,()=>{})}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(Je(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(Je(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}close(n){this._windowCmptRef&&(this._closed.next(n),this._resolve(n),this._removeModalElements())}_dismiss(n){this._dismissed.next(n),this._reject(n),this._removeModalElements()}dismiss(n){if(this._windowCmptRef)if(this._beforeDismiss){const e=this._beforeDismiss();!function rC(t){return t&&t.then}(e)?!1!==e&&this._dismiss(n):e.then(i=>{!1!==i&&this._dismiss(n)},()=>{})}else this._dismiss(n)}_removeModalElements(){const n=this._windowCmptRef.instance.hide(),e=this._backdropCmptRef?this._backdropCmptRef.instance.hide():L(void 0);n.subscribe(()=>{const{nativeElement:i}=this._windowCmptRef.location;i.parentNode.removeChild(i),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._contentRef=null}),e.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:i}=this._backdropCmptRef.location;i.parentNode.removeChild(i),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),Kc(n,e).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var Ma=(()=>(function(t){t[t.BACKDROP_CLICK=0]="BACKDROP_CLICK",t[t.ESC=1]="ESC"}(Ma||(Ma={})),Ma))();let UH=(()=>{class t{constructor(e,i,r){this._document=e,this._elRef=i,this._zone=r,this._closed$=new Ee,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new G,this.shown=new Ee,this.hidden=new Ee}get fullscreenClass(){return!0===this.fullscreen?" modal-fullscreen":ya(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(e){this.dismissEvent.emit(e)}ngOnInit(){this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe(Rt(1)).subscribe(()=>{this._show()})}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:e}=this._elRef,i={animation:this.animation,runningTransition:"stop"},s=Kc(Ut(this._zone,e,()=>e.classList.remove("show"),i),Ut(this._zone,this._dialogEl.nativeElement,()=>{},i));return s.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),s}_show(){const e={animation:this.animation,runningTransition:"continue"};Kc(Ut(this._zone,this._elRef.nativeElement,(o,s)=>{s&&Lo(o),o.classList.add("show")},e),Ut(this._zone,this._dialogEl.nativeElement,()=>{},e)).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:e}=this._elRef;this._zone.runOutsideAngular(()=>{Pt(e,"keydown").pipe(Je(this._closed$),_t(r=>r.which===Ce.Escape)).subscribe(r=>{this.keyboard?requestAnimationFrame(()=>{r.defaultPrevented||this._zone.run(()=>this.dismiss(Ma.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let i=!1;Pt(this._dialogEl.nativeElement,"mousedown").pipe(Je(this._closed$),dt(()=>i=!1),un(()=>Pt(e,"mouseup").pipe(Je(this._closed$),Rt(1))),_t(({target:r})=>e===r)).subscribe(()=>{i=!0}),Pt(e,"click").pipe(Je(this._closed$)).subscribe(({target:r})=>{e===r&&("static"===this.backdrop?this._bumpBackdrop():!0===this.backdrop&&!i&&this._zone.run(()=>this.dismiss(Ma.BACKDROP_CLICK))),i=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:e}=this._elRef;if(!e.contains(document.activeElement)){const i=e.querySelector("[ngbAutofocus]"),r=TC(e)[0];(i||r||e).focus()}}_restoreFocus(){const e=this._document.body,i=this._elWithFocus;let r;r=i&&i.focus&&e.contains(i)?i:e,this._zone.runOutsideAngular(()=>{setTimeout(()=>r.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&Ut(this._zone,this._elRef.nativeElement,({classList:e})=>(e.add("modal-static"),()=>e.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}}return t.\u0275fac=function(e){return new(e||t)(v(Ye),v(be),v(Se))},t.\u0275cmp=ot({type:t,selectors:[["ngb-modal-window"]],viewQuery:function(e,i){if(1&e&&an(Wj,7),2&e){let r;oe(r=se())&&(i._dialogEl=r.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(e,i){2&e&&(De("aria-modal",!0)("aria-labelledby",i.ariaLabelledBy)("aria-describedby",i.ariaDescribedBy),ar("modal d-block"+(i.windowClass?" "+i.windowClass:"")),Ie("fade",i.animation))},inputs:{animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",backdrop:"backdrop",centered:"centered",fullscreen:"fullscreen",keyboard:"keyboard",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},ngContentSelectors:dj,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(e,i){1&e&&(function Iv(t){const n=N()[16][6];if(!n.projection){const i=n.projection=ss(t?t.length:1,null),r=i.slice();let o=n.child;for(;null!==o;){const s=t?UI(o,t):0;null!==s&&(r[s]?r[s].projectionNext=o:i[s]=o,r[s]=o),o=o.next}}}(),m(0,"div",0,1)(2,"div",2),function Ov(t,n=0,e){const i=N(),r=re(),o=ao(r,22+t,16,null,e||null);null===o.projection&&(o.projection=n),Bu(),64!=(64&o.flags)&&function lN(t,n,e){y_(n[X],0,n,e,c_(t,e,n),h_(e.parent||n[6],e,n))}(r,i,o)}(3),_()()),2&e&&ar("modal-dialog"+(i.size?" modal-"+i.size:"")+(i.centered?" modal-dialog-centered":"")+i.fullscreenClass+(i.scrollable?" modal-dialog-scrollable":"")+(i.modalDialogClass?" "+i.modalDialogClass:""))},styles:["ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}\n"],encapsulation:2}),t})(),GH=(()=>{class t{constructor(e){this._document=e}hide(){const e=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),i=this._document.body,r=i.style,{overflow:o,paddingRight:s}=r;if(e>0){const a=parseFloat(window.getComputedStyle(i).paddingRight);r.paddingRight=`${a+e}px`}return r.overflow="hidden",()=>{e>0&&(r.paddingRight=s),r.overflow=o}}}return t.\u0275fac=function(e){return new(e||t)(O(Ye))},t.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),WH=(()=>{class t{constructor(e,i,r,o,s,a){this._applicationRef=e,this._injector=i,this._document=r,this._scrollBar=o,this._rendererFactory=s,this._ngZone=a,this._activeWindowCmptHasChanged=new Ee,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._backdropAttributes=["animation","backdropClass"],this._modalRefs=[],this._windowAttributes=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","scrollable","size","windowClass","modalDialogClass"],this._windowCmpts=[],this._activeInstances=new G,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const l=this._windowCmpts[this._windowCmpts.length-1];EC(this._ngZone,l.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(l.location.nativeElement)}})}_restoreScrollBar(){const e=this._scrollBarRestoreFn;e&&(this._scrollBarRestoreFn=null,e())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(e,i,r){const o=r.container instanceof HTMLElement?r.container:Tr(r.container)?this._document.querySelector(r.container):this._document.body,s=this._rendererFactory.createRenderer(null,null);if(!o)throw new Error(`The specified modal container "${r.container||"body"}" was not found in the DOM.`);this._hideScrollBar();const a=new UC,l=this._getContentRef(r.injector||e,i,a,r);let c=!1!==r.backdrop?this._attachBackdrop(o):void 0,u=this._attachWindowComponent(o,l.nodes),d=new $H(u,l,c,r.beforeDismiss);return this._registerModalRef(d),this._registerWindowCmpt(u),d.hidden.pipe(Rt(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(s.removeClass(this._document.body,"modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),a.close=f=>{d.close(f)},a.dismiss=f=>{d.dismiss(f)},this._applyWindowOptions(u.instance,r),1===this._modalRefs.length&&s.addClass(this._document.body,"modal-open"),c&&c.instance&&(this._applyBackdropOptions(c.instance,r),c.changeDetectorRef.detectChanges()),u.changeDetectorRef.detectChanges(),d}get activeInstances(){return this._activeInstances}dismissAll(e){this._modalRefs.forEach(i=>i.dismiss(e))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(e){let i=oh(HH,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector});return this._applicationRef.attachView(i.hostView),e.appendChild(i.location.nativeElement),i}_attachWindowComponent(e,i){let r=oh(UH,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector,projectableNodes:i});return this._applicationRef.attachView(r.hostView),e.appendChild(r.location.nativeElement),r}_applyWindowOptions(e,i){this._windowAttributes.forEach(r=>{Tr(i[r])&&(e[r]=i[r])})}_applyBackdropOptions(e,i){this._backdropAttributes.forEach(r=>{Tr(i[r])&&(e[r]=i[r])})}_getContentRef(e,i,r,o){return i?i instanceof je?this._createFromTemplateRef(i,r):ya(i)?this._createFromString(i):this._createFromComponent(e,i,r,o):new Or([])}_createFromTemplateRef(e,i){const o=e.createEmbeddedView({$implicit:i,close(s){i.close(s)},dismiss(s){i.dismiss(s)}});return this._applicationRef.attachView(o),new Or([o.rootNodes],o)}_createFromString(e){const i=this._document.createTextNode(`${e}`);return new Or([[i]])}_createFromComponent(e,i,r,o){const s=bt.create({providers:[{provide:UC,useValue:r}],parent:e}),a=oh(i,{environmentInjector:this._applicationRef.injector,elementInjector:s}),l=a.location.nativeElement;return o.scrollable&&l.classList.add("component-host-scrollable"),this._applicationRef.attachView(a.hostView),new Or([[l]],a.hostView,a)}_setAriaHidden(e){const i=e.parentElement;i&&e!==this._document.body&&(Array.from(i.children).forEach(r=>{r!==e&&"SCRIPT"!==r.nodeName&&(this._ariaHiddenValues.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}),this._setAriaHidden(i))}_revertAriaHidden(){this._ariaHiddenValues.forEach((e,i)=>{e?i.setAttribute("aria-hidden",e):i.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(e){const i=()=>{const r=this._modalRefs.indexOf(e);r>-1&&(this._modalRefs.splice(r,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(e),this._activeInstances.emit(this._modalRefs),e.result.then(i,i)}_registerWindowCmpt(e){this._windowCmpts.push(e),this._activeWindowCmptHasChanged.next(),e.onDestroy(()=>{const i=this._windowCmpts.indexOf(e);i>-1&&(this._windowCmpts.splice(i,1),this._activeWindowCmptHasChanged.next())})}}return t.\u0275fac=function(e){return new(e||t)(O(Hs),O(bt),O(Ye),O(GH),O(vd),O(Se))},t.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),zH=(()=>{class t{constructor(e){this._ngbConfig=e,this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return t.\u0275fac=function(e){return new(e||t)(O(Xc))},t.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),qH=(()=>{class t{constructor(e,i,r){this._injector=e,this._modalStack=i,this._config=r}open(e,i={}){const r=Object.assign(Object.assign(Object.assign({},this._config),{animation:this._config.animation}),i);return this._modalStack.open(this._injector,e,r)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(e){this._modalStack.dismissAll(e)}hasOpenModals(){return this._modalStack.hasOpenModals()}}return t.\u0275fac=function(e){return new(e||t)(O(bt),O(WH),O(zH))},t.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),GC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=me({type:t}),t.\u0275inj=fe({providers:[qH]}),t})(),KC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=me({type:t}),t.\u0275inj=fe({imports:[cn]}),t})(),nS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=me({type:t}),t.\u0275inj=fe({imports:[cn]}),t})(),rS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=me({type:t}),t.\u0275inj=fe({imports:[cn]}),t})(),oS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=me({type:t}),t.\u0275inj=fe({imports:[cn]}),t})(),sS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=me({type:t}),t.\u0275inj=fe({imports:[cn]}),t})(),aS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=me({type:t}),t.\u0275inj=fe({imports:[cn]}),t})(),lS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=me({type:t}),t.\u0275inj=fe({imports:[cn]}),t})(),cS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=me({type:t}),t.\u0275inj=fe({}),t})();new H("live announcer delay",{providedIn:"root",factory:function s$(){return 100}});let uS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=me({type:t}),t.\u0275inj=fe({imports:[cn]}),t})(),dS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=me({type:t}),t.\u0275inj=fe({}),t})();const a$=[hC,pC,_C,vC,VC,$C,GC,KC,dS,nS,rS,oS,sS,aS,lS,cS,uS];let l$=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=me({type:t}),t.\u0275inj=fe({imports:[a$,hC,pC,_C,vC,VC,$C,GC,KC,dS,nS,rS,oS,sS,aS,lS,cS,uS]}),t})(),fS=(()=>{class t{getPager(e,i=1,r=10){const o=Math.ceil(e/r);let s,a;o<=10?(s=1,a=o):i<=6?(s=1,a=10):i+4>=o?(s=o-9,a=o):(s=i-5,a=i+4);const l=(i-1)*r;var f;return{totalItems:e,currentPage:i,pageSize:r,totalPages:o,startPage:s,endPage:a,startIndex:l,endIndex:Math.min(l+r-1,e-1),pages:(f=s,Array.from(Array(Math.abs(a-f)+1),(g,b)=>f+b))}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})(),uu=(()=>{class t{constructor(e){this.http=e}getMeetingDate(){return this.meetingDate}load(){return new Promise((e,i)=>{this.http.get("assets/final-recent.json").pipe(j(r=>new Date(r.mtgitems.reduce((o,s)=>s.d>o.d?s:o).d))).subscribe(r=>{this.meetingDate=r.getFullYear()+"-"+(r.getMonth()+1)+"-"+r.getDate(),e(!0)})})}}return t.\u0275fac=function(e){return new(e||t)(O(Rp))},t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})();function c$(t,n){if(1&t){const e=lt();m(0,"div",7)(1,"label")(2,"input",8),B("ngModelChange",function(r){return ye(ve(e).$implicit.selected=r)}),_(),T(3),_()()}if(2&t){const e=n.$implicit;p(2),Re("name",e.value),y("ngModel",e.selected),p(1),ne(" ",e.name," ")}}let u$=(()=>{class t{constructor(e){this.documentService=e,this.docTypes=[],this.docType=[],this.typeList=[],this.testSelections=[]}ngOnInit(){let e=window.sessionStorage.getItem("typeFilter");return e?(this.testSelections=JSON.parse(e),console.log("session: "+this.testSelections),this.documentService.getAllDocTypes().subscribe(i=>this.docTypes=i,i=>i,()=>this.docTypes.forEach(i=>{i.name=i.name.trim(),"all"!==this.testSelections.toString()&&this.testSelections.forEach(r=>{i.value.includes(r)&&(i.selected=!0)})}))):this.documentService.getAllDocTypes().pipe(dt(i=>console.log("types2?"+i))).subscribe(i=>this.docTypes=i)}getSelectedTypesDT(){return this.docTypes.reduce((e,i)=>(i.selected&&(e.push(i.value),"Bgbk"===i.value&&e.push("Rdbk"),("Grbk"===i.value||"Blbk"===i.value)&&e.push("GrBl"),"St"===i.value&&e.push("Pl"),"PrC"===i.value&&e.push("Pj"),"Trns"===i.value&&e.push("PrMat")),e),[])}}return t.\u0275fac=function(e){return new(e||t)(v(Lp))},t.\u0275cmp=ot({type:t,selectors:[["app-doc-types"]],decls:9,vars:1,consts:[[1,"eventSearch__label"],[1,"form-control-static"],[1,"ng-binding"],[1,"eventSearch__inputs"],[1,"form-group"],[1,"row"],["class","col-lg-6",4,"ngFor","ngForOf"],[1,"col-lg-6"],["type","checkbox",3,"name","ngModel","ngModelChange"]],template:function(e,i){1&e&&(m(0,"div",0)(1,"p",1)(2,"strong")(3,"legend",2),T(4,"Type:"),_()()()(),m(5,"div",3)(6,"div",4)(7,"div",5),D(8,c$,4,3,"div",6),_()()()),2&e&&(p(8),y("ngForOf",i.docTypes))},dependencies:[Vn,Ah,kh,vc],encapsulation:2}),t})();function hS(t){return lg(t)?`0${t}`.slice(-2):""}function lg(t){return!isNaN(du(t))}function du(t){return parseInt(`${t}`,10)}let pS=(()=>{class t extends Sa{parse(e){if(e){const i=e.trim().split("/");return{month:du(i[0]),day:du(i[1]),year:du(i[2])}}return null}format(e){return e?`${lg(e.month)?hS(e.month):""}/${lg(e.day)?hS(e.day):""}/${e.year}`:""}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ze(t)))(i||t)}}(),t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})();const d$=["ddp"],f$=["edp"],h$=["startContainer"],p$=["endContainer"];let g$=(()=>{class t{constructor(e){this.meetingDateProvider=e,this.latestDocument=[],this.dateError={isError:!1,errorMessage:""},this.startmodel=new Date("1/1/1936"),this.latestDate=this.meetingDateProvider.getMeetingDate(),this.latestMeetingDate=new Date(this.latestDate),this.endmodel=this.latestMeetingDate;let i=window.sessionStorage.getItem("fromFilter"),r=window.sessionStorage.getItem("toFilter");if(i){const o=JSON.parse(i);this.startmodel=new Date(o)}if(r){const o=JSON.parse(r);this.endmodel=new Date(o)}}updateEndModel(e){this.endmodel=e}hostClick(e){const i=this.ddp.isOpen(),r=this.edp.isOpen();i&&this.startContainer&&this.startContainer.nativeElement&&!this.startContainer.nativeElement.contains(e.target)&&this.ddp.close(),r&&this.endContainer&&this.endContainer.nativeElement&&!this.endContainer.nativeElement.contains(e.target)&&this.edp.close()}}return t.\u0275fac=function(e){return new(e||t)(v(uu))},t.\u0275cmp=ot({type:t,selectors:[["app-calendar-picker"]],viewQuery:function(e,i){if(1&e&&(an(d$,7),an(f$,7),an(h$,7),an(p$,7)),2&e){let r;oe(r=se())&&(i.ddp=r.first),oe(r=se())&&(i.edp=r.first),oe(r=se())&&(i.startContainer=r.first),oe(r=se())&&(i.endContainer=r.first)}},hostBindings:function(e,i){1&e&&B("mouseenter",function(){return i.hostClick()})},features:[we([],[{provide:xt,useExisting:Qs},{provide:Sa,useClass:pS}])],decls:27,vars:2,consts:[[1,"eventSearch__label"],[1,"form-control-static"],["id","fomc-filter-style",1,"eventSearch__inputs"],[1,"input-group","input-group-sm"],[1,"form-group"],["startContainer",""],[1,"input-group","date"],["id","startmodel","name","startmodel","placeholder","From: MM/DD/YEAR","aria-label","Search from Date","ngbDatepicker","",1,"form-control",3,"ngModel","ngModelChange"],["ddp","ngbDatepicker"],["uib-datepicker-popup-wrap","","ng-model","date","ng-change","dateSelection(date)","template-url","uib/template/datepickerPopup/popup.html",1,"ng-pristine","ng-untouched","ng-valid","ng-scope","ng-empty"],[1,"input-group-btn"],["type","button","aria-label","Open Calendar",1,"btn","btn-outline-secondary",3,"click"],[1,"icon","icon--centered","icon__xs","icon-calendar-no-circle"],[1,"input-group","eventSearch__label--middle"],["endContainer",""],["id","endmodel","name","endmodel","placeholder","To: MM/DD/YEAR","aria-label","Search to Date","ngbDatepicker","",1,"form-control",3,"ngModel","ngModelChange"],["edp","ngbDatepicker"]],template:function(e,i){if(1&e){const r=lt();m(0,"div",0)(1,"p",1)(2,"strong")(3,"legend"),T(4,"Date:"),_()()()(),m(5,"div",2)(6,"div",3)(7,"div",4,5)(9,"div",6)(10,"input",7,8),B("ngModelChange",function(s){return i.startmodel=s}),_(),pe(12,"div",9),m(13,"span",10)(14,"button",11),B("click",function(){return ve(r),ye(Dt(11).toggle())}),pe(15,"span",12),_()()()(),m(16,"p",13),T(17,"to"),_(),m(18,"div",4,14)(20,"div",6)(21,"input",15,16),B("ngModelChange",function(s){return i.endmodel=s}),_(),pe(23,"div",9),m(24,"span",10)(25,"button",11),B("click",function(){return ve(r),ye(Dt(22).toggle())}),pe(26,"span",12),_()()()()()()}2&e&&(p(10),y("ngModel",i.startmodel),p(11),y("ngModel",i.endmodel))},dependencies:[lc,kh,vc,AH],changeDetection:0}),t})(),_$=(()=>{class t{validate(e){return(t=>{const n=t.get("startmodel"),e=t.get("endmodel");return n&&e&&n.value>e.value?{dateCompareValid:!0}:null})(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=R({type:t,selectors:[["","appDateCompareValid",""],["","appDateCompareValid","","ng-form-control",""]],features:[we([{provide:gt,useExisting:t,multi:!0}])]}),t})(),v$=(()=>{class t{transform(e){let i="";switch(e){case"Ag":i="Agenda";break;case"Bgbk":i="Beige Book";break;case"Blbk":i="Bluebook";break;case"Grbk":i="Greenbook";break;case"GrBl":i="Greenbook and Bluebook Accessible materials";break;case"ExCommMin":i="Intermeeting Executive Committee Minutes";break;case"HMin":i="Historical Minutes";break;case"MemD":i="Memoranda of Discussion";break;case"MoA":i="Minutes of Action";break;case"Mn":i="Minutes";break;case"Pj":i="Projection materials";break;case"Pl":i="Policy Goals";break;case"PrC":i="Press Conference";break;case"PrMat":i="Presentation materials";break;case"Rdbk":i="Redbook";break;case"ROPA":i="Record of Policy Actions";break;case"SEP":i="SEP";break;case"St":i="Statement";break;case"Tl":i="Tealbook";break;case"Trns":i="Transcripts";break;case"Memo":i="Memos"}return i}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Et({name:"typename",type:t,pure:!0}),t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})(),y$=(()=>{class t{transform(e){let i="";if(e.indexOf(",")>0&&e.indexOf(",")!==e.lastIndexOf(",")){const r=e.lastIndexOf(",");i=e.substring(r)}return i}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Et({name:"name",type:t,pure:!0}),t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})();const b$=["ngbdate"],D$=["types"];function w$(t,n){1&t&&(m(0,"div",13),T(1," Please enter a date with the format MM/DD/YEAR. "),_())}function C$(t,n){1&t&&(m(0,"div",13),T(1," End Date must be later than Start Date. "),_())}function S$(t,n){1&t&&(m(0,"div"),T(1," No Results. Please try a new Search. "),_())}function T$(t,n){1&t&&(m(0,"span"),T(1,"Conference Call\xa0"),_())}function E$(t,n){if(1&t&&(m(0,"span"),T(1),_()),2&t){const e=E(2).$implicit;p(1),jt(e.name)}}function M$(t,n){1&t&&(m(0,"span"),T(1,"ZIP"),_())}function N$(t,n){1&t&&(m(0,"span"),T(1,"PDF"),_())}function I$(t,n){1&t&&(m(0,"span"),T(1,"HTML"),_())}function O$(t,n){if(1&t&&(m(0,"span")(1,"div",33),D(2,T$,2,0,"span",17),T(3),Qe(4,"typename"),D(5,E$,2,1,"span",17),_(),m(6,"div",34)(7,"a",35),D(8,M$,2,0,"span",17),D(9,N$,2,0,"span",17),D(10,I$,2,0,"span",17),_()()()),2&t){const e=E().$implicit;p(2),y("ngIf",e.mtg.includes("Call")),p(1),ne(" ",gi(4,7,e.type)," "),p(2),y("ngIf",e.name.includes("Part")||e.name.includes("Supp")),p(2),Re("href",e.url,Fe),p(1),y("ngIf",e.url.includes("zip")),p(1),y("ngIf",e.url.includes(".pdf")),p(1),y("ngIf",e.url.includes("htm"))}}function A$(t,n){1&t&&(m(0,"span"),T(1,"Conference Call\xa0"),_())}function x$(t,n){if(1&t&&(m(0,"span")(1,"div",33),D(2,A$,2,0,"span",17),T(3),Qe(4,"typename"),_(),m(5,"div",34)(6,"a",35),T(7,"ZIP"),_()()()),2&t){const e=E().$implicit;p(2),y("ngIf",e.mtg.includes("Call")),p(1),ne(" ",gi(4,3,e.type)," "),p(3),Re("href",e.url,Fe)}}function R$(t,n){1&t&&(m(0,"span"),T(1,"(PDF)"),_())}function P$(t,n){if(1&t&&(m(0,"span"),T(1),Qe(2,"date"),_()),2&t){const e=E(3).$implicit;p(1),ne(" - ",sn(2,1,e.odt,"MMMM d, y"),"")}}function k$(t,n){if(1&t&&(m(0,"div",37)(1,"a",35),T(2),D(3,R$,2,0,"span",17),_(),D(4,P$,3,4,"span",17),_()),2&t){const e=E(2).$implicit,i=E(2);p(1),Re("href",e.url,Fe),p(1),ne("",e.name,"\xa0"),p(1),y("ngIf",i.endsWithPDF(e.url,e.name)),p(1),y("ngIf",e.odt)}}function F$(t,n){if(1&t&&(m(0,"span"),T(1),_()),2&t){const e=E(4).$implicit;p(1),ne("",e.name,":\xa0")}}function L$(t,n){1&t&&(m(0,"span"),T(1,"|"),_())}function V$(t,n){if(1&t&&(m(0,"span"),T(1),Qe(2,"date"),_()),2&t){const e=E(5).$implicit;p(1),ne(" - ",sn(2,1,e.odt,"MMMM d, y"),"")}}function B$(t,n){if(1&t&&(m(0,"span"),D(1,V$,3,4,"span",17),_()),2&t){const e=E(4).$implicit;p(1),y("ngIf",e.odt)}}function j$(t,n){if(1&t&&(m(0,"span"),D(1,F$,2,1,"span",17),m(2,"a",35),T(3),_(),D(4,L$,2,0,"span",17),D(5,B$,2,1,"span",17),_()),2&t){const e=n.$implicit,i=n.last,r=n.first;p(1),y("ngIf",r),p(1),Re("href",e.url,Fe),p(1),ne("\xa0",e.name,""),p(1),y("ngIf",!i),p(1),y("ngIf",i)}}function H$(t,n){if(1&t&&(m(0,"div",37),D(1,j$,6,5,"span",38),_()),2&t){const e=E(2).$implicit;p(1),y("ngForOf",null==e?null:e.files)}}function $$(t,n){1&t&&(m(0,"span"),T(1,"(PDF)"),_())}function U$(t,n){if(1&t&&(m(0,"span"),T(1),Qe(2,"date"),_()),2&t){const e=E(3).$implicit;p(1),ne(" - ",sn(2,1,e.odt,"MMMM d, y"),"")}}function G$(t,n){1&t&&(m(0,"span"),T(1,"(PDF)"),_())}function W$(t,n){if(1&t&&(m(0,"span"),T(1),Qe(2,"date"),_()),2&t){const e=E(2).$implicit;p(1),ne(" - ",sn(2,1,e.odt,"MMMM d, y"),"")}}function z$(t,n){if(1&t&&(m(0,"span"),T(1,"-- "),m(2,"a",35),T(3,"\xa0"),pe(4,"span",39),T(5,"\xa0"),D(6,G$,2,0,"span",17),_(),D(7,W$,3,4,"span",17),_()),2&t){const e=E().$implicit,i=E(5);p(2),Re("href",e.url,Fe),p(2),y("innerHTML",e.name,ms),p(2),y("ngIf",i.endsWithPDF(e.url,e.name)),p(1),y("ngIf",e.odt)}}function q$(t,n){if(1&t&&(m(0,"span"),T(1),_()),2&t){const e=E(3).$implicit;p(1),ne("",e.name,":\xa0")}}function K$(t,n){1&t&&(m(0,"span"),T(1,"(PDF)"),_())}function Y$(t,n){1&t&&(m(0,"span"),T(1,"|"),_())}function J$(t,n){if(1&t&&(m(0,"span"),T(1),Qe(2,"date"),_()),2&t){const e=E(4).$implicit;p(1),ne(" - ",sn(2,1,e.odt,"MMMM d, y"),"")}}function Z$(t,n){if(1&t&&(m(0,"span"),D(1,J$,3,4,"span",17),_()),2&t){const e=E(3).$implicit;p(1),y("ngIf",e.odt)}}function Q$(t,n){if(1&t&&(m(0,"span"),D(1,q$,2,1,"span",17),m(2,"a",35),T(3),D(4,K$,2,0,"span",17),_(),D(5,Y$,2,0,"span",17),D(6,Z$,2,1,"span",17),_()),2&t){const e=n.$implicit,i=n.last,r=n.first,o=E(7);p(1),y("ngIf",r),p(1),Re("href",e.url,Fe),p(1),ne("\xa0",e.name," "),p(1),y("ngIf",o.endsWithPDF(e.url,e.name)),p(1),y("ngIf",!i),p(1),y("ngIf",i)}}function X$(t,n){if(1&t&&(m(0,"span"),D(1,Q$,7,6,"span",38),_()),2&t){const e=E().$implicit;p(1),y("ngForOf",null==e?null:e.files)}}function e5(t,n){1&t&&(m(0,"span"),pe(1,"br"),_())}function t5(t,n){if(1&t&&(m(0,"span"),T(1),Qe(2,"date"),_()),2&t){const e=E(5).$implicit;p(1),ne(" - ",sn(2,1,e.odt,"MMMM d, y"),"")}}function n5(t,n){if(1&t&&(m(0,"span"),D(1,t5,3,4,"span",17),_()),2&t){const e=E(4).$implicit;p(1),y("ngIf",e.odt)}}function i5(t,n){if(1&t&&(m(0,"span",41),D(1,z$,8,4,"span",17),D(2,X$,2,1,"span",17),D(3,e5,2,0,"span",17),D(4,n5,2,1,"span",17),_()),2&t){const e=n.$implicit,i=n.last;p(1),y("ngIf",!e.files),p(1),y("ngIf",e.files),p(1),y("ngIf",!i),p(1),y("ngIf",i)}}function r5(t,n){if(1&t&&(m(0,"div",37)(1,"a",35),pe(2,"span",39),T(3,"\xa0"),D(4,$$,2,0,"span",17),_(),D(5,U$,3,4,"span",17),pe(6,"br"),D(7,i5,5,4,"span",40),_()),2&t){const e=E(2).$implicit,i=E(2);p(1),Re("href",e.url,Fe),p(1),y("innerHTML",e.cvrname,ms),p(2),y("ngIf",i.endsWithPDF(e.url,e.cvrname)),p(1),y("ngIf",e.odt),p(2),y("ngForOf",null==e?null:e.pkg)}}function o5(t,n){1&t&&(m(0,"span"),T(1,"(PDF)"),_())}function s5(t,n){if(1&t&&(m(0,"span"),T(1),Qe(2,"date"),_()),2&t){const e=E(3).$implicit;p(1),ne(" - ",sn(2,1,e.odt,"MMMM d, y"),"")}}function a5(t,n){if(1&t&&(m(0,"span"),T(1),Qe(2,"date"),_()),2&t){const e=E().$implicit;p(1),ne(" - ",sn(2,1,e.odt,"MMMM d, y"),"")}}function l5(t,n){1&t&&(m(0,"span"),pe(1,"br"),_())}function c5(t,n){1&t&&pe(0,"span")}function u5(t,n){if(1&t&&(m(0,"span",41)(1,"span"),T(2,"-- "),pe(3,"span",39),D(4,a5,3,4,"span",17),_(),D(5,l5,2,0,"span",17),D(6,c5,1,0,"span",17),_()),2&t){const e=n.$implicit,i=n.last;p(3),y("innerHTML",e.name,ms),p(1),y("ngIf",e.odt),p(1),y("ngIf",!i),p(1),y("ngIf",i)}}function d5(t,n){if(1&t&&(m(0,"div",37)(1,"a",42),T(2),D(3,o5,2,0,"span",17),_(),D(4,s5,3,4,"span",17),pe(5,"br"),D(6,u5,7,4,"span",40),_()),2&t){const e=E(2).$implicit,i=E(2);p(1),Re("href",e.url,Fe),p(1),ne("",e.cvrname," "),p(1),y("ngIf",i.endsWithPDF(e.url,e.cvrname)),p(1),y("ngIf",e.odt),p(2),y("ngForOf",null==e?null:e.tpkg)}}function f5(t,n){1&t&&(m(0,"span"),T(1,"(PDF)"),_())}function h5(t,n){1&t&&(m(0,"span"),pe(1,"br"),_())}function p5(t,n){if(1&t&&(m(0,"span"),T(1),Qe(2,"date"),_()),2&t){const e=E(2).$implicit;p(1),ne(" - ",sn(2,1,e.odt,"MMMM d, y"),"")}}function g5(t,n){if(1&t&&(m(0,"span"),D(1,p5,3,4,"span",17),_()),2&t){const e=E().$implicit;p(1),y("ngIf",e.odt)}}function m5(t,n){if(1&t&&(m(0,"span"),T(1),_()),2&t){const e=E(5).$implicit;p(1),ne("",e.name,":\xa0")}}function _5(t,n){1&t&&(m(0,"span"),T(1,"(PDF)"),_())}function v5(t,n){1&t&&(m(0,"span"),T(1,"|"),_())}function y5(t,n){if(1&t&&(m(0,"span"),T(1),Qe(2,"date"),_()),2&t){const e=E(3).$implicit;p(1),ne(" - ",sn(2,1,e.odt,"MMMM d, y"),"")}}function b5(t,n){if(1&t&&(m(0,"span"),D(1,y5,3,4,"span",17),_()),2&t){const e=E(2).$implicit;p(1),y("ngIf",e.odt)}}function D5(t,n){if(1&t&&(m(0,"span"),D(1,m5,2,1,"span",17),m(2,"a",35),T(3),D(4,_5,2,0,"span",17),_(),D(5,v5,2,0,"span",17),D(6,b5,2,1,"span",17),_()),2&t){const e=n.$implicit,i=n.last,r=n.first,o=E(6);p(1),y("ngIf",r),p(1),Re("href",e.url,Fe),p(1),ne("\xa0",e.name," "),p(1),y("ngIf",o.endsWithPDF(e.url,e.name)),p(1),y("ngIf",!i),p(1),y("ngIf",i)}}function w5(t,n){if(1&t&&(m(0,"span")(1,"a",35),T(2),D(3,f5,2,0,"span",17),_(),D(4,h5,2,0,"span",17),D(5,g5,2,1,"span",17),D(6,D5,7,6,"span",38),_()),2&t){const e=n.$implicit,i=n.last,r=E(5);p(1),Re("href",e.url,Fe),p(1),ne("",e.name," "),p(1),y("ngIf",r.endsWithPDF(e.url,e.name)),p(1),y("ngIf",!i),p(1),y("ngIf",i),p(1),y("ngForOf",null==e?null:e.files)}}function C5(t,n){if(1&t&&(m(0,"div",37),D(1,w5,7,6,"span",38),_()),2&t){const e=E(2).$implicit;p(1),y("ngForOf",null==e?null:e.bdl)}}function S5(t,n){if(1&t&&(m(0,"span"),D(1,k$,5,4,"div",36),D(2,H$,2,1,"div",36),D(3,r5,8,5,"div",36),D(4,d5,7,5,"div",36),D(5,C5,2,1,"div",36),_()),2&t){const e=E().$implicit;p(1),y("ngIf",e.name&&!e.files),p(1),y("ngIf",e.name&&e.files),p(1),y("ngIf",e.pkg),p(1),y("ngIf",e.tpkg),p(1),y("ngIf",e.bdl)}}function T5(t,n){1&t&&(m(0,"span"),T(1,"Conference Call\xa0"),_())}function E5(t,n){if(1&t&&(m(0,"span"),T(1),_()),2&t){const e=E(2).$implicit;p(1),ne("\xa0",e.name,"")}}function M5(t,n){1&t&&(m(0,"span"),T(1,"\xa0Tealbook accessible materials"),_())}function N5(t,n){1&t&&(m(0,"span"),T(1,"PDF"),_())}function I5(t,n){1&t&&(m(0,"span"),T(1,"ZIP"),_())}function O5(t,n){if(1&t&&(m(0,"span")(1,"div",33),D(2,T5,2,0,"span",17),D(3,E5,2,1,"span",17),D(4,M5,2,0,"span",17),_(),m(5,"div",34)(6,"a",35),D(7,N5,2,0,"span",17),D(8,I5,2,0,"span",17),_()()()),2&t){const e=E().$implicit;p(2),y("ngIf",e.mtg.includes("Call")),p(1),y("ngIf",!e.url.includes("zip")&&!e.name.includes("Accessible")),p(1),y("ngIf",e.url.includes("zip")||e.name.includes("Accessible")),p(2),Re("href",e.url,Fe),p(1),y("ngIf",!e.url.includes("zip")),p(1),y("ngIf",e.url.includes("zip"))}}function A5(t,n){1&t&&(m(0,"span"),T(1,"Conference Call\xa0"),_())}function x5(t,n){1&t&&(m(0,"span"),T(1,"\xa0Individual Projections"),_())}function R5(t,n){1&t&&(m(0,"span"),T(1,"\xa0Participant Key"),_())}function P5(t,n){1&t&&(m(0,"span"),T(1,"\xa0Accessible materials"),_())}function k5(t,n){1&t&&(m(0,"span"),T(1,"PDF"),_())}function F5(t,n){1&t&&(m(0,"span"),T(1,"HTML"),_())}function L5(t,n){if(1&t&&(m(0,"span")(1,"div",33),D(2,A5,2,0,"span",17),T(3),Qe(4,"typename"),D(5,x5,2,0,"span",17),D(6,R5,2,0,"span",17),D(7,P5,2,0,"span",17),_(),m(8,"div",34)(9,"a",35),D(10,k5,2,0,"span",17),D(11,F5,2,0,"span",17),_()()()),2&t){const e=E().$implicit;p(2),y("ngIf",e.mtg.includes("Call")),p(1),ne(" ",gi(4,8,e.type),": "),p(2),y("ngIf",e.url.includes("pdf")&&e.name.includes("Projections")),p(1),y("ngIf",e.url.includes("pdf")&&e.name.includes("Key")),p(1),y("ngIf",e.url.includes("htm")),p(2),Re("href",e.url,Fe),p(1),y("ngIf",e.url.includes(".pdf")),p(1),y("ngIf",e.url.includes(".htm"))}}function V5(t,n){1&t&&(m(0,"span"),T(1,"Conference Call\xa0"),_())}function B5(t,n){1&t&&(m(0,"span"),T(1,"\xa0accessible"),_())}function j5(t,n){1&t&&(m(0,"span"),T(1,"PDF"),_())}function H5(t,n){1&t&&(m(0,"span"),T(1,"HTML"),_())}function $5(t,n){if(1&t&&(m(0,"span")(1,"div",33),D(2,V5,2,0,"span",17),T(3),Qe(4,"typename"),D(5,B5,2,0,"span",17),_(),m(6,"div",34)(7,"a",35),D(8,j5,2,0,"span",17),D(9,H5,2,0,"span",17),_()()()),2&t){const e=E().$implicit;p(2),y("ngIf",e.mtg.includes("Call")),p(1),ne(" ",gi(4,6,e.type)," "),p(2),y("ngIf",e.name.includes("Accessible")),p(2),Re("href",e.url,Fe),p(1),y("ngIf",e.url.includes(".pdf")),p(1),y("ngIf",!e.url.includes(".pdf"))}}function U5(t,n){1&t&&(m(0,"span"),T(1,"Conference Call\xa0"),_())}function G5(t,n){if(1&t&&(m(0,"span")(1,"div",33),D(2,U5,2,0,"span",17),T(3),_(),m(4,"div",34)(5,"a",35),T(6,"PDF"),_()()()),2&t){const e=E().$implicit;p(2),y("ngIf",e.mtg.includes("Call")),p(1),ne(" ",e.name," "),p(2),Re("href",e.url,Fe)}}function W5(t,n){if(1&t&&(m(0,"span")(1,"div",33),T(2),Qe(3,"typename"),Qe(4,"name"),_(),m(5,"div",34)(6,"a",35),T(7,"PDF"),_()()()),2&t){const e=E().$implicit;p(2),Cf(" ",gi(3,3,e.type),"",gi(4,5,e.name)," "),p(4),Re("href",e.url,Fe)}}function z5(t,n){if(1&t&&(m(0,"span"),pe(1,"div",43),m(2,"div",34)(3,"a",35),T(4,"HTML"),_()()()),2&t){const e=E().$implicit;p(1),y("innerHtml",e.name,ms),p(2),Re("href",e.url,Fe)}}function q5(t,n){1&t&&(m(0,"span"),T(1,"Conference Call\xa0"),_())}function K5(t,n){1&t&&(m(0,"span"),T(1,"ZIP"),_())}function Y5(t,n){1&t&&(m(0,"span"),T(1,"PDF"),_())}function J5(t,n){1&t&&(m(0,"span"),T(1,"HTML"),_())}function Z5(t,n){if(1&t&&(m(0,"span")(1,"div",33),D(2,q5,2,0,"span",17),T(3),Qe(4,"typename"),_(),m(5,"div",34)(6,"a",35),D(7,K5,2,0,"span",17),D(8,Y5,2,0,"span",17),D(9,J5,2,0,"span",17),_()()()),2&t){const e=E(2).$implicit;p(2),y("ngIf",e.mtg.includes("Call")),p(1),ne(" ",gi(4,6,e.type)," "),p(3),Re("href",e.url,Fe),p(1),y("ngIf",e.url.includes("zip")),p(1),y("ngIf",e.url.includes(".pdf")),p(1),y("ngIf",e.url.includes("htm"))}}function Q5(t,n){if(1&t&&(m(0,"span")(1,"div",33),T(2),Qe(3,"typename"),_()()),2&t){const e=E(4).$implicit;p(2),ne(" ",gi(3,1,e.type)," ")}}function X5(t,n){1&t&&(m(0,"span"),T(1,"Conference call ROPA:\xa0"),_())}function eU(t,n){1&t&&(m(0,"span"),T(1,"|"),_())}function tU(t,n){if(1&t&&(m(0,"span")(1,"div",37),D(2,X5,2,0,"span",17),T(3,"See \xa0"),m(4,"a",35),T(5),_(),T(6,"\xa0record"),D(7,eU,2,0,"span",17),_()()),2&t){const e=E(),i=e.first,r=e.$implicit,o=e.last;p(2),y("ngIf",i),p(2),Re("href",r.url,Fe),p(1),jt(r.notes),p(2),y("ngIf",!o)}}function nU(t,n){if(1&t&&(m(0,"span"),T(1,"Conference call Minutes:\xa0See end of minutes of\xa0"),m(2,"a",35),T(3),_(),T(4,"\xa0meeting"),_()),2&t){const e=E(2).$implicit;p(2),Re("href",e.url,Fe),p(1),ne("\xa0 ",e.link,"")}}function iU(t,n){1&t&&pe(0,"span")}function rU(t,n){if(1&t&&(m(0,"span")(1,"div",37),D(2,nU,5,2,"span",17),D(3,iU,1,0,"span",17),_()()),2&t){const e=E(),i=e.first,r=e.last;p(2),y("ngIf",i),p(1),y("ngIf",r)}}function oU(t,n){if(1&t&&(m(0,"span",47),D(1,Q5,4,3,"span",17),D(2,tU,8,4,"span",17),D(3,rU,4,2,"span",17),_()),2&t){const e=n.$implicit,i=n.first;p(1),y("ngIf",!(null!=e.link&&e.link.length)&&!(null!=e.notes&&e.notes.length)&&i),p(1),y("ngIf",null==e.notes?null:e.notes.length),p(1),y("ngIf",null==e.link?null:e.link.length)}}function sU(t,n){if(1&t&&(m(0,"span")(1,"a",35),T(2,"HTML"),_()()),2&t){const e=E(2).$implicit;p(1),Re("href",e.url,Fe)}}function aU(t,n){1&t&&(m(0,"span"),T(1," | "),_())}function lU(t,n){if(1&t&&(m(0,"a",35),T(1),_(),D(2,aU,2,0,"span",17)),2&t){const e=E(2),i=e.$implicit,r=e.last;Re("href",i.url,Fe),p(1),jt(i.name),p(1),y("ngIf",!r)}}function cU(t,n){if(1&t&&(m(0,"span"),D(1,sU,3,1,"span",44),D(2,lU,3,3,"ng-template",null,48,ln),_()),2&t){const e=Dt(3),i=E(4).$implicit;p(1),y("ngIf",1===i.files.length)("ngIfElse",e)}}function uU(t,n){if(1&t&&(m(0,"span"),D(1,cU,4,2,"span",17),_()),2&t){const e=n.$implicit;p(1),y("ngIf",!(null!=e.link&&e.link.length||null!=e.notes&&e.notes.length))}}function dU(t,n){if(1&t&&(D(0,oU,4,3,"span",46),m(1,"div",34),D(2,uU,2,1,"span",38),_()),2&t){const e=E(2).$implicit;y("ngForOf",null==e?null:e.files),p(2),y("ngForOf",null==e?null:e.files)}}function fU(t,n){if(1&t&&(m(0,"span"),D(1,Z5,10,8,"span",44),D(2,dU,3,2,"ng-template",null,45,ln),_()),2&t){const e=Dt(3),i=E().$implicit;p(1),y("ngIf",i.name)("ngIfElse",e)}}function hU(t,n){if(1&t&&(m(0,"em"),T(1),Qe(2,"date"),_()),2&t){const e=E().$implicit;p(1),jt(sn(2,1,e.dt,"MMMM d, y"))}}function pU(t,n){if(1&t&&(m(0,"em"),T(1),Qe(2,"date"),_()),2&t){const e=E().$implicit;p(1),jt(sn(2,1,e.d,"MMMM d, y"))}}function gU(t,n){if(1&t&&(m(0,"div",30)(1,"div",19)(2,"strong"),T(3),_()(),D(4,O$,11,9,"span",31),D(5,x$,8,5,"span",31),D(6,S5,6,5,"span",31),D(7,O5,9,6,"span",31),D(8,L5,12,10,"span",31),D(9,$5,10,8,"span",31),D(10,G5,7,3,"span",31),D(11,W5,8,7,"span",31),D(12,z5,5,2,"span",31),D(13,fU,4,2,"span",32),m(14,"div",19),D(15,hU,3,4,"em",17),D(16,pU,3,4,"em",17),_()()),2&t){const e=n.$implicit;y("ngSwitch",e.type),p(3),jt(e.mtg),p(1),y("ngSwitchCase","Grbk"),p(1),y("ngSwitchCase","GrBl"),p(1),y("ngSwitchCase","Memo"),p(1),y("ngSwitchCase","Tl"),p(1),y("ngSwitchCase","SEP"),p(1),y("ngSwitchCase","PrMat"),p(1),y("ngSwitchCase","HMin"),p(1),y("ngSwitchCase","ExCommMin"),p(1),y("ngSwitchCase","Pl"),p(3),y("ngIf",e.dt),p(1),y("ngIf",!e.dt)}}function mU(t,n){if(1&t){const e=lt();m(0,"div",14)(1,"div",15)(2,"h4")(3,"a",16),T(4,"FOMC materials"),_()()(),D(5,S$,2,0,"div",17),m(6,"div",18)(7,"div",19)(8,"strong")(9,"span"),T(10,"Meeting Date"),_()(),m(11,"div",20)(12,"a",21),B("click",function(){return ve(e),ye(E().sortTypeMtg("old"))}),m(13,"span",22),T(14,"Sort Meeting Date Ascending"),_()(),m(15,"a",23),B("click",function(){return ve(e),ye(E().sortTypeMtg("recent"))}),m(16,"span",22),T(17,"Sort Meeting Date Descending"),_()()()(),m(18,"div",24)(19,"strong")(20,"span"),T(21,"Type"),_()(),m(22,"div",20)(23,"a",25),B("click",function(){return ve(e),ye(E().sortType("asc"))}),m(24,"span",22),T(25,"Sort Document Type Ascending"),_()(),m(26,"a",26),B("click",function(){return ve(e),ye(E().sortType("desc"))}),m(27,"span",22),T(28,"Sort Document Type Descending"),_()()()(),m(29,"div",19)(30,"strong")(31,"span"),T(32,"Document Date"),_()(),m(33,"div",20)(34,"a",27),B("click",function(){return ve(e),ye(E().sortTypeDocDate("old"))}),m(35,"span",22),T(36,"Sort Document Dates Ascending"),_()(),m(37,"a",28),B("click",function(){return ve(e),ye(E().sortTypeDocDate("recent"))}),m(38,"span",22),T(39,"Sort Document Dates Descending"),_()()()()(),D(40,gU,17,13,"div",29),_()}if(2&t){const e=E();p(5),y("ngIf",0===e.pagedItems.length),p(35),y("ngForOf",e.pagedItems)}}const _U=function(t){return{active:t}};function vU(t,n){if(1&t){const e=lt();m(0,"li",50)(1,"a",51),B("click",function(){const o=ve(e).$implicit;return ye(E(2).setPage(o))}),T(2),_()()}if(2&t){const e=n.$implicit,i=E(2);y("ngClass",pi(2,_U,i.pager.currentPage===e)),p(2),jt(e)}}const fu=function(t){return{disabled:t}};function yU(t,n){if(1&t){const e=lt();m(0,"ul",49)(1,"li",50)(2,"a",51),B("click",function(){return ve(e),ye(E().setPage(1))}),T(3,"First"),_()(),m(4,"li",50)(5,"a",51),B("click",function(){ve(e);const r=E();return ye(r.setPage(r.pager.currentPage-1))}),T(6,"Previous"),_()(),D(7,vU,3,4,"li",52),m(8,"li",50)(9,"a",51),B("click",function(){ve(e);const r=E();return ye(r.setPage(r.pager.currentPage+1))}),T(10,"Next"),_()(),m(11,"li",50)(12,"a",51),B("click",function(){ve(e);const r=E();return ye(r.setPage(r.pager.totalPages))}),T(13,"Last"),_()()()}if(2&t){const e=E();p(1),y("ngClass",pi(5,fu,1===e.pager.currentPage)),p(3),y("ngClass",pi(7,fu,1===e.pager.currentPage)),p(3),y("ngForOf",e.pager.pages),p(1),y("ngClass",pi(9,fu,e.pager.currentPage===e.pager.totalPages)),p(3),y("ngClass",pi(11,fu,e.pager.currentPage===e.pager.totalPages))}}let bU=(()=>{class t{constructor(e,i,r,o){this.documentService=e,this.pagerService=r,this.meetingDateProvider=o,this.startmodel=null,this.endmodel=null,this.filteredDocuments=[],this.pagedItems=[],this.copyDocuments=[],this.sortedDocuments=[],this.docTypes=[],this.pager={},this.storedSelections="all",this.storedDateSort="dd",this.sortTypeDirection="none",this.sortDateDirection="dd";let s=new Date(this.meetingDateProvider.getMeetingDate());i.minDate={year:1936,month:1,day:1},i.maxDate={year:s.getFullYear(),month:s.getMonth()+1,day:s.getDate()},window.sessionStorage.getItem("dateForTypeSortFilter")||sessionStorage.setItem("dateForTypeSortFilter","dd");let a=window.sessionStorage.getItem("fromFilter"),l=window.sessionStorage.getItem("toFilter");if(a){const f=JSON.parse(a);this.startmodel=new Date(f)}if(l){const f=JSON.parse(l);this.endmodel=new Date(f)}let c=window.sessionStorage.getItem("typeFilter");c&&(this.storedSelections=window.sessionStorage.getItem("typeFilter")?JSON.parse(c):"all");let u=window.sessionStorage.getItem("pageFilter");u&&(this.storedPage=window.sessionStorage.getItem("pageFilter")?JSON.parse(u):"1");let d=window.sessionStorage.getItem("sortFilter");if(d)if("ta"===d.toString()||"td"===d.toString()){let f=window.sessionStorage.getItem("dateForTypeSortFilter");f?(this.storedDateSort=window.sessionStorage.getItem("dateForTypeSortFilter")?f.toString():"dd",this.storedSort=d?d.toString().concat(this.storedDateSort.toString()):"dd",sessionStorage.setItem("sortFilter",this.storedSort)):this.storedSort=d?d.toString():"dd"}else this.storedSort=d?d.toString():"dd",sessionStorage.setItem("sortFilter",this.storedSort);else this.storedSort="dd",sessionStorage.setItem("sortFilter",this.storedSort);window.sessionStorage.getItem("fromFilter")&&this.getStateFilteredData(this.startmodel,this.endmodel,this.storedSelections,this.storedPage)}ngOnInit(){window.sessionStorage.getItem("fromFilter")?this.getStateFilteredData(this.startmodel,this.endmodel,this.storedSelections,this.storedPage):this.getDataStart(this.storedPage)}getDataStart(e=1){const i=new Date("1936-01-01");this.latestDate=this.meetingDateProvider.getMeetingDate();const r=new Date(this.latestDate),o=JSON.stringify(i),s=JSON.stringify(r);window.sessionStorage.setItem("fromFilter",o),window.sessionStorage.setItem("toFilter",s),this.documentService.getJoinedData().subscribe(([a,l,c])=>{this.filteredDocuments=a.mtgitems.concat(l.mtgitems).concat(c.mtgitems),this.pagedItems=this.getStateSortedData(this.filteredDocuments)},a=>{throw a},()=>this.pagedItems=this.setSomeStatePageFirstCall(e))}getFilteredData(e,i,r){null===e&&(e=new Date("1936-01-01")),null===i&&(i=new Date),0===r.length&&(r="all"),this.fromDateTime=new Date(e.getFullYear(),e.getMonth(),e.getDate()-1,12,0,0),this.toDateTime=new Date(i.getFullYear(),i.getMonth(),i.getDate(),23,0,0);const o=JSON.stringify(e),s=JSON.stringify(i),a=JSON.stringify(r);window.sessionStorage.setItem("fromFilter",o),window.sessionStorage.setItem("toFilter",s),window.sessionStorage.setItem("typeFilter",a),this.documentService.getFilterJoinedData(this.fromDateTime,this.toDateTime,r).subscribe(([l,c,u])=>{this.filteredDocuments=l.concat(c).concat(u),this.pagedItems=this.getStateSortedData(this.filteredDocuments)},l=>{throw l},()=>this.pagedItems=this.setSomeStatePageFirstCall(1))}getStateFilteredData(e,i,r,o=1){null==e&&(e=new Date("1936-01-01")),this.latestDate=this.meetingDateProvider.getMeetingDate(),null==i&&(i=new Date(this.latestDate)),0===r.length&&(r="all"),this.fromDateTime=new Date(e.getFullYear(),e.getMonth(),e.getDate()+1,12,0,0),this.toDateTime=new Date(i.getFullYear(),i.getMonth(),i.getDate(),23,0,0);const s=JSON.stringify(e),a=JSON.stringify(i),l=JSON.stringify(r);window.sessionStorage.setItem("fromFilter",s),window.sessionStorage.setItem("toFilter",a),window.sessionStorage.setItem("typeFilter",l),this.documentService.getFilterJoinedData(this.fromDateTime,this.toDateTime,r).subscribe(([c,u,d])=>{this.filteredDocuments=c.concat(u,d),this.pagedItems=this.getStateSortedData(this.filteredDocuments)},c=>{throw c},()=>this.pagedItems=this.setStatePageFirstCall(o))}getStateSortedData(e){switch(console.log("this is: "+this.storedSort.toString()),this.storedSort.toString()){case"dd":return e.sort(this.sortByMtgDateDESC);case"da":return e.sort(this.sortByMtgDate);case"td":return e.sort(this.sortByTypeDESC);case"ta":return e.sort(this.sortByType);case"dtd":return e.sort(this.sortByDocDateDESC);case"dta":return e.sort(this.sortByDocDate);case"tddta":default:return e.sort(this.multiColSortDateThenTypeTDDTA);case"tadtd":return e.sort(this.multiColSortDateThenTypeTADTD);case"tddd":return e.sort(this.multiColSortDateThenTypeTDDD);case"tada":return e.sort(this.multiColSortDateThenTypeTADA);case"tddtd":return e.sort(this.multiColSortDateThenTypeTDDTD);case"tadta":return e.sort(this.multiColSortDateThenTypeTADTA);case"tdda":return e.sort(this.multiColSortDateThenTypeTDDA);case"tadd":return e.sort(this.multiColSortDateThenTypeTADD)}}setStatePageFirstCall(e=1){console.log("FirstCall with State");const i=JSON.stringify(e);return window.sessionStorage.setItem("pageFilter",i),this.pager=this.pagerService.getPager(this.pagedItems.length,e),this.pagedItems.slice(this.pager.startIndex,this.pager.endIndex+1)}setSomeStatePageFirstCall(e=1){console.log("FirstCall with Some State");const i=JSON.stringify(e);return window.sessionStorage.setItem("pageFilter",i),this.pager=this.pagerService.getPager(this.pagedItems.length,e),this.pagedItems.slice(this.pager.startIndex,this.pager.endIndex+1)}sortType(e){if("desc"===e){let i=window.sessionStorage.getItem("dateForTypeSortFilter");if(i){this.storedDateSort=window.sessionStorage.getItem("dateForTypeSortFilter")?i.toString():"dd";let r=window.sessionStorage.getItem("sortFilter");this.storedSort=r?null==r?void 0:r.toString().concat(this.storedDateSort.toString()):"td"+this.storedDateSort.toString(),sessionStorage.setItem("sortFilter",this.storedSort)}else{let r=window.sessionStorage.getItem("sortFilter");this.storedSort=r?r.toString():"tddd",sessionStorage.setItem("sortFilter",this.storedSort)}this.sortTypeDirection="desc",this.pagedItems=this.filteredDocuments.sort(this.sortByTypeDESC),this.sortedDocuments=this.filteredDocuments.sort(this.sortByTypeDESC),this.setPage(this.pager.currentPage)}else{let i=window.sessionStorage.getItem("dateForTypeSortFilter");if(i){this.storedDateSort=window.sessionStorage.getItem("dateForTypeSortFilter")?i.toString():"dd";let r=window.sessionStorage.getItem("sortFilter");this.storedSort=r?r.toString().concat(this.storedDateSort.toString()):"ta"+this.storedDateSort.toString(),sessionStorage.setItem("sortFilter",this.storedSort)}else{let r=window.sessionStorage.getItem("sortFilter");this.storedSort=r?r.toString():"tadd",sessionStorage.setItem("sortFilter",this.storedSort)}this.sortTypeDirection="asc",this.pagedItems=this.filteredDocuments.sort(this.sortByType),this.sortedDocuments=this.filteredDocuments.sort(this.sortByType),this.setPage(this.pager.currentPage)}}sortByType(e,i){return e.type>i.type?1:-1}sortByTypeDESC(e,i){return e.type<i.type?1:-1}endsWithPDF(e,i){return"pdf"!==i.toLocaleLowerCase()&&"(pdf)"!==i.toLocaleLowerCase()&&e.toLocaleLowerCase().endsWith(".pdf")}sortTypeDocDate(e){"recent"===e?(this.SortSelected="dtd",sessionStorage.setItem("sortFilter",this.SortSelected),this.pagedItems=this.filteredDocuments.sort(this.sortByDocDateDESC),this.setPage(this.pager.currentPage),this.sortDateDirection="dtd",this.storedDateSort="dtd",sessionStorage.setItem("dateForTypeSortFilter",this.storedDateSort)):(this.SortSelected="dta",sessionStorage.setItem("sortFilter",this.SortSelected),this.pagedItems=this.filteredDocuments.sort(this.sortByDocDate),this.setPage(this.pager.currentPage),this.sortDateDirection="dta",this.storedDateSort="dta",sessionStorage.setItem("dateForTypeSortFilter",this.storedDateSort))}sortByDocDate(e,i){(void 0===e.dt||0===e.dt)&&(e.dt=e.d),(void 0===i.dt||0===i.dt)&&(i.dt=i.d);const r=Number(new Date(e.dt)),o=Number(new Date(i.dt));return r>o?1:r===o?0:-1}sortByDocDateDESC(e,i){e.dt||(e.dt=e.d),i.dt||(i.dt=i.d);const r=Number(new Date(e.dt)),o=Number(new Date(i.dt));return r<o?1:r===o?0:-1}sortTypeMtg(e){"recent"===e?(this.SortSelected="dd",sessionStorage.setItem("sortFilter",this.SortSelected),this.pagedItems=this.filteredDocuments.sort(this.sortByMtgDateDESC),this.setPage(this.pager.currentPage),this.sortDateDirection="dd",this.storedDateSort="dd",sessionStorage.setItem("dateForTypeSortFilter",this.storedDateSort)):(this.SortSelected="da",sessionStorage.setItem("sortFilter",this.SortSelected),this.pagedItems=this.filteredDocuments.sort(this.sortByMtgDate),this.setPage(this.pager.currentPage),this.sortDateDirection="da",this.storedDateSort="da",sessionStorage.setItem("dateForTypeSortFilter",this.storedDateSort))}sortByMtgDate(e,i){return e.d>i.d?1:e.d===i.d?0:-1}sortByMtgDateDESC(e,i){return e.d<i.d?1:e.d===i.d?0:-1}sortTypeAfterDate(e){if("desc"===e){let r=window.sessionStorage.getItem("dateForTypeSortFilter");r?(this.storedDateSort=window.sessionStorage.getItem("dateForTypeSortFilter")?r.toString():"dd",this.storedSort="td"+this.storedDateSort.toString(),this.sortDateDirection=this.storedDateSort.toString(),sessionStorage.setItem("sortFilter",this.storedSort)):(this.storedSort="tddd",this.sortDateDirection="dd",sessionStorage.setItem("sortFilter",this.storedSort)),this.sortedDocuments=this.sortDateDirection.endsWith("d")?this.filteredDocuments.sort(this.sortByDocDateDESC):this.filteredDocuments.sort(this.sortByDocDate),this.sortTypeDirection="desc",this.pagedItems=this.sortedDocuments.sort((o,s)=>{let a=0;return a=this.multiColSortDateThenType(o,s,"desc",this.sortDateDirection),a}),this.setPage(this.pager.currentPage)}else{var i=window.sessionStorage.getItem("dateForTypeSortFilter");i?(this.storedDateSort=window.sessionStorage.getItem("dateForTypeSortFilter")?i.toString():"dd",this.storedSort="ta"+this.storedDateSort.toString(),this.sortDateDirection=this.storedDateSort.toString(),sessionStorage.setItem("sortFilter",this.storedSort)):(this.storedSort="tadd",this.sortDateDirection="dd",sessionStorage.setItem("sortFilter",this.storedSort)),this.sortedDocuments=this.sortDateDirection.endsWith("d")?this.filteredDocuments.sort(this.sortByDocDateDESC):this.filteredDocuments.sort(this.sortByDocDate),this.sortTypeDirection="asc",this.pagedItems=this.sortedDocuments.sort((r,o)=>{let s=0;return s=this.multiColSortDateThenType(r,o,"asc",this.sortDateDirection),s}),this.setPage(this.pager.currentPage)}}multiColSortDateThenType(e,i,r,o){if(e.type<i.type)return"asc"===r?-1:1;if(e.type>i.type)return"asc"===r?1:-1;if("da"===o||"dd"===o){const s=Number(new Date(e.d)),a=Number(new Date(i.d));return"da"===o?s<a?-1:s===a?0:1:s<a?1:s===a?0:-1}{e.dt||(e.dt=e.d),i.dt||(i.dt=i.d);const s=Number(new Date(e.dt)),a=Number(new Date(i.dt));return"dta"===o?s<a?-1:s===a?0:1:s<a?1:s===a?0:-1}}multiColSortDateThenTypeTADA(e,i){const r=Number(new Date(e.d)),o=Number(new Date(i.d));return e.type===i.type?r<o?-1:r>o?1:0:e.type<i.type?-1:1}multiColSortDateThenTypeTDDD(e,i){const r=Number(new Date(e.d)),o=Number(new Date(i.d));return e.type===i.type?r>o?-1:r<o?1:0:e.type>i.type?-1:1}multiColSortDateThenTypeTADD(e,i){const r=Number(new Date(e.d)),o=Number(new Date(i.d));return e.type===i.type?r>o?-1:r<o?1:0:e.type<i.type?-1:1}multiColSortDateThenTypeTDDA(e,i){const r=Number(new Date(e.d)),o=Number(new Date(i.d));return e.type===i.type?r<o?-1:r>o?1:0:e.type>i.type?-1:1}multiColSortDateThenTypeTADTA(e,i){e.dt||(e.dt=e.d),i.dt||(i.dt=i.d);const r=Number(new Date(e.dt)),o=Number(new Date(i.dt));return e.type===i.type?r<o?-1:r>o?1:0:e.type<i.type?-1:1}multiColSortDateThenTypeTDDTD(e,i){e.dt||(e.dt=e.d),i.dt||(i.dt=i.d);const r=Number(new Date(e.dt)),o=Number(new Date(i.dt));return e.type===i.type?r>o?-1:r<o?1:0:e.type>i.type?-1:1}multiColSortDateThenTypeTADTD(e,i){e.dt||(e.dt=e.d),i.dt||(i.dt=i.d);const r=Number(new Date(e.dt)),o=Number(new Date(i.dt));return e.type===i.type?r>o?-1:r<o?1:0:e.type<i.type?-1:1}multiColSortDateThenTypeTDDTA(e,i){e.dt||(e.dt=e.d),i.dt||(i.dt=i.d);const r=Number(new Date(e.dt)),o=Number(new Date(i.dt));return e.type===i.type?r<o?-1:r>o?1:0:e.type>i.type?-1:1}setPage(e){if(e<1||e>this.pager.totalPages)return;const i=JSON.stringify(e);window.sessionStorage.setItem("pageFilter",i),this.pager=this.pagerService.getPager(this.filteredDocuments.length,e),this.pagedItems=this.filteredDocuments.slice(this.pager.startIndex,this.pager.endIndex+1)}setPageFirstCall(e=1){console.log("FirstCall");const i=JSON.stringify(e);return window.sessionStorage.setItem("pageFilter",i),this.pager=this.pagerService.getPager(this.filteredDocuments.length,e),this.storedSort&&null!==this.storedSort&&""!==this.storedSort?"dd"===this.storedSort?(console.log("got here to dd"),this.filteredDocuments.sort(this.sortByMtgDateDESC).slice(this.pager.startIndex,this.pager.endIndex+1)):"da"===this.storedSort?this.filteredDocuments.sort(this.sortByMtgDate).slice(this.pager.startIndex,this.pager.endIndex+1):"td"===this.storedSort?this.filteredDocuments.sort(this.sortByTypeDESC).slice(this.pager.startIndex,this.pager.endIndex+1):"ta"===this.storedSort?this.filteredDocuments.sort(this.sortByType).slice(this.pager.startIndex,this.pager.endIndex+1):"dtd"===this.storedSort?this.filteredDocuments.sort(this.sortByDocDateDESC).slice(this.pager.startIndex,this.pager.endIndex+1):"dta"===this.storedSort?this.filteredDocuments.sort(this.sortByDocDate).slice(this.pager.startIndex,this.pager.endIndex+1):"tddd"===this.storedSort?this.filteredDocuments.sort(this.multiColSortDateThenTypeTDDD).slice(this.pager.startIndex,this.pager.endIndex+1):"tada"===this.storedSort?this.filteredDocuments.sort(this.multiColSortDateThenTypeTADA).slice(this.pager.startIndex,this.pager.endIndex+1):"tddtd"===this.storedSort?this.filteredDocuments.sort(this.multiColSortDateThenTypeTDDTD).slice(this.pager.startIndex,this.pager.endIndex+1):"tadta"===this.storedSort?this.filteredDocuments.sort(this.multiColSortDateThenTypeTADTA).slice(this.pager.startIndex,this.pager.endIndex+1):"tdda"===this.storedSort?this.filteredDocuments.sort(this.multiColSortDateThenTypeTDDA).slice(this.pager.startIndex,this.pager.endIndex+1):"tadd"===this.storedSort?this.filteredDocuments.sort(this.multiColSortDateThenTypeTADD).slice(this.pager.startIndex,this.pager.endIndex+1):"tddta"===this.storedSort?this.filteredDocuments.sort(this.multiColSortDateThenTypeTDDTA).slice(this.pager.startIndex,this.pager.endIndex+1):"tadtd"===this.storedSort?(this.sortedDocuments=this.filteredDocuments.sort(this.sortByDocDateDESC),this.filteredDocuments=this.sortedDocuments.sort(this.sortByType).slice(this.pager.startIndex,this.pager.endIndex+1)):this.filteredDocuments.sort(this.sortByMtgDateDESC).slice(this.pager.startIndex,this.pager.endIndex+1):this.filteredDocuments.sort(this.sortByMtgDateDESC).slice(this.pager.startIndex,this.pager.endIndex+1)}clearSearchModel(e){sessionStorage.clear(),e.reset({}),this.storedPage=1,this.storedSelections="all",this.storedSort="dd",this.docTypePicker.ngOnInit(),this.childDatePicker.startmodel=new Date("1/1/1936"),this.latestDate=this.meetingDateProvider.getMeetingDate(),this.childDatePicker.endmodel=new Date(this.latestDate.toString().substring(0,4)+"/"+this.latestDate.toString().substring(5,2)+"/"+this.latestDate.toString().substring(8,2)),this.getDataStart()}}return t.\u0275fac=function(e){return new(e||t)(v(Lp),v(wa),v(fS),v(uu))},t.\u0275cmp=ot({type:t,selectors:[["ng-component"]],viewQuery:function(e,i){if(1&e&&(an(b$,7),an(D$,7)),2&e){let r;oe(r=se())&&(i.childDatePicker=r.first),oe(r=se())&&(i.docTypePicker=r.first)}},decls:17,vars:7,consts:[[1,"row"],[1,"col-md-12"],[1,"eventSearch","form-inline"],["appDateCompareValid","",3,"ngSubmit"],["f","ngForm"],[1,"cross-validation"],["ngbdate",""],["class","cross-validation-error-message alert alert-danger",4,"ngIf"],["types",""],["type","submit",1,"btn","btn-primary","fomc-filter",3,"disabled"],[1,"icon","icon__sm","icon--right","icon-more"],["class","panel panel-default",4,"ngIf"],["class","pagination",4,"ngIf"],[1,"cross-validation-error-message","alert","alert-danger"],[1,"panel","panel-default"],[1,"panel-heading"],["id","7744"],[4,"ngIf"],[1,"row","fomc-meeting","fomc-meeting--shaded"],[1,"fomc-meeting__month","col-xs-5","col-sm-3","col-md-3"],[1,"sortControls"],[1,"fomc-sort-button","ascending",2,"top","14px","left","115px",3,"click"],[1,"sr-only"],[1,"fomc-sort-button","descending",2,"top","30px","left","115px",3,"click"],["id","typeDiv",1,"fomc-meeting__month","col-xs-3","col-sm-3","col-md-6"],["type","submit","id","typeAscSpan",1,"fomc-sort-button","ascending",2,"top","14px","left","50px",3,"click"],["type","submit","id","typeDescSpan",1,"fomc-sort-button","descending",2,"top","30px","left","50px",3,"click"],["type","submit",1,"fomc-sort-button","ascending",2,"top","14px","left","130px",3,"click"],["type","submit",1,"fomc-sort-button","descending",2,"top","30px","left","130px",3,"click"],["class","row fomc-meeting",3,"ngSwitch",4,"ngFor","ngForOf"],[1,"row","fomc-meeting",3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"fomc-meeting__month","col-xs-5","col-sm-3","col-md-4"],[1,"fomc-meeting__month","col-xs-5","col-sm-3","col-md-2"],[3,"href"],["class","fomc-meeting__month col-xs-5 col-sm-3 col-md-6",4,"ngIf"],[1,"fomc-meeting__month","col-xs-5","col-sm-3","col-md-6"],[4,"ngFor","ngForOf"],[3,"innerHTML"],["class","indent",4,"ngFor","ngForOf"],[1,"indent"],["target","_blank",3,"href"],[1,"fomc-meeting__month","col-xs-5","col-sm-3","col-md-4",3,"innerHtml"],[4,"ngIf","ngIfElse"],["files_content",""],["width","50%","align","left",4,"ngFor","ngForOf"],["width","50%","align","left"],["mult_files",""],[1,"pagination"],[3,"ngClass"],["href","#!",3,"click"],[3,"ngClass",4,"ngFor","ngForOf"]],template:function(e,i){if(1&e){const r=lt();m(0,"div",0)(1,"div",1)(2,"div",2)(3,"form",3,4),B("ngSubmit",function(){ve(r);const s=Dt(7),a=Dt(11);return ye(i.getFilteredData(s.startmodel,s.endmodel,a.getSelectedTypesDT()))}),m(5,"div",5),pe(6,"app-calendar-picker",null,6),D(8,w$,2,0,"div",7),D(9,C$,2,0,"div",7),_(),pe(10,"app-doc-types",null,8),m(12,"button",9),T(13," Submit"),pe(14,"span",10),_()()()()(),D(15,mU,41,2,"div",11),D(16,yU,14,13,"ul",12)}if(2&e){const r=Dt(4);p(5),Ie("cross-validation-error",(null==r.errors?null:r.errors.dateCompareValid)&&(r.touched||r.dirty)),p(3),y("ngIf",r.invalid&&(r.touched||r.dirty)&&!(null!=r.errors&&r.errors.dateCompareValid)),p(1),y("ngIf",(null==r.errors?null:r.errors.dateCompareValid)&&(r.touched||r.dirty)),p(3),y("disabled",r.invalid),p(3),y("ngIf",i.filteredDocuments),p(1),y("ngIf",i.pager.pages&&i.pager.pages.length)}},dependencies:[S1,Vn,bi,ec,I1,O1,Wb,Nb,Qs,u$,g$,_$,x1,v$,y$],styles:[".fomc-sort-button[_ngcontent-%COMP%]{cursor:pointer}"]}),t})();const DU=function(){return[""]},wU=[{path:"",component:bU},{path:"error",component:(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ot({type:t,selectors:[["ng-component"]],decls:9,vars:2,consts:[[3,"routerLink"]],template:function(e,i){1&e&&(m(0,"h3"),T(1,"An error occurred."),_(),m(2,"p"),T(3," Please clear/reset your settings and try another "),m(4,"a",0),T(5,"search"),_(),T(6,". "),_(),m(7,"p"),T(8,"Administrators have been notified."),_()),2&e&&(p(4),y("routerLink",function Qy(t,n,e){const i=Lt()+t,r=N();return r[i]===Y?Zn(r,i,e?n.call(e):n()):function Es(t,n){return t[n]}(r,i)}(1,DU)))},dependencies:[Uc],encapsulation:2}),t})()}],CU=aV.forRoot(wU,{relativeLinkResolution:"legacy"});let SU=(()=>{class t{constructor(){this.title="Document Filter"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ot({type:t,selectors:[["app-root"]],decls:4,vars:1,template:function(e,i){1&e&&(m(0,"div")(1,"h3"),T(2),_(),pe(3,"router-outlet"),_()),2&e&&(p(2),ne(" ",i.title," "))},dependencies:[gp]}),t})(),TU=(()=>{class t extends Ca{fromModel(e){return e&&e.getFullYear?{year:e.getFullYear(),month:e.getMonth()+1,day:e.getDate()}:null}toModel(e){return e?new Date(e.year,e.month-1,e.day):null}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ze(t)))(i||t)}}(),t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})(),EU=(()=>{class t{constructor(e){this.injector=e}handleError(e){const i=this.injector.get(vt);console.log("URL: "+i.url),e instanceof Ap?(console.error("Backend returned status code: ",e.status),console.error("Response body:",e.message)):console.error("An error occurred:",e.message),i.navigate(["/error"])}}return t.\u0275fac=function(e){return new(e||t)(O(bt))},t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})(),MU=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=me({type:t,bootstrap:[SU]}),t.\u0275inj=fe({providers:[Lp,fS,{provide:Ca,useClass:TU},{provide:Sa,useClass:pS},wa,EU,uu,{provide:Vs,useFactory:NU,deps:[uu],multi:!0}],imports:[fk,hD,CU,MV,l$]}),t})();function NU(t){return()=>t.load()}(function Ux(){J0=!1})(),dk().bootstrapModule(MU).catch(t=>console.log(t))}},Ei=>{Ei(Ei.s=989)}]);