simple-button-ng-component
Version:
A reusable web component for a simple button
1 lines • 141 kB
JavaScript
"use strict";(self.webpackChunkrtm_ng_components=self.webpackChunkrtm_ng_components||[]).push([[792],{338:(kt,wt,Vs)=>{function io(e,t,n,r,o,i,s){try{var a=e[i](s),c=a.value}catch(l){return void n(l)}a.done?t(c):Promise.resolve(c).then(r,o)}let Qe=null;const st=Symbol("SIGNAL");function oe(e){const t=Qe;return Qe=e,t}const _t={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Pn(e){if((!Fn(e)||e.dirty)&&(e.dirty||1!==e.lastCleanEpoch)){if(!e.producerMustRecompute(e)&&!so(e))return void Ue(e);e.producerRecomputeValue(e),Ue(e)}}function Ue(e){e.dirty=!1,e.lastCleanEpoch=1}function Xn(e){return e&&(e.nextProducerIndex=0),oe(e)}function An(e,t){if(oe(t),e&&void 0!==e.producerNode&&void 0!==e.producerIndexOfThis&&void 0!==e.producerLastReadVersion){if(Fn(e))for(let n=e.nextProducerIndex;n<e.producerNode.length;n++)Ln(e.producerNode[n],e.producerIndexOfThis[n]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function so(e){Dr(e);for(let t=0;t<e.producerNode.length;t++){const n=e.producerNode[t],r=e.producerLastReadVersion[t];if(r!==n.version||(Pn(n),r!==n.version))return!0}return!1}function _r(e){if(Dr(e),Fn(e))for(let t=0;t<e.producerNode.length;t++)Ln(e.producerNode[t],e.producerIndexOfThis[t]);e.producerNode.length=e.producerLastReadVersion.length=e.producerIndexOfThis.length=0,e.liveConsumerNode&&(e.liveConsumerNode.length=e.liveConsumerIndexOfThis.length=0)}function Ln(e,t){if(function wr(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}(e),1===e.liveConsumerNode.length&&function Bs(e){return void 0!==e.producerNode}(e))for(let r=0;r<e.producerNode.length;r++)Ln(e.producerNode[r],e.producerIndexOfThis[r]);const n=e.liveConsumerNode.length-1;if(e.liveConsumerNode[t]=e.liveConsumerNode[n],e.liveConsumerIndexOfThis[t]=e.liveConsumerIndexOfThis[n],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,t<e.liveConsumerNode.length){const r=e.liveConsumerIndexOfThis[t],o=e.liveConsumerNode[t];Dr(o),o.producerIndexOfThis[r]=t}}function Fn(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function Dr(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}let Us=function sn(){throw new Error};let _i;function co(){return _i}function Bt(e){const t=_i;return _i=e,t}const _n=Symbol("NotFound");function ot(e){return"function"==typeof e}function Di(e){const n=e(r=>{Error.call(r),r.stack=(new Error).stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}Error;const lo=Di(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((r,o)=>`${o+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n});function Mr(e,t){if(e){const n=e.indexOf(t);0<=n&&e.splice(n,1)}}class xt{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(const i of n)i.remove(this);else n.remove(this);const{initialTeardown:r}=this;if(ot(r))try{r()}catch(i){t=i instanceof lo?i.errors:[i]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const i of o)try{Xs(i)}catch(s){t=t??[],s instanceof lo?t=[...t,...s.errors]:t.push(s)}}if(t)throw new lo(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Xs(t);else{if(t instanceof xt){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}}_hasParent(t){const{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){const{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){const{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&Mr(n,t)}remove(t){const{_finalizers:n}=this;n&&Mr(n,t),t instanceof xt&&t._removeParent(this)}}xt.EMPTY=(()=>{const e=new xt;return e.closed=!0,e})();const Ys=xt.EMPTY;function Ks(e){return e instanceof xt||e&&"closed"in e&&ot(e.remove)&&ot(e.add)&&ot(e.unsubscribe)}function Xs(e){ot(e)?e():e.unsubscribe()}const Vn={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},uo={setTimeout(e,t,...n){const{delegate:r}=uo;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){const{delegate:t}=uo;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Js(e){uo.setTimeout(()=>{const{onUnhandledError:t}=Vn;if(!t)throw e;t(e)})}function wi(){}const m=y("C",void 0,void 0);function y(e,t,n){return{kind:e,value:t,error:n}}let w=null;function k(e){if(Vn.useDeprecatedSynchronousErrorHandling){const t=!w;if(t&&(w={errorThrown:!1,error:null}),e(),t){const{errorThrown:n,error:r}=w;if(w=null,n)throw r}}else e()}class j extends xt{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Ks(t)&&t.add(this)):this.destination=ht}static create(t,n,r){return new ee(t,n,r)}next(t){this.isStopped?Fe(function M(e){return y("N",e,void 0)}(t),this):this._next(t)}error(t){this.isStopped?Fe(function E(e){return y("E",void 0,e)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Fe(m,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const q=Function.prototype.bind;function ne(e,t){return q.call(e,t)}class V{constructor(t){this.partialObserver=t}next(t){const{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){he(r)}}error(t){const{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){he(r)}else he(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){he(n)}}}class ee extends j{constructor(t,n,r){let o;if(super(),ot(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&Vn.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&ne(t.next,i),error:t.error&&ne(t.error,i),complete:t.complete&&ne(t.complete,i)}):o=t}this.destination=new V(o)}}function he(e){Vn.useDeprecatedSynchronousErrorHandling?function H(e){Vn.useDeprecatedSynchronousErrorHandling&&w&&(w.errorThrown=!0,w.error=e)}(e):Js(e)}function Fe(e,t){const{onStoppedNotification:n}=Vn;n&&uo.setTimeout(()=>n(e,t))}const ht={closed:!0,next:wi,error:function Re(e){throw e},complete:wi},ct="function"==typeof Symbol&&Symbol.observable||"@@observable";function qe(e){return e}let fe=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){const r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){const i=function je(e){return e&&e instanceof j||function Ye(e){return e&&ot(e.next)&&ot(e.error)&&ot(e.complete)}(e)&&Ks(e)}(n)?n:new ee(n,r,o);return k(()=>{const{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return new(r=Ne(r))((o,i)=>{const s=new ee({next:a=>{try{n(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(n)}[ct](){return this}pipe(...n){return function P(e){return 0===e.length?qe:1===e.length?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}(n)(this)}toPromise(n){return new(n=Ne(n))((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function Ne(e){var t;return null!==(t=e??Vn.Promise)&&void 0!==t?t:Promise}const U=Di(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Se=(()=>{class e extends fe{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){const r=new pe(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new U}next(n){k(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(n)}})}error(n){k(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;const{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){k(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return(null===(n=this.observers)||void 0===n?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){const{hasError:r,isStopped:o,observers:i}=this;return r||o?Ys:(this.currentObservers=null,i.push(n),new xt(()=>{this.currentObservers=null,Mr(i,n)}))}_checkFinalizedStatuses(n){const{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){const n=new fe;return n.source=this,n}}return e.create=(t,n)=>new pe(t,n),e})();class pe extends Se{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.next)||void 0===r||r.call(n,t)}error(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.error)||void 0===r||r.call(n,t)}complete(){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===n||n.call(t)}_subscribe(t){var n,r;return null!==(r=null===(n=this.source)||void 0===n?void 0:n.subscribe(t))&&void 0!==r?r:Ys}}class ie extends Se{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){const{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}}function re(e){return t=>{if(function K(e){return ot(e?.lift)}(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function Xe(e,t,n,r,o){return new ze(e,t,n,r,o)}class ze extends j{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:n}=this;super.unsubscribe(),!n&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function ge(e,t){return re((n,r)=>{let o=0;n.subscribe(Xe(r,i=>{r.next(e.call(t,i,o++))}))})}class p extends Error{code;constructor(t,n){super(function z(e,t){return`${function G(e){return`NG0${Math.abs(e)}`}(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function A(e){for(let t in e)if(e[t]===A)return t;throw Error("Could not find renamed property on target object.")}function ce(e){if("string"==typeof e)return e;if(Array.isArray(e))return`[${e.map(ce).join(", ")}]`;if(null==e)return""+e;const t=e.overriddenName||e.name;if(t)return`${t}`;const n=e.toString();if(null==n)return""+n;const r=n.indexOf("\n");return r>=0?n.slice(0,r):n}function Kt(e,t){return e?t?`${e} ${t}`:e:t||""}globalThis;const er=A({__forward_ref__:A});function Cr(e){return e.__forward_ref__=Cr,e.toString=function(){return ce(this())},e}function J(e){return function fo(e){return"function"==typeof e&&e.hasOwnProperty(er)&&e.__forward_ref__===Cr}(e)?e():e}function De(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function ea(e){return sh(e,na)||sh(e,ah)}function sh(e,t){return e.hasOwnProperty(t)?e[t]:null}function ta(e){return e&&(e.hasOwnProperty(el)||e.hasOwnProperty(fD))?e[el]:null}const na=A({\u0275prov:A}),el=A({\u0275inj:A}),ah=A({ngInjectableDef:A}),fD=A({ngInjectorDef:A});class W{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=De({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function rl(e){return e&&!!e.\u0275providers}const po=A({\u0275cmp:A}),ol=A({\u0275dir:A}),il=A({\u0275pipe:A}),Bn=A({\u0275fac:A}),Ti=A({__NG_ELEMENT_ID__:A}),uh=A({__NG_ENV_ID__:A});function ue(e){return"string"==typeof e?e:null==e?"":String(e)}function dh(e,t){throw new p(-200,e)}function sl(e,t){throw new p(-201,!1)}var _e=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(_e||{});let al;function fh(){return al}function Pt(e){const t=al;return al=e,t}function hh(e,t,n){const r=ea(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&_e.Optional?null:void 0!==t?t:void sl()}const Nr={};class ph{injector;constructor(t){this.injector=t}retrieve(t,n){return this.injector.get(t,n.optional?_n:Nr,n)}}const ia="ngTempTokenPath",yD=/\n/gm,gh="__source";function ED(e,t=_e.Default){if(void 0===co())throw new p(-203,!1);if(null===co())return hh(e,void 0,t);{const n=co();let r;return r=n instanceof ph?n.injector:n,r.get(e,t&_e.Optional?null:void 0,t)}}function be(e,t=_e.Default){return(fh()||ED)(J(e),t)}function F(e,t=_e.Default){return be(e,sa(t))}function sa(e){return typeof e>"u"||"number"==typeof e?e:(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function ll(e){const t=[];for(let n=0;n<e.length;n++){const r=J(e[n]);if(Array.isArray(r)){if(0===r.length)throw new p(900,!1);let o,i=_e.Default;for(let s=0;s<r.length;s++){const a=r[s],c=ID(a);"number"==typeof c?-1===c?o=a.token:i|=c:o=a}t.push(be(o,i))}else t.push(be(r))}return t}function ID(e){return e.__NG_DI_FLAG__}function Sr(e,t){return e.hasOwnProperty(Bn)?e[Bn]:null}function go(e,t){e.forEach(n=>Array.isArray(n)?go(n,t):t(n))}function aa(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}const cn={},Me=[],ln=new W(""),Ih=new W("",-1),hl=new W("");class la{get(t,n=Nr){if(n===Nr){const r=new Error(`NullInjectorError: No provider for ${ce(t)}!`);throw r.name="NullInjectorError",r}return n}}function Ee(e){return e[po]||null}function qt(e){return e[il]||null}function ND(...e){return{\u0275providers:pl(0,e),\u0275fromNgModule:!0}}function pl(e,...t){const n=[],r=new Set;let o;const i=s=>{n.push(s)};return go(t,s=>{const a=s;ua(a,i,[],r)&&(o||=[],o.push(a))}),void 0!==o&&_h(o,i),n}function _h(e,t){for(let n=0;n<e.length;n++){const{ngModule:r,providers:o}=e[n];gl(o,i=>{t(i,r)})}}function ua(e,t,n,r){if(!(e=J(e)))return!1;let o=null,i=ta(e);const s=!i&&Ee(e);if(i||s){if(s&&!s.standalone)return!1;o=e}else{const c=e.ngModule;if(i=ta(c),!i)return!1;o=c}const a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){const c="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const l of c)ua(l,t,n,r)}}else{if(!i)return!1;{if(null!=i.imports&&!a){let l;r.add(o);try{go(i.imports,u=>{ua(u,t,n,r)&&(l||=[],l.push(u))})}finally{}void 0!==l&&_h(l,t)}if(!a){const l=Sr(o)||(()=>new o);t({provide:o,useFactory:l,deps:Me},o),t({provide:hl,useValue:o,multi:!0},o),t({provide:ln,useValue:()=>be(o),multi:!0},o)}const c=i.providers;if(null!=c&&!a){const l=e;gl(c,u=>{t(u,l)})}}}return o!==e&&void 0!==e.providers}function gl(e,t){for(let n of e)rl(n)&&(n=n.\u0275providers),Array.isArray(n)?gl(n,t):t(n)}const SD=A({provide:String,useValue:A});function ml(e){return null!==e&&"object"==typeof e&&SD in e}function Rr(e){return"function"==typeof e}const yl=new W(""),da={},Th={};let vl;function fa(){return void 0===vl&&(vl=new la),vl}class un{}class xr extends un{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,Il(t,s=>this.processProvider(s)),this.records.set(Ih,yo(void 0,this)),o.has("environment")&&this.records.set(un,yo(void 0,this));const i=this.records.get(yl);null!=i&&"string"==typeof i.value&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(hl,Me,_e.Self))}retrieve(t,n){return this.get(t,n.optional?_n:Nr,n)}destroy(){Ci(this),this._destroyed=!0;const t=oe(null);try{for(const r of this._ngOnDestroyHooks)r.ngOnDestroy();const n=this._onDestroyHooks;this._onDestroyHooks=[];for(const r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),oe(t)}}onDestroy(t){return Ci(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){Ci(this);const n=Bt(this),r=Pt(void 0);try{return t()}finally{Bt(n),Pt(r)}}get(t,n=Nr,r=_e.Default){if(Ci(this),t.hasOwnProperty(uh))return t[uh](this);r=sa(r);const i=Bt(this),s=Pt(void 0);try{if(!(r&_e.SkipSelf)){let c=this.records.get(t);if(void 0===c){const l=function AD(e){return"function"==typeof e||"object"==typeof e&&e instanceof W}(t)&&ea(t);c=l&&this.injectableDefInScope(l)?yo(El(t),da):null,this.records.set(t,c)}if(null!=c)return this.hydrate(t,c)}return(r&_e.Self?fa():this.parent).get(t,n=r&_e.Optional&&n===Nr?null:n)}catch(a){if("NullInjectorError"===a.name){if((a[ia]=a[ia]||[]).unshift(ce(t)),i)throw a;return function _D(e,t,n,r){const o=e[ia];throw t[gh]&&o.unshift(t[gh]),e.message=function DD(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let o=ce(t);if(Array.isArray(t))o=t.map(ce).join(" -> ");else if("object"==typeof t){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+("string"==typeof a?JSON.stringify(a):ce(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(yD,"\n ")}`}("\n"+e.message,o,n,r),e.ngTokenPath=o,e[ia]=null,e}(a,t,"R3InjectorError",this.source)}throw a}finally{Pt(s),Bt(i)}}resolveInjectorInitializers(){const t=oe(null),n=Bt(this),r=Pt(void 0);try{const i=this.get(ln,Me,_e.Self);for(const s of i)s()}finally{Bt(n),Pt(r),oe(t)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(ce(r));return`R3Injector[${t.join(", ")}]`}processProvider(t){let n=Rr(t=J(t))?t:J(t&&t.provide);const r=function xD(e){return ml(e)?yo(void 0,e.useValue):yo(function bh(e,t,n){let r;if(Rr(e)){const o=J(e);return Sr(o)||El(o)}if(ml(e))r=()=>J(e.useValue);else if(function wh(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...ll(e.deps||[]));else if(function Dh(e){return!(!e||!e.useExisting)}(e))r=()=>be(J(e.useExisting));else{const o=J(e&&(e.useClass||e.provide));if(!function OD(e){return!!e.deps}(e))return Sr(o)||El(o);r=()=>new o(...ll(e.deps))}return r}(e),da)}(t);if(!Rr(t)&&!0===t.multi){let o=this.records.get(n);o||(o=yo(void 0,da,!0),o.factory=()=>ll(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){const r=oe(null);try{return n.value===Th?dh(ce(t)):n.value===da&&(n.value=Th,n.value=n.factory()),"object"==typeof n.value&&n.value&&function PD(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{oe(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;const n=J(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){const n=this._onDestroyHooks.indexOf(t);-1!==n&&this._onDestroyHooks.splice(n,1)}}function El(e){const t=ea(e),n=null!==t?t.factory:Sr(e);if(null!==n)return n;if(e instanceof W)throw new p(204,!1);if(e instanceof Function)return function RD(e){if(e.length>0)throw new p(204,!1);const n=function dD(e){return e&&(e[na]||e[ah])||null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new p(204,!1)}function Ci(e){if(e.destroyed)throw new p(205,!1)}function yo(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Il(e,t){for(const n of e)Array.isArray(n)?Il(n,t):n&&rl(n)?Il(n.\u0275providers,t):t(n)}function Mh(e,t){let n;e instanceof xr?(Ci(e),n=e):n=new ph(e);const o=Bt(n),i=Pt(void 0);try{return t()}finally{Bt(o),Pt(i)}}const X=11,L=26;function et(e){return Array.isArray(e)&&"object"==typeof e[1]}function dt(e){return Array.isArray(e)&&!0===e[1]}function wl(e){return!!(4&e.flags)}function fn(e){return e.componentOffset>-1}function Wt(e){return!!e.template}function Un(e){return!!(512&e[2])}function rr(e){return!(256&~e[2])}class GD{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function Ah(e,t,n,r){null!==t?t.applyValueToInputSignal(t,r):e[n]=r}function QD(){const e=jh(this),t=e?.current;if(t){const n=e.previous;if(n===cn)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function YD(e,t,n,r,o){const i=this.declaredInputs[r],s=jh(e)||function KD(e,t){return e[Fh]=t}(e,{previous:cn,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[i];a[i]=new GD(l&&l.currentValue,n,c===cn),Ah(e,t,o,n)}const Fh="__ngSimpleChanges__";function jh(e){return e[Fh]||null}function we(e){for(;Array.isArray(e);)e=e[0];return e}function bt(e,t){return we(t[e.index])}function Mt(e,t){const n=t[e];return et(n)?n:n[0]}function Ml(e){return!(128&~e[2])}function tn(e,t){return null==t?null:e[t]}function Bh(e){e[17]=0}function Cl(e){1024&e[2]||(e[2]|=1024,Ml(e)&&Mo(e))}function ki(e){return!!(9216&e[2]||e[24]?.dirty)}function Nl(e){e[10].changeDetectionScheduler?.notify(8),64&e[2]&&(e[2]|=1024),ki(e)&&Mo(e)}function Mo(e){e[10].changeDetectionScheduler?.notify(0);let t=qn(e);for(;null!==t&&!(8192&t[2])&&(t[2]|=8192,Ml(t));)t=qn(t)}function Ea(e,t){if(rr(e))throw new p(911,!1);null===e[21]&&(e[21]=[]),e[21].push(t)}function qn(e){const t=e[3];return dt(t)?t[3]:t}const se={lFrame:Kh(null),bindingsEnabled:!0,skipHydrationRootTNode:null};let Ol=!1;function _(){return se.lFrame.lView}function te(){return se.lFrame.tView}function ve(){let e=Uh();for(;null!==e&&64===e.type;)e=e.parent;return e}function Uh(){return se.lFrame.currentTNode}function hn(e,t){const n=se.lFrame;n.currentTNode=e,n.isParent=t}function Al(){return se.lFrame.isParent}function Wh(){return Ol}function _a(e){const t=Ol;return Ol=e,t}function pw(e,t){const n=se.lFrame;n.bindingIndex=n.bindingRootIndex=e,Fl(t)}function Fl(e){se.lFrame.currentDirectiveIndex=e}function Da(e){se.lFrame.currentQueryIndex=e}function mw(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[5]:null}function Qh(e,t,n){if(n&_e.SkipSelf){let o=t,i=e;for(;!(o=o.parent,null!==o||n&_e.Host||(o=mw(i),null===o||(i=i[14],10&o.type))););if(null===o)return!1;t=o,e=i}const r=se.lFrame=Yh();return r.currentTNode=t,r.lView=e,!0}function Hl(e){const t=Yh(),n=e[1];se.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Yh(){const e=se.lFrame,t=null===e?null:e.child;return null===t?Kh(e):t}function Kh(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function Xh(){const e=se.lFrame;return se.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Jh=Xh;function Bl(){const e=Xh();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Et(){return se.lFrame.selectedIndex}function Vr(e){se.lFrame.selectedIndex=e}let tp=!0;function xi(){return tp}function Tn(e){tp=e}function wa(e,t,n){np(e,t,3,n)}function Ta(e,t,n,r){(3&e[2])===n&&np(e,t,n,r)}function Ul(e,t){let n=e[2];(3&n)===t&&(n&=16383,n+=1,e[2]=n)}function np(e,t,n,r){const i=r??-1,s=t.length-1;let a=0;for(let c=void 0!==r?65535&e[17]:0;c<s;c++)if("number"==typeof t[c+1]){if(a=t[c],null!=r&&a>=r)break}else t[c]<0&&(e[17]+=65536),(a<i||-1==i)&&(ww(e,n,t,c),e[17]=(4294901760&e[17])+c+2),c++}function rp(e,t){const n=oe(null);try{t.call(e)}finally{oe(n)}}function ww(e,t,n,r){const o=n[r]<0,i=n[r+1],a=e[o?-n[r]:n[r]];o?e[2]>>14<e[17]>>16&&(3&e[2])===t&&(e[2]+=16384,rp(a,i)):rp(a,i)}class Oi{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r){this.factory=t,this.canSeeViewProviders=n,this.injectImpl=r}}function op(e){return 3===e||4===e||6===e}function ip(e){return 64===e.charCodeAt(0)}function No(e,t){if(null!==t&&0!==t.length)if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){const o=t[r];"number"==typeof o?n=o:0===n||sp(e,n,o,0,-1===n||2===n?t[++r]:null)}}return e}function sp(e,t,n,r,o){let i=0,s=e.length;if(-1===t)s=-1;else for(;i<e.length;){const a=e[i++];if("number"==typeof a){if(a===t){s=-1;break}if(a>t){s=i-1;break}}}for(;i<e.length;){const a=e[i];if("number"==typeof a)break;if(a===n)return void(null!==o&&(e[i+1]=o));i++,null!==o&&i++}-1!==s&&(e.splice(s,0,t),i=s+1),e.splice(i++,0,n),null!==o&&e.splice(i++,0,o)}function Pi(e){return 32767&e}function Ai(e,t){let n=function Nw(e){return e>>16}(e),r=t;for(;n>0;)r=r[14],n--;return r}let Gl=!0;function ba(e){const t=Gl;return Gl=e,t}let Sw=0;const bn={};function Ma(e,t){const n=lp(e,t);if(-1!==n)return n;const r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,Zl(r.data,e),Zl(t,null),Zl(r.blueprint,null));const o=Ca(e,t),i=e.injectorIndex;if(function Wl(e){return-1!==e}(o)){const s=Pi(o),a=Ai(o,t),c=a[1].data;for(let l=0;l<8;l++)t[i+l]=a[s+l]|c[s+l]}return t[i+8]=o,i}function Zl(e,t){e.push(0,0,0,0,0,0,0,0,t)}function lp(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Ca(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;null!==o;){if(r=mp(o),null===r)return-1;if(n++,o=o[14],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function Ql(e,t,n){!function kw(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Ti)&&(r=n[Ti]),null==r&&(r=n[Ti]=Sw++);const o=255&r;t.data[e+(o>>5)]|=1<<o}(e,t,n)}function up(e,t,n){if(n&_e.Optional||void 0!==e)return e;sl()}function dp(e,t,n,r){if(n&_e.Optional&&void 0===r&&(r=null),!(n&(_e.Self|_e.Host))){const o=e[9],i=Pt(void 0);try{return o?o.get(t,r,n&_e.Optional):hh(t,r,n&_e.Optional)}finally{Pt(i)}}return up(r,0,n)}function fp(e,t,n,r=_e.Default,o){if(null!==e){if(2048&t[2]&&!(r&_e.Self)){const s=function Lw(e,t,n,r,o){let i=e,s=t;for(;null!==i&&null!==s&&2048&s[2]&&!Un(s);){const a=hp(i,s,n,r|_e.Self,bn);if(a!==bn)return a;let c=i.parent;if(!c){const l=s[20];if(l){const u=l.get(n,bn,r);if(u!==bn)return u}c=mp(s),s=s[14]}i=c}return o}(e,t,n,r,bn);if(s!==bn)return s}const i=hp(e,t,n,r,bn);if(i!==bn)return i}return dp(t,n,r,o)}function hp(e,t,n,r,o){const i=function Ow(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(Ti)?e[Ti]:void 0;return"number"==typeof t?t>=0?255&t:Pw:t}(n);if("function"==typeof i){if(!Qh(t,e,r))return r&_e.Host?up(o,0,r):dp(t,n,r,o);try{let s;if(s=i(r),null!=s||r&_e.Optional)return s;sl()}finally{Jh()}}else if("number"==typeof i){let s=null,a=lp(e,t),c=-1,l=r&_e.Host?t[15][5]:null;for((-1===a||r&_e.SkipSelf)&&(c=-1===a?Ca(e,t):t[a+8],-1!==c&&gp(r,!1)?(s=t[1],a=Pi(c),t=Ai(c,t)):a=-1);-1!==a;){const u=t[1];if(pp(i,a,u.data)){const d=xw(a,t,n,s,r,l);if(d!==bn)return d}c=t[a+8],-1!==c&&gp(r,t[1].data[a+8]===l)&&pp(i,a,t)?(s=u,a=Pi(c),t=Ai(c,t)):a=-1}}return o}function xw(e,t,n,r,o,i){const s=t[1],a=s.data[e+8],u=function Na(e,t,n,r,o){const i=e.providerIndexes,s=t.data,a=1048575&i,c=e.directiveStart,u=i>>20,h=o?a+u:e.directiveEnd;for(let f=r?a:a+u;f<h;f++){const g=s[f];if(f<c&&n===g||f>=c&&g.type===n)return f}if(o){const f=s[c];if(f&&Wt(f)&&f.type===n)return c}return null}(a,s,n,null==r?fn(a)&&Gl:r!=s&&!!(3&a.type),o&_e.Host&&i===a);return null!==u?Li(t,s,u,a):bn}function Li(e,t,n,r){let o=e[n];const i=t.data;if(o instanceof Oi){const s=o;s.resolving&&dh(function ke(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():ue(e)}(i[n]));const a=ba(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?Pt(s.injectImpl):null;Qh(e,r,_e.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&function Dw(e,t,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){const s=function Lh(e){return e.type.prototype.ngOnChanges&&(e.setInput=YD),QD}(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}(n,i[n],t)}finally{null!==l&&Pt(l),ba(a),s.resolving=!1,Jh()}}return o}function pp(e,t,n){return!!(n[t+(e>>5)]&1<<e)}function gp(e,t){return!(e&_e.Self||e&_e.Host&&t)}class tt{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return fp(this._tNode,this._lView,t,sa(r),n)}}function Pw(){return new tt(ve(),_())}function mp(e){const t=e[1],n=t.type;return 2===n?t.declTNode:1===n?e[5]:null}function _p(e,t=null,n=null,r){const o=function Dp(e,t=null,n=null,r,o=new Set){const i=[n||Me,ND(e)];return r=r||("object"==typeof e?void 0:ce(e)),new xr(i,t||fa(),r||null,o)}(e,t,n,r);return o.resolveInjectorInitializers(),o}class It{static THROW_IF_NOT_FOUND=Nr;static NULL=new la;static create(t,n){if(Array.isArray(t))return _p({name:""},n,t,"");{const r=t.name??"";return _p({name:r},t.parent,t.providers,r)}}static \u0275prov=De({token:It,providedIn:"any",factory:()=>be(Ih)});static __NG_ELEMENT_ID__=-1}new W("").__NG_ELEMENT_ID__=e=>{const t=ve();if(null===t)throw new p(204,!1);if(2&t.type)return t.value;if(e&_e.Optional)return null;throw new p(204,!1)};const wp=!1;let ir=(()=>class e{static __NG_ELEMENT_ID__=zw;static __NG_ENV_ID__=n=>n})();class Tp extends ir{_lView;constructor(t){super(),this._lView=t}onDestroy(t){return Ea(this._lView,t),()=>function Sl(e,t){if(null===e[21])return;const n=e[21].indexOf(t);-1!==n&&e[21].splice(n,1)}(this._lView,t)}}function zw(){return new Tp(_())}class Mn{}const Fi=new W("",{providedIn:"root",factory:()=>!1}),bp=new W(""),Jl=new W("");let Br=(()=>{class e{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new ie(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const n=this.taskId++;return this.pendingTasks.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static \u0275prov=De({token:e,providedIn:"root",factory:()=>new e})}return e})();const sr=class Gw extends Se{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,function Ch(){return void 0!==fh()||null!=co()}()&&(this.destroyRef=F(ir,{optional:!0})??void 0,this.pendingTasks=F(Br,{optional:!0})??void 0)}emit(t){const n=oe(null);try{super.next(t)}finally{oe(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&"object"==typeof t){const c=t;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));const a=super.subscribe({next:o,error:i,complete:s});return t instanceof xt&&t.add(a),a}wrapInTimeout(t){return n=>{const r=this.pendingTasks?.add();setTimeout(()=>{t(n),void 0!==r&&this.pendingTasks?.remove(r)})}}};function ji(...e){}function Mp(e){let t,n;function r(){e=ji;try{void 0!==n&&"function"==typeof cancelAnimationFrame&&cancelAnimationFrame(n),void 0!==t&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),"function"==typeof requestAnimationFrame&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function Cp(e){return queueMicrotask(()=>e()),()=>{e=ji}}const eu="isAngularZone",ka=eu+"_ID";let Zw=0;class Pe{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new sr(!1);onMicrotaskEmpty=new sr(!1);onStable=new sr(!1);onError=new sr(!1);constructor(t){const{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=wp}=t;if(typeof Zone>"u")throw new p(908,!1);Zone.assertZonePatched();const s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,function Kw(e){const t=()=>{!function Yw(e){function t(){Mp(()=>{e.callbackScheduled=!1,nu(e),e.isCheckStableRunning=!0,tu(e),e.isCheckStableRunning=!1})}e.isCheckStableRunning||e.callbackScheduled||(e.callbackScheduled=!0,e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),nu(e))}(e)},n=Zw++;e._inner=e._inner.fork({name:"angular",properties:{[eu]:!0,[ka]:n,[ka+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(function Xw(e){return kp(e,"__ignore_ng_zone__")}(c))return r.invokeTask(i,s,a,c);try{return Np(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||e.shouldCoalesceRunChangeDetection)&&t(),Sp(e)}},onInvoke:(r,o,i,s,a,c,l)=>{try{return Np(e),r.invoke(i,s,a,c,l)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!function Jw(e){return kp(e,"__scheduler_tick__")}(c)&&t(),Sp(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&("microTask"==s.change?(e._hasPendingMicrotasks=s.microTask,nu(e),tu(e)):"macroTask"==s.change&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}(s)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get(eu)}static assertInAngularZone(){if(!Pe.isInAngularZone())throw new p(909,!1)}static assertNotInAngularZone(){if(Pe.isInAngularZone())throw new p(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){const i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,Qw,ji,ji);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const Qw={};function tu(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function nu(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&!0===e.callbackScheduled)}function Np(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Sp(e){e._nesting--,tu(e)}class ru{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new sr;onMicrotaskEmpty=new sr;onStable=new sr;onError=new sr;run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}}function kp(e,t){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0]?.data?.[t]}class pn{_console=console;handleError(t){this._console.error("ERROR",t)}}const tT=new W("",{providedIn:"root",factory:()=>{const e=F(Pe),t=F(pn);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function nT(){return So(ve(),_())}function So(e,t){return new Ra(bt(e,t))}let Ra=(()=>class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=nT})();Symbol;var Oa=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(Oa||{});const Pa=new Map;let sT=0;function iu(e){Pa.delete(e[19])}const au="__ngContext__";function Ft(e,t){et(t)?(e[au]=t[19],function cT(e){Pa.set(e[19],e)}(t)):e[au]=t}function Up(e){return zp(e[12])}function qp(e){return zp(e[4])}function zp(e){for(;null!==e&&!dt(e);)e=e[4];return e}let lu;const $r=new W("",{providedIn:"root",factory:()=>CT}),CT="ng",uu=new W(""),du=new W("",{providedIn:"platform",factory:()=>"unknown"}),Xp=new W("",{providedIn:"root",factory:()=>function Cn(){if(void 0!==lu)return lu;if(typeof document<"u")return document;throw new p(210,!1)}().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),ng=new W("",{providedIn:"root",factory:()=>!1});var Du=function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e}(Du||{});const Ro=new W(""),sg=new Set;let wu=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=De({token:e,providedIn:"root",factory:()=>new e})}return e})();function Lg(e,t){const n=e.contentQueries;if(null!==n){const r=oe(null);try{for(let o=0;o<n.length;o+=2){const s=n[o+1];if(-1!==s){const a=e.data[s];Da(n[o]),a.contentQueries(2,t[s],s)}}}finally{oe(r)}}}function Lu(e,t,n){Da(0);const r=oe(null);try{t(e,n)}finally{oe(r)}}function Fu(e,t,n){if(wl(t)){const r=oe(null);try{const i=t.directiveEnd;for(let s=t.directiveStart;s<i;s++){const a=e.data[s];a.contentQueries&&a.contentQueries(1,n[s],s)}}finally{oe(r)}}}var rn=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(rn||{});function eM(e,t,n){let r=e.length;for(;;){const o=e.indexOf(t,n);if(-1===o)return o;if(0===o||e.charCodeAt(o-1)<=32){const i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}const sm="ng-template";function tM(e,t,n,r){let o=0;if(r){for(;o<t.length&&"string"==typeof t[o];o+=2)if("class"===t[o]&&-1!==eM(t[o+1].toLowerCase(),n,0))return!0}else if(zu(e))return!1;if(o=t.indexOf(1,o),o>-1){let i;for(;++o<t.length&&"string"==typeof(i=t[o]);)if(i.toLowerCase()===n)return!0}return!1}function zu(e){return 4===e.type&&e.value!==sm}function nM(e,t,n){return t===(4!==e.type||n?e.value:sm)}function rM(e,t,n){let r=4;const o=e.attrs,i=null!==o?function sM(e){for(let t=0;t<e.length;t++)if(op(e[t]))return t;return e.length}(o):0;let s=!1;for(let a=0;a<t.length;a++){const c=t[a];if("number"!=typeof c){if(!s)if(4&r){if(r=2|1&r,""!==c&&!nM(e,c,n)||""===c&&1===t.length){if(gn(r))return!1;s=!0}}else if(8&r){if(null===o||!tM(e,o,c,n)){if(gn(r))return!1;s=!0}}else{const l=t[++a],u=oM(c,o,zu(e),n);if(-1===u){if(gn(r))return!1;s=!0;continue}if(""!==l){let d;if(d=u>i?"":o[u+1].toLowerCase(),2&r&&l!==d){if(gn(r))return!1;s=!0}}}}else{if(!s&&!gn(r)&&!gn(c))return!1;if(s&&gn(c))continue;s=!1,r=c|1&r}}return gn(r)||s}function gn(e){return!(1&e)}function oM(e,t,n,r){if(null===t)return-1;let o=0;if(r||!n){let i=!1;for(;o<t.length;){const s=t[o];if(s===e)return o;if(3===s||6===s)i=!0;else{if(1===s||2===s){let a=t[++o];for(;"string"==typeof a;)a=t[++o];continue}if(4===s)break;if(0===s){o+=4;continue}}o+=i?1:2}return-1}return function aM(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){const r=e[n];if("number"==typeof r)return-1;if(r===t)return n;n++}return-1}(t,e)}function am(e,t,n=!1){for(let r=0;r<t.length;r++)if(rM(e,t[r],n))return!0;return!1}function cm(e,t){return e?":not("+t.trim()+")":t}function lM(e){let t=e[0],n=1,r=2,o="",i=!1;for(;n<e.length;){let s=e[n];if("string"==typeof s)if(2&r){const a=e[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else 8&r?o+="."+s:4&r&&(o+=" "+s);else""!==o&&!gn(s)&&(t+=cm(i,o),o=""),r=s,i=i||!gn(r);n++}return""!==o&&(t+=cm(i,o)),t}const de={};function ec(e,t,n){return e.createElement(t,n)}function zr(e,t,n,r,o){e.insertBefore(t,n,r,o)}function um(e,t,n){e.appendChild(t,n)}function dm(e,t,n,r,o){null!==r?zr(e,t,n,r,o):um(e,t,n)}function hm(e,t,n){const{mergedAttrs:r,classes:o,styles:i}=n;null!==r&&function Cw(e,t,n){let r=0;for(;r<n.length;){const o=n[r];if("number"==typeof o){if(0!==o)break;r++;const i=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,i)}else{const i=o,s=n[++r];ip(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}}(e,t,r),null!==o&&function hM(e,t,n){""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}(e,t,o),null!==i&&function fM(e,t,n){e.setAttribute(t,"style",n)}(e,t,i)}function Zu(e,t,n,r,o,i,s,a,c,l,u){const d=L+r,h=d+o,f=function pM(e,t){const n=[];for(let r=0;r<t;r++)n.push(r<e?null:de);return n}(d,h),g="function"==typeof l?l():l;return f[1]={type:e,blueprint:f,template:n,queries:null,viewQuery:a,declTNode:t,data:f.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:h,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof i?i():i,pipeRegistry:"function"==typeof s?s():s,firstChild:null,schemas:c,consts:g,incompleteFirstPass:!1,ssrId:u}}function tc(e,t,n,r,o,i,s,a,c,l,u){const d=t.blueprint.slice();return d[0]=o,d[2]=1228|r,(null!==l||e&&2048&e[2])&&(d[2]|=2048),Bh(d),d[3]=d[14]=e,d[8]=n,d[10]=s||e&&e[10],d[X]=a||e&&e[X],d[9]=c||e&&e[9]||null,d[5]=i,d[19]=function aT(){return sT++}(),d[6]=u,d[20]=l,d[15]=2==t.type?e[15]:d,d}function Qu(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function os(e,t,n,r){if(0===n)return-1;const o=t.length;for(let i=0;i<n;i++)t.push(r),e.blueprint.push(r),e.data.push(null);return o}function mm(e,t,n,r){if(!r)if(3&~t[2]){const i=e.preOrderHooks;null!==i&&Ta(t,i,0,n)}else{const i=e.preOrderCheckHooks;null!==i&&wa(t,i,n)}Vr(n)}var nc=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(nc||{});function Ku(e,t,n,r){const o=oe(null);try{const[i,s,a]=e.inputs[n];let c=null;!!(s&nc.SignalBased)&&(c=t[i][st]),null!==c&&void 0!==c.transformFn?r=c.transformFn(r):null!==a&&(r=a.call(t,r)),null!==e.setInput?e.setInput(t,c,r,n,i):Ah(t,c,i,r)}finally{oe(o)}}function ym(e,t,n,r,o){const i=Et(),s=2&r;try{Vr(-1),s&&t.length>L&&mm(e,t,L,!1),n(r,o)}finally{Vr(i)}}function rc(e,t,n){(function DM(e,t,n){const r=n.directiveStart,o=n.directiveEnd;fn(n)&&function gM(e,t,n){const r=bt(t,e),o=function pm(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=Zu(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}(n),i=e[10].rendererFactory,s=function Yu(e,t){return e[12]?e[13][4]=t:e[12]=t,e[13]=t,t}(e,tc(e,o,null,Qu(n),r,t,null,i.createRenderer(r,n),null,null,null));e[t.index]=s}(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||Ma(n,t);const i=n.initialInputs;for(let s=r;s<o;s++){const a=e.data[s],c=Li(t,e,s,n);Ft(c,t),null!==i&&bM(0,s-r,c,a,0,i),Wt(a)&&(Mt(n.index,t)[8]=Li(t,e,s,n))}})(e,t,n),!(64&~n.flags)&&function wM(e,t,n){const r=n.directiveStart,o=n.directiveEnd,i=n.index,s=function gw(){return se.lFrame.currentDirectiveIndex}();try{Vr(i);for(let a=r;a<o;a++){const c=e.data[a],l=t[a];Fl(a),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&TM(c,l)}}finally{Vr(-1),Fl(s)}}(e,t,n)}let vm=()=>null;function TM(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Ju(e,t){const n=e.directiveRegistry;let r=null;if(n)for(let o=0;o<n.length;o++){const i=n[o];am(t,i.selectors,!1)&&(r??=[],Wt(i)?r.unshift(i):r.push(i))}return r}function bM(e,t,n,r,o,i){const s=i[t];if(null!==s)for(let a=0;a<s.length;a+=2)Ku(r,n,s[a],s[a+1])}function nd(e,t,n,r,o){const i=e.inputs?.[r],s=e.hostDirectiveInputs?.[r];let a=!1;if(s)for(let c=0;c<s.length;c+=2){const l=s[c];Ku(t.data[l],n[l],s[c+1],o),a=!0}if(i)for(const c of i)Ku(t.data[c],n[c],r,o),a=!0;return a}function MM(e,t){const n=Mt(t,e),r=n[1];!function CM(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(r,n);const o=n[0];null!==o&&null===n[6]&&(n[6]=null),oc(r,n,n[8])}function oc(e,t,n){Hl(t);try{const r=e.viewQuery;null!==r&&Lu(1,r,n);const o=e.template;null!==o&&ym(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[18]?.finishViewCreation(e),e.staticContentQueries&&Lg(e,t),e.staticViewQueries&&Lu(2,e.viewQuery,n);const i=e.components;null!==i&&function NM(e,t){for(let n=0;n<t.length;n++)MM(e,t[n])}(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[2]&=-5,Bl()}}function od(e,t){return undefined(e,t)}var Gr=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Gr||{});function lr(e){return!(32&~e.flags)}function qo(e,t,n,r,o){if(null!=r){let i,s=!1;dt(r)?i=r:et(r)&&(s=!0,r=r[0]);const a=we(r);0===e&&null!==n?null==o?um(t,n,a):zr(t,n,a,o||null,!0):1===e&&null!==n?zr(t,n,a,o||null,!0):2===e?function rs(e,t,n){e.removeChild(null,t,n)}(t,a,s):3===e&&t.destroyNode(a),null!=i&&function AM(e,t,n,r,o){const i=n[7];i!==we(n)&&qo(t,e,r,i,o);for(let a=10;a<n.length;a++){const c=n[a];sc(c[1],c,e,t,r,i)}}(t,e,i,n,o)}}function Dm(e,t){t[10].changeDetectionScheduler?.notify(9),sc(e,t,t[X],2,null,null)}function id(e,t){const n=e[9],r=n.indexOf(t);n.splice(r,1)}function sd(e,t){if(rr(t))return;const n=oe(null);try{t[2]&=-129,t[2]|=256,t[24]&&_r(t[24]),function OM(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r<n.length;r+=2){const o=t[n[r]];if(!(o instanceof Oi)){const i=n[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){const a=o[i[s]],c=i[s+1];try{c.call(a)}finally{}}else try{i.call(o)}finally{}}}}(e,t),function xM(e,t){const n=e.cleanup,r=t[7];if(null!==n)for(let s=0;s<n.length-1;s+=2)if("string"==typeof n[s]){const a=n[s+3];a>=0?r[a]():r[-a].unsubscribe(),s+=2}else n[s].call(r[n[s+1]]);null!==r&&(t[7]=null);const o=t[21];if(null!==o){t[21]=null;for(let s=0;s<o.length;s++)(0,o[s])()}const i=t[23];if(null!==i){t[23]=null;for(const s of i)s.destroy()}}(e,t),1===t[1].type&&t[X].destroy();const r=t[16];if(null!==r&&dt(t[3])){r!==t[3]&&id(r,t);const o=t[18];null!==o&&o.detachView(e)}iu(t)}finally{oe(n)}}function ad(e,t,n){return function wm(e,t,n){let r=t;for(;null!==r&&168&r.type;)r=(t=r).parent;if(null===r)return n[0];if(fn(r)){const{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===rn.None||o===rn.Emulated)return null}return bt(r,n)}(e,t.parent,n)}let Mm=function bm(e,t,n){return 40&e.type?bt(e,n):null};function ic(e,t,n,r){const o=ad(e,r,t),i=t[X],a=function Tm(e,t,n){return Mm(e,t,n)}(r.parent||t[5],r,t);if(null!=o)if(Array.isArray(n))for(let c=0;c<n.length;c++)dm(i,o,n[c],a,!1);else dm(i,o,n,a,!1)}function Nm(e,t){return null!==t?e[15][5].projection[t.projection]:null}function ud(e,t,n,r,o,i,s){for(;null!=n;){if(128===n.type){n=n.next;continue}const a=r[n.index],c=n.type;if(s&&0===t&&(a&&Ft(we(a),r),n.flags|=2),!lr(n))if(8&c)ud(e,t,n.child,r,o,i,!1),qo(t,e,o,a,i);else if(32&c){const l=od(n,r);let u;for(;u=l();)qo(t,e,o,u,i);qo(t,e,o,a,i)}else 16&c?Sm(e,t,r,n,o,i):qo(t,e,o,a,i);n=s?n.projectionNext:n.next}}function sc(e,t,n,r,o,i){ud(n,r,e.firstChild,t,o,i,!1)}function Sm(e,t,n,r,o,i){const s=n[15],c=s[5].projection[r.projection];if(Array.isArray(c))for(let l=0;l<c.length;l++)qo(t,e,o,c[l],i);else{let l=c;const u=s[3];(function Bi(e){return!(128&~e.flags)})(r)&&(l.flags|=128),ud(e,t,l,u,o,i,!0)}}function zo(e,t,n,r,o=!1){for(;null!==n;){if(128===n.type){n=o?n.projectionNext:n.next;continue}const i=t[n.index];null!==i&&r.push(we(i)),dt(i)&&dd(i,r);const s=n.type;if(8&s)zo(e,t,n.child,r);else if(32&s){const a=od(n,t);let c;for(;c=a();)r.push(c)}else if(16&s){const a=Nm(t,n);if(Array.isArray(a))r.push(...a);else{const c=qn(t[15]);zo(c[1],c,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function dd(e,t){for(let n=10;n<e.length;n++){const r=e[n],o=r[1].firstChild;null!==o&&zo(r[1],r,o,t)}e[7]!==e[0]&&t.push(e[7])}function km(e){if(null!==e[25]){for(const t of e[25])t.impl.addSequence(t);e[25].length=0}}let Rm=[];const HM={..._t,consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{Mo(e.lView)},consumerOnSignalRead(){this.lView[24]=this}},$M={..._t,consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=qn(e.lView);for(;t&&!xm(t[1]);)t=qn(t);t&&Cl(t)},consumerOnSignalRead(){this.lView[24]=this}};function xm(e){return 2!==e.type}function Om(e){if(null===e[23])return;let t=!0;for(;t;){let n=!1;for(const r of e[23])r.dirty&&(n=!0,null===r.zone||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(8192&e[2])}}function ac(e,t=!0,n=0){const o=e[10].rendererFactory;o.begin?.();try{!function qM(e,t){const n=Wh();try{_a(!0),fd(e,t);let r=0;for(;ki(e);){if(100===r)throw new p(103,!1);r++,fd(e,1)}}finally{_a(n)}}(e,n)}catch(s){throw t&&function td(e,t){const n=e[9],r=n?n.get(pn,null):null;r&&r.handleError(t)}(e,s),s}finally{o.end?.()}}function Am(e,t,n,r){if(rr(t))return;const o=t[2];Hl(t);let a=!0,c=null,l=null;xm(e)?(l=function FM(e){return e[24]??function jM(e){const t=Rm.pop()??Object.create(HM);return t.lView=e,t}(e)}(t),c=Xn(l)):null===function Er(){return Qe}()?(a=!1,l=function BM(e){const t=e[24]??Object.create($M);return t.lView=e,t}(t),c=Xn(l)):t[24]&&(_r(t[24]),t[24]=null);try{Bh(t),function Gh(e){return se.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&ym(e,t,n,2,r);const u=!(3&~o);if(u){const f=e.preOrderCheckHooks;null!==f&&wa(t,f,null)}else{const f=e.preOrderHooks;null!==f&&Ta(t,f,0,null),Ul(t,0)}if(function zM(e){for(let t=Up(e);null!==t;t=qp(t)){if(!(2&t[2]))continue;const n=t[9];for(let r=0;r<n.length;r++)Cl(n[r])}}(t),Om(t),Lm(t,0),null!==e.contentQueries&&Lg(e,t),u){const f=e.contentCheckHooks;null!==f&&wa(t,f)}else{const f=e.contentHooks;null!==f&&Ta