From adc96994d9a393c19999fc1247529a9fa088c816 Mon Sep 17 00:00:00 2001 From: Armel Soro Date: Tue, 5 Sep 2023 17:14:37 +0200 Subject: [PATCH] [UI] Make sure form validation displays non-valid fields as red in all forms (#7064) * Add validation to multi-container component This covers the following forms: - Add commands when adding a Composite Command Co-authored-by: Philippe Martin * Add validation to multi-key-value component This covers the following forms: - Add Environment variables in Create Container - Add Deployment annotations in Create Container - Add Service annotations in Create Container Co-authored-by: Philippe Martin * Add validation to multi-text component This covers the following forms: - Add Command in Create Container - Add Args in Create Container - Add Args in Create Image Co-authored-by: Philippe Martin * Add validation to select-container component This covers the following forms: - Select or Create container in Add Exec Command - Select or create image component in Add Image Command - Select or create Resource in Add Apply command Co-authored-by: Philippe Martin * Add validation to volume-mounts component This covers the following forms: - Select or Create volume mount in Create container Co-authored-by: Philippe Martin * Add error helper message for invalid volume size quantities * Fix Cypress tests * Generate static UI * fixup! Add error helper message for invalid volume size quantities Co-authored-by: Philippe Martin * Generate static UI --------- Co-authored-by: Philippe Martin --- pkg/apiserver-impl/ui/index.html | 2 +- ...ef32c88ca3.js => main.9400449aa2437590.js} | 2 +- ui/cypress/e2e/spec.cy.ts | 12 ++-- .../multi-command.component.html | 9 +-- .../multi-command/multi-command.component.ts | 52 ++++++++++++---- .../multi-key-value.component.html | 26 ++++---- .../multi-key-value.component.ts | 52 +++++++++------- .../multi-text/multi-text.component.html | 10 ++-- .../multi-text/multi-text.component.ts | 57 ++++++++++++------ .../select-container.component.html | 2 +- .../select-container.component.ts | 40 ++++++++++--- .../volume-mounts.component.html | 38 ++++++------ .../volume-mounts/volume-mounts.component.ts | 60 +++++++++++-------- ui/src/app/forms/volume/volume.component.html | 1 + 14 files changed, 230 insertions(+), 133 deletions(-) rename pkg/apiserver-impl/ui/{main.4d8dc3ef32c88ca3.js => main.9400449aa2437590.js} (57%) diff --git a/pkg/apiserver-impl/ui/index.html b/pkg/apiserver-impl/ui/index.html index 930b93e287b..b7e5e844450 100644 --- a/pkg/apiserver-impl/ui/index.html +++ b/pkg/apiserver-impl/ui/index.html @@ -11,6 +11,6 @@
Loading, please wait...
- + \ No newline at end of file diff --git a/pkg/apiserver-impl/ui/main.4d8dc3ef32c88ca3.js b/pkg/apiserver-impl/ui/main.9400449aa2437590.js similarity index 57% rename from pkg/apiserver-impl/ui/main.4d8dc3ef32c88ca3.js rename to pkg/apiserver-impl/ui/main.9400449aa2437590.js index a83edf06a79..52533e5e878 100644 --- a/pkg/apiserver-impl/ui/main.4d8dc3ef32c88ca3.js +++ b/pkg/apiserver-impl/ui/main.9400449aa2437590.js @@ -1 +1 @@ -(self.webpackChunkdevfile_builder=self.webpackChunkdevfile_builder||[]).push([[179],{6780:(rn,Ae)=>{"use strict";Ae.N=void 0;var q=/^([^\w]*)(javascript|data|vbscript)/im,me=/&#(\w+)(^\w|;)?/g,se=/&(newline|tab);/gi,ee=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,re=/^.+(:|:)/gim,Ue=[".","/"];Ae.N=function he(K){var de=function H(K){return K.replace(me,function(de,It){return String.fromCharCode(It)})}(K||"").replace(se,"").replace(ee,"").trim();if(!de)return"about:blank";if(function Ye(K){return Ue.indexOf(K[0])>-1}(de))return de;var It=de.match(re);return It&&q.test(It[0])?"about:blank":de}},8066:(rn,Ae,P)=>{"use strict";function q(n){return"function"==typeof n}function me(n){const e=n(i=>{Error.call(i),i.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const se=me(n=>function(e){n(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((i,r)=>`${r+1}) ${i.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function ee(n,t){if(n){const e=n.indexOf(t);0<=e&&n.splice(e,1)}}class re{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:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const o of e)o.remove(this);else e.remove(this);const{initialTeardown:i}=this;if(q(i))try{i()}catch(o){t=o instanceof se?o.errors:[o]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const o of r)try{H(o)}catch(a){t=t??[],a instanceof se?t=[...t,...a.errors]:t.push(a)}}if(t)throw new se(t)}}add(t){var e;if(t&&t!==this)if(this.closed)H(t);else{if(t instanceof re){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(t)}}_hasParent(t){const{_parentage:e}=this;return e===t||Array.isArray(e)&&e.includes(t)}_addParent(t){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t}_removeParent(t){const{_parentage:e}=this;e===t?this._parentage=null:Array.isArray(e)&&ee(e,t)}remove(t){const{_finalizers:e}=this;e&&ee(e,t),t instanceof re&&t._removeParent(this)}}re.EMPTY=(()=>{const n=new re;return n.closed=!0,n})();const Ue=re.EMPTY;function Ye(n){return n instanceof re||n&&"closed"in n&&q(n.remove)&&q(n.add)&&q(n.unsubscribe)}function H(n){q(n)?n():n.unsubscribe()}const he={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},K={setTimeout(n,t,...e){const{delegate:i}=K;return i?.setTimeout?i.setTimeout(n,t,...e):setTimeout(n,t,...e)},clearTimeout(n){const{delegate:t}=K;return(t?.clearTimeout||clearTimeout)(n)},delegate:void 0};function de(n){K.setTimeout(()=>{const{onUnhandledError:t}=he;if(!t)throw n;t(n)})}function It(){}const tn=Te("C",void 0,void 0);function Te(n,t,e){return{kind:n,value:t,error:e}}let be=null;function Ct(n){if(he.useDeprecatedSynchronousErrorHandling){const t=!be;if(t&&(be={errorThrown:!1,error:null}),n(),t){const{errorThrown:e,error:i}=be;if(be=null,e)throw i}}else n()}class _t extends re{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Ye(t)&&t.add(this)):this.destination=we}static create(t,e,i){return new cn(t,e,i)}next(t){this.isStopped?We(function Q(n){return Te("N",n,void 0)}(t),this):this._next(t)}error(t){this.isStopped?We(function Se(n){return Te("E",void 0,n)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?We(tn,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 Ut=Function.prototype.bind;function Wt(n,t){return Ut.call(n,t)}class lt{constructor(t){this.partialObserver=t}next(t){const{partialObserver:e}=this;if(e.next)try{e.next(t)}catch(i){Qn(i)}}error(t){const{partialObserver:e}=this;if(e.error)try{e.error(t)}catch(i){Qn(i)}else Qn(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(e){Qn(e)}}}class cn extends _t{constructor(t,e,i){let r;if(super(),q(t)||!t)r={next:t??void 0,error:e??void 0,complete:i??void 0};else{let o;this&&he.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=()=>this.unsubscribe(),r={next:t.next&&Wt(t.next,o),error:t.error&&Wt(t.error,o),complete:t.complete&&Wt(t.complete,o)}):r=t}this.destination=new lt(r)}}function Qn(n){he.useDeprecatedSynchronousErrorHandling?function St(n){he.useDeprecatedSynchronousErrorHandling&&be&&(be.errorThrown=!0,be.error=n)}(n):de(n)}function We(n,t){const{onStoppedNotification:e}=he;e&&K.setTimeout(()=>e(n,t))}const we={closed:!0,next:It,error:function Mt(n){throw n},complete:It},Ze="function"==typeof Symbol&&Symbol.observable||"@@observable";function He(n){return n}let ye=(()=>{class n{constructor(e){e&&(this._subscribe=e)}lift(e){const i=new n;return i.source=this,i.operator=e,i}subscribe(e,i,r){const o=function mn(n){return n&&n instanceof _t||function Cn(n){return n&&q(n.next)&&q(n.error)&&q(n.complete)}(n)&&Ye(n)}(e)?e:new cn(e,i,r);return Ct(()=>{const{operator:a,source:c}=this;o.add(a?a.call(o,c):c?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(e){try{return this._subscribe(e)}catch(i){e.error(i)}}forEach(e,i){return new(i=Mn(i))((r,o)=>{const a=new cn({next:c=>{try{e(c)}catch(d){o(d),a.unsubscribe()}},error:o,complete:r});this.subscribe(a)})}_subscribe(e){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(e)}[Ze](){return this}pipe(...e){return function mt(n){return 0===n.length?He:1===n.length?n[0]:function(e){return n.reduce((i,r)=>r(i),e)}}(e)(this)}toPromise(e){return new(e=Mn(e))((i,r)=>{let o;this.subscribe(a=>o=a,a=>r(a),()=>i(o))})}}return n.create=t=>new n(t),n})();function Mn(n){var t;return null!==(t=n??he.Promise)&&void 0!==t?t:Promise}const di=me(n=>function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let ke=(()=>{class n extends ye{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const i=new Zi(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new di}next(e){Ct(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(e)}})}error(e){Ct(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:i}=this;for(;i.length;)i.shift().error(e)}})}complete(){Ct(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){const{hasError:i,isStopped:r,observers:o}=this;return i||r?Ue:(this.currentObservers=null,o.push(e),new re(()=>{this.currentObservers=null,ee(o,e)}))}_checkFinalizedStatuses(e){const{hasError:i,thrownError:r,isStopped:o}=this;i?e.error(r):o&&e.complete()}asObservable(){const e=new ye;return e.source=this,e}}return n.create=(t,e)=>new Zi(t,e),n})();class Zi extends ke{constructor(t,e){super(),this.destination=t,this.source=e}next(t){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===i||i.call(e,t)}error(t){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===i||i.call(e,t)}complete(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)}_subscribe(t){var e,i;return null!==(i=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==i?i:Ue}}function qe(n){return t=>{if(function yt(n){return q(n?.lift)}(t))return t.lift(function(e){try{return n(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function Ft(n,t,e,i,r){return new Jn(n,t,e,i,r)}class Jn extends _t{constructor(t,e,i,r,o,a){super(t),this.onFinalize=o,this.shouldUnsubscribe=a,this._next=e?function(c){try{e(c)}catch(d){t.error(d)}}:super._next,this._error=r?function(c){try{r(c)}catch(d){t.error(d)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function Ln(n,t){return qe((e,i)=>{let r=0;e.subscribe(Ft(i,o=>{i.next(n.call(t,o,r++))}))})}function yi(n){return this instanceof yi?(this.v=n,this):new yi(n)}function pi(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,t=n[Symbol.asyncIterator];return t?t.call(n):(n=function Ke(n){var t="function"==typeof Symbol&&Symbol.iterator,e=t&&n[t],i=0;if(e)return e.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&i>=n.length&&(n=void 0),{value:n&&n[i++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(n),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(o){e[o]=n[o]&&function(a){return new Promise(function(c,d){!function r(o,a,c,d){Promise.resolve(d).then(function(h){o({value:h,done:c})},a)}(c,d,(a=n[o](a)).done,a.value)})}}}const N=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function Ie(n){return q(n?.then)}function ft(n){return q(n[Ze])}function gi(n){return Symbol.asyncIterator&&q(n?.[Symbol.asyncIterator])}function wn(n){return new TypeError(`You provided ${null!==n&&"object"==typeof n?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const co=function as(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function lo(n){return q(n?.[co])}function Ia(n){return function qi(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=e.apply(n,t||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(M){i[M]&&(r[M]=function(A){return new Promise(function(L,j){o.push([M,A,L,j])>1||c(M,A)})})}function c(M,A){try{!function d(M){M.value instanceof yi?Promise.resolve(M.value.v).then(h,p):_(o[0][2],M)}(i[M](A))}catch(L){_(o[0][3],L)}}function h(M){c("next",M)}function p(M){c("throw",M)}function _(M,A){M(A),o.shift(),o.length&&c(o[0][0],o[0][1])}}(this,arguments,function*(){const e=n.getReader();try{for(;;){const{value:i,done:r}=yield yi(e.read());if(r)return yield yi(void 0);yield yield yi(i)}}finally{e.releaseLock()}})}function Xs(n){return q(n?.getReader)}function vi(n){if(n instanceof ye)return n;if(null!=n){if(ft(n))return function cs(n){return new ye(t=>{const e=n[Ze]();if(q(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(n);if(N(n))return function Io(n){return new ye(t=>{for(let e=0;e{n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,de)})}(n);if(gi(n))return Fo(n);if(lo(n))return function Ao(n){return new ye(t=>{for(const e of n)if(t.next(e),t.closed)return;t.complete()})}(n);if(Xs(n))return function Ms(n){return Fo(Ia(n))}(n)}throw wn(n)}function Fo(n){return new ye(t=>{(function Tr(n,t){var e,i,r,o;return function rs(n,t,e,i){return new(e||(e=Promise))(function(o,a){function c(p){try{h(i.next(p))}catch(_){a(_)}}function d(p){try{h(i.throw(p))}catch(_){a(_)}}function h(p){p.done?o(p.value):function r(o){return o instanceof e?o:new e(function(a){a(o)})}(p.value).then(c,d)}h((i=i.apply(n,t||[])).next())})}(this,void 0,void 0,function*(){try{for(e=pi(n);!(i=yield e.next()).done;)if(t.next(i.value),t.closed)return}catch(a){r={error:a}}finally{try{i&&!i.done&&(o=e.return)&&(yield o.call(e))}finally{if(r)throw r.error}}t.complete()})})(n,t).catch(e=>t.error(e))})}function Ki(n,t,e,i=0,r=!1){const o=t.schedule(function(){e(),r?n.add(this.schedule(null,i)):this.unsubscribe()},i);if(n.add(o),!r)return o}function Oo(n,t,e=1/0){return q(t)?Oo((i,r)=>Ln((o,a)=>t(i,o,r,a))(vi(n(i,r))),e):("number"==typeof t&&(e=t),qe((i,r)=>function Aa(n,t,e,i,r,o,a,c){const d=[];let h=0,p=0,_=!1;const M=()=>{_&&!d.length&&!h&&t.complete()},A=j=>h{o&&t.next(j),h++;let J=!1;vi(e(j,p++)).subscribe(Ft(t,le=>{r?.(le),o?A(le):t.next(le)},()=>{J=!0},void 0,()=>{if(J)try{for(h--;d.length&&hL(le)):L(le)}M()}catch(le){t.error(le)}}))};return n.subscribe(Ft(t,A,()=>{_=!0,M()})),()=>{c?.()}}(i,r,n,e)))}function Ro(n=1/0){return Oo(He,n)}const Zn=new ye(n=>n.complete());function ic(n){return n&&q(n.schedule)}function oi(n){return n[n.length-1]}function Po(n){return q(oi(n))?n.pop():void 0}function Lo(n){return ic(oi(n))?n.pop():void 0}function Qs(n,t=0){return qe((e,i)=>{e.subscribe(Ft(i,r=>Ki(i,n,()=>i.next(r),t),()=>Ki(i,n,()=>i.complete(),t),r=>Ki(i,n,()=>i.error(r),t)))})}function sr(n,t=0){return qe((e,i)=>{i.add(n.schedule(()=>e.subscribe(i),t))})}function Bo(n,t){if(!n)throw new Error("Iterable cannot be null");return new ye(e=>{Ki(e,t,()=>{const i=n[Symbol.asyncIterator]();Ki(e,t,()=>{i.next().then(r=>{r.done?e.complete():e.next(r.value)})},0,!0)})})}function ls(n,t){return t?function Js(n,t){if(null!=n){if(ft(n))return function Xi(n,t){return vi(n).pipe(sr(t),Qs(t))}(n,t);if(N(n))return function No(n,t){return new ye(e=>{let i=0;return t.schedule(function(){i===n.length?e.complete():(e.next(n[i++]),e.closed||this.schedule())})})}(n,t);if(Ie(n))return function Ci(n,t){return vi(n).pipe(sr(t),Qs(t))}(n,t);if(gi(n))return Bo(n,t);if(lo(n))return function oc(n,t){return new ye(e=>{let i;return Ki(e,t,()=>{i=n[co](),Ki(e,t,()=>{let r,o;try{({value:r,done:o}=i.next())}catch(a){return void e.error(a)}o?e.complete():e.next(r)},0,!0)}),()=>q(i?.return)&&i.return()})}(n,t);if(Xs(n))return function Ts(n,t){return Bo(Ia(n),t)}(n,t)}throw wn(n)}(n,t):vi(n)}function si(...n){const t=Lo(n),e=function rc(n,t){return"number"==typeof oi(n)?n.pop():t}(n,1/0),i=n;return i.length?1===i.length?vi(i[0]):Ro(e)(ls(i,t)):Zn}function ea(n={}){const{connector:t=(()=>new ke),resetOnError:e=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=n;return o=>{let a,c,d,h=0,p=!1,_=!1;const M=()=>{c?.unsubscribe(),c=void 0},A=()=>{M(),a=d=void 0,p=_=!1},L=()=>{const j=a;A(),j?.unsubscribe()};return qe((j,J)=>{h++,!_&&!p&&M();const le=d=d??t();J.add(()=>{h--,0===h&&!_&&!p&&(c=kr(L,r))}),le.subscribe(J),!a&&h>0&&(a=new cn({next:Ve=>le.next(Ve),error:Ve=>{_=!0,M(),c=kr(A,e,Ve),le.error(Ve)},complete:()=>{p=!0,M(),c=kr(A,i),le.complete()}}),vi(j).subscribe(a))})(o)}}function kr(n,t,...e){if(!0===t)return void n();if(!1===t)return;const i=new cn({next:()=>{i.unsubscribe(),n()}});return vi(t(...e)).subscribe(i)}function On(n){for(let t in n)if(n[t]===On)return t;throw Error("Could not find renamed property on target object.")}function uo(n,t){for(const e in t)t.hasOwnProperty(e)&&!n.hasOwnProperty(e)&&(n[e]=t[e])}function ze(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(ze).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const t=n.toString();if(null==t)return""+t;const e=t.indexOf("\n");return-1===e?t:t.substring(0,e)}function Xr(n,t){return null==n||""===n?null===t?"":t:null==t||""===t?n:n+" "+t}const Mi=On({__forward_ref__:On});function on(n){return n.__forward_ref__=on,n.toString=function(){return ze(this())},n}function Ht(n){return ar(n)?n():n}function ar(n){return"function"==typeof n&&n.hasOwnProperty(Mi)&&n.__forward_ref__===on}function ho(n){return n&&!!n.\u0275providers}const Ii="https://g.co/ng/security#xss";class ve extends Error{constructor(t,e){super(ks(t,e)),this.code=t}}function ks(n,t){return`NG0${Math.abs(n)}${t?": "+t.trim():""}`}function Xt(n){return"string"==typeof n?n:null==n?"":String(n)}function ui(n,t){throw new ve(-201,!1)}function Qi(n,t){null==n&&function Rn(n,t,e,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${e} ${i} ${t} <=Actual]`))}(t,n,null,"!=")}function rt(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function Jt(n){return{providers:n.providers||[],imports:n.imports||[]}}function Ss(n){return W(n,Ti)||W(n,Fn)}function W(n,t){return n.hasOwnProperty(t)?n[t]:null}function Tn(n){return n&&(n.hasOwnProperty($n)||n.hasOwnProperty(ds))?n[$n]:null}const Ti=On({\u0275prov:On}),$n=On({\u0275inj:On}),Fn=On({ngInjectableDef:On}),ds=On({ngInjectorDef:On});var vt=(()=>((vt=vt||{})[vt.Default=0]="Default",vt[vt.Host=1]="Host",vt[vt.Self=2]="Self",vt[vt.SkipSelf=4]="SkipSelf",vt[vt.Optional=8]="Optional",vt))();let Ho;function $i(n){const t=Ho;return Ho=n,t}function zo(n,t,e){const i=Ss(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&vt.Optional?null:void 0!==t?t:void ui(ze(n))}const jn=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Ra={},Pa="__NG_DI_FLAG__",ac="ngTempTokenPath",ad="ngTokenPath",bl=/\n/gm,Oc="\u0275",Is="__source";let us;function Wr(n){const t=us;return us=n,t}function hs(n,t=vt.Default){if(void 0===us)throw new ve(-203,!1);return null===us?zo(n,void 0,t):us.get(n,t&vt.Optional?null:void 0,t)}function ie(n,t=vt.Default){return(function Ji(){return Ho}()||hs)(Ht(n),t)}function _i(n,t=vt.Default){return ie(n,Sr(t))}function Sr(n){return typeof n>"u"||"number"==typeof n?n:0|(n.optional&&8)|(n.host&&1)|(n.self&&2)|(n.skipSelf&&4)}function cc(n){const t=[];for(let e=0;e((po=po||{})[po.OnPush=0]="OnPush",po[po.Default=1]="Default",po))(),Ir=(()=>{return(n=Ir||(Ir={}))[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom",Ir;var n})();const go={},Pn=[],jo=On({\u0275cmp:On}),Fs=On({\u0275dir:On}),Uo=On({\u0275pipe:On}),oa=On({\u0275mod:On}),Gr=On({\u0275fac:On}),Qr=On({__NG_ELEMENT_ID__:On});let Os=0;function S(n){return $o(()=>{const e=!0===n.standalone,i={},r={type:n.type,providersResolver:null,decls:n.decls,vars:n.vars,factory:null,template:n.template||null,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:i,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===po.OnPush,directiveDefs:null,pipeDefs:null,standalone:e,dependencies:e&&n.dependencies||null,getStandaloneInjector:null,selectors:n.selectors||Pn,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||Ir.Emulated,id:"c"+Os++,styles:n.styles||Pn,_:null,setInput:null,schemas:n.schemas||null,tView:null,findHostDirectiveDefs:null,hostDirectives:null},o=n.dependencies,a=n.features;return r.inputs=g(n.inputs,i),r.outputs=g(n.outputs),a&&a.forEach(c=>c(r)),r.directiveDefs=o?()=>("function"==typeof o?o():o).map(Me).filter(tt):null,r.pipeDefs=o?()=>("function"==typeof o?o():o).map(z).filter(tt):null,r})}function Me(n){return F(n)||$(n)}function tt(n){return null!==n}function Re(n){return $o(()=>({type:n.type,bootstrap:n.bootstrap||Pn,declarations:n.declarations||Pn,imports:n.imports||Pn,exports:n.exports||Pn,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null}))}function g(n,t){if(null==n)return go;const e={};for(const i in n)if(n.hasOwnProperty(i)){let r=n[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),e[r]=i,t&&(t[r]=o)}return e}const C=S;function O(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,standalone:!0===n.standalone,onDestroy:n.type.prototype.ngOnDestroy||null}}function F(n){return n[jo]||null}function $(n){return n[Fs]||null}function z(n){return n[Uo]||null}const Le=0,oe=1,_e=2,st=3,$e=4,Nt=5,ln=6,kn=7,Gt=8,Tt=9,Pc=10,En=11,qd=12,sa=13,yl=14,dc=15,dr=16,_o=17,La=18,bo=19,Jr=20,Yf=21,xi=22,Fh=1,Zf=2,Kd=7,Xd=8,vl=9,eo=10;function Wo(n){return Array.isArray(n)&&"object"==typeof n[Fh]}function Rs(n){return Array.isArray(n)&&!0===n[Fh]}function Oh(n){return 0!=(4&n.flags)}function ld(n){return n.componentOffset>-1}function Qd(n){return 1==(1&n.flags)}function Ps(n){return null!==n.template}function Tb(n){return 0!=(256&n[_e])}function Lc(n,t){return n.hasOwnProperty(Gr)?n[Gr]:null}class Sb{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function ji(){return Kf}function Kf(n){return n.type.prototype.ngOnChanges&&(n.setInput=Ab),Ib}function Ib(){const n=Qf(this),t=n?.current;if(t){const e=n.previous;if(e===go)n.previous=t;else for(let i in t)e[i]=t[i];n.current=null,this.ngOnChanges(t)}}function Ab(n,t,e,i){const r=this.declaredInputs[e],o=Qf(n)||function Fb(n,t){return n[Xf]=t}(n,{previous:go,current:null}),a=o.current||(o.current={}),c=o.previous,d=c[r];a[r]=new Sb(d&&d.currentValue,t,c===go),n[i]=t}ji.ngInherit=!0;const Xf="__ngSimpleChanges__";function Qf(n){return n[Xf]||null}const ms=function(n,t,e){},aa="svg";function ur(n){for(;Array.isArray(n);)n=n[Le];return n}function Lh(n,t){return ur(t[n])}function fs(n,t){return ur(t[n.index])}function ep(n,t){return n.data[t]}function Cl(n,t){return n[t]}function Go(n,t){const e=t[n];return Wo(e)?e:e[Le]}function xl(n){return 64==(64&n[_e])}function Yo(n,t){return null==t?null:n[t]}function Nh(n){n[La]=0}function hr(n,t){n[Nt]+=t;let e=n,i=n[st];for(;null!==i&&(1===t&&1===e[Nt]||-1===t&&0===e[Nt]);)i[Nt]+=t,e=i,i=i[st]}const Vt={lFrame:Bb(null),bindingsEnabled:!0};function ca(){return Vt.bindingsEnabled}function Ee(){return Vt.lFrame.lView}function Bn(){return Vt.lFrame.tView}function nt(n){return Vt.lFrame.contextLView=n,n[Gt]}function at(n){return Vt.lFrame.contextLView=null,n}function Ar(){let n=op();for(;null!==n&&64===n.type;)n=n.parent;return n}function op(){return Vt.lFrame.currentTNode}function la(n,t){const e=Vt.lFrame;e.currentTNode=n,e.isParent=t}function sp(){return Vt.lFrame.isParent}function ap(){Vt.lFrame.isParent=!1}function to(){const n=Vt.lFrame;let t=n.bindingRootIndex;return-1===t&&(t=n.bindingRootIndex=n.tView.bindingStartIndex),t}function dd(){return Vt.lFrame.bindingIndex++}function uc(n){const t=Vt.lFrame,e=t.bindingIndex;return t.bindingIndex=t.bindingIndex+n,e}function Nb(n,t){const e=Vt.lFrame;e.bindingIndex=e.bindingRootIndex=n,ru(t)}function ru(n){Vt.lFrame.currentDirectiveIndex=n}function ou(n){const t=Vt.lFrame.currentDirectiveIndex;return-1===t?null:n[t]}function Vh(){return Vt.lFrame.currentQueryIndex}function su(n){Vt.lFrame.currentQueryIndex=n}function Dl(n){const t=n[oe];return 2===t.type?t.declTNode:1===t.type?n[ln]:null}function Hh(n,t,e){if(e&vt.SkipSelf){let r=t,o=n;for(;!(r=r.parent,null!==r||e&vt.Host||(r=Dl(o),null===r||(o=o[dc],10&r.type))););if(null===r)return!1;t=r,n=o}const i=Vt.lFrame=$h();return i.currentTNode=t,i.lView=n,!0}function zh(n){const t=$h(),e=n[oe];Vt.lFrame=t,t.currentTNode=e.firstChild,t.lView=n,t.tView=e,t.contextLView=n,t.bindingIndex=e.bindingStartIndex,t.inI18n=!1}function $h(){const n=Vt.lFrame,t=null===n?null:n.child;return null===t?Bb(n):t}function Bb(n){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:n,child:null,inI18n:!1};return null!==n&&(n.child=t),t}function lp(){const n=Vt.lFrame;return Vt.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const ps=lp;function ud(){const n=lp();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function Fr(){return Vt.lFrame.selectedIndex}function hc(n){Vt.lFrame.selectedIndex=n}function Ri(){const n=Vt.lFrame;return ep(n.tView,n.selectedIndex)}function mc(){Vt.lFrame.currentNamespace=aa}function au(){!function dp(){Vt.lFrame.currentNamespace=null}()}function cu(n,t){for(let e=t.directiveStart,i=t.directiveEnd;e=i)break}else t[d]<0&&(n[La]+=65536),(c>11>16&&(3&n[_e])===t){n[_e]+=2048,ms(4,c,o);try{o.call(c)}finally{ms(5,c,o)}}}else{ms(4,c,o);try{o.call(c)}finally{ms(5,c,o)}}}const fc=-1;class pc{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function fp(n,t,e){let i=0;for(;it){a=o-1;break}}}for(;o>16}(n),i=t;for(;e>0;)i=i[dc],e--;return i}let Yh=!0;function hu(n){const t=Yh;return Yh=n,t}const Zh=255,Bc=5;let qh=0;const ua={};function mu(n,t){const e=bp(n,t);if(-1!==e)return e;const i=t[oe];i.firstCreatePass&&(n.injectorIndex=t.length,fu(i.data,n),fu(t,null),fu(i.blueprint,null));const r=pu(n,t),o=n.injectorIndex;if(_p(r)){const a=uu(r),c=kl(r,t),d=c[oe].data;for(let h=0;h<8;h++)t[o+h]=c[a+h]|d[a+h]}return t[o+8]=r,o}function fu(n,t){n.push(0,0,0,0,0,0,0,0,t)}function bp(n,t){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===t[n.injectorIndex+8]?-1:n.injectorIndex}function pu(n,t){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let e=0,i=null,r=t;for(;null!==r;){if(i=Kh(r),null===i)return fc;if(e++,r=r[dc],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return fc}function hd(n,t,e){!function jb(n,t,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(Qr)&&(i=e[Qr]),null==i&&(i=e[Qr]=qh++);const r=i&Zh;t.data[n+(r>>Bc)]|=1<=0?t&Zh:Wb:t}(e);if("function"==typeof o){if(!Hh(t,n,i))return i&vt.Host?yp(r,0,i):md(t,e,i,r);try{const a=o(i);if(null!=a||i&vt.Optional)return a;ui()}finally{ps()}}else if("number"==typeof o){let a=null,c=bp(n,t),d=fc,h=i&vt.Host?t[dr][ln]:null;for((-1===c||i&vt.SkipSelf)&&(d=-1===c?pu(n,t):t[c+8],d!==fc&&xp(i,!1)?(a=t[oe],c=uu(d),t=kl(d,t)):c=-1);-1!==c;){const p=t[oe];if(Cp(o,c,p.data)){const _=_u(c,t,e,a,i,h);if(_!==ua)return _}d=t[c+8],d!==fc&&xp(i,t[oe].data[c+8]===h)&&Cp(o,c,t)?(a=p,c=uu(d),t=kl(d,t)):c=-1}}return r}function _u(n,t,e,i,r,o){const a=t[oe],c=a.data[n+8],p=Va(c,a,e,null==i?ld(c)&&Yh:i!=a&&0!=(3&c.type),r&vt.Host&&o===c);return null!==p?Vc(t,a,p,c):ua}function Va(n,t,e,i,r){const o=n.providerIndexes,a=t.data,c=1048575&o,d=n.directiveStart,p=o>>20,M=r?c+p:n.directiveEnd;for(let A=i?c:c+p;A=d&&L.type===e)return A}if(r){const A=a[d];if(A&&Ps(A)&&A.type===e)return d}return null}function Vc(n,t,e,i){let r=n[e];const o=t.data;if(function Hb(n){return n instanceof pc}(r)){const a=r;a.resolving&&function Er(n,t){const e=t?`. Dependency path: ${t.join(" > ")} > ${n}`:"";throw new ve(-200,`Circular dependency in DI detected for ${n}${e}`)}(function An(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():Xt(n)}(o[e]));const c=hu(a.canSeeViewProviders);a.resolving=!0;const d=a.injectImpl?$i(a.injectImpl):null;Hh(n,i,vt.Default);try{r=n[e]=a.factory(void 0,o,n,i),t.firstCreatePass&&e>=i.directiveStart&&function ew(n,t,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=t.type.prototype;if(i){const a=Kf(t);(e.preOrderHooks||(e.preOrderHooks=[])).push(n,a),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,a)}r&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-n,r),o&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,o))}(e,o[e],t)}finally{null!==d&&$i(d),hu(c),a.resolving=!1,ps()}}return r}function Cp(n,t,e){return!!(e[t+(n>>Bc)]&1<{const t=n.prototype.constructor,e=t[Gr]||bu(t),i=Object.prototype;let r=Object.getPrototypeOf(n.prototype).constructor;for(;r&&r!==i;){const o=r[Gr]||bu(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function bu(n){return ar(n)?()=>{const t=bu(Ht(n));return t&&t()}:Lc(n)}function Kh(n){const t=n[oe],e=t.type;return 2===e?t.declTNode:1===e?n[ln]:null}function Ls(n){return function ow(n,t){if("class"===t)return n.classes;if("style"===t)return n.styles;const e=n.attrs;if(e){const i=e.length;let r=0;for(;r{const i=function Qh(n){return function(...e){if(n){const i=n(...e);for(const r in i)this[r]=i[r]}}}(t);function r(...o){if(this instanceof r)return i.apply(this,o),this;const a=new r(...o);return c.annotation=a,c;function c(d,h,p){const _=d.hasOwnProperty(Ha)?d[Ha]:Object.defineProperty(d,Ha,{value:[]})[Ha];for(;_.length<=p;)_.push(null);return(_[p]=_[p]||[]).push(a),d}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=n,r.annotationCls=r,r})}class De{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=rt({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function za(n,t){n.forEach(e=>Array.isArray(e)?za(e,t):t(e))}function yu(n,t,e){t>=n.length?n.push(e):n.splice(t,0,e)}function Al(n,t){return t>=n.length-1?n.pop():n.splice(t,1)[0]}function Ai(n,t){const e=[];for(let i=0;i=0?n[1|i]=e:(i=~i,function Fl(n,t,e,i){let r=n.length;if(r==t)n.push(e,i);else if(1===r)n.push(i,n[0]),n[0]=e;else{for(r--,n.push(n[r-1],n[r]);r>t;)n[r]=n[r-2],r--;n[t]=e,n[t+1]=i}}(n,i,t,e)),i}function Mp(n,t){const e=$c(n,t);if(e>=0)return n[1|e]}function $c(n,t){return function fd(n,t,e){let i=0,r=n.length>>e;for(;r!==i;){const o=i+(r-i>>1),a=n[o<t?r=o:i=o+1}return~(r<({token:n})),-1),yo=ra(Sl("Optional"),8),_c=ra(Sl("SkipSelf"),4);var Zr=(()=>((Zr=Zr||{})[Zr.Important=1]="Important",Zr[Zr.DashCase=2]="DashCase",Zr))();const im=new Map;let cy=0;const om="__ngContext__";function Or(n,t){Wo(t)?(n[om]=t[Jr],function ly(n){im.set(n[Jr],n)}(t)):n[om]=t}let cm;function lm(n,t){return cm(n,t)}function Nl(n){const t=n[st];return Rs(t)?t[st]:t}function dm(n){return $p(n[sa])}function Tu(n){return $p(n[$e])}function $p(n){for(;null!==n&&!Rs(n);)n=n[$e];return n}function Bl(n,t,e,i,r){if(null!=i){let o,a=!1;Rs(i)?o=i:Wo(i)&&(a=!0,i=i[Le]);const c=ur(i);0===n&&null!==e?null==r?Zp(t,e,c):Wc(t,e,c,r||null,!0):1===n&&null!==e?Wc(t,e,c,r||null,!0):2===n?function Fu(n,t,e){const i=Eu(n,t);i&&function ky(n,t,e,i){n.removeChild(t,e,i)}(n,i,t,e)}(t,c,a):3===n&&t.destroyNode(c),null!=o&&function Ey(n,t,e,i,r){const o=e[Kd];o!==ur(e)&&Bl(t,n,i,o,r);for(let c=eo;c0&&(n[e-1][$e]=i[$e]);const o=Al(n,eo+t);!function Up(n,t){ma(n,t,t[En],2,null,null),t[Le]=null,t[ln]=null}(i[oe],i);const a=o[bo];null!==a&&a.detachView(o[oe]),i[st]=null,i[$e]=null,i[_e]&=-65}return i}function Gp(n,t){if(!(128&t[_e])){const e=t[En];e.destroyNode&&ma(n,t,e,3,null,null),function xy(n){let t=n[sa];if(!t)return ku(n[oe],n);for(;t;){let e=null;if(Wo(t))e=t[sa];else{const i=t[eo];i&&(e=i)}if(!e){for(;t&&!t[$e]&&t!==n;)Wo(t)&&ku(t[oe],t),t=t[st];null===t&&(t=n),Wo(t)&&ku(t[oe],t),e=t&&t[$e]}t=e}}(t)}}function ku(n,t){if(!(128&t[_e])){t[_e]&=-65,t[_e]|=128,function Ty(n,t){let e;if(null!=n&&null!=(e=n.destroyHooks))for(let i=0;i=0?i[r=a]():i[r=-a].unsubscribe(),o+=2}else{const a=i[r=e[o+1]];e[o].call(a)}if(null!==i){for(let o=r+1;o-1){const{encapsulation:o}=n.data[i.directiveStart+r];if(o===Ir.None||o===Ir.Emulated)return null}return fs(i,e)}}(n,t.parent,e)}function Wc(n,t,e,i,r){n.insertBefore(t,e,i,r)}function Zp(n,t,e){n.appendChild(t,e)}function qp(n,t,e,i,r){null!==i?Wc(n,t,e,i,r):Zp(n,t,e)}function Eu(n,t){return n.parentNode(t)}function Xp(n,t,e){return Jp(n,t,e)}let pm,Ru,mr,Hl,Jp=function Qp(n,t,e){return 40&n.type?fs(n,e):null};function Su(n,t,e,i){const r=Yp(n,i,t),o=t[En],c=Xp(i.parent||t[ln],i,t);if(null!=r)if(Array.isArray(e))for(let d=0;dn,createScript:n=>n,createScriptURL:n=>n})}catch{}return Ru}()?.createHTML(n)||n}function Yc(n){return function gs(){if(void 0===Hl&&(Hl=null,jn.trustedTypes))try{Hl=jn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return Hl}()?.createHTML(n)||n}class fa{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Ii})`}}class Lu extends fa{getTypeName(){return"HTML"}}class Oy extends fa{getTypeName(){return"Style"}}class ag extends fa{getTypeName(){return"Script"}}class _m extends fa{getTypeName(){return"URL"}}class bm extends fa{getTypeName(){return"ResourceURL"}}function tr(n){return n instanceof fa?n.changingThisBreaksApplicationSecurity:n}function pa(n,t){const e=function cg(n){return n instanceof fa&&n.getTypeName()||null}(n);if(null!=e&&e!==t){if("ResourceURL"===e&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${e} (see ${Ii})`)}return e===t}class Ly{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(Vl(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch{return null}}}class Ny{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const e=this.inertDocument.createElement("template");return e.innerHTML=Vl(t),e}}const Vy=/^(?:(?:https?|mailto|data|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi;function Bu(n){return(n=String(n)).match(Vy)?n:"unsafe:"+n}function _s(n){const t={};for(const e of n.split(","))t[e]=!0;return t}function yd(...n){const t={};for(const e of n)for(const i in e)e.hasOwnProperty(i)&&(t[i]=!0);return t}const Hy=_s("area,br,col,hr,img,wbr"),ym=_s("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),vm=_s("rp,rt"),Cm=yd(Hy,yd(ym,_s("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")),yd(vm,_s("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")),yd(vm,ym)),xm=_s("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),ja=yd(xm,_s("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"),_s("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")),Vu=_s("script,style,template");class Hu{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.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(t){const e=t.nodeName.toLowerCase();if(!Cm.hasOwnProperty(e))return this.sanitizedSomething=!0,!Vu.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=t.attributes;for(let r=0;r"),!0}endElement(t){const e=t.nodeName.toLowerCase();Cm.hasOwnProperty(e)&&!Hy.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(hg(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const $y=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ug=/([^\#-~ |!])/g;function hg(n){return n.replace(/&/g,"&").replace($y,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(ug,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let vd;function mg(n,t){let e=null;try{vd=vd||function dg(n){const t=new Ny(n);return function By(){try{return!!(new window.DOMParser).parseFromString(Vl(""),"text/html")}catch{return!1}}()?new Ly(t):t}(n);let i=t?String(t):"";e=vd.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=vd.getInertBodyElement(i)}while(i!==o);return Vl((new Hu).sanitizeChildren(zu(e)||e))}finally{if(e){const i=zu(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function zu(n){return"content"in n&&function jy(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var qn=(()=>((qn=qn||{})[qn.NONE=0]="NONE",qn[qn.HTML=1]="HTML",qn[qn.STYLE=2]="STYLE",qn[qn.SCRIPT=3]="SCRIPT",qn[qn.URL=4]="URL",qn[qn.RESOURCE_URL=5]="RESOURCE_URL",qn))();function fg(n){const t=function Zc(){const n=Ee();return n&&n[qd]}();return t?Yc(t.sanitize(qn.HTML,n)||""):pa(n,"HTML")?Yc(tr(n)):mg(function sg(){return void 0!==mr?mr:typeof document<"u"?document:void 0}(),Xt(n))}const Tm=new De("ENVIRONMENT_INITIALIZER"),_g=new De("INJECTOR",-1),km=new De("INJECTOR_DEF_TYPES");class bg{get(t,e=Ra){if(e===Ra){const i=new Error(`NullInjectorError: No provider for ${ze(t)}!`);throw i.name="NullInjectorError",i}return e}}function Gy(...n){return{\u0275providers:Em(0,n),\u0275fromNgModule:!0}}function Em(n,...t){const e=[],i=new Set;let r;return za(t,o=>{const a=o;ju(a,e,[],i)&&(r||(r=[]),r.push(a))}),void 0!==r&&vg(r,e),e}function vg(n,t){for(let e=0;e{t.push(o)})}}function ju(n,t,e,i){if(!(n=Ht(n)))return!1;let r=null,o=Tn(n);const a=!o&&F(n);if(o||a){if(a&&!a.standalone)return!1;r=n}else{const d=n.ngModule;if(o=Tn(d),!o)return!1;r=d}const c=i.has(r);if(a){if(c)return!1;if(i.add(r),a.dependencies){const d="function"==typeof a.dependencies?a.dependencies():a.dependencies;for(const h of d)ju(h,t,e,i)}}else{if(!o)return!1;{if(null!=o.imports&&!c){let h;i.add(r);try{za(o.imports,p=>{ju(p,t,e,i)&&(h||(h=[]),h.push(p))})}finally{}void 0!==h&&vg(h,t)}if(!c){const h=Lc(r)||(()=>new r);t.push({provide:r,useFactory:h,deps:Pn},{provide:km,useValue:r,multi:!0},{provide:Tm,useValue:()=>ie(r),multi:!0})}const d=o.providers;null==d||c||Uu(d,p=>{t.push(p)})}}return r!==n&&void 0!==n.providers}function Uu(n,t){for(let e of n)ho(e)&&(e=e.\u0275providers),Array.isArray(e)?Uu(e,t):t(e)}const Sm=On({provide:String,useValue:On});function $l(n){return null!==n&&"object"==typeof n&&Sm in n}function qc(n){return"function"==typeof n}const Wu=new De("Set Injector scope."),Cd={},qy={};let jl;function Gu(){return void 0===jl&&(jl=new bg),jl}class Kc{}class Cg extends Kc{get destroyed(){return this._destroyed}constructor(t,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,Fm(t,a=>this.processProvider(a)),this.records.set(_g,Ul(void 0,this)),r.has("environment")&&this.records.set(Kc,Ul(void 0,this));const o=this.records.get(Wu);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(km.multi,Pn,vt.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();for(const t of this._onDestroyHooks)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(t){this._onDestroyHooks.push(t)}runInContext(t){this.assertNotDestroyed();const e=Wr(this),i=$i(void 0);try{return t()}finally{Wr(e),$i(i)}}get(t,e=Ra,i=vt.Default){this.assertNotDestroyed(),i=Sr(i);const r=Wr(this),o=$i(void 0);try{if(!(i&vt.SkipSelf)){let c=this.records.get(t);if(void 0===c){const d=function Jy(n){return"function"==typeof n||"object"==typeof n&&n instanceof De}(t)&&Ss(t);c=d&&this.injectableDefInScope(d)?Ul(yc(t),Cd):null,this.records.set(t,c)}if(null!=c)return this.hydrate(t,c)}return(i&vt.Self?Gu():this.parent).get(t,e=i&vt.Optional&&e===Ra?null:e)}catch(a){if("NullInjectorError"===a.name){if((a[ac]=a[ac]||[]).unshift(ze(t)),r)throw a;return function cd(n,t,e,i){const r=n[ac];throw t[Is]&&r.unshift(t[Is]),n.message=function Rc(n,t,e,i=null){n=n&&"\n"===n.charAt(0)&&n.charAt(1)==Oc?n.slice(2):n;let r=ze(t);if(Array.isArray(t))r=t.map(ze).join(" -> ");else if("object"==typeof t){let o=[];for(let a in t)if(t.hasOwnProperty(a)){let c=t[a];o.push(a+":"+("string"==typeof c?JSON.stringify(c):ze(c)))}r=`{${o.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${n.replace(bl,"\n ")}`}("\n"+n.message,r,e,i),n[ad]=r,n[ac]=null,n}(a,t,"R3InjectorError",this.source)}throw a}finally{$i(o),Wr(r)}}resolveInjectorInitializers(){const t=Wr(this),e=$i(void 0);try{const i=this.get(Tm.multi,Pn,vt.Self);for(const r of i)r()}finally{Wr(t),$i(e)}}toString(){const t=[],e=this.records;for(const i of e.keys())t.push(ze(i));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ve(205,!1)}processProvider(t){let e=qc(t=Ht(t))?t:Ht(t&&t.provide);const i=function Xy(n){return $l(n)?Ul(void 0,n.useValue):Ul(xg(n),Cd)}(t);if(qc(t)||!0!==t.multi)this.records.get(e);else{let r=this.records.get(e);r||(r=Ul(void 0,Cd,!0),r.factory=()=>cc(r.multi),this.records.set(e,r)),e=t,r.multi.push(t)}this.records.set(e,i)}hydrate(t,e){return e.value===Cd&&(e.value=qy,e.value=e.factory()),"object"==typeof e.value&&e.value&&function Qy(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=Ht(t.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}}function yc(n){const t=Ss(n),e=null!==t?t.factory:Lc(n);if(null!==e)return e;if(n instanceof De)throw new ve(204,!1);if(n instanceof Function)return function Ky(n){const t=n.length;if(t>0)throw Ai(t,"?"),new ve(204,!1);const e=function Oe(n){const t=n&&(n[Ti]||n[Fn]);return t?(function it(n){if(n.hasOwnProperty("name"))return n.name;(""+n).match(/^function\s*([^\s(]+)/)}(n),t):null}(n);return null!==e?()=>e.factory(n):()=>new n}(n);throw new ve(204,!1)}function xg(n,t,e){let i;if(qc(n)){const r=Ht(n);return Lc(r)||yc(r)}if($l(n))i=()=>Ht(n.useValue);else if(function Am(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...cc(n.deps||[]));else if(function Im(n){return!(!n||!n.useExisting)}(n))i=()=>ie(Ht(n.useExisting));else{const r=Ht(n&&(n.useClass||n.provide));if(!function wg(n){return!!n.deps}(n))return Lc(r)||yc(r);i=()=>new r(...cc(n.deps))}return i}function Ul(n,t,e=!1){return{factory:n,value:t,multi:e?[]:void 0}}function Fm(n,t){for(const e of n)Array.isArray(e)?Fm(e,t):e&&ho(e)?Fm(e.\u0275providers,t):t(e)}class ww{}class s{}class b{resolveComponentFactory(t){throw function l(n){const t=Error(`No component factory found for ${ze(n)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=n,t}(t)}}let x=(()=>{class n{}return n.NULL=new b,n})();function w(){return T(Ar(),Ee())}function T(n,t){return new k(fs(n,t))}let k=(()=>{class n{constructor(e){this.nativeElement=e}}return n.__NG_ELEMENT_ID__=w,n})();function R(n){return n instanceof k?n.nativeElement:n}class V{}let te=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function Y(){const n=Ee(),e=Go(Ar().index,n);return(Wo(e)?e:n)[En]}(),n})(),ce=(()=>{class n{}return n.\u0275prov=rt({token:n,providedIn:"root",factory:()=>null}),n})();class dt{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const zt=new dt("15.2.2"),xe={},fe="ngOriginalError";function Fe(n){return n[fe]}class Qe{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t);this._console.error("ERROR",t),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(t){let e=t&&Fe(t);for(;e&&Fe(e);)e=Fe(e);return e||null}}function Lt(n,t,e){let i=n.length;for(;;){const r=n.indexOf(t,e);if(-1===r)return r;if(0===r||n.charCodeAt(r-1)<=32){const o=t.length;if(r+o===i||n.charCodeAt(r+o)<=32)return r}e=r+1}}const Kt="ng-template";function dn(n,t,e){let i=0;for(;io?"":r[_+1].toLowerCase();const A=8&i?M:null;if(A&&-1!==Lt(A,h,0)||2&i&&h!==M){if(ii(i))return!1;a=!0}}}}else{if(!a&&!ii(i)&&!ii(d))return!1;if(a&&ii(d))continue;a=!1,i=d|1&i}}return ii(i)||a}function ii(n){return 0==(1&n)}function Wn(n,t,e,i){if(null===t)return-1;let r=0;if(i||!e){let o=!1;for(;r-1)for(e++;e0?'="'+c+'"':"")+"]"}else 8&i?r+="."+a:4&i&&(r+=" "+a);else""!==r&&!ii(a)&&(t+=Fi(o,r),r=""),i=a,o=o||!ii(i);e++}return""!==r&&(t+=Fi(o,r)),t}const Be={};function I(n){Wl(Bn(),Ee(),Fr()+n,!1)}function Wl(n,t,e,i){if(!i)if(3==(3&t[_e])){const o=n.preOrderCheckHooks;null!==o&&lu(t,o,e)}else{const o=n.preOrderHooks;null!==o&&du(t,o,0,e)}hc(e)}function Tw(n,t=null,e=null,i){const r=kw(n,t,e,i);return r.resolveInjectorInitializers(),r}function kw(n,t=null,e=null,i,r=new Set){const o=[e||Pn,Gy(n)];return i=i||("object"==typeof n?void 0:ze(n)),new Cg(o,t||Gu(),i||null,r)}let Ko=(()=>{class n{static create(e,i){if(Array.isArray(e))return Tw({name:""},i,e,"");{const r=e.name??"";return Tw({name:r},e.parent,e.providers,r)}}}return n.THROW_IF_NOT_FOUND=Ra,n.NULL=new bg,n.\u0275prov=rt({token:n,providedIn:"any",factory:()=>ie(_g)}),n.__NG_ELEMENT_ID__=-1,n})();function D(n,t=vt.Default){const e=Ee();return null===e?ie(n,t):gu(Ar(),e,Ht(n),t)}function Om(){throw new Error("invalid")}function Rw(n,t){const e=n.contentQueries;if(null!==e)for(let i=0;ixi&&Wl(n,t,xi,!1),ms(a?2:0,r),e(i,r)}finally{hc(o),ms(a?3:1,r)}}function sv(n,t,e){if(Oh(t)){const r=t.directiveEnd;for(let o=t.directiveStart;o0;){const e=n[--t];if("number"==typeof e&&e<0)return e}return 0})(a)!=c&&a.push(c),a.push(e,i,o)}}(n,t,i,Rm(n,e,r.hostVars,Be),r)}function vc(n,t,e,i,r,o){const a=fs(n,t);!function hv(n,t,e,i,r,o,a){if(null==o)n.removeAttribute(t,r,e);else{const c=null==a?Xt(o):a(o,i||"",r);n.setAttribute(t,r,c,e)}}(t[En],a,o,n.value,e,i,r)}function EF(n,t,e,i,r,o){const a=o[t];if(null!==a){const c=i.setInput;for(let d=0;d0&&mv(e)}}function mv(n){for(let i=dm(n);null!==i;i=Tu(i))for(let r=eo;r0&&mv(o)}const e=n[oe].components;if(null!==e)for(let i=0;i0&&mv(r)}}function OF(n,t){const e=Go(t,n),i=e[oe];(function RF(n,t){for(let e=t.length;e-1&&(mm(t,i),Al(e,i))}this._attachedToViewContainer=!1}Gp(this._lView[oe],this._lView)}onDestroy(t){Nw(this._lView[oe],this._lView,null,t)}markForCheck(){fv(this._cdRefInjectingView||this._lView)}detach(){this._lView[_e]&=-65}reattach(){this._lView[_e]|=64}detectChanges(){Eg(this._lView[oe],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ve(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Cy(n,t){ma(n,t,t[En],2,null,null)}(this._lView[oe],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new ve(902,!1);this._appRef=t}}class PF extends Pm{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;Eg(t[oe],t,t[Gt],!1)}checkNoChanges(){}get context(){return null}}class Zw extends x{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=F(t);return new Lm(e,this.ngModule)}}function qw(n){const t=[];for(let e in n)n.hasOwnProperty(e)&&t.push({propName:n[e],templateName:e});return t}class NF{constructor(t,e){this.injector=t,this.parentInjector=e}get(t,e,i){i=Sr(i);const r=this.injector.get(t,xe,i);return r!==xe||e===xe?r:this.parentInjector.get(t,e,i)}}class Lm extends s{get inputs(){return qw(this.componentDef.inputs)}get outputs(){return qw(this.componentDef.outputs)}constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=function no(n){return n.map(ci).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}create(t,e,i,r){let o=(r=r||this.ngModule)instanceof Kc?r:r?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const a=o?new NF(t,o):t,c=a.get(V,null);if(null===c)throw new ve(407,!1);const d=a.get(ce,null),h=c.createRenderer(null,this.componentDef),p=this.componentDef.selectors[0][0]||"div",_=i?function mF(n,t,e){return n.selectRootElement(t,e===Ir.ShadowDom)}(h,i,this.componentDef.encapsulation):hm(h,p,function LF(n){const t=n.toLowerCase();return"svg"===t?aa:"math"===t?"math":null}(p)),M=this.componentDef.onPush?288:272,A=lv(0,null,null,1,0,null,null,null,null,null),L=Mg(null,A,null,M,null,null,c,h,d,a,null);let j,J;zh(L);try{const le=this.componentDef;let Ve,ge=null;le.findHostDirectiveDefs?(Ve=[],ge=new Map,le.findHostDirectiveDefs(le,Ve,ge),Ve.push(le)):Ve=[le];const Dt=function VF(n,t){const e=n[oe],i=xi;return n[i]=t,Zu(e,i,2,"#host",null)}(L,_),Yn=function HF(n,t,e,i,r,o,a,c){const d=r[oe];!function zF(n,t,e,i){for(const r of n)t.mergedAttrs=Tl(t.mergedAttrs,r.hostAttrs);null!==t.mergedAttrs&&(Sg(t,t.mergedAttrs,!0),null!==e&&rg(i,e,t))}(i,n,t,a);const h=o.createRenderer(t,e),p=Mg(r,Lw(e),null,e.onPush?32:16,r[n.index],n,o,h,c||null,null,null);return d.firstCreatePass&&uv(d,n,i.length-1),kg(r,p),r[n.index]=p}(Dt,_,le,Ve,L,c,h);J=ep(A,xi),_&&function jF(n,t,e,i){if(i)fp(n,e,["ng-version",zt.full]);else{const{attrs:r,classes:o}=function io(n){const t=[],e=[];let i=1,r=2;for(;i0&&ig(n,e,o.join(" "))}}(h,le,_,i),void 0!==e&&function UF(n,t,e){const i=n.projection=[];for(let r=0;r=0;i--){const r=n[i];r.hostVars=t+=r.hostVars,r.hostAttrs=Tl(r.hostAttrs,e=Tl(e,r.hostAttrs))}}(i)}function _v(n){return n===go?{}:n===Pn?[]:n}function YF(n,t){const e=n.viewQuery;n.viewQuery=e?(i,r)=>{t(i,r),e(i,r)}:t}function ZF(n,t){const e=n.contentQueries;n.contentQueries=e?(i,r,o)=>{t(i,r,o),e(i,r,o)}:t}function qF(n,t){const e=n.hostBindings;n.hostBindings=e?(i,r)=>{t(i,r),e(i,r)}:t}function Ag(n){return!!bv(n)&&(Array.isArray(n)||!(n instanceof Map)&&Symbol.iterator in n)}function bv(n){return null!==n&&("function"==typeof n||"object"==typeof n)}function Cc(n,t,e){return n[t]=e}function Co(n,t,e){return!Object.is(n[t],e)&&(n[t]=e,!0)}function xd(n,t,e,i){const r=Co(n,t,e);return Co(n,t+1,i)||r}function $t(n,t,e,i){const r=Ee();return Co(r,dd(),t)&&(Bn(),vc(Ri(),r,n,t,e,i)),$t}function Ku(n,t,e,i){return Co(n,dd(),e)?t+Xt(e)+i:Be}function Xu(n,t,e,i,r,o){const c=xd(n,function Ba(){return Vt.lFrame.bindingIndex}(),e,r);return uc(2),c?t+Xt(e)+i+Xt(r)+o:Be}function X(n,t,e,i,r,o,a,c){const d=Ee(),h=Bn(),p=n+xi,_=h.firstCreatePass?function oO(n,t,e,i,r,o,a,c,d){const h=t.consts,p=Zu(t,n,4,a||null,Yo(h,c));dv(t,e,p,Yo(h,d)),cu(t,p);const _=p.tView=lv(2,p,i,r,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,h);return null!==t.queries&&(t.queries.template(t,p),_.queries=t.queries.embeddedTView(p)),p}(p,h,d,t,e,i,r,o,a):h.data[p];la(_,!1);const M=d[En].createComment("");Su(h,d,M,_),Or(M,d),kg(d,d[p]=jw(M,d,M,_)),Qd(_)&&av(h,d,_),null!=a&&cv(d,_,c)}function Xo(n){return Cl(function Jx(){return Vt.lFrame.contextLView}(),xi+n)}function B(n,t,e){const i=Ee();return Co(i,dd(),t)&&Bs(Bn(),Ri(),i,n,t,i[En],e,!1),B}function yv(n,t,e,i,r){const a=r?"class":"style";gv(n,e,t.inputs[a],a,i)}function v(n,t,e,i){const r=Ee(),o=Bn(),a=xi+n,c=r[En],d=o.firstCreatePass?function aO(n,t,e,i,r,o){const a=t.consts,d=Zu(t,n,2,i,Yo(a,r));return dv(t,e,d,Yo(a,o)),null!==d.attrs&&Sg(d,d.attrs,!1),null!==d.mergedAttrs&&Sg(d,d.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,d),d}(a,o,r,t,e,i):o.data[a],h=r[a]=hm(c,t,function Vb(){return Vt.lFrame.currentNamespace}()),p=Qd(d);return la(d,!0),rg(c,h,d),32!=(32&d.flags)&&Su(o,r,h,d),0===function Jd(){return Vt.lFrame.elementDepthCount}()&&Or(h,r),function eu(){Vt.lFrame.elementDepthCount++}(),p&&(av(o,r,d),sv(o,d,r)),null!==i&&cv(r,d),v}function y(){let n=Ar();sp()?ap():(n=n.parent,la(n,!1));const t=n;!function Pb(){Vt.lFrame.elementDepthCount--}();const e=Bn();return e.firstCreatePass&&(cu(e,n),Oh(n)&&e.queries.elementEnd(n)),null!=t.classesWithoutHost&&function nw(n){return 0!=(8&n.flags)}(t)&&yv(e,t,Ee(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function mp(n){return 0!=(16&n.flags)}(t)&&yv(e,t,Ee(),t.stylesWithoutHost,!1),y}function Pe(n,t,e,i){return v(n,t,e,i),y(),Pe}function ro(n,t,e){const i=Ee(),r=Bn(),o=n+xi,a=r.firstCreatePass?function cO(n,t,e,i,r){const o=t.consts,a=Yo(o,i),c=Zu(t,n,8,"ng-container",a);return null!==a&&Sg(c,a,!0),dv(t,e,c,Yo(o,r)),null!==t.queries&&t.queries.elementStart(t,c),c}(o,r,i,t,e):r.data[o];la(a,!0);const c=i[o]=i[En].createComment("");return Su(r,i,c,a),Or(c,i),Qd(a)&&(av(r,i,a),sv(r,a,i)),null!=e&&cv(i,a),ro}function oo(){let n=Ar();const t=Bn();return sp()?ap():(n=n.parent,la(n,!1)),t.firstCreatePass&&(cu(t,n),Oh(n)&&t.queries.elementEnd(n)),oo}function Zt(){return Ee()}function Og(n){return!!n&&"function"==typeof n.then}function u1(n){return!!n&&"function"==typeof n.subscribe}const h1=u1;function ue(n,t,e,i){const r=Ee(),o=Bn(),a=Ar();return m1(o,r,r[En],a,n,t,i),ue}function vv(n,t){const e=Ar(),i=Ee(),r=Bn();return m1(r,i,Gw(ou(r.data),e,i),e,n,t),vv}function m1(n,t,e,i,r,o,a){const c=Qd(i),h=n.firstCreatePass&&Ww(n),p=t[Gt],_=Uw(t);let M=!0;if(3&i.type||a){const j=fs(i,t),J=a?a(j):j,le=_.length,Ve=a?Dt=>a(ur(Dt[i.index])):i.index;let ge=null;if(!a&&c&&(ge=function lO(n,t,e,i){const r=n.cleanup;if(null!=r)for(let o=0;od?c[d]:null}"string"==typeof a&&(o+=2)}return null}(n,t,r,i.index)),null!==ge)(ge.__ngLastListenerFn__||ge).__ngNextListenerFn__=o,ge.__ngLastListenerFn__=o,M=!1;else{o=p1(i,t,p,o,!1);const Dt=e.listen(J,r,o);_.push(o,Dt),h&&h.push(r,Ve,le,le+1)}}else o=p1(i,t,p,o,!1);const A=i.outputs;let L;if(M&&null!==A&&(L=A[r])){const j=L.length;if(j)for(let J=0;J-1?Go(n.index,t):t);let d=f1(t,e,i,a),h=o.__ngNextListenerFn__;for(;h;)d=f1(t,e,h,a)&&d,h=h.__ngNextListenerFn__;return r&&!1===d&&(a.preventDefault(),a.returnValue=!1),d}}function ne(n=1){return function jh(n){return(Vt.lFrame.contextLView=function Uh(n,t){for(;n>0;)t=t[dc],n--;return t}(n,Vt.lFrame.contextLView))[Gt]}(n)}function dO(n,t){let e=null;const i=function gt(n){const t=n.attrs;if(null!=t){const e=t.indexOf(5);if(!(1&e))return t[e+1]}return null}(n);for(let r=0;r>17&32767}function xv(n){return 2|n}function wd(n){return(131068&n)>>2}function wv(n,t){return-131069&n|t<<2}function Dv(n){return 1|n}function D1(n,t,e,i,r){const o=n[e+1],a=null===t;let c=i?Gl(o):wd(o),d=!1;for(;0!==c&&(!1===d||a);){const p=n[c+1];gO(n[c],t)&&(d=!0,n[c+1]=i?Dv(p):xv(p)),c=i?Gl(p):wd(p)}d&&(n[e+1]=i?xv(o):Dv(o))}function gO(n,t){return null===n||null==t||(Array.isArray(n)?n[1]:n)===t||!(!Array.isArray(n)||"string"!=typeof t)&&$c(n,t)>=0}const Pr={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function M1(n){return n.substring(Pr.key,Pr.keyEnd)}function T1(n,t){const e=Pr.textEnd;return e===t?-1:(t=Pr.keyEnd=function vO(n,t,e){for(;t32;)t++;return t}(n,Pr.key=t,e),rh(n,t,e))}function rh(n,t,e){for(;t=0;e=T1(t,e))Yr(n,M1(t),!0)}function Wa(n,t,e,i){const r=Ee(),o=Bn(),a=uc(2);o.firstUpdatePass&&F1(o,n,a,i),t!==Be&&Co(r,a,t)&&R1(o,o.data[Fr()],r,r[En],n,r[a+1]=function AO(n,t){return null==n||("string"==typeof t?n+=t:"object"==typeof n&&(n=ze(tr(n)))),n}(t,e),i,a)}function A1(n,t){return t>=n.expandoStartIndex}function F1(n,t,e,i){const r=n.data;if(null===r[e+1]){const o=r[Fr()],a=A1(n,e);L1(o,i)&&null===t&&!a&&(t=!1),t=function MO(n,t,e,i){const r=ou(n);let o=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(e=Hm(e=Mv(null,n,t,e,i),t.attrs,i),o=null);else{const a=t.directiveStylingLast;if(-1===a||n[a]!==r)if(e=Mv(r,n,t,e,i),null===o){let d=function TO(n,t,e){const i=e?t.classBindings:t.styleBindings;if(0!==wd(i))return n[Gl(i)]}(n,t,i);void 0!==d&&Array.isArray(d)&&(d=Mv(null,n,t,d[1],i),d=Hm(d,t.attrs,i),function kO(n,t,e,i){n[Gl(e?t.classBindings:t.styleBindings)]=i}(n,t,i,d))}else o=function EO(n,t,e){let i;const r=t.directiveEnd;for(let o=1+t.directiveStylingLast;o0)&&(h=!0)):p=e,r)if(0!==d){const M=Gl(n[c+1]);n[i+1]=Rg(M,c),0!==M&&(n[M+1]=wv(n[M+1],i)),n[c+1]=function hO(n,t){return 131071&n|t<<17}(n[c+1],i)}else n[i+1]=Rg(c,0),0!==c&&(n[c+1]=wv(n[c+1],i)),c=i;else n[i+1]=Rg(d,0),0===c?c=i:n[d+1]=wv(n[d+1],i),d=i;h&&(n[i+1]=xv(n[i+1])),D1(n,p,i,!0),D1(n,p,i,!1),function pO(n,t,e,i,r){const o=r?n.residualClasses:n.residualStyles;null!=o&&"string"==typeof t&&$c(o,t)>=0&&(e[i+1]=Dv(e[i+1]))}(t,p,n,i,o),a=Rg(c,d),o?t.classBindings=a:t.styleBindings=a}(r,o,t,e,a,i)}}function Mv(n,t,e,i,r){let o=null;const a=e.directiveEnd;let c=e.directiveStylingLast;for(-1===c?c=e.directiveStart:c++;c0;){const d=n[r],h=Array.isArray(d),p=h?d[1]:d,_=null===p;let M=e[r+1];M===Be&&(M=_?Pn:void 0);let A=_?Mp(M,i):p===i?M:void 0;if(h&&!Pg(A)&&(A=Mp(d,i)),Pg(A)&&(c=A,a))return c;const L=n[r+1];r=a?Gl(L):wd(L)}if(null!==t){let d=o?t.residualClasses:t.residualStyles;null!=d&&(c=Mp(d,i))}return c}function Pg(n){return void 0!==n}function L1(n,t){return 0!=(n.flags&(t?8:16))}function E(n,t=""){const e=Ee(),i=Bn(),r=n+xi,o=i.firstCreatePass?Zu(i,r,1,t,null):i.data[r],a=e[r]=function um(n,t){return n.createText(t)}(e[En],t);Su(i,e,a,o),la(o,!1)}function Qt(n){return bi("",n,""),Qt}function bi(n,t,e){const i=Ee(),r=Ku(i,n,t,e);return r!==Be&&Xc(i,Fr(),r),bi}function zm(n,t,e,i,r){const o=Ee(),a=Xu(o,n,t,e,i,r);return a!==Be&&Xc(o,Fr(),a),zm}function U1(n,t,e){!function Ga(n,t,e,i){const r=Bn(),o=uc(2);r.firstUpdatePass&&F1(r,null,o,i);const a=Ee();if(e!==Be&&Co(a,o,e)){const c=r.data[Fr()];if(L1(c,i)&&!A1(r,o)){let d=i?c.classesWithoutHost:c.stylesWithoutHost;null!==d&&(e=Xr(d,e||"")),yv(r,c,a,e,i)}else!function IO(n,t,e,i,r,o,a,c){r===Be&&(r=Pn);let d=0,h=0,p=0>20;if(qc(n)||!n.multi){const A=new pc(d,r,D),L=Av(c,t,r?p:p+M,_);-1===L?(hd(mu(h,a),o,c),Iv(o,n,t.length),t.push(c),h.directiveStart++,h.directiveEnd++,r&&(h.providerIndexes+=1048576),e.push(A),a.push(A)):(e[L]=A,a[L]=A)}else{const A=Av(c,t,p+M,_),L=Av(c,t,p,p+M),J=L>=0&&e[L];if(r&&!J||!r&&!(A>=0&&e[A])){hd(mu(h,a),o,c);const le=function q2(n,t,e,i,r){const o=new pc(n,e,D);return o.multi=[],o.index=t,o.componentProviders=0,kD(o,r,i&&!e),o}(r?Z2:Y2,e.length,r,i,d);!r&&J&&(e[L].providerFactory=le),Iv(o,n,t.length,0),t.push(c),h.directiveStart++,h.directiveEnd++,r&&(h.providerIndexes+=1048576),e.push(le),a.push(le)}else Iv(o,n,A>-1?A:L,kD(e[r?L:A],d,!r&&i));!r&&i&&J&&e[L].componentProviders++}}}function Iv(n,t,e,i){const r=qc(t),o=function Zy(n){return!!n.useClass}(t);if(r||o){const d=(o?Ht(t.useClass):t).prototype.ngOnDestroy;if(d){const h=n.destroyHooks||(n.destroyHooks=[]);if(!r&&t.multi){const p=h.indexOf(e);-1===p?h.push(e,[i,d]):h[p+1].push(i,d)}else h.push(e,d)}}}function kD(n,t,e){return e&&n.componentProviders++,n.multi.push(t)-1}function Av(n,t,e,i){for(let r=e;r{e.providersResolver=(i,r)=>function G2(n,t,e){const i=Bn();if(i.firstCreatePass){const r=Ps(n);Sv(e,i.data,i.blueprint,r,!0),Sv(t,i.data,i.blueprint,r,!1)}}(i,r?r(n):n,t)}}class ah{}class K2{}class ED extends ah{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Zw(this);const i=function pe(n,t){const e=n[oa]||null;if(!e&&!0===t)throw new Error(`Type ${ze(n)} does not have '\u0275mod' property.`);return e}(t);this._bootstrapComponents=function Ge(n){return n instanceof Function?n():n}(i.bootstrap),this._r3Injector=kw(t,e,[{provide:ah,useValue:this},{provide:x,useValue:this.componentFactoryResolver}],ze(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Ov extends K2{constructor(t){super(),this.moduleType=t}create(t){return new ED(this.moduleType,t)}}class Q2 extends ah{constructor(t,e,i){super(),this.componentFactoryResolver=new Zw(this),this.instance=null;const r=new Cg([...t,{provide:ah,useValue:this},{provide:x,useValue:this.componentFactoryResolver}],e||Gu(),i,new Set(["environment"]));this.injector=r,r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}let J2=(()=>{class n{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e.id)){const i=Em(0,e.type),r=i.length>0?function SD(n,t,e=null){return new Q2(n,t,e).injector}([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 n.\u0275prov=rt({token:n,providedIn:"environment",factory:()=>new n(ie(Kc))}),n})();function ID(n){n.getStandaloneInjector=t=>t.get(J2).getOrCreateStandaloneInjector(n)}function Ya(n,t,e){const i=to()+n,r=Ee();return r[i]===Be?Cc(r,i,e?t.call(e):t()):function Nm(n,t){return n[t]}(r,i)}function BD(n,t,e,i,r){return function HD(n,t,e,i,r,o,a){const c=t+e;return xd(n,c,r,o)?Cc(n,c+2,a?i.call(a,r,o):i(r,o)):Ym(n,c+2)}(Ee(),to(),n,t,e,i,r)}function Ym(n,t){const e=n[t];return e===Be?void 0:e}function VD(n,t,e,i,r,o){const a=t+e;return Co(n,a,r)?Cc(n,a+1,o?i.call(o,r):i(r)):Ym(n,a+1)}function Zm(n,t){const e=Bn();let i;const r=n+xi;e.firstCreatePass?(i=function pR(n,t){if(t)for(let e=t.length-1;e>=0;e--){const i=t[e];if(n===i.name)return i}}(t,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=Lc(i.type)),a=$i(D);try{const c=hu(!1),d=o();return hu(c),function sO(n,t,e,i){e>=n.data.length&&(n.data[e]=null,n.blueprint[e]=null),t[e]=i}(e,Ee(),r,d),d}finally{$i(a)}}function qm(n,t,e){const i=n+xi,r=Ee(),o=Cl(r,i);return function Km(n,t){return n[oe].data[t].pure}(r,i)?VD(r,to(),t,o.transform,e,o):o.transform(e)}function Pv(n){return t=>{setTimeout(n,void 0,t)}}const Xe=class vR extends ke{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){let r=t,o=e||(()=>null),a=i;if(t&&"object"==typeof t){const d=t;r=d.next?.bind(d),o=d.error?.bind(d),a=d.complete?.bind(d)}this.__isAsync&&(o=Pv(o),r&&(r=Pv(r)),a&&(a=Pv(a)));const c=super.subscribe({next:r,error:o,complete:a});return t instanceof re&&t.add(c),c}};function CR(){return this._results[Symbol.iterator]()}class Yl{get changes(){return this._changes||(this._changes=new Xe)}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=Yl.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=CR)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const i=this;i.dirty=!1;const r=function qo(n){return n.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function Jh(n,t,e){if(n.length!==t.length)return!1;for(let i=0;i{class n{}return n.__NG_ELEMENT_ID__=DR,n})();const xR=fr,wR=class extends xR{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t,e){const i=this._declarationTContainer.tView,r=Mg(this._declarationLView,i,t,16,null,i.declTNode,null,null,null,null,e||null);r[_o]=this._declarationLView[this._declarationTContainer.index];const a=this._declarationLView[bo];return null!==a&&(r[bo]=a.createEmbeddedView(i)),ov(i,r,t),new Pm(r)}};function DR(){return Hg(Ar(),Ee())}function Hg(n,t){return 4&n.type?new wR(t,n,T(n,t)):null}let pr=(()=>{class n{}return n.__NG_ELEMENT_ID__=MR,n})();function MR(){return GD(Ar(),Ee())}const TR=pr,UD=class extends TR{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return T(this._hostTNode,this._hostLView)}get injector(){return new Hc(this._hostTNode,this._hostLView)}get parentInjector(){const t=pu(this._hostTNode,this._hostLView);if(_p(t)){const e=kl(t,this._hostLView),i=uu(t);return new Hc(e[oe].data[i+8],e)}return new Hc(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=WD(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-eo}createEmbeddedView(t,e,i){let r,o;"number"==typeof i?r=i:null!=i&&(r=i.index,o=i.injector);const a=t.createEmbeddedView(e||{},o);return this.insert(a,r),a}createComponent(t,e,i,r,o){const a=t&&!function Zo(n){return"function"==typeof n}(t);let c;if(a)c=e;else{const _=e||{};c=_.index,i=_.injector,r=_.projectableNodes,o=_.environmentInjector||_.ngModuleRef}const d=a?t:new Lm(F(t)),h=i||this.parentInjector;if(!o&&null==d.ngModule){const M=(a?h:this.parentInjector).get(Kc,null);M&&(o=M)}const p=d.create(h,r,void 0,o);return this.insert(p.hostView,c),p}insert(t,e){const i=t._lView,r=i[oe];if(function wl(n){return Rs(n[st])}(i)){const p=this.indexOf(t);if(-1!==p)this.detach(p);else{const _=i[st],M=new UD(_,_[ln],_[st]);M.detach(M.indexOf(t))}}const o=this._adjustIndex(e),a=this._lContainer;!function wy(n,t,e,i){const r=eo+i,o=e.length;i>0&&(e[r-1][$e]=t),i0)i.push(a[c/2]);else{const h=o[c+1],p=t[-d];for(let _=eo;_{class n{constructor(e){this.appInits=e,this.resolve=jg,this.reject=jg,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{o.subscribe({complete:c,error:d})});e.push(a)}}Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),0===e.length&&i(),this.initialized=!0}}return n.\u0275fac=function(e){return new(e||n)(ie(gM,8))},n.\u0275prov=rt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const dh=new De("AppId",{providedIn:"root",factory:function _M(){return`${Gv()}${Gv()}${Gv()}`}});function Gv(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const bM=new De("Platform Initializer"),Qm=new De("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Lr=new De("AnimationModuleType"),Dc=new De("LocaleId",{providedIn:"root",factory:()=>_i(Dc,vt.Optional|vt.SkipSelf)||function QR(){return typeof $localize<"u"&&$localize.locale||sh}()}),iP=(()=>Promise.resolve(0))();function Yv(n){typeof Zone>"u"?iP.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class qt{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Xe(!1),this.onMicrotaskEmpty=new Xe(!1),this.onStable=new Xe(!1),this.onError=new Xe(!1),typeof Zone>"u")throw new ve(908,!1);Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&e,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function rP(){let n=jn.requestAnimationFrame,t=jn.cancelAnimationFrame;if(typeof Zone<"u"&&n&&t){const e=n[Zone.__symbol__("OriginalDelegate")];e&&(n=e);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function aP(n){const t=()=>{!function sP(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(jn,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,qv(n),n.isCheckStableRunning=!0,Zv(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),qv(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,o,a,c)=>{try{return CM(n),e.invokeTask(r,o,a,c)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||n.shouldCoalesceRunChangeDetection)&&t(),xM(n)}},onInvoke:(e,i,r,o,a,c,d)=>{try{return CM(n),e.invoke(r,o,a,c,d)}finally{n.shouldCoalesceRunChangeDetection&&t(),xM(n)}},onHasTask:(e,i,r,o)=>{e.hasTask(r,o),i===r&&("microTask"==o.change?(n._hasPendingMicrotasks=o.microTask,qv(n),Zv(n)):"macroTask"==o.change&&(n.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,i,r,o)=>(e.handleError(r,o),n.runOutsideAngular(()=>n.onError.emit(o)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!qt.isInAngularZone())throw new ve(909,!1)}static assertNotInAngularZone(){if(qt.isInAngularZone())throw new ve(909,!1)}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,r){const o=this._inner,a=o.scheduleEventTask("NgZoneEvent: "+r,t,oP,jg,jg);try{return o.runTask(a,e,i)}finally{o.cancelTask(a)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}const oP={};function Zv(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function qv(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function CM(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function xM(n){n._nesting--,Zv(n)}class cP{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Xe,this.onMicrotaskEmpty=new Xe,this.onStable=new Xe,this.onError=new Xe}run(t,e,i){return t.apply(e,i)}runGuarded(t,e,i){return t.apply(e,i)}runOutsideAngular(t){return t()}runTask(t,e,i,r){return t.apply(e,i)}}const wM=new De(""),Wg=new De("");let Qv,Kv=(()=>{class n{constructor(e,i,r){this._ngZone=e,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Qv||(function lP(n){Qv=n}(r),r.addToWindow(i)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone=typeof Zone>"u"?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:()=>{qt.assertNotInAngularZone(),Yv(()=>{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())Yv(()=>{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(a=>a.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 n.\u0275fac=function(e){return new(e||n)(ie(qt),ie(Xv),ie(Wg))},n.\u0275prov=rt({token:n,factory:n.\u0275fac}),n})(),Xv=(()=>{class n{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){return Qv?.findTestabilityInTree(this,e,i)??null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=rt({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();const Qc=!1;let Zl=null;const DM=new De("AllowMultipleToken"),Jv=new De("PlatformDestroyListeners"),dP=new De("appBootstrapListener");function TM(n,t,e=[]){const i=`Platform: ${t}`,r=new De(i);return(o=[])=>{let a=e0();if(!a||a.injector.get(DM,!1)){const c=[...e,...o,{provide:r,useValue:!0}];n?n(c):function mP(n){if(Zl&&!Zl.get(DM,!1))throw new ve(400,!1);Zl=n;const t=n.get(EM);(function MM(n){const t=n.get(bM,null);t&&t.forEach(e=>e())})(n)}(function kM(n=[],t){return Ko.create({name:t,providers:[{provide:Wu,useValue:"platform"},{provide:Jv,useValue:new Set([()=>Zl=null])},...n]})}(c,i))}return function pP(n){const t=e0();if(!t)throw new ve(401,!1);return t}()}}function e0(){return Zl?.get(EM)??null}let EM=(()=>{class n{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const r=function IM(n,t){let e;return e="noop"===n?new cP:("zone.js"===n?void 0:n)||new qt(t),e}(i?.ngZone,function SM(n){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!n||!n.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!n||!n.ngZoneRunCoalescing)||!1}}(i)),o=[{provide:qt,useValue:r}];return r.run(()=>{const a=Ko.create({providers:o,parent:this.injector,name:e.moduleType.name}),c=e.create(a),d=c.injector.get(Qe,null);if(!d)throw new ve(402,!1);return r.runOutsideAngular(()=>{const h=r.onError.subscribe({next:p=>{d.handleError(p)}});c.onDestroy(()=>{Gg(this._modules,c),h.unsubscribe()})}),function AM(n,t,e){try{const i=e();return Og(i)?i.catch(r=>{throw t.runOutsideAngular(()=>n.handleError(r)),r}):i}catch(i){throw t.runOutsideAngular(()=>n.handleError(i)),i}}(d,r,()=>{const h=c.injector.get(Ug);return h.runInitializers(),h.donePromise.then(()=>(function iD(n){Qi(n,"Expected localeId to be defined"),"string"==typeof n&&(nD=n.toLowerCase().replace(/_/g,"-"))}(c.injector.get(Dc,sh)||sh),this._moduleDoBootstrap(c),c))})})}bootstrapModule(e,i=[]){const r=FM({},i);return function uP(n,t,e){const i=new Ov(e);return Promise.resolve(i)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(e){const i=e.injector.get(Jm);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new ve(-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 ve(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(Jv,null);e&&(e.forEach(i=>i()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(e){return new(e||n)(ie(Ko))},n.\u0275prov=rt({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function FM(n,t){return Array.isArray(t)?t.reduce(FM,n):{...n,...t}}let Jm=(()=>{class n{get destroyed(){return this._destroyed}get injector(){return this._injector}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 ye(c=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{c.next(this._stable),c.complete()})}),a=new ye(c=>{let d;this._zone.runOutsideAngular(()=>{d=this._zone.onStable.subscribe(()=>{qt.assertNotInAngularZone(),Yv(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,c.next(!0))})})});const h=this._zone.onUnstable.subscribe(()=>{qt.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{c.next(!1)}))});return()=>{d.unsubscribe(),h.unsubscribe()}});this.isStable=si(o,a.pipe(ea()))}bootstrap(e,i){const r=e instanceof s;if(!this._injector.get(Ug).done){!r&&function ae(n){const t=F(n)||$(n)||z(n);return null!==t&&t.standalone}(e);throw new ve(405,Qc)}let a;a=r?e:this._injector.get(x).resolveComponentFactory(e),this.componentTypes.push(a.componentType);const c=function hP(n){return n.isBoundToModule}(a)?void 0:this._injector.get(ah),h=a.create(Ko.NULL,[],i||a.selector,c),p=h.location.nativeElement,_=h.injector.get(wM,null);return _?.registerApplication(p),h.onDestroy(()=>{this.detachView(h.hostView),Gg(this.components,h),_?.unregisterApplication(p)}),this._loadComponent(h),h}tick(){if(this._runningTick)throw new ve(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;Gg(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const i=this._injector.get(dP,[]);i.push(...this._bootstrapListeners),i.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),()=>Gg(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new ve(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return n.\u0275fac=function(e){return new(e||n)(ie(qt),ie(Kc),ie(Qe))},n.\u0275prov=rt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Gg(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}let li=(()=>{class n{}return n.__NG_ELEMENT_ID__=_P,n})();function _P(n){return function bP(n,t,e){if(ld(n)&&!e){const i=Go(n.index,t);return new Pm(i,i)}return 47&n.type?new Pm(t[dr],t):null}(Ar(),Ee(),16==(16&n))}class NM{constructor(){}supports(t){return Ag(t)}create(t){return new DP(t)}}const wP=(n,t)=>t;class DP{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||wP}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,i=this._removalsHead,r=0,o=null;for(;e||i;){const a=!i||e&&e.currentIndex{a=this._trackByFn(r,c),null!==e&&Object.is(e.trackById,a)?(i&&(e=this._verifyReinsertion(e,c,a,r)),Object.is(e.item,c)||this._addIdentityChange(e,c)):(e=this._mismatch(e,c,a,r),i=!0),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,i,r){let o;return null===t?o=this._itTail:(o=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,o,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,o,r)):t=this._addAfter(new MP(e,i),o,r),t}_verifyReinsertion(t,e,i,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==o?t=this._reinsertAfter(o,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=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(t,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,o=t._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(t,e,i),this._addToMoves(t,i),t}_moveAfter(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}_addAfter(t,e,i){return this._insertAfter(t,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,i){const r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new BM),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,i=t._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new BM),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class MP{constructor(t,e){this.item=t,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 TP{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const e=t._prevDup,i=t._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class BM{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new TP,this.map.set(e,i)),i.add(t)}get(t,e){const r=this.map.get(t);return r?r.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function VM(n,t,e){const i=n.previousIndex;if(null===i)return i;let r=0;return e&&i{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(t,e){if(t){const i=t._prev;return e._next=t,e._prev=i,t._prev=e,i&&(i._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const r=this._records.get(t);this._maybeAddToChanges(r,e);const o=r._prev,a=r._next;return o&&(o._next=a),a&&(a._prev=o),r._next=null,r._prev=null,r}const i=new EP(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(i=>e(t[i],i))}}class EP{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function zM(){return new qg([new NM])}let qg=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(null!=i){const r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||zM()),deps:[[n,new _c,new yo]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new ve(901,!1)}}return n.\u0275prov=rt({token:n,providedIn:"root",factory:zM}),n})();function $M(){return new ef([new HM])}let ef=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(i){const r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||$M()),deps:[[n,new _c,new yo]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(i)return i;throw new ve(901,!1)}}return n.\u0275prov=rt({token:n,providedIn:"root",factory:$M}),n})();const AP=TM(null,"core",[]);let FP=(()=>{class n{constructor(e){}}return n.\u0275fac=function(e){return new(e||n)(ie(Jm))},n.\u0275mod=Re({type:n}),n.\u0275inj=Jt({}),n})();let a0=null;function Jc(){return a0}class PP{}const hn=new De("DocumentToken");let jM=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=rt({token:n,factory:function(){return function LP(){return ie(UM)}()},providedIn:"platform"}),n})(),UM=(()=>{class n extends jM{constructor(e){super(),this._doc=e,this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Jc().getBaseHref(this._doc)}onPopState(e){const i=Jc().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=Jc().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){WM()?this._history.pushState(e,i,r):this._location.hash=r}replaceState(e,i,r){WM()?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 n.\u0275fac=function(e){return new(e||n)(ie(hn))},n.\u0275prov=rt({token:n,factory:function(){return function NP(){return new UM(ie(hn))}()},providedIn:"platform"}),n})();function WM(){return!!window.history.pushState}function GM(n,t){if(0==n.length)return t;if(0==t.length)return n;let e=0;return n.endsWith("/")&&e++,t.startsWith("/")&&e++,2==e?n+t.substring(1):1==e?n+t:n+"/"+t}function YM(n){const t=n.match(/#|\?|$/),e=t&&t.index||n.length;return n.slice(0,e-("/"===n[e-1]?1:0))+n.slice(e)}function Td(n){return n&&"?"!==n[0]?"?"+n:n}let c0=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=rt({token:n,factory:function(){return _i(VP)},providedIn:"root"}),n})();const BP=new De("appBaseHref");let VP=(()=>{class n extends c0{constructor(e,i){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??_i(hn).location?.origin??""}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 GM(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+Td(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,o){const a=this.prepareExternalUrl(r+Td(o));this._platformLocation.pushState(e,i,a)}replaceState(e,i,r,o){const a=this.prepareExternalUrl(r+Td(o));this._platformLocation.replaceState(e,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return n.\u0275fac=function(e){return new(e||n)(ie(jM),ie(BP,8))},n.\u0275prov=rt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ZM=(()=>{class n{constructor(e){this._subject=new Xe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._basePath=function $P(n){if(new RegExp("^(https?:)?//").test(n)){const[,e]=n.split(/\/\/[^\/]+/);return e}return n}(YM(qM(i))),this._locationStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.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+Td(i))}normalize(e){return n.stripTrailingSlash(function zP(n,t){if(!n||!t.startsWith(n))return t;const e=t.substring(n.length);return""===e||["/",";","?","#"].includes(e[0])?e:t}(this._basePath,qM(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+Td(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Td(i)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)})),()=>{const i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.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 n.normalizeQueryParams=Td,n.joinWithSlash=GM,n.stripTrailingSlash=YM,n.\u0275fac=function(e){return new(e||n)(ie(c0))},n.\u0275prov=rt({token:n,factory:function(){return function HP(){return new ZM(ie(c0))}()},providedIn:"root"}),n})();function qM(n){return n.replace(/\/index.html$/,"")}function rT(n,t){t=encodeURIComponent(t);for(const e of n.split(";")){const i=e.indexOf("="),[r,o]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===t)return decodeURIComponent(o)}return null}const b0=/\s+/,oT=[];let uh=(()=>{class n{constructor(e,i,r,o){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=r,this._renderer=o,this.initialClasses=oT,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(b0):oT}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(b0):e}ngDoCheck(){for(const i of this.initialClasses)this._updateState(i,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const i of e)this._updateState(i,!0);else if(null!=e)for(const i of Object.keys(e))this._updateState(i,Boolean(e[i]));this._applyStateDiff()}_updateState(e,i){const r=this.stateMap.get(e);void 0!==r?(r.enabled!==i&&(r.changed=!0,r.enabled=i),r.touched=!0):this.stateMap.set(e,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const i=e[0],r=e[1];r.changed?(this._toggleClass(i,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),r.touched=!1}}_toggleClass(e,i){(e=e.trim()).length>0&&e.split(b0).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return n.\u0275fac=function(e){return new(e||n)(D(qg),D(ef),D(k),D(te))},n.\u0275dir=C({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),n})();class TL{constructor(t,e,i,r){this.$implicit=t,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 ys=(()=>{class n{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,i,r){this._viewContainer=e,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}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,a)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new TL(r.item,this._ngForOf,-1,-1),null===a?void 0:a);else if(null==a)i.remove(null===o?void 0:o);else if(null!==o){const c=i.get(o);i.move(c,a),cT(c,r)}});for(let r=0,o=i.length;r{cT(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(D(pr),D(fr),D(qg))},n.\u0275dir=C({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),n})();function cT(n,t){n.context.$implicit=t.item}let Di=(()=>{class n{constructor(e,i){this._viewContainer=e,this._context=new EL,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){lT("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){lT("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 n.\u0275fac=function(e){return new(e||n)(D(pr),D(fr))},n.\u0275dir=C({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),n})();class EL{constructor(){this.$implicit=null,this.ngIf=null}}function lT(n,t){if(t&&!t.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${ze(t)}'.`)}class y0{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let hh=(()=>{class n{constructor(){this._defaultViews=[],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.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.length>0&&e!==this._defaultUsed){this._defaultUsed=e;for(const i of this._defaultViews)i.enforceState(e)}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=C({type:n,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),n})(),o_=(()=>{class n{constructor(e,i,r){this.ngSwitch=r,r._addCase(),this._view=new y0(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return n.\u0275fac=function(e){return new(e||n)(D(pr),D(fr),D(hh,9))},n.\u0275dir=C({type:n,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),n})(),dT=(()=>{class n{constructor(e,i,r){r._addDefault(new y0(e,i))}}return n.\u0275fac=function(e){return new(e||n)(D(pr),D(fr),D(hh,9))},n.\u0275dir=C({type:n,selectors:[["","ngSwitchDefault",""]],standalone:!0}),n})(),hT=(()=>{class n{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:a}=this;this._viewRef=i.createEmbeddedView(r,o,a?{injector:a}:void 0)}else this._viewRef=null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return n.\u0275fac=function(e){return new(e||n)(D(pr))},n.\u0275dir=C({type:n,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[ji]}),n})();class AL{createSubscription(t,e){return t.subscribe({next:e,error:i=>{throw i}})}dispose(t){t.unsubscribe()}}class FL{createSubscription(t,e){return t.then(e,i=>{throw i})}dispose(t){}}const OL=new FL,RL=new AL;let v0=(()=>{class n{constructor(e){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,i=>this._updateLatestValue(e,i))}_selectStrategy(e){if(Og(e))return OL;if(u1(e))return RL;throw function Ka(n,t){return new ve(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this._ref.markForCheck())}}return n.\u0275fac=function(e){return new(e||n)(D(li,16))},n.\u0275pipe=O({name:"async",type:n,pure:!1,standalone:!0}),n})(),mT=(()=>{class n{constructor(e){this.differs=e,this.keyValues=[],this.compareFn=fT}transform(e,i=fT){if(!e||!(e instanceof Map)&&"object"!=typeof e)return null;this.differ||(this.differ=this.differs.find(e).create());const r=this.differ.diff(e),o=i!==this.compareFn;return r&&(this.keyValues=[],r.forEachItem(a=>{this.keyValues.push(function YL(n,t){return{key:n,value:t}}(a.key,a.currentValue))})),(r||o)&&(this.keyValues.sort(i),this.compareFn=i),this.keyValues}}return n.\u0275fac=function(e){return new(e||n)(D(ef,16))},n.\u0275pipe=O({name:"keyvalue",type:n,pure:!1,standalone:!0}),n})();function fT(n,t){const e=n.key,i=t.key;if(e===i)return 0;if(void 0===e)return 1;if(void 0===i)return-1;if(null===e)return 1;if(null===i)return-1;if("string"==typeof e&&"string"==typeof i)return e{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=Jt({}),n})();const pT="browser";function gT(n){return n===pT}class bT{}class kN extends PP{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class M0 extends kN{static makeCurrent(){!function RP(n){a0||(a0=n)}(new M0)}onAndCancel(t,e,i){return t.addEventListener(e,i,!1),()=>{t.removeEventListener(e,i,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=function EN(){return sf=sf||document.querySelector("base"),sf?sf.getAttribute("href"):null}();return null==e?null:function SN(n){c_=c_||document.createElement("a"),c_.setAttribute("href",n);const t=c_.pathname;return"/"===t.charAt(0)?t:`/${t}`}(e)}resetBaseElement(){sf=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return rT(document.cookie,t)}}let c_,sf=null;const wT=new De("TRANSITION_ID"),AN=[{provide:gM,useFactory:function IN(n,t,e){return()=>{e.get(Ug).donePromise.then(()=>{const i=Jc(),r=t.querySelectorAll(`style[ng-transition="${n}"]`);for(let o=0;o{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=rt({token:n,factory:n.\u0275fac}),n})();const l_=new De("EventManagerPlugins");let d_=(()=>{class n{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{class n{constructor(){this.usageCount=new Map}addStyles(e){for(const i of e)1===this.changeUsageCount(i,1)&&this.onStyleAdded(i)}removeStyles(e){for(const i of e)0===this.changeUsageCount(i,-1)&&this.onStyleRemoved(i)}onStyleRemoved(e){}onStyleAdded(e){}getAllStyles(){return this.usageCount.keys()}changeUsageCount(e,i){const r=this.usageCount;let o=r.get(e)??0;return o+=i,o>0?r.set(e,o):r.delete(e),o}ngOnDestroy(){for(const e of this.getAllStyles())this.onStyleRemoved(e);this.usageCount.clear()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=rt({token:n,factory:n.\u0275fac}),n})(),af=(()=>{class n extends MT{constructor(e){super(),this.doc=e,this.styleRef=new Map,this.hostNodes=new Set,this.resetHostNodes()}onStyleAdded(e){for(const i of this.hostNodes)this.addStyleToHost(i,e)}onStyleRemoved(e){const i=this.styleRef;i.get(e)?.forEach(o=>o.remove()),i.delete(e)}ngOnDestroy(){super.ngOnDestroy(),this.styleRef.clear(),this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(const i of this.getAllStyles())this.addStyleToHost(e,i)}removeHost(e){this.hostNodes.delete(e)}addStyleToHost(e,i){const r=this.doc.createElement("style");r.textContent=i,e.appendChild(r);const o=this.styleRef.get(i);o?o.push(r):this.styleRef.set(i,[r])}resetHostNodes(){const e=this.hostNodes;e.clear(),e.add(this.doc.head)}}return n.\u0275fac=function(e){return new(e||n)(ie(hn))},n.\u0275prov=rt({token:n,factory:n.\u0275fac}),n})();const T0={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/"},k0=/%COMP%/g,ET=new De("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function ST(n,t){return t.flat(100).map(e=>e.replace(k0,n))}function IT(n){return t=>{if("__ngUnwrap__"===t)return n;!1===n(t)&&(t.preventDefault(),t.returnValue=!1)}}let u_=(()=>{class n{constructor(e,i,r,o){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.removeStylesOnCompDestory=o,this.rendererByCompId=new Map,this.defaultRenderer=new E0(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;const r=this.getOrCreateRenderer(e,i);return r instanceof OT?r.applyToHost(e):r instanceof S0&&r.applyStyles(),r}getOrCreateRenderer(e,i){const r=this.rendererByCompId;let o=r.get(i.id);if(!o){const a=this.eventManager,c=this.sharedStylesHost,d=this.removeStylesOnCompDestory;switch(i.encapsulation){case Ir.Emulated:o=new OT(a,c,i,this.appId,d);break;case Ir.ShadowDom:return new HN(a,c,e,i);default:o=new S0(a,c,i,d)}o.onDestroy=()=>r.delete(i.id),r.set(i.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}begin(){}end(){}}return n.\u0275fac=function(e){return new(e||n)(ie(d_),ie(af),ie(dh),ie(ET))},n.\u0275prov=rt({token:n,factory:n.\u0275fac}),n})();class E0{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,e){return e?document.createElementNS(T0[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){(FT(t)?t.content:t).appendChild(e)}insertBefore(t,e,i){t&&(FT(t)?t.content:t).insertBefore(e,i)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let i="string"==typeof t?document.querySelector(t):t;if(!i)throw new Error(`The selector "${t}" did not match any elements`);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,r){if(r){e=r+":"+e;const o=T0[r];o?t.setAttributeNS(o,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const r=T0[i];r?t.removeAttributeNS(r,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,r){r&(Zr.DashCase|Zr.Important)?t.style.setProperty(e,i,r&Zr.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&Zr.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t[e]=i}setValue(t,e){t.nodeValue=e}listen(t,e,i){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,IT(i)):this.eventManager.addEventListener(t,e,IT(i))}}function FT(n){return"TEMPLATE"===n.tagName&&void 0!==n.content}class HN extends E0{constructor(t,e,i,r){super(t),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=ST(r.id,r.styles);for(const a of o){const c=document.createElement("style");c.textContent=a,this.shadowRoot.appendChild(c)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,i){return super.insertBefore(this.nodeOrShadowRoot(t),e,i)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class S0 extends E0{constructor(t,e,i,r,o=i.id){super(t),this.sharedStylesHost=e,this.removeStylesOnCompDestory=r,this.rendererUsageCount=0,this.styles=ST(o,i.styles)}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class OT extends S0{constructor(t,e,i,r,o){const a=r+"-"+i.id;super(t,e,i,o,a),this.contentAttr=function NN(n){return"_ngcontent-%COMP%".replace(k0,n)}(a),this.hostAttr=function BN(n){return"_nghost-%COMP%".replace(k0,n)}(a)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,e){const i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}}let zN=(()=>{class n extends DT{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 n.\u0275fac=function(e){return new(e||n)(ie(hn))},n.\u0275prov=rt({token:n,factory:n.\u0275fac}),n})();const RT=["alt","control","meta","shift"],$N={"\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"},jN={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let UN=(()=>{class n extends DT{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,i,r){const o=n.parseEventName(i),a=n.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Jc().onAndCancel(e,o.domEventName,a))}static parseEventName(e){const i=e.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const o=n._normalizeKey(i.pop());let a="",c=i.indexOf("code");if(c>-1&&(i.splice(c,1),a="code."),RT.forEach(h=>{const p=i.indexOf(h);p>-1&&(i.splice(p,1),a+=h+".")}),a+=o,0!=i.length||0===o.length)return null;const d={};return d.domEventName=r,d.fullKey=a,d}static matchEventFullKeyCode(e,i){let r=$N[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"),RT.forEach(a=>{a!==r&&(0,jN[a])(e)&&(o+=a+".")}),o+=r,o===i)}static eventCallback(e,i,r){return o=>{n.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>i(o))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return n.\u0275fac=function(e){return new(e||n)(ie(hn))},n.\u0275prov=rt({token:n,factory:n.\u0275fac}),n})();const ZN=TM(AP,"browser",[{provide:Qm,useValue:pT},{provide:bM,useValue:function WN(){M0.makeCurrent()},multi:!0},{provide:hn,useFactory:function YN(){return function Gc(n){mr=n}(document),document},deps:[]}]),NT=new De(""),BT=[{provide:Wg,useClass:class FN{addToWindow(t){jn.getAngularTestability=(i,r=!0)=>{const o=t.findTestabilityInTree(i,r);if(null==o)throw new Error("Could not find testability for element.");return o},jn.getAllAngularTestabilities=()=>t.getAllTestabilities(),jn.getAllAngularRootElements=()=>t.getAllRootElements(),jn.frameworkStabilizers||(jn.frameworkStabilizers=[]),jn.frameworkStabilizers.push(i=>{const r=jn.getAllAngularTestabilities();let o=r.length,a=!1;const c=function(d){a=a||d,o--,0==o&&i(a)};r.forEach(function(d){d.whenStable(c)})})}findTestabilityInTree(t,e,i){return null==e?null:t.getTestability(e)??(i?Jc().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null)}},deps:[]},{provide:wM,useClass:Kv,deps:[qt,Xv,Wg]},{provide:Kv,useClass:Kv,deps:[qt,Xv,Wg]}],VT=[{provide:Wu,useValue:"root"},{provide:Qe,useFactory:function GN(){return new Qe},deps:[]},{provide:l_,useClass:zN,multi:!0,deps:[hn,qt,Qm]},{provide:l_,useClass:UN,multi:!0,deps:[hn]},{provide:u_,useClass:u_,deps:[d_,af,dh,ET]},{provide:V,useExisting:u_},{provide:MT,useExisting:af},{provide:af,useClass:af,deps:[hn]},{provide:d_,useClass:d_,deps:[l_,qt]},{provide:bT,useClass:ON,deps:[]},[]];let HT=(()=>{class n{constructor(e){}static withServerTransition(e){return{ngModule:n,providers:[{provide:dh,useValue:e.appId},{provide:wT,useExisting:dh},AN]}}}return n.\u0275fac=function(e){return new(e||n)(ie(NT,12))},n.\u0275mod=Re({type:n}),n.\u0275inj=Jt({providers:[...VT,...BT],imports:[ya,FP]}),n})();typeof window<"u"&&window;let h_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=rt({token:n,factory:function(e){let i=null;return i=e?new(e||n):ie(jT),i},providedIn:"root"}),n})(),jT=(()=>{class n extends h_{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case qn.NONE:return i;case qn.HTML:return pa(i,"HTML")?tr(i):mg(this._doc,String(i)).toString();case qn.STYLE:return pa(i,"Style")?tr(i):i;case qn.SCRIPT:if(pa(i,"Script"))return tr(i);throw new Error("unsafe value used in a script context");case qn.URL:return pa(i,"URL")?tr(i):Bu(String(i));case qn.RESOURCE_URL:if(pa(i,"ResourceURL"))return tr(i);throw new Error(`unsafe value used in a resource URL context (see ${Ii})`);default:throw new Error(`Unexpected SecurityContext ${e} (see ${Ii})`)}}bypassSecurityTrustHtml(e){return function Ry(n){return new Lu(n)}(e)}bypassSecurityTrustStyle(e){return function Nu(n){return new Oy(n)}(e)}bypassSecurityTrustScript(e){return function Py(n){return new ag(n)}(e)}bypassSecurityTrustUrl(e){return function gw(n){return new _m(n)}(e)}bypassSecurityTrustResourceUrl(e){return function lg(n){return new bm(n)}(e)}}return n.\u0275fac=function(e){return new(e||n)(ie(hn))},n.\u0275prov=rt({token:n,factory:function(e){let i=null;return i=e?new e:function tB(n){return new jT(n.get(hn))}(ie(Ko)),i},providedIn:"root"}),n})();class UT{}class nB{}const tl="*";function nl(n,t){return{type:7,name:n,definitions:t,options:{}}}function xo(n,t=null){return{type:4,styles:t,timings:n}}function iB(n,t=null){return{type:3,steps:n,options:t}}function WT(n,t=null){return{type:2,steps:n,options:t}}function Ei(n){return{type:6,styles:n,offset:null}}function va(n,t,e){return{type:0,name:n,styles:t,options:e}}function wo(n,t,e=null){return{type:1,expr:n,animation:t,options:e}}function rB(n=null){return{type:9,options:n}}function oB(n,t,e=null){return{type:11,selector:n,animation:t,options:e}}function GT(n){Promise.resolve().then(n)}class cf{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){GT(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class YT{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,i=0,r=0;const o=this.players.length;0==o?GT(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++e==o&&this._onFinish()}),a.onDestroy(()=>{++i==o&&this._onDestroy()}),a.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((a,c)=>Math.max(a,c.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){const t=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}const F0="!";function ZT(n){return new ve(3e3,!1)}function HB(){return typeof window<"u"&&typeof window.document<"u"}function O0(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function Kl(n){switch(n.length){case 0:return new cf;case 1:return n[0];default:return new YT(n)}}function qT(n,t,e,i,r=new Map,o=new Map){const a=[],c=[];let d=-1,h=null;if(i.forEach(p=>{const _=p.get("offset"),M=_==d,A=M&&h||new Map;p.forEach((L,j)=>{let J=j,le=L;if("offset"!==j)switch(J=t.normalizePropertyName(J,a),le){case F0:le=r.get(j);break;case tl:le=o.get(j);break;default:le=t.normalizeStyleValue(j,J,le,a)}A.set(J,le)}),M||c.push(A),h=A,d=_}),a.length)throw function EB(n){return new ve(3502,!1)}();return c}function R0(n,t,e,i){switch(t){case"start":n.onStart(()=>i(e&&P0(e,"start",n)));break;case"done":n.onDone(()=>i(e&&P0(e,"done",n)));break;case"destroy":n.onDestroy(()=>i(e&&P0(e,"destroy",n)))}}function P0(n,t,e){const o=L0(n.element,n.triggerName,n.fromState,n.toState,t||n.phaseName,e.totalTime??n.totalTime,!!e.disabled),a=n._data;return null!=a&&(o._data=a),o}function L0(n,t,e,i,r="",o=0,a){return{element:n,triggerName:t,fromState:e,toState:i,phaseName:r,totalTime:o,disabled:!!a}}function Hs(n,t,e){let i=n.get(t);return i||n.set(t,i=e),i}function KT(n){const t=n.indexOf(":");return[n.substring(1,t),n.slice(t+1)]}let N0=(n,t)=>!1,XT=(n,t,e)=>[],QT=null;function B0(n){const t=n.parentNode||n.host;return t===QT?null:t}(O0()||typeof Element<"u")&&(HB()?(QT=(()=>document.documentElement)(),N0=(n,t)=>{for(;t;){if(t===n)return!0;t=B0(t)}return!1}):N0=(n,t)=>n.contains(t),XT=(n,t,e)=>{if(e)return Array.from(n.querySelectorAll(t));const i=n.querySelector(t);return i?[i]:[]});let kd=null,JT=!1;const ek=N0,tk=XT;let nk=(()=>{class n{validateStyleProperty(e){return function $B(n){kd||(kd=function jB(){return typeof document<"u"?document.body:null}()||{},JT=!!kd.style&&"WebkitAppearance"in kd.style);let t=!0;return kd.style&&!function zB(n){return"ebkit"==n.substring(1,6)}(n)&&(t=n in kd.style,!t&&JT&&(t="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in kd.style)),t}(e)}matchesElement(e,i){return!1}containsElement(e,i){return ek(e,i)}getParentElement(e){return B0(e)}query(e,i,r){return tk(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,o,a,c=[],d){return new cf(r,o)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=rt({token:n,factory:n.\u0275fac}),n})(),V0=(()=>{class n{}return n.NOOP=new nk,n})();const UB=1e3,H0="ng-enter",m_="ng-leave",f_="ng-trigger",p_=".ng-trigger",rk="ng-animating",z0=".ng-animating";function il(n){if("number"==typeof n)return n;const t=n.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:$0(parseFloat(t[1]),t[2])}function $0(n,t){return"s"===t?n*UB:n}function g_(n,t,e){return n.hasOwnProperty("duration")?n:function GB(n,t,e){let r,o=0,a="";if("string"==typeof n){const c=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===c)return t.push(ZT()),{duration:0,delay:0,easing:""};r=$0(parseFloat(c[1]),c[2]);const d=c[3];null!=d&&(o=$0(parseFloat(d),c[4]));const h=c[5];h&&(a=h)}else r=n;if(!e){let c=!1,d=t.length;r<0&&(t.push(function sB(){return new ve(3100,!1)}()),c=!0),o<0&&(t.push(function aB(){return new ve(3101,!1)}()),c=!0),c&&t.splice(d,0,ZT())}return{duration:r,delay:o,easing:a}}(n,t,e)}function lf(n,t={}){return Object.keys(n).forEach(e=>{t[e]=n[e]}),t}function ok(n){const t=new Map;return Object.keys(n).forEach(e=>{t.set(e,n[e])}),t}function Xl(n,t=new Map,e){if(e)for(let[i,r]of e)t.set(i,r);for(let[i,r]of n)t.set(i,r);return t}function ak(n,t,e){return e?t+":"+e+";":""}function ck(n){let t="";for(let e=0;e{const o=U0(r);e&&!e.has(r)&&e.set(r,n.style[o]),n.style[o]=i}),O0()&&ck(n))}function Ed(n,t){n.style&&(t.forEach((e,i)=>{const r=U0(i);n.style[r]=""}),O0()&&ck(n))}function df(n){return Array.isArray(n)?1==n.length?n[0]:WT(n):n}const j0=new RegExp("{{\\s*(.+?)\\s*}}","g");function lk(n){let t=[];if("string"==typeof n){let e;for(;e=j0.exec(n);)t.push(e[1]);j0.lastIndex=0}return t}function uf(n,t,e){const i=n.toString(),r=i.replace(j0,(o,a)=>{let c=t[a];return null==c&&(e.push(function lB(n){return new ve(3003,!1)}()),c=""),c.toString()});return r==i?n:r}function __(n){const t=[];let e=n.next();for(;!e.done;)t.push(e.value),e=n.next();return t}const qB=/-+([a-z0-9])/g;function U0(n){return n.replace(qB,(...t)=>t[1].toUpperCase())}function KB(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function zs(n,t,e){switch(t.type){case 7:return n.visitTrigger(t,e);case 0:return n.visitState(t,e);case 1:return n.visitTransition(t,e);case 2:return n.visitSequence(t,e);case 3:return n.visitGroup(t,e);case 4:return n.visitAnimate(t,e);case 5:return n.visitKeyframes(t,e);case 6:return n.visitStyle(t,e);case 8:return n.visitReference(t,e);case 9:return n.visitAnimateChild(t,e);case 10:return n.visitAnimateRef(t,e);case 11:return n.visitQuery(t,e);case 12:return n.visitStagger(t,e);default:throw function dB(n){return new ve(3004,!1)}()}}function dk(n,t){return window.getComputedStyle(n)[t]}const v_="*";function n3(n,t){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(i=>function r3(n,t,e){if(":"==n[0]){const d=function o3(n,t){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i) *"}}(n,e);if("function"==typeof d)return void t.push(d);n=d}const i=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function wB(n){return new ve(3015,!1)}()),t;const r=i[1],o=i[2],a=i[3];t.push(uk(r,a));"<"==o[0]&&!(r==v_&&a==v_)&&t.push(uk(a,r))}(i,e,t)):e.push(n),e}const C_=new Set(["true","1"]),x_=new Set(["false","0"]);function uk(n,t){const e=C_.has(n)||x_.has(n),i=C_.has(t)||x_.has(t);return(r,o)=>{let a=n==v_||n==r,c=t==v_||t==o;return!a&&e&&"boolean"==typeof r&&(a=r?C_.has(n):x_.has(n)),!c&&i&&"boolean"==typeof o&&(c=o?C_.has(t):x_.has(t)),a&&c}}const s3=new RegExp("s*:selfs*,?","g");function W0(n,t,e,i){return new a3(n).build(t,e,i)}class a3{constructor(t){this._driver=t}build(t,e,i){const r=new d3(e);return this._resetContextStyleTimingState(r),zs(this,df(t),r)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles=new Map,t.collectedStyles.set("",new Map),t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,r=e.depCount=0;const o=[],a=[];return"@"==t.name.charAt(0)&&e.errors.push(function hB(){return new ve(3006,!1)}()),t.definitions.forEach(c=>{if(this._resetContextStyleTimingState(e),0==c.type){const d=c,h=d.name;h.toString().split(/\s*,\s*/).forEach(p=>{d.name=p,o.push(this.visitState(d,e))}),d.name=h}else if(1==c.type){const d=this.visitTransition(c,e);i+=d.queryCount,r+=d.depCount,a.push(d)}else e.errors.push(function mB(){return new ve(3007,!1)}())}),{type:7,name:t.name,states:o,transitions:a,queryCount:i,depCount:r,options:null}}visitState(t,e){const i=this.visitStyle(t.styles,e),r=t.options&&t.options.params||null;if(i.containsDynamicStyles){const o=new Set,a=r||{};i.styles.forEach(c=>{c instanceof Map&&c.forEach(d=>{lk(d).forEach(h=>{a.hasOwnProperty(h)||o.add(h)})})}),o.size&&(__(o.values()),e.errors.push(function fB(n,t){return new ve(3008,!1)}()))}return{type:0,name:t.name,style:i,options:r?{params:r}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=zs(this,df(t.animation),e);return{type:1,matchers:n3(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Sd(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(i=>zs(this,i,e)),options:Sd(t.options)}}visitGroup(t,e){const i=e.currentTime;let r=0;const o=t.steps.map(a=>{e.currentTime=i;const c=zs(this,a,e);return r=Math.max(r,e.currentTime),c});return e.currentTime=r,{type:3,steps:o,options:Sd(t.options)}}visitAnimate(t,e){const i=function h3(n,t){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return G0(g_(n,t).duration,0,"");const e=n;if(e.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=G0(0,0,"");return o.dynamic=!0,o.strValue=e,o}const r=g_(e,t);return G0(r.duration,r.delay,r.easing)}(t.timings,e.errors);e.currentAnimateTimings=i;let r,o=t.styles?t.styles:Ei({});if(5==o.type)r=this.visitKeyframes(o,e);else{let a=t.styles,c=!1;if(!a){c=!0;const h={};i.easing&&(h.easing=i.easing),a=Ei(h)}e.currentTime+=i.duration+i.delay;const d=this.visitStyle(a,e);d.isEmptyStep=c,r=d}return e.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(t,e){const i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){const i=[],r=Array.isArray(t.styles)?t.styles:[t.styles];for(let c of r)"string"==typeof c?c===tl?i.push(c):e.errors.push(new ve(3002,!1)):i.push(ok(c));let o=!1,a=null;return i.forEach(c=>{if(c instanceof Map&&(c.has("easing")&&(a=c.get("easing"),c.delete("easing")),!o))for(let d of c.values())if(d.toString().indexOf("{{")>=0){o=!0;break}}),{type:6,styles:i,easing:a,offset:t.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let r=e.currentTime,o=e.currentTime;i&&o>0&&(o-=i.duration+i.delay),t.styles.forEach(a=>{"string"!=typeof a&&a.forEach((c,d)=>{const h=e.collectedStyles.get(e.currentQuerySelector),p=h.get(d);let _=!0;p&&(o!=r&&o>=p.startTime&&r<=p.endTime&&(e.errors.push(function gB(n,t,e,i,r){return new ve(3010,!1)}()),_=!1),o=p.startTime),_&&h.set(d,{startTime:o,endTime:r}),e.options&&function ZB(n,t,e){const i=t.params||{},r=lk(n);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||e.push(function cB(n){return new ve(3001,!1)}())})}(c,e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function _B(){return new ve(3011,!1)}()),i;let o=0;const a=[];let c=!1,d=!1,h=0;const p=t.steps.map(le=>{const Ve=this._makeStyleAst(le,e);let ge=null!=Ve.offset?Ve.offset:function u3(n){if("string"==typeof n)return null;let t=null;if(Array.isArray(n))n.forEach(e=>{if(e instanceof Map&&e.has("offset")){const i=e;t=parseFloat(i.get("offset")),i.delete("offset")}});else if(n instanceof Map&&n.has("offset")){const e=n;t=parseFloat(e.get("offset")),e.delete("offset")}return t}(Ve.styles),Dt=0;return null!=ge&&(o++,Dt=Ve.offset=ge),d=d||Dt<0||Dt>1,c=c||Dt0&&o<_?e.errors.push(function vB(){return new ve(3202,!1)}()):0==o&&(M=1/(_-1));const A=_-1,L=e.currentTime,j=e.currentAnimateTimings,J=j.duration;return p.forEach((le,Ve)=>{const ge=M>0?Ve==A?1:M*Ve:a[Ve],Dt=ge*J;e.currentTime=L+j.delay+Dt,j.duration=Dt,this._validateStyleAst(le,e),le.offset=ge,i.styles.push(le)}),i}visitReference(t,e){return{type:8,animation:zs(this,df(t.animation),e),options:Sd(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:Sd(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:Sd(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;const[o,a]=function c3(n){const t=!!n.split(/\s*,\s*/).find(e=>":self"==e);return t&&(n=n.replace(s3,"")),n=n.replace(/@\*/g,p_).replace(/@\w+/g,e=>p_+"-"+e.slice(1)).replace(/:animating/g,z0),[n,t]}(t.selector);e.currentQuerySelector=i.length?i+" "+o:o,Hs(e.collectedStyles,e.currentQuerySelector,new Map);const c=zs(this,df(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:a,animation:c,originalSelector:t.selector,options:Sd(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push(function CB(){return new ve(3013,!1)}());const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:g_(t.timings,e.errors,!0);return{type:12,animation:zs(this,df(t.animation),e),timings:i,options:null}}}class d3{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Sd(n){return n?(n=lf(n)).params&&(n.params=function l3(n){return n?lf(n):null}(n.params)):n={},n}function G0(n,t,e){return{duration:n,delay:t,easing:e}}function Y0(n,t,e,i,r,o,a=null,c=!1){return{type:1,element:n,keyframes:t,preStyleProps:e,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:a,subTimeline:c}}class w_{constructor(){this._map=new Map}get(t){return this._map.get(t)||[]}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const p3=new RegExp(":enter","g"),_3=new RegExp(":leave","g");function Z0(n,t,e,i,r,o=new Map,a=new Map,c,d,h=[]){return(new b3).buildKeyframes(n,t,e,i,r,o,a,c,d,h)}class b3{buildKeyframes(t,e,i,r,o,a,c,d,h,p=[]){h=h||new w_;const _=new q0(t,e,h,r,o,p,[]);_.options=d;const M=d.delay?il(d.delay):0;_.currentTimeline.delayNextStep(M),_.currentTimeline.setStyles([a],null,_.errors,d),zs(this,i,_);const A=_.timelines.filter(L=>L.containsAnimation());if(A.length&&c.size){let L;for(let j=A.length-1;j>=0;j--){const J=A[j];if(J.element===e){L=J;break}}L&&!L.allowOnlyTimelineStyles()&&L.setStyles([c],null,_.errors,d)}return A.length?A.map(L=>L.buildKeyframes()):[Y0(e,[],[],[],0,M,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const i=e.subInstructions.get(e.element);if(i){const r=e.createSubContext(t.options),o=e.currentTimeline.currentTime,a=this._visitSubInstructions(i,r,r.options);o!=a&&e.transformIntoNewTimeline(a)}e.previousNode=t}visitAnimateRef(t,e){const i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([t.options,t.animation.options],e,i),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_applyAnimationRefDelays(t,e,i){for(const r of t){const o=r?.delay;if(o){const a="number"==typeof o?o:il(uf(o,r?.params??{},e.errors));i.delayNextStep(a)}}}_visitSubInstructions(t,e,i){let o=e.currentTimeline.currentTime;const a=null!=i.duration?il(i.duration):null,c=null!=i.delay?il(i.delay):null;return 0!==a&&t.forEach(d=>{const h=e.appendInstructionToTimeline(d,a,c);o=Math.max(o,h.duration+h.delay)}),o}visitReference(t,e){e.updateOptions(t.options,!0),zs(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let r=e;const o=t.options;if(o&&(o.params||o.delay)&&(r=e.createSubContext(o),r.transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=D_);const a=il(o.delay);r.delayNextStep(a)}t.steps.length&&(t.steps.forEach(a=>zs(this,a,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let r=e.currentTimeline.currentTime;const o=t.options&&t.options.delay?il(t.options.delay):0;t.steps.forEach(a=>{const c=e.createSubContext(t.options);o&&c.delayNextStep(o),zs(this,a,c),r=Math.max(r,c.currentTimeline.currentTime),i.push(c.currentTimeline)}),i.forEach(a=>e.currentTimeline.mergeTimelineCollectedStyles(a)),e.transformIntoNewTimeline(r),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return g_(e.params?uf(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const i=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());const o=t.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(i.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();const o=r&&r.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(o):i.setStyles(t.styles,o,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,r=e.currentTimeline.duration,o=i.duration,c=e.createSubContext().currentTimeline;c.easing=i.easing,t.styles.forEach(d=>{c.forwardTime((d.offset||0)*o),c.setStyles(d.styles,d.easing,e.errors,e.options),c.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(c),e.transformIntoNewTimeline(r+o),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,r=t.options||{},o=r.delay?il(r.delay):0;o&&(6===e.previousNode.type||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=D_);let a=i;const c=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=c.length;let d=null;c.forEach((h,p)=>{e.currentQueryIndex=p;const _=e.createSubContext(t.options,h);o&&_.delayNextStep(o),h===e.element&&(d=_.currentTimeline),zs(this,t.animation,_),_.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,_.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),d&&(e.currentTimeline.mergeTimelineCollectedStyles(d),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,r=e.currentTimeline,o=t.timings,a=Math.abs(o.duration),c=a*(e.currentQueryTotal-1);let d=a*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":d=c-d;break;case"full":d=i.currentStaggerTime}const p=e.currentTimeline;d&&p.delayNextStep(d);const _=p.currentTime;zs(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=r.currentTime-_+(r.startTime-i.currentTimeline.startTime)}}const D_={};class q0{constructor(t,e,i,r,o,a,c,d){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=a,this.timelines=c,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=D_,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=d||new M_(this._driver,e,0),c.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const i=t;let r=this.options;null!=i.duration&&(r.duration=il(i.duration)),null!=i.delay&&(r.delay=il(i.delay));const o=i.params;if(o){let a=r.params;a||(a=this.options.params={}),Object.keys(o).forEach(c=>{(!e||!a.hasOwnProperty(c))&&(a[c]=uf(o[c],a,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const i=t.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return t}createSubContext(t=null,e,i){const r=e||this.element,o=new q0(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(t){return this.previousNode=D_,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const r={duration:e??t.duration,delay:this.currentTimeline.currentTime+(i??0)+t.delay,easing:""},o=new y3(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,r,o,a){let c=[];if(r&&c.push(this.element),t.length>0){t=(t=t.replace(p3,"."+this._enterClassName)).replace(_3,"."+this._leaveClassName);let h=this._driver.query(this.element,t,1!=i);0!==i&&(h=i<0?h.slice(h.length+i,h.length):h.slice(0,i)),c.push(...h)}return!o&&0==c.length&&a.push(function xB(n){return new ve(3014,!1)}()),c}}class M_{constructor(t,e,i,r){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new M_(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles.set(t,e),this._globalTimelineStyles.set(t,e),this._styleSummary.set(t,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&this._previousKeyframe.set("easing",t);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||tl),this._currentKeyframe.set(e,tl);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,r){e&&this._previousKeyframe.set("easing",e);const o=r&&r.params||{},a=function v3(n,t){const e=new Map;let i;return n.forEach(r=>{if("*"===r){i=i||t.keys();for(let o of i)e.set(o,tl)}else Xl(r,e)}),e}(t,this._globalTimelineStyles);for(let[c,d]of a){const h=uf(d,o,i);this._pendingStyles.set(c,h),this._localTimelineStyles.has(c)||this._backFill.set(c,this._globalTimelineStyles.get(c)??tl),this._updateStyle(c,h)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((t,e)=>{this._currentKeyframe.set(e,t)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((t,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,t)}))}snapshotCurrentStyles(){for(let[t,e]of this._localTimelineStyles)this._pendingStyles.set(t,e),this._updateStyle(t,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){t._styleSummary.forEach((e,i)=>{const r=this._styleSummary.get(i);(!r||e.time>r.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((c,d)=>{const h=Xl(c,new Map,this._backFill);h.forEach((p,_)=>{p===F0?t.add(_):p===tl&&e.add(_)}),i||h.set("offset",d/this.duration),r.push(h)});const o=t.size?__(t.values()):[],a=e.size?__(e.values()):[];if(i){const c=r[0],d=new Map(c);c.set("offset",0),d.set("offset",1),r=[c,d]}return Y0(this.element,r,o,a,this.duration,this.startTime,this.easing,!1)}}class y3 extends M_{constructor(t,e,i,r,o,a,c=!1){super(t,e,a.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=c,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const o=[],a=i+e,c=e/a,d=Xl(t[0]);d.set("offset",0),o.push(d);const h=Xl(t[0]);h.set("offset",fk(c)),o.push(h);const p=t.length-1;for(let _=1;_<=p;_++){let M=Xl(t[_]);const A=M.get("offset");M.set("offset",fk((e+A*i)/a)),o.push(M)}i=a,e=0,r="",t=o}return Y0(this.element,t,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function fk(n,t=3){const e=Math.pow(10,t-1);return Math.round(n*e)/e}class K0{}const C3=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class x3 extends K0{normalizePropertyName(t,e){return U0(t)}normalizeStyleValue(t,e,i,r){let o="";const a=i.toString().trim();if(C3.has(e)&&0!==i&&"0"!==i)if("number"==typeof i)o="px";else{const c=i.match(/^[+-]?[\d\.]+([a-z]*)$/);c&&0==c[1].length&&r.push(function uB(n,t){return new ve(3005,!1)}())}return a+o}}function pk(n,t,e,i,r,o,a,c,d,h,p,_,M){return{type:0,element:n,triggerName:t,isRemovalTransition:r,fromState:e,fromStyles:o,toState:i,toStyles:a,timelines:c,queriedElements:d,preStyleProps:h,postStyleProps:p,totalTime:_,errors:M}}const X0={};class gk{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,r){return function w3(n,t,e,i,r){return n.some(o=>o(t,e,i,r))}(this.ast.matchers,t,e,i,r)}buildStyles(t,e,i){let r=this._stateStyles.get("*");return void 0!==t&&(r=this._stateStyles.get(t?.toString())||r),r?r.buildStyles(e,i):new Map}build(t,e,i,r,o,a,c,d,h,p){const _=[],M=this.ast.options&&this.ast.options.params||X0,L=this.buildStyles(i,c&&c.params||X0,_),j=d&&d.params||X0,J=this.buildStyles(r,j,_),le=new Set,Ve=new Map,ge=new Map,Dt="void"===r,Yn={params:D3(j,M),delay:this.ast.options?.delay},ri=p?[]:Z0(t,e,this.ast.animation,o,a,L,J,Yn,h,_);let Mo=0;if(ri.forEach(ul=>{Mo=Math.max(ul.duration+ul.delay,Mo)}),_.length)return pk(e,this._triggerName,i,r,Dt,L,J,[],[],Ve,ge,Mo,_);ri.forEach(ul=>{const hl=ul.element,EA=Hs(Ve,hl,new Set);ul.preStyleProps.forEach(Gd=>EA.add(Gd));const Gf=Hs(ge,hl,new Set);ul.postStyleProps.forEach(Gd=>Gf.add(Gd)),hl!==e&&le.add(hl)});const dl=__(le.values());return pk(e,this._triggerName,i,r,Dt,L,J,ri,dl,Ve,ge,Mo)}}function D3(n,t){const e=lf(t);for(const i in n)n.hasOwnProperty(i)&&null!=n[i]&&(e[i]=n[i]);return e}class M3{constructor(t,e,i){this.styles=t,this.defaultParams=e,this.normalizer=i}buildStyles(t,e){const i=new Map,r=lf(this.defaultParams);return Object.keys(t).forEach(o=>{const a=t[o];null!==a&&(r[o]=a)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((a,c)=>{a&&(a=uf(a,r,e));const d=this.normalizer.normalizePropertyName(c,e);a=this.normalizer.normalizeStyleValue(c,d,a,e),i.set(c,a)})}),i}}class k3{constructor(t,e,i){this.name=t,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{this.states.set(r.name,new M3(r.style,r.options&&r.options.params||{},i))}),_k(this.states,"true","1"),_k(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new gk(t,r,this.states))}),this.fallbackTransition=function E3(n,t,e){return new gk(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(a,c)=>!0],options:null,queryCount:0,depCount:0},t)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,r){return this.transitionFactories.find(a=>a.match(t,e,i,r))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function _k(n,t,e){n.has(t)?n.has(e)||n.set(e,n.get(t)):n.has(e)&&n.set(t,n.get(e))}const S3=new w_;class I3{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(t,e){const i=[],r=[],o=W0(this._driver,e,i,r);if(i.length)throw function SB(n){return new ve(3503,!1)}();this._animations.set(t,o)}_buildPlayer(t,e,i){const r=t.element,o=qT(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(r,o,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const r=[],o=this._animations.get(t);let a;const c=new Map;if(o?(a=Z0(this._driver,e,o,H0,m_,new Map,new Map,i,S3,r),a.forEach(p=>{const _=Hs(c,p.element,new Map);p.postStyleProps.forEach(M=>_.set(M,null))})):(r.push(function IB(){return new ve(3300,!1)}()),a=[]),r.length)throw function AB(n){return new ve(3504,!1)}();c.forEach((p,_)=>{p.forEach((M,A)=>{p.set(A,this._driver.computeStyle(_,A,tl))})});const h=Kl(a.map(p=>{const _=c.get(p.element);return this._buildPlayer(p,new Map,_)}));return this._playersById.set(t,h),h.onDestroy(()=>this.destroy(t)),this.players.push(h),h}destroy(t){const e=this._getPlayer(t);e.destroy(),this._playersById.delete(t);const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){const e=this._playersById.get(t);if(!e)throw function FB(n){return new ve(3301,!1)}();return e}listen(t,e,i,r){const o=L0(e,"","","");return R0(this._getPlayer(t),i,o,r),()=>{}}command(t,e,i,r){if("register"==i)return void this.register(t,r[0]);if("create"==i)return void this.create(t,e,r[0]||{});const o=this._getPlayer(t);switch(i){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}}const bk="ng-animate-queued",Q0="ng-animate-disabled",P3=[],yk={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},L3={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ca="__ng_removed";class J0{get params(){return this.options.params}constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=function H3(n){return n??null}(i?t.value:t),i){const o=lf(t);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}absorbOptions(t){const e=t.params;if(e){const i=this.options.params;Object.keys(e).forEach(r=>{null==i[r]&&(i[r]=e[r])})}}}const hf="void",eC=new J0(hf);class N3{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,xa(e,this._hostClassName)}listen(t,e,i,r){if(!this._triggers.has(e))throw function OB(n,t){return new ve(3302,!1)}();if(null==i||0==i.length)throw function RB(n){return new ve(3303,!1)}();if(!function z3(n){return"start"==n||"done"==n}(i))throw function PB(n,t){return new ve(3400,!1)}();const o=Hs(this._elementListeners,t,[]),a={name:e,phase:i,callback:r};o.push(a);const c=Hs(this._engine.statesByElement,t,new Map);return c.has(e)||(xa(t,f_),xa(t,f_+"-"+e),c.set(e,eC)),()=>{this._engine.afterFlush(()=>{const d=o.indexOf(a);d>=0&&o.splice(d,1),this._triggers.has(e)||c.delete(e)})}}register(t,e){return!this._triggers.has(t)&&(this._triggers.set(t,e),!0)}_getTrigger(t){const e=this._triggers.get(t);if(!e)throw function LB(n){return new ve(3401,!1)}();return e}trigger(t,e,i,r=!0){const o=this._getTrigger(e),a=new tC(this.id,e,t);let c=this._engine.statesByElement.get(t);c||(xa(t,f_),xa(t,f_+"-"+e),this._engine.statesByElement.set(t,c=new Map));let d=c.get(e);const h=new J0(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&d&&h.absorbOptions(d.options),c.set(e,h),d||(d=eC),h.value!==hf&&d.value===h.value){if(!function U3(n,t){const e=Object.keys(n),i=Object.keys(t);if(e.length!=i.length)return!1;for(let r=0;r{Ed(t,J),Mc(t,le)})}return}const M=Hs(this._engine.playersByElement,t,[]);M.forEach(j=>{j.namespaceId==this.id&&j.triggerName==e&&j.queued&&j.destroy()});let A=o.matchTransition(d.value,h.value,t,h.params),L=!1;if(!A){if(!r)return;A=o.fallbackTransition,L=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:A,fromState:d,toState:h,player:a,isFallbackTransition:L}),L||(xa(t,bk),a.onStart(()=>{mh(t,bk)})),a.onDone(()=>{let j=this.players.indexOf(a);j>=0&&this.players.splice(j,1);const J=this._engine.playersByElement.get(t);if(J){let le=J.indexOf(a);le>=0&&J.splice(le,1)}}),this.players.push(a),M.push(a),a}deregister(t){this._triggers.delete(t),this._engine.statesByElement.forEach(e=>e.delete(t)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const i=this._engine.driver.query(t,p_,!0);i.forEach(r=>{if(r[Ca])return;const o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(a=>a.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(t,e,i,r){const o=this._engine.statesByElement.get(t),a=new Map;if(o){const c=[];if(o.forEach((d,h)=>{if(a.set(h,d.value),this._triggers.has(h)){const p=this.trigger(t,h,hf,r);p&&c.push(p)}}),c.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,a),i&&Kl(c).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(e&&i){const r=new Set;e.forEach(o=>{const a=o.name;if(r.has(a))return;r.add(a);const d=this._triggers.get(a).fallbackTransition,h=i.get(a)||eC,p=new J0(hf),_=new tC(this.id,a,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:a,transition:d,fromState:h,toState:p,player:_,isFallbackTransition:!0})})}}removeNode(t,e){const i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let r=!1;if(i.totalAnimations){const o=i.players.length?i.playersByQueriedElement.get(t):[];if(o&&o.length)r=!0;else{let a=t;for(;a=a.parentNode;)if(i.statesByElement.get(a)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(t),r)i.markElementAsRemoved(this.id,t,!1,e);else{const o=t[Ca];(!o||o===yk)&&(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){xa(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const o=i.element,a=this._elementListeners.get(o);a&&a.forEach(c=>{if(c.name==i.triggerName){const d=L0(o,i.triggerName,i.fromState.value,i.toState.value);d._data=t,R0(i.player,c.phase,d,c.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{const o=i.transition.ast.depCount,a=r.transition.ast.depCount;return 0==o||0==a?o-a:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(t){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(i=>i.element===t)||e,e}}class B3{_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}constructor(t,e,i){this.bodyNode=t,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,o)=>{}}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&t.push(i)})}),t}createNamespace(t,e){const i=new N3(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){const i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let a=!1,c=this.driver.getParentElement(e);for(;c;){const d=r.get(c);if(d){const h=i.indexOf(d);i.splice(h+1,0,t),a=!0;break}c=this.driver.getParentElement(c)}a||i.unshift(t)}else i.push(t);return r.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let r=this._namespaceLookup[t];r&&r.register(e,i)&&this.totalAnimations++}destroy(t,e){if(!t)return;const i=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[t];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,i=this.statesByElement.get(t);if(i)for(let r of i.values())if(r.namespaceId){const o=this._fetchNamespace(r.namespaceId);o&&e.add(o)}return e}trigger(t,e,i,r){if(T_(e)){const o=this._fetchNamespace(t);if(o)return o.trigger(e,i,r),!0}return!1}insertNode(t,e,i,r){if(!T_(e))return;const o=e[Ca];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const a=this.collectedLeaveElements.indexOf(e);a>=0&&this.collectedLeaveElements.splice(a,1)}if(t){const a=this._fetchNamespace(t);a&&a.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),xa(t,Q0)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),mh(t,Q0))}removeNode(t,e,i,r){if(T_(e)){const o=t?this._fetchNamespace(t):null;if(o?o.removeNode(e,r):this.markElementAsRemoved(t,e,!1,r),i){const a=this.namespacesByHostElement.get(e);a&&a.id!==t&&a.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(t,e,i,r,o){this.collectedLeaveElements.push(e),e[Ca]={namespaceId:t,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(t,e,i,r,o){return T_(e)?this._fetchNamespace(t).listen(e,i,r,o):()=>{}}_buildInstruction(t,e,i,r,o){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,r,t.fromState.options,t.toState.options,e,o)}destroyInnerAnimations(t){let e=this.driver.query(t,p_,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,z0,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return Kl(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t[Ca];if(e&&e.setForRemoval){if(t[Ca]=yk,e.namespaceId){this.destroyInnerAnimations(t);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}t.classList?.contains(Q0)&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?Kl(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(t){throw function NB(n){return new ve(3402,!1)}()}_flushAnimations(t,e){const i=new w_,r=[],o=new Map,a=[],c=new Map,d=new Map,h=new Map,p=new Set;this.disabledNodes.forEach(Bt=>{p.add(Bt);const nn=this.driver.query(Bt,".ng-animate-queued",!0);for(let gn=0;gn{const gn=H0+j++;L.set(nn,gn),Bt.forEach(Xn=>xa(Xn,gn))});const J=[],le=new Set,Ve=new Set;for(let Bt=0;Btle.add(Xn)):Ve.add(nn))}const ge=new Map,Dt=xk(M,Array.from(le));Dt.forEach((Bt,nn)=>{const gn=m_+j++;ge.set(nn,gn),Bt.forEach(Xn=>xa(Xn,gn))}),t.push(()=>{A.forEach((Bt,nn)=>{const gn=L.get(nn);Bt.forEach(Xn=>mh(Xn,gn))}),Dt.forEach((Bt,nn)=>{const gn=ge.get(nn);Bt.forEach(Xn=>mh(Xn,gn))}),J.forEach(Bt=>{this.processLeaveNode(Bt)})});const Yn=[],ri=[];for(let Bt=this._namespaceList.length-1;Bt>=0;Bt--)this._namespaceList[Bt].drainQueuedTransitions(e).forEach(gn=>{const Xn=gn.player,Kr=gn.element;if(Yn.push(Xn),this.collectedEnterElements.length){const To=Kr[Ca];if(To&&To.setForMove){if(To.previousTriggersValues&&To.previousTriggersValues.has(gn.triggerName)){const Yd=To.previousTriggersValues.get(gn.triggerName),Ta=this.statesByElement.get(gn.element);if(Ta&&Ta.has(gn.triggerName)){const Mb=Ta.get(gn.triggerName);Mb.value=Yd,Ta.set(gn.triggerName,Mb)}}return void Xn.destroy()}}const Ic=!_||!this.driver.containsElement(_,Kr),qs=ge.get(Kr),od=L.get(Kr),zi=this._buildInstruction(gn,i,od,qs,Ic);if(zi.errors&&zi.errors.length)return void ri.push(zi);if(Ic)return Xn.onStart(()=>Ed(Kr,zi.fromStyles)),Xn.onDestroy(()=>Mc(Kr,zi.toStyles)),void r.push(Xn);if(gn.isFallbackTransition)return Xn.onStart(()=>Ed(Kr,zi.fromStyles)),Xn.onDestroy(()=>Mc(Kr,zi.toStyles)),void r.push(Xn);const AA=[];zi.timelines.forEach(To=>{To.stretchStartingKeyframe=!0,this.disabledNodes.has(To.element)||AA.push(To)}),zi.timelines=AA,i.append(Kr,zi.timelines),a.push({instruction:zi,player:Xn,element:Kr}),zi.queriedElements.forEach(To=>Hs(c,To,[]).push(Xn)),zi.preStyleProps.forEach((To,Yd)=>{if(To.size){let Ta=d.get(Yd);Ta||d.set(Yd,Ta=new Set),To.forEach((Mb,Rx)=>Ta.add(Rx))}}),zi.postStyleProps.forEach((To,Yd)=>{let Ta=h.get(Yd);Ta||h.set(Yd,Ta=new Set),To.forEach((Mb,Rx)=>Ta.add(Rx))})});if(ri.length){const Bt=[];ri.forEach(nn=>{Bt.push(function BB(n,t){return new ve(3505,!1)}())}),Yn.forEach(nn=>nn.destroy()),this.reportError(Bt)}const Mo=new Map,dl=new Map;a.forEach(Bt=>{const nn=Bt.element;i.has(nn)&&(dl.set(nn,nn),this._beforeAnimationBuild(Bt.player.namespaceId,Bt.instruction,Mo))}),r.forEach(Bt=>{const nn=Bt.element;this._getPreviousPlayers(nn,!1,Bt.namespaceId,Bt.triggerName,null).forEach(Xn=>{Hs(Mo,nn,[]).push(Xn),Xn.destroy()})});const ul=J.filter(Bt=>Dk(Bt,d,h)),hl=new Map;Ck(hl,this.driver,Ve,h,tl).forEach(Bt=>{Dk(Bt,d,h)&&ul.push(Bt)});const Gf=new Map;A.forEach((Bt,nn)=>{Ck(Gf,this.driver,new Set(Bt),d,F0)}),ul.forEach(Bt=>{const nn=hl.get(Bt),gn=Gf.get(Bt);hl.set(Bt,new Map([...Array.from(nn?.entries()??[]),...Array.from(gn?.entries()??[])]))});const Gd=[],SA=[],IA={};a.forEach(Bt=>{const{element:nn,player:gn,instruction:Xn}=Bt;if(i.has(nn)){if(p.has(nn))return gn.onDestroy(()=>Mc(nn,Xn.toStyles)),gn.disabled=!0,gn.overrideTotalTime(Xn.totalTime),void r.push(gn);let Kr=IA;if(dl.size>1){let qs=nn;const od=[];for(;qs=qs.parentNode;){const zi=dl.get(qs);if(zi){Kr=zi;break}od.push(qs)}od.forEach(zi=>dl.set(zi,Kr))}const Ic=this._buildAnimation(gn.namespaceId,Xn,Mo,o,Gf,hl);if(gn.setRealPlayer(Ic),Kr===IA)Gd.push(gn);else{const qs=this.playersByElement.get(Kr);qs&&qs.length&&(gn.parentPlayer=Kl(qs)),r.push(gn)}}else Ed(nn,Xn.fromStyles),gn.onDestroy(()=>Mc(nn,Xn.toStyles)),SA.push(gn),p.has(nn)&&r.push(gn)}),SA.forEach(Bt=>{const nn=o.get(Bt.element);if(nn&&nn.length){const gn=Kl(nn);Bt.setRealPlayer(gn)}}),r.forEach(Bt=>{Bt.parentPlayer?Bt.syncPlayerEvents(Bt.parentPlayer):Bt.destroy()});for(let Bt=0;Bt!Ic.destroyed);Kr.length?$3(this,nn,Kr):this.processLeaveNode(nn)}return J.length=0,Gd.forEach(Bt=>{this.players.push(Bt),Bt.onDone(()=>{Bt.destroy();const nn=this.players.indexOf(Bt);this.players.splice(nn,1)}),Bt.play()}),Gd}elementContainsData(t,e){let i=!1;const r=e[Ca];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(t).elementContainsData(e)||i}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,r,o){let a=[];if(e){const c=this.playersByQueriedElement.get(t);c&&(a=c)}else{const c=this.playersByElement.get(t);if(c){const d=!o||o==hf;c.forEach(h=>{h.queued||!d&&h.triggerName!=r||a.push(h)})}}return(i||r)&&(a=a.filter(c=>!(i&&i!=c.namespaceId||r&&r!=c.triggerName))),a}_beforeAnimationBuild(t,e,i){const o=e.element,a=e.isRemovalTransition?void 0:t,c=e.isRemovalTransition?void 0:e.triggerName;for(const d of e.timelines){const h=d.element,p=h!==o,_=Hs(i,h,[]);this._getPreviousPlayers(h,p,a,c,e.toState).forEach(A=>{const L=A.getRealPlayer();L.beforeDestroy&&L.beforeDestroy(),A.destroy(),_.push(A)})}Ed(o,e.fromStyles)}_buildAnimation(t,e,i,r,o,a){const c=e.triggerName,d=e.element,h=[],p=new Set,_=new Set,M=e.timelines.map(L=>{const j=L.element;p.add(j);const J=j[Ca];if(J&&J.removedBeforeQueried)return new cf(L.duration,L.delay);const le=j!==d,Ve=function j3(n){const t=[];return wk(n,t),t}((i.get(j)||P3).map(Mo=>Mo.getRealPlayer())).filter(Mo=>!!Mo.element&&Mo.element===j),ge=o.get(j),Dt=a.get(j),Yn=qT(0,this._normalizer,0,L.keyframes,ge,Dt),ri=this._buildPlayer(L,Yn,Ve);if(L.subTimeline&&r&&_.add(j),le){const Mo=new tC(t,c,j);Mo.setRealPlayer(ri),h.push(Mo)}return ri});h.forEach(L=>{Hs(this.playersByQueriedElement,L.element,[]).push(L),L.onDone(()=>function V3(n,t,e){let i=n.get(t);if(i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&n.delete(t)}return i}(this.playersByQueriedElement,L.element,L))}),p.forEach(L=>xa(L,rk));const A=Kl(M);return A.onDestroy(()=>{p.forEach(L=>mh(L,rk)),Mc(d,e.toStyles)}),_.forEach(L=>{Hs(r,L,[]).push(A)}),A}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new cf(t.duration,t.delay)}}class tC{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new cf,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,this._queuedCallbacks.forEach((e,i)=>{e.forEach(r=>R0(t,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){Hs(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function T_(n){return n&&1===n.nodeType}function vk(n,t){const e=n.style.display;return n.style.display=t??"none",e}function Ck(n,t,e,i,r){const o=[];e.forEach(d=>o.push(vk(d)));const a=[];i.forEach((d,h)=>{const p=new Map;d.forEach(_=>{const M=t.computeStyle(h,_,r);p.set(_,M),(!M||0==M.length)&&(h[Ca]=L3,a.push(h))}),n.set(h,p)});let c=0;return e.forEach(d=>vk(d,o[c++])),a}function xk(n,t){const e=new Map;if(n.forEach(c=>e.set(c,[])),0==t.length)return e;const i=1,r=new Set(t),o=new Map;function a(c){if(!c)return i;let d=o.get(c);if(d)return d;const h=c.parentNode;return d=e.has(h)?h:r.has(h)?i:a(h),o.set(c,d),d}return t.forEach(c=>{const d=a(c);d!==i&&e.get(d).push(c)}),e}function xa(n,t){n.classList?.add(t)}function mh(n,t){n.classList?.remove(t)}function $3(n,t,e){Kl(e).onDone(()=>n.processLeaveNode(t))}function wk(n,t){for(let e=0;er.add(o)):t.set(n,i),e.delete(n),!0}class k_{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new B3(t,e,i),this._timelineEngine=new I3(t,e,i),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(t,e,i,r,o){const a=t+"-"+r;let c=this._triggerCache[a];if(!c){const d=[],h=[],p=W0(this._driver,o,d,h);if(d.length)throw function kB(n,t){return new ve(3404,!1)}();c=function T3(n,t,e){return new k3(n,t,e)}(r,p,this._normalizer),this._triggerCache[a]=c}this._transitionEngine.registerTrigger(e,r,c)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,r){this._transitionEngine.insertNode(t,e,i,r)}onRemove(t,e,i,r){this._transitionEngine.removeNode(t,e,r||!1,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,r){if("@"==i.charAt(0)){const[o,a]=KT(i);this._timelineEngine.command(o,e,a,r)}else this._transitionEngine.trigger(t,e,i,r)}listen(t,e,i,r,o){if("@"==i.charAt(0)){const[a,c]=KT(i);return this._timelineEngine.listen(a,e,c,o)}return this._transitionEngine.listen(t,e,i,r,o)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let G3=(()=>{class n{constructor(e,i,r){this._element=e,this._startStyles=i,this._endStyles=r,this._state=0;let o=n.initialStylesByElement.get(e);o||n.initialStylesByElement.set(e,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&Mc(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Mc(this._element,this._initialStyles),this._endStyles&&(Mc(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(Ed(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ed(this._element,this._endStyles),this._endStyles=null),Mc(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function nC(n){let t=null;return n.forEach((e,i)=>{(function Y3(n){return"display"===n||"position"===n})(i)&&(t=t||new Map,t.set(i,e))}),t}class Mk{constructor(t,e,i,r){this.element=t,this.keyframes=e,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(t){const e=[];return t.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(t,e,i){return t.animate(this._convertKeyframesToObject(e),i)}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{"offset"!==r&&t.set(r,this._finished?i:dk(this.element,r))}),this.currentSnapshot=t}triggerCallback(t){const e="start"===t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class Z3{validateStyleProperty(t){return!0}validateAnimatableStyleProperty(t){return!0}matchesElement(t,e){return!1}containsElement(t,e){return ek(t,e)}getParentElement(t){return B0(t)}query(t,e,i){return tk(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}animate(t,e,i,r,o,a=[]){const d={duration:i,delay:r,fill:0==r?"both":"forwards"};o&&(d.easing=o);const h=new Map,p=a.filter(A=>A instanceof Mk);(function XB(n,t){return 0===n||0===t})(i,r)&&p.forEach(A=>{A.currentSnapshot.forEach((L,j)=>h.set(j,L))});let _=function YB(n){return n.length?n[0]instanceof Map?n:n.map(t=>ok(t)):[]}(e).map(A=>Xl(A));_=function QB(n,t,e){if(e.size&&t.length){let i=t[0],r=[];if(e.forEach((o,a)=>{i.has(a)||r.push(a),i.set(a,o)}),r.length)for(let o=1;oa.set(c,dk(n,c)))}}return t}(t,_,h);const M=function W3(n,t){let e=null,i=null;return Array.isArray(t)&&t.length?(e=nC(t[0]),t.length>1&&(i=nC(t[t.length-1]))):t instanceof Map&&(e=nC(t)),e||i?new G3(n,e,i):null}(t,_);return new Mk(t,_,d,M)}}let q3=(()=>{class n extends UT{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:Ir.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?WT(e):e;return Tk(this._renderer,null,i,"register",[r]),new K3(i,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(ie(V),ie(hn))},n.\u0275prov=rt({token:n,factory:n.\u0275fac}),n})();class K3 extends nB{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new X3(this._id,t,e||{},this._renderer)}}class X3{constructor(t,e,i,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return Tk(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(t){this._command("setPosition",t)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function Tk(n,t,e,i,r){return n.setProperty(t,`@@${e}:${i}`,r)}const kk="@.disabled";let Q3=(()=>{class n{constructor(e,i,r){this.delegate=e,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(o,a)=>{const c=a?.parentNode(o);c&&a.removeChild(c,o)}}createRenderer(e,i){const o=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let p=this._rendererCache.get(o);return p||(p=new Ek("",o,this.engine,()=>this._rendererCache.delete(o)),this._rendererCache.set(o,p)),p}const a=i.id,c=i.id+"-"+this._currentId;this._currentId++,this.engine.register(c,e);const d=p=>{Array.isArray(p)?p.forEach(d):this.engine.registerTrigger(a,c,e,p.name,p)};return i.data.animation.forEach(d),new J3(this,c,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,r){e>=0&&ei(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[a,c]=o;a(c)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,r]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return n.\u0275fac=function(e){return new(e||n)(ie(V),ie(k_),ie(qt))},n.\u0275prov=rt({token:n,factory:n.\u0275fac}),n})();class Ek{constructor(t,e,i,r){this.namespaceId=t,this.delegate=e,this.engine=i,this._onDestroy=r,this.destroyNode=this.delegate.destroyNode?o=>e.destroyNode(o):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i,r=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,r)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,r){this.delegate.setAttribute(t,e,i,r)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,r){this.delegate.setStyle(t,e,i,r)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){"@"==e.charAt(0)&&e==kk?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class J3 extends Ek{constructor(t,e,i,r,o){super(e,i,r,o),this.factory=t,this.namespaceId=e}setProperty(t,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==kk?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.slice(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if("@"==e.charAt(0)){const r=function eV(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(t);let o=e.slice(1),a="";return"@"!=o.charAt(0)&&([o,a]=function tV(n){const t=n.indexOf(".");return[n.substring(0,t),n.slice(t+1)]}(o)),this.engine.listen(this.namespaceId,r,o,a,c=>{this.factory.scheduleListenerCallback(c._data||-1,i,c)})}return this.delegate.listen(t,e,i)}}const Sk=[{provide:UT,useClass:q3},{provide:K0,useFactory:function iV(){return new x3}},{provide:k_,useClass:(()=>{class n extends k_{constructor(e,i,r,o){super(e.body,i,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(ie(hn),ie(V0),ie(K0),ie(Jm))},n.\u0275prov=rt({token:n,factory:n.\u0275fac}),n})()},{provide:V,useFactory:function rV(n,t,e){return new Q3(n,t,e)},deps:[u_,k_,qt]}],iC=[{provide:V0,useFactory:()=>new Z3},{provide:Lr,useValue:"BrowserAnimations"},...Sk],Ik=[{provide:V0,useClass:nk},{provide:Lr,useValue:"NoopAnimations"},...Sk];let oV=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?Ik:iC}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=Jt({providers:iC,imports:[HT]}),n})();const{isArray:sV}=Array,{getPrototypeOf:aV,prototype:cV,keys:lV}=Object;function Ak(n){if(1===n.length){const t=n[0];if(sV(t))return{args:t,keys:null};if(function dV(n){return n&&"object"==typeof n&&aV(n)===cV}(t)){const e=lV(t);return{args:e.map(i=>t[i]),keys:e}}}return{args:n,keys:null}}const{isArray:uV}=Array;function rC(n){return Ln(t=>function hV(n,t){return uV(t)?n(...t):n(t)}(n,t))}function Fk(n,t){return n.reduce((e,i,r)=>(e[i]=t[r],e),{})}function Ok(...n){const t=Po(n),{args:e,keys:i}=Ak(n),r=new ye(o=>{const{length:a}=e;if(!a)return void o.complete();const c=new Array(a);let d=a,h=a;for(let p=0;p{_||(_=!0,h--),c[p]=M},()=>d--,void 0,()=>{(!d||!_)&&(h||o.next(i?Fk(i,c):c),o.complete())}))}});return t?r.pipe(rC(t)):r}let Rk=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(D(te),D(k))},n.\u0275dir=C({type:n}),n})(),Id=(()=>{class n extends Rk{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=ai(n)))(i||n)}}(),n.\u0275dir=C({type:n,features:[ht]}),n})();const br=new De("NgValueAccessor"),fV={provide:br,useExisting:on(()=>vs),multi:!0},gV=new De("CompositionEventMode");let vs=(()=>{class n extends Rk{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function pV(){const n=Jc()?Jc().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(e){this.setProperty("value",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 n.\u0275fac=function(e){return new(e||n)(D(te),D(k),D(gV,8))},n.\u0275dir=C({type:n,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&&ue("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:[jt([fV]),ht]}),n})();const _V=!1;function Ql(n){return null==n||("string"==typeof n||Array.isArray(n))&&0===n.length}function Lk(n){return null!=n&&"number"==typeof n.length}const yr=new De("NgValidators"),Jl=new De("NgAsyncValidators"),bV=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Vn{static min(t){return function Nk(n){return t=>{if(Ql(t.value)||Ql(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e{if(Ql(t.value)||Ql(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e>n?{max:{max:n,actual:t.value}}:null}}(t)}static required(t){return function Vk(n){return Ql(n.value)?{required:!0}:null}(t)}static requiredTrue(t){return function Hk(n){return!0===n.value?null:{required:!0}}(t)}static email(t){return function zk(n){return Ql(n.value)||bV.test(n.value)?null:{email:!0}}(t)}static minLength(t){return function $k(n){return t=>Ql(t.value)||!Lk(t.value)?null:t.value.lengthLk(t.value)&&t.value.length>n?{maxlength:{requiredLength:n,actualLength:t.value.length}}:null}(t)}static pattern(t){return function Uk(n){if(!n)return S_;let t,e;return"string"==typeof n?(e="","^"!==n.charAt(0)&&(e+="^"),e+=n,"$"!==n.charAt(n.length-1)&&(e+="$"),t=new RegExp(e)):(e=n.toString(),t=n),i=>{if(Ql(i.value))return null;const r=i.value;return t.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(t)}static nullValidator(t){return null}static compose(t){return Kk(t)}static composeAsync(t){return Xk(t)}}function S_(n){return null}function Wk(n){return null!=n}function Gk(n){const t=Og(n)?ls(n):n;if(_V&&!h1(t)){let e="Expected async validator to return Promise or Observable.";throw"object"==typeof n&&(e+=" Are you using a synchronous validator where an async validator is expected?"),new ve(-1101,e)}return t}function Yk(n){let t={};return n.forEach(e=>{t=null!=e?{...t,...e}:t}),0===Object.keys(t).length?null:t}function Zk(n,t){return t.map(e=>e(n))}function qk(n){return n.map(t=>function yV(n){return!n.validate}(t)?t:e=>t.validate(e))}function Kk(n){if(!n)return null;const t=n.filter(Wk);return 0==t.length?null:function(e){return Yk(Zk(e,t))}}function oC(n){return null!=n?Kk(qk(n)):null}function Xk(n){if(!n)return null;const t=n.filter(Wk);return 0==t.length?null:function(e){return Ok(Zk(e,t).map(Gk)).pipe(Ln(Yk))}}function sC(n){return null!=n?Xk(qk(n)):null}function Qk(n,t){return null===n?[t]:Array.isArray(n)?[...n,t]:[n,t]}function Jk(n){return n._rawValidators}function eE(n){return n._rawAsyncValidators}function aC(n){return n?Array.isArray(n)?n:[n]:[]}function I_(n,t){return Array.isArray(n)?n.includes(t):n===t}function tE(n,t){const e=aC(t);return aC(n).forEach(r=>{I_(e,r)||e.push(r)}),e}function nE(n,t){return aC(t).filter(e=>!I_(n,e))}class iE{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(t){this._rawValidators=t||[],this._composedValidatorFn=oC(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=sC(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}class es extends iE{get formDirective(){return null}get path(){return null}}class Xa extends iE{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class rE{constructor(t){this._cd=t}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let $s=(()=>{class n extends rE{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(D(Xa,2))},n.\u0275dir=C({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&&un("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:[ht]}),n})(),Qa=(()=>{class n extends rE{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(D(es,10))},n.\u0275dir=C({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,i){2&e&&un("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:[ht]}),n})();function oE(n,t){return n?`with name: '${t}'`:`at index: ${t}`}const dC=!1,mf="VALID",F_="INVALID",fh="PENDING",ff="DISABLED";function uC(n){return(O_(n)?n.validators:n)||null}function hC(n,t){return(O_(t)?t.asyncValidators:n)||null}function O_(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}function sE(n,t,e){const i=n.controls;if(!(t?Object.keys(i):i).length)throw new ve(1e3,dC?function wV(n){return`\n There are no form controls registered with this ${n?"group":"array"} yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n `}(t):"");if(!i[e])throw new ve(1001,dC?function DV(n,t){return`Cannot find form control ${oE(n,t)}`}(t,e):"")}function aE(n,t,e){n._forEachChild((i,r)=>{if(void 0===e[r])throw new ve(1002,dC?function MV(n,t){return`Must supply a value for form control ${oE(n,t)}`}(t,r):"")})}class mC{constructor(t,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===mf}get invalid(){return this.status===F_}get pending(){return this.status==fh}get disabled(){return this.status===ff}get enabled(){return this.status!==ff}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(tE(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(tE(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(nE(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(nE(t,this._rawAsyncValidators))}hasValidator(t){return I_(this._rawValidators,t)}hasAsyncValidator(t){return I_(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=fh,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=ff,this.errors=null,this._forEachChild(i=>{i.disable({...t,onlySelf:!0})}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...t,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=mf,this._forEachChild(i=>{i.enable({...t,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors({...t,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===mf||this.status===fh)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ff:mf}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=fh,this._hasOwnPendingAsyncValidator=!0;const e=Gk(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){let e=t;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(t,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new Xe,this.statusChanges=new Xe}_calculateStatus(){return this._allControlsDisabled()?ff:this.errors?F_:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(fh)?fh:this._anyControlsHaveStatus(F_)?F_:mf}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){O_(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=function TV(n){return Array.isArray(n)?oC(n):n||null}(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=function kV(n){return Array.isArray(n)?sC(n):n||null}(this._rawAsyncValidators)}}class js extends mC{constructor(t,e,i){super(uC(e),hC(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,i={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){aE(this,!0,t),Object.keys(t).forEach(i=>{sE(this,!0,i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(i=>{const r=this.controls[i];r&&r.patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((i,r)=>{i.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&t(i,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const[e,i]of Object.entries(this.controls))if(this.contains(e)&&t(i))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(t,e){let i=t;return this._forEachChild((r,o)=>{i=e(i,r,o)}),i}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}}const Ad=new De("CallSetDisabledState",{providedIn:"root",factory:()=>pf}),pf="always";function R_(n,t){return[...t.path,n]}function gf(n,t,e=pf){fC(n,t),t.valueAccessor.writeValue(n.value),(n.disabled||"always"===e)&&t.valueAccessor.setDisabledState?.(n.disabled),function IV(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&cE(n,t)})}(n,t),function FV(n,t){const e=(i,r)=>{t.valueAccessor.writeValue(i),r&&t.viewToModelUpdate(i)};n.registerOnChange(e),t._registerOnDestroy(()=>{n._unregisterOnChange(e)})}(n,t),function AV(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&cE(n,t),"submit"!==n.updateOn&&n.markAsTouched()})}(n,t),function SV(n,t){if(t.valueAccessor.setDisabledState){const e=i=>{t.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,t)}function P_(n,t,e=!0){const i=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(i),t.valueAccessor.registerOnTouched(i)),N_(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function L_(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function fC(n,t){const e=Jk(n);null!==t.validator?n.setValidators(Qk(e,t.validator)):"function"==typeof e&&n.setValidators([e]);const i=eE(n);null!==t.asyncValidator?n.setAsyncValidators(Qk(i,t.asyncValidator)):"function"==typeof i&&n.setAsyncValidators([i]);const r=()=>n.updateValueAndValidity();L_(t._rawValidators,r),L_(t._rawAsyncValidators,r)}function N_(n,t){let e=!1;if(null!==n){if(null!==t.validator){const r=Jk(n);if(Array.isArray(r)&&r.length>0){const o=r.filter(a=>a!==t.validator);o.length!==r.length&&(e=!0,n.setValidators(o))}}if(null!==t.asyncValidator){const r=eE(n);if(Array.isArray(r)&&r.length>0){const o=r.filter(a=>a!==t.asyncValidator);o.length!==r.length&&(e=!0,n.setAsyncValidators(o))}}}const i=()=>{};return L_(t._rawValidators,i),L_(t._rawAsyncValidators,i),e}function cE(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function lE(n,t){fC(n,t)}function gC(n,t){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(t,e.currentValue)}function dE(n,t){n._syncPendingControls(),t.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function _C(n,t){if(!t)return null;let e,i,r;return Array.isArray(t),t.forEach(o=>{o.constructor===vs?e=o:function PV(n){return Object.getPrototypeOf(n.constructor)===Id}(o)?i=o:r=o}),r||i||e||null}const NV={provide:es,useExisting:on(()=>ph)},_f=(()=>Promise.resolve())();let ph=(()=>{class n extends es{constructor(e,i,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._directives=new Set,this.ngSubmit=new Xe,this.form=new js({},oC(e),sC(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){_f.then(()=>{const i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),gf(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){_f.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){_f.then(()=>{const i=this._findContainer(e.path),r=new js({});lE(r,e),i.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){_f.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){_f.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,dE(this.form,this._directives),this.ngSubmit.emit(e),"dialog"===e?.target?.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 n.\u0275fac=function(e){return new(e||n)(D(yr,10),D(Jl,10),D(Ad,8))},n.\u0275dir=C({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,i){1&e&&ue("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[jt([NV]),ht]}),n})();function uE(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}function hE(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}const Rt=class extends mC{constructor(t=null,e,i){super(uC(e),hC(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),O_(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=hE(t)?t.value:t)}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=this.defaultValue,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){uE(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){uE(this._onDisabledChange,t)}_forEachChild(t){}_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(t){hE(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}},HV={provide:Xa,useExisting:on(()=>bC)},pE=(()=>Promise.resolve())();let bC=(()=>{class n extends Xa{constructor(e,i,r,o,a,c){super(),this._changeDetectorRef=a,this.callSetDisabledState=c,this.control=new Rt,this._registered=!1,this.update=new Xe,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=_C(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),gC(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(){gf(this.control,this,this.callSetDisabledState),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){pE.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const i=e.isDisabled.currentValue,r=0!==i&&function s0(n){return"boolean"==typeof n?n:null!=n&&"false"!==n}(i);pE.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?R_(e,this._parent):[e]}}return n.\u0275fac=function(e){return new(e||n)(D(es,9),D(yr,10),D(Jl,10),D(br,10),D(li,8),D(Ad,8))},n.\u0275dir=C({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[jt([HV]),ht,ji]}),n})(),Tc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=C({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),n})();const zV={provide:br,useExisting:on(()=>yC),multi:!0};let yC=(()=>{class n extends Id{writeValue(e){this.setProperty("value",e??"")}registerOnChange(e){this.onChange=i=>{e(""==i?null:parseFloat(i))}}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=ai(n)))(i||n)}}(),n.\u0275dir=C({type:n,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,i){1&e&&ue("input",function(o){return i.onChange(o.target.value)})("blur",function(){return i.onTouched()})},features:[jt([zV]),ht]}),n})(),gE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=Jt({}),n})();const vC=new De("NgModelWithFormControlWarning"),WV={provide:Xa,useExisting:on(()=>CC)};let CC=(()=>{class n extends Xa{set isDisabled(e){}constructor(e,i,r,o,a){super(),this._ngModelWarningConfig=o,this.callSetDisabledState=a,this.update=new Xe,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=_C(0,r)}ngOnChanges(e){if(this._isControlChanged(e)){const i=e.form.previousValue;i&&P_(i,this,!1),gf(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}gC(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&P_(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(D(yr,10),D(Jl,10),D(br,10),D(vC,8),D(Ad,8))},n.\u0275dir=C({type:n,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[jt([WV]),ht,ji]}),n})();const GV={provide:es,useExisting:on(()=>Do)};let Do=(()=>{class n extends es{constructor(e,i,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Xe,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(N_(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const i=this.form.get(e.path);return gf(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){P_(e.control||null,e,!1),function LV(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this.submitted=!0,dE(this.form,this.directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const i=e.control,r=this.form.get(e.path);i!==r&&(P_(i||null,e),(n=>n instanceof Rt)(r)&&(gf(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);lE(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function OV(n,t){return N_(n,t)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){fC(this.form,this),this._oldForm&&N_(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(D(yr,10),D(Jl,10),D(Ad,8))},n.\u0275dir=C({type:n,selectors:[["","formGroup",""]],hostBindings:function(e,i){1&e&&ue("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[jt([GV]),ht,ji]}),n})();const qV={provide:Xa,useExisting:on(()=>wa)};let wa=(()=>{class n extends Xa{set isDisabled(e){}constructor(e,i,r,o,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.update=new Xe,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=_C(0,o)}ngOnChanges(e){this._added||this._setUpControl(),gC(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return R_(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(D(es,13),D(yr,10),D(Jl,10),D(br,10),D(vC,8))},n.\u0275dir=C({type:n,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[jt([qV]),ht,ji]}),n})(),IE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=Jt({imports:[gE]}),n})();class AE extends mC{constructor(t,e,i){super(uC(e),hC(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[this._adjustIndex(t)]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,i={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(t,e={}){let i=this._adjustIndex(t);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,i={}){let r=this._adjustIndex(t);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){aE(this,!1,t),t.forEach((i,r)=>{sE(this,!1,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((i,r)=>{i.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_adjustIndex(t){return t<0?t+this.length:t}_syncPendingControls(){let t=this.controls.reduce((e,i)=>!!i._syncPendingControls()||e,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){this.controls.forEach((e,i)=>{t(e,i)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}_find(t){return this.at(t)??null}}let u5=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:Ad,useValue:e.callSetDisabledState??pf}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=Jt({imports:[IE]}),n})(),h5=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:vC,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:Ad,useValue:e.callSetDisabledState??pf}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=Jt({imports:[IE]}),n})();function Cs(...n){return ls(n,Lo(n))}function xs(n,t){return qe((e,i)=>{let r=0;e.subscribe(Ft(i,o=>n.call(t,o,r++)&&i.next(o)))})}class B_{}class EC{}class rl{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const r=e.slice(0,i),o=r.toLowerCase(),a=e.slice(i+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(a):this.headers.set(o,[a])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let i=t[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(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof rl?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new rl;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof rl?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);const r=("a"===t.op?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":const o=t.value;if(o){let a=this.headers.get(e);if(!a)return;a=a.filter(c=>-1===o.indexOf(c)),0===a.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class f5{encodeKey(t){return FE(t)}encodeValue(t){return FE(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const g5=/%(\d[a-f0-9])/gi,_5={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function FE(n){return encodeURIComponent(n).replace(g5,(t,e)=>_5[e]??t)}function V_(n){return`${n}`}class ed{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new f5,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function p5(n,t){const e=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[a,c]=-1==o?[t.decodeKey(r),""]:[t.decodeKey(r.slice(0,o)),t.decodeValue(r.slice(o+1))],d=e.get(a)||[];d.push(c),e.set(a,d)}),e}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const i=t.fromObject[e],r=Array.isArray(i)?i.map(V_):[V_(i)];this.map.set(e,r)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(i=>{const r=t[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(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new ed({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(V_(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let i=this.map.get(t.param)||[];const r=i.indexOf(V_(t.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(t.param,i):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class b5{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function OE(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function RE(n){return typeof Blob<"u"&&n instanceof Blob}function PE(n){return typeof FormData<"u"&&n instanceof FormData}class bf{constructor(t,e,i,r){let o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function y5(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,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 rl),this.context||(this.context=new b5),this.params){const a=this.params.toString();if(0===a.length)this.urlWithParams=e;else{const c=e.indexOf("?");this.urlWithParams=e+(-1===c?"?":c_.set(M,t.setHeaders[M]),d)),t.setParams&&(h=Object.keys(t.setParams).reduce((_,M)=>_.set(M,t.setParams[M]),h)),new bf(e,i,o,{params:h,headers:d,context:p,reportProgress:c,responseType:r,withCredentials:a})}}var vr=(()=>((vr=vr||{})[vr.Sent=0]="Sent",vr[vr.UploadProgress=1]="UploadProgress",vr[vr.ResponseHeader=2]="ResponseHeader",vr[vr.DownloadProgress=3]="DownloadProgress",vr[vr.Response=4]="Response",vr[vr.User=5]="User",vr))();class SC{constructor(t,e=200,i="OK"){this.headers=t.headers||new rl,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class IC extends SC{constructor(t={}){super(t),this.type=vr.ResponseHeader}clone(t={}){return new IC({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class H_ extends SC{constructor(t={}){super(t),this.type=vr.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new H_({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class LE extends SC{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function AC(n,t){return{body:t,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}let yf=(()=>{class n{constructor(e){this.handler=e}request(e,i,r={}){let o;if(e instanceof bf)o=e;else{let d,h;d=r.headers instanceof rl?r.headers:new rl(r.headers),r.params&&(h=r.params instanceof ed?r.params:new ed({fromObject:r.params})),o=new bf(e,i,void 0!==r.body?r.body:null,{headers:d,context:r.context,params:h,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const a=Cs(o).pipe(function m5(n,t){return q(t)?Oo(n,t,1):Oo(n,1)}(d=>this.handler.handle(d)));if(e instanceof bf||"events"===r.observe)return a;const c=a.pipe(xs(d=>d instanceof H_));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return c.pipe(Ln(d=>{if(null!==d.body&&!(d.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return d.body}));case"blob":return c.pipe(Ln(d=>{if(null!==d.body&&!(d.body instanceof Blob))throw new Error("Response is not a Blob.");return d.body}));case"text":return c.pipe(Ln(d=>{if(null!==d.body&&"string"!=typeof d.body)throw new Error("Response is not a string.");return d.body}));default:return c.pipe(Ln(d=>d.body))}case"response":return c;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 ed).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,AC(r,i))}post(e,i,r={}){return this.request("POST",e,AC(r,i))}put(e,i,r={}){return this.request("PUT",e,AC(r,i))}}return n.\u0275fac=function(e){return new(e||n)(ie(B_))},n.\u0275prov=rt({token:n,factory:n.\u0275fac}),n})();function NE(n,t){return t(n)}function C5(n,t){return(e,i)=>t.intercept(e,{handle:r=>n(r,i)})}const w5=new De("HTTP_INTERCEPTORS"),vf=new De("HTTP_INTERCEPTOR_FNS");function D5(){let n=null;return(t,e)=>(null===n&&(n=(_i(w5,{optional:!0})??[]).reduceRight(C5,NE)),n(t,e))}let BE=(()=>{class n extends B_{constructor(e,i){super(),this.backend=e,this.injector=i,this.chain=null}handle(e){if(null===this.chain){const i=Array.from(new Set(this.injector.get(vf)));this.chain=i.reduceRight((r,o)=>function x5(n,t,e){return(i,r)=>e.runInContext(()=>t(i,o=>n(o,r)))}(r,o,this.injector),NE)}return this.chain(e,i=>this.backend.handle(i))}}return n.\u0275fac=function(e){return new(e||n)(ie(EC),ie(Kc))},n.\u0275prov=rt({token:n,factory:n.\u0275fac}),n})();const E5=/^\)\]\}',?\n/;let HE=(()=>{class n{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new ye(i=>{const r=this.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((A,L)=>r.setRequestHeader(A,L.join(","))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const A=e.detectContentTypeHeader();null!==A&&r.setRequestHeader("Content-Type",A)}if(e.responseType){const A=e.responseType.toLowerCase();r.responseType="json"!==A?A:"text"}const o=e.serializeBody();let a=null;const c=()=>{if(null!==a)return a;const A=r.statusText||"OK",L=new rl(r.getAllResponseHeaders()),j=function S5(n){return"responseURL"in n&&n.responseURL?n.responseURL:/^X-Request-URL:/m.test(n.getAllResponseHeaders())?n.getResponseHeader("X-Request-URL"):null}(r)||e.url;return a=new IC({headers:L,status:r.status,statusText:A,url:j}),a},d=()=>{let{headers:A,status:L,statusText:j,url:J}=c(),le=null;204!==L&&(le=typeof r.response>"u"?r.responseText:r.response),0===L&&(L=le?200:0);let Ve=L>=200&&L<300;if("json"===e.responseType&&"string"==typeof le){const ge=le;le=le.replace(E5,"");try{le=""!==le?JSON.parse(le):null}catch(Dt){le=ge,Ve&&(Ve=!1,le={error:Dt,text:le})}}Ve?(i.next(new H_({body:le,headers:A,status:L,statusText:j,url:J||void 0})),i.complete()):i.error(new LE({error:le,headers:A,status:L,statusText:j,url:J||void 0}))},h=A=>{const{url:L}=c(),j=new LE({error:A,status:r.status||0,statusText:r.statusText||"Unknown Error",url:L||void 0});i.error(j)};let p=!1;const _=A=>{p||(i.next(c()),p=!0);let L={type:vr.DownloadProgress,loaded:A.loaded};A.lengthComputable&&(L.total=A.total),"text"===e.responseType&&r.responseText&&(L.partialText=r.responseText),i.next(L)},M=A=>{let L={type:vr.UploadProgress,loaded:A.loaded};A.lengthComputable&&(L.total=A.total),i.next(L)};return r.addEventListener("load",d),r.addEventListener("error",h),r.addEventListener("timeout",h),r.addEventListener("abort",h),e.reportProgress&&(r.addEventListener("progress",_),null!==o&&r.upload&&r.upload.addEventListener("progress",M)),r.send(o),i.next({type:vr.Sent}),()=>{r.removeEventListener("error",h),r.removeEventListener("abort",h),r.removeEventListener("load",d),r.removeEventListener("timeout",h),e.reportProgress&&(r.removeEventListener("progress",_),null!==o&&r.upload&&r.upload.removeEventListener("progress",M)),r.readyState!==r.DONE&&r.abort()}})}}return n.\u0275fac=function(e){return new(e||n)(ie(bT))},n.\u0275prov=rt({token:n,factory:n.\u0275fac}),n})();const FC=new De("XSRF_ENABLED"),zE=new De("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),$E=new De("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class jE{}let F5=(()=>{class n{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=rT(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return n.\u0275fac=function(e){return new(e||n)(ie(hn),ie(Qm),ie(zE))},n.\u0275prov=rt({token:n,factory:n.\u0275fac}),n})();function O5(n,t){const e=n.url.toLowerCase();if(!_i(FC)||"GET"===n.method||"HEAD"===n.method||e.startsWith("http://")||e.startsWith("https://"))return t(n);const i=_i(jE).getToken(),r=_i($E);return null!=i&&!n.headers.has(r)&&(n=n.clone({headers:n.headers.set(r,i)})),t(n)}var rr=(()=>((rr=rr||{})[rr.Interceptors=0]="Interceptors",rr[rr.LegacyInterceptors=1]="LegacyInterceptors",rr[rr.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",rr[rr.NoXsrfProtection=3]="NoXsrfProtection",rr[rr.JsonpSupport=4]="JsonpSupport",rr[rr.RequestsMadeViaParent=5]="RequestsMadeViaParent",rr))();function gh(n,t){return{\u0275kind:n,\u0275providers:t}}function R5(...n){const t=[yf,HE,BE,{provide:B_,useExisting:BE},{provide:EC,useExisting:HE},{provide:vf,useValue:O5,multi:!0},{provide:FC,useValue:!0},{provide:jE,useClass:F5}];for(const e of n)t.push(...e.\u0275providers);return function yg(n){return{\u0275providers:n}}(t)}const UE=new De("LEGACY_INTERCEPTOR_FN");let L5=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=Jt({providers:[R5(gh(rr.LegacyInterceptors,[{provide:UE,useFactory:D5},{provide:vf,useExisting:UE,multi:!0}]))]}),n})();function At(n){return null!=n&&"false"!=`${n}`}function kc(n,t=0){return function N5(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}(n)?Number(n):t}function Cf(n){return Array.isArray(n)?n:[n]}function Cr(n){return null==n?"":"string"==typeof n?n:`${n}px`}function Gi(n){return n instanceof k?n.nativeElement:n}const V5=["addListener","removeListener"],H5=["addEventListener","removeEventListener"],z5=["on","off"];function Ec(n,t,e,i){if(q(e)&&(i=e,e=void 0),i)return Ec(n,t,e).pipe(rC(i));const[r,o]=function U5(n){return q(n.addEventListener)&&q(n.removeEventListener)}(n)?H5.map(a=>c=>n[a](t,c,e)):function $5(n){return q(n.addListener)&&q(n.removeListener)}(n)?V5.map(WE(n,t)):function j5(n){return q(n.on)&&q(n.off)}(n)?z5.map(WE(n,t)):[];if(!r&&N(n))return Oo(a=>Ec(a,t,e))(vi(n));if(!r)throw new TypeError("Invalid event target");return new ye(a=>{const c=(...d)=>a.next(1o(c)})}function WE(n,t){return e=>i=>n[e](t,i)}class W5 extends re{constructor(t,e){super()}schedule(t,e=0){return this}}const z_={setInterval(n,t,...e){const{delegate:i}=z_;return i?.setInterval?i.setInterval(n,t,...e):setInterval(n,t,...e)},clearInterval(n){const{delegate:t}=z_;return(t?.clearInterval||clearInterval)(n)},delegate:void 0};class OC extends W5{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){var i;if(this.closed)return this;this.state=t;const r=this.id,o=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(o,r,e)),this.pending=!0,this.delay=e,this.id=null!==(i=this.id)&&void 0!==i?i:this.requestAsyncId(o,this.id,e),this}requestAsyncId(t,e,i=0){return z_.setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,e,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return e;null!=e&&z_.clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let r,i=!1;try{this.work(t)}catch(o){i=!0,r=o||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){const{id:t,scheduler:e}=this,{actions:i}=e;this.work=this.state=this.scheduler=null,this.pending=!1,ee(i,this),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null,super.unsubscribe()}}}const xf={schedule(n){let t=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:i}=xf;i&&(t=i.requestAnimationFrame,e=i.cancelAnimationFrame);const r=t(o=>{e=void 0,n(o)});return new re(()=>e?.(r))},requestAnimationFrame(...n){const{delegate:t}=xf;return(t?.requestAnimationFrame||requestAnimationFrame)(...n)},cancelAnimationFrame(...n){const{delegate:t}=xf;return(t?.cancelAnimationFrame||cancelAnimationFrame)(...n)},delegate:void 0},GE={now:()=>(GE.delegate||Date).now(),delegate:void 0};class wf{constructor(t,e=wf.now){this.schedulerActionCtor=t,this.now=e}schedule(t,e=0,i){return new this.schedulerActionCtor(this,t).schedule(i,e)}}wf.now=GE.now;class RC extends wf{constructor(t,e=wf.now){super(t,e),this.actions=[],this._active=!1}flush(t){const{actions:e}=this;if(this._active)return void e.push(t);let i;this._active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this._active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}const YE=new class Y5 extends RC{flush(t){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let r;t=t||i.shift();do{if(r=t.execute(t.state,t.delay))break}while((t=i[0])&&t.id===e&&i.shift());if(this._active=!1,r){for(;(t=i[0])&&t.id===e&&i.shift();)t.unsubscribe();throw r}}}(class G5 extends OC{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t._scheduled||(t._scheduled=xf.requestAnimationFrame(()=>t.flush(void 0))))}recycleAsyncId(t,e,i=0){var r;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(t,e,i);const{actions:o}=t;null!=e&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==e&&(xf.cancelAnimationFrame(e),t._scheduled=void 0)}});let PC,Z5=1;const $_={};function ZE(n){return n in $_&&(delete $_[n],!0)}const q5={setImmediate(n){const t=Z5++;return $_[t]=!0,PC||(PC=Promise.resolve()),PC.then(()=>ZE(t)&&n()),t},clearImmediate(n){ZE(n)}},{setImmediate:K5,clearImmediate:X5}=q5,j_={setImmediate(...n){const{delegate:t}=j_;return(t?.setImmediate||K5)(...n)},clearImmediate(n){const{delegate:t}=j_;return(t?.clearImmediate||X5)(n)},delegate:void 0},LC=new class J5 extends RC{flush(t){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let r;t=t||i.shift();do{if(r=t.execute(t.state,t.delay))break}while((t=i[0])&&t.id===e&&i.shift());if(this._active=!1,r){for(;(t=i[0])&&t.id===e&&i.shift();)t.unsubscribe();throw r}}}(class Q5 extends OC{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t._scheduled||(t._scheduled=j_.setImmediate(t.flush.bind(t,void 0))))}recycleAsyncId(t,e,i=0){var r;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(t,e,i);const{actions:o}=t;null!=e&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==e&&(j_.clearImmediate(e),t._scheduled=void 0)}}),Df=new RC(OC),e4=Df;function U_(n=0,t,e=e4){let i=-1;return null!=t&&(ic(t)?e=t:i=t),new ye(r=>{let o=function n4(n){return n instanceof Date&&!isNaN(n)}(n)?+n-e.now():n;o<0&&(o=0);let a=0;return e.schedule(function(){r.closed||(r.next(a++),0<=i?this.schedule(void 0,i):r.complete())},o)})}function NC(n,t=Df){return function t4(n){return qe((t,e)=>{let i=!1,r=null,o=null,a=!1;const c=()=>{if(o?.unsubscribe(),o=null,i){i=!1;const h=r;r=null,e.next(h)}a&&e.complete()},d=()=>{o=null,a&&e.complete()};t.subscribe(Ft(e,h=>{i=!0,r=h,o||vi(n(h)).subscribe(o=Ft(e,c,d))},()=>{a=!0,(!i||!o||o.closed)&&e.complete()}))})}(()=>U_(n,t))}function xn(n){return qe((t,e)=>{vi(n).subscribe(Ft(e,()=>e.complete(),It)),!e.closed&&t.subscribe(e)})}function W_(...n){return function r4(){return Ro(1)}()(ls(n,Lo(n)))}function Br(...n){const t=Lo(n);return qe((e,i)=>{(t?W_(n,e,t):W_(n,e)).subscribe(i)})}let BC;try{BC=typeof Intl<"u"&&Intl.v8BreakIterator}catch{BC=!1}let _h,Oi=(()=>{class n{constructor(e){this._platformId=e,this.isBrowser=this._platformId?gT(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!BC)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return n.\u0275fac=function(e){return new(e||n)(ie(Qm))},n.\u0275prov=rt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const qE=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function KE(){if(_h)return _h;if("object"!=typeof document||!document)return _h=new Set(qE),_h;let n=document.createElement("input");return _h=new Set(qE.filter(t=>(n.setAttribute("type",t),n.type===t))),_h}let Mf,G_,Od,VC;function Ja(n){return function o4(){if(null==Mf&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Mf=!0}))}finally{Mf=Mf||!1}return Mf}()?n:!!n.capture}function XE(){if(null==Od){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Od=!1,Od;if("scrollBehavior"in document.documentElement.style)Od=!0;else{const n=Element.prototype.scrollTo;Od=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return Od}function Tf(){if("object"!=typeof document||!document)return 0;if(null==G_){const n=document.createElement("div"),t=n.style;n.dir="rtl",t.width="1px",t.overflow="auto",t.visibility="hidden",t.pointerEvents="none",t.position="absolute";const e=document.createElement("div"),i=e.style;i.width="2px",i.height="1px",n.appendChild(e),document.body.appendChild(n),G_=0,0===n.scrollLeft&&(n.scrollLeft=1,G_=0===n.scrollLeft?1:2),n.remove()}return G_}function HC(n){if(function s4(){if(null==VC){const n=typeof document<"u"?document.head:null;VC=!(!n||!n.createShadowRoot&&!n.attachShadow)}return VC}()){const t=n.getRootNode?n.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function Us(n){return n.composedPath?n.composedPath()[0]:n.target}function zC(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}const a4=new De("cdk-dir-doc",{providedIn:"root",factory:function c4(){return _i(hn)}}),l4=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Vr=(()=>{class n{constructor(e){this.value="ltr",this.change=new Xe,e&&(this.value=function d4(n){const t=n?.toLowerCase()||"";return"auto"===t&&typeof navigator<"u"&&navigator?.language?l4.test(navigator.language)?"rtl":"ltr":"rtl"===t?"rtl":"ltr"}((e.body?e.body.dir:null)||(e.documentElement?e.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(e){return new(e||n)(ie(a4,8))},n.\u0275prov=rt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),kf=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=Jt({}),n})();const u4=["contentWrapper"],h4=["*"],m4=new De("VIRTUAL_SCROLL_STRATEGY");let bh=(()=>{class n{constructor(e,i,r){this._ngZone=e,this._platform=i,this._scrolled=new ke,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new ye(i=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(NC(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Cs()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){const r=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(xs(o=>!o||r.indexOf(o)>-1))}getAncestorScrollContainers(e){const i=[];return this.scrollContainers.forEach((r,o)=>{this._scrollableContainsElement(o,e)&&i.push(o)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let r=Gi(i),o=e.getElementRef().nativeElement;do{if(r==o)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Ec(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return n.\u0275fac=function(e){return new(e||n)(ie(qt),ie(Oi),ie(hn,8))},n.\u0275prov=rt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),QE=(()=>{class n{constructor(e,i,r,o){this.elementRef=e,this.scrollDispatcher=i,this.ngZone=r,this.dir=o,this._destroyed=new ke,this._elementScrolled=new ye(a=>this.ngZone.runOutsideAngular(()=>Ec(this.elementRef.nativeElement,"scroll").pipe(xn(this._destroyed)).subscribe(a)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){const i=this.elementRef.nativeElement,r=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=r?e.end:e.start),null==e.right&&(e.right=r?e.start:e.end),null!=e.bottom&&(e.top=i.scrollHeight-i.clientHeight-e.bottom),r&&0!=Tf()?(null!=e.left&&(e.right=i.scrollWidth-i.clientWidth-e.left),2==Tf()?e.left=e.right:1==Tf()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=i.scrollWidth-i.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const i=this.elementRef.nativeElement;XE()?i.scrollTo(e):(null!=e.top&&(i.scrollTop=e.top),null!=e.left&&(i.scrollLeft=e.left))}measureScrollOffset(e){const i="left",r="right",o=this.elementRef.nativeElement;if("top"==e)return o.scrollTop;if("bottom"==e)return o.scrollHeight-o.clientHeight-o.scrollTop;const a=this.dir&&"rtl"==this.dir.value;return"start"==e?e=a?r:i:"end"==e&&(e=a?i:r),a&&2==Tf()?e==i?o.scrollWidth-o.clientWidth-o.scrollLeft:o.scrollLeft:a&&1==Tf()?e==i?o.scrollLeft+o.scrollWidth-o.clientWidth:-o.scrollLeft:e==i?o.scrollLeft:o.scrollWidth-o.clientWidth-o.scrollLeft}}return n.\u0275fac=function(e){return new(e||n)(D(k),D(bh),D(qt),D(Vr,8))},n.\u0275dir=C({type:n,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0}),n})(),ol=(()=>{class n{constructor(e,i,r){this._platform=e,this._change=new ke,this._changeListener=o=>{this._change.next(o)},this._document=r,i.runOutsideAngular(()=>{if(e.isBrowser){const o=this._getWindow();o.addEventListener("resize",this._changeListener),o.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,i=this._getWindow(),r=e.documentElement,o=r.getBoundingClientRect();return{top:-o.top||e.body.scrollTop||i.scrollY||r.scrollTop||0,left:-o.left||e.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(NC(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return n.\u0275fac=function(e){return new(e||n)(ie(Oi),ie(qt),ie(hn,8))},n.\u0275prov=rt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const JE=new De("VIRTUAL_SCROLLABLE");let g4=(()=>{class n extends QE{constructor(e,i,r,o){super(e,i,r,o)}measureViewportSize(e){const i=this.elementRef.nativeElement;return"horizontal"===e?i.clientWidth:i.clientHeight}}return n.\u0275fac=function(e){return new(e||n)(D(k),D(bh),D(qt),D(Vr,8))},n.\u0275dir=C({type:n,features:[ht]}),n})();const b4=typeof requestAnimationFrame<"u"?YE:LC;let y4=(()=>{class n extends g4{get orientation(){return this._orientation}set orientation(e){this._orientation!==e&&(this._orientation=e,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(e){this._appendOnly=At(e)}constructor(e,i,r,o,a,c,d,h){super(e,c,r,a),this.elementRef=e,this._changeDetectorRef=i,this._scrollStrategy=o,this.scrollable=h,this._platform=_i(Oi),this._detachedSubject=new ke,this._renderedRangeSubject=new ke,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new ye(p=>this._scrollStrategy.scrolledIndexChange.subscribe(_=>Promise.resolve().then(()=>this.ngZone.run(()=>p.next(_))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=re.EMPTY,this._viewportChanges=d.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}ngOnInit(){this._platform.isBrowser&&(this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe(Br(null),NC(0,b4)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()})))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(e){this.ngZone.runOutsideAngular(()=>{this._forOf=e,this._forOf.dataStream.pipe(xn(this._detachedSubject)).subscribe(i=>{const r=i.length;r!==this._dataLength&&(this._dataLength=r,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(e){return this.getElementRef().nativeElement.getBoundingClientRect()[e]}setTotalContentSize(e){this._totalContentSize!==e&&(this._totalContentSize=e,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(e){(function _4(n,t){return n.start==t.start&&n.end==t.end})(this._renderedRange,e)||(this.appendOnly&&(e={start:0,end:Math.max(this._renderedRange.end,e.end)}),this._renderedRangeSubject.next(this._renderedRange=e),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(e,i="to-start"){e=this.appendOnly&&"to-start"===i?0:e;const o="horizontal"==this.orientation,a=o?"X":"Y";let d=`translate${a}(${Number((o&&this.dir&&"rtl"==this.dir.value?-1:1)*e)}px)`;this._renderedContentOffset=e,"to-end"===i&&(d+=` translate${a}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=d&&(this._renderedContentTransform=d,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(e,i="auto"){const r={behavior:i};"horizontal"===this.orientation?r.start=e:r.top=e,this.scrollable.scrollTo(r)}scrollToIndex(e,i="auto"){this._scrollStrategy.scrollToIndex(e,i)}measureScrollOffset(e){let i;return i=this.scrollable==this?r=>super.measureScrollOffset(r):r=>this.scrollable.measureScrollOffset(r),Math.max(0,i(e??("horizontal"===this.orientation?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(e){let i;const r="left",o="right",a="rtl"==this.dir?.value;i="start"==e?a?o:r:"end"==e?a?r:o:e||("horizontal"===this.orientation?"left":"top");const c=this.scrollable.measureBoundingClientRectWithScrollOffset(i);return this.elementRef.nativeElement.getBoundingClientRect()[i]-c}measureRenderedContentSize(){const e=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?e.offsetWidth:e.offsetHeight}measureRangeSize(e){return this._forOf?this._forOf.measureRangeSize(e,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(e){e&&this._runAfterChangeDetection.push(e),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const e=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const i of e)i()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return n.\u0275fac=function(e){return new(e||n)(D(k),D(li),D(qt),D(m4,8),D(Vr,8),D(bh),D(ol),D(JE,8))},n.\u0275cmp=S({type:n,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(e,i){if(1&e&&Hn(u4,7),2&e){let r;kt(r=Et())&&(i._contentWrapper=r.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(e,i){2&e&&un("cdk-virtual-scroll-orientation-horizontal","horizontal"===i.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==i.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},standalone:!0,features:[jt([{provide:QE,useFactory:(t,e)=>t||e,deps:[[new yo,new tm(JE)],n]}]),ht,ID],ngContentSelectors:h4,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(e,i){1&e&&(wi(),v(0,"div",0,1),en(2),y(),Pe(3,"div",2)),2&e&&(I(3),Vm("width",i._totalContentWidth)("height",i._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0}),n})(),Rd=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=Jt({}),n})(),eS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=Jt({imports:[kf,Rd,y4,kf,Rd]}),n})();class $C extends ke{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return!e.closed&&t.next(this._value),e}getValue(){const{hasError:t,thrownError:e,_value:i}=this;if(t)throw e;return this._throwIfClosed(),i}next(t){super.next(this._value=t)}}function Ws(n,...t){return t.length?t.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}function vh(n,t,e){const i=q(n)||t||e?{next:n,error:t,complete:e}:n;return i?qe((r,o)=>{var a;null===(a=i.subscribe)||void 0===a||a.call(i);let c=!0;r.subscribe(Ft(o,d=>{var h;null===(h=i.next)||void 0===h||h.call(i,d),o.next(d)},()=>{var d;c=!1,null===(d=i.complete)||void 0===d||d.call(i),o.complete()},d=>{var h;c=!1,null===(h=i.error)||void 0===h||h.call(i,d),o.error(d)},()=>{var d,h;c&&(null===(d=i.unsubscribe)||void 0===d||d.call(i)),null===(h=i.finalize)||void 0===h||h.call(i)}))}):He}function UC(n,t=Df){return qe((e,i)=>{let r=null,o=null,a=null;const c=()=>{if(r){r.unsubscribe(),r=null;const h=o;o=null,i.next(h)}};function d(){const h=a+n,p=t.now();if(p{o=h,a=t.now(),r||(r=t.schedule(d,n),i.add(r))},()=>{c(),i.complete()},void 0,()=>{o=r=null}))})}function WC(n){return xs((t,e)=>n<=e)}function GC(n,t=He){return n=n??R4,qe((e,i)=>{let r,o=!0;e.subscribe(Ft(i,a=>{const c=t(a);(o||!n(r,c))&&(o=!1,r=c,i.next(a))}))})}function R4(n,t){return n===t}let nS=(()=>{class n{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=rt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),P4=(()=>{class n{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,i)=>this._cleanupObserver(i))}observe(e){const i=Gi(e);return new ye(r=>{const a=this._observeElement(i).subscribe(r);return()=>{a.unsubscribe(),this._unobserveElement(i)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const i=new ke,r=this._mutationObserverFactory.create(o=>i.next(o));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:i,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:i,stream:r}=this._observedElements.get(e);i&&i.disconnect(),r.complete(),this._observedElements.delete(e)}}}return n.\u0275fac=function(e){return new(e||n)(ie(nS))},n.\u0275prov=rt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),iS=(()=>{class n{get disabled(){return this._disabled}set disabled(e){this._disabled=At(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=kc(e),this._subscribe()}constructor(e,i,r){this._contentObserver=e,this._elementRef=i,this._ngZone=r,this.event=new Xe,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe(UC(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(D(P4),D(k),D(qt))},n.\u0275dir=C({type:n,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),n})(),YC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=Jt({providers:[nS]}),n})();function rS(n,t,e){n?Ki(e,n,t):t()}function Hr(n){return n<=0?()=>Zn:qe((t,e)=>{let i=0;t.subscribe(Ft(e,r=>{++i<=n&&(e.next(r),n<=i&&e.complete())}))})}const oS=new Set;let Ch,B4=(()=>{class n{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):H4}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function V4(n){if(!oS.has(n))try{Ch||(Ch=document.createElement("style"),Ch.setAttribute("type","text/css"),document.head.appendChild(Ch)),Ch.sheet&&(Ch.sheet.insertRule(`@media ${n} {body{ }}`,0),oS.add(n))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}return n.\u0275fac=function(e){return new(e||n)(ie(Oi))},n.\u0275prov=rt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function H4(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let ZC=(()=>{class n{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new ke}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return sS(Cf(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let o=function L4(...n){const t=Lo(n),e=Po(n),{args:i,keys:r}=Ak(n);if(0===i.length)return ls([],t);const o=new ye(function N4(n,t,e=He){return i=>{rS(t,()=>{const{length:r}=n,o=new Array(r);let a=r,c=r;for(let d=0;d{const h=ls(n[d],t);let p=!1;h.subscribe(Ft(i,_=>{o[d]=_,p||(p=!0,c--),c||i.next(e(o.slice()))},()=>{--a||i.complete()}))},i)},i)}}(i,t,r?a=>Fk(r,a):He));return e?o.pipe(rC(e)):o}(sS(Cf(e)).map(a=>this._registerQuery(a).observable));return o=W_(o.pipe(Hr(1)),o.pipe(WC(1),UC(0))),o.pipe(Ln(a=>{const c={matches:!1,breakpoints:{}};return a.forEach(({matches:d,query:h})=>{c.matches=c.matches||d,c.breakpoints[h]=d}),c}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const i=this._mediaMatcher.matchMedia(e),o={observable:new ye(a=>{const c=d=>this._zone.run(()=>a.next(d));return i.addListener(c),()=>{i.removeListener(c)}}).pipe(Br(i),Ln(({matches:a})=>({query:e,matches:a})),xn(this._destroySubject)),mql:i};return this._queries.set(e,o),o}}return n.\u0275fac=function(e){return new(e||n)(ie(B4),ie(qt))},n.\u0275prov=rt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function sS(n){return n.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}function K_(n,t){return(n.getAttribute(t)||"").match(/\S+/g)||[]}const cS="cdk-describedby-message",X_="cdk-describedby-host";let qC=0,U4=(()=>{class n{constructor(e,i){this._platform=i,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+qC++,this._document=e,this._id=_i(dh)+"-"+qC++}describe(e,i,r){if(!this._canBeDescribed(e,i))return;const o=KC(i,r);"string"!=typeof i?(lS(i,this._id),this._messageRegistry.set(o,{messageElement:i,referenceCount:0})):this._messageRegistry.has(o)||this._createMessageElement(i,r),this._isElementDescribedByMessage(e,o)||this._addMessageReference(e,o)}removeDescription(e,i,r){if(!i||!this._isElementNode(e))return;const o=KC(i,r);if(this._isElementDescribedByMessage(e,o)&&this._removeMessageReference(e,o),"string"==typeof i){const a=this._messageRegistry.get(o);a&&0===a.referenceCount&&this._deleteMessageElement(o)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const e=this._document.querySelectorAll(`[${X_}="${this._id}"]`);for(let i=0;i0!=r.indexOf(cS));e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){const r=this._messageRegistry.get(i);(function $4(n,t,e){const i=K_(n,t);i.some(r=>r.trim()==e.trim())||(i.push(e.trim()),n.setAttribute(t,i.join(" ")))})(e,"aria-describedby",r.messageElement.id),e.setAttribute(X_,this._id),r.referenceCount++}_removeMessageReference(e,i){const r=this._messageRegistry.get(i);r.referenceCount--,function j4(n,t,e){const r=K_(n,t).filter(o=>o!=e.trim());r.length?n.setAttribute(t,r.join(" ")):n.removeAttribute(t)}(e,"aria-describedby",r.messageElement.id),e.removeAttribute(X_)}_isElementDescribedByMessage(e,i){const r=K_(e,"aria-describedby"),o=this._messageRegistry.get(i),a=o&&o.messageElement.id;return!!a&&-1!=r.indexOf(a)}_canBeDescribed(e,i){if(!this._isElementNode(e))return!1;if(i&&"object"==typeof i)return!0;const r=null==i?"":`${i}`.trim(),o=e.getAttribute("aria-label");return!(!r||o&&o.trim()===r)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return n.\u0275fac=function(e){return new(e||n)(ie(hn),ie(Oi))},n.\u0275prov=rt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function KC(n,t){return"string"==typeof n?`${t||""}/${n}`:n}function lS(n,t){n.id||(n.id=`${cS}-${t}-${qC++}`)}class dS{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new ke,this._typeaheadSubscription=re.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new ke,this.change=new ke,t instanceof Yl&&(this._itemChangesSubscription=t.changes.subscribe(e=>{if(this._activeItem){const r=e.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}}))}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(vh(e=>this._pressedLetters.push(e)),UC(t),xs(()=>this._pressedLetters.length>0),Ln(()=>this._pressedLetters.join(""))).subscribe(e=>{const i=this._getItemsArray();for(let r=1;r!t[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;case 33:if(this._pageUpAndDown.enabled&&r){const o=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>0?o:0,1);break}return;case 34:if(this._pageUpAndDown.enabled&&r){const o=this._activeItemIndex+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(o=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){const e=this._getItemsArray(),i="number"==typeof t?t:e.indexOf(t);this._activeItem=e[i]??null,this._activeItemIndex=i}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const r=(this._activeItemIndex+t*i+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const i=this._getItemsArray();if(i[t]){for(;this._skipPredicateFn(i[t]);)if(!i[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof Yl?this._items.toArray():this._items}}class uS extends dS{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class XC extends dS{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}function Q_(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}function J_(n){const t=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}const K4=new De("cdk-input-modality-detector-options"),X4={ignoreKeys:[18,17,224,91,16]},xh=Ja({passive:!0,capture:!0});let Q4=(()=>{class n{get mostRecentModality(){return this._modality.value}constructor(e,i,r,o){this._platform=e,this._mostRecentTarget=null,this._modality=new $C(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(c=>c===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Us(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Q_(a)?"keyboard":"mouse"),this._mostRecentTarget=Us(a))},this._onTouchstart=a=>{J_(a)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Us(a))},this._options={...X4,...o},this.modalityDetected=this._modality.pipe(WC(1)),this.modalityChanged=this.modalityDetected.pipe(GC()),e.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,xh),r.addEventListener("mousedown",this._onMousedown,xh),r.addEventListener("touchstart",this._onTouchstart,xh)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,xh),document.removeEventListener("mousedown",this._onMousedown,xh),document.removeEventListener("touchstart",this._onTouchstart,xh))}}return n.\u0275fac=function(e){return new(e||n)(ie(Oi),ie(qt),ie(hn),ie(K4,8))},n.\u0275prov=rt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const J4=new De("liveAnnouncerElement",{providedIn:"root",factory:function e8(){return null}}),t8=new De("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let n8=0,QC=(()=>{class n{constructor(e,i,r,o){this._ngZone=i,this._defaultOptions=o,this._document=r,this._liveElement=e||this._createLiveElement()}announce(e,...i){const r=this._defaultOptions;let o,a;return 1===i.length&&"number"==typeof i[0]?a=i[0]:[o,a]=i,this.clear(),clearTimeout(this._previousTimeout),o||(o=r&&r.politeness?r.politeness:"polite"),null==a&&r&&(a=r.duration),this._liveElement.setAttribute("aria-live",o),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(c=>this._currentResolve=c)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,"number"==typeof a&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const e="cdk-live-announcer-element",i=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let o=0;o .cdk-overlay-container [aria-modal="true"]');for(let r=0;r{class n{constructor(e,i,r,o,a){this._ngZone=e,this._platform=i,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new ke,this._rootNodeFocusAndBlurListener=c=>{for(let h=Us(c);h;h=h.parentElement)"focus"===c.type?this._onFocus(c,h):this._onBlur(c,h)},this._document=o,this._detectionMode=a?.detectionMode||0}monitor(e,i=!1){const r=Gi(e);if(!this._platform.isBrowser||1!==r.nodeType)return Cs(null);const o=HC(r)||this._getDocument(),a=this._elementInfo.get(r);if(a)return i&&(a.checkChildren=!0),a.subject;const c={checkChildren:i,subject:new ke,rootNode:o};return this._elementInfo.set(r,c),this._registerGlobalListeners(c),c.subject}stopMonitoring(e){const i=Gi(e),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(e,i,r){const o=Gi(e);o===this._getDocument().activeElement?this._getClosestElementsInfo(o).forEach(([c,d])=>this._originChanged(c,i,d)):(this._setOrigin(i),"function"==typeof o.focus&&o.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused","touch"===i),e.classList.toggle("cdk-keyboard-focused","keyboard"===i),e.classList.toggle("cdk-mouse-focused","mouse"===i),e.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&i,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,i){const r=this._elementInfo.get(i),o=Us(e);!r||!r.checkChildren&&i!==o||this._originChanged(i,this._getFocusOrigin(o),r)}_onBlur(e,i){const r=this._elementInfo.get(i);!r||r.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(r,null))}_emitOrigin(e,i){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const i=e.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,eb),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,eb)}),this._rootNodeFocusListenerCount.set(i,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(xn(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(e){const i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,eb),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,eb),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,r){this._setClasses(e,i),this._emitOrigin(r,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){const i=[];return this._elementInfo.forEach((r,o)=>{(o===e||r.checkChildren&&o.contains(e))&&i.push([o,r])}),i}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:i,mostRecentModality:r}=this._inputModalityDetector;if("mouse"!==r||!i||i===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const o=e.labels;if(o)for(let a=0;a{class n{constructor(e,i){this._elementRef=e,this._focusMonitor=i,this._focusOrigin=null,this.cdkFocusChange=new Xe}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,1===e.nodeType&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(i=>{this._focusOrigin=i,this.cdkFocusChange.emit(i)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(D(k),D(td))},n.\u0275dir=C({type:n,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]}),n})();const fS="cdk-high-contrast-black-on-white",pS="cdk-high-contrast-white-on-black",JC="cdk-high-contrast-active";let gS=(()=>{class n{constructor(e,i){this._platform=e,this._document=i,this._breakpointSubscription=_i(ZC).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(e):null,o=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(JC,fS,pS),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?e.add(JC,fS):2===i&&e.add(JC,pS)}}}return n.\u0275fac=function(e){return new(e||n)(ie(Oi),ie(hn))},n.\u0275prov=rt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),_S=(()=>{class n{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return n.\u0275fac=function(e){return new(e||n)(ie(gS))},n.\u0275mod=Re({type:n}),n.\u0275inj=Jt({imports:[YC]}),n})();function Sc(n,t){return qe((e,i)=>{let r=null,o=0,a=!1;const c=()=>a&&!r&&i.complete();e.subscribe(Ft(i,d=>{r?.unsubscribe();let h=0;const p=o++;vi(n(d,p)).subscribe(r=Ft(i,_=>i.next(t?t(d,_,p,h++):_),()=>{r=null,c()}))},()=>{a=!0,c()}))})}function ex(n,t,e){for(let i in t)if(t.hasOwnProperty(i)){const r=t[i];r?n.setProperty(i,r,e?.has(i)?"important":""):n.removeProperty(i)}return n}function wh(n,t){const e=t?"":"none";ex(n.style,{"touch-action":t?"":"none","-webkit-user-drag":t?"":"none","-webkit-tap-highlight-color":t?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function bS(n,t,e){ex(n.style,{position:t?"":"fixed",top:t?"":"0",opacity:t?"":"0",left:t?"":"-999em"},e)}function tb(n,t){return t&&"none"!=t?n+" "+t:n}function yS(n){const t=n.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(n)*t}function tx(n,t){return n.getPropertyValue(t).split(",").map(i=>i.trim())}function nx(n){const t=n.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height,x:t.x,y:t.y}}function ix(n,t,e){const{top:i,bottom:r,left:o,right:a}=n;return e>=i&&e<=r&&t>=o&&t<=a}function If(n,t,e){n.top+=t,n.bottom=n.top+n.height,n.left+=e,n.right=n.left+n.width}function vS(n,t,e,i){const{top:r,right:o,bottom:a,left:c,width:d,height:h}=n,p=d*t,_=h*t;return i>r-_&&ic-p&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:nx(e)})})}handleScroll(t){const e=Us(t),i=this.positions.get(e);if(!i)return null;const r=i.scrollPosition;let o,a;if(e===this._document){const h=this.getViewportScrollPosition();o=h.top,a=h.left}else o=e.scrollTop,a=e.scrollLeft;const c=r.top-o,d=r.left-a;return this.positions.forEach((h,p)=>{h.clientRect&&e!==p&&e.contains(p)&&If(h.clientRect,c,d)}),r.top=o,r.left=a,{top:c,left:d}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function xS(n){const t=n.cloneNode(!0),e=t.querySelectorAll("[id]"),i=n.nodeName.toLowerCase();t.removeAttribute("id");for(let r=0;rwh(i,e)))}constructor(t,e,i,r,o,a){this._config=e,this._document=i,this._ngZone=r,this._viewportRuler=o,this._dragDropRegistry=a,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._hasStartedDragging=!1,this._moveEvents=new ke,this._pointerMoveSubscription=re.EMPTY,this._pointerUpSubscription=re.EMPTY,this._scrollSubscription=re.EMPTY,this._resizeSubscription=re.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new ke,this.started=new ke,this.released=new ke,this.ended=new ke,this.entered=new ke,this.exited=new ke,this.dropped=new ke,this.moved=this._moveEvents,this._pointerDown=c=>{if(this.beforeStarted.next(),this._handles.length){const d=this._getTargetHandle(c);d&&!this._disabledHandles.has(d)&&!this.disabled&&this._initializeDragSequence(d,c)}else this.disabled||this._initializeDragSequence(this._rootElement,c)},this._pointerMove=c=>{const d=this._getPointerPositionOnPage(c);if(!this._hasStartedDragging){if(Math.abs(d.x-this._pickupPositionOnPage.x)+Math.abs(d.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const A=Date.now()>=this._dragStartTime+this._getDragStartDelay(c),L=this._dropContainer;if(!A)return void this._endDragSequence(c);(!L||!L.isDragging()&&!L.isReceiving())&&(c.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(c)))}return}c.preventDefault();const h=this._getConstrainedPointerPosition(d);if(this._hasMoved=!0,this._lastKnownPointerPosition=d,this._updatePointerDirectionDelta(h),this._dropContainer)this._updateActiveDropContainer(h,d);else{const p=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,_=this._activeTransform;_.x=h.x-p.x+this._passiveTransform.x,_.y=h.y-p.y+this._passiveTransform.y,this._applyRootElementTransform(_.x,_.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:h,event:c,distance:this._getDragDistance(h),delta:this._pointerDirectionDelta})})},this._pointerUp=c=>{this._endDragSequence(c)},this._nativeDragStart=c=>{if(this._handles.length){const d=this._getTargetHandle(c);d&&!this._disabledHandles.has(d)&&!this.disabled&&c.preventDefault()}else this.disabled||c.preventDefault()},this.withRootElement(t).withParent(e.parentDragRef||null),this._parentPositions=new CS(i),a.registerDragItem(this)}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(t){this._handles=t.map(i=>Gi(i)),this._handles.forEach(i=>wh(i,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(i=>{this._handles.indexOf(i)>-1&&e.add(i)}),this._disabledHandles=e,this}withPreviewTemplate(t){return this._previewTemplate=t,this}withPlaceholderTemplate(t){return this._placeholderTemplate=t,this}withRootElement(t){const e=Gi(t);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,nb),e.addEventListener("touchstart",this._pointerDown,TS),e.addEventListener("dragstart",this._nativeDragStart,nb)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(t){return this._boundaryElement=t?Gi(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(t){return this._parentDragRef=t,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(t){!this._disabledHandles.has(t)&&this._handles.indexOf(t)>-1&&(this._disabledHandles.add(t),wh(t,!0))}enableHandle(t){this._disabledHandles.has(t)&&(this._disabledHandles.delete(t),wh(t,this.disabled))}withDirection(t){return this._direction=t,this}_withDropContainer(t){this._dropContainer=t}getFreeDragPosition(){const t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}setFreeDragPosition(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this}withPreviewContainer(t){return this._previewContainer=t,this}_sortFromLastPointerPosition(){const t=this._lastKnownPointerPosition;t&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(t),t)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(t){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:t}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(t),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(t);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:t})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(t){Af(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const i=this._rootElement,r=i.parentNode,o=this._placeholder=this._createPlaceholderElement(),a=this._anchor=this._anchor||this._document.createComment(""),c=this._getShadowRoot();r.insertBefore(a,i),this._initialTransform=i.style.transform||"",this._preview=this._createPreviewElement(),bS(i,!1,rx),this._document.body.appendChild(r.replaceChild(o,i)),this._getPreviewInsertionPoint(r,c).appendChild(this._preview),this.started.next({source:this,event:t}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:t}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(t,e){this._parentDragRef&&e.stopPropagation();const i=this.isDragging(),r=Af(e),o=!r&&0!==e.button,a=this._rootElement,c=Us(e),d=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),h=r?J_(e):Q_(e);if(c&&c.draggable&&"mousedown"===e.type&&e.preventDefault(),i||o||d||h)return;if(this._handles.length){const M=a.style;this._rootElementTapHighlight=M.webkitTapHighlightColor||"",M.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(M=>this._updateOnScroll(M)),this._boundaryElement&&(this._boundaryRect=nx(this._boundaryElement));const p=this._previewTemplate;this._pickupPositionInElement=p&&p.template&&!p.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,t,e);const _=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:_.x,y:_.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(t){bS(this._rootElement,!0,rx),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,i=e.getItemIndex(this),r=this._getPointerPositionOnPage(t),o=this._getDragDistance(r),a=e._isOverContainer(r.x,r.y);this.ended.next({source:this,distance:o,dropPoint:r,event:t}),this.dropped.next({item:this,currentIndex:i,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:a,distance:o,dropPoint:r,event:t}),e.drop(this,i,this._initialIndex,this._initialContainer,a,o,r,t),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:t,y:e},{x:i,y:r}){let o=this._initialContainer._getSiblingContainerFromPosition(this,t,e);!o&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(t,e)&&(o=this._initialContainer),o&&o!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=o,this._dropContainer.enter(this,t,e,o===this._initialContainer&&o.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:o,currentIndex:o.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(i,r),this._dropContainer._sortItem(this,t,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(t,e):this._applyPreviewTransform(t-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const t=this._previewTemplate,e=this.previewClass,i=t?t.template:null;let r;if(i&&t){const o=t.matchSize?this._initialClientRect:null,a=t.viewContainer.createEmbeddedView(i,t.context);a.detectChanges(),r=ES(a,this._document),this._previewRef=a,t.matchSize?SS(r,o):r.style.transform=ib(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else r=xS(this._rootElement),SS(r,this._initialClientRect),this._initialTransform&&(r.style.transform=this._initialTransform);return ex(r.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},rx),wh(r,!1),r.classList.add("cdk-drag-preview"),r.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(o=>r.classList.add(o)):r.classList.add(e)),r}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const t=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(t.left,t.top);const e=function s8(n){const t=getComputedStyle(n),e=tx(t,"transition-property"),i=e.find(c=>"transform"===c||"all"===c);if(!i)return 0;const r=e.indexOf(i),o=tx(t,"transition-duration"),a=tx(t,"transition-delay");return yS(o[r])+yS(a[r])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(i=>{const r=a=>{(!a||Us(a)===this._preview&&"transform"===a.propertyName)&&(this._preview?.removeEventListener("transitionend",r),i(),clearTimeout(o))},o=setTimeout(r,1.5*e);this._preview.addEventListener("transitionend",r)}))}_createPlaceholderElement(){const t=this._placeholderTemplate,e=t?t.template:null;let i;return e?(this._placeholderRef=t.viewContainer.createEmbeddedView(e,t.context),this._placeholderRef.detectChanges(),i=ES(this._placeholderRef,this._document)):i=xS(this._rootElement),i.style.pointerEvents="none",i.classList.add("cdk-drag-placeholder"),i}_getPointerPositionInElement(t,e,i){const r=e===this._rootElement?null:e,o=r?r.getBoundingClientRect():t,a=Af(i)?i.targetTouches[0]:i,c=this._getViewportScrollPosition();return{x:o.left-t.left+(a.pageX-o.left-c.left),y:o.top-t.top+(a.pageY-o.top-c.top)}}_getPointerPositionOnPage(t){const e=this._getViewportScrollPosition(),i=Af(t)?t.touches[0]||t.changedTouches[0]||{pageX:0,pageY:0}:t,r=i.pageX-e.left,o=i.pageY-e.top;if(this._ownerSVGElement){const a=this._ownerSVGElement.getScreenCTM();if(a){const c=this._ownerSVGElement.createSVGPoint();return c.x=r,c.y=o,c.matrixTransform(a.inverse())}}return{x:r,y:o}}_getConstrainedPointerPosition(t){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:i,y:r}=this.constrainPosition?this.constrainPosition(t,this,this._initialClientRect,this._pickupPositionInElement):t;if("x"===this.lockAxis||"x"===e?r=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(i=this._pickupPositionOnPage.x),this._boundaryRect){const{x:o,y:a}=this._pickupPositionInElement,c=this._boundaryRect,{width:d,height:h}=this._getPreviewRect(),p=c.top+a,_=c.bottom-(h-a);i=kS(i,c.left+o,c.right-(d-o)),r=kS(r,p,_)}return{x:i,y:r}}_updatePointerDirectionDelta(t){const{x:e,y:i}=t,r=this._pointerDirectionDelta,o=this._pointerPositionAtLastDirectionChange,a=Math.abs(e-o.x),c=Math.abs(i-o.y);return a>this._config.pointerDirectionChangeThreshold&&(r.x=e>o.x?1:-1,o.x=e),c>this._config.pointerDirectionChangeThreshold&&(r.y=i>o.y?1:-1,o.y=i),r}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,wh(this._rootElement,t))}_removeRootElementListeners(t){t.removeEventListener("mousedown",this._pointerDown,nb),t.removeEventListener("touchstart",this._pointerDown,TS),t.removeEventListener("dragstart",this._nativeDragStart,nb)}_applyRootElementTransform(t,e){const i=ib(t,e),r=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=r.transform&&"none"!=r.transform?r.transform:""),r.transform=tb(i,this._initialTransform)}_applyPreviewTransform(t,e){const i=this._previewTemplate?.template?void 0:this._initialTransform,r=ib(t,e);this._preview.style.transform=tb(r,i)}_getDragDistance(t){const e=this._pickupPositionOnPage;return e?{x:t.x-e.x,y:t.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:t,y:e}=this._passiveTransform;if(0===t&&0===e||this.isDragging()||!this._boundaryElement)return;const i=this._rootElement.getBoundingClientRect(),r=this._boundaryElement.getBoundingClientRect();if(0===r.width&&0===r.height||0===i.width&&0===i.height)return;const o=r.left-i.left,a=i.right-r.right,c=r.top-i.top,d=i.bottom-r.bottom;r.width>i.width?(o>0&&(t+=o),a>0&&(t-=a)):t=0,r.height>i.height?(c>0&&(e+=c),d>0&&(e-=d)):e=0,(t!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:t})}_getDragStartDelay(t){const e=this.dragStartDelay;return"number"==typeof e?e:Af(t)?e.touch:e?e.mouse:0}_updateOnScroll(t){const e=this._parentPositions.handleScroll(t);if(e){const i=Us(t);this._boundaryRect&&i!==this._boundaryElement&&i.contains(this._boundaryElement)&&If(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=HC(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(t,e){const i=this._previewContainer||"global";if("parent"===i)return t;if("global"===i){const r=this._document;return e||r.fullscreenElement||r.webkitFullscreenElement||r.mozFullScreenElement||r.msFullscreenElement||r.body}return Gi(i)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(t){return this._handles.find(e=>t.target&&(t.target===e||e.contains(t.target)))}}function ib(n,t){return`translate3d(${Math.round(n)}px, ${Math.round(t)}px, 0)`}function kS(n,t,e){return Math.max(t,Math.min(e,n))}function Af(n){return"t"===n.type[0]}function ES(n,t){const e=n.rootNodes;if(1===e.length&&e[0].nodeType===t.ELEMENT_NODE)return e[0];const i=t.createElement("div");return e.forEach(r=>i.appendChild(r)),i}function SS(n,t){n.style.width=`${t.width}px`,n.style.height=`${t.height}px`,n.style.transform=ib(t.left,t.top)}function Ff(n,t){return Math.max(0,Math.min(t,n))}class u8{constructor(t,e){this._element=t,this._dragDropRegistry=e,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}start(t){this.withItems(t)}sort(t,e,i,r){const o=this._itemPositions,a=this._getItemIndexFromPointerPosition(t,e,i,r);if(-1===a&&o.length>0)return null;const c="horizontal"===this.orientation,d=o.findIndex(J=>J.drag===t),h=o[a],_=h.clientRect,M=d>a?1:-1,A=this._getItemOffsetPx(o[d].clientRect,_,M),L=this._getSiblingOffsetPx(d,o,M),j=o.slice();return function d8(n,t,e){const i=Ff(t,n.length-1),r=Ff(e,n.length-1);if(i===r)return;const o=n[i],a=r{if(j[le]===J)return;const Ve=J.drag===t,ge=Ve?A:L,Dt=Ve?t.getPlaceholderElement():J.drag.getRootElement();J.offset+=ge,c?(Dt.style.transform=tb(`translate3d(${Math.round(J.offset)}px, 0, 0)`,J.initialTransform),If(J.clientRect,0,ge)):(Dt.style.transform=tb(`translate3d(0, ${Math.round(J.offset)}px, 0)`,J.initialTransform),If(J.clientRect,ge,0))}),this._previousSwap.overlaps=ix(_,e,i),this._previousSwap.drag=h.drag,this._previousSwap.delta=c?r.x:r.y,{previousIndex:d,currentIndex:a}}enter(t,e,i,r){const o=null==r||r<0?this._getItemIndexFromPointerPosition(t,e,i):r,a=this._activeDraggables,c=a.indexOf(t),d=t.getPlaceholderElement();let h=a[o];if(h===t&&(h=a[o+1]),!h&&(null==o||-1===o||o-1&&a.splice(c,1),h&&!this._dragDropRegistry.isDragging(h)){const p=h.getRootElement();p.parentElement.insertBefore(d,p),a.splice(o,0,t)}else Gi(this._element).appendChild(d),a.push(t);d.style.transform="",this._cacheItemPositions()}withItems(t){this._activeDraggables=t.slice(),this._cacheItemPositions()}withSortPredicate(t){this._sortPredicate=t}reset(){this._activeDraggables.forEach(t=>{const e=t.getRootElement();if(e){const i=this._itemPositions.find(r=>r.drag===t)?.initialTransform;e.style.transform=i||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(t){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(i=>i.drag===t)}updateOnScroll(t,e){this._itemPositions.forEach(({clientRect:i})=>{If(i,t,e)}),this._itemPositions.forEach(({drag:i})=>{this._dragDropRegistry.isDragging(i)&&i._sortFromLastPointerPosition()})}_cacheItemPositions(){const t="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const i=e.getVisibleElement();return{drag:e,offset:0,initialTransform:i.style.transform||"",clientRect:nx(i)}}).sort((e,i)=>t?e.clientRect.left-i.clientRect.left:e.clientRect.top-i.clientRect.top)}_getItemOffsetPx(t,e,i){const r="horizontal"===this.orientation;let o=r?e.left-t.left:e.top-t.top;return-1===i&&(o+=r?e.width-t.width:e.height-t.height),o}_getSiblingOffsetPx(t,e,i){const r="horizontal"===this.orientation,o=e[t].clientRect,a=e[t+-1*i];let c=o[r?"width":"height"]*i;if(a){const d=r?"left":"top",h=r?"right":"bottom";-1===i?c-=a.clientRect[d]-o[h]:c+=o[d]-a.clientRect[h]}return c}_shouldEnterAsFirstChild(t,e){if(!this._activeDraggables.length)return!1;const i=this._itemPositions,r="horizontal"===this.orientation;if(i[0].drag!==this._activeDraggables[0]){const a=i[i.length-1].clientRect;return r?t>=a.right:e>=a.bottom}{const a=i[0].clientRect;return r?t<=a.left:e<=a.top}}_getItemIndexFromPointerPosition(t,e,i,r){const o="horizontal"===this.orientation,a=this._itemPositions.findIndex(({drag:c,clientRect:d})=>c!==t&&((!r||c!==this._previousSwap.drag||!this._previousSwap.overlaps||(o?r.x:r.y)!==this._previousSwap.delta)&&(o?e>=Math.floor(d.left)&&e=Math.floor(d.top)&&i!0,this.sortPredicate=()=>!0,this.beforeStarted=new ke,this.entered=new ke,this.exited=new ke,this.dropped=new ke,this.sorted=new ke,this.receivingStarted=new ke,this.receivingStopped=new ke,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=re.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new ke,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function o8(n=0,t=Df){return n<0&&(n=0),U_(n,n,t)}(0,YE).pipe(xn(this._stopScrollTimers)).subscribe(()=>{const a=this._scrollNode,c=this.autoScrollStep;1===this._verticalScrollDirection?a.scrollBy(0,-c):2===this._verticalScrollDirection&&a.scrollBy(0,c),1===this._horizontalScrollDirection?a.scrollBy(-c,0):2===this._horizontalScrollDirection&&a.scrollBy(c,0)})},this.element=Gi(t),this._document=i,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new CS(i),this._sortStrategy=new u8(this.element,e),this._sortStrategy.withSortPredicate((a,c)=>this.sortPredicate(a,c,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this.receivingStarted.complete(),this.receivingStopped.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(t,e,i,r){this._draggingStarted(),null==r&&this.sortingDisabled&&(r=this._draggables.indexOf(t)),this._sortStrategy.enter(t,e,i,r),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}exit(t){this._reset(),this.exited.next({item:t,container:this})}drop(t,e,i,r,o,a,c,d={}){this._reset(),this.dropped.next({item:t,currentIndex:e,previousIndex:i,container:this,previousContainer:r,isPointerOverContainer:o,distance:a,dropPoint:c,event:d})}withItems(t){const e=this._draggables;return this._draggables=t,t.forEach(i=>i._withDropContainer(this)),this.isDragging()&&(e.filter(r=>r.isDragging()).every(r=>-1===t.indexOf(r))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(t){return this._sortStrategy.direction=t,this}connectedTo(t){return this._siblings=t.slice(),this}withOrientation(t){return this._sortStrategy.orientation=t,this}withScrollableParents(t){const e=Gi(this.element);return this._scrollableElements=-1===t.indexOf(e)?[e,...t]:t.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(t){return this._isDragging?this._sortStrategy.getItemIndex(t):this._draggables.indexOf(t)}isReceiving(){return this._activeSiblings.size>0}_sortItem(t,e,i,r){if(this.sortingDisabled||!this._clientRect||!vS(this._clientRect,.05,e,i))return;const o=this._sortStrategy.sort(t,e,i,r);o&&this.sorted.next({previousIndex:o.previousIndex,currentIndex:o.currentIndex,container:this,item:t})}_startScrollingIfNecessary(t,e){if(this.autoScrollDisabled)return;let i,r=0,o=0;if(this._parentPositions.positions.forEach((a,c)=>{c===this._document||!a.clientRect||i||vS(a.clientRect,.05,t,e)&&([r,o]=function m8(n,t,e,i){const r=FS(t,i),o=OS(t,e);let a=0,c=0;if(r){const d=n.scrollTop;1===r?d>0&&(a=1):n.scrollHeight-d>n.clientHeight&&(a=2)}if(o){const d=n.scrollLeft;1===o?d>0&&(c=1):n.scrollWidth-d>n.clientWidth&&(c=2)}return[a,c]}(c,a.clientRect,t,e),(r||o)&&(i=c))}),!r&&!o){const{width:a,height:c}=this._viewportRuler.getViewportSize(),d={width:a,height:c,top:0,right:a,bottom:c,left:0};r=FS(d,e),o=OS(d,t),i=window}i&&(r!==this._verticalScrollDirection||o!==this._horizontalScrollDirection||i!==this._scrollNode)&&(this._verticalScrollDirection=r,this._horizontalScrollDirection=o,this._scrollNode=i,(r||o)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const t=Gi(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const t=Gi(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(t).clientRect}_reset(){this._isDragging=!1;const t=Gi(this.element).style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(t,e){return null!=this._clientRect&&ix(this._clientRect,t,e)}_getSiblingContainerFromPosition(t,e,i){return this._siblings.find(r=>r._canReceive(t,e,i))}_canReceive(t,e,i){if(!this._clientRect||!ix(this._clientRect,e,i)||!this.enterPredicate(t,this))return!1;const r=this._getShadowRoot().elementFromPoint(e,i);if(!r)return!1;const o=Gi(this.element);return r===o||o.contains(r)}_startReceiving(t,e){const i=this._activeSiblings;!i.has(t)&&e.every(r=>this.enterPredicate(r,this)||this._draggables.indexOf(r)>-1)&&(i.add(t),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:t,receiver:this,items:e}))}_stopReceiving(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe(),this.receivingStopped.next({initiator:t,receiver:this})}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(t=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(t);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const t=HC(Gi(this.element));this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const t=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,t))}}function FS(n,t){const{top:e,bottom:i,height:r}=n,o=r*AS;return t>=e-o&&t<=e+o?1:t>=i-o&&t<=i+o?2:0}function OS(n,t){const{left:e,right:i,width:r}=n,o=r*AS;return t>=e-o&&t<=e+o?1:t>=i-o&&t<=i+o?2:0}const rb=Ja({passive:!1,capture:!0});let f8=(()=>{class n{constructor(e,i){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=r=>r.isDragging(),this.pointerMove=new ke,this.pointerUp=new ke,this.scroll=new ke,this._preventDefaultWhileDragging=r=>{this._activeDragInstances.length>0&&r.preventDefault()},this._persistentTouchmoveListener=r=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&r.preventDefault(),this.pointerMove.next(r))},this._document=i}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,rb)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,rb)}startDragging(e,i){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const r=i.type.startsWith("touch");this._globalListeners.set(r?"touchend":"mouseup",{handler:o=>this.pointerUp.next(o),options:!0}).set("scroll",{handler:o=>this.scroll.next(o),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:rb}),r||this._globalListeners.set("mousemove",{handler:o=>this.pointerMove.next(o),options:rb}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((o,a)=>{this._document.addEventListener(a,o.handler,o.options)})})}}stopDragging(e){const i=this._activeDragInstances.indexOf(e);i>-1&&(this._activeDragInstances.splice(i,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const i=[this.scroll];return e&&e!==this._document&&i.push(new ye(r=>this._ngZone.runOutsideAngular(()=>{const a=c=>{this._activeDragInstances.length&&r.next(c)};return e.addEventListener("scroll",a,!0),()=>{e.removeEventListener("scroll",a,!0)}}))),si(...i)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,i)=>{this._document.removeEventListener(i,e.handler,e.options)}),this._globalListeners.clear()}}return n.\u0275fac=function(e){return new(e||n)(ie(qt),ie(hn))},n.\u0275prov=rt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const p8={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let ox=(()=>{class n{constructor(e,i,r,o){this._document=e,this._ngZone=i,this._viewportRuler=r,this._dragDropRegistry=o}createDrag(e,i=p8){return new l8(e,i,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new h8(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return n.\u0275fac=function(e){return new(e||n)(ie(hn),ie(qt),ie(ol),ie(f8))},n.\u0275prov=rt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const sx=new De("CDK_DRAG_PARENT"),ax=new De("CdkDropListGroup");let RS=(()=>{class n{constructor(){this._items=new Set,this._disabled=!1}get disabled(){return this._disabled}set disabled(e){this._disabled=At(e)}ngOnDestroy(){this._items.clear()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=C({type:n,selectors:[["","cdkDropListGroup",""]],inputs:{disabled:["cdkDropListGroupDisabled","disabled"]},exportAs:["cdkDropListGroup"],standalone:!0,features:[jt([{provide:ax,useExisting:n}])]}),n})();const PS=new De("CDK_DRAG_CONFIG");let g8=0;const LS=new De("CdkDropList");let NS=(()=>{class n{get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(e){this._dropListRef.disabled=this._disabled=At(e)}constructor(e,i,r,o,a,c,d){this.element=e,this._changeDetectorRef=r,this._scrollDispatcher=o,this._dir=a,this._group=c,this._destroyed=new ke,this.connectedTo=[],this.id="cdk-drop-list-"+g8++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new Xe,this.entered=new Xe,this.exited=new Xe,this.sorted=new Xe,this._unsortedItems=new Set,this._dropListRef=i.createDropList(e),this._dropListRef.data=this,d&&this._assignDefaults(d),this._dropListRef.enterPredicate=(h,p)=>this.enterPredicate(h.data,p.data),this._dropListRef.sortPredicate=(h,p,_)=>this.sortPredicate(h,p.data,_.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),n._dropLists.push(this),c&&c._items.add(this)}addItem(e){this._unsortedItems.add(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(e){this._unsortedItems.delete(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((e,i)=>e._dragRef.getVisibleElement().compareDocumentPosition(i._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const e=n._dropLists.indexOf(this);e>-1&&n._dropLists.splice(e,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(e){this._dir&&this._dir.change.pipe(Br(this._dir.value),xn(this._destroyed)).subscribe(i=>e.withDirection(i)),e.beforeStarted.subscribe(()=>{const i=Cf(this.connectedTo).map(r=>"string"==typeof r?n._dropLists.find(a=>a.id===r):r);if(this._group&&this._group._items.forEach(r=>{-1===i.indexOf(r)&&i.push(r)}),!this._scrollableParentsResolved){const r=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(o=>o.getElementRef().nativeElement);this._dropListRef.withScrollableParents(r),this._scrollableParentsResolved=!0}e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.sortingDisabled=At(this.sortingDisabled),e.autoScrollDisabled=At(this.autoScrollDisabled),e.autoScrollStep=kc(this.autoScrollStep,2),e.connectedTo(i.filter(r=>r&&r!==this).map(r=>r._dropListRef)).withOrientation(this.orientation)})}_handleEvents(e){e.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(i=>{this.entered.emit({container:this,item:i.item.data,currentIndex:i.currentIndex})}),e.exited.subscribe(i=>{this.exited.emit({container:this,item:i.item.data}),this._changeDetectorRef.markForCheck()}),e.sorted.subscribe(i=>{this.sorted.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,container:this,item:i.item.data})}),e.dropped.subscribe(i=>{this.dropped.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,previousContainer:i.previousContainer.data,container:i.container.data,item:i.item.data,isPointerOverContainer:i.isPointerOverContainer,distance:i.distance,dropPoint:i.dropPoint,event:i.event}),this._changeDetectorRef.markForCheck()}),si(e.receivingStarted,e.receivingStopped).subscribe(()=>this._changeDetectorRef.markForCheck())}_assignDefaults(e){const{lockAxis:i,draggingDisabled:r,sortingDisabled:o,listAutoScrollDisabled:a,listOrientation:c}=e;this.disabled=r??!1,this.sortingDisabled=o??!1,this.autoScrollDisabled=a??!1,this.orientation=c||"vertical",i&&(this.lockAxis=i)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(e=>e._dragRef))}}return n._dropLists=[],n.\u0275fac=function(e){return new(e||n)(D(k),D(ox),D(li),D(bh),D(Vr,8),D(ax,12),D(PS,8))},n.\u0275dir=C({type:n,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(e,i){2&e&&($t("id",i.id),un("cdk-drop-list-disabled",i.disabled)("cdk-drop-list-dragging",i._dropListRef.isDragging())("cdk-drop-list-receiving",i._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],data:["cdkDropListData","data"],orientation:["cdkDropListOrientation","orientation"],id:"id",lockAxis:["cdkDropListLockAxis","lockAxis"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],standalone:!0,features:[jt([{provide:ax,useValue:void 0},{provide:LS,useExisting:n}])]}),n})();const cx=new De("CdkDragHandle"),BS=new De("CdkDragPlaceholder"),VS=new De("CdkDragPreview");let HS=(()=>{class n{get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(e){this._disabled=At(e),this._dragRef.disabled=this._disabled}constructor(e,i,r,o,a,c,d,h,p,_,M){this.element=e,this.dropContainer=i,this._ngZone=o,this._viewContainerRef=a,this._dir=d,this._changeDetectorRef=p,this._selfHandle=_,this._parentDrag=M,this._destroyed=new ke,this.started=new Xe,this.released=new Xe,this.ended=new Xe,this.entered=new Xe,this.exited=new Xe,this.dropped=new Xe,this.moved=new ye(A=>{const L=this._dragRef.moved.pipe(Ln(j=>({source:this,pointerPosition:j.pointerPosition,event:j.event,delta:j.delta,distance:j.distance}))).subscribe(A);return()=>{L.unsubscribe()}}),this._dragRef=h.createDrag(e,{dragStartThreshold:c&&null!=c.dragStartThreshold?c.dragStartThreshold:5,pointerDirectionChangeThreshold:c&&null!=c.pointerDirectionChangeThreshold?c.pointerDirectionChangeThreshold:5,zIndex:c?.zIndex}),this._dragRef.data=this,n._dragInstances.push(this),c&&this._assignDefaults(c),i&&(this._dragRef._withDropContainer(i._dropListRef),i.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(e){this._dragRef.setFreeDragPosition(e)}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Hr(1),xn(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(e){const i=e.rootElementSelector,r=e.freeDragPosition;i&&!i.firstChange&&this._updateRootElement(),r&&!r.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const e=n._dragInstances.indexOf(this);e>-1&&n._dragInstances.splice(e,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){const e=this.element.nativeElement;let i=e;this.rootElementSelector&&(i=void 0!==e.closest?e.closest(this.rootElementSelector):e.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(i||e)}_getBoundaryElement(){const e=this.boundaryElement;return e?"string"==typeof e?this.element.nativeElement.closest(e):Gi(e):null}_syncInputs(e){e.beforeStarted.subscribe(()=>{if(!e.isDragging()){const i=this._dir,r=this.dragStartDelay,o=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,a=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.dragStartDelay="object"==typeof r&&r?r:kc(r),e.constrainPosition=this.constrainPosition,e.previewClass=this.previewClass,e.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(o).withPreviewTemplate(a).withPreviewContainer(this.previewContainer||"global"),i&&e.withDirection(i.value)}}),e.beforeStarted.pipe(Hr(1)).subscribe(()=>{if(this._parentDrag)return void e.withParent(this._parentDrag._dragRef);let i=this.element.nativeElement.parentElement;for(;i;){if(i.classList.contains("cdk-drag")){e.withParent(n._dragInstances.find(r=>r.element.nativeElement===i)?._dragRef||null);break}i=i.parentElement}})}_handleEvents(e){e.started.subscribe(i=>{this.started.emit({source:this,event:i.event}),this._changeDetectorRef.markForCheck()}),e.released.subscribe(i=>{this.released.emit({source:this,event:i.event})}),e.ended.subscribe(i=>{this.ended.emit({source:this,distance:i.distance,dropPoint:i.dropPoint,event:i.event}),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(i=>{this.entered.emit({container:i.container.data,item:this,currentIndex:i.currentIndex})}),e.exited.subscribe(i=>{this.exited.emit({container:i.container.data,item:this})}),e.dropped.subscribe(i=>{this.dropped.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,previousContainer:i.previousContainer.data,container:i.container.data,isPointerOverContainer:i.isPointerOverContainer,item:this,distance:i.distance,dropPoint:i.dropPoint,event:i.event})})}_assignDefaults(e){const{lockAxis:i,dragStartDelay:r,constrainPosition:o,previewClass:a,boundaryElement:c,draggingDisabled:d,rootElementSelector:h,previewContainer:p}=e;this.disabled=d??!1,this.dragStartDelay=r||0,i&&(this.lockAxis=i),o&&(this.constrainPosition=o),a&&(this.previewClass=a),c&&(this.boundaryElement=c),h&&(this.rootElementSelector=h),p&&(this.previewContainer=p)}_setupHandlesListener(){this._handles.changes.pipe(Br(this._handles),vh(e=>{const i=e.filter(r=>r._parentDrag===this).map(r=>r.element);this._selfHandle&&this.rootElementSelector&&i.push(this.element),this._dragRef.withHandles(i)}),Sc(e=>si(...e.map(i=>i._stateChanges.pipe(Br(i))))),xn(this._destroyed)).subscribe(e=>{const i=this._dragRef,r=e.element.nativeElement;e.disabled?i.disableHandle(r):i.enableHandle(r)})}}return n._dragInstances=[],n.\u0275fac=function(e){return new(e||n)(D(k),D(LS,12),D(hn),D(qt),D(pr),D(PS,8),D(Vr,8),D(ox),D(li),D(cx,10),D(sx,12))},n.\u0275dir=C({type:n,selectors:[["","cdkDrag",""]],contentQueries:function(e,i,r){if(1&e&&(zn(r,VS,5),zn(r,BS,5),zn(r,cx,5)),2&e){let o;kt(o=Et())&&(i._previewTemplate=o.first),kt(o=Et())&&(i._placeholderTemplate=o.first),kt(o=Et())&&(i._handles=o)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(e,i){2&e&&un("cdk-drag-disabled",i.disabled)("cdk-drag-dragging",i._dragRef.isDragging())},inputs:{data:["cdkDragData","data"],lockAxis:["cdkDragLockAxis","lockAxis"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],boundaryElement:["cdkDragBoundary","boundaryElement"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"],disabled:["cdkDragDisabled","disabled"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],previewContainer:["cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],standalone:!0,features:[jt([{provide:sx,useExisting:n}]),ji]}),n})(),C8=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=Jt({providers:[ox],imports:[Rd]}),n})();const x8=["text"];function w8(n,t){if(1&n&&Pe(0,"mat-pseudo-checkbox",6),2&n){const e=ne();B("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function D8(n,t){1&n&&Pe(0,"mat-pseudo-checkbox",7),2&n&&B("disabled",ne().disabled)}function M8(n,t){if(1&n&&(v(0,"span",8),E(1),y()),2&n){const e=ne();I(1),bi("(",e.group.label,")")}}const T8=[[["mat-icon"]],"*"],k8=["mat-icon","*"],S8=new De("mat-sanity-checks",{providedIn:"root",factory:function E8(){return!0}});let Gn=(()=>{class n{constructor(e,i,r){this._sanityChecks=i,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!zC()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return n.\u0275fac=function(e){return new(e||n)(ie(gS),ie(S8,8),ie(hn))},n.\u0275mod=Re({type:n}),n.\u0275inj=Jt({imports:[kf,kf]}),n})();function Ld(n){return class extends n{get disabled(){return this._disabled}set disabled(t){this._disabled=At(t)}constructor(...t){super(...t),this._disabled=!1}}}function Dh(n,t){return class extends n{get color(){return this._color}set color(e){const i=e||this.defaultColor;i!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),i&&this._elementRef.nativeElement.classList.add(`mat-${i}`),this._color=i)}constructor(...e){super(...e),this.defaultColor=t,this.color=t}}}function nd(n){return class extends n{get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=At(t)}constructor(...t){super(...t),this._disableRipple=!1}}}function Of(n,t=0){return class extends n{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?kc(e):this.defaultTabIndex}constructor(...e){super(...e),this._tabIndex=t,this.defaultTabIndex=t}}}function lx(n){return class extends n{updateErrorState(){const t=this.errorState,o=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);o!==t&&(this.errorState=o,this.stateChanges.next())}constructor(...t){super(...t),this.errorState=!1}}}let ob=(()=>{class n{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=rt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class A8{constructor(t,e,i,r=!1){this._renderer=t,this.element=e,this.config=i,this._animationForciblyDisabledThroughCss=r,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const jS=Ja({passive:!0,capture:!0});class F8{constructor(){this._events=new Map,this._delegateEventHandler=t=>{const e=Us(t);e&&this._events.get(t.type)?.forEach((i,r)=>{(r===e||r.contains(e))&&i.forEach(o=>o.handleEvent(t))})}}addHandler(t,e,i,r){const o=this._events.get(e);if(o){const a=o.get(i);a?a.add(r):o.set(i,new Set([r]))}else this._events.set(e,new Map([[i,new Set([r])]])),t.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,jS)})}removeHandler(t,e,i){const r=this._events.get(t);if(!r)return;const o=r.get(e);o&&(o.delete(i),0===o.size&&r.delete(e),0===r.size&&(this._events.delete(t),document.removeEventListener(t,this._delegateEventHandler,jS)))}}const US={enterDuration:225,exitDuration:150},WS=Ja({passive:!0,capture:!0}),GS=["mousedown","touchstart"],YS=["mouseup","mouseleave","touchend","touchcancel"];class Pf{constructor(t,e,i,r){this._target=t,this._ngZone=e,this._platform=r,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Gi(i))}fadeInRipple(t,e,i={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o={...US,...i.animation};i.centered&&(t=r.left+r.width/2,e=r.top+r.height/2);const a=i.radius||function R8(n,t,e){const i=Math.max(Math.abs(n-e.left),Math.abs(n-e.right)),r=Math.max(Math.abs(t-e.top),Math.abs(t-e.bottom));return Math.sqrt(i*i+r*r)}(t,e,r),c=t-r.left,d=e-r.top,h=o.enterDuration,p=document.createElement("div");p.classList.add("mat-ripple-element"),p.style.left=c-a+"px",p.style.top=d-a+"px",p.style.height=2*a+"px",p.style.width=2*a+"px",null!=i.color&&(p.style.backgroundColor=i.color),p.style.transitionDuration=`${h}ms`,this._containerElement.appendChild(p);const _=window.getComputedStyle(p),A=_.transitionDuration,L="none"===_.transitionProperty||"0s"===A||"0s, 0s"===A||0===r.width&&0===r.height,j=new A8(this,p,i,L);p.style.transform="scale3d(1, 1, 1)",j.state=0,i.persistent||(this._mostRecentTransientRipple=j);let J=null;return!L&&(h||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const le=()=>this._finishRippleTransition(j),Ve=()=>this._destroyRipple(j);p.addEventListener("transitionend",le),p.addEventListener("transitioncancel",Ve),J={onTransitionEnd:le,onTransitionCancel:Ve}}),this._activeRipples.set(j,J),(L||!h)&&this._finishRippleTransition(j),j}fadeOutRipple(t){if(2===t.state||3===t.state)return;const e=t.element,i={...US,...t.config.animation};e.style.transitionDuration=`${i.exitDuration}ms`,e.style.opacity="0",t.state=2,(t._animationForciblyDisabledThroughCss||!i.exitDuration)&&this._finishRippleTransition(t)}fadeOutAll(){this._getActiveRipples().forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=Gi(t);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,GS.forEach(i=>{Pf._eventManager.addHandler(this._ngZone,i,e,this)}))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{YS.forEach(e=>{this._triggerElement.addEventListener(e,this,WS)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(t){0===t.state?this._startFadeOutTransition(t):2===t.state&&this._destroyRipple(t)}_startFadeOutTransition(t){const e=t===this._mostRecentTransientRipple,{persistent:i}=t.config;t.state=1,!i&&(!e||!this._isPointerDown)&&t.fadeOut()}_destroyRipple(t){const e=this._activeRipples.get(t)??null;this._activeRipples.delete(t),this._activeRipples.size||(this._containerRect=null),t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),t.state=3,null!==e&&(t.element.removeEventListener("transitionend",e.onTransitionEnd),t.element.removeEventListener("transitioncancel",e.onTransitionCancel)),t.element.remove()}_onMousedown(t){const e=Q_(t),i=this._lastTouchStartEvent&&Date.now(){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const t=this._triggerElement;t&&(GS.forEach(e=>Pf._eventManager.removeHandler(e,t,this)),this._pointerUpEventsRegistered&&YS.forEach(e=>t.removeEventListener(e,this,WS)))}}Pf._eventManager=new F8;const dx=new De("mat-ripple-global-options");let ts=(()=>{class n{get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}constructor(e,i,r,o,a){this._elementRef=e,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=o||{},this._rippleRenderer=new Pf(this,i,e,r)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,i=0,r){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,i,{...this.rippleConfig,...r}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}}return n.\u0275fac=function(e){return new(e||n)(D(k),D(qt),D(Oi),D(dx,8),D(Lr,8))},n.\u0275dir=C({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,i){2&e&&un("mat-ripple-unbounded",i.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),n})(),Nd=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=Jt({imports:[Gn,Gn]}),n})(),P8=(()=>{class n{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1,this.appearance="full"}}return n.\u0275fac=function(e){return new(e||n)(D(Lr,8))},n.\u0275cmp=S({type:n,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(e,i){2&e&&un("mat-pseudo-checkbox-indeterminate","indeterminate"===i.state)("mat-pseudo-checkbox-checked","checked"===i.state)("mat-pseudo-checkbox-disabled",i.disabled)("mat-pseudo-checkbox-minimal","minimal"===i.appearance)("mat-pseudo-checkbox-full","full"===i.appearance)("_mat-animation-noopable","NoopAnimations"===i._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(e,i){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-full{border:2px solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0}),n})(),L8=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=Jt({imports:[Gn]}),n})();const ux=new De("MAT_OPTION_PARENT_COMPONENT"),hx=new De("MatOptgroup");let N8=0;class ZS{constructor(t,e=!1){this.source=t,this.isUserInput=e}}let B8=(()=>{class n{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=At(e)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}constructor(e,i,r,o){this._element=e,this._changeDetectorRef=i,this._parent=r,this.group=o,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+N8++,this.onSelectionChange=new Xe,this._stateChanges=new ke}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(e,i){const r=this._getHostElement();"function"==typeof r.focus&&r.focus(i)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!Ws(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new ZS(this,e))}}return n.\u0275fac=function(e){Om()},n.\u0275dir=C({type:n,viewQuery:function(e,i){if(1&e&&Hn(x8,7),2&e){let r;kt(r=Et())&&(i._text=r.first)}},inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),n})(),Bd=(()=>{class n extends B8{constructor(e,i,r,o){super(e,i,r,o)}}return n.\u0275fac=function(e){return new(e||n)(D(k),D(li),D(ux,8),D(hx,8))},n.\u0275cmp=S({type:n,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-mdc-option","mat-mdc-focus-indicator","mdc-list-item"],hostVars:12,hostBindings:function(e,i){1&e&&ue("click",function(){return i._selectViaInteraction()})("keydown",function(o){return i._handleKeydown(o)}),2&e&&(Vs("id",i.id),$t("tabindex",i._getTabIndex())("aria-selected",i.selected)("aria-disabled",i.disabled.toString()),un("mdc-list-item--selected",i.selected)("mat-mdc-option-multiple",i.multiple)("mat-mdc-option-active",i.active)("mdc-list-item--disabled",i.disabled))},exportAs:["matOption"],features:[ht],ngContentSelectors:k8,decls:8,vars:5,consts:[["class","mat-mdc-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mdc-list-item__primary-text"],["text",""],["class","mat-mdc-option-pseudo-checkbox","state","checked","appearance","minimal",3,"disabled",4,"ngIf"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-mdc-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-mdc-option-pseudo-checkbox",3,"state","disabled"],["state","checked","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"]],template:function(e,i){1&e&&(wi(T8),X(0,w8,1,2,"mat-pseudo-checkbox",0),en(1),v(2,"span",1,2),en(4,1),y(),X(5,D8,1,1,"mat-pseudo-checkbox",3),X(6,M8,2,1,"span",4),Pe(7,"div",5)),2&e&&(B("ngIf",i.multiple),I(5),B("ngIf",!i.multiple&&i.selected&&!i.hideSingleSelectionIndicator),I(1),B("ngIf",i.group&&i.group._inert),I(1),B("matRippleTrigger",i._getHostElement())("matRippleDisabled",i.disabled||i.disableRipple))},dependencies:[ts,Di,P8],styles:['.mat-mdc-option{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);min-height:48px}.mat-mdc-option:focus{outline:none}[dir=rtl] .mat-mdc-option,.mat-mdc-option[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-option.mdc-list-item{align-items:center}.mat-mdc-option.mdc-list-item--disabled{opacity:.38;cursor:default}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-active::before{content:""}'],encapsulation:2,changeDetection:0}),n})();function qS(n,t,e){if(e.length){let i=t.toArray(),r=e.toArray(),o=0;for(let a=0;ae+i?Math.max(0,n-i+t):e}let sb=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=Jt({imports:[Nd,ya,Gn,L8]}),n})();class mx{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class ab extends mx{constructor(t,e,i,r,o){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=r,this.projectableNodes=o}}class Vd extends mx{constructor(t,e,i,r){super(),this.templateRef=t,this.viewContainerRef=e,this.context=i,this.injector=r}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class V8 extends mx{constructor(t){super(),this.element=t instanceof k?t.nativeElement:t}}class fx{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof ab?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof Vd?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof V8?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class H8 extends fx{constructor(t,e,i,r,o){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=r,this.attachDomPortal=a=>{const c=a.element,d=this._document.createComment("dom-portal");c.parentNode.insertBefore(d,c),this.outletElement.appendChild(c),this._attachedPortal=a,super.setDisposeFn(()=>{d.parentNode&&d.parentNode.replaceChild(c,d)})},this._document=o}attachComponentPortal(t){const i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let r;return t.viewContainerRef?(r=t.viewContainerRef.createComponent(i,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector,t.projectableNodes||void 0),this.setDisposeFn(()=>r.destroy())):(r=i.create(t.injector||this._defaultInjector||Ko.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=t,r}attachTemplatePortal(t){let e=t.viewContainerRef,i=e.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(i);-1!==r&&e.remove(r)}),this._attachedPortal=t,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let z8=(()=>{class n extends Vd{constructor(e,i){super(e,i)}}return n.\u0275fac=function(e){return new(e||n)(D(fr),D(pr))},n.\u0275dir=C({type:n,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[ht]}),n})(),Lf=(()=>{class n extends fx{constructor(e,i,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new Xe,this.attachDomPortal=o=>{const a=o.element,c=this._document.createComment("dom-portal");o.setAttachedHost(this),a.parentNode.insertBefore(c,a),this._getRootNode().appendChild(a),this._attachedPortal=o,super.setDisposeFn(()=>{c.parentNode&&c.parentNode.replaceChild(a,c)})},this._document=r}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(e){e.setAttachedHost(this);const i=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,o=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),a=i.createComponent(o,i.length,e.injector||i.injector,e.projectableNodes||void 0);return i!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),super.setDisposeFn(()=>a.destroy()),this._attachedPortal=e,this._attachedRef=a,this.attached.emit(a),a}attachTemplatePortal(e){e.setAttachedHost(this);const i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return n.\u0275fac=function(e){return new(e||n)(D(x),D(pr),D(hn))},n.\u0275dir=C({type:n,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[ht]}),n})(),px=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=Jt({}),n})();const XS=XE();class j8{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=Cr(-this._previousScrollPosition.left),t.style.top=Cr(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,i=t.style,r=this._document.body.style,o=i.scrollBehavior||"",a=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),XS&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),XS&&(i.scrollBehavior=o,r.scrollBehavior=a)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}}class U8{constructor(t,e,i,r){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class QS{enable(){}disable(){}attach(){}}function gx(n,t){return t.some(e=>n.bottome.bottom||n.righte.right)}function JS(n,t){return t.some(e=>n.tope.bottom||n.lefte.right)}class W8{constructor(t,e,i,r){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=r,this._scrollSubscription=null}attach(t){this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();gx(e,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let G8=(()=>{class n{constructor(e,i,r,o){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new QS,this.close=a=>new U8(this._scrollDispatcher,this._ngZone,this._viewportRuler,a),this.block=()=>new j8(this._viewportRuler,this._document),this.reposition=a=>new W8(this._scrollDispatcher,this._viewportRuler,this._ngZone,a),this._document=o}}return n.\u0275fac=function(e){return new(e||n)(ie(bh),ie(ol),ie(qt),ie(hn))},n.\u0275prov=rt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class Nf{constructor(t){if(this.scrollStrategy=new QS,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const i of e)void 0!==t[i]&&(this[i]=t[i])}}}class Y8{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let eI=(()=>{class n{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}}return n.\u0275fac=function(e){return new(e||n)(ie(hn))},n.\u0275prov=rt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Z8=(()=>{class n extends eI{constructor(e,i){super(e),this._ngZone=i,this._keydownListener=r=>{const o=this._attachedOverlays;for(let a=o.length-1;a>-1;a--)if(o[a]._keydownEvents.observers.length>0){const c=o[a]._keydownEvents;this._ngZone?this._ngZone.run(()=>c.next(r)):c.next(r);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return n.\u0275fac=function(e){return new(e||n)(ie(hn),ie(qt,8))},n.\u0275prov=rt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),q8=(()=>{class n extends eI{constructor(e,i,r){super(e),this._platform=i,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=o=>{this._pointerDownEventTarget=Us(o)},this._clickListener=o=>{const a=Us(o),c="click"===o.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:a;this._pointerDownEventTarget=null;const d=this._attachedOverlays.slice();for(let h=d.length-1;h>-1;h--){const p=d[h];if(p._outsidePointerEvents.observers.length<1||!p.hasAttached())continue;if(p.overlayElement.contains(a)||p.overlayElement.contains(c))break;const _=p._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>_.next(o)):_.next(o)}}}add(e){if(super.add(e),!this._isAttached){const i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return n.\u0275fac=function(e){return new(e||n)(ie(hn),ie(Oi),ie(qt,8))},n.\u0275prov=rt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),tI=(()=>{class n{constructor(e,i){this._platform=i,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||zC()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let o=0;othis._backdropClick.next(_),this._backdropTransitionendHandler=_=>{this._disposeBackdrop(_.target)},this._keydownEvents=new ke,this._outsidePointerEvents=new ke,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(t);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(Hr(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof e?.onDestroy&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config={...this._config,...t},this._updateElementSize()}setDirection(t){this._config={...this._config,direction:t},this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=Cr(this._config.width),t.height=Cr(this._config.height),t.minWidth=Cr(this._config.minWidth),t.minHeight=Cr(this._config.minHeight),t.maxWidth=Cr(this._config.maxWidth),t.maxHeight=Cr(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const t=this._backdropElement;if(t){if(this._animationsDisabled)return void this._disposeBackdrop(t);t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",this._backdropTransitionendHandler)}),t.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(t)},500))}}_toggleClasses(t,e,i){const r=Cf(e||[]).filter(o=>!!o);r.length&&(i?t.classList.add(...r):t.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(xn(si(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}_disposeBackdrop(t){t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",this._backdropTransitionendHandler),t.remove(),this._backdropElement===t&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const nI="cdk-overlay-connected-position-bounding-box",X8=/([A-Za-z%]+)$/;class Q8{get positions(){return this._preferredPositions}constructor(t,e,i,r,o){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=o,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new ke,this._resizeSubscription=re.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}attach(t){this._validatePositions(),t.hostElement.classList.add(nI),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const t=this._originRect,e=this._overlayRect,i=this._viewportRect,r=this._containerRect,o=[];let a;for(let c of this._preferredPositions){let d=this._getOriginPoint(t,r,c),h=this._getOverlayPoint(d,e,c),p=this._getOverlayFit(h,e,i,c);if(p.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(c,d);this._canFitWithFlexibleDimensions(p,h,i)?o.push({position:c,origin:d,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(d,c)}):(!a||a.overlayFit.visibleAread&&(d=p,c=h)}return this._isPushed=!1,void this._applyPosition(c.position,c.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(a.position,a.originPoint);this._applyPosition(a.position,a.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Hd(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(nI),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const t=this._lastPosition;if(t){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,t);this._applyPosition(t,e)}else this.apply()}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e,i){let r,o;if("center"==i.originX)r=t.left+t.width/2;else{const a=this._isRtl()?t.right:t.left,c=this._isRtl()?t.left:t.right;r="start"==i.originX?a:c}return e.left<0&&(r-=e.left),o="center"==i.originY?t.top+t.height/2:"top"==i.originY?t.top:t.bottom,e.top<0&&(o-=e.top),{x:r,y:o}}_getOverlayPoint(t,e,i){let r,o;return r="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,o="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+r,y:t.y+o}}_getOverlayFit(t,e,i,r){const o=rI(e);let{x:a,y:c}=t,d=this._getOffset(r,"x"),h=this._getOffset(r,"y");d&&(a+=d),h&&(c+=h);let M=0-c,A=c+o.height-i.height,L=this._subtractOverflows(o.width,0-a,a+o.width-i.width),j=this._subtractOverflows(o.height,M,A),J=L*j;return{visibleArea:J,isCompletelyWithinViewport:o.width*o.height===J,fitsInViewportVertically:j===o.height,fitsInViewportHorizontally:L==o.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const r=i.bottom-e.y,o=i.right-e.x,a=iI(this._overlayRef.getConfig().minHeight),c=iI(this._overlayRef.getConfig().minWidth);return(t.fitsInViewportVertically||null!=a&&a<=r)&&(t.fitsInViewportHorizontally||null!=c&&c<=o)}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const r=rI(e),o=this._viewportRect,a=Math.max(t.x+r.width-o.width,0),c=Math.max(t.y+r.height-o.height,0),d=Math.max(o.top-i.top-t.y,0),h=Math.max(o.left-i.left-t.x,0);let p=0,_=0;return p=r.width<=o.width?h||-a:t.xL&&!this._isInitialRender&&!this._growAfterOpen&&(a=t.y-L/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)M=i.width-t.x+this._viewportMargin,p=t.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)_=t.x,p=i.right-t.x;else{const A=Math.min(i.right-t.x+i.left,t.x),L=this._lastBoundingBoxSize.width;p=2*A,_=t.x-A,p>L&&!this._isInitialRender&&!this._growAfterOpen&&(_=t.x-L/2)}return{top:a,left:_,bottom:c,right:M,width:p,height:o}}_setBoundingBoxStyles(t,e){const i=this._calculateBoundingBoxRect(t,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const o=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;r.height=Cr(i.height),r.top=Cr(i.top),r.bottom=Cr(i.bottom),r.width=Cr(i.width),r.left=Cr(i.left),r.right=Cr(i.right),r.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",r.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",o&&(r.maxHeight=Cr(o)),a&&(r.maxWidth=Cr(a))}this._lastBoundingBoxSize=i,Hd(this._boundingBox.style,r)}_resetBoundingBoxStyles(){Hd(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Hd(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(r){const p=this._viewportRuler.getViewportScrollPosition();Hd(i,this._getExactOverlayY(e,t,p)),Hd(i,this._getExactOverlayX(e,t,p))}else i.position="static";let c="",d=this._getOffset(e,"x"),h=this._getOffset(e,"y");d&&(c+=`translateX(${d}px) `),h&&(c+=`translateY(${h}px)`),i.transform=c.trim(),a.maxHeight&&(r?i.maxHeight=Cr(a.maxHeight):o&&(i.maxHeight="")),a.maxWidth&&(r?i.maxWidth=Cr(a.maxWidth):o&&(i.maxWidth="")),Hd(this._pane.style,i)}_getExactOverlayY(t,e,i){let r={top:"",bottom:""},o=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),"bottom"===t.overlayY?r.bottom=this._document.documentElement.clientHeight-(o.y+this._overlayRect.height)+"px":r.top=Cr(o.y),r}_getExactOverlayX(t,e,i){let a,r={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),a=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===a?r.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":r.left=Cr(o.x),r}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:JS(t,i),isOriginOutsideView:gx(t,i),isOverlayClipped:JS(e,i),isOverlayOutsideView:gx(e,i)}}_subtractOverflows(t,...e){return e.reduce((i,r)=>i-Math.max(r,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&Cf(t).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof k)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}}function Hd(n,t){for(let e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}function iI(n){if("number"!=typeof n&&null!=n){const[t,e]=n.split(X8);return e&&"px"!==e?null:parseFloat(t)}return n||null}function rI(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}const oI="cdk-global-overlay-wrapper";class J8{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(oI),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._xOffset=t,this._xPosition="left",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._xOffset=t,this._xPosition="right",this}start(t=""){return this._xOffset=t,this._xPosition="start",this}end(t=""){return this._xOffset=t,this._xPosition="end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._xPosition="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:a,maxHeight:c}=i,d=!("100%"!==r&&"100vw"!==r||a&&"100%"!==a&&"100vw"!==a),h=!("100%"!==o&&"100vh"!==o||c&&"100%"!==c&&"100vh"!==c),p=this._xPosition,_=this._xOffset,M="rtl"===this._overlayRef.getConfig().direction;let A="",L="",j="";d?j="flex-start":"center"===p?(j="center",M?L=_:A=_):M?"left"===p||"end"===p?(j="flex-end",A=_):("right"===p||"start"===p)&&(j="flex-start",L=_):"left"===p||"start"===p?(j="flex-start",A=_):("right"===p||"end"===p)&&(j="flex-end",L=_),t.position=this._cssPosition,t.marginLeft=d?"0":A,t.marginTop=h?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=d?"0":L,e.justifyContent=j,e.alignItems=h?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(oI),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let e6=(()=>{class n{constructor(e,i,r,o){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=o}global(){return new J8}flexibleConnectedTo(e){return new Q8(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(e){return new(e||n)(ie(ol),ie(hn),ie(Oi),ie(tI))},n.\u0275prov=rt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),t6=0,Da=(()=>{class n{constructor(e,i,r,o,a,c,d,h,p,_,M,A){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=r,this._positionBuilder=o,this._keyboardDispatcher=a,this._injector=c,this._ngZone=d,this._document=h,this._directionality=p,this._location=_,this._outsideClickDispatcher=M,this._animationsModuleType=A}create(e){const i=this._createHostElement(),r=this._createPaneElement(i),o=this._createPortalOutlet(r),a=new Nf(e);return a.direction=a.direction||this._directionality.value,new K8(o,i,r,a,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const i=this._document.createElement("div");return i.id="cdk-overlay-"+t6++,i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(Jm)),new H8(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(e){return new(e||n)(ie(G8),ie(tI),ie(x),ie(e6),ie(Z8),ie(Ko),ie(qt),ie(hn),ie(Vr),ie(ZM),ie(q8),ie(Lr,8))},n.\u0275prov=rt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const n6=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],sI=new De("cdk-connected-overlay-scroll-strategy");let _x=(()=>{class n{constructor(e){this.elementRef=e}}return n.\u0275fac=function(e){return new(e||n)(D(k))},n.\u0275dir=C({type:n,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0}),n})(),aI=(()=>{class n{get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=At(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=At(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=At(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=At(e)}get push(){return this._push}set push(e){this._push=At(e)}constructor(e,i,r,o,a){this._overlay=e,this._dir=a,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=re.EMPTY,this._attachSubscription=re.EMPTY,this._detachSubscription=re.EMPTY,this._positionSubscription=re.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new Xe,this.positionChange=new Xe,this.attach=new Xe,this.detach=new Xe,this.overlayKeydown=new Xe,this.overlayOutsideClick=new Xe,this._templatePortal=new Vd(i,r),this._scrollStrategyFactory=o,this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=n6);const e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(i=>{this.overlayKeydown.next(i),27===i.keyCode&&!this.disableClose&&!Ws(i)&&(i.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{this.overlayOutsideClick.next(i)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new Nf({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(i.width=this.width),(this.height||0===this.height)&&(i.height=this.height),(this.minWidth||0===this.minWidth)&&(i.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(e){const i=this.positions.map(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.panelClass||void 0}));return e.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const e=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(e),e}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof _x?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function $8(n,t=!1){return qe((e,i)=>{let r=0;e.subscribe(Ft(i,o=>{const a=n(o,r++);(a||t)&&i.next(o),!a&&i.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe(e=>{this.positionChange.emit(e),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(D(Da),D(fr),D(pr),D(sI),D(Vr,8))},n.\u0275dir=C({type:n,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[ji]}),n})();const r6={provide:sI,deps:[Da],useFactory:function i6(n){return()=>n.scrollStrategies.reposition()}};let Bf=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=Jt({providers:[Da,r6],imports:[kf,px,eS,eS]}),n})();function cI(n){return new ye(t=>{vi(n()).subscribe(t)})}const o6=["matFormFieldNotchedOutline",""],s6=["*"],a6=["textField"],c6=["iconPrefixContainer"],l6=["textPrefixContainer"];function d6(n,t){1&n&&Pe(0,"span",19)}function u6(n,t){if(1&n){const e=Zt();v(0,"label",17),ue("cdkObserveContent",function(){return nt(e),at(ne(2)._refreshOutlineNotchWidth())}),en(1,1),X(2,d6,1,0,"span",18),y()}if(2&n){const e=ne(2);B("floating",e._shouldLabelFloat())("cdkObserveContentDisabled",!e._hasOutline())("id",e._labelId),$t("for",e._control.id)("aria-owns",e._control.id),I(2),B("ngIf",!e.hideRequiredMarker&&e._control.required)}}function h6(n,t){1&n&&X(0,u6,3,6,"label",16),2&n&&B("ngIf",ne()._hasFloatingLabel())}function m6(n,t){1&n&&Pe(0,"div",20)}function f6(n,t){}function p6(n,t){1&n&&X(0,f6,0,0,"ng-template",22),2&n&&(ne(2),B("ngTemplateOutlet",Xo(1)))}function g6(n,t){if(1&n&&(v(0,"div",21),X(1,p6,1,1,"ng-template",9),y()),2&n){const e=ne();B("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat())("matFormFieldNotchedOutlineLabelWidth",e._labelWidth),I(1),B("ngIf",!e._forceDisplayInfixLabel())}}function _6(n,t){1&n&&(v(0,"div",23,24),en(2,2),y())}function b6(n,t){1&n&&(v(0,"div",25,26),en(2,3),y())}function y6(n,t){}function v6(n,t){1&n&&X(0,y6,0,0,"ng-template",22),2&n&&(ne(),B("ngTemplateOutlet",Xo(1)))}function C6(n,t){1&n&&(v(0,"div",27),en(1,4),y())}function x6(n,t){1&n&&(v(0,"div",28),en(1,5),y())}function w6(n,t){1&n&&Pe(0,"div",29)}function D6(n,t){1&n&&(v(0,"div",30),en(1,6),y()),2&n&&B("@transitionMessages",ne()._subscriptAnimationState)}function M6(n,t){if(1&n&&(v(0,"mat-hint",34),E(1),y()),2&n){const e=ne(2);B("id",e._hintLabelId),I(1),Qt(e.hintLabel)}}function T6(n,t){if(1&n&&(v(0,"div",31),X(1,M6,2,2,"mat-hint",32),en(2,7),Pe(3,"div",33),en(4,8),y()),2&n){const e=ne();B("@transitionMessages",e._subscriptAnimationState),I(1),B("ngIf",e.hintLabel)}}const k6=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],E6=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];let qr=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=C({type:n,selectors:[["mat-label"]]}),n})(),S6=0;const lI=new De("MatError");let sl=(()=>{class n{constructor(e,i){this.id="mat-mdc-error-"+S6++,e||i.nativeElement.setAttribute("aria-live","polite")}}return n.\u0275fac=function(e){return new(e||n)(Ls("aria-live"),D(k))},n.\u0275dir=C({type:n,selectors:[["mat-error"],["","matError",""]],hostAttrs:["aria-atomic","true",1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(e,i){2&e&&Vs("id",i.id)},inputs:{id:"id"},features:[jt([{provide:lI,useExisting:n}])]}),n})(),I6=0,dI=(()=>{class n{constructor(){this.align="start",this.id="mat-mdc-hint-"+I6++}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=C({type:n,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(e,i){2&e&&(Vs("id",i.id),$t("align",null),un("mat-mdc-form-field-hint-end","end"===i.align))},inputs:{align:"align",id:"id"}}),n})();const A6=new De("MatPrefix"),F6=new De("MatSuffix");let uI=(()=>{class n{constructor(e){this._elementRef=e,this.floating=!1}getWidth(){return function O6(n){if(null!==n.offsetParent)return n.scrollWidth;const e=n.cloneNode(!0);e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);const i=e.scrollWidth;return e.remove(),i}(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}}return n.\u0275fac=function(e){return new(e||n)(D(k))},n.\u0275dir=C({type:n,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(e,i){2&e&&un("mdc-floating-label--float-above",i.floating)},inputs:{floating:"floating"}}),n})();const hI="mdc-line-ripple--active",cb="mdc-line-ripple--deactivating";let mI=(()=>{class n{constructor(e,i){this._elementRef=e,this._handleTransitionEnd=r=>{const o=this._elementRef.nativeElement.classList,a=o.contains(cb);"opacity"===r.propertyName&&a&&o.remove(hI,cb)},i.runOutsideAngular(()=>{e.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){const e=this._elementRef.nativeElement.classList;e.remove(cb),e.add(hI)}deactivate(){this._elementRef.nativeElement.classList.add(cb)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}}return n.\u0275fac=function(e){return new(e||n)(D(k),D(qt))},n.\u0275dir=C({type:n,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]}),n})(),fI=(()=>{class n{constructor(e,i){this._elementRef=e,this._ngZone=i,this.labelWidth=0,this.open=!1}ngAfterViewInit(){const e=this._elementRef.nativeElement.querySelector(".mdc-floating-label");e?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),"function"==typeof requestAnimationFrame&&(e.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>e.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_getNotchWidth(){return this.open?this.labelWidth>0?`calc(${this.labelWidth}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`:"0px":null}}return n.\u0275fac=function(e){return new(e||n)(D(k),D(qt))},n.\u0275cmp=S({type:n,selectors:[["div","matFormFieldNotchedOutline",""]],hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(e,i){2&e&&un("mdc-notched-outline--notched",i.open)},inputs:{labelWidth:["matFormFieldNotchedOutlineLabelWidth","labelWidth"],open:["matFormFieldNotchedOutlineOpen","open"]},attrs:o6,ngContentSelectors:s6,decls:4,vars:2,consts:[[1,"mdc-notched-outline__leading"],[1,"mdc-notched-outline__notch"],[1,"mdc-notched-outline__trailing"]],template:function(e,i){1&e&&(wi(),Pe(0,"div",0),v(1,"div",1),en(2),y(),Pe(3,"div",2)),2&e&&(I(1),Vm("width",i._getNotchWidth()))},encapsulation:2,changeDetection:0}),n})();const R6={transitionMessages:nl("transitionMessages",[va("enter",Ei({opacity:1,transform:"translateY(0%)"})),wo("void => enter",[Ei({opacity:0,transform:"translateY(-5px)"}),xo("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let lb=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=C({type:n}),n})();const Vf=new De("MatFormField"),P6=new De("MAT_FORM_FIELD_DEFAULT_OPTIONS");let pI=0,so=(()=>{class n{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=At(e)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||"auto"}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(e){const i=this._appearance;this._appearance=e||this._defaults?.appearance||"fill","outline"===this._appearance&&this._appearance!==i&&(this._refreshOutlineNotchWidth(),this._needsOutlineLabelOffsetUpdateOnStable=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||"fixed"}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||"fixed"}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(e){this._explicitFormFieldControl=e}constructor(e,i,r,o,a,c,d,h){this._elementRef=e,this._changeDetectorRef=i,this._ngZone=r,this._dir=o,this._platform=a,this._defaults=c,this._animationMode=d,this._document=h,this._hideRequiredMarker=!1,this.color="primary",this._appearance="fill",this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId="mat-mdc-form-field-label-"+pI++,this._hintLabelId="mat-mdc-hint-"+pI++,this._subscriptAnimationState="",this._labelWidth=0,this._destroyed=new ke,this._isFocused=null,this._needsOutlineLabelOffsetUpdateOnStable=!1,c&&(c.appearance&&(this.appearance=c.appearance),this._hideRequiredMarker=Boolean(c?.hideRequiredMarker),c.color&&(this.color=c.color))}ngAfterViewInit(){this._updateFocusState(),this._refreshOutlineNotchWidth(),this._document?.fonts?.ready?this._document.fonts.ready.then(()=>{this._refreshOutlineNotchWidth(),this._changeDetectorRef.markForCheck()}):setTimeout(()=>this._refreshOutlineNotchWidth(),100),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(){const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-mdc-form-field-type-${e.controlType}`),e.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(xn(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck())}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(e=>!e._isText),this._hasTextPrefix=!!this._prefixChildren.find(e=>e._isText),this._hasIconSuffix=!!this._suffixChildren.find(e=>!e._isText),this._hasTextSuffix=!!this._suffixChildren.find(e=>e._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),si(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||null===this._isFocused)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(xn(this._destroyed)).subscribe(()=>{this._needsOutlineLabelOffsetUpdateOnStable&&(this._needsOutlineLabelOffsetUpdateOnStable=!1,this._updateOutlineLabelOffset())})}),this._dir.change.pipe(xn(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0)}_shouldAlwaysFloat(){return"always"===this.floatLabel}_hasOutline(){return"outline"===this.appearance}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel(){return!!this._labelChildNonStatic||!!this._labelChildStatic}_shouldLabelFloat(){return this._control.shouldLabelFloat||this._shouldAlwaysFloat()}_shouldForward(e){const i=this._control?this._control.ngControl:null;return i&&i[e]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||(this._labelWidth=this._floatingLabel.getWidth())}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const i=this._hintChildren?this._hintChildren.find(o=>"start"===o.align):null,r=this._hintChildren?this._hintChildren.find(o=>"end"===o.align):null;i?e.push(i.id):this._hintLabel&&e.push(this._hintLabelId),r&&e.push(r.id)}else this._errorChildren&&e.push(...this._errorChildren.map(i=>i.id));this._control.setDescribedByIds(e)}}_updateOutlineLabelOffset(){if(!this._platform.isBrowser||!this._hasOutline()||!this._floatingLabel)return;const e=this._floatingLabel.element;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return void(e.style.transform="");if(!this._isAttachedToDom())return void(this._needsOutlineLabelOffsetUpdateOnStable=!0);const i=this._iconPrefixContainer?.nativeElement,r=this._textPrefixContainer?.nativeElement,o=i?.getBoundingClientRect().width??0,a=r?.getBoundingClientRect().width??0;e.style.transform=`var(\n --mat-mdc-form-field-label-transform,\n translateY(-50%) translateX(calc(${"rtl"===this._dir.value?"-1":"1"} * (${o+a}px + var(--mat-mdc-form-field-label-offset-x, 0px))))\n )`}_isAttachedToDom(){const e=this._elementRef.nativeElement;if(e.getRootNode){const i=e.getRootNode();return i&&i!==e}return document.documentElement.contains(e)}}return n.\u0275fac=function(e){return new(e||n)(D(k),D(li),D(qt),D(Vr),D(Oi),D(P6,8),D(Lr,8),D(hn))},n.\u0275cmp=S({type:n,selectors:[["mat-form-field"]],contentQueries:function(e,i,r){if(1&e&&(zn(r,qr,5),zn(r,qr,7),zn(r,lb,5),zn(r,A6,5),zn(r,F6,5),zn(r,lI,5),zn(r,dI,5)),2&e){let o;kt(o=Et())&&(i._labelChildNonStatic=o.first),kt(o=Et())&&(i._labelChildStatic=o.first),kt(o=Et())&&(i._formFieldControl=o.first),kt(o=Et())&&(i._prefixChildren=o),kt(o=Et())&&(i._suffixChildren=o),kt(o=Et())&&(i._errorChildren=o),kt(o=Et())&&(i._hintChildren=o)}},viewQuery:function(e,i){if(1&e&&(Hn(a6,5),Hn(c6,5),Hn(l6,5),Hn(uI,5),Hn(fI,5),Hn(mI,5)),2&e){let r;kt(r=Et())&&(i._textField=r.first),kt(r=Et())&&(i._iconPrefixContainer=r.first),kt(r=Et())&&(i._textPrefixContainer=r.first),kt(r=Et())&&(i._floatingLabel=r.first),kt(r=Et())&&(i._notchedOutline=r.first),kt(r=Et())&&(i._lineRipple=r.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(e,i){2&e&&un("mat-mdc-form-field-label-always-float",i._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",i._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",i._hasIconSuffix)("mat-form-field-invalid",i._control.errorState)("mat-form-field-disabled",i._control.disabled)("mat-form-field-autofilled",i._control.autofilled)("mat-form-field-no-animations","NoopAnimations"===i._animationMode)("mat-form-field-appearance-fill","fill"==i.appearance)("mat-form-field-appearance-outline","outline"==i.appearance)("mat-form-field-hide-placeholder",i._hasFloatingLabel()&&!i._shouldLabelFloat())("mat-focused",i._control.focused)("mat-primary","accent"!==i.color&&"warn"!==i.color)("mat-accent","accent"===i.color)("mat-warn","warn"===i.color)("ng-untouched",i._shouldForward("untouched"))("ng-touched",i._shouldForward("touched"))("ng-pristine",i._shouldForward("pristine"))("ng-dirty",i._shouldForward("dirty"))("ng-valid",i._shouldForward("valid"))("ng-invalid",i._shouldForward("invalid"))("ng-pending",i._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[jt([{provide:Vf,useExisting:n}])],ngContentSelectors:E6,decls:18,vars:23,consts:[["labelTemplate",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],["textField",""],["class","mat-mdc-form-field-focus-overlay",4,"ngIf"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen","matFormFieldNotchedOutlineLabelWidth",4,"ngIf"],["class","mat-mdc-form-field-icon-prefix",4,"ngIf"],["class","mat-mdc-form-field-text-prefix",4,"ngIf"],[1,"mat-mdc-form-field-infix"],[3,"ngIf"],["class","mat-mdc-form-field-text-suffix",4,"ngIf"],["class","mat-mdc-form-field-icon-suffix",4,"ngIf"],["matFormFieldLineRipple","",4,"ngIf"],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align",3,"ngSwitch"],["class","mat-mdc-form-field-error-wrapper",4,"ngSwitchCase"],["class","mat-mdc-form-field-hint-wrapper",4,"ngSwitchCase"],["matFormFieldFloatingLabel","",3,"floating","cdkObserveContentDisabled","id","cdkObserveContent",4,"ngIf"],["matFormFieldFloatingLabel","",3,"floating","cdkObserveContentDisabled","id","cdkObserveContent"],["aria-hidden","true","class","mat-mdc-form-field-required-marker mdc-floating-label--required",4,"ngIf"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[1,"mat-mdc-form-field-focus-overlay"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen","matFormFieldNotchedOutlineLabelWidth"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-icon-prefix"],["iconPrefixContainer",""],[1,"mat-mdc-form-field-text-prefix"],["textPrefixContainer",""],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],[3,"id",4,"ngIf"],[1,"mat-mdc-form-field-hint-spacer"],[3,"id"]],template:function(e,i){1&e&&(wi(k6),X(0,h6,1,1,"ng-template",null,0,zg),v(2,"div",1,2),ue("click",function(o){return i._control.onContainerClick&&i._control.onContainerClick(o)}),X(4,m6,1,0,"div",3),v(5,"div",4),X(6,g6,2,3,"div",5),X(7,_6,3,0,"div",6),X(8,b6,3,0,"div",7),v(9,"div",8),X(10,v6,1,1,"ng-template",9),en(11),y(),X(12,C6,2,0,"div",10),X(13,x6,2,0,"div",11),y(),X(14,w6,1,0,"div",12),y(),v(15,"div",13),X(16,D6,2,1,"div",14),X(17,T6,5,2,"div",15),y()),2&e&&(I(2),un("mdc-text-field--filled",!i._hasOutline())("mdc-text-field--outlined",i._hasOutline())("mdc-text-field--no-label",!i._hasFloatingLabel())("mdc-text-field--disabled",i._control.disabled)("mdc-text-field--invalid",i._control.errorState),I(2),B("ngIf",!i._hasOutline()&&!i._control.disabled),I(2),B("ngIf",i._hasOutline()),I(1),B("ngIf",i._hasIconPrefix),I(1),B("ngIf",i._hasTextPrefix),I(2),B("ngIf",!i._hasOutline()||i._forceDisplayInfixLabel()),I(2),B("ngIf",i._hasTextSuffix),I(1),B("ngIf",i._hasIconSuffix),I(1),B("ngIf",!i._hasOutline()),I(1),un("mat-mdc-form-field-subscript-dynamic-size","dynamic"===i.subscriptSizing),B("ngSwitch",i._getDisplayedMessages()),I(1),B("ngSwitchCase","error"),I(1),B("ngSwitchCase","hint"))},dependencies:[Di,hT,hh,o_,iS,dI,uI,fI,mI],styles:['.mdc-text-field{border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0;display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-text-field__input{height:28px;width:100%;min-width:0;border:none;border-radius:0;background:none;appearance:none;padding:0}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}@media all{.mdc-text-field__input::placeholder{opacity:0}}@media all{.mdc-text-field__input:-ms-input-placeholder{opacity:0}}@media all{.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}}@media all{.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}}.mdc-text-field__affix{height:28px;opacity:0;white-space:nowrap}.mdc-text-field--label-floating .mdc-text-field__affix,.mdc-text-field--no-label .mdc-text-field__affix{opacity:1}@supports(-webkit-hyphens: none){.mdc-text-field--outlined .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field__affix--prefix,.mdc-text-field__affix--prefix[dir=rtl]{padding-left:2px;padding-right:0}.mdc-text-field--end-aligned .mdc-text-field__affix--prefix{padding-left:0;padding-right:12px}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--end-aligned .mdc-text-field__affix--prefix[dir=rtl]{padding-left:12px;padding-right:0}.mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field__affix--suffix,.mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:12px}.mdc-text-field--end-aligned .mdc-text-field__affix--suffix{padding-left:2px;padding-right:0}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--end-aligned .mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:2px}.mdc-text-field--filled{height:56px}.mdc-text-field--filled::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-text-field--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-text-field--filled .mdc-floating-label,.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled.mdc-text-field--no-label::before{display:none}@supports(-webkit-hyphens: none){.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field--outlined{height:56px;overflow:visible}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--outlined .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-shape-small, 4px))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-shape-small, 4px)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px, var(--mdc-shape-small, 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:initial}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mdc-text-field--textarea{flex-direction:column;align-items:center;width:auto;height:auto;padding:0}.mdc-text-field--textarea .mdc-floating-label{top:19px}.mdc-text-field--textarea .mdc-floating-label:not(.mdc-floating-label--float-above){transform:none}.mdc-text-field--textarea .mdc-text-field__input{flex-grow:1;height:auto;min-height:1.5rem;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;resize:none;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--filled::before{display:none}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-10.25px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--filled .mdc-text-field__input{margin-top:23px;margin-bottom:9px}.mdc-text-field--textarea.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label{top:18px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field__input{margin-bottom:2px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter{align-self:flex-end;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::after{display:inline-block;width:0;height:16px;content:"";vertical-align:-16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::before{display:none}.mdc-text-field__resizer{align-self:stretch;display:inline-flex;flex-direction:column;flex-grow:1;max-height:100%;max-width:100%;min-height:56px;min-width:fit-content;min-width:-moz-available;min-width:-webkit-fill-available;overflow:hidden;resize:both}.mdc-text-field--filled .mdc-text-field__resizer{transform:translateY(-1px)}.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateY(1px)}.mdc-text-field--outlined .mdc-text-field__resizer{transform:translateX(-1px) translateY(-1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer,.mdc-text-field--outlined .mdc-text-field__resizer[dir=rtl]{transform:translateX(1px) translateY(-1px)}.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateX(1px) translateY(1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input[dir=rtl],.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter[dir=rtl]{transform:translateX(-1px) translateY(1px)}.mdc-text-field--with-leading-icon{padding-left:0;padding-right:16px}[dir=rtl] .mdc-text-field--with-leading-icon,.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:16px;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 48px);left:48px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:48px}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:36px}.mdc-text-field--with-leading-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--with-trailing-icon{padding-left:16px;padding-right:0}[dir=rtl] .mdc-text-field--with-trailing-icon,.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0;padding-right:16px}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-trailing-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 96px / 0.75)}.mdc-text-field-helper-line{display:flex;justify-content:space-between;box-sizing:border-box}.mdc-text-field+.mdc-text-field-helper-line{padding-right:16px;padding-left:16px}.mdc-form-field>.mdc-text-field+label{align-self:flex-start}.mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--focused .mdc-notched-outline__trailing{border-width:2px}.mdc-text-field--focused+.mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg){opacity:1}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-text-field--focused.mdc-text-field--outlined.mdc-text-field--textarea .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{opacity:1}.mdc-text-field--disabled{pointer-events:none}@media screen and (forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.mdc-text-field--disabled.mdc-text-field--filled .mdc-text-field__ripple{display:none}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--end-aligned .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--end-aligned .mdc-text-field__input[dir=rtl]{text-align:left}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix{direction:ltr}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--leading,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--leading{order:1}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{order:2}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input{order:3}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{order:4}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--trailing,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--trailing{order:5}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--prefix{padding-right:12px}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--suffix{padding-left:2px}.mdc-floating-label{position:absolute;left:0;-webkit-transform-origin:left top;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after,.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)[dir=rtl]::after{margin-left:0;margin-right:1px}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;border-top:1px solid;border-bottom:1px solid;pointer-events:none}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid;flex-grow:1}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{flex:0 0 auto;width:auto;max-width:calc(100% - 12px * 2)}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::after{border-bottom-width:2px}.mdc-line-ripple::before{z-index:1}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{line-height:normal;pointer-events:all}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-text-field-wrapper::before{content:none}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}.cdk-high-contrast-active .mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:12px;box-sizing:content-box}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__affix{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled.mdc-ripple-upgraded--background-focused .mdc-text-field__ripple::before,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined{0%{transform:translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea{transition:none}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-filled 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-filled{0%{transform:translateX(calc(0 - 0%)) translateY(-10.25px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-10.25px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-10.25px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-10.25px) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-outlined{0%{transform:translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-24.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-24.75px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon{0%{transform:translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75)}}[dir=rtl] .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl{0%{transform:translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0 - 0%)) translateY(-106%) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-106%) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-106%) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-106%) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}'],encapsulation:2,data:{animation:[R6.transitionMessages]},changeDetection:0}),n})(),db=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=Jt({imports:[Gn,ya,YC,Gn]}),n})();function bI(n,t){return t?e=>W_(t.pipe(Hr(1),function B6(){return qe((n,t)=>{n.subscribe(Ft(t,It))})}()),e.pipe(bI(n))):Oo((e,i)=>vi(n(e,i)).pipe(Hr(1),function V6(n){return Ln(()=>n)}(e)))}function bx(n,t=Df){const e=U_(n,t);return bI(()=>e)}const H6=["panel"];function z6(n,t){if(1&n&&(v(0,"div",0,1),en(2),y()),2&n){const e=t.id,i=ne();B("id",i.id)("ngClass",i._classList)("@panelAnimation",i.isOpen?"visible":"hidden"),$t("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(e))}}const $6=["*"],j6=nl("panelAnimation",[va("void, hidden",Ei({opacity:0,transform:"scaleY(0.8)"})),wo(":enter, hidden => visible",[iB([xo("0.03s linear",Ei({opacity:1})),xo("0.12s cubic-bezier(0, 0, 0.2, 1)",Ei({transform:"scaleY(1)"}))])]),wo(":leave, visible => hidden",[xo("0.075s linear",Ei({opacity:0}))])]);let U6=0;class W6{constructor(t,e){this.source=t,this.option=e}}const G6=nd(class{}),yI=new De("mat-autocomplete-default-options",{providedIn:"root",factory:function Y6(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1}}});let Z6=(()=>{class n extends G6{get isOpen(){return this._isOpen&&this.showPanel}_setColor(e){this._color=e,this._setThemeClasses(this._classList)}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(e){this._autoActiveFirstOption=At(e)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(e){this._autoSelectActiveOption=At(e)}set classList(e){this._classList=e&&e.length?function B5(n,t=/\s+/){const e=[];if(null!=n){const i=Array.isArray(n)?n:`${n}`.split(t);for(const r of i){const o=`${r}`.trim();o&&e.push(o)}}return e}(e).reduce((i,r)=>(i[r]=!0,i),{}):{},this._setVisibilityClasses(this._classList),this._setThemeClasses(this._classList),this._elementRef.nativeElement.className=""}constructor(e,i,r,o){super(),this._changeDetectorRef=e,this._elementRef=i,this._defaults=r,this._activeOptionChanges=re.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this._autoActiveFirstOption=!!this._defaults.autoActiveFirstOption,this._autoSelectActiveOption=!!this._defaults.autoSelectActiveOption,this.optionSelected=new Xe,this.opened=new Xe,this.closed=new Xe,this.optionActivated=new Xe,this._classList={},this.id="mat-autocomplete-"+U6++,this.inertGroups=o?.SAFARI||!1}ngAfterContentInit(){this._keyManager=new uS(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(e=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[e]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe()}_setScrollTop(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(e){const i=new W6(this,e);this.optionSelected.emit(i)}_getPanelAriaLabelledby(e){return this.ariaLabel?null:this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_setVisibilityClasses(e){e[this._visibleClass]=this.showPanel,e[this._hiddenClass]=!this.showPanel}_setThemeClasses(e){e["mat-primary"]="primary"===this._color,e["mat-warn"]="warn"===this._color,e["mat-accent"]="accent"===this._color}}return n.\u0275fac=function(e){return new(e||n)(D(li),D(k),D(yI),D(Oi))},n.\u0275dir=C({type:n,viewQuery:function(e,i){if(1&e&&(Hn(fr,7),Hn(H6,5)),2&e){let r;kt(r=Et())&&(i.template=r.first),kt(r=Et())&&(i.panel=r.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[ht]}),n})(),q6=(()=>{class n extends Z6{constructor(){super(...arguments),this._visibleClass="mat-mdc-autocomplete-visible",this._hiddenClass="mat-mdc-autocomplete-hidden",this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=At(e),this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const e of this.options)e._changeDetectorRef.markForCheck()}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=ai(n)))(i||n)}}(),n.\u0275cmp=S({type:n,selectors:[["mat-autocomplete"]],contentQueries:function(e,i,r){if(1&e&&(zn(r,hx,5),zn(r,Bd,5)),2&e){let o;kt(o=Et())&&(i.optionGroups=o),kt(o=Et())&&(i.options=o)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{disableRipple:"disableRipple",hideSingleSelectionIndicator:"hideSingleSelectionIndicator"},exportAs:["matAutocomplete"],features:[jt([{provide:ux,useExisting:n}]),ht],ngContentSelectors:$6,decls:1,vars:0,consts:[["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id","ngClass"],["panel",""]],template:function(e,i){1&e&&(wi(),X(0,z6,3,5,"ng-template"))},dependencies:[uh],styles:[".mdc-menu-surface{display:none;position:absolute;box-sizing:border-box;max-width:calc(100vw - 32px);max-width:var(--mdc-menu-max-width, calc(100vw - 32px));max-height:calc(100vh - 32px);max-height:var(--mdc-menu-max-height, calc(100vh - 32px));margin:0;padding:0;transform:scale(1);transform-origin:top left;opacity:0;overflow:auto;will-change:transform,opacity;z-index:8;border-radius:4px;border-radius:var(--mdc-shape-medium, 4px);transform-origin-left:top left;transform-origin-right:top right}.mdc-menu-surface:focus{outline:none}.mdc-menu-surface--animating-open{display:inline-block;transform:scale(0.8);opacity:0}.mdc-menu-surface--open{display:inline-block;transform:scale(1);opacity:1}.mdc-menu-surface--animating-closed{display:inline-block;opacity:0}[dir=rtl] .mdc-menu-surface,.mdc-menu-surface[dir=rtl]{transform-origin-left:top right;transform-origin-right:top left}.mdc-menu-surface--anchor{position:relative;overflow:visible}.mdc-menu-surface--fixed{position:fixed}.mdc-menu-surface--fullwidth{width:100%}.mdc-menu-surface.mat-mdc-autocomplete-panel{width:100%;max-height:256px;position:static;visibility:hidden;transform-origin:center top;margin:0;padding:8px 0;list-style-type:none}.mdc-menu-surface.mat-mdc-autocomplete-panel:focus{outline:none}.cdk-high-contrast-active .mdc-menu-surface.mat-mdc-autocomplete-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) .mdc-menu-surface.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above .mdc-menu-surface.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}.mdc-menu-surface.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}.mdc-menu-surface.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden}mat-autocomplete{display:none}"],encapsulation:2,data:{animation:[j6]},changeDetection:0}),n})();const K6={provide:br,useExisting:on(()=>CI),multi:!0},vI=new De("mat-autocomplete-scroll-strategy"),Q6={provide:vI,deps:[Da],useFactory:function X6(n){return()=>n.scrollStrategies.reposition()}};let J6=(()=>{class n{get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(e){this._autocompleteDisabled=At(e)}constructor(e,i,r,o,a,c,d,h,p,_,M){this._element=e,this._overlay=i,this._viewContainerRef=r,this._zone=o,this._changeDetectorRef=a,this._dir=d,this._formField=h,this._document=p,this._viewportRuler=_,this._defaults=M,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=re.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new ke,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=cI(()=>{const A=this.autocomplete?this.autocomplete.options:null;return A?A.changes.pipe(Br(A),Sc(()=>si(...A.map(L=>L.onSelectionChange)))):this._zone.onStable.pipe(Hr(1),Sc(()=>this.optionSelections))}),this._scrollStrategy=c}ngAfterViewInit(){const e=this._getWindow();typeof e<"u"&&this._zone.runOutsideAngular(()=>e.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const e=this._getWindow();typeof e<"u"&&e.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return si(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(xs(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(xs(()=>this._overlayAttached)):Cs()).pipe(Ln(e=>e instanceof ZS?e:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return si(Ec(this._document,"click"),Ec(this._document,"auxclick"),Ec(this._document,"touchend")).pipe(xs(e=>{const i=Us(e),r=this._formField?this._formField._elementRef.nativeElement:null,o=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&i!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!r||!r.contains(i))&&(!o||!o.contains(i))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(i)}))}writeValue(e){Promise.resolve(null).then(()=>this._assignOptionValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){const i=e.keyCode,r=Ws(e);if(27===i&&!r&&e.preventDefault(),this.activeOption&&13===i&&this.panelOpen&&!r)this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){const o=this.autocomplete._keyManager.activeItem,a=38===i||40===i;9===i||a&&!r&&this.panelOpen?this.autocomplete._keyManager.onKeydown(e):a&&this._canOpen()&&this.openPanel(),(a||this.autocomplete._keyManager.activeItem!==o)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(e){let i=e.target,r=i.value;"number"===i.type&&(r=""==r?null:parseFloat(r)),this._previousValue!==r&&(this._previousValue=r,this._pendingAutoselectedOption=null,this._onChange(r),this._canOpen()&&this._document.activeElement===e.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(e=!1){this._formField&&"auto"===this._formField.floatLabel&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){return si(this._zone.onStable.pipe(Hr(1)),this.autocomplete.options.changes.pipe(vh(()=>this._positionStrategy.reapplyLastPosition()),bx(0))).pipe(Sc(()=>(this._zone.run(()=>{const r=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),r!==this.panelOpen&&(this.panelOpen?this.autocomplete.opened.emit():this.autocomplete.closed.emit())}),this.panelClosingActions)),Hr(1)).subscribe(r=>this._setValueAndClose(r))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(e){const i=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(e):e;this._updateNativeInputValue(i??"")}_updateNativeInputValue(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e}_setValueAndClose(e){const i=e?e.source:this._pendingAutoselectedOption;i&&(this._clearPreviousSelectedOption(i),this._assignOptionValue(i.value),this._onChange(i.value),this.autocomplete._emitSelectEvent(i),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(e){this.autocomplete.options.forEach(i=>{i!==e&&i.selected&&i.deselect()})}_attachOverlay(){let e=this._overlayRef;e?(this._positionStrategy.setOrigin(this._getConnectedElement()),e.updateSize({width:this._getPanelWidth()})):(this._portal=new Vd(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),e=this._overlay.create(this._getOverlayConfig()),this._overlayRef=e,this._handleOverlayEvents(e),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&e&&e.updateSize({width:this._getPanelWidth()})})),e&&!e.hasAttached()&&(e.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const i=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._setColor(this._formField?.color),this.panelOpen&&i!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){return new Nf({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){const e=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}_setStrategyPositions(e){const i=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],r=this._aboveClass,o=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:r},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:r}];let a;a="above"===this.position?o:"below"===this.position?i:[...i,...o],e.withPositions(a)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const e=this.autocomplete;e.autoActiveFirstOption?e._keyManager.setFirstItemActive():e._keyManager.setActiveItem(-1)}_canOpen(){const e=this._element.nativeElement;return!e.readOnly&&!e.disabled&&!this._autocompleteDisabled}_getWindow(){return this._document?.defaultView||window}_scrollToOption(e){const i=this.autocomplete,r=qS(e,i.options,i.optionGroups);if(0===e&&1===r)i._setScrollTop(0);else if(i.panel){const o=i.options.toArray()[e];if(o){const a=o._getHostElement(),c=KS(a.offsetTop,a.offsetHeight,i._getScrollTop(),i.panel.nativeElement.offsetHeight);i._setScrollTop(c)}}}_handleOverlayEvents(e){e.keydownEvents().subscribe(i=>{(27===i.keyCode&&!Ws(i)||38===i.keyCode&&Ws(i,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),i.stopPropagation(),i.preventDefault())}),e.outsidePointerEvents().subscribe()}}return n.\u0275fac=function(e){return new(e||n)(D(k),D(Da),D(pr),D(qt),D(li),D(vI),D(Vr,8),D(Vf,9),D(hn,8),D(ol),D(yI,8))},n.\u0275dir=C({type:n,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[ji]}),n})(),CI=(()=>{class n extends J6{constructor(){super(...arguments),this._aboveClass="mat-mdc-autocomplete-panel-above"}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=ai(n)))(i||n)}}(),n.\u0275dir=C({type:n,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(e,i){1&e&&ue("focusin",function(){return i._handleFocus()})("blur",function(){return i._onTouched()})("input",function(o){return i._handleInput(o)})("keydown",function(o){return i._handleKeydown(o)})("click",function(){return i._handleClick()}),2&e&&$t("autocomplete",i.autocompleteAttribute)("role",i.autocompleteDisabled?null:"combobox")("aria-autocomplete",i.autocompleteDisabled?null:"list")("aria-activedescendant",i.panelOpen&&i.activeOption?i.activeOption.id:null)("aria-expanded",i.autocompleteDisabled?null:i.panelOpen.toString())("aria-owns",i.autocompleteDisabled||!i.panelOpen||null==i.autocomplete?null:i.autocomplete.id)("aria-haspopup",i.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[jt([K6]),ht]}),n})(),eH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=Jt({providers:[Q6],imports:[Bf,sb,Gn,ya,Rd,sb,Gn]}),n})();const tH=["mat-button",""],xI=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],wI=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],iH=["mat-fab",""],rH=["mat-icon-button",""],oH=["*"],sH=[{selector:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{selector:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{selector:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{selector:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{selector:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{selector:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini","mat-mdc-mini-fab"]},{selector:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],aH=Dh(Ld(nd(class{constructor(n){this._elementRef=n}})));let yx=(()=>{class n extends aH{constructor(e,i,r,o){super(e),this._platform=i,this._ngZone=r,this._animationMode=o,this._focusMonitor=_i(td),this._isFab=!1;const a=e.nativeElement.classList;for(const c of sH)this._hasHostAttributes(c.selector)&&c.mdcClasses.forEach(d=>{a.add(d)})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e="program",i){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,i):this._elementRef.nativeElement.focus(i)}_hasHostAttributes(...e){return e.some(i=>this._elementRef.nativeElement.hasAttribute(i))}_isRippleDisabled(){return this.disableRipple||this.disabled}}return n.\u0275fac=function(e){Om()},n.\u0275dir=C({type:n,viewQuery:function(e,i){if(1&e&&Hn(ts,5),2&e){let r;kt(r=Et())&&(i.ripple=r.first)}},features:[ht]}),n})(),Yi=(()=>{class n extends yx{constructor(e,i,r,o){super(e,i,r,o)}}return n.\u0275fac=function(e){return new(e||n)(D(k),D(Oi),D(qt),D(Lr,8))},n.\u0275cmp=S({type:n,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:7,hostBindings:function(e,i){2&e&&($t("disabled",i.disabled||null),un("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-unthemed",!i.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[ht],attrs:tH,ngContentSelectors:wI,decls:8,vars:6,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],["matRipple","",1,"mat-mdc-button-ripple",3,"matRippleDisabled","matRippleTrigger"],[1,"mat-mdc-button-touch-target"]],template:function(e,i){1&e&&(wi(xI),Pe(0,"span",0),en(1),v(2,"span",1),en(3,1),y(),en(4,2),Pe(5,"span",2)(6,"span",3)(7,"span",4)),2&e&&(un("mdc-button__ripple",!i._isFab)("mdc-fab__ripple",i._isFab),I(6),B("matRippleDisabled",i._isRippleDisabled())("matRippleTrigger",i._elementRef.nativeElement))},dependencies:[ts],styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n 100% + 4px\n );width:calc(\n 100% + 4px\n );display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{height:var(--mdc-text-button-container-height, 36px);border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, inherit)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button{height:var(--mdc-filled-button-container-height, 36px);border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color, transparent)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, inherit)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button{height:var(--mdc-protected-button-container-height, 36px);border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px));box-shadow:var(--mdc-protected-button-container-elevation, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color, transparent)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, inherit)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button.mdc-ripple-upgraded--background-focused,.mat-mdc-raised-button:not(.mdc-ripple-upgraded):focus{box-shadow:var(--mdc-protected-button-focus-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled):active{box-shadow:var(--mdc-protected-button-pressed-container-elevation, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button{height:var(--mdc-outlined-button-container-height, 36px);border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px));padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, inherit)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width, 1px));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width, 1px))}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-button .mat-ripple-element,.mat-mdc-unelevated-button .mat-ripple-element,.mat-mdc-raised-button .mat-ripple-element,.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button[disabled],.mat-mdc-unelevated-button[disabled],.mat-mdc-raised-button[disabled],.mat-mdc-outlined-button[disabled]{cursor:default;pointer-events:none}.mat-mdc-button .mat-mdc-button-touch-target,.mat-mdc-unelevated-button .mat-mdc-button-touch-target,.mat-mdc-raised-button .mat-mdc-button-touch-target,.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}[dir=rtl] .mat-mdc-button>.mat-icon,.mat-mdc-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}.mat-mdc-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon,.mat-mdc-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem;margin-left:-4px;margin-right:8px}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:-4px}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon,.mat-mdc-raised-button .mdc-button__label+.mat-icon,.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:-4px}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon,.mat-mdc-unelevated-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-raised-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-outlined-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:-4px;margin-right:8px}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px) * -1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0}),n})();const lH=new De("mat-mdc-fab-default-options",{providedIn:"root",factory:DI});function DI(){return{color:"accent"}}const MI=DI();let Hf=(()=>{class n extends yx{get extended(){return this._extended}set extended(e){this._extended=At(e)}constructor(e,i,r,o,a){super(e,i,r,o),this._options=a,this._isFab=!0,this._options=this._options||MI,this.color=this.defaultColor=this._options.color||MI.color}}return n.\u0275fac=function(e){return new(e||n)(D(k),D(Oi),D(qt),D(Lr,8),D(lH,8))},n.\u0275cmp=S({type:n,selectors:[["button","mat-fab",""]],hostVars:11,hostBindings:function(e,i){2&e&&($t("disabled",i.disabled||null),un("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-unthemed",!i.color)("mat-mdc-button-base",!0)("mdc-fab--extended",i.extended)("mat-mdc-extended-fab",i.extended))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",extended:"extended"},exportAs:["matButton"],features:[ht],attrs:iH,ngContentSelectors:wI,decls:8,vars:6,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],["matRipple","",1,"mat-mdc-button-ripple",3,"matRippleDisabled","matRippleTrigger"],[1,"mat-mdc-button-touch-target"]],template:function(e,i){1&e&&(wi(xI),Pe(0,"span",0),en(1),v(2,"span",1),en(3,1),y(),en(4,2),Pe(5,"span",2)(6,"span",3)(7,"span",4)),2&e&&(un("mdc-button__ripple",!i._isFab)("mdc-fab__ripple",i._isFab),I(6),B("matRippleDisabled",i._isRippleDisabled())("matRippleTrigger",i._elementRef.nativeElement))},dependencies:[ts],styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-fab{position:relative;display:inline-flex;position:relative;align-items:center;justify-content:center;box-sizing:border-box;width:56px;height:56px;padding:0;border:none;fill:currentColor;text-decoration:none;cursor:pointer;user-select:none;-moz-appearance:none;-webkit-appearance:none;overflow:visible;transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1),opacity 15ms linear 30ms,transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-fab .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-fab[hidden]{display:none}.mdc-fab::-moz-focus-inner{padding:0;border:0}.mdc-fab .mdc-fab__focus-ring{position:absolute}.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n 100% + 4px\n );width:calc(\n 100% + 4px\n )}@media screen and (forced-colors: active){.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring{border-color:CanvasText}}.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring::after,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring::after,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring::after{border-color:CanvasText}}.mdc-fab:active,.mdc-fab:focus{outline:none}.mdc-fab:hover{cursor:pointer}.mdc-fab>svg{width:100%}.mdc-fab--mini{width:40px;height:40px}.mdc-fab--extended{border-radius:24px;padding-left:20px;padding-right:20px;width:auto;max-width:100%;height:48px;line-height:normal}.mdc-fab--extended .mdc-fab__ripple{border-radius:24px}.mdc-fab--extended .mdc-fab__icon{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mdc-fab--extended .mdc-fab__icon,.mdc-fab--extended .mdc-fab__icon[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mdc-fab--extended .mdc-fab__label+.mdc-fab__icon{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mdc-fab--extended .mdc-fab__label+.mdc-fab__icon,.mdc-fab--extended .mdc-fab__label+.mdc-fab__icon[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}.mdc-fab--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-fab--touch .mdc-fab__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-fab::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-fab::before{border-color:CanvasText}}.mdc-fab__label{justify-content:flex-start;text-overflow:ellipsis;white-space:nowrap;overflow-x:hidden;overflow-y:visible}.mdc-fab__icon{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mdc-fab .mdc-fab__icon{display:inline-flex;align-items:center;justify-content:center}.mdc-fab--exited{transform:scale(0);opacity:0;transition:opacity 15ms linear 150ms,transform 180ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-fab--exited .mdc-fab__icon{transform:scale(0);transition:transform 135ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-fab .mdc-fab__icon{width:24px;height:24px;font-size:24px}.mdc-fab:not(.mdc-fab--extended){border-radius:50%}.mdc-fab:not(.mdc-fab--extended) .mdc-fab__ripple{border-radius:50%}.mat-mdc-fab,.mat-mdc-mini-fab{-webkit-tap-highlight-color:rgba(0,0,0,0);background-color:var(--mdc-fab-container-color, transparent);box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);color:var(--mat-mdc-fab-color, inherit);flex-shrink:0}.mat-mdc-fab .mat-mdc-button-ripple,.mat-mdc-fab .mat-mdc-button-persistent-ripple,.mat-mdc-fab .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab .mat-mdc-button-ripple,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-fab .mat-ripple-element,.mat-mdc-mini-fab .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-fab .mdc-button__label,.mat-mdc-mini-fab .mdc-button__label{z-index:1}.mat-mdc-fab .mat-mdc-focus-indicator,.mat-mdc-mini-fab .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-fab:focus .mat-mdc-focus-indicator::before,.mat-mdc-mini-fab:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-fab .mat-mdc-button-touch-target,.mat-mdc-mini-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-fab._mat-animation-noopable,.mat-mdc-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-fab:not(:disabled) .mdc-fab__icon,.mat-mdc-mini-fab:not(:disabled) .mdc-fab__icon{color:var(--mdc-fab-icon-color, inherit)}.mat-mdc-fab:not(.mdc-fab--extended),.mat-mdc-mini-fab:not(.mdc-fab--extended){border-radius:var(--mdc-fab-container-shape, 50%)}.mat-mdc-fab:not(.mdc-fab--extended) .mdc-fab__ripple,.mat-mdc-mini-fab:not(.mdc-fab--extended) .mdc-fab__ripple{border-radius:var(--mdc-fab-container-shape, 50%)}.mat-mdc-fab:hover,.mat-mdc-fab:focus,.mat-mdc-mini-fab:hover,.mat-mdc-mini-fab:focus{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12)}.mat-mdc-fab:active,.mat-mdc-fab:focus:active,.mat-mdc-mini-fab:active,.mat-mdc-mini-fab:focus:active{box-shadow:0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 12px 17px 2px rgba(0, 0, 0, 0.14), 0px 5px 22px 4px rgba(0, 0, 0, 0.12)}.mat-mdc-fab[disabled],.mat-mdc-mini-fab[disabled]{cursor:default;pointer-events:none;box-shadow:0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12)}.mat-mdc-fab:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-mini-fab:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}.mat-mdc-fab .mat-icon,.mat-mdc-fab .material-icons,.mat-mdc-mini-fab .mat-icon,.mat-mdc-mini-fab .material-icons{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mat-mdc-fab .mat-mdc-focus-indicator::before,.mat-mdc-mini-fab .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-extended-fab{border-radius:24px;padding-left:20px;padding-right:20px;width:auto;max-width:100%;height:48px;line-height:normal}.mat-mdc-extended-fab .mdc-fab__ripple{border-radius:24px}.mat-mdc-extended-fab .mdc-fab__icon{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mat-mdc-extended-fab .mdc-fab__icon,.mat-mdc-extended-fab .mdc-fab__icon[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mat-mdc-extended-fab .mdc-fab__label+.mdc-fab__icon{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mat-mdc-extended-fab .mdc-fab__label+.mdc-fab__icon,.mat-mdc-extended-fab .mdc-fab__label+.mdc-fab__icon[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}.mat-mdc-extended-fab>.mat-icon,.mat-mdc-extended-fab>.material-icons{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mat-mdc-extended-fab>.mat-icon,[dir=rtl] .mat-mdc-extended-fab>.material-icons,.mat-mdc-extended-fab>.mat-icon[dir=rtl],.mat-mdc-extended-fab>.material-icons[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mat-mdc-extended-fab .mdc-button__label+.mat-icon,.mat-mdc-extended-fab .mdc-button__label+.material-icons{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.material-icons,.mat-mdc-extended-fab .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-extended-fab .mdc-button__label+.material-icons[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}.mat-mdc-extended-fab .mat-mdc-button-touch-target{width:100%}'],encapsulation:2,changeDetection:0}),n})(),zf=(()=>{class n extends yx{constructor(e,i,r,o){super(e,i,r,o)}}return n.\u0275fac=function(e){return new(e||n)(D(k),D(Oi),D(qt),D(Lr,8))},n.\u0275cmp=S({type:n,selectors:[["button","mat-icon-button",""]],hostVars:7,hostBindings:function(e,i){2&e&&($t("disabled",i.disabled||null),un("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-unthemed",!i.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[ht],attrs:rH,ngContentSelectors:oH,decls:5,vars:3,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],["matRipple","",1,"mat-mdc-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-mdc-button-touch-target"]],template:function(e,i){1&e&&(wi(),Pe(0,"span",0),en(1),Pe(2,"span",1)(3,"span",2)(4,"span",3)),2&e&&(I(3),B("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",!0)("matRippleTrigger",i._elementRef.nativeElement))},dependencies:[ts],styles:['.mdc-icon-button{font-size:24px;width:48px;height:48px;padding:12px}.mdc-icon-button .mdc-icon-button__focus-ring{max-height:48px;max-width:48px}.mdc-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:40px;height:40px;margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__focus-ring{max-height:40px;max-width:40px}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-icon-button svg,.mdc-icon-button img{width:24px;height:24px}.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{height:var(--mdc-icon-button-state-layer-size, 48px);width:var(--mdc-icon-button-state-layer-size, 48px);color:var(--mdc-icon-button-icon-color, inherit);border-radius:50%;flex-shrink:0;text-align:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size, 24px)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size, 24px);height:var(--mdc-icon-button-icon-size, 24px)}.mat-mdc-icon-button:disabled{opacity:var(--mdc-icon-button-disabled-icon-opacity, 0.38)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color, #000)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled]{cursor:default;pointer-events:none;opacity:1}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0}),n})(),TI=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=Jt({imports:[Gn,Nd,Gn]}),n})();class kI{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(t=!1,e,i=!0,r){this._multiple=t,this._emitChanges=i,this.compareWith=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new ke,e&&e.length&&(t?e.forEach(o=>this._markSelected(o)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...t){this._verifyValueAssignment(t),t.forEach(i=>this._markSelected(i));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...t){this._verifyValueAssignment(t),t.forEach(i=>this._unmarkSelected(i));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...t){this._verifyValueAssignment(t);const e=this.selected,i=new Set(t);t.forEach(o=>this._markSelected(o)),e.filter(o=>!i.has(o)).forEach(o=>this._unmarkSelected(o));const r=this._hasQueuedChanges();return this._emitChangeEvent(),r}toggle(t){return this.isSelected(t)?this.deselect(t):this.select(t)}clear(t=!0){this._unmarkAll();const e=this._hasQueuedChanges();return t&&this._emitChangeEvent(),e}isSelected(t){return this._selection.has(this._getConcreteValue(t))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){t=this._getConcreteValue(t),this.isSelected(t)||(this._multiple||this._unmarkAll(),this.isSelected(t)||this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){t=this._getConcreteValue(t),this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(t){if(this.compareWith){for(let e of this._selection)if(this.compareWith(t,e))return e;return t}return t}}const dH=["button"],uH=["*"],EI=new De("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS"),SI=new De("MatButtonToggleGroup"),hH={provide:br,useExisting:on(()=>vx),multi:!0};let II=0;class AI{constructor(t,e){this.source=t,this.value=e}}let vx=(()=>{class n{get name(){return this._name}set name(e){this._name=e,this._markButtonsForCheck()}get vertical(){return this._vertical}set vertical(e){this._vertical=At(e)}get value(){const e=this._selectionModel?this._selectionModel.selected:[];return this.multiple?e.map(i=>i.value):e[0]?e[0].value:void 0}set value(e){this._setSelectionByValue(e),this.valueChange.emit(this.value)}get selected(){const e=this._selectionModel?this._selectionModel.selected:[];return this.multiple?e:e[0]||null}get multiple(){return this._multiple}set multiple(e){this._multiple=At(e),this._markButtonsForCheck()}get disabled(){return this._disabled}set disabled(e){this._disabled=At(e),this._markButtonsForCheck()}constructor(e,i){this._changeDetector=e,this._vertical=!1,this._multiple=!1,this._disabled=!1,this._controlValueAccessorChangeFn=()=>{},this._onTouched=()=>{},this._name="mat-button-toggle-group-"+II++,this.valueChange=new Xe,this.change=new Xe,this.appearance=i&&i.appearance?i.appearance:"standard"}ngOnInit(){this._selectionModel=new kI(this.multiple,void 0,!1)}ngAfterContentInit(){this._selectionModel.select(...this._buttonToggles.filter(e=>e.checked))}writeValue(e){this.value=e,this._changeDetector.markForCheck()}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_emitChangeEvent(e){const i=new AI(e,this.value);this._controlValueAccessorChangeFn(i.value),this.change.emit(i)}_syncButtonToggle(e,i,r=!1,o=!1){!this.multiple&&this.selected&&!e.checked&&(this.selected.checked=!1),this._selectionModel?i?this._selectionModel.select(e):this._selectionModel.deselect(e):o=!0,o?Promise.resolve().then(()=>this._updateModelValue(e,r)):this._updateModelValue(e,r)}_isSelected(e){return this._selectionModel&&this._selectionModel.isSelected(e)}_isPrechecked(e){return!(typeof this._rawValue>"u")&&(this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(i=>null!=e.value&&i===e.value):e.value===this._rawValue)}_setSelectionByValue(e){this._rawValue=e,this._buttonToggles&&(this.multiple&&e?(Array.isArray(e),this._clearSelection(),e.forEach(i=>this._selectValue(i))):(this._clearSelection(),this._selectValue(e)))}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(e=>e.checked=!1)}_selectValue(e){const i=this._buttonToggles.find(r=>null!=r.value&&r.value===e);i&&(i.checked=!0,this._selectionModel.select(i))}_updateModelValue(e,i){i&&this._emitChangeEvent(e),this.valueChange.emit(this.value)}_markButtonsForCheck(){this._buttonToggles?.forEach(e=>e._markForCheck())}}return n.\u0275fac=function(e){return new(e||n)(D(li),D(EI,8))},n.\u0275dir=C({type:n,selectors:[["mat-button-toggle-group"]],contentQueries:function(e,i,r){if(1&e&&zn(r,Cx,5),2&e){let o;kt(o=Et())&&(i._buttonToggles=o)}},hostAttrs:["role","group",1,"mat-button-toggle-group"],hostVars:5,hostBindings:function(e,i){2&e&&($t("aria-disabled",i.disabled),un("mat-button-toggle-vertical",i.vertical)("mat-button-toggle-group-appearance-standard","standard"===i.appearance))},inputs:{appearance:"appearance",name:"name",vertical:"vertical",value:"value",multiple:"multiple",disabled:"disabled"},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[jt([hH,{provide:SI,useExisting:n}])]}),n})();const mH=nd(class{});let Cx=(()=>{class n extends mH{get buttonId(){return`${this.id}-button`}get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(e){this._appearance=e}get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(e){const i=At(e);i!==this._checked&&(this._checked=i,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(e){this._disabled=At(e)}constructor(e,i,r,o,a,c){super(),this._changeDetectorRef=i,this._elementRef=r,this._focusMonitor=o,this._checked=!1,this.ariaLabelledby=null,this._disabled=!1,this.change=new Xe;const d=Number(a);this.tabIndex=d||0===d?d:null,this.buttonToggleGroup=e,this.appearance=c&&c.appearance?c.appearance:"standard"}ngOnInit(){const e=this.buttonToggleGroup;this.id=this.id||"mat-button-toggle-"+II++,e&&(e._isPrechecked(this)?this.checked=!0:e._isSelected(this)!==this._checked&&e._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){const e=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),e&&e._isSelected(this)&&e._syncButtonToggle(this,!1,!1,!0)}focus(e){this._buttonElement.nativeElement.focus(e)}_onButtonClick(){const e=!!this._isSingleSelector()||!this._checked;e!==this._checked&&(this._checked=e,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.change.emit(new AI(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this._isSingleSelector()?this.buttonToggleGroup.name:this.name||null}_isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}}return n.\u0275fac=function(e){return new(e||n)(D(SI,8),D(li),D(k),D(td),Ls("tabindex"),D(EI,8))},n.\u0275cmp=S({type:n,selectors:[["mat-button-toggle"]],viewQuery:function(e,i){if(1&e&&Hn(dH,5),2&e){let r;kt(r=Et())&&(i._buttonElement=r.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:12,hostBindings:function(e,i){1&e&&ue("focus",function(){return i.focus()}),2&e&&($t("aria-label",null)("aria-labelledby",null)("id",i.id)("name",null),un("mat-button-toggle-standalone",!i.buttonToggleGroup)("mat-button-toggle-checked",i.checked)("mat-button-toggle-disabled",i.disabled)("mat-button-toggle-appearance-standard","standard"===i.appearance))},inputs:{disableRipple:"disableRipple",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",name:"name",value:"value",tabIndex:"tabIndex",appearance:"appearance",checked:"checked",disabled:"disabled"},outputs:{change:"change"},exportAs:["matButtonToggle"],features:[ht],ngContentSelectors:uH,decls:6,vars:9,consts:[["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"id","disabled","click"],["button",""],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"]],template:function(e,i){if(1&e&&(wi(),v(0,"button",0,1),ue("click",function(){return i._onButtonClick()}),v(2,"span",2),en(3),y()(),Pe(4,"span",3)(5,"span",4)),2&e){const r=Xo(1);B("id",i.buttonId)("disabled",i.disabled||null),$t("tabindex",i.disabled?-1:i.tabIndex)("aria-pressed",i.checked)("name",i._getButtonName())("aria-label",i.ariaLabel)("aria-labelledby",i.ariaLabelledby),I(5),B("matRippleTrigger",r)("matRippleDisabled",i.disableRipple||i.disabled)}},dependencies:[ts],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;border-radius:2px;-webkit-tap-highlight-color:rgba(0,0,0,0);transform:translateZ(0)}.cdk-high-contrast-active .mat-button-toggle-standalone,.cdk-high-contrast-active .mat-button-toggle-group{outline:solid 1px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:4px}.cdk-high-contrast-active .mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.cdk-high-contrast-active .mat-button-toggle-group-appearance-standard{outline:0}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:1}.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{opacity:.04}.mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.12}@media(hover: none){.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;user-select:none;display:inline-block;line-height:36px;padding:0 16px;position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;pointer-events:none;opacity:0}.cdk-high-contrast-active .mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 36px;opacity:.5;height:0}.cdk-high-contrast-active .mat-button-toggle-checked:hover .mat-button-toggle-focus-overlay{opacity:.6}.cdk-high-contrast-active .mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}"],encapsulation:2,changeDetection:0}),n})(),fH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=Jt({imports:[Gn,Nd,Gn]}),n})();const pH=["*"],bH=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],yH=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"],vH=new De("MAT_CARD_CONFIG");let Mh=(()=>{class n{constructor(e){this.appearance=e?.appearance||"raised"}}return n.\u0275fac=function(e){return new(e||n)(D(vH,8))},n.\u0275cmp=S({type:n,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:4,hostBindings:function(e,i){2&e&&un("mat-mdc-card-outlined","outlined"===i.appearance)("mdc-card--outlined","outlined"===i.appearance)},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:pH,decls:1,vars:0,template:function(e,i){1&e&&(wi(),en(0))},styles:['.mdc-card{display:flex;flex-direction:column;box-sizing:border-box}.mdc-card::after{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none;pointer-events:none}@media screen and (forced-colors: active){.mdc-card::after{border-color:CanvasText}}.mdc-card--outlined::after{border:none}.mdc-card__content{border-radius:inherit;height:100%}.mdc-card__media{position:relative;box-sizing:border-box;background-repeat:no-repeat;background-position:center;background-size:cover}.mdc-card__media::before{display:block;content:""}.mdc-card__media:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__media:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__media--square::before{margin-top:100%}.mdc-card__media--16-9::before{margin-top:56.25%}.mdc-card__media-content{position:absolute;top:0;right:0;bottom:0;left:0;box-sizing:border-box}.mdc-card__primary-action{display:flex;flex-direction:column;box-sizing:border-box;position:relative;outline:none;color:inherit;text-decoration:none;cursor:pointer;overflow:hidden}.mdc-card__primary-action:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__primary-action:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__actions{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:52px;padding:8px}.mdc-card__actions--full-bleed{padding:0}.mdc-card__action-buttons,.mdc-card__action-icons{display:flex;flex-direction:row;align-items:center;box-sizing:border-box}.mdc-card__action-icons{flex-grow:1;justify-content:flex-end}.mdc-card__action-buttons+.mdc-card__action-icons{margin-left:16px;margin-right:0}[dir=rtl] .mdc-card__action-buttons+.mdc-card__action-icons,.mdc-card__action-buttons+.mdc-card__action-icons[dir=rtl]{margin-left:0;margin-right:16px}.mdc-card__action{display:inline-flex;flex-direction:row;align-items:center;box-sizing:border-box;justify-content:center;cursor:pointer;user-select:none}.mdc-card__action:focus{outline:none}.mdc-card__action--button{margin-left:0;margin-right:8px;padding:0 8px}[dir=rtl] .mdc-card__action--button,.mdc-card__action--button[dir=rtl]{margin-left:8px;margin-right:0}.mdc-card__action--button:last-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-card__action--button:last-child,.mdc-card__action--button:last-child[dir=rtl]{margin-left:0;margin-right:0}.mdc-card__actions--full-bleed .mdc-card__action--button{justify-content:space-between;width:100%;height:auto;max-height:none;margin:0;padding:8px 16px;text-align:left}[dir=rtl] .mdc-card__actions--full-bleed .mdc-card__action--button,.mdc-card__actions--full-bleed .mdc-card__action--button[dir=rtl]{text-align:right}.mdc-card__action--icon{margin:-6px 0;padding:12px}.mat-mdc-card{position:relative;border-radius:var(--mdc-elevated-card-container-shape, var(--mdc-shape-medium, 4px));background-color:var(--mdc-elevated-card-container-color, transparent);border-width:0;border-style:solid;border-color:var(--mdc-elevated-card-container-color, transparent)}.mat-mdc-card .mdc-card::after{border-radius:var(--mdc-elevated-card-container-shape, var(--mdc-shape-medium, 4px))}.mat-mdc-card-outlined{border-width:var(--mdc-outlined-card-outline-width, 1px);border-style:solid;border-color:var(--mdc-outlined-card-outline-color, transparent)}.mat-mdc-card-title,.mat-mdc-card-subtitle{display:block;margin:0}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle{padding:16px 16px 0}.mat-mdc-card-header{display:flex;padding:16px 16px 0}.mat-mdc-card-content{display:block;padding:0 16px}.mat-mdc-card-content:first-child{padding-top:16px}.mat-mdc-card-content:last-child{padding-bottom:16px}.mat-mdc-card-title-group{display:flex;justify-content:space-between;width:100%}.mat-mdc-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;margin-bottom:16px;object-fit:cover}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title{line-height:normal}.mat-mdc-card-sm-image{width:80px;height:80px}.mat-mdc-card-md-image{width:112px;height:112px}.mat-mdc-card-lg-image{width:152px;height:152px}.mat-mdc-card-xl-image{width:240px;height:240px}.mat-mdc-card-subtitle~.mat-mdc-card-title,.mat-mdc-card-title~.mat-mdc-card-subtitle,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-title-group .mat-mdc-card-title,.mat-mdc-card-title-group .mat-mdc-card-subtitle{padding-top:0}.mat-mdc-card-content>:last-child:not(.mat-mdc-card-footer){margin-bottom:0}.mat-mdc-card-actions-align-end{justify-content:flex-end}'],encapsulation:2,changeDetection:0}),n})(),Th=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=C({type:n,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-mdc-card-title"]}),n})(),kh=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=C({type:n,selectors:[["mat-card-content"]],hostAttrs:[1,"mat-mdc-card-content"]}),n})(),Eh=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=C({type:n,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-mdc-card-subtitle"]}),n})(),Sh=(()=>{class n{constructor(){this.align="start"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=C({type:n,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-mdc-card-actions","mdc-card__actions"],hostVars:2,hostBindings:function(e,i){2&e&&un("mat-mdc-card-actions-align-end","end"===i.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),n})(),Ih=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=S({type:n,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-mdc-card-header"],ngContentSelectors:yH,decls:4,vars:0,consts:[[1,"mat-mdc-card-header-text"]],template:function(e,i){1&e&&(wi(bH),en(0),v(1,"div",0),en(2,1),y(),en(3,2))},encapsulation:2,changeDetection:0}),n})(),SH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=Jt({imports:[Gn,ya,Gn]}),n})();const IH=["input"],AH=["label"],FH=["*"],OH=new De("mat-checkbox-default-options",{providedIn:"root",factory:FI});function FI(){return{color:"accent",clickAction:"check-indeterminate"}}const RH={provide:br,useExisting:on(()=>al),multi:!0};class PH{}let LH=0;const OI=FI(),NH=Of(Dh(nd(Ld(class{constructor(n){this._elementRef=n}}))));let BH=(()=>{class n extends NH{get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(e){this._required=At(e)}constructor(e,i,r,o,a,c,d){super(i),this._changeDetectorRef=r,this._ngZone=o,this._animationMode=c,this._options=d,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new Xe,this.indeterminateChange=new Xe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||OI,this.color=this.defaultColor=this._options.color||OI.color,this.tabIndex=parseInt(a)||0,this.id=this._uniqueId=`${e}${++LH}`}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(e){const i=At(e);i!=this.checked&&(this._checked=i,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){const i=At(e);i!==this.disabled&&(this._disabled=i,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){const i=e!=this._indeterminate;this._indeterminate=At(e),i&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(e){let i=this._currentCheckState,r=this._getAnimationTargetElement();if(i!==e&&r&&(this._currentAnimationClass&&r.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(i,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){r.classList.add(this._currentAnimationClass);const o=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{r.classList.remove(o)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){const e=this._options?.clickAction;this.disabled||"noop"===e?!this.disabled&&"noop"===e&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==e&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,i){if("NoopAnimations"===this._animationMode)return"";switch(e){case 0:if(1===i)return this._animationClasses.uncheckedToChecked;if(3==i)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===i?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===i?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===i?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){const i=this._inputElement;i&&(i.nativeElement.indeterminate=e)}}return n.\u0275fac=function(e){Om()},n.\u0275dir=C({type:n,viewQuery:function(e,i){if(1&e&&(Hn(IH,5),Hn(AH,5),Hn(ts,5)),2&e){let r;kt(r=Et())&&(i._inputElement=r.first),kt(r=Et())&&(i._labelElement=r.first),kt(r=Et())&&(i.ripple=r.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[ht]}),n})(),al=(()=>{class n extends BH{constructor(e,i,r,o,a,c){super("mat-mdc-checkbox-",e,i,r,o,a,c),this._animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"}}focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(e){const i=new PH;return i.source=this,i.checked=e,i}_getAnimationTargetElement(){return this._inputElement?.nativeElement}_onInputClick(){super._handleInputClick()}_onTouchTargetClick(){super._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(e){e.target&&this._labelElement.nativeElement.contains(e.target)&&e.stopPropagation()}}return n.\u0275fac=function(e){return new(e||n)(D(k),D(li),D(qt),Ls("tabindex"),D(Lr,8),D(OH,8))},n.\u0275cmp=S({type:n,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-mdc-checkbox"],hostVars:12,hostBindings:function(e,i){2&e&&(Vs("id",i.id),$t("tabindex",null)("aria-label",null)("aria-labelledby",null),un("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mdc-checkbox--disabled",i.disabled)("mat-mdc-checkbox-disabled",i.disabled)("mat-mdc-checkbox-checked",i.checked))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[jt([RH]),ht],ngContentSelectors:FH,decls:15,vars:19,consts:[[1,"mdc-form-field",3,"click"],[1,"mdc-checkbox"],["checkbox",""],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"checked","disabled","id","required","tabIndex","blur","click","change"],["input",""],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[3,"for"],["label",""]],template:function(e,i){if(1&e&&(wi(),v(0,"div",0),ue("click",function(o){return i._preventBubblingFromLabel(o)}),v(1,"div",1,2)(3,"div",3),ue("click",function(){return i._onTouchTargetClick()}),y(),v(4,"input",4,5),ue("blur",function(){return i._onBlur()})("click",function(){return i._onInputClick()})("change",function(o){return i._onInteractionEvent(o)}),y(),Pe(6,"div",6),v(7,"div",7),mc(),v(8,"svg",8),Pe(9,"path",9),y(),au(),Pe(10,"div",10),y(),Pe(11,"div",11),y(),v(12,"label",12,13),en(14),y()()),2&e){const r=Xo(2);un("mdc-form-field--align-end","before"==i.labelPosition),I(4),un("mdc-checkbox--selected",i.checked),B("checked",i.checked)("disabled",i.disabled)("id",i.inputId)("required",i.required)("tabIndex",i.tabIndex),$t("aria-checked",i._getAriaChecked())("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby)("aria-describedby",i.ariaDescribedby)("name",i.name)("value",i.value),I(7),B("matRippleTrigger",r)("matRippleDisabled",i.disableRipple||i.disabled)("matRippleCentered",!0),I(1),B("for",i.inputId)}},dependencies:[ts],styles:['.mdc-touch-target-wrapper{display:inline}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:mdc-animation-deceleration-curve-timing-function;transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom}.mdc-checkbox[hidden]{display:none}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{border-color:CanvasText}}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{border-color:CanvasText}}@media all and (-ms-high-contrast: none){.mdc-checkbox .mdc-checkbox__focus-ring{display:none}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--upgraded .mdc-checkbox__checkmark{opacity:1}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear 0s;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear 0s;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background{transition:border-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit}.mdc-checkbox__native-control:disabled{cursor:default;pointer-events:none}.mdc-checkbox--touch{margin:calc((var(--mdc-checkbox-state-layer-size, 48px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2)}.mdc-checkbox--touch .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);width:var(--mdc-checkbox-state-layer-size, 48px);height:var(--mdc-checkbox-state-layer-size, 48px)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 180ms 0ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark-path,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__mixedmark{transition:none}.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox .mdc-checkbox{padding:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px) / 2);margin:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[disabled]:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color, rgba(0, 0, 0, 0.38));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[disabled]:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[disabled]:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true][disabled]~.mdc-checkbox__background{border-color:transparent;background-color:var(--mdc-checkbox-disabled-selected-icon-color, rgba(0, 0, 0, 0.38))}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-pressed-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__background{top:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px) / 2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px) / 2)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2);width:var(--mdc-checkbox-state-layer-size, 40px);height:var(--mdc-checkbox-state-layer-size, 40px)}.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:not([disabled])~.mdc-checkbox__ripple{opacity:.04;transform:scale(1);transition:opacity 80ms 0 cubic-bezier(0, 0, 0.2, 1),transform 80ms 0 cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:not([disabled]):focus~.mdc-checkbox__ripple{opacity:.16}.mat-mdc-checkbox .mdc-checkbox__background{-webkit-print-color-adjust:exact;color-adjust:exact}.mat-mdc-checkbox._mat-animation-noopable *,.mat-mdc-checkbox._mat-animation-noopable *::before{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default}.mat-mdc-checkbox label:empty{display:none}.mat-mdc-checkbox .mdc-checkbox__native-control:focus:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color, black)}.cdk-high-contrast-active .mat-mdc-checkbox.mat-mdc-checkbox-disabled{opacity:.5}.cdk-high-contrast-active .mat-mdc-checkbox .mdc-checkbox__checkmark{--mdc-checkbox-selected-checkmark-color: CanvasText;--mdc-checkbox-disabled-selected-checkmark-color: CanvasText}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),n})(),RI=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=Jt({}),n})(),zH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=Jt({imports:[Gn,Nd,RI,Gn,RI]}),n})();function $H(n,t){1&n&&(v(0,"span",8),en(1,1),y())}function jH(n,t){1&n&&(v(0,"span",9),en(1,2),y())}const PI=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],LI=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function GH(n,t){if(1&n&&(ro(0),Pe(1,"span",9)(2,"span",10),oo()),2&n){const e=ne();I(1),B("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e._isRippleCentered)("matRippleTrigger",e._elementRef.nativeElement)}}function YH(n,t){1&n&&(v(0,"span",11),en(1),y())}function ZH(n,t){1&n&&(ro(0),en(1,1),oo())}function qH(n,t){1&n&&en(0,2,["*ngIf","contentEditInput; else defaultMatChipEditInput"])}function KH(n,t){1&n&&Pe(0,"span",14)}function XH(n,t){if(1&n&&(ro(0),X(1,qH,1,0,"ng-content",12),X(2,KH,1,0,"ng-template",null,13,zg),oo()),2&n){const e=Xo(3),i=ne();I(1),B("ngIf",i.contentEditInput)("ngIfElse",e)}}function QH(n,t){1&n&&(v(0,"span",15),en(1,3),y())}const JH=[[["mat-chip-avatar"],["","matChipAvatar",""]],"*",[["","matChipEditInput",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],ez=["mat-chip-avatar, [matChipAvatar]","*","[matChipEditInput]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"],xx=["*"],ub=new De("mat-chips-default-options"),wx=new De("MatChipAvatar"),Dx=new De("MatChipTrailingIcon"),Mx=new De("MatChipRemove"),hb=new De("MatChip");class tz{}const nz=Of(tz,-1);let Ah=(()=>{class n extends nz{get disabled(){return this._disabled||this._parentChip.disabled}set disabled(e){this._disabled=At(e)}_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled||!this.isInteractive?null:this.tabIndex.toString()}constructor(e,i){super(),this._elementRef=e,this._parentChip=i,this.isInteractive=!0,this._isPrimary=!0,this._disabled=!1,this._allowFocusWhenDisabled=!1,"BUTTON"===e.nativeElement.nodeName&&e.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}_handleClick(e){!this.disabled&&this.isInteractive&&this._isPrimary&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!this.disabled&&this.isInteractive&&this._isPrimary&&!this._parentChip._isEditing&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}}return n.\u0275fac=function(e){return new(e||n)(D(k),D(hb))},n.\u0275dir=C({type:n,selectors:[["","matChipAction",""]],hostAttrs:[1,"mdc-evolution-chip__action","mat-mdc-chip-action"],hostVars:9,hostBindings:function(e,i){1&e&&ue("click",function(o){return i._handleClick(o)})("keydown",function(o){return i._handleKeydown(o)}),2&e&&($t("tabindex",i._getTabindex())("disabled",i._getDisabledAttribute())("aria-disabled",i.disabled),un("mdc-evolution-chip__action--primary",i._isPrimary)("mdc-evolution-chip__action--presentational",!i.isInteractive)("mdc-evolution-chip__action--trailing",!i._isPrimary))},inputs:{disabled:"disabled",tabIndex:"tabIndex",isInteractive:"isInteractive",_allowFocusWhenDisabled:"_allowFocusWhenDisabled"},features:[ht]}),n})(),Tx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=C({type:n,selectors:[["mat-chip-avatar"],["","matChipAvatar",""]],hostAttrs:["role","img",1,"mat-mdc-chip-avatar","mdc-evolution-chip__icon","mdc-evolution-chip__icon--primary"],features:[jt([{provide:wx,useExisting:n}])]}),n})(),VI=(()=>{class n extends Ah{constructor(){super(...arguments),this._isPrimary=!1}_handleClick(e){this.disabled||(e.stopPropagation(),e.preventDefault(),this._parentChip.remove())}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!this.disabled&&(e.stopPropagation(),e.preventDefault(),this._parentChip.remove())}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=ai(n)))(i||n)}}(),n.\u0275dir=C({type:n,selectors:[["","matChipRemove",""]],hostAttrs:["role","button",1,"mat-mdc-chip-remove","mat-mdc-chip-trailing-icon","mat-mdc-focus-indicator","mdc-evolution-chip__icon","mdc-evolution-chip__icon--trailing"],hostVars:1,hostBindings:function(e,i){2&e&&$t("aria-hidden",null)},features:[jt([{provide:Mx,useExisting:n}]),ht]}),n})(),rz=0;const oz=Of(Dh(nd(Ld(class{constructor(n){this._elementRef=n}})),"primary"),-1);let id=(()=>{class n extends oz{_hasFocus(){return this._hasFocusInternal}get value(){return void 0!==this._value?this._value:this._textElement.textContent.trim()}set value(e){this._value=e}get removable(){return this._removable}set removable(e){this._removable=At(e)}get highlighted(){return this._highlighted}set highlighted(e){this._highlighted=At(e)}constructor(e,i,r,o,a,c,d,h){super(i),this._changeDetectorRef=e,this._ngZone=r,this._focusMonitor=o,this._globalRippleOptions=d,this._isRippleCentered=!1,this._onFocus=new ke,this._onBlur=new ke,this.role=null,this._hasFocusInternal=!1,this.id="mat-mdc-chip-"+rz++,this.ariaLabel=null,this.ariaDescription=null,this._ariaDescriptionId=`${this.id}-aria-description`,this._removable=!0,this._highlighted=!1,this.removed=new Xe,this.destroyed=new Xe,this.basicChipAttrName="mat-basic-chip";const p=i.nativeElement;this._document=a,this._animationsDisabled="NoopAnimations"===c,this._isBasicChip=p.hasAttribute(this.basicChipAttrName)||p.tagName.toLowerCase()===this.basicChipAttrName,null!=h&&(this.tabIndex=parseInt(h)??this.defaultTabIndex),this._monitorFocus()}ngAfterViewInit(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label"),this._pendingFocus&&(this._pendingFocus=!1,this.focus())}ngAfterContentInit(){this._actionChanges=si(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allRemoveIcons.changes).subscribe(()=>this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._actionChanges?.unsubscribe(),this.destroyed.emit({chip:this}),this.destroyed.complete()}remove(){this.removable&&this.removed.emit({chip:this})}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!(!this.trailingIcon&&!this.removeIcon)}_handleKeydown(e){(8===e.keyCode||46===e.keyCode)&&(e.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(e){return this._getActions().find(i=>{const r=i._elementRef.nativeElement;return r===e||r.contains(e)})}_getActions(){const e=[];return this.primaryAction&&e.push(this.primaryAction),this.removeIcon&&e.push(this.removeIcon),this.trailingIcon&&e.push(this.trailingIcon),e}_handlePrimaryActionInteraction(){}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{const i=null!==e;i!==this._hasFocusInternal&&(this._hasFocusInternal=i,i?this._onFocus.next({chip:this}):this._ngZone.onStable.pipe(Hr(1)).subscribe(()=>this._ngZone.run(()=>this._onBlur.next({chip:this}))))})}}return n.\u0275fac=function(e){return new(e||n)(D(li),D(k),D(qt),D(td),D(hn),D(Lr,8),D(dx,8),Ls("tabindex"))},n.\u0275cmp=S({type:n,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(e,i,r){if(1&e&&(zn(r,wx,5),zn(r,Dx,5),zn(r,Mx,5),zn(r,wx,5),zn(r,Dx,5),zn(r,Mx,5)),2&e){let o;kt(o=Et())&&(i.leadingIcon=o.first),kt(o=Et())&&(i.trailingIcon=o.first),kt(o=Et())&&(i.removeIcon=o.first),kt(o=Et())&&(i._allLeadingIcons=o),kt(o=Et())&&(i._allTrailingIcons=o),kt(o=Et())&&(i._allRemoveIcons=o)}},viewQuery:function(e,i){if(1&e&&(Hn(ts,5),Hn(Ah,5)),2&e){let r;kt(r=Et())&&(i.ripple=r.first),kt(r=Et())&&(i.primaryAction=r.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:30,hostBindings:function(e,i){1&e&&ue("keydown",function(o){return i._handleKeydown(o)}),2&e&&(Vs("id",i.id),$t("role",i.role)("tabindex",i.role?i.tabIndex:null)("aria-label",i.ariaLabel),un("mdc-evolution-chip",!i._isBasicChip)("mdc-evolution-chip--disabled",i.disabled)("mdc-evolution-chip--with-trailing-action",i._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",i.leadingIcon)("mdc-evolution-chip--with-primary-icon",i.leadingIcon)("mdc-evolution-chip--with-avatar",i.leadingIcon)("mat-mdc-chip-with-avatar",i.leadingIcon)("mat-mdc-chip-highlighted",i.highlighted)("mat-mdc-chip-disabled",i.disabled)("mat-mdc-basic-chip",i._isBasicChip)("mat-mdc-standard-chip",!i._isBasicChip)("mat-mdc-chip-with-trailing-icon",i._hasTrailingIcon())("_mat-animation-noopable",i._animationsDisabled))},inputs:{color:"color",disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",id:"id",ariaLabel:["aria-label","ariaLabel"],ariaDescription:["aria-description","ariaDescription"],value:"value",removable:"removable",highlighted:"highlighted"},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],features:[jt([{provide:hb,useExisting:n}]),ht],ngContentSelectors:LI,decls:9,vars:6,consts:[["matRipple","",1,"mat-mdc-chip-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"isInteractive"],["class","mdc-evolution-chip__graphic mat-mdc-chip-graphic",4,"ngIf"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],["class","mdc-evolution-chip__cell mdc-evolution-chip__cell--trailing",4,"ngIf"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(e,i){1&e&&(wi(PI),Pe(0,"span",0)(1,"span",1),v(2,"span",2)(3,"span",3),X(4,$H,2,0,"span",4),v(5,"span",5),en(6),Pe(7,"span",6),y()()(),X(8,jH,2,0,"span",7)),2&e&&(B("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i._isRippleCentered)("matRippleTrigger",i._elementRef.nativeElement),I(3),B("isInteractive",!1),I(1),B("ngIf",i.leadingIcon),I(4),B("ngIf",i._hasTrailingIcon()))},dependencies:[Di,ts,Ah],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{overflow-x:hidden}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mdc-evolution-chip__action--primary:before{box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1}.mdc-evolution-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-evolution-chip__action-touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-evolution-chip__text-label{white-space:nowrap;user-select:none;text-overflow:ellipsis;overflow:hidden}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mdc-evolution-chip__checkmark-background{opacity:0}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__graphic{transition:width 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark{transition:opacity 50ms 0ms linear,transform 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-50%, -50%)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@keyframes mdc-evolution-chip-enter{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-evolution-chip--enter{animation:mdc-evolution-chip-enter 100ms 0ms cubic-bezier(0, 0, 0.2, 1)}@keyframes mdc-evolution-chip-exit{from{opacity:1}to{opacity:0}}.mdc-evolution-chip--exit{animation:mdc-evolution-chip-exit 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip--hidden{opacity:0;pointer-events:none;transition:width 150ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-standard-chip .mdc-evolution-chip__checkmark{height:20px;width:20px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, currentColor)}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:24px}.mdc-evolution-chip--with-avatar .mdc-evolution-chip__graphic{height:24px;width:24px;font-size:24px}.mdc-evolution-chip--with-avatar .mdc-evolution-chip__icon--primary{height:24px;width:24px;font-size:24px}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0);border-radius:var(--mdc-chip-container-shape-radius, 16px 16px 16px 16px);height:var(--mdc-chip-container-height, 32px)}.mat-mdc-standard-chip .mdc-evolution-chip__ripple{border-radius:var(--mdc-chip-container-shape-radius, 16px 16px 16px 16px)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-radius:var(--mdc-chip-container-shape-radius, 16px 16px 16px 16px)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius, 14px 14px 14px 14px)}.mat-mdc-standard-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:var(--mdc-chip-with-avatar-avatar-size, 28px)}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{height:var(--mdc-chip-with-avatar-avatar-size, 28px);width:var(--mdc-chip-with-avatar-avatar-size, 28px);font-size:var(--mdc-chip-with-avatar-avatar-size, 28px)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-outline-width, 1px)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-flat-outline-width, 1px)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-flat-selected-outline-width, 0)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--selected) .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-flat-unselected-outline-width, 1px)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color, transparent)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color, transparent)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color, transparent)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color, currentColor)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{height:var(--mdc-chip-with-icon-icon-size, 18px);width:var(--mdc-chip-with-icon-icon-size, 18px);font-size:var(--mdc-chip-with-icon-icon-size, 18px)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color, currentColor)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color, currentColor)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color, currentColor)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-standard-chip .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:.4}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary{width:100%}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{opacity:.04}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{opacity:.12}.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-chip-remove{opacity:.54}.mat-mdc-chip-remove:focus{opacity:1}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px) * -1);left:8px;right:8px}.mat-mdc-chip-remove .mat-icon{width:inherit;height:inherit;font-size:inherit;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),n})(),mb=(()=>{class n{constructor(e,i){this._elementRef=e,this._document=i}initialize(e){this.getNativeElement().focus(),this.setValue(e)}getNativeElement(){return this._elementRef.nativeElement}setValue(e){this.getNativeElement().textContent=e,this._moveCursorToEndOfInput()}getValue(){return this.getNativeElement().textContent||""}_moveCursorToEndOfInput(){const e=this._document.createRange();e.selectNodeContents(this.getNativeElement()),e.collapse(!1);const i=window.getSelection();i.removeAllRanges(),i.addRange(e)}}return n.\u0275fac=function(e){return new(e||n)(D(k),D(hn))},n.\u0275dir=C({type:n,selectors:[["span","matChipEditInput",""]],hostAttrs:["role","textbox","tabindex","-1","contenteditable","true",1,"mat-chip-edit-input"]}),n})(),kx=(()=>{class n extends id{constructor(e,i,r,o,a,c,d,h){super(e,i,r,o,a,c,d,h),this.basicChipAttrName="mat-basic-chip-row",this._editStartPending=!1,this.editable=!1,this.edited=new Xe,this._isEditing=!1,this.role="row",this._onBlur.pipe(xn(this.destroyed)).subscribe(()=>{this._isEditing&&!this._editStartPending&&this._onEditFinish()})}_hasTrailingIcon(){return!this._isEditing&&super._hasTrailingIcon()}_mousedown(e){this._isEditing||(this.disabled||this.focus(),e.preventDefault())}_handleKeydown(e){13!==e.keyCode||this.disabled?this._isEditing?e.stopPropagation():super._handleKeydown(e):this._isEditing?(e.preventDefault(),this._onEditFinish()):this.editable&&this._startEditing(e)}_doubleclick(e){!this.disabled&&this.editable&&this._startEditing(e)}_startEditing(e){if(!this.primaryAction||this.removeIcon&&this._getSourceAction(e.target)===this.removeIcon)return;const i=this.value;this._isEditing=!0,this._editStartPending=!0,setTimeout(()=>{this._getEditInput().initialize(i),this._editStartPending=!1})}_onEditFinish(){this._isEditing=!1,this._editStartPending=!1,this.edited.emit({chip:this,value:this._getEditInput().getValue()}),(this._document.activeElement===this._getEditInput().getNativeElement()||this._document.activeElement===this._document.body)&&this.primaryAction.focus()}_getEditInput(){return this.contentEditInput||this.defaultEditInput}}return n.\u0275fac=function(e){return new(e||n)(D(li),D(k),D(qt),D(td),D(hn),D(Lr,8),D(dx,8),Ls("tabindex"))},n.\u0275cmp=S({type:n,selectors:[["mat-chip-row"],["","mat-chip-row",""],["mat-basic-chip-row"],["","mat-basic-chip-row",""]],contentQueries:function(e,i,r){if(1&e&&zn(r,mb,5),2&e){let o;kt(o=Et())&&(i.contentEditInput=o.first)}},viewQuery:function(e,i){if(1&e&&Hn(mb,5),2&e){let r;kt(r=Et())&&(i.defaultEditInput=r.first)}},hostAttrs:[1,"mat-mdc-chip","mat-mdc-chip-row","mdc-evolution-chip"],hostVars:27,hostBindings:function(e,i){1&e&&ue("mousedown",function(o){return i._mousedown(o)})("dblclick",function(o){return i._doubleclick(o)}),2&e&&(Vs("id",i.id),$t("tabindex",null)("aria-label",null)("aria-description",null)("role",i.role),un("mat-mdc-chip-with-avatar",i.leadingIcon)("mat-mdc-chip-disabled",i.disabled)("mat-mdc-chip-editing",i._isEditing)("mat-mdc-chip-editable",i.editable)("mdc-evolution-chip--disabled",i.disabled)("mdc-evolution-chip--with-trailing-action",i._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",i.leadingIcon)("mdc-evolution-chip--with-primary-icon",i.leadingIcon)("mdc-evolution-chip--with-avatar",i.leadingIcon)("mat-mdc-chip-highlighted",i.highlighted)("mat-mdc-chip-with-trailing-icon",i._hasTrailingIcon()))},inputs:{color:"color",disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",editable:"editable"},outputs:{edited:"edited"},features:[jt([{provide:id,useExisting:n},{provide:hb,useExisting:n}]),ht],ngContentSelectors:ez,decls:11,vars:13,consts:[[4,"ngIf"],["role","gridcell",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"tabIndex","disabled"],["class","mdc-evolution-chip__graphic mat-mdc-chip-graphic",4,"ngIf"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label",3,"ngSwitch"],[4,"ngSwitchCase"],[1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],["class","mdc-evolution-chip__cell mdc-evolution-chip__cell--trailing","role","gridcell",4,"ngIf"],[1,"cdk-visually-hidden",3,"id"],["matRipple","",1,"mat-mdc-chip-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[4,"ngIf","ngIfElse"],["defaultMatChipEditInput",""],["matChipEditInput",""],["role","gridcell",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(e,i){1&e&&(wi(JH),X(0,GH,3,3,"ng-container",0),v(1,"span",1)(2,"span",2),X(3,YH,2,0,"span",3),v(4,"span",4),X(5,ZH,2,0,"ng-container",5),X(6,XH,4,2,"ng-container",5),Pe(7,"span",6),y()()(),X(8,QH,2,0,"span",7),v(9,"span",8),E(10),y()),2&e&&(B("ngIf",!i._isEditing),I(2),B("tabIndex",i.tabIndex)("disabled",i.disabled),$t("role",i.editable?"button":null)("aria-label",i.ariaLabel)("aria-describedby",i._ariaDescriptionId),I(1),B("ngIf",i.leadingIcon),I(1),B("ngSwitch",i._isEditing),I(1),B("ngSwitchCase",!1),I(1),B("ngSwitchCase",!0),I(2),B("ngIf",i._hasTrailingIcon()),I(1),B("id",i._ariaDescriptionId),I(1),Qt(i.ariaDescription))},dependencies:[Di,hh,o_,ts,Ah,mb],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{overflow-x:hidden}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mdc-evolution-chip__action--primary:before{box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1}.mdc-evolution-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-evolution-chip__action-touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-evolution-chip__text-label{white-space:nowrap;user-select:none;text-overflow:ellipsis;overflow:hidden}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mdc-evolution-chip__checkmark-background{opacity:0}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__graphic{transition:width 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark{transition:opacity 50ms 0ms linear,transform 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-50%, -50%)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@keyframes mdc-evolution-chip-enter{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-evolution-chip--enter{animation:mdc-evolution-chip-enter 100ms 0ms cubic-bezier(0, 0, 0.2, 1)}@keyframes mdc-evolution-chip-exit{from{opacity:1}to{opacity:0}}.mdc-evolution-chip--exit{animation:mdc-evolution-chip-exit 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip--hidden{opacity:0;pointer-events:none;transition:width 150ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-standard-chip .mdc-evolution-chip__checkmark{height:20px;width:20px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, currentColor)}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:24px}.mdc-evolution-chip--with-avatar .mdc-evolution-chip__graphic{height:24px;width:24px;font-size:24px}.mdc-evolution-chip--with-avatar .mdc-evolution-chip__icon--primary{height:24px;width:24px;font-size:24px}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0);border-radius:var(--mdc-chip-container-shape-radius, 16px 16px 16px 16px);height:var(--mdc-chip-container-height, 32px)}.mat-mdc-standard-chip .mdc-evolution-chip__ripple{border-radius:var(--mdc-chip-container-shape-radius, 16px 16px 16px 16px)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-radius:var(--mdc-chip-container-shape-radius, 16px 16px 16px 16px)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius, 14px 14px 14px 14px)}.mat-mdc-standard-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:var(--mdc-chip-with-avatar-avatar-size, 28px)}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{height:var(--mdc-chip-with-avatar-avatar-size, 28px);width:var(--mdc-chip-with-avatar-avatar-size, 28px);font-size:var(--mdc-chip-with-avatar-avatar-size, 28px)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-outline-width, 1px)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-flat-outline-width, 1px)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-flat-selected-outline-width, 0)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--selected) .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-flat-unselected-outline-width, 1px)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color, transparent)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color, transparent)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color, transparent)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color, currentColor)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{height:var(--mdc-chip-with-icon-icon-size, 18px);width:var(--mdc-chip-with-icon-icon-size, 18px);font-size:var(--mdc-chip-with-icon-icon-size, 18px)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color, currentColor)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color, currentColor)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color, currentColor)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-standard-chip .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:.4}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary{width:100%}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{opacity:.04}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{opacity:.12}.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-chip-remove{opacity:.54}.mat-mdc-chip-remove:focus{opacity:1}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px) * -1);left:8px;right:8px}.mat-mdc-chip-remove .mat-icon{width:inherit;height:inherit;font-size:inherit;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),n})();class sz{constructor(t){}}const az=Of(sz);let fb=(()=>{class n extends az{get chipFocusChanges(){return this._getChipStream(e=>e._onFocus)}get chipDestroyedChanges(){return this._getChipStream(e=>e.destroyed)}get disabled(){return this._disabled}set disabled(e){this._disabled=At(e),this._syncChipsState()}get empty(){return 0===this._chips.length}get role(){return this._explicitRole?this._explicitRole:this.empty?null:this._defaultRole}set role(e){this._explicitRole=e}get focused(){return this._hasFocusedChip()}constructor(e,i,r){super(e),this._elementRef=e,this._changeDetectorRef=i,this._dir=r,this._lastDestroyedFocusedChipIndex=null,this._destroyed=new ke,this._defaultRole="presentation",this._disabled=!1,this._explicitRole=null,this._chipActions=new Yl}ngAfterViewInit(){this._setUpFocusManagement(),this._trackChipSetChanges(),this._trackDestroyedFocusedChip()}ngOnDestroy(){this._keyManager?.destroy(),this._chipActions.destroy(),this._destroyed.next(),this._destroyed.complete()}_hasFocusedChip(){return this._chips&&this._chips.some(e=>e._hasFocus())}_syncChipsState(){this._chips&&this._chips.forEach(e=>{e.disabled=this._disabled,e._changeDetectorRef.markForCheck()})}focus(){}_handleKeydown(e){this._originatesFromChip(e)&&this._keyManager.onKeydown(e)}_isValidIndex(e){return e>=0&&ethis.tabIndex=e)}}_getChipStream(e){return this._chips.changes.pipe(Br(null),Sc(()=>si(...this._chips.map(e))))}_originatesFromChip(e){let i=e.target;for(;i&&i!==this._elementRef.nativeElement;){if(i.classList&&i.classList.contains("mdc-evolution-chip"))return!0;i=i.parentElement}return!1}_setUpFocusManagement(){this._chips.changes.pipe(Br(this._chips)).subscribe(e=>{const i=[];e.forEach(r=>r._getActions().forEach(o=>i.push(o))),this._chipActions.reset(i),this._chipActions.notifyOnChanges()}),this._keyManager=new XC(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr").withHomeAndEnd().skipPredicate(e=>this._skipPredicate(e)),this.chipFocusChanges.pipe(xn(this._destroyed)).subscribe(({chip:e})=>{const i=e._getSourceAction(document.activeElement);i&&this._keyManager.updateActiveItem(i)}),this._dir?.change.pipe(xn(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e))}_skipPredicate(e){return!e.isInteractive||e.disabled}_trackChipSetChanges(){this._chips.changes.pipe(Br(null),xn(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus()})}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe(xn(this._destroyed)).subscribe(e=>{const r=this._chips.toArray().indexOf(e.chip);this._isValidIndex(r)&&e.chip._hasFocus()&&(this._lastDestroyedFocusedChipIndex=r)})}_redirectDestroyedChipFocus(){if(null!=this._lastDestroyedFocusedChipIndex){if(this._chips.length){const e=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1),i=this._chips.toArray()[e];i.disabled?1===this._chips.length?this.focus():this._keyManager.setPreviousItemActive():i.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}}}return n.\u0275fac=function(e){return new(e||n)(D(k),D(li),D(Vr,8))},n.\u0275cmp=S({type:n,selectors:[["mat-chip-set"]],contentQueries:function(e,i,r){if(1&e&&zn(r,id,5),2&e){let o;kt(o=Et())&&(i._chips=o)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(e,i){1&e&&ue("keydown",function(o){return i._handleKeydown(o)}),2&e&&$t("role",i.role)},inputs:{disabled:"disabled",role:"role"},features:[ht],ngContentSelectors:xx,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(e,i){1&e&&(wi(),v(0,"div",0),en(1),y())},styles:[".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0}),n})();class dz{constructor(t,e){this.source=t,this.value=e}}class uz extends fb{constructor(t,e,i,r,o,a,c){super(t,e,i),this._defaultErrorStateMatcher=r,this._parentForm=o,this._parentFormGroup=a,this.ngControl=c,this.stateChanges=new ke}}const hz=lx(uz);let $I=(()=>{class n extends hz{get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=At(e),this._syncChipsState()}get id(){return this._chipInput.id}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this._chips||0===this._chips.length)}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get focused(){return this._chipInput.focused||this._hasFocusedChip()}get required(){return this._required??this.ngControl?.control?.hasValidator(Vn.required)??!1}set required(e){this._required=At(e),this.stateChanges.next()}get shouldLabelFloat(){return!this.empty||this.focused}get value(){return this._value}set value(e){this._value=e}get chipBlurChanges(){return this._getChipStream(e=>e._onBlur)}constructor(e,i,r,o,a,c,d){super(e,i,r,c,o,a,d),this.controlType="mat-chip-grid",this._defaultRole="grid",this._ariaDescribedbyIds=[],this._onTouched=()=>{},this._onChange=()=>{},this._value=[],this.change=new Xe,this.valueChange=new Xe,this.ngControl&&(this.ngControl.valueAccessor=this)}ngAfterContentInit(){this.chipBlurChanges.pipe(xn(this._destroyed)).subscribe(()=>{this._blur(),this.stateChanges.next()}),si(this.chipFocusChanges,this._chips.changes).pipe(xn(this._destroyed)).subscribe(()=>this.stateChanges.next())}ngAfterViewInit(){super.ngAfterViewInit()}ngDoCheck(){this.ngControl&&this.updateErrorState()}ngOnDestroy(){super.ngOnDestroy(),this.stateChanges.complete()}registerInput(e){this._chipInput=e,this._chipInput.setDescribedByIds(this._ariaDescribedbyIds)}onContainerClick(e){!this.disabled&&!this._originatesFromChip(e)&&this.focus()}focus(){this.disabled||this._chipInput.focused||(!this._chips.length||this._chips.first.disabled?Promise.resolve().then(()=>this._chipInput.focus()):this._chips.length&&this._keyManager.setFirstItemActive(),this.stateChanges.next())}setDescribedByIds(e){this._ariaDescribedbyIds=e,this._chipInput?.setDescribedByIds(e)}writeValue(e){this._value=e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this.stateChanges.next()}_blur(){this.disabled||setTimeout(()=>{this.focused||(this._propagateChanges(),this._markAsTouched())})}_allowFocusEscape(){this._chipInput.focused||super._allowFocusEscape()}_handleKeydown(e){9===e.keyCode?this._chipInput.focused&&Ws(e,"shiftKey")&&this._chips.length&&!this._chips.last.disabled?(e.preventDefault(),this._keyManager.activeItem?this._keyManager.setActiveItem(this._keyManager.activeItem):this._focusLastChip()):super._allowFocusEscape():this._chipInput.focused||super._handleKeydown(e),this.stateChanges.next()}_focusLastChip(){this._chips.length&&this._chips.last.focus()}_propagateChanges(){const e=this._chips.length?this._chips.toArray().map(i=>i.value):[];this._value=e,this.change.emit(new dz(this,e)),this.valueChange.emit(e),this._onChange(e),this._changeDetectorRef.markForCheck()}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}}return n.\u0275fac=function(e){return new(e||n)(D(k),D(li),D(Vr,8),D(ph,8),D(Do,8),D(ob),D(Xa,10))},n.\u0275cmp=S({type:n,selectors:[["mat-chip-grid"]],contentQueries:function(e,i,r){if(1&e&&zn(r,kx,5),2&e){let o;kt(o=Et())&&(i._chips=o)}},hostAttrs:[1,"mat-mdc-chip-set","mat-mdc-chip-grid","mdc-evolution-chip-set"],hostVars:10,hostBindings:function(e,i){1&e&&ue("focus",function(){return i.focus()})("blur",function(){return i._blur()}),2&e&&(Vs("tabIndex",i._chips&&0===i._chips.length?-1:i.tabIndex),$t("role",i.role)("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState),un("mat-mdc-chip-list-disabled",i.disabled)("mat-mdc-chip-list-invalid",i.errorState)("mat-mdc-chip-list-required",i.required))},inputs:{tabIndex:"tabIndex",disabled:"disabled",placeholder:"placeholder",required:"required",value:"value",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},features:[jt([{provide:lb,useExisting:n}]),ht],ngContentSelectors:xx,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(e,i){1&e&&(wi(),v(0,"div",0),en(1),y())},styles:[".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0}),n})(),mz=0,jI=(()=>{class n{set chipGrid(e){e&&(this._chipGrid=e,this._chipGrid.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(e){this._addOnBlur=At(e)}get disabled(){return this._disabled||this._chipGrid&&this._chipGrid.disabled}set disabled(e){this._disabled=At(e)}get empty(){return!this.inputElement.value}constructor(e,i,r){this._elementRef=e,this._defaultOptions=i,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new Xe,this.placeholder="",this.id="mat-mdc-chip-list-input-"+mz++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement,r&&this.inputElement.classList.add("mat-mdc-form-field-input-control")}ngOnChanges(){this._chipGrid.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(e){if(e){if(8===e.keyCode&&this._focusLastChipOnBackspace)return this._chipGrid._focusLastChip(),void e.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(e)}_keyup(e){!this._focusLastChipOnBackspace&&8===e.keyCode&&this.empty&&(this._focusLastChipOnBackspace=!0,e.preventDefault())}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipGrid.focused||this._chipGrid._blur(),this._chipGrid.stateChanges.next()}_focus(){this.focused=!0,this._focusLastChipOnBackspace=this.empty,this._chipGrid.stateChanges.next()}_emitChipEnd(e){(!e||this._isSeparatorKey(e))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),e?.preventDefault())}_onInput(){this._chipGrid.stateChanges.next()}focus(){this.inputElement.focus()}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}setDescribedByIds(e){const i=this._elementRef.nativeElement;e.length?i.setAttribute("aria-describedby",e.join(" ")):i.removeAttribute("aria-describedby")}_isSeparatorKey(e){return!Ws(e)&&new Set(this.separatorKeyCodes).has(e.keyCode)}}return n.\u0275fac=function(e){return new(e||n)(D(k),D(ub),D(Vf,8))},n.\u0275dir=C({type:n,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-mdc-chip-input","mat-mdc-input-element","mdc-text-field__input","mat-input-element"],hostVars:6,hostBindings:function(e,i){1&e&&ue("keydown",function(o){return i._keydown(o)})("keyup",function(o){return i._keyup(o)})("blur",function(){return i._blur()})("focus",function(){return i._focus()})("input",function(){return i._onInput()}),2&e&&(Vs("id",i.id),$t("disabled",i.disabled||null)("placeholder",i.placeholder||null)("aria-invalid",i._chipGrid&&i._chipGrid.ngControl?i._chipGrid.ngControl.invalid:null)("aria-required",i._chipGrid&&i._chipGrid.required||null)("required",i._chipGrid&&i._chipGrid.required||null))},inputs:{chipGrid:["matChipInputFor","chipGrid"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[ji]}),n})(),fz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=Jt({providers:[ob,{provide:ub,useValue:{separatorKeyCodes:[13]}}],imports:[Gn,ya,Nd,Gn]}),n})();function Ex(n){return qe((t,e)=>{let o,i=null,r=!1;i=t.subscribe(Ft(e,void 0,void 0,a=>{o=vi(n(a,Ex(n)(t))),i?(i.unsubscribe(),i=null,o.subscribe(e)):r=!0})),r&&(i.unsubscribe(),i=null,o.subscribe(e))})}const _z=["*"];let pb;function $f(n){return function bz(){if(void 0===pb&&(pb=null,typeof window<"u")){const n=window;void 0!==n.trustedTypes&&(pb=n.trustedTypes.createPolicy("angular#components",{createHTML:t=>t}))}return pb}()?.createHTML(n)||n}function UI(n){return Error(`Unable to find icon with the name "${n}"`)}function WI(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function GI(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class zd{constructor(t,e,i){this.url=t,this.svgText=e,this.options=i}}let jf=(()=>{class n{constructor(e,i,r,o){this._httpClient=e,this._sanitizer=i,this._errorHandler=o,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=r}addSvgIcon(e,i,r){return this.addSvgIconInNamespace("",e,i,r)}addSvgIconLiteral(e,i,r){return this.addSvgIconLiteralInNamespace("",e,i,r)}addSvgIconInNamespace(e,i,r,o){return this._addSvgIconConfig(e,i,new zd(r,null,o))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,r,o){const a=this._sanitizer.sanitize(qn.HTML,r);if(!a)throw GI(r);const c=$f(a);return this._addSvgIconConfig(e,i,new zd("",c,o))}addSvgIconSet(e,i){return this.addSvgIconSetInNamespace("",e,i)}addSvgIconSetLiteral(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}addSvgIconSetInNamespace(e,i,r){return this._addSvgIconSetConfig(e,new zd(i,null,r))}addSvgIconSetLiteralInNamespace(e,i,r){const o=this._sanitizer.sanitize(qn.HTML,i);if(!o)throw GI(i);const a=$f(o);return this._addSvgIconSetConfig(e,new zd("",a,r))}registerFontClassAlias(e,i=e){return this._fontCssClassesByAlias.set(e,i),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const i=this._sanitizer.sanitize(qn.RESOURCE_URL,e);if(!i)throw WI(e);const r=this._cachedIconsByUrl.get(i);return r?Cs(gb(r)):this._loadSvgIconFromConfig(new zd(e,null)).pipe(vh(o=>this._cachedIconsByUrl.set(i,o)),Ln(o=>gb(o)))}getNamedSvgIcon(e,i=""){const r=YI(i,e);let o=this._svgIconConfigs.get(r);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(i,e),o)return this._svgIconConfigs.set(r,o),this._getSvgFromConfig(o);const a=this._iconSetConfigs.get(i);return a?this._getSvgFromIconSetConfigs(e,a):function pz(n,t){const e=q(n)?n:()=>n,i=r=>r.error(e());return new ye(t?r=>t.schedule(i,0,r):i)}(UI(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?Cs(gb(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(Ln(i=>gb(i)))}_getSvgFromIconSetConfigs(e,i){const r=this._extractIconWithNameFromAnySet(e,i);return r?Cs(r):Ok(i.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(Ex(c=>{const h=`Loading icon set URL: ${this._sanitizer.sanitize(qn.RESOURCE_URL,a.url)} failed: ${c.message}`;return this._errorHandler.handleError(new Error(h)),Cs(null)})))).pipe(Ln(()=>{const a=this._extractIconWithNameFromAnySet(e,i);if(!a)throw UI(e);return a}))}_extractIconWithNameFromAnySet(e,i){for(let r=i.length-1;r>=0;r--){const o=i[r];if(o.svgText&&o.svgText.toString().indexOf(e)>-1){const a=this._svgElementFromConfig(o),c=this._extractSvgIconFromSet(a,e,o.options);if(c)return c}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(vh(i=>e.svgText=i),Ln(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?Cs(null):this._fetchIcon(e).pipe(vh(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,r){const o=e.querySelector(`[id="${i}"]`);if(!o)return null;const a=o.cloneNode(!0);if(a.removeAttribute("id"),"svg"===a.nodeName.toLowerCase())return this._setSvgAttributes(a,r);if("symbol"===a.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(a),r);const c=this._svgElementFromString($f(""));return c.appendChild(a),this._setSvgAttributes(c,r)}_svgElementFromString(e){const i=this._document.createElement("DIV");i.innerHTML=e;const r=i.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(e){const i=this._svgElementFromString($f("")),r=e.attributes;for(let o=0;o$f(h)),function gz(n){return qe((t,e)=>{try{t.subscribe(e)}finally{e.add(n)}})}(()=>this._inProgressUrlFetches.delete(a)),ea());return this._inProgressUrlFetches.set(a,d),d}_addSvgIconConfig(e,i,r){return this._svgIconConfigs.set(YI(e,i),r),this}_addSvgIconSetConfig(e,i){const r=this._iconSetConfigs.get(e);return r?r.push(i):this._iconSetConfigs.set(e,[i]),this}_svgElementFromConfig(e){if(!e.svgElement){const i=this._svgElementFromString(e.svgText);this._setSvgAttributes(i,e.options),e.svgElement=i}return e.svgElement}_getIconConfigFromResolvers(e,i){for(let r=0;rt?t.pathname+t.search:""}}}),ZI=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Tz=ZI.map(n=>`[${n}]`).join(", "),kz=/^url\(['"]?#(.*?)['"]?\)$/;let Gs=(()=>{class n extends xz{get inline(){return this._inline}set inline(e){this._inline=At(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const i=this._cleanupFontValue(e);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const i=this._cleanupFontValue(e);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}constructor(e,i,r,o,a,c){super(e),this._iconRegistry=i,this._location=o,this._errorHandler=a,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=re.EMPTY,c&&(c.color&&(this.color=this.defaultColor=c.color),c.fontSet&&(this.fontSet=c.fontSet)),r||e.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];const i=e.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let i=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){const r=e.childNodes[i];(1!==r.nodeType||"svg"===r.nodeName.toLowerCase())&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,i=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>e.classList.remove(r)),i.forEach(r=>e.classList.add(r)),this._previousFontSetClass=i,this.fontIcon!==this._previousFontIconClass&&!i.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const i=this._elementsWithExternalReferences;i&&i.forEach((r,o)=>{r.forEach(a=>{o.setAttribute(a.name,`url('${e}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(e){const i=e.querySelectorAll(Tz),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o{const c=i[o],d=c.getAttribute(a),h=d?d.match(kz):null;if(h){let p=r.get(c);p||(p=[],r.set(c,p)),p.push({name:a,value:h[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[i,r]=this._splitIconName(e);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(Hr(1)).subscribe(o=>this._setSvgElement(o),o=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${i}:${r}! ${o.message}`))})}}}return n.\u0275fac=function(e){return new(e||n)(D(k),D(jf),Ls("aria-hidden"),D(Dz),D(Qe),D(wz,8))},n.\u0275cmp=S({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(e,i){2&e&&($t("data-mat-icon-type",i._usingFontIcon()?"font":"svg")("data-mat-icon-name",i._svgName||i.fontIcon)("data-mat-icon-namespace",i._svgNamespace||i.fontSet)("fontIcon",i._usingFontIcon()?i.fontIcon:null),un("mat-icon-inline",i.inline)("mat-icon-no-color","primary"!==i.color&&"accent"!==i.color&&"warn"!==i.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[ht],ngContentSelectors:_z,decls:1,vars:0,template:function(e,i){1&e&&(wi(),en(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),n})(),Ez=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=Jt({imports:[Gn,Gn]}),n})();const qI=Ja({passive:!0});let Sz=(()=>{class n{constructor(e,i){this._platform=e,this._ngZone=i,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Zn;const i=Gi(e),r=this._monitoredElements.get(i);if(r)return r.subject;const o=new ke,a="cdk-text-field-autofilled",c=d=>{"cdk-text-field-autofill-start"!==d.animationName||i.classList.contains(a)?"cdk-text-field-autofill-end"===d.animationName&&i.classList.contains(a)&&(i.classList.remove(a),this._ngZone.run(()=>o.next({target:d.target,isAutofilled:!1}))):(i.classList.add(a),this._ngZone.run(()=>o.next({target:d.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{i.addEventListener("animationstart",c,qI),i.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(i,{subject:o,unlisten:()=>{i.removeEventListener("animationstart",c,qI)}}),o}stopMonitoring(e){const i=Gi(e),r=this._monitoredElements.get(i);r&&(r.unlisten(),r.subject.complete(),i.classList.remove("cdk-text-field-autofill-monitored"),i.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(i))}ngOnDestroy(){this._monitoredElements.forEach((e,i)=>this.stopMonitoring(i))}}return n.\u0275fac=function(e){return new(e||n)(ie(Oi),ie(qt))},n.\u0275prov=rt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Iz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=Jt({}),n})();const Az=new De("MAT_INPUT_VALUE_ACCESSOR"),Fz=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let Oz=0;const Rz=lx(class{constructor(n,t,e,i){this._defaultErrorStateMatcher=n,this._parentForm=t,this._parentFormGroup=e,this.ngControl=i,this.stateChanges=new ke}});let ws=(()=>{class n extends Rz{get disabled(){return this._disabled}set disabled(e){this._disabled=At(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(Vn.required)??!1}set required(e){this._required=At(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&KE().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=At(e)}constructor(e,i,r,o,a,c,d,h,p,_){super(c,o,a,r),this._elementRef=e,this._platform=i,this._autofillMonitor=h,this._formField=_,this._uid="mat-input-"+Oz++,this.focused=!1,this.stateChanges=new ke,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(L=>KE().has(L)),this._iOSKeyupListener=L=>{const j=L.target;!j.value&&0===j.selectionStart&&0===j.selectionEnd&&(j.setSelectionRange(1,1),j.setSelectionRange(0,0))};const M=this._elementRef.nativeElement,A=M.nodeName.toLowerCase();this._inputValueAccessor=d||M,this._previousNativeValue=this.value,this.id=this.id,i.IOS&&p.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===A,this._isTextarea="textarea"===A,this._isInFormField=!!_,this._isNativeSelect&&(this.controlType=M.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),null!==this.ngControl.disabled&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_dirtyCheckPlaceholder(){const e=this._getPlaceholder();if(e!==this._previousPlaceholder){const i=this._elementRef.nativeElement;this._previousPlaceholder=e,e?i.setAttribute("placeholder",e):i.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){Fz.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,i=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&i&&i.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return n.\u0275fac=function(e){return new(e||n)(D(k),D(Oi),D(Xa,10),D(ph,8),D(Do,8),D(ob),D(Az,10),D(Sz),D(qt),D(Vf,8))},n.\u0275dir=C({type:n,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(e,i){1&e&&ue("focus",function(){return i._focusChanged(!0)})("blur",function(){return i._focusChanged(!1)})("input",function(){return i._onInput()}),2&e&&(Vs("id",i.id)("disabled",i.disabled)("required",i.required),$t("name",i.name||null)("readonly",i.readonly&&!i._isNativeSelect||null)("aria-invalid",i.empty&&i.required?null:i.errorState)("aria-required",i.required)("id",i.id),un("mat-input-server",i._isServer)("mat-mdc-form-field-textarea-control",i._isInFormField&&i._isTextarea)("mat-mdc-form-field-input-control",i._isInFormField)("mdc-text-field__input",i._isInFormField)("mat-mdc-native-select-inline",i._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[jt([{provide:lb,useExisting:n}]),ht,ji]}),n})(),Pz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=Jt({imports:[Gn,db,db,Iz,Gn]}),n})();const Lz=["mat-menu-item",""];function Nz(n,t){1&n&&(mc(),v(0,"svg",3),Pe(1,"polygon",4),y())}const Bz=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],Vz=["mat-icon, [matMenuItemIcon]","*"];function Hz(n,t){if(1&n){const e=Zt();v(0,"div",0),ue("keydown",function(r){return nt(e),at(ne()._handleKeydown(r))})("click",function(){return nt(e),at(ne().closed.emit("click"))})("@transformMenu.start",function(r){return nt(e),at(ne()._onAnimationStart(r))})("@transformMenu.done",function(r){return nt(e),at(ne()._onAnimationDone(r))}),v(1,"div",1),en(2),y()()}if(2&n){const e=ne();B("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),$t("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const zz=["*"],Sx=new De("MAT_MENU_PANEL"),$z=nd(Ld(class{}));let _b=(()=>{class n extends $z{constructor(e,i,r,o,a){super(),this._elementRef=e,this._document=i,this._focusMonitor=r,this._parentMenu=o,this._changeDetectorRef=a,this.role="menuitem",this._hovered=new ke,this._focused=new ke,this._highlighted=!1,this._triggersSubmenu=!1,o?.addItem?.(this)}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const e=this._elementRef.nativeElement.cloneNode(!0),i=e.querySelectorAll("mat-icon, .material-icons");for(let r=0;r enter",xo("120ms cubic-bezier(0, 0, 0.2, 1)",Ei({opacity:1,transform:"scale(1)"}))),wo("* => void",xo("100ms 25ms linear",Ei({opacity:0})))]),fadeInItems:nl("fadeInItems",[va("showing",Ei({opacity:1})),wo("void => *",[Ei({opacity:0}),xo("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Uz=0;const KI=new De("mat-menu-default-options",{providedIn:"root",factory:function Wz(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let Uf=(()=>{class n{get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(e){this._overlapTrigger=At(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=At(e)}set panelClass(e){const i=this._previousPanelClass;i&&i.length&&i.split(" ").forEach(r=>{this._classList[r]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(r=>{this._classList[r]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}constructor(e,i,r,o){this._elementRef=e,this._ngZone=i,this._defaultOptions=r,this._changeDetectorRef=o,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new Yl,this._classList={},this._panelAnimationState="void",this._animationDone=new ke,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new Xe,this.close=this.closed,this.panelId="mat-menu-panel-"+Uz++}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new XC(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Br(this._directDescendantItems),Sc(e=>si(...e.map(i=>i._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{const i=this._keyManager;if("enter"===this._panelAnimationState&&i.activeItem?._hasFocus()){const r=e.toArray(),o=Math.max(0,Math.min(r.length-1,i.activeItemIndex||0));r[o]&&!r[o].disabled?i.setActiveItem(o):i.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusSubscription?.unsubscribe()}_hovered(){return this._directDescendantItems.changes.pipe(Br(this._directDescendantItems),Sc(i=>si(...i.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const i=e.keyCode,r=this._keyManager;switch(i){case 27:Ws(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===i||40===i)&&r.setFocusOrigin("keyboard"),void r.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this._firstItemFocusSubscription?.unsubscribe(),this._firstItemFocusSubscription=this._ngZone.onStable.pipe(Hr(1)).subscribe(()=>{let i=null;if(this._directDescendantItems.length&&(i=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!i||!i.contains(document.activeElement)){const r=this._keyManager;r.setFocusOrigin(e).setFirstItemActive(),!r.activeItem&&i&&i.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const i=Math.min(this._baseElevation+e,24),r=`${this._elevationPrefix}${i}`,o=Object.keys(this._classList).find(a=>a.startsWith(this._elevationPrefix));(!o||o===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[r]=!0,this._previousElevation=r)}setPositionClasses(e=this.xPosition,i=this.yPosition){const r=this._classList;r["mat-menu-before"]="before"===e,r["mat-menu-after"]="after"===e,r["mat-menu-above"]="above"===i,r["mat-menu-below"]="below"===i,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(Br(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(i=>i._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return n.\u0275fac=function(e){return new(e||n)(D(k),D(qt),D(KI),D(li))},n.\u0275dir=C({type:n,contentQueries:function(e,i,r){if(1&e&&(zn(r,jz,5),zn(r,_b,5),zn(r,_b,4)),2&e){let o;kt(o=Et())&&(i.lazyContent=o.first),kt(o=Et())&&(i._allItems=o),kt(o=Et())&&(i.items=o)}},viewQuery:function(e,i){if(1&e&&Hn(fr,5),2&e){let r;kt(r=Et())&&(i.templateRef=r.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),n})(),Gz=(()=>{class n extends Uf{constructor(e,i,r,o){super(e,i,r,o),this._elevationPrefix="mat-elevation-z",this._baseElevation=8}}return n.\u0275fac=function(e){return new(e||n)(D(k),D(qt),D(KI),D(li))},n.\u0275cmp=S({type:n,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,i){2&e&&$t("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[jt([{provide:Sx,useExisting:n}]),ht],ngContentSelectors:zz,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel","mdc-menu-surface","mdc-menu-surface--open","mat-mdc-elevation-specific",3,"id","ngClass","keydown","click"],[1,"mat-mdc-menu-content","mdc-list"]],template:function(e,i){1&e&&(wi(),X(0,Hz,3,6,"ng-template"))},dependencies:[uh],styles:['.mdc-menu-surface{display:none;position:absolute;box-sizing:border-box;max-width:var(--mdc-menu-max-width, calc(100vw - 32px));max-height:var(--mdc-menu-max-height, calc(100vh - 32px));margin:0;padding:0;transform:scale(1);transform-origin:top left;opacity:0;overflow:auto;will-change:transform,opacity;z-index:8;border-radius:var(--mdc-shape-medium, 4px);transform-origin-left:top left;transform-origin-right:top right}.mdc-menu-surface:focus{outline:none}.mdc-menu-surface--animating-open{display:inline-block;transform:scale(0.8);opacity:0}.mdc-menu-surface--open{display:inline-block;transform:scale(1);opacity:1}.mdc-menu-surface--animating-closed{display:inline-block;opacity:0}[dir=rtl] .mdc-menu-surface,.mdc-menu-surface[dir=rtl]{transform-origin-left:top right;transform-origin-right:top left}.mdc-menu-surface--anchor{position:relative;overflow:visible}.mdc-menu-surface--fixed{position:fixed}.mdc-menu-surface--fullwidth{width:100%}mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;list-style-type:none}.mat-mdc-menu-content:focus{outline:none}.mat-mdc-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-mdc-menu-panel{outline:solid 1px}.mat-mdc-menu-panel.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;position:relative}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;min-height:48px}.mat-mdc-menu-item:focus{outline:none}[dir=rtl] .mat-mdc-menu-item,.mat-mdc-menu-item[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-menu-item::-moz-focus-inner{border:0}.mat-mdc-menu-item.mdc-list-item{align-items:center}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item .mat-icon{margin-right:16px}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:16px}.mat-mdc-menu-item .mdc-list-item__primary-text{white-space:normal}.mat-mdc-menu-item.mat-mdc-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-mdc-menu-item.mat-mdc-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.cdk-high-contrast-active .mat-mdc-menu-item{margin-top:1px}.mat-mdc-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-mdc-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-mdc-menu-submenu-icon{fill:CanvasText}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[bb.transformMenu,bb.fadeInItems]},changeDetection:0}),n})();const XI=new De("mat-menu-scroll-strategy"),Zz={provide:XI,deps:[Da],useFactory:function Yz(n){return()=>n.scrollStrategies.reposition()}},QI=Ja({passive:!0});let qz=(()=>{class n{get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(i=>{this._destroyMenu(i),("click"===i||"tab"===i)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(i)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}constructor(e,i,r,o,a,c,d,h,p){this._overlay=e,this._element=i,this._viewContainerRef=r,this._menuItemInstance=c,this._dir=d,this._focusMonitor=h,this._ngZone=p,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=re.EMPTY,this._hoverSubscription=re.EMPTY,this._menuCloseSubscription=re.EMPTY,this._changeDetectorRef=_i(li),this._handleTouchStart=_=>{J_(_)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new Xe,this.onMenuOpen=this.menuOpened,this.menuClosed=new Xe,this.onMenuClose=this.menuClosed,this._scrollStrategy=o,this._parentMaterialMenu=a instanceof Uf?a:void 0,i.nativeElement.addEventListener("touchstart",this._handleTouchStart,QI)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,QI),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const e=this.menu;if(this._menuOpen||!e)return;const i=this._createOverlay(e),r=i.getConfig(),o=r.positionStrategy;this._setPosition(e,o),r.hasBackdrop=null==e.hasBackdrop?!this.triggersSubmenu():e.hasBackdrop,i.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof Uf&&(e._startAnimation(),e._directDescendantItems.changes.pipe(xn(e.close)).subscribe(()=>{o.withLockedPosition(!1).reapplyLastPosition(),o.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const i=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,i instanceof Uf?(i._resetAnimation(),i.lazyContent?i._animationDone.pipe(xs(r=>"void"===r.toState),Hr(1),xn(i.lazyContent._attached)).subscribe({next:()=>i.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),i?.lazyContent?.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(e){if(e.setElevation){let i=0,r=e.parentMenu;for(;r;)i++,r=r.parentMenu;e.setElevation(i)}}_setIsMenuOpen(e){e!==this._menuOpen&&(this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e),this._changeDetectorRef.markForCheck())}_createOverlay(e){if(!this._overlayRef){const i=this._getOverlayConfig(e);this._subscribeToPositions(e,i.positionStrategy),this._overlayRef=this._overlay.create(i),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new Nf({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e,i){e.setPositionClasses&&i.positionChanges.subscribe(r=>{const o="start"===r.connectionPair.overlayX?"after":"before",a="top"===r.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(o,a)):e.setPositionClasses(o,a)})}_setPosition(e,i){let[r,o]="before"===e.xPosition?["end","start"]:["start","end"],[a,c]="above"===e.yPosition?["bottom","top"]:["top","bottom"],[d,h]=[a,c],[p,_]=[r,o],M=0;if(this.triggersSubmenu()){if(_=r="before"===e.xPosition?"start":"end",o=p="end"===r?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const A=this._parentMaterialMenu.items.first;this._parentInnerPadding=A?A._getHostElement().offsetTop:0}M="bottom"===a?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(d="top"===a?"bottom":"top",h="top"===c?"bottom":"top");i.withPositions([{originX:r,originY:d,overlayX:p,overlayY:a,offsetY:M},{originX:o,originY:d,overlayX:_,overlayY:a,offsetY:M},{originX:r,originY:h,overlayX:p,overlayY:c,offsetY:-M},{originX:o,originY:h,overlayX:_,overlayY:c,offsetY:-M}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),i=this._overlayRef.detachments();return si(e,this._parentMaterialMenu?this._parentMaterialMenu.closed:Cs(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(xs(a=>a!==this._menuItemInstance),xs(()=>this._menuOpen)):Cs(),i)}_handleMousedown(e){Q_(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const i=e.keyCode;(13===i||32===i)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===i&&"ltr"===this.dir||37===i&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(xs(e=>e===this._menuItemInstance&&!e.disabled),bx(0,LC)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Uf&&this.menu._isAnimating?this.menu._animationDone.pipe(Hr(1),bx(0,LC),xn(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new Vd(e.templateRef,this._viewContainerRef)),this._portal}}return n.\u0275fac=function(e){return new(e||n)(D(Da),D(k),D(pr),D(XI),D(Sx,8),D(_b,10),D(Vr,8),D(td),D(qt))},n.\u0275dir=C({type:n,hostVars:3,hostBindings:function(e,i){1&e&&ue("click",function(o){return i._handleClick(o)})("mousedown",function(o){return i._handleMousedown(o)})("keydown",function(o){return i._handleKeydown(o)}),2&e&&$t("aria-haspopup",i.menu?"menu":null)("aria-expanded",i.menuOpen)("aria-controls",i.menuOpen?i.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),n})(),Kz=(()=>{class n extends qz{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=ai(n)))(i||n)}}(),n.\u0275dir=C({type:n,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],exportAs:["matMenuTrigger"],features:[ht]}),n})(),Xz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=Jt({providers:[Zz],imports:[ya,Nd,Gn,Bf,Rd,Gn]}),n})();const Qz=["trigger"],Jz=["panel"];function e$(n,t){if(1&n&&(v(0,"span",10),E(1),y()),2&n){const e=ne();I(1),Qt(e.placeholder)}}function t$(n,t){if(1&n&&(v(0,"span",14),E(1),y()),2&n){const e=ne(2);I(1),Qt(e.triggerValue)}}function n$(n,t){1&n&&en(0,0,["*ngSwitchCase","true"])}function i$(n,t){1&n&&(v(0,"span",11),X(1,t$,2,1,"span",12),X(2,n$,1,0,"ng-content",13),y()),2&n&&(B("ngSwitch",!!ne().customTrigger),I(2),B("ngSwitchCase",!0))}function r$(n,t){if(1&n){const e=Zt();mc(),au(),v(0,"div",15,16),ue("@transformPanel.done",function(r){return nt(e),at(ne()._panelDoneAnimatingStream.next(r.toState))})("keydown",function(r){return nt(e),at(ne()._handleKeydown(r))}),en(2,1),y()}if(2&n){const e=ne();U1("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",e._getPanelTheme(),""),B("ngClass",e.panelClass)("@transformPanel","showing"),$t("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const o$=[[["mat-select-trigger"]],"*"],s$=["mat-select-trigger","*"],a$={transformPanelWrap:nl("transformPanelWrap",[wo("* => void",oB("@transformPanel",[rB()],{optional:!0}))]),transformPanel:nl("transformPanel",[va("void",Ei({opacity:0,transform:"scale(1, 0.8)"})),wo("void => showing",xo("120ms cubic-bezier(0, 0, 0.2, 1)",Ei({opacity:1,transform:"scale(1, 1)"}))),wo("* => void",xo("100ms linear",Ei({opacity:0})))])};let JI=0;const eA=new De("mat-select-scroll-strategy"),l$=new De("MAT_SELECT_CONFIG"),d$={provide:eA,deps:[Da],useFactory:function c$(n){return()=>n.scrollStrategies.reposition()}},u$=new De("MatSelectTrigger");class h${constructor(t,e){this.source=t,this.value=e}}const m$=nd(Of(Ld(lx(class{constructor(n,t,e,i,r){this._elementRef=n,this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=r,this.stateChanges=new ke}}))));let f$=(()=>{class n extends m${get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(Vn.required)??!1}set required(e){this._required=At(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=At(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=At(e)}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=kc(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}constructor(e,i,r,o,a,c,d,h,p,_,M,A,L,j){super(a,o,d,h,_),this._viewportRuler=e,this._changeDetectorRef=i,this._ngZone=r,this._dir=c,this._parentFormField=p,this._liveAnnouncer=L,this._defaultOptions=j,this._panelOpen=!1,this._compareWith=(J,le)=>J===le,this._uid="mat-select-"+JI++,this._triggerAriaLabelledBy=null,this._destroy=new ke,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+JI++,this._panelDoneAnimatingStream=new ke,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.optionSelectionChanges=cI(()=>{const J=this.options;return J?J.changes.pipe(Br(J),Sc(()=>si(...J.map(le=>le.onSelectionChange)))):this._ngZone.onStable.pipe(Hr(1),Sc(()=>this.optionSelectionChanges))}),this.openedChange=new Xe,this._openedStream=this.openedChange.pipe(xs(J=>J),Ln(()=>{})),this._closedStream=this.openedChange.pipe(xs(J=>!J),Ln(()=>{})),this.selectionChange=new Xe,this.valueChange=new Xe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=j?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=j.typeaheadDebounceInterval),this._scrollStrategyFactory=A,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(M)||0,this.id=this.id}ngOnInit(){this._selectionModel=new kI(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(GC(),xn(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(xn(this._destroy)).subscribe(e=>{e.added.forEach(i=>i.select()),e.removed.forEach(i=>i.deselect())}),this.options.changes.pipe(Br(null),xn(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby(),i=this.ngControl;if(e!==this._triggerAriaLabelledBy){const r=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?r.setAttribute("aria-labelledby",e):r.removeAttribute("aria-labelledby")}i&&(this._previousControl!==i.control&&(void 0!==this._previousControl&&null!==i.disabled&&i.disabled!==this.disabled&&(this.disabled=i.disabled),this._previousControl=i.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const e=this._selectionModel.selected.map(i=>i.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){const i=e.keyCode,r=40===i||38===i||37===i||39===i,o=13===i||32===i,a=this._keyManager;if(!a.isTyping()&&o&&!Ws(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){const c=this.selected;a.onKeydown(e);const d=this.selected;d&&c!==d&&this._liveAnnouncer.announce(d.viewValue,1e4)}}_handleOpenKeydown(e){const i=this._keyManager,r=e.keyCode,o=40===r||38===r,a=i.isTyping();if(o&&e.altKey)e.preventDefault(),this.close();else if(a||13!==r&&32!==r||!i.activeItem||Ws(e))if(!a&&this._multiple&&65===r&&e.ctrlKey){e.preventDefault();const c=this.options.some(d=>!d.disabled&&!d.selected);this.options.forEach(d=>{d.disabled||(c?d.select():d.deselect())})}else{const c=i.activeItemIndex;i.onKeydown(e),this._multiple&&o&&e.shiftKey&&i.activeItem&&i.activeItemIndex!==c&&i.activeItem._selectViaInteraction()}else e.preventDefault(),i.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(Hr(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this.options.forEach(i=>i.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(i=>this._selectOptionByValue(i)),this._sortValues();else{const i=this._selectOptionByValue(e);i?this._keyManager.updateActiveItem(i):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){const i=this.options.find(r=>{if(this._selectionModel.isSelected(r))return!1;try{return null!=r.value&&this._compareWith(r.value,e)}catch{return!1}});return i&&this._selectionModel.select(i),i}_assignValue(e){return!!(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e,!0)}_initKeyManager(){this._keyManager=new uS(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const e=si(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(xn(e)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),si(...this.options.map(i=>i._stateChanges)).pipe(xn(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,i){const r=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),i&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),i&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),r!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((i,r)=>this.sortComparator?this.sortComparator(i,r,e):e.indexOf(i)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let i=null;i=this.multiple?this.selected.map(r=>r.value):this.selected?this.selected.value:e,this._value=i,this.valueChange.emit(i),this._onChange(i),this.selectionChange.emit(this._getChangeEvent(i)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const e=this._parentFormField?.getLabelId();return this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const e=this._parentFormField?.getLabelId();let i=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(i+=" "+this.ariaLabelledby),i}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return n.\u0275fac=function(e){return new(e||n)(D(ol),D(li),D(qt),D(ob),D(k),D(Vr,8),D(ph,8),D(Do,8),D(Vf,8),D(Xa,10),Ls("tabindex"),D(eA),D(QC),D(l$,8))},n.\u0275dir=C({type:n,viewQuery:function(e,i){if(1&e&&(Hn(Qz,5),Hn(Jz,5),Hn(aI,5)),2&e){let r;kt(r=Et())&&(i.trigger=r.first),kt(r=Et())&&(i.panel=r.first),kt(r=Et())&&(i._overlayDir=r.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[ht,ji]}),n})(),yb=(()=>{class n extends f${constructor(){super(...arguments),this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(xn(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(),this._changeDetectorRef.detectChanges())})}ngAfterViewInit(){this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin())}open(){this._overlayWidth=this._getOverlayWidth(),super.open(),this.stateChanges.next()}close(){super.close(),this.stateChanges.next()}_scrollOptionIntoView(e){const i=this.options.toArray()[e];if(i){const r=this.panel.nativeElement,o=qS(e,this.options,this.optionGroups),a=i._getHostElement();r.scrollTop=0===e&&1===o?0:KS(a.offsetTop,a.offsetHeight,r.scrollTop,r.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new h$(this,e)}_getOverlayWidth(){return(this._preferredOverlayOrigin instanceof _x?this._preferredOverlayOrigin.elementRef:this._preferredOverlayOrigin||this._elementRef).nativeElement.getBoundingClientRect().width}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=At(e),this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const e of this.options)e._changeDetectorRef.markForCheck()}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=ai(n)))(i||n)}}(),n.\u0275cmp=S({type:n,selectors:[["mat-select"]],contentQueries:function(e,i,r){if(1&e&&(zn(r,u$,5),zn(r,Bd,5),zn(r,hx,5)),2&e){let o;kt(o=Et())&&(i.customTrigger=o.first),kt(o=Et())&&(i.options=o),kt(o=Et())&&(i.optionGroups=o)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(e,i){1&e&&ue("keydown",function(o){return i._handleKeydown(o)})("focus",function(){return i._onFocus()})("blur",function(){return i._onBlur()}),2&e&&($t("id",i.id)("tabindex",i.tabIndex)("aria-controls",i.panelOpen?i.id+"-panel":null)("aria-expanded",i.panelOpen)("aria-label",i.ariaLabel||null)("aria-required",i.required.toString())("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState)("aria-activedescendant",i._getAriaActiveDescendant()),un("mat-mdc-select-disabled",i.disabled)("mat-mdc-select-invalid",i.errorState)("mat-mdc-select-required",i.required)("mat-mdc-select-empty",i.empty)("mat-mdc-select-multiple",i.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",hideSingleSelectionIndicator:"hideSingleSelectionIndicator"},exportAs:["matSelect"],features:[jt([{provide:lb,useExisting:n},{provide:ux,useExisting:n}]),ht],ngContentSelectors:s$,decls:11,vars:11,consts:[["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],[1,"mat-mdc-select-value",3,"ngSwitch"],["class","mat-mdc-select-placeholder mat-mdc-select-min-line",4,"ngSwitchCase"],["class","mat-mdc-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","backdropClick","attach","detach"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text",3,"ngSwitch"],["class","mat-mdc-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,i){if(1&e&&(wi(o$),v(0,"div",0,1),ue("click",function(){return i.toggle()}),v(3,"div",2),X(4,e$,2,1,"span",3),X(5,i$,3,2,"span",4),y(),v(6,"div",5)(7,"div",6),mc(),v(8,"svg",7),Pe(9,"path",8),y()()()(),X(10,r$,3,9,"ng-template",9),ue("backdropClick",function(){return i.close()})("attach",function(){return i._onAttached()})("detach",function(){return i.close()})),2&e){const r=Xo(1);$t("aria-owns",i.panelOpen?i.id+"-panel":null),I(3),B("ngSwitch",i.empty),$t("id",i._valueId),I(1),B("ngSwitchCase",!0),I(1),B("ngSwitchCase",!1),I(5),B("cdkConnectedOverlayPanelClass",i._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",i._scrollStrategy)("cdkConnectedOverlayOrigin",i._preferredOverlayOrigin||r)("cdkConnectedOverlayOpen",i.panelOpen)("cdkConnectedOverlayPositions",i._positions)("cdkConnectedOverlayWidth",i._overlayWidth)}},dependencies:[uh,hh,o_,dT,aI,_x],styles:['.mdc-menu-surface{display:none;position:absolute;box-sizing:border-box;max-width:calc(100vw - 32px);max-width:var(--mdc-menu-max-width, calc(100vw - 32px));max-height:calc(100vh - 32px);max-height:var(--mdc-menu-max-height, calc(100vh - 32px));margin:0;padding:0;transform:scale(1);transform-origin:top left;opacity:0;overflow:auto;will-change:transform,opacity;z-index:8;border-radius:4px;border-radius:var(--mdc-shape-medium, 4px);transform-origin-left:top left;transform-origin-right:top right}.mdc-menu-surface:focus{outline:none}.mdc-menu-surface--animating-open{display:inline-block;transform:scale(0.8);opacity:0}.mdc-menu-surface--open{display:inline-block;transform:scale(1);opacity:1}.mdc-menu-surface--animating-closed{display:inline-block;opacity:0}[dir=rtl] .mdc-menu-surface,.mdc-menu-surface[dir=rtl]{transform-origin-left:top right;transform-origin-right:top left}.mdc-menu-surface--anchor{position:relative;overflow:visible}.mdc-menu-surface--fixed{position:fixed}.mdc-menu-surface--fullwidth{width:100%}.mat-mdc-select{display:inline-block;width:100%;outline:none}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:translateY(-8px)}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-select-arrow{width:10px;height:5px;position:relative}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}.mdc-menu-surface.mat-mdc-select-panel{width:100%;max-height:275px;position:static;outline:0;margin:0;padding:8px 0;list-style-type:none}.mdc-menu-surface.mat-mdc-select-panel:focus{outline:none}.cdk-high-contrast-active .mdc-menu-surface.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) .mdc-menu-surface.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above .mdc-menu-surface.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[a$.transformPanel]},changeDetection:0}),n})(),p$=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=Jt({providers:[d$],imports:[ya,Bf,sb,Gn,Rd,db,sb,Gn]}),n})();function g$(n,t){if(1&n){const e=Zt();v(0,"div",2)(1,"button",3),ue("click",function(){return nt(e),at(ne().action())}),E(2),y()()}if(2&n){const e=ne();I(2),bi(" ",e.data.action," ")}}const _$=["label"];function b$(n,t){}const y$=Math.pow(2,31)-1;class vb{constructor(t,e){this._overlayRef=e,this._afterDismissed=new ke,this._afterOpened=new ke,this._onAction=new ke,this._dismissedByAction=!1,this.containerInstance=t,t._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(t){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(t,y$))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}const Ix=new De("MatSnackBarData");class Cb{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}let v$=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=C({type:n,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]}),n})(),C$=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=C({type:n,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]}),n})(),x$=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=C({type:n,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]}),n})(),w$=(()=>{class n{constructor(e,i){this.snackBarRef=e,this.data=i}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return n.\u0275fac=function(e){return new(e||n)(D(vb),D(Ix))},n.\u0275cmp=S({type:n,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions","",4,"ngIf"],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(e,i){1&e&&(v(0,"div",0),E(1),y(),X(2,g$,3,1,"div",1)),2&e&&(I(1),bi(" ",i.data.message,"\n"),I(1),B("ngIf",i.hasAction))},dependencies:[Di,Yi,v$,C$,x$],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0}),n})();const D$={snackBarState:nl("state",[va("void, hidden",Ei({transform:"scale(0.8)",opacity:0})),va("visible",Ei({transform:"scale(1)",opacity:1})),wo("* => visible",xo("150ms cubic-bezier(0, 0, 0.2, 1)")),wo("* => void, * => hidden",xo("75ms cubic-bezier(0.4, 0.0, 1, 1)",Ei({opacity:0})))])};let M$=0,T$=(()=>{class n extends fx{constructor(e,i,r,o,a){super(),this._ngZone=e,this._elementRef=i,this._changeDetectorRef=r,this._platform=o,this.snackBarConfig=a,this._document=_i(hn),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new ke,this._onExit=new ke,this._onEnter=new ke,this._animationState="void",this._liveElementId="mat-snack-bar-container-live-"+M$++,this.attachDomPortal=c=>{this._assertNotAttached();const d=this._portalOutlet.attachDomPortal(c);return this._afterPortalAttached(),d},this._live="assertive"!==a.politeness||a.announcementMessage?"off"===a.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(e){this._assertNotAttached();const i=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),i}attachTemplatePortal(e){this._assertNotAttached();const i=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),i}onAnimationEnd(e){const{fromState:i,toState:r}=e;if(("void"===r&&"void"!==i||"hidden"===r)&&this._completeExit(),"visible"===r){const o=this._onEnter;this._ngZone.run(()=>{o.next(),o.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe(Hr(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_afterPortalAttached(){const e=this._elementRef.nativeElement,i=this.snackBarConfig.panelClass;i&&(Array.isArray(i)?i.forEach(r=>e.classList.add(r)):e.classList.add(i)),this._exposeToModals()}_exposeToModals(){const e=this._liveElementId,i=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let r=0;r{const i=e.getAttribute("aria-owns");if(i){const r=i.replace(this._liveElementId,"").trim();r.length>0?e.setAttribute("aria-owns",r):e.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const e=this._elementRef.nativeElement.querySelector("[aria-hidden]"),i=this._elementRef.nativeElement.querySelector("[aria-live]");if(e&&i){let r=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&(r=document.activeElement),e.removeAttribute("aria-hidden"),i.appendChild(e),r?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return n.\u0275fac=function(e){return new(e||n)(D(qt),D(k),D(li),D(Oi),D(Cb))},n.\u0275dir=C({type:n,viewQuery:function(e,i){if(1&e&&Hn(Lf,7),2&e){let r;kt(r=Et())&&(i._portalOutlet=r.first)}},features:[ht]}),n})(),k$=(()=>{class n extends T${_afterPortalAttached(){super._afterPortalAttached();const e=this._label.nativeElement,i="mdc-snackbar__label";e.classList.toggle(i,!e.querySelector(`.${i}`))}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=ai(n)))(i||n)}}(),n.\u0275cmp=S({type:n,selectors:[["mat-snack-bar-container"]],viewQuery:function(e,i){if(1&e&&Hn(_$,7),2&e){let r;kt(r=Et())&&(i._label=r.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container","mdc-snackbar--open"],hostVars:1,hostBindings:function(e,i){1&e&&vv("@state.done",function(o){return i.onAnimationEnd(o)}),2&e&&Tv("@state",i._animationState)},features:[ht],decls:6,vars:3,consts:[[1,"mdc-snackbar__surface"],[1,"mat-mdc-snack-bar-label"],["label",""],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(e,i){1&e&&(v(0,"div",0)(1,"div",1,2)(3,"div",3),X(4,b$,0,0,"ng-template",4),y(),Pe(5,"div"),y()()),2&e&&(I(5),$t("aria-live",i._live)("role",i._role)("id",i._liveElementId))},dependencies:[Lf],styles:['.mdc-snackbar{display:none;position:fixed;right:0;bottom:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;pointer-events:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mdc-snackbar--opening,.mdc-snackbar--open,.mdc-snackbar--closing{display:flex}.mdc-snackbar--open .mdc-snackbar__label,.mdc-snackbar--open .mdc-snackbar__actions{visibility:visible}.mdc-snackbar__surface{padding-left:0;padding-right:8px;display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;transform:scale(0.8);opacity:0}.mdc-snackbar__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-snackbar__surface::before{border-color:CanvasText}}[dir=rtl] .mdc-snackbar__surface,.mdc-snackbar__surface[dir=rtl]{padding-left:8px;padding-right:0}.mdc-snackbar--open .mdc-snackbar__surface{transform:scale(1);opacity:1;pointer-events:auto}.mdc-snackbar--closing .mdc-snackbar__surface{transform:scale(1)}.mdc-snackbar__label{padding-left:16px;padding-right:8px;width:100%;flex-grow:1;box-sizing:border-box;margin:0;visibility:hidden;padding-top:14px;padding-bottom:14px}[dir=rtl] .mdc-snackbar__label,.mdc-snackbar__label[dir=rtl]{padding-left:8px;padding-right:16px}.mdc-snackbar__label::before{display:inline;content:attr(data-mdc-snackbar-label-text)}.mdc-snackbar__actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box;visibility:hidden}.mdc-snackbar__action+.mdc-snackbar__dismiss{margin-left:8px;margin-right:0}[dir=rtl] .mdc-snackbar__action+.mdc-snackbar__dismiss,.mdc-snackbar__action+.mdc-snackbar__dismiss[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-snack-bar-container{margin:8px;position:static}.mat-mdc-snack-bar-container .mdc-snackbar__surface{min-width:344px}@media(max-width: 480px),(max-width: 344px){.mat-mdc-snack-bar-container .mdc-snackbar__surface{min-width:100%}}@media(max-width: 480px),(max-width: 344px){.mat-mdc-snack-bar-container{width:100vw}}.mat-mdc-snack-bar-container .mdc-snackbar__surface{max-width:672px}.mat-mdc-snack-bar-container .mdc-snackbar__surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12)}.mat-mdc-snack-bar-container .mdc-snackbar__dismiss .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size, var(--mdc-snackbar-icon-size, 24px))}.mat-mdc-snack-bar-container .mdc-snackbar__dismiss svg,.mat-mdc-snack-bar-container .mdc-snackbar__dismiss img{width:var(--mdc-icon-button-icon-size, var(--mdc-snackbar-icon-size, 24px));height:var(--mdc-icon-button-icon-size, var(--mdc-snackbar-icon-size, 24px))}.mat-mdc-snack-bar-container .mdc-snackbar__surface{background-color:var(--mdc-snackbar-container-color, inherit)}.mat-mdc-snack-bar-container .mdc-snackbar__surface{border-radius:var(--mdc-snackbar-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-snack-bar-container .mdc-snackbar__label{color:var(--mdc-snackbar-supporting-text-color, inherit)}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-size:var(--mdc-snackbar-supporting-text-size, inherit);font-family:var(--mdc-snackbar-supporting-text-font, inherit);font-weight:var(--mdc-snackbar-supporting-text-weight, inherit);line-height:var(--mdc-snackbar-supporting-text-line-height, inherit)}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){color:var(--mat-mdc-snack-bar-button-color, transparent);--mat-mdc-button-persistent-ripple-color: currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{background-color:currentColor;opacity:.1}.mat-mdc-snack-bar-container .mdc-snackbar__label::before{display:none}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-handset .mdc-snackbar__surface{width:100%}'],encapsulation:2,data:{animation:[D$.snackBarState]}}),n})(),tA=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=Jt({imports:[Bf,px,ya,TI,Gn,Gn]}),n})();const nA=new De("mat-snack-bar-default-options",{providedIn:"root",factory:function E$(){return new Cb}});let S$=(()=>{class n{get _openedSnackBarRef(){const e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}constructor(e,i,r,o,a,c){this._overlay=e,this._live=i,this._injector=r,this._breakpointObserver=o,this._parentSnackBar=a,this._defaultConfig=c,this._snackBarRefAtThisLevel=null}openFromComponent(e,i){return this._attach(e,i)}openFromTemplate(e,i){return this._attach(e,i)}open(e,i="",r){const o={...this._defaultConfig,...r};return o.data={message:e,action:i},o.announcementMessage===e&&(o.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,o)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,i){const o=Ko.create({parent:i&&i.viewContainerRef&&i.viewContainerRef.injector||this._injector,providers:[{provide:Cb,useValue:i}]}),a=new ab(this.snackBarContainerComponent,i.viewContainerRef,o),c=e.attach(a);return c.instance.snackBarConfig=i,c.instance}_attach(e,i){const r={...new Cb,...this._defaultConfig,...i},o=this._createOverlay(r),a=this._attachSnackBarContainer(o,r),c=new vb(a,o);if(e instanceof fr){const d=new Vd(e,null,{$implicit:r.data,snackBarRef:c});c.instance=a.attachTemplatePortal(d)}else{const d=this._createInjector(r,c),h=new ab(e,void 0,d),p=a.attachComponentPortal(h);c.instance=p.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(xn(o.detachments())).subscribe(d=>{o.overlayElement.classList.toggle(this.handsetCssClass,d.matches)}),r.announcementMessage&&a._onAnnounce.subscribe(()=>{this._live.announce(r.announcementMessage,r.politeness)}),this._animateSnackBar(c,r),this._openedSnackBarRef=c,this._openedSnackBarRef}_animateSnackBar(e,i){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),i.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter(),i.duration&&i.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(i.duration))}_createOverlay(e){const i=new Nf;i.direction=e.direction;let r=this._overlay.position().global();const o="rtl"===e.direction,a="left"===e.horizontalPosition||"start"===e.horizontalPosition&&!o||"end"===e.horizontalPosition&&o,c=!a&&"center"!==e.horizontalPosition;return a?r.left("0"):c?r.right("0"):r.centerHorizontally(),"top"===e.verticalPosition?r.top("0"):r.bottom("0"),i.positionStrategy=r,this._overlay.create(i)}_createInjector(e,i){return Ko.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:vb,useValue:i},{provide:Ix,useValue:e.data}]})}}return n.\u0275fac=function(e){return new(e||n)(ie(Da),ie(QC),ie(Ko),ie(ZC),ie(n,12),ie(nA))},n.\u0275prov=rt({token:n,factory:n.\u0275fac}),n})(),I$=(()=>{class n extends S${constructor(e,i,r,o,a,c){super(e,i,r,o,a,c),this.simpleSnackBarComponent=w$,this.snackBarContainerComponent=k$,this.handsetCssClass="mat-mdc-snack-bar-handset"}}return n.\u0275fac=function(e){return new(e||n)(ie(Da),ie(QC),ie(Ko),ie(ZC),ie(n,12),ie(nA))},n.\u0275prov=rt({token:n,factory:n.\u0275fac,providedIn:tA}),n})();function A$(n,t){}const F$=function(n){return{animationDuration:n}},O$=function(n,t){return{value:n,params:t}};function R$(n,t){1&n&&en(0)}const iA=["*"],P$=["tabListContainer"],L$=["tabList"],N$=["tabListInner"],B$=["nextPaginator"],V$=["previousPaginator"],H$=["tabBodyWrapper"],z$=["tabHeader"];function $$(n,t){}function j$(n,t){1&n&&X(0,$$,0,0,"ng-template",14),2&n&&B("cdkPortalOutlet",ne().$implicit.templateLabel)}function U$(n,t){1&n&&E(0),2&n&&Qt(ne().$implicit.textLabel)}function W$(n,t){if(1&n){const e=Zt();v(0,"div",6,7),ue("click",function(){const r=nt(e),o=r.$implicit,a=r.index,c=ne(),d=Xo(1);return at(c._handleClick(o,d,a))})("cdkFocusChange",function(r){const a=nt(e).index;return at(ne()._tabFocusChanged(r,a))}),Pe(2,"span",8)(3,"div",9),v(4,"span",10)(5,"span",11),X(6,j$,1,1,"ng-template",12),X(7,U$,1,1,"ng-template",null,13,zg),y()()()}if(2&n){const e=t.$implicit,i=t.index,r=Xo(1),o=Xo(8),a=ne();un("mdc-tab--active",a.selectedIndex===i),B("id",a._getTabLabelId(i))("ngClass",e.labelClass)("disabled",e.disabled)("fitInkBarToContent",a.fitInkBarToContent),$t("tabIndex",a._getTabIndex(i))("aria-posinset",i+1)("aria-setsize",a._tabs.length)("aria-controls",a._getTabContentId(i))("aria-selected",a.selectedIndex===i)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),I(3),B("matRippleTrigger",r)("matRippleDisabled",e.disabled||a.disableRipple),I(3),B("ngIf",e.templateLabel)("ngIfElse",o)}}function G$(n,t){if(1&n){const e=Zt();v(0,"mat-tab-body",15),ue("_onCentered",function(){return nt(e),at(ne()._removeTabBodyWrapperHeight())})("_onCentering",function(r){return nt(e),at(ne()._setTabBodyWrapperHeight(r))}),y()}if(2&n){const e=t.$implicit,i=t.index,r=ne();un("mat-mdc-tab-body-active",r.selectedIndex===i),B("id",r._getTabContentId(i))("ngClass",e.bodyClass)("content",e.content)("position",e.position)("origin",e.origin)("animationDuration",r.animationDuration)("preserveContent",r.preserveContent),$t("tabindex",null!=r.contentTabIndex&&r.selectedIndex===i?r.contentTabIndex:null)("aria-labelledby",r._getTabLabelId(i))}}const Y$={translateTab:nl("translateTab",[va("center, void, left-origin-center, right-origin-center",Ei({transform:"none"})),va("left",Ei({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),va("right",Ei({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),wo("* => left, * => right, left => center, right => center",xo("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),wo("void => left-origin-center",[Ei({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),xo("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),wo("void => right-origin-center",[Ei({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),xo("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let Z$=(()=>{class n extends Lf{constructor(e,i,r,o){super(e,i,o),this._host=r,this._centeringSub=re.EMPTY,this._leavingSub=re.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(Br(this._host._isCenterPosition(this._host._position))).subscribe(e=>{e&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(D(x),D(pr),D(on(()=>rA)),D(hn))},n.\u0275dir=C({type:n,selectors:[["","matTabBodyHost",""]],features:[ht]}),n})(),q$=(()=>{class n{set position(e){this._positionIndex=e,this._computePositionAnimationState()}constructor(e,i,r){this._elementRef=e,this._dir=i,this._dirChangeSubscription=re.EMPTY,this._translateTabComplete=new ke,this._onCentering=new Xe,this._beforeCentering=new Xe,this._afterLeavingCenter=new Xe,this._onCentered=new Xe(!0),this.animationDuration="500ms",this.preserveContent=!1,i&&(this._dirChangeSubscription=i.change.subscribe(o=>{this._computePositionAnimationState(o),r.markForCheck()})),this._translateTabComplete.pipe(GC((o,a)=>o.fromState===a.fromState&&o.toState===a.toState)).subscribe(o=>{this._isCenterPosition(o.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(o.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(e){const i=this._isCenterPosition(e.toState);this._beforeCentering.emit(i),i&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(e){return"center"==e||"left-origin-center"==e||"right-origin-center"==e}_computePositionAnimationState(e=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==e?"left":"right":this._positionIndex>0?"ltr"==e?"right":"left":"center"}_computePositionFromOrigin(e){const i=this._getLayoutDirection();return"ltr"==i&&e<=0||"rtl"==i&&e>0?"left-origin-center":"right-origin-center"}}return n.\u0275fac=function(e){return new(e||n)(D(k),D(Vr,8),D(li))},n.\u0275dir=C({type:n,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),n})(),rA=(()=>{class n extends q${constructor(e,i,r){super(e,i,r)}}return n.\u0275fac=function(e){return new(e||n)(D(k),D(Vr,8),D(li))},n.\u0275cmp=S({type:n,selectors:[["mat-tab-body"]],viewQuery:function(e,i){if(1&e&&Hn(Lf,5),2&e){let r;kt(r=Et())&&(i._portalHost=r.first)}},hostAttrs:[1,"mat-mdc-tab-body"],features:[ht],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-mdc-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(e,i){1&e&&(v(0,"div",0,1),ue("@translateTab.start",function(o){return i._onTranslateTabStarted(o)})("@translateTab.done",function(o){return i._translateTabComplete.next(o)}),X(2,A$,0,0,"ng-template",2),y()),2&e&&B("@translateTab",BD(3,O$,i._position,function ND(n,t,e,i){return VD(Ee(),to(),n,t,e,i)}(1,F$,i.animationDuration)))},dependencies:[Z$],styles:['.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-mdc-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[Y$.translateTab]}}),n})();const K$=new De("MatTabContent");let X$=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(D(fr))},n.\u0275dir=C({type:n,selectors:[["","matTabContent",""]],features:[jt([{provide:K$,useExisting:n}])]}),n})();const Q$=new De("MatTabLabel"),oA=new De("MAT_TAB");let sA=(()=>{class n extends z8{constructor(e,i,r){super(e,i),this._closestTab=r}}return n.\u0275fac=function(e){return new(e||n)(D(fr),D(pr),D(oA,8))},n.\u0275dir=C({type:n,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[jt([{provide:Q$,useExisting:n}]),ht]}),n})();const Ax="mdc-tab-indicator--active",aA="mdc-tab-indicator--no-transition";class J${constructor(t){this._items=t}hide(){this._items.forEach(t=>t.deactivateInkBar())}alignToElement(t){const e=this._items.find(r=>r.elementRef.nativeElement===t),i=this._currentItem;if(i?.deactivateInkBar(),e){const r=i?.elementRef.nativeElement.getBoundingClientRect?.();e.activateInkBar(r),this._currentItem=e}}}function ej(n){return class extends n{constructor(...t){super(...t),this._fitToContent=!1}get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(t){const e=At(t);this._fitToContent!==e&&(this._fitToContent=e,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(t){const e=this.elementRef.nativeElement;if(!t||!e.getBoundingClientRect||!this._inkBarContentElement)return void e.classList.add(Ax);const i=e.getBoundingClientRect(),r=t.width/i.width,o=t.left-i.left;e.classList.add(aA),this._inkBarContentElement.style.setProperty("transform",`translateX(${o}px) scaleX(${r})`),e.getBoundingClientRect(),e.classList.remove(aA),e.classList.add(Ax),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this.elementRef.nativeElement.classList.remove(Ax)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){const t=this.elementRef.nativeElement.ownerDocument||document;this._inkBarElement=t.createElement("span"),this._inkBarContentElement=t.createElement("span"),this._inkBarElement.className="mdc-tab-indicator",this._inkBarContentElement.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",this._inkBarElement.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){(this._fitToContent?this.elementRef.nativeElement.querySelector(".mdc-tab__content"):this.elementRef.nativeElement).appendChild(this._inkBarElement)}}}const nj=Ld(class{}),ij=ej((()=>{class n extends nj{constructor(e){super(),this.elementRef=e}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return n.\u0275fac=function(e){return new(e||n)(D(k))},n.\u0275dir=C({type:n,features:[ht]}),n})());let cA=(()=>{class n extends ij{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=ai(n)))(i||n)}}(),n.\u0275dir=C({type:n,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(e,i){2&e&&($t("aria-disabled",!!i.disabled),un("mat-mdc-tab-disabled",i.disabled))},inputs:{disabled:"disabled",fitInkBarToContent:"fitInkBarToContent"},features:[ht]}),n})();const rj=Ld(class{}),lA=new De("MAT_TAB_GROUP");let oj=(()=>{class n extends rj{get content(){return this._contentPortal}constructor(e,i){super(),this._viewContainerRef=e,this._closestTabGroup=i,this.textLabel="",this._contentPortal=null,this._stateChanges=new ke,this.position=null,this.origin=null,this.isActive=!1}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new Vd(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}}return n.\u0275fac=function(e){return new(e||n)(D(pr),D(lA,8))},n.\u0275dir=C({type:n,viewQuery:function(e,i){if(1&e&&Hn(fr,7),2&e){let r;kt(r=Et())&&(i._implicitContent=r.first)}},inputs:{textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},features:[ht,ji]}),n})(),dA=(()=>{class n extends oj{get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=ai(n)))(i||n)}}(),n.\u0275cmp=S({type:n,selectors:[["mat-tab"]],contentQueries:function(e,i,r){if(1&e&&(zn(r,X$,7,fr),zn(r,sA,5)),2&e){let o;kt(o=Et())&&(i._explicitContent=o.first),kt(o=Et())&&(i.templateLabel=o.first)}},inputs:{disabled:"disabled"},exportAs:["matTab"],features:[jt([{provide:oA,useExisting:n}]),ht],ngContentSelectors:iA,decls:1,vars:0,template:function(e,i){1&e&&(wi(),X(0,R$,1,0,"ng-template"))},encapsulation:2}),n})();const uA=Ja({passive:!0});let cj=(()=>{class n{get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=At(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){e=kc(e),this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}constructor(e,i,r,o,a,c,d){this._elementRef=e,this._changeDetectorRef=i,this._viewportRuler=r,this._dir=o,this._ngZone=a,this._platform=c,this._animationMode=d,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new ke,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new ke,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new Xe,this.indexFocused=new Xe,a.runOutsideAngular(()=>{Ec(e.nativeElement,"mouseleave").pipe(xn(this._destroyed)).subscribe(()=>{this._stopInterval()})})}ngAfterViewInit(){Ec(this._previousPaginator.nativeElement,"touchstart",uA).pipe(xn(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),Ec(this._nextPaginator.nativeElement,"touchstart",uA).pipe(xn(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const e=this._dir?this._dir.change:Cs("ltr"),i=this._viewportRuler.change(150),r=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new XC(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe(Hr(1)).subscribe(r),si(e,i,this._items.changes,this._itemsResized()).pipe(xn(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),r()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(o=>{this.indexFocused.emit(o),this._setTabFocus(o)})}_itemsResized(){return"function"!=typeof ResizeObserver?Zn:this._items.changes.pipe(Br(this._items),Sc(e=>new ye(i=>this._ngZone.runOutsideAngular(()=>{const r=new ResizeObserver(o=>i.next(o));return e.forEach(o=>r.observe(o.elementRef.nativeElement)),()=>{r.disconnect()}}))),WC(1),xs(e=>e.some(i=>i.contentRect.width>0&&i.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(e){if(!Ws(e))switch(e.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){const i=this._items.get(this.focusIndex);i&&!i.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(e))}break;default:this._keyManager.onKeydown(e)}}_onContentChanges(){const e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(e){!this._isValidIndex(e)||this.focusIndex===e||!this._keyManager||this._keyManager.setActiveItem(e)}_isValidIndex(e){return!this._items||!!this._items.toArray()[e]}_setTabFocus(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].focus();const i=this._tabListContainer.nativeElement;i.scrollLeft="ltr"==this._getLayoutDirection()?0:i.scrollWidth-i.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const e=this.scrollDistance,i="ltr"===this._getLayoutDirection()?-e:e;this._tabList.nativeElement.style.transform=`translateX(${Math.round(i)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(e){this._scrollTo(e)}_scrollHeader(e){return this._scrollTo(this._scrollDistance+("before"==e?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;const i=this._items?this._items.toArray()[e]:null;if(!i)return;const r=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:o,offsetWidth:a}=i.elementRef.nativeElement;let c,d;"ltr"==this._getLayoutDirection()?(c=o,d=c+a):(d=this._tabListInner.nativeElement.offsetWidth-o,c=d-a);const h=this.scrollDistance,p=this.scrollDistance+r;cp&&(this.scrollDistance+=d-p+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const e=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;e||(this.scrollDistance=0),e!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=e}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,i=e?e.elementRef.nativeElement:null;i?this._inkBar.alignToElement(i):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,i){i&&null!=i.button&&0!==i.button||(this._stopInterval(),U_(650,100).pipe(xn(si(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:r,distance:o}=this._scrollHeader(e);(0===o||o>=r)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const i=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(i,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:i,distance:this._scrollDistance}}}return n.\u0275fac=function(e){return new(e||n)(D(k),D(li),D(ol),D(Vr,8),D(qt),D(Oi),D(Lr,8))},n.\u0275dir=C({type:n,inputs:{disablePagination:"disablePagination"}}),n})(),lj=(()=>{class n extends cj{get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=At(e)}constructor(e,i,r,o,a,c,d){super(e,i,r,o,a,c,d),this._disableRipple=!1}_itemSelected(e){e.preventDefault()}}return n.\u0275fac=function(e){return new(e||n)(D(k),D(li),D(ol),D(Vr,8),D(qt),D(Oi),D(Lr,8))},n.\u0275dir=C({type:n,inputs:{disableRipple:"disableRipple"},features:[ht]}),n})(),dj=(()=>{class n extends lj{constructor(e,i,r,o,a,c,d){super(e,i,r,o,a,c,d)}ngAfterContentInit(){this._inkBar=new J$(this._items),super.ngAfterContentInit()}}return n.\u0275fac=function(e){return new(e||n)(D(k),D(li),D(ol),D(Vr,8),D(qt),D(Oi),D(Lr,8))},n.\u0275cmp=S({type:n,selectors:[["mat-tab-header"]],contentQueries:function(e,i,r){if(1&e&&zn(r,cA,4),2&e){let o;kt(o=Et())&&(i._items=o)}},viewQuery:function(e,i){if(1&e&&(Hn(P$,7),Hn(L$,7),Hn(N$,7),Hn(B$,5),Hn(V$,5)),2&e){let r;kt(r=Et())&&(i._tabListContainer=r.first),kt(r=Et())&&(i._tabList=r.first),kt(r=Et())&&(i._tabListInner=r.first),kt(r=Et())&&(i._nextPaginator=r.first),kt(r=Et())&&(i._previousPaginator=r.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(e,i){2&e&&un("mat-mdc-tab-header-pagination-controls-enabled",i._showPaginationControls)("mat-mdc-tab-header-rtl","rtl"==i._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[ht],ngContentSelectors:iA,decls:13,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-mdc-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(e,i){1&e&&(wi(),v(0,"button",0,1),ue("click",function(){return i._handlePaginatorClick("before")})("mousedown",function(o){return i._handlePaginatorPress("before",o)})("touchend",function(){return i._stopInterval()}),Pe(2,"div",2),y(),v(3,"div",3,4),ue("keydown",function(o){return i._handleKeydown(o)}),v(5,"div",5,6),ue("cdkObserveContent",function(){return i._onContentChanges()}),v(7,"div",7,8),en(9),y()()(),v(10,"button",9,10),ue("mousedown",function(o){return i._handlePaginatorPress("after",o)})("click",function(){return i._handlePaginatorClick("after")})("touchend",function(){return i._stopInterval()}),Pe(12,"div",2),y()),2&e&&(un("mat-mdc-tab-header-pagination-disabled",i._disableScrollBefore),B("matRippleDisabled",i._disableScrollBefore||i.disableRipple)("disabled",i._disableScrollBefore||null),I(3),un("_mat-animation-noopable","NoopAnimations"===i._animationMode),I(7),un("mat-mdc-tab-header-pagination-disabled",i._disableScrollAfter),B("matRippleDisabled",i._disableScrollAfter||i.disableRipple)("disabled",i._disableScrollAfter||null))},dependencies:[ts,iS],styles:[".mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}._mat-animation-noopable span.mdc-tab-indicator__content,._mat-animation-noopable span.mdc-tab__text-label{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.mat-mdc-tab::before{margin:5px}.cdk-high-contrast-active .mat-mdc-tab[aria-disabled=true]{color:GrayText}"],encapsulation:2}),n})();const mA=new De("MAT_TABS_CONFIG");let uj=0;const hj=Dh(nd(class{constructor(n){this._elementRef=n}}),"primary");let mj=(()=>{class n extends hj{get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(e){this._dynamicHeight=At(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=kc(e,null)}get animationDuration(){return this._animationDuration}set animationDuration(e){this._animationDuration=/^\d+$/.test(e+"")?e+"ms":e}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=kc(e,null)}get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=At(e)}get preserveContent(){return this._preserveContent}set preserveContent(e){this._preserveContent=At(e)}get backgroundColor(){return this._backgroundColor}set backgroundColor(e){const i=this._elementRef.nativeElement.classList;i.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&i.add("mat-tabs-with-background",`mat-background-${e}`),this._backgroundColor=e}constructor(e,i,r,o){super(e),this._changeDetectorRef=i,this._animationMode=o,this._tabs=new Yl,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=re.EMPTY,this._tabLabelSubscription=re.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new Xe,this.focusChange=new Xe,this.animationDone=new Xe,this.selectedTabChange=new Xe(!0),this._groupId=uj++,this.animationDuration=r&&r.animationDuration?r.animationDuration:"500ms",this.disablePagination=!(!r||null==r.disablePagination)&&r.disablePagination,this.dynamicHeight=!(!r||null==r.dynamicHeight)&&r.dynamicHeight,this.contentTabIndex=r?.contentTabIndex??null,this.preserveContent=!!r?.preserveContent}ngAfterContentChecked(){const e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){const i=null==this._selectedIndex;if(!i){this.selectedTabChange.emit(this._createChangeEvent(e));const r=this._tabBodyWrapper.nativeElement;r.style.minHeight=r.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((r,o)=>r.isActive=o===e),i||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((i,r)=>{i.position=r-e,null!=this._selectedIndex&&0==i.position&&!i.origin&&(i.origin=e-this._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const e=this._clampTabIndex(this._indexToSelect);if(e===this._selectedIndex){const i=this._tabs.toArray();let r;for(let o=0;o{i[e].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(e))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(Br(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(i=>i._closestTabGroup===this||!i._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(e){const i=this._tabHeader;i&&(i.focusIndex=e)}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){const i=new pj;return i.index=e,this._tabs&&this._tabs.length&&(i.tab=this._tabs.toArray()[e]),i}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=si(...this._tabs.map(e=>e._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(e){return Math.min(this._tabs.length-1,Math.max(e||0,0))}_getTabLabelId(e){return`mat-tab-label-${this._groupId}-${e}`}_getTabContentId(e){return`mat-tab-content-${this._groupId}-${e}`}_setTabBodyWrapperHeight(e){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const i=this._tabBodyWrapper.nativeElement;i.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(i.style.height=e+"px")}_removeTabBodyWrapperHeight(){const e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this.animationDone.emit()}_handleClick(e,i,r){i.focusIndex=r,e.disabled||(this.selectedIndex=r)}_getTabIndex(e){return e===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(e,i){e&&"mouse"!==e&&"touch"!==e&&(this._tabHeader.focusIndex=i)}}return n.\u0275fac=function(e){return new(e||n)(D(k),D(li),D(mA,8),D(Lr,8))},n.\u0275dir=C({type:n,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[ht]}),n})(),fj=(()=>{class n extends mj{get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(e){this._fitInkBarToContent=At(e),this._changeDetectorRef.markForCheck()}get stretchTabs(){return this._stretchTabs}set stretchTabs(e){this._stretchTabs=At(e)}constructor(e,i,r,o){super(e,i,r,o),this._fitInkBarToContent=!1,this._stretchTabs=!0,this.fitInkBarToContent=!(!r||null==r.fitInkBarToContent)&&r.fitInkBarToContent}}return n.\u0275fac=function(e){return new(e||n)(D(k),D(li),D(mA,8),D(Lr,8))},n.\u0275cmp=S({type:n,selectors:[["mat-tab-group"]],contentQueries:function(e,i,r){if(1&e&&zn(r,dA,5),2&e){let o;kt(o=Et())&&(i._allTabs=o)}},viewQuery:function(e,i){if(1&e&&(Hn(H$,5),Hn(z$,5)),2&e){let r;kt(r=Et())&&(i._tabBodyWrapper=r.first),kt(r=Et())&&(i._tabHeader=r.first)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:6,hostBindings:function(e,i){2&e&&un("mat-mdc-tab-group-dynamic-height",i.dynamicHeight)("mat-mdc-tab-group-inverted-header","below"===i.headerPosition)("mat-mdc-tab-group-stretch-tabs",i.stretchTabs)},inputs:{color:"color",disableRipple:"disableRipple",fitInkBarToContent:"fitInkBarToContent",stretchTabs:["mat-stretch-tabs","stretchTabs"]},exportAs:["matTabGroup"],features:[jt([{provide:lA,useExisting:n}]),ht],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mdc-tab mat-mdc-tab mat-mdc-focus-indicator","role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",3,"id","mdc-tab--active","ngClass","disabled","fitInkBarToContent","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-mdc-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-mdc-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"id","ngClass","disabled","fitInkBarToContent","click","cdkFocusChange"],["tabNode",""],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(e,i){1&e&&(v(0,"mat-tab-header",0,1),ue("indexFocused",function(o){return i._focusChanged(o)})("selectFocusedIndex",function(o){return i.selectedIndex=o}),X(2,W$,9,17,"div",2),y(),v(3,"div",3,4),X(5,G$,1,11,"mat-tab-body",5),y()),2&e&&(B("selectedIndex",i.selectedIndex||0)("disableRipple",i.disableRipple)("disablePagination",i.disablePagination),I(2),B("ngForOf",i._tabs),I(1),un("_mat-animation-noopable","NoopAnimations"===i._animationMode),I(2),B("ngForOf",i._tabs))},dependencies:[uh,ys,Di,Lf,ts,r8,rA,cA,dj],styles:['.mdc-tab{min-width:90px;padding-right:24px;padding-left:24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;margin:0;padding-top:0;padding-bottom:0;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;-webkit-appearance:none;z-index:1}.mdc-tab::-moz-focus-inner{padding:0;border:0}.mdc-tab[hidden]{display:none}.mdc-tab--min-width{flex:0 1 auto}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab__icon{transition:150ms color linear;z-index:2}.mdc-tab--stacked .mdc-tab__content{flex-direction:column;align-items:center;justify-content:center}.mdc-tab--stacked .mdc-tab__text-label{padding-top:6px;padding-bottom:4px}.mdc-tab--active .mdc-tab__text-label,.mdc-tab--active .mdc-tab__icon{transition-delay:100ms}.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label{padding-left:8px;padding-right:0}[dir=rtl] .mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label,.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label[dir=rtl]{padding-left:0;padding-right:8px}.mdc-tab-indicator .mdc-tab-indicator__content--underline{border-top-width:2px}.mdc-tab-indicator .mdc-tab-indicator__content--icon{height:34px;font-size:34px}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator__content--icon{align-self:center;margin:0 auto}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}.mdc-tab-indicator .mdc-tab-indicator__content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition:150ms opacity linear}.mdc-tab-indicator--active.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition-delay:100ms}.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-tab.mdc-tab{height:48px;flex-grow:0}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none}.mat-mdc-tab .mdc-tab__text-label{display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-disabled{opacity:.4}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-mdc-tab-header-with-background-background-color, transparent)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab-indicator__content--underline,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-focus-indicator::before{border-color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{border-color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}'],encapsulation:2}),n})();class pj{}let gj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=Jt({imports:[ya,Gn,px,Nd,YC,_S,Gn]}),n})();const _j=["*",[["mat-toolbar-row"]]],bj=["*","mat-toolbar-row"],yj=Dh(class{constructor(n){this._elementRef=n}});let vj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=C({type:n,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),n})(),Cj=(()=>{class n extends yj{constructor(e,i,r){super(e),this._platform=i,this._document=r}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return n.\u0275fac=function(e){return new(e||n)(D(k),D(Oi),D(hn))},n.\u0275cmp=S({type:n,selectors:[["mat-toolbar"]],contentQueries:function(e,i,r){if(1&e&&zn(r,vj,5),2&e){let o;kt(o=Et())&&(i._toolbarRows=o)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,i){2&e&&un("mat-toolbar-multiple-rows",i._toolbarRows.length>0)("mat-toolbar-single-row",0===i._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[ht],ngContentSelectors:bj,decls:2,vars:0,template:function(e,i){1&e&&(wi(_j),en(0),en(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color: inherit;--mdc-outlined-button-label-text-color: inherit}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}"],encapsulation:2,changeDetection:0}),n})(),xj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=Jt({imports:[Gn,Gn]}),n})();const wj=["tooltip"],fA=new De("mat-tooltip-scroll-strategy"),Tj={provide:fA,deps:[Da],useFactory:function Mj(n){return()=>n.scrollStrategies.reposition({scrollThrottle:20})}},Ej=new De("mat-tooltip-default-options",{providedIn:"root",factory:function kj(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),pA="tooltip-panel",gA=Ja({passive:!0});let Rj=(()=>{class n{get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(e){this._positionAtOrigin=At(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){this._disabled=At(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=kc(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=kc(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(e,i,r,o,a,c,d,h,p,_,M,A){this._overlay=e,this._elementRef=i,this._scrollDispatcher=r,this._viewContainerRef=o,this._ngZone=a,this._platform=c,this._ariaDescriber=d,this._focusMonitor=h,this._dir=_,this._defaultOptions=M,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new ke,this._scrollStrategy=p,this._document=A,M&&(M.position&&(this.position=M.position),M.positionAtOrigin&&(this.positionAtOrigin=M.positionAtOrigin),M.touchGestures&&(this.touchGestures=M.touchGestures)),_.change.pipe(xn(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(xn(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([i,r])=>{e.removeEventListener(i,r,gA)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay,i){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const r=this._createOverlay(i);this._detach(),this._portal=this._portal||new ab(this._tooltipComponent,this._viewContainerRef);const o=this._tooltipInstance=r.attach(this._portal).instance;o._triggerElement=this._elementRef.nativeElement,o._mouseLeaveHideDelay=this._hideDelay,o.afterHidden().pipe(xn(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),o.show(e)}hide(e=this.hideDelay){const i=this._tooltipInstance;i&&(i.isVisible()?i.hide(e):(i._cancelPendingAnimations(),this._detach()))}toggle(e){this._isTooltipVisible()?this.hide():this.show(void 0,e)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(e){if(this._overlayRef){const o=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&o._origin instanceof k)return this._overlayRef;this._detach()}const i=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),r=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&e||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(i);return r.positionChanges.pipe(xn(this._destroyed)).subscribe(o=>{this._updateCurrentPositionClass(o.connectionPair),this._tooltipInstance&&o.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:r,panelClass:`${this._cssClassPrefix}-${pA}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(xn(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(xn(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(xn(this._destroyed)).subscribe(o=>{this._isTooltipVisible()&&27===o.keyCode&&!Ws(o)&&(o.preventDefault(),o.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const i=e.getConfig().positionStrategy,r=this._getOrigin(),o=this._getOverlayPosition();i.withPositions([this._addOffset({...r.main,...o.main}),this._addOffset({...r.fallback,...o.fallback})])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let r;"above"==i||"below"==i?r={originX:"center",originY:"above"==i?"top":"bottom"}:"before"==i||"left"==i&&e||"right"==i&&!e?r={originX:"start",originY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(r={originX:"end",originY:"center"});const{x:o,y:a}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:o,originY:a}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let r;"above"==i?r={overlayX:"center",overlayY:"bottom"}:"below"==i?r={overlayX:"center",overlayY:"top"}:"before"==i||"left"==i&&e||"right"==i&&!e?r={overlayX:"end",overlayY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(r={overlayX:"start",overlayY:"center"});const{x:o,y:a}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:o,overlayY:a}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Hr(1),xn(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,i){return"above"===this.position||"below"===this.position?"top"===i?i="bottom":"bottom"===i&&(i="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:i}}_updateCurrentPositionClass(e){const{overlayY:i,originX:r,originY:o}=e;let a;if(a="center"===i?this._dir&&"rtl"===this._dir.value?"end"===r?"left":"right":"start"===r?"left":"right":"bottom"===i&&"top"===o?"above":"below",a!==this._currentPosition){const c=this._overlayRef;if(c){const d=`${this._cssClassPrefix}-${pA}-`;c.removePanelClass(d+this._currentPosition),c.addPanelClass(d+a)}this._currentPosition=a}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",e=>{let i;this._setupPointerExitEventsIfNeeded(),void 0!==e.x&&void 0!==e.y&&(i=e),this.show(void 0,i)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",e=>{const i=e.targetTouches?.[0],r=i?{x:i.clientX,y:i.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(void 0,r),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",i=>{const r=i.relatedTarget;(!r||!this._overlayRef?.overlayElement.contains(r))&&this.hide()}],["wheel",i=>this._wheelListener(i)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const i=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",i],["touchcancel",i])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([i,r])=>{this._elementRef.nativeElement.addEventListener(i,r,gA)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const i=this._document.elementFromPoint(e.clientX,e.clientY),r=this._elementRef.nativeElement;i!==r&&!r.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const i=this._elementRef.nativeElement,r=i.style;("on"===e||"INPUT"!==i.nodeName&&"TEXTAREA"!==i.nodeName)&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),("on"===e||!i.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}}return n.\u0275fac=function(e){Om()},n.\u0275dir=C({type:n,inputs:{position:["matTooltipPosition","position"],positionAtOrigin:["matTooltipPositionAtOrigin","positionAtOrigin"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),n})(),cl=(()=>{class n extends Rj{constructor(e,i,r,o,a,c,d,h,p,_,M,A){super(e,i,r,o,a,c,d,h,p,_,M,A),this._tooltipComponent=Lj,this._cssClassPrefix="mat-mdc",this._viewportMargin=8}_addOffset(e){const r=!this._dir||"ltr"==this._dir.value;return"top"===e.originY?e.offsetY=-8:"bottom"===e.originY?e.offsetY=8:"start"===e.originX?e.offsetX=r?-8:8:"end"===e.originX&&(e.offsetX=r?8:-8),e}}return n.\u0275fac=function(e){return new(e||n)(D(Da),D(k),D(bh),D(pr),D(qt),D(Oi),D(U4),D(td),D(fA),D(Vr,8),D(Ej,8),D(hn))},n.\u0275dir=C({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],exportAs:["matTooltip"],features:[ht]}),n})(),Pj=(()=>{class n{constructor(e,i){this._changeDetectorRef=e,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new ke,this._animationsDisabled="NoopAnimations"===i}show(e){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_cancelPendingAnimations(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){const i=this._tooltip.nativeElement,r=this._showAnimation,o=this._hideAnimation;if(i.classList.remove(e?o:r),i.classList.add(e?r:o),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const a=getComputedStyle(i);("0s"===a.getPropertyValue("animation-duration")||"none"===a.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}}return n.\u0275fac=function(e){return new(e||n)(D(li),D(Lr,8))},n.\u0275dir=C({type:n}),n})(),Lj=(()=>{class n extends Pj{constructor(e,i,r){super(e,r),this._elementRef=i,this._isMultiline=!1,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide"}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const e=this._elementRef.nativeElement.getBoundingClientRect();return e.height>24&&e.width>=200}}return n.\u0275fac=function(e){return new(e||n)(D(li),D(k),D(Lr,8))},n.\u0275cmp=S({type:n,selectors:[["mat-tooltip-component"]],viewQuery:function(e,i){if(1&e&&Hn(wj,7),2&e){let r;kt(r=Et())&&(i._tooltip=r.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,i){1&e&&ue("mouseleave",function(o){return i._handleMouseLeave(o)}),2&e&&Vm("zoom",i.isVisible()?1:null)},features:[ht],decls:4,vars:4,consts:[[1,"mdc-tooltip","mdc-tooltip--shown","mat-mdc-tooltip",3,"ngClass","animationend"],["tooltip",""],[1,"mdc-tooltip__surface","mdc-tooltip__surface-animation"]],template:function(e,i){1&e&&(v(0,"div",0,1),ue("animationend",function(o){return i._handleAnimationEnd(o)}),v(2,"div",2),E(3),y()()),2&e&&(un("mdc-tooltip--multiline",i._isMultiline),B("ngClass",i.tooltipClass),I(3),Qt(i.message))},dependencies:[uh],styles:['.mdc-tooltip__surface{word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.mdc-tooltip{position:fixed;display:none;z-index:9}.mdc-tooltip-wrapper--rich{position:relative}.mdc-tooltip--shown,.mdc-tooltip--showing,.mdc-tooltip--hide{display:inline-flex}.mdc-tooltip--shown.mdc-tooltip--rich,.mdc-tooltip--showing.mdc-tooltip--rich,.mdc-tooltip--hide.mdc-tooltip--rich{display:inline-block;left:-320px;position:absolute}.mdc-tooltip__surface{line-height:16px;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center}.mdc-tooltip__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-tooltip__surface::before{border-color:CanvasText}}.mdc-tooltip--rich .mdc-tooltip__surface{align-items:flex-start;display:flex;flex-direction:column;min-height:24px;min-width:40px;max-width:320px;position:relative}.mdc-tooltip--multiline .mdc-tooltip__surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mdc-tooltip__surface,.mdc-tooltip--multiline .mdc-tooltip__surface[dir=rtl]{text-align:right}.mdc-tooltip__surface .mdc-tooltip__title{margin:0 8px}.mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(200px - (2 * 8px));margin:8px;text-align:left}[dir=rtl] .mdc-tooltip__surface .mdc-tooltip__content,.mdc-tooltip__surface .mdc-tooltip__content[dir=rtl]{text-align:right}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(320px - (2 * 8px));align-self:stretch}.mdc-tooltip__surface .mdc-tooltip__content-link{text-decoration:none}.mdc-tooltip--rich-actions,.mdc-tooltip__content,.mdc-tooltip__title{z-index:1}.mdc-tooltip__surface-animation{opacity:0;transform:scale(0.8);will-change:transform,opacity}.mdc-tooltip--shown .mdc-tooltip__surface-animation{transform:scale(1);opacity:1}.mdc-tooltip--hide .mdc-tooltip__surface-animation{transform:scale(1)}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{position:absolute;height:24px;width:24px;transform:rotate(35deg) skewY(20deg) scaleX(0.9396926208)}.mdc-tooltip__caret-surface-top .mdc-elevation-overlay,.mdc-tooltip__caret-surface-bottom .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__caret-surface-bottom{outline:1px solid rgba(0,0,0,0);z-index:-1}@media screen and (forced-colors: active){.mdc-tooltip__caret-surface-bottom{outline-color:CanvasText}}.mdc-tooltip__surface{background-color:var(--mdc-plain-tooltip-container-color, #fff)}.mdc-tooltip__surface{border-radius:var(--mdc-plain-tooltip-container-shape, var(--mdc-shape-small, 4px))}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{border-radius:var(--mdc-plain-tooltip-container-shape, var(--mdc-shape-small, 4px))}.mdc-tooltip__surface{color:var(--mdc-plain-tooltip-supporting-text-color, #000)}.mdc-tooltip__surface{font-family:var(--mdc-plain-tooltip-supporting-text-font, inherit);font-size:var(--mdc-plain-tooltip-supporting-text-size, inherit);font-weight:var(--mdc-plain-tooltip-supporting-text-weight, inherit);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking, inherit)}.mat-mdc-tooltip{position:relative;transform:scale(0)}.mat-mdc-tooltip::before{content:"";top:-8px;right:-8px;bottom:-8px;left:-8px;z-index:-1;position:absolute}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0}),n})(),Nj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=Jt({providers:[Tj],imports:[_S,ya,Bf,Gn,Gn,Rd]}),n})();function Wf(n){return(Wf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(n)}function tc(n,t,e){return(t=function Vj(n){var t=function Bj(n,t){if("object"!==Wf(n)||null===n)return n;var e=n[Symbol.toPrimitive];if(void 0!==e){var i=e.call(n,t||"default");if("object"!==Wf(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(n)}(n,"string");return"symbol"===Wf(t)?t:String(t)}(t))in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}const _A=new De("ngx-segment-analytics.config"),Hj={debug:!1,loadOnInitialization:!0,segmentHost:"cdn.segment.com",segmentUri:"/analytics.js/v1/$API_KEY$/analytics.min.js",plugins:[]};class $d{constructor(){tc(this,"analytics",void 0)}}tc($d,"\u0275fac",function(t){return new(t||$d)}),tc($d,"\u0275prov",rt({token:$d,factory:$d.\u0275fac}));class jd{constructor(t,e,i){if(tc(this,"_w",void 0),tc(this,"_doc",void 0),tc(this,"_config",void 0),this._w=t,this._doc=e,this._config={...Hj,...i},this._config.loadOnInitialization&&(typeof this._config.apiKey>"u"||""===this._config.apiKey))console.error("The API Key cannot be an empty string if Segment must be loaded on initialization.");else if(typeof this._w.analytics>"u"||typeof this._w.analytics.initialize>"u"||!1===this._w.analytics.initialize){if(typeof this._w.analytics<"u"&&!0===this._w.analytics.invoked)return void console.error("Segment snippet included twice.");!0===this._config.debug&&console.log("Segment initialization..."),this._w.analytics=[],this._w.analytics.invoked=!0,this._w.analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware","register"],this._w.analytics.factory=r=>(...o)=>(o.unshift(r),this._w.analytics.push(o),this._w.analytics),this._w.analytics.methods.forEach(r=>{this._w.analytics[r]=this._w.analytics.factory(r)}),this._w.analytics.load=(r,o)=>{const a=this._doc.createElement("script");a.type="text/javascript",a.async=!0,a.src="https://"+this._config.segmentHost+this._config.segmentUri.replace("$API_KEY$",r);const c=this._doc.getElementsByTagName("script")[0];c.parentNode.insertBefore(a,c),this._w.analytics._loadOptions=o},this._w.analytics._writeKey=this._config.apiKey,this._w.analytics.SNIPPET_VERSION="4.15.3",this._config.loadOnInitialization&&this.load(this._config.apiKey)}}load(t,e){this._w.analytics.load(t,e),!0===this._config.debug&&console.log("Segment initialized"),this.debug(this._config.debug)}identify(t,e,i){return new Promise(r=>{this._w.analytics.identify(t,e,i,o=>r(this))})}track(t,e,i){return new Promise(r=>{this._w.analytics.track(t,e,i,o=>r(this))})}page(t,e,i,r){return new Promise(o=>{this._w.analytics.page(t,e,i,r,a=>o(this))})}group(t,e){return new Promise(i=>{this._w.analytics.group(t,e,r=>i(this))})}alias(t,e,i){return new Promise(r=>{this._w.analytics.alias(t,e,i,o=>r(this))})}ready(){return new Promise(t=>{this._w.analytics.ready(e=>t(this))})}user(){return this._w.analytics.user()}id(){return this._w.analytics.id()}setAnonymousId(t){this._w.analytics.setAnonymousId(t)}traits(){return this._w.analytics.user().traits()}reset(){this._w.analytics.reset()}debug(t){this._w.analytics.debug(t)}on(t,e){this._w.analytics.on(t,e)}trackLink(t,e,i){this._w.analytics.trackLink(t,e,i)}trackForm(t,e,i){this._w.analytics.trackForm(t,e,i)}timeout(t){this._w.analytics.timeout(t)}addSourceMiddleware(t){this._w.analytics.addSourceMiddleware(t)}addDestinationMiddleware(t,e){this._w.analytics.addDestinationMiddleware(t,e)}register(...t){return this._w.analytics.register(...t)}get plugins(){return this._w.analytics.plugins}}tc(jd,"\u0275fac",function(t){return new(t||jd)(ie($d),ie(hn),ie(_A))}),tc(jd,"\u0275prov",rt({token:jd,factory:jd.\u0275fac,providedIn:"root"}));class ll{static forRoot(t){return{ngModule:ll,providers:[{provide:_A,useValue:t},jd]}}constructor(t){if(t)throw new Error("SegmentModule is already loaded. Import it in the AppModule only")}}tc(ll,"\u0275fac",function(t){return new(t||ll)(ie(ll,12))}),tc(ll,"\u0275mod",Re({type:ll})),tc(ll,"\u0275inj",Jt({providers:[{provide:$d,useFactory:function zj(n){return gT(n)?window:{}},deps:[Qm]}],imports:[ya]}));var xr=P(5861);let $j=(()=>{class n{constructor(e,i){this.snackbarRef=e,this.message=i.message,this.noLabel=i.noLabel,this.yesLabel=i.yesLabel}doNo(){this.snackbarRef.dismiss()}doYes(){this.snackbarRef.dismissWithAction()}}return n.\u0275fac=function(e){return new(e||n)(D(vb),D(Ix))},n.\u0275cmp=S({type:n,selectors:[["app-confirm"]],decls:6,vars:3,consts:[["data-cy","confirm-no","mat-raised-button","",3,"click"],["data-cy","confirm-yes","mat-raised-button","",3,"click"]],template:function(e,i){1&e&&(v(0,"p"),E(1),y(),v(2,"button",0),ue("click",function(){return i.doNo()}),E(3),y(),v(4,"button",1),ue("click",function(){return i.doYes()}),E(5),y()),2&e&&(I(1),Qt(i.message),I(2),bi("",i.noLabel," "),I(2),Qt(i.yesLabel))},dependencies:[Yi]}),n})(),ns=(()=>{class n{constructor(e){this.http=e,this.base="/api/v1/devstate"}addContainer(e){return this.http.post(this.base+"/container",{name:e.name,image:e.image,command:e.command,args:e.args,env:e.env,memReq:e.memoryRequest,memLimit:e.memoryLimit,cpuReq:e.cpuRequest,cpuLimit:e.cpuLimit,volumeMounts:e.volumeMounts,configureSources:e.configureSources,mountSources:e.mountSources,sourceMapping:e.sourceMapping,annotation:{deployment:e.annotation.deployment,service:e.annotation.service},endpoints:e.endpoints})}addImage(e){return this.http.post(this.base+"/image",{name:e.name,imageName:e.imageName,args:e.args,buildContext:e.buildContext,rootRequired:e.rootRequired,uri:e.uri,autoBuild:e.autoBuild})}saveImage(e){return this.http.patch(this.base+"/image/"+e.name,{imageName:e.imageName,args:e.args,buildContext:e.buildContext,rootRequired:e.rootRequired,uri:e.uri,autoBuild:e.autoBuild})}addResource(e){return this.http.post(this.base+"/resource",{name:e.name,inlined:e.inlined,uri:e.uri,deployByDefault:e.deployByDefault})}saveResource(e){return this.http.patch(this.base+"/resource/"+e.name,{inlined:e.inlined,uri:e.uri,deployByDefault:e.deployByDefault})}addVolume(e){return this.http.post(this.base+"/volume",{name:e.name,ephemeral:e.ephemeral,size:e.size})}saveVolume(e){return this.http.patch(this.base+"/volume/"+e.name,{ephemeral:e.ephemeral,size:e.size})}addExecCommand(e,i){return this.http.post(this.base+"/execCommand",{name:e,component:i.component,commandLine:i.commandLine,workingDir:i.workingDir,hotReloadCapable:i.hotReloadCapable})}addApplyCommand(e,i){return this.http.post(this.base+"/applyCommand",{name:e,component:i.component})}addCompositeCommand(e,i){return this.http.post(this.base+"/compositeCommand",{name:e,parallel:i.parallel,commands:i.commands})}getFlowChart(){return this.http.get(this.base+"/chart")}setDevfileContent(e){return this.http.put(this.base+"/devfile",{content:e})}getDevfileContent(){return this.http.get(this.base+"/devfile")}clearDevfileContent(){return this.http.delete(this.base+"/devfile")}setMetadata(e){return this.http.put(this.base+"/metadata",{name:e.name,version:e.version,displayName:e.displayName,description:e.description,tags:e.tags,architectures:e.architectures,icon:e.icon,globalMemoryLimit:e.globalMemoryLimit,projectType:e.projectType,language:e.language,website:e.website,provider:e.provider,supportUrl:e.supportUrl})}moveCommand(e,i,r,o){return this.http.post(this.base+"/command/0/move",{fromGroup:e,fromIndex:r,toGroup:i,toIndex:o})}setDefaultCommand(e,i){return this.http.post(this.base+"/command/"+e+"/setDefault",{group:i})}unsetDefaultCommand(e){return this.http.post(this.base+"/command/"+e+"/unsetDefault",{})}deleteCommand(e){return this.http.delete(this.base+"/command/"+e)}deleteContainer(e){return this.http.delete(this.base+"/container/"+e)}deleteImage(e){return this.http.delete(this.base+"/image/"+e)}deleteResource(e){return this.http.delete(this.base+"/resource/"+e)}deleteVolume(e){return this.http.delete(this.base+"/volume/"+e)}updateEvents(e,i){return this.http.put(this.base+"/events",{eventName:e,commands:i})}isQuantityValid(e){return this.http.post(this.base+"/quantityValid",{quantity:e})}isQuantity(){return e=>{const i=e.value;return""==i?Cs(null):this.isQuantityValid(i).pipe(Ln(()=>null),Ex(()=>Cs({isQuantity:!1})))}}}return n.\u0275fac=function(e){return new(e||n)(ie(yf))},n.\u0275prov=rt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),jj=(()=>{class n{constructor(e){this.http=e,this.base="/api/v1"}getDevfile(){return this.http.get(this.base+"/devfile")}saveDevfile(e){return this.http.put(this.base+"/devfile",{content:e})}telemetry(){return this.http.get(this.base+"/telemetry")}}return n.\u0275fac=function(e){return new(e||n)(ie(yf))},n.\u0275prov=rt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Wj=function Uj(n){for(var t=[],e=1;e{Ys.l.warn(n),(0,Ud.i)(n)?(e&&e(n.str,n.hash),t.push({...n,message:n.str,error:n})):(e&&e(n),n instanceof Error&&t.push({str:n.message,message:n.message,hash:n.name,error:n}))},bA=function(){var n=(0,xr.Z)(function*(t={querySelector:".mermaid"}){try{yield Yj(t)}catch(e){if((0,Ud.i)(e)&&Ys.l.error(e.str),nc.parseError&&nc.parseError(e),!t.suppressErrors)throw Ys.l.error("Use the suppressErrors option to suppress these errors"),e}});return function(){return n.apply(this,arguments)}}(),Yj=function(){var n=(0,xr.Z)(function*({postRenderCallback:t,querySelector:e,nodes:i}={querySelector:".mermaid"}){const r=Wd.m.getConfig();let o;if(Ys.l.debug((t?"":"No ")+"Callback function found"),i)o=i;else{if(!e)throw new Error("Nodes and querySelector are both undefined");o=document.querySelectorAll(e)}Ys.l.debug(`Found ${o.length} diagrams`),void 0!==r?.startOnLoad&&(Ys.l.debug("Start On Load: "+r?.startOnLoad),Wd.m.updateSiteConfig({startOnLoad:r?.startOnLoad}));const a=new Ud.u.initIdGenerator(r.deterministicIds,r.deterministicIDSeed);let c;const d=[];for(const h of Array.from(o)){if(Ys.l.info("Rendering diagram: "+h.id),h.getAttribute("data-processed"))continue;h.setAttribute("data-processed","true");const p=`mermaid-${a.next()}`;c=h.innerHTML,c=Wj(Ud.u.entityDecode(c)).trim().replace(//gi,"
");const _=Ud.u.detectInit(c);_&&Ys.l.debug("Detected early reinit: ",_);try{const{svg:M,bindFunctions:A}=yield xA(p,c,h);h.innerHTML=M,t&&(yield t(p)),A&&A(h)}catch(M){Gj(M,d,nc.parseError)}}if(d.length>0)throw d[0]});return function(){return n.apply(this,arguments)}}(),yA=function(n){Wd.m.initialize(n)},Zj=function(){var n=(0,xr.Z)(function*(t,e,i){Ys.l.warn("mermaid.init is deprecated. Please use run instead."),t&&yA(t);const r={postRenderCallback:i,querySelector:".mermaid"};"string"==typeof e?r.querySelector=e:e&&(r.nodes=e instanceof HTMLElement?[e]:e),yield bA(r)});return function(e,i,r){return n.apply(this,arguments)}}(),qj=function(){var n=(0,xr.Z)(function*(t,{lazyLoad:e=!0}={}){(0,Ud.r)(...t),!1===e&&(yield(0,Ud.l)())});return function(e){return n.apply(this,arguments)}}(),vA=function(){if(nc.startOnLoad){const{startOnLoad:n}=Wd.m.getConfig();n&&nc.run().catch(t=>Ys.l.error("Mermaid failed to initialize",t))}};typeof document<"u"&&window.addEventListener("load",vA,!1);const xb=[];let Fx=!1;const CA=function(){var n=(0,xr.Z)(function*(){if(!Fx){for(Fx=!0;xb.length>0;){const t=xb.shift();if(t)try{yield t()}catch(e){Ys.l.error("Error executing queue",e)}}Fx=!1}});return function(){return n.apply(this,arguments)}}(),Xj=function(){var n=(0,xr.Z)(function*(t,e){return new Promise((i,r)=>{xb.push(()=>new Promise((a,c)=>{Wd.m.parse(t,e).then(d=>{a(d),i(d)},d=>{var h;Ys.l.error("Error parsing",d),null==(h=nc.parseError)||h.call(nc,d),c(d),r(d)})})),CA().catch(r)})});return function(e,i){return n.apply(this,arguments)}}(),xA=(n,t,e)=>new Promise((i,r)=>{xb.push(()=>new Promise((a,c)=>{Wd.m.render(n,t,e).then(d=>{a(d),i(d)},d=>{var h;Ys.l.error("Error parsing",d),null==(h=nc.parseError)||h.call(nc,d),c(d),r(d)})})),CA().catch(r)}),nc={startOnLoad:!0,mermaidAPI:Wd.m,parse:Xj,render:xA,init:Zj,run:bA,registerExternalDiagrams:qj,initialize:yA,parseError:void 0,contentLoaded:vA,setParseErrorHandler:function(n){nc.parseError=n}};let Qj=(()=>{class n{constructor(){}getMermaidAsSVG(e){return(0,xr.Z)(function*(){const{svg:i}=yield nc.render("rendered",e);return i})()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=rt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Zs=(()=>{class n{constructor(){this.savedDevfile="",this._state=new $C(null),this.state=this._state.asObservable(),this._modified=new $C(null),this.modified=this._modified.asObservable()}changeDevfileYaml(e,i=!1){this._state.next(e),i&&(this.savedDevfile=e.content),""==this.savedDevfile&&(this.savedDevfile=e.content),this._modified.next(this.savedDevfile!=e.content)}isUpdated(e){return e!=this.savedDevfile}getDragAndDropEnabled(){return"true"==localStorage.getItem("dragAndDropEnabled")}saveDragAndDropEnabled(e){return localStorage.setItem("dragAndDropEnabled",e?"true":"false")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=rt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Jj=(()=>{class n{constructor(){this.base="/api/v1",this.evtSource=new EventSource(this.base+"/notifications")}subscribeTo(e){return new ye(i=>{e.forEach(r=>{this.evtSource.addEventListener(r,o=>{i.next(o)})}),this.evtSource.onerror=r=>{i.error(r)}})}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=rt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ma=(()=>{class n{constructor(e){this.segment=e,this.options={context:{ip:"0.0.0.0"}}}init(e,i){this.segment.identify(i,{},this.options),this.segment.load(e),this.segment.setAnonymousId(i)}track(e){this.segment.track(e,{},this.options)}}return n.\u0275fac=function(e){return new(e||n)(ie(jd))},n.\u0275prov=rt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),tU=(()=>{class n{constructor(e,i,r){this.devstate=e,this.state=i,this.telemetry=r,this.form=new js({name:new Rt(""),version:new Rt("",Vn.pattern("^([0-9]+)\\.([0-9]+)\\.([0-9]+)(\\-[0-9a-z-]+(\\.[0-9a-z-]+)*)?(\\+[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?$")),displayName:new Rt(""),description:new Rt(""),tags:new Rt(""),architectures:new Rt(""),icon:new Rt(""),globalMemoryLimit:new Rt(""),projectType:new Rt(""),language:new Rt(""),website:new Rt(""),provider:new Rt(""),supportUrl:new Rt("")})}ngOnInit(){var e=this;this.state.state.subscribe(function(){var i=(0,xr.Z)(function*(r){const o=r?.metadata;null!=o&&e.form.patchValue(o)});return function(r){return i.apply(this,arguments)}}())}onSave(){this.telemetry.track("[ui] apply metadata"),this.devstate.setMetadata(this.form.value).subscribe({next:i=>{this.state.changeDevfileYaml(i)},error:i=>{alert(i.error.message)}})}}return n.\u0275fac=function(e){return new(e||n)(D(ns),D(Zs),D(Ma))},n.\u0275cmp=S({type:n,selectors:[["app-metadata"]],decls:58,vars:2,consts:[[1,"main"],[3,"formGroup"],["appearance","outline",1,"mid-width"],["data-cy","metadata-name","placeholder","Unique name to identify the devfile","matInput","","formControlName","name"],["placeholder","Version of the devfile, semver-compatible","matInput","","formControlName","version"],["appearance","outline",1,"full-width"],["placeholder","Name to display instead of the unique name","matInput","","formControlName","displayName"],["matInput","","formControlName","description","rows","4"],["placeholder","Tags to help find the devfile in a registry","matInput","","formControlName","tags"],["placeholder","Ex: amd64,arm64,ppc64le,s390x","matInput","","formControlName","architectures"],["placeholder","Can be a URI or a relative path in the project","matInput","","formControlName","icon"],["placeholder","Informative limit of memory used by the devfile. Ex: 1Gi","matInput","","formControlName","globalMemoryLimit"],["placeholder","Ex: Framework of the project","matInput","","formControlName","projectType"],["placeholder","Language of the project","matInput","","formControlName","language"],["placeholder","Official website of the devfile","matInput","","formControlName","website"],["placeholder","Information about the provider of the devfile","matInput","","formControlName","provider"],["placeholder","Link to a page providing support information","matInput","","formControlName","supportUrl"],["mat-flat-button","","color","primary",3,"disabled","click"]],template:function(e,i){1&e&&(v(0,"div",0)(1,"form",1)(2,"mat-form-field",2)(3,"mat-label"),E(4,"Name"),y(),Pe(5,"input",3),y(),v(6,"mat-form-field",2)(7,"mat-label"),E(8,"Version"),y(),v(9,"mat-error"),E(10,"Examples: 1.0.4, 1.4.7-alpha1"),y(),Pe(11,"input",4),y(),v(12,"mat-form-field",5)(13,"mat-label"),E(14,"Display Name"),y(),Pe(15,"input",6),y(),v(16,"mat-form-field",5)(17,"mat-label"),E(18,"Description"),y(),Pe(19,"textarea",7),y(),v(20,"mat-form-field",2)(21,"mat-label"),E(22,"Tags (comma-speparated)"),y(),Pe(23,"input",8),y(),v(24,"mat-form-field",2)(25,"mat-label"),E(26,"Architectures (comma-separated)"),y(),Pe(27,"input",9),y(),v(28,"mat-form-field",2)(29,"mat-label"),E(30,"Icon"),y(),Pe(31,"input",10),y(),v(32,"mat-form-field",2)(33,"mat-label"),E(34,"Global Memory Limit"),y(),Pe(35,"input",11),y(),v(36,"mat-form-field",2)(37,"mat-label"),E(38,"Project Type"),y(),Pe(39,"input",12),y(),v(40,"mat-form-field",2)(41,"mat-label"),E(42,"Language"),y(),Pe(43,"input",13),y(),v(44,"mat-form-field",2)(45,"mat-label"),E(46,"Website"),y(),Pe(47,"input",14),y(),v(48,"mat-form-field",2)(49,"mat-label"),E(50,"Provider"),y(),Pe(51,"input",15),y(),v(52,"mat-form-field",5)(53,"mat-label"),E(54,"Support URL"),y(),Pe(55,"input",16),y()(),v(56,"button",17),ue("click",function(){return i.onSave()}),E(57,"Apply"),y()()),2&e&&(I(1),B("formGroup",i.form),I(55),B("disabled",i.form.invalid))},dependencies:[Tc,vs,$s,Qa,Do,wa,Yi,so,qr,sl,ws],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-form-field.full-width[_ngcontent-%COMP%]{width:100%}mat-form-field.mid-width[_ngcontent-%COMP%]{width:50%}"]}),n})();const wb="^[a-z0-9]([-a-z0-9]*[a-z0-9])?$",Db="^[a-z0-9]([-a-z0-9]*[a-z0-9])?$";function nU(n,t){if(1&n&&(v(0,"h3"),E(1),y()),2&n){const e=ne();I(1),Qt(e.title)}}function iU(n,t){if(1&n){const e=Zt();v(0,"span")(1,"mat-form-field",5)(2,"mat-label")(3,"span"),E(4),y()(),v(5,"input",6),ue("change",function(r){const a=nt(e).index;return at(ne().onTextChange(a,r))}),y()()()}if(2&n){const e=t.$implicit,i=ne();I(4),Qt(i.label),I(1),B("value",e)}}function rU(n,t){if(1&n){const e=Zt();v(0,"button",7),ue("click",function(){return nt(e),at(ne().addText())}),v(1,"mat-icon",8),E(2,"add"),y()()}}function oU(n,t){if(1&n){const e=Zt();v(0,"button",9),ue("click",function(){return nt(e),at(ne().addText())}),E(1),y()}if(2&n){const e=ne();I(1),Qt(e.addLabel)}}let wA=(()=>{class n{constructor(){this.label="",this.addLabel="",this.title="",this.onChange=e=>{},this.texts=[]}writeValue(e){null==e&&(e=[]),this.texts=e}registerOnChange(e){this.onChange=e}registerOnTouched(e){}addText(){this.texts.push(""),this.onChange(this.texts)}onTextChange(e,i){this.texts[e]=i.target.value,this.onChange(this.texts)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=S({type:n,selectors:[["app-multi-text"]],inputs:{label:"label",addLabel:"addLabel",title:"title"},features:[jt([{provide:br,multi:!0,useExisting:n}])],decls:5,vars:4,consts:[[4,"ngIf"],[1,"group"],[4,"ngFor","ngForOf"],["mat-icon-button","",3,"click",4,"ngIf"],["mat-flat-button","",3,"click",4,"ngIf"],["appearance","outline",1,"inline"],["matInput","",3,"value","change"],["mat-icon-button","",3,"click"],[1,"tab-icon","material-icons-outlined"],["mat-flat-button","",3,"click"]],template:function(e,i){1&e&&(X(0,nU,2,1,"h3",0),v(1,"div",1),X(2,iU,6,2,"span",2),X(3,rU,3,0,"button",3),X(4,oU,2,1,"button",4),y()),2&e&&(B("ngIf",i.title),I(2),B("ngForOf",i.texts),I(1),B("ngIf",i.texts.length>0),I(1),B("ngIf",0==i.texts.length))},dependencies:[ys,Di,Yi,zf,so,qr,Gs,ws],styles:["h3[_ngcontent-%COMP%]{margin-bottom:0}div.group[_ngcontent-%COMP%]{margin-bottom:16px}"]}),n})();function sU(n,t){1&n&&(v(0,"h2"),E(1,"Add a new volume"),y())}function aU(n,t){if(1&n&&(v(0,"h2"),E(1,"Edit volume "),v(2,"i"),E(3),y()()),2&n){const e=ne();I(3),Qt(e.volume.name)}}function cU(n,t){if(1&n){const e=Zt();v(0,"button",11),ue("click",function(){return nt(e),at(ne().create())}),E(1,"Create"),y()}2&n&&B("disabled",ne().form.invalid)}function lU(n,t){if(1&n){const e=Zt();v(0,"button",12),ue("click",function(){return nt(e),at(ne().save())}),E(1,"Save"),y()}2&n&&B("disabled",ne().form.invalid)}function dU(n,t){if(1&n){const e=Zt();v(0,"button",13),ue("click",function(){return nt(e),at(ne().cancel())}),E(1,"Cancel"),y()}}let DA=(()=>{class n{constructor(e,i){this.devstate=e,this.telemetry=i,this.cancelable=!1,this.canceled=new Xe,this.created=new Xe,this.saved=new Xe,this.form=new js({name:new Rt("",[Vn.required,Vn.pattern(Db)]),size:new Rt("",null,[this.devstate.isQuantity()]),ephemeral:new Rt(!1)})}create(){this.telemetry.track("[ui] create volume"),this.created.emit(this.form.value)}save(){this.form.value.name=this.volume?.name,this.telemetry.track("[ui] edit volume"),this.saved.emit(this.form.value)}cancel(){this.canceled.emit()}ngOnChanges(e){if(!e.volume)return;const i=e.volume.currentValue;null==i?this.form.get("name")?.enable():(this.form.reset(),this.form.patchValue(i),this.form.get("name")?.disable())}}return n.\u0275fac=function(e){return new(e||n)(D(ns),D(Ma))},n.\u0275cmp=S({type:n,selectors:[["app-volume"]],inputs:{cancelable:"cancelable",volume:"volume"},outputs:{canceled:"canceled",created:"created",saved:"saved"},features:[ji],decls:23,vars:6,consts:[[1,"main"],[4,"ngIf"],[1,"description"],[3,"formGroup"],["appearance","outline",1,"mid-width"],["placeholder","unique name to identify the volume","data-cy","volume-name","matInput","","formControlName","name"],["placeholder","Minimal size of the volume","data-cy","volume-size","matInput","","formControlName","size"],["data-cy","volume-ephemeral","formControlName","ephemeral"],["data-cy","volume-create","mat-flat-button","","color","primary","matTooltip","create new volume",3,"disabled","click",4,"ngIf"],["data-cy","volume-save","mat-flat-button","","color","primary","matTooltip","save volume",3,"disabled","click",4,"ngIf"],["mat-flat-button","",3,"click",4,"ngIf"],["data-cy","volume-create","mat-flat-button","","color","primary","matTooltip","create new volume",3,"disabled","click"],["data-cy","volume-save","mat-flat-button","","color","primary","matTooltip","save volume",3,"disabled","click"],["mat-flat-button","",3,"click"]],template:function(e,i){1&e&&(v(0,"div",0),X(1,sU,2,0,"h2",1),X(2,aU,4,1,"h2",1),v(3,"div",2),E(4,"A volume can be mounted and shared by several containers."),y(),v(5,"form",3)(6,"mat-form-field",4)(7,"mat-label")(8,"span"),E(9,"Name"),y()(),v(10,"mat-error"),E(11,"Lowercase words separated by dashes. Ex: my-volume"),y(),Pe(12,"input",5),y(),v(13,"mat-form-field",4)(14,"mat-label")(15,"span"),E(16,"Size"),y()(),Pe(17,"input",6),y(),v(18,"mat-checkbox",7),E(19,"Volume is Ephemeral"),y()(),X(20,cU,2,1,"button",8),X(21,lU,2,1,"button",9),X(22,dU,2,0,"button",10),y()),2&e&&(I(1),B("ngIf",!i.volume),I(1),B("ngIf",i.volume),I(3),B("formGroup",i.form),I(15),B("ngIf",!i.volume),I(1),B("ngIf",i.volume),I(1),B("ngIf",i.cancelable))},dependencies:[Di,Tc,vs,$s,Qa,Do,wa,Yi,al,so,qr,sl,ws,cl],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-form-field.full-width[_ngcontent-%COMP%]{width:100%}mat-form-field.mid-width[_ngcontent-%COMP%]{width:50%}"]}),n})();function uU(n,t){if(1&n&&(v(0,"mat-option",10),E(1),y()),2&n){const e=t.$implicit;B("value",e),I(1),Qt(e)}}function hU(n,t){if(1&n){const e=Zt();v(0,"app-volume",11),ue("created",function(r){nt(e);const o=ne().index;return at(ne().onNewVolumeCreated(o,r))}),y()}}function mU(n,t){if(1&n){const e=Zt();v(0,"div")(1,"mat-form-field",4)(2,"mat-label")(3,"span"),E(4,"Volume"),y()(),v(5,"mat-select",5),ue("selectionChange",function(r){const a=nt(e).index;return at(ne().onNameChange(a,r.value))}),X(6,uU,2,2,"mat-option",6),v(7,"mat-option",7),E(8,"(New Volume)"),y()()(),v(9,"mat-form-field",4)(10,"mat-label")(11,"span"),E(12,"Mount Path"),y()(),v(13,"input",8),ue("input",function(r){const a=nt(e).index;return at(ne().onPathChange(a,r))})("change",function(r){const a=nt(e).index;return at(ne().onPathChange(a,r))}),y()(),X(14,hU,1,0,"app-volume",9),y()}if(2&n){const e=t.$implicit,i=t.index,r=ne();I(5),B("value",e.name),$t("data-cy","volume-mount-name-"+i),I(1),B("ngForOf",r.volumes),I(7),B("value",e.path),$t("data-cy","volume-mount-path-"+i),I(1),B("ngIf",r.showNewVolume[i])}}function fU(n,t){if(1&n){const e=Zt();v(0,"button",12),ue("click",function(){return nt(e),at(ne().add())}),v(1,"mat-icon",13),E(2,"add"),y()()}}function pU(n,t){if(1&n){const e=Zt();v(0,"button",14),ue("click",function(){return nt(e),at(ne().add())}),E(1,"Add Volume Mount"),y()}}let gU=(()=>{class n{constructor(){this.volumes=[],this.createNewVolume=new Xe,this.volumeMounts=[],this.showNewVolume=[],this.onChange=e=>{},this.onValidatorChange=()=>{}}writeValue(e){this.volumeMounts=e}registerOnChange(e){this.onChange=e}registerOnTouched(e){}add(){this.volumeMounts.push({name:"",path:""}),this.onChange(this.volumeMounts)}onPathChange(e,i){this.volumeMounts[e].path=i.target.value,this.onChange(this.volumeMounts)}onNameChange(e,i){"!"!=i&&(this.volumeMounts[e].name=i,this.onChange(this.volumeMounts)),this.showNewVolume[e]="!"==i}onNewVolumeCreated(e,i){this.volumes.push(i.name),this.volumeMounts[e].name=i.name,this.createNewVolume.next(i),this.showNewVolume[e]=!1,this.onValidatorChange()}validate(e){for(let i=0;in),multi:!0}])],decls:4,vars:3,consts:[[1,"group"],[4,"ngFor","ngForOf"],["data-cy","volume-mount-add","mat-icon-button","",3,"click",4,"ngIf"],["data-cy","volume-mount-add","mat-flat-button","",3,"click",4,"ngIf"],["appearance","outline",1,"inline"],[3,"value","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["value","!"],["matInput","",3,"value","input","change"],[3,"created",4,"ngIf"],[3,"value"],[3,"created"],["data-cy","volume-mount-add","mat-icon-button","",3,"click"],[1,"tab-icon","material-icons-outlined"],["data-cy","volume-mount-add","mat-flat-button","",3,"click"]],template:function(e,i){1&e&&(v(0,"div",0),X(1,mU,15,6,"div",1),X(2,fU,3,0,"button",2),X(3,pU,2,0,"button",3),y()),2&e&&(I(1),B("ngForOf",i.volumeMounts),I(1),B("ngIf",i.volumeMounts.length>0),I(1),B("ngIf",0==i.volumeMounts.length))},dependencies:[ys,Di,Bd,Yi,zf,so,qr,Gs,ws,yb,DA],styles:["h3[_ngcontent-%COMP%]{margin-bottom:0}div.group[_ngcontent-%COMP%]{margin-bottom:16px}"]}),n})();function _U(n,t){if(1&n){const e=Zt();v(0,"span")(1,"mat-form-field",4)(2,"mat-label")(3,"span"),E(4,"Name"),y()(),v(5,"input",5),ue("change",function(r){const a=nt(e).index;return at(ne().onKeyChange(a,r))})("input",function(r){const a=nt(e).index;return at(ne().onKeyChange(a,r))}),y()(),v(6,"mat-form-field",4)(7,"mat-label")(8,"span"),E(9,"Value"),y()(),v(10,"input",5),ue("change",function(r){const a=nt(e).index;return at(ne().onValueChange(a,r))})("input",function(r){const a=nt(e).index;return at(ne().onValueChange(a,r))}),y()()()}if(2&n){const e=t.$implicit,i=t.index,r=ne();I(5),B("value",e.name),$t("data-cy",r.dataCyPrefix+"-name-"+i),I(5),B("value",e.value),$t("data-cy",r.dataCyPrefix+"-value-"+i)}}function bU(n,t){if(1&n){const e=Zt();v(0,"button",6),ue("click",function(){return nt(e),at(ne().addEntry())}),v(1,"mat-icon",7),E(2,"add"),y()()}2&n&&$t("data-cy",ne().dataCyPrefix+"-plus")}function yU(n,t){if(1&n){const e=Zt();v(0,"button",8),ue("click",function(){return nt(e),at(ne().addEntry())}),E(1),y()}if(2&n){const e=ne();$t("data-cy",e.dataCyPrefix+"-add"),I(1),Qt(e.addLabel)}}let vU=(()=>{class n{constructor(){this.dataCyPrefix="",this.addLabel="",this.onChange=e=>{},this.onValidatorChange=()=>{},this.entries=[]}writeValue(e){this.entries=e}registerOnChange(e){this.onChange=e}registerOnTouched(e){}addEntry(){this.entries.push({name:"",value:""}),this.onChange(this.entries)}onKeyChange(e,i){this.entries[e].name=i.target.value,this.onChange(this.entries)}onValueChange(e,i){this.entries[e].value=i.target.value,this.onChange(this.entries)}validate(e){for(let i=0;in),multi:!0}])],decls:4,vars:3,consts:[[1,"group"],[4,"ngFor","ngForOf"],["mat-icon-button","",3,"click",4,"ngIf"],["mat-flat-button","",3,"click",4,"ngIf"],["appearance","outline",1,"mid-width"],["matInput","",3,"value","change","input"],["mat-icon-button","",3,"click"],[1,"tab-icon","material-icons-outlined"],["mat-flat-button","",3,"click"]],template:function(e,i){1&e&&(v(0,"div",0),X(1,_U,11,4,"span",1),X(2,bU,3,1,"button",2),X(3,yU,2,2,"button",3),y()),2&e&&(I(1),B("ngForOf",i.entries),I(1),B("ngIf",i.entries.length>0),I(1),B("ngIf",0==i.entries.length))},dependencies:[ys,Di,Yi,zf,so,qr,Gs,ws],styles:["div.group[_ngcontent-%COMP%]{margin-bottom:16px}.mid-width[_ngcontent-%COMP%]{width:50%}"]}),n})();function CU(n,t){if(1&n&&(v(0,"div"),ro(1,3),v(2,"mat-form-field",4)(3,"mat-label")(4,"span"),E(5,"Name"),y()(),Pe(6,"input",5),y(),v(7,"mat-form-field",6)(8,"mat-label")(9,"span"),E(10,"Target Port"),y()(),Pe(11,"input",7),y(),v(12,"mat-form-field",6)(13,"mat-label"),E(14,"Exposure"),y(),v(15,"mat-select",8)(16,"mat-option",9),E(17,"(default, public)"),y(),v(18,"mat-option",10),E(19,"public"),y(),v(20,"mat-option",11),E(21,"internal"),y(),v(22,"mat-option",12),E(23,"none"),y()()(),v(24,"mat-form-field",4)(25,"mat-label")(26,"span"),E(27,"Path"),y()(),Pe(28,"input",13),y(),v(29,"mat-form-field",6)(30,"mat-label"),E(31,"Protocol"),y(),v(32,"mat-select",14)(33,"mat-option",9),E(34,"(default, http)"),y(),v(35,"mat-option",15),E(36,"http"),y(),v(37,"mat-option",16),E(38,"https"),y(),v(39,"mat-option",17),E(40,"ws"),y(),v(41,"mat-option",18),E(42,"wss"),y(),v(43,"mat-option",19),E(44,"tcp"),y(),v(45,"mat-option",20),E(46,"udp"),y()()(),v(47,"mat-checkbox",21),E(48,"Protocol Is Secure"),y(),oo(),y()),2&n){const e=t.$implicit,i=t.index;I(1),B("formGroup",e),I(5),$t("data-cy","endpoint-name-"+i),I(5),$t("data-cy","endpoint-targetPort-"+i),I(4),$t("data-cy","endpoint-exposure-"+i),I(13),$t("data-cy","endpoint-path-"+i),I(4),$t("data-cy","endpoint-protocol-"+i),I(15),$t("data-cy","endpoint-secure-"+i)}}function xU(n,t){if(1&n){const e=Zt();v(0,"button",22),ue("click",function(){return nt(e),at(ne().addEndpoint())}),v(1,"mat-icon",23),E(2,"add"),y()()}}function wU(n,t){if(1&n){const e=Zt();v(0,"button",24),ue("click",function(){return nt(e),at(ne().addEndpoint())}),E(1,"Add an Endpoint"),y()}}let DU=(()=>{class n{constructor(){this.onChange=e=>{},this.onValidatorChange=()=>{},this.form=new AE([]),this.form.valueChanges.subscribe(e=>{this.onChange(e)})}newEndpoint(){return new js({name:new Rt("",[Vn.required]),targetPort:new Rt("",[Vn.required,Vn.pattern("^[0-9]*$")]),exposure:new Rt(""),path:new Rt(""),protocol:new Rt(""),secure:new Rt(!1)})}addEndpoint(){this.form.push(this.newEndpoint())}writeValue(e){}registerOnChange(e){this.onChange=e}registerOnTouched(e){}validate(e){return this.form.valid?null:{internal:!0}}registerOnValidatorChange(e){this.onValidatorChange=e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=S({type:n,selectors:[["app-endpoints"]],features:[jt([{provide:br,multi:!0,useExisting:n},{provide:yr,useExisting:on(()=>n),multi:!0}])],decls:3,vars:3,consts:[[4,"ngFor","ngForOf"],["data-cy","endpoints-plus","mat-icon-button","",3,"click",4,"ngIf"],["data-cy","endpoints-add","mat-flat-button","",3,"click",4,"ngIf"],[3,"formGroup"],["appearance","outline",1,"mid-width"],["matInput","","formControlName","name"],["appearance","outline",1,"quart-width"],["type","number","matInput","","formControlName","targetPort"],["formControlName","exposure"],["value",""],["value","public"],["value","internal"],["value","none"],["matInput","","formControlName","path"],["formControlName","protocol"],["value","http"],["value","https"],["value","ws"],["value","wss"],["value","tcp"],["value","udp"],["formControlName","secure"],["data-cy","endpoints-plus","mat-icon-button","",3,"click"],[1,"tab-icon","material-icons-outlined"],["data-cy","endpoints-add","mat-flat-button","",3,"click"]],template:function(e,i){1&e&&(X(0,CU,49,7,"div",0),X(1,xU,3,0,"button",1),X(2,wU,2,0,"button",2)),2&e&&(B("ngForOf",i.form.controls),I(1),B("ngIf",i.form.value.length>0),I(1),B("ngIf",0==i.form.value.length))},dependencies:[ys,Di,vs,yC,$s,Qa,Do,wa,Bd,Yi,zf,al,so,qr,Gs,ws,yb],styles:[".mid-width[_ngcontent-%COMP%]{width:50%}.quart-width[_ngcontent-%COMP%]{width:25%}"]}),n})();function MU(n,t){if(1&n){const e=Zt();v(0,"button",18),ue("click",function(){return nt(e),at(ne().more())}),E(1,"More parameters..."),y()}}function TU(n,t){1&n&&(v(0,"div",27)(1,"div",28)(2,"mat-checkbox",29),E(3,"Mount sources into container"),y(),v(4,"mat-checkbox",30),E(5,"Into specific directory"),y()(),v(6,"mat-form-field",3)(7,"mat-label")(8,"span"),E(9,"Mount sources into"),y()(),Pe(10,"input",31),y()())}function kU(n,t){if(1&n&&(v(0,"div")(1,"h3"),E(2,"Resource Usage"),y(),v(3,"div",1),E(4,"CPU and Memory resources necessary for container's execution"),y(),v(5,"mat-form-field",3)(6,"mat-label")(7,"span"),E(8,"Memory Request"),y()(),v(9,"mat-error"),E(10),y(),Pe(11,"input",19),y(),v(12,"mat-form-field",3)(13,"mat-label")(14,"span"),E(15,"Memory Limit"),y()(),v(16,"mat-error"),E(17),y(),Pe(18,"input",20),y(),v(19,"mat-form-field",3)(20,"mat-label")(21,"span"),E(22,"CPU Request"),y()(),v(23,"mat-error"),E(24),y(),Pe(25,"input",21),y(),v(26,"mat-form-field",3)(27,"mat-label")(28,"span"),E(29,"CPU Limit"),y()(),v(30,"mat-error"),E(31),y(),Pe(32,"input",22),y(),v(33,"h3"),E(34,"Sources"),y(),v(35,"div",1),E(36,"Declare if and how sources are mounted into the container's filesystem. By default, sources are automatically mounted into $PROJECTS_ROOT or /projects directory"),y(),v(37,"div")(38,"mat-checkbox",23),E(39,"Configure Source mount"),y()(),X(40,TU,11,0,"div",24),v(41,"h3"),E(42,"Deployment Annotations"),y(),v(43,"div",1),E(44,"Annotations added to the Kubernetes Deployment created for running this container"),y(),Pe(45,"app-multi-key-value",25),v(46,"h3"),E(47,"Service Annotations"),y(),v(48,"div",1),E(49,"Annotations added to the Kubernetes Service created for accessing this container"),y(),Pe(50,"app-multi-key-value",26),y()),2&n){const e=ne();let i;I(10),Qt(e.quantityErrMsgMemory),I(7),Qt(e.quantityErrMsgMemory),I(7),Qt(e.quantityErrMsgCPU),I(7),Qt(e.quantityErrMsgCPU),I(9),B("ngIf",null==(i=e.form.get("configureSources"))?null:i.value)}}function EU(n,t){if(1&n){const e=Zt();v(0,"button",32),ue("click",function(){return nt(e),at(ne().less())}),E(1,"Less parameters..."),y()}}function SU(n,t){if(1&n){const e=Zt();v(0,"button",33),ue("click",function(){return nt(e),at(ne().cancel())}),E(1,"Cancel"),y()}}let MA=(()=>{class n{constructor(e,i){this.devstate=e,this.telemetry=i,this.volumeNames=[],this.cancelable=!1,this.canceled=new Xe,this.created=new Xe,this.quantityErrMsgMemory="Numeric value, with optional unit Ki, Mi, Gi, Ti, Pi, Ei",this.quantityErrMsgCPU="Numeric value, with optional unit m, k, M, G, T, P, E",this.volumesToCreate=[],this.seeMore=!1,this.form=new js({name:new Rt("",[Vn.required,Vn.pattern(Db)]),image:new Rt("",[Vn.required]),command:new Rt([]),args:new Rt([]),env:new Rt([]),volumeMounts:new Rt([]),memoryRequest:new Rt("",null,[this.devstate.isQuantity()]),memoryLimit:new Rt("",null,[this.devstate.isQuantity()]),cpuRequest:new Rt("",null,[this.devstate.isQuantity()]),cpuLimit:new Rt("",null,[this.devstate.isQuantity()]),configureSources:new Rt(!1),mountSources:new Rt(!0),_specificDir:new Rt(!1),sourceMapping:new Rt(""),deployAnnotations:new Rt([]),svcAnnotations:new Rt([]),endpoints:new Rt([])}),this.form.valueChanges.subscribe(r=>{this.updateSourceFields(r)}),this.updateSourceFields(this.form.value)}updateSourceFields(e){const i=e.mountSources&&e._specificDir;!i&&!this.form.get("sourceMapping")?.disabled&&(this.form.get("sourceMapping")?.disable(),this.form.get("sourceMapping")?.setValue(""),this.form.get("_specificDir")?.setValue(!1)),i&&!this.form.get("sourceMapping")?.enabled&&this.form.get("sourceMapping")?.enable();const r=e.mountSources;!r&&!this.form.get("_specificDir")?.disabled&&this.form.get("_specificDir")?.disable(),r&&!this.form.get("_specificDir")?.enabled&&this.form.get("_specificDir")?.enable()}create(){this.telemetry.track("[ui] create container");const e=r=>r.reduce((o,a)=>(o[a.name]=a.value,o),{}),i=this.form.value;i.annotation={deployment:e(i.deployAnnotations),service:e(i.svcAnnotations)},this.created.emit({container:this.form.value,volumes:this.volumesToCreate})}cancel(){this.canceled.emit()}onCreateNewVolume(e){this.volumesToCreate.push(e)}more(){this.seeMore=!0}less(){this.seeMore=!1}}return n.\u0275fac=function(e){return new(e||n)(D(ns),D(Ma))},n.\u0275cmp=S({type:n,selectors:[["app-container"]],inputs:{volumeNames:"volumeNames",cancelable:"cancelable"},outputs:{canceled:"canceled",created:"created"},decls:48,vars:7,consts:[[1,"main"],[1,"description"],[3,"formGroup"],["appearance","outline",1,"mid-width"],["placeholder","unique name to identify the container","data-cy","container-name","matInput","","formControlName","name"],["placeholder","Image to start the container","data-cy","container-image","matInput","","formControlName","image"],["formControlName","command","label","Command","addLabel","Add command"],["formControlName","args","label","Arg","addLabel","Add arg"],["dataCyPrefix","container-env","addLabel","Add Environment Variable","formControlName","env"],["formControlName","volumeMounts",3,"volumes","createNewVolume"],["formControlName","endpoints"],[1,"outbutton"],["data-cy","container-more-params","mat-flat-button","",3,"click",4,"ngIf"],[4,"ngIf"],["data-cy","container-less-params","mat-flat-button","",3,"click",4,"ngIf"],[1,"buttonbar"],["data-cy","container-create","mat-flat-button","","color","primary","matTooltip","create new container",3,"disabled","click"],["mat-flat-button","",3,"click",4,"ngIf"],["data-cy","container-more-params","mat-flat-button","",3,"click"],["placeholder","memory requested for the container. Ex: 1Gi","data-cy","container-memory-request","matInput","","formControlName","memoryRequest"],["placeholder","memory limit for the container. Ex: 1Gi","data-cy","container-memory-limit","matInput","","formControlName","memoryLimit"],["placeholder","CPU requested for the container. Ex: 500m","data-cy","container-cpu-request","matInput","","formControlName","cpuRequest"],["placeholder","CPU limit for the container. Ex: 1","data-cy","container-cpu-limit","matInput","","formControlName","cpuLimit"],["data-cy","container-sources-configuration","formControlName","configureSources"],["class","source-configuration-details",4,"ngIf"],["dataCyPrefix","container-deploy-anno","addLabel","Add Annotation","formControlName","deployAnnotations"],["dataCyPrefix","container-svc-anno","addLabel","Add Annotation","formControlName","svcAnnotations"],[1,"source-configuration-details"],[1,"mid-width",2,"display","inline-flex"],["data-cy","container-mount-sources","formControlName","mountSources"],["data-cy","container-sources-specific-directory","matTooltip","${PROJECTS_ROOT} or /projects by default","formControlName","_specificDir"],["placeholder","Container's directory on which to mount sources","data-cy","container-source-mapping","matInput","","formControlName","sourceMapping"],["data-cy","container-less-params","mat-flat-button","",3,"click"],["mat-flat-button","",3,"click"]],template:function(e,i){1&e&&(v(0,"div",0)(1,"h2"),E(2,"Add a new container"),y(),v(3,"div",1),E(4,"A Container is used to execute shell commands into a specific environment. The entrypoint of the container must be a non-terminating command. You can use an image pulled from a registry or an image built by an Image command."),y(),v(5,"form",2)(6,"mat-form-field",3)(7,"mat-label")(8,"span"),E(9,"Name"),y()(),v(10,"mat-error"),E(11,"Lowercase words separated by dashes. Ex: my-container"),y(),Pe(12,"input",4),y(),v(13,"mat-form-field",3)(14,"mat-label")(15,"span"),E(16,"Image"),y()(),Pe(17,"input",5),y(),v(18,"h3"),E(19,"Command and Arguments"),y(),v(20,"div",1),E(21,"Command and Arguments can be used to override the entrypoint of the image"),y(),Pe(22,"app-multi-text",6)(23,"app-multi-text",7),v(24,"h3"),E(25,"Environment Variables"),y(),v(26,"div",1),E(27,"Environment Variables to define in the running container"),y(),Pe(28,"app-multi-key-value",8),v(29,"h3"),E(30,"Volume Mounts"),y(),v(31,"div",1),E(32,"Volumes to mount into the container's filesystem"),y(),v(33,"app-volume-mounts",9),ue("createNewVolume",function(o){return i.onCreateNewVolume(o)}),y(),v(34,"h3"),E(35,"Endpoints"),y(),v(36,"div",1),E(37,"Endpoints exposed by the container"),y(),Pe(38,"app-endpoints",10),v(39,"div",11),X(40,MU,2,0,"button",12),y(),X(41,kU,51,5,"div",13),v(42,"div",11),X(43,EU,2,0,"button",14),y()(),v(44,"div",15)(45,"button",16),ue("click",function(){return i.create()}),E(46,"Create"),y(),X(47,SU,2,0,"button",17),y()()),2&e&&(I(5),B("formGroup",i.form),I(28),B("volumes",i.volumeNames),I(7),B("ngIf",!i.seeMore),I(1),B("ngIf",i.seeMore),I(2),B("ngIf",i.seeMore),I(2),B("disabled",i.form.invalid),I(2),B("ngIf",i.cancelable))},dependencies:[Di,Tc,vs,$s,Qa,Do,wa,Yi,al,so,qr,sl,ws,cl,wA,gU,vU,DU],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-form-field.full-width[_ngcontent-%COMP%]{width:100%}.mid-width[_ngcontent-%COMP%]{width:50%}.source-configuration-details[_ngcontent-%COMP%]{margin-left:16px}div.buttonbar[_ngcontent-%COMP%]{margin-top:16px}.outbutton[_ngcontent-%COMP%]{text-align:right}"]}),n})();function IU(n,t){if(1&n&&(v(0,"tr")(1,"td"),E(2,"Command:"),y(),v(3,"td")(4,"code"),E(5),y()()()),2&n){const e=ne().$implicit;I(5),Qt(e.command.join(" "))}}function AU(n,t){if(1&n&&(v(0,"tr")(1,"td"),E(2,"Args:"),y(),v(3,"td")(4,"code"),E(5),y()()()),2&n){const e=ne().$implicit;I(5),Qt(e.args.join(" "))}}function FU(n,t){if(1&n&&(v(0,"div"),E(1),y()),2&n){const e=t.$implicit;I(1),zm(" ",e.name,": ",e.value," ")}}function OU(n,t){if(1&n&&(v(0,"tr")(1,"td"),E(2,"Environment variables:"),y(),v(3,"td"),X(4,FU,2,2,"div",8),y()()),2&n){const e=ne().$implicit;I(4),B("ngForOf",e.env)}}function RU(n,t){if(1&n&&(v(0,"div",10)(1,"mat-chip",11)(2,"mat-icon",12),E(3,"storage"),y(),E(4),y(),v(5,"span",13),E(6," in "),v(7,"code"),E(8),y()()()),2&n){const e=t.$implicit;I(4),bi(" ",e.name," "),I(4),Qt(e.path)}}function PU(n,t){if(1&n&&(v(0,"tr")(1,"td"),E(2,"Volume Mounts:"),y(),v(3,"td"),X(4,RU,9,2,"div",9),y()()),2&n){const e=ne().$implicit;I(4),B("ngForOf",e.volumeMounts)}}function LU(n,t){if(1&n&&(v(0,"tr")(1,"td"),E(2,"Memory Request:"),y(),v(3,"td")(4,"code"),E(5),y()()()),2&n){const e=ne().$implicit;I(5),Qt(e.memoryRequest)}}function NU(n,t){if(1&n&&(v(0,"tr")(1,"td"),E(2,"Memory Limit:"),y(),v(3,"td")(4,"code"),E(5),y()()()),2&n){const e=ne().$implicit;I(5),Qt(e.memoryLimit)}}function BU(n,t){if(1&n&&(v(0,"tr")(1,"td"),E(2,"CPU Request:"),y(),v(3,"td")(4,"code"),E(5),y()()()),2&n){const e=ne().$implicit;I(5),Qt(e.cpuRequest)}}function VU(n,t){if(1&n&&(v(0,"tr")(1,"td"),E(2,"CPU Limit:"),y(),v(3,"td")(4,"code"),E(5),y()()()),2&n){const e=ne().$implicit;I(5),Qt(e.cpuLimit)}}function HU(n,t){if(1&n&&(v(0,"div"),E(1),y()),2&n){const e=t.$implicit;I(1),zm(" ",e.key,": ",e.value," ")}}function zU(n,t){if(1&n&&(v(0,"tr")(1,"td"),E(2,"Deployment Annotations:"),y(),v(3,"td"),X(4,HU,2,2,"div",8),Zm(5,"keyvalue"),y()()),2&n){const e=ne().$implicit;I(4),B("ngForOf",qm(5,1,e.annotation.deployment))}}function $U(n,t){if(1&n&&(v(0,"div"),E(1),y()),2&n){const e=t.$implicit;I(1),zm(" ",e.key,": ",e.value," ")}}function jU(n,t){if(1&n&&(v(0,"tr")(1,"td"),E(2,"Service Annotations:"),y(),v(3,"td"),X(4,$U,2,2,"div",8),Zm(5,"keyvalue"),y()()),2&n){const e=ne().$implicit;I(4),B("ngForOf",qm(5,1,e.annotation.service))}}function UU(n,t){if(1&n&&(v(0,"tr")(1,"td"),E(2,"Mount Sources:"),y(),v(3,"td")(4,"code"),E(5),y()()()),2&n){const e=ne().$implicit;I(5),Qt(e.mountSources?"Yes":"No")}}function WU(n,t){if(1&n&&(v(0,"tr")(1,"td"),E(2,"Mount Sources Into:"),y(),v(3,"td")(4,"code"),E(5),y()()()),2&n){const e=ne().$implicit;I(5),Qt(e.sourceMapping)}}function GU(n,t){1&n&&(v(0,"div"),E(1,"secure"),y())}function YU(n,t){if(1&n&&(v(0,"div"),E(1),y()),2&n){const e=ne().$implicit;I(1),bi("path: ",e.path,"")}}function ZU(n,t){if(1&n&&(v(0,"mat-card",16)(1,"mat-card-header")(2,"mat-card-title"),E(3),y(),v(4,"mat-card-subtitle"),E(5),y()(),v(6,"mat-card-content")(7,"div"),E(8),y(),v(9,"div"),E(10),y(),X(11,GU,2,0,"div",3),X(12,YU,2,1,"div",3),y()()),2&n){const e=t.$implicit;let i,r;I(3),Qt(e.name),I(2),Qt(e.targetPort),I(3),bi("exposure: ",null!==(i=e.exposure)&&void 0!==i?i:"public",""),I(2),bi("protocol: ",null!==(r=e.protocol)&&void 0!==r?r:"http",""),I(1),B("ngIf",e.secure),I(1),B("ngIf",e.path)}}function qU(n,t){if(1&n&&(v(0,"tr")(1,"td"),E(2,"Endpoints:"),y(),v(3,"td",14),X(4,ZU,13,6,"mat-card",15),y()()),2&n){const e=ne().$implicit;I(4),B("ngForOf",e.endpoints)}}function KU(n,t){if(1&n){const e=Zt();v(0,"mat-card",4)(1,"mat-card-header",5)(2,"mat-card-title"),E(3),y(),v(4,"mat-card-subtitle"),E(5,"Container"),y()(),v(6,"mat-card-content")(7,"table",6)(8,"tr")(9,"td"),E(10,"Image:"),y(),v(11,"td")(12,"code"),E(13),y()()(),X(14,IU,6,1,"tr",3),X(15,AU,6,1,"tr",3),X(16,OU,5,1,"tr",3),X(17,PU,5,1,"tr",3),X(18,LU,6,1,"tr",3),X(19,NU,6,1,"tr",3),X(20,BU,6,1,"tr",3),X(21,VU,6,1,"tr",3),X(22,zU,6,3,"tr",3),X(23,jU,6,3,"tr",3),X(24,UU,6,1,"tr",3),X(25,WU,6,1,"tr",3),X(26,qU,5,1,"tr",3),y()(),v(27,"mat-card-actions")(28,"button",7),ue("click",function(){const o=nt(e).$implicit;return at(ne().delete(o.name))}),E(29,"Delete"),y()()()}if(2&n){const e=t.$implicit;I(3),Qt(e.name),I(10),Qt(e.image),I(1),B("ngIf",null!=e.command&&e.command.length>0),I(1),B("ngIf",null!=e.args&&e.args.length>0),I(1),B("ngIf",e.env.length),I(1),B("ngIf",e.volumeMounts.length>0),I(1),B("ngIf",null!=e.memoryRequest&&e.memoryRequest.length>0),I(1),B("ngIf",null!=e.memoryLimit&&e.memoryLimit.length>0),I(1),B("ngIf",null!=e.cpuRequest&&e.cpuRequest.length>0),I(1),B("ngIf",null!=e.cpuLimit&&e.cpuLimit.length>0),I(1),B("ngIf",e.annotation.deployment),I(1),B("ngIf",e.annotation.service),I(1),B("ngIf",e.configureSources),I(1),B("ngIf",e.configureSources&&e.mountSources&&e.sourceMapping),I(1),B("ngIf",e.endpoints.length)}}const XU=function(){return[]};function QU(n,t){if(1&n){const e=Zt();v(0,"app-container",17),ue("canceled",function(){return nt(e),at(ne().undisplayAddForm())})("created",function(r){return nt(e),at(ne().onCreated(r))}),y()}if(2&n){const e=ne();let i;B("volumeNames",null!==(i=e.volumeNames)&&void 0!==i?i:Ya(2,XU))("cancelable",e.forceDisplayAdd)}}function JU(n,t){if(1&n){const e=Zt();ro(0),v(1,"button",18),ue("click",function(){return nt(e),at(ne().displayAddForm())}),v(2,"mat-icon",19),E(3,"add"),y()(),oo()}}let e7=(()=>{class n{constructor(e,i){this.state=e,this.devstate=i,this.forceDisplayAdd=!1,this.containers=[],this.volumeNames=[]}ngOnInit(){var e=this;const i=this;this.state.state.subscribe(function(){var r=(0,xr.Z)(function*(o){e.volumeNames=o?.volumes.map(a=>a.name),i.containers=o?.containers,null!=e.containers&&(i.forceDisplayAdd=!1)});return function(o){return r.apply(this,arguments)}}())}displayAddForm(){this.forceDisplayAdd=!0,setTimeout(()=>{this.scrollToBottom()},0)}undisplayAddForm(){this.forceDisplayAdd=!1}delete(e){confirm('You will delete the container "'+e+'". Continue?')&&this.devstate.deleteContainer(e).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})}createVolumes(e,i,r){e.length!=i?this.devstate.addVolume(e[i]).subscribe({next:a=>{this.createVolumes(e,i+1,r)},error:a=>{alert(a.error.message)}}):r()}onCreated(e){const i=e.container;this.createVolumes(e.volumes,0,()=>{this.devstate.addContainer(i).subscribe({next:o=>{this.state.changeDevfileYaml(o)},error:o=>{alert(o.error.message)}})})}scrollToBottom(){window.scrollTo(0,document.body.scrollHeight)}}return n.\u0275fac=function(e){return new(e||n)(D(Zs),D(ns))},n.\u0275cmp=S({type:n,selectors:[["app-containers"]],decls:4,vars:3,consts:[[1,"main"],["data-cy","container-info",4,"ngFor","ngForOf"],[3,"volumeNames","cancelable","canceled","created",4,"ngIf"],[4,"ngIf"],["data-cy","container-info"],[1,"colored-title"],[1,"aligned"],["mat-button","","color","warn",3,"click"],[4,"ngFor","ngForOf"],["class","volume-mount",4,"ngFor","ngForOf"],[1,"volume-mount"],["disableRipple",""],["matChipAvatar","",1,"material-icons-outlined"],[1,"path"],[1,"container-list"],["class","endpoint",4,"ngFor","ngForOf"],[1,"endpoint"],[3,"volumeNames","cancelable","canceled","created"],["data-cy","add","mat-fab","","color","primary",1,"fab",3,"click"],[1,"material-icons-outlined"]],template:function(e,i){1&e&&(v(0,"div",0),X(1,KU,30,15,"mat-card",1),X(2,QU,1,3,"app-container",2),y(),X(3,JU,4,0,"ng-container",3)),2&e&&(I(1),B("ngForOf",i.containers),I(1),B("ngIf",i.forceDisplayAdd||null==i.containers||0==i.containers.length),I(1),B("ngIf",!i.forceDisplayAdd&&null!=i.containers&&i.containers.length>0))},dependencies:[ys,Di,Yi,Hf,Mh,Sh,kh,Ih,Eh,Th,id,Tx,Gs,MA,mT],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-card[_ngcontent-%COMP%]{margin-bottom:16px}mat-card-content[_ngcontent-%COMP%]{padding:16px}.volume-mount[_ngcontent-%COMP%]{margin-top:4px}.volume-mount[_ngcontent-%COMP%] > mat-chip[_ngcontent-%COMP%]{top:-11px}.volume-mount[_ngcontent-%COMP%] > span.path[_ngcontent-%COMP%]{position:relative;top:-14px}table.aligned[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{vertical-align:top}div.endpoint-list[_ngcontent-%COMP%]{display:float}mat-card.endpoint[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content;float:left;margin:0 8px}mat-card.endpoint[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%]{padding:8px 8px 0}mat-card.endpoint[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:16px;line-height:24px}mat-card.endpoint[_ngcontent-%COMP%] mat-card-subtitle[_ngcontent-%COMP%]{font-size:12px;line-height:24px}mat-card.endpoint[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:8px}"]}),n})();function t7(n,t){if(1&n&&(v(0,"mat-option",4),E(1),y()),2&n){const e=t.$implicit;B("value",e),I(1),Qt(e)}}let Ox=(()=>{class n{constructor(){this.containers=[],this.label="",this.createNew=new Xe,this.container="",this.onChange=e=>{}}writeValue(e){this.container=e}registerOnChange(e){this.onChange=e}registerOnTouched(e){}onSelectChange(e){"!"!=e&&this.onChange(e),this.createNew.emit("!"==e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=S({type:n,selectors:[["app-select-container"]],inputs:{containers:"containers",label:"label"},outputs:{createNew:"createNew"},features:[jt([{provide:br,multi:!0,useExisting:n}])],decls:7,vars:4,consts:[["appearance","fill"],["data-cy","select-container",3,"value","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["value","!"],[3,"value"]],template:function(e,i){1&e&&(v(0,"mat-form-field",0)(1,"mat-label"),E(2),y(),v(3,"mat-select",1),ue("selectionChange",function(o){return i.onSelectChange(o.value)}),X(4,t7,2,2,"mat-option",2),v(5,"mat-option",3),E(6),y()()()),2&e&&(I(2),Qt(i.label),I(1),B("value",i.container),I(1),B("ngForOf",i.containers),I(2),bi("(New ",i.label,")"))},dependencies:[ys,Bd,so,qr,yb]}),n})();const n7=function(){return[]};function i7(n,t){if(1&n){const e=Zt();v(0,"app-container",13),ue("created",function(r){return nt(e),at(ne().onNewContainerCreated(r))}),y()}if(2&n){let i;B("volumeNames",null!==(i=ne().volumeNames)&&void 0!==i?i:Ya(1,n7))}}let r7=(()=>{class n{constructor(e,i,r){var o=this;this.devstate=e,this.state=i,this.telemetry=r,this.canceled=new Xe,this.containerList=[],this.showNewContainer=!1,this.containerToCreate=null,this.volumesToCreate=[],this.volumeNames=[],this.form=new js({name:new Rt("",[Vn.required,Vn.pattern(wb)]),component:new Rt("",[Vn.required]),commandLine:new Rt("",[Vn.required]),workingDir:new Rt("",[Vn.required]),hotReloadCapable:new Rt(!1)}),this.state.state.subscribe(function(){var a=(0,xr.Z)(function*(c){o.volumeNames=c?.volumes.map(h=>h.name);const d=c?.containers;null!=d&&(o.containerList=d.map(h=>h.name))});return function(c){return a.apply(this,arguments)}}())}createVolumes(e,i,r){e.length!=i?this.devstate.addVolume(e[i]).subscribe({next:a=>{this.createVolumes(e,i+1,r)},error:a=>{alert(a.error.message)}}):r()}create(){this.telemetry.track("[ui] create exec command");const e=()=>{this.devstate.addExecCommand(this.form.value.name,this.form.value).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})};this.createVolumes(this.volumesToCreate,0,()=>{null!=this.containerToCreate&&this.containerToCreate?.name==this.form.controls.component.value?this.devstate.addContainer(this.containerToCreate).subscribe({next:()=>{e()},error:r=>{alert(r.error.message)}}):e()})}cancel(){this.canceled.emit()}onProjectsRoot(){this.form.controls.workingDir.setValue("${PROJECTS_ROOT}")}onCreateNewContainer(e){this.showNewContainer=e}onNewContainerCreated(e){const i=e.container;this.containerList.push(i.name),this.form.controls.component.setValue(i.name),this.showNewContainer=!1,this.containerToCreate=i,this.volumesToCreate.push(...e.volumes)}}return n.\u0275fac=function(e){return new(e||n)(D(ns),D(Zs),D(Ma))},n.\u0275cmp=S({type:n,selectors:[["app-command-exec"]],outputs:{canceled:"canceled"},decls:35,vars:4,consts:[[1,"main"],[1,"description"],[3,"formGroup"],["formControlName","hotReloadCapable"],["appearance","outline",1,"mid-width"],["placeholder","unique name to identify the command","data-cy","command-exec-name","matInput","","formControlName","name"],["placeholder","command line passed to the shell","data-cy","command-exec-command-line","matInput","","formControlName","commandLine"],["placeholder","Working directory of the command","data-cy","command-exec-working-dir","matInput","","formControlName","workingDir"],["data-cy","command-exec-projects-root","mat-button","",3,"click"],["formControlName","component","label","Container",3,"containers","createNew"],[3,"volumeNames","created",4,"ngIf"],["data-cy","command-exec-create","mat-flat-button","","color","primary","matTooltip","create new Exec Command",3,"disabled","click"],["mat-flat-button","",3,"click"],[3,"volumeNames","created"]],template:function(e,i){1&e&&(v(0,"div",0)(1,"h2"),E(2,"Add an Exec Command"),y(),v(3,"div",1),E(4,"An Exec command is a shell command executed into a container."),y(),v(5,"form",2)(6,"div")(7,"mat-checkbox",3),E(8,"Hot Reload Capable"),y()(),v(9,"mat-form-field",4)(10,"mat-label")(11,"span"),E(12,"Name"),y()(),v(13,"mat-error"),E(14,"Lowercase words separated by dashes. Ex: my-command"),y(),Pe(15,"input",5),y(),v(16,"mat-form-field",4)(17,"mat-label")(18,"span"),E(19,"Command Line"),y()(),Pe(20,"input",6),y(),v(21,"mat-form-field",4)(22,"mat-label")(23,"span"),E(24,"Working Dir"),y()(),Pe(25,"input",7),y(),v(26,"button",8),ue("click",function(){return i.onProjectsRoot()}),E(27,"Work on Project's Root Directory"),y(),v(28,"div")(29,"app-select-container",9),ue("createNew",function(o){return i.onCreateNewContainer(o)}),y()()(),X(30,i7,1,2,"app-container",10),v(31,"button",11),ue("click",function(){return i.create()}),E(32,"Create"),y(),v(33,"button",12),ue("click",function(){return i.cancel()}),E(34,"Cancel"),y()()),2&e&&(I(5),B("formGroup",i.form),I(24),B("containers",i.containerList),I(1),B("ngIf",i.showNewContainer),I(1),B("disabled",i.form.invalid))},dependencies:[Di,Tc,vs,$s,Qa,Do,wa,Yi,al,so,qr,sl,ws,cl,MA,Ox],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-form-field.full-width[_ngcontent-%COMP%]{width:100%}mat-form-field.mid-width[_ngcontent-%COMP%]{width:50%}"]}),n})();function o7(n,t){1&n&&(v(0,"h2"),E(1,"Add a new resource"),y())}function s7(n,t){if(1&n&&(v(0,"h2"),E(1,"Edit resource "),v(2,"i"),E(3),y()()),2&n){const e=ne();I(3),Qt(e.resource.name)}}function a7(n,t){1&n&&(v(0,"mat-form-field",19)(1,"mat-label")(2,"span"),E(3,"URI"),y()(),Pe(4,"input",20),y())}function c7(n,t){1&n&&(v(0,"mat-form-field",19)(1,"mat-label"),E(2,"YAML Manifest"),y(),Pe(3,"textarea",21),y())}function l7(n,t){if(1&n){const e=Zt();v(0,"button",22),ue("click",function(){return nt(e),at(ne().create())}),E(1,"Create"),y()}2&n&&B("disabled",ne().form.invalid)}function d7(n,t){if(1&n){const e=Zt();v(0,"button",23),ue("click",function(){return nt(e),at(ne().save())}),E(1,"Save"),y()}2&n&&B("disabled",ne().form.invalid)}function u7(n,t){if(1&n){const e=Zt();v(0,"button",24),ue("click",function(){return nt(e),at(ne().cancel())}),E(1,"Cancel"),y()}}let TA=(()=>{class n{constructor(e){this.telemetry=e,this.cancelable=!1,this.canceled=new Xe,this.created=new Xe,this.saved=new Xe,this.uriOrInlined="uri",this.form=new js({name:new Rt("",[Vn.required,Vn.pattern(Db)]),_choice:new Rt("uri"),uri:new Rt("",[Vn.required]),inlined:new Rt("",[]),deployByDefault:new Rt("undefined")})}changeUriOrInlined(e){this.uriOrInlined=e,"uri"==this.uriOrInlined?(this.form.controls.inlined.removeValidators(Vn.required),this.form.controls.inlined.setValue(""),this.form.controls.uri?.addValidators(Vn.required)):"inlined"==this.uriOrInlined&&(this.form.controls.uri?.removeValidators(Vn.required),this.form.controls.uri.setValue(""),this.form.controls.inlined?.setValidators(Vn.required)),this.form.controls.uri.updateValueAndValidity(),this.form.controls.inlined.updateValueAndValidity()}create(){this.telemetry.track("[ui] create resource"),this.created.emit(this.form.value)}save(){this.form.value.name=this.resource?.name,this.telemetry.track("[ui] edit resource"),this.saved.emit(this.form.value)}cancel(){this.canceled.emit()}ngOnChanges(e){if(!e.resource)return;const i=e.resource.currentValue;null==i?this.form.get("name")?.enable():(this.form.reset(),this.form.patchValue(i),i.inlined?(this.form.get("_choice")?.setValue("inlined"),this.changeUriOrInlined("inlined")):(this.form.get("_choice")?.setValue("uri"),this.changeUriOrInlined("uri")),this.form.get("name")?.disable())}}return n.\u0275fac=function(e){return new(e||n)(D(Ma))},n.\u0275cmp=S({type:n,selectors:[["app-resource"]],inputs:{cancelable:"cancelable",resource:"resource"},outputs:{canceled:"canceled",created:"created",saved:"saved"},features:[ji],decls:33,vars:8,consts:[[1,"main"],[4,"ngIf"],[1,"description"],[3,"formGroup"],[1,"toggle-group-div"],["formControlName","deployByDefault"],["data-cy","resource-auto-deploy-never","matTooltip","Do not deploy the resource at startup","value","never"],["data-cy","resource-auto-deploy-undefined","matTooltip","Deploy at startup only if the resource is not referenced in any command","value","undefined"],["data-cy","resource-auto-deploy-always","matTooltip","Force deploying the resource at startup","value","always"],["appearance","outline",1,"mid-width"],["placeholder","unique name to identify the resource","data-cy","resource-name","matInput","","formControlName","name"],[1,"toggleUriInlined"],["formControlName","_choice",3,"change"],["data-cy","resource-toogle-uri","value","uri"],["data-cy","resource-toggle-inlined","value","inlined"],["appearance","outline","class","full-width",4,"ngIf"],["data-cy","resource-create","mat-flat-button","","color","primary","matTooltip","create new resource",3,"disabled","click",4,"ngIf"],["data-cy","resource-save","mat-flat-button","","color","primary","matTooltip","save resource",3,"disabled","click",4,"ngIf"],["mat-flat-button","",3,"click",4,"ngIf"],["appearance","outline",1,"full-width"],["placeholder","Reference to a YAML manifest","data-cy","resource-uri","matInput","","formControlName","uri"],["data-cy","resource-manifest","matInput","","formControlName","inlined","rows","8"],["data-cy","resource-create","mat-flat-button","","color","primary","matTooltip","create new resource",3,"disabled","click"],["data-cy","resource-save","mat-flat-button","","color","primary","matTooltip","save resource",3,"disabled","click"],["mat-flat-button","",3,"click"]],template:function(e,i){1&e&&(v(0,"div",0),X(1,o7,2,0,"h2",1),X(2,s7,4,1,"h2",1),v(3,"div",2),E(4,"A Resource defines a Kubernetes resource. Its definition can be given either by a URI pointing to a manifest file or by an inlined YAML manifest."),y(),v(5,"form",3)(6,"div",4),E(7," Deploy at Startup: "),v(8,"mat-button-toggle-group",5)(9,"mat-button-toggle",6),E(10,"Never"),y(),v(11,"mat-button-toggle",7),E(12,"If Orphan"),y(),v(13,"mat-button-toggle",8),E(14,"Always"),y()()(),v(15,"mat-form-field",9)(16,"mat-label")(17,"span"),E(18,"Name"),y()(),v(19,"mat-error"),E(20,"Lowercase words separated by dashes. Ex: my-resource"),y(),Pe(21,"input",10),y(),v(22,"span",11)(23,"mat-button-toggle-group",12),ue("change",function(o){return i.changeUriOrInlined(o.value)}),v(24,"mat-button-toggle",13),E(25,"Specify URI"),y(),v(26,"mat-button-toggle",14),E(27,"Inlined content"),y()()(),X(28,a7,5,0,"mat-form-field",15),X(29,c7,4,0,"mat-form-field",15),y(),X(30,l7,2,1,"button",16),X(31,d7,2,1,"button",17),X(32,u7,2,0,"button",18),y()),2&e&&(I(1),B("ngIf",!i.resource),I(1),B("ngIf",i.resource),I(3),B("formGroup",i.form),I(23),B("ngIf","uri"==i.uriOrInlined),I(1),B("ngIf","inlined"==i.uriOrInlined),I(1),B("ngIf",!i.resource),I(1),B("ngIf",i.resource),I(1),B("ngIf",i.cancelable))},dependencies:[Di,Tc,vs,$s,Qa,Do,wa,Yi,vx,Cx,so,qr,sl,ws,cl],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-form-field.full-width[_ngcontent-%COMP%]{width:100%}mat-form-field.mid-width[_ngcontent-%COMP%]{width:50%}span.toggleUriInlined[_ngcontent-%COMP%]{margin-left:16px}"]}),n})();function h7(n,t){if(1&n){const e=Zt();v(0,"app-resource",9),ue("created",function(r){return nt(e),at(ne().onNewResourceCreated(r))}),y()}}let m7=(()=>{class n{constructor(e,i,r){var o=this;this.devstate=e,this.state=i,this.telemetry=r,this.canceled=new Xe,this.resourceList=[],this.showNewResource=!1,this.resourceToCreate=null,this.form=new js({name:new Rt("",[Vn.required,Vn.pattern(wb)]),component:new Rt("",[Vn.required])}),this.state.state.subscribe(function(){var a=(0,xr.Z)(function*(c){const d=c?.resources;null!=d&&(o.resourceList=d.map(h=>h.name))});return function(c){return a.apply(this,arguments)}}())}create(){this.telemetry.track("[ui] create apply command");const e=()=>{this.devstate.addApplyCommand(this.form.value.name,this.form.value).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})};null!=this.resourceToCreate&&this.resourceToCreate?.name==this.form.controls.component.value?this.devstate.addResource(this.resourceToCreate).subscribe({next:r=>{this.state.changeDevfileYaml(r),e()},error:r=>{alert(r.error.message)}}):e()}cancel(){this.canceled.emit()}onCreateNewContainer(e){this.showNewResource=e}onNewResourceCreated(e){this.resourceList.push(e.name),this.form.controls.component.setValue(e.name),this.showNewResource=!1,this.resourceToCreate=e}}return n.\u0275fac=function(e){return new(e||n)(D(ns),D(Zs),D(Ma))},n.\u0275cmp=S({type:n,selectors:[["app-command-apply"]],outputs:{canceled:"canceled"},decls:22,vars:4,consts:[[1,"main"],[1,"description"],[3,"formGroup"],["appearance","outline",1,"mid-width"],["placeholder","unique name to identify the command","data-cy","command-apply-name","matInput","","formControlName","name"],["formControlName","component","label","Resource",3,"containers","createNew"],[3,"created",4,"ngIf"],["data-cy","command-apply-create","mat-flat-button","","color","primary","matTooltip","create new Apply Command",3,"disabled","click"],["mat-flat-button","",3,"click"],[3,"created"]],template:function(e,i){1&e&&(v(0,"div",0)(1,"h2"),E(2,"Add an Apply Command"),y(),v(3,"div",1),E(4,'An Apply command "applies" a resource to the cluster. Equivalent to '),v(5,"code"),E(6,"kubectl apply -f ..."),y()(),v(7,"form",2)(8,"mat-form-field",3)(9,"mat-label")(10,"span"),E(11,"Name"),y()(),v(12,"mat-error"),E(13,"Lowercase words separated by dashes. Ex: my-command"),y(),Pe(14,"input",4),y(),v(15,"div")(16,"app-select-container",5),ue("createNew",function(o){return i.onCreateNewContainer(o)}),y()()(),X(17,h7,1,0,"app-resource",6),v(18,"button",7),ue("click",function(){return i.create()}),E(19,"Create"),y(),v(20,"button",8),ue("click",function(){return i.cancel()}),E(21,"Cancel"),y()()),2&e&&(I(7),B("formGroup",i.form),I(9),B("containers",i.resourceList),I(1),B("ngIf",i.showNewResource),I(1),B("disabled",i.form.invalid))},dependencies:[Di,Tc,vs,$s,Qa,Do,wa,Yi,so,qr,sl,ws,cl,Ox,TA],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-form-field.full-width[_ngcontent-%COMP%]{width:100%}mat-form-field.mid-width[_ngcontent-%COMP%]{width:50%}"]}),n})();function f7(n,t){if(1&n&&(v(0,"mat-option",7),E(1),y()),2&n){const e=t.$implicit;B("value",e),I(1),Qt(e)}}function p7(n,t){if(1&n){const e=Zt();v(0,"span")(1,"mat-form-field",4)(2,"mat-select",5),ue("selectionChange",function(r){const a=nt(e).index;return at(ne().onCommandChange(a,r.value))}),X(3,f7,2,2,"mat-option",6),y()()()}if(2&n){const e=t.$implicit,i=ne();I(2),B("value",e),I(1),B("ngForOf",i.commandList)}}function g7(n,t){if(1&n){const e=Zt();v(0,"button",8),ue("click",function(){return nt(e),at(ne().addCommand())}),v(1,"mat-icon",9),E(2,"add"),y()()}}function _7(n,t){if(1&n){const e=Zt();v(0,"button",10),ue("click",function(){return nt(e),at(ne().addCommand())}),E(1),y()}if(2&n){const e=ne();I(1),Qt(e.addLabel)}}let b7=(()=>{class n{constructor(){this.addLabel="",this.commandList=[],this.title="",this.onChange=e=>{},this.commands=[]}writeValue(e){this.commands=e}registerOnChange(e){this.onChange=e}registerOnTouched(e){}addCommand(){this.commands.push(""),this.onChange(this.commands)}onCommandChange(e,i){this.commands[e]=i,this.onChange(this.commands)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=S({type:n,selectors:[["app-multi-command"]],inputs:{addLabel:"addLabel",commandList:"commandList",title:"title"},features:[jt([{provide:br,multi:!0,useExisting:n}])],decls:6,vars:4,consts:[[1,"group"],[4,"ngFor","ngForOf"],["mat-icon-button","",3,"click",4,"ngIf"],["mat-flat-button","",3,"click",4,"ngIf"],["appearance","fill"],[3,"value","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["mat-icon-button","",3,"click"],[1,"tab-icon","material-icons-outlined"],["mat-flat-button","",3,"click"]],template:function(e,i){1&e&&(v(0,"h3"),E(1),y(),v(2,"div",0),X(3,p7,4,2,"span",1),X(4,g7,3,0,"button",2),X(5,_7,2,1,"button",3),y()),2&e&&(I(1),Qt(i.title),I(2),B("ngForOf",i.commands),I(1),B("ngIf",i.commands.length>0),I(1),B("ngIf",0==i.commands.length))},dependencies:[ys,Di,Bd,Yi,zf,so,Gs,yb],styles:["h3[_ngcontent-%COMP%]{margin-bottom:0}div.group[_ngcontent-%COMP%]{margin-bottom:16px}"]}),n})(),y7=(()=>{class n{constructor(e,i,r){var o=this;this.devstate=e,this.state=i,this.telemetry=r,this.canceled=new Xe,this.commandList=[],this.form=new js({name:new Rt("",[Vn.required,Vn.pattern(wb)]),parallel:new Rt(!1),commands:new Rt([])}),this.state.state.subscribe(function(){var a=(0,xr.Z)(function*(c){const d=c?.commands;null!=d&&(o.commandList=d.map(h=>h.name))});return function(c){return a.apply(this,arguments)}}())}create(){this.telemetry.track("[ui] create composite command"),this.devstate.addCompositeCommand(this.form.value.name,this.form.value).subscribe({next:i=>{this.state.changeDevfileYaml(i)},error:i=>{alert(i.error.message)}})}cancel(){this.canceled.emit()}}return n.\u0275fac=function(e){return new(e||n)(D(ns),D(Zs),D(Ma))},n.\u0275cmp=S({type:n,selectors:[["app-command-composite"]],outputs:{canceled:"canceled"},decls:21,vars:3,consts:[[1,"main"],[1,"description"],[3,"formGroup"],["appearance","outline",1,"mid-width"],["placeholder","unique name to identify the command","data-cy","command-composite-name","matInput","","formControlName","name"],["formControlName","parallel"],["formControlName","commands","title","Commands","addLabel","Add a command",3,"commandList"],["data-cy","command-composite-create","mat-flat-button","","color","primary","matTooltip","create new Composite Command",3,"disabled","click"],["mat-flat-button","",3,"click"]],template:function(e,i){1&e&&(v(0,"div",0)(1,"h2"),E(2,"Add a Composite Command"),y(),v(3,"div",1),E(4,"A Composite command executes several commands, either serially or in parallel."),y(),v(5,"form",2)(6,"mat-form-field",3)(7,"mat-label")(8,"span"),E(9,"Name"),y()(),v(10,"mat-error"),E(11,"Lowercase words separated by dashes. Ex: my-command"),y(),Pe(12,"input",4),y(),v(13,"div")(14,"mat-checkbox",5),E(15,"Run commands in parallel"),y()(),Pe(16,"app-multi-command",6),y(),v(17,"button",7),ue("click",function(){return i.create()}),E(18,"Create"),y(),v(19,"button",8),ue("click",function(){return i.cancel()}),E(20,"Cancel"),y()()),2&e&&(I(5),B("formGroup",i.form),I(11),B("commandList",i.commandList),I(1),B("disabled",i.form.invalid))},dependencies:[Tc,vs,$s,Qa,Do,wa,Yi,al,so,qr,sl,ws,cl,b7],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-form-field.full-width[_ngcontent-%COMP%]{width:100%}mat-form-field.mid-width[_ngcontent-%COMP%]{width:50%}"]}),n})();function v7(n,t){1&n&&(v(0,"h2"),E(1,"Add a new image"),y())}function C7(n,t){if(1&n&&(v(0,"h2"),E(1,"Edit image "),v(2,"i"),E(3),y()()),2&n){const e=ne();I(3),Qt(e.image.name)}}function x7(n,t){if(1&n){const e=Zt();v(0,"button",19),ue("click",function(){return nt(e),at(ne().create())}),E(1,"Create"),y()}2&n&&B("disabled",ne().form.invalid)}function w7(n,t){if(1&n){const e=Zt();v(0,"button",20),ue("click",function(){return nt(e),at(ne().save())}),E(1,"Save"),y()}2&n&&B("disabled",ne().form.invalid)}function D7(n,t){if(1&n){const e=Zt();v(0,"button",21),ue("click",function(){return nt(e),at(ne().cancel())}),E(1,"Cancel"),y()}}let kA=(()=>{class n{constructor(e){this.telemetry=e,this.cancelable=!1,this.canceled=new Xe,this.created=new Xe,this.saved=new Xe,this.form=new js({name:new Rt("",[Vn.required,Vn.pattern(Db)]),imageName:new Rt("",[Vn.required]),args:new Rt([]),buildContext:new Rt(""),rootRequired:new Rt(!1),uri:new Rt("",[Vn.required]),autoBuild:new Rt("undefined")})}create(){this.telemetry.track("[ui] create image"),this.created.emit(this.form.value)}save(){this.form.value.name=this.image?.name,this.telemetry.track("[ui] edit volume"),this.saved.emit(this.form.value)}cancel(){this.canceled.emit()}ngOnChanges(e){if(console.log("changes",e),!e.image)return;const i=e.image.currentValue;null==i?this.form.get("name")?.enable():(this.form.reset(),this.form.patchValue(i),this.form.get("name")?.disable())}}return n.\u0275fac=function(e){return new(e||n)(D(Ma))},n.\u0275cmp=S({type:n,selectors:[["app-image"]],inputs:{cancelable:"cancelable",image:"image"},outputs:{canceled:"canceled",created:"created",saved:"saved"},features:[ji],decls:43,vars:6,consts:[[1,"main"],[4,"ngIf"],[1,"description"],[3,"formGroup"],[1,"toggle-group-div"],["formControlName","autoBuild"],["data-cy","image-auto-build-never","matTooltip","Do not build the image at startup","value","never"],["data-cy","image-auto-build-undefined","matTooltip","Build at startup only if the image is not referenced in any command","value","undefined"],["data-cy","image-auto-build-always","matTooltip","Force building the image at startup","value","always"],["appearance","outline",1,"mid-width"],["placeholder","unique name to identify the image","data-cy","image-name","matInput","","formControlName","name"],["placeholder","Reference to a container image","data-cy","image-image-name","matInput","","formControlName","imageName"],["formControlName","args","title","Build Args","label","Arg","addLabel","Add Build Arg"],["placeholder","Directory from which the build will be executed","data-cy","image-build-context","matInput","","formControlName","buildContext"],["placeholder","Dockerfile used to build the image","data-cy","image-dockerfile-uri","matInput","","formControlName","uri"],["formControlName","rootRequired"],["data-cy","image-create","mat-flat-button","","color","primary","matTooltip","create new image",3,"disabled","click",4,"ngIf"],["data-cy","image-save","mat-flat-button","","color","primary","matTooltip","save image",3,"disabled","click",4,"ngIf"],["mat-flat-button","",3,"click",4,"ngIf"],["data-cy","image-create","mat-flat-button","","color","primary","matTooltip","create new image",3,"disabled","click"],["data-cy","image-save","mat-flat-button","","color","primary","matTooltip","save image",3,"disabled","click"],["mat-flat-button","",3,"click"]],template:function(e,i){1&e&&(v(0,"div",0),X(1,v7,2,0,"h2",1),X(2,C7,4,1,"h2",1),v(3,"div",2),E(4,"An Image defines how to build a container image."),y(),v(5,"form",3)(6,"div",4),E(7," Build at Startup: "),v(8,"mat-button-toggle-group",5)(9,"mat-button-toggle",6),E(10,"Never"),y(),v(11,"mat-button-toggle",7),E(12,"If Orphan"),y(),v(13,"mat-button-toggle",8),E(14,"Always"),y()()(),v(15,"mat-form-field",9)(16,"mat-label")(17,"span"),E(18,"Name"),y()(),v(19,"mat-error"),E(20,"Lowercase words separated by dashes. Ex: my-image"),y(),Pe(21,"input",10),y(),v(22,"mat-form-field",9)(23,"mat-label")(24,"span"),E(25,"Image Name"),y()(),Pe(26,"input",11),y(),Pe(27,"app-multi-text",12),v(28,"mat-form-field",9)(29,"mat-label")(30,"span"),E(31,"Build Context"),y()(),Pe(32,"input",13),y(),v(33,"mat-form-field",9)(34,"mat-label")(35,"span"),E(36,"Dockerfile URI"),y()(),Pe(37,"input",14),y(),v(38,"mat-checkbox",15),E(39,"Root Required"),y()(),X(40,x7,2,1,"button",16),X(41,w7,2,1,"button",17),X(42,D7,2,0,"button",18),y()),2&e&&(I(1),B("ngIf",!i.image),I(1),B("ngIf",i.image),I(3),B("formGroup",i.form),I(35),B("ngIf",!i.image),I(1),B("ngIf",i.image),I(1),B("ngIf",i.cancelable))},dependencies:[Di,Tc,vs,$s,Qa,Do,wa,Yi,vx,Cx,al,so,qr,sl,ws,cl,wA],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-form-field.full-width[_ngcontent-%COMP%]{width:100%}mat-form-field.mid-width[_ngcontent-%COMP%]{width:50%}div.toggle-group-div[_ngcontent-%COMP%]{margin:16px 0}"]}),n})();function M7(n,t){if(1&n){const e=Zt();v(0,"app-image",9),ue("created",function(r){return nt(e),at(ne().onNewImageCreated(r))}),y()}}let T7=(()=>{class n{constructor(e,i,r){var o=this;this.devstate=e,this.state=i,this.telemetry=r,this.canceled=new Xe,this.imageList=[],this.showNewImage=!1,this.imageToCreate=null,this.form=new js({name:new Rt("",[Vn.required,Vn.pattern(wb)]),component:new Rt("",[Vn.required])}),this.state.state.subscribe(function(){var a=(0,xr.Z)(function*(c){const d=c?.images;null!=d&&(o.imageList=d.map(h=>h.name))});return function(c){return a.apply(this,arguments)}}())}create(){this.telemetry.track("[ui] create image command");const e=()=>{this.devstate.addApplyCommand(this.form.value.name,this.form.value).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})};null!=this.imageToCreate&&this.imageToCreate?.name==this.form.controls.component.value?this.devstate.addImage(this.imageToCreate).subscribe({next:()=>{e()},error:r=>{alert(r.error.message)}}):e()}cancel(){this.canceled.emit()}onCreateNewImage(e){this.showNewImage=e}onNewImageCreated(e){this.imageList.push(e.name),this.form.controls.component.setValue(e.name),this.showNewImage=!1,this.imageToCreate=e}}return n.\u0275fac=function(e){return new(e||n)(D(ns),D(Zs),D(Ma))},n.\u0275cmp=S({type:n,selectors:[["app-command-image"]],outputs:{canceled:"canceled"},decls:20,vars:4,consts:[[1,"main"],[1,"description"],[3,"formGroup"],["appearance","outline",1,"mid-width"],["placeholder","unique name to identify the command","data-cy","command-image-name","matInput","","formControlName","name"],["formControlName","component","label","Image",3,"containers","createNew"],[3,"created",4,"ngIf"],["data-cy","command-image-create","mat-flat-button","","color","primary","matTooltip","create new Image Command",3,"disabled","click"],["mat-flat-button","",3,"click"],[3,"created"]],template:function(e,i){1&e&&(v(0,"div",0)(1,"h2"),E(2,"Add an Image Command"),y(),v(3,"div",1),E(4,"An Image command builds a container image and pushes it to a container registry."),y(),v(5,"form",2)(6,"mat-form-field",3)(7,"mat-label")(8,"span"),E(9,"Name"),y()(),v(10,"mat-error"),E(11,"Lowercase words separated by dashes. Ex: my-command"),y(),Pe(12,"input",4),y(),v(13,"div")(14,"app-select-container",5),ue("createNew",function(o){return i.onCreateNewImage(o)}),y()()(),X(15,M7,1,0,"app-image",6),v(16,"button",7),ue("click",function(){return i.create()}),E(17,"Create"),y(),v(18,"button",8),ue("click",function(){return i.cancel()}),E(19,"Cancel"),y()()),2&e&&(I(5),B("formGroup",i.form),I(9),B("containers",i.imageList),I(1),B("ngIf",i.showNewImage),I(1),B("disabled",i.form.invalid))},dependencies:[Di,Tc,vs,$s,Qa,Do,wa,Yi,so,qr,sl,ws,cl,Ox,kA],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-form-field.full-width[_ngcontent-%COMP%]{width:100%}mat-form-field.mid-width[_ngcontent-%COMP%]{width:50%}"]}),n})();function k7(n,t){if(1&n&&(v(0,"div",2),E(1),y()),2&n){const e=ne();I(1),bi("No ",e.kind," commands yet. You can create a command then drag&drop it here")}}function E7(n,t){1&n&&(v(0,"div",2),E(1,"No generic commands yet. New commands will appear here"),y())}function S7(n,t){if(1&n){const e=Zt();v(0,"mat-checkbox",10),ue("change",function(r){nt(e);const o=ne(2).$implicit;return at(ne().toggleDefault(r,o.name,o.group))}),E(1),y()}if(2&n){const e=ne(2).$implicit,i=ne();B("checked",e._default),I(1),bi("Default ",i.kind," command")}}function I7(n,t){1&n&&(v(0,"mat-card-subtitle"),E(1,"Exec Command"),y())}function A7(n,t){1&n&&(v(0,"mat-card-subtitle"),E(1,"Apply Command"),y())}function F7(n,t){1&n&&(v(0,"mat-card-subtitle"),E(1,"Image Command"),y())}function O7(n,t){1&n&&(v(0,"mat-card-subtitle"),E(1,"Composite Command"),y())}function R7(n,t){1&n&&(v(0,"span"),E(1,"Yes"),y())}function P7(n,t){1&n&&(v(0,"span"),E(1,"No"),y())}function L7(n,t){if(1&n&&(ro(0),v(1,"table",11)(2,"tr")(3,"td"),E(4,"Is Hot Reload Capable:"),y(),v(5,"td"),X(6,R7,2,0,"span",8),X(7,P7,2,0,"span",8),y()(),v(8,"tr")(9,"td"),E(10,"Command Line:"),y(),v(11,"td")(12,"code"),E(13),y()()(),v(14,"tr")(15,"td"),E(16,"Working Directory:"),y(),v(17,"td")(18,"code"),E(19),y()()(),v(20,"tr")(21,"td"),E(22,"Container:"),y(),v(23,"td")(24,"mat-chip",12)(25,"mat-icon",13),E(26,"width_normal"),y(),E(27),y()()()(),oo()),2&n){const e=ne(2).$implicit;I(6),B("ngIf",null==e.exec?null:e.exec.hotReloadCapable),I(1),B("ngIf",!(null!=e.exec&&e.exec.hotReloadCapable)),I(6),Qt(null==e.exec?null:e.exec.commandLine),I(6),Qt(null==e.exec?null:e.exec.workingDir),I(8),bi(" ",null==e.exec?null:e.exec.component," ")}}function N7(n,t){if(1&n&&(ro(0),v(1,"table",11)(2,"tr")(3,"td"),E(4,"Cluster resource:"),y(),v(5,"td")(6,"mat-chip",12)(7,"mat-icon",13),E(8,"description"),y(),E(9),y()()()(),oo()),2&n){const e=ne(2).$implicit;I(9),bi(" ",null==e.apply?null:e.apply.component," ")}}function B7(n,t){if(1&n&&(ro(0),v(1,"table",11)(2,"tr")(3,"td"),E(4,"Image:"),y(),v(5,"td")(6,"mat-chip",12)(7,"mat-icon",13),E(8,"image"),y(),E(9),y()()()(),oo()),2&n){const e=ne(2).$implicit;I(9),bi(" ",null==e.image?null:e.image.component," ")}}function V7(n,t){1&n&&(v(0,"div"),E(1,"Commands executed in parallel"),y())}function H7(n,t){1&n&&(v(0,"div"),E(1,"Commands executed serially"),y())}function z7(n,t){if(1&n&&(v(0,"mat-chip",12)(1,"mat-icon",13),E(2,"code"),y(),E(3),y()),2&n){const e=t.$implicit;I(3),bi(" ",e," ")}}function $7(n,t){if(1&n&&(ro(0),v(1,"table",11)(2,"tr")(3,"td"),E(4,"Scheduling:"),y(),v(5,"td"),X(6,V7,2,0,"div",8),X(7,H7,2,0,"div",8),y()(),v(8,"tr")(9,"td"),E(10,"Commands:"),y(),v(11,"td")(12,"mat-chip-set"),X(13,z7,4,1,"mat-chip",14),y()()()(),oo()),2&n){const e=ne(2).$implicit;I(6),B("ngIf",null==e.composite?null:e.composite.parallel),I(1),B("ngIf",!(null!=e.composite&&e.composite.parallel)),I(5),un("mat-mdc-chip-set-stacked",null==e.composite?null:e.composite.parallel),I(1),B("ngForOf",null==e.composite?null:e.composite.commands)}}function j7(n,t){if(1&n){const e=Zt();v(0,"mat-card",4)(1,"mat-card-header",5)(2,"div",6)(3,"mat-card-title"),E(4),y(),X(5,S7,2,2,"mat-checkbox",7),y(),v(6,"div"),X(7,I7,2,0,"mat-card-subtitle",8),X(8,A7,2,0,"mat-card-subtitle",8),X(9,F7,2,0,"mat-card-subtitle",8),X(10,O7,2,0,"mat-card-subtitle",8),y()(),v(11,"mat-card-content"),X(12,L7,28,5,"ng-container",8),X(13,N7,10,1,"ng-container",8),X(14,B7,10,1,"ng-container",8),X(15,$7,14,5,"ng-container",8),y(),v(16,"mat-card-actions")(17,"button",9),ue("click",function(){nt(e);const r=ne().$implicit;return at(ne().delete(r.name))}),E(18,"Delete"),y()()()}if(2&n){const e=ne().$implicit;B("cdkDragDisabled",ne().dragDisabled),I(4),bi(" ",e.name," "),I(1),B("ngIf",""!=e.group),I(2),B("ngIf","exec"==e.type),I(1),B("ngIf","apply"==e.type),I(1),B("ngIf","image"==e.type),I(1),B("ngIf","composite"==e.type),I(2),B("ngIf","exec"==e.type),I(1),B("ngIf","apply"==e.type),I(1),B("ngIf","image"==e.type),I(1),B("ngIf","composite"==e.type)}}function U7(n,t){if(1&n&&(ro(0),X(1,j7,19,11,"mat-card",3),oo()),2&n){const e=t.$implicit,i=ne();I(1),B("ngIf",e.group==i.kind)}}let W7=(()=>{class n{constructor(e,i){this.devstate=e,this.state=i,this.kind="",this.dragDisabled=!0}toggleDefault(e,i,r){e.checked?this.setDefault(i,r):this.unsetDefault(i)}setDefault(e,i){this.devstate.setDefaultCommand(e,i).subscribe({next:o=>{this.state.changeDevfileYaml(o)},error:o=>{alert(o.error.message)}})}unsetDefault(e){this.devstate.unsetDefaultCommand(e).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})}getCommandsByKind(e,i){return e?.filter(r=>r.group==i)}delete(e){confirm('You will delete the command "'+e+'". Continue?')&&this.devstate.deleteCommand(e).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})}}return n.\u0275fac=function(e){return new(e||n)(D(ns),D(Zs))},n.\u0275cmp=S({type:n,selectors:[["app-commands-list"]],inputs:{commands:"commands",kind:"kind",dragDisabled:"dragDisabled"},decls:3,vars:3,consts:[["class","nothing-here",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"nothing-here"],["data-cy","command-info","cdkDrag","",3,"cdkDragDisabled",4,"ngIf"],["data-cy","command-info","cdkDrag","",3,"cdkDragDisabled"],[1,"with-right-content","colored-title"],[1,"space-between"],[3,"checked","change",4,"ngIf"],[4,"ngIf"],["mat-button","","color","warn",3,"click"],[3,"checked","change"],[1,"aligned"],["disableRipple",""],["matChipAvatar","",1,"material-icons-outlined"],["disableRipple","",4,"ngFor","ngForOf"]],template:function(e,i){if(1&e&&(X(0,k7,2,1,"div",0),X(1,E7,2,0,"div",0),X(2,U7,2,1,"ng-container",1)),2&e){let r,o;B("ngIf",!(null!=(r=i.getCommandsByKind(i.commands,i.kind))&&r.length)&&""!=i.kind),I(1),B("ngIf",!(null!=(o=i.getCommandsByKind(i.commands,i.kind))&&o.length)&&""==i.kind),I(1),B("ngForOf",i.commands)}},dependencies:[ys,Di,HS,Yi,Mh,Sh,kh,Ih,Eh,Th,al,id,Tx,fb,Gs],styles:["mat-card-header.with-right-content[_ngcontent-%COMP%]{display:block}.space-between[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%}mat-card[_ngcontent-%COMP%]{margin-bottom:16px}mat-card-content[_ngcontent-%COMP%]{padding:16px}.command[_ngcontent-%COMP%]{border:1px solid #ddd;border-radius:4px;background-color:#eee;padding:4px;margin:4px}.parallel-command[_ngcontent-%COMP%]{margin:8px}.serial-commands[_ngcontent-%COMP%]{margin:4px}div.nothing-here[_ngcontent-%COMP%]{margin:0 4px 16px;color:#00000054}"]}),n})();function G7(n,t){if(1&n){const e=Zt();v(0,"app-command-exec",26),ue("canceled",function(){return nt(e),at(ne().undisplayExecForm())}),y()}}function Y7(n,t){if(1&n){const e=Zt();v(0,"app-command-apply",26),ue("canceled",function(){return nt(e),at(ne().undisplayApplyForm())}),y()}}function Z7(n,t){if(1&n){const e=Zt();v(0,"app-command-image",26),ue("canceled",function(){return nt(e),at(ne().undisplayImageForm())}),y()}}function q7(n,t){if(1&n){const e=Zt();v(0,"app-command-composite",26),ue("canceled",function(){return nt(e),at(ne().undisplayCompositeForm())}),y()}}function K7(n,t){if(1&n&&(ro(0),v(1,"button",27)(2,"mat-icon",28),E(3,"add"),y()(),oo()),2&n){ne();const e=Xo(48);I(1),B("matMenuTriggerFor",e)}}let X7=(()=>{class n{constructor(e,i,r){this.state=e,this.devstate=i,this.telemetry=r,this.forceDisplayExecForm=!1,this.forceDisplayApplyForm=!1,this.forceDisplayImageForm=!1,this.forceDisplayCompositeForm=!1,this.commands=[],this.enableDragAndDrop=this.state.getDragAndDropEnabled()}ngOnInit(){var e=this;this.state.state.subscribe(function(){var i=(0,xr.Z)(function*(r){e.commands=r?.commands,null!=e.commands&&(e.forceDisplayExecForm=!1,e.forceDisplayApplyForm=!1,e.forceDisplayImageForm=!1,e.forceDisplayCompositeForm=!1)});return function(r){return i.apply(this,arguments)}}())}displayExecForm(){this.telemetry.track("[ui] start create exec command"),this.forceDisplayExecForm=!0,setTimeout(()=>{this.scrollToBottom()},0)}displayApplyForm(){this.telemetry.track("[ui] start create apply command"),this.forceDisplayApplyForm=!0,setTimeout(()=>{this.scrollToBottom()},0)}displayImageForm(){this.telemetry.track("[ui] start create image command"),this.forceDisplayImageForm=!0,setTimeout(()=>{this.scrollToBottom()},0)}displayCompositeForm(){this.telemetry.track("[ui] start create composite command"),this.forceDisplayCompositeForm=!0,setTimeout(()=>{this.scrollToBottom()},0)}undisplayExecForm(){this.forceDisplayExecForm=!1}undisplayApplyForm(){this.forceDisplayApplyForm=!1}undisplayImageForm(){this.forceDisplayImageForm=!1}undisplayCompositeForm(){this.forceDisplayCompositeForm=!1}drop(e){this.moveCommand(e.previousContainer.data,e.container.data,e.previousIndex,e.currentIndex)}moveCommand(e,i,r,o){this.devstate.moveCommand(e,i,r,o).subscribe({next:c=>{this.state.changeDevfileYaml(c)},error:c=>{alert(c.error.message)}})}enableDragAndDropChange(){this.state.saveDragAndDropEnabled(this.enableDragAndDrop)}scrollToBottom(){window.scrollTo(0,document.body.scrollHeight)}}return n.\u0275fac=function(e){return new(e||n)(D(Zs),D(ns),D(Ma))},n.\u0275cmp=S({type:n,selectors:[["app-commands"]],decls:67,vars:18,consts:[[1,"main"],[1,"align-right"],[3,"ngModel","ngModelChange"],["cdkDropListGroup",""],["cdkDropList","","cdkDropListData","build",3,"cdkDropListDropped"],[1,"description"],["kind","build",3,"dragDisabled","commands"],["cdkDropList","","cdkDropListData","run",3,"cdkDropListDropped"],["kind","run",3,"dragDisabled","commands"],["cdkDropList","","cdkDropListData","test",3,"cdkDropListDropped"],["kind","test",3,"dragDisabled","commands"],["cdkDropList","","cdkDropListData","debug",3,"cdkDropListDropped"],["kind","debug",3,"dragDisabled","commands"],["cdkDropList","","cdkDropListData","deploy",3,"cdkDropListDropped"],["kind","deploy",3,"dragDisabled","commands"],["cdkDropList","","cdkDropListData","",3,"cdkDropListDropped"],["kind","",3,"dragDisabled","commands"],[3,"canceled",4,"ngIf"],[4,"ngIf"],["yPosition","above","xPosition","before"],["menu","matMenu"],["data-cy","new-command-exec","mat-menu-item","",3,"click"],[1,"tab-icon","material-icons-outlined"],["data-cy","new-command-image","mat-menu-item","",3,"click"],["data-cy","new-command-apply","mat-menu-item","",3,"click"],["data-cy","new-command-composite","mat-menu-item","",3,"click"],[3,"canceled"],["data-cy","add","mat-fab","","color","primary",1,"fab",3,"matMenuTriggerFor"],[1,"material-icons-outlined"]],template:function(e,i){1&e&&(v(0,"div",0)(1,"div",1)(2,"mat-checkbox",2),ue("ngModelChange",function(o){return i.enableDragAndDrop=o})("ngModelChange",function(){return i.enableDragAndDropChange()}),E(3,"Enable Drag and Drop"),y()(),v(4,"div",3)(5,"div",4),ue("cdkDropListDropped",function(o){return i.drop(o)}),v(6,"h2"),E(7,"Build Commands"),y(),v(8,"div",5),E(9,"When using odo, a Build command is the first command executed during the inner loop. The command is expected to terminate after the build is completed."),y(),Pe(10,"app-commands-list",6),y(),v(11,"div",7),ue("cdkDropListDropped",function(o){return i.drop(o)}),v(12,"h2"),E(13,"Run Commands"),y(),v(14,"div",5),E(15,"When using odo, a Run command is executed during the inner loop after the Build command terminates. The command is expected to not terminate."),y(),Pe(16,"app-commands-list",8),y(),v(17,"div",9),ue("cdkDropListDropped",function(o){return i.drop(o)}),v(18,"h2"),E(19,"Test Commands"),y(),Pe(20,"app-commands-list",10),y(),v(21,"div",11),ue("cdkDropListDropped",function(o){return i.drop(o)}),v(22,"h2"),E(23,"Debug Commands"),y(),v(24,"div",5),E(25,"When using odo, a Debug command is executed during the inner loop after the Build command terminates. The command is expected to not terminate."),y(),Pe(26,"app-commands-list",12),y(),v(27,"div",13),ue("cdkDropListDropped",function(o){return i.drop(o)}),v(28,"h2"),E(29,"Deploy Commands"),y(),v(30,"div",5),E(31,"When using odo, a Deploy command is executed with "),v(32,"code"),E(33,"odo deploy"),y(),E(34,"."),y(),Pe(35,"app-commands-list",14),y(),v(36,"div",15),ue("cdkDropListDropped",function(o){return i.drop(o)}),v(37,"h2"),E(38,"Generic Commands"),y(),v(39,"div",5),E(40,"Generic can be executed manually, or be part of composite commands and events."),y(),Pe(41,"app-commands-list",16),y()(),X(42,G7,1,0,"app-command-exec",17),X(43,Y7,1,0,"app-command-apply",17),X(44,Z7,1,0,"app-command-image",17),X(45,q7,1,0,"app-command-composite",17),y(),X(46,K7,4,1,"ng-container",18),v(47,"mat-menu",19,20)(49,"button",21),ue("click",function(){return i.displayExecForm()}),v(50,"mat-icon",22),E(51,"width_normal"),y(),v(52,"span"),E(53,"Exec command"),y()(),v(54,"button",23),ue("click",function(){return i.displayImageForm()}),v(55,"mat-icon",22),E(56,"image"),y(),v(57,"span"),E(58,"Image command"),y()(),v(59,"button",24),ue("click",function(){return i.displayApplyForm()}),v(60,"mat-icon",22),E(61,"description"),y(),v(62,"span"),E(63,"Apply command"),y()(),v(64,"button",25),ue("click",function(){return i.displayCompositeForm()}),v(65,"span"),E(66,"Composite command"),y()()()),2&e&&(I(2),B("ngModel",i.enableDragAndDrop),I(8),B("dragDisabled",!i.enableDragAndDrop)("commands",i.commands),I(6),B("dragDisabled",!i.enableDragAndDrop)("commands",i.commands),I(4),B("dragDisabled",!i.enableDragAndDrop)("commands",i.commands),I(6),B("dragDisabled",!i.enableDragAndDrop)("commands",i.commands),I(9),B("dragDisabled",!i.enableDragAndDrop)("commands",i.commands),I(6),B("dragDisabled",!i.enableDragAndDrop)("commands",i.commands),I(1),B("ngIf",i.forceDisplayExecForm),I(1),B("ngIf",i.forceDisplayApplyForm),I(1),B("ngIf",i.forceDisplayImageForm),I(1),B("ngIf",i.forceDisplayCompositeForm),I(1),B("ngIf",!(i.forceDisplayExecForm||i.forceDisplayApplyForm||i.forceDisplayImageForm||i.forceDisplayCompositeForm)))},dependencies:[Di,$s,bC,NS,RS,Hf,al,Gs,Gz,_b,Kz,r7,m7,y7,T7,W7],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-card[_ngcontent-%COMP%]{margin-bottom:16px}mat-card-content[_ngcontent-%COMP%]{padding:16px}.command[_ngcontent-%COMP%]{border:1px solid #ddd;border-radius:4px;background-color:#eee;padding:4px;margin:4px}.parallel-command[_ngcontent-%COMP%]{margin:8px}.serial-commands[_ngcontent-%COMP%]{margin:4px}h2[_ngcontent-%COMP%]{color:#3f51b5}div.align-right[_ngcontent-%COMP%]{text-align:right}"]}),n})();function Q7(n,t){1&n&&(v(0,"td")(1,"code"),E(2,"Yes, forced"),y()())}function J7(n,t){1&n&&(v(0,"td")(1,"code"),E(2,"Yes, the resource is not referenced by any command"),y()())}function e9(n,t){1&n&&(v(0,"td")(1,"code"),E(2,"No, the resource is referenced by a command"),y()())}function t9(n,t){1&n&&(v(0,"td")(1,"code"),E(2,"No, disabled"),y()())}function n9(n,t){if(1&n&&(v(0,"div"),E(1,"URI: "),v(2,"code"),E(3),y()()),2&n){const e=ne().$implicit;I(3),Qt(e.uri)}}function i9(n,t){if(1&n&&(v(0,"div")(1,"pre"),E(2),y()()),2&n){const e=ne().$implicit;I(2),Qt(e.inlined)}}function r9(n,t){if(1&n){const e=Zt();v(0,"mat-card",4)(1,"mat-card-header",5)(2,"mat-card-title"),E(3),y(),v(4,"mat-card-subtitle"),E(5,"Cluster Resource"),y()(),v(6,"mat-card-content")(7,"table",6)(8,"tr",7)(9,"td"),E(10,"Deploy at Startup:"),y(),X(11,Q7,3,0,"td",3),X(12,J7,3,0,"td",3),X(13,e9,3,0,"td",3),X(14,t9,3,0,"td",3),y()(),X(15,n9,4,1,"div",3),X(16,i9,3,1,"div",3),y(),v(17,"mat-card-actions")(18,"button",8),ue("click",function(){const o=nt(e).$implicit;return at(ne().delete(o.name))}),E(19,"Delete"),y(),v(20,"button",9),ue("click",function(){const o=nt(e).$implicit;return at(ne().edit(o))}),E(21,"Edit"),y()()()}if(2&n){const e=t.$implicit;I(3),Qt(e.name),I(8),B("ngIf","always"==e.deployByDefault),I(1),B("ngIf","undefined"==e.deployByDefault&&e.orphan),I(1),B("ngIf","undefined"==e.deployByDefault&&!e.orphan),I(1),B("ngIf","never"==e.deployByDefault),I(1),B("ngIf",e.uri),I(1),B("ngIf",e.inlined)}}function o9(n,t){if(1&n){const e=Zt();v(0,"app-resource",10),ue("canceled",function(){return nt(e),at(ne().undisplayAddForm())})("created",function(r){return nt(e),at(ne().onCreated(r))})("saved",function(r){return nt(e),at(ne().onSaved(r))}),y()}if(2&n){const e=ne();B("cancelable",e.forceDisplayForm)("resource",e.editingResource)}}function s9(n,t){if(1&n){const e=Zt();ro(0),v(1,"button",11),ue("click",function(){return nt(e),at(ne().displayAddForm())}),v(2,"mat-icon",12),E(3,"add"),y()(),oo()}}let a9=(()=>{class n{constructor(e,i){this.state=e,this.devstate=i,this.forceDisplayForm=!1,this.resources=[]}ngOnInit(){var e=this;const i=this;this.state.state.subscribe(function(){var r=(0,xr.Z)(function*(o){i.resources=o?.resources,null!=e.resources&&(i.forceDisplayForm=!1)});return function(o){return r.apply(this,arguments)}}())}displayAddForm(){this.editingResource=void 0,this.displayForm()}displayForm(){this.forceDisplayForm=!0,setTimeout(()=>{this.scrollToBottom()},0)}undisplayAddForm(){this.forceDisplayForm=!1}delete(e){confirm('You will delete the resource "'+e+'". Continue?')&&this.devstate.deleteResource(e).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})}edit(e){this.editingResource=e,this.displayForm()}onCreated(e){this.devstate.addResource(e).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})}onSaved(e){this.devstate.saveResource(e).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})}scrollToBottom(){window.scrollTo(0,document.body.scrollHeight)}}return n.\u0275fac=function(e){return new(e||n)(D(Zs),D(ns))},n.\u0275cmp=S({type:n,selectors:[["app-resources"]],decls:4,vars:3,consts:[[1,"main"],["data-cy","resource-info",4,"ngFor","ngForOf"],[3,"cancelable","resource","canceled","created","saved",4,"ngIf"],[4,"ngIf"],["data-cy","resource-info"],[1,"colored-title"],[1,"aligned"],["data-cy","resource-deploy-startup"],["mat-button","","color","warn",3,"click"],["data-cy","resource-edit","mat-button","",3,"click"],[3,"cancelable","resource","canceled","created","saved"],["mat-fab","","color","primary",1,"fab",3,"click"],[1,"material-icons-outlined"]],template:function(e,i){1&e&&(v(0,"div",0),X(1,r9,22,7,"mat-card",1),X(2,o9,1,2,"app-resource",2),y(),X(3,s9,4,0,"ng-container",3)),2&e&&(I(1),B("ngForOf",i.resources),I(1),B("ngIf",i.forceDisplayForm||null==i.resources||0==i.resources.length),I(1),B("ngIf",!i.forceDisplayForm&&null!=i.resources&&i.resources.length>0))},dependencies:[ys,Di,Yi,Hf,Mh,Sh,kh,Ih,Eh,Th,Gs,TA],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-card[_ngcontent-%COMP%]{margin-bottom:16px}mat-card-content[_ngcontent-%COMP%]{padding:16px}"]}),n})();function c9(n,t){1&n&&(v(0,"td")(1,"code"),E(2,"Yes, forced"),y()())}function l9(n,t){1&n&&(v(0,"td")(1,"code"),E(2,"Yes, the image is not referenced by any command"),y()())}function d9(n,t){1&n&&(v(0,"td")(1,"code"),E(2,"No, the image is referenced by a command"),y()())}function u9(n,t){1&n&&(v(0,"td")(1,"code"),E(2,"No, disabled"),y()())}function h9(n,t){if(1&n&&(v(0,"tr")(1,"td"),E(2,"Build Args:"),y(),v(3,"td")(4,"code"),E(5),y()()()),2&n){const e=ne().$implicit;I(5),Qt(e.args)}}function m9(n,t){if(1&n){const e=Zt();v(0,"mat-card",4)(1,"mat-card-header",5)(2,"mat-card-title"),E(3),y(),v(4,"mat-card-subtitle"),E(5,"Image"),y()(),v(6,"mat-card-content")(7,"table",6)(8,"tr",7)(9,"td"),E(10,"Build at Startup:"),y(),X(11,c9,3,0,"td",3),X(12,l9,3,0,"td",3),X(13,d9,3,0,"td",3),X(14,u9,3,0,"td",3),y(),v(15,"tr")(16,"td"),E(17,"Image Name:"),y(),v(18,"td")(19,"code"),E(20),y()()(),v(21,"tr")(22,"td"),E(23,"Dockerfile URI:"),y(),v(24,"td")(25,"code"),E(26),y()()(),X(27,h9,6,1,"tr",3),v(28,"tr")(29,"td"),E(30,"Build Context:"),y(),v(31,"td")(32,"code"),E(33),y()()(),v(34,"tr")(35,"td"),E(36,"Root Required:"),y(),v(37,"td")(38,"code"),E(39),y()()()()(),v(40,"mat-card-actions")(41,"button",8),ue("click",function(){const o=nt(e).$implicit;return at(ne().delete(o.name))}),E(42,"Delete"),y(),v(43,"button",9),ue("click",function(){const o=nt(e).$implicit;return at(ne().edit(o))}),E(44,"Edit"),y()()()}if(2&n){const e=t.$implicit;I(3),Qt(e.name),I(8),B("ngIf","always"==e.autoBuild),I(1),B("ngIf","undefined"==e.autoBuild&&e.orphan),I(1),B("ngIf","undefined"==e.autoBuild&&!e.orphan),I(1),B("ngIf","never"==e.autoBuild),I(6),Qt(e.imageName),I(6),Qt(e.uri),I(1),B("ngIf",null!=e.args&&e.args.length>0),I(6),Qt(e.buildContext),I(6),Qt(e.rootRequired?"Yes":"No")}}function f9(n,t){if(1&n){const e=Zt();v(0,"app-image",10),ue("canceled",function(){return nt(e),at(ne().undisplayAddForm())})("created",function(r){return nt(e),at(ne().onCreated(r))})("saved",function(r){return nt(e),at(ne().onSaved(r))}),y()}if(2&n){const e=ne();B("cancelable",e.forceDisplayForm)("image",e.editingImage)}}function p9(n,t){if(1&n){const e=Zt();ro(0),v(1,"button",11),ue("click",function(){return nt(e),at(ne().displayAddForm())}),v(2,"mat-icon",12),E(3,"add"),y()(),oo()}}let g9=(()=>{class n{constructor(e,i){this.state=e,this.devstate=i,this.forceDisplayForm=!1,this.images=[]}ngOnInit(){var e=this;const i=this;this.state.state.subscribe(function(){var r=(0,xr.Z)(function*(o){i.images=o?.images,null!=e.images&&(i.forceDisplayForm=!1)});return function(o){return r.apply(this,arguments)}}())}displayAddForm(){this.editingImage=void 0,this.displayForm()}displayForm(){this.forceDisplayForm=!0,setTimeout(()=>{this.scrollToBottom()},0)}undisplayAddForm(){this.forceDisplayForm=!1}delete(e){confirm('You will delete the image "'+e+'". Continue?')&&this.devstate.deleteImage(e).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})}edit(e){this.editingImage=e,this.displayForm()}onCreated(e){this.devstate.addImage(e).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})}onSaved(e){this.devstate.saveImage(e).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})}scrollToBottom(){window.scrollTo(0,document.body.scrollHeight)}}return n.\u0275fac=function(e){return new(e||n)(D(Zs),D(ns))},n.\u0275cmp=S({type:n,selectors:[["app-images"]],decls:4,vars:3,consts:[[1,"main"],["data-cy","image-info",4,"ngFor","ngForOf"],[3,"cancelable","image","canceled","created","saved",4,"ngIf"],[4,"ngIf"],["data-cy","image-info"],[1,"colored-title"],[1,"aligned"],["data-cy","image-build-startup"],["mat-button","","color","warn",3,"click"],["data-cy","image-edit","mat-button","",3,"click"],[3,"cancelable","image","canceled","created","saved"],["mat-fab","","color","primary",1,"fab",3,"click"],[1,"material-icons-outlined"]],template:function(e,i){1&e&&(v(0,"div",0),X(1,m9,45,10,"mat-card",1),X(2,f9,1,2,"app-image",2),y(),X(3,p9,4,0,"ng-container",3)),2&e&&(I(1),B("ngForOf",i.images),I(1),B("ngIf",i.forceDisplayForm||null==i.images||0==i.images.length),I(1),B("ngIf",!i.forceDisplayForm&&null!=i.images&&i.images.length>0))},dependencies:[ys,Di,Yi,Hf,Mh,Sh,kh,Ih,Eh,Th,Gs,kA],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-card[_ngcontent-%COMP%]{margin-bottom:16px}mat-card-content[_ngcontent-%COMP%]{padding:16px}"]}),n})();function _9(n,t){if(1&n){const e=Zt();v(0,"mat-chip-row",8),ue("removed",function(){const o=nt(e).$implicit;return at(ne().remove(o))}),E(1),v(2,"button",9)(3,"mat-icon",10),E(4,"cancel"),y()()()}if(2&n){const e=t.$implicit;I(1),bi(" ",e," ")}}function b9(n,t){if(1&n&&(v(0,"mat-option",11),E(1),y()),2&n){const e=t.$implicit;B("value",e),I(1),bi(" ",e," ")}}let y9=(()=>{class n{constructor(e){this.commandInput=e,this.commands=[],this.allCommands=[],this.updated=new Xe,this.separatorKeysCodes=[13,188],this.commandCtrl=new Rt(""),this.filteredCommands=new ye}ngOnChanges(e){this.filteredCommands=this.commandCtrl.valueChanges.pipe(Br(null),Ln(i=>i?this._filter(i):this.allCommands.slice()))}add(e){const i=(e.value||"").trim();i&&(this.commands.push(i),this.updated.emit(this.commands)),e.chipInput.clear(),this.commandCtrl.setValue(null)}remove(e){const i=this.commands.indexOf(e);i>=0&&(this.commands.splice(i,1),this.updated.emit(this.commands))}selected(e){this.commands.push(e.option.viewValue),this.updated.emit(this.commands),this.commandInput.nativeElement.value="",this.commandCtrl.setValue(null)}_filter(e){const i=e.toLowerCase();return this.allCommands.filter(r=>r.toLowerCase().includes(i))}}return n.\u0275fac=function(e){return new(e||n)(D(k))},n.\u0275cmp=S({type:n,selectors:[["app-chips-events"]],inputs:{commands:"commands",allCommands:"allCommands"},outputs:{updated:"updated"},features:[ji],decls:12,vars:8,consts:[["appearance","fill",1,"chip-list"],["chipGrid",""],[3,"removed",4,"ngFor","ngForOf"],["data-cy","input","placeholder","New command...",3,"formControl","matChipInputFor","matAutocomplete","matChipInputSeparatorKeyCodes","matChipInputTokenEnd"],["commandInput",""],[3,"optionSelected"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[3,"removed"],["matChipRemove",""],[1,"material-icons-outlined"],[3,"value"]],template:function(e,i){if(1&e&&(v(0,"mat-form-field",0)(1,"mat-label"),E(2,"Commands"),y(),v(3,"mat-chip-grid",null,1),X(5,_9,5,1,"mat-chip-row",2),y(),v(6,"input",3,4),ue("matChipInputTokenEnd",function(o){return i.add(o)}),y(),v(8,"mat-autocomplete",5,6),ue("optionSelected",function(o){return i.selected(o)}),X(10,b9,2,2,"mat-option",7),Zm(11,"async"),y()()),2&e){const r=Xo(4),o=Xo(9);I(5),B("ngForOf",i.commands),I(1),B("formControl",i.commandCtrl)("matChipInputFor",r)("matAutocomplete",o)("matChipInputSeparatorKeyCodes",i.separatorKeysCodes),I(4),B("ngForOf",qm(11,6,i.filteredCommands))}},dependencies:[ys,vs,$s,CC,q6,Bd,CI,$I,jI,VI,kx,so,qr,Gs,v0],styles:[".chip-list[_ngcontent-%COMP%]{width:100%}"]}),n})();const rd=function(){return[]};let v9=(()=>{class n{constructor(e,i,r){this.state=e,this.devstate=i,this.telemetry=r}ngOnInit(){var e=this;this.state.state.subscribe(function(){var i=(0,xr.Z)(function*(r){e.events=r?.events,null==e.events&&(e.events={}),null==e.events.preStart&&(e.events.preStart=[]),null==e.events.preStop&&(e.events.preStop=[]),null==e.events.postStart&&(e.events.postStart=[]),null==e.events.postStop&&(e.events.postStop=[]),e.allCommands=r?.commands?.map(o=>o.name)});return function(r){return i.apply(this,arguments)}}())}onUpdate(e,i){this.telemetry.track("[ui] add "+e+" event"),this.devstate.updateEvents(e,i).subscribe({next:o=>{this.state.changeDevfileYaml(o)},error:o=>{alert(o.error.message)}})}}return n.\u0275fac=function(e){return new(e||n)(D(Zs),D(ns),D(Ma))},n.\u0275cmp=S({type:n,selectors:[["app-events"]],decls:21,vars:16,consts:[[1,"main"],[1,"description"],["data-cy","prestart",3,"commands","allCommands","updated"],["data-cy","poststart",3,"commands","allCommands","updated"],["data-cy","prestop",3,"commands","allCommands","updated"],["data-cy","poststop",3,"commands","allCommands","updated"]],template:function(e,i){if(1&e&&(v(0,"div",0)(1,"h2"),E(2,"Pre-Start event"),y(),v(3,"div",1),E(4,"Pre-Start commands are executed before the inner loop is started, inside init-containers (not implemented by odo)."),y(),v(5,"app-chips-events",2),ue("updated",function(o){return i.onUpdate("preStart",o)}),y(),v(6,"h2"),E(7,"Post-Start event"),y(),v(8,"div",1),E(9,"Post-Start commands are executed at the beginning of the inner loop, inside pre-fetched containers."),y(),v(10,"app-chips-events",3),ue("updated",function(o){return i.onUpdate("postStart",o)}),y(),v(11,"h2"),E(12,"Pre-Stop event"),y(),v(13,"div",1),E(14,"Pre-Stop commands are executed at the end of the inner loop, inside pre-fetched containers."),y(),v(15,"app-chips-events",4),ue("updated",function(o){return i.onUpdate("preStop",o)}),y(),v(16,"h2"),E(17,"Post-Stop event"),y(),v(18,"div",1),E(19,"Post-Stop commands are executed after the inner loop is finished (not implemented by odo)."),y(),v(20,"app-chips-events",5),ue("updated",function(o){return i.onUpdate("postStop",o)}),y()()),2&e){let r,o,a,c,d,h,p,_;I(5),B("commands",null!==(r=null==i.events?null:i.events.preStart)&&void 0!==r?r:Ya(8,rd))("allCommands",null!==(o=i.allCommands)&&void 0!==o?o:Ya(9,rd)),I(5),B("commands",null!==(a=null==i.events?null:i.events.postStart)&&void 0!==a?a:Ya(10,rd))("allCommands",null!==(c=i.allCommands)&&void 0!==c?c:Ya(11,rd)),I(5),B("commands",null!==(d=null==i.events?null:i.events.preStop)&&void 0!==d?d:Ya(12,rd))("allCommands",null!==(h=i.allCommands)&&void 0!==h?h:Ya(13,rd)),I(5),B("commands",null!==(p=null==i.events?null:i.events.postStop)&&void 0!==p?p:Ya(14,rd))("allCommands",null!==(_=i.allCommands)&&void 0!==_?_:Ya(15,rd))}},dependencies:[y9],styles:[".main[_ngcontent-%COMP%]{padding:16px}h2[_ngcontent-%COMP%]{color:#3f51b5}"]}),n})();function C9(n,t){if(1&n&&(v(0,"tr")(1,"td"),E(2,"Size:"),y(),v(3,"td")(4,"code"),E(5),y()()()),2&n){const e=ne().$implicit;I(5),Qt(e.size)}}function x9(n,t){if(1&n){const e=Zt();v(0,"mat-card",4)(1,"mat-card-header",5)(2,"mat-card-title"),E(3),y(),v(4,"mat-card-subtitle"),E(5,"Volume"),y()(),v(6,"mat-card-content")(7,"table",6),X(8,C9,6,1,"tr",3),v(9,"tr")(10,"td"),E(11,"Volume is Ephemeral:"),y(),v(12,"td")(13,"code"),E(14),y()()()()(),v(15,"mat-card-actions")(16,"button",7),ue("click",function(){const o=nt(e).$implicit;return at(ne().delete(o.name))}),E(17,"Delete"),y(),v(18,"button",8),ue("click",function(){const o=nt(e).$implicit;return at(ne().edit(o))}),E(19,"Edit"),y()()()}if(2&n){const e=t.$implicit;I(3),Qt(e.name),I(5),B("ngIf",e.size),I(6),Qt(e.ephemeral?"Yes":"No")}}function w9(n,t){if(1&n){const e=Zt();v(0,"app-volume",9),ue("canceled",function(){return nt(e),at(ne().undisplayAddForm())})("created",function(r){return nt(e),at(ne().onCreated(r))})("saved",function(r){return nt(e),at(ne().onSaved(r))}),y()}if(2&n){const e=ne();B("cancelable",e.forceDisplayForm)("volume",e.editingVolume)}}function D9(n,t){if(1&n){const e=Zt();ro(0),v(1,"button",10),ue("click",function(){return nt(e),at(ne().displayAddForm())}),v(2,"mat-icon",11),E(3,"add"),y()(),oo()}}let M9=(()=>{class n{constructor(e,i){this.state=e,this.devstate=i,this.forceDisplayForm=!1,this.volumes=[]}ngOnInit(){var e=this;const i=this;this.state.state.subscribe(function(){var r=(0,xr.Z)(function*(o){i.volumes=o?.volumes,null!=e.volumes&&(i.forceDisplayForm=!1)});return function(o){return r.apply(this,arguments)}}())}displayAddForm(){this.editingVolume=void 0,this.displayForm()}displayForm(){this.forceDisplayForm=!0,setTimeout(()=>{this.scrollToBottom()},0)}undisplayAddForm(){this.forceDisplayForm=!1}delete(e){confirm('You will delete the volume "'+e+'". Continue?')&&this.devstate.deleteVolume(e).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})}edit(e){this.editingVolume=e,this.displayForm()}onCreated(e){this.devstate.addVolume(e).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})}onSaved(e){this.devstate.saveVolume(e).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})}scrollToBottom(){window.scrollTo(0,document.body.scrollHeight)}}return n.\u0275fac=function(e){return new(e||n)(D(Zs),D(ns))},n.\u0275cmp=S({type:n,selectors:[["app-volumes"]],decls:4,vars:3,consts:[[1,"main"],["data-cy","volume-info",4,"ngFor","ngForOf"],[3,"cancelable","volume","canceled","created","saved",4,"ngIf"],[4,"ngIf"],["data-cy","volume-info"],[1,"colored-title"],[1,"aligned"],["mat-button","","color","warn",3,"click"],["data-cy","volume-edit","mat-button","",3,"click"],[3,"cancelable","volume","canceled","created","saved"],["mat-fab","","color","primary",1,"fab",3,"click"],[1,"material-icons-outlined"]],template:function(e,i){1&e&&(v(0,"div",0),X(1,x9,20,3,"mat-card",1),X(2,w9,1,2,"app-volume",2),y(),X(3,D9,4,0,"ng-container",3)),2&e&&(I(1),B("ngForOf",i.volumes),I(1),B("ngIf",i.forceDisplayForm||null==i.volumes||0==i.volumes.length),I(1),B("ngIf",!i.forceDisplayForm&&null!=i.volumes&&i.volumes.length>0))},dependencies:[ys,Di,Yi,Hf,Mh,Sh,kh,Ih,Eh,Th,Gs,DA],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-card[_ngcontent-%COMP%]{margin-bottom:16px}mat-card-content[_ngcontent-%COMP%]{padding:16px}"]}),n})();function T9(n,t){1&n&&E(0),2&n&&bi(" ",ne().tabNames[2]," ")}function k9(n,t){if(1&n&&(v(0,"mat-icon",20),E(1,"code"),y(),E(2)),2&n){const e=ne();I(2),bi(" ",e.tabNames[3]," ")}}function E9(n,t){if(1&n&&(v(0,"mat-icon",20),E(1,"alarm"),y(),E(2)),2&n){const e=ne();I(2),bi(" ",e.tabNames[4]," ")}}function S9(n,t){if(1&n&&(v(0,"mat-icon",20),E(1,"width_normal"),y(),E(2)),2&n){const e=ne();I(2),bi(" ",e.tabNames[5]," ")}}function I9(n,t){if(1&n&&(v(0,"mat-icon",20),E(1,"image"),y(),E(2)),2&n){const e=ne();I(2),bi(" ",e.tabNames[6]," ")}}function A9(n,t){if(1&n&&(v(0,"mat-icon",20),E(1,"description"),y(),E(2)),2&n){const e=ne();I(2),bi(" ",e.tabNames[7]," ")}}function F9(n,t){if(1&n&&(v(0,"mat-icon",20),E(1,"storage"),y(),E(2)),2&n){const e=ne();I(2),bi(" ",e.tabNames[8]," ")}}let O9=(()=>{class n{constructor(e,i,r,o,a,c,d,h,p){this.sanitizer=e,this.matIconRegistry=i,this.wasmGo=r,this.odoApi=o,this.mermaid=a,this.state=c,this.sse=d,this.telemetry=h,this.snackbar=p,this.tabNames=["YAML","Chart","Metadata","Commands","Events","Containers","Images","Resources","Volumes"],this.mermaidContent="",this.devfileYaml="",this.snackBarRef=null,this.matIconRegistry.addSvgIcon("github",this.sanitizer.bypassSecurityTrustResourceUrl("../assets/github-24.svg"))}ngOnInit(){var e=this;const i=document.getElementById("loading");null!=i&&(i.style.visibility="hidden"),this.odoApi.getDevfile().subscribe({next:o=>{null!=o.content&&this.propagateChange(o.content,!1,!0)}}),this.state.state.subscribe(function(){var o=(0,xr.Z)(function*(a){var d;null!=a&&(e.devfileYaml=a.content,e.wasmGo.getFlowChart().subscribe({next:(d=(0,xr.Z)(function*(h){const p=yield e.mermaid.getMermaidAsSVG(h.chart);e.mermaidContent=p}),function(p){return d.apply(this,arguments)}),error:d=>{console.log(d)}}),"2.2.0"!=a.version&&e.snackbar.open("The version of the Devfile is "+a.version+".\nOnly version 2.2.0 is supported","ok"))});return function(a){return o.apply(this,arguments)}}()),this.sse.subscribeTo(["DevfileUpdated"]).subscribe(o=>{const a=JSON.parse(o.data);this.state.isUpdated(a.content)&&(null!=this.snackBarRef&&(this.snackBarRef.afterDismissed().subscribe(()=>{}),this.snackBarRef.dismiss()),this.snackBarRef=this.snackbar.openFromComponent($j,{data:{message:"The Devfile has changed on disk. Do you want to update it here?",noLabel:"Cancel",yesLabel:"Update"}}),this.snackBarRef.onAction().subscribe(()=>{null!=a.content&&this.propagateChange(a.content,!1,!0),this.snackBarRef=null}),this.snackBarRef.afterDismissed().subscribe(()=>{this.snackBarRef=null}))}),this.odoApi.telemetry().subscribe({next:o=>{if(o.enabled){if(null==o.apikey||null==o.userid)return;this.telemetry.init(o.apikey,o.userid),this.telemetry.track("[ui] start")}},error:()=>{}})}propagateChange(e,i,r){this.wasmGo.setDevfileContent(e).subscribe({next:a=>{this.state.changeDevfileYaml(a,r),i&&this.odoApi.saveDevfile(a.content).subscribe({next:()=>{},error:c=>{this.snackbar.open(c.error.message,"ok")}})},error:a=>{this.snackbar.open(a.error.message,"ok")}})}onSave(e){this.telemetry.track("[ui] save devfile to disk"),this.propagateChange(e,!0,!0)}onApply(e){this.telemetry.track("[ui] change devfile from textarea"),this.propagateChange(e,!1,!1)}clear(){confirm("You will delete the content of the Devfile. Continue?")&&(this.telemetry.track("[ui] clear devfile"),this.wasmGo.clearDevfileContent().subscribe({next:e=>{this.propagateChange(e.content,!1,!1)}}))}onSelectedTabChange(e){this.telemetry.track("[ui] change to tab "+this.tabNames[e.index])}}return n.\u0275fac=function(e){return new(e||n)(D(h_),D(jf),D(ns),D(jj),D(Qj),D(Zs),D(Jj),D(Ma),D(I$))},n.\u0275cmp=S({type:n,selectors:[["app-root"]],decls:50,vars:7,consts:[["color","primary"],[1,"spacer"],[1,"topright"],["href","https://odo.dev/docs/user-guides/advanced/using-gui/","target","_blank",1,"toplink"],["data-cy","yaml-send","matTooltip","Save Devfile to disk","mat-flat-button","","color","warn",2,"top","-8px",3,"disabled","click"],[1,"flex-container"],[1,"flex-child"],["animationDuration","0",3,"selectedTabChange"],["data-cy","tab-yaml",3,"label"],[1,"tab-content"],["appearance","outline",1,"full-width"],["data-cy","yaml-input","matInput","","id","input","rows","20",3,"value"],["input",""],["data-cy","yaml-save","matTooltip","Apply changes to other tabs","mat-flat-button","","color","primary",3,"click"],["data-cy","yaml-clear","matTooltip","Clear Devfile content","mat-flat-button","","color","normal",3,"click"],["data-cy","tab-chart",3,"label"],["id","mermaid",1,"mermaid",3,"innerHTML"],["mermaid",""],["data-cy","tab-metadata"],["mat-tab-label",""],[1,"tab-icon","material-icons-outlined"]],template:function(e,i){if(1&e){const r=Zt();v(0,"mat-toolbar",0)(1,"span"),E(2,"Devfile Builder"),y(),Pe(3,"span",1),v(4,"span",2)(5,"a",3),E(6,"Work in progress"),y()(),v(7,"button",4),ue("click",function(){nt(r);const a=Xo(20);return at(i.onSave(a.value))}),Zm(8,"async"),E(9,"Save"),y()(),v(10,"main")(11,"div",5)(12,"div",6)(13,"mat-tab-group",7),ue("selectedTabChange",function(a){return i.onSelectedTabChange(a)}),v(14,"mat-tab",8)(15,"div",9)(16,"mat-form-field",10)(17,"mat-label"),E(18,"Devfile YAML"),y(),Pe(19,"textarea",11,12),y(),v(21,"button",13),ue("click",function(){nt(r);const a=Xo(20);return at(i.onApply(a.value))}),E(22,"Apply"),y(),v(23,"button",14),ue("click",function(){return i.clear()}),E(24,"Clear"),y()()(),v(25,"mat-tab",15)(26,"div",6),Pe(27,"div",16,17),y()(),v(29,"mat-tab",18),X(30,T9,1,1,"ng-template",19),Pe(31,"app-metadata"),y(),v(32,"mat-tab"),X(33,k9,3,1,"ng-template",19),Pe(34,"app-commands"),y(),v(35,"mat-tab"),X(36,E9,3,1,"ng-template",19),Pe(37,"app-events"),y(),v(38,"mat-tab"),X(39,S9,3,1,"ng-template",19),Pe(40,"app-containers"),y(),v(41,"mat-tab"),X(42,I9,3,1,"ng-template",19),Pe(43,"app-images"),y(),v(44,"mat-tab"),X(45,A9,3,1,"ng-template",19),Pe(46,"app-resources"),y(),v(47,"mat-tab"),X(48,F9,3,1,"ng-template",19),Pe(49,"app-volumes"),y()()()()()}2&e&&(I(7),Bm("disabled",!qm(8,5,i.state.modified)),I(7),Bm("label",i.tabNames[0]),I(5),B("value",i.devfileYaml),I(6),Bm("label",i.tabNames[1]),I(2),B("innerHTML",i.sanitizer.bypassSecurityTrustHtml(i.mermaidContent),fg))},dependencies:[Yi,so,qr,Gs,ws,sA,dA,fj,Cj,cl,tU,e7,X7,a9,g9,v9,M9,v0],styles:["main[_ngcontent-%COMP%]{min-height:calc(100vh - 100px)}div.mermaid[_ngcontent-%COMP%]{font-family:Courier New,Courier,monospace!important}.flex-container[_ngcontent-%COMP%]{display:flex}.flex-child[_ngcontent-%COMP%]{flex:1}.flex-child[_ngcontent-%COMP%]:first-child{margin-right:20px}#input[_ngcontent-%COMP%]{width:99%}button[_ngcontent-%COMP%]{margin-top:20px}mat-form-field.full-width[_ngcontent-%COMP%]{width:100%}div.tab-content[_ngcontent-%COMP%]{padding:16px}div.error-message[_ngcontent-%COMP%]{font-size:large;margin:16px}.toplink[_ngcontent-%COMP%]{color:#fff}"]}),n})(),R9=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n,bootstrap:[O9]}),n.\u0275inj=Jt({imports:[HT,oV,h5,u5,L5,C8,eH,TI,fH,SH,zH,fz,db,Ez,Pz,Xz,p$,tA,gj,xj,Nj,ll.forRoot({loadOnInitialization:!1})]}),n})();ZN().bootstrapModule(R9).catch(n=>console.error(n))},1764:function(rn){rn.exports=function(){"use strict";var P=6e4,q=36e5,me="millisecond",se="second",ee="minute",re="hour",Ue="day",Ye="week",H="month",he="quarter",K="year",de="date",It="Invalid Date",tn=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,Se=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,Q={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(Mt){var We=["th","st","nd","rd"],we=Mt%100;return"["+Mt+(We[(we-20)%10]||We[we]||We[0])+"]"}},Te=function(Mt,We,we){var Ze=String(Mt);return!Ze||Ze.length>=We?Mt:""+Array(We+1-Ze.length).join(we)+Mt},be={s:Te,z:function(Mt){var We=-Mt.utcOffset(),we=Math.abs(We),Ze=Math.floor(we/60),He=we%60;return(We<=0?"+":"-")+Te(Ze,2,"0")+":"+Te(He,2,"0")},m:function Mt(We,we){if(We.date()1)return Mt(mt[0])}else{var ye=We.name;St[ye]=We,He=ye}return!Ze&&He&&(Ct=He),He||!Ze&&Ct},Wt=function(Mt,We){if(_t(Mt))return Mt.clone();var we="object"==typeof We?We:{};return we.date=Mt,we.args=arguments,new cn(we)},lt=be;lt.l=Ut,lt.i=_t,lt.w=function(Mt,We){return Wt(Mt,{locale:We.$L,utc:We.$u,x:We.$x,$offset:We.$offset})};var cn=function(){function Mt(we){this.$L=Ut(we.locale,null,!0),this.parse(we)}var We=Mt.prototype;return We.parse=function(we){this.$d=function(Ze){var He=Ze.date,bt=Ze.utc;if(null===He)return new Date(NaN);if(lt.u(He))return new Date;if(He instanceof Date)return new Date(He);if("string"==typeof He&&!/Z$/i.test(He)){var mt=He.match(tn);if(mt){var ye=mt[2]-1||0,Mn=(mt[7]||"0").substring(0,3);return bt?new Date(Date.UTC(mt[1],ye,mt[3]||1,mt[4]||0,mt[5]||0,mt[6]||0,Mn)):new Date(mt[1],ye,mt[3]||1,mt[4]||0,mt[5]||0,mt[6]||0,Mn)}}return new Date(He)}(we),this.$x=we.x||{},this.init()},We.init=function(){var we=this.$d;this.$y=we.getFullYear(),this.$M=we.getMonth(),this.$D=we.getDate(),this.$W=we.getDay(),this.$H=we.getHours(),this.$m=we.getMinutes(),this.$s=we.getSeconds(),this.$ms=we.getMilliseconds()},We.$utils=function(){return lt},We.isValid=function(){return this.$d.toString()!==It},We.isSame=function(we,Ze){var He=Wt(we);return this.startOf(Ze)<=He&&He<=this.endOf(Ze)},We.isAfter=function(we,Ze){return Wt(we)"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}()?Reflect.construct:function(ei,yi,qi){var _n=[null];_n.push.apply(_n,yi);var So=new(Function.bind.apply(ei,_n));return qi&&P(So,qi.prototype),So}).apply(null,arguments)}function se(Ke){return function ee(Ke){if(Array.isArray(Ke))return Ye(Ke)}(Ke)||function re(Ke){if(typeof Symbol<"u"&&null!=Ke[Symbol.iterator]||null!=Ke["@@iterator"])return Array.from(Ke)}(Ke)||function Ue(Ke,et){if(Ke){if("string"==typeof Ke)return Ye(Ke,et);var Yt=Object.prototype.toString.call(Ke).slice(8,-1);if("Object"===Yt&&Ke.constructor&&(Yt=Ke.constructor.name),"Map"===Yt||"Set"===Yt)return Array.from(Ke);if("Arguments"===Yt||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Yt))return Ye(Ke,et)}}(Ke)||function H(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ye(Ke,et){(null==et||et>Ke.length)&&(et=Ke.length);for(var Yt=0,bn=new Array(et);Yt1?Yt-1:0),ei=1;ei/gm),Dr=Q(/\${[\w\W]*}/gm),or=Q(/^data-[\-\w.\u00B7-\uFFFF]/),is=Q(/^aria-[\-\w]+$/),ka=Q(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ea=Q(/^(?:\w+script|data):/i),Eo=Q(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ni=Q(/^html$/i),rs=function(){return typeof window>"u"?null:window},Bi=function(et,Yt){if("object"!==Ae(et)||"function"!=typeof et.createPolicy)return null;var bn=null,ei="data-tt-policy-suffix";Yt.currentScript&&Yt.currentScript.hasAttribute(ei)&&(bn=Yt.currentScript.getAttribute(ei));var yi="dompurify"+(bn?"#"+bn:"");try{return et.createPolicy(yi,{createHTML:function(_n){return _n},createScriptURL:function(_n){return _n}})}catch{return console.warn("TrustedTypes policy "+yi+" could not be created."),null}};return function os(){var Ke=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rs(),et=function(W){return os(W)};if(et.version="2.4.3",et.removed=[],!Ke||!Ke.document||9!==Ke.document.nodeType)return et.isSupported=!1,et;var Yt=Ke.document,bn=Ke.document,ei=Ke.DocumentFragment,yi=Ke.HTMLTemplateElement,qi=Ke.Node,_n=Ke.Element,pi=Ke.NodeFilter,So=Ke.NamedNodeMap,Sa=void 0===So?Ke.NamedNodeMap||Ke.MozNamedAttrMap:So,ss=Ke.HTMLFormElement,Ks=Ke.DOMParser,ao=Ke.trustedTypes,zr=_n.prototype,Z=Cn(zr,"cloneNode"),N=Cn(zr,"nextSibling"),Ie=Cn(zr,"childNodes"),ft=Cn(zr,"parentNode");if("function"==typeof yi){var gi=bn.createElement("template");gi.content&&gi.content.ownerDocument&&(bn=gi.content.ownerDocument)}var wn=Bi(ao,Yt),as=wn?wn.createHTML(""):"",lo=bn.implementation,Ia=bn.createNodeIterator,Xs=bn.createDocumentFragment,vi=bn.getElementsByTagName,cs=Yt.importNode,Io={};try{Io=Mn(bn).documentMode?bn.documentMode:{}}catch{}var $r={};et.isSupported="function"==typeof ft&&lo&&typeof lo.createHTMLDocument<"u"&&9!==Io;var Er,ui,Ao=Li,Fo=ko,Ms=Dr,Tr=or,Ki=is,Aa=Ea,Oo=Eo,Ro=ka,Zn=null,ml=ye({},[].concat(se(mn),se(di),se(ke),se(yt),se(Ft))),Si=null,ic=ye({},[].concat(se(Jn),se(Ln),se(wr),se(Ds))),oi=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Po=null,Lo=null,rc=!0,Qs=!0,sr=!1,Xi=!1,Ci=!1,No=!1,oc=!1,Bo=!1,Ts=!1,Js=!1,ls=!0,si=!1,kr=!0,On=!1,uo={},ze=null,Xr=ye({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Mi=null,on=ye({},["audio","video","img","source","image","track"]),Ht=null,ar=ye({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ho="http://www.w3.org/1998/Math/MathML",ti="http://www.w3.org/2000/svg",Ii="http://www.w3.org/1999/xhtml",ve=Ii,ks=!1,Xt=null,An=ye({},[ho,ti,Ii],cn),Fa=["application/xhtml+xml","text/html"],hi=null,Oa=bn.createElement("form"),ta=function(W){return W instanceof RegExp||W instanceof Function},cr=function(W){hi&&hi===W||((!W||"object"!==Ae(W))&&(W={}),W=Mn(W),Er=Er=-1===Fa.indexOf(W.PARSER_MEDIA_TYPE)?"text/html":W.PARSER_MEDIA_TYPE,ui="application/xhtml+xml"===Er?cn:lt,Zn="ALLOWED_TAGS"in W?ye({},W.ALLOWED_TAGS,ui):ml,Si="ALLOWED_ATTR"in W?ye({},W.ALLOWED_ATTR,ui):ic,Xt="ALLOWED_NAMESPACES"in W?ye({},W.ALLOWED_NAMESPACES,cn):An,Ht="ADD_URI_SAFE_ATTR"in W?ye(Mn(ar),W.ADD_URI_SAFE_ATTR,ui):ar,Mi="ADD_DATA_URI_TAGS"in W?ye(Mn(on),W.ADD_DATA_URI_TAGS,ui):on,ze="FORBID_CONTENTS"in W?ye({},W.FORBID_CONTENTS,ui):Xr,Po="FORBID_TAGS"in W?ye({},W.FORBID_TAGS,ui):{},Lo="FORBID_ATTR"in W?ye({},W.FORBID_ATTR,ui):{},uo="USE_PROFILES"in W&&W.USE_PROFILES,rc=!1!==W.ALLOW_ARIA_ATTR,Qs=!1!==W.ALLOW_DATA_ATTR,sr=W.ALLOW_UNKNOWN_PROTOCOLS||!1,Xi=W.SAFE_FOR_TEMPLATES||!1,Ci=W.WHOLE_DOCUMENT||!1,Bo=W.RETURN_DOM||!1,Ts=W.RETURN_DOM_FRAGMENT||!1,Js=W.RETURN_TRUSTED_TYPE||!1,oc=W.FORCE_BODY||!1,ls=!1!==W.SANITIZE_DOM,si=W.SANITIZE_NAMED_PROPS||!1,kr=!1!==W.KEEP_CONTENT,On=W.IN_PLACE||!1,Ro=W.ALLOWED_URI_REGEXP||Ro,ve=W.NAMESPACE||Ii,W.CUSTOM_ELEMENT_HANDLING&&ta(W.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(oi.tagNameCheck=W.CUSTOM_ELEMENT_HANDLING.tagNameCheck),W.CUSTOM_ELEMENT_HANDLING&&ta(W.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(oi.attributeNameCheck=W.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),W.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof W.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(oi.allowCustomizedBuiltInElements=W.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Xi&&(Qs=!1),Ts&&(Bo=!0),uo&&(Zn=ye({},se(Ft)),Si=[],!0===uo.html&&(ye(Zn,mn),ye(Si,Jn)),!0===uo.svg&&(ye(Zn,di),ye(Si,Ln),ye(Si,Ds)),!0===uo.svgFilters&&(ye(Zn,ke),ye(Si,Ln),ye(Si,Ds)),!0===uo.mathMl&&(ye(Zn,yt),ye(Si,wr),ye(Si,Ds))),W.ADD_TAGS&&(Zn===ml&&(Zn=Mn(Zn)),ye(Zn,W.ADD_TAGS,ui)),W.ADD_ATTR&&(Si===ic&&(Si=Mn(Si)),ye(Si,W.ADD_ATTR,ui)),W.ADD_URI_SAFE_ATTR&&ye(Ht,W.ADD_URI_SAFE_ATTR,ui),W.FORBID_CONTENTS&&(ze===Xr&&(ze=Mn(ze)),ye(ze,W.FORBID_CONTENTS,ui)),kr&&(Zn["#text"]=!0),Ci&&ye(Zn,["html","head","body"]),Zn.table&&(ye(Zn,["tbody"]),delete Po.tbody),Se&&Se(W),hi=W)},lr=ye({},["mi","mo","mn","ms","mtext"]),Vo=ye({},["foreignobject","desc","title","annotation-xml"]),fl=ye({},["title","style","font","a","script"]),na=ye({},di);ye(na,ke),ye(na,Zi);var Ac=ye({},yt);ye(Ac,qe);var jr=function(W){Wt(et.removed,{element:W});try{W.parentNode.removeChild(W)}catch{try{W.outerHTML=as}catch{W.remove()}}},sc=function(W,Oe){try{Wt(et.removed,{attribute:Oe.getAttributeNode(W),from:Oe})}catch{Wt(et.removed,{attribute:null,from:Oe})}if(Oe.removeAttribute(W),"is"===W&&!Si[W])if(Bo||Ts)try{jr(Oe)}catch{}else try{Oe.setAttribute(W,"")}catch{}},Fc=function(W){var Oe,it;if(oc)W=""+W;else{var Tn=Qn(W,/^[\r\n\t ]+/);it=Tn&&Tn[0]}"application/xhtml+xml"===Er&&ve===Ii&&(W=''+W+"");var Ti=wn?wn.createHTML(W):W;if(ve===Ii)try{Oe=(new Ks).parseFromString(Ti,Er)}catch{}if(!Oe||!Oe.documentElement){Oe=lo.createDocument(ve,"template",null);try{Oe.documentElement.innerHTML=ks?as:Ti}catch{}}var $n=Oe.body||Oe.documentElement;return W&&it&&$n.insertBefore(bn.createTextNode(it),$n.childNodes[0]||null),ve===Ii?vi.call(Oe,Ci?"html":"body")[0]:Ci?Oe.documentElement:$n},Qi=function(W){return Ia.call(W.ownerDocument||W,W,pi.SHOW_ELEMENT|pi.SHOW_COMMENT|pi.SHOW_TEXT,null,!1)},Ur=function(W){return"object"===Ae(qi)?W instanceof qi:W&&"object"===Ae(W)&&"number"==typeof W.nodeType&&"string"==typeof W.nodeName},mo=function(W,Oe,it){$r[W]&&_t($r[W],function(Tn){Tn.call(et,Oe,it,hi)})},pl=function(W){var Oe;if(mo("beforeSanitizeElements",W,null),function(W){return W instanceof ss&&("string"!=typeof W.nodeName||"string"!=typeof W.textContent||"function"!=typeof W.removeChild||!(W.attributes instanceof Sa)||"function"!=typeof W.removeAttribute||"function"!=typeof W.setAttribute||"string"!=typeof W.namespaceURI||"function"!=typeof W.insertBefore||"function"!=typeof W.hasChildNodes)}(W)||Ze(/[\u0080-\uFFFF]/,W.nodeName))return jr(W),!0;var it=ui(W.nodeName);if(mo("uponSanitizeElement",W,{tagName:it,allowedTags:Zn}),W.hasChildNodes()&&!Ur(W.firstElementChild)&&(!Ur(W.content)||!Ur(W.content.firstElementChild))&&Ze(/<[/\w]/g,W.innerHTML)&&Ze(/<[/\w]/g,W.textContent)||"select"===it&&Ze(/