/*
 Copyright 2025 Google LLC

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
 */
var wS=Object.defineProperty,yS=Object.defineProperties;var MS=Object.getOwnPropertyDescriptors;var Pa=Object.getOwnPropertySymbols;var PD=Object.prototype.hasOwnProperty,ZD=Object.prototype.propertyIsEnumerable;var OD=(t,e,A)=>e in t?wS(t,e,{enumerable:!0,configurable:!0,writable:!0,value:A}):t[e]=A,R=(t,e)=>{for(var A in e||={})PD.call(e,A)&&OD(t,A,e[A]);if(Pa)for(var A of Pa(e))ZD.call(e,A)&&OD(t,A,e[A]);return t},hA=(t,e)=>yS(t,MS(e));var Dc=(t,e)=>{var A={};for(var i in t)PD.call(t,i)&&e.indexOf(i)<0&&(A[i]=t[i]);if(t!=null&&Pa)for(var i of Pa(t))e.indexOf(i)<0&&ZD.call(t,i)&&(A[i]=t[i]);return A};var qe=(t,e,A)=>new Promise((i,o)=>{var n=s=>{try{r(A.next(s))}catch(I){o(I)}},g=s=>{try{r(A.throw(s))}catch(I){o(I)}},r=s=>s.done?i(s.value):Promise.resolve(s.value).then(n,g);r((A=A.apply(t,e)).next())});function yc(t,e){return Object.is(t,e)}var Ue=null,Za=!1,Mc=1,lt=Symbol("SIGNAL");function PA(t){let e=Ue;return Ue=t,e}function Rc(){return Ue}var Hg={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Rs(t){if(Za)throw new Error("");if(Ue===null)return;Ue.consumerOnSignalRead(t);let e=Ue.nextProducerIndex++;if(ja(Ue),e<Ue.producerNode.length&&Ue.producerNode[e]!==t&&Ms(Ue)){let A=Ue.producerNode[e];za(A,Ue.producerIndexOfThis[e])}Ue.producerNode[e]!==t&&(Ue.producerNode[e]=t,Ue.producerIndexOfThis[e]=Ms(Ue)?VD(t,Ue,e):0),Ue.producerLastReadVersion[e]=t.version}function qD(){Mc++}function kc(t){if(!(Ms(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===Mc)){if(!t.producerMustRecompute(t)&&!Wa(t)){wc(t);return}t.producerRecomputeValue(t),wc(t)}}function Fc(t){if(t.liveConsumerNode===void 0)return;let e=Za;Za=!0;try{for(let A of t.liveConsumerNode)A.dirty||RS(A)}finally{Za=e}}function bc(){return Ue?.consumerAllowSignalWrites!==!1}function RS(t){t.dirty=!0,Fc(t),t.consumerMarkedDirty?.(t)}function wc(t){t.dirty=!1,t.lastCleanEpoch=Mc}function ks(t){return t&&(t.nextProducerIndex=0),PA(t)}function Va(t,e){if(PA(e),!(!t||t.producerNode===void 0||t.producerIndexOfThis===void 0||t.producerLastReadVersion===void 0)){if(Ms(t))for(let A=t.nextProducerIndex;A<t.producerNode.length;A++)za(t.producerNode[A],t.producerIndexOfThis[A]);for(;t.producerNode.length>t.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function Wa(t){ja(t);for(let e=0;e<t.producerNode.length;e++){let A=t.producerNode[e],i=t.producerLastReadVersion[e];if(i!==A.version||(kc(A),i!==A.version))return!0}return!1}function Fs(t){if(ja(t),Ms(t))for(let e=0;e<t.producerNode.length;e++)za(t.producerNode[e],t.producerIndexOfThis[e]);t.producerNode.length=t.producerLastReadVersion.length=t.producerIndexOfThis.length=0,t.liveConsumerNode&&(t.liveConsumerNode.length=t.liveConsumerIndexOfThis.length=0)}function VD(t,e,A){if(WD(t),t.liveConsumerNode.length===0&&zD(t))for(let i=0;i<t.producerNode.length;i++)t.producerIndexOfThis[i]=VD(t.producerNode[i],t,i);return t.liveConsumerIndexOfThis.push(A),t.liveConsumerNode.push(e)-1}function za(t,e){if(WD(t),t.liveConsumerNode.length===1&&zD(t))for(let i=0;i<t.producerNode.length;i++)za(t.producerNode[i],t.producerIndexOfThis[i]);let A=t.liveConsumerNode.length-1;if(t.liveConsumerNode[e]=t.liveConsumerNode[A],t.liveConsumerIndexOfThis[e]=t.liveConsumerIndexOfThis[A],t.liveConsumerNode.length--,t.liveConsumerIndexOfThis.length--,e<t.liveConsumerNode.length){let i=t.liveConsumerIndexOfThis[e],o=t.liveConsumerNode[e];ja(o),o.producerIndexOfThis[i]=e}}function Ms(t){return t.consumerIsAlwaysLive||(t?.liveConsumerNode?.length??0)>0}function ja(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function WD(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function zD(t){return t.producerNode!==void 0}function Xa(t,e){let A=Object.create(kS);A.computation=t,e!==void 0&&(A.equal=e);let i=()=>{if(kc(A),Rs(A),A.value===qa)throw A.error;return A.value};return i[lt]=A,i}var fc=Symbol("UNSET"),pc=Symbol("COMPUTING"),qa=Symbol("ERRORED"),kS=hA(R({},Hg),{value:fc,dirty:!0,error:null,equal:yc,kind:"computed",producerMustRecompute(t){return t.value===fc||t.value===pc},producerRecomputeValue(t){if(t.value===pc)throw new Error("Detected cycle in computations.");let e=t.value;t.value=pc;let A=ks(t),i,o=!1;try{i=t.computation(),PA(null),o=e!==fc&&e!==qa&&i!==qa&&t.equal(e,i)}catch(n){i=qa,t.error=n}finally{Va(t,A)}if(o){t.value=e;return}t.value=i,t.version++}});function FS(){throw new Error}var jD=FS;function XD(t){jD(t)}function Sc(t){jD=t}var bS=null;function vc(t,e){let A=Object.create($a);A.value=t,e!==void 0&&(A.equal=e);let i=()=>(Rs(A),A.value);return i[lt]=A,i}function bs(t,e){bc()||XD(t),t.equal(t.value,e)||(t.value=e,SS(t))}function Nc(t,e){bc()||XD(t),bs(t,e(t.value))}var $a=hA(R({},Hg),{equal:yc,value:void 0,kind:"signal"});function SS(t){t.version++,qD(),Fc(t),bS?.()}function Gc(t){let e=PA(null);try{return t()}finally{PA(e)}}var Lc;function Ss(){return Lc}function po(t){let e=Lc;return Lc=t,e}var AC=Symbol("NotFound");function yA(t){return typeof t=="function"}function Tg(t){let A=t(i=>{Error.call(i),i.stack=new Error().stack});return A.prototype=Object.create(Error.prototype),A.prototype.constructor=A,A}var eC=Tg(t=>function(A){t(this),this.message=A?`${A.length} errors occurred during unsubscription:
${A.map((i,o)=>`${o+1}) ${i.toString()}`).join(`
  `)}`:"",this.name="UnsubscriptionError",this.errors=A});function Ln(t,e){if(t){let A=t.indexOf(e);0<=A&&t.splice(A,1)}}var vA=class t{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;let{_parentage:A}=this;if(A)if(this._parentage=null,Array.isArray(A))for(let n of A)n.remove(this);else A.remove(this);let{initialTeardown:i}=this;if(yA(i))try{i()}catch(n){e=n instanceof eC?n.errors:[n]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let n of o)try{$D(n)}catch(g){e=e??[],g instanceof eC?e=[...e,...g.errors]:e.push(g)}}if(e)throw new eC(e)}}add(e){var A;if(e&&e!==this)if(this.closed)$D(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(A=this._finalizers)!==null&&A!==void 0?A:[]).push(e)}}_hasParent(e){let{_parentage:A}=this;return A===e||Array.isArray(A)&&A.includes(e)}_addParent(e){let{_parentage:A}=this;this._parentage=Array.isArray(A)?(A.push(e),A):A?[A,e]:e}_removeParent(e){let{_parentage:A}=this;A===e?this._parentage=null:Array.isArray(A)&&Ln(A,e)}remove(e){let{_finalizers:A}=this;A&&Ln(A,e),e instanceof t&&e._removeParent(this)}};vA.EMPTY=(()=>{let t=new vA;return t.closed=!0,t})();var _c=vA.EMPTY;function tC(t){return t instanceof vA||t&&"closed"in t&&yA(t.remove)&&yA(t.add)&&yA(t.unsubscribe)}function $D(t){yA(t)?t():t.unsubscribe()}var ai={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Og={setTimeout(t,e,...A){let{delegate:i}=Og;return i?.setTimeout?i.setTimeout(t,e,...A):setTimeout(t,e,...A)},clearTimeout(t){let{delegate:e}=Og;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function iC(t){Og.setTimeout(()=>{let{onUnhandledError:e}=ai;if(e)e(t);else throw t})}function vs(){}var Af=Kc("C",void 0,void 0);function ef(t){return Kc("E",void 0,t)}function tf(t){return Kc("N",t,void 0)}function Kc(t,e,A){return{kind:t,value:e,error:A}}var _n=null;function Pg(t){if(ai.useDeprecatedSynchronousErrorHandling){let e=!_n;if(e&&(_n={errorThrown:!1,error:null}),t(),e){let{errorThrown:A,error:i}=_n;if(_n=null,A)throw i}}else t()}function of(t){ai.useDeprecatedSynchronousErrorHandling&&_n&&(_n.errorThrown=!0,_n.error=t)}var wo=class extends vA{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,tC(e)&&e.add(this)):this.destination=KS}static create(e,A,i){return new yo(e,A,i)}next(e){this.isStopped?xc(tf(e),this):this._next(e)}error(e){this.isStopped?xc(ef(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?xc(Af,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},LS=Function.prototype.bind;function Uc(t,e){return LS.call(t,e)}var Yc=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:A}=this;if(A.next)try{A.next(e)}catch(i){oC(i)}}error(e){let{partialObserver:A}=this;if(A.error)try{A.error(e)}catch(i){oC(i)}else oC(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(A){oC(A)}}},yo=class extends wo{constructor(e,A,i){super();let o;if(yA(e)||!e)o={next:e??void 0,error:A??void 0,complete:i??void 0};else{let n;this&&ai.useDeprecatedNextContext?(n=Object.create(e),n.unsubscribe=()=>this.unsubscribe(),o={next:e.next&&Uc(e.next,n),error:e.error&&Uc(e.error,n),complete:e.complete&&Uc(e.complete,n)}):o=e}this.destination=new Yc(o)}};function oC(t){ai.useDeprecatedSynchronousErrorHandling?of(t):iC(t)}function _S(t){throw t}function xc(t,e){let{onStoppedNotification:A}=ai;A&&Og.setTimeout(()=>A(t,e))}var KS={closed:!0,next:vs,error:_S,complete:vs};var Zg=typeof Symbol=="function"&&Symbol.observable||"@@observable";function It(t){return t}function Jc(...t){return Hc(t)}function Hc(t){return t.length===0?It:t.length===1?t[0]:function(A){return t.reduce((i,o)=>o(i),A)}}var QA=(()=>{class t{constructor(A){A&&(this._subscribe=A)}lift(A){let i=new t;return i.source=this,i.operator=A,i}subscribe(A,i,o){let n=xS(A)?A:new yo(A,i,o);return Pg(()=>{let{operator:g,source:r}=this;n.add(g?g.call(n,r):r?this._subscribe(n):this._trySubscribe(n))}),n}_trySubscribe(A){try{return this._subscribe(A)}catch(i){A.error(i)}}forEach(A,i){return i=nf(i),new i((o,n)=>{let g=new yo({next:r=>{try{A(r)}catch(s){n(s),g.unsubscribe()}},error:n,complete:o});this.subscribe(g)})}_subscribe(A){var i;return(i=this.source)===null||i===void 0?void 0:i.subscribe(A)}[Zg](){return this}pipe(...A){return Hc(A)(this)}toPromise(A){return A=nf(A),new A((i,o)=>{let n;this.subscribe(g=>n=g,g=>o(g),()=>i(n))})}}return t.create=e=>new t(e),t})();function nf(t){var e;return(e=t??ai.Promise)!==null&&e!==void 0?e:Promise}function US(t){return t&&yA(t.next)&&yA(t.error)&&yA(t.complete)}function xS(t){return t&&t instanceof wo||US(t)&&tC(t)}function Tc(t){return yA(t?.lift)}function NA(t){return e=>{if(Tc(e))return e.lift(function(A){try{return t(A,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function SA(t,e,A,i,o){return new Oc(t,e,A,i,o)}var Oc=class extends wo{constructor(e,A,i,o,n,g){super(e),this.onFinalize=n,this.shouldUnsubscribe=g,this._next=A?function(r){try{A(r)}catch(s){e.error(s)}}:super._next,this._error=o?function(r){try{o(r)}catch(s){e.error(s)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(r){e.error(r)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:A}=this;super.unsubscribe(),!A&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}};function qg(){return NA((t,e)=>{let A=null;t._refCount++;let i=SA(e,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){A=null;return}let o=t._connection,n=A;A=null,o&&(!n||o===n)&&o.unsubscribe(),e.unsubscribe()});t.subscribe(i),i.closed||(A=t.connect())})}var Vo=class extends QA{constructor(e,A){super(),this.source=e,this.subjectFactory=A,this._subject=null,this._refCount=0,this._connection=null,Tc(e)&&(this.lift=e.lift)}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){let e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:e}=this;this._subject=this._connection=null,e?.unsubscribe()}connect(){let e=this._connection;if(!e){e=this._connection=new vA;let A=this.getSubject();e.add(this.source.subscribe(SA(A,void 0,()=>{this._teardown(),A.complete()},i=>{this._teardown(),A.error(i)},()=>this._teardown()))),e.closed&&(this._connection=null,e=vA.EMPTY)}return e}refCount(){return qg()(this)}};var gf=Tg(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var _=(()=>{class t extends QA{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(A){let i=new Vg(this,this);return i.operator=A,i}_throwIfClosed(){if(this.closed)throw new gf}next(A){Pg(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let i of this.currentObservers)i.next(A)}})}error(A){Pg(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=A;let{observers:i}=this;for(;i.length;)i.shift().error(A)}})}complete(){Pg(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:A}=this;for(;A.length;)A.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var A;return((A=this.observers)===null||A===void 0?void 0:A.length)>0}_trySubscribe(A){return this._throwIfClosed(),super._trySubscribe(A)}_subscribe(A){return this._throwIfClosed(),this._checkFinalizedStatuses(A),this._innerSubscribe(A)}_innerSubscribe(A){let{hasError:i,isStopped:o,observers:n}=this;return i||o?_c:(this.currentObservers=null,n.push(A),new vA(()=>{this.currentObservers=null,Ln(n,A)}))}_checkFinalizedStatuses(A){let{hasError:i,thrownError:o,isStopped:n}=this;i?A.error(o):n&&A.complete()}asObservable(){let A=new QA;return A.source=this,A}}return t.create=(e,A)=>new Vg(e,A),t})(),Vg=class extends _{constructor(e,A){super(),this.destination=e,this.source=A}next(e){var A,i;(i=(A=this.destination)===null||A===void 0?void 0:A.next)===null||i===void 0||i.call(A,e)}error(e){var A,i;(i=(A=this.destination)===null||A===void 0?void 0:A.error)===null||i===void 0||i.call(A,e)}complete(){var e,A;(A=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||A===void 0||A.call(e)}_subscribe(e){var A,i;return(i=(A=this.source)===null||A===void 0?void 0:A.subscribe(e))!==null&&i!==void 0?i:_c}};var ee=class extends _{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let A=super._subscribe(e);return!A.closed&&e.next(this._value),A}getValue(){let{hasError:e,thrownError:A,_value:i}=this;if(e)throw A;return this._throwIfClosed(),i}next(e){super.next(this._value=e)}};var Ns={now(){return(Ns.delegate||Date).now()},delegate:void 0};var Ci=class extends _{constructor(e=1/0,A=1/0,i=Ns){super(),this._bufferSize=e,this._windowTime=A,this._timestampProvider=i,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=A===1/0,this._bufferSize=Math.max(1,e),this._windowTime=Math.max(1,A)}next(e){let{isStopped:A,_buffer:i,_infiniteTimeWindow:o,_timestampProvider:n,_windowTime:g}=this;A||(i.push(e),!o&&i.push(n.now()+g)),this._trimBuffer(),super.next(e)}_subscribe(e){this._throwIfClosed(),this._trimBuffer();let A=this._innerSubscribe(e),{_infiniteTimeWindow:i,_buffer:o}=this,n=o.slice();for(let g=0;g<n.length&&!e.closed;g+=i?1:2)e.next(n[g]);return this._checkFinalizedStatuses(e),A}_trimBuffer(){let{_bufferSize:e,_timestampProvider:A,_buffer:i,_infiniteTimeWindow:o}=this,n=(o?1:2)*e;if(e<1/0&&n<i.length&&i.splice(0,i.length-n),!o){let g=A.now(),r=0;for(let s=1;s<i.length&&i[s]<=g;s+=2)r=s;r&&i.splice(0,r+1)}}};var nC=class extends vA{constructor(e,A){super()}schedule(e,A=0){return this}};var Gs={setInterval(t,e,...A){let{delegate:i}=Gs;return i?.setInterval?i.setInterval(t,e,...A):setInterval(t,e,...A)},clearInterval(t){let{delegate:e}=Gs;return(e?.clearInterval||clearInterval)(t)},delegate:void 0};var gC=class extends nC{constructor(e,A){super(e,A),this.scheduler=e,this.work=A,this.pending=!1}schedule(e,A=0){var i;if(this.closed)return this;this.state=e;let o=this.id,n=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(n,o,A)),this.pending=!0,this.delay=A,this.id=(i=this.id)!==null&&i!==void 0?i:this.requestAsyncId(n,this.id,A),this}requestAsyncId(e,A,i=0){return Gs.setInterval(e.flush.bind(e,this),i)}recycleAsyncId(e,A,i=0){if(i!=null&&this.delay===i&&this.pending===!1)return A;A!=null&&Gs.clearInterval(A)}execute(e,A){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let i=this._execute(e,A);if(i)return i;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,A){let i=!1,o;try{this.work(e)}catch(n){i=!0,o=n||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){let{id:e,scheduler:A}=this,{actions:i}=A;this.work=this.state=this.scheduler=null,this.pending=!1,Ln(i,this),e!=null&&(this.id=this.recycleAsyncId(A,e,null)),this.delay=null,super.unsubscribe()}}};var Wg=class t{constructor(e,A=t.now){this.schedulerActionCtor=e,this.now=A}schedule(e,A=0,i){return new this.schedulerActionCtor(this,e).schedule(i,A)}};Wg.now=Ns.now;var rC=class extends Wg{constructor(e,A=Wg.now){super(e,A),this.actions=[],this._active=!1}flush(e){let{actions:A}=this;if(this._active){A.push(e);return}let i;this._active=!0;do if(i=e.execute(e.state,e.delay))break;while(e=A.shift());if(this._active=!1,i){for(;e=A.shift();)e.unsubscribe();throw i}}};var Ls=new rC(gC),rf=Ls;var Le=new QA(t=>t.complete());function sC(t){return t&&yA(t.schedule)}function Pc(t){return t[t.length-1]}function IC(t){return yA(Pc(t))?t.pop():void 0}function Ji(t){return sC(Pc(t))?t.pop():void 0}function sf(t,e){return typeof Pc(t)=="number"?t.pop():e}function af(t,e,A,i){function o(n){return n instanceof A?n:new A(function(g){g(n)})}return new(A||(A=Promise))(function(n,g){function r(B){try{I(i.next(B))}catch(c){g(c)}}function s(B){try{I(i.throw(B))}catch(c){g(c)}}function I(B){B.done?n(B.value):o(B.value).then(r,s)}I((i=i.apply(t,e||[])).next())})}function If(t){var e=typeof Symbol=="function"&&Symbol.iterator,A=e&&t[e],i=0;if(A)return A.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Kn(t){return this instanceof Kn?(this.v=t,this):new Kn(t)}function Cf(t,e,A){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=A.apply(t,e||[]),o,n=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),r("next"),r("throw"),r("return",g),o[Symbol.asyncIterator]=function(){return this},o;function g(h){return function(p){return Promise.resolve(p).then(h,c)}}function r(h,p){i[h]&&(o[h]=function(y){return new Promise(function(L,P){n.push([h,y,L,P])>1||s(h,y)})},p&&(o[h]=p(o[h])))}function s(h,p){try{I(i[h](p))}catch(y){D(n[0][3],y)}}function I(h){h.value instanceof Kn?Promise.resolve(h.value.v).then(B,c):D(n[0][2],h)}function B(h){s("next",h)}function c(h){s("throw",h)}function D(h,p){h(p),n.shift(),n.length&&s(n[0][0],n[0][1])}}function Bf(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],A;return e?e.call(t):(t=typeof If=="function"?If(t):t[Symbol.iterator](),A={},i("next"),i("throw"),i("return"),A[Symbol.asyncIterator]=function(){return this},A);function i(n){A[n]=t[n]&&function(g){return new Promise(function(r,s){g=t[n](g),o(r,s,g.done,g.value)})}}function o(n,g,r,s){Promise.resolve(s).then(function(I){n({value:I,done:r})},g)}}var zg=t=>t&&typeof t.length=="number"&&typeof t!="function";function aC(t){return yA(t?.then)}function CC(t){return yA(t[Zg])}function BC(t){return Symbol.asyncIterator&&yA(t?.[Symbol.asyncIterator])}function QC(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function YS(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var EC=YS();function cC(t){return yA(t?.[EC])}function lC(t){return Cf(this,arguments,function*(){let A=t.getReader();try{for(;;){let{value:i,done:o}=yield Kn(A.read());if(o)return yield Kn(void 0);yield yield Kn(i)}}finally{A.releaseLock()}})}function dC(t){return yA(t?.getReader)}function ne(t){if(t instanceof QA)return t;if(t!=null){if(CC(t))return JS(t);if(zg(t))return HS(t);if(aC(t))return TS(t);if(BC(t))return Qf(t);if(cC(t))return OS(t);if(dC(t))return PS(t)}throw QC(t)}function JS(t){return new QA(e=>{let A=t[Zg]();if(yA(A.subscribe))return A.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function HS(t){return new QA(e=>{for(let A=0;A<t.length&&!e.closed;A++)e.next(t[A]);e.complete()})}function TS(t){return new QA(e=>{t.then(A=>{e.closed||(e.next(A),e.complete())},A=>e.error(A)).then(null,iC)})}function OS(t){return new QA(e=>{for(let A of t)if(e.next(A),e.closed)return;e.complete()})}function Qf(t){return new QA(e=>{ZS(t,e).catch(A=>e.error(A))})}function PS(t){return Qf(lC(t))}function ZS(t,e){var A,i,o,n;return af(this,void 0,void 0,function*(){try{for(A=Bf(t);i=yield A.next(),!i.done;){let g=i.value;if(e.next(g),e.closed)return}}catch(g){o={error:g}}finally{try{i&&!i.done&&(n=A.return)&&(yield n.call(A))}finally{if(o)throw o.error}}e.complete()})}function dt(t,e,A,i=0,o=!1){let n=e.schedule(function(){A(),o?t.add(this.schedule(null,i)):this.unsubscribe()},i);if(t.add(n),!o)return n}function hC(t,e=0){return NA((A,i)=>{A.subscribe(SA(i,o=>dt(i,t,()=>i.next(o),e),()=>dt(i,t,()=>i.complete(),e),o=>dt(i,t,()=>i.error(o),e)))})}function uC(t,e=0){return NA((A,i)=>{i.add(t.schedule(()=>A.subscribe(i),e))})}function Ef(t,e){return ne(t).pipe(uC(e),hC(e))}function cf(t,e){return ne(t).pipe(uC(e),hC(e))}function lf(t,e){return new QA(A=>{let i=0;return e.schedule(function(){i===t.length?A.complete():(A.next(t[i++]),A.closed||this.schedule())})})}function df(t,e){return new QA(A=>{let i;return dt(A,e,()=>{i=t[EC](),dt(A,e,()=>{let o,n;try{({value:o,done:n}=i.next())}catch(g){A.error(g);return}n?A.complete():A.next(o)},0,!0)}),()=>yA(i?.return)&&i.return()})}function mC(t,e){if(!t)throw new Error("Iterable cannot be null");return new QA(A=>{dt(A,e,()=>{let i=t[Symbol.asyncIterator]();dt(A,e,()=>{i.next().then(o=>{o.done?A.complete():A.next(o.value)})},0,!0)})})}function hf(t,e){return mC(lC(t),e)}function uf(t,e){if(t!=null){if(CC(t))return Ef(t,e);if(zg(t))return lf(t,e);if(aC(t))return cf(t,e);if(BC(t))return mC(t,e);if(cC(t))return df(t,e);if(dC(t))return hf(t,e)}throw QC(t)}function re(t,e){return e?uf(t,e):ne(t)}function iA(...t){let e=Ji(t);return re(t,e)}function Wo(t,e){let A=yA(t)?t:()=>t,i=o=>o.error(A());return new QA(e?o=>e.schedule(i,0,o):i)}function zo(t){return!!t&&(t instanceof QA||yA(t.lift)&&yA(t.subscribe))}var Mo=Tg(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function mf(t){return t instanceof Date&&!isNaN(t)}function nA(t,e){return NA((A,i)=>{let o=0;A.subscribe(SA(i,n=>{i.next(t.call(e,n,o++))}))})}var{isArray:qS}=Array;function VS(t,e){return qS(e)?t(...e):t(e)}function jg(t){return nA(e=>VS(t,e))}var{isArray:WS}=Array,{getPrototypeOf:zS,prototype:jS,keys:XS}=Object;function DC(t){if(t.length===1){let e=t[0];if(WS(e))return{args:e,keys:null};if($S(e)){let A=XS(e);return{args:A.map(i=>e[i]),keys:A}}}return{args:t,keys:null}}function $S(t){return t&&typeof t=="object"&&zS(t)===jS}function fC(t,e){return t.reduce((A,i,o)=>(A[i]=e[o],A),{})}function Bi(...t){let e=Ji(t),A=IC(t),{args:i,keys:o}=DC(t);if(i.length===0)return re([],e);let n=new QA(Av(i,e,o?g=>fC(o,g):It));return A?n.pipe(jg(A)):n}function Av(t,e,A=It){return i=>{Df(e,()=>{let{length:o}=t,n=new Array(o),g=o,r=o;for(let s=0;s<o;s++)Df(e,()=>{let I=re(t[s],e),B=!1;I.subscribe(SA(i,c=>{n[s]=c,B||(B=!0,r--),r||i.next(A(n.slice()))},()=>{--g||i.complete()}))},i)},i)}}function Df(t,e,A){t?dt(A,t,e):e()}function ff(t,e,A,i,o,n,g,r){let s=[],I=0,B=0,c=!1,D=()=>{c&&!s.length&&!I&&e.complete()},h=y=>I<i?p(y):s.push(y),p=y=>{n&&e.next(y),I++;let L=!1;ne(A(y,B++)).subscribe(SA(e,P=>{o?.(P),n?h(P):e.next(P)},()=>{L=!0},void 0,()=>{if(L)try{for(I--;s.length&&I<i;){let P=s.shift();g?dt(e,g,()=>p(P)):p(P)}D()}catch(P){e.error(P)}}))};return t.subscribe(SA(e,h,()=>{c=!0,D()})),()=>{r?.()}}function ye(t,e,A=1/0){return yA(e)?ye((i,o)=>nA((n,g)=>e(i,n,o,g))(ne(t(i,o))),A):(typeof e=="number"&&(A=e),NA((i,o)=>ff(i,o,t,A)))}function jo(t=1/0){return ye(It,t)}function pf(){return jo(1)}function Xo(...t){return pf()(re(t,Ji(t)))}function Hi(t){return new QA(e=>{ne(t()).subscribe(e)})}function _s(...t){let e=IC(t),{args:A,keys:i}=DC(t),o=new QA(n=>{let{length:g}=A;if(!g){n.complete();return}let r=new Array(g),s=g,I=g;for(let B=0;B<g;B++){let c=!1;ne(A[B]).subscribe(SA(n,D=>{c||(c=!0,I--),r[B]=D},()=>s--,void 0,()=>{(!s||!c)&&(I||n.next(i?fC(i,r):r),n.complete())}))}});return e?o.pipe(jg(e)):o}var ev=["addListener","removeListener"],tv=["addEventListener","removeEventListener"],iv=["on","off"];function Ks(t,e,A,i){if(yA(A)&&(i=A,A=void 0),i)return Ks(t,e,A).pipe(jg(i));let[o,n]=gv(t)?tv.map(g=>r=>t[g](e,r,A)):ov(t)?ev.map(wf(t,e)):nv(t)?iv.map(wf(t,e)):[];if(!o&&zg(t))return ye(g=>Ks(g,e,A))(ne(t));if(!o)throw new TypeError("Invalid event target");return new QA(g=>{let r=(...s)=>g.next(1<s.length?s:s[0]);return o(r),()=>n(r)})}function wf(t,e){return A=>i=>t[A](e,i)}function ov(t){return yA(t.addListener)&&yA(t.removeListener)}function nv(t){return yA(t.on)&&yA(t.off)}function gv(t){return yA(t.addEventListener)&&yA(t.removeEventListener)}function Un(t=0,e,A=rf){let i=-1;return e!=null&&(sC(e)?A=e:i=e),new QA(o=>{let n=mf(t)?+t-A.now():t;n<0&&(n=0);let g=0;return A.schedule(function(){o.closed||(o.next(g++),0<=i?this.schedule(void 0,i):o.complete())},n)})}function me(...t){let e=Ji(t),A=sf(t,1/0),i=t;return i.length?i.length===1?ne(i[0]):jo(A)(re(i,e)):Le}function kA(t,e){return NA((A,i)=>{let o=0;A.subscribe(SA(i,n=>t.call(e,n,o++)&&i.next(n)))})}function yf(t){return NA((e,A)=>{let i=!1,o=null,n=null,g=!1,r=()=>{if(n?.unsubscribe(),n=null,i){i=!1;let I=o;o=null,A.next(I)}g&&A.complete()},s=()=>{n=null,g&&A.complete()};e.subscribe(SA(A,I=>{i=!0,o=I,n||ne(t(I)).subscribe(n=SA(A,r,s))},()=>{g=!0,(!i||!n||n.closed)&&A.complete()}))})}function pC(t,e=Ls){return yf(()=>Un(t,e))}function ht(t){return NA((e,A)=>{let i=null,o=!1,n;i=e.subscribe(SA(A,void 0,void 0,g=>{n=ne(t(g,ht(t)(e))),i?(i.unsubscribe(),i=null,n.subscribe(A)):o=!0})),o&&(i.unsubscribe(),i=null,n.subscribe(A))})}function Mf(t,e,A,i,o){return(n,g)=>{let r=A,s=e,I=0;n.subscribe(SA(g,B=>{let c=I++;s=r?t(s,B,c):(r=!0,B),i&&g.next(s)},o&&(()=>{r&&g.next(s),g.complete()})))}}function Ti(t,e){return yA(e)?ye(t,e,1):ye(t,1)}function Qi(t,e=Ls){return NA((A,i)=>{let o=null,n=null,g=null,r=()=>{if(o){o.unsubscribe(),o=null;let I=n;n=null,i.next(I)}};function s(){let I=g+t,B=e.now();if(B<I){o=this.schedule(void 0,I-B),i.add(o);return}r()}A.subscribe(SA(i,I=>{n=I,g=e.now(),o||(o=e.schedule(s,t),i.add(o))},()=>{r(),i.complete()},void 0,()=>{n=o=null}))})}function $o(t){return NA((e,A)=>{let i=!1;e.subscribe(SA(A,o=>{i=!0,A.next(o)},()=>{i||A.next(t),A.complete()}))})}function de(t){return t<=0?()=>Le:NA((e,A)=>{let i=0;e.subscribe(SA(A,o=>{++i<=t&&(A.next(o),t<=i&&A.complete())}))})}function Xg(t){return nA(()=>t)}function Ei(t,e=It){return t=t??rv,NA((A,i)=>{let o,n=!0;A.subscribe(SA(i,g=>{let r=e(g);(n||!t(o,r))&&(n=!1,o=r,i.next(g))}))})}function rv(t,e){return t===e}function wC(t=sv){return NA((e,A)=>{let i=!1;e.subscribe(SA(A,o=>{i=!0,A.next(o)},()=>i?A.complete():A.error(t())))})}function sv(){return new Mo}function Oi(t){return NA((e,A)=>{try{e.subscribe(A)}finally{A.add(t)}})}function Pi(t,e){let A=arguments.length>=2;return i=>i.pipe(t?kA((o,n)=>t(o,n,i)):It,de(1),A?$o(e):wC(()=>new Mo))}function $g(t){return t<=0?()=>Le:NA((e,A)=>{let i=[];e.subscribe(SA(A,o=>{i.push(o),t<i.length&&i.shift()},()=>{for(let o of i)A.next(o);A.complete()},void 0,()=>{i=null}))})}function Zc(t,e){let A=arguments.length>=2;return i=>i.pipe(t?kA((o,n)=>t(o,n,i)):It,$g(1),A?$o(e):wC(()=>new Mo))}function yC(){return NA((t,e)=>{let A,i=!1;t.subscribe(SA(e,o=>{let n=A;A=o,i&&e.next([n,o]),i=!0}))})}function qc(t,e){return NA(Mf(t,e,arguments.length>=2,!0))}function Us(t={}){let{connector:e=()=>new _,resetOnError:A=!0,resetOnComplete:i=!0,resetOnRefCountZero:o=!0}=t;return n=>{let g,r,s,I=0,B=!1,c=!1,D=()=>{r?.unsubscribe(),r=void 0},h=()=>{D(),g=s=void 0,B=c=!1},p=()=>{let y=g;h(),y?.unsubscribe()};return NA((y,L)=>{I++,!c&&!B&&D();let P=s=s??e();L.add(()=>{I--,I===0&&!c&&!B&&(r=Vc(p,o))}),P.subscribe(L),!g&&I>0&&(g=new yo({next:DA=>P.next(DA),error:DA=>{c=!0,D(),r=Vc(h,A,DA),P.error(DA)},complete:()=>{B=!0,D(),r=Vc(h,i),P.complete()}}),ne(y).subscribe(g))})(n)}}function Vc(t,e,...A){if(e===!0){t();return}if(e===!1)return;let i=new yo({next:()=>{i.unsubscribe(),t()}});return ne(e(...A)).subscribe(i)}function Ro(t,e,A){let i,o=!1;return t&&typeof t=="object"?{bufferSize:i=1/0,windowTime:e=1/0,refCount:o=!1,scheduler:A}=t:i=t??1/0,Us({connector:()=>new Ci(i,e,A),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}function xn(t){return kA((e,A)=>t<=A)}function De(...t){let e=Ji(t);return NA((A,i)=>{(e?Xo(t,A,e):Xo(t,A)).subscribe(i)})}function se(t,e){return NA((A,i)=>{let o=null,n=0,g=!1,r=()=>g&&!o&&i.complete();A.subscribe(SA(i,s=>{o?.unsubscribe();let I=0,B=n++;ne(t(s,B)).subscribe(o=SA(i,c=>i.next(e?e(s,c,B,I++):c),()=>{o=null,r()}))},()=>{g=!0,r()}))})}function mA(t){return NA((e,A)=>{ne(t).subscribe(SA(A,()=>A.complete(),vs)),!A.closed&&e.subscribe(A)})}function Wc(t,e=!1){return NA((A,i)=>{let o=0;A.subscribe(SA(i,n=>{let g=t(n,o++);(g||e)&&i.next(n),!g&&i.complete()}))})}function Ie(t,e,A){let i=yA(t)||e||A?{next:t,error:e,complete:A}:t;return i?NA((o,n)=>{var g;(g=i.subscribe)===null||g===void 0||g.call(i);let r=!0;o.subscribe(SA(n,s=>{var I;(I=i.next)===null||I===void 0||I.call(i,s),n.next(s)},()=>{var s;r=!1,(s=i.complete)===null||s===void 0||s.call(i),n.complete()},s=>{var I;r=!1,(I=i.error)===null||I===void 0||I.call(i,s),n.error(s)},()=>{var s,I;r&&((s=i.unsubscribe)===null||s===void 0||s.call(i)),(I=i.finalize)===null||I===void 0||I.call(i)}))}):It}var up="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",K=class extends Error{code;constructor(e,A){super(ud(e,A)),this.code=e}};function Iv(t){return`NG0${Math.abs(t)}`}function ud(t,e){return`${Iv(t)}${e?": "+e:""}`}var mp=Symbol("InputSignalNode#UNSET"),av=hA(R({},$a),{transformFn:void 0,applyValueToInputSignal(t,e){bs(t,e)}});function Dp(t,e){let A=Object.create(av);A.value=t,A.transformFn=e?.transform;function i(){if(Rs(A),A.value===mp){let o=null;throw new K(-950,o)}return A.value}return i[lt]=A,i}function js(t){return{toString:t}.toString()}var MC="__parameters__";function Cv(t){return function(...A){if(t){let i=t(...A);for(let o in i)this[o]=i[o]}}}function fp(t,e,A){return js(()=>{let i=Cv(e);function o(...n){if(this instanceof o)return i.apply(this,n),this;let g=new o(...n);return r.annotation=g,r;function r(s,I,B){let c=s.hasOwnProperty(MC)?s[MC]:Object.defineProperty(s,MC,{value:[]})[MC];for(;c.length<=B;)c.push(null);return(c[B]=c[B]||[]).push(g),s}}return o.prototype.ngMetadataName=t,o.annotationCls=o,o})}var Dt=globalThis;function ae(t){for(let e in t)if(t[e]===ae)return e;throw Error("Could not find renamed property on target object.")}function Bv(t,e){for(let A in e)e.hasOwnProperty(A)&&!t.hasOwnProperty(A)&&(t[A]=e[A])}function mt(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map(mt).join(", ")}]`;if(t==null)return""+t;let e=t.overriddenName||t.name;if(e)return`${e}`;let A=t.toString();if(A==null)return""+A;let i=A.indexOf(`
`);return i>=0?A.slice(0,i):A}function al(t,e){return t?e?`${t} ${e}`:t:e||""}var Qv=ae({__forward_ref__:ae});function Ct(t){return t.__forward_ref__=Ct,t.toString=function(){return mt(this())},t}function je(t){return pp(t)?t():t}function pp(t){return typeof t=="function"&&t.hasOwnProperty(Qv)&&t.__forward_ref__===Ct}function v(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Z(t){return{providers:t.providers||[],imports:t.imports||[]}}function QB(t){return Rf(t,yp)||Rf(t,Mp)}function wp(t){return QB(t)!==null}function Rf(t,e){return t.hasOwnProperty(e)?t[e]:null}function Ev(t){let e=t&&(t[yp]||t[Mp]);return e||null}function kf(t){return t&&(t.hasOwnProperty(Ff)||t.hasOwnProperty(cv))?t[Ff]:null}var yp=ae({\u0275prov:ae}),Ff=ae({\u0275inj:ae}),Mp=ae({ngInjectableDef:ae}),cv=ae({ngInjectorDef:ae}),k=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(e,A){this._desc=e,this.\u0275prov=void 0,typeof A=="number"?this.__NG_ELEMENT_ID__=A:A!==void 0&&(this.\u0275prov=v({token:this,providedIn:A.providedIn||"root",factory:A.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Rp(t){return t&&!!t.\u0275providers}var lv=ae({\u0275cmp:ae}),dv=ae({\u0275dir:ae}),hv=ae({\u0275pipe:ae}),uv=ae({\u0275mod:ae}),KC=ae({\u0275fac:ae}),Hs=ae({__NG_ELEMENT_ID__:ae}),bf=ae({__NG_ENV_ID__:ae});function Xs(t){return typeof t=="string"?t:t==null?"":String(t)}function mv(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():Xs(t)}function kp(t,e){throw new K(-200,t)}function md(t,e){throw new K(-201,!1)}var qA=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(qA||{}),Cl;function Fp(){return Cl}function ut(t){let e=Cl;return Cl=t,e}function bp(t,e,A){let i=QB(t);if(i&&i.providedIn=="root")return i.value===void 0?i.value=i.factory():i.value;if(A&qA.Optional)return null;if(e!==void 0)return e;md(t,"Injector")}var Dv={},Yn=Dv,Bl="__NG_DI_FLAG__",UC=class{injector;constructor(e){this.injector=e}retrieve(e,A){let i=A;return this.injector.get(e,i.optional?AC:Yn,i)}},xC="ngTempTokenPath",fv="ngTokenPath",pv=/\n/gm,wv="\u0275",Sf="__source";function yv(t,e=qA.Default){if(Ss()===void 0)throw new K(-203,!1);if(Ss()===null)return bp(t,void 0,e);{let A=Ss(),i;return A instanceof UC?i=A.injector:i=A,i.get(t,e&qA.Optional?null:void 0,e)}}function O(t,e=qA.Default){return(Fp()||yv)(je(t),e)}function Q(t,e=qA.Default){return O(t,EB(e))}function EB(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function Ql(t){let e=[];for(let A=0;A<t.length;A++){let i=je(t[A]);if(Array.isArray(i)){if(i.length===0)throw new K(900,!1);let o,n=qA.Default;for(let g=0;g<i.length;g++){let r=i[g],s=Mv(r);typeof s=="number"?s===-1?o=r.token:n|=s:o=r}e.push(O(o,n))}else e.push(O(i))}return e}function Sp(t,e){return t[Bl]=e,t.prototype[Bl]=e,t}function Mv(t){return t[Bl]}function Rv(t,e,A,i){let o=t[xC];throw e[Sf]&&o.unshift(e[Sf]),t.message=kv(`
`+t.message,o,A,i),t[fv]=o,t[xC]=null,t}function kv(t,e,A,i=null){t=t&&t.charAt(0)===`
`&&t.charAt(1)==wv?t.slice(2):t;let o=mt(e);if(Array.isArray(e))o=e.map(mt).join(" -> ");else if(typeof e=="object"){let n=[];for(let g in e)if(e.hasOwnProperty(g)){let r=e[g];n.push(g+":"+(typeof r=="string"?JSON.stringify(r):mt(r)))}o=`{${n.join(", ")}}`}return`${A}${i?"("+i+")":""}[${o}]: ${t.replace(pv,`
  `)}`}var $n=Sp(fp("Optional"),8);var $s=Sp(fp("SkipSelf"),4);function Hn(t,e){let A=t.hasOwnProperty(KC);return A?t[KC]:null}function Fv(t,e,A){if(t.length!==e.length)return!1;for(let i=0;i<t.length;i++){let o=t[i],n=e[i];if(A&&(o=A(o),n=A(n)),n!==o)return!1}return!0}function bv(t){return t.flat(Number.POSITIVE_INFINITY)}function Dd(t,e){t.forEach(A=>Array.isArray(A)?Dd(A,e):e(A))}function vp(t,e,A){e>=t.length?t.push(A):t.splice(e,0,A)}function YC(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function Sv(t,e){let A=[];for(let i=0;i<t;i++)A.push(e);return A}function vv(t,e,A,i){let o=t.length;if(o==e)t.push(A,i);else if(o===1)t.push(i,t[0]),t[0]=A;else{for(o--,t.push(t[o-1],t[o]);o>e;){let n=o-2;t[o]=t[n],o--}t[e]=A,t[e+1]=i}}function cB(t,e,A){let i=AI(t,e);return i>=0?t[i|1]=A:(i=~i,vv(t,i,e,A)),i}function zc(t,e){let A=AI(t,e);if(A>=0)return t[A|1]}function AI(t,e){return Nv(t,e,1)}function Nv(t,e,A){let i=0,o=t.length>>A;for(;o!==i;){let n=i+(o-i>>1),g=t[n<<A];if(e===g)return n<<A;g>e?o=n:i=n+1}return~(o<<A)}var qi={},at=[],gr=new k(""),Np=new k("",-1),Gp=new k(""),JC=class{get(e,A=Yn){if(A===Yn){let i=new Error(`NullInjectorError: No provider for ${mt(e)}!`);throw i.name="NullInjectorError",i}return A}};function Lp(t,e){let A=t[uv]||null;if(!A&&e===!0)throw new Error(`Type ${mt(t)} does not have '\u0275mod' property.`);return A}function tn(t){return t[lv]||null}function _p(t){return t[dv]||null}function Gv(t){return t[hv]||null}function eI(t){return{\u0275providers:t}}function Lv(...t){return{\u0275providers:Kp(!0,t),\u0275fromNgModule:!0}}function Kp(t,...e){let A=[],i=new Set,o,n=g=>{A.push(g)};return Dd(e,g=>{let r=g;El(r,n,[],i)&&(o||=[],o.push(r))}),o!==void 0&&Up(o,n),A}function Up(t,e){for(let A=0;A<t.length;A++){let{ngModule:i,providers:o}=t[A];fd(o,n=>{e(n,i)})}}function El(t,e,A,i){if(t=je(t),!t)return!1;let o=null,n=kf(t),g=!n&&tn(t);if(!n&&!g){let s=t.ngModule;if(n=kf(s),n)o=s;else return!1}else{if(g&&!g.standalone)return!1;o=t}let r=i.has(o);if(g){if(r)return!1;if(i.add(o),g.dependencies){let s=typeof g.dependencies=="function"?g.dependencies():g.dependencies;for(let I of s)El(I,e,A,i)}}else if(n){if(n.imports!=null&&!r){i.add(o);let I;try{Dd(n.imports,B=>{El(B,e,A,i)&&(I||=[],I.push(B))})}finally{}I!==void 0&&Up(I,e)}if(!r){let I=Hn(o)||(()=>new o);e({provide:o,useFactory:I,deps:at},o),e({provide:Gp,useValue:o,multi:!0},o),e({provide:gr,useValue:()=>O(o),multi:!0},o)}let s=n.providers;if(s!=null&&!r){let I=t;fd(s,B=>{e(B,I)})}}else return!1;return o!==t&&t.providers!==void 0}function fd(t,e){for(let A of t)Rp(A)&&(A=A.\u0275providers),Array.isArray(A)?fd(A,e):e(A)}var _v=ae({provide:String,useValue:ae});function xp(t){return t!==null&&typeof t=="object"&&_v in t}function Kv(t){return!!(t&&t.useExisting)}function Uv(t){return!!(t&&t.useFactory)}function rr(t){return typeof t=="function"}function xv(t){return!!t.useClass}var lB=new k(""),vC={},vf={},jc;function dB(){return jc===void 0&&(jc=new JC),jc}var _e=class{},Os=class extends _e{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(e,A,i,o){super(),this.parent=A,this.source=i,this.scopes=o,ll(e,g=>this.processProvider(g)),this.records.set(Np,Ar(void 0,this)),o.has("environment")&&this.records.set(_e,Ar(void 0,this));let n=this.records.get(lB);n!=null&&typeof n.value=="string"&&this.scopes.add(n.value),this.injectorDefTypes=new Set(this.get(Gp,at,qA.Self))}retrieve(e,A){let i=A;return this.get(e,i.optional?AC:Yn,i)}destroy(){Ys(this),this._destroyed=!0;let e=PA(null);try{for(let i of this._ngOnDestroyHooks)i.ngOnDestroy();let A=this._onDestroyHooks;this._onDestroyHooks=[];for(let i of A)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),PA(e)}}onDestroy(e){return Ys(this),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){Ys(this);let A=po(this),i=ut(void 0),o;try{return e()}finally{po(A),ut(i)}}get(e,A=Yn,i=qA.Default){if(Ys(this),e.hasOwnProperty(bf))return e[bf](this);i=EB(i);let o,n=po(this),g=ut(void 0);try{if(!(i&qA.SkipSelf)){let s=this.records.get(e);if(s===void 0){let I=Ov(e)&&QB(e);I&&this.injectableDefInScope(I)?s=Ar(cl(e),vC):s=null,this.records.set(e,s)}if(s!=null)return this.hydrate(e,s)}let r=i&qA.Self?dB():this.parent;return A=i&qA.Optional&&A===Yn?null:A,r.get(e,A)}catch(r){if(r.name==="NullInjectorError"){if((r[xC]=r[xC]||[]).unshift(mt(e)),n)throw r;return Rv(r,e,"R3InjectorError",this.source)}else throw r}finally{ut(g),po(n)}}resolveInjectorInitializers(){let e=PA(null),A=po(this),i=ut(void 0),o;try{let n=this.get(gr,at,qA.Self);for(let g of n)g()}finally{po(A),ut(i),PA(e)}}toString(){let e=[],A=this.records;for(let i of A.keys())e.push(mt(i));return`R3Injector[${e.join(", ")}]`}processProvider(e){e=je(e);let A=rr(e)?e:je(e&&e.provide),i=Jv(e);if(!rr(e)&&e.multi===!0){let o=this.records.get(A);o||(o=Ar(void 0,vC,!0),o.factory=()=>Ql(o.multi),this.records.set(A,o)),A=e,o.multi.push(e)}this.records.set(A,i)}hydrate(e,A){let i=PA(null);try{return A.value===vf?kp(mt(e)):A.value===vC&&(A.value=vf,A.value=A.factory()),typeof A.value=="object"&&A.value&&Tv(A.value)&&this._ngOnDestroyHooks.add(A.value),A.value}finally{PA(i)}}injectableDefInScope(e){if(!e.providedIn)return!1;let A=je(e.providedIn);return typeof A=="string"?A==="any"||this.scopes.has(A):this.injectorDefTypes.has(A)}removeOnDestroy(e){let A=this._onDestroyHooks.indexOf(e);A!==-1&&this._onDestroyHooks.splice(A,1)}};function cl(t){let e=QB(t),A=e!==null?e.factory:Hn(t);if(A!==null)return A;if(t instanceof k)throw new K(204,!1);if(t instanceof Function)return Yv(t);throw new K(204,!1)}function Yv(t){if(t.length>0)throw new K(204,!1);let A=Ev(t);return A!==null?()=>A.factory(t):()=>new t}function Jv(t){if(xp(t))return Ar(void 0,t.useValue);{let e=Yp(t);return Ar(e,vC)}}function Yp(t,e,A){let i;if(rr(t)){let o=je(t);return Hn(o)||cl(o)}else if(xp(t))i=()=>je(t.useValue);else if(Uv(t))i=()=>t.useFactory(...Ql(t.deps||[]));else if(Kv(t))i=()=>O(je(t.useExisting));else{let o=je(t&&(t.useClass||t.provide));if(Hv(t))i=()=>new o(...Ql(t.deps));else return Hn(o)||cl(o)}return i}function Ys(t){if(t.destroyed)throw new K(205,!1)}function Ar(t,e,A=!1){return{factory:t,value:e,multi:A?[]:void 0}}function Hv(t){return!!t.deps}function Tv(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function Ov(t){return typeof t=="function"||typeof t=="object"&&t instanceof k}function ll(t,e){for(let A of t)Array.isArray(A)?ll(A,e):A&&Rp(A)?ll(A.\u0275providers,e):e(A)}function wt(t,e){let A;t instanceof Os?(Ys(t),A=t):A=new UC(t);let i,o=po(A),n=ut(void 0);try{return e()}finally{po(o),ut(n)}}function Jp(){return Fp()!==void 0||Ss()!=null}function pd(t){if(!Jp())throw new K(-203,!1)}function Pv(t){let e=Dt.ng;if(e&&e.\u0275compilerFacade)return e.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function Zv(t){return typeof t=="function"}var Xi=0,xA=1,GA=2,et=3,di=4,yt=5,sr=6,HC=7,xe=8,Ir=9,ko=10,fe=11,Ps=12,Nf=13,cr=14,Lt=15,Tn=16,er=17,Fo=18,hB=19,Hp=20,An=21,Xc=22,On=23,zt=24,or=25,Ye=26,wd=1;var Pn=7,TC=8,ar=9,At=10;function en(t){return Array.isArray(t)&&typeof t[wd]=="object"}function vo(t){return Array.isArray(t)&&t[wd]===!0}function yd(t){return(t.flags&4)!==0}function lr(t){return t.componentOffset>-1}function uB(t){return(t.flags&1)===1}function hi(t){return!!t.template}function OC(t){return(t[GA]&512)!==0}function tI(t){return(t[GA]&256)===256}var dl=class{previousValue;currentValue;firstChange;constructor(e,A,i){this.previousValue=e,this.currentValue=A,this.firstChange=i}isFirstChange(){return this.firstChange}};function Tp(t,e,A,i){e!==null?e.applyValueToInputSignal(e,i):t[A]=i}var VA=(()=>{let t=()=>Op;return t.ngInherit=!0,t})();function Op(t){return t.type.prototype.ngOnChanges&&(t.setInput=Vv),qv}function qv(){let t=Zp(this),e=t?.current;if(e){let A=t.previous;if(A===qi)t.previous=e;else for(let i in e)A[i]=e[i];t.current=null,this.ngOnChanges(e)}}function Vv(t,e,A,i,o){let n=this.declaredInputs[i],g=Zp(t)||Wv(t,{previous:qi,current:null}),r=g.current||(g.current={}),s=g.previous,I=s[n];r[n]=new dl(I&&I.currentValue,A,s===qi),Tp(t,e,o,A)}var Pp="__ngSimpleChanges__";function Zp(t){return t[Pp]||null}function Wv(t,e){return t[Pp]=e}var Gf=null;var Ee=function(t,e=null,A){Gf?.(t,e,A)},qp="svg",zv="math";function Vi(t){for(;Array.isArray(t);)t=t[Xi];return t}function jv(t){for(;Array.isArray(t);){if(typeof t[wd]=="object")return t;t=t[Xi]}return null}function Vp(t,e){return Vi(e[t])}function $i(t,e){return Vi(e[t.index])}function Md(t,e){return t.data[e]}function Rd(t,e){return t[e]}function Wi(t,e){let A=e[t];return en(A)?A:A[Xi]}function Xv(t){return(t[GA]&4)===4}function kd(t){return(t[GA]&128)===128}function $v(t){return vo(t[et])}function on(t,e){return e==null?null:t[e]}function Wp(t){t[er]=0}function zp(t){t[GA]&1024||(t[GA]|=1024,kd(t)&&dr(t))}function AN(t,e){for(;t>0;)e=e[cr],t--;return e}function mB(t){return!!(t[GA]&9216||t[zt]?.dirty)}function hl(t){t[ko].changeDetectionScheduler?.notify(8),t[GA]&64&&(t[GA]|=1024),mB(t)&&dr(t)}function dr(t){t[ko].changeDetectionScheduler?.notify(0);let e=Zn(t);for(;e!==null&&!(e[GA]&8192||(e[GA]|=8192,!kd(e)));)e=Zn(e)}function jp(t,e){if(tI(t))throw new K(911,!1);t[An]===null&&(t[An]=[]),t[An].push(e)}function eN(t,e){if(t[An]===null)return;let A=t[An].indexOf(e);A!==-1&&t[An].splice(A,1)}function Zn(t){let e=t[et];return vo(e)?e[et]:e}function Fd(t){return t[HC]??=[]}function bd(t){return t.cleanup??=[]}function tN(t,e,A,i){let o=Fd(e);o.push(A),t.firstCreatePass&&bd(t).push(i,o.length-1)}var JA={lFrame:ow(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var ul=!1;function iN(){return JA.lFrame.elementDepthCount}function oN(){JA.lFrame.elementDepthCount++}function nN(){JA.lFrame.elementDepthCount--}function Sd(){return JA.bindingsEnabled}function Xp(){return JA.skipHydrationRootTNode!==null}function gN(t){return JA.skipHydrationRootTNode===t}function rN(){JA.skipHydrationRootTNode=null}function FA(){return JA.lFrame.lView}function he(){return JA.lFrame.tView}function J(t){return JA.lFrame.contextLView=t,t[xe]}function H(t){return JA.lFrame.contextLView=null,t}function Xe(){let t=$p();for(;t!==null&&t.type===64;)t=t.parent;return t}function $p(){return JA.lFrame.currentTNode}function sN(){let t=JA.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function Ag(t,e){let A=JA.lFrame;A.currentTNode=t,A.isParent=e}function vd(){return JA.lFrame.isParent}function Nd(){JA.lFrame.isParent=!1}function IN(){return JA.lFrame.contextLView}function Aw(){return ul}function PC(t){let e=ul;return ul=t,e}function iI(){let t=JA.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function aN(t){return JA.lFrame.bindingIndex=t}function nn(){return JA.lFrame.bindingIndex++}function ew(t){let e=JA.lFrame,A=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,A}function CN(){return JA.lFrame.inI18n}function BN(t,e){let A=JA.lFrame;A.bindingIndex=A.bindingRootIndex=t,ml(e)}function QN(){return JA.lFrame.currentDirectiveIndex}function ml(t){JA.lFrame.currentDirectiveIndex=t}function Gd(t){let e=JA.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function Ld(){return JA.lFrame.currentQueryIndex}function DB(t){JA.lFrame.currentQueryIndex=t}function EN(t){let e=t[xA];return e.type===2?e.declTNode:e.type===1?t[yt]:null}function tw(t,e,A){if(A&qA.SkipSelf){let o=e,n=t;for(;o=o.parent,o===null&&!(A&qA.Host);)if(o=EN(n),o===null||(n=n[cr],o.type&10))break;if(o===null)return!1;e=o,t=n}let i=JA.lFrame=iw();return i.currentTNode=e,i.lView=t,!0}function _d(t){let e=iw(),A=t[xA];JA.lFrame=e,e.currentTNode=A.firstChild,e.lView=t,e.tView=A,e.contextLView=t,e.bindingIndex=A.bindingStartIndex,e.inI18n=!1}function iw(){let t=JA.lFrame,e=t===null?null:t.child;return e===null?ow(t):e}function ow(t){let e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=e),e}function nw(){let t=JA.lFrame;return JA.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var gw=nw;function Kd(){let t=nw();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function cN(t){return(JA.lFrame.contextLView=AN(t,JA.lFrame.contextLView))[xe]}function gn(){return JA.lFrame.selectedIndex}function qn(t){JA.lFrame.selectedIndex=t}function oI(){let t=JA.lFrame;return Md(t.tView,t.selectedIndex)}function it(){JA.lFrame.currentNamespace=qp}function eg(){lN()}function lN(){JA.lFrame.currentNamespace=null}function dN(){return JA.lFrame.currentNamespace}var rw=!0;function fB(){return rw}function pB(t){rw=t}function hN(t,e,A){let{ngOnChanges:i,ngOnInit:o,ngDoCheck:n}=e.type.prototype;if(i){let g=Op(e);(A.preOrderHooks??=[]).push(t,g),(A.preOrderCheckHooks??=[]).push(t,g)}o&&(A.preOrderHooks??=[]).push(0-t,o),n&&((A.preOrderHooks??=[]).push(t,n),(A.preOrderCheckHooks??=[]).push(t,n))}function Ud(t,e){for(let A=e.directiveStart,i=e.directiveEnd;A<i;A++){let n=t.data[A].type.prototype,{ngAfterContentInit:g,ngAfterContentChecked:r,ngAfterViewInit:s,ngAfterViewChecked:I,ngOnDestroy:B}=n;g&&(t.contentHooks??=[]).push(-A,g),r&&((t.contentHooks??=[]).push(A,r),(t.contentCheckHooks??=[]).push(A,r)),s&&(t.viewHooks??=[]).push(-A,s),I&&((t.viewHooks??=[]).push(A,I),(t.viewCheckHooks??=[]).push(A,I)),B!=null&&(t.destroyHooks??=[]).push(A,B)}}function NC(t,e,A){sw(t,e,3,A)}function GC(t,e,A,i){(t[GA]&3)===A&&sw(t,e,A,i)}function $c(t,e){let A=t[GA];(A&3)===e&&(A&=16383,A+=1,t[GA]=A)}function sw(t,e,A,i){let o=i!==void 0?t[er]&65535:0,n=i??-1,g=e.length-1,r=0;for(let s=o;s<g;s++)if(typeof e[s+1]=="number"){if(r=e[s],i!=null&&r>=i)break}else e[s]<0&&(t[er]+=65536),(r<n||n==-1)&&(uN(t,A,e,s),t[er]=(t[er]&4294901760)+s+2),s++}function Lf(t,e){Ee(4,t,e);let A=PA(null);try{e.call(t)}finally{PA(A),Ee(5,t,e)}}function uN(t,e,A,i){let o=A[i]<0,n=A[i+1],g=o?-A[i]:A[i],r=t[g];o?t[GA]>>14<t[er]>>16&&(t[GA]&3)===e&&(t[GA]+=16384,Lf(r,n)):Lf(r,n)}var nr=-1,Vn=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(e,A,i){this.factory=e,this.canSeeViewProviders=A,this.injectImpl=i}};function mN(t){return(t.flags&8)!==0}function DN(t){return(t.flags&16)!==0}function fN(t,e,A){let i=0;for(;i<A.length;){let o=A[i];if(typeof o=="number"){if(o!==0)break;i++;let n=A[i++],g=A[i++],r=A[i++];t.setAttribute(e,g,r,n)}else{let n=o,g=A[++i];pN(n)?t.setProperty(e,n,g):t.setAttribute(e,n,g),i++}}return i}function Iw(t){return t===3||t===4||t===6}function pN(t){return t.charCodeAt(0)===64}function Cr(t,e){if(!(e===null||e.length===0))if(t===null||t.length===0)t=e.slice();else{let A=-1;for(let i=0;i<e.length;i++){let o=e[i];typeof o=="number"?A=o:A===0||(A===-1||A===2?_f(t,A,o,null,e[++i]):_f(t,A,o,null,null))}}return t}function _f(t,e,A,i,o){let n=0,g=t.length;if(e===-1)g=-1;else for(;n<t.length;){let r=t[n++];if(typeof r=="number"){if(r===e){g=-1;break}else if(r>e){g=n-1;break}}}for(;n<t.length;){let r=t[n];if(typeof r=="number")break;if(r===A){o!==null&&(t[n+1]=o);return}n++,o!==null&&n++}g!==-1&&(t.splice(g,0,e),n=g+1),t.splice(n++,0,A),o!==null&&t.splice(n++,0,o)}function aw(t){return t!==nr}function ZC(t){return t&32767}function wN(t){return t>>16}function qC(t,e){let A=wN(t),i=e;for(;A>0;)i=i[cr],A--;return i}var Dl=!0;function VC(t){let e=Dl;return Dl=t,e}var yN=256,Cw=yN-1,Bw=5,MN=0,Zi={};function RN(t,e,A){let i;typeof A=="string"?i=A.charCodeAt(0)||0:A.hasOwnProperty(Hs)&&(i=A[Hs]),i==null&&(i=A[Hs]=MN++);let o=i&Cw,n=1<<o;e.data[t+(o>>Bw)]|=n}function WC(t,e){let A=Qw(t,e);if(A!==-1)return A;let i=e[xA];i.firstCreatePass&&(t.injectorIndex=e.length,Al(i.data,t),Al(e,null),Al(i.blueprint,null));let o=xd(t,e),n=t.injectorIndex;if(aw(o)){let g=ZC(o),r=qC(o,e),s=r[xA].data;for(let I=0;I<8;I++)e[n+I]=r[g+I]|s[g+I]}return e[n+8]=o,n}function Al(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Qw(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function xd(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let A=0,i=null,o=e;for(;o!==null;){if(i=hw(o),i===null)return nr;if(A++,o=o[cr],i.injectorIndex!==-1)return i.injectorIndex|A<<16}return nr}function fl(t,e,A){RN(t,e,A)}function kN(t,e){if(e==="class")return t.classes;if(e==="style")return t.styles;let A=t.attrs;if(A){let i=A.length,o=0;for(;o<i;){let n=A[o];if(Iw(n))break;if(n===0)o=o+2;else if(typeof n=="number")for(o++;o<i&&typeof A[o]=="string";)o++;else{if(n===e)return A[o+1];o=o+2}}}return null}function Ew(t,e,A){if(A&qA.Optional||t!==void 0)return t;md(e,"NodeInjector")}function cw(t,e,A,i){if(A&qA.Optional&&i===void 0&&(i=null),(A&(qA.Self|qA.Host))===0){let o=t[Ir],n=ut(void 0);try{return o?o.get(e,i,A&qA.Optional):bp(e,i,A&qA.Optional)}finally{ut(n)}}return Ew(i,e,A)}function lw(t,e,A,i=qA.Default,o){if(t!==null){if(e[GA]&2048&&!(i&qA.Self)){let g=vN(t,e,A,i,Zi);if(g!==Zi)return g}let n=dw(t,e,A,i,Zi);if(n!==Zi)return n}return cw(e,A,i,o)}function dw(t,e,A,i,o){let n=bN(A);if(typeof n=="function"){if(!tw(e,t,i))return i&qA.Host?Ew(o,A,i):cw(e,A,i,o);try{let g;if(g=n(i),g==null&&!(i&qA.Optional))md(A);else return g}finally{gw()}}else if(typeof n=="number"){let g=null,r=Qw(t,e),s=nr,I=i&qA.Host?e[Lt][yt]:null;for((r===-1||i&qA.SkipSelf)&&(s=r===-1?xd(t,e):e[r+8],s===nr||!Uf(i,!1)?r=-1:(g=e[xA],r=ZC(s),e=qC(s,e)));r!==-1;){let B=e[xA];if(Kf(n,r,B.data)){let c=FN(r,e,A,g,i,I);if(c!==Zi)return c}s=e[r+8],s!==nr&&Uf(i,e[xA].data[r+8]===I)&&Kf(n,r,e)?(g=B,r=ZC(s),e=qC(s,e)):r=-1}}return o}function FN(t,e,A,i,o,n){let g=e[xA],r=g.data[t+8],s=i==null?lr(r)&&Dl:i!=g&&(r.type&3)!==0,I=o&qA.Host&&n===r,B=LC(r,g,A,s,I);return B!==null?Zs(e,g,B,r):Zi}function LC(t,e,A,i,o){let n=t.providerIndexes,g=e.data,r=n&1048575,s=t.directiveStart,I=t.directiveEnd,B=n>>20,c=i?r:r+B,D=o?r+B:I;for(let h=c;h<D;h++){let p=g[h];if(h<s&&A===p||h>=s&&p.type===A)return h}if(o){let h=g[s];if(h&&hi(h)&&h.type===A)return s}return null}function Zs(t,e,A,i){let o=t[A],n=e.data;if(o instanceof Vn){let g=o;g.resolving&&kp(mv(n[A]));let r=VC(g.canSeeViewProviders);g.resolving=!0;let s,I=g.injectImpl?ut(g.injectImpl):null,B=tw(t,i,qA.Default);try{o=t[A]=g.factory(void 0,n,t,i),e.firstCreatePass&&A>=i.directiveStart&&hN(A,n[A],e)}finally{I!==null&&ut(I),VC(r),g.resolving=!1,gw()}}return o}function bN(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(Hs)?t[Hs]:void 0;return typeof e=="number"?e>=0?e&Cw:SN:e}function Kf(t,e,A){let i=1<<t;return!!(A[e+(t>>Bw)]&i)}function Uf(t,e){return!(t&qA.Self)&&!(t&qA.Host&&e)}var Jn=class{_tNode;_lView;constructor(e,A){this._tNode=e,this._lView=A}get(e,A,i){return lw(this._tNode,this._lView,e,EB(i),A)}};function SN(){return new Jn(Xe(),FA())}function WA(t){return js(()=>{let e=t.prototype.constructor,A=e[KC]||pl(e),i=Object.prototype,o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==i;){let n=o[KC]||pl(o);if(n&&n!==A)return n;o=Object.getPrototypeOf(o)}return n=>new n})}function pl(t){return pp(t)?()=>{let e=pl(je(t));return e&&e()}:Hn(t)}function vN(t,e,A,i,o){let n=t,g=e;for(;n!==null&&g!==null&&g[GA]&2048&&!OC(g);){let r=dw(n,g,A,i|qA.Self,Zi);if(r!==Zi)return r;let s=n.parent;if(!s){let I=g[Hp];if(I){let B=I.get(A,Zi,i);if(B!==Zi)return B}s=hw(g),g=g[cr]}n=s}return o}function hw(t){let e=t[xA],A=e.type;return A===2?e.declTNode:A===1?t[yt]:null}function Yd(t){return kN(Xe(),t)}function xf(t,e=null,A=null,i){let o=uw(t,e,A,i);return o.resolveInjectorInitializers(),o}function uw(t,e=null,A=null,i,o=new Set){let n=[A||at,Lv(t)];return i=i||(typeof t=="object"?void 0:mt(t)),new Os(n,e||dB(),i||null,o)}var wA=class t{static THROW_IF_NOT_FOUND=Yn;static NULL=new JC;static create(e,A){if(Array.isArray(e))return xf({name:""},A,e,"");{let i=e.name??"";return xf({name:i},e.parent,e.providers,i)}}static \u0275prov=v({token:t,providedIn:"any",factory:()=>O(Np)});static __NG_ELEMENT_ID__=-1};var ft=class{attributeName;constructor(e){this.attributeName=e}__NG_ELEMENT_ID__=()=>Yd(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}},NN=new k("");NN.__NG_ELEMENT_ID__=t=>{let e=Xe();if(e===null)throw new K(204,!1);if(e.type&2)return e.value;if(t&qA.Optional)return null;throw new K(204,!1)};var mw=!1,hr=(()=>{class t{static __NG_ELEMENT_ID__=GN;static __NG_ENV_ID__=A=>A}return t})(),zC=class extends hr{_lView;constructor(e){super(),this._lView=e}onDestroy(e){return jp(this._lView,e),()=>eN(this._lView,e)}};function GN(){return new zC(FA())}var Wn=class{},Jd=new k("",{providedIn:"root",factory:()=>!1});var Dw=new k(""),fw=new k(""),No=(()=>{class t{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new ee(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let A=this.taskId++;return this.pendingTasks.add(A),A}has(A){return this.pendingTasks.has(A)}remove(A){this.pendingTasks.delete(A),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static \u0275prov=v({token:t,providedIn:"root",factory:()=>new t})}return t})();var wl=class extends _{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(e=!1){super(),this.__isAsync=e,Jp()&&(this.destroyRef=Q(hr,{optional:!0})??void 0,this.pendingTasks=Q(No,{optional:!0})??void 0)}emit(e){let A=PA(null);try{super.next(e)}finally{PA(A)}}subscribe(e,A,i){let o=e,n=A||(()=>null),g=i;if(e&&typeof e=="object"){let s=e;o=s.next?.bind(s),n=s.error?.bind(s),g=s.complete?.bind(s)}this.__isAsync&&(n=this.wrapInTimeout(n),o&&(o=this.wrapInTimeout(o)),g&&(g=this.wrapInTimeout(g)));let r=super.subscribe({next:o,error:n,complete:g});return e instanceof vA&&e.add(r),r}wrapInTimeout(e){return A=>{let i=this.pendingTasks?.add();setTimeout(()=>{e(A),i!==void 0&&this.pendingTasks?.remove(i)})}}},$=wl;function qs(...t){}function pw(t){let e,A;function i(){t=qs;try{A!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(A),e!==void 0&&clearTimeout(e)}catch{}}return e=setTimeout(()=>{t(),i()}),typeof requestAnimationFrame=="function"&&(A=requestAnimationFrame(()=>{t(),i()})),()=>i()}function Yf(t){return queueMicrotask(()=>t()),()=>{t=qs}}var Hd="isAngularZone",jC=Hd+"_ID",LN=0,X=class t{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new $(!1);onMicrotaskEmpty=new $(!1);onStable=new $(!1);onError=new $(!1);constructor(e){let{enableLongStackTrace:A=!1,shouldCoalesceEventChangeDetection:i=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:n=mw}=e;if(typeof Zone>"u")throw new K(908,!1);Zone.assertZonePatched();let g=this;g._nesting=0,g._outer=g._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(g._inner=g._inner.fork(new Zone.TaskTrackingZoneSpec)),A&&Zone.longStackTraceZoneSpec&&(g._inner=g._inner.fork(Zone.longStackTraceZoneSpec)),g.shouldCoalesceEventChangeDetection=!o&&i,g.shouldCoalesceRunChangeDetection=o,g.callbackScheduled=!1,g.scheduleInRootZone=n,UN(g)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Hd)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new K(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new K(909,!1)}run(e,A,i){return this._inner.run(e,A,i)}runTask(e,A,i,o){let n=this._inner,g=n.scheduleEventTask("NgZoneEvent: "+o,e,_N,qs,qs);try{return n.runTask(g,A,i)}finally{n.cancelTask(g)}}runGuarded(e,A,i){return this._inner.runGuarded(e,A,i)}runOutsideAngular(e){return this._outer.run(e)}},_N={};function Td(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function KN(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function e(){pw(()=>{t.callbackScheduled=!1,yl(t),t.isCheckStableRunning=!0,Td(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{e()}):t._outer.run(()=>{e()}),yl(t)}function UN(t){let e=()=>{KN(t)},A=LN++;t._inner=t._inner.fork({name:"angular",properties:{[Hd]:!0,[jC]:A,[jC+A]:!0},onInvokeTask:(i,o,n,g,r,s)=>{if(xN(s))return i.invokeTask(n,g,r,s);try{return Jf(t),i.invokeTask(n,g,r,s)}finally{(t.shouldCoalesceEventChangeDetection&&g.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),Hf(t)}},onInvoke:(i,o,n,g,r,s,I)=>{try{return Jf(t),i.invoke(n,g,r,s,I)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!YN(s)&&e(),Hf(t)}},onHasTask:(i,o,n,g)=>{i.hasTask(n,g),o===n&&(g.change=="microTask"?(t._hasPendingMicrotasks=g.microTask,yl(t),Td(t)):g.change=="macroTask"&&(t.hasPendingMacrotasks=g.macroTask))},onHandleError:(i,o,n,g)=>(i.handleError(n,g),t.runOutsideAngular(()=>t.onError.emit(g)),!1)})}function yl(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function Jf(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Hf(t){t._nesting--,Td(t)}var XC=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new $;onMicrotaskEmpty=new $;onStable=new $;onError=new $;run(e,A,i){return e.apply(A,i)}runGuarded(e,A,i){return e.apply(A,i)}runOutsideAngular(e){return e()}runTask(e,A,i,o){return e.apply(A,i)}};function xN(t){return ww(t,"__ignore_ng_zone__")}function YN(t){return ww(t,"__scheduler_tick__")}function ww(t,e){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[e]===!0}function JN(t="zone.js",e){return t==="noop"?new XC:t==="zone.js"?new X(e):t}var pt=class{_console=console;handleError(e){this._console.error("ERROR",e)}},HN=new k("",{providedIn:"root",factory:()=>{let t=Q(X),e=Q(pt);return A=>t.runOutsideAngular(()=>e.handleError(A))}});function Tf(t,e){return Dp(t,e)}function TN(t){return Dp(mp,t)}var yw=(Tf.required=TN,Tf);function ON(){return ur(Xe(),FA())}function ur(t,e){return new q($i(t,e))}var q=(()=>{class t{nativeElement;constructor(A){this.nativeElement=A}static __NG_ELEMENT_ID__=ON}return t})();function Mw(t){return t instanceof q?t.nativeElement:t}function rn(t){return typeof t=="function"&&t[lt]!==void 0}function Ut(t,e){let A=vc(t,e?.equal),i=A[lt];return A.set=o=>bs(i,o),A.update=o=>Nc(i,o),A.asReadonly=PN.bind(A),A}function PN(){let t=this[lt];if(t.readonlyFn===void 0){let e=()=>this();e[lt]=t,t.readonlyFn=e}return t.readonlyFn}function Rw(t){return rn(t)&&typeof t.set=="function"}function ZN(){return this._results[Symbol.iterator]()}var ui=class{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new _}constructor(e=!1){this._emitDistinctChangesOnly=e}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,A){return this._results.reduce(e,A)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,A){this.dirty=!1;let i=bv(e);(this._changesDetected=!Fv(this._results,i,A))&&(this._results=i,this.length=i.length,this.last=i[this.length-1],this.first=i[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=ZN};function kw(t){return(t.flags&128)===128}var Fw=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}(Fw||{}),bw=new Map,qN=0;function VN(){return qN++}function WN(t){bw.set(t[hB],t)}function Ml(t){bw.delete(t[hB])}var Of="__ngContext__";function mr(t,e){en(e)?(t[Of]=e[hB],WN(e)):t[Of]=e}function Sw(t){return Nw(t[Ps])}function vw(t){return Nw(t[di])}function Nw(t){for(;t!==null&&!vo(t);)t=t[di];return t}var Rl;function Gw(t){Rl=t}function Lw(){if(Rl!==void 0)return Rl;if(typeof document<"u")return document;throw new K(210,!1)}var Dr=new k("",{providedIn:"root",factory:()=>zN}),zN="ng",Od=new k(""),jt=new k("",{providedIn:"platform",factory:()=>"unknown"});var $A=new k(""),nI=new k("",{providedIn:"root",factory:()=>Lw().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var jN="h",XN="b";var _w=!1,$N=new k("",{providedIn:"root",factory:()=>_w});var Pd=function(t){return t[t.CHANGE_DETECTION=0]="CHANGE_DETECTION",t[t.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",t}(Pd||{}),fr=new k(""),Pf=new Set;function Go(t){Pf.has(t)||(Pf.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}var Zd=(()=>{class t{view;node;constructor(A,i){this.view=A,this.node=i}static __NG_ELEMENT_ID__=AG}return t})();function AG(){return new Zd(FA(),Xe())}var tr=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(tr||{}),Kw=(()=>{class t{impl=null;execute(){this.impl?.execute()}static \u0275prov=v({token:t,providedIn:"root",factory:()=>new t})}return t})(),eG=[tr.EarlyRead,tr.Write,tr.MixedReadWrite,tr.Read],tG=(()=>{class t{ngZone=Q(X);scheduler=Q(Wn);errorHandler=Q(pt,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){Q(fr,{optional:!0})}execute(){let A=this.sequences.size>0;A&&Ee(16),this.executing=!0;for(let i of eG)for(let o of this.sequences)if(!(o.erroredOrDestroyed||!o.hooks[i]))try{o.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let n=o.hooks[i];return n(o.pipelinedValue)},o.snapshot))}catch(n){o.erroredOrDestroyed=!0,this.errorHandler?.handleError(n)}this.executing=!1;for(let i of this.sequences)i.afterRun(),i.once&&(this.sequences.delete(i),i.destroy());for(let i of this.deferredRegistrations)this.sequences.add(i);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),A&&Ee(17)}register(A){let{view:i}=A;i!==void 0?((i[or]??=[]).push(A),dr(i),i[GA]|=8192):this.executing?this.deferredRegistrations.add(A):this.addSequence(A)}addSequence(A){this.sequences.add(A),this.scheduler.notify(7)}unregister(A){this.executing&&this.sequences.has(A)?(A.erroredOrDestroyed=!0,A.pipelinedValue=void 0,A.once=!0):(this.sequences.delete(A),this.deferredRegistrations.delete(A))}maybeTrace(A,i){return i?i.run(Pd.AFTER_NEXT_RENDER,A):A()}static \u0275prov=v({token:t,providedIn:"root",factory:()=>new t})}return t})(),kl=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(e,A,i,o,n,g=null){this.impl=e,this.hooks=A,this.view=i,this.once=o,this.snapshot=g,this.unregisterOnDestroy=n?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let e=this.view?.[or];e&&(this.view[or]=e.filter(A=>A!==this))}};function gI(t,e){!e?.injector&&pd(gI);let A=e?.injector??Q(wA);return Go("NgAfterRender"),Uw(t,A,e,!1)}function be(t,e){!e?.injector&&pd(be);let A=e?.injector??Q(wA);return Go("NgAfterNextRender"),Uw(t,A,e,!0)}function iG(t,e){if(t instanceof Function){let A=[void 0,void 0,void 0,void 0];return A[e]=t,A}else return[t.earlyRead,t.write,t.mixedReadWrite,t.read]}function Uw(t,e,A,i){let o=e.get(Kw);o.impl??=e.get(tG);let n=e.get(fr,null,{optional:!0}),g=A?.phase??tr.MixedReadWrite,r=A?.manualCleanup!==!0?e.get(hr):null,s=e.get(Zd,null,{optional:!0}),I=new kl(o.impl,iG(t,g),s?.view,i,r,n?.snapshot(null));return o.impl.register(I),I}var oG=()=>null;function xw(t,e,A=!1){return oG(t,e,A)}function Yw(t,e){let A=t.contentQueries;if(A!==null){let i=PA(null);try{for(let o=0;o<A.length;o+=2){let n=A[o],g=A[o+1];if(g!==-1){let r=t.data[g];DB(n),r.contentQueries(2,e[g],g)}}}finally{PA(i)}}}function Fl(t,e,A){DB(0);let i=PA(null);try{e(t,A)}finally{PA(i)}}function qd(t,e,A){if(yd(e)){let i=PA(null);try{let o=e.directiveStart,n=e.directiveEnd;for(let g=o;g<n;g++){let r=t.data[g];if(r.contentQueries){let s=A[g];r.contentQueries(1,s,g)}}}finally{PA(i)}}}var zi=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}(zi||{}),RC;function nG(){if(RC===void 0&&(RC=null,Dt.trustedTypes))try{RC=Dt.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return RC}function wB(t){return nG()?.createHTML(t)||t}var kC;function gG(){if(kC===void 0&&(kC=null,Dt.trustedTypes))try{kC=Dt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return kC}function Zf(t){return gG()?.createHTML(t)||t}var bo=class{changingThisBreaksApplicationSecurity;constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${up})`}},bl=class extends bo{getTypeName(){return"HTML"}},Sl=class extends bo{getTypeName(){return"Style"}},vl=class extends bo{getTypeName(){return"Script"}},Nl=class extends bo{getTypeName(){return"URL"}},Gl=class extends bo{getTypeName(){return"ResourceURL"}};function mi(t){return t instanceof bo?t.changingThisBreaksApplicationSecurity:t}function sn(t,e){let A=rG(t);if(A!=null&&A!==e){if(A==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${A} (see ${up})`)}return A===e}function rG(t){return t instanceof bo&&t.getTypeName()||null}function Jw(t){return new bl(t)}function Hw(t){return new Sl(t)}function Tw(t){return new vl(t)}function Ow(t){return new Nl(t)}function Pw(t){return new Gl(t)}function sG(t){let e=new _l(t);return IG()?new Ll(e):e}var Ll=class{inertDocumentHelper;constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{let A=new window.DOMParser().parseFromString(wB(e),"text/html").body;return A===null?this.inertDocumentHelper.getInertBodyElement(e):(A.firstChild?.remove(),A)}catch{return null}}},_l=class{defaultDoc;inertDocument;constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(e){let A=this.inertDocument.createElement("template");return A.innerHTML=wB(e),A}};function IG(){try{return!!new window.DOMParser().parseFromString(wB(""),"text/html")}catch{return!1}}var aG=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function yB(t){return t=String(t),t.match(aG)?t:"unsafe:"+t}function Lo(t){let e={};for(let A of t.split(","))e[A]=!0;return e}function rI(...t){let e={};for(let A of t)for(let i in A)A.hasOwnProperty(i)&&(e[i]=!0);return e}var Zw=Lo("area,br,col,hr,img,wbr"),qw=Lo("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Vw=Lo("rp,rt"),CG=rI(Vw,qw),BG=rI(qw,Lo("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")),QG=rI(Vw,Lo("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")),qf=rI(Zw,BG,QG,CG),Ww=Lo("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),EG=Lo("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"),cG=Lo("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"),lG=rI(Ww,EG,cG),dG=Lo("script,style,template"),Kl=class{sanitizedSomething=!1;buf=[];sanitizeChildren(e){let A=e.firstChild,i=!0,o=[];for(;A;){if(A.nodeType===Node.ELEMENT_NODE?i=this.startElement(A):A.nodeType===Node.TEXT_NODE?this.chars(A.nodeValue):this.sanitizedSomething=!0,i&&A.firstChild){o.push(A),A=mG(A);continue}for(;A;){A.nodeType===Node.ELEMENT_NODE&&this.endElement(A);let n=uG(A);if(n){A=n;break}A=o.pop()}}return this.buf.join("")}startElement(e){let A=Vf(e).toLowerCase();if(!qf.hasOwnProperty(A))return this.sanitizedSomething=!0,!dG.hasOwnProperty(A);this.buf.push("<"),this.buf.push(A);let i=e.attributes;for(let o=0;o<i.length;o++){let n=i.item(o),g=n.name,r=g.toLowerCase();if(!lG.hasOwnProperty(r)){this.sanitizedSomething=!0;continue}let s=n.value;Ww[r]&&(s=yB(s)),this.buf.push(" ",g,'="',Wf(s),'"')}return this.buf.push(">"),!0}endElement(e){let A=Vf(e).toLowerCase();qf.hasOwnProperty(A)&&!Zw.hasOwnProperty(A)&&(this.buf.push("</"),this.buf.push(A),this.buf.push(">"))}chars(e){this.buf.push(Wf(e))}};function hG(t,e){return(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function uG(t){let e=t.nextSibling;if(e&&t!==e.previousSibling)throw zw(e);return e}function mG(t){let e=t.firstChild;if(e&&hG(t,e))throw zw(e);return e}function Vf(t){let e=t.nodeName;return typeof e=="string"?e:"FORM"}function zw(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var DG=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,fG=/([^\#-~ |!])/g;function Wf(t){return t.replace(/&/g,"&amp;").replace(DG,function(e){let A=e.charCodeAt(0),i=e.charCodeAt(1);return"&#"+((A-55296)*1024+(i-56320)+65536)+";"}).replace(fG,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}var FC;function Vd(t,e){let A=null;try{FC=FC||sG(t);let i=e?String(e):"";A=FC.getInertBodyElement(i);let o=5,n=i;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,i=n,n=A.innerHTML,A=FC.getInertBodyElement(i)}while(i!==n);let r=new Kl().sanitizeChildren(zf(A)||A);return wB(r)}finally{if(A){let i=zf(A)||A;for(;i.firstChild;)i.firstChild.remove()}}}function zf(t){return"content"in t&&pG(t)?t.content:null}function pG(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var Ve=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(Ve||{});function Wd(t){let e=jw();return e?Zf(e.sanitize(Ve.HTML,t)||""):sn(t,"HTML")?Zf(mi(t)):Vd(Lw(),Xs(t))}function tg(t){let e=jw();return e?e.sanitize(Ve.URL,t)||"":sn(t,"URL")?mi(t):yB(Xs(t))}function jw(){let t=FA();return t&&t[ko].sanitizer}var wG=/^>|^->|<!--|-->|--!>|<!-$/g,yG=/(<|>)/g,MG="\u200B$1\u200B";function RG(t){return t.replace(wG,e=>e.replace(yG,MG))}function Xw(t){return t instanceof Function?t():t}function kG(t,e,A){let i=t.length;for(;;){let o=t.indexOf(e,A);if(o===-1)return o;if(o===0||t.charCodeAt(o-1)<=32){let n=e.length;if(o+n===i||t.charCodeAt(o+n)<=32)return o}A=o+1}}var $w="ng-template";function FG(t,e,A,i){let o=0;if(i){for(;o<e.length&&typeof e[o]=="string";o+=2)if(e[o]==="class"&&kG(e[o+1].toLowerCase(),A,0)!==-1)return!0}else if(zd(t))return!1;if(o=e.indexOf(1,o),o>-1){let n;for(;++o<e.length&&typeof(n=e[o])=="string";)if(n.toLowerCase()===A)return!0}return!1}function zd(t){return t.type===4&&t.value!==$w}function bG(t,e,A){let i=t.type===4&&!A?$w:t.value;return e===i}function SG(t,e,A){let i=4,o=t.attrs,n=o!==null?GG(o):0,g=!1;for(let r=0;r<e.length;r++){let s=e[r];if(typeof s=="number"){if(!g&&!ci(i)&&!ci(s))return!1;if(g&&ci(s))continue;g=!1,i=s|i&1;continue}if(!g)if(i&4){if(i=2|i&1,s!==""&&!bG(t,s,A)||s===""&&e.length===1){if(ci(i))return!1;g=!0}}else if(i&8){if(o===null||!FG(t,o,s,A)){if(ci(i))return!1;g=!0}}else{let I=e[++r],B=vG(s,o,zd(t),A);if(B===-1){if(ci(i))return!1;g=!0;continue}if(I!==""){let c;if(B>n?c="":c=o[B+1].toLowerCase(),i&2&&I!==c){if(ci(i))return!1;g=!0}}}}return ci(i)||g}function ci(t){return(t&1)===0}function vG(t,e,A,i){if(e===null)return-1;let o=0;if(i||!A){let n=!1;for(;o<e.length;){let g=e[o];if(g===t)return o;if(g===3||g===6)n=!0;else if(g===1||g===2){let r=e[++o];for(;typeof r=="string";)r=e[++o];continue}else{if(g===4)break;if(g===0){o+=4;continue}}o+=n?1:2}return-1}else return LG(e,t)}function Ay(t,e,A=!1){for(let i=0;i<e.length;i++)if(SG(t,e[i],A))return!0;return!1}function NG(t){let e=t.attrs;if(e!=null){let A=e.indexOf(5);if((A&1)===0)return e[A+1]}return null}function GG(t){for(let e=0;e<t.length;e++){let A=t[e];if(Iw(A))return e}return t.length}function LG(t,e){let A=t.indexOf(4);if(A>-1)for(A++;A<t.length;){let i=t[A];if(typeof i=="number")return-1;if(i===e)return A;A++}return-1}function _G(t,e){A:for(let A=0;A<e.length;A++){let i=e[A];if(t.length===i.length){for(let o=0;o<t.length;o++)if(t[o]!==i[o])continue A;return!0}}return!1}function jf(t,e){return t?":not("+e.trim()+")":e}function KG(t){let e=t[0],A=1,i=2,o="",n=!1;for(;A<t.length;){let g=t[A];if(typeof g=="string")if(i&2){let r=t[++A];o+="["+g+(r.length>0?'="'+r+'"':"")+"]"}else i&8?o+="."+g:i&4&&(o+=" "+g);else o!==""&&!ci(g)&&(e+=jf(n,o),o=""),i=g,n=n||!ci(i);A++}return o!==""&&(e+=jf(n,o)),e}function UG(t){return t.map(KG).join(",")}function xG(t){let e=[],A=[],i=1,o=2;for(;i<t.length;){let n=t[i];if(typeof n=="string")o===2?n!==""&&e.push(n,t[++i]):o===8&&A.push(n);else{if(!ci(o))break;o=n}i++}return A.length&&e.push(1,...A),e}var Di={};function YG(t,e){return t.createText(e)}function JG(t,e,A){t.setValue(e,A)}function HG(t,e){return t.createComment(RG(e))}function ey(t,e,A){return t.createElement(e,A)}function $C(t,e,A,i,o){t.insertBefore(e,A,i,o)}function ty(t,e,A){t.appendChild(e,A)}function Xf(t,e,A,i,o){i!==null?$C(t,e,A,i,o):ty(t,e,A)}function TG(t,e,A){t.removeChild(null,e,A)}function OG(t,e,A){t.setAttribute(e,"style",A)}function PG(t,e,A){A===""?t.removeAttribute(e,"class"):t.setAttribute(e,"class",A)}function iy(t,e,A){let{mergedAttrs:i,classes:o,styles:n}=A;i!==null&&fN(t,e,i),o!==null&&PG(t,e,o),n!==null&&OG(t,e,n)}function jd(t,e,A,i,o,n,g,r,s,I,B){let c=Ye+i,D=c+o,h=ZG(c,D),p=typeof I=="function"?I():I;return h[xA]={type:t,blueprint:h,template:A,queries:null,viewQuery:r,declTNode:e,data:h.slice().fill(null,c),bindingStartIndex:c,expandoStartIndex:D,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof n=="function"?n():n,pipeRegistry:typeof g=="function"?g():g,firstChild:null,schemas:s,consts:p,incompleteFirstPass:!1,ssrId:B}}function ZG(t,e){let A=[];for(let i=0;i<e;i++)A.push(i<t?null:Di);return A}function qG(t){let e=t.tView;return e===null||e.incompleteFirstPass?t.tView=jd(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts,t.id):e}function Xd(t,e,A,i,o,n,g,r,s,I,B){let c=e.blueprint.slice();return c[Xi]=o,c[GA]=i|4|128|8|64|1024,(I!==null||t&&t[GA]&2048)&&(c[GA]|=2048),Wp(c),c[et]=c[cr]=t,c[xe]=A,c[ko]=g||t&&t[ko],c[fe]=r||t&&t[fe],c[Ir]=s||t&&t[Ir]||null,c[yt]=n,c[hB]=VN(),c[sr]=B,c[Hp]=I,c[Lt]=e.type==2?t[Lt]:c,c}function VG(t,e,A){let i=$i(e,t),o=qG(A),n=t[ko].rendererFactory,g=$d(t,Xd(t,o,null,oy(A),i,e,null,n.createRenderer(i,A),null,null,null));return t[e.index]=g}function oy(t){let e=16;return t.signals?e=4096:t.onPush&&(e=64),e}function ny(t,e,A,i){if(A===0)return-1;let o=e.length;for(let n=0;n<A;n++)e.push(i),t.blueprint.push(i),t.data.push(null);return o}function $d(t,e){return t[Ps]?t[Nf][di]=e:t[Ps]=e,t[Nf]=e,e}function f(t=1){gy(he(),FA(),gn()+t,!1)}function gy(t,e,A,i){if(!i)if((e[GA]&3)===3){let n=t.preOrderCheckHooks;n!==null&&NC(e,n,A)}else{let n=t.preOrderHooks;n!==null&&GC(e,n,0,A)}qn(A)}var MB=function(t){return t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",t}(MB||{});function Ul(t,e,A,i){let o=PA(null);try{let[n,g,r]=t.inputs[A],s=null;(g&MB.SignalBased)!==0&&(s=e[n][lt]),s!==null&&s.transformFn!==void 0?i=s.transformFn(i):r!==null&&(i=r.call(e,i)),t.setInput!==null?t.setInput(e,s,i,A,n):Tp(e,s,n,i)}finally{PA(o)}}function ry(t,e,A,i,o){let n=gn(),g=i&2;try{qn(-1),g&&e.length>Ye&&gy(t,e,Ye,!1),Ee(g?2:0,o),A(i,o)}finally{qn(n),Ee(g?3:1,o)}}function RB(t,e,A){AL(t,e,A),(A.flags&64)===64&&eL(t,e,A)}function Ah(t,e,A=$i){let i=e.localNames;if(i!==null){let o=e.index+1;for(let n=0;n<i.length;n+=2){let g=i[n+1],r=g===-1?A(e,t):t[g];t[o++]=r}}}function WG(t,e,A,i){let n=i.get($N,_w)||A===zi.ShadowDom,g=t.selectRootElement(e,n);return zG(g),g}function zG(t){jG(t)}var jG=()=>null;function XG(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function kB(t,e,A,i,o,n,g,r){if(!r&&th(e,t,A,i,o)){lr(e)&&$G(A,e.index);return}if(e.type&3){let s=$i(e,A);i=XG(i),o=g!=null?g(o,e.value||"",i):o,n.setProperty(s,i,o)}else e.type&12}function $G(t,e){let A=Wi(e,t);A[GA]&16||(A[GA]|=64)}function AL(t,e,A){let i=A.directiveStart,o=A.directiveEnd;lr(A)&&VG(e,A,t.data[i+A.componentOffset]),t.firstCreatePass||WC(A,e);let n=A.initialInputs;for(let g=i;g<o;g++){let r=t.data[g],s=Zs(e,t,g,A);if(mr(s,e),n!==null&&nL(e,g-i,s,r,A,n),hi(r)){let I=Wi(A.index,e);I[xe]=Zs(e,t,g,A)}}}function eL(t,e,A){let i=A.directiveStart,o=A.directiveEnd,n=A.index,g=QN();try{qn(n);for(let r=i;r<o;r++){let s=t.data[r],I=e[r];ml(r),(s.hostBindings!==null||s.hostVars!==0||s.hostAttrs!==null)&&tL(s,I)}}finally{qn(-1),ml(g)}}function tL(t,e){t.hostBindings!==null&&t.hostBindings(1,e)}function eh(t,e){let A=t.directiveRegistry,i=null;if(A)for(let o=0;o<A.length;o++){let n=A[o];Ay(e,n.selectors,!1)&&(i??=[],hi(n)?i.unshift(n):i.push(n))}return i}function iL(t,e,A,i,o,n){let g=$i(t,e);oL(e[fe],g,n,t.value,A,i,o)}function oL(t,e,A,i,o,n,g){if(n==null)t.removeAttribute(e,o,A);else{let r=g==null?Xs(n):g(n,i||"",o);t.setAttribute(e,o,r,A)}}function nL(t,e,A,i,o,n){let g=n[e];if(g!==null)for(let r=0;r<g.length;r+=2){let s=g[r],I=g[r+1];Ul(i,A,s,I)}}function sy(t,e,A){return(t===null||hi(t))&&(A=jv(A[e.index])),A[fe]}function gL(t,e){let A=t[Ir],i=A?A.get(pt,null):null;i&&i.handleError(e)}function th(t,e,A,i,o){let n=t.inputs?.[i],g=t.hostDirectiveInputs?.[i],r=!1;if(g)for(let s=0;s<g.length;s+=2){let I=g[s],B=g[s+1],c=e.data[I];Ul(c,A[I],B,o),r=!0}if(n)for(let s of n){let I=A[s],B=e.data[s];Ul(B,I,i,o),r=!0}return r}function rL(t,e){let A=Wi(e,t),i=A[xA];sL(i,A);let o=A[Xi];o!==null&&A[sr]===null&&(A[sr]=xw(o,A[Ir])),Ee(18),ih(i,A,A[xe]),Ee(19,A[xe])}function sL(t,e){for(let A=e.length;A<t.blueprint.length;A++)e.push(t.blueprint[A])}function ih(t,e,A){_d(e);try{let i=t.viewQuery;i!==null&&Fl(1,i,A);let o=t.template;o!==null&&ry(t,e,o,1,A),t.firstCreatePass&&(t.firstCreatePass=!1),e[Fo]?.finishViewCreation(t),t.staticContentQueries&&Yw(t,e),t.staticViewQueries&&Fl(2,t.viewQuery,A);let n=t.components;n!==null&&IL(e,n)}catch(i){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),i}finally{e[GA]&=-5,Kd()}}function IL(t,e){for(let A=0;A<e.length;A++)rL(t,e[A])}function sI(t,e,A,i){let o=PA(null);try{let n=e.tView,r=t[GA]&4096?4096:16,s=Xd(t,n,A,r,null,e,null,null,i?.injector??null,i?.embeddedViewInjector??null,i?.dehydratedView??null),I=t[e.index];s[Tn]=I;let B=t[Fo];return B!==null&&(s[Fo]=B.createEmbeddedView(n)),ih(n,s,A),s}finally{PA(o)}}function Br(t,e){return!e||e.firstChild===null||kw(t)}var aL;function oh(t,e){return aL(t,e)}var ji=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(ji||{});function nh(t){return(t.flags&32)===32}function ir(t,e,A,i,o){if(i!=null){let n,g=!1;vo(i)?n=i:en(i)&&(g=!0,i=i[Xi]);let r=Vi(i);t===0&&A!==null?o==null?ty(e,A,r):$C(e,A,r,o||null,!0):t===1&&A!==null?$C(e,A,r,o||null,!0):t===2?TG(e,r,g):t===3&&e.destroyNode(r),n!=null&&mL(e,t,n,A,o)}}function CL(t,e){Iy(t,e),e[Xi]=null,e[yt]=null}function BL(t,e,A,i,o,n){i[Xi]=o,i[yt]=e,SB(t,i,A,1,o,n)}function Iy(t,e){e[ko].changeDetectionScheduler?.notify(9),SB(t,e,e[fe],2,null,null)}function QL(t){let e=t[Ps];if(!e)return el(t[xA],t);for(;e;){let A=null;if(en(e))A=e[Ps];else{let i=e[At];i&&(A=i)}if(!A){for(;e&&!e[di]&&e!==t;)en(e)&&el(e[xA],e),e=e[et];e===null&&(e=t),en(e)&&el(e[xA],e),A=e&&e[di]}e=A}}function gh(t,e){let A=t[ar],i=A.indexOf(e);A.splice(i,1)}function FB(t,e){if(tI(e))return;let A=e[fe];A.destroyNode&&SB(t,e,A,3,null,null),QL(e)}function el(t,e){if(tI(e))return;let A=PA(null);try{e[GA]&=-129,e[GA]|=256,e[zt]&&Fs(e[zt]),cL(t,e),EL(t,e),e[xA].type===1&&e[fe].destroy();let i=e[Tn];if(i!==null&&vo(e[et])){i!==e[et]&&gh(i,e);let o=e[Fo];o!==null&&o.detachView(t)}Ml(e)}finally{PA(A)}}function EL(t,e){let A=t.cleanup,i=e[HC];if(A!==null)for(let g=0;g<A.length-1;g+=2)if(typeof A[g]=="string"){let r=A[g+3];r>=0?i[r]():i[-r].unsubscribe(),g+=2}else{let r=i[A[g+1]];A[g].call(r)}i!==null&&(e[HC]=null);let o=e[An];if(o!==null){e[An]=null;for(let g=0;g<o.length;g++){let r=o[g];r()}}let n=e[On];if(n!==null){e[On]=null;for(let g of n)g.destroy()}}function cL(t,e){let A;if(t!=null&&(A=t.destroyHooks)!=null)for(let i=0;i<A.length;i+=2){let o=e[A[i]];if(!(o instanceof Vn)){let n=A[i+1];if(Array.isArray(n))for(let g=0;g<n.length;g+=2){let r=o[n[g]],s=n[g+1];Ee(4,r,s);try{s.call(r)}finally{Ee(5,r,s)}}else{Ee(4,o,n);try{n.call(o)}finally{Ee(5,o,n)}}}}}function ay(t,e,A){return lL(t,e.parent,A)}function lL(t,e,A){let i=e;for(;i!==null&&i.type&168;)e=i,i=e.parent;if(i===null)return A[Xi];if(lr(i)){let{encapsulation:o}=t.data[i.directiveStart+i.componentOffset];if(o===zi.None||o===zi.Emulated)return null}return $i(i,A)}function Cy(t,e,A){return hL(t,e,A)}function dL(t,e,A){return t.type&40?$i(t,A):null}var hL=dL,$f;function bB(t,e,A,i){let o=ay(t,i,e),n=e[fe],g=i.parent||e[yt],r=Cy(g,i,e);if(o!=null)if(Array.isArray(A))for(let s=0;s<A.length;s++)Xf(n,o,A[s],r,!1);else Xf(n,o,A,r,!1);$f!==void 0&&$f(n,i,e,A,o)}function Js(t,e){if(e!==null){let A=e.type;if(A&3)return $i(e,t);if(A&4)return xl(-1,t[e.index]);if(A&8){let i=e.child;if(i!==null)return Js(t,i);{let o=t[e.index];return vo(o)?xl(-1,o):Vi(o)}}else{if(A&128)return Js(t,e.next);if(A&32)return oh(e,t)()||Vi(t[e.index]);{let i=By(t,e);if(i!==null){if(Array.isArray(i))return i[0];let o=Zn(t[Lt]);return Js(o,i)}else return Js(t,e.next)}}}return null}function By(t,e){if(e!==null){let i=t[Lt][yt],o=e.projection;return i.projection[o]}return null}function xl(t,e){let A=At+t+1;if(A<e.length){let i=e[A],o=i[xA].firstChild;if(o!==null)return Js(i,o)}return e[Pn]}function rh(t,e,A,i,o,n,g){for(;A!=null;){if(A.type===128){A=A.next;continue}let r=i[A.index],s=A.type;if(g&&e===0&&(r&&mr(Vi(r),i),A.flags|=2),!nh(A))if(s&8)rh(t,e,A.child,i,o,n,!1),ir(e,t,o,r,n);else if(s&32){let I=oh(A,i),B;for(;B=I();)ir(e,t,o,B,n);ir(e,t,o,r,n)}else s&16?Qy(t,e,i,A,o,n):ir(e,t,o,r,n);A=g?A.projectionNext:A.next}}function SB(t,e,A,i,o,n){rh(A,i,t.firstChild,e,o,n,!1)}function uL(t,e,A){let i=e[fe],o=ay(t,A,e),n=A.parent||e[yt],g=Cy(n,A,e);Qy(i,0,e,A,o,g)}function Qy(t,e,A,i,o,n){let g=A[Lt],s=g[yt].projection[i.projection];if(Array.isArray(s))for(let I=0;I<s.length;I++){let B=s[I];ir(e,t,o,B,n)}else{let I=s,B=g[et];kw(i)&&(I.flags|=128),rh(t,e,I,B,o,n,!0)}}function mL(t,e,A,i,o){let n=A[Pn],g=Vi(A);n!==g&&ir(e,t,i,n,o);for(let r=At;r<A.length;r++){let s=A[r];SB(s[xA],s,t,e,i,n)}}function DL(t,e,A,i,o){if(e)o?t.addClass(A,i):t.removeClass(A,i);else{let n=i.indexOf("-")===-1?void 0:ji.DashCase;o==null?t.removeStyle(A,i,n):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),n|=ji.Important),t.setStyle(A,i,o,n))}}function AB(t,e,A,i,o=!1){for(;A!==null;){if(A.type===128){A=o?A.projectionNext:A.next;continue}let n=e[A.index];n!==null&&i.push(Vi(n)),vo(n)&&fL(n,i);let g=A.type;if(g&8)AB(t,e,A.child,i);else if(g&32){let r=oh(A,e),s;for(;s=r();)i.push(s)}else if(g&16){let r=By(e,A);if(Array.isArray(r))i.push(...r);else{let s=Zn(e[Lt]);AB(s[xA],s,r,i,!0)}}A=o?A.projectionNext:A.next}return i}function fL(t,e){for(let A=At;A<t.length;A++){let i=t[A],o=i[xA].firstChild;o!==null&&AB(i[xA],i,o,e)}t[Pn]!==t[Xi]&&e.push(t[Pn])}function Ey(t){if(t[or]!==null){for(let e of t[or])e.impl.addSequence(e);t[or].length=0}}var cy=[];function pL(t){return t[zt]??wL(t)}function wL(t){let e=cy.pop()??Object.create(ML);return e.lView=t,e}function yL(t){t.lView[zt]!==t&&(t.lView=null,cy.push(t))}var ML=hA(R({},Hg),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{dr(t.lView)},consumerOnSignalRead(){this.lView[zt]=this}});function RL(t){let e=t[zt]??Object.create(kL);return e.lView=t,e}var kL=hA(R({},Hg),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{let e=Zn(t.lView);for(;e&&!ly(e[xA]);)e=Zn(e);e&&zp(e)},consumerOnSignalRead(){this.lView[zt]=this}});function ly(t){return t.type!==2}function dy(t){if(t[On]===null)return;let e=!0;for(;e;){let A=!1;for(let i of t[On])i.dirty&&(A=!0,i.zone===null||Zone.current===i.zone?i.run():i.zone.run(()=>i.run()));e=A&&!!(t[GA]&8192)}}var FL=100;function hy(t,e=!0,A=0){let o=t[ko].rendererFactory,n=!1;n||o.begin?.();try{bL(t,A)}catch(g){throw e&&gL(t,g),g}finally{n||o.end?.()}}function bL(t,e){let A=Aw();try{PC(!0),Yl(t,e);let i=0;for(;mB(t);){if(i===FL)throw new K(103,!1);i++,Yl(t,1)}}finally{PC(A)}}function SL(t,e,A,i){if(tI(e))return;let o=e[GA],n=!1,g=!1;_d(e);let r=!0,s=null,I=null;n||(ly(t)?(I=pL(e),s=ks(I)):Rc()===null?(r=!1,I=RL(e),s=ks(I)):e[zt]&&(Fs(e[zt]),e[zt]=null));try{Wp(e),aN(t.bindingStartIndex),A!==null&&ry(t,e,A,2,i);let B=(o&3)===3;if(!n)if(B){let h=t.preOrderCheckHooks;h!==null&&NC(e,h,null)}else{let h=t.preOrderHooks;h!==null&&GC(e,h,0,null),$c(e,0)}if(g||vL(e),dy(e),uy(e,0),t.contentQueries!==null&&Yw(t,e),!n)if(B){let h=t.contentCheckHooks;h!==null&&NC(e,h)}else{let h=t.contentHooks;h!==null&&GC(e,h,1),$c(e,1)}GL(t,e);let c=t.components;c!==null&&Dy(e,c,0);let D=t.viewQuery;if(D!==null&&Fl(2,D,i),!n)if(B){let h=t.viewCheckHooks;h!==null&&NC(e,h)}else{let h=t.viewHooks;h!==null&&GC(e,h,2),$c(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[Xc]){for(let h of e[Xc])h();e[Xc]=null}n||(Ey(e),e[GA]&=-73)}catch(B){throw n||dr(e),B}finally{I!==null&&(Va(I,s),r&&yL(I)),Kd()}}function uy(t,e){for(let A=Sw(t);A!==null;A=vw(A))for(let i=At;i<A.length;i++){let o=A[i];my(o,e)}}function vL(t){for(let e=Sw(t);e!==null;e=vw(e)){if(!(e[GA]&2))continue;let A=e[ar];for(let i=0;i<A.length;i++){let o=A[i];zp(o)}}}function NL(t,e,A){Ee(18);let i=Wi(e,t);my(i,A),Ee(19,i[xe])}function my(t,e){kd(t)&&Yl(t,e)}function Yl(t,e){let i=t[xA],o=t[GA],n=t[zt],g=!!(e===0&&o&16);if(g||=!!(o&64&&e===0),g||=!!(o&1024),g||=!!(n?.dirty&&Wa(n)),g||=!1,n&&(n.dirty=!1),t[GA]&=-9217,g)SL(i,t,i.template,t[xe]);else if(o&8192){dy(t),uy(t,1);let r=i.components;r!==null&&Dy(t,r,1),Ey(t)}}function Dy(t,e,A){for(let i=0;i<e.length;i++)NL(t,e[i],A)}function GL(t,e){let A=t.hostBindingOpCodes;if(A!==null)try{for(let i=0;i<A.length;i++){let o=A[i];if(o<0)qn(~o);else{let n=o,g=A[++i],r=A[++i];BN(g,n);let s=e[n];Ee(24,s),r(2,s),Ee(25,s)}}}finally{qn(-1)}}function sh(t,e){let A=Aw()?64:1088;for(t[ko].changeDetectionScheduler?.notify(e);t;){t[GA]|=A;let i=Zn(t);if(OC(t)&&!i)return t;t=i}return null}function fy(t,e,A,i){return[t,!0,0,e,null,i,null,A,null,null]}function py(t,e){let A=At+e;if(A<t.length)return t[A]}function II(t,e,A,i=!0){let o=e[xA];if(LL(o,e,t,A),i){let g=xl(A,t),r=e[fe],s=r.parentNode(t[Pn]);s!==null&&BL(o,t[yt],r,e,s,g)}let n=e[sr];n!==null&&n.firstChild!==null&&(n.firstChild=null)}function wy(t,e){let A=Vs(t,e);return A!==void 0&&FB(A[xA],A),A}function Vs(t,e){if(t.length<=At)return;let A=At+e,i=t[A];if(i){let o=i[Tn];o!==null&&o!==t&&gh(o,i),e>0&&(t[A-1][di]=i[di]);let n=YC(t,At+e);CL(i[xA],i);let g=n[Fo];g!==null&&g.detachView(n[xA]),i[et]=null,i[di]=null,i[GA]&=-129}return i}function LL(t,e,A,i){let o=At+i,n=A.length;i>0&&(A[o-1][di]=e),i<n-At?(e[di]=A[o],vp(A,At+i,e)):(A.push(e),e[di]=null),e[et]=A;let g=e[Tn];g!==null&&A!==g&&yy(g,e);let r=e[Fo];r!==null&&r.insertView(t),hl(e),e[GA]|=128}function yy(t,e){let A=t[ar],i=e[et];if(en(i))t[GA]|=2;else{let o=i[et][Lt];e[Lt]!==o&&(t[GA]|=2)}A===null?t[ar]=[e]:A.push(e)}var Ws=class{_lView;_cdRefInjectingView;notifyErrorHandler;_appRef=null;_attachedToViewContainer=!1;get rootNodes(){let e=this._lView,A=e[xA];return AB(A,e,A.firstChild,[])}constructor(e,A,i=!0){this._lView=e,this._cdRefInjectingView=A,this.notifyErrorHandler=i}get context(){return this._lView[xe]}set context(e){this._lView[xe]=e}get destroyed(){return tI(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let e=this._lView[et];if(vo(e)){let A=e[TC],i=A?A.indexOf(this):-1;i>-1&&(Vs(e,i),YC(A,i))}this._attachedToViewContainer=!1}FB(this._lView[xA],this._lView)}onDestroy(e){jp(this._lView,e)}markForCheck(){sh(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[GA]&=-129}reattach(){hl(this._lView),this._lView[GA]|=128}detectChanges(){this._lView[GA]|=1024,hy(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new K(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=OC(this._lView),A=this._lView[Tn];A!==null&&!e&&gh(A,this._lView),Iy(this._lView[xA],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new K(902,!1);this._appRef=e;let A=OC(this._lView),i=this._lView[Tn];i!==null&&!A&&yy(i,this._lView),hl(this._lView)}};var ge=(()=>{class t{static __NG_ELEMENT_ID__=UL}return t})(),_L=ge,KL=class extends _L{_declarationLView;_declarationTContainer;elementRef;constructor(e,A,i){super(),this._declarationLView=e,this._declarationTContainer=A,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,A){return this.createEmbeddedViewImpl(e,A)}createEmbeddedViewImpl(e,A,i){let o=sI(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:A,dehydratedView:i});return new Ws(o)}};function UL(){return vB(Xe(),FA())}function vB(t,e){return t.type&4?new KL(e,t,ur(t,e)):null}function aI(t,e,A,i,o){let n=t.data[e];if(n===null)n=xL(t,e,A,i,o),CN()&&(n.flags|=32);else if(n.type&64){n.type=A,n.value=i,n.attrs=o;let g=sN();n.injectorIndex=g===null?-1:g.injectorIndex}return Ag(n,!0),n}function xL(t,e,A,i,o){let n=$p(),g=vd(),r=g?n:n&&n.parent,s=t.data[e]=JL(t,r,A,e,i,o);return YL(t,s,n,g),s}function YL(t,e,A,i){t.firstChild===null&&(t.firstChild=e),A!==null&&(i?A.child==null&&e.parent!==null&&(A.child=e):A.next===null&&(A.next=e,e.prev=A))}function JL(t,e,A,i,o,n){let g=e?e.injectorIndex:-1,r=0;return Xp()&&(r|=128),{type:A,index:i,insertBeforeIndex:null,injectorIndex:g,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:r,providerIndexes:0,value:o,attrs:n,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}var iX=new RegExp(`^(\\d+)*(${XN}|${jN})*(.*)`);var HL=()=>null;function Qr(t,e){return HL(t,e)}var TL=class{},My=class{},Jl=class{resolveComponentFactory(e){throw Error(`No component factory found for ${mt(e)}.`)}},NB=class{static NULL=new Jl},tt=class{},Me=(()=>{class t{destroyNode=null;static __NG_ELEMENT_ID__=()=>OL()}return t})();function OL(){let t=FA(),e=Xe(),A=Wi(e.index,t);return(en(A)?A:t)[fe]}var PL=(()=>{class t{static \u0275prov=v({token:t,providedIn:"root",factory:()=>null})}return t})();var tl={},Hl=class{injector;parentInjector;constructor(e,A){this.injector=e,this.parentInjector=A}get(e,A,i){i=EB(i);let o=this.injector.get(e,tl,i);return o!==tl||A===tl?o:this.parentInjector.get(e,A,i)}};function Tl(t,e,A){let i=A?t.styles:null,o=A?t.classes:null,n=0;if(e!==null)for(let g=0;g<e.length;g++){let r=e[g];if(typeof r=="number")n=r;else if(n==1)o=al(o,r);else if(n==2){let s=r,I=e[++g];i=al(i,s+": "+I+";")}}A?t.styles=i:t.stylesWithoutHost=i,A?t.classes=o:t.classesWithoutHost=o}function AA(t,e=qA.Default){let A=FA();if(A===null)return O(t,e);let i=Xe();return lw(i,A,je(t),e)}function Ry(){let t="invalid";throw new Error(t)}function Ih(t,e,A,i,o){let n=i===null?null:{"":-1},g=o(t,A);if(g!==null){let r,s=null,I=null,B=qL(g);B===null?r=g:[r,s,I]=B,zL(t,e,A,r,n,s,I)}n!==null&&i!==null&&ZL(A,i,n)}function ZL(t,e,A){let i=t.localNames=[];for(let o=0;o<e.length;o+=2){let n=A[e[o+1]];if(n==null)throw new K(-301,!1);i.push(e[o],n)}}function qL(t){let e=null,A=!1;for(let g=0;g<t.length;g++){let r=t[g];if(g===0&&hi(r)&&(e=r),r.findHostDirectiveDefs!==null){A=!0;break}}if(!A)return null;let i=null,o=null,n=null;for(let g of t)g.findHostDirectiveDefs!==null&&(i??=[],o??=new Map,n??=new Map,VL(g,i,n,o)),g===e&&(i??=[],i.push(g));return i!==null?(i.push(...e===null?t:t.slice(1)),[i,o,n]):null}function VL(t,e,A,i){let o=e.length;t.findHostDirectiveDefs(t,e,i),A.set(t,[o,e.length-1])}function WL(t,e,A){e.componentOffset=A,(t.components??=[]).push(e.index)}function zL(t,e,A,i,o,n,g){let r=i.length,s=!1;for(let D=0;D<r;D++){let h=i[D];!s&&hi(h)&&(s=!0,WL(t,A,D)),fl(WC(A,e),t,h.type)}t_(A,t.data.length,r);for(let D=0;D<r;D++){let h=i[D];h.providersResolver&&h.providersResolver(h)}let I=!1,B=!1,c=ny(t,e,r,null);r>0&&(A.directiveToIndex=new Map);for(let D=0;D<r;D++){let h=i[D];if(A.mergedAttrs=Cr(A.mergedAttrs,h.hostAttrs),XL(t,A,e,c,h),e_(c,h,o),g!==null&&g.has(h)){let[y,L]=g.get(h);A.directiveToIndex.set(h.type,[c,y+A.directiveStart,L+A.directiveStart])}else(n===null||!n.has(h))&&A.directiveToIndex.set(h.type,c);h.contentQueries!==null&&(A.flags|=4),(h.hostBindings!==null||h.hostAttrs!==null||h.hostVars!==0)&&(A.flags|=64);let p=h.type.prototype;!I&&(p.ngOnChanges||p.ngOnInit||p.ngDoCheck)&&((t.preOrderHooks??=[]).push(A.index),I=!0),!B&&(p.ngOnChanges||p.ngDoCheck)&&((t.preOrderCheckHooks??=[]).push(A.index),B=!0),c++}jL(t,A,n)}function jL(t,e,A){for(let i=e.directiveStart;i<e.directiveEnd;i++){let o=t.data[i];if(A===null||!A.has(o))Ap(0,e,o,i),Ap(1,e,o,i),tp(e,i,!1);else{let n=A.get(o);ep(0,e,n,i),ep(1,e,n,i),tp(e,i,!0)}}}function Ap(t,e,A,i){let o=t===0?A.inputs:A.outputs;for(let n in o)if(o.hasOwnProperty(n)){let g;t===0?g=e.inputs??={}:g=e.outputs??={},g[n]??=[],g[n].push(i),ky(e,n)}}function ep(t,e,A,i){let o=t===0?A.inputs:A.outputs;for(let n in o)if(o.hasOwnProperty(n)){let g=o[n],r;t===0?r=e.hostDirectiveInputs??={}:r=e.hostDirectiveOutputs??={},r[g]??=[],r[g].push(i,n),ky(e,g)}}function ky(t,e){e==="class"?t.flags|=8:e==="style"&&(t.flags|=16)}function tp(t,e,A){let{attrs:i,inputs:o,hostDirectiveInputs:n}=t;if(i===null||!A&&o===null||A&&n===null||zd(t)){t.initialInputs??=[],t.initialInputs.push(null);return}let g=null,r=0;for(;r<i.length;){let s=i[r];if(s===0){r+=4;continue}else if(s===5){r+=2;continue}else if(typeof s=="number")break;if(!A&&o.hasOwnProperty(s)){let I=o[s];for(let B of I)if(B===e){g??=[],g.push(s,i[r+1]);break}}else if(A&&n.hasOwnProperty(s)){let I=n[s];for(let B=0;B<I.length;B+=2)if(I[B]===e){g??=[],g.push(I[B+1],i[r+1]);break}}r+=2}t.initialInputs??=[],t.initialInputs.push(g)}function XL(t,e,A,i,o){t.data[i]=o;let n=o.factory||(o.factory=Hn(o.type,!0)),g=new Vn(n,hi(o),AA);t.blueprint[i]=g,A[i]=g,$L(t,e,i,ny(t,A,o.hostVars,Di),o)}function $L(t,e,A,i,o){let n=o.hostBindings;if(n){let g=t.hostBindingOpCodes;g===null&&(g=t.hostBindingOpCodes=[]);let r=~e.index;A_(g)!=r&&g.push(r),g.push(A,i,n)}}function A_(t){let e=t.length;for(;e>0;){let A=t[--e];if(typeof A=="number"&&A<0)return A}return 0}function e_(t,e,A){if(A){if(e.exportAs)for(let i=0;i<e.exportAs.length;i++)A[e.exportAs[i]]=t;hi(e)&&(A[""]=t)}}function t_(t,e,A){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+A,t.providerIndexes=e}function Fy(t,e,A,i,o,n,g,r){let s=e.consts,I=on(s,g),B=aI(e,t,2,i,I);return n&&Ih(e,A,B,on(s,r),o),B.mergedAttrs=Cr(B.mergedAttrs,B.attrs),B.attrs!==null&&Tl(B,B.attrs,!1),B.mergedAttrs!==null&&Tl(B,B.mergedAttrs,!0),e.queries!==null&&e.queries.elementStart(e,B),B}function by(t,e){Ud(t,e),yd(e)&&t.queries.elementEnd(e)}var eB=class extends NB{ngModule;constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){let A=tn(e);return new zn(A,this.ngModule)}};function i_(t){return Object.keys(t).map(e=>{let[A,i,o]=t[e],n={propName:A,templateName:e,isSignal:(i&MB.SignalBased)!==0};return o&&(n.transform=o),n})}function o_(t){return Object.keys(t).map(e=>({propName:t[e],templateName:e}))}function n_(t,e,A){let i=e instanceof _e?e:e?.injector;return i&&t.getStandaloneInjector!==null&&(i=t.getStandaloneInjector(i)||i),i?new Hl(A,i):A}function g_(t){let e=t.get(tt,null);if(e===null)throw new K(407,!1);let A=t.get(PL,null),i=t.get(Wn,null);return{rendererFactory:e,sanitizer:A,changeDetectionScheduler:i}}function r_(t,e){let A=(t.selectors[0][0]||"div").toLowerCase();return ey(e,A,A==="svg"?qp:A==="math"?zv:null)}var zn=class extends My{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=i_(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=o_(this.componentDef.outputs),this.cachedOutputs}constructor(e,A){super(),this.componentDef=e,this.ngModule=A,this.componentType=e.type,this.selector=UG(e.selectors),this.ngContentSelectors=e.ngContentSelectors??[],this.isBoundToModule=!!A}create(e,A,i,o){Ee(22);let n=PA(null);try{let g=this.componentDef,r=i?["ng-version","19.2.8"]:xG(this.componentDef.selectors[0]),s=jd(0,null,null,1,0,null,null,null,null,[r],null),I=n_(g,o||this.ngModule,e),B=g_(I),c=B.rendererFactory.createRenderer(null,g),D=i?WG(c,i,g.encapsulation,I):r_(g,c),h=Xd(null,s,null,512|oy(g),null,null,B,c,I,null,xw(D,I,!0));h[Ye]=D,_d(h);let p=null;try{let y=Fy(Ye,s,h,"#host",()=>[this.componentDef],!0,0);D&&(iy(c,D,y),mr(D,h)),RB(s,h,y),qd(s,y,h),by(s,y),A!==void 0&&s_(y,this.ngContentSelectors,A),p=Wi(y.index,h),h[xe]=p[xe],ih(s,h,null)}catch(y){throw p!==null&&Ml(p),Ml(h),y}finally{Ee(23),Kd()}return new Ol(this.componentType,h)}finally{PA(n)}}},Ol=class extends TL{_rootLView;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(e,A){super(),this._rootLView=A,this._tNode=Md(A[xA],Ye),this.location=ur(this._tNode,A),this.instance=Wi(this._tNode.index,A)[xe],this.hostView=this.changeDetectorRef=new Ws(A,void 0,!1),this.componentType=e}setInput(e,A){let i=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(e)&&Object.is(this.previousInputValues.get(e),A))return;let o=this._rootLView,n=th(i,o[xA],o,e,A);this.previousInputValues.set(e,A);let g=Wi(i.index,o);sh(g,1)}get injector(){return new Jn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}};function s_(t,e,A){let i=t.projection=[];for(let o=0;o<e.length;o++){let n=A[o];i.push(n!=null&&n.length?Array.from(n):null)}}var Ce=(()=>{class t{static __NG_ELEMENT_ID__=I_}return t})();function I_(){let t=Xe();return vy(t,FA())}var a_=Ce,Sy=class extends a_{_lContainer;_hostTNode;_hostLView;constructor(e,A,i){super(),this._lContainer=e,this._hostTNode=A,this._hostLView=i}get element(){return ur(this._hostTNode,this._hostLView)}get injector(){return new Jn(this._hostTNode,this._hostLView)}get parentInjector(){let e=xd(this._hostTNode,this._hostLView);if(aw(e)){let A=qC(e,this._hostLView),i=ZC(e),o=A[xA].data[i+8];return new Jn(o,A)}else return new Jn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let A=ip(this._lContainer);return A!==null&&A[e]||null}get length(){return this._lContainer.length-At}createEmbeddedView(e,A,i){let o,n;typeof i=="number"?o=i:i!=null&&(o=i.index,n=i.injector);let g=Qr(this._lContainer,e.ssrId),r=e.createEmbeddedViewImpl(A||{},n,g);return this.insertImpl(r,o,Br(this._hostTNode,g)),r}createComponent(e,A,i,o,n){let g=e&&!Zv(e),r;if(g)r=A;else{let p=A||{};r=p.index,i=p.injector,o=p.projectableNodes,n=p.environmentInjector||p.ngModuleRef}let s=g?e:new zn(tn(e)),I=i||this.parentInjector;if(!n&&s.ngModule==null){let y=(g?I:this.parentInjector).get(_e,null);y&&(n=y)}let B=tn(s.componentType??{}),c=Qr(this._lContainer,B?.id??null),D=c?.firstChild??null,h=s.create(I,o,D,n);return this.insertImpl(h.hostView,r,Br(this._hostTNode,c)),h}insert(e,A){return this.insertImpl(e,A,!0)}insertImpl(e,A,i){let o=e._lView;if($v(o)){let r=this.indexOf(e);if(r!==-1)this.detach(r);else{let s=o[et],I=new Sy(s,s[yt],s[et]);I.detach(I.indexOf(e))}}let n=this._adjustIndex(A),g=this._lContainer;return II(g,o,n,i),e.attachToViewContainerRef(),vp(il(g),n,e),e}move(e,A){return this.insert(e,A)}indexOf(e){let A=ip(this._lContainer);return A!==null?A.indexOf(e):-1}remove(e){let A=this._adjustIndex(e,-1),i=Vs(this._lContainer,A);i&&(YC(il(this._lContainer),A),FB(i[xA],i))}detach(e){let A=this._adjustIndex(e,-1),i=Vs(this._lContainer,A);return i&&YC(il(this._lContainer),A)!=null?new Ws(i):null}_adjustIndex(e,A=0){return e??this.length+A}};function ip(t){return t[TC]}function il(t){return t[TC]||(t[TC]=[])}function vy(t,e){let A,i=e[t.index];return vo(i)?A=i:(A=fy(i,e,null,t),e[t.index]=A,$d(e,A)),B_(A,e,t,i),new Sy(A,t,e)}function C_(t,e){let A=t[fe],i=A.createComment(""),o=$i(e,t),n=A.parentNode(o);return $C(A,n,i,A.nextSibling(o),!1),i}var B_=c_,Q_=()=>!1;function E_(t,e,A){return Q_(t,e,A)}function c_(t,e,A,i){if(t[Pn])return;let o;A.type&8?o=Vi(i):o=C_(e,A),t[Pn]=o}var Pl=class t{queryList;matches=null;constructor(e){this.queryList=e}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},Zl=class t{queries;constructor(e=[]){this.queries=e}createEmbeddedView(e){let A=e.queries;if(A!==null){let i=e.contentQueries!==null?e.contentQueries[0]:A.length,o=[];for(let n=0;n<i;n++){let g=A.getByIndex(n),r=this.queries[g.indexInDeclarationView];o.push(r.clone())}return new t(o)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}finishViewCreation(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let A=0;A<this.queries.length;A++)Ch(e,A).matches!==null&&this.queries[A].setDirty()}},tB=class{flags;read;predicate;constructor(e,A,i=null){this.flags=A,this.read=i,typeof e=="string"?this.predicate=D_(e):this.predicate=e}},ql=class t{queries;constructor(e=[]){this.queries=e}elementStart(e,A){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(e,A)}elementEnd(e){for(let A=0;A<this.queries.length;A++)this.queries[A].elementEnd(e)}embeddedTView(e){let A=null;for(let i=0;i<this.length;i++){let o=A!==null?A.length:0,n=this.getByIndex(i).embeddedTView(e,o);n&&(n.indexInDeclarationView=i,A!==null?A.push(n):A=[n])}return A!==null?new t(A):null}template(e,A){for(let i=0;i<this.queries.length;i++)this.queries[i].template(e,A)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}},Vl=class t{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=!1;_declarationNodeIndex;_appliesToNextNode=!0;constructor(e,A=-1){this.metadata=e,this._declarationNodeIndex=A}elementStart(e,A){this.isApplyingToNode(A)&&this.matchTNode(e,A)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,A){this.elementStart(e,A)}embeddedTView(e,A){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,A),new t(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let A=this._declarationNodeIndex,i=e.parent;for(;i!==null&&i.type&8&&i.index!==A;)i=i.parent;return A===(i!==null?i.index:-1)}return this._appliesToNextNode}matchTNode(e,A){let i=this.metadata.predicate;if(Array.isArray(i))for(let o=0;o<i.length;o++){let n=i[o];this.matchTNodeWithReadOption(e,A,l_(A,n)),this.matchTNodeWithReadOption(e,A,LC(A,e,n,!1,!1))}else i===ge?A.type&4&&this.matchTNodeWithReadOption(e,A,-1):this.matchTNodeWithReadOption(e,A,LC(A,e,i,!1,!1))}matchTNodeWithReadOption(e,A,i){if(i!==null){let o=this.metadata.read;if(o!==null)if(o===q||o===Ce||o===ge&&A.type&4)this.addMatch(A.index,-2);else{let n=LC(A,e,o,!1,!1);n!==null&&this.addMatch(A.index,n)}else this.addMatch(A.index,i)}}addMatch(e,A){this.matches===null?this.matches=[e,A]:this.matches.push(e,A)}};function l_(t,e){let A=t.localNames;if(A!==null){for(let i=0;i<A.length;i+=2)if(A[i]===e)return A[i+1]}return null}function d_(t,e){return t.type&11?ur(t,e):t.type&4?vB(t,e):null}function h_(t,e,A,i){return A===-1?d_(e,t):A===-2?u_(t,e,i):Zs(t,t[xA],A,e)}function u_(t,e,A){if(A===q)return ur(e,t);if(A===ge)return vB(e,t);if(A===Ce)return vy(e,t)}function Ny(t,e,A,i){let o=e[Fo].queries[i];if(o.matches===null){let n=t.data,g=A.matches,r=[];for(let s=0;g!==null&&s<g.length;s+=2){let I=g[s];if(I<0)r.push(null);else{let B=n[I];r.push(h_(e,B,g[s+1],A.metadata.read))}}o.matches=r}return o.matches}function Wl(t,e,A,i){let o=t.queries.getByIndex(A),n=o.matches;if(n!==null){let g=Ny(t,e,o,A);for(let r=0;r<n.length;r+=2){let s=n[r];if(s>0)i.push(g[r/2]);else{let I=n[r+1],B=e[-s];for(let c=At;c<B.length;c++){let D=B[c];D[Tn]===D[et]&&Wl(D[xA],D,I,i)}if(B[ar]!==null){let c=B[ar];for(let D=0;D<c.length;D++){let h=c[D];Wl(h[xA],h,I,i)}}}}}return i}function ah(t,e){return t[Fo].queries[e].queryList}function Gy(t,e,A){let i=new ui((A&4)===4);return tN(t,e,i,i.destroy),(e[Fo]??=new Zl).queries.push(new Pl(i))-1}function m_(t,e,A){let i=he();return i.firstCreatePass&&(_y(i,new tB(t,e,A),-1),(e&2)===2&&(i.staticViewQueries=!0)),Gy(i,FA(),e)}function Ly(t,e,A,i){let o=he();if(o.firstCreatePass){let n=Xe();_y(o,new tB(e,A,i),n.index),f_(o,t),(A&2)===2&&(o.staticContentQueries=!0)}return Gy(o,FA(),A)}function D_(t){return t.split(",").map(e=>e.trim())}function _y(t,e,A){t.queries===null&&(t.queries=new ql),t.queries.track(new Vl(e,A))}function f_(t,e){let A=t.contentQueries||(t.contentQueries=[]),i=A.length?A[A.length-1]:-1;e!==i&&A.push(t.queries.length-1,e)}function Ch(t,e){return t.queries.getByIndex(e)}function Ky(t,e){let A=t[xA],i=Ch(A,e);return i.crossesNgTemplate?Wl(A,t,e,[]):Ny(A,t,i,e)}function Uy(t,e,A){let i,o=Xa(()=>{i._dirtyCounter();let n=M_(i,t);if(e&&n===void 0)throw new K(-951,!1);return n});return i=o[lt],i._dirtyCounter=Ut(0),i._flatValue=void 0,o}function p_(t){return Uy(!0,!1,t)}function w_(t){return Uy(!0,!0,t)}function y_(t,e){let A=t[lt];A._lView=FA(),A._queryIndex=e,A._queryList=ah(A._lView,e),A._queryList.onDirty(()=>A._dirtyCounter.update(i=>i+1))}function M_(t,e){let A=t._lView,i=t._queryIndex;if(A===void 0||i===void 0||A[GA]&4)return e?void 0:at;let o=ah(A,i),n=Ky(A,i);return o.reset(n,Mw),e?o.first:o._changesDetected||t._flatValue===void 0?t._flatValue=o.toArray():t._flatValue}function op(t,e){return p_(e)}function R_(t,e){return w_(e)}var xy=(op.required=R_,op);function k_(t){let e=[],A=new Map;function i(o){let n=A.get(o);if(!n){let g=t(o);A.set(o,n=g.then(v_))}return n}return iB.forEach((o,n)=>{let g=[];o.templateUrl&&g.push(i(o.templateUrl).then(I=>{o.template=I}));let r=typeof o.styles=="string"?[o.styles]:o.styles||[];if(o.styles=r,o.styleUrl&&o.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(o.styleUrls?.length){let I=o.styles.length,B=o.styleUrls;o.styleUrls.forEach((c,D)=>{r.push(""),g.push(i(c).then(h=>{r[I+D]=h,B.splice(B.indexOf(c),1),B.length==0&&(o.styleUrls=void 0)}))})}else o.styleUrl&&g.push(i(o.styleUrl).then(I=>{r.push(I),o.styleUrl=void 0}));let s=Promise.all(g).then(()=>N_(n));e.push(s)}),b_(),Promise.all(e).then(()=>{})}var iB=new Map,F_=new Set;function b_(){let t=iB;return iB=new Map,t}function S_(){return iB.size===0}function v_(t){return typeof t=="string"?t:t.text()}function N_(t){F_.delete(t)}var So=class{},Bh=class{};var oB=class extends So{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new eB(this);constructor(e,A,i,o=!0){super(),this.ngModuleType=e,this._parent=A;let n=Lp(e);this._bootstrapComponents=Xw(n.bootstrap),this._r3Injector=uw(e,A,[{provide:So,useValue:this},{provide:NB,useValue:this.componentFactoryResolver},...i],mt(e),new Set(["environment"])),o&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(A=>A()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}},nB=class extends Bh{moduleType;constructor(e){super(),this.moduleType=e}create(e){return new oB(this.moduleType,e,[])}};function G_(t,e,A){return new oB(t,e,A,!1)}var zl=class extends So{injector;componentFactoryResolver=new eB(this);instance=null;constructor(e){super();let A=new Os([...e.providers,{provide:So,useValue:this},{provide:NB,useValue:this.componentFactoryResolver}],e.parent||dB(),e.debugName,new Set(["environment"]));this.injector=A,e.runEnvironmentInitializers&&A.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function CI(t,e,A=null){return new zl({providers:t,parent:e,debugName:A,runEnvironmentInitializers:!0}).injector}var L_=(()=>{class t{_injector;cachedInjectors=new Map;constructor(A){this._injector=A}getOrCreateStandaloneInjector(A){if(!A.standalone)return null;if(!this.cachedInjectors.has(A)){let i=Kp(!1,A.type),o=i.length>0?CI([i],this._injector,`Standalone[${A.type.name}]`):null;this.cachedInjectors.set(A,o)}return this.cachedInjectors.get(A)}ngOnDestroy(){try{for(let A of this.cachedInjectors.values())A!==null&&A.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=v({token:t,providedIn:"environment",factory:()=>new t(O(_e))})}return t})();function T(t){return js(()=>{let e=Yy(t),A=hA(R({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Fw.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:e.standalone?o=>o.get(L_).getOrCreateStandaloneInjector(A):null,getExternalStyles:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||zi.Emulated,styles:t.styles||at,_:null,schemas:t.schemas||null,tView:null,id:""});e.standalone&&Go("NgStandalone"),Jy(A);let i=t.dependencies;return A.directiveDefs=np(i,!1),A.pipeDefs=np(i,!0),A.id=Y_(A),A})}function __(t){return tn(t)||_p(t)}function K_(t){return t!==null}function V(t){return js(()=>({type:t.type,bootstrap:t.bootstrap||at,declarations:t.declarations||at,imports:t.imports||at,exports:t.exports||at,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function U_(t,e){if(t==null)return qi;let A={};for(let i in t)if(t.hasOwnProperty(i)){let o=t[i],n,g,r,s;Array.isArray(o)?(r=o[0],n=o[1],g=o[2]??n,s=o[3]||null):(n=o,g=o,r=MB.None,s=null),A[n]=[i,r,s],e[n]=g}return A}function x_(t){if(t==null)return qi;let e={};for(let A in t)t.hasOwnProperty(A)&&(e[t[A]]=A);return e}function Y(t){return js(()=>{let e=Yy(t);return Jy(e),e})}function GB(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone??!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function Yy(t){let e={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputConfig:t.inputs||qi,exportAs:t.exportAs||null,standalone:t.standalone??!0,signals:t.signals===!0,selectors:t.selectors||at,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:U_(t.inputs,e),outputs:x_(t.outputs),debugInfo:null}}function Jy(t){t.features?.forEach(e=>e(t))}function np(t,e){if(!t)return null;let A=e?Gv:__;return()=>(typeof t=="function"?t():t).map(i=>A(i)).filter(K_)}function Y_(t){let e=0,A=typeof t.consts=="function"?"":t.consts,i=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,A,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery];for(let n of i.join("|"))e=Math.imul(31,e)+n.charCodeAt(0)<<0;return e+=2147483648,"c"+e}function J_(t){return Object.getPrototypeOf(t.prototype).constructor}function EA(t){let e=J_(t.type),A=!0,i=[t];for(;e;){let o;if(hi(t))o=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new K(903,!1);o=e.\u0275dir}if(o){if(A){i.push(o);let g=t;g.inputs=ol(t.inputs),g.declaredInputs=ol(t.declaredInputs),g.outputs=ol(t.outputs);let r=o.hostBindings;r&&Z_(t,r);let s=o.viewQuery,I=o.contentQueries;if(s&&O_(t,s),I&&P_(t,I),H_(t,o),Bv(t.outputs,o.outputs),hi(o)&&o.data.animation){let B=t.data;B.animation=(B.animation||[]).concat(o.data.animation)}}let n=o.features;if(n)for(let g=0;g<n.length;g++){let r=n[g];r&&r.ngInherit&&r(t),r===EA&&(A=!1)}}e=Object.getPrototypeOf(e)}T_(i)}function H_(t,e){for(let A in e.inputs){if(!e.inputs.hasOwnProperty(A)||t.inputs.hasOwnProperty(A))continue;let i=e.inputs[A];i!==void 0&&(t.inputs[A]=i,t.declaredInputs[A]=e.declaredInputs[A])}}function T_(t){let e=0,A=null;for(let i=t.length-1;i>=0;i--){let o=t[i];o.hostVars=e+=o.hostVars,o.hostAttrs=Cr(o.hostAttrs,A=Cr(A,o.hostAttrs))}}function ol(t){return t===qi?{}:t===at?[]:t}function O_(t,e){let A=t.viewQuery;A?t.viewQuery=(i,o)=>{e(i,o),A(i,o)}:t.viewQuery=e}function P_(t,e){let A=t.contentQueries;A?t.contentQueries=(i,o,n)=>{e(i,o,n),A(i,o,n)}:t.contentQueries=e}function Z_(t,e){let A=t.hostBindings;A?t.hostBindings=(i,o)=>{e(i,o),A(i,o)}:t.hostBindings=e}function Hy(t){let e=A=>{let i=Array.isArray(t);A.hostDirectives===null?(A.findHostDirectiveDefs=Ty,A.hostDirectives=i?t.map(jl):[t]):i?A.hostDirectives.unshift(...t.map(jl)):A.hostDirectives.unshift(t)};return e.ngInherit=!0,e}function Ty(t,e,A){if(t.hostDirectives!==null)for(let i of t.hostDirectives)if(typeof i=="function"){let o=i();for(let n of o)gp(jl(n),e,A)}else gp(i,e,A)}function gp(t,e,A){let i=_p(t.directive);q_(i.declaredInputs,t.inputs),Ty(i,e,A),A.set(i,t),e.push(i)}function jl(t){return typeof t=="function"?{directive:je(t),inputs:qi,outputs:qi}:{directive:je(t.directive),inputs:rp(t.inputs),outputs:rp(t.outputs)}}function rp(t){if(t===void 0||t.length===0)return qi;let e={};for(let A=0;A<t.length;A+=2)e[t[A]]=t[A+1];return e}function q_(t,e){for(let A in e)if(e.hasOwnProperty(A)){let i=e[A],o=t[A];t[i]=o}}function Oy(t){return Qh(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function V_(t,e){if(Array.isArray(t))for(let A=0;A<t.length;A++)e(t[A]);else{let A=t[Symbol.iterator](),i;for(;!(i=A.next()).done;)e(i.value)}}function Qh(t){return t!==null&&(typeof t=="function"||typeof t=="object")}function Eh(t,e,A){return t[e]=A}function W_(t,e){return t[e]}function _t(t,e,A){let i=t[e];return Object.is(i,A)?!1:(t[e]=A,!0)}function z_(t,e,A,i){let o=_t(t,e,A);return _t(t,e+1,i)||o}function j_(t,e,A,i,o,n,g,r,s){let I=e.consts,B=aI(e,t,4,g||null,r||null);Sd()&&Ih(e,A,B,on(I,s),eh),B.mergedAttrs=Cr(B.mergedAttrs,B.attrs),Ud(e,B);let c=B.tView=jd(2,B,i,o,n,e.directiveRegistry,e.pipeRegistry,null,e.schemas,I,null);return e.queries!==null&&(e.queries.template(e,B),c.queries=e.queries.embeddedTView(B)),B}function gB(t,e,A,i,o,n,g,r,s,I){let B=A+Ye,c=e.firstCreatePass?j_(B,e,t,i,o,n,g,r,s):e.data[B];Ag(c,!1);let D=X_(e,t,c,A);fB()&&bB(e,t,D,c),mr(D,t);let h=fy(D,t,D,c);return t[B]=h,$d(t,h),E_(h,c,t),uB(c)&&RB(e,t,c),s!=null&&Ah(t,c,I),c}function U(t,e,A,i,o,n,g,r){let s=FA(),I=he(),B=on(I.consts,n);return gB(s,I,t,e,A,i,o,B,g,r),U}var X_=$_;function $_(t,e,A,i){return pB(!0),e[fe].createComment("")}var ch=(()=>{class t{log(A){console.log(A)}warn(A){console.warn(A)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();var lh=new k(""),BI=new k(""),LB=(()=>{class t{_ngZone;registry;_isZoneStable=!0;_callbacks=[];taskTrackingZone=null;constructor(A,i,o){this._ngZone=A,this.registry=i,dh||(AK(o),o.addToWindow(i)),this._watchAngularEvents(),A.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{X.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let A=this._callbacks.pop();clearTimeout(A.timeoutId),A.doneCb()}});else{let A=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>i.updateCb&&i.updateCb(A)?(clearTimeout(i.timeoutId),!1):!0)}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(A=>({source:A.source,creationLocation:A.creationLocation,data:A.data})):[]}addCallback(A,i,o){let n=-1;i&&i>0&&(n=setTimeout(()=>{this._callbacks=this._callbacks.filter(g=>g.timeoutId!==n),A()},i)),this._callbacks.push({doneCb:A,timeoutId:n,updateCb:o})}whenStable(A,i,o){if(o&&!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(A,i,o),this._runCallbacksIfReady()}registerApplication(A){this.registry.registerApplication(A,this)}unregisterApplication(A){this.registry.unregisterApplication(A)}findProviders(A,i,o){return[]}static \u0275fac=function(i){return new(i||t)(O(X),O(_B),O(BI))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})(),_B=(()=>{class t{_applications=new Map;registerApplication(A,i){this._applications.set(A,i)}unregisterApplication(A){this._applications.delete(A)}unregisterAllApplications(){this._applications.clear()}getTestability(A){return this._applications.get(A)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(A,i=!0){return dh?.findTestabilityInTree(this,A,i)??null}static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();function AK(t){dh=t}var dh,Py=(()=>{class t{static \u0275prov=v({token:t,providedIn:"root",factory:()=>new Xl})}return t})(),Xl=class{queuedEffectCount=0;queues=new Map;schedule(e){this.enqueue(e)}remove(e){let A=e.zone,i=this.queues.get(A);i.has(e)&&(i.delete(e),this.queuedEffectCount--)}enqueue(e){let A=e.zone;this.queues.has(A)||this.queues.set(A,new Set);let i=this.queues.get(A);i.has(e)||(this.queuedEffectCount++,i.add(e))}flush(){for(;this.queuedEffectCount>0;)for(let[e,A]of this.queues)e===null?this.flushQueue(A):e.run(()=>this.flushQueue(A))}flushQueue(e){for(let A of e)e.delete(A),this.queuedEffectCount--,A.run()}};function In(t){return!!t&&typeof t.then=="function"}function hh(t){return!!t&&typeof t.subscribe=="function"}var Zy=new k("");function uh(t){return eI([{provide:Zy,multi:!0,useValue:t}])}var qy=(()=>{class t{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((A,i)=>{this.resolve=A,this.reject=i});appInits=Q(Zy,{optional:!0})??[];injector=Q(wA);constructor(){}runInitializers(){if(this.initialized)return;let A=[];for(let o of this.appInits){let n=wt(this.injector,o);if(In(n))A.push(n);else if(hh(n)){let g=new Promise((r,s)=>{n.subscribe({complete:r,error:s})});A.push(g)}}let i=()=>{this.done=!0,this.resolve()};Promise.all(A).then(()=>{i()}).catch(o=>{this.reject(o)}),A.length===0&&i(),this.initialized=!0}static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),mh=new k("");function eK(){Sc(()=>{throw new K(600,!1)})}function tK(t){return t.isBoundToModule}var iK=10;function Vy(t,e){return Array.isArray(e)?e.reduce(Vy,t):R(R({},t),e)}var Kt=(()=>{class t{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=Q(HN);afterRenderManager=Q(Kw);zonelessEnabled=Q(Jd);rootEffectScheduler=Q(Py);dirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new _;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=Q(No).hasPendingTasks.pipe(nA(A=>!A));constructor(){Q(fr,{optional:!0})}whenStable(){let A;return new Promise(i=>{A=this.isStable.subscribe({next:o=>{o&&i()}})}).finally(()=>{A.unsubscribe()})}_injector=Q(_e);_rendererFactory=null;get injector(){return this._injector}bootstrap(A,i){return this.bootstrapImpl(A,i)}bootstrapImpl(A,i,o=wA.NULL){Ee(10);let n=A instanceof My;if(!this._injector.get(qy).done){let h="";throw new K(405,h)}let r;n?r=A:r=this._injector.get(NB).resolveComponentFactory(A),this.componentTypes.push(r.componentType);let s=tK(r)?void 0:this._injector.get(So),I=i||r.selector,B=r.create(o,[],I,s),c=B.location.nativeElement,D=B.injector.get(lh,null);return D?.registerApplication(c),B.onDestroy(()=>{this.detachView(B.hostView),_C(this.components,B),D?.unregisterApplication(c)}),this._loadComponent(B),Ee(11,B),B}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){Ee(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(Pd.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new K(101,!1);let A=PA(null);try{this._runningTick=!0,this.synchronize()}catch(i){this.internalErrorHandler(i)}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,PA(A),this.afterTick.next(),Ee(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(tt,null,{optional:!0}));let A=0;for(;this.dirtyFlags!==0&&A++<iK;)Ee(14),this.synchronizeOnce(),Ee(15)}synchronizeOnce(){if(this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush()),this.dirtyFlags&7){let A=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:i,notifyErrorHandler:o}of this.allViews)oK(i,o,A,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}else this._rendererFactory?.begin?.(),this._rendererFactory?.end?.();this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:A})=>mB(A))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(A){let i=A;this._views.push(i),i.attachToAppRef(this)}detachView(A){let i=A;_C(this._views,i),i.detachFromAppRef()}_loadComponent(A){this.attachView(A.hostView),this.tick(),this.components.push(A),this._injector.get(mh,[]).forEach(o=>o(A))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(A=>A()),this._views.slice().forEach(A=>A.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(A){return this._destroyListeners.push(A),()=>_C(this._destroyListeners,A)}destroy(){if(this._destroyed)throw new K(406,!1);let A=this._injector;A.destroy&&!A.destroyed&&A.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function _C(t,e){let A=t.indexOf(e);A>-1&&t.splice(A,1)}function oK(t,e,A,i){if(!A&&!mB(t))return;hy(t,e,A&&!i?0:1)}function IA(t,e,A,i){let o=FA(),n=nn();if(_t(o,n,e)){let g=he(),r=oI();iL(r,o,t,e,A,i)}return IA}function Wy(t,e,A,i){return _t(t,nn(),A)?e+Xs(A)+i:Di}function bC(t,e){return t<<17|e<<2}function jn(t){return t>>17&32767}function nK(t){return(t&2)==2}function gK(t,e){return t&131071|e<<17}function $l(t){return t|2}function Er(t){return(t&131068)>>2}function nl(t,e){return t&-131069|e<<2}function rK(t){return(t&1)===1}function Ad(t){return t|1}function sK(t,e,A,i,o,n){let g=n?e.classBindings:e.styleBindings,r=jn(g),s=Er(g);t[i]=A;let I=!1,B;if(Array.isArray(A)){let c=A;B=c[1],(B===null||AI(c,B)>0)&&(I=!0)}else B=A;if(o)if(s!==0){let D=jn(t[r+1]);t[i+1]=bC(D,r),D!==0&&(t[D+1]=nl(t[D+1],i)),t[r+1]=gK(t[r+1],i)}else t[i+1]=bC(r,0),r!==0&&(t[r+1]=nl(t[r+1],i)),r=i;else t[i+1]=bC(s,0),r===0?r=i:t[s+1]=nl(t[s+1],i),s=i;I&&(t[i+1]=$l(t[i+1])),sp(t,B,i,!0),sp(t,B,i,!1),IK(e,B,t,i,n),g=bC(r,s),n?e.classBindings=g:e.styleBindings=g}function IK(t,e,A,i,o){let n=o?t.residualClasses:t.residualStyles;n!=null&&typeof e=="string"&&AI(n,e)>=0&&(A[i+1]=Ad(A[i+1]))}function sp(t,e,A,i){let o=t[A+1],n=e===null,g=i?jn(o):Er(o),r=!1;for(;g!==0&&(r===!1||n);){let s=t[g],I=t[g+1];aK(s,e)&&(r=!0,t[g+1]=i?Ad(I):$l(I)),g=i?jn(I):Er(I)}r&&(t[A+1]=i?$l(o):Ad(o))}function aK(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?AI(t,e)>=0:!1}var li={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function CK(t){return t.substring(li.key,li.keyEnd)}function BK(t){return QK(t),zy(t,jy(t,0,li.textEnd))}function zy(t,e){let A=li.textEnd;return A===e?-1:(e=li.keyEnd=EK(t,li.key=e,A),jy(t,e,A))}function QK(t){li.key=0,li.keyEnd=0,li.value=0,li.valueEnd=0,li.textEnd=t.length}function jy(t,e,A){for(;e<A&&t.charCodeAt(e)<=32;)e++;return e}function EK(t,e,A){for(;e<A&&t.charCodeAt(e)>32;)e++;return e}function F(t,e,A){let i=FA(),o=nn();if(_t(i,o,e)){let n=he(),g=oI();kB(n,g,i,t,e,i[fe],A,!1)}return F}function ed(t,e,A,i,o){th(e,t,A,o?"class":"style",i)}function Bt(t,e,A){return $y(t,e,A,!1),Bt}function oA(t,e){return $y(t,e,null,!0),oA}function We(t){A0(mK,Xy,t,!0)}function Xy(t,e){for(let A=BK(e);A>=0;A=zy(e,A))cB(t,CK(e),!0)}function $y(t,e,A,i){let o=FA(),n=he(),g=ew(2);if(n.firstUpdatePass&&t0(n,t,g,i),e!==Di&&_t(o,g,e)){let r=n.data[gn()];i0(n,r,o,o[fe],t,o[g+1]=fK(e,A),i,g)}}function A0(t,e,A,i){let o=he(),n=ew(2);o.firstUpdatePass&&t0(o,null,n,i);let g=FA();if(A!==Di&&_t(g,n,A)){let r=o.data[gn()];if(o0(r,i)&&!e0(o,n)){let s=i?r.classesWithoutHost:r.stylesWithoutHost;s!==null&&(A=al(s,A||"")),ed(o,r,g,A,i)}else DK(o,r,g,g[fe],g[n+1],g[n+1]=uK(t,e,A),i,n)}}function e0(t,e){return e>=t.expandoStartIndex}function t0(t,e,A,i){let o=t.data;if(o[A+1]===null){let n=o[gn()],g=e0(t,A);o0(n,i)&&e===null&&!g&&(e=!1),e=cK(o,n,e,i),sK(o,n,e,A,g,i)}}function cK(t,e,A,i){let o=Gd(t),n=i?e.residualClasses:e.residualStyles;if(o===null)(i?e.classBindings:e.styleBindings)===0&&(A=gl(null,t,e,A,i),A=zs(A,e.attrs,i),n=null);else{let g=e.directiveStylingLast;if(g===-1||t[g]!==o)if(A=gl(o,t,e,A,i),n===null){let s=lK(t,e,i);s!==void 0&&Array.isArray(s)&&(s=gl(null,t,e,s[1],i),s=zs(s,e.attrs,i),dK(t,e,i,s))}else n=hK(t,e,i)}return n!==void 0&&(i?e.residualClasses=n:e.residualStyles=n),A}function lK(t,e,A){let i=A?e.classBindings:e.styleBindings;if(Er(i)!==0)return t[jn(i)]}function dK(t,e,A,i){let o=A?e.classBindings:e.styleBindings;t[jn(o)]=i}function hK(t,e,A){let i,o=e.directiveEnd;for(let n=1+e.directiveStylingLast;n<o;n++){let g=t[n].hostAttrs;i=zs(i,g,A)}return zs(i,e.attrs,A)}function gl(t,e,A,i,o){let n=null,g=A.directiveEnd,r=A.directiveStylingLast;for(r===-1?r=A.directiveStart:r++;r<g&&(n=e[r],i=zs(i,n.hostAttrs,o),n!==t);)r++;return t!==null&&(A.directiveStylingLast=r),i}function zs(t,e,A){let i=A?1:2,o=-1;if(e!==null)for(let n=0;n<e.length;n++){let g=e[n];typeof g=="number"?o=g:o===i&&(Array.isArray(t)||(t=t===void 0?[]:["",t]),cB(t,g,A?!0:e[++n]))}return t===void 0?null:t}function uK(t,e,A){if(A==null||A==="")return at;let i=[],o=mi(A);if(Array.isArray(o))for(let n=0;n<o.length;n++)t(i,o[n],!0);else if(typeof o=="object")for(let n in o)o.hasOwnProperty(n)&&t(i,n,o[n]);else typeof o=="string"&&e(i,o);return i}function mK(t,e,A){let i=String(e);i!==""&&!i.includes(" ")&&cB(t,i,A)}function DK(t,e,A,i,o,n,g,r){o===Di&&(o=at);let s=0,I=0,B=0<o.length?o[0]:null,c=0<n.length?n[0]:null;for(;B!==null||c!==null;){let D=s<o.length?o[s+1]:void 0,h=I<n.length?n[I+1]:void 0,p=null,y;B===c?(s+=2,I+=2,D!==h&&(p=c,y=h)):c===null||B!==null&&B<c?(s+=2,p=B):(I+=2,p=c,y=h),p!==null&&i0(t,e,A,i,p,y,g,r),B=s<o.length?o[s]:null,c=I<n.length?n[I]:null}}function i0(t,e,A,i,o,n,g,r){if(!(e.type&3))return;let s=t.data,I=s[r+1],B=rK(I)?Ip(s,e,A,o,Er(I),g):void 0;if(!rB(B)){rB(n)||nK(I)&&(n=Ip(s,null,A,o,r,g));let c=Vp(gn(),A);DL(i,g,c,o,n)}}function Ip(t,e,A,i,o,n){let g=e===null,r;for(;o>0;){let s=t[o],I=Array.isArray(s),B=I?s[1]:s,c=B===null,D=A[o+1];D===Di&&(D=c?at:void 0);let h=c?zc(D,i):B===i?D:void 0;if(I&&!rB(h)&&(h=zc(s,i)),rB(h)&&(r=h,g))return r;let p=t[o+1];o=g?jn(p):Er(p)}if(e!==null){let s=n?e.residualClasses:e.residualStyles;s!=null&&(r=zc(s,i))}return r}function rB(t){return t!==void 0}function fK(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=mt(mi(t)))),t}function o0(t,e){return(t.flags&(e?8:16))!==0}function n0(t,e,A){let i=FA(),o=Wy(i,t,e,A);A0(cB,Xy,o,!0)}var td=class{destroy(e){}updateValue(e,A){}swap(e,A){let i=Math.min(e,A),o=Math.max(e,A),n=this.detach(o);if(o-i>1){let g=this.detach(i);this.attach(i,n),this.attach(o,g)}else this.attach(i,n)}move(e,A){this.attach(A,this.detach(e))}};function rl(t,e,A,i,o){return t===A&&Object.is(e,i)?1:Object.is(o(t,e),o(A,i))?-1:0}function pK(t,e,A){let i,o,n=0,g=t.length-1,r=void 0;if(Array.isArray(e)){let s=e.length-1;for(;n<=g&&n<=s;){let I=t.at(n),B=e[n],c=rl(n,I,n,B,A);if(c!==0){c<0&&t.updateValue(n,B),n++;continue}let D=t.at(g),h=e[s],p=rl(g,D,s,h,A);if(p!==0){p<0&&t.updateValue(g,h),g--,s--;continue}let y=A(n,I),L=A(g,D),P=A(n,B);if(Object.is(P,L)){let DA=A(s,h);Object.is(DA,y)?(t.swap(n,g),t.updateValue(g,h),s--,g--):t.move(g,n),t.updateValue(n,B),n++;continue}if(i??=new sB,o??=Cp(t,n,g,A),id(t,i,n,P))t.updateValue(n,B),n++,g++;else if(o.has(P))i.set(y,t.detach(n)),g--;else{let DA=t.create(n,e[n]);t.attach(n,DA),n++,g++}}for(;n<=s;)ap(t,i,A,n,e[n]),n++}else if(e!=null){let s=e[Symbol.iterator](),I=s.next();for(;!I.done&&n<=g;){let B=t.at(n),c=I.value,D=rl(n,B,n,c,A);if(D!==0)D<0&&t.updateValue(n,c),n++,I=s.next();else{i??=new sB,o??=Cp(t,n,g,A);let h=A(n,c);if(id(t,i,n,h))t.updateValue(n,c),n++,g++,I=s.next();else if(!o.has(h))t.attach(n,t.create(n,c)),n++,g++,I=s.next();else{let p=A(n,B);i.set(p,t.detach(n)),g--}}}for(;!I.done;)ap(t,i,A,t.length,I.value),I=s.next()}for(;n<=g;)t.destroy(t.detach(g--));i?.forEach(s=>{t.destroy(s)})}function id(t,e,A,i){return e!==void 0&&e.has(i)?(t.attach(A,e.get(i)),e.delete(i),!0):!1}function ap(t,e,A,i,o){if(id(t,e,i,A(i,o)))t.updateValue(i,o);else{let n=t.create(i,o);t.attach(i,n)}}function Cp(t,e,A,i){let o=new Set;for(let n=e;n<=A;n++)o.add(i(n,t.at(n)));return o}var sB=class{kvMap=new Map;_vMap=void 0;has(e){return this.kvMap.has(e)}delete(e){if(!this.has(e))return!1;let A=this.kvMap.get(e);return this._vMap!==void 0&&this._vMap.has(A)?(this.kvMap.set(e,this._vMap.get(A)),this._vMap.delete(A)):this.kvMap.delete(e),!0}get(e){return this.kvMap.get(e)}set(e,A){if(this.kvMap.has(e)){let i=this.kvMap.get(e);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(i);)i=o.get(i);o.set(i,A)}else this.kvMap.set(e,A)}forEach(e){for(let[A,i]of this.kvMap)if(e(i,A),this._vMap!==void 0){let o=this._vMap;for(;o.has(i);)i=o.get(i),e(i,A)}}};function pA(t,e){Go("NgControlFlow");let A=FA(),i=nn(),o=A[i]!==Di?A[i]:-1,n=o!==-1?IB(A,Ye+o):void 0,g=0;if(_t(A,i,t)){let r=PA(null);try{if(n!==void 0&&wy(n,g),t!==-1){let s=Ye+t,I=IB(A,s),B=rd(A[xA],s),c=Qr(I,B.tView.ssrId),D=sI(A,B,e,{dehydratedView:c});II(I,D,g,Br(B,c))}}finally{PA(r)}}else if(n!==void 0){let r=py(n,g);r!==void 0&&(r[xe]=e)}}var od=class{lContainer;$implicit;$index;constructor(e,A,i){this.lContainer=e,this.$implicit=A,this.$index=i}get $count(){return this.lContainer.length-At}};function ig(t,e){return e}var nd=class{hasEmptyBlock;trackByFn;liveCollection;constructor(e,A,i){this.hasEmptyBlock=e,this.trackByFn=A,this.liveCollection=i}};function og(t,e,A,i,o,n,g,r,s,I,B,c,D){Go("NgControlFlow");let h=FA(),p=he(),y=s!==void 0,L=FA(),P=r?g.bind(L[Lt][xe]):g,DA=new nd(y,P);L[Ye+t]=DA,gB(h,p,t+1,e,A,i,o,on(p.consts,n)),y&&gB(h,p,t+2,s,I,B,c,on(p.consts,D))}var gd=class extends td{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(e,A,i){super(),this.lContainer=e,this.hostLView=A,this.templateTNode=i}get length(){return this.lContainer.length-At}at(e){return this.getLView(e)[xe].$implicit}attach(e,A){let i=A[sr];this.needsIndexUpdate||=e!==this.length,II(this.lContainer,A,e,Br(this.templateTNode,i))}detach(e){return this.needsIndexUpdate||=e!==this.length-1,wK(this.lContainer,e)}create(e,A){let i=Qr(this.lContainer,this.templateTNode.tView.ssrId),o=sI(this.hostLView,this.templateTNode,new od(this.lContainer,A,e),{dehydratedView:i});return this.operationsCounter?.recordCreate(),o}destroy(e){FB(e[xA],e),this.operationsCounter?.recordDestroy()}updateValue(e,A){this.getLView(e)[xe].$implicit=A}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e<this.length;e++)this.getLView(e)[xe].$index=e}getLView(e){return yK(this.lContainer,e)}};function ng(t){let e=PA(null),A=gn();try{let i=FA(),o=i[xA],n=i[A],g=A+1,r=IB(i,g);if(n.liveCollection===void 0){let I=rd(o,g);n.liveCollection=new gd(r,i,I)}else n.liveCollection.reset();let s=n.liveCollection;if(pK(s,t,n.trackByFn),s.updateIndexes(),n.hasEmptyBlock){let I=nn(),B=s.length===0;if(_t(i,I,B)){let c=A+2,D=IB(i,c);if(B){let h=rd(o,c),p=Qr(D,h.tView.ssrId),y=sI(i,h,void 0,{dehydratedView:p});II(D,y,0,Br(h,p))}else wy(D,0)}}}finally{PA(e)}}function IB(t,e){return t[e]}function wK(t,e){return Vs(t,e)}function yK(t,e){return py(t,e)}function rd(t,e){return Md(t,e)}function u(t,e,A,i){let o=FA(),n=he(),g=Ye+t,r=o[fe],s=n.firstCreatePass?Fy(g,n,o,e,eh,Sd(),A,i):n.data[g],I=MK(n,o,s,r,e,t);o[g]=I;let B=uB(s);return Ag(s,!0),iy(r,I,s),!nh(s)&&fB()&&bB(n,o,I,s),(iN()===0||B)&&mr(I,o),oN(),B&&(RB(n,o,s),qd(n,s,o)),i!==null&&Ah(o,s),u}function m(){let t=Xe();vd()?Nd():(t=t.parent,Ag(t,!1));let e=t;gN(e)&&rN(),nN();let A=he();return A.firstCreatePass&&by(A,e),e.classesWithoutHost!=null&&mN(e)&&ed(A,e,FA(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&DN(e)&&ed(A,e,FA(),e.stylesWithoutHost,!1),m}function W(t,e,A,i){return u(t,e,A,i),m(),W}var MK=(t,e,A,i,o,n)=>(pB(!0),ey(i,o,dN()));function RK(t,e,A,i,o){let n=e.consts,g=on(n,i),r=aI(e,t,8,"ng-container",g);g!==null&&Tl(r,g,!0);let s=on(n,o);return Sd()&&Ih(e,A,r,s,eh),r.mergedAttrs=Cr(r.mergedAttrs,r.attrs),e.queries!==null&&e.queries.elementStart(e,r),r}function fi(t,e,A){let i=FA(),o=he(),n=t+Ye,g=o.firstCreatePass?RK(n,o,i,e,A):o.data[n];Ag(g,!0);let r=kK(o,i,g,t);return i[n]=r,fB()&&bB(o,i,r,g),mr(r,i),uB(g)&&(RB(o,i,g),qd(o,g,i)),A!=null&&Ah(i,g),fi}function pi(){let t=Xe(),e=he();return vd()?Nd():(t=t.parent,Ag(t,!1)),e.firstCreatePass&&(Ud(e,t),yd(t)&&e.queries.elementEnd(t)),pi}function Je(t,e,A){return fi(t,e,A),pi(),Je}var kK=(t,e,A,i)=>(pB(!0),HG(e[fe],""));function aA(){return FA()}function Qt(t,e,A){let i=FA(),o=nn();if(_t(i,o,e)){let n=he(),g=oI();kB(n,g,i,t,e,i[fe],A,!0)}return Qt}function Dh(t,e,A){let i=FA(),o=nn();if(_t(i,o,e)){let n=he(),g=oI(),r=Gd(n.data),s=sy(r,g,i);kB(n,g,i,t,e,s,A,!0)}return Dh}var aB="en-US";var FK=aB;function bK(t){typeof t=="string"&&(FK=t.toLowerCase().replace(/_/g,"-"))}function Bp(t,e,A){return function i(o){if(o===Function)return A;let n=lr(t)?Wi(t.index,e):e;sh(n,5);let g=e[xe],r=Qp(e,g,A,o),s=i.__ngNextListenerFn__;for(;s;)r=Qp(e,g,s,o)&&r,s=s.__ngNextListenerFn__;return r}}function Qp(t,e,A,i){let o=PA(null);try{return Ee(6,e,A),A(i)!==!1}catch(n){return SK(t,n),!1}finally{Ee(7,e,A),PA(o)}}function SK(t,e){let A=t[Ir],i=A?A.get(pt,null):null;i&&i.handleError(e)}function Ep(t,e,A,i,o,n){let g=e[A],r=e[xA],I=r.data[A].outputs[i],B=g[I],c=r.firstCreatePass?bd(r):null,D=Fd(e),h=B.subscribe(n),p=D.length;D.push(n,h),c&&c.push(o,t.index,p,-(p+1))}var vK=(t,e,A)=>{};function x(t,e,A,i){let o=FA(),n=he(),g=Xe();return ph(n,o,o[fe],g,t,e,i),x}function fh(t,e){let A=Xe(),i=FA(),o=he(),n=Gd(o.data),g=sy(n,A,i);return ph(o,i,g,A,t,e),fh}function NK(t,e,A,i){let o=t.cleanup;if(o!=null)for(let n=0;n<o.length-1;n+=2){let g=o[n];if(g===A&&o[n+1]===i){let r=e[HC],s=o[n+2];return r.length>s?r[s]:null}typeof g=="string"&&(n+=2)}return null}function ph(t,e,A,i,o,n,g){let r=uB(i),I=t.firstCreatePass?bd(t):null,B=Fd(e),c=!0;if(i.type&3||g){let D=$i(i,e),h=g?g(D):D,p=B.length,y=g?P=>g(Vi(P[i.index])):i.index,L=null;if(!g&&r&&(L=NK(t,e,o,i.index)),L!==null){let P=L.__ngLastListenerFn__||L;P.__ngNextListenerFn__=n,L.__ngLastListenerFn__=n,c=!1}else{n=Bp(i,e,n),vK(h,o,n);let P=A.listen(h,o,n);B.push(n,P),I&&I.push(o,y,p,p+1)}}else n=Bp(i,e,n);if(c){let D=i.outputs?.[o],h=i.hostDirectiveOutputs?.[o];if(h&&h.length)for(let p=0;p<h.length;p+=2){let y=h[p],L=h[p+1];Ep(i,e,y,L,o,n)}if(D&&D.length)for(let p of D)Ep(i,e,p,o,o,n)}}function b(t=1){return cN(t)}function GK(t,e){let A=null,i=NG(t);for(let o=0;o<e.length;o++){let n=e[o];if(n==="*"){A=o;continue}if(i===null?Ay(t,n,!0):_G(i,n))return o}return A}function ZA(t){let e=FA()[Lt][yt];if(!e.projection){let A=t?t.length:1,i=e.projection=Sv(A,null),o=i.slice(),n=e.child;for(;n!==null;){if(n.type!==128){let g=t?GK(n,t):0;g!==null&&(o[g]?o[g].projectionNext=n:i[g]=n,o[g]=n)}n=n.next}}}function sA(t,e=0,A,i,o,n){let g=FA(),r=he(),s=i?t+1:null;s!==null&&gB(g,r,s,i,o,n,null,A);let I=aI(r,Ye+t,16,null,A||null);I.projection===null&&(I.projection=e),Nd();let c=!g[sr]||Xp();g[Lt][yt].projection[I.projection]===null&&s!==null?LK(g,r,s):c&&!nh(I)&&uL(r,g,I)}function LK(t,e,A){let i=Ye+A,o=e.data[i],n=t[i],g=Qr(n,o.tView.ssrId),r=sI(t,o,void 0,{dehydratedView:g});II(n,r,0,Br(o,g))}function jA(t,e,A,i){Ly(t,e,A,i)}function cA(t,e,A){m_(t,e,A)}function z(t){let e=FA(),A=he(),i=Ld();DB(i+1);let o=Ch(A,i);if(t.dirty&&Xv(e)===((o.metadata.flags&2)===2)){if(o.matches===null)t.reset([]);else{let n=Ky(e,i);t.reset(n,Mw),t.notifyOnChanges()}return!0}return!1}function j(){return ah(FA(),Ld())}function g0(t,e,A,i,o){y_(e,Ly(t,A,i,o))}function r0(t=1){DB(Ld()+t)}function _K(t,e,A,i){A>=t.data.length&&(t.data[A]=null,t.blueprint[A]=null),e[A]=i}function He(t){let e=IN();return Rd(e,Ye+t)}function G(t,e=""){let A=FA(),i=he(),o=t+Ye,n=i.firstCreatePass?aI(i,o,1,e,null):i.data[o],g=KK(i,A,n,e,t);A[o]=g,fB()&&bB(i,A,g,n),Ag(n,!1)}var KK=(t,e,A,i,o)=>(pB(!0),YG(e[fe],i));function HA(t){return te("",t,""),HA}function te(t,e,A){let i=FA(),o=Wy(i,t,e,A);return o!==Di&&UK(i,gn(),o),te}function UK(t,e,A){let i=Vp(e,t);JG(t[fe],i,A)}function wi(t,e,A){Rw(e)&&(e=e());let i=FA(),o=nn();if(_t(i,o,e)){let n=he(),g=oI();kB(n,g,i,t,e,i[fe],A,!1)}return wi}function Ao(t,e){let A=Rw(t);return A&&t.set(e),A}function yi(t,e){let A=FA(),i=he(),o=Xe();return ph(i,A,A[fe],o,t,e),yi}function xK(t,e,A){let i=he();if(i.firstCreatePass){let o=hi(t);sd(A,i.data,i.blueprint,o,!0),sd(e,i.data,i.blueprint,o,!1)}}function sd(t,e,A,i,o){if(t=je(t),Array.isArray(t))for(let n=0;n<t.length;n++)sd(t[n],e,A,i,o);else{let n=he(),g=FA(),r=Xe(),s=rr(t)?t:je(t.provide),I=Yp(t),B=r.providerIndexes&1048575,c=r.directiveStart,D=r.providerIndexes>>20;if(rr(t)||!t.multi){let h=new Vn(I,o,AA),p=Il(s,e,o?B:B+D,c);p===-1?(fl(WC(r,g),n,s),sl(n,t,e.length),e.push(s),r.directiveStart++,r.directiveEnd++,o&&(r.providerIndexes+=1048576),A.push(h),g.push(h)):(A[p]=h,g[p]=h)}else{let h=Il(s,e,B+D,c),p=Il(s,e,B,B+D),y=h>=0&&A[h],L=p>=0&&A[p];if(o&&!L||!o&&!y){fl(WC(r,g),n,s);let P=HK(o?JK:YK,A.length,o,i,I);!o&&L&&(A[p].providerFactory=P),sl(n,t,e.length,0),e.push(s),r.directiveStart++,r.directiveEnd++,o&&(r.providerIndexes+=1048576),A.push(P),g.push(P)}else{let P=s0(A[o?p:h],I,!o&&i);sl(n,t,h>-1?h:p,P)}!o&&i&&L&&A[p].componentProviders++}}}function sl(t,e,A,i){let o=rr(e),n=xv(e);if(o||n){let s=(n?je(e.useClass):e).prototype.ngOnDestroy;if(s){let I=t.destroyHooks||(t.destroyHooks=[]);if(!o&&e.multi){let B=I.indexOf(A);B===-1?I.push(A,[i,s]):I[B+1].push(i,s)}else I.push(A,s)}}}function s0(t,e,A){return A&&t.componentProviders++,t.multi.push(e)-1}function Il(t,e,A,i){for(let o=A;o<i;o++)if(e[o]===t)return o;return-1}function YK(t,e,A,i){return Id(this.multi,[])}function JK(t,e,A,i){let o=this.multi,n;if(this.providerFactory){let g=this.providerFactory.componentProviders,r=Zs(A,A[xA],this.providerFactory.index,i);n=r.slice(0,g),Id(o,n);for(let s=g;s<r.length;s++)n.push(r[s])}else n=[],Id(o,n);return n}function Id(t,e){for(let A=0;A<t.length;A++){let i=t[A];e.push(i())}return e}function HK(t,e,A,i,o){let n=new Vn(t,A,AA);return n.multi=[],n.index=e,n.componentProviders=0,s0(n,o,i&&!A),n}function LA(t,e=[]){return A=>{A.providersResolver=(i,o)=>xK(i,o?o(t):t,e)}}function I0(t,e,A){let i=iI()+t,o=FA();return o[i]===Di?Eh(o,i,A?e.call(A):e()):W_(o,i)}function gg(t,e,A,i){return C0(FA(),iI(),t,e,A,i)}function rg(t,e,A,i,o){return B0(FA(),iI(),t,e,A,i,o)}function a0(t,e){let A=t[e];return A===Di?void 0:A}function C0(t,e,A,i,o,n){let g=e+A;return _t(t,g,o)?Eh(t,g+1,n?i.call(n,o):i(o)):a0(t,g+1)}function B0(t,e,A,i,o,n,g){let r=e+A;return z_(t,r,o,n)?Eh(t,r+2,g?i.call(g,o,n):i(o,n)):a0(t,r+2)}function an(t,e){let A=he(),i,o=t+Ye;A.firstCreatePass?(i=TK(e,A.pipeRegistry),A.data[o]=i,i.onDestroy&&(A.destroyHooks??=[]).push(o,i.onDestroy)):i=A.data[o];let n=i.factory||(i.factory=Hn(i.type,!0)),g,r=ut(AA);try{let s=VC(!1),I=n();return VC(s),_K(A,FA(),o,I),I}finally{ut(r)}}function TK(t,e){if(e)for(let A=e.length-1;A>=0;A--){let i=e[A];if(t===i.name)return i}}function pr(t,e,A){let i=t+Ye,o=FA(),n=Rd(o,i);return E0(o,i)?C0(o,iI(),e,n.transform,A,n):n.transform(A)}function Q0(t,e,A,i){let o=t+Ye,n=FA(),g=Rd(n,o);return E0(n,o)?B0(n,iI(),e,g.transform,A,i,g):g.transform(A,i)}function E0(t,e){return t[xA].data[e].pure}function QI(t,e){return vB(t,e)}var SC=null;function OK(t){SC!==null&&(t.defaultEncapsulation!==SC.defaultEncapsulation||t.preserveWhitespaces!==SC.preserveWhitespaces)||(SC=t)}var Xn=class{full;major;minor;patch;constructor(e){this.full=e;let A=e.split(".");this.major=A[0],this.minor=A[1],this.patch=A.slice(2).join(".")}},wh=new Xn("19.2.8"),ad=class{ngModuleFactory;componentFactories;constructor(e,A){this.ngModuleFactory=e,this.componentFactories=A}},c0=(()=>{class t{compileModuleSync(A){return new nB(A)}compileModuleAsync(A){return Promise.resolve(this.compileModuleSync(A))}compileModuleAndAllComponentsSync(A){let i=this.compileModuleSync(A),o=Lp(A),n=Xw(o.declarations).reduce((g,r)=>{let s=tn(r);return s&&g.push(new zn(s)),g},[]);return new ad(i,n)}compileModuleAndAllComponentsAsync(A){return Promise.resolve(this.compileModuleAndAllComponentsSync(A))}clearCache(){}clearCacheFor(A){}getModuleId(A){}static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),PK=new k("");function ZK(t,e,A){let i=new nB(A);return Promise.resolve(i)}function cp(t){for(let e=t.length-1;e>=0;e--)if(t[e]!==void 0)return t[e]}var qK=(()=>{class t{zone=Q(X);changeDetectionScheduler=Q(Wn);applicationRef=Q(Kt);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function VK({ngZoneFactory:t,ignoreChangesOutsideZone:e,scheduleInRootZone:A}){return t??=()=>new X(hA(R({},l0()),{scheduleInRootZone:A})),[{provide:X,useFactory:t},{provide:gr,multi:!0,useFactory:()=>{let i=Q(qK,{optional:!0});return()=>i.initialize()}},{provide:gr,multi:!0,useFactory:()=>{let i=Q(WK);return()=>{i.initialize()}}},e===!0?{provide:Dw,useValue:!0}:[],{provide:fw,useValue:A??mw}]}function l0(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var WK=(()=>{class t{subscription=new vA;initialized=!1;zone=Q(X);pendingTasks=Q(No);initialize(){if(this.initialized)return;this.initialized=!0;let A=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(A=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{X.assertNotInAngularZone(),queueMicrotask(()=>{A!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(A),A=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{X.assertInAngularZone(),A??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var zK=(()=>{class t{appRef=Q(Kt);taskService=Q(No);ngZone=Q(X);zonelessEnabled=Q(Jd);tracing=Q(fr,{optional:!0});disableScheduling=Q(Dw,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new vA;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(jC):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(Q(fw,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof XC||!this.zoneIsDefined)}notify(A){if(!this.zonelessEnabled&&A===5)return;let i=!1;switch(A){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2,i=!0;break}case 12:{this.appRef.dirtyFlags|=16,i=!0;break}case 13:{this.appRef.dirtyFlags|=2,i=!0;break}case 11:{i=!0;break}case 9:case 8:case 7:case 10:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(i))return;let o=this.useMicrotaskScheduler?Yf:pw;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>o(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>o(()=>this.tick()))}shouldScheduleTick(A){return!(this.disableScheduling&&!A||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(jC+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let A=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(i){throw this.taskService.remove(A),i}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Yf(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(A)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let A=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(A)}}static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function jK(){return typeof $localize<"u"&&$localize.locale||aB}var KB=new k("",{providedIn:"root",factory:()=>Q(KB,qA.Optional|qA.SkipSelf)||jK()});var CB=new k(""),XK=new k("");function xs(t){return!t.moduleRef}function $K(t){let e=xs(t)?t.r3Injector:t.moduleRef.injector,A=e.get(X);return A.run(()=>{xs(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let i=e.get(pt,null),o;if(A.runOutsideAngular(()=>{o=A.onError.subscribe({next:n=>{i.handleError(n)}})}),xs(t)){let n=()=>e.destroy(),g=t.platformInjector.get(CB);g.add(n),e.onDestroy(()=>{o.unsubscribe(),g.delete(n)})}else{let n=()=>t.moduleRef.destroy(),g=t.platformInjector.get(CB);g.add(n),t.moduleRef.onDestroy(()=>{_C(t.allPlatformModules,t.moduleRef),o.unsubscribe(),g.delete(n)})}return eU(i,A,()=>{let n=e.get(qy);return n.runInitializers(),n.donePromise.then(()=>{let g=e.get(KB,aB);if(bK(g||aB),!e.get(XK,!0))return xs(t)?e.get(Kt):(t.allPlatformModules.push(t.moduleRef),t.moduleRef);if(xs(t)){let s=e.get(Kt);return t.rootComponent!==void 0&&s.bootstrap(t.rootComponent),s}else return AU(t.moduleRef,t.allPlatformModules),t.moduleRef})})})}function AU(t,e){let A=t.injector.get(Kt);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(i=>A.bootstrap(i));else if(t.instance.ngDoBootstrap)t.instance.ngDoBootstrap(A);else throw new K(-403,!1);e.push(t)}function eU(t,e,A){try{let i=A();return In(i)?i.catch(o=>{throw e.runOutsideAngular(()=>t.handleError(o)),o}):i}catch(i){throw e.runOutsideAngular(()=>t.handleError(i)),i}}var d0=(()=>{class t{_injector;_modules=[];_destroyListeners=[];_destroyed=!1;constructor(A){this._injector=A}bootstrapModuleFactory(A,i){let o=i?.scheduleInRootZone,n=()=>JN(i?.ngZone,hA(R({},l0({eventCoalescing:i?.ngZoneEventCoalescing,runCoalescing:i?.ngZoneRunCoalescing})),{scheduleInRootZone:o})),g=i?.ignoreChangesOutsideZone,r=[VK({ngZoneFactory:n,ignoreChangesOutsideZone:g}),{provide:Wn,useExisting:zK}],s=G_(A.moduleType,this.injector,r);return $K({moduleRef:s,allPlatformModules:this._modules,platformInjector:this.injector})}bootstrapModule(A,i=[]){let o=Vy({},i);return ZK(this.injector,o,A).then(n=>this.bootstrapModuleFactory(n,o))}onDestroy(A){this._destroyListeners.push(A)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new K(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());let A=this._injector.get(CB,null);A&&(A.forEach(i=>i()),A.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static \u0275fac=function(i){return new(i||t)(O(wA))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})(),Ts=null,h0=new k("");function tU(t){if(Ts&&!Ts.get(h0,!1))throw new K(400,!1);eK(),Ts=t;let e=t.get(d0);return nU(t),e}function yh(t,e,A=[]){let i=`Platform: ${e}`,o=new k(i);return(n=[])=>{let g=u0();if(!g||g.injector.get(h0,!1)){let r=[...A,...n,{provide:o,useValue:!0}];t?t(r):tU(iU(r,i))}return oU(o)}}function iU(t=[],e){return wA.create({name:e,providers:[{provide:lB,useValue:"platform"},{provide:CB,useValue:new Set([()=>Ts=null])},...t]})}function oU(t){let e=u0();if(!e)throw new K(401,!1);return e}function u0(){return Ts?.get(d0)??null}function nU(t){let e=t.get(Od,null);wt(t,()=>{e?.forEach(A=>A())})}var zA=(()=>{class t{static __NG_ELEMENT_ID__=gU}return t})();function gU(t){return rU(Xe(),FA(),(t&16)===16)}function rU(t,e,A){if(lr(t)&&!A){let i=Wi(t.index,e);return new Ws(i,i)}else if(t.type&175){let i=e[Lt];return new Ws(i,e)}return null}var Cd=class{constructor(){}supports(e){return Oy(e)}create(e){return new Bd(e)}},sU=(t,e)=>e,Bd=class{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(e){this._trackByFn=e||sU}forEachItem(e){let A;for(A=this._itHead;A!==null;A=A._next)e(A)}forEachOperation(e){let A=this._itHead,i=this._removalsHead,o=0,n=null;for(;A||i;){let g=!i||A&&A.currentIndex<lp(i,o,n)?A:i,r=lp(g,o,n),s=g.currentIndex;if(g===i)o--,i=i._nextRemoved;else if(A=A._next,g.previousIndex==null)o++;else{n||(n=[]);let I=r-o,B=s-o;if(I!=B){for(let D=0;D<I;D++){let h=D<n.length?n[D]:n[D]=0,p=h+D;B<=p&&p<I&&(n[D]=h+1)}let c=g.previousIndex;n[c]=B-I}}r!==s&&e(g,r,s)}}forEachPreviousItem(e){let A;for(A=this._previousItHead;A!==null;A=A._nextPrevious)e(A)}forEachAddedItem(e){let A;for(A=this._additionsHead;A!==null;A=A._nextAdded)e(A)}forEachMovedItem(e){let A;for(A=this._movesHead;A!==null;A=A._nextMoved)e(A)}forEachRemovedItem(e){let A;for(A=this._removalsHead;A!==null;A=A._nextRemoved)e(A)}forEachIdentityChange(e){let A;for(A=this._identityChangesHead;A!==null;A=A._nextIdentityChange)e(A)}diff(e){if(e==null&&(e=[]),!Oy(e))throw new K(900,!1);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let A=this._itHead,i=!1,o,n,g;if(Array.isArray(e)){this.length=e.length;for(let r=0;r<this.length;r++)n=e[r],g=this._trackByFn(r,n),A===null||!Object.is(A.trackById,g)?(A=this._mismatch(A,n,g,r),i=!0):(i&&(A=this._verifyReinsertion(A,n,g,r)),Object.is(A.item,n)||this._addIdentityChange(A,n)),A=A._next}else o=0,V_(e,r=>{g=this._trackByFn(o,r),A===null||!Object.is(A.trackById,g)?(A=this._mismatch(A,r,g,o),i=!0):(i&&(A=this._verifyReinsertion(A,r,g,o)),Object.is(A.item,r)||this._addIdentityChange(A,r)),A=A._next,o++}),this.length=o;return this._truncate(A),this.collection=e,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;e!==null;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;e!==null;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,A,i,o){let n;return e===null?n=this._itTail:(n=e._prev,this._remove(e)),e=this._unlinkedRecords===null?null:this._unlinkedRecords.get(i,null),e!==null?(Object.is(e.item,A)||this._addIdentityChange(e,A),this._reinsertAfter(e,n,o)):(e=this._linkedRecords===null?null:this._linkedRecords.get(i,o),e!==null?(Object.is(e.item,A)||this._addIdentityChange(e,A),this._moveAfter(e,n,o)):e=this._addAfter(new Qd(A,i),n,o)),e}_verifyReinsertion(e,A,i,o){let n=this._unlinkedRecords===null?null:this._unlinkedRecords.get(i,null);return n!==null?e=this._reinsertAfter(n,e._prev,o):e.currentIndex!=o&&(e.currentIndex=o,this._addToMoves(e,o)),e}_truncate(e){for(;e!==null;){let A=e._next;this._addToRemovals(this._unlink(e)),e=A}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,A,i){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(e);let o=e._prevRemoved,n=e._nextRemoved;return o===null?this._removalsHead=n:o._nextRemoved=n,n===null?this._removalsTail=o:n._prevRemoved=o,this._insertAfter(e,A,i),this._addToMoves(e,i),e}_moveAfter(e,A,i){return this._unlink(e),this._insertAfter(e,A,i),this._addToMoves(e,i),e}_addAfter(e,A,i){return this._insertAfter(e,A,i),this._additionsTail===null?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,A,i){let o=A===null?this._itHead:A._next;return e._next=o,e._prev=A,o===null?this._itTail=e:o._prev=e,A===null?this._itHead=e:A._next=e,this._linkedRecords===null&&(this._linkedRecords=new BB),this._linkedRecords.put(e),e.currentIndex=i,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){this._linkedRecords!==null&&this._linkedRecords.remove(e);let A=e._prev,i=e._next;return A===null?this._itHead=i:A._next=i,i===null?this._itTail=A:i._prev=A,e}_addToMoves(e,A){return e.previousIndex===A||(this._movesTail===null?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e}_addToRemovals(e){return this._unlinkedRecords===null&&(this._unlinkedRecords=new BB),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,A){return e.item=A,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}},Qd=class{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(e,A){this.item=e,this.trackById=A}},Ed=class{_head=null;_tail=null;add(e){this._head===null?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,A){let i;for(i=this._head;i!==null;i=i._nextDup)if((A===null||A<=i.currentIndex)&&Object.is(i.trackById,e))return i;return null}remove(e){let A=e._prevDup,i=e._nextDup;return A===null?this._head=i:A._nextDup=i,i===null?this._tail=A:i._prevDup=A,this._head===null}},BB=class{map=new Map;put(e){let A=e.trackById,i=this.map.get(A);i||(i=new Ed,this.map.set(A,i)),i.add(e)}get(e,A){let i=e,o=this.map.get(i);return o?o.get(e,A):null}remove(e){let A=e.trackById;return this.map.get(A).remove(e)&&this.map.delete(A),e}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function lp(t,e,A){let i=t.previousIndex;if(i===null)return i;let o=0;return A&&i<A.length&&(o=A[i]),i+e+o}var cd=class{constructor(){}supports(e){return e instanceof Map||Qh(e)}create(){return new ld}},ld=class{_records=new Map;_mapHead=null;_appendAfter=null;_previousMapHead=null;_changesHead=null;_changesTail=null;_additionsHead=null;_additionsTail=null;_removalsHead=null;_removalsTail=null;get isDirty(){return this._additionsHead!==null||this._changesHead!==null||this._removalsHead!==null}forEachItem(e){let A;for(A=this._mapHead;A!==null;A=A._next)e(A)}forEachPreviousItem(e){let A;for(A=this._previousMapHead;A!==null;A=A._nextPrevious)e(A)}forEachChangedItem(e){let A;for(A=this._changesHead;A!==null;A=A._nextChanged)e(A)}forEachAddedItem(e){let A;for(A=this._additionsHead;A!==null;A=A._nextAdded)e(A)}forEachRemovedItem(e){let A;for(A=this._removalsHead;A!==null;A=A._nextRemoved)e(A)}diff(e){if(!e)e=new Map;else if(!(e instanceof Map||Qh(e)))throw new K(900,!1);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let A=this._mapHead;if(this._appendAfter=null,this._forEach(e,(i,o)=>{if(A&&A.key===o)this._maybeAddToChanges(A,i),this._appendAfter=A,A=A._next;else{let n=this._getOrCreateRecordForKey(o,i);A=this._insertBeforeOrAppend(A,n)}}),A){A._prev&&(A._prev._next=null),this._removalsHead=A;for(let i=A;i!==null;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,A){if(e){let i=e._prev;return A._next=e,A._prev=i,e._prev=A,i&&(i._next=A),e===this._mapHead&&(this._mapHead=A),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=A,A._prev=this._appendAfter):this._mapHead=A,this._appendAfter=A,null}_getOrCreateRecordForKey(e,A){if(this._records.has(e)){let o=this._records.get(e);this._maybeAddToChanges(o,A);let n=o._prev,g=o._next;return n&&(n._next=g),g&&(g._prev=n),o._next=null,o._prev=null,o}let i=new dd(e);return this._records.set(e,i),i.currentValue=A,this._addToAdditions(i),i}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;e!==null;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;e!=null;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,A){Object.is(A,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=A,this._addToChanges(e))}_addToAdditions(e){this._additionsHead===null?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){this._changesHead===null?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,A){e instanceof Map?e.forEach(A):Object.keys(e).forEach(i=>A(e[i],i))}},dd=class{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(e){this.key=e}};function dp(){return new eo([new Cd])}var eo=(()=>{class t{factories;static \u0275prov=v({token:t,providedIn:"root",factory:dp});constructor(A){this.factories=A}static create(A,i){if(i!=null){let o=i.factories.slice();A=A.concat(o)}return new t(A)}static extend(A){return{provide:t,useFactory:i=>t.create(A,i||dp()),deps:[[t,new $s,new $n]]}}find(A){let i=this.factories.find(o=>o.supports(A));if(i!=null)return i;throw new K(901,!1)}}return t})();function hp(){return new UB([new cd])}var UB=(()=>{class t{static \u0275prov=v({token:t,providedIn:"root",factory:hp});factories;constructor(A){this.factories=A}static create(A,i){if(i){let o=i.factories.slice();A=A.concat(o)}return new t(A)}static extend(A){return{provide:t,useFactory:i=>t.create(A,i||hp()),deps:[[t,new $s,new $n]]}}find(A){let i=this.factories.find(o=>o.supports(A));if(i)return i;throw new K(901,!1)}}return t})();var m0=yh(null,"core",[]),D0=(()=>{class t{constructor(A){}static \u0275fac=function(i){return new(i||t)(O(Kt))};static \u0275mod=V({type:t});static \u0275inj=Z({})}return t})();function tA(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function Re(t,e=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):e}function Mt(t){return Gc(t)}function _o(t,e){return Xa(t,e?.equal)}var hd=class{[lt];constructor(e){this[lt]=e}destroy(){this[lt].destroy()}};function EI(t,e){!e?.injector&&pd(EI);let A=e?.injector??Q(wA),i=e?.manualCleanup!==!0?A.get(hr):null,o,n=A.get(Zd,null,{optional:!0}),g=A.get(Wn);return n!==null&&!e?.forceRoot?(o=CU(n.view,g,t),i instanceof zC&&i._lView===n.view&&(i=null)):o=BU(t,A.get(Py),g),o.injector=A,i!==null&&(o.onDestroyFn=i.onDestroy(()=>o.destroy())),new hd(o)}var f0=hA(R({},Hg),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,hasRun:!1,cleanupFns:void 0,zone:null,kind:"effect",onDestroyFn:qs,run(){if(this.dirty=!1,this.hasRun&&!Wa(this))return;this.hasRun=!0;let t=i=>(this.cleanupFns??=[]).push(i),e=ks(this),A=PC(!1);try{this.maybeCleanup(),this.fn(t)}finally{PC(A),Va(this,e)}},maybeCleanup(){if(this.cleanupFns?.length)try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[]}}}),IU=hA(R({},f0),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){Fs(this),this.onDestroyFn(),this.maybeCleanup(),this.scheduler.remove(this)}}),aU=hA(R({},f0),{consumerMarkedDirty(){this.view[GA]|=8192,dr(this.view),this.notifier.notify(13)},destroy(){Fs(this),this.onDestroyFn(),this.maybeCleanup(),this.view[On]?.delete(this)}});function CU(t,e,A){let i=Object.create(aU);return i.view=t,i.zone=typeof Zone<"u"?Zone.current:null,i.notifier=e,i.fn=A,t[On]??=new Set,t[On].add(i),i.consumerMarkedDirty(i),i}function BU(t,e,A){let i=Object.create(IU);return i.fn=t,i.scheduler=e,i.notifier=A,i.zone=typeof Zone<"u"?Zone.current:null,i.scheduler.schedule(i),i.notifier.notify(12),i}function xB(t,e){let A=tn(t),i=e.elementInjector||dB();return new zn(A).create(i,e.projectableNodes,e.hostElement,e.environmentInjector)}function p0(t){let e=tn(t);if(!e)return null;let A=new zn(e);return{get selector(){return A.selector},get type(){return A.componentType},get inputs(){return A.inputs},get outputs(){return A.outputs},get ngContentSelectors(){return A.ngContentSelectors},get isStandalone(){return e.standalone},get isSignal(){return e.signals}}}var lA=new k("");var M0=null;function xt(){return M0}function Mh(t){M0??=t}var cI=class{},lI=(()=>{class t{historyGo(A){throw new Error("")}static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:()=>Q(R0),providedIn:"platform"})}return t})(),Rh=new k(""),R0=(()=>{class t extends lI{_location;_history;_doc=Q(lA);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return xt().getBaseHref(this._doc)}onPopState(A){let i=xt().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",A,!1),()=>i.removeEventListener("popstate",A)}onHashChange(A){let i=xt().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",A,!1),()=>i.removeEventListener("hashchange",A)}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(A){this._location.pathname=A}pushState(A,i,o){this._history.pushState(A,i,o)}replaceState(A,i,o){this._history.replaceState(A,i,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(A=0){this._history.go(A)}getState(){return this._history.state}static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:()=>new t,providedIn:"platform"})}return t})();function YB(t,e){return t?e?t.endsWith("/")?e.startsWith("/")?t+e.slice(1):t+e:e.startsWith("/")?t+e:`${t}/${e}`:t:e}function w0(t){let e=t.search(/#|\?|$/);return t[e-1]==="/"?t.slice(0,e-1)+t.slice(e):t}function Mi(t){return t&&t[0]!=="?"?`?${t}`:t}var Ko=(()=>{class t{historyGo(A){throw new Error("")}static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:()=>Q(HB),providedIn:"root"})}return t})(),JB=new k(""),HB=(()=>{class t extends Ko{_platformLocation;_baseHref;_removeListenerFns=[];constructor(A,i){super(),this._platformLocation=A,this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??Q(lA).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(A){this._removeListenerFns.push(this._platformLocation.onPopState(A),this._platformLocation.onHashChange(A))}getBaseHref(){return this._baseHref}prepareExternalUrl(A){return YB(this._baseHref,A)}path(A=!1){let i=this._platformLocation.pathname+Mi(this._platformLocation.search),o=this._platformLocation.hash;return o&&A?`${i}${o}`:i}pushState(A,i,o,n){let g=this.prepareExternalUrl(o+Mi(n));this._platformLocation.pushState(A,i,g)}replaceState(A,i,o,n){let g=this.prepareExternalUrl(o+Mi(n));this._platformLocation.replaceState(A,i,g)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(A=0){this._platformLocation.historyGo?.(A)}static \u0275fac=function(i){return new(i||t)(O(lI),O(JB,8))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),to=(()=>{class t{_subject=new _;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(A){this._locationStrategy=A;let i=this._locationStrategy.getBaseHref();this._basePath=cU(w0(y0(i))),this._locationStrategy.onPopState(o=>{this._subject.next({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(A=!1){return this.normalize(this._locationStrategy.path(A))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(A,i=""){return this.path()==this.normalize(A+Mi(i))}normalize(A){return t.stripTrailingSlash(EU(this._basePath,y0(A)))}prepareExternalUrl(A){return A&&A[0]!=="/"&&(A="/"+A),this._locationStrategy.prepareExternalUrl(A)}go(A,i="",o=null){this._locationStrategy.pushState(o,"",A,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(A+Mi(i)),o)}replaceState(A,i="",o=null){this._locationStrategy.replaceState(o,"",A,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(A+Mi(i)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(A=0){this._locationStrategy.historyGo?.(A)}onUrlChange(A){return this._urlChangeListeners.push(A),this._urlChangeSubscription??=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{let i=this._urlChangeListeners.indexOf(A);this._urlChangeListeners.splice(i,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(A="",i){this._urlChangeListeners.forEach(o=>o(A,i))}subscribe(A,i,o){return this._subject.subscribe({next:A,error:i??void 0,complete:o??void 0})}static normalizeQueryParams=Mi;static joinWithSlash=YB;static stripTrailingSlash=w0;static \u0275fac=function(i){return new(i||t)(O(Ko))};static \u0275prov=v({token:t,factory:()=>QU(),providedIn:"root"})}return t})();function QU(){return new to(O(Ko))}function EU(t,e){if(!t||!e.startsWith(t))return e;let A=e.substring(t.length);return A===""||["/",";","?","#"].includes(A[0])?A:e}function y0(t){return t.replace(/\/index.html$/,"")}function cU(t){if(new RegExp("^(https?:)?//").test(t)){let[,A]=t.split(/\/\/[^\/]+/);return A}return t}var Sh=(()=>{class t extends Ko{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(A,i){super(),this._platformLocation=A,i!=null&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(A){this._removeListenerFns.push(this._platformLocation.onPopState(A),this._platformLocation.onHashChange(A))}getBaseHref(){return this._baseHref}path(A=!1){let i=this._platformLocation.hash??"#";return i.length>0?i.substring(1):i}prepareExternalUrl(A){let i=YB(this._baseHref,A);return i.length>0?"#"+i:i}pushState(A,i,o,n){let g=this.prepareExternalUrl(o+Mi(n))||this._platformLocation.pathname;this._platformLocation.pushState(A,i,g)}replaceState(A,i,o,n){let g=this.prepareExternalUrl(o+Mi(n))||this._platformLocation.pathname;this._platformLocation.replaceState(A,i,g)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(A=0){this._platformLocation.historyGo?.(A)}static \u0275fac=function(i){return new(i||t)(O(lI),O(JB,8))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})();var kh=/\s+/,k0=[],Yt=(()=>{class t{_ngEl;_renderer;initialClasses=k0;rawClass;stateMap=new Map;constructor(A,i){this._ngEl=A,this._renderer=i}set klass(A){this.initialClasses=A!=null?A.trim().split(kh):k0}set ngClass(A){this.rawClass=typeof A=="string"?A.trim().split(kh):A}ngDoCheck(){for(let i of this.initialClasses)this._updateState(i,!0);let A=this.rawClass;if(Array.isArray(A)||A instanceof Set)for(let i of A)this._updateState(i,!0);else if(A!=null)for(let i of Object.keys(A))this._updateState(i,!!A[i]);this._applyStateDiff()}_updateState(A,i){let o=this.stateMap.get(A);o!==void 0?(o.enabled!==i&&(o.changed=!0,o.enabled=i),o.touched=!0):this.stateMap.set(A,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(let A of this.stateMap){let i=A[0],o=A[1];o.changed?(this._toggleClass(i,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),o.touched=!1}}_toggleClass(A,i){A=A.trim(),A.length>0&&A.split(kh).forEach(o=>{i?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static \u0275fac=function(i){return new(i||t)(AA(q),AA(Me))};static \u0275dir=Y({type:t,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return t})();var TB=class{$implicit;ngForOf;index;count;constructor(e,A,i,o){this.$implicit=e,this.ngForOf=A,this.index=i,this.count=o}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},Rt=(()=>{class t{_viewContainer;_template;_differs;set ngForOf(A){this._ngForOf=A,this._ngForOfDirty=!0}set ngForTrackBy(A){this._trackByFn=A}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(A,i,o){this._viewContainer=A,this._template=i,this._differs=o}set ngForTemplate(A){A&&(this._template=A)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let A=this._ngForOf;!this._differ&&A&&(this._differ=this._differs.find(A).create(this.ngForTrackBy))}if(this._differ){let A=this._differ.diff(this._ngForOf);A&&this._applyChanges(A)}}_applyChanges(A){let i=this._viewContainer;A.forEachOperation((o,n,g)=>{if(o.previousIndex==null)i.createEmbeddedView(this._template,new TB(o.item,this._ngForOf,-1,-1),g===null?void 0:g);else if(g==null)i.remove(n===null?void 0:n);else if(n!==null){let r=i.get(n);i.move(r,g),F0(r,o)}});for(let o=0,n=i.length;o<n;o++){let r=i.get(o).context;r.index=o,r.count=n,r.ngForOf=this._ngForOf}A.forEachIdentityChange(o=>{let n=i.get(o.currentIndex);F0(n,o)})}static ngTemplateContextGuard(A,i){return!0}static \u0275fac=function(i){return new(i||t)(AA(Ce),AA(ge),AA(eo))};static \u0275dir=Y({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return t})();function F0(t,e){t.context.$implicit=e.item}var Jt=(()=>{class t{_viewContainer;_context=new OB;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(A,i){this._viewContainer=A,this._thenTemplateRef=i}set ngIf(A){this._context.$implicit=this._context.ngIf=A,this._updateView()}set ngIfThen(A){b0(A,!1),this._thenTemplateRef=A,this._thenViewRef=null,this._updateView()}set ngIfElse(A){b0(A,!1),this._elseTemplateRef=A,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 ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(A,i){return!0}static \u0275fac=function(i){return new(i||t)(AA(Ce),AA(ge))};static \u0275dir=Y({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return t})(),OB=class{$implicit=null;ngIf=null};function b0(t,e){if(t&&!t.createEmbeddedView)throw new K(2020,!1)}var vh=(()=>{class t{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(A,i,o){this._ngEl=A,this._differs=i,this._renderer=o}set ngStyle(A){this._ngStyle=A,!this._differ&&A&&(this._differ=this._differs.find(A).create())}ngDoCheck(){if(this._differ){let A=this._differ.diff(this._ngStyle);A&&this._applyChanges(A)}}_setStyle(A,i){let[o,n]=A.split("."),g=o.indexOf("-")===-1?void 0:ji.DashCase;i!=null?this._renderer.setStyle(this._ngEl.nativeElement,o,n?`${i}${n}`:i,g):this._renderer.removeStyle(this._ngEl.nativeElement,o,g)}_applyChanges(A){A.forEachRemovedItem(i=>this._setStyle(i.key,null)),A.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),A.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}static \u0275fac=function(i){return new(i||t)(AA(q),AA(UB),AA(Me))};static \u0275dir=Y({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return t})(),dI=(()=>{class t{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(A){this._viewContainerRef=A}ngOnChanges(A){if(this._shouldRecreateView(A)){let i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let o=this._createContextForwardProxy();this._viewRef=i.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(A){return!!A.ngTemplateOutlet||!!A.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(A,i,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,i,o):!1,get:(A,i,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,i,o)}})}static \u0275fac=function(i){return new(i||t)(AA(Ce))};static \u0275dir=Y({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[VA]})}return t})();function lU(t,e){return new K(2100,!1)}var Fh=class{createSubscription(e,A){return Mt(()=>e.subscribe({next:A,error:i=>{throw i}}))}dispose(e){Mt(()=>e.unsubscribe())}},bh=class{createSubscription(e,A){return e.then(A,i=>{throw i})}dispose(e){}},dU=new bh,hU=new Fh,hI=(()=>{class t{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;constructor(A){this._ref=A}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(A){if(!this._obj){if(A)try{this.markForCheckOnValueUpdate=!1,this._subscribe(A)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return A!==this._obj?(this._dispose(),this.transform(A)):this._latestValue}_subscribe(A){this._obj=A,this._strategy=this._selectStrategy(A),this._subscription=this._strategy.createSubscription(A,i=>this._updateLatestValue(A,i))}_selectStrategy(A){if(In(A))return dU;if(hh(A))return hU;throw lU(t,A)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(A,i){A===this._obj&&(this._latestValue=i,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(i){return new(i||t)(AA(zA,16))};static \u0275pipe=GB({name:"async",type:t,pure:!1})}return t})();function uU(t,e){return{key:t,value:e}}var Nh=(()=>{class t{differs;constructor(A){this.differs=A}differ;keyValues=[];compareFn=S0;transform(A,i=S0){if(!A||!(A instanceof Map)&&typeof A!="object")return null;this.differ??=this.differs.find(A).create();let o=this.differ.diff(A),n=i!==this.compareFn;return o&&(this.keyValues=[],o.forEachItem(g=>{this.keyValues.push(uU(g.key,g.currentValue))})),(o||n)&&(i&&this.keyValues.sort(i),this.compareFn=i),this.keyValues}static \u0275fac=function(i){return new(i||t)(AA(UB,16))};static \u0275pipe=GB({name:"keyvalue",type:t,pure:!1})}return t})();function S0(t,e){let A=t.key,i=e.key;if(A===i)return 0;if(A==null)return 1;if(i==null)return-1;if(typeof A=="string"&&typeof i=="string")return A<i?-1:1;if(typeof A=="number"&&typeof i=="number")return A-i;if(typeof A=="boolean"&&typeof i=="boolean")return A<i?-1:1;let o=String(A),n=String(i);return o==n?0:o<n?-1:1}var Uo=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=Z({})}return t})();function uI(t,e){e=encodeURIComponent(e);for(let A of t.split(";")){let i=A.indexOf("="),[o,n]=i==-1?[A,""]:[A.slice(0,i),A.slice(i+1)];if(o.trim()===e)return decodeURIComponent(n)}return null}var PB="browser",v0="server";function io(t){return t===PB}function ZB(t){return t===v0}var sg=class{};var N0=(()=>{class t{static \u0275prov=v({token:t,providedIn:"root",factory:()=>new Gh(Q(lA),window)})}return t})(),Gh=class{document;window;offset=()=>[0,0];constructor(e,A){this.document=e,this.window=A}setOffset(e){Array.isArray(e)?this.offset=()=>e:this.offset=e}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(e){this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){let A=mU(this.document,e);A&&(this.scrollToElement(A),A.focus())}setHistoryScrollRestoration(e){this.window.history.scrollRestoration=e}scrollToElement(e){let A=e.getBoundingClientRect(),i=A.left+this.window.pageXOffset,o=A.top+this.window.pageYOffset,n=this.offset();this.window.scrollTo(i-n[0],o-n[1])}};function mU(t,e){let A=t.getElementById(e)||t.getElementsByName(e)[0];if(A)return A;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),o=i.currentNode;for(;o;){let n=o.shadowRoot;if(n){let g=n.getElementById(e)||n.querySelector(`[name="${e}"]`);if(g)return g}o=i.nextNode()}}return null}var WB=new k(""),Uh=(()=>{class t{_zone;_plugins;_eventNameToPlugin=new Map;constructor(A,i){this._zone=i,A.forEach(o=>{o.manager=this}),this._plugins=A.slice().reverse()}addEventListener(A,i,o,n){return this._findPluginFor(i).addEventListener(A,i,o,n)}getZone(){return this._zone}_findPluginFor(A){let i=this._eventNameToPlugin.get(A);if(i)return i;if(i=this._plugins.find(n=>n.supports(A)),!i)throw new K(5101,!1);return this._eventNameToPlugin.set(A,i),i}static \u0275fac=function(i){return new(i||t)(O(WB),O(X))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})(),mI=class{_doc;constructor(e){this._doc=e}manager},qB="ng-app-id";function G0(t){for(let e of t)e.remove()}function L0(t,e){let A=e.createElement("style");return A.textContent=t,A}function DU(t,e,A,i){let o=t.head?.querySelectorAll(`style[${qB}="${e}"],link[${qB}="${e}"]`);if(o)for(let n of o)n.removeAttribute(qB),n instanceof HTMLLinkElement?i.set(n.href.slice(n.href.lastIndexOf("/")+1),{usage:0,elements:[n]}):n.textContent&&A.set(n.textContent,{usage:0,elements:[n]})}function _h(t,e){let A=e.createElement("link");return A.setAttribute("rel","stylesheet"),A.setAttribute("href",t),A}var xh=(()=>{class t{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(A,i,o,n={}){this.doc=A,this.appId=i,this.nonce=o,this.isServer=ZB(n),DU(A,i,this.inline,this.external),this.hosts.add(A.head)}addStyles(A,i){for(let o of A)this.addUsage(o,this.inline,L0);i?.forEach(o=>this.addUsage(o,this.external,_h))}removeStyles(A,i){for(let o of A)this.removeUsage(o,this.inline);i?.forEach(o=>this.removeUsage(o,this.external))}addUsage(A,i,o){let n=i.get(A);n?n.usage++:i.set(A,{usage:1,elements:[...this.hosts].map(g=>this.addElement(g,o(A,this.doc)))})}removeUsage(A,i){let o=i.get(A);o&&(o.usage--,o.usage<=0&&(G0(o.elements),i.delete(A)))}ngOnDestroy(){for(let[,{elements:A}]of[...this.inline,...this.external])G0(A);this.hosts.clear()}addHost(A){this.hosts.add(A);for(let[i,{elements:o}]of this.inline)o.push(this.addElement(A,L0(i,this.doc)));for(let[i,{elements:o}]of this.external)o.push(this.addElement(A,_h(i,this.doc)))}removeHost(A){this.hosts.delete(A)}addElement(A,i){return this.nonce&&i.setAttribute("nonce",this.nonce),this.isServer&&i.setAttribute(qB,this.appId),A.appendChild(i)}static \u0275fac=function(i){return new(i||t)(O(lA),O(Dr),O(nI,8),O(jt))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})(),Lh={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/Math/MathML"},Yh=/%COMP%/g;var K0="%COMP%",fU=`_nghost-${K0}`,pU=`_ngcontent-${K0}`,wU=!0,yU=new k("",{providedIn:"root",factory:()=>wU});function MU(t){return pU.replace(Yh,t)}function RU(t){return fU.replace(Yh,t)}function U0(t,e){return e.map(A=>A.replace(Yh,t))}var pI=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(A,i,o,n,g,r,s,I=null,B=null){this.eventManager=A,this.sharedStylesHost=i,this.appId=o,this.removeStylesOnCompDestroy=n,this.doc=g,this.platformId=r,this.ngZone=s,this.nonce=I,this.tracingService=B,this.platformIsServer=ZB(r),this.defaultRenderer=new DI(A,g,s,this.platformIsServer,this.tracingService)}createRenderer(A,i){if(!A||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===zi.ShadowDom&&(i=hA(R({},i),{encapsulation:zi.Emulated}));let o=this.getOrCreateRenderer(A,i);return o instanceof VB?o.applyToHost(A):o instanceof fI&&o.applyStyles(),o}getOrCreateRenderer(A,i){let o=this.rendererByCompId,n=o.get(i.id);if(!n){let g=this.doc,r=this.ngZone,s=this.eventManager,I=this.sharedStylesHost,B=this.removeStylesOnCompDestroy,c=this.platformIsServer,D=this.tracingService;switch(i.encapsulation){case zi.Emulated:n=new VB(s,I,i,this.appId,B,g,r,c,D);break;case zi.ShadowDom:return new Kh(s,I,A,i,g,r,this.nonce,c,D);default:n=new fI(s,I,i,B,g,r,c,D);break}o.set(i.id,n)}return n}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(A){this.rendererByCompId.delete(A)}static \u0275fac=function(i){return new(i||t)(O(Uh),O(xh),O(Dr),O(yU),O(lA),O(jt),O(X),O(nI),O(fr,8))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})(),DI=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(e,A,i,o,n){this.eventManager=e,this.doc=A,this.ngZone=i,this.platformIsServer=o,this.tracingService=n}destroy(){}destroyNode=null;createElement(e,A){return A?this.doc.createElementNS(Lh[A]||A,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,A){(_0(e)?e.content:e).appendChild(A)}insertBefore(e,A,i){e&&(_0(e)?e.content:e).insertBefore(A,i)}removeChild(e,A){A.remove()}selectRootElement(e,A){let i=typeof e=="string"?this.doc.querySelector(e):e;if(!i)throw new K(-5104,!1);return A||(i.textContent=""),i}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,A,i,o){if(o){A=o+":"+A;let n=Lh[o];n?e.setAttributeNS(n,A,i):e.setAttribute(A,i)}else e.setAttribute(A,i)}removeAttribute(e,A,i){if(i){let o=Lh[i];o?e.removeAttributeNS(o,A):e.removeAttribute(`${i}:${A}`)}else e.removeAttribute(A)}addClass(e,A){e.classList.add(A)}removeClass(e,A){e.classList.remove(A)}setStyle(e,A,i,o){o&(ji.DashCase|ji.Important)?e.style.setProperty(A,i,o&ji.Important?"important":""):e.style[A]=i}removeStyle(e,A,i){i&ji.DashCase?e.style.removeProperty(A):e.style[A]=""}setProperty(e,A,i){e!=null&&(e[A]=i)}setValue(e,A){e.nodeValue=A}listen(e,A,i,o){if(typeof e=="string"&&(e=xt().getGlobalEventTarget(this.doc,e),!e))throw new K(5102,!1);let n=this.decoratePreventDefault(i);return this.tracingService?.wrapEventListener&&(n=this.tracingService.wrapEventListener(e,A,n)),this.eventManager.addEventListener(e,A,n,o)}decoratePreventDefault(e){return A=>{if(A==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(A)):e(A))===!1&&A.preventDefault()}}};function _0(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var Kh=class extends DI{sharedStylesHost;hostEl;shadowRoot;constructor(e,A,i,o,n,g,r,s,I){super(e,n,g,s,I),this.sharedStylesHost=A,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let B=o.styles;B=U0(o.id,B);for(let D of B){let h=document.createElement("style");r&&h.setAttribute("nonce",r),h.textContent=D,this.shadowRoot.appendChild(h)}let c=o.getExternalStyles?.();if(c)for(let D of c){let h=_h(D,n);r&&h.setAttribute("nonce",r),this.shadowRoot.appendChild(h)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,A){return super.appendChild(this.nodeOrShadowRoot(e),A)}insertBefore(e,A,i){return super.insertBefore(this.nodeOrShadowRoot(e),A,i)}removeChild(e,A){return super.removeChild(null,A)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},fI=class extends DI{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(e,A,i,o,n,g,r,s,I){super(e,n,g,r,s),this.sharedStylesHost=A,this.removeStylesOnCompDestroy=o;let B=i.styles;this.styles=I?U0(I,B):B,this.styleUrls=i.getExternalStyles?.(I)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},VB=class extends fI{contentAttr;hostAttr;constructor(e,A,i,o,n,g,r,s,I){let B=o+"-"+i.id;super(e,A,i,n,g,r,s,I,B),this.contentAttr=MU(B),this.hostAttr=RU(B)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,A){let i=super.createElement(e,A);return super.setAttribute(i,this.contentAttr,""),i}};var zB=class t extends cI{supportsDOMEvents=!0;static makeCurrent(){Mh(new t)}onAndCancel(e,A,i,o){return e.addEventListener(A,i,o),()=>{e.removeEventListener(A,i,o)}}dispatchEvent(e,A){e.dispatchEvent(A)}remove(e){e.remove()}createElement(e,A){return A=A||this.getDefaultDocument(),A.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,A){return A==="window"?window:A==="document"?e:A==="body"?e.body:null}getBaseHref(e){let A=kU();return A==null?null:FU(A)}resetBaseElement(){wI=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return uI(document.cookie,e)}},wI=null;function kU(){return wI=wI||document.querySelector("base"),wI?wI.getAttribute("href"):null}function FU(t){return new URL(t,document.baseURI).pathname}var jB=class{addToWindow(e){Dt.getAngularTestability=(i,o=!0)=>{let n=e.findTestabilityInTree(i,o);if(n==null)throw new K(5103,!1);return n},Dt.getAllAngularTestabilities=()=>e.getAllTestabilities(),Dt.getAllAngularRootElements=()=>e.getAllRootElements();let A=i=>{let o=Dt.getAllAngularTestabilities(),n=o.length,g=function(){n--,n==0&&i()};o.forEach(r=>{r.whenStable(g)})};Dt.frameworkStabilizers||(Dt.frameworkStabilizers=[]),Dt.frameworkStabilizers.push(A)}findTestabilityInTree(e,A,i){if(A==null)return null;let o=e.getTestability(A);return o??(i?xt().isShadowRoot(A)?this.findTestabilityInTree(e,A.host,!0):this.findTestabilityInTree(e,A.parentElement,!0):null)}},bU=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})(),Y0=(()=>{class t extends mI{constructor(A){super(A)}supports(A){return!0}addEventListener(A,i,o,n){return A.addEventListener(i,o,n),()=>this.removeEventListener(A,i,o,n)}removeEventListener(A,i,o,n){return A.removeEventListener(i,o,n)}static \u0275fac=function(i){return new(i||t)(O(lA))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})(),x0=["alt","control","meta","shift"],SU={"\b":"Backspace","	":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},vU={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},J0=(()=>{class t extends mI{constructor(A){super(A)}supports(A){return t.parseEventName(A)!=null}addEventListener(A,i,o,n){let g=t.parseEventName(i),r=t.eventCallback(g.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>xt().onAndCancel(A,g.domEventName,r,n))}static parseEventName(A){let i=A.toLowerCase().split("."),o=i.shift();if(i.length===0||!(o==="keydown"||o==="keyup"))return null;let n=t._normalizeKey(i.pop()),g="",r=i.indexOf("code");if(r>-1&&(i.splice(r,1),g="code."),x0.forEach(I=>{let B=i.indexOf(I);B>-1&&(i.splice(B,1),g+=I+".")}),g+=n,i.length!=0||n.length===0)return null;let s={};return s.domEventName=o,s.fullKey=g,s}static matchEventFullKeyCode(A,i){let o=SU[A.key]||A.key,n="";return i.indexOf("code.")>-1&&(o=A.code,n="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),x0.forEach(g=>{if(g!==o){let r=vU[g];r(A)&&(n+=g+".")}}),n+=o,n===i)}static eventCallback(A,i,o){return n=>{t.matchEventFullKeyCode(n,A)&&o.runGuarded(()=>i(n))}}static _normalizeKey(A){return A==="esc"?"escape":A}static \u0275fac=function(i){return new(i||t)(O(lA))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})();function NU(){zB.makeCurrent()}function GU(){return new pt}function LU(){return Gw(document),document}var _U=[{provide:jt,useValue:PB},{provide:Od,useValue:NU,multi:!0},{provide:lA,useFactory:LU}],XB=yh(m0,"browser",_U);var KU=[{provide:BI,useClass:jB},{provide:lh,useClass:LB,deps:[X,_B,BI]},{provide:LB,useClass:LB,deps:[X,_B,BI]}],UU=[{provide:lB,useValue:"root"},{provide:pt,useFactory:GU},{provide:WB,useClass:Y0,multi:!0,deps:[lA]},{provide:WB,useClass:J0,multi:!0,deps:[lA]},pI,xh,Uh,{provide:tt,useExisting:pI},{provide:sg,useClass:bU},[]],yI=(()=>{class t{constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=Z({providers:[...UU,...KU],imports:[Uo,D0]})}return t})();var yr=class{},MI=class{},Cn=class t{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(e){e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(`
`).forEach(A=>{let i=A.indexOf(":");if(i>0){let o=A.slice(0,i),n=A.slice(i+1).trim();this.addHeaderEntry(o,n)}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((A,i)=>{this.addHeaderEntry(i,A)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([A,i])=>{this.setHeaderEntries(A,i)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let A=this.headers.get(e.toLowerCase());return A&&A.length>0?A[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,A){return this.clone({name:e,value:A,op:"a"})}set(e,A){return this.clone({name:e,value:A,op:"s"})}delete(e,A){return this.clone({name:e,value:A,op:"d"})}maybeSetNormalizedName(e,A){this.normalizedNames.has(A)||this.normalizedNames.set(A,e)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(A=>{this.headers.set(A,e.headers.get(A)),this.normalizedNames.set(A,e.normalizedNames.get(A))})}clone(e){let A=new t;return A.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,A.lazyUpdate=(this.lazyUpdate||[]).concat([e]),A}applyUpdate(e){let A=e.name.toLowerCase();switch(e.op){case"a":case"s":let i=e.value;if(typeof i=="string"&&(i=[i]),i.length===0)return;this.maybeSetNormalizedName(e.name,A);let o=(e.op==="a"?this.headers.get(A):void 0)||[];o.push(...i),this.headers.set(A,o);break;case"d":let n=e.value;if(!n)this.headers.delete(A),this.normalizedNames.delete(A);else{let g=this.headers.get(A);if(!g)return;g=g.filter(r=>n.indexOf(r)===-1),g.length===0?(this.headers.delete(A),this.normalizedNames.delete(A)):this.headers.set(A,g)}break}}addHeaderEntry(e,A){let i=e.toLowerCase();this.maybeSetNormalizedName(e,i),this.headers.has(i)?this.headers.get(i).push(A):this.headers.set(i,[A])}setHeaderEntries(e,A){let i=(Array.isArray(A)?A:[A]).map(n=>n.toString()),o=e.toLowerCase();this.headers.set(o,i),this.maybeSetNormalizedName(e,o)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(A=>e(this.normalizedNames.get(A),this.headers.get(A)))}};var AQ=class{encodeKey(e){return H0(e)}encodeValue(e){return H0(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function xU(t,e){let A=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{let n=o.indexOf("="),[g,r]=n==-1?[e.decodeKey(o),""]:[e.decodeKey(o.slice(0,n)),e.decodeValue(o.slice(n+1))],s=A.get(g)||[];s.push(r),A.set(g,s)}),A}var YU=/%(\d[a-f0-9])/gi,JU={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function H0(t){return encodeURIComponent(t).replace(YU,(e,A)=>JU[A]??e)}function $B(t){return`${t}`}var xo=class t{map;encoder;updates=null;cloneFrom=null;constructor(e={}){if(this.encoder=e.encoder||new AQ,e.fromString){if(e.fromObject)throw new K(2805,!1);this.map=xU(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(A=>{let i=e.fromObject[A],o=Array.isArray(i)?i.map($B):[$B(i)];this.map.set(A,o)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let A=this.map.get(e);return A?A[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,A){return this.clone({param:e,value:A,op:"a"})}appendAll(e){let A=[];return Object.keys(e).forEach(i=>{let o=e[i];Array.isArray(o)?o.forEach(n=>{A.push({param:i,value:n,op:"a"})}):A.push({param:i,value:o,op:"a"})}),this.clone(A)}set(e,A){return this.clone({param:e,value:A,op:"s"})}delete(e,A){return this.clone({param:e,value:A,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let A=this.encoder.encodeKey(e);return this.map.get(e).map(i=>A+"="+this.encoder.encodeValue(i)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let A=new t({encoder:this.encoder});return A.cloneFrom=this.cloneFrom||this,A.updates=(this.updates||[]).concat(e),A}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let A=(e.op==="a"?this.map.get(e.param):void 0)||[];A.push($B(e.value)),this.map.set(e.param,A);break;case"d":if(e.value!==void 0){let i=this.map.get(e.param)||[],o=i.indexOf($B(e.value));o!==-1&&i.splice(o,1),i.length>0?this.map.set(e.param,i):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var eQ=class{map=new Map;set(e,A){return this.map.set(e,A),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function HU(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function T0(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function O0(t){return typeof Blob<"u"&&t instanceof Blob}function P0(t){return typeof FormData<"u"&&t instanceof FormData}function TU(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var Z0="Content-Type",q0="Accept",W0="X-Request-URL",z0="text/plain",j0="application/json",OU=`${j0}, ${z0}, */*`,wr=class t{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(e,A,i,o){this.url=A,this.method=e.toUpperCase();let n;if(HU(this.method)||o?(this.body=i!==void 0?i:null,n=o):n=i,n&&(this.reportProgress=!!n.reportProgress,this.withCredentials=!!n.withCredentials,n.responseType&&(this.responseType=n.responseType),n.headers&&(this.headers=n.headers),n.context&&(this.context=n.context),n.params&&(this.params=n.params),this.transferCache=n.transferCache),this.headers??=new Cn,this.context??=new eQ,!this.params)this.params=new xo,this.urlWithParams=A;else{let g=this.params.toString();if(g.length===0)this.urlWithParams=A;else{let r=A.indexOf("?"),s=r===-1?"?":r<A.length-1?"&":"";this.urlWithParams=A+s+g}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||T0(this.body)||O0(this.body)||P0(this.body)||TU(this.body)?this.body:this.body instanceof xo?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||P0(this.body)?null:O0(this.body)?this.body.type||null:T0(this.body)?null:typeof this.body=="string"?z0:this.body instanceof xo?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?j0:null}clone(e={}){let A=e.method||this.method,i=e.url||this.url,o=e.responseType||this.responseType,n=e.transferCache??this.transferCache,g=e.body!==void 0?e.body:this.body,r=e.withCredentials??this.withCredentials,s=e.reportProgress??this.reportProgress,I=e.headers||this.headers,B=e.params||this.params,c=e.context??this.context;return e.setHeaders!==void 0&&(I=Object.keys(e.setHeaders).reduce((D,h)=>D.set(h,e.setHeaders[h]),I)),e.setParams&&(B=Object.keys(e.setParams).reduce((D,h)=>D.set(h,e.setParams[h]),B)),new t(A,i,g,{params:B,headers:I,context:c,reportProgress:s,responseType:o,withCredentials:r,transferCache:n})}},ag=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(ag||{}),Mr=class{headers;status;statusText;url;ok;type;constructor(e,A=200,i="OK"){this.headers=e.headers||new Cn,this.status=e.status!==void 0?e.status:A,this.statusText=e.statusText||i,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},tQ=class t extends Mr{constructor(e={}){super(e)}type=ag.ResponseHeader;clone(e={}){return new t({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},RI=class t extends Mr{body;constructor(e={}){super(e),this.body=e.body!==void 0?e.body:null}type=ag.Response;clone(e={}){return new t({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},kI=class extends Mr{name="HttpErrorResponse";message;error;ok=!1;constructor(e){super(e,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},PU=200,ZU=204;function Jh(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var ot=(()=>{class t{handler;constructor(A){this.handler=A}request(A,i,o={}){let n;if(A instanceof wr)n=A;else{let s;o.headers instanceof Cn?s=o.headers:s=new Cn(o.headers);let I;o.params&&(o.params instanceof xo?I=o.params:I=new xo({fromObject:o.params})),n=new wr(A,i,o.body!==void 0?o.body:null,{headers:s,context:o.context,params:I,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let g=iA(n).pipe(Ti(s=>this.handler.handle(s)));if(A instanceof wr||o.observe==="events")return g;let r=g.pipe(kA(s=>s instanceof RI));switch(o.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return r.pipe(nA(s=>{if(s.body!==null&&!(s.body instanceof ArrayBuffer))throw new K(2806,!1);return s.body}));case"blob":return r.pipe(nA(s=>{if(s.body!==null&&!(s.body instanceof Blob))throw new K(2807,!1);return s.body}));case"text":return r.pipe(nA(s=>{if(s.body!==null&&typeof s.body!="string")throw new K(2808,!1);return s.body}));case"json":default:return r.pipe(nA(s=>s.body))}case"response":return r;default:throw new K(2809,!1)}}delete(A,i={}){return this.request("DELETE",A,i)}get(A,i={}){return this.request("GET",A,i)}head(A,i={}){return this.request("HEAD",A,i)}jsonp(A,i){return this.request("JSONP",A,{params:new xo().append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(A,i={}){return this.request("OPTIONS",A,i)}patch(A,i,o={}){return this.request("PATCH",A,Jh(o,i))}post(A,i,o={}){return this.request("POST",A,Jh(o,i))}put(A,i,o={}){return this.request("PUT",A,Jh(o,i))}static \u0275fac=function(i){return new(i||t)(O(yr))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})();var qU=new k("");function X0(t,e){return e(t)}function VU(t,e){return(A,i)=>e.intercept(A,{handle:o=>t(o,i)})}function WU(t,e,A){return(i,o)=>wt(A,()=>e(i,n=>t(n,o)))}var $0=new k(""),Th=new k(""),AM=new k(""),Oh=new k("",{providedIn:"root",factory:()=>!0});function zU(){let t=null;return(e,A)=>{t===null&&(t=(Q($0,{optional:!0})??[]).reduceRight(VU,X0));let i=Q(No);if(Q(Oh)){let n=i.add();return t(e,A).pipe(Oi(()=>i.remove(n)))}else return t(e,A)}}var iQ=(()=>{class t extends yr{backend;injector;chain=null;pendingTasks=Q(No);contributeToStability=Q(Oh);constructor(A,i){super(),this.backend=A,this.injector=i}handle(A){if(this.chain===null){let i=Array.from(new Set([...this.injector.get(Th),...this.injector.get(AM,[])]));this.chain=i.reduceRight((o,n)=>WU(o,n,this.injector),X0)}if(this.contributeToStability){let i=this.pendingTasks.add();return this.chain(A,o=>this.backend.handle(o)).pipe(Oi(()=>this.pendingTasks.remove(i)))}else return this.chain(A,i=>this.backend.handle(i))}static \u0275fac=function(i){return new(i||t)(O(MI),O(_e))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})();var jU=/^\)\]\}',?\n/,XU=RegExp(`^${W0}:`,"m");function $U(t){return"responseURL"in t&&t.responseURL?t.responseURL:XU.test(t.getAllResponseHeaders())?t.getResponseHeader(W0):null}var Hh=(()=>{class t{xhrFactory;constructor(A){this.xhrFactory=A}handle(A){if(A.method==="JSONP")throw new K(-2800,!1);let i=this.xhrFactory;return(i.\u0275loadImpl?re(i.\u0275loadImpl()):iA(null)).pipe(se(()=>new QA(n=>{let g=i.build();if(g.open(A.method,A.urlWithParams),A.withCredentials&&(g.withCredentials=!0),A.headers.forEach((y,L)=>g.setRequestHeader(y,L.join(","))),A.headers.has(q0)||g.setRequestHeader(q0,OU),!A.headers.has(Z0)){let y=A.detectContentTypeHeader();y!==null&&g.setRequestHeader(Z0,y)}if(A.responseType){let y=A.responseType.toLowerCase();g.responseType=y!=="json"?y:"text"}let r=A.serializeBody(),s=null,I=()=>{if(s!==null)return s;let y=g.statusText||"OK",L=new Cn(g.getAllResponseHeaders()),P=$U(g)||A.url;return s=new tQ({headers:L,status:g.status,statusText:y,url:P}),s},B=()=>{let{headers:y,status:L,statusText:P,url:DA}=I(),UA=null;L!==ZU&&(UA=typeof g.response>"u"?g.responseText:g.response),L===0&&(L=UA?PU:0);let fA=L>=200&&L<300;if(A.responseType==="json"&&typeof UA=="string"){let ct=UA;UA=UA.replace(jU,"");try{UA=UA!==""?JSON.parse(UA):null}catch(ue){UA=ct,fA&&(fA=!1,UA={error:ue,text:UA})}}fA?(n.next(new RI({body:UA,headers:y,status:L,statusText:P,url:DA||void 0})),n.complete()):n.error(new kI({error:UA,headers:y,status:L,statusText:P,url:DA||void 0}))},c=y=>{let{url:L}=I(),P=new kI({error:y,status:g.status||0,statusText:g.statusText||"Unknown Error",url:L||void 0});n.error(P)},D=!1,h=y=>{D||(n.next(I()),D=!0);let L={type:ag.DownloadProgress,loaded:y.loaded};y.lengthComputable&&(L.total=y.total),A.responseType==="text"&&g.responseText&&(L.partialText=g.responseText),n.next(L)},p=y=>{let L={type:ag.UploadProgress,loaded:y.loaded};y.lengthComputable&&(L.total=y.total),n.next(L)};return g.addEventListener("load",B),g.addEventListener("error",c),g.addEventListener("timeout",c),g.addEventListener("abort",c),A.reportProgress&&(g.addEventListener("progress",h),r!==null&&g.upload&&g.upload.addEventListener("progress",p)),g.send(r),n.next({type:ag.Sent}),()=>{g.removeEventListener("error",c),g.removeEventListener("abort",c),g.removeEventListener("load",B),g.removeEventListener("timeout",c),A.reportProgress&&(g.removeEventListener("progress",h),r!==null&&g.upload&&g.upload.removeEventListener("progress",p)),g.readyState!==g.DONE&&g.abort()}})))}static \u0275fac=function(i){return new(i||t)(O(sg))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})(),eM=new k(""),Ax="XSRF-TOKEN",ex=new k("",{providedIn:"root",factory:()=>Ax}),tx="X-XSRF-TOKEN",ix=new k("",{providedIn:"root",factory:()=>tx}),FI=class{},ox=(()=>{class t{doc;platform;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(A,i,o){this.doc=A,this.platform=i,this.cookieName=o}getToken(){if(this.platform==="server")return null;let A=this.doc.cookie||"";return A!==this.lastCookieString&&(this.parseCount++,this.lastToken=uI(A,this.cookieName),this.lastCookieString=A),this.lastToken}static \u0275fac=function(i){return new(i||t)(O(lA),O(jt),O(ex))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})();function nx(t,e){let A=t.url.toLowerCase();if(!Q(eM)||t.method==="GET"||t.method==="HEAD"||A.startsWith("http://")||A.startsWith("https://"))return e(t);let i=Q(FI).getToken(),o=Q(ix);return i!=null&&!t.headers.has(o)&&(t=t.clone({headers:t.headers.set(o,i)})),e(t)}var Ph=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(Ph||{});function gx(t,e){return{\u0275kind:t,\u0275providers:e}}function tM(...t){let e=[ot,Hh,iQ,{provide:yr,useExisting:iQ},{provide:MI,useFactory:()=>Q(qU,{optional:!0})??Q(Hh)},{provide:Th,useValue:nx,multi:!0},{provide:eM,useValue:!0},{provide:FI,useClass:ox}];for(let A of t)e.push(...A.\u0275providers);return eI(e)}var V0=new k("");function iM(){return gx(Ph.LegacyInterceptors,[{provide:V0,useFactory:zU},{provide:Th,useExisting:V0,multi:!0}])}var Zh=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=Z({providers:[tM(iM())]})}return t})();var oM=(()=>{class t{_doc;constructor(A){this._doc=A}getTitle(){return this._doc.title}setTitle(A){this._doc.title=A||""}static \u0275fac=function(i){return new(i||t)(O(lA))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Bg=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:function(i){let o=null;return i?o=new(i||t):o=O(rx),o},providedIn:"root"})}return t})(),rx=(()=>{class t extends Bg{_doc;constructor(A){super(),this._doc=A}sanitize(A,i){if(i==null)return null;switch(A){case Ve.NONE:return i;case Ve.HTML:return sn(i,"HTML")?mi(i):Vd(this._doc,String(i)).toString();case Ve.STYLE:return sn(i,"Style")?mi(i):i;case Ve.SCRIPT:if(sn(i,"Script"))return mi(i);throw new K(5200,!1);case Ve.URL:return sn(i,"URL")?mi(i):yB(String(i));case Ve.RESOURCE_URL:if(sn(i,"ResourceURL"))return mi(i);throw new K(5201,!1);default:throw new K(5202,!1)}}bypassSecurityTrustHtml(A){return Jw(A)}bypassSecurityTrustStyle(A){return Hw(A)}bypassSecurityTrustScript(A){return Tw(A)}bypassSecurityTrustUrl(A){return Ow(A)}bypassSecurityTrustResourceUrl(A){return Pw(A)}static \u0275fac=function(i){return new(i||t)(O(lA))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var CM=(()=>{class t{_renderer;_elementRef;onChange=A=>{};onTouched=()=>{};constructor(A,i){this._renderer=A,this._elementRef=i}setProperty(A,i){this._renderer.setProperty(this._elementRef.nativeElement,A,i)}registerOnTouched(A){this.onTouched=A}registerOnChange(A){this.onChange=A}setDisabledState(A){this.setProperty("disabled",A)}static \u0275fac=function(i){return new(i||t)(AA(Me),AA(q))};static \u0275dir=Y({type:t})}return t})(),sx=(()=>{class t extends CM{static \u0275fac=(()=>{let A;return function(o){return(A||(A=WA(t)))(o||t)}})();static \u0275dir=Y({type:t,features:[EA]})}return t})(),Eg=new k("");var Ix={provide:Eg,useExisting:Ct(()=>oo),multi:!0};function ax(){let t=xt()?xt().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var Cx=new k(""),oo=(()=>{class t extends CM{_compositionMode;_composing=!1;constructor(A,i,o){super(A,i),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!ax())}writeValue(A){let i=A??"";this.setProperty("value",i)}_handleInput(A){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(A)}_compositionStart(){this._composing=!0}_compositionEnd(A){this._composing=!1,this._compositionMode&&this.onChange(A)}static \u0275fac=function(i){return new(i||t)(AA(Me),AA(q),AA(Cx,8))};static \u0275dir=Y({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,o){i&1&&x("input",function(g){return o._handleInput(g.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(g){return o._compositionEnd(g.target.value)})},standalone:!1,features:[LA([Ix]),EA]})}return t})();function Wh(t){return t==null||zh(t)===0}function zh(t){return t==null?null:Array.isArray(t)||typeof t=="string"?t.length:t instanceof Set?t.size:null}var Qn=new k(""),cQ=new k(""),Bx=/^(?=.{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])?)*$/,Fr=class{static min(e){return Qx(e)}static max(e){return Ex(e)}static required(e){return cx(e)}static requiredTrue(e){return lx(e)}static email(e){return dx(e)}static minLength(e){return hx(e)}static maxLength(e){return ux(e)}static pattern(e){return mx(e)}static nullValidator(e){return BM()}static compose(e){return hM(e)}static composeAsync(e){return uM(e)}};function Qx(t){return e=>{if(e.value==null||t==null)return null;let A=parseFloat(e.value);return!isNaN(A)&&A<t?{min:{min:t,actual:e.value}}:null}}function Ex(t){return e=>{if(e.value==null||t==null)return null;let A=parseFloat(e.value);return!isNaN(A)&&A>t?{max:{max:t,actual:e.value}}:null}}function cx(t){return Wh(t.value)?{required:!0}:null}function lx(t){return t.value===!0?null:{required:!0}}function dx(t){return Wh(t.value)||Bx.test(t.value)?null:{email:!0}}function hx(t){return e=>{let A=e.value?.length??zh(e.value);return A===null||A===0?null:A<t?{minlength:{requiredLength:t,actualLength:A}}:null}}function ux(t){return e=>{let A=e.value?.length??zh(e.value);return A!==null&&A>t?{maxlength:{requiredLength:t,actualLength:A}}:null}}function mx(t){if(!t)return BM;let e,A;return typeof t=="string"?(A="",t.charAt(0)!=="^"&&(A+="^"),A+=t,t.charAt(t.length-1)!=="$"&&(A+="$"),e=new RegExp(A)):(A=t.toString(),e=t),i=>{if(Wh(i.value))return null;let o=i.value;return e.test(o)?null:{pattern:{requiredPattern:A,actualValue:o}}}}function BM(t){return null}function QM(t){return t!=null}function EM(t){return In(t)?re(t):t}function cM(t){let e={};return t.forEach(A=>{e=A!=null?R(R({},e),A):e}),Object.keys(e).length===0?null:e}function lM(t,e){return e.map(A=>A(t))}function Dx(t){return!t.validate}function dM(t){return t.map(e=>Dx(e)?e:A=>e.validate(A))}function hM(t){if(!t)return null;let e=t.filter(QM);return e.length==0?null:function(A){return cM(lM(A,e))}}function jh(t){return t!=null?hM(dM(t)):null}function uM(t){if(!t)return null;let e=t.filter(QM);return e.length==0?null:function(A){let i=lM(A,e).map(EM);return _s(i).pipe(nA(cM))}}function Xh(t){return t!=null?uM(dM(t)):null}function nM(t,e){return t===null?[e]:Array.isArray(t)?[...t,e]:[t,e]}function mM(t){return t._rawValidators}function DM(t){return t._rawAsyncValidators}function qh(t){return t?Array.isArray(t)?t:[t]:[]}function nQ(t,e){return Array.isArray(t)?t.includes(e):t===e}function gM(t,e){let A=qh(e);return qh(t).forEach(o=>{nQ(A,o)||A.push(o)}),A}function rM(t,e){return qh(e).filter(A=>!nQ(t,A))}var gQ=class{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}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=jh(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=Xh(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,A){return this.control?this.control.hasError(e,A):!1}getError(e,A){return this.control?this.control.getError(e,A):null}},Qg=class extends gQ{name;get formDirective(){return null}get path(){return null}},Ri=class extends gQ{_parent=null;name=null;valueAccessor=null},Vh=class{_cd;constructor(e){this._cd=e}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},fx={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},p7=hA(R({},fx),{"[class.ng-submitted]":"isSubmitted"}),no=(()=>{class t extends Vh{constructor(A){super(A)}static \u0275fac=function(i){return new(i||t)(AA(Ri,2))};static \u0275dir=Y({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,o){i&2&&oA("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},standalone:!1,features:[EA]})}return t})();var SI="VALID",oQ="INVALID",Rr="PENDING",vI="DISABLED",Bn=class{},rQ=class extends Bn{value;source;constructor(e,A){super(),this.value=e,this.source=A}},GI=class extends Bn{pristine;source;constructor(e,A){super(),this.pristine=e,this.source=A}},LI=class extends Bn{touched;source;constructor(e,A){super(),this.touched=e,this.source=A}},kr=class extends Bn{status;source;constructor(e,A){super(),this.status=e,this.source=A}},sQ=class extends Bn{source;constructor(e){super(),this.source=e}},IQ=class extends Bn{source;constructor(e){super(),this.source=e}};function fM(t){return(lQ(t)?t.validators:t)||null}function px(t){return Array.isArray(t)?jh(t):t||null}function pM(t,e){return(lQ(e)?e.asyncValidators:t)||null}function wx(t){return Array.isArray(t)?Xh(t):t||null}function lQ(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function yx(t,e,A){let i=t.controls;if(!(e?Object.keys(i):i).length)throw new K(1e3,"");if(!i[A])throw new K(1001,"")}function Mx(t,e,A){t._forEachChild((i,o)=>{if(A[o]===void 0)throw new K(1002,"")})}var aQ=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(e,A){this._assignValidators(e),this._assignAsyncValidators(A)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get status(){return Mt(this.statusReactive)}set status(e){Mt(()=>this.statusReactive.set(e))}_status=_o(()=>this.statusReactive());statusReactive=Ut(void 0);get valid(){return this.status===SI}get invalid(){return this.status===oQ}get pending(){return this.status==Rr}get disabled(){return this.status===vI}get enabled(){return this.status!==vI}errors;get pristine(){return Mt(this.pristineReactive)}set pristine(e){Mt(()=>this.pristineReactive.set(e))}_pristine=_o(()=>this.pristineReactive());pristineReactive=Ut(!0);get dirty(){return!this.pristine}get touched(){return Mt(this.touchedReactive)}set touched(e){Mt(()=>this.touchedReactive.set(e))}_touched=_o(()=>this.touchedReactive());touchedReactive=Ut(!1);get untouched(){return!this.touched}_events=new _;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(gM(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(gM(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(rM(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(rM(e,this._rawAsyncValidators))}hasValidator(e){return nQ(this._rawValidators,e)}hasAsyncValidator(e){return nQ(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let A=this.touched===!1;this.touched=!0;let i=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(hA(R({},e),{sourceControl:i})),A&&e.emitEvent!==!1&&this._events.next(new LI(!0,i))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(A=>A.markAllAsTouched(e))}markAsUntouched(e={}){let A=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let i=e.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:i})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,i),A&&e.emitEvent!==!1&&this._events.next(new LI(!1,i))}markAsDirty(e={}){let A=this.pristine===!0;this.pristine=!1;let i=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(hA(R({},e),{sourceControl:i})),A&&e.emitEvent!==!1&&this._events.next(new GI(!1,i))}markAsPristine(e={}){let A=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let i=e.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,i),A&&e.emitEvent!==!1&&this._events.next(new GI(!0,i))}markAsPending(e={}){this.status=Rr;let A=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new kr(this.status,A)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(hA(R({},e),{sourceControl:A}))}disable(e={}){let A=this._parentMarkedDirty(e.onlySelf);this.status=vI,this.errors=null,this._forEachChild(o=>{o.disable(hA(R({},e),{onlySelf:!0}))}),this._updateValue();let i=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new rQ(this.value,i)),this._events.next(new kr(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(hA(R({},e),{skipPristineCheck:A}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(e={}){let A=this._parentMarkedDirty(e.onlySelf);this.status=SI,this._forEachChild(i=>{i.enable(hA(R({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(hA(R({},e),{skipPristineCheck:A}),this),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(e,A){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},A),this._parent._updateTouched({},A))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let i=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===SI||this.status===Rr)&&this._runAsyncValidator(i,e.emitEvent)}let A=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new rQ(this.value,A)),this._events.next(new kr(this.status,A)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(hA(R({},e),{sourceControl:A}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(A=>A._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?vI:SI}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,A){if(this.asyncValidator){this.status=Rr,this._hasOwnPendingAsyncValidator={emitEvent:A!==!1};let i=EM(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:A,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let e=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,A={}){this.errors=e,this._updateControlsErrors(A.emitEvent!==!1,this,A.shouldHaveEmitted)}get(e){let A=e;return A==null||(Array.isArray(A)||(A=A.split(".")),A.length===0)?null:A.reduce((i,o)=>i&&i._find(o),this)}getError(e,A){let i=A?this.get(A):this;return i&&i.errors?i.errors[e]:null}hasError(e,A){return!!this.getError(e,A)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,A,i){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||i)&&this._events.next(new kr(this.status,A)),this._parent&&this._parent._updateControlsErrors(e,A,i)}_initObservables(){this.valueChanges=new $,this.statusChanges=new $}_calculateStatus(){return this._allControlsDisabled()?vI:this.errors?oQ:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Rr)?Rr:this._anyControlsHaveStatus(oQ)?oQ:SI}_anyControlsHaveStatus(e){return this._anyControls(A=>A.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,A){let i=!this._anyControlsDirty(),o=this.pristine!==i;this.pristine=i,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,A),o&&this._events.next(new GI(this.pristine,A))}_updateTouched(e={},A){this.touched=this._anyControlsTouched(),this._events.next(new LI(this.touched,A)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,A)}_onDisabledChange=[];_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){lQ(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let A=this._parent&&this._parent.dirty;return!e&&!!A&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=px(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=wx(this._rawAsyncValidators)}},CQ=class extends aQ{constructor(e,A,i){super(fM(A),pM(i,A)),this.controls=e,this._initObservables(),this._setUpdateStrategy(A),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(e,A){return this.controls[e]?this.controls[e]:(this.controls[e]=A,A.setParent(this),A._registerOnCollectionChange(this._onCollectionChange),A)}addControl(e,A,i={}){this.registerControl(e,A),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(e,A={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:A.emitEvent}),this._onCollectionChange()}setControl(e,A,i={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],A&&this.registerControl(e,A),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,A={}){Mx(this,!0,e),Object.keys(e).forEach(i=>{yx(this,!0,i),this.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:A.emitEvent})}),this.updateValueAndValidity(A)}patchValue(e,A={}){e!=null&&(Object.keys(e).forEach(i=>{let o=this.controls[i];o&&o.patchValue(e[i],{onlySelf:!0,emitEvent:A.emitEvent})}),this.updateValueAndValidity(A))}reset(e={},A={}){this._forEachChild((i,o)=>{i.reset(e?e[o]:null,{onlySelf:!0,emitEvent:A.emitEvent})}),this._updatePristine(A,this),this._updateTouched(A,this),this.updateValueAndValidity(A)}getRawValue(){return this._reduceChildren({},(e,A,i)=>(e[i]=A.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(A,i)=>i._syncPendingControls()?!0:A);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(A=>{let i=this.controls[A];i&&e(i,A)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[A,i]of Object.entries(this.controls))if(this.contains(A)&&e(i))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(A,i,o)=>((i.enabled||this.disabled)&&(A[o]=i.value),A))}_reduceChildren(e,A){let i=e;return this._forEachChild((o,n)=>{i=A(i,o,n)}),i}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}};var br=new k("",{providedIn:"root",factory:()=>dQ}),dQ="always";function Rx(t,e){return[...e.path,t]}function _I(t,e,A=dQ){$h(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||A==="always")&&e.valueAccessor.setDisabledState?.(t.disabled),Fx(t,e),Sx(t,e),bx(t,e),kx(t,e)}function BQ(t,e,A=!0){let i=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(i),e.valueAccessor.registerOnTouched(i)),EQ(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function QQ(t,e){t.forEach(A=>{A.registerOnValidatorChange&&A.registerOnValidatorChange(e)})}function kx(t,e){if(e.valueAccessor.setDisabledState){let A=i=>{e.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(A),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(A)})}}function $h(t,e){let A=mM(t);e.validator!==null?t.setValidators(nM(A,e.validator)):typeof A=="function"&&t.setValidators([A]);let i=DM(t);e.asyncValidator!==null?t.setAsyncValidators(nM(i,e.asyncValidator)):typeof i=="function"&&t.setAsyncValidators([i]);let o=()=>t.updateValueAndValidity();QQ(e._rawValidators,o),QQ(e._rawAsyncValidators,o)}function EQ(t,e){let A=!1;if(t!==null){if(e.validator!==null){let o=mM(t);if(Array.isArray(o)&&o.length>0){let n=o.filter(g=>g!==e.validator);n.length!==o.length&&(A=!0,t.setValidators(n))}}if(e.asyncValidator!==null){let o=DM(t);if(Array.isArray(o)&&o.length>0){let n=o.filter(g=>g!==e.asyncValidator);n.length!==o.length&&(A=!0,t.setAsyncValidators(n))}}}let i=()=>{};return QQ(e._rawValidators,i),QQ(e._rawAsyncValidators,i),A}function Fx(t,e){e.valueAccessor.registerOnChange(A=>{t._pendingValue=A,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&wM(t,e)})}function bx(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&wM(t,e),t.updateOn!=="submit"&&t.markAsTouched()})}function wM(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Sx(t,e){let A=(i,o)=>{e.valueAccessor.writeValue(i),o&&e.viewToModelUpdate(i)};t.registerOnChange(A),e._registerOnDestroy(()=>{t._unregisterOnChange(A)})}function yM(t,e){t==null,$h(t,e)}function vx(t,e){return EQ(t,e)}function MM(t,e){if(!t.hasOwnProperty("model"))return!1;let A=t.model;return A.isFirstChange()?!0:!Object.is(e,A.currentValue)}function Nx(t){return Object.getPrototypeOf(t.constructor)===sx}function RM(t,e){t._syncPendingControls(),e.forEach(A=>{let i=A.control;i.updateOn==="submit"&&i._pendingChange&&(A.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function kM(t,e){if(!e)return null;Array.isArray(e);let A,i,o;return e.forEach(n=>{n.constructor===oo?A=n:Nx(n)?i=n:o=n}),o||i||A||null}function Gx(t,e){let A=t.indexOf(e);A>-1&&t.splice(A,1)}var Lx={provide:Qg,useExisting:Ct(()=>KI)},NI=Promise.resolve(),KI=(()=>{class t extends Qg{callSetDisabledState;get submitted(){return Mt(this.submittedReactive)}_submitted=_o(()=>this.submittedReactive());submittedReactive=Ut(!1);_directives=new Set;form;ngSubmit=new $;options;constructor(A,i,o){super(),this.callSetDisabledState=o,this.form=new CQ({},jh(A),Xh(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(A){NI.then(()=>{let i=this._findContainer(A.path);A.control=i.registerControl(A.name,A.control),_I(A.control,A,this.callSetDisabledState),A.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(A)})}getControl(A){return this.form.get(A.path)}removeControl(A){NI.then(()=>{let i=this._findContainer(A.path);i&&i.removeControl(A.name),this._directives.delete(A)})}addFormGroup(A){NI.then(()=>{let i=this._findContainer(A.path),o=new CQ({});yM(o,A),i.registerControl(A.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(A){NI.then(()=>{let i=this._findContainer(A.path);i&&i.removeControl(A.name)})}getFormGroup(A){return this.form.get(A.path)}updateModel(A,i){NI.then(()=>{this.form.get(A.path).setValue(i)})}setValue(A){this.control.setValue(A)}onSubmit(A){return this.submittedReactive.set(!0),RM(this.form,this._directives),this.ngSubmit.emit(A),this.form._events.next(new sQ(this.control)),A?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(A=void 0){this.form.reset(A),this.submittedReactive.set(!1),this.form._events.next(new IQ(this.form))}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(A){return A.pop(),A.length?this.form.get(A):this.form}static \u0275fac=function(i){return new(i||t)(AA(Qn,10),AA(cQ,10),AA(br,8))};static \u0275dir=Y({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(i,o){i&1&&x("submit",function(g){return o.onSubmit(g)})("reset",function(){return o.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[LA([Lx]),EA]})}return t})();function sM(t,e){let A=t.indexOf(e);A>-1&&t.splice(A,1)}function IM(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var hQ=class extends aQ{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(e=null,A,i){super(fM(A),pM(i,A)),this._applyFormState(e),this._setUpdateStrategy(A),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),lQ(A)&&(A.nonNullable||A.initialValueIsDefault)&&(IM(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,A={}){this.value=this._pendingValue=e,this._onChange.length&&A.emitModelToViewChange!==!1&&this._onChange.forEach(i=>i(this.value,A.emitViewToModelChange!==!1)),this.updateValueAndValidity(A)}patchValue(e,A={}){this.setValue(e,A)}reset(e=this.defaultValue,A={}){this._applyFormState(e),this.markAsPristine(A),this.markAsUntouched(A),this.setValue(this.value,A),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){sM(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){sM(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){IM(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var _x=t=>t instanceof hQ;var Kx={provide:Ri,useExisting:Ct(()=>ki)},aM=Promise.resolve(),ki=(()=>{class t extends Ri{_changeDetectorRef;callSetDisabledState;control=new hQ;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new $;constructor(A,i,o,n,g,r){super(),this._changeDetectorRef=g,this.callSetDisabledState=r,this._parent=A,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=kM(this,n)}ngOnChanges(A){if(this._checkForErrors(),!this._registered||"name"in A){if(this._registered&&(this._checkName(),this.formDirective)){let i=A.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in A&&this._updateDisabled(A),MM(A,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(A){this.viewModel=A,this.update.emit(A)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){_I(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(A){aM.then(()=>{this.control.setValue(A,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(A){let i=A.isDisabled.currentValue,o=i!==0&&tA(i);aM.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(A){return this._parent?Rx(A,this._parent):[A]}static \u0275fac=function(i){return new(i||t)(AA(Qg,9),AA(Qn,10),AA(cQ,10),AA(Eg,10),AA(zA,8),AA(br,8))};static \u0275dir=Y({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[LA([Kx]),EA,VA]})}return t})();var FM=new k(""),Ux={provide:Ri,useExisting:Ct(()=>Au)},Au=(()=>{class t extends Ri{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(A){}model;update=new $;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(A,i,o,n,g){super(),this._ngModelWarningConfig=n,this.callSetDisabledState=g,this._setValidators(A),this._setAsyncValidators(i),this.valueAccessor=kM(this,o)}ngOnChanges(A){if(this._isControlChanged(A)){let i=A.form.previousValue;i&&BQ(i,this,!1),_I(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}MM(A,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&BQ(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(A){this.viewModel=A,this.update.emit(A)}_isControlChanged(A){return A.hasOwnProperty("form")}static \u0275fac=function(i){return new(i||t)(AA(Qn,10),AA(cQ,10),AA(Eg,10),AA(FM,8),AA(br,8))};static \u0275dir=Y({type:t,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[LA([Ux]),EA,VA]})}return t})(),xx={provide:Qg,useExisting:Ct(()=>UI)},UI=(()=>{class t extends Qg{callSetDisabledState;get submitted(){return Mt(this._submittedReactive)}set submitted(A){this._submittedReactive.set(A)}_submitted=_o(()=>this._submittedReactive());_submittedReactive=Ut(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new $;constructor(A,i,o){super(),this.callSetDisabledState=o,this._setValidators(A),this._setAsyncValidators(i)}ngOnChanges(A){A.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(EQ(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(A){let i=this.form.get(A.path);return _I(i,A,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(A),i}getControl(A){return this.form.get(A.path)}removeControl(A){BQ(A.control||null,A,!1),Gx(this.directives,A)}addFormGroup(A){this._setUpFormContainer(A)}removeFormGroup(A){this._cleanUpFormContainer(A)}getFormGroup(A){return this.form.get(A.path)}addFormArray(A){this._setUpFormContainer(A)}removeFormArray(A){this._cleanUpFormContainer(A)}getFormArray(A){return this.form.get(A.path)}updateModel(A,i){this.form.get(A.path).setValue(i)}onSubmit(A){return this._submittedReactive.set(!0),RM(this.form,this.directives),this.ngSubmit.emit(A),this.form._events.next(new sQ(this.control)),A?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(A=void 0){this.form.reset(A),this._submittedReactive.set(!1),this.form._events.next(new IQ(this.form))}_updateDomValue(){this.directives.forEach(A=>{let i=A.control,o=this.form.get(A.path);i!==o&&(BQ(i||null,A),_x(o)&&(_I(o,A,this.callSetDisabledState),A.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(A){let i=this.form.get(A.path);yM(i,A),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(A){if(this.form){let i=this.form.get(A.path);i&&vx(i,A)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){$h(this.form,this),this._oldForm&&EQ(this._oldForm,this)}static \u0275fac=function(i){return new(i||t)(AA(Qn,10),AA(cQ,10),AA(br,8))};static \u0275dir=Y({type:t,selectors:[["","formGroup",""]],hostBindings:function(i,o){i&1&&x("submit",function(g){return o.onSubmit(g)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[LA([xx]),EA,VA]})}return t})();var bM=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=Z({})}return t})();var uQ=(()=>{class t{static withConfig(A){return{ngModule:t,providers:[{provide:br,useValue:A.callSetDisabledState??dQ}]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=Z({imports:[bM]})}return t})(),SM=(()=>{class t{static withConfig(A){return{ngModule:t,providers:[{provide:FM,useValue:A.warnOnNgModelWithFormControl??"always"},{provide:br,useValue:A.callSetDisabledState??dQ}]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=Z({imports:[bM]})}return t})();var YA="primary",XI=Symbol("RouteTitle"),nu=class{params;constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let A=this.params[e];return Array.isArray(A)?A[0]:A}return null}getAll(e){if(this.has(e)){let A=this.params[e];return Array.isArray(A)?A:[A]}return[]}get keys(){return Object.keys(this.params)}};function dg(t){return new nu(t)}function xM(t,e,A){let i=A.path.split("/");if(i.length>t.length||A.pathMatch==="full"&&(e.hasChildren()||i.length<t.length))return null;let o={};for(let n=0;n<i.length;n++){let g=i[n],r=t[n];if(g[0]===":")o[g.substring(1)]=r;else if(g!==r.path)return null}return{consumed:t.slice(0,i.length),posParams:o}}function Yx(t,e){if(t.length!==e.length)return!1;for(let A=0;A<t.length;++A)if(!go(t[A],e[A]))return!1;return!0}function go(t,e){let A=t?gu(t):void 0,i=e?gu(e):void 0;if(!A||!i||A.length!=i.length)return!1;let o;for(let n=0;n<A.length;n++)if(o=A[n],!YM(t[o],e[o]))return!1;return!0}function gu(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function YM(t,e){if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;let A=[...t].sort(),i=[...e].sort();return A.every((o,n)=>i[n]===o)}else return t===e}function JM(t){return t.length>0?t[t.length-1]:null}function dn(t){return zo(t)?t:In(t)?re(Promise.resolve(t)):iA(t)}var Jx={exact:TM,subset:OM},HM={exact:Hx,subset:Tx,ignored:()=>!0};function vM(t,e,A){return Jx[A.paths](t.root,e.root,A.matrixParams)&&HM[A.queryParams](t.queryParams,e.queryParams)&&!(A.fragment==="exact"&&t.fragment!==e.fragment)}function Hx(t,e){return go(t,e)}function TM(t,e,A){if(!cg(t.segments,e.segments)||!fQ(t.segments,e.segments,A)||t.numberOfChildren!==e.numberOfChildren)return!1;for(let i in e.children)if(!t.children[i]||!TM(t.children[i],e.children[i],A))return!1;return!0}function Tx(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(A=>YM(t[A],e[A]))}function OM(t,e,A){return PM(t,e,e.segments,A)}function PM(t,e,A,i){if(t.segments.length>A.length){let o=t.segments.slice(0,A.length);return!(!cg(o,A)||e.hasChildren()||!fQ(o,A,i))}else if(t.segments.length===A.length){if(!cg(t.segments,A)||!fQ(t.segments,A,i))return!1;for(let o in e.children)if(!t.children[o]||!OM(t.children[o],e.children[o],i))return!1;return!0}else{let o=A.slice(0,t.segments.length),n=A.slice(t.segments.length);return!cg(t.segments,o)||!fQ(t.segments,o,i)||!t.children[YA]?!1:PM(t.children[YA],e,n,i)}}function fQ(t,e,A){return e.every((i,o)=>HM[A](t[o].parameters,i.parameters))}var so=class{root;queryParams;fragment;_queryParamMap;constructor(e=new Ae([],{}),A={},i=null){this.root=e,this.queryParams=A,this.fragment=i}get queryParamMap(){return this._queryParamMap??=dg(this.queryParams),this._queryParamMap}toString(){return Zx.serialize(this)}},Ae=class{segments;children;parent=null;constructor(e,A){this.segments=e,this.children=A,Object.values(A).forEach(i=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return pQ(this)}},En=class{path;parameters;_parameterMap;constructor(e,A){this.path=e,this.parameters=A}get parameterMap(){return this._parameterMap??=dg(this.parameters),this._parameterMap}toString(){return qM(this)}};function Ox(t,e){return cg(t,e)&&t.every((A,i)=>go(A.parameters,e[i].parameters))}function cg(t,e){return t.length!==e.length?!1:t.every((A,i)=>A.path===e[i].path)}function Px(t,e){let A=[];return Object.entries(t.children).forEach(([i,o])=>{i===YA&&(A=A.concat(e(o,i)))}),Object.entries(t.children).forEach(([i,o])=>{i!==YA&&(A=A.concat(e(o,i)))}),A}var hg=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:()=>new cn,providedIn:"root"})}return t})(),cn=class{parse(e){let A=new su(e);return new so(A.parseRootSegment(),A.parseQueryParams(),A.parseFragment())}serialize(e){let A=`/${YI(e.root,!0)}`,i=Wx(e.queryParams),o=typeof e.fragment=="string"?`#${qx(e.fragment)}`:"";return`${A}${i}${o}`}},Zx=new cn;function pQ(t){return t.segments.map(e=>qM(e)).join("/")}function YI(t,e){if(!t.hasChildren())return pQ(t);if(e){let A=t.children[YA]?YI(t.children[YA],!1):"",i=[];return Object.entries(t.children).forEach(([o,n])=>{o!==YA&&i.push(`${o}:${YI(n,!1)}`)}),i.length>0?`${A}(${i.join("//")})`:A}else{let A=Px(t,(i,o)=>o===YA?[YI(t.children[YA],!1)]:[`${o}:${YI(i,!1)}`]);return Object.keys(t.children).length===1&&t.children[YA]!=null?`${pQ(t)}/${A[0]}`:`${pQ(t)}/(${A.join("//")})`}}function ZM(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function mQ(t){return ZM(t).replace(/%3B/gi,";")}function qx(t){return encodeURI(t)}function ru(t){return ZM(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function wQ(t){return decodeURIComponent(t)}function NM(t){return wQ(t.replace(/\+/g,"%20"))}function qM(t){return`${ru(t.path)}${Vx(t.parameters)}`}function Vx(t){return Object.entries(t).map(([e,A])=>`;${ru(e)}=${ru(A)}`).join("")}function Wx(t){let e=Object.entries(t).map(([A,i])=>Array.isArray(i)?i.map(o=>`${mQ(A)}=${mQ(o)}`).join("&"):`${mQ(A)}=${mQ(i)}`).filter(A=>A);return e.length?`?${e.join("&")}`:""}var zx=/^[^\/()?;#]+/;function eu(t){let e=t.match(zx);return e?e[0]:""}var jx=/^[^\/()?;=#]+/;function Xx(t){let e=t.match(jx);return e?e[0]:""}var $x=/^[^=?&#]+/;function AY(t){let e=t.match($x);return e?e[0]:""}var eY=/^[^&#]+/;function tY(t){let e=t.match(eY);return e?e[0]:""}var su=class{url;remaining;constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ae([],{}):new Ae([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let A={};this.peekStartsWith("/(")&&(this.capture("/"),A=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(e.length>0||Object.keys(A).length>0)&&(i[YA]=new Ae(e,A)),i}parseSegment(){let e=eu(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new K(4009,!1);return this.capture(e),new En(wQ(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let A=Xx(this.remaining);if(!A)return;this.capture(A);let i="";if(this.consumeOptional("=")){let o=eu(this.remaining);o&&(i=o,this.capture(i))}e[wQ(A)]=wQ(i)}parseQueryParam(e){let A=AY(this.remaining);if(!A)return;this.capture(A);let i="";if(this.consumeOptional("=")){let g=tY(this.remaining);g&&(i=g,this.capture(i))}let o=NM(A),n=NM(i);if(e.hasOwnProperty(o)){let g=e[o];Array.isArray(g)||(g=[g],e[o]=g),g.push(n)}else e[o]=n}parseParens(e){let A={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=eu(this.remaining),o=this.remaining[i.length];if(o!=="/"&&o!==")"&&o!==";")throw new K(4010,!1);let n;i.indexOf(":")>-1?(n=i.slice(0,i.indexOf(":")),this.capture(n),this.capture(":")):e&&(n=YA);let g=this.parseChildren();A[n]=Object.keys(g).length===1?g[YA]:new Ae([],g),this.consumeOptional("//")}return A}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new K(4011,!1)}};function VM(t){return t.segments.length>0?new Ae([],{[YA]:t}):t}function WM(t){let e={};for(let[i,o]of Object.entries(t.children)){let n=WM(o);if(i===YA&&n.segments.length===0&&n.hasChildren())for(let[g,r]of Object.entries(n.children))e[g]=r;else(n.segments.length>0||n.hasChildren())&&(e[i]=n)}let A=new Ae(t.segments,e);return iY(A)}function iY(t){if(t.numberOfChildren===1&&t.children[YA]){let e=t.children[YA];return new Ae(t.segments.concat(e.segments),e.children)}return t}function Lr(t){return t instanceof so}function zM(t,e,A=null,i=null){let o=jM(t);return XM(o,e,A,i)}function jM(t){let e;function A(n){let g={};for(let s of n.children){let I=A(s);g[s.outlet]=I}let r=new Ae(n.url,g);return n===t&&(e=r),r}let i=A(t.root),o=VM(i);return e??o}function XM(t,e,A,i){let o=t;for(;o.parent;)o=o.parent;if(e.length===0)return tu(o,o,o,A,i);let n=oY(e);if(n.toRoot())return tu(o,o,new Ae([],{}),A,i);let g=nY(n,o,t),r=g.processChildren?HI(g.segmentGroup,g.index,n.commands):AR(g.segmentGroup,g.index,n.commands);return tu(o,g.segmentGroup,r,A,i)}function MQ(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function OI(t){return typeof t=="object"&&t!=null&&t.outlets}function tu(t,e,A,i,o){let n={};i&&Object.entries(i).forEach(([s,I])=>{n[s]=Array.isArray(I)?I.map(B=>`${B}`):`${I}`});let g;t===e?g=A:g=$M(t,e,A);let r=VM(WM(g));return new so(r,n,o)}function $M(t,e,A){let i={};return Object.entries(t.children).forEach(([o,n])=>{n===e?i[o]=A:i[o]=$M(n,e,A)}),new Ae(t.segments,i)}var RQ=class{isAbsolute;numberOfDoubleDots;commands;constructor(e,A,i){if(this.isAbsolute=e,this.numberOfDoubleDots=A,this.commands=i,e&&i.length>0&&MQ(i[0]))throw new K(4003,!1);let o=i.find(OI);if(o&&o!==JM(i))throw new K(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function oY(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new RQ(!0,0,t);let e=0,A=!1,i=t.reduce((o,n,g)=>{if(typeof n=="object"&&n!=null){if(n.outlets){let r={};return Object.entries(n.outlets).forEach(([s,I])=>{r[s]=typeof I=="string"?I.split("/"):I}),[...o,{outlets:r}]}if(n.segmentPath)return[...o,n.segmentPath]}return typeof n!="string"?[...o,n]:g===0?(n.split("/").forEach((r,s)=>{s==0&&r==="."||(s==0&&r===""?A=!0:r===".."?e++:r!=""&&o.push(r))}),o):[...o,n]},[]);return new RQ(A,e,i)}var Nr=class{segmentGroup;processChildren;index;constructor(e,A,i){this.segmentGroup=e,this.processChildren=A,this.index=i}};function nY(t,e,A){if(t.isAbsolute)return new Nr(e,!0,0);if(!A)return new Nr(e,!1,NaN);if(A.parent===null)return new Nr(A,!0,0);let i=MQ(t.commands[0])?0:1,o=A.segments.length-1+i;return gY(A,o,t.numberOfDoubleDots)}function gY(t,e,A){let i=t,o=e,n=A;for(;n>o;){if(n-=o,i=i.parent,!i)throw new K(4005,!1);o=i.segments.length}return new Nr(i,!1,o-n)}function rY(t){return OI(t[0])?t[0].outlets:{[YA]:t}}function AR(t,e,A){if(t??=new Ae([],{}),t.segments.length===0&&t.hasChildren())return HI(t,e,A);let i=sY(t,e,A),o=A.slice(i.commandIndex);if(i.match&&i.pathIndex<t.segments.length){let n=new Ae(t.segments.slice(0,i.pathIndex),{});return n.children[YA]=new Ae(t.segments.slice(i.pathIndex),t.children),HI(n,0,o)}else return i.match&&o.length===0?new Ae(t.segments,{}):i.match&&!t.hasChildren()?Iu(t,e,A):i.match?HI(t,0,o):Iu(t,e,A)}function HI(t,e,A){if(A.length===0)return new Ae(t.segments,{});{let i=rY(A),o={};if(Object.keys(i).some(n=>n!==YA)&&t.children[YA]&&t.numberOfChildren===1&&t.children[YA].segments.length===0){let n=HI(t.children[YA],e,A);return new Ae(t.segments,n.children)}return Object.entries(i).forEach(([n,g])=>{typeof g=="string"&&(g=[g]),g!==null&&(o[n]=AR(t.children[n],e,g))}),Object.entries(t.children).forEach(([n,g])=>{i[n]===void 0&&(o[n]=g)}),new Ae(t.segments,o)}}function sY(t,e,A){let i=0,o=e,n={match:!1,pathIndex:0,commandIndex:0};for(;o<t.segments.length;){if(i>=A.length)return n;let g=t.segments[o],r=A[i];if(OI(r))break;let s=`${r}`,I=i<A.length-1?A[i+1]:null;if(o>0&&s===void 0)break;if(s&&I&&typeof I=="object"&&I.outlets===void 0){if(!LM(s,I,g))return n;i+=2}else{if(!LM(s,{},g))return n;i++}o++}return{match:!0,pathIndex:o,commandIndex:i}}function Iu(t,e,A){let i=t.segments.slice(0,e),o=0;for(;o<A.length;){let n=A[o];if(OI(n)){let s=IY(n.outlets);return new Ae(i,s)}if(o===0&&MQ(A[0])){let s=t.segments[e];i.push(new En(s.path,GM(A[0]))),o++;continue}let g=OI(n)?n.outlets[YA]:`${n}`,r=o<A.length-1?A[o+1]:null;g&&r&&MQ(r)?(i.push(new En(g,GM(r))),o+=2):(i.push(new En(g,{})),o++)}return new Ae(i,{})}function IY(t){let e={};return Object.entries(t).forEach(([A,i])=>{typeof i=="string"&&(i=[i]),i!==null&&(e[A]=Iu(new Ae([],{}),0,i))}),e}function GM(t){let e={};return Object.entries(t).forEach(([A,i])=>e[A]=`${i}`),e}function LM(t,e,A){return t==A.path&&go(e,A.parameters)}var yQ="imperative",Te=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(Te||{}),Tt=class{id;url;constructor(e,A){this.id=e,this.url=A}},ln=class extends Tt{type=Te.NavigationStart;navigationTrigger;restoredState;constructor(e,A,i="imperative",o=null){super(e,A),this.navigationTrigger=i,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Ot=class extends Tt{urlAfterRedirects;type=Te.NavigationEnd;constructor(e,A,i){super(e,A),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},kt=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(kt||{}),_r=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(_r||{}),ro=class extends Tt{reason;code;type=Te.NavigationCancel;constructor(e,A,i,o){super(e,A),this.reason=i,this.code=o}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Io=class extends Tt{reason;code;type=Te.NavigationSkipped;constructor(e,A,i,o){super(e,A),this.reason=i,this.code=o}},Kr=class extends Tt{error;target;type=Te.NavigationError;constructor(e,A,i,o){super(e,A),this.error=i,this.target=o}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},PI=class extends Tt{urlAfterRedirects;state;type=Te.RoutesRecognized;constructor(e,A,i,o){super(e,A),this.urlAfterRedirects=i,this.state=o}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},kQ=class extends Tt{urlAfterRedirects;state;type=Te.GuardsCheckStart;constructor(e,A,i,o){super(e,A),this.urlAfterRedirects=i,this.state=o}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},FQ=class extends Tt{urlAfterRedirects;state;shouldActivate;type=Te.GuardsCheckEnd;constructor(e,A,i,o,n){super(e,A),this.urlAfterRedirects=i,this.state=o,this.shouldActivate=n}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},bQ=class extends Tt{urlAfterRedirects;state;type=Te.ResolveStart;constructor(e,A,i,o){super(e,A),this.urlAfterRedirects=i,this.state=o}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},SQ=class extends Tt{urlAfterRedirects;state;type=Te.ResolveEnd;constructor(e,A,i,o){super(e,A),this.urlAfterRedirects=i,this.state=o}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},vQ=class{route;type=Te.RouteConfigLoadStart;constructor(e){this.route=e}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},NQ=class{route;type=Te.RouteConfigLoadEnd;constructor(e){this.route=e}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},GQ=class{snapshot;type=Te.ChildActivationStart;constructor(e){this.snapshot=e}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},LQ=class{snapshot;type=Te.ChildActivationEnd;constructor(e){this.snapshot=e}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},_Q=class{snapshot;type=Te.ActivationStart;constructor(e){this.snapshot=e}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},KQ=class{snapshot;type=Te.ActivationEnd;constructor(e){this.snapshot=e}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ur=class{routerEvent;position;anchor;type=Te.Scroll;constructor(e,A,i){this.routerEvent=e,this.position=A,this.anchor=i}toString(){let e=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${e}')`}},ZI=class{},xr=class{url;navigationBehaviorOptions;constructor(e,A){this.url=e,this.navigationBehaviorOptions=A}};function aY(t,e){return t.providers&&!t._injector&&(t._injector=CI(t.providers,e,`Route: ${t.path}`)),t._injector??e}function Fi(t){return t.outlet||YA}function CY(t,e){let A=t.filter(i=>Fi(i)===e);return A.push(...t.filter(i=>Fi(i)!==e)),A}function $I(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){let A=e.routeConfig;if(A?._loadedInjector)return A._loadedInjector;if(A?._injector)return A._injector}return null}var UQ=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return $I(this.route?.snapshot)??this.rootInjector}constructor(e){this.rootInjector=e,this.children=new ug(this.rootInjector)}},ug=(()=>{class t{rootInjector;contexts=new Map;constructor(A){this.rootInjector=A}onChildOutletCreated(A,i){let o=this.getOrCreateContext(A);o.outlet=i,this.contexts.set(A,o)}onChildOutletDestroyed(A){let i=this.getContext(A);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let A=this.contexts;return this.contexts=new Map,A}onOutletReAttached(A){this.contexts=A}getOrCreateContext(A){let i=this.getContext(A);return i||(i=new UQ(this.rootInjector),this.contexts.set(A,i)),i}getContext(A){return this.contexts.get(A)||null}static \u0275fac=function(i){return new(i||t)(O(_e))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),xQ=class{_root;constructor(e){this._root=e}get root(){return this._root.value}parent(e){let A=this.pathFromRoot(e);return A.length>1?A[A.length-2]:null}children(e){let A=au(e,this._root);return A?A.children.map(i=>i.value):[]}firstChild(e){let A=au(e,this._root);return A&&A.children.length>0?A.children[0].value:null}siblings(e){let A=Cu(e,this._root);return A.length<2?[]:A[A.length-2].children.map(o=>o.value).filter(o=>o!==e)}pathFromRoot(e){return Cu(e,this._root).map(A=>A.value)}};function au(t,e){if(t===e.value)return e;for(let A of e.children){let i=au(t,A);if(i)return i}return null}function Cu(t,e){if(t===e.value)return[e];for(let A of e.children){let i=Cu(t,A);if(i.length)return i.unshift(e),i}return[]}var Ht=class{value;children;constructor(e,A){this.value=e,this.children=A}toString(){return`TreeNode(${this.value})`}};function vr(t){let e={};return t&&t.children.forEach(A=>e[A.value.outlet]=A),e}var qI=class extends xQ{snapshot;constructor(e,A){super(e),this.snapshot=A,uu(this,e)}toString(){return this.snapshot.toString()}};function eR(t){let e=BY(t),A=new ee([new En("",{})]),i=new ee({}),o=new ee({}),n=new ee({}),g=new ee(""),r=new Xt(A,i,n,g,o,YA,t,e.root);return r.snapshot=e.root,new qI(new Ht(r,[]),e)}function BY(t){let e={},A={},i={},o="",n=new lg([],e,i,o,A,YA,t,null,{});return new VI("",new Ht(n,[]))}var Xt=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(e,A,i,o,n,g,r,s){this.urlSubject=e,this.paramsSubject=A,this.queryParamsSubject=i,this.fragmentSubject=o,this.dataSubject=n,this.outlet=g,this.component=r,this._futureSnapshot=s,this.title=this.dataSubject?.pipe(nA(I=>I[XI]))??iA(void 0),this.url=e,this.params=A,this.queryParams=i,this.fragment=o,this.data=n}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(nA(e=>dg(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(nA(e=>dg(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function YQ(t,e,A="emptyOnly"){let i,{routeConfig:o}=t;return e!==null&&(A==="always"||o?.path===""||!e.component&&!e.routeConfig?.loadComponent)?i={params:R(R({},e.params),t.params),data:R(R({},e.data),t.data),resolve:R(R(R(R({},t.data),e.data),o?.data),t._resolvedData)}:i={params:R({},t.params),data:R({},t.data),resolve:R(R({},t.data),t._resolvedData??{})},o&&iR(o)&&(i.resolve[XI]=o.title),i}var lg=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[XI]}constructor(e,A,i,o,n,g,r,s,I){this.url=e,this.params=A,this.queryParams=i,this.fragment=o,this.data=n,this.outlet=g,this.component=r,this.routeConfig=s,this._resolve=I}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=dg(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=dg(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(i=>i.toString()).join("/"),A=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${A}')`}},VI=class extends xQ{url;constructor(e,A){super(A),this.url=e,uu(this,A)}toString(){return tR(this._root)}};function uu(t,e){e.value._routerState=t,e.children.forEach(A=>uu(t,A))}function tR(t){let e=t.children.length>0?` { ${t.children.map(tR).join(", ")} } `:"";return`${t.value}${e}`}function iu(t){if(t.snapshot){let e=t.snapshot,A=t._futureSnapshot;t.snapshot=A,go(e.queryParams,A.queryParams)||t.queryParamsSubject.next(A.queryParams),e.fragment!==A.fragment&&t.fragmentSubject.next(A.fragment),go(e.params,A.params)||t.paramsSubject.next(A.params),Yx(e.url,A.url)||t.urlSubject.next(A.url),go(e.data,A.data)||t.dataSubject.next(A.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function Bu(t,e){let A=go(t.params,e.params)&&Ox(t.url,e.url),i=!t.parent!=!e.parent;return A&&!i&&(!t.parent||Bu(t.parent,e.parent))}function iR(t){return typeof t.title=="string"||t.title===null}var oR=new k(""),mu=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=YA;activateEvents=new $;deactivateEvents=new $;attachEvents=new $;detachEvents=new $;routerOutletData=yw(void 0);parentContexts=Q(ug);location=Q(Ce);changeDetector=Q(zA);inputBinder=Q(Aa,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(A){if(A.name){let{firstChange:i,previousValue:o}=A.name;if(i)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(A){return this.parentContexts.getContext(A)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let A=this.parentContexts.getContext(this.name);A?.route&&(A.attachRef?this.attach(A.attachRef,A.route):this.activateWith(A.route,A.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new K(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new K(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new K(4012,!1);this.location.detach();let A=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(A.instance),A}attach(A,i){this.activated=A,this._activatedRoute=i,this.location.insert(A.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(A.instance)}deactivate(){if(this.activated){let A=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(A)}}activateWith(A,i){if(this.isActivated)throw new K(4013,!1);this._activatedRoute=A;let o=this.location,g=A.snapshot.component,r=this.parentContexts.getOrCreateContext(this.name).children,s=new Qu(A,r,o.injector,this.routerOutletData);this.activated=o.createComponent(g,{index:o.length,injector:s,environmentInjector:i}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[VA]})}return t})(),Qu=class{route;childContexts;parent;outletData;constructor(e,A,i,o){this.route=e,this.childContexts=A,this.parent=i,this.outletData=o}get(e,A){return e===Xt?this.route:e===ug?this.childContexts:e===oR?this.outletData:this.parent.get(e,A)}},Aa=new k(""),Du=(()=>{class t{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(A){this.unsubscribeFromRouteData(A),this.subscribeToRouteData(A)}unsubscribeFromRouteData(A){this.outletDataSubscriptions.get(A)?.unsubscribe(),this.outletDataSubscriptions.delete(A)}subscribeToRouteData(A){let{activatedRoute:i}=A,o=Bi([i.queryParams,i.params,i.data]).pipe(se(([n,g,r],s)=>(r=R(R(R({},n),g),r),s===0?iA(r):Promise.resolve(r)))).subscribe(n=>{if(!A.isActivated||!A.activatedComponentRef||A.activatedRoute!==i||i.component===null){this.unsubscribeFromRouteData(A);return}let g=p0(i.component);if(!g){this.unsubscribeFromRouteData(A);return}for(let{templateName:r}of g.inputs)A.activatedComponentRef.setInput(r,n[r])});this.outletDataSubscriptions.set(A,o)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})();function QY(t,e,A){let i=WI(t,e._root,A?A._root:void 0);return new qI(i,e)}function WI(t,e,A){if(A&&t.shouldReuseRoute(e.value,A.value.snapshot)){let i=A.value;i._futureSnapshot=e.value;let o=EY(t,e,A);return new Ht(i,o)}else{if(t.shouldAttach(e.value)){let n=t.retrieve(e.value);if(n!==null){let g=n.route;return g.value._futureSnapshot=e.value,g.children=e.children.map(r=>WI(t,r)),g}}let i=cY(e.value),o=e.children.map(n=>WI(t,n));return new Ht(i,o)}}function EY(t,e,A){return e.children.map(i=>{for(let o of A.children)if(t.shouldReuseRoute(i.value,o.value.snapshot))return WI(t,i,o);return WI(t,i)})}function cY(t){return new Xt(new ee(t.url),new ee(t.params),new ee(t.queryParams),new ee(t.fragment),new ee(t.data),t.outlet,t.component,t)}var Yr=class{redirectTo;navigationBehaviorOptions;constructor(e,A){this.redirectTo=e,this.navigationBehaviorOptions=A}},nR="ngNavigationCancelingError";function JQ(t,e){let{redirectTo:A,navigationBehaviorOptions:i}=Lr(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,o=gR(!1,kt.Redirect);return o.url=A,o.navigationBehaviorOptions=i,o}function gR(t,e){let A=new Error(`NavigationCancelingError: ${t||""}`);return A[nR]=!0,A.cancellationCode=e,A}function lY(t){return rR(t)&&Lr(t.url)}function rR(t){return!!t&&t[nR]}var dY=(t,e,A,i)=>nA(o=>(new Eu(e,o.targetRouterState,o.currentRouterState,A,i).activate(t),o)),Eu=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(e,A,i,o,n){this.routeReuseStrategy=e,this.futureState=A,this.currState=i,this.forwardEvent=o,this.inputBindingEnabled=n}activate(e){let A=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(A,i,e),iu(this.futureState.root),this.activateChildRoutes(A,i,e)}deactivateChildRoutes(e,A,i){let o=vr(A);e.children.forEach(n=>{let g=n.value.outlet;this.deactivateRoutes(n,o[g],i),delete o[g]}),Object.values(o).forEach(n=>{this.deactivateRouteAndItsChildren(n,i)})}deactivateRoutes(e,A,i){let o=e.value,n=A?A.value:null;if(o===n)if(o.component){let g=i.getContext(o.outlet);g&&this.deactivateChildRoutes(e,A,g.children)}else this.deactivateChildRoutes(e,A,i);else n&&this.deactivateRouteAndItsChildren(A,i)}deactivateRouteAndItsChildren(e,A){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,A):this.deactivateRouteAndOutlet(e,A)}detachAndStoreRouteSubtree(e,A){let i=A.getContext(e.value.outlet),o=i&&e.value.component?i.children:A,n=vr(e);for(let g of Object.values(n))this.deactivateRouteAndItsChildren(g,o);if(i&&i.outlet){let g=i.outlet.detach(),r=i.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:g,route:e,contexts:r})}}deactivateRouteAndOutlet(e,A){let i=A.getContext(e.value.outlet),o=i&&e.value.component?i.children:A,n=vr(e);for(let g of Object.values(n))this.deactivateRouteAndItsChildren(g,o);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.route=null)}activateChildRoutes(e,A,i){let o=vr(A);e.children.forEach(n=>{this.activateRoutes(n,o[n.value.outlet],i),this.forwardEvent(new KQ(n.value.snapshot))}),e.children.length&&this.forwardEvent(new LQ(e.value.snapshot))}activateRoutes(e,A,i){let o=e.value,n=A?A.value:null;if(iu(o),o===n)if(o.component){let g=i.getOrCreateContext(o.outlet);this.activateChildRoutes(e,A,g.children)}else this.activateChildRoutes(e,A,i);else if(o.component){let g=i.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){let r=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),g.children.onOutletReAttached(r.contexts),g.attachRef=r.componentRef,g.route=r.route.value,g.outlet&&g.outlet.attach(r.componentRef,r.route.value),iu(r.route.value),this.activateChildRoutes(e,null,g.children)}else g.attachRef=null,g.route=o,g.outlet&&g.outlet.activateWith(o,g.injector),this.activateChildRoutes(e,null,g.children)}else this.activateChildRoutes(e,null,i)}},HQ=class{path;route;constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},Gr=class{component;route;constructor(e,A){this.component=e,this.route=A}};function hY(t,e,A){let i=t._root,o=e?e._root:null;return JI(i,o,A,[i.value])}function uY(t){let e=t.routeConfig?t.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:t,guards:e}}function Hr(t,e){let A=Symbol(),i=e.get(t,A);return i===A?typeof t=="function"&&!wp(t)?t:e.get(t):i}function JI(t,e,A,i,o={canDeactivateChecks:[],canActivateChecks:[]}){let n=vr(e);return t.children.forEach(g=>{mY(g,n[g.value.outlet],A,i.concat([g.value]),o),delete n[g.value.outlet]}),Object.entries(n).forEach(([g,r])=>TI(r,A.getContext(g),o)),o}function mY(t,e,A,i,o={canDeactivateChecks:[],canActivateChecks:[]}){let n=t.value,g=e?e.value:null,r=A?A.getContext(t.value.outlet):null;if(g&&n.routeConfig===g.routeConfig){let s=DY(g,n,n.routeConfig.runGuardsAndResolvers);s?o.canActivateChecks.push(new HQ(i)):(n.data=g.data,n._resolvedData=g._resolvedData),n.component?JI(t,e,r?r.children:null,i,o):JI(t,e,A,i,o),s&&r&&r.outlet&&r.outlet.isActivated&&o.canDeactivateChecks.push(new Gr(r.outlet.component,g))}else g&&TI(e,r,o),o.canActivateChecks.push(new HQ(i)),n.component?JI(t,null,r?r.children:null,i,o):JI(t,null,A,i,o);return o}function DY(t,e,A){if(typeof A=="function")return A(t,e);switch(A){case"pathParamsChange":return!cg(t.url,e.url);case"pathParamsOrQueryParamsChange":return!cg(t.url,e.url)||!go(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Bu(t,e)||!go(t.queryParams,e.queryParams);case"paramsChange":default:return!Bu(t,e)}}function TI(t,e,A){let i=vr(t),o=t.value;Object.entries(i).forEach(([n,g])=>{o.component?e?TI(g,e.children.getContext(n),A):TI(g,null,A):TI(g,e,A)}),o.component?e&&e.outlet&&e.outlet.isActivated?A.canDeactivateChecks.push(new Gr(e.outlet.component,o)):A.canDeactivateChecks.push(new Gr(null,o)):A.canDeactivateChecks.push(new Gr(null,o))}function ea(t){return typeof t=="function"}function fY(t){return typeof t=="boolean"}function pY(t){return t&&ea(t.canLoad)}function wY(t){return t&&ea(t.canActivate)}function yY(t){return t&&ea(t.canActivateChild)}function MY(t){return t&&ea(t.canDeactivate)}function RY(t){return t&&ea(t.canMatch)}function sR(t){return t instanceof Mo||t?.name==="EmptyError"}var DQ=Symbol("INITIAL_VALUE");function Jr(){return se(t=>Bi(t.map(e=>e.pipe(de(1),De(DQ)))).pipe(nA(e=>{for(let A of e)if(A!==!0){if(A===DQ)return DQ;if(A===!1||kY(A))return A}return!0}),kA(e=>e!==DQ),de(1)))}function kY(t){return Lr(t)||t instanceof Yr}function FY(t,e){return ye(A=>{let{targetSnapshot:i,currentSnapshot:o,guards:{canActivateChecks:n,canDeactivateChecks:g}}=A;return g.length===0&&n.length===0?iA(hA(R({},A),{guardsResult:!0})):bY(g,i,o,t).pipe(ye(r=>r&&fY(r)?SY(i,n,t,e):iA(r)),nA(r=>hA(R({},A),{guardsResult:r})))})}function bY(t,e,A,i){return re(t).pipe(ye(o=>_Y(o.component,o.route,A,e,i)),Pi(o=>o!==!0,!0))}function SY(t,e,A,i){return re(e).pipe(Ti(o=>Xo(NY(o.route.parent,i),vY(o.route,i),LY(t,o.path,A),GY(t,o.route,A))),Pi(o=>o!==!0,!0))}function vY(t,e){return t!==null&&e&&e(new _Q(t)),iA(!0)}function NY(t,e){return t!==null&&e&&e(new GQ(t)),iA(!0)}function GY(t,e,A){let i=e.routeConfig?e.routeConfig.canActivate:null;if(!i||i.length===0)return iA(!0);let o=i.map(n=>Hi(()=>{let g=$I(e)??A,r=Hr(n,g),s=wY(r)?r.canActivate(e,t):wt(g,()=>r(e,t));return dn(s).pipe(Pi())}));return iA(o).pipe(Jr())}function LY(t,e,A){let i=e[e.length-1],n=e.slice(0,e.length-1).reverse().map(g=>uY(g)).filter(g=>g!==null).map(g=>Hi(()=>{let r=g.guards.map(s=>{let I=$I(g.node)??A,B=Hr(s,I),c=yY(B)?B.canActivateChild(i,t):wt(I,()=>B(i,t));return dn(c).pipe(Pi())});return iA(r).pipe(Jr())}));return iA(n).pipe(Jr())}function _Y(t,e,A,i,o){let n=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!n||n.length===0)return iA(!0);let g=n.map(r=>{let s=$I(e)??o,I=Hr(r,s),B=MY(I)?I.canDeactivate(t,e,A,i):wt(s,()=>I(t,e,A,i));return dn(B).pipe(Pi())});return iA(g).pipe(Jr())}function KY(t,e,A,i){let o=e.canLoad;if(o===void 0||o.length===0)return iA(!0);let n=o.map(g=>{let r=Hr(g,t),s=pY(r)?r.canLoad(e,A):wt(t,()=>r(e,A));return dn(s)});return iA(n).pipe(Jr(),IR(i))}function IR(t){return Jc(Ie(e=>{if(typeof e!="boolean")throw JQ(t,e)}),nA(e=>e===!0))}function UY(t,e,A,i){let o=e.canMatch;if(!o||o.length===0)return iA(!0);let n=o.map(g=>{let r=Hr(g,t),s=RY(r)?r.canMatch(e,A):wt(t,()=>r(e,A));return dn(s)});return iA(n).pipe(Jr(),IR(i))}var zI=class{segmentGroup;constructor(e){this.segmentGroup=e||null}},jI=class extends Error{urlTree;constructor(e){super(),this.urlTree=e}};function Sr(t){return Wo(new zI(t))}function xY(t){return Wo(new K(4e3,!1))}function YY(t){return Wo(gR(!1,kt.GuardRejected))}var cu=class{urlSerializer;urlTree;constructor(e,A){this.urlSerializer=e,this.urlTree=A}lineralizeSegments(e,A){let i=[],o=A.root;for(;;){if(i=i.concat(o.segments),o.numberOfChildren===0)return iA(i);if(o.numberOfChildren>1||!o.children[YA])return xY(`${e.redirectTo}`);o=o.children[YA]}}applyRedirectCommands(e,A,i,o,n){if(typeof A!="string"){let r=A,{queryParams:s,fragment:I,routeConfig:B,url:c,outlet:D,params:h,data:p,title:y}=o,L=wt(n,()=>r({params:h,data:p,queryParams:s,fragment:I,routeConfig:B,url:c,outlet:D,title:y}));if(L instanceof so)throw new jI(L);A=L}let g=this.applyRedirectCreateUrlTree(A,this.urlSerializer.parse(A),e,i);if(A[0]==="/")throw new jI(g);return g}applyRedirectCreateUrlTree(e,A,i,o){let n=this.createSegmentGroup(e,A.root,i,o);return new so(n,this.createQueryParams(A.queryParams,this.urlTree.queryParams),A.fragment)}createQueryParams(e,A){let i={};return Object.entries(e).forEach(([o,n])=>{if(typeof n=="string"&&n[0]===":"){let r=n.substring(1);i[o]=A[r]}else i[o]=n}),i}createSegmentGroup(e,A,i,o){let n=this.createSegments(e,A.segments,i,o),g={};return Object.entries(A.children).forEach(([r,s])=>{g[r]=this.createSegmentGroup(e,s,i,o)}),new Ae(n,g)}createSegments(e,A,i,o){return A.map(n=>n.path[0]===":"?this.findPosParam(e,n,o):this.findOrReturn(n,i))}findPosParam(e,A,i){let o=i[A.path.substring(1)];if(!o)throw new K(4001,!1);return o}findOrReturn(e,A){let i=0;for(let o of A){if(o.path===e.path)return A.splice(i),o;i++}return e}},lu={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function JY(t,e,A,i,o){let n=aR(t,e,A);return n.matched?(i=aY(e,i),UY(i,e,A,o).pipe(nA(g=>g===!0?n:R({},lu)))):iA(n)}function aR(t,e,A){if(e.path==="**")return HY(A);if(e.path==="")return e.pathMatch==="full"&&(t.hasChildren()||A.length>0)?R({},lu):{matched:!0,consumedSegments:[],remainingSegments:A,parameters:{},positionalParamSegments:{}};let o=(e.matcher||xM)(A,t,e);if(!o)return R({},lu);let n={};Object.entries(o.posParams??{}).forEach(([r,s])=>{n[r]=s.path});let g=o.consumed.length>0?R(R({},n),o.consumed[o.consumed.length-1].parameters):n;return{matched:!0,consumedSegments:o.consumed,remainingSegments:A.slice(o.consumed.length),parameters:g,positionalParamSegments:o.posParams??{}}}function HY(t){return{matched:!0,parameters:t.length>0?JM(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function _M(t,e,A,i){return A.length>0&&PY(t,A,i)?{segmentGroup:new Ae(e,OY(i,new Ae(A,t.children))),slicedSegments:[]}:A.length===0&&ZY(t,A,i)?{segmentGroup:new Ae(t.segments,TY(t,A,i,t.children)),slicedSegments:A}:{segmentGroup:new Ae(t.segments,t.children),slicedSegments:A}}function TY(t,e,A,i){let o={};for(let n of A)if(OQ(t,e,n)&&!i[Fi(n)]){let g=new Ae([],{});o[Fi(n)]=g}return R(R({},i),o)}function OY(t,e){let A={};A[YA]=e;for(let i of t)if(i.path===""&&Fi(i)!==YA){let o=new Ae([],{});A[Fi(i)]=o}return A}function PY(t,e,A){return A.some(i=>OQ(t,e,i)&&Fi(i)!==YA)}function ZY(t,e,A){return A.some(i=>OQ(t,e,i))}function OQ(t,e,A){return(t.hasChildren()||e.length>0)&&A.pathMatch==="full"?!1:A.path===""}function qY(t,e,A){return e.length===0&&!t.children[A]}var du=class{};function VY(t,e,A,i,o,n,g="emptyOnly"){return new hu(t,e,A,i,o,g,n).recognize()}var WY=31,hu=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(e,A,i,o,n,g,r){this.injector=e,this.configLoader=A,this.rootComponentType=i,this.config=o,this.urlTree=n,this.paramsInheritanceStrategy=g,this.urlSerializer=r,this.applyRedirects=new cu(this.urlSerializer,this.urlTree)}noMatchError(e){return new K(4002,`'${e.segmentGroup}'`)}recognize(){let e=_M(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(nA(({children:A,rootSnapshot:i})=>{let o=new Ht(i,A),n=new VI("",o),g=zM(i,[],this.urlTree.queryParams,this.urlTree.fragment);return g.queryParams=this.urlTree.queryParams,n.url=this.urlSerializer.serialize(g),{state:n,tree:g}}))}match(e){let A=new lg([],Object.freeze({}),Object.freeze(R({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),YA,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,e,YA,A).pipe(nA(i=>({children:i,rootSnapshot:A})),ht(i=>{if(i instanceof jI)return this.urlTree=i.urlTree,this.match(i.urlTree.root);throw i instanceof zI?this.noMatchError(i):i}))}processSegmentGroup(e,A,i,o,n){return i.segments.length===0&&i.hasChildren()?this.processChildren(e,A,i,n):this.processSegment(e,A,i,i.segments,o,!0,n).pipe(nA(g=>g instanceof Ht?[g]:[]))}processChildren(e,A,i,o){let n=[];for(let g of Object.keys(i.children))g==="primary"?n.unshift(g):n.push(g);return re(n).pipe(Ti(g=>{let r=i.children[g],s=CY(A,g);return this.processSegmentGroup(e,s,r,g,o)}),qc((g,r)=>(g.push(...r),g)),$o(null),Zc(),ye(g=>{if(g===null)return Sr(i);let r=CR(g);return zY(r),iA(r)}))}processSegment(e,A,i,o,n,g,r){return re(A).pipe(Ti(s=>this.processSegmentAgainstRoute(s._injector??e,A,s,i,o,n,g,r).pipe(ht(I=>{if(I instanceof zI)return iA(null);throw I}))),Pi(s=>!!s),ht(s=>{if(sR(s))return qY(i,o,n)?iA(new du):Sr(i);throw s}))}processSegmentAgainstRoute(e,A,i,o,n,g,r,s){return Fi(i)!==g&&(g===YA||!OQ(o,n,i))?Sr(o):i.redirectTo===void 0?this.matchSegmentAgainstRoute(e,o,i,n,g,s):this.allowRedirects&&r?this.expandSegmentAgainstRouteUsingRedirect(e,o,A,i,n,g,s):Sr(o)}expandSegmentAgainstRouteUsingRedirect(e,A,i,o,n,g,r){let{matched:s,parameters:I,consumedSegments:B,positionalParamSegments:c,remainingSegments:D}=aR(A,o,n);if(!s)return Sr(A);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>WY&&(this.allowRedirects=!1));let h=new lg(n,I,Object.freeze(R({},this.urlTree.queryParams)),this.urlTree.fragment,KM(o),Fi(o),o.component??o._loadedComponent??null,o,UM(o)),p=YQ(h,r,this.paramsInheritanceStrategy);h.params=Object.freeze(p.params),h.data=Object.freeze(p.data);let y=this.applyRedirects.applyRedirectCommands(B,o.redirectTo,c,h,e);return this.applyRedirects.lineralizeSegments(o,y).pipe(ye(L=>this.processSegment(e,i,A,L.concat(D),g,!1,r)))}matchSegmentAgainstRoute(e,A,i,o,n,g){let r=JY(A,i,o,e,this.urlSerializer);return i.path==="**"&&(A.children={}),r.pipe(se(s=>s.matched?(e=i._injector??e,this.getChildConfig(e,i,o).pipe(se(({routes:I})=>{let B=i._loadedInjector??e,{parameters:c,consumedSegments:D,remainingSegments:h}=s,p=new lg(D,c,Object.freeze(R({},this.urlTree.queryParams)),this.urlTree.fragment,KM(i),Fi(i),i.component??i._loadedComponent??null,i,UM(i)),y=YQ(p,g,this.paramsInheritanceStrategy);p.params=Object.freeze(y.params),p.data=Object.freeze(y.data);let{segmentGroup:L,slicedSegments:P}=_M(A,D,h,I);if(P.length===0&&L.hasChildren())return this.processChildren(B,I,L,p).pipe(nA(UA=>new Ht(p,UA)));if(I.length===0&&P.length===0)return iA(new Ht(p,[]));let DA=Fi(i)===n;return this.processSegment(B,I,L,P,DA?YA:n,!0,p).pipe(nA(UA=>new Ht(p,UA instanceof Ht?[UA]:[])))}))):Sr(A)))}getChildConfig(e,A,i){return A.children?iA({routes:A.children,injector:e}):A.loadChildren?A._loadedRoutes!==void 0?iA({routes:A._loadedRoutes,injector:A._loadedInjector}):KY(e,A,i,this.urlSerializer).pipe(ye(o=>o?this.configLoader.loadChildren(e,A).pipe(Ie(n=>{A._loadedRoutes=n.routes,A._loadedInjector=n.injector})):YY(A))):iA({routes:[],injector:e})}};function zY(t){t.sort((e,A)=>e.value.outlet===YA?-1:A.value.outlet===YA?1:e.value.outlet.localeCompare(A.value.outlet))}function jY(t){let e=t.value.routeConfig;return e&&e.path===""}function CR(t){let e=[],A=new Set;for(let i of t){if(!jY(i)){e.push(i);continue}let o=e.find(n=>i.value.routeConfig===n.value.routeConfig);o!==void 0?(o.children.push(...i.children),A.add(o)):e.push(i)}for(let i of A){let o=CR(i.children);e.push(new Ht(i.value,o))}return e.filter(i=>!A.has(i))}function KM(t){return t.data||{}}function UM(t){return t.resolve||{}}function XY(t,e,A,i,o,n){return ye(g=>VY(t,e,A,i,g.extractedUrl,o,n).pipe(nA(({state:r,tree:s})=>hA(R({},g),{targetSnapshot:r,urlAfterRedirects:s}))))}function $Y(t,e){return ye(A=>{let{targetSnapshot:i,guards:{canActivateChecks:o}}=A;if(!o.length)return iA(A);let n=new Set(o.map(s=>s.route)),g=new Set;for(let s of n)if(!g.has(s))for(let I of BR(s))g.add(I);let r=0;return re(g).pipe(Ti(s=>n.has(s)?AJ(s,i,t,e):(s.data=YQ(s,s.parent,t).resolve,iA(void 0))),Ie(()=>r++),$g(1),ye(s=>r===g.size?iA(A):Le))})}function BR(t){let e=t.children.map(A=>BR(A)).flat();return[t,...e]}function AJ(t,e,A,i){let o=t.routeConfig,n=t._resolve;return o?.title!==void 0&&!iR(o)&&(n[XI]=o.title),eJ(n,t,e,i).pipe(nA(g=>(t._resolvedData=g,t.data=YQ(t,t.parent,A).resolve,null)))}function eJ(t,e,A,i){let o=gu(t);if(o.length===0)return iA({});let n={};return re(o).pipe(ye(g=>tJ(t[g],e,A,i).pipe(Pi(),Ie(r=>{if(r instanceof Yr)throw JQ(new cn,r);n[g]=r}))),$g(1),nA(()=>n),ht(g=>sR(g)?Le:Wo(g)))}function tJ(t,e,A,i){let o=$I(e)??i,n=Hr(t,o),g=n.resolve?n.resolve(e,A):wt(o,()=>n(e,A));return dn(g)}function ou(t){return se(e=>{let A=t(e);return A?re(A).pipe(nA(()=>e)):iA(e)})}var fu=(()=>{class t{buildTitle(A){let i,o=A.root;for(;o!==void 0;)i=this.getResolvedTitleForRoute(o)??i,o=o.children.find(n=>n.outlet===YA);return i}getResolvedTitleForRoute(A){return A.data[XI]}static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:()=>Q(QR),providedIn:"root"})}return t})(),QR=(()=>{class t extends fu{title;constructor(A){super(),this.title=A}updateTitle(A){let i=this.buildTitle(A);i!==void 0&&this.title.setTitle(i)}static \u0275fac=function(i){return new(i||t)(O(oM))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),mg=new k("",{providedIn:"root",factory:()=>({})}),pu=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=T({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(i,o){i&1&&W(0,"router-outlet")},dependencies:[mu],encapsulation:2})}return t})();function wu(t){let e=t.children&&t.children.map(wu),A=e?hA(R({},t),{children:e}):R({},t);return!A.component&&!A.loadComponent&&(e||A.loadChildren)&&A.outlet&&A.outlet!==YA&&(A.component=pu),A}var Tr=new k(""),PQ=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=Q(c0);loadComponent(A){if(this.componentLoaders.get(A))return this.componentLoaders.get(A);if(A._loadedComponent)return iA(A._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(A);let i=dn(A.loadComponent()).pipe(nA(cR),Ie(n=>{this.onLoadEndListener&&this.onLoadEndListener(A),A._loadedComponent=n}),Oi(()=>{this.componentLoaders.delete(A)})),o=new Vo(i,()=>new _).pipe(qg());return this.componentLoaders.set(A,o),o}loadChildren(A,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return iA({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let n=ER(i,this.compiler,A,this.onLoadEndListener).pipe(Oi(()=>{this.childrenLoaders.delete(i)})),g=new Vo(n,()=>new _).pipe(qg());return this.childrenLoaders.set(i,g),g}static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function ER(t,e,A,i){return dn(t.loadChildren()).pipe(nA(cR),ye(o=>o instanceof Bh||Array.isArray(o)?iA(o):re(e.compileModuleAsync(o))),nA(o=>{i&&i(t);let n,g,r=!1;return Array.isArray(o)?(g=o,r=!0):(n=o.create(A).injector,g=n.get(Tr,[],{optional:!0,self:!0}).flat()),{routes:g.map(wu),injector:n}}))}function iJ(t){return t&&typeof t=="object"&&"default"in t}function cR(t){return iJ(t)?t.default:t}var ZQ=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:()=>Q(oJ),providedIn:"root"})}return t})(),oJ=(()=>{class t{shouldProcessUrl(A){return!0}extract(A){return A}merge(A,i){return A}static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),yu=new k(""),Mu=new k("");function lR(t,e,A){let i=t.get(Mu),o=t.get(lA);return t.get(X).runOutsideAngular(()=>{if(!o.startViewTransition||i.skipNextTransition)return i.skipNextTransition=!1,new Promise(I=>setTimeout(I));let n,g=new Promise(I=>{n=I}),r=o.startViewTransition(()=>(n(),nJ(t))),{onViewTransitionCreated:s}=i;return s&&wt(t,()=>s({transition:r,from:e,to:A})),g})}function nJ(t){return new Promise(e=>{be({read:()=>setTimeout(e)},{injector:t})})}var Ru=new k(""),qQ=(()=>{class t{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new _;transitionAbortSubject=new _;configLoader=Q(PQ);environmentInjector=Q(_e);destroyRef=Q(hr);urlSerializer=Q(hg);rootContexts=Q(ug);location=Q(to);inputBindingEnabled=Q(Aa,{optional:!0})!==null;titleStrategy=Q(fu);options=Q(mg,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=Q(ZQ);createViewTransition=Q(yu,{optional:!0});navigationErrorHandler=Q(Ru,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>iA(void 0);rootComponentType=null;destroyed=!1;constructor(){let A=o=>this.events.next(new vQ(o)),i=o=>this.events.next(new NQ(o));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=A,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(A){let i=++this.navigationId;this.transitions?.next(hA(R({},A),{extractedUrl:this.urlHandlingStrategy.extract(A.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:i}))}setupNavigations(A){return this.transitions=new ee(null),this.transitions.pipe(kA(i=>i!==null),se(i=>{let o=!1,n=!1;return iA(i).pipe(se(g=>{if(this.navigationId>i.id)return this.cancelNavigationTransition(i,"",kt.SupersededByNewNavigation),Le;this.currentTransition=i,this.currentNavigation={id:g.id,initialUrl:g.rawUrl,extractedUrl:g.extractedUrl,targetBrowserUrl:typeof g.extras.browserUrl=="string"?this.urlSerializer.parse(g.extras.browserUrl):g.extras.browserUrl,trigger:g.source,extras:g.extras,previousNavigation:this.lastSuccessfulNavigation?hA(R({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let r=!A.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),s=g.extras.onSameUrlNavigation??A.onSameUrlNavigation;if(!r&&s!=="reload"){let I="";return this.events.next(new Io(g.id,this.urlSerializer.serialize(g.rawUrl),I,_r.IgnoredSameUrlNavigation)),g.resolve(!1),Le}if(this.urlHandlingStrategy.shouldProcessUrl(g.rawUrl))return iA(g).pipe(se(I=>(this.events.next(new ln(I.id,this.urlSerializer.serialize(I.extractedUrl),I.source,I.restoredState)),I.id!==this.navigationId?Le:Promise.resolve(I))),XY(this.environmentInjector,this.configLoader,this.rootComponentType,A.config,this.urlSerializer,this.paramsInheritanceStrategy),Ie(I=>{i.targetSnapshot=I.targetSnapshot,i.urlAfterRedirects=I.urlAfterRedirects,this.currentNavigation=hA(R({},this.currentNavigation),{finalUrl:I.urlAfterRedirects});let B=new PI(I.id,this.urlSerializer.serialize(I.extractedUrl),this.urlSerializer.serialize(I.urlAfterRedirects),I.targetSnapshot);this.events.next(B)}));if(r&&this.urlHandlingStrategy.shouldProcessUrl(g.currentRawUrl)){let{id:I,extractedUrl:B,source:c,restoredState:D,extras:h}=g,p=new ln(I,this.urlSerializer.serialize(B),c,D);this.events.next(p);let y=eR(this.rootComponentType).snapshot;return this.currentTransition=i=hA(R({},g),{targetSnapshot:y,urlAfterRedirects:B,extras:hA(R({},h),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=B,iA(i)}else{let I="";return this.events.next(new Io(g.id,this.urlSerializer.serialize(g.extractedUrl),I,_r.IgnoredByUrlHandlingStrategy)),g.resolve(!1),Le}}),Ie(g=>{let r=new kQ(g.id,this.urlSerializer.serialize(g.extractedUrl),this.urlSerializer.serialize(g.urlAfterRedirects),g.targetSnapshot);this.events.next(r)}),nA(g=>(this.currentTransition=i=hA(R({},g),{guards:hY(g.targetSnapshot,g.currentSnapshot,this.rootContexts)}),i)),FY(this.environmentInjector,g=>this.events.next(g)),Ie(g=>{if(i.guardsResult=g.guardsResult,g.guardsResult&&typeof g.guardsResult!="boolean")throw JQ(this.urlSerializer,g.guardsResult);let r=new FQ(g.id,this.urlSerializer.serialize(g.extractedUrl),this.urlSerializer.serialize(g.urlAfterRedirects),g.targetSnapshot,!!g.guardsResult);this.events.next(r)}),kA(g=>g.guardsResult?!0:(this.cancelNavigationTransition(g,"",kt.GuardRejected),!1)),ou(g=>{if(g.guards.canActivateChecks.length!==0)return iA(g).pipe(Ie(r=>{let s=new bQ(r.id,this.urlSerializer.serialize(r.extractedUrl),this.urlSerializer.serialize(r.urlAfterRedirects),r.targetSnapshot);this.events.next(s)}),se(r=>{let s=!1;return iA(r).pipe($Y(this.paramsInheritanceStrategy,this.environmentInjector),Ie({next:()=>s=!0,complete:()=>{s||this.cancelNavigationTransition(r,"",kt.NoDataFromResolver)}}))}),Ie(r=>{let s=new SQ(r.id,this.urlSerializer.serialize(r.extractedUrl),this.urlSerializer.serialize(r.urlAfterRedirects),r.targetSnapshot);this.events.next(s)}))}),ou(g=>{let r=s=>{let I=[];s.routeConfig?.loadComponent&&!s.routeConfig._loadedComponent&&I.push(this.configLoader.loadComponent(s.routeConfig).pipe(Ie(B=>{s.component=B}),nA(()=>{})));for(let B of s.children)I.push(...r(B));return I};return Bi(r(g.targetSnapshot.root)).pipe($o(null),de(1))}),ou(()=>this.afterPreactivation()),se(()=>{let{currentSnapshot:g,targetSnapshot:r}=i,s=this.createViewTransition?.(this.environmentInjector,g.root,r.root);return s?re(s).pipe(nA(()=>i)):iA(i)}),nA(g=>{let r=QY(A.routeReuseStrategy,g.targetSnapshot,g.currentRouterState);return this.currentTransition=i=hA(R({},g),{targetRouterState:r}),this.currentNavigation.targetRouterState=r,i}),Ie(()=>{this.events.next(new ZI)}),dY(this.rootContexts,A.routeReuseStrategy,g=>this.events.next(g),this.inputBindingEnabled),de(1),Ie({next:g=>{o=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Ot(g.id,this.urlSerializer.serialize(g.extractedUrl),this.urlSerializer.serialize(g.urlAfterRedirects))),this.titleStrategy?.updateTitle(g.targetRouterState.snapshot),g.resolve(!0)},complete:()=>{o=!0}}),mA(this.transitionAbortSubject.pipe(Ie(g=>{throw g}))),Oi(()=>{!o&&!n&&this.cancelNavigationTransition(i,"",kt.SupersededByNewNavigation),this.currentTransition?.id===i.id&&(this.currentNavigation=null,this.currentTransition=null)}),ht(g=>{if(this.destroyed)return i.resolve(!1),Le;if(n=!0,rR(g))this.events.next(new ro(i.id,this.urlSerializer.serialize(i.extractedUrl),g.message,g.cancellationCode)),lY(g)?this.events.next(new xr(g.url,g.navigationBehaviorOptions)):i.resolve(!1);else{let r=new Kr(i.id,this.urlSerializer.serialize(i.extractedUrl),g,i.targetSnapshot??void 0);try{let s=wt(this.environmentInjector,()=>this.navigationErrorHandler?.(r));if(s instanceof Yr){let{message:I,cancellationCode:B}=JQ(this.urlSerializer,s);this.events.next(new ro(i.id,this.urlSerializer.serialize(i.extractedUrl),I,B)),this.events.next(new xr(s.redirectTo,s.navigationBehaviorOptions))}else throw this.events.next(r),g}catch(s){this.options.resolveNavigationPromiseOnError?i.resolve(!1):i.reject(s)}}return Le}))}))}cancelNavigationTransition(A,i,o){let n=new ro(A.id,this.urlSerializer.serialize(A.extractedUrl),i,o);this.events.next(n),A.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let A=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),i=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return A.toString()!==i?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function gJ(t){return t!==yQ}var dR=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:()=>Q(rJ),providedIn:"root"})}return t})(),TQ=class{shouldDetach(e){return!1}store(e,A){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,A){return e.routeConfig===A.routeConfig}},rJ=(()=>{class t extends TQ{static \u0275fac=(()=>{let A;return function(o){return(A||(A=WA(t)))(o||t)}})();static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),hR=(()=>{class t{urlSerializer=Q(hg);options=Q(mg,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=Q(to);urlHandlingStrategy=Q(ZQ);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new so;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:A,initialUrl:i,targetBrowserUrl:o}){let n=A!==void 0?this.urlHandlingStrategy.merge(A,i):i,g=o??n;return g instanceof so?this.urlSerializer.serialize(g):g}commitTransition({targetRouterState:A,finalUrl:i,initialUrl:o}){i&&A?(this.currentUrlTree=i,this.rawUrlTree=this.urlHandlingStrategy.merge(i,o),this.routerState=A):this.rawUrlTree=o}routerState=eR(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();updateStateMemento(){this.stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}resetInternalState({finalUrl:A}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,A??this.rawUrlTree)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:()=>Q(sJ),providedIn:"root"})}return t})(),sJ=(()=>{class t extends hR{currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(A){return this.location.subscribe(i=>{i.type==="popstate"&&setTimeout(()=>{A(i.url,i.state,"popstate")})})}handleRouterEvent(A,i){A instanceof ln?this.updateStateMemento():A instanceof Io?this.commitTransition(i):A instanceof PI?this.urlUpdateStrategy==="eager"&&(i.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(i),i)):A instanceof ZI?(this.commitTransition(i),this.urlUpdateStrategy==="deferred"&&!i.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(i),i)):A instanceof ro&&(A.code===kt.GuardRejected||A.code===kt.NoDataFromResolver)?this.restoreHistory(i):A instanceof Kr?this.restoreHistory(i,!0):A instanceof Ot&&(this.lastSuccessfulId=A.id,this.currentPageId=this.browserPageId)}setBrowserUrl(A,{extras:i,id:o}){let{replaceUrl:n,state:g}=i;if(this.location.isCurrentPathEqualTo(A)||n){let r=this.browserPageId,s=R(R({},g),this.generateNgRouterState(o,r));this.location.replaceState(A,"",s)}else{let r=R(R({},g),this.generateNgRouterState(o,this.browserPageId+1));this.location.go(A,"",r)}}restoreHistory(A,i=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,n=this.currentPageId-o;n!==0?this.location.historyGo(n):this.getCurrentUrlTree()===A.finalUrl&&n===0&&(this.resetInternalState(A),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&this.resetInternalState(A),this.resetUrlToCurrentUrlTree())}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(A,i){return this.canceledNavigationResolution==="computed"?{navigationId:A,\u0275routerPageId:i}:{navigationId:A}}static \u0275fac=(()=>{let A;return function(o){return(A||(A=WA(t)))(o||t)}})();static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function VQ(t,e){t.events.pipe(kA(A=>A instanceof Ot||A instanceof ro||A instanceof Kr||A instanceof Io),nA(A=>A instanceof Ot||A instanceof Io?0:(A instanceof ro?A.code===kt.Redirect||A.code===kt.SupersededByNewNavigation:!1)?2:1),kA(A=>A!==2),de(1)).subscribe(()=>{e()})}var IJ={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},aJ={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},ao=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=Q(ch);stateManager=Q(hR);options=Q(mg,{optional:!0})||{};pendingTasks=Q(No);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=Q(qQ);urlSerializer=Q(hg);location=Q(to);urlHandlingStrategy=Q(ZQ);_events=new _;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=Q(dR);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=Q(Tr,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!Q(Aa,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:A=>{this.console.warn(A)}}),this.subscribeToNavigationEvents()}eventsSubscription=new vA;subscribeToNavigationEvents(){let A=this.navigationTransitions.events.subscribe(i=>{try{let o=this.navigationTransitions.currentTransition,n=this.navigationTransitions.currentNavigation;if(o!==null&&n!==null){if(this.stateManager.handleRouterEvent(i,n),i instanceof ro&&i.code!==kt.Redirect&&i.code!==kt.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof Ot)this.navigated=!0;else if(i instanceof xr){let g=i.navigationBehaviorOptions,r=this.urlHandlingStrategy.merge(i.url,o.currentRawUrl),s=R({browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||gJ(o.source)},g);this.scheduleNavigation(r,yQ,null,s,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}BJ(i)&&this._events.next(i)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(A)}resetRootComponentType(A){this.routerState.root.component=A,this.navigationTransitions.rootComponentType=A}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),yQ,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((A,i,o)=>{this.navigateToSyncWithBrowser(A,o,i)})}navigateToSyncWithBrowser(A,i,o){let n={replaceUrl:!0},g=o?.navigationId?o:null;if(o){let s=R({},o);delete s.navigationId,delete s.\u0275routerPageId,Object.keys(s).length!==0&&(n.state=s)}let r=this.parseUrl(A);this.scheduleNavigation(r,i,g,n)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(A){this.config=A.map(wu),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(A,i={}){let{relativeTo:o,queryParams:n,fragment:g,queryParamsHandling:r,preserveFragment:s}=i,I=s?this.currentUrlTree.fragment:g,B=null;switch(r??this.options.defaultQueryParamsHandling){case"merge":B=R(R({},this.currentUrlTree.queryParams),n);break;case"preserve":B=this.currentUrlTree.queryParams;break;default:B=n||null}B!==null&&(B=this.removeEmptyProps(B));let c;try{let D=o?o.snapshot:this.routerState.snapshot.root;c=jM(D)}catch{(typeof A[0]!="string"||A[0][0]!=="/")&&(A=[]),c=this.currentUrlTree.root}return XM(c,A,B,I??null)}navigateByUrl(A,i={skipLocationChange:!1}){let o=Lr(A)?A:this.parseUrl(A),n=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(n,yQ,null,i)}navigate(A,i={skipLocationChange:!1}){return CJ(A),this.navigateByUrl(this.createUrlTree(A,i),i)}serializeUrl(A){return this.urlSerializer.serialize(A)}parseUrl(A){try{return this.urlSerializer.parse(A)}catch{return this.urlSerializer.parse("/")}}isActive(A,i){let o;if(i===!0?o=R({},IJ):i===!1?o=R({},aJ):o=i,Lr(A))return vM(this.currentUrlTree,A,o);let n=this.parseUrl(A);return vM(this.currentUrlTree,n,o)}removeEmptyProps(A){return Object.entries(A).reduce((i,[o,n])=>(n!=null&&(i[o]=n),i),{})}scheduleNavigation(A,i,o,n,g){if(this.disposed)return Promise.resolve(!1);let r,s,I;g?(r=g.resolve,s=g.reject,I=g.promise):I=new Promise((c,D)=>{r=c,s=D});let B=this.pendingTasks.add();return VQ(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(B))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:A,extras:n,resolve:r,reject:s,promise:I,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),I.catch(c=>Promise.reject(c))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function CJ(t){for(let e=0;e<t.length;e++)if(t[e]==null)throw new K(4008,!1)}function BJ(t){return!(t instanceof ZI)&&!(t instanceof xr)}var ta=class{};var uR=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(A,i,o,n){this.router=A,this.injector=i,this.preloadingStrategy=o,this.loader=n}setUpPreloading(){this.subscription=this.router.events.pipe(kA(A=>A instanceof Ot),Ti(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(A,i){let o=[];for(let n of i){n.providers&&!n._injector&&(n._injector=CI(n.providers,A,`Route: ${n.path}`));let g=n._injector??A,r=n._loadedInjector??g;(n.loadChildren&&!n._loadedRoutes&&n.canLoad===void 0||n.loadComponent&&!n._loadedComponent)&&o.push(this.preloadConfig(g,n)),(n.children||n._loadedRoutes)&&o.push(this.processRoutes(r,n.children??n._loadedRoutes))}return re(o).pipe(jo())}preloadConfig(A,i){return this.preloadingStrategy.preload(i,()=>{let o;i.loadChildren&&i.canLoad===void 0?o=this.loader.loadChildren(A,i):o=iA(null);let n=o.pipe(ye(g=>g===null?iA(void 0):(i._loadedRoutes=g.routes,i._loadedInjector=g.injector,this.processRoutes(g.injector??A,g.routes))));if(i.loadComponent&&!i._loadedComponent){let g=this.loader.loadComponent(i);return re([n,g]).pipe(jo())}else return n})}static \u0275fac=function(i){return new(i||t)(O(ao),O(_e),O(ta),O(PQ))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),mR=new k(""),QJ=(()=>{class t{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource="imperative";restoredId=0;store={};constructor(A,i,o,n,g={}){this.urlSerializer=A,this.transitions=i,this.viewportScroller=o,this.zone=n,this.options=g,g.scrollPositionRestoration||="disabled",g.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(A=>{A instanceof ln?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=A.navigationTrigger,this.restoredId=A.restoredState?A.restoredState.navigationId:0):A instanceof Ot?(this.lastId=A.id,this.scheduleScrollEvent(A,this.urlSerializer.parse(A.urlAfterRedirects).fragment)):A instanceof Io&&A.code===_r.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(A,this.urlSerializer.parse(A.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(A=>{A instanceof Ur&&(A.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(A.position):A.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(A.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(A,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Ur(A,this.lastSource==="popstate"?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(i){Ry()};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})();function EJ(t){return t.routerState.root}function ia(t,e){return{\u0275kind:t,\u0275providers:e}}function cJ(){let t=Q(wA);return e=>{let A=t.get(Kt);if(e!==A.components[0])return;let i=t.get(ao),o=t.get(DR);t.get(Fu)===1&&i.initialNavigation(),t.get(wR,null,qA.Optional)?.setUpPreloading(),t.get(mR,null,qA.Optional)?.init(),i.resetRootComponentType(A.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var DR=new k("",{factory:()=>new _}),Fu=new k("",{providedIn:"root",factory:()=>1});function fR(){let t=[{provide:Fu,useValue:0},uh(()=>{let e=Q(wA);return e.get(Rh,Promise.resolve()).then(()=>new Promise(i=>{let o=e.get(ao),n=e.get(DR);VQ(o,()=>{i(!0)}),e.get(qQ).afterPreactivation=()=>(i(!0),n.closed?iA(void 0):n),o.initialNavigation()}))})];return ia(2,t)}function pR(){let t=[uh(()=>{Q(ao).setUpLocationChangeListener()}),{provide:Fu,useValue:2}];return ia(3,t)}var wR=new k("");function yR(t){return ia(0,[{provide:wR,useExisting:uR},{provide:ta,useExisting:t}])}function MR(){return ia(8,[Du,{provide:Aa,useExisting:Du}])}function RR(t){Go("NgRouterViewTransitions");let e=[{provide:yu,useValue:lR},{provide:Mu,useValue:R({skipNextTransition:!!t?.skipInitialTransition},t)}];return ia(9,e)}var kR=[to,{provide:hg,useClass:cn},ao,ug,{provide:Xt,useFactory:EJ,deps:[ao]},PQ,[]],WQ=(()=>{class t{constructor(){}static forRoot(A,i){return{ngModule:t,providers:[kR,[],{provide:Tr,multi:!0,useValue:A},[],i?.errorHandler?{provide:Ru,useValue:i.errorHandler}:[],{provide:mg,useValue:i||{}},i?.useHash?dJ():hJ(),lJ(),i?.preloadingStrategy?yR(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?uJ(i):[],i?.bindToComponentInputs?MR().\u0275providers:[],i?.enableViewTransitions?RR().\u0275providers:[],mJ()]}}static forChild(A){return{ngModule:t,providers:[{provide:Tr,multi:!0,useValue:A}]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=Z({})}return t})();function lJ(){return{provide:mR,useFactory:()=>{let t=Q(N0),e=Q(X),A=Q(mg),i=Q(qQ),o=Q(hg);return A.scrollOffset&&t.setOffset(A.scrollOffset),new QJ(o,i,t,e,A)}}}function dJ(){return{provide:Ko,useClass:Sh}}function hJ(){return{provide:Ko,useClass:HB}}function uJ(t){return[t.initialNavigation==="disabled"?pR().\u0275providers:[],t.initialNavigation==="enabledBlocking"?fR().\u0275providers:[]]}var ku=new k("");function mJ(){return[{provide:ku,useFactory:cJ},{provide:mh,multi:!0,useExisting:ku}]}var Su;try{Su=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Su=!1}var TA=(()=>{class t{_platformId=Q(jt);isBrowser=this._platformId?io(this._platformId):typeof document=="object"&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||Su)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Or,FR=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function vu(){if(Or)return Or;if(typeof document!="object"||!document)return Or=new Set(FR),Or;let t=document.createElement("input");return Or=new Set(FR.filter(e=>(t.setAttribute("type",e),t.type===e))),Or}var oa;function pJ(){if(oa==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>oa=!0}))}finally{oa=oa||!1}return oa}function Co(t){return pJ()?t:!!t.capture}var bi=function(t){return t[t.NORMAL=0]="NORMAL",t[t.NEGATED=1]="NEGATED",t[t.INVERTED=2]="INVERTED",t}(bi||{}),zQ,Dg;function jQ(){if(Dg==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return Dg=!1,Dg;if("scrollBehavior"in document.documentElement.style)Dg=!0;else{let t=Element.prototype.scrollTo;t?Dg=!/\{\s*\[native code\]\s*\}/.test(t.toString()):Dg=!1}}return Dg}function Pr(){if(typeof document!="object"||!document)return bi.NORMAL;if(zQ==null){let t=document.createElement("div"),e=t.style;t.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";let A=document.createElement("div"),i=A.style;i.width="2px",i.height="1px",t.appendChild(A),document.body.appendChild(t),zQ=bi.NORMAL,t.scrollLeft===0&&(t.scrollLeft=1,zQ=t.scrollLeft===0?bi.NEGATED:bi.INVERTED),t.remove()}return zQ}var bu;function wJ(){if(bu==null){let t=typeof document<"u"?document.head:null;bu=!!(t&&(t.createShadowRoot||t.attachShadow))}return bu}function bR(t){if(wJ()){let e=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function Zr(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){let e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}function Pt(t){return t.composedPath?t.composedPath()[0]:t.target}function Nu(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function Gu(t,e,A,i,o){let n=parseInt(wh.major),g=parseInt(wh.minor);return n>19||n===19&&g>0||n===0&&g===0?t.listen(e,A,i,o):(e.addEventListener(A,i,o),()=>{e.removeEventListener(A,i,o)})}var XQ=new WeakMap,Se=(()=>{class t{_appRef;_injector=Q(wA);_environmentInjector=Q(_e);load(A){let i=this._appRef=this._appRef||this._injector.get(Kt),o=XQ.get(i);o||(o={loaders:new Set,refs:[]},XQ.set(i,o),i.onDestroy(()=>{XQ.get(i)?.refs.forEach(n=>n.destroy()),XQ.delete(i)})),o.loaders.has(A)||(o.loaders.add(A),o.refs.push(xB(A,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),na=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=T({type:t,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(i,o){},styles:[".cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0}"],encapsulation:2,changeDetection:0})}return t})();function Oe(t,...e){return e.length?e.some(A=>t[A]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}function pe(t){return t!=null&&`${t}`!="false"}function Zt(t,e=0){return Lu(t)?Number(t):arguments.length===2?e:0}function Lu(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function qr(t){return Array.isArray(t)?t:[t]}function ve(t){return t==null?"":typeof t=="string"?t:`${t}px`}function Ft(t){return t instanceof q?t.nativeElement:t}function yJ(t){if(t.type==="characterData"&&t.target instanceof Comment)return!0;if(t.type==="childList"){for(let e=0;e<t.addedNodes.length;e++)if(!(t.addedNodes[e]instanceof Comment))return!1;for(let e=0;e<t.removedNodes.length;e++)if(!(t.removedNodes[e]instanceof Comment))return!1;return!0}return!1}var SR=(()=>{class t{create(A){return typeof MutationObserver>"u"?null:new MutationObserver(A)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),vR=(()=>{class t{_mutationObserverFactory=Q(SR);_observedElements=new Map;_ngZone=Q(X);constructor(){}ngOnDestroy(){this._observedElements.forEach((A,i)=>this._cleanupObserver(i))}observe(A){let i=Ft(A);return new QA(o=>{let g=this._observeElement(i).pipe(nA(r=>r.filter(s=>!yJ(s))),kA(r=>!!r.length)).subscribe(r=>{this._ngZone.run(()=>{o.next(r)})});return()=>{g.unsubscribe(),this._unobserveElement(i)}})}_observeElement(A){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(A))this._observedElements.get(A).count++;else{let i=new _,o=this._mutationObserverFactory.create(n=>i.next(n));o&&o.observe(A,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(A,{observer:o,stream:i,count:1})}return this._observedElements.get(A).stream})}_unobserveElement(A){this._observedElements.has(A)&&(this._observedElements.get(A).count--,this._observedElements.get(A).count||this._cleanupObserver(A))}_cleanupObserver(A){if(this._observedElements.has(A)){let{observer:i,stream:o}=this._observedElements.get(A);i&&i.disconnect(),o.complete(),this._observedElements.delete(A)}}static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),$Q=(()=>{class t{_contentObserver=Q(vR);_elementRef=Q(q);event=new $;get disabled(){return this._disabled}set disabled(A){this._disabled=A,this._disabled?this._unsubscribe():this._subscribe()}_disabled=!1;get debounce(){return this._debounce}set debounce(A){this._debounce=Zt(A),this._subscribe()}_debounce;_currentSubscription=null;constructor(){}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();let A=this._contentObserver.observe(this._elementRef);this._currentSubscription=(this.debounce?A.pipe(Qi(this.debounce)):A).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",tA],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]})}return t})(),Vr=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=Z({providers:[SR]})}return t})();var NR=new Set,fg,MJ=(()=>{class t{_platform=Q(TA);_nonce=Q(nI,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):kJ}matchMedia(A){return(this._platform.WEBKIT||this._platform.BLINK)&&RJ(A,this._nonce),this._matchMedia(A)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function RJ(t,e){if(!NR.has(t))try{fg||(fg=document.createElement("style"),e&&fg.setAttribute("nonce",e),fg.setAttribute("type","text/css"),document.head.appendChild(fg)),fg.sheet&&(fg.sheet.insertRule(`@media ${t} {body{ }}`,0),NR.add(t))}catch(A){console.error(A)}}function kJ(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var AE=(()=>{class t{_mediaMatcher=Q(MJ);_zone=Q(X);_queries=new Map;_destroySubject=new _;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(A){return GR(qr(A)).some(o=>this._registerQuery(o).mql.matches)}observe(A){let o=GR(qr(A)).map(g=>this._registerQuery(g).observable),n=Bi(o);return n=Xo(n.pipe(de(1)),n.pipe(xn(1),Qi(0))),n.pipe(nA(g=>{let r={matches:!1,breakpoints:{}};return g.forEach(({matches:s,query:I})=>{r.matches=r.matches||s,r.breakpoints[I]=s}),r}))}_registerQuery(A){if(this._queries.has(A))return this._queries.get(A);let i=this._mediaMatcher.matchMedia(A),n={observable:new QA(g=>{let r=s=>this._zone.run(()=>g.next(s));return i.addListener(r),()=>{i.removeListener(r)}}).pipe(De(i),nA(({matches:g})=>({query:A,matches:g})),mA(this._destroySubject)),mql:i};return this._queries.set(A,n),n}static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function GR(t){return t.map(e=>e.split(",")).reduce((e,A)=>e.concat(A)).map(e=>e.trim())}var LR={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"};var YR=" ";function Pu(t,e,A){let i=oE(t,e);A=A.trim(),!i.some(o=>o.trim()===A)&&(i.push(A),t.setAttribute(e,i.join(YR)))}function aE(t,e,A){let i=oE(t,e);A=A.trim();let o=i.filter(n=>n!==A);o.length?t.setAttribute(e,o.join(YR)):t.removeAttribute(e)}function oE(t,e){return t.getAttribute(e)?.match(/\S+/g)??[]}var JR="cdk-describedby-message",eE="cdk-describedby-host",xu=0,HR=(()=>{class t{_platform=Q(TA);_document=Q(lA);_messageRegistry=new Map;_messagesContainer=null;_id=`${xu++}`;constructor(){Q(Se).load(na),this._id=Q(Dr)+"-"+xu++}describe(A,i,o){if(!this._canBeDescribed(A,i))return;let n=_u(i,o);typeof i!="string"?(_R(i,this._id),this._messageRegistry.set(n,{messageElement:i,referenceCount:0})):this._messageRegistry.has(n)||this._createMessageElement(i,o),this._isElementDescribedByMessage(A,n)||this._addMessageReference(A,n)}removeDescription(A,i,o){if(!i||!this._isElementNode(A))return;let n=_u(i,o);if(this._isElementDescribedByMessage(A,n)&&this._removeMessageReference(A,n),typeof i=="string"){let g=this._messageRegistry.get(n);g&&g.referenceCount===0&&this._deleteMessageElement(n)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let A=this._document.querySelectorAll(`[${eE}="${this._id}"]`);for(let i=0;i<A.length;i++)this._removeCdkDescribedByReferenceIds(A[i]),A[i].removeAttribute(eE);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(A,i){let o=this._document.createElement("div");_R(o,this._id),o.textContent=A,i&&o.setAttribute("role",i),this._createMessagesContainer(),this._messagesContainer.appendChild(o),this._messageRegistry.set(_u(A,i),{messageElement:o,referenceCount:0})}_deleteMessageElement(A){this._messageRegistry.get(A)?.messageElement?.remove(),this._messageRegistry.delete(A)}_createMessagesContainer(){if(this._messagesContainer)return;let A="cdk-describedby-message-container",i=this._document.querySelectorAll(`.${A}[platform="server"]`);for(let n=0;n<i.length;n++)i[n].remove();let o=this._document.createElement("div");o.style.visibility="hidden",o.classList.add(A),o.classList.add("cdk-visually-hidden"),this._platform.isBrowser||o.setAttribute("platform","server"),this._document.body.appendChild(o),this._messagesContainer=o}_removeCdkDescribedByReferenceIds(A){let i=oE(A,"aria-describedby").filter(o=>o.indexOf(JR)!=0);A.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(A,i){let o=this._messageRegistry.get(i);Pu(A,"aria-describedby",o.messageElement.id),A.setAttribute(eE,this._id),o.referenceCount++}_removeMessageReference(A,i){let o=this._messageRegistry.get(i);o.referenceCount--,aE(A,"aria-describedby",o.messageElement.id),A.removeAttribute(eE)}_isElementDescribedByMessage(A,i){let o=oE(A,"aria-describedby"),n=this._messageRegistry.get(i),g=n&&n.messageElement.id;return!!g&&o.indexOf(g)!=-1}_canBeDescribed(A,i){if(!this._isElementNode(A))return!1;if(i&&typeof i=="object")return!0;let o=i==null?"":`${i}`.trim(),n=A.getAttribute("aria-label");return o?!n||n.trim()!==o:!1}_isElementNode(A){return A.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function _u(t,e){return typeof t=="string"?`${e||""}/${t}`:t}function _R(t,e){t.id||(t.id=`${JR}-${e}-${xu++}`)}var HJ=200,Yu=class{_letterKeyStream=new _;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new _;selectedItem=this._selectedItem;constructor(e,A){let i=typeof A?.debounceInterval=="number"?A.debounceInterval:HJ;A?.skipPredicate&&(this._skipPredicateFn=A.skipPredicate),this.setItems(e),this._setupKeyHandler(i)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(e){this._selectedItemIndex=e}setItems(e){this._items=e}handleKey(e){let A=e.keyCode;e.key&&e.key.length===1?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(A>=65&&A<=90||A>=48&&A<=57)&&this._letterKeyStream.next(String.fromCharCode(A))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(e){this._letterKeyStream.pipe(Ie(A=>this._pressedLetters.push(A)),Qi(e),kA(()=>this._pressedLetters.length>0),nA(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(A=>{for(let i=1;i<this._items.length+1;i++){let o=(this._selectedItemIndex+i)%this._items.length,n=this._items[o];if(!this._skipPredicateFn?.(n)&&n.getLabel?.().toLocaleUpperCase().trim().indexOf(A)===0){this._selectedItem.next(n);break}}this._pressedLetters=[]})}},nE=class{_items;_activeItemIndex=-1;_activeItem=Ut(null);_wrap=!1;_typeaheadSubscription=vA.EMPTY;_itemChangesSubscription;_vertical=!0;_horizontal;_allowedModifierKeys=[];_homeAndEnd=!1;_pageUpAndDown={enabled:!1,delta:10};_effectRef;_typeahead;_skipPredicateFn=e=>e.disabled;constructor(e,A){this._items=e,e instanceof ui?this._itemChangesSubscription=e.changes.subscribe(i=>this._itemsChanged(i.toArray())):rn(e)&&(this._effectRef=EI(()=>this._itemsChanged(e()),{injector:A}))}tabOut=new _;change=new _;skipPredicate(e){return this._skipPredicateFn=e,this}withWrap(e=!0){return this._wrap=e,this}withVerticalOrientation(e=!0){return this._vertical=e,this}withHorizontalOrientation(e){return this._horizontal=e,this}withAllowedModifierKeys(e){return this._allowedModifierKeys=e,this}withTypeAhead(e=200){this._typeaheadSubscription.unsubscribe();let A=this._getItemsArray();return this._typeahead=new Yu(A,{debounceInterval:typeof e=="number"?e:void 0,skipPredicate:i=>this._skipPredicateFn(i)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(i=>{this.setActiveItem(i)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(e=!0){return this._homeAndEnd=e,this}withPageUpDown(e=!0,A=10){return this._pageUpAndDown={enabled:e,delta:A},this}setActiveItem(e){let A=this._activeItem();this.updateActiveItem(e),this._activeItem()!==A&&this.change.next(this._activeItemIndex)}onKeydown(e){let A=e.keyCode,o=["altKey","ctrlKey","metaKey","shiftKey"].every(n=>!e[n]||this._allowedModifierKeys.indexOf(n)>-1);switch(A){case 9:this.tabOut.next();return;case 40:if(this._vertical&&o){this.setNextItemActive();break}else return;case 38:if(this._vertical&&o){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&o){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&o){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&o){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&o){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&o){let n=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(n>0?n:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&o){let n=this._activeItemIndex+this._pageUpAndDown.delta,g=this._getItemsArray().length;this._setActiveItemByIndex(n<g?n:g-1,-1);break}else return;default:(o||Oe(e,"shiftKey"))&&this._typeahead?.handleKey(e);return}this._typeahead?.reset(),e.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem()}isTyping(){return!!this._typeahead&&this._typeahead.isTyping()}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._getItemsArray().length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(e){let A=this._getItemsArray(),i=typeof e=="number"?e:A.indexOf(e),o=A[i];this._activeItem.set(o??null),this._activeItemIndex=i,this._typeahead?.setCurrentSelectedItemIndex(i)}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._typeahead?.destroy(),this.tabOut.complete(),this.change.complete()}_setActiveItemByDelta(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}_setActiveInWrapMode(e){let A=this._getItemsArray();for(let i=1;i<=A.length;i++){let o=(this._activeItemIndex+e*i+A.length)%A.length,n=A[o];if(!this._skipPredicateFn(n)){this.setActiveItem(o);return}}}_setActiveInDefaultMode(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}_setActiveItemByIndex(e,A){let i=this._getItemsArray();if(i[e]){for(;this._skipPredicateFn(i[e]);)if(e+=A,!i[e])return;this.setActiveItem(e)}}_getItemsArray(){return rn(this._items)?this._items():this._items instanceof ui?this._items.toArray():this._items}_itemsChanged(e){this._typeahead?.setItems(e);let A=this._activeItem();if(A){let i=e.indexOf(A);i>-1&&i!==this._activeItemIndex&&(this._activeItemIndex=i,this._typeahead?.setCurrentSelectedItemIndex(i))}}},gE=class extends nE{setActiveItem(e){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(e),this.activeItem&&this.activeItem.setActiveStyles()}},rE=class extends nE{_origin="program";setFocusOrigin(e){return this._origin=e,this}setActiveItem(e){super.setActiveItem(e),this.activeItem&&this.activeItem.focus(this._origin)}};var ga=(()=>{class t{_platform=Q(TA);constructor(){}isDisabled(A){return A.hasAttribute("disabled")}isVisible(A){return OJ(A)&&getComputedStyle(A).visibility==="visible"}isTabbable(A){if(!this._platform.isBrowser)return!1;let i=TJ(XJ(A));if(i&&(KR(i)===-1||!this.isVisible(i)))return!1;let o=A.nodeName.toLowerCase(),n=KR(A);return A.hasAttribute("contenteditable")?n!==-1:o==="iframe"||o==="object"||this._platform.WEBKIT&&this._platform.IOS&&!zJ(A)?!1:o==="audio"?A.hasAttribute("controls")?n!==-1:!1:o==="video"?n===-1?!1:n!==null?!0:this._platform.FIREFOX||A.hasAttribute("controls"):A.tabIndex>=0}isFocusable(A,i){return jJ(A)&&!this.isDisabled(A)&&(i?.ignoreVisibility||this.isVisible(A))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function TJ(t){try{return t.frameElement}catch{return null}}function OJ(t){return!!(t.offsetWidth||t.offsetHeight||typeof t.getClientRects=="function"&&t.getClientRects().length)}function PJ(t){let e=t.nodeName.toLowerCase();return e==="input"||e==="select"||e==="button"||e==="textarea"}function ZJ(t){return VJ(t)&&t.type=="hidden"}function qJ(t){return WJ(t)&&t.hasAttribute("href")}function VJ(t){return t.nodeName.toLowerCase()=="input"}function WJ(t){return t.nodeName.toLowerCase()=="a"}function TR(t){if(!t.hasAttribute("tabindex")||t.tabIndex===void 0)return!1;let e=t.getAttribute("tabindex");return!!(e&&!isNaN(parseInt(e,10)))}function KR(t){if(!TR(t))return null;let e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}function zJ(t){let e=t.nodeName.toLowerCase(),A=e==="input"&&t.type;return A==="text"||A==="password"||e==="select"||e==="textarea"}function jJ(t){return ZJ(t)?!1:PJ(t)||qJ(t)||t.hasAttribute("contenteditable")||TR(t)}function XJ(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}var Ju=class{_element;_checker;_ngZone;_document;_injector;_startAnchor;_endAnchor;_hasAttached=!1;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}_enabled=!0;constructor(e,A,i,o,n=!1,g){this._element=e,this._checker=A,this._ngZone=i,this._document=o,this._injector=g,n||this.attachAnchors()}destroy(){let e=this._startAnchor,A=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.remove()),A&&(A.removeEventListener("focus",this.endAnchorListener),A.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return this._hasAttached?!0:(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(e){return new Promise(A=>{this._executeOnStable(()=>A(this.focusInitialElement(e)))})}focusFirstTabbableElementWhenReady(e){return new Promise(A=>{this._executeOnStable(()=>A(this.focusFirstTabbableElement(e)))})}focusLastTabbableElementWhenReady(e){return new Promise(A=>{this._executeOnStable(()=>A(this.focusLastTabbableElement(e)))})}_getRegionBoundary(e){let A=this._element.querySelectorAll(`[cdk-focus-region-${e}], [cdkFocusRegion${e}], [cdk-focus-${e}]`);return e=="start"?A.length?A[0]:this._getFirstTabbableElement(this._element):A.length?A[A.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(e){let A=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(A){if(!this._checker.isFocusable(A)){let i=this._getFirstTabbableElement(A);return i?.focus(e),!!i}return A.focus(e),!0}return this.focusFirstTabbableElement(e)}focusFirstTabbableElement(e){let A=this._getRegionBoundary("start");return A&&A.focus(e),!!A}focusLastTabbableElement(e){let A=this._getRegionBoundary("end");return A&&A.focus(e),!!A}hasAttached(){return this._hasAttached}_getFirstTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let A=e.children;for(let i=0;i<A.length;i++){let o=A[i].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(A[i]):null;if(o)return o}return null}_getLastTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let A=e.children;for(let i=A.length-1;i>=0;i--){let o=A[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(A[i]):null;if(o)return o}return null}_createAnchor(){let e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}_toggleAnchorTabIndex(e,A){e?A.setAttribute("tabindex","0"):A.removeAttribute("tabindex")}toggleAnchors(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}_executeOnStable(e){this._injector?be(e,{injector:this._injector}):setTimeout(e)}},CE=(()=>{class t{_checker=Q(ga);_ngZone=Q(X);_document=Q(lA);_injector=Q(wA);constructor(){Q(Se).load(na)}create(A,i=!1){return new Ju(A,this._checker,this._ngZone,this._document,i,this._injector)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Zu(t){return t.buttons===0||t.detail===0}function qu(t){let e=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!!e&&e.identifier===-1&&(e.radiusX==null||e.radiusX===1)&&(e.radiusY==null||e.radiusY===1)}var $J=new k("cdk-input-modality-detector-options"),AH={ignoreKeys:[18,17,224,91,16]},OR=650,Wr=Co({passive:!0,capture:!0}),eH=(()=>{class t{_platform=Q(TA);modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new ee(null);_options;_lastTouchMs=0;_onKeydown=A=>{this._options?.ignoreKeys?.some(i=>i===A.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Pt(A))};_onMousedown=A=>{Date.now()-this._lastTouchMs<OR||(this._modality.next(Zu(A)?"keyboard":"mouse"),this._mostRecentTarget=Pt(A))};_onTouchstart=A=>{if(qu(A)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Pt(A)};constructor(){let A=Q(X),i=Q(lA),o=Q($J,{optional:!0});this._options=R(R({},AH),o),this.modalityDetected=this._modality.pipe(xn(1)),this.modalityChanged=this.modalityDetected.pipe(Ei()),this._platform.isBrowser&&A.runOutsideAngular(()=>{i.addEventListener("keydown",this._onKeydown,Wr),i.addEventListener("mousedown",this._onMousedown,Wr),i.addEventListener("touchstart",this._onTouchstart,Wr)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Wr),document.removeEventListener("mousedown",this._onMousedown,Wr),document.removeEventListener("touchstart",this._onTouchstart,Wr))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),tH=new k("liveAnnouncerElement",{providedIn:"root",factory:iH});function iH(){return null}var oH=new k("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),nH=0,BE=(()=>{class t{_ngZone=Q(X);_defaultOptions=Q(oH,{optional:!0});_liveElement;_document=Q(lA);_previousTimeout;_currentPromise;_currentResolve;constructor(){let A=Q(tH,{optional:!0});this._liveElement=A||this._createLiveElement()}announce(A,...i){let o=this._defaultOptions,n,g;return i.length===1&&typeof i[0]=="number"?g=i[0]:[n,g]=i,this.clear(),clearTimeout(this._previousTimeout),n||(n=o&&o.politeness?o.politeness:"polite"),g==null&&o&&(g=o.duration),this._liveElement.setAttribute("aria-live",n),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(r=>this._currentResolve=r)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=A,typeof g=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),g)),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(){let A="cdk-live-announcer-element",i=this._document.getElementsByClassName(A),o=this._document.createElement("div");for(let n=0;n<i.length;n++)i[n].remove();return o.classList.add(A),o.classList.add("cdk-visually-hidden"),o.setAttribute("aria-atomic","true"),o.setAttribute("aria-live","polite"),o.id=`cdk-live-announcer-${nH++}`,this._document.body.appendChild(o),o}_exposeAnnouncerToModals(A){let i=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let o=0;o<i.length;o++){let n=i[o],g=n.getAttribute("aria-owns");g?g.indexOf(A)===-1&&n.setAttribute("aria-owns",g+" "+A):n.setAttribute("aria-owns",A)}}static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var iE=function(t){return t[t.IMMEDIATE=0]="IMMEDIATE",t[t.EVENTUAL=1]="EVENTUAL",t}(iE||{}),gH=new k("cdk-focus-monitor-default-options"),tE=Co({passive:!0,capture:!0}),$t=(()=>{class t{_ngZone=Q(X);_platform=Q(TA);_inputModalityDetector=Q(eH);_origin=null;_lastFocusOrigin;_windowFocused=!1;_windowFocusTimeoutId;_originTimeoutId;_originFromTouchInteraction=!1;_elementInfo=new Map;_monitoredElementCount=0;_rootNodeFocusListenerCount=new Map;_detectionMode;_windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)};_document=Q(lA,{optional:!0});_stopInputModalityDetector=new _;constructor(){let A=Q(gH,{optional:!0});this._detectionMode=A?.detectionMode||iE.IMMEDIATE}_rootNodeFocusAndBlurListener=A=>{let i=Pt(A);for(let o=i;o;o=o.parentElement)A.type==="focus"?this._onFocus(A,o):this._onBlur(A,o)};monitor(A,i=!1){let o=Ft(A);if(!this._platform.isBrowser||o.nodeType!==1)return iA();let n=bR(o)||this._getDocument(),g=this._elementInfo.get(o);if(g)return i&&(g.checkChildren=!0),g.subject;let r={checkChildren:i,subject:new _,rootNode:n};return this._elementInfo.set(o,r),this._registerGlobalListeners(r),r.subject}stopMonitoring(A){let i=Ft(A),o=this._elementInfo.get(i);o&&(o.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(o))}focusVia(A,i,o){let n=Ft(A),g=this._getDocument().activeElement;n===g?this._getClosestElementsInfo(n).forEach(([r,s])=>this._originChanged(r,i,s)):(this._setOrigin(i),typeof n.focus=="function"&&n.focus(o))}ngOnDestroy(){this._elementInfo.forEach((A,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(A){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(A)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:A&&this._isLastInteractionFromInputLabel(A)?"mouse":"program"}_shouldBeAttributedToTouch(A){return this._detectionMode===iE.EVENTUAL||!!A?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(A,i){A.classList.toggle("cdk-focused",!!i),A.classList.toggle("cdk-touch-focused",i==="touch"),A.classList.toggle("cdk-keyboard-focused",i==="keyboard"),A.classList.toggle("cdk-mouse-focused",i==="mouse"),A.classList.toggle("cdk-program-focused",i==="program")}_setOrigin(A,i=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=A,this._originFromTouchInteraction=A==="touch"&&i,this._detectionMode===iE.IMMEDIATE){clearTimeout(this._originTimeoutId);let o=this._originFromTouchInteraction?OR:1;this._originTimeoutId=setTimeout(()=>this._origin=null,o)}})}_onFocus(A,i){let o=this._elementInfo.get(i),n=Pt(A);!o||!o.checkChildren&&i!==n||this._originChanged(i,this._getFocusOrigin(n),o)}_onBlur(A,i){let o=this._elementInfo.get(i);!o||o.checkChildren&&A.relatedTarget instanceof Node&&i.contains(A.relatedTarget)||(this._setClasses(i),this._emitOrigin(o,null))}_emitOrigin(A,i){A.subject.observers.length&&this._ngZone.run(()=>A.subject.next(i))}_registerGlobalListeners(A){if(!this._platform.isBrowser)return;let i=A.rootNode,o=this._rootNodeFocusListenerCount.get(i)||0;o||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,tE),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,tE)}),this._rootNodeFocusListenerCount.set(i,o+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(mA(this._stopInputModalityDetector)).subscribe(n=>{this._setOrigin(n,!0)}))}_removeGlobalListeners(A){let i=A.rootNode;if(this._rootNodeFocusListenerCount.has(i)){let o=this._rootNodeFocusListenerCount.get(i);o>1?this._rootNodeFocusListenerCount.set(i,o-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,tE),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,tE),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(A,i,o){this._setClasses(A,i),this._emitOrigin(o,i),this._lastFocusOrigin=i}_getClosestElementsInfo(A){let i=[];return this._elementInfo.forEach((o,n)=>{(n===A||o.checkChildren&&n.contains(A))&&i.push([n,o])}),i}_isLastInteractionFromInputLabel(A){let{_mostRecentTarget:i,mostRecentModality:o}=this._inputModalityDetector;if(o!=="mouse"||!i||i===A||A.nodeName!=="INPUT"&&A.nodeName!=="TEXTAREA"||A.disabled)return!1;let n=A.labels;if(n){for(let g=0;g<n.length;g++)if(n[g].contains(i))return!0}return!1}static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),PR=(()=>{class t{_elementRef=Q(q);_focusMonitor=Q($t);_monitorSubscription;_focusOrigin=null;cdkFocusChange=new $;constructor(){}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){let A=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(A,A.nodeType===1&&A.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(i=>{this._focusOrigin=i,this.cdkFocusChange.emit(i)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return t})(),pg=function(t){return t[t.NONE=0]="NONE",t[t.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",t[t.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",t}(pg||{}),UR="cdk-high-contrast-black-on-white",xR="cdk-high-contrast-white-on-black",Ku="cdk-high-contrast-active",Vu=(()=>{class t{_platform=Q(TA);_hasCheckedHighContrastMode;_document=Q(lA);_breakpointSubscription;constructor(){this._breakpointSubscription=Q(AE).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return pg.NONE;let A=this._document.createElement("div");A.style.backgroundColor="rgb(1,2,3)",A.style.position="absolute",this._document.body.appendChild(A);let i=this._document.defaultView||window,o=i&&i.getComputedStyle?i.getComputedStyle(A):null,n=(o&&o.backgroundColor||"").replace(/ /g,"");switch(A.remove(),n){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return pg.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return pg.BLACK_ON_WHITE}return pg.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let A=this._document.body.classList;A.remove(Ku,UR,xR),this._hasCheckedHighContrastMode=!0;let i=this.getHighContrastMode();i===pg.BLACK_ON_WHITE?A.add(Ku,UR):i===pg.WHITE_ON_BLACK&&A.add(Ku,xR)}}static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Wu=(()=>{class t{constructor(){Q(Vu)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=Z({imports:[Vr]})}return t})(),Uu={},ce=(()=>{class t{_appId=Q(Dr);getId(A){return this._appId!=="ng"&&(A+=this._appId),Uu.hasOwnProperty(A)||(Uu[A]=0),`${A}${Uu[A]++}`}static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var rH=new k("cdk-dir-doc",{providedIn:"root",factory:sH});function sH(){return Q(lA)}var IH=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function aH(t){let e=t?.toLowerCase()||"";return e==="auto"&&typeof navigator<"u"&&navigator?.language?IH.test(navigator.language)?"rtl":"ltr":e==="rtl"?"rtl":"ltr"}var Ne=(()=>{class t{value="ltr";change=new $;constructor(){let A=Q(rH,{optional:!0});if(A){let i=A.body?A.body.dir:null,o=A.documentElement?A.documentElement.dir:null;this.value=aH(i||o||"ltr")}}ngOnDestroy(){this.change.complete()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var hn=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=Z({})}return t})();var CH=["text"],BH=[[["mat-icon"]],"*"],QH=["mat-icon","*"];function EH(t,e){if(t&1&&W(0,"mat-pseudo-checkbox",1),t&2){let A=b();F("disabled",A.disabled)("state",A.selected?"checked":"unchecked")}}function cH(t,e){if(t&1&&W(0,"mat-pseudo-checkbox",3),t&2){let A=b();F("disabled",A.disabled)}}function lH(t,e){if(t&1&&(u(0,"span",4),G(1),m()),t&2){let A=b();f(),te("(",A.group.label,")")}}var dH=["mat-internal-form-field",""],hH=["*"];var MA=(()=>{class t{constructor(){Q(Vu)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=Z({imports:[hn,hn]})}return t})(),wg=class{_defaultMatcher;ngControl;_parentFormGroup;_parentForm;_stateChanges;errorState=!1;matcher;constructor(e,A,i,o,n){this._defaultMatcher=e,this.ngControl=A,this._parentFormGroup=i,this._parentForm=o,this._stateChanges=n}updateErrorState(){let e=this.errorState,A=this._parentFormGroup||this._parentForm,i=this.matcher||this._defaultMatcher,o=this.ngControl?this.ngControl.control:null,n=i?.isErrorState(o,A)??!1;n!==e&&(this.errorState=n,this._stateChanges.next())}};var Xr=(()=>{class t{isErrorState(A,i){return!!(A&&A.invalid&&(A.touched||i&&i.submitted))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ei=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=T({type:t,selectors:[["structural-styles"]],decls:0,vars:0,template:function(i,o){},styles:['.mat-focus-indicator{position:relative}.mat-focus-indicator::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border-width:var(--mat-focus-indicator-border-width, 3px);border-style:var(--mat-focus-indicator-border-style, solid);border-color:var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator:focus::before{content:""}@media(forced-colors: active){html{--mat-focus-indicator-display: block}}'],encapsulation:2,changeDetection:0})}return t})();var Ai=function(t){return t[t.FADING_IN=0]="FADING_IN",t[t.VISIBLE=1]="VISIBLE",t[t.FADING_OUT=2]="FADING_OUT",t[t.HIDDEN=3]="HIDDEN",t}(Ai||{}),Xu=class{_renderer;element;config;_animationForciblyDisabledThroughCss;state=Ai.HIDDEN;constructor(e,A,i,o=!1){this._renderer=e,this.element=A,this.config=i,this._animationForciblyDisabledThroughCss=o}fadeOut(){this._renderer.fadeOutRipple(this)}},ZR=Co({passive:!0,capture:!0}),$u=class{_events=new Map;addHandler(e,A,i,o){let n=this._events.get(A);if(n){let g=n.get(i);g?g.add(o):n.set(i,new Set([o]))}else this._events.set(A,new Map([[i,new Set([o])]])),e.runOutsideAngular(()=>{document.addEventListener(A,this._delegateEventHandler,ZR)})}removeHandler(e,A,i){let o=this._events.get(e);if(!o)return;let n=o.get(A);n&&(n.delete(i),n.size===0&&o.delete(A),o.size===0&&(this._events.delete(e),document.removeEventListener(e,this._delegateEventHandler,ZR)))}_delegateEventHandler=e=>{let A=Pt(e);A&&this._events.get(e.type)?.forEach((i,o)=>{(o===A||o.contains(A))&&i.forEach(n=>n.handleEvent(e))})}},EE={enterDuration:225,exitDuration:150},uH=800,qR=Co({passive:!0,capture:!0}),VR=["mousedown","touchstart"],WR=["mouseup","mouseleave","touchend","touchcancel"],mH=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=T({type:t,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(i,o){},styles:[".mat-ripple{overflow:hidden;position:relative}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0, 0, 0.2, 1);transform:scale3d(0, 0, 0);background-color:var(--mat-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface) 10%, transparent))}@media(forced-colors: active){.mat-ripple-element{display:none}}.cdk-drag-preview .mat-ripple-element,.cdk-drag-placeholder .mat-ripple-element{display:none}"],encapsulation:2,changeDetection:0})}return t})(),zr=class t{_target;_ngZone;_platform;_containerElement;_triggerElement;_isPointerDown=!1;_activeRipples=new Map;_mostRecentTransientRipple;_lastTouchStartEvent;_pointerUpEventsRegistered=!1;_containerRect;static _eventManager=new $u;constructor(e,A,i,o,n){this._target=e,this._ngZone=A,this._platform=o,o.isBrowser&&(this._containerElement=Ft(i)),n&&n.get(Se).load(mH)}fadeInRipple(e,A,i={}){let o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),n=R(R({},EE),i.animation);i.centered&&(e=o.left+o.width/2,A=o.top+o.height/2);let g=i.radius||DH(e,A,o),r=e-o.left,s=A-o.top,I=n.enterDuration,B=document.createElement("div");B.classList.add("mat-ripple-element"),B.style.left=`${r-g}px`,B.style.top=`${s-g}px`,B.style.height=`${g*2}px`,B.style.width=`${g*2}px`,i.color!=null&&(B.style.backgroundColor=i.color),B.style.transitionDuration=`${I}ms`,this._containerElement.appendChild(B);let c=window.getComputedStyle(B),D=c.transitionProperty,h=c.transitionDuration,p=D==="none"||h==="0s"||h==="0s, 0s"||o.width===0&&o.height===0,y=new Xu(this,B,i,p);B.style.transform="scale3d(1, 1, 1)",y.state=Ai.FADING_IN,i.persistent||(this._mostRecentTransientRipple=y);let L=null;return!p&&(I||n.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let P=()=>{L&&(L.fallbackTimer=null),clearTimeout(UA),this._finishRippleTransition(y)},DA=()=>this._destroyRipple(y),UA=setTimeout(DA,I+100);B.addEventListener("transitionend",P),B.addEventListener("transitioncancel",DA),L={onTransitionEnd:P,onTransitionCancel:DA,fallbackTimer:UA}}),this._activeRipples.set(y,L),(p||!I)&&this._finishRippleTransition(y),y}fadeOutRipple(e){if(e.state===Ai.FADING_OUT||e.state===Ai.HIDDEN)return;let A=e.element,i=R(R({},EE),e.config.animation);A.style.transitionDuration=`${i.exitDuration}ms`,A.style.opacity="0",e.state=Ai.FADING_OUT,(e._animationForciblyDisabledThroughCss||!i.exitDuration)&&this._finishRippleTransition(e)}fadeOutAll(){this._getActiveRipples().forEach(e=>e.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(e=>{e.config.persistent||e.fadeOut()})}setupTriggerEvents(e){let A=Ft(e);!this._platform.isBrowser||!A||A===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=A,VR.forEach(i=>{t._eventManager.addHandler(this._ngZone,i,A,this)}))}handleEvent(e){e.type==="mousedown"?this._onMousedown(e):e.type==="touchstart"?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{WR.forEach(A=>{this._triggerElement.addEventListener(A,this,qR)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(e){e.state===Ai.FADING_IN?this._startFadeOutTransition(e):e.state===Ai.FADING_OUT&&this._destroyRipple(e)}_startFadeOutTransition(e){let A=e===this._mostRecentTransientRipple,{persistent:i}=e.config;e.state=Ai.VISIBLE,!i&&(!A||!this._isPointerDown)&&e.fadeOut()}_destroyRipple(e){let A=this._activeRipples.get(e)??null;this._activeRipples.delete(e),this._activeRipples.size||(this._containerRect=null),e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),e.state=Ai.HIDDEN,A!==null&&(e.element.removeEventListener("transitionend",A.onTransitionEnd),e.element.removeEventListener("transitioncancel",A.onTransitionCancel),A.fallbackTimer!==null&&clearTimeout(A.fallbackTimer)),e.element.remove()}_onMousedown(e){let A=Zu(e),i=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+uH;!this._target.rippleDisabled&&!A&&!i&&(this._isPointerDown=!0,this.fadeInRipple(e.clientX,e.clientY,this._target.rippleConfig))}_onTouchStart(e){if(!this._target.rippleDisabled&&!qu(e)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;let A=e.changedTouches;if(A)for(let i=0;i<A.length;i++)this.fadeInRipple(A[i].clientX,A[i].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(e=>{let A=e.state===Ai.VISIBLE||e.config.terminateOnPointerUp&&e.state===Ai.FADING_IN;!e.config.persistent&&A&&e.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let e=this._triggerElement;e&&(VR.forEach(A=>t._eventManager.removeHandler(A,e,this)),this._pointerUpEventsRegistered&&(WR.forEach(A=>e.removeEventListener(A,this,qR)),this._pointerUpEventsRegistered=!1))}};function DH(t,e,A){let i=Math.max(Math.abs(t-A.left),Math.abs(t-A.right)),o=Math.max(Math.abs(e-A.top),Math.abs(e-A.bottom));return Math.sqrt(i*i+o*o)}var $r=new k("mat-ripple-global-options"),mn=(()=>{class t{_elementRef=Q(q);_animationMode=Q($A,{optional:!0});color;unbounded;centered;radius=0;animation;get disabled(){return this._disabled}set disabled(A){A&&this.fadeOutAllNonPersistent(),this._disabled=A,this._setupTriggerEventsIfEnabled()}_disabled=!1;get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(A){this._trigger=A,this._setupTriggerEventsIfEnabled()}_trigger;_rippleRenderer;_globalOptions;_isInitialized=!1;constructor(){let A=Q(X),i=Q(TA),o=Q($r,{optional:!0}),n=Q(wA);this._globalOptions=o||{},this._rippleRenderer=new zr(this,A,this._elementRef,i,n)}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:R(R(R({},this._globalOptions.animation),this._animationMode==="NoopAnimations"?{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(A,i=0,o){return typeof A=="number"?this._rippleRenderer.fadeInRipple(A,i,R(R({},this.rippleConfig),o)):this._rippleRenderer.fadeInRipple(0,0,R(R({},this.rippleConfig),A))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(i,o){i&2&&oA("mat-ripple-unbounded",o.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"]})}return t})(),yg=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=Z({imports:[MA,MA]})}return t})(),fH=(()=>{class t{_animationMode=Q($A,{optional:!0});state="unchecked";disabled=!1;appearance="full";constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=T({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(i,o){i&2&&oA("mat-pseudo-checkbox-indeterminate",o.state==="indeterminate")("mat-pseudo-checkbox-checked",o.state==="checked")("mat-pseudo-checkbox-disabled",o.disabled)("mat-pseudo-checkbox-minimal",o.appearance==="minimal")("mat-pseudo-checkbox-full",o.appearance==="full")("_mat-animation-noopable",o._animationMode==="NoopAnimations")},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(i,o){},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-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color, var(--mat-sys-primary))}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color, var(--mat-sys-on-surface-variant));border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color, var(--mat-sys-primary));border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}.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})}return t})(),em=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=Z({imports:[MA]})}return t})(),tm=new k("MAT_OPTION_PARENT_COMPONENT"),im=new k("MatOptgroup");var Am=class{source;isUserInput;constructor(e,A=!1){this.source=e,this.isUserInput=A}},Dn=(()=>{class t{_element=Q(q);_changeDetectorRef=Q(zA);_parent=Q(tm,{optional:!0});group=Q(im,{optional:!0});_signalDisableRipple=!1;_selected=!1;_active=!1;_disabled=!1;_mostRecentViewValue="";get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}value;id=Q(ce).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(A){this._disabled=A}get disableRipple(){return this._signalDisableRipple?this._parent.disableRipple():!!this._parent?.disableRipple}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}onSelectionChange=new $;_text;_stateChanges=new _;constructor(){let A=Q(Se);A.load(ei),A.load(na),this._signalDisableRipple=!!this._parent&&rn(this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(A=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),A&&this._emitSelectionChangeEvent())}deselect(A=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),A&&this._emitSelectionChangeEvent())}focus(A,i){let o=this._getHostElement();typeof o.focus=="function"&&o.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(A){(A.keyCode===13||A.keyCode===32)&&!Oe(A)&&(this._selectViaInteraction(),A.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){let A=this.viewValue;A!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=A)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(A=!1){this.onSelectionChange.emit(new Am(this,A))}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=T({type:t,selectors:[["mat-option"]],viewQuery:function(i,o){if(i&1&&cA(CH,7),i&2){let n;z(n=j())&&(o._text=n.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(i,o){i&1&&x("click",function(){return o._selectViaInteraction()})("keydown",function(g){return o._handleKeydown(g)}),i&2&&(Qt("id",o.id),IA("aria-selected",o.selected)("aria-disabled",o.disabled.toString()),oA("mdc-list-item--selected",o.selected)("mat-mdc-option-multiple",o.multiple)("mat-mdc-option-active",o.active)("mdc-list-item--disabled",o.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",tA]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:QH,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(i,o){i&1&&(ZA(BH),U(0,EH,1,2,"mat-pseudo-checkbox",1),sA(1),u(2,"span",2,0),sA(4,1),m(),U(5,cH,1,1,"mat-pseudo-checkbox",3)(6,lH,2,1,"span",4),W(7,"div",5)),i&2&&(pA(o.multiple?0:-1),f(5),pA(!o.multiple&&o.selected&&!o.hideSingleSelectionIndicator?5:-1),f(),pA(o.group&&o.group._inert?6:-1),f(),F("matRippleTrigger",o._getHostElement())("matRippleDisabled",o.disabled||o.disableRipple))},dependencies:[fH,mn],styles:['.mat-mdc-option{-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-option-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-option-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-option-label-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-option-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-option-label-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));outline:0}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color, var(--mat-sys-secondary-container))}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-selected-checkmark-color: var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.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}@media(forced-colors: active){.mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{right:auto;left:16px}}.mat-mdc-option-multiple{--mdc-list-list-item-selected-container-color:var(--mdc-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return t})();function $R(t,e,A){if(A.length){let i=e.toArray(),o=A.toArray(),n=0;for(let g=0;g<t+1;g++)i[g].group&&i[g].group===o[n]&&n++;return n}return 0}function Ak(t,e,A,i){return t<A?t:t+e>A+i?Math.max(0,t-i+e):A}var om=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=Z({imports:[yg,MA,em]})}return t})(),zR={capture:!0},jR=["focus","mousedown","mouseenter","touchstart"],zu="mat-ripple-loader-uninitialized",ju="mat-ripple-loader-class-name",XR="mat-ripple-loader-centered",QE="mat-ripple-loader-disabled",nm=(()=>{class t{_document=Q(lA,{optional:!0});_animationMode=Q($A,{optional:!0});_globalRippleOptions=Q($r,{optional:!0});_platform=Q(TA);_ngZone=Q(X);_injector=Q(wA);_hosts=new Map;constructor(){this._ngZone.runOutsideAngular(()=>{for(let A of jR)this._document?.addEventListener(A,this._onInteraction,zR)})}ngOnDestroy(){let A=this._hosts.keys();for(let i of A)this.destroyRipple(i);for(let i of jR)this._document?.removeEventListener(i,this._onInteraction,zR)}configureRipple(A,i){A.setAttribute(zu,this._globalRippleOptions?.namespace??""),(i.className||!A.hasAttribute(ju))&&A.setAttribute(ju,i.className||""),i.centered&&A.setAttribute(XR,""),i.disabled&&A.setAttribute(QE,"")}setDisabled(A,i){let o=this._hosts.get(A);o?(o.target.rippleDisabled=i,!i&&!o.hasSetUpEvents&&(o.hasSetUpEvents=!0,o.renderer.setupTriggerEvents(A))):i?A.setAttribute(QE,""):A.removeAttribute(QE)}_onInteraction=A=>{let i=Pt(A);if(i instanceof HTMLElement){let o=i.closest(`[${zu}="${this._globalRippleOptions?.namespace??""}"]`);o&&this._createRipple(o)}};_createRipple(A){if(!this._document||this._hosts.has(A))return;A.querySelector(".mat-ripple")?.remove();let i=this._document.createElement("span");i.classList.add("mat-ripple",A.getAttribute(ju)),A.append(i);let o=this._animationMode==="NoopAnimations",n=this._globalRippleOptions,g=o?0:n?.animation?.enterDuration??EE.enterDuration,r=o?0:n?.animation?.exitDuration??EE.exitDuration,s={rippleDisabled:o||n?.disabled||A.hasAttribute(QE),rippleConfig:{centered:A.hasAttribute(XR),terminateOnPointerUp:n?.terminateOnPointerUp,animation:{enterDuration:g,exitDuration:r}}},I=new zr(s,this._ngZone,i,this._platform,this._injector),B=!s.rippleDisabled;B&&I.setupTriggerEvents(A),this._hosts.set(A,{target:s,renderer:I,hasSetUpEvents:B}),A.removeAttribute(zu)}destroyRipple(A){let i=this._hosts.get(A);i&&(i.renderer._removeTriggerEvents(),this._hosts.delete(A))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),cE=(()=>{class t{labelPosition;static \u0275fac=function(i){return new(i||t)};static \u0275cmp=T({type:t,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(i,o){i&2&&oA("mdc-form-field--align-end",o.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},attrs:dH,ngContentSelectors:hH,decls:1,vars:0,template:function(i,o){i&1&&(ZA(),sA(0))},styles:[".mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-flex;align-items:center;vertical-align:middle}.mat-internal-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mat-internal-form-field>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px}.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 .mdc-form-field--align-end label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0}"],encapsulation:2,changeDetection:0})}return t})();var pH=["mat-button",""],gm=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],rm=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"];var wH="@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-icon-button.mat-mdc-icon-button{outline:solid 1px}}",yH=["mat-fab",""],MH=["mat-mini-fab",""],RH='.mat-mdc-fab-base{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;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;-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);flex-shrink:0;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-fab-base .mat-mdc-button-ripple,.mat-mdc-fab-base .mat-mdc-button-persistent-ripple,.mat-mdc-fab-base .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-base .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-fab-base .mdc-button__label,.mat-mdc-fab-base .mat-icon{z-index:1;position:relative}.mat-mdc-fab-base .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-fab-base:focus>.mat-focus-indicator::before{content:""}.mat-mdc-fab-base._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-fab-base::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}.mat-mdc-fab-base[hidden]{display:none}.mat-mdc-fab-base::-moz-focus-inner{padding:0;border:0}.mat-mdc-fab-base:active,.mat-mdc-fab-base:focus{outline:none}.mat-mdc-fab-base:hover{cursor:pointer}.mat-mdc-fab-base>svg{width:100%}.mat-mdc-fab-base .mat-icon,.mat-mdc-fab-base .material-icons{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mat-mdc-fab-base .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-fab-base[disabled],.mat-mdc-fab-base.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-fab-base[disabled],.mat-mdc-fab-base[disabled]:focus,.mat-mdc-fab-base.mat-mdc-button-disabled,.mat-mdc-fab-base.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-fab-base.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab{background-color:var(--mdc-fab-container-color, var(--mat-sys-primary-container));border-radius:var(--mdc-fab-container-shape, var(--mat-sys-corner-large));color:var(--mat-fab-foreground-color, var(--mat-sys-on-primary-container, inherit));box-shadow:var(--mdc-fab-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab:hover{box-shadow:var(--mdc-fab-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-fab:focus{box-shadow:var(--mdc-fab-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab:active,.mat-mdc-fab:focus:active{box-shadow:var(--mdc-fab-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab[disabled],.mat-mdc-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-disabled-state-foreground-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-fab-disabled-state-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-fab-touch-target-display, block)}.mat-mdc-fab .mat-ripple-element{background-color:var(--mat-fab-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-state-layer-color, var(--mat-sys-on-primary-container))}.mat-mdc-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-disabled-state-layer-color)}.mat-mdc-fab:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-fab.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-fab:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-mini-fab{width:40px;height:40px;background-color:var(--mdc-fab-small-container-color, var(--mat-sys-primary-container));border-radius:var(--mdc-fab-small-container-shape, var(--mat-sys-corner-medium));color:var(--mat-fab-small-foreground-color, var(--mat-sys-on-primary-container, inherit));box-shadow:var(--mdc-fab-small-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab:hover{box-shadow:var(--mdc-fab-small-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-mini-fab:focus{box-shadow:var(--mdc-fab-small-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab:active,.mat-mdc-mini-fab:focus:active{box-shadow:var(--mdc-fab-small-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-small-disabled-state-foreground-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-fab-small-disabled-state-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-mini-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-fab-small-touch-target-display)}.mat-mdc-mini-fab .mat-ripple-element{background-color:var(--mat-fab-small-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-state-layer-color, var(--mat-sys-on-primary-container))}.mat-mdc-mini-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-disabled-state-layer-color)}.mat-mdc-mini-fab:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-mini-fab.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-mini-fab:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-extended-fab{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;border-radius:24px;padding-left:20px;padding-right:20px;width:auto;max-width:100%;line-height:normal;height:var(--mdc-extended-fab-container-height, 56px);border-radius:var(--mdc-extended-fab-container-shape, var(--mat-sys-corner-large));font-family:var(--mdc-extended-fab-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-extended-fab-label-text-size, var(--mat-sys-label-large-size));font-weight:var(--mdc-extended-fab-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mdc-extended-fab-label-text-tracking, var(--mat-sys-label-large-tracking));box-shadow:var(--mdc-extended-fab-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-extended-fab:hover{box-shadow:var(--mdc-extended-fab-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-extended-fab:focus{box-shadow:var(--mdc-extended-fab-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-extended-fab:active,.mat-mdc-extended-fab:focus:active{box-shadow:var(--mdc-extended-fab-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab[disabled]:focus,.mat-mdc-extended-fab.mat-mdc-button-disabled,.mat-mdc-extended-fab.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-extended-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}[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>.mat-icon,.mat-mdc-extended-fab>.material-icons{margin-left:-8px;margin-right:12px}.mat-mdc-extended-fab .mdc-button__label+.mat-icon,.mat-mdc-extended-fab .mdc-button__label+.material-icons,[dir=rtl] .mat-mdc-extended-fab>.mat-icon,[dir=rtl] .mat-mdc-extended-fab>.material-icons{margin-left:12px;margin-right:-8px}.mat-mdc-extended-fab .mat-mdc-button-touch-target{width:100%}',kH=["mat-icon-button",""],FH=["*"];var bH=new k("MAT_BUTTON_CONFIG");var SH=[{attribute:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{attribute:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{attribute:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{attribute:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{attribute:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mat-mdc-fab"]},{attribute:"mat-mini-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mdc-fab--mini","mat-mdc-mini-fab"]},{attribute:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],dE=(()=>{class t{_elementRef=Q(q);_ngZone=Q(X);_animationMode=Q($A,{optional:!0});_focusMonitor=Q($t);_rippleLoader=Q(nm);_isFab=!1;color;get disableRipple(){return this._disableRipple}set disableRipple(A){this._disableRipple=A,this._updateRippleDisabled()}_disableRipple=!1;get disabled(){return this._disabled}set disabled(A){this._disabled=A,this._updateRippleDisabled()}_disabled=!1;ariaDisabled;disabledInteractive;constructor(){Q(Se).load(ei);let A=Q(bH,{optional:!0}),i=this._elementRef.nativeElement,o=i.classList;this.disabledInteractive=A?.disabledInteractive??!1,this.color=A?.color??null,this._rippleLoader?.configureRipple(i,{className:"mat-mdc-button-ripple"});for(let{attribute:n,mdcClasses:g}of SH)i.hasAttribute(n)&&o.add(...g)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(A="program",i){A?this._focusMonitor.focusVia(this._elementRef.nativeElement,A,i):this._elementRef.nativeElement.focus(i)}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this.disabled&&this.disabledInteractive?!0:null}_getDisabledAttribute(){return this.disabledInteractive||!this.disabled?null:!0}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",tA],disabled:[2,"disabled","disabled",tA],ariaDisabled:[2,"aria-disabled","ariaDisabled",tA],disabledInteractive:[2,"disabledInteractive","disabledInteractive",tA]}})}return t})();var bt=(()=>{class t extends dE{static \u0275fac=(()=>{let A;return function(o){return(A||(A=WA(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(i,o){i&2&&(IA("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled()),We(o.color?"mat-"+o.color:""),oA("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],features:[EA],attrs:pH,ngContentSelectors:rm,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(i,o){i&1&&(ZA(gm),W(0,"span",0),sA(1),u(2,"span",1),sA(3,1),m(),sA(4,2),W(5,"span",2)(6,"span",3)),i&2&&oA("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:['.mat-mdc-button-base{text-decoration:none}.mdc-button{-webkit-user-select:none;user-select:none;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;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.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__label{position:relative}.mat-mdc-button{padding:0 var(--mat-text-button-horizontal-padding, 12px);height:var(--mdc-text-button-container-height, 40px);font-family:var(--mdc-text-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-text-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-text-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-text-button-label-text-transform);font-weight:var(--mdc-text-button-label-text-weight, var(--mat-sys-label-large-weight))}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, var(--mat-sys-primary))}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 16px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, -4px);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, -4px);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, -4px)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display, block)}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mdc-filled-button-container-height, 40px);font-family:var(--mdc-filled-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-filled-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-filled-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-filled-button-label-text-transform);font-weight:var(--mdc-filled-button-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-filled-button-horizontal-padding, 24px)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -8px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -8px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -8px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color, var(--mat-sys-on-primary))}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-unelevated-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-unelevated-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-unelevated-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display, block)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, var(--mat-sys-on-primary));background-color:var(--mdc-filled-button-container-color, var(--mat-sys-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mdc-filled-button-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);box-shadow:var(--mdc-protected-button-container-elevation-shadow, var(--mat-sys-level1));height:var(--mdc-protected-button-container-height, 40px);font-family:var(--mdc-protected-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-protected-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-protected-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-protected-button-label-text-transform);font-weight:var(--mdc-protected-button-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-protected-button-horizontal-padding, 24px)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -8px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -8px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -8px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-raised-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-raised-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-raised-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display, block)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, var(--mat-sys-primary));background-color:var(--mdc-protected-button-container-color, var(--mat-sys-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow, var(--mat-sys-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mdc-protected-button-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow, var(--mat-sys-level0))}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mdc-outlined-button-container-height, 40px);font-family:var(--mdc-outlined-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-outlined-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-outlined-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-outlined-button-label-text-transform);font-weight:var(--mdc-outlined-button-label-text-weight, var(--mat-sys-label-large-weight));border-radius:var(--mdc-outlined-button-container-shape, var(--mat-sys-corner-full));border-width:var(--mdc-outlined-button-outline-width, 1px);padding:0 var(--mat-outlined-button-horizontal-padding, 24px)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -8px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -8px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -8px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-outlined-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-outlined-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-outlined-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display, block)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, var(--mat-sys-primary));border-color:var(--mdc-outlined-button-outline-color, var(--mat-sys-outline))}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:var(--mdc-outlined-button-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button .mdc-button__ripple{border-width:var(--mdc-outlined-button-outline-width, 1px);border-style:solid;border-color:rgba(0,0,0,0)}.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-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.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}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-focus-indicator,.mat-mdc-unelevated-button .mat-focus-indicator,.mat-mdc-raised-button .mat-focus-indicator,.mat-mdc-outlined-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus>.mat-focus-indicator::before,.mat-mdc-unelevated-button:focus>.mat-focus-indicator::before,.mat-mdc-raised-button:focus>.mat-focus-indicator::before,.mat-mdc-outlined-button:focus>.mat-focus-indicator::before{content:""}.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,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-focus-indicator::before,.mat-mdc-raised-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}',"@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-icon-button.mat-mdc-icon-button{outline:solid 1px}}"],encapsulation:2,changeDetection:0})}return t})();var tk=new k("mat-mdc-fab-default-options",{providedIn:"root",factory:ik});function ik(){return{color:"accent"}}var lE=ik(),ok=(()=>{class t extends dE{_options=Q(tk,{optional:!0});_isFab=!0;extended;constructor(){super(),this._options=this._options||lE,this.color=this._options.color||lE.color}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=T({type:t,selectors:[["button","mat-fab",""]],hostVars:18,hostBindings:function(i,o){i&2&&(IA("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled()),We(o.color?"mat-"+o.color:""),oA("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0)("mdc-fab--extended",o.extended)("mat-mdc-extended-fab",o.extended))},inputs:{extended:[2,"extended","extended",tA]},exportAs:["matButton"],features:[EA],attrs:yH,ngContentSelectors:rm,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(i,o){i&1&&(ZA(gm),W(0,"span",0),sA(1),u(2,"span",1),sA(3,1),m(),sA(4,2),W(5,"span",2)(6,"span",3)),i&2&&oA("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:['.mat-mdc-fab-base{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;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;-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);flex-shrink:0;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-fab-base .mat-mdc-button-ripple,.mat-mdc-fab-base .mat-mdc-button-persistent-ripple,.mat-mdc-fab-base .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-base .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-fab-base .mdc-button__label,.mat-mdc-fab-base .mat-icon{z-index:1;position:relative}.mat-mdc-fab-base .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-fab-base:focus>.mat-focus-indicator::before{content:""}.mat-mdc-fab-base._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-fab-base::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}.mat-mdc-fab-base[hidden]{display:none}.mat-mdc-fab-base::-moz-focus-inner{padding:0;border:0}.mat-mdc-fab-base:active,.mat-mdc-fab-base:focus{outline:none}.mat-mdc-fab-base:hover{cursor:pointer}.mat-mdc-fab-base>svg{width:100%}.mat-mdc-fab-base .mat-icon,.mat-mdc-fab-base .material-icons{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mat-mdc-fab-base .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-fab-base[disabled],.mat-mdc-fab-base.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-fab-base[disabled],.mat-mdc-fab-base[disabled]:focus,.mat-mdc-fab-base.mat-mdc-button-disabled,.mat-mdc-fab-base.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-fab-base.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab{background-color:var(--mdc-fab-container-color, var(--mat-sys-primary-container));border-radius:var(--mdc-fab-container-shape, var(--mat-sys-corner-large));color:var(--mat-fab-foreground-color, var(--mat-sys-on-primary-container, inherit));box-shadow:var(--mdc-fab-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab:hover{box-shadow:var(--mdc-fab-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-fab:focus{box-shadow:var(--mdc-fab-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab:active,.mat-mdc-fab:focus:active{box-shadow:var(--mdc-fab-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab[disabled],.mat-mdc-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-disabled-state-foreground-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-fab-disabled-state-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-fab-touch-target-display, block)}.mat-mdc-fab .mat-ripple-element{background-color:var(--mat-fab-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-state-layer-color, var(--mat-sys-on-primary-container))}.mat-mdc-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-disabled-state-layer-color)}.mat-mdc-fab:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-fab.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-fab:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-mini-fab{width:40px;height:40px;background-color:var(--mdc-fab-small-container-color, var(--mat-sys-primary-container));border-radius:var(--mdc-fab-small-container-shape, var(--mat-sys-corner-medium));color:var(--mat-fab-small-foreground-color, var(--mat-sys-on-primary-container, inherit));box-shadow:var(--mdc-fab-small-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab:hover{box-shadow:var(--mdc-fab-small-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-mini-fab:focus{box-shadow:var(--mdc-fab-small-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab:active,.mat-mdc-mini-fab:focus:active{box-shadow:var(--mdc-fab-small-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-small-disabled-state-foreground-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-fab-small-disabled-state-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-mini-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-fab-small-touch-target-display)}.mat-mdc-mini-fab .mat-ripple-element{background-color:var(--mat-fab-small-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-state-layer-color, var(--mat-sys-on-primary-container))}.mat-mdc-mini-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-disabled-state-layer-color)}.mat-mdc-mini-fab:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-mini-fab.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-mini-fab:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-extended-fab{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;border-radius:24px;padding-left:20px;padding-right:20px;width:auto;max-width:100%;line-height:normal;height:var(--mdc-extended-fab-container-height, 56px);border-radius:var(--mdc-extended-fab-container-shape, var(--mat-sys-corner-large));font-family:var(--mdc-extended-fab-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-extended-fab-label-text-size, var(--mat-sys-label-large-size));font-weight:var(--mdc-extended-fab-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mdc-extended-fab-label-text-tracking, var(--mat-sys-label-large-tracking));box-shadow:var(--mdc-extended-fab-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-extended-fab:hover{box-shadow:var(--mdc-extended-fab-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-extended-fab:focus{box-shadow:var(--mdc-extended-fab-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-extended-fab:active,.mat-mdc-extended-fab:focus:active{box-shadow:var(--mdc-extended-fab-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab[disabled]:focus,.mat-mdc-extended-fab.mat-mdc-button-disabled,.mat-mdc-extended-fab.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-extended-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}[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>.mat-icon,.mat-mdc-extended-fab>.material-icons{margin-left:-8px;margin-right:12px}.mat-mdc-extended-fab .mdc-button__label+.mat-icon,.mat-mdc-extended-fab .mdc-button__label+.material-icons,[dir=rtl] .mat-mdc-extended-fab>.mat-icon,[dir=rtl] .mat-mdc-extended-fab>.material-icons{margin-left:12px;margin-right:-8px}.mat-mdc-extended-fab .mat-mdc-button-touch-target{width:100%}'],encapsulation:2,changeDetection:0})}return t})(),nk=(()=>{class t extends dE{_options=Q(tk,{optional:!0});_isFab=!0;constructor(){super(),this._options=this._options||lE,this.color=this._options.color||lE.color}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=T({type:t,selectors:[["button","mat-mini-fab",""]],hostVars:14,hostBindings:function(i,o){i&2&&(IA("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled()),We(o.color?"mat-"+o.color:""),oA("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],features:[EA],attrs:MH,ngContentSelectors:rm,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(i,o){i&1&&(ZA(gm),W(0,"span",0),sA(1),u(2,"span",1),sA(3,1),m(),sA(4,2),W(5,"span",2)(6,"span",3)),i&2&&oA("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:[RH],encapsulation:2,changeDetection:0})}return t})();var hE=(()=>{class t extends dE{constructor(){super(),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=T({type:t,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(i,o){i&2&&(IA("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled()),We(o.color?"mat-"+o.color:""),oA("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],features:[EA],attrs:kH,ngContentSelectors:FH,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(i,o){i&1&&(ZA(),W(0,"span",0),sA(1),W(2,"span",1)(3,"span",2))},styles:['.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;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;z-index:0;overflow:visible;border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 40px);height:var(--mdc-icon-button-state-layer-size, 40px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 40px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size, 24px);color:var(--mdc-icon-button-icon-color, var(--mat-sys-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.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-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus>.mat-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface-variant) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-icon-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-icon-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display, block)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mdc-icon-button-icon-size, 24px);height:var(--mdc-icon-button-icon-size, 24px);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button[hidden]{display:none}.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}',wH],encapsulation:2,changeDetection:0})}return t})();var Yo=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=Z({imports:[MA,yg,MA]})}return t})();var uE=class{};function mE(t){return t&&typeof t.connect=="function"&&!(t instanceof Vo)}var es=function(t){return t[t.REPLACED=0]="REPLACED",t[t.INSERTED=1]="INSERTED",t[t.MOVED=2]="MOVED",t[t.REMOVED=3]="REMOVED",t}(es||{}),ra=new k("_ViewRepeater"),ts=class{applyChanges(e,A,i,o,n){e.forEachOperation((g,r,s)=>{let I,B;if(g.previousIndex==null){let c=i(g,r,s);I=A.createEmbeddedView(c.templateRef,c.context,c.index),B=es.INSERTED}else s==null?(A.remove(r),B=es.REMOVED):(I=A.get(r),A.move(I,s),B=es.MOVED);n&&n({context:I?.context,operation:B,record:g})})}detach(){}};var is=class{_multiple;_emitChanges;compareWith;_selection=new Set;_deselectedToEmit=[];_selectedToEmit=[];_selected;get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}changed=new _;constructor(e=!1,A,i=!0,o){this._multiple=e,this._emitChanges=i,this.compareWith=o,A&&A.length&&(e?A.forEach(n=>this._markSelected(n)):this._markSelected(A[0]),this._selectedToEmit.length=0)}select(...e){this._verifyValueAssignment(e),e.forEach(i=>this._markSelected(i));let A=this._hasQueuedChanges();return this._emitChangeEvent(),A}deselect(...e){this._verifyValueAssignment(e),e.forEach(i=>this._unmarkSelected(i));let A=this._hasQueuedChanges();return this._emitChangeEvent(),A}setSelection(...e){this._verifyValueAssignment(e);let A=this.selected,i=new Set(e);e.forEach(n=>this._markSelected(n)),A.filter(n=>!i.has(this._getConcreteValue(n,i))).forEach(n=>this._unmarkSelected(n));let o=this._hasQueuedChanges();return this._emitChangeEvent(),o}toggle(e){return this.isSelected(e)?this.deselect(e):this.select(e)}clear(e=!0){this._unmarkAll();let A=this._hasQueuedChanges();return e&&this._emitChangeEvent(),A}isSelected(e){return this._selection.has(this._getConcreteValue(e))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(e){this._multiple&&this.selected&&this._selected.sort(e)}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(e){e=this._getConcreteValue(e),this.isSelected(e)||(this._multiple||this._unmarkAll(),this.isSelected(e)||this._selection.add(e),this._emitChanges&&this._selectedToEmit.push(e))}_unmarkSelected(e){e=this._getConcreteValue(e),this.isSelected(e)&&(this._selection.delete(e),this._emitChanges&&this._deselectedToEmit.push(e))}_unmarkAll(){this.isEmpty()||this._selection.forEach(e=>this._unmarkSelected(e))}_verifyValueAssignment(e){e.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(e,A){if(this.compareWith){A=A??this._selection;for(let i of A)if(this.compareWith(e,i))return i;return e}else return e}};var vH=20,fn=(()=>{class t{_ngZone=Q(X);_platform=Q(TA);_renderer=Q(tt).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new _;_scrolledCount=0;scrollContainers=new Map;register(A){this.scrollContainers.has(A)||this.scrollContainers.set(A,A.elementScrolled().subscribe(()=>this._scrolled.next(A)))}deregister(A){let i=this.scrollContainers.get(A);i&&(i.unsubscribe(),this.scrollContainers.delete(A))}scrolled(A=vH){return this._platform.isBrowser?new QA(i=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let o=A>0?this._scrolled.pipe(pC(A)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):iA()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((A,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(A,i){let o=this.getAncestorScrollContainers(A);return this.scrolled(i).pipe(kA(n=>!n||o.indexOf(n)>-1))}getAncestorScrollContainers(A){let i=[];return this.scrollContainers.forEach((o,n)=>{this._scrollableContainsElement(n,A)&&i.push(n)}),i}_scrollableContainsElement(A,i){let o=Ft(i),n=A.getElementRef().nativeElement;do if(o==n)return!0;while(o=o.parentElement);return!1}static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ho=(()=>{class t{elementRef=Q(q);scrollDispatcher=Q(fn);ngZone=Q(X);dir=Q(Ne,{optional:!0});_scrollElement=this.elementRef.nativeElement;_destroyed=new _;_renderer=Q(Me);_cleanupScroll;_elementScrolled=new _;constructor(){}ngOnInit(){this._cleanupScroll=this.ngZone.runOutsideAngular(()=>this._renderer.listen(this._scrollElement,"scroll",A=>this._elementScrolled.next(A))),this.scrollDispatcher.register(this)}ngOnDestroy(){this._cleanupScroll?.(),this._elementScrolled.complete(),this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(A){let i=this.elementRef.nativeElement,o=this.dir&&this.dir.value=="rtl";A.left==null&&(A.left=o?A.end:A.start),A.right==null&&(A.right=o?A.start:A.end),A.bottom!=null&&(A.top=i.scrollHeight-i.clientHeight-A.bottom),o&&Pr()!=bi.NORMAL?(A.left!=null&&(A.right=i.scrollWidth-i.clientWidth-A.left),Pr()==bi.INVERTED?A.left=A.right:Pr()==bi.NEGATED&&(A.left=A.right?-A.right:A.right)):A.right!=null&&(A.left=i.scrollWidth-i.clientWidth-A.right),this._applyScrollToOptions(A)}_applyScrollToOptions(A){let i=this.elementRef.nativeElement;jQ()?i.scrollTo(A):(A.top!=null&&(i.scrollTop=A.top),A.left!=null&&(i.scrollLeft=A.left))}measureScrollOffset(A){let i="left",o="right",n=this.elementRef.nativeElement;if(A=="top")return n.scrollTop;if(A=="bottom")return n.scrollHeight-n.clientHeight-n.scrollTop;let g=this.dir&&this.dir.value=="rtl";return A=="start"?A=g?o:i:A=="end"&&(A=g?i:o),g&&Pr()==bi.INVERTED?A==i?n.scrollWidth-n.clientWidth-n.scrollLeft:n.scrollLeft:g&&Pr()==bi.NEGATED?A==i?n.scrollLeft+n.scrollWidth-n.clientWidth:-n.scrollLeft:A==i?n.scrollLeft:n.scrollWidth-n.clientWidth-n.scrollLeft}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return t})(),NH=20,ti=(()=>{class t{_platform=Q(TA);_listeners;_viewportSize;_change=new _;_document=Q(lA,{optional:!0});constructor(){let A=Q(X),i=Q(tt).createRenderer(null,null);A.runOutsideAngular(()=>{if(this._platform.isBrowser){let o=n=>this._change.next(n);this._listeners=[i.listen("window","resize",o),i.listen("window","orientationchange",o)]}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){this._listeners?.forEach(A=>A()),this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let A={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),A}getViewportRect(){let A=this.getViewportScrollPosition(),{width:i,height:o}=this.getViewportSize();return{top:A.top,left:A.left,bottom:A.top+o,right:A.left+i,height:o,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let A=this._document,i=this._getWindow(),o=A.documentElement,n=o.getBoundingClientRect(),g=-n.top||A.body.scrollTop||i.scrollY||o.scrollTop||0,r=-n.left||A.body.scrollLeft||i.scrollX||o.scrollLeft||0;return{top:g,left:r}}change(A=NH){return A>0?this._change.pipe(pC(A)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let A=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:A.innerWidth,height:A.innerHeight}:{width:0,height:0}}static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Jo=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=Z({})}return t})(),sa=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=Z({imports:[hn,Jo,hn,Jo]})}return t})();var Ia=class{_attachedHost;attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;e!=null&&(this._attachedHost=null,e.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(e){this._attachedHost=e}},Si=class extends Ia{component;viewContainerRef;injector;componentFactoryResolver;projectableNodes;constructor(e,A,i,o,n){super(),this.component=e,this.viewContainerRef=A,this.injector=i,this.projectableNodes=n}},ii=class extends Ia{templateRef;viewContainerRef;context;injector;constructor(e,A,i,o){super(),this.templateRef=e,this.viewContainerRef=A,this.context=i,this.injector=o}get origin(){return this.templateRef.elementRef}attach(e,A=this.context){return this.context=A,super.attach(e)}detach(){return this.context=void 0,super.detach()}},sm=class extends Ia{element;constructor(e){super(),this.element=e instanceof q?e.nativeElement:e}},pn=class{_attachedPortal;_disposeFn;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(e){if(e instanceof Si)return this._attachedPortal=e,this.attachComponentPortal(e);if(e instanceof ii)return this._attachedPortal=e,this.attachTemplatePortal(e);if(this.attachDomPortal&&e instanceof sm)return this._attachedPortal=e,this.attachDomPortal(e)}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}};var DE=class extends pn{outletElement;_appRef;_defaultInjector;_document;constructor(e,A,i,o,n){super(),this.outletElement=e,this._appRef=i,this._defaultInjector=o,this._document=n}attachComponentPortal(e){let A;if(e.viewContainerRef){let i=e.injector||e.viewContainerRef.injector,o=i.get(So,null,{optional:!0})||void 0;A=e.viewContainerRef.createComponent(e.component,{index:e.viewContainerRef.length,injector:i,ngModuleRef:o,projectableNodes:e.projectableNodes||void 0}),this.setDisposeFn(()=>A.destroy())}else A=xB(e.component,{elementInjector:e.injector||this._defaultInjector||wA.NULL,environmentInjector:this._appRef.injector,projectableNodes:e.projectableNodes||void 0}),this._appRef.attachView(A.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(A.hostView),A.destroy()});return this.outletElement.appendChild(this._getComponentRootNode(A)),this._attachedPortal=e,A}attachTemplatePortal(e){let A=e.viewContainerRef,i=A.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return i.rootNodes.forEach(o=>this.outletElement.appendChild(o)),i.detectChanges(),this.setDisposeFn(()=>{let o=A.indexOf(i);o!==-1&&A.remove(o)}),this._attachedPortal=e,i}attachDomPortal=e=>{let A=e.element;A.parentNode;let i=this._document.createComment("dom-portal");A.parentNode.insertBefore(i,A),this.outletElement.appendChild(A),this._attachedPortal=e,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(A,i)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(e){return e.hostView.rootNodes[0]}};var gk=(()=>{class t extends ii{constructor(){let A=Q(ge),i=Q(Ce);super(A,i)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[EA]})}return t})();var oi=(()=>{class t extends pn{_moduleRef=Q(So,{optional:!0});_document=Q(lA);_viewContainerRef=Q(Ce);_isInitialized=!1;_attachedRef;constructor(){super()}get portal(){return this._attachedPortal}set portal(A){this.hasAttached()&&!A&&!this._isInitialized||(this.hasAttached()&&super.detach(),A&&super.attach(A),this._attachedPortal=A||null)}attached=new $;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(A){A.setAttachedHost(this);let i=A.viewContainerRef!=null?A.viewContainerRef:this._viewContainerRef,o=i.createComponent(A.component,{index:i.length,injector:A.injector||i.injector,projectableNodes:A.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0});return i!==this._viewContainerRef&&this._getRootNode().appendChild(o.hostView.rootNodes[0]),super.setDisposeFn(()=>o.destroy()),this._attachedPortal=A,this._attachedRef=o,this.attached.emit(o),o}attachTemplatePortal(A){A.setAttachedHost(this);let i=this._viewContainerRef.createEmbeddedView(A.templateRef,A.context,{injector:A.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=A,this._attachedRef=i,this.attached.emit(i),i}attachDomPortal=A=>{let i=A.element;i.parentNode;let o=this._document.createComment("dom-portal");A.setAttachedHost(this),i.parentNode.insertBefore(o,i),this._getRootNode().appendChild(i),this._attachedPortal=A,super.setDisposeFn(()=>{o.parentNode&&o.parentNode.replaceChild(i,o)})};_getRootNode(){let A=this._viewContainerRef.element.nativeElement;return A.nodeType===A.ELEMENT_NODE?A:A.parentNode}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[EA]})}return t})();var aa=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=Z({})}return t})();var rk=jQ(),Im=class{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=!1;_document;constructor(e,A){this._viewportRuler=e,this._document=A}attach(){}enable(){if(this._canBeEnabled()){let e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=ve(-this._previousScrollPosition.left),e.style.top=ve(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let e=this._document.documentElement,A=this._document.body,i=e.style,o=A.style,n=i.scrollBehavior||"",g=o.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),rk&&(i.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),rk&&(i.scrollBehavior=n,o.scrollBehavior=g)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let A=this._document.body,i=this._viewportRuler.getViewportSize();return A.scrollHeight>i.height||A.scrollWidth>i.width}};var am=class{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(e,A,i,o){this._scrollDispatcher=e,this._ngZone=A,this._viewportRuler=i,this._config=o}attach(e){this._overlayRef,this._overlayRef=e}enable(){if(this._scrollSubscription)return;let e=this._scrollDispatcher.scrolled(0).pipe(kA(A=>!A||!this._overlayRef.overlayElement.contains(A.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{let A=this._viewportRuler.getViewportScrollPosition().top;Math.abs(A-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}},fE=class{enable(){}disable(){}attach(){}};function Cm(t,e){return e.some(A=>{let i=t.bottom<A.top,o=t.top>A.bottom,n=t.right<A.left,g=t.left>A.right;return i||o||n||g})}function sk(t,e){return e.some(A=>{let i=t.top<A.top,o=t.bottom>A.bottom,n=t.left<A.left,g=t.right>A.right;return i||o||n||g})}var Bm=class{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(e,A,i,o){this._scrollDispatcher=e,this._viewportRuler=A,this._ngZone=i,this._config=o}attach(e){this._overlayRef,this._overlayRef=e}enable(){if(!this._scrollSubscription){let e=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(e).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let A=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:o}=this._viewportRuler.getViewportSize();Cm(A,[{width:i,height:o,bottom:o,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}},LH=(()=>{class t{_scrollDispatcher=Q(fn);_viewportRuler=Q(ti);_ngZone=Q(X);_document=Q(lA);constructor(){}noop=()=>new fE;close=A=>new am(this._scrollDispatcher,this._ngZone,this._viewportRuler,A);block=()=>new Im(this._viewportRuler,this._document);reposition=A=>new Bm(this._scrollDispatcher,this._viewportRuler,this._ngZone,A);static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),wn=class{positionStrategy;scrollStrategy=new fE;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;constructor(e){if(e){let A=Object.keys(e);for(let i of A)e[i]!==void 0&&(this[i]=e[i])}}};var Qm=class{connectionPair;scrollableViewProperties;constructor(e,A){this.connectionPair=e,this.scrollableViewProperties=A}};var Ek=(()=>{class t{_attachedOverlays=[];_document=Q(lA);_isAttached;constructor(){}ngOnDestroy(){this.detach()}add(A){this.remove(A),this._attachedOverlays.push(A)}remove(A){let i=this._attachedOverlays.indexOf(A);i>-1&&this._attachedOverlays.splice(i,1),this._attachedOverlays.length===0&&this.detach()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),_H=(()=>{class t extends Ek{_ngZone=Q(X);_renderer=Q(tt).createRenderer(null,null);_cleanupKeydown;add(A){super.add(A),this._isAttached||(this._ngZone.runOutsideAngular(()=>{this._cleanupKeydown=this._renderer.listen("body","keydown",this._keydownListener)}),this._isAttached=!0)}detach(){this._isAttached&&(this._cleanupKeydown?.(),this._isAttached=!1)}_keydownListener=A=>{let i=this._attachedOverlays;for(let o=i.length-1;o>-1;o--)if(i[o]._keydownEvents.observers.length>0){this._ngZone.run(()=>i[o]._keydownEvents.next(A));break}};static \u0275fac=(()=>{let A;return function(o){return(A||(A=WA(t)))(o||t)}})();static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),KH=(()=>{class t extends Ek{_platform=Q(TA);_ngZone=Q(X,{optional:!0});_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget;add(A){if(super.add(A),!this._isAttached){let 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){let A=this._document.body;A.removeEventListener("pointerdown",this._pointerDownListener,!0),A.removeEventListener("click",this._clickListener,!0),A.removeEventListener("auxclick",this._clickListener,!0),A.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(A.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(A){A.addEventListener("pointerdown",this._pointerDownListener,!0),A.addEventListener("click",this._clickListener,!0),A.addEventListener("auxclick",this._clickListener,!0),A.addEventListener("contextmenu",this._clickListener,!0)}_pointerDownListener=A=>{this._pointerDownEventTarget=Pt(A)};_clickListener=A=>{let i=Pt(A),o=A.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:i;this._pointerDownEventTarget=null;let n=this._attachedOverlays.slice();for(let g=n.length-1;g>-1;g--){let r=n[g];if(r._outsidePointerEvents.observers.length<1||!r.hasAttached())continue;if(Ik(r.overlayElement,i)||Ik(r.overlayElement,o))break;let s=r._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>s.next(A)):s.next(A)}};static \u0275fac=(()=>{let A;return function(o){return(A||(A=WA(t)))(o||t)}})();static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Ik(t,e){let A=typeof ShadowRoot<"u"&&ShadowRoot,i=e;for(;i;){if(i===t)return!0;i=A&&i instanceof ShadowRoot?i.host:i.parentNode}return!1}var ck=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=T({type:t,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(i,o){},styles:[".cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed}@layer cdk-overlay{.cdk-overlay-container{z-index:1000}}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute}@layer cdk-overlay{.cdk-global-overlay-wrapper{z-index:1000}}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%}@layer cdk-overlay{.cdk-overlay-pane{z-index:1000}}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0}@layer cdk-overlay{.cdk-overlay-backdrop{z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}@layer cdk-overlay{.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px}@layer cdk-overlay{.cdk-overlay-connected-position-bounding-box{z-index:1000}}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}"],encapsulation:2,changeDetection:0})}return t})(),pE=(()=>{class t{_platform=Q(TA);_containerElement;_document=Q(lA);_styleLoader=Q(Se);constructor(){}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let A="cdk-overlay-container";if(this._platform.isBrowser||Nu()){let o=this._document.querySelectorAll(`.${A}[platform="server"], .${A}[platform="test"]`);for(let n=0;n<o.length;n++)o[n].remove()}let i=this._document.createElement("div");i.classList.add(A),Nu()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}_loadStyles(){this._styleLoader.load(ck)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Em=class{_renderer;_ngZone;element;_cleanupClick;_cleanupTransitionEnd;_fallbackTimeout;constructor(e,A,i,o){this._renderer=A,this._ngZone=i,this.element=e.createElement("div"),this.element.classList.add("cdk-overlay-backdrop"),this._cleanupClick=A.listen(this.element,"click",o)}detach(){this._ngZone.runOutsideAngular(()=>{let e=this.element;clearTimeout(this._fallbackTimeout),this._cleanupTransitionEnd?.(),this._cleanupTransitionEnd=this._renderer.listen(e,"transitionend",this.dispose),this._fallbackTimeout=setTimeout(this.dispose,500),e.style.pointerEvents="none",e.classList.remove("cdk-overlay-backdrop-showing")})}dispose=()=>{clearTimeout(this._fallbackTimeout),this._cleanupClick?.(),this._cleanupTransitionEnd?.(),this._cleanupClick=this._cleanupTransitionEnd=this._fallbackTimeout=void 0,this.element.remove()}},os=class{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new _;_attachments=new _;_detachments=new _;_positionStrategy;_scrollStrategy;_locationChanges=vA.EMPTY;_backdropRef=null;_previousHostParent;_keydownEvents=new _;_outsidePointerEvents=new _;_renders=new _;_afterRenderRef;_afterNextRenderRef;constructor(e,A,i,o,n,g,r,s,I,B=!1,c,D){this._portalOutlet=e,this._host=A,this._pane=i,this._config=o,this._ngZone=n,this._keyboardDispatcher=g,this._document=r,this._location=s,this._outsideClickDispatcher=I,this._animationsDisabled=B,this._injector=c,this._renderer=D,o.scrollStrategy&&(this._scrollStrategy=o.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=o.positionStrategy,this._afterRenderRef=Mt(()=>gI(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}attach(e){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let A=this._portalOutlet.attach(e);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=be(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),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),typeof A?.onDestroy=="function"&&A.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),A}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){let e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._backdropRef?.dispose(),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._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=this._backdropRef=null,e&&this._detachments.next(),this._detachments.complete(),this._afterRenderRef.destroy(),this._renders.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config=R(R({},this._config),e),this._updateElementSize()}setDirection(e){this._config=hA(R({},this._config),{direction:e}),this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){let e=this._config.direction;return e?typeof e=="string"?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let e=this._pane.style;e.width=ve(this._config.width),e.height=ve(this._config.height),e.minWidth=ve(this._config.minWidth),e.minHeight=ve(this._config.minHeight),e.maxWidth=ve(this._config.maxWidth),e.maxHeight=ve(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){let e="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new Em(this._document,this._renderer,this._ngZone,A=>{this._backdropClick.next(A)}),this._animationsDisabled&&this._backdropRef.element.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropRef.element,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropRef.element,this._host),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._backdropRef?.element.classList.add(e))}):this._backdropRef.element.classList.add(e)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){this._animationsDisabled?(this._backdropRef?.dispose(),this._backdropRef=null):this._backdropRef?.detach()}_toggleClasses(e,A,i){let o=qr(A||[]).filter(n=>!!n);o.length&&(i?e.classList.add(...o):e.classList.remove(...o))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{let e=this._renders.pipe(mA(me(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),e.unsubscribe())})})}_disposeScrollStrategy(){let e=this._scrollStrategy;e?.disable(),e?.detach?.()}},ak="cdk-overlay-connected-position-bounding-box",UH=/([A-Za-z%]+)$/,cm=class{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender;_lastBoundingBoxSize={width:0,height:0};_isPushed=!1;_canPush=!0;_growAfterOpen=!1;_hasFlexibleDimensions=!0;_positionLocked=!1;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed;_boundingBox;_lastPosition;_lastScrollVisibility;_positionChanges=new _;_resizeSubscription=vA.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount;positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(e,A,i,o,n){this._viewportRuler=A,this._document=i,this._platform=o,this._overlayContainer=n,this.setOrigin(e)}attach(e){this._overlayRef&&this._overlayRef,this._validatePositions(),e.hostElement.classList.add(ak),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return}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();let e=this._originRect,A=this._overlayRect,i=this._viewportRect,o=this._containerRect,n=[],g;for(let r of this._preferredPositions){let s=this._getOriginPoint(e,o,r),I=this._getOverlayPoint(s,A,r),B=this._getOverlayFit(I,A,i,r);if(B.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(r,s);return}if(this._canFitWithFlexibleDimensions(B,I,i)){n.push({position:r,origin:s,overlayRect:A,boundingBoxRect:this._calculateBoundingBoxRect(s,r)});continue}(!g||g.overlayFit.visibleArea<B.visibleArea)&&(g={overlayFit:B,overlayPoint:I,originPoint:s,position:r,overlayRect:A})}if(n.length){let r=null,s=-1;for(let I of n){let B=I.boundingBoxRect.width*I.boundingBoxRect.height*(I.position.weight||1);B>s&&(s=B,r=I)}this._isPushed=!1,this._applyPosition(r.position,r.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(g.position,g.originPoint);return}this._applyPosition(g.position,g.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Mg(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(ak),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let e=this._lastPosition;if(e){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let A=this._getOriginPoint(this._originRect,this._containerRect,e);this._applyPosition(e,A)}else this.apply()}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,e.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=!0){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=!0){return this._growAfterOpen=e,this}withPush(e=!0){return this._canPush=e,this}withLockedPosition(e=!0){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}_getOriginPoint(e,A,i){let o;if(i.originX=="center")o=e.left+e.width/2;else{let g=this._isRtl()?e.right:e.left,r=this._isRtl()?e.left:e.right;o=i.originX=="start"?g:r}A.left<0&&(o-=A.left);let n;return i.originY=="center"?n=e.top+e.height/2:n=i.originY=="top"?e.top:e.bottom,A.top<0&&(n-=A.top),{x:o,y:n}}_getOverlayPoint(e,A,i){let o;i.overlayX=="center"?o=-A.width/2:i.overlayX==="start"?o=this._isRtl()?-A.width:0:o=this._isRtl()?0:-A.width;let n;return i.overlayY=="center"?n=-A.height/2:n=i.overlayY=="top"?0:-A.height,{x:e.x+o,y:e.y+n}}_getOverlayFit(e,A,i,o){let n=Bk(A),{x:g,y:r}=e,s=this._getOffset(o,"x"),I=this._getOffset(o,"y");s&&(g+=s),I&&(r+=I);let B=0-g,c=g+n.width-i.width,D=0-r,h=r+n.height-i.height,p=this._subtractOverflows(n.width,B,c),y=this._subtractOverflows(n.height,D,h),L=p*y;return{visibleArea:L,isCompletelyWithinViewport:n.width*n.height===L,fitsInViewportVertically:y===n.height,fitsInViewportHorizontally:p==n.width}}_canFitWithFlexibleDimensions(e,A,i){if(this._hasFlexibleDimensions){let o=i.bottom-A.y,n=i.right-A.x,g=Ck(this._overlayRef.getConfig().minHeight),r=Ck(this._overlayRef.getConfig().minWidth),s=e.fitsInViewportVertically||g!=null&&g<=o,I=e.fitsInViewportHorizontally||r!=null&&r<=n;return s&&I}return!1}_pushOverlayOnScreen(e,A,i){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};let o=Bk(A),n=this._viewportRect,g=Math.max(e.x+o.width-n.width,0),r=Math.max(e.y+o.height-n.height,0),s=Math.max(n.top-i.top-e.y,0),I=Math.max(n.left-i.left-e.x,0),B=0,c=0;return o.width<=n.width?B=I||-g:B=e.x<this._viewportMargin?n.left-i.left-e.x:0,o.height<=n.height?c=s||-r:c=e.y<this._viewportMargin?n.top-i.top-e.y:0,this._previousPushAmount={x:B,y:c},{x:e.x+B,y:e.y+c}}_applyPosition(e,A){if(this._setTransformOrigin(e),this._setOverlayElementStyles(A,e),this._setBoundingBoxStyles(A,e),e.panelClass&&this._addPanelClasses(e.panelClass),this._positionChanges.observers.length){let i=this._getScrollVisibility();if(e!==this._lastPosition||!this._lastScrollVisibility||!xH(this._lastScrollVisibility,i)){let o=new Qm(e,i);this._positionChanges.next(o)}this._lastScrollVisibility=i}this._lastPosition=e,this._isInitialRender=!1}_setTransformOrigin(e){if(!this._transformOriginSelector)return;let A=this._boundingBox.querySelectorAll(this._transformOriginSelector),i,o=e.overlayY;e.overlayX==="center"?i="center":this._isRtl()?i=e.overlayX==="start"?"right":"left":i=e.overlayX==="start"?"left":"right";for(let n=0;n<A.length;n++)A[n].style.transformOrigin=`${i} ${o}`}_calculateBoundingBoxRect(e,A){let i=this._viewportRect,o=this._isRtl(),n,g,r;if(A.overlayY==="top")g=e.y,n=i.height-g+this._viewportMargin;else if(A.overlayY==="bottom")r=i.height-e.y+this._viewportMargin*2,n=i.height-r+this._viewportMargin;else{let h=Math.min(i.bottom-e.y+i.top,e.y),p=this._lastBoundingBoxSize.height;n=h*2,g=e.y-h,n>p&&!this._isInitialRender&&!this._growAfterOpen&&(g=e.y-p/2)}let s=A.overlayX==="start"&&!o||A.overlayX==="end"&&o,I=A.overlayX==="end"&&!o||A.overlayX==="start"&&o,B,c,D;if(I)D=i.width-e.x+this._viewportMargin*2,B=e.x-this._viewportMargin;else if(s)c=e.x,B=i.right-e.x;else{let h=Math.min(i.right-e.x+i.left,e.x),p=this._lastBoundingBoxSize.width;B=h*2,c=e.x-h,B>p&&!this._isInitialRender&&!this._growAfterOpen&&(c=e.x-p/2)}return{top:g,left:c,bottom:r,right:D,width:B,height:n}}_setBoundingBoxStyles(e,A){let i=this._calculateBoundingBoxRect(e,A);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));let o={};if(this._hasExactPosition())o.top=o.left="0",o.bottom=o.right=o.maxHeight=o.maxWidth="",o.width=o.height="100%";else{let n=this._overlayRef.getConfig().maxHeight,g=this._overlayRef.getConfig().maxWidth;o.height=ve(i.height),o.top=ve(i.top),o.bottom=ve(i.bottom),o.width=ve(i.width),o.left=ve(i.left),o.right=ve(i.right),A.overlayX==="center"?o.alignItems="center":o.alignItems=A.overlayX==="end"?"flex-end":"flex-start",A.overlayY==="center"?o.justifyContent="center":o.justifyContent=A.overlayY==="bottom"?"flex-end":"flex-start",n&&(o.maxHeight=ve(n)),g&&(o.maxWidth=ve(g))}this._lastBoundingBoxSize=i,Mg(this._boundingBox.style,o)}_resetBoundingBoxStyles(){Mg(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Mg(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,A){let i={},o=this._hasExactPosition(),n=this._hasFlexibleDimensions,g=this._overlayRef.getConfig();if(o){let B=this._viewportRuler.getViewportScrollPosition();Mg(i,this._getExactOverlayY(A,e,B)),Mg(i,this._getExactOverlayX(A,e,B))}else i.position="static";let r="",s=this._getOffset(A,"x"),I=this._getOffset(A,"y");s&&(r+=`translateX(${s}px) `),I&&(r+=`translateY(${I}px)`),i.transform=r.trim(),g.maxHeight&&(o?i.maxHeight=ve(g.maxHeight):n&&(i.maxHeight="")),g.maxWidth&&(o?i.maxWidth=ve(g.maxWidth):n&&(i.maxWidth="")),Mg(this._pane.style,i)}_getExactOverlayY(e,A,i){let o={top:"",bottom:""},n=this._getOverlayPoint(A,this._overlayRect,e);if(this._isPushed&&(n=this._pushOverlayOnScreen(n,this._overlayRect,i)),e.overlayY==="bottom"){let g=this._document.documentElement.clientHeight;o.bottom=`${g-(n.y+this._overlayRect.height)}px`}else o.top=ve(n.y);return o}_getExactOverlayX(e,A,i){let o={left:"",right:""},n=this._getOverlayPoint(A,this._overlayRect,e);this._isPushed&&(n=this._pushOverlayOnScreen(n,this._overlayRect,i));let g;if(this._isRtl()?g=e.overlayX==="end"?"left":"right":g=e.overlayX==="end"?"right":"left",g==="right"){let r=this._document.documentElement.clientWidth;o.right=`${r-(n.x+this._overlayRect.width)}px`}else o.left=ve(n.x);return o}_getScrollVisibility(){let e=this._getOriginRect(),A=this._pane.getBoundingClientRect(),i=this._scrollables.map(o=>o.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:sk(e,i),isOriginOutsideView:Cm(e,i),isOverlayClipped:sk(A,i),isOverlayOutsideView:Cm(A,i)}}_subtractOverflows(e,...A){return A.reduce((i,o)=>i-Math.max(o,0),e)}_getNarrowedViewportRect(){let e=this._document.documentElement.clientWidth,A=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+e-this._viewportMargin,bottom:i.top+A-this._viewportMargin,width:e-2*this._viewportMargin,height:A-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,A){return A==="x"?e.offsetX==null?this._offsetX:e.offsetX:e.offsetY==null?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&qr(e).forEach(A=>{A!==""&&this._appliedPanelClasses.indexOf(A)===-1&&(this._appliedPanelClasses.push(A),this._pane.classList.add(A))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){let e=this._origin;if(e instanceof q)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();let A=e.width||0,i=e.height||0;return{top:e.y,bottom:e.y+i,left:e.x,right:e.x+A,height:i,width:A}}};function Mg(t,e){for(let A in e)e.hasOwnProperty(A)&&(t[A]=e[A]);return t}function Ck(t){if(typeof t!="number"&&t!=null){let[e,A]=t.split(UH);return!A||A==="px"?parseFloat(e):null}return t||null}function Bk(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}function xH(t,e){return t===e?!0:t.isOriginClipped===e.isOriginClipped&&t.isOriginOutsideView===e.isOriginOutsideView&&t.isOverlayClipped===e.isOverlayClipped&&t.isOverlayOutsideView===e.isOverlayOutsideView}var Qk="cdk-global-overlay-wrapper",lm=class{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=!1;attach(e){let A=e.getConfig();this._overlayRef=e,this._width&&!A.width&&e.updateSize({width:this._width}),this._height&&!A.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(Qk),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._xOffset=e,this._xPosition="left",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._xOffset=e,this._xPosition="right",this}start(e=""){return this._xOffset=e,this._xPosition="start",this}end(e=""){return this._xOffset=e,this._xPosition="end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._xPosition="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let e=this._overlayRef.overlayElement.style,A=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:o,height:n,maxWidth:g,maxHeight:r}=i,s=(o==="100%"||o==="100vw")&&(!g||g==="100%"||g==="100vw"),I=(n==="100%"||n==="100vh")&&(!r||r==="100%"||r==="100vh"),B=this._xPosition,c=this._xOffset,D=this._overlayRef.getConfig().direction==="rtl",h="",p="",y="";s?y="flex-start":B==="center"?(y="center",D?p=c:h=c):D?B==="left"||B==="end"?(y="flex-end",h=c):(B==="right"||B==="start")&&(y="flex-start",p=c):B==="left"||B==="start"?(y="flex-start",h=c):(B==="right"||B==="end")&&(y="flex-end",p=c),e.position=this._cssPosition,e.marginLeft=s?"0":h,e.marginTop=I?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=s?"0":p,A.justifyContent=y,A.alignItems=I?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let e=this._overlayRef.overlayElement.style,A=this._overlayRef.hostElement,i=A.style;A.classList.remove(Qk),i.justifyContent=i.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}},YH=(()=>{class t{_viewportRuler=Q(ti);_document=Q(lA);_platform=Q(TA);_overlayContainer=Q(pE);constructor(){}global(){return new lm}flexibleConnectedTo(A){return new cm(A,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Pe=(()=>{class t{scrollStrategies=Q(LH);_overlayContainer=Q(pE);_positionBuilder=Q(YH);_keyboardDispatcher=Q(_H);_injector=Q(wA);_ngZone=Q(X);_document=Q(lA);_directionality=Q(Ne);_location=Q(to);_outsideClickDispatcher=Q(KH);_animationsModuleType=Q($A,{optional:!0});_idGenerator=Q(ce);_renderer=Q(tt).createRenderer(null,null);_appRef;_styleLoader=Q(Se);constructor(){}create(A){this._styleLoader.load(ck);let i=this._createHostElement(),o=this._createPaneElement(i),n=this._createPortalOutlet(o),g=new wn(A);return g.direction=g.direction||this._directionality.value,new os(n,i,o,g,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,this._animationsModuleType==="NoopAnimations",this._injector.get(_e),this._renderer)}position(){return this._positionBuilder}_createPaneElement(A){let i=this._document.createElement("div");return i.id=this._idGenerator.getId("cdk-overlay-"),i.classList.add("cdk-overlay-pane"),A.appendChild(i),i}_createHostElement(){let A=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(A),A}_createPortalOutlet(A){return this._appRef||(this._appRef=this._injector.get(Kt)),new DE(A,null,this._appRef,this._injector,this._document)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),JH=[{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"}],lk=new k("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let t=Q(Pe);return()=>t.scrollStrategies.reposition()}}),Ca=(()=>{class t{elementRef=Q(q);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]})}return t})(),dm=(()=>{class t{_overlay=Q(Pe);_dir=Q(Ne,{optional:!0});_overlayRef;_templatePortal;_backdropSubscription=vA.EMPTY;_attachSubscription=vA.EMPTY;_detachSubscription=vA.EMPTY;_positionSubscription=vA.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=Q(lk);_disposeOnNavigation=!1;_ngZone=Q(X);origin;positions;positionStrategy;get offsetX(){return this._offsetX}set offsetX(A){this._offsetX=A,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(A){this._offsetY=A,this._position&&this._updatePositionStrategy(this._position)}width;height;minWidth;minHeight;backdropClass;panelClass;viewportMargin=0;scrollStrategy;open=!1;disableClose=!1;transformOriginSelector;hasBackdrop=!1;lockPosition=!1;flexibleDimensions=!1;growAfterOpen=!1;push=!1;get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(A){this._disposeOnNavigation=A}backdropClick=new $;positionChange=new $;attach=new $;detach=new $;overlayKeydown=new $;overlayOutsideClick=new $;constructor(){let A=Q(ge),i=Q(Ce);this._templatePortal=new ii(A,i),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(A){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),A.origin&&this.open&&this._position.apply()),A.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=JH);let A=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=A.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=A.detachments().subscribe(()=>this.detach.emit()),A.keydownEvents().subscribe(i=>{this.overlayKeydown.next(i),i.keyCode===27&&!this.disableClose&&!Oe(i)&&(i.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{let o=this._getOriginElement(),n=Pt(i);(!o||o!==n&&!o.contains(n))&&this.overlayOutsideClick.next(i)})}_buildConfig(){let A=this._position=this.positionStrategy||this._createPositionStrategy(),i=new wn({direction:this._dir||"ltr",positionStrategy:A,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||this.width===0)&&(i.width=this.width),(this.height||this.height===0)&&(i.height=this.height),(this.minWidth||this.minWidth===0)&&(i.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(A){let i=this.positions.map(o=>({originX:o.originX,originY:o.originY,overlayX:o.overlayX,overlayY:o.overlayY,offsetX:o.offsetX||this.offsetX,offsetY:o.offsetY||this.offsetY,panelClass:o.panelClass||void 0}));return A.setOrigin(this._getOrigin()).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){let A=this._overlay.position().flexibleConnectedTo(this._getOrigin());return this._updatePositionStrategy(A),A}_getOrigin(){return this.origin instanceof Ca?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof Ca?this.origin.elementRef.nativeElement:this.origin instanceof q?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_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(A=>{this.backdropClick.emit(A)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(Wc(()=>this.positionChange.observers.length>0)).subscribe(A=>{this._ngZone.run(()=>this.positionChange.emit(A)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight","height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",tA],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",tA],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",tA],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",tA],push:[2,"cdkConnectedOverlayPush","push",tA],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",tA]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[VA]})}return t})();function HH(t){return()=>t.scrollStrategies.reposition()}var TH={provide:lk,deps:[Pe],useFactory:HH},Rg=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=Z({providers:[Pe,TH],imports:[hn,aa,sa,sa]})}return t})();var hm=class{_box;_destroyed=new _;_resizeSubject=new _;_resizeObserver;_elementObservables=new Map;constructor(e){this._box=e,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(A=>this._resizeSubject.next(A)))}observe(e){return this._elementObservables.has(e)||this._elementObservables.set(e,new QA(A=>{let i=this._resizeSubject.subscribe(A);return this._resizeObserver?.observe(e,{box:this._box}),()=>{this._resizeObserver?.unobserve(e),i.unsubscribe(),this._elementObservables.delete(e)}}).pipe(kA(A=>A.some(i=>i.target===e)),Ro({bufferSize:1,refCount:!0}),mA(this._destroyed))),this._elementObservables.get(e)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},wE=(()=>{class t{_cleanupErrorListener;_observers=new Map;_ngZone=Q(X);constructor(){typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,A]of this._observers)A.destroy();this._observers.clear(),this._cleanupErrorListener?.()}observe(A,i){let o=i?.box||"content-box";return this._observers.has(o)||this._observers.set(o,new hm(o)),this._observers.get(o).observe(A)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var _A=function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t}(_A||{}),ni="*";function Qo(t,e){return{type:_A.Trigger,name:t,definitions:e,options:{}}}function qt(t,e=null){return{type:_A.Animate,styles:e,timings:t}}function dk(t,e=null){return{type:_A.Sequence,steps:t,options:e}}function Ge(t){return{type:_A.Style,styles:t,offset:null}}function gi(t,e,A){return{type:_A.State,name:t,styles:e,options:A}}function St(t,e,A=null){return{type:_A.Transition,expr:t,animation:e,options:A}}function um(t=null){return{type:_A.AnimateChild,options:t}}function mm(t,e,A=null){return{type:_A.Query,selector:t,animation:e,options:A}}var Bo=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(e=0,A=0){this.totalTime=e+A}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let A=e=="start"?this._onStartFns:this._onDoneFns;A.forEach(i=>i()),A.length=0}},kg=class{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(e){this.players=e;let A=0,i=0,o=0,n=this.players.length;n==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(g=>{g.onDone(()=>{++A==n&&this._onFinish()}),g.onDestroy(()=>{++i==n&&this._onDestroy()}),g.onStart(()=>{++o==n&&this._onStart()})}),this.totalTime=this.players.reduce((g,r)=>Math.max(g,r.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){let A=e*this.totalTime;this.players.forEach(i=>{let o=i.totalTime?Math.min(1,A/i.totalTime):1;i.setPosition(o)})}getPosition(){let e=this.players.reduce((A,i)=>A===null||i.totalTime>A.totalTime?i:A,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){let A=e=="start"?this._onStartFns:this._onDoneFns;A.forEach(i=>i()),A.length=0}},ns="!";var OH=["notch"],PH=["matFormFieldNotchedOutline",""],ZH=["*"],qH=["textField"],VH=["iconPrefixContainer"],WH=["textPrefixContainer"],zH=["iconSuffixContainer"],jH=["textSuffixContainer"],XH=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],$H=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function AT(t,e){t&1&&W(0,"span",21)}function eT(t,e){if(t&1&&(u(0,"label",20),sA(1,1),U(2,AT,1,0,"span",21),m()),t&2){let A=b(2);F("floating",A._shouldLabelFloat())("monitorResize",A._hasOutline())("id",A._labelId),IA("for",A._control.disableAutomaticLabeling?null:A._control.id),f(2),pA(!A.hideRequiredMarker&&A._control.required?2:-1)}}function tT(t,e){if(t&1&&U(0,eT,3,5,"label",20),t&2){let A=b();pA(A._hasFloatingLabel()?0:-1)}}function iT(t,e){t&1&&W(0,"div",7)}function oT(t,e){}function nT(t,e){if(t&1&&U(0,oT,0,0,"ng-template",13),t&2){b(2);let A=He(1);F("ngTemplateOutlet",A)}}function gT(t,e){if(t&1&&(u(0,"div",9),U(1,nT,1,1,null,13),m()),t&2){let A=b();F("matFormFieldNotchedOutlineOpen",A._shouldLabelFloat()),f(),pA(A._forceDisplayInfixLabel()?-1:1)}}function rT(t,e){t&1&&(u(0,"div",10,2),sA(2,2),m())}function sT(t,e){t&1&&(u(0,"div",11,3),sA(2,3),m())}function IT(t,e){}function aT(t,e){if(t&1&&U(0,IT,0,0,"ng-template",13),t&2){b();let A=He(1);F("ngTemplateOutlet",A)}}function CT(t,e){t&1&&(u(0,"div",14,4),sA(2,4),m())}function BT(t,e){t&1&&(u(0,"div",15,5),sA(2,5),m())}function QT(t,e){t&1&&W(0,"div",16)}function ET(t,e){if(t&1&&(u(0,"div",18),sA(1,6),m()),t&2){let A=b();F("@transitionMessages",A._subscriptAnimationState)}}function cT(t,e){if(t&1&&(u(0,"mat-hint",22),G(1),m()),t&2){let A=b(2);F("id",A._hintLabelId),f(),HA(A.hintLabel)}}function lT(t,e){if(t&1&&(u(0,"div",19),U(1,cT,2,2,"mat-hint",22),sA(2,7),W(3,"div",23),sA(4,8),m()),t&2){let A=b();F("@transitionMessages",A._subscriptAnimationState),f(),pA(A.hintLabel?1:-1)}}var ME=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["mat-label"]]})}return t})(),dT=new k("MatError");var hk=(()=>{class t{align="start";id=Q(ce).getId("mat-mdc-hint-");static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(i,o){i&2&&(Qt("id",o.id),IA("align",null),oA("mat-mdc-form-field-hint-end",o.align==="end"))},inputs:{align:"align",id:"id"}})}return t})(),hT=new k("MatPrefix");var yk=new k("MatSuffix"),Mk=(()=>{class t{set _isTextSelector(A){this._isText=!0}_isText=!1;static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},features:[LA([{provide:yk,useExisting:t}])]})}return t})(),Rk=new k("FloatingLabelParent"),uk=(()=>{class t{_elementRef=Q(q);get floating(){return this._floating}set floating(A){this._floating=A,this.monitorResize&&this._handleResize()}_floating=!1;get monitorResize(){return this._monitorResize}set monitorResize(A){this._monitorResize=A,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}_monitorResize=!1;_resizeObserver=Q(wE);_ngZone=Q(X);_parent=Q(Rk);_resizeSubscription=new vA;constructor(){}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return uT(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(i,o){i&2&&oA("mdc-floating-label--float-above",o.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return t})();function uT(t){let e=t;if(e.offsetParent!==null)return e.scrollWidth;let A=e.cloneNode(!0);A.style.setProperty("position","absolute"),A.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(A);let i=A.scrollWidth;return A.remove(),i}var mk="mdc-line-ripple--active",yE="mdc-line-ripple--deactivating",Dk=(()=>{class t{_elementRef=Q(q);_cleanupTransitionEnd;constructor(){let A=Q(X),i=Q(Me);A.runOutsideAngular(()=>{this._cleanupTransitionEnd=i.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionEnd)})}activate(){let A=this._elementRef.nativeElement.classList;A.remove(yE),A.add(mk)}deactivate(){this._elementRef.nativeElement.classList.add(yE)}_handleTransitionEnd=A=>{let i=this._elementRef.nativeElement.classList,o=i.contains(yE);A.propertyName==="opacity"&&o&&i.remove(mk,yE)};ngOnDestroy(){this._cleanupTransitionEnd()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return t})(),fk=(()=>{class t{_elementRef=Q(q);_ngZone=Q(X);open=!1;_notch;constructor(){}ngAfterViewInit(){let A=this._elementRef.nativeElement.querySelector(".mdc-floating-label");A?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(A.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>A.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(A){!this.open||!A?this._notch.nativeElement.style.width="":this._notch.nativeElement.style.width=`calc(${A}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=T({type:t,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(i,o){if(i&1&&cA(OH,5),i&2){let n;z(n=j())&&(o._notch=n.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(i,o){i&2&&oA("mdc-notched-outline--notched",o.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},attrs:PH,ngContentSelectors:ZH,decls:5,vars:0,consts:[["notch",""],[1,"mat-mdc-notch-piece","mdc-notched-outline__leading"],[1,"mat-mdc-notch-piece","mdc-notched-outline__notch"],[1,"mat-mdc-notch-piece","mdc-notched-outline__trailing"]],template:function(i,o){i&1&&(ZA(),W(0,"div",1),u(1,"div",2,0),sA(3),m(),W(4,"div",3))},encapsulation:2,changeDetection:0})}return t})(),mT={transitionMessages:Qo("transitionMessages",[gi("enter",Ge({opacity:1,transform:"translateY(0%)"})),St("void => enter",[Ge({opacity:0,transform:"translateY(-5px)"}),qt("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Ba=(()=>{class t{value;stateChanges;id;placeholder;ngControl;focused;empty;shouldLabelFloat;required;disabled;errorState;controlType;autofilled;userAriaDescribedBy;disableAutomaticLabeling;static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t})}return t})();var Qa=new k("MatFormField"),DT=new k("MAT_FORM_FIELD_DEFAULT_OPTIONS"),pk="fill",fT="auto",wk="fixed",pT="translateY(-50%)",Eo=(()=>{class t{_elementRef=Q(q);_changeDetectorRef=Q(zA);_dir=Q(Ne);_platform=Q(TA);_idGenerator=Q(ce);_defaults=Q(DT,{optional:!0});_animationMode=Q($A,{optional:!0});_textField;_iconPrefixContainer;_textPrefixContainer;_iconSuffixContainer;_textSuffixContainer;_floatingLabel;_notchedOutline;_lineRipple;_formFieldControl;_prefixChildren;_suffixChildren;_errorChildren;_hintChildren;_labelChild=xy(ME);get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(A){this._hideRequiredMarker=pe(A)}_hideRequiredMarker=!1;color="primary";get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||fT}set floatLabel(A){A!==this._floatLabel&&(this._floatLabel=A,this._changeDetectorRef.markForCheck())}_floatLabel;get appearance(){return this._appearance}set appearance(A){let i=this._appearance,o=A||this._defaults?.appearance||pk;this._appearance=o,this._appearance==="outline"&&this._appearance!==i&&(this._needsOutlineLabelOffsetUpdate=!0)}_appearance=pk;get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||wk}set subscriptSizing(A){this._subscriptSizing=A||this._defaults?.subscriptSizing||wk}_subscriptSizing=null;get hintLabel(){return this._hintLabel}set hintLabel(A){this._hintLabel=A,this._processHints()}_hintLabel="";_hasIconPrefix=!1;_hasTextPrefix=!1;_hasIconSuffix=!1;_hasTextSuffix=!1;_labelId=this._idGenerator.getId("mat-mdc-form-field-label-");_hintLabelId=this._idGenerator.getId("mat-mdc-hint-");_subscriptAnimationState="";get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(A){this._explicitFormFieldControl=A}_destroyed=new _;_isFocused=null;_explicitFormFieldControl;_needsOutlineLabelOffsetUpdate=!1;_previousControl=null;_stateChanges;_valueChanges;_describedByChanges;_injector=Q(wA);constructor(){let A=this._defaults;A&&(A.appearance&&(this.appearance=A.appearance),this._hideRequiredMarker=!!A?.hideRequiredMarker,A.color&&(this.color=A.color))}ngAfterViewInit(){this._updateFocusState(),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl(),this._control!==this._previousControl&&(this._initializeControl(this._previousControl),this._previousControl=this._control)}ngOnDestroy(){this._stateChanges?.unsubscribe(),this._valueChanges?.unsubscribe(),this._describedByChanges?.unsubscribe(),this._destroyed.next(),this._destroyed.complete()}getLabelId=_o(()=>this._hasFloatingLabel()?this._labelId:null);getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(A){let i=this._control,o="mat-mdc-form-field-type-";A&&this._elementRef.nativeElement.classList.remove(o+A.controlType),i.controlType&&this._elementRef.nativeElement.classList.add(o+i.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=i.stateChanges.subscribe(()=>{this._updateFocusState(),this._changeDetectorRef.markForCheck()}),this._describedByChanges?.unsubscribe(),this._describedByChanges=i.stateChanges.pipe(De([void 0,void 0]),nA(()=>[i.errorState,i.userAriaDescribedBy]),yC(),kA(([[n,g],[r,s]])=>n!==r||g!==s)).subscribe(()=>this._syncDescribedByIds()),this._valueChanges?.unsubscribe(),i.ngControl&&i.ngControl.valueChanges&&(this._valueChanges=i.ngControl.valueChanges.pipe(mA(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()))}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(A=>!A._isText),this._hasTextPrefix=!!this._prefixChildren.find(A=>A._isText),this._hasIconSuffix=!!this._suffixChildren.find(A=>!A._isText),this._hasTextSuffix=!!this._suffixChildren.find(A=>A._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),me(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(){this._control}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||this._isFocused===null)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0),gI(()=>{this._needsOutlineLabelOffsetUpdate&&(this._needsOutlineLabelOffsetUpdate=!1,this._updateOutlineLabelOffset())},{injector:this._injector}),this._dir.change.pipe(mA(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0)}_shouldAlwaysFloat(){return this.floatLabel==="always"}_hasOutline(){return this.appearance==="outline"}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel=_o(()=>!!this._labelChild());_shouldLabelFloat(){return this._hasFloatingLabel()?this._control.shouldLabelFloat||this._shouldAlwaysFloat():!1}_shouldForward(A){let i=this._control?this._control.ngControl:null;return i&&i[A]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||!this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(0):this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth())}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){this._hintChildren}_syncDescribedByIds(){if(this._control){let A=[];if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&A.push(...this._control.userAriaDescribedBy.split(" ")),this._getDisplayedMessages()==="hint"){let i=this._hintChildren?this._hintChildren.find(n=>n.align==="start"):null,o=this._hintChildren?this._hintChildren.find(n=>n.align==="end"):null;i?A.push(i.id):this._hintLabel&&A.push(this._hintLabelId),o&&A.push(o.id)}else this._errorChildren&&A.push(...this._errorChildren.map(i=>i.id));this._control.setDescribedByIds(A)}}_updateOutlineLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return;let A=this._floatingLabel.element;if(!(this._iconPrefixContainer||this._textPrefixContainer)){A.style.transform="";return}if(!this._isAttachedToDom()){this._needsOutlineLabelOffsetUpdate=!0;return}let i=this._iconPrefixContainer?.nativeElement,o=this._textPrefixContainer?.nativeElement,n=this._iconSuffixContainer?.nativeElement,g=this._textSuffixContainer?.nativeElement,r=i?.getBoundingClientRect().width??0,s=o?.getBoundingClientRect().width??0,I=n?.getBoundingClientRect().width??0,B=g?.getBoundingClientRect().width??0,c=this._dir.value==="rtl"?"-1":"1",D=`${r+s}px`,p=`calc(${c} * (${D} + var(--mat-mdc-form-field-label-offset-x, 0px)))`;A.style.transform=`var(
        --mat-mdc-form-field-label-transform,
        ${pT} translateX(${p})
    )`;let y=r+s+I+B;this._elementRef.nativeElement.style.setProperty("--mat-form-field-notch-max-width",`calc(100% - ${y}px)`)}_isAttachedToDom(){let A=this._elementRef.nativeElement;if(A.getRootNode){let i=A.getRootNode();return i&&i!==A}return document.documentElement.contains(A)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=T({type:t,selectors:[["mat-form-field"]],contentQueries:function(i,o,n){if(i&1&&(g0(n,o._labelChild,ME,5),jA(n,Ba,5),jA(n,hT,5),jA(n,yk,5),jA(n,dT,5),jA(n,hk,5)),i&2){r0();let g;z(g=j())&&(o._formFieldControl=g.first),z(g=j())&&(o._prefixChildren=g),z(g=j())&&(o._suffixChildren=g),z(g=j())&&(o._errorChildren=g),z(g=j())&&(o._hintChildren=g)}},viewQuery:function(i,o){if(i&1&&(cA(qH,5),cA(VH,5),cA(WH,5),cA(zH,5),cA(jH,5),cA(uk,5),cA(fk,5),cA(Dk,5)),i&2){let n;z(n=j())&&(o._textField=n.first),z(n=j())&&(o._iconPrefixContainer=n.first),z(n=j())&&(o._textPrefixContainer=n.first),z(n=j())&&(o._iconSuffixContainer=n.first),z(n=j())&&(o._textSuffixContainer=n.first),z(n=j())&&(o._floatingLabel=n.first),z(n=j())&&(o._notchedOutline=n.first),z(n=j())&&(o._lineRipple=n.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(i,o){i&2&&oA("mat-mdc-form-field-label-always-float",o._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",o._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",o._hasIconSuffix)("mat-form-field-invalid",o._control.errorState)("mat-form-field-disabled",o._control.disabled)("mat-form-field-autofilled",o._control.autofilled)("mat-form-field-no-animations",o._animationMode==="NoopAnimations")("mat-form-field-appearance-fill",o.appearance=="fill")("mat-form-field-appearance-outline",o.appearance=="outline")("mat-form-field-hide-placeholder",o._hasFloatingLabel()&&!o._shouldLabelFloat())("mat-focused",o._control.focused)("mat-primary",o.color!=="accent"&&o.color!=="warn")("mat-accent",o.color==="accent")("mat-warn",o.color==="warn")("ng-untouched",o._shouldForward("untouched"))("ng-touched",o._shouldForward("touched"))("ng-pristine",o._shouldForward("pristine"))("ng-dirty",o._shouldForward("dirty"))("ng-valid",o._shouldForward("valid"))("ng-invalid",o._shouldForward("invalid"))("ng-pending",o._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[LA([{provide:Qa,useExisting:t},{provide:Rk,useExisting:t}])],ngContentSelectors:$H,decls:18,vars:21,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],["textSuffixContainer",""],["iconSuffixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(i,o){if(i&1){let n=aA();ZA(XH),U(0,tT,1,1,"ng-template",null,0,QI),u(2,"div",6,1),x("click",function(r){return J(n),H(o._control.onContainerClick(r))}),U(4,iT,1,0,"div",7),u(5,"div",8),U(6,gT,2,2,"div",9)(7,rT,3,0,"div",10)(8,sT,3,0,"div",11),u(9,"div",12),U(10,aT,1,1,null,13),sA(11),m(),U(12,CT,3,0,"div",14)(13,BT,3,0,"div",15),m(),U(14,QT,1,0,"div",16),m(),u(15,"div",17),U(16,ET,2,1,"div",18)(17,lT,5,2,"div",19),m()}if(i&2){let n;f(2),oA("mdc-text-field--filled",!o._hasOutline())("mdc-text-field--outlined",o._hasOutline())("mdc-text-field--no-label",!o._hasFloatingLabel())("mdc-text-field--disabled",o._control.disabled)("mdc-text-field--invalid",o._control.errorState),f(2),pA(!o._hasOutline()&&!o._control.disabled?4:-1),f(2),pA(o._hasOutline()?6:-1),f(),pA(o._hasIconPrefix?7:-1),f(),pA(o._hasTextPrefix?8:-1),f(2),pA(!o._hasOutline()||o._forceDisplayInfixLabel()?10:-1),f(2),pA(o._hasTextSuffix?12:-1),f(),pA(o._hasIconSuffix?13:-1),f(),pA(o._hasOutline()?-1:14),f(),oA("mat-mdc-form-field-subscript-dynamic-size",o.subscriptSizing==="dynamic"),f(),pA((n=o._getDisplayedMessages())==="error"?16:n==="hint"?17:-1)}},dependencies:[uk,fk,dI,Dk,hk],styles:['.mdc-text-field{display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field__input{width:100%;min-width:0;border:none;border-radius:0;background:none;padding:0;-moz-appearance:none;-webkit-appearance:none;height:28px}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}.mdc-text-field__input::placeholder{opacity:0}.mdc-text-field__input::-moz-placeholder{opacity:0}.mdc-text-field__input::-webkit-input-placeholder{opacity:0}.mdc-text-field__input:-ms-input-placeholder{opacity:0}.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{opacity:1}.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--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-moz-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-webkit-input-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive:-ms-input-placeholder{opacity:0}.mdc-text-field--outlined .mdc-text-field__input,.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mdc-filled-text-field-caret-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-error-caret-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mdc-outlined-text-field-caret-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-error-caret-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}}.mdc-text-field--filled{height:56px;border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-left-radius:var(--mdc-filled-text-field-container-shape, var(--mat-sys-corner-extra-small));border-top-right-radius:var(--mdc-filled-text-field-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color, var(--mat-sys-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 4%, transparent))}.mdc-text-field--outlined{height:56px;overflow:visible;padding-right:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)));padding-left:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)) + 4px)}[dir=rtl] .mdc-text-field--outlined{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)) + 4px);padding-left:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)))}.mdc-floating-label{position:absolute;left:0;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{right:0;left:auto;transform-origin:right top;text-align:right}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:auto}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label{left:auto;right:4px}.mdc-text-field--filled .mdc-floating-label{left:16px;right:auto}[dir=rtl] .mdc-text-field--filled .mdc-floating-label{left:auto;right:16px}.mdc-text-field--disabled .mdc-floating-label{cursor:default}@media(forced-colors: active){.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mdc-filled-text-field-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mdc-filled-text-field-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mdc-filled-text-field-hover-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-filled-text-field-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mdc-filled-text-field-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mdc-filled-text-field-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mdc-filled-text-field-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mdc-filled-text-field-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mdc-filled-text-field-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mdc-filled-text-field-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mdc-outlined-text-field-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mdc-outlined-text-field-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mdc-outlined-text-field-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-outlined-text-field-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mdc-outlined-text-field-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mdc-outlined-text-field-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mdc-outlined-text-field-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mdc-outlined-text-field-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mdc-outlined-text-field-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mdc-outlined-text-field-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-floating-label--float-above{cursor:auto;transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1);font-size:.75rem}.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-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-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:0;margin-right:1px}.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{text-align:right}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mat-mdc-notch-piece{box-sizing:border-box;height:100%;pointer-events:none;border-top:1px solid;border-bottom:1px solid}.mdc-text-field--focused .mat-mdc-notch-piece{border-width:2px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-outline-color, var(--mat-sys-outline));border-width:var(--mdc-outlined-text-field-outline-width, 1px)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-hover-outline-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-focus-outline-color, var(--mat-sys-primary))}.mdc-text-field--outlined.mdc-text-field--disabled .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-notched-outline .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-hover-outline-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-focus-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mat-mdc-notch-piece{border-width:var(--mdc-outlined-text-field-focus-outline-width, 2px)}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)))}[dir=rtl] .mdc-notched-outline__leading{border-left:none;border-right:1px solid;border-bottom-left-radius:0;border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__trailing{flex-grow:1;border-left:none;border-right:1px solid;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small))}[dir=rtl] .mdc-notched-outline__trailing{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:min(var(--mat-form-field-notch-max-width, 100%),100% - max(12px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)))*2)}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none;--mat-form-field-notch-max-width: 100%}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch{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{z-index:1;border-bottom-width:var(--mdc-filled-text-field-active-indicator-height, 1px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-hover-active-indicator-color, var(--mat-sys-on-surface))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-disabled-active-indicator-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color, var(--mat-sys-on-error-container))}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height, 2px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-focus-active-indicator-color, var(--mat-sys-primary))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-error-focus-active-indicator-color, var(--mat-sys-error))}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-text-field--disabled{pointer-events:none}.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{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all;will-change:auto}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.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;will-change: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-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.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-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height, 56px);padding-top:var(--mat-form-field-filled-with-label-container-padding-top, 24px);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom, 8px)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding, 16px);padding-bottom:var(--mat-form-field-container-vertical-padding, 16px)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height, 56px)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height, 56px) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}.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;color:var(--mat-form-field-error-text-color, var(--mat-sys-error))}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-form-field-subscript-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-form-field-subscript-text-size, var(--mat-sys-body-small-size));letter-spacing:var(--mat-form-field-subscript-text-tracking, var(--mat-sys-body-small-tracking));font-weight:var(--mat-form-field-subscript-text-weight, var(--mat-sys-body-small-weight))}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color, var(--mat-sys-on-surface))}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity, 0)}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}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color, var(--mat-sys-neutral10))}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color, color-mix(in srgb, var(--mat-sys-neutral10) 38%, transparent))}.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;color:var(--mat-form-field-enabled-select-arrow-color, var(--mat-sys-on-surface-variant))}[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-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.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}@media(forced-colors: active){.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}}@media(forced-colors: active){.mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.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;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-form-field-container-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-form-field-container-text-tracking, var(--mat-sys-body-large-tracking));font-weight:var(--mat-form-field-container-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}[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%;z-index:0}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:0 12px;box-sizing:content-box}.mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-leading-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color, var(--mat-sys-error))}.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-hover-trailing-icon-color, var(--mat-sys-on-error-container))}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color, var(--mat-sys-error))}.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-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-infix:has(textarea[cols]){width:auto}.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-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::-moz-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::-webkit-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .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--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-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}'],encapsulation:2,data:{animation:[mT.transitionMessages]},changeDetection:0})}return t})(),Oo=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=Z({imports:[MA,Vr,MA]})}return t})();var wT=["trigger"],yT=["panel"],MT=[[["mat-select-trigger"]],"*"],RT=["mat-select-trigger","*"];function kT(t,e){if(t&1&&(u(0,"span",4),G(1),m()),t&2){let A=b();f(),HA(A.placeholder)}}function FT(t,e){t&1&&sA(0)}function bT(t,e){if(t&1&&(u(0,"span",11),G(1),m()),t&2){let A=b(2);f(),HA(A.triggerValue)}}function ST(t,e){if(t&1&&(u(0,"span",5),U(1,FT,1,0)(2,bT,2,1,"span",11),m()),t&2){let A=b();f(),pA(A.customTrigger?1:2)}}function vT(t,e){if(t&1){let A=aA();u(0,"div",12,1),x("@transformPanel.done",function(o){J(A);let n=b();return H(n._panelDoneAnimatingStream.next(o.toState))})("keydown",function(o){J(A);let n=b();return H(n._handleKeydown(o))}),sA(2,1),m()}if(t&2){let A=b();n0("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",A._getPanelTheme(),""),F("ngClass",A.panelClass)("@transformPanel","showing"),IA("id",A.id+"-panel")("aria-multiselectable",A.multiple)("aria-label",A.ariaLabel||null)("aria-labelledby",A._getPanelAriaLabelledby())}}var NT={transformPanelWrap:Qo("transformPanelWrap",[St("* => void",mm("@transformPanel",[um()],{optional:!0}))]),transformPanel:Qo("transformPanel",[gi("void",Ge({opacity:0,transform:"scale(1, 0.8)"})),St("void => showing",qt("120ms cubic-bezier(0, 0, 0.2, 1)",Ge({opacity:1,transform:"scale(1, 1)"}))),St("* => void",qt("100ms linear",Ge({opacity:0})))])};var kk=new k("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let t=Q(Pe);return()=>t.scrollStrategies.reposition()}});function GT(t){return()=>t.scrollStrategies.reposition()}var LT=new k("MAT_SELECT_CONFIG"),_T={provide:kk,deps:[Pe],useFactory:GT},KT=new k("MatSelectTrigger"),Dm=class{source;value;constructor(e,A){this.source=e,this.value=A}},gs=(()=>{class t{_viewportRuler=Q(ti);_changeDetectorRef=Q(zA);_elementRef=Q(q);_dir=Q(Ne,{optional:!0});_idGenerator=Q(ce);_parentFormField=Q(Qa,{optional:!0});ngControl=Q(Ri,{self:!0,optional:!0});_liveAnnouncer=Q(BE);_defaultOptions=Q(LT,{optional:!0});_initialized=new _;options;optionGroups;customTrigger;_positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}];_scrollOptionIntoView(A){let i=this.options.toArray()[A];if(i){let o=this.panel.nativeElement,n=$R(A,this.options,this.optionGroups),g=i._getHostElement();A===0&&n===1?o.scrollTop=0:o.scrollTop=Ak(g.offsetTop,g.offsetHeight,o.scrollTop,o.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(A){return new Dm(this,A)}_scrollStrategyFactory=Q(kk);_panelOpen=!1;_compareWith=(A,i)=>A===i;_uid=this._idGenerator.getId("mat-select-");_triggerAriaLabelledBy=null;_previousControl;_destroy=new _;_errorStateTracker;stateChanges=new _;disableAutomaticLabeling=!0;userAriaDescribedBy;_selectionModel;_keyManager;_preferredOverlayOrigin;_overlayWidth;_onChange=()=>{};_onTouched=()=>{};_valueId=this._idGenerator.getId("mat-select-value-");_panelDoneAnimatingStream=new _;_scrollStrategy;_overlayPanelClass=this._defaultOptions?.overlayPanelClass||"";get focused(){return this._focused||this._panelOpen}_focused=!1;controlType="mat-select";trigger;panel;_overlayDir;panelClass;disabled=!1;disableRipple=!1;tabIndex=0;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(A){this._hideSingleSelectionIndicator=A,this._syncParentProperties()}_hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1;get placeholder(){return this._placeholder}set placeholder(A){this._placeholder=A,this.stateChanges.next()}_placeholder;get required(){return this._required??this.ngControl?.control?.hasValidator(Fr.required)??!1}set required(A){this._required=A,this.stateChanges.next()}_required;get multiple(){return this._multiple}set multiple(A){this._selectionModel,this._multiple=A}_multiple=!1;disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1;get compareWith(){return this._compareWith}set compareWith(A){this._compareWith=A,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(A){this._assignValue(A)&&this._onChange(A)}_value;ariaLabel="";ariaLabelledby;get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(A){this._errorStateTracker.matcher=A}typeaheadDebounceInterval;sortComparator;get id(){return this._id}set id(A){this._id=A||this._uid,this.stateChanges.next()}_id;get errorState(){return this._errorStateTracker.errorState}set errorState(A){this._errorStateTracker.errorState=A}panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto";canSelectNullableOptions=this._defaultOptions?.canSelectNullableOptions??!1;optionSelectionChanges=Hi(()=>{let A=this.options;return A?A.changes.pipe(De(A),se(()=>me(...A.map(i=>i.onSelectionChange)))):this._initialized.pipe(se(()=>this.optionSelectionChanges))});openedChange=new $;_openedStream=this.openedChange.pipe(kA(A=>A),nA(()=>{}));_closedStream=this.openedChange.pipe(kA(A=>!A),nA(()=>{}));selectionChange=new $;valueChange=new $;constructor(){let A=Q(Xr),i=Q(KI,{optional:!0}),o=Q(UI,{optional:!0}),n=Q(new ft("tabindex"),{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this),this._defaultOptions?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval),this._errorStateTracker=new wg(A,this.ngControl,o,i,this.stateChanges),this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=n==null?0:parseInt(n)||0,this.id=this.id}ngOnInit(){this._selectionModel=new is(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Ei(),mA(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen)),this._viewportRuler.change().pipe(mA(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}ngAfterContentInit(){this._initialized.next(),this._initialized.complete(),this._initKeyManager(),this._selectionModel.changed.pipe(mA(this._destroy)).subscribe(A=>{A.added.forEach(i=>i.select()),A.removed.forEach(i=>i.deselect())}),this.options.changes.pipe(De(null),mA(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let A=this._getTriggerAriaLabelledby(),i=this.ngControl;if(A!==this._triggerAriaLabelledBy){let o=this._elementRef.nativeElement;this._triggerAriaLabelledBy=A,A?o.setAttribute("aria-labelledby",A):o.removeAttribute("aria-labelledby")}i&&(this._previousControl!==i.control&&(this._previousControl!==void 0&&i.disabled!==null&&i.disabled!==this.disabled&&(this.disabled=i.disabled),this._previousControl=i.control),this.updateErrorState())}ngOnChanges(A){(A.disabled||A.userAriaDescribedBy)&&this.stateChanges.next(),A.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_trackedModal=null;_applyModalPanelOwnership(){let A=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!A)return;let i=`${this.id}-panel`;this._trackedModal&&aE(this._trackedModal,"aria-owns",i),Pu(A,"aria-owns",i),this._trackedModal=A}_clearFromModal(){if(!this._trackedModal)return;let A=`${this.id}-panel`;aE(this._trackedModal,"aria-owns",A),this._trackedModal=null}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next())}writeValue(A){this._assignValue(A)}registerOnChange(A){this._onChange=A}registerOnTouched(A){this._onTouched=A}setDisabledState(A){this.disabled=A,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){let A=this._selectionModel.selected.map(i=>i.viewValue);return this._isRtl()&&A.reverse(),A.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return this._dir?this._dir.value==="rtl":!1}_handleKeydown(A){this.disabled||(this.panelOpen?this._handleOpenKeydown(A):this._handleClosedKeydown(A))}_handleClosedKeydown(A){let i=A.keyCode,o=i===40||i===38||i===37||i===39,n=i===13||i===32,g=this._keyManager;if(!g.isTyping()&&n&&!Oe(A)||(this.multiple||A.altKey)&&o)A.preventDefault(),this.open();else if(!this.multiple){let r=this.selected;g.onKeydown(A);let s=this.selected;s&&r!==s&&this._liveAnnouncer.announce(s.viewValue,1e4)}}_handleOpenKeydown(A){let i=this._keyManager,o=A.keyCode,n=o===40||o===38,g=i.isTyping();if(n&&A.altKey)A.preventDefault(),this.close();else if(!g&&(o===13||o===32)&&i.activeItem&&!Oe(A))A.preventDefault(),i.activeItem._selectViaInteraction();else if(!g&&this._multiple&&o===65&&A.ctrlKey){A.preventDefault();let r=this.options.some(s=>!s.disabled&&!s.selected);this.options.forEach(s=>{s.disabled||(r?s.select():s.deselect())})}else{let r=i.activeItemIndex;i.onKeydown(A),this._multiple&&n&&A.shiftKey&&i.activeItem&&i.activeItemIndex!==r&&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(de(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(A){if(this.options.forEach(i=>i.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&A)Array.isArray(A),A.forEach(i=>this._selectOptionByValue(i)),this._sortValues();else{let i=this._selectOptionByValue(A);i?this._keyManager.updateActiveItem(i):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(A){let i=this.options.find(o=>{if(this._selectionModel.isSelected(o))return!1;try{return(o.value!=null||this.canSelectNullableOptions)&&this._compareWith(o.value,A)}catch{return!1}});return i&&this._selectionModel.select(i),i}_assignValue(A){return A!==this._value||this._multiple&&Array.isArray(A)?(this.options&&this._setSelectionByValue(A),this._value=A,!0):!1}_skipPredicate=A=>this.panelOpen?!1:A.disabled;_getOverlayWidth(A){return this.panelWidth==="auto"?(A instanceof Ca?A.elementRef:A||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let A of this.options)A._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new gE(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),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(){let A=me(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(mA(A)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),me(...this.options.map(i=>i._stateChanges)).pipe(mA(A)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(A,i){let o=this._selectionModel.isSelected(A);!this.canSelectNullableOptions&&A.value==null&&!this._multiple?(A.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(A.value)):(o!==A.selected&&(A.selected?this._selectionModel.select(A):this._selectionModel.deselect(A)),i&&this._keyManager.setActiveItem(A),this.multiple&&(this._sortValues(),i&&this.focus())),o!==this._selectionModel.isSelected(A)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let A=this.options.toArray();this._selectionModel.sort((i,o)=>this.sortComparator?this.sortComparator(i,o,A):A.indexOf(i)-A.indexOf(o)),this.stateChanges.next()}}_propagateChanges(A){let i;this.multiple?i=this.selected.map(o=>o.value):i=this.selected?this.selected.value:A,this._value=i,this.valueChange.emit(i),this._onChange(i),this.selectionChange.emit(this._getChangeEvent(i)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let A=-1;for(let i=0;i<this.options.length;i++)if(!this.options.get(i).disabled){A=i;break}this._keyManager.setActiveItem(A)}else this._keyManager.setActiveItem(this._selectionModel.selected[0])}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0}focus(A){this._elementRef.nativeElement.focus(A)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let A=this._parentFormField?.getLabelId()||null,i=A?A+" ":"";return this.ariaLabelledby?i+this.ariaLabelledby:A}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let A=this._parentFormField?.getLabelId(),i=(A?A+" ":"")+this._valueId;return this.ariaLabelledby&&(i+=" "+this.ariaLabelledby),i}_panelDoneAnimating(A){this.openedChange.emit(A)}setDescribedByIds(A){A.length?this._elementRef.nativeElement.setAttribute("aria-describedby",A.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=T({type:t,selectors:[["mat-select"]],contentQueries:function(i,o,n){if(i&1&&(jA(n,KT,5),jA(n,Dn,5),jA(n,im,5)),i&2){let g;z(g=j())&&(o.customTrigger=g.first),z(g=j())&&(o.options=g),z(g=j())&&(o.optionGroups=g)}},viewQuery:function(i,o){if(i&1&&(cA(wT,5),cA(yT,5),cA(dm,5)),i&2){let n;z(n=j())&&(o.trigger=n.first),z(n=j())&&(o.panel=n.first),z(n=j())&&(o._overlayDir=n.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(i,o){i&1&&x("keydown",function(g){return o._handleKeydown(g)})("focus",function(){return o._onFocus()})("blur",function(){return o._onBlur()}),i&2&&(IA("id",o.id)("tabindex",o.disabled?-1:o.tabIndex)("aria-controls",o.panelOpen?o.id+"-panel":null)("aria-expanded",o.panelOpen)("aria-label",o.ariaLabel||null)("aria-required",o.required.toString())("aria-disabled",o.disabled.toString())("aria-invalid",o.errorState)("aria-activedescendant",o._getAriaActiveDescendant()),oA("mat-mdc-select-disabled",o.disabled)("mat-mdc-select-invalid",o.errorState)("mat-mdc-select-required",o.required)("mat-mdc-select-empty",o.empty)("mat-mdc-select-multiple",o.multiple))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",tA],disableRipple:[2,"disableRipple","disableRipple",tA],tabIndex:[2,"tabIndex","tabIndex",A=>A==null?0:Re(A)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",tA],placeholder:"placeholder",required:[2,"required","required",tA],multiple:[2,"multiple","multiple",tA],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",tA],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",Re],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth",canSelectNullableOptions:[2,"canSelectNullableOptions","canSelectNullableOptions",tA]},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[LA([{provide:Ba,useExisting:t},{provide:tm,useExisting:t}]),VA],ngContentSelectors:RT,decls:11,vars:8,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"backdropClick","attach","detach","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(i,o){if(i&1){let n=aA();ZA(MT),u(0,"div",2,0),x("click",function(){return J(n),H(o.open())}),u(3,"div",3),U(4,kT,2,1,"span",4)(5,ST,3,1,"span",5),m(),u(6,"div",6)(7,"div",7),it(),u(8,"svg",8),W(9,"path",9),m()()()(),U(10,vT,3,9,"ng-template",10),x("backdropClick",function(){return J(n),H(o.close())})("attach",function(){return J(n),H(o._onAttached())})("detach",function(){return J(n),H(o.close())})}if(i&2){let n=He(1);f(3),IA("id",o._valueId),f(),pA(o.empty?4:5),f(6),F("cdkConnectedOverlayPanelClass",o._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",o._scrollStrategy)("cdkConnectedOverlayOrigin",o._preferredOverlayOrigin||n)("cdkConnectedOverlayOpen",o.panelOpen)("cdkConnectedOverlayPositions",o._positions)("cdkConnectedOverlayWidth",o._overlayWidth)}},dependencies:[Ca,dm,Yt],styles:['.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color, var(--mat-sys-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-sys-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow, 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-select-disabled{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-disabled .mat-mdc-select-placeholder{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.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 .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color, var(--mat-sys-error))}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}@media(forced-colors: active){.mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .mat-mdc-select-arrow svg{fill:GrayText}}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-select-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}div.mat-mdc-select-panel .mat-mdc-option{--mdc-list-list-item-container-color: var(--mat-select-panel-background-color)}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color, var(--mat-sys-on-surface-variant))}.mat-form-field-no-animations .mat-mdc-select-placeholder,._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:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.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}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform, translateY(-8px))}'],encapsulation:2,data:{animation:[NT.transformPanel]},changeDetection:0})}return t})();var kE=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=Z({providers:[_T],imports:[Rg,om,MA,Jo,Oo,om,MA]})}return t})();var UT=["tooltip"],vk=20;var Nk=new k("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let t=Q(Pe);return()=>t.scrollStrategies.reposition({scrollThrottle:vk})}});function xT(t){return()=>t.scrollStrategies.reposition({scrollThrottle:vk})}var YT={provide:Nk,deps:[Pe],useFactory:xT};function JT(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}var HT=new k("mat-tooltip-default-options",{providedIn:"root",factory:JT});var bk="tooltip-panel",Sk=Co({passive:!0}),TT=8,OT=8,PT=24,ZT=200,Gk=(()=>{class t{_elementRef=Q(q);_ngZone=Q(X);_platform=Q(TA);_ariaDescriber=Q(HR);_focusMonitor=Q($t);_dir=Q(Ne);_injector=Q(wA);_defaultOptions=Q(HT,{optional:!0});_overlayRef;_tooltipInstance;_portal;_position="below";_positionAtOrigin=!1;_disabled=!1;_tooltipClass;_viewInitialized=!1;_pointerExitEventsInitialized=!1;_tooltipComponent=qT;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending;_dirSubscribed=!1;get position(){return this._position}set position(A){A!==this._position&&(this._position=A,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(A){this._positionAtOrigin=pe(A),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(A){let i=pe(A);this._disabled!==i&&(this._disabled=i,i?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(A){this._showDelay=Zt(A)}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(A){this._hideDelay=Zt(A),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}_hideDelay;touchGestures="auto";get message(){return this._message}set message(A){let i=this._message;this._message=A!=null?String(A).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(i)}_message="";get tooltipClass(){return this._tooltipClass}set tooltipClass(A){this._tooltipClass=A,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}_passiveListeners=[];_touchstartTimeout=null;_destroyed=new _;_isDestroyed=!1;constructor(){let A=this._defaultOptions;A&&(this._showDelay=A.showDelay,this._hideDelay=A.hideDelay,A.position&&(this.position=A.position),A.positionAtOrigin&&(this.positionAtOrigin=A.positionAtOrigin),A.touchGestures&&(this.touchGestures=A.touchGestures),A.tooltipClass&&(this.tooltipClass=A.tooltipClass)),this._viewportMargin=TT}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(mA(this._destroyed)).subscribe(A=>{A?A==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let A=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([i,o])=>{A.removeEventListener(i,o,Sk)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0,this._ariaDescriber.removeDescription(A,this.message,"tooltip"),this._focusMonitor.stopMonitoring(A)}show(A=this.showDelay,i){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let o=this._createOverlay(i);this._detach(),this._portal=this._portal||new Si(this._tooltipComponent,this._injector.get(Ce));let n=this._tooltipInstance=o.attach(this._portal).instance;n._triggerElement=this._elementRef.nativeElement,n._mouseLeaveHideDelay=this._hideDelay,n.afterHidden().pipe(mA(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),n.show(A)}hide(A=this.hideDelay){let i=this._tooltipInstance;i&&(i.isVisible()?i.hide(A):(i._cancelPendingAnimations(),this._detach()))}toggle(A){this._isTooltipVisible()?this.hide():this.show(void 0,A)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(A){if(this._overlayRef){let g=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!A)&&g._origin instanceof q)return this._overlayRef;this._detach()}let i=this._injector.get(fn).getAncestorScrollContainers(this._elementRef),o=this._injector.get(Pe),n=o.position().flexibleConnectedTo(this.positionAtOrigin?A||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(i);return n.positionChanges.pipe(mA(this._destroyed)).subscribe(g=>{this._updateCurrentPositionClass(g.connectionPair),this._tooltipInstance&&g.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=o.create({direction:this._dir,positionStrategy:n,panelClass:`${this._cssClassPrefix}-${bk}`,scrollStrategy:this._injector.get(Nk)()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(mA(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(mA(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(mA(this._destroyed)).subscribe(g=>{this._isTooltipVisible()&&g.keyCode===27&&!Oe(g)&&(g.preventDefault(),g.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._dirSubscribed||(this._dirSubscribed=!0,this._dir.change.pipe(mA(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(A){let i=A.getConfig().positionStrategy,o=this._getOrigin(),n=this._getOverlayPosition();i.withPositions([this._addOffset(R(R({},o.main),n.main)),this._addOffset(R(R({},o.fallback),n.fallback))])}_addOffset(A){let i=OT,o=!this._dir||this._dir.value=="ltr";return A.originY==="top"?A.offsetY=-i:A.originY==="bottom"?A.offsetY=i:A.originX==="start"?A.offsetX=o?-i:i:A.originX==="end"&&(A.offsetX=o?i:-i),A}_getOrigin(){let A=!this._dir||this._dir.value=="ltr",i=this.position,o;i=="above"||i=="below"?o={originX:"center",originY:i=="above"?"top":"bottom"}:i=="before"||i=="left"&&A||i=="right"&&!A?o={originX:"start",originY:"center"}:(i=="after"||i=="right"&&A||i=="left"&&!A)&&(o={originX:"end",originY:"center"});let{x:n,y:g}=this._invertPosition(o.originX,o.originY);return{main:o,fallback:{originX:n,originY:g}}}_getOverlayPosition(){let A=!this._dir||this._dir.value=="ltr",i=this.position,o;i=="above"?o={overlayX:"center",overlayY:"bottom"}:i=="below"?o={overlayX:"center",overlayY:"top"}:i=="before"||i=="left"&&A||i=="right"&&!A?o={overlayX:"end",overlayY:"center"}:(i=="after"||i=="right"&&A||i=="left"&&!A)&&(o={overlayX:"start",overlayY:"center"});let{x:n,y:g}=this._invertPosition(o.overlayX,o.overlayY);return{main:o,fallback:{overlayX:n,overlayY:g}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),be(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(A){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=A,this._tooltipInstance._markForCheck())}_invertPosition(A,i){return this.position==="above"||this.position==="below"?i==="top"?i="bottom":i==="bottom"&&(i="top"):A==="end"?A="start":A==="start"&&(A="end"),{x:A,y:i}}_updateCurrentPositionClass(A){let{overlayY:i,originX:o,originY:n}=A,g;if(i==="center"?this._dir&&this._dir.value==="rtl"?g=o==="end"?"left":"right":g=o==="start"?"left":"right":g=i==="bottom"&&n==="top"?"above":"below",g!==this._currentPosition){let r=this._overlayRef;if(r){let s=`${this._cssClassPrefix}-${bk}-`;r.removePanelClass(s+this._currentPosition),r.addPanelClass(s+g)}this._currentPosition=g}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",A=>{this._setupPointerExitEventsIfNeeded();let i;A.x!==void 0&&A.y!==void 0&&(i=A),this.show(void 0,i)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",A=>{let i=A.targetTouches?.[0],o=i?{x:i.clientX,y:i.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout);let n=500;this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,o)},this._defaultOptions?.touchLongPressShowDelay??n)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;let A=[];if(this._platformSupportsMouseEvents())A.push(["mouseleave",i=>{let o=i.relatedTarget;(!o||!this._overlayRef?.overlayElement.contains(o))&&this.hide()}],["wheel",i=>this._wheelListener(i)]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let i=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay)};A.push(["touchend",i],["touchcancel",i])}this._addListeners(A),this._passiveListeners.push(...A)}_addListeners(A){A.forEach(([i,o])=>{this._elementRef.nativeElement.addEventListener(i,o,Sk)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(A){if(this._isTooltipVisible()){let i=this._injector.get(lA).elementFromPoint(A.clientX,A.clientY),o=this._elementRef.nativeElement;i!==o&&!o.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){let A=this.touchGestures;if(A!=="off"){let i=this._elementRef.nativeElement,o=i.style;(A==="on"||i.nodeName!=="INPUT"&&i.nodeName!=="TEXTAREA")&&(o.userSelect=o.msUserSelect=o.webkitUserSelect=o.MozUserSelect="none"),(A==="on"||!i.draggable)&&(o.webkitUserDrag="none"),o.touchAction="none",o.webkitTapHighlightColor="transparent"}}_syncAriaDescription(A){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,A,"tooltip"),this._isDestroyed||be({write:()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")}},{injector:this._injector}))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(i,o){i&2&&oA("mat-mdc-tooltip-disabled",o.disabled)},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]})}return t})(),qT=(()=>{class t{_changeDetectorRef=Q(zA);_elementRef=Q(q);_isMultiline=!1;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled;_tooltip;_closeOnInteraction=!1;_isVisible=!1;_onHide=new _;_showAnimation="mat-mdc-tooltip-show";_hideAnimation="mat-mdc-tooltip-hide";constructor(){let A=Q($A,{optional:!0});this._animationsDisabled=A==="NoopAnimations"}show(A){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},A)}hide(A){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},A)}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:A}){(!A||!this._triggerElement.contains(A))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let A=this._elementRef.nativeElement.getBoundingClientRect();return A.height>PT&&A.width>=ZT}_handleAnimationEnd({animationName:A}){(A===this._showAnimation||A===this._hideAnimation)&&this._finalizeAnimation(A===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(A){A?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(A){let i=this._tooltip.nativeElement,o=this._showAnimation,n=this._hideAnimation;if(i.classList.remove(A?n:o),i.classList.add(A?o:n),this._isVisible!==A&&(this._isVisible=A,this._changeDetectorRef.markForCheck()),A&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let g=getComputedStyle(i);(g.getPropertyValue("animation-duration")==="0s"||g.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}A&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(A))}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=T({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(i,o){if(i&1&&cA(UT,7),i&2){let n;z(n=j())&&(o._tooltip=n.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(i,o){i&1&&x("mouseleave",function(g){return o._handleMouseLeave(g)})},decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(i,o){if(i&1){let n=aA();u(0,"div",1,0),x("animationend",function(r){return J(n),H(o._handleAnimationEnd(r))}),u(2,"div",2),G(3),m()()}i&2&&(oA("mdc-tooltip--multiline",o._isMultiline),F("ngClass",o.tooltipClass),f(3),HA(o.message))},dependencies:[Yt],styles:['.mat-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mdc-plain-tooltip-container-color, var(--mat-sys-inverse-surface));color:var(--mdc-plain-tooltip-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mdc-plain-tooltip-container-shape, var(--mat-sys-corner-extra-small));font-family:var(--mdc-plain-tooltip-supporting-text-font, var(--mat-sys-body-small-font));font-size:var(--mdc-plain-tooltip-supporting-text-size, var(--mat-sys-body-small-size));font-weight:var(--mdc-plain-tooltip-supporting-text-weight, var(--mat-sys-body-small-weight));line-height:var(--mdc-plain-tooltip-supporting-text-line-height, var(--mat-sys-body-small-line-height));letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking, var(--mat-sys-body-small-tracking))}.mat-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}.mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:right}.mat-mdc-tooltip-panel{line-height:normal}.mat-mdc-tooltip-panel.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})}return t})();var Lk=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=Z({providers:[YT],imports:[Wu,Rg,MA,MA,Jo]})}return t})();function VT(t,e){if(t&1&&(u(0,"mat-option",17),G(1),m()),t&2){let A=e.$implicit;F("value",A),f(),te(" ",A," ")}}function WT(t,e){if(t&1){let A=aA();u(0,"mat-form-field",14)(1,"mat-select",16,0),x("selectionChange",function(o){J(A);let n=b(2);return H(n._changePageSize(o.value))}),og(3,VT,2,2,"mat-option",17,ig),m(),u(5,"div",18),x("click",function(){J(A);let o=He(2);return H(o.open())}),m()()}if(t&2){let A=b(2);F("appearance",A._formFieldAppearance)("color",A.color),f(),F("value",A.pageSize)("disabled",A.disabled)("aria-labelledby",A._pageSizeLabelId)("panelClass",A.selectConfig.panelClass||"")("disableOptionCentering",A.selectConfig.disableOptionCentering),f(2),ng(A._displayedPageSizeOptions)}}function zT(t,e){if(t&1&&(u(0,"div",15),G(1),m()),t&2){let A=b(2);f(),HA(A.pageSize)}}function jT(t,e){if(t&1&&(u(0,"div",3)(1,"div",13),G(2),m(),U(3,WT,6,7,"mat-form-field",14)(4,zT,2,1,"div",15),m()),t&2){let A=b();f(),IA("id",A._pageSizeLabelId),f(),te(" ",A._intl.itemsPerPageLabel," "),f(),pA(A._displayedPageSizeOptions.length>1?3:-1),f(),pA(A._displayedPageSizeOptions.length<=1?4:-1)}}function XT(t,e){if(t&1){let A=aA();u(0,"button",19),x("click",function(){J(A);let o=b();return H(o._buttonClicked(0,o._previousButtonsDisabled()))}),it(),u(1,"svg",8),W(2,"path",20),m()()}if(t&2){let A=b();F("matTooltip",A._intl.firstPageLabel)("matTooltipDisabled",A._previousButtonsDisabled())("disabled",A._previousButtonsDisabled()),IA("aria-label",A._intl.firstPageLabel)}}function $T(t,e){if(t&1){let A=aA();u(0,"button",21),x("click",function(){J(A);let o=b();return H(o._buttonClicked(o.getNumberOfPages()-1,o._nextButtonsDisabled()))}),it(),u(1,"svg",8),W(2,"path",22),m()()}if(t&2){let A=b();F("matTooltip",A._intl.lastPageLabel)("matTooltipDisabled",A._nextButtonsDisabled())("disabled",A._nextButtonsDisabled()),IA("aria-label",A._intl.lastPageLabel)}}var Fg=(()=>{class t{changes=new _;itemsPerPageLabel="Items per page:";nextPageLabel="Next page";previousPageLabel="Previous page";firstPageLabel="First page";lastPageLabel="Last page";getRangeLabel=(A,i,o)=>{if(o==0||i==0)return`0 of ${o}`;o=Math.max(o,0);let n=A*i,g=n<o?Math.min(n+i,o):n+i;return`${n+1} \u2013 ${g} of ${o}`};static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function AO(t){return t||new Fg}var eO={provide:Fg,deps:[[new $n,new $s,Fg]],useFactory:AO},tO=50;var iO=new k("MAT_PAGINATOR_DEFAULT_OPTIONS"),fm=(()=>{class t{_intl=Q(Fg);_changeDetectorRef=Q(zA);_formFieldAppearance;_pageSizeLabelId=Q(ce).getId("mat-paginator-page-size-label-");_intlChanges;_isInitialized=!1;_initializedStream=new Ci(1);color;get pageIndex(){return this._pageIndex}set pageIndex(A){this._pageIndex=Math.max(A||0,0),this._changeDetectorRef.markForCheck()}_pageIndex=0;get length(){return this._length}set length(A){this._length=A||0,this._changeDetectorRef.markForCheck()}_length=0;get pageSize(){return this._pageSize}set pageSize(A){this._pageSize=Math.max(A||0,0),this._updateDisplayedPageSizeOptions()}_pageSize;get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(A){this._pageSizeOptions=(A||[]).map(i=>Re(i,0)),this._updateDisplayedPageSizeOptions()}_pageSizeOptions=[];hidePageSize=!1;showFirstLastButtons=!1;selectConfig={};disabled=!1;page=new $;_displayedPageSizeOptions;initialized=this._initializedStream;constructor(){let A=this._intl,i=Q(iO,{optional:!0});if(this._intlChanges=A.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),i){let{pageSize:o,pageSizeOptions:n,hidePageSize:g,showFirstLastButtons:r}=i;o!=null&&(this._pageSize=o),n!=null&&(this._pageSizeOptions=n),g!=null&&(this.hidePageSize=g),r!=null&&(this.showFirstLastButtons=r)}this._formFieldAppearance=i?.formFieldAppearance||"outline"}ngOnInit(){this._isInitialized=!0,this._updateDisplayedPageSizeOptions(),this._initializedStream.next()}ngOnDestroy(){this._initializedStream.complete(),this._intlChanges.unsubscribe()}nextPage(){this.hasNextPage()&&this._navigate(this.pageIndex+1)}previousPage(){this.hasPreviousPage()&&this._navigate(this.pageIndex-1)}firstPage(){this.hasPreviousPage()&&this._navigate(0)}lastPage(){this.hasNextPage()&&this._navigate(this.getNumberOfPages()-1)}hasPreviousPage(){return this.pageIndex>=1&&this.pageSize!=0}hasNextPage(){let A=this.getNumberOfPages()-1;return this.pageIndex<A&&this.pageSize!=0}getNumberOfPages(){return this.pageSize?Math.ceil(this.length/this.pageSize):0}_changePageSize(A){let i=this.pageIndex*this.pageSize,o=this.pageIndex;this.pageIndex=Math.floor(i/A)||0,this.pageSize=A,this._emitPageEvent(o)}_nextButtonsDisabled(){return this.disabled||!this.hasNextPage()}_previousButtonsDisabled(){return this.disabled||!this.hasPreviousPage()}_updateDisplayedPageSizeOptions(){this._isInitialized&&(this.pageSize||(this._pageSize=this.pageSizeOptions.length!=0?this.pageSizeOptions[0]:tO),this._displayedPageSizeOptions=this.pageSizeOptions.slice(),this._displayedPageSizeOptions.indexOf(this.pageSize)===-1&&this._displayedPageSizeOptions.push(this.pageSize),this._displayedPageSizeOptions.sort((A,i)=>A-i),this._changeDetectorRef.markForCheck())}_emitPageEvent(A){this.page.emit({previousPageIndex:A,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}_navigate(A){let i=this.pageIndex;A!==i&&(this.pageIndex=A,this._emitPageEvent(i))}_buttonClicked(A,i){i||this._navigate(A)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=T({type:t,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{color:"color",pageIndex:[2,"pageIndex","pageIndex",Re],length:[2,"length","length",Re],pageSize:[2,"pageSize","pageSize",Re],pageSizeOptions:"pageSizeOptions",hidePageSize:[2,"hidePageSize","hidePageSize",tA],showFirstLastButtons:[2,"showFirstLastButtons","showFirstLastButtons",tA],selectConfig:"selectConfig",disabled:[2,"disabled","disabled",tA]},outputs:{page:"page"},exportAs:["matPaginator"],decls:14,vars:12,consts:[["selectRef",""],[1,"mat-mdc-paginator-outer-container"],[1,"mat-mdc-paginator-container"],[1,"mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-range-actions"],["aria-live","polite",1,"mat-mdc-paginator-range-label"],["mat-icon-button","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","disabled"],["mat-icon-button","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-previous",3,"click","matTooltip","matTooltipDisabled","disabled"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true",1,"mat-mdc-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-next",3,"click","matTooltip","matTooltipDisabled","disabled"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","disabled"],[1,"mat-mdc-paginator-page-size-label"],[1,"mat-mdc-paginator-page-size-select",3,"appearance","color"],[1,"mat-mdc-paginator-page-size-value"],["hideSingleSelectionIndicator","",3,"selectionChange","value","disabled","aria-labelledby","panelClass","disableOptionCentering"],[3,"value"],[1,"mat-mdc-paginator-touch-target",3,"click"],["mat-icon-button","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"click","matTooltip","matTooltipDisabled","disabled"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"click","matTooltip","matTooltipDisabled","disabled"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(i,o){i&1&&(u(0,"div",1)(1,"div",2),U(2,jT,5,4,"div",3),u(3,"div",4)(4,"div",5),G(5),m(),U(6,XT,3,4,"button",6),u(7,"button",7),x("click",function(){return o._buttonClicked(o.pageIndex-1,o._previousButtonsDisabled())}),it(),u(8,"svg",8),W(9,"path",9),m()(),eg(),u(10,"button",10),x("click",function(){return o._buttonClicked(o.pageIndex+1,o._nextButtonsDisabled())}),it(),u(11,"svg",8),W(12,"path",11),m()(),U(13,$T,3,4,"button",12),m()()()),i&2&&(f(2),pA(o.hidePageSize?-1:2),f(3),te(" ",o._intl.getRangeLabel(o.pageIndex,o.pageSize,o.length)," "),f(),pA(o.showFirstLastButtons?6:-1),f(),F("matTooltip",o._intl.previousPageLabel)("matTooltipDisabled",o._previousButtonsDisabled())("disabled",o._previousButtonsDisabled()),IA("aria-label",o._intl.previousPageLabel),f(3),F("matTooltip",o._intl.nextPageLabel)("matTooltipDisabled",o._nextButtonsDisabled())("disabled",o._nextButtonsDisabled()),IA("aria-label",o._intl.nextPageLabel),f(3),pA(o.showFirstLastButtons?13:-1))},dependencies:[Eo,gs,Dn,hE,Gk],styles:[".mat-mdc-paginator{display:block;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-paginator-container-text-color, var(--mat-sys-on-surface));background-color:var(--mat-paginator-container-background-color, var(--mat-sys-surface));font-family:var(--mat-paginator-container-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-paginator-container-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-paginator-container-text-size, var(--mat-sys-body-small-size));font-weight:var(--mat-paginator-container-text-weight, var(--mat-sys-body-small-weight));letter-spacing:var(--mat-paginator-container-text-tracking, var(--mat-sys-body-small-tracking));--mat-form-field-container-height:var(--mat-paginator-form-field-container-height, 40px);--mat-form-field-container-vertical-padding:var(--mat-paginator-form-field-container-vertical-padding, 8px)}.mat-mdc-paginator .mat-mdc-select-value{font-size:var(--mat-paginator-select-trigger-text-size, var(--mat-sys-body-small-size))}.mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper{display:none}.mat-mdc-paginator .mat-mdc-select{line-height:1.5}.mat-mdc-paginator-outer-container{display:flex}.mat-mdc-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap;width:100%;min-height:var(--mat-paginator-container-size, 56px)}.mat-mdc-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-mdc-paginator-page-size{margin-right:0;margin-left:8px}.mat-mdc-paginator-page-size-label{margin:0 4px}.mat-mdc-paginator-page-size-select{margin:0 4px;width:84px}.mat-mdc-paginator-range-label{margin:0 32px 0 24px}.mat-mdc-paginator-range-actions{display:flex;align-items:center}.mat-mdc-paginator-icon{display:inline-block;width:28px;fill:var(--mat-paginator-enabled-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon{fill:var(--mat-paginator-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}[dir=rtl] .mat-mdc-paginator-icon{transform:rotate(180deg)}@media(forced-colors: active){.mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon,.mat-mdc-paginator-icon{fill:currentColor;fill:CanvasText}.mat-mdc-paginator-range-actions .mat-mdc-icon-button{outline:solid 1px}}.mat-mdc-paginator-touch-target{display:var(--mat-paginator-touch-target-display, block);position:absolute;top:50%;left:50%;width:84px;height:48px;background-color:rgba(0,0,0,0);transform:translate(-50%, -50%);cursor:pointer}"],encapsulation:2,changeDetection:0})}return t})(),_k=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=Z({providers:[eO],imports:[Yo,kE,Lk,fm]})}return t})();var nO=function(){var t,e,A,i,o,n,g,r,s,I,B,c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},D=new Promise((a,C)=>{t=a}),h=a=>console.log(a);function p(a){throw a}function y(){var a=B.buffer;A=new Int8Array(a),i=new Int16Array(a),n=new Uint8Array(a),o=new Int32Array(a),g=new Uint32Array(a),r=new Float32Array(a),s=new Float64Array(a),I=new BigInt64Array(a),new BigUint64Array(a)}c.agerrMessages=[],c.stderrMessages=[],e=a=>c.stderrMessages.push(a);var L=typeof TextDecoder<"u"?new TextDecoder:void 0,P=function(a){let C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;for(var l=C+(arguments.length>2&&arguments[2]!==void 0?arguments[2]:NaN),d=C;a[d]&&!(d>=l);)++d;if(d-C>16&&a.buffer&&L)return L.decode(a.subarray(C,d));for(var w="";C<d;){var M=a[C++];if(128&M){var S=63&a[C++];if((224&M)!=192){var N=63&a[C++];if((M=(240&M)==224?(15&M)<<12|S<<6|N:(7&M)<<18|S<<12|N<<6|63&a[C++])<65536)w+=String.fromCharCode(M);else{var rA=M-65536;w+=String.fromCharCode(55296|rA>>10,56320|1023&rA)}}else w+=String.fromCharCode((31&M)<<6|S)}else w+=String.fromCharCode(M)}return w},DA=(a,C)=>a?P(n,a,C):"";class UA{constructor(C){this.excPtr=C,this.ptr=C-24}set_type(C){g[this.ptr+4>>2]=C}get_type(){return g[this.ptr+4>>2]}set_destructor(C){g[this.ptr+8>>2]=C}get_destructor(){return g[this.ptr+8>>2]}set_caught(C){C=C?1:0,A[this.ptr+12]=C}get_caught(){return A[this.ptr+12]!=0}set_rethrown(C){C=C?1:0,A[this.ptr+13]=C}get_rethrown(){return A[this.ptr+13]!=0}init(C,l){this.set_adjusted_ptr(0),this.set_type(C),this.set_destructor(l)}set_adjusted_ptr(C){g[this.ptr+16>>2]=C}get_adjusted_ptr(){return g[this.ptr+16>>2]}}var fA={isAbs:a=>a.charAt(0)==="/",splitPath:a=>/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(a).slice(1),normalizeArray:(a,C)=>{for(var l=0,d=a.length-1;d>=0;d--){var w=a[d];w==="."?a.splice(d,1):w===".."?(a.splice(d,1),l++):l&&(a.splice(d,1),l--)}if(C)for(;l;l--)a.unshift("..");return a},normalize:a=>{var C=fA.isAbs(a),l=a.substr(-1)==="/";return(a=fA.normalizeArray(a.split("/").filter(d=>!!d),!C).join("/"))||C||(a="."),a&&l&&(a+="/"),(C?"/":"")+a},dirname:a=>{var C=fA.splitPath(a),l=C[0],d=C[1];return l||d?(d&&(d=d.substr(0,d.length-1)),l+d):"."},basename:a=>{if(a==="/")return"/";var C=(a=(a=fA.normalize(a)).replace(/\/$/,"")).lastIndexOf("/");return C===-1?a:a.substr(C+1)},join:function(){for(var a=arguments.length,C=new Array(a),l=0;l<a;l++)C[l]=arguments[l];return fA.normalize(C.join("/"))},join2:(a,C)=>fA.normalize(a+"/"+C)},ct=a=>(ct=(()=>{if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function")return C=>crypto.getRandomValues(C);p("initRandomDevice")})())(a),ue={resolve:function(){for(var a="",C=!1,l=arguments.length-1;l>=-1&&!C;l--){var d=l>=0?l<0||arguments.length<=l?void 0:arguments[l]:E.cwd();if(typeof d!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!d)return"";a=d+"/"+a,C=fA.isAbs(d)}return(C?"/":"")+(a=fA.normalizeArray(a.split("/").filter(w=>!!w),!C).join("/"))||"."},relative:(a,C)=>{function l(bA){for(var RA=0;RA<bA.length&&bA[RA]==="";RA++);for(var dA=bA.length-1;dA>=0&&bA[dA]==="";dA--);return RA>dA?[]:bA.slice(RA,dA-RA+1)}a=ue.resolve(a).substr(1),C=ue.resolve(C).substr(1);for(var d=l(a.split("/")),w=l(C.split("/")),M=Math.min(d.length,w.length),S=M,N=0;N<M;N++)if(d[N]!==w[N]){S=N;break}var rA=[];for(N=S;N<d.length;N++)rA.push("..");return(rA=rA.concat(w.slice(S))).join("/")}},we=[],le=a=>{for(var C=0,l=0;l<a.length;++l){var d=a.charCodeAt(l);d<=127?C++:d<=2047?C+=2:d>=55296&&d<=57343?(C+=4,++l):C+=3}return C},si=(a,C,l,d)=>{if(!(d>0))return 0;for(var w=l,M=l+d-1,S=0;S<a.length;++S){var N=a.charCodeAt(S);if(N>=55296&&N<=57343&&(N=65536+((1023&N)<<10)|1023&a.charCodeAt(++S)),N<=127){if(l>=M)break;C[l++]=N}else if(N<=2047){if(l+1>=M)break;C[l++]=192|N>>6,C[l++]=128|63&N}else if(N<=65535){if(l+2>=M)break;C[l++]=224|N>>12,C[l++]=128|N>>6&63,C[l++]=128|63&N}else{if(l+3>=M)break;C[l++]=240|N>>18,C[l++]=128|N>>12&63,C[l++]=128|N>>6&63,C[l++]=128|63&N}}return C[l]=0,l-w};function fo(a,C,l){var d=l>0?l:le(a)+1,w=new Array(d),M=si(a,w,0,w.length);return C&&(w.length=M),w}var Ui={ttys:[],init(){},shutdown(){},register(a,C){Ui.ttys[a]={input:[],output:[],ops:C},E.registerDevice(a,Ui.stream_ops)},stream_ops:{open(a){var C=Ui.ttys[a.node.rdev];if(!C)throw new E.ErrnoError(43);a.tty=C,a.seekable=!1},close(a){a.tty.ops.fsync(a.tty)},fsync(a){a.tty.ops.fsync(a.tty)},read(a,C,l,d,w){if(!a.tty||!a.tty.ops.get_char)throw new E.ErrnoError(60);for(var M=0,S=0;S<d;S++){var N;try{N=a.tty.ops.get_char(a.tty)}catch{throw new E.ErrnoError(29)}if(N===void 0&&M===0)throw new E.ErrnoError(6);if(N==null)break;M++,C[l+S]=N}return M&&(a.node.timestamp=Date.now()),M},write(a,C,l,d,w){if(!a.tty||!a.tty.ops.put_char)throw new E.ErrnoError(60);try{for(var M=0;M<d;M++)a.tty.ops.put_char(a.tty,C[l+M])}catch{throw new E.ErrnoError(29)}return d&&(a.node.timestamp=Date.now()),M}},default_tty_ops:{get_char:a=>(()=>{if(!we.length){var C=null;if(typeof window<"u"&&typeof window.prompt=="function"&&(C=window.prompt("Input: "))!==null&&(C+=`
`),!C)return null;we=fo(C,!0)}return we.shift()})(),put_char(a,C){C===null||C===10?(h(P(a.output)),a.output=[]):C!=0&&a.output.push(C)},fsync(a){a.output&&a.output.length>0&&(h(P(a.output)),a.output=[])},ioctl_tcgets:a=>({c_iflag:25856,c_oflag:5,c_cflag:191,c_lflag:35387,c_cc:[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}),ioctl_tcsets:(a,C,l)=>0,ioctl_tiocgwinsz:a=>[24,80]},default_tty1_ops:{put_char(a,C){C===null||C===10?(e(P(a.output)),a.output=[]):C!=0&&a.output.push(C)},fsync(a){a.output&&a.output.length>0&&(e(P(a.output)),a.output=[])}}},xi=(a,C)=>Math.ceil(a/C)*C,Yg=a=>{a=xi(a,65536);var C=Ke(65536,a);return C&&((l,d)=>{n.fill(0,l,l+d)})(C,a),C},KA={ops_table:null,mount:a=>KA.createNode(null,"/",16895,0),createNode(a,C,l,d){if(E.isBlkdev(l)||E.isFIFO(l))throw new E.ErrnoError(63);KA.ops_table||={dir:{node:{getattr:KA.node_ops.getattr,setattr:KA.node_ops.setattr,lookup:KA.node_ops.lookup,mknod:KA.node_ops.mknod,rename:KA.node_ops.rename,unlink:KA.node_ops.unlink,rmdir:KA.node_ops.rmdir,readdir:KA.node_ops.readdir,symlink:KA.node_ops.symlink},stream:{llseek:KA.stream_ops.llseek}},file:{node:{getattr:KA.node_ops.getattr,setattr:KA.node_ops.setattr},stream:{llseek:KA.stream_ops.llseek,read:KA.stream_ops.read,write:KA.stream_ops.write,allocate:KA.stream_ops.allocate,mmap:KA.stream_ops.mmap,msync:KA.stream_ops.msync}},link:{node:{getattr:KA.node_ops.getattr,setattr:KA.node_ops.setattr,readlink:KA.node_ops.readlink},stream:{}},chrdev:{node:{getattr:KA.node_ops.getattr,setattr:KA.node_ops.setattr},stream:E.chrdev_stream_ops}};var w=E.createNode(a,C,l,d);return E.isDir(w.mode)?(w.node_ops=KA.ops_table.dir.node,w.stream_ops=KA.ops_table.dir.stream,w.contents={}):E.isFile(w.mode)?(w.node_ops=KA.ops_table.file.node,w.stream_ops=KA.ops_table.file.stream,w.usedBytes=0,w.contents=null):E.isLink(w.mode)?(w.node_ops=KA.ops_table.link.node,w.stream_ops=KA.ops_table.link.stream):E.isChrdev(w.mode)&&(w.node_ops=KA.ops_table.chrdev.node,w.stream_ops=KA.ops_table.chrdev.stream),w.timestamp=Date.now(),a&&(a.contents[C]=w,a.timestamp=w.timestamp),w},getFileDataAsTypedArray:a=>a.contents?a.contents.subarray?a.contents.subarray(0,a.usedBytes):new Uint8Array(a.contents):new Uint8Array(0),expandFileStorage(a,C){var l=a.contents?a.contents.length:0;if(!(l>=C)){C=Math.max(C,l*(l<1048576?2:1.125)>>>0),l!=0&&(C=Math.max(C,256));var d=a.contents;a.contents=new Uint8Array(C),a.usedBytes>0&&a.contents.set(d.subarray(0,a.usedBytes),0)}},resizeFileStorage(a,C){if(a.usedBytes!=C)if(C==0)a.contents=null,a.usedBytes=0;else{var l=a.contents;a.contents=new Uint8Array(C),l&&a.contents.set(l.subarray(0,Math.min(C,a.usedBytes))),a.usedBytes=C}},node_ops:{getattr(a){var C={};return C.dev=E.isChrdev(a.mode)?a.id:1,C.ino=a.id,C.mode=a.mode,C.nlink=1,C.uid=0,C.gid=0,C.rdev=a.rdev,E.isDir(a.mode)?C.size=4096:E.isFile(a.mode)?C.size=a.usedBytes:E.isLink(a.mode)?C.size=a.link.length:C.size=0,C.atime=new Date(a.timestamp),C.mtime=new Date(a.timestamp),C.ctime=new Date(a.timestamp),C.blksize=4096,C.blocks=Math.ceil(C.size/C.blksize),C},setattr(a,C){C.mode!==void 0&&(a.mode=C.mode),C.timestamp!==void 0&&(a.timestamp=C.timestamp),C.size!==void 0&&KA.resizeFileStorage(a,C.size)},lookup(a,C){throw E.genericErrors[44]},mknod:(a,C,l,d)=>KA.createNode(a,C,l,d),rename(a,C,l){if(E.isDir(a.mode)){var d;try{d=E.lookupNode(C,l)}catch{}if(d)for(var w in d.contents)throw new E.ErrnoError(55)}delete a.parent.contents[a.name],a.parent.timestamp=Date.now(),a.name=l,C.contents[l]=a,C.timestamp=a.parent.timestamp},unlink(a,C){delete a.contents[C],a.timestamp=Date.now()},rmdir(a,C){var l=E.lookupNode(a,C);for(var d in l.contents)throw new E.ErrnoError(55);delete a.contents[C],a.timestamp=Date.now()},readdir(a){var C=[".",".."];for(var l of Object.keys(a.contents))C.push(l);return C},symlink(a,C,l){var d=KA.createNode(a,C,41471,0);return d.link=l,d},readlink(a){if(!E.isLink(a.mode))throw new E.ErrnoError(28);return a.link}},stream_ops:{read(a,C,l,d,w){var M=a.node.contents;if(w>=a.node.usedBytes)return 0;var S=Math.min(a.node.usedBytes-w,d);if(S>8&&M.subarray)C.set(M.subarray(w,w+S),l);else for(var N=0;N<S;N++)C[l+N]=M[w+N];return S},write(a,C,l,d,w,M){if(C.buffer===A.buffer&&(M=!1),!d)return 0;var S=a.node;if(S.timestamp=Date.now(),C.subarray&&(!S.contents||S.contents.subarray)){if(M)return S.contents=C.subarray(l,l+d),S.usedBytes=d,d;if(S.usedBytes===0&&w===0)return S.contents=C.slice(l,l+d),S.usedBytes=d,d;if(w+d<=S.usedBytes)return S.contents.set(C.subarray(l,l+d),w),d}if(KA.expandFileStorage(S,w+d),S.contents.subarray&&C.subarray)S.contents.set(C.subarray(l,l+d),w);else for(var N=0;N<d;N++)S.contents[w+N]=C[l+N];return S.usedBytes=Math.max(S.usedBytes,w+d),d},llseek(a,C,l){var d=C;if(l===1?d+=a.position:l===2&&E.isFile(a.node.mode)&&(d+=a.node.usedBytes),d<0)throw new E.ErrnoError(28);return d},allocate(a,C,l){KA.expandFileStorage(a.node,C+l),a.node.usedBytes=Math.max(a.node.usedBytes,C+l)},mmap(a,C,l,d,w){if(!E.isFile(a.node.mode))throw new E.ErrnoError(43);var M,S,N=a.node.contents;if(2&w||!N||N.buffer!==A.buffer){if(S=!0,!(M=Yg(C)))throw new E.ErrnoError(48);N&&((l>0||l+C<N.length)&&(N=N.subarray?N.subarray(l,l+C):Array.prototype.slice.call(N,l,l+C)),A.set(N,M))}else S=!1,M=N.byteOffset;return{ptr:M,allocated:S}},msync:(a,C,l,d,w)=>(KA.stream_ops.write(a,C,0,d,l,!1),0)}},Jg=(a,C)=>{var l=0;return a&&(l|=365),C&&(l|=146),l},E={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,ErrnoError:class{constructor(a){this.name="ErrnoError",this.errno=a}},genericErrors:{},filesystems:null,syncFSRequests:0,FSStream:class{constructor(){this.shared={}}get object(){return this.node}set object(a){this.node=a}get isRead(){return(2097155&this.flags)!=1}get isWrite(){return!!(2097155&this.flags)}get isAppend(){return 1024&this.flags}get flags(){return this.shared.flags}set flags(a){this.shared.flags=a}get position(){return this.shared.position}set position(a){this.shared.position=a}},FSNode:class{constructor(a,C,l,d){a||(a=this),this.parent=a,this.mount=a.mount,this.mounted=null,this.id=E.nextInode++,this.name=C,this.mode=l,this.node_ops={},this.stream_ops={},this.rdev=d,this.readMode=365,this.writeMode=146}get read(){return(this.mode&this.readMode)===this.readMode}set read(a){a?this.mode|=this.readMode:this.mode&=~this.readMode}get write(){return(this.mode&this.writeMode)===this.writeMode}set write(a){a?this.mode|=this.writeMode:this.mode&=~this.writeMode}get isFolder(){return E.isDir(this.mode)}get isDevice(){return E.isChrdev(this.mode)}},lookupPath(a){let C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(a=ue.resolve(a)))return{path:"",node:null};if(C=Object.assign({follow_mount:!0,recurse_count:0},C),C.recurse_count>8)throw new E.ErrnoError(32);for(var l=a.split("/").filter(bA=>!!bA),d=E.root,w="/",M=0;M<l.length;M++){var S=M===l.length-1;if(S&&C.parent)break;if(d=E.lookupNode(d,l[M]),w=fA.join2(w,l[M]),E.isMountpoint(d)&&(!S||S&&C.follow_mount)&&(d=d.mounted.root),!S||C.follow)for(var N=0;E.isLink(d.mode);){var rA=E.readlink(w);if(w=ue.resolve(fA.dirname(w),rA),d=E.lookupPath(w,{recurse_count:C.recurse_count+1}).node,N++>40)throw new E.ErrnoError(32)}}return{path:w,node:d}},getPath(a){for(var C;;){if(E.isRoot(a)){var l=a.mount.mountpoint;return C?l[l.length-1]!=="/"?`${l}/${C}`:l+C:l}C=C?`${a.name}/${C}`:a.name,a=a.parent}},hashName(a,C){for(var l=0,d=0;d<C.length;d++)l=(l<<5)-l+C.charCodeAt(d)|0;return(a+l>>>0)%E.nameTable.length},hashAddNode(a){var C=E.hashName(a.parent.id,a.name);a.name_next=E.nameTable[C],E.nameTable[C]=a},hashRemoveNode(a){var C=E.hashName(a.parent.id,a.name);if(E.nameTable[C]===a)E.nameTable[C]=a.name_next;else for(var l=E.nameTable[C];l;){if(l.name_next===a){l.name_next=a.name_next;break}l=l.name_next}},lookupNode(a,C){var l=E.mayLookup(a);if(l)throw new E.ErrnoError(l);for(var d=E.hashName(a.id,C),w=E.nameTable[d];w;w=w.name_next){var M=w.name;if(w.parent.id===a.id&&M===C)return w}return E.lookup(a,C)},createNode(a,C,l,d){var w=new E.FSNode(a,C,l,d);return E.hashAddNode(w),w},destroyNode(a){E.hashRemoveNode(a)},isRoot:a=>a===a.parent,isMountpoint:a=>!!a.mounted,isFile:a=>(61440&a)==32768,isDir:a=>(61440&a)==16384,isLink:a=>(61440&a)==40960,isChrdev:a=>(61440&a)==8192,isBlkdev:a=>(61440&a)==24576,isFIFO:a=>(61440&a)==4096,isSocket:a=>!(49152&~a),flagsToPermissionString(a){var C=["r","w","rw"][3&a];return 512&a&&(C+="w"),C},nodePermissions:(a,C)=>E.ignorePermissions||(!C.includes("r")||292&a.mode)&&(!C.includes("w")||146&a.mode)&&(!C.includes("x")||73&a.mode)?0:2,mayLookup(a){if(!E.isDir(a.mode))return 54;var C=E.nodePermissions(a,"x");return C||(a.node_ops.lookup?0:2)},mayCreate(a,C){try{return E.lookupNode(a,C),20}catch{}return E.nodePermissions(a,"wx")},mayDelete(a,C,l){var d;try{d=E.lookupNode(a,C)}catch(M){return M.errno}var w=E.nodePermissions(a,"wx");if(w)return w;if(l){if(!E.isDir(d.mode))return 54;if(E.isRoot(d)||E.getPath(d)===E.cwd())return 10}else if(E.isDir(d.mode))return 31;return 0},mayOpen:(a,C)=>a?E.isLink(a.mode)?32:E.isDir(a.mode)&&(E.flagsToPermissionString(C)!=="r"||512&C)?31:E.nodePermissions(a,E.flagsToPermissionString(C)):44,MAX_OPEN_FDS:4096,nextfd(){for(var a=0;a<=E.MAX_OPEN_FDS;a++)if(!E.streams[a])return a;throw new E.ErrnoError(33)},getStreamChecked(a){var C=E.getStream(a);if(!C)throw new E.ErrnoError(8);return C},getStream:a=>E.streams[a],createStream(a){let C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1;return a=Object.assign(new E.FSStream,a),C==-1&&(C=E.nextfd()),a.fd=C,E.streams[C]=a,a},closeStream(a){E.streams[a]=null},dupStream(a){let C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1;var l=E.createStream(a,C);return l.stream_ops?.dup?.(l),l},chrdev_stream_ops:{open(a){var C=E.getDevice(a.node.rdev);a.stream_ops=C.stream_ops,a.stream_ops.open?.(a)},llseek(){throw new E.ErrnoError(70)}},major:a=>a>>8,minor:a=>255&a,makedev:(a,C)=>a<<8|C,registerDevice(a,C){E.devices[a]={stream_ops:C}},getDevice:a=>E.devices[a],getMounts(a){for(var C=[],l=[a];l.length;){var d=l.pop();C.push(d),l.push(...d.mounts)}return C},syncfs(a,C){typeof a=="function"&&(C=a,a=!1),E.syncFSRequests++,E.syncFSRequests>1&&e(`warning: ${E.syncFSRequests} FS.syncfs operations in flight at once, probably just doing extra work`);var l=E.getMounts(E.root.mount),d=0;function w(S){return E.syncFSRequests--,C(S)}function M(S){if(S)return M.errored?void 0:(M.errored=!0,w(S));++d>=l.length&&w(null)}l.forEach(S=>{if(!S.type.syncfs)return M(null);S.type.syncfs(S,a,M)})},mount(a,C,l){var d,w=l==="/",M=!l;if(w&&E.root)throw new E.ErrnoError(10);if(!w&&!M){var S=E.lookupPath(l,{follow_mount:!1});if(l=S.path,d=S.node,E.isMountpoint(d))throw new E.ErrnoError(10);if(!E.isDir(d.mode))throw new E.ErrnoError(54)}var N={type:a,opts:C,mountpoint:l,mounts:[]},rA=a.mount(N);return rA.mount=N,N.root=rA,w?E.root=rA:d&&(d.mounted=N,d.mount&&d.mount.mounts.push(N)),rA},unmount(a){var C=E.lookupPath(a,{follow_mount:!1});if(!E.isMountpoint(C.node))throw new E.ErrnoError(28);var l=C.node,d=l.mounted,w=E.getMounts(d);Object.keys(E.nameTable).forEach(S=>{for(var N=E.nameTable[S];N;){var rA=N.name_next;w.includes(N.mount)&&E.destroyNode(N),N=rA}}),l.mounted=null;var M=l.mount.mounts.indexOf(d);l.mount.mounts.splice(M,1)},lookup:(a,C)=>a.node_ops.lookup(a,C),mknod(a,C,l){var d=E.lookupPath(a,{parent:!0}).node,w=fA.basename(a);if(!w||w==="."||w==="..")throw new E.ErrnoError(28);var M=E.mayCreate(d,w);if(M)throw new E.ErrnoError(M);if(!d.node_ops.mknod)throw new E.ErrnoError(63);return d.node_ops.mknod(d,w,C,l)},create:(a,C)=>(C=C!==void 0?C:438,C&=4095,C|=32768,E.mknod(a,C,0)),mkdir:(a,C)=>(C=C!==void 0?C:511,C&=1023,C|=16384,E.mknod(a,C,0)),mkdirTree(a,C){for(var l=a.split("/"),d="",w=0;w<l.length;++w)if(l[w]){d+="/"+l[w];try{E.mkdir(d,C)}catch(M){if(M.errno!=20)throw M}}},mkdev:(a,C,l)=>(l===void 0&&(l=C,C=438),C|=8192,E.mknod(a,C,l)),symlink(a,C){if(!ue.resolve(a))throw new E.ErrnoError(44);var l=E.lookupPath(C,{parent:!0}).node;if(!l)throw new E.ErrnoError(44);var d=fA.basename(C),w=E.mayCreate(l,d);if(w)throw new E.ErrnoError(w);if(!l.node_ops.symlink)throw new E.ErrnoError(63);return l.node_ops.symlink(l,d,a)},rename(a,C){var l,d,w=fA.dirname(a),M=fA.dirname(C),S=fA.basename(a),N=fA.basename(C);if(l=E.lookupPath(a,{parent:!0}).node,d=E.lookupPath(C,{parent:!0}).node,!l||!d)throw new E.ErrnoError(44);if(l.mount!==d.mount)throw new E.ErrnoError(75);var rA,bA=E.lookupNode(l,S),RA=ue.relative(a,M);if(RA.charAt(0)!==".")throw new E.ErrnoError(28);if((RA=ue.relative(C,w)).charAt(0)!==".")throw new E.ErrnoError(55);try{rA=E.lookupNode(d,N)}catch{}if(bA!==rA){var dA=E.isDir(bA.mode),CA=E.mayDelete(l,S,dA);if(CA)throw new E.ErrnoError(CA);if(CA=rA?E.mayDelete(d,N,dA):E.mayCreate(d,N))throw new E.ErrnoError(CA);if(!l.node_ops.rename)throw new E.ErrnoError(63);if(E.isMountpoint(bA)||rA&&E.isMountpoint(rA))throw new E.ErrnoError(10);if(d!==l&&(CA=E.nodePermissions(l,"w")))throw new E.ErrnoError(CA);E.hashRemoveNode(bA);try{l.node_ops.rename(bA,d,N),bA.parent=d}catch(BA){throw BA}finally{E.hashAddNode(bA)}}},rmdir(a){var C=E.lookupPath(a,{parent:!0}).node,l=fA.basename(a),d=E.lookupNode(C,l),w=E.mayDelete(C,l,!0);if(w)throw new E.ErrnoError(w);if(!C.node_ops.rmdir)throw new E.ErrnoError(63);if(E.isMountpoint(d))throw new E.ErrnoError(10);C.node_ops.rmdir(C,l),E.destroyNode(d)},readdir(a){var C=E.lookupPath(a,{follow:!0}).node;if(!C.node_ops.readdir)throw new E.ErrnoError(54);return C.node_ops.readdir(C)},unlink(a){var C=E.lookupPath(a,{parent:!0}).node;if(!C)throw new E.ErrnoError(44);var l=fA.basename(a),d=E.lookupNode(C,l),w=E.mayDelete(C,l,!1);if(w)throw new E.ErrnoError(w);if(!C.node_ops.unlink)throw new E.ErrnoError(63);if(E.isMountpoint(d))throw new E.ErrnoError(10);C.node_ops.unlink(C,l),E.destroyNode(d)},readlink(a){var C=E.lookupPath(a).node;if(!C)throw new E.ErrnoError(44);if(!C.node_ops.readlink)throw new E.ErrnoError(28);return ue.resolve(E.getPath(C.parent),C.node_ops.readlink(C))},stat(a,C){var l=E.lookupPath(a,{follow:!C}).node;if(!l)throw new E.ErrnoError(44);if(!l.node_ops.getattr)throw new E.ErrnoError(63);return l.node_ops.getattr(l)},lstat:a=>E.stat(a,!0),chmod(a,C,l){var d;if(typeof a=="string"?d=E.lookupPath(a,{follow:!l}).node:d=a,!d.node_ops.setattr)throw new E.ErrnoError(63);d.node_ops.setattr(d,{mode:4095&C|-4096&d.mode,timestamp:Date.now()})},lchmod(a,C){E.chmod(a,C,!0)},fchmod(a,C){var l=E.getStreamChecked(a);E.chmod(l.node,C)},chown(a,C,l,d){var w;if(typeof a=="string"?w=E.lookupPath(a,{follow:!d}).node:w=a,!w.node_ops.setattr)throw new E.ErrnoError(63);w.node_ops.setattr(w,{timestamp:Date.now()})},lchown(a,C,l){E.chown(a,C,l,!0)},fchown(a,C,l){var d=E.getStreamChecked(a);E.chown(d.node,C,l)},truncate(a,C){if(C<0)throw new E.ErrnoError(28);var l;if(typeof a=="string"?l=E.lookupPath(a,{follow:!0}).node:l=a,!l.node_ops.setattr)throw new E.ErrnoError(63);if(E.isDir(l.mode))throw new E.ErrnoError(31);if(!E.isFile(l.mode))throw new E.ErrnoError(28);var d=E.nodePermissions(l,"w");if(d)throw new E.ErrnoError(d);l.node_ops.setattr(l,{size:C,timestamp:Date.now()})},ftruncate(a,C){var l=E.getStreamChecked(a);if(!(2097155&l.flags))throw new E.ErrnoError(28);E.truncate(l.node,C)},utime(a,C,l){var d=E.lookupPath(a,{follow:!0}).node;d.node_ops.setattr(d,{timestamp:Math.max(C,l)})},open(a,C,l){if(a==="")throw new E.ErrnoError(44);var d;if(l=64&(C=typeof C=="string"?(N=>{var rA={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[N];if(rA===void 0)throw new Error(`Unknown file open mode: ${N}`);return rA})(C):C)?4095&(l=l===void 0?438:l)|32768:0,typeof a=="object")d=a;else{a=fA.normalize(a);try{d=E.lookupPath(a,{follow:!(131072&C)}).node}catch{}}var w=!1;if(64&C)if(d){if(128&C)throw new E.ErrnoError(20)}else d=E.mknod(a,l,0),w=!0;if(!d)throw new E.ErrnoError(44);if(E.isChrdev(d.mode)&&(C&=-513),65536&C&&!E.isDir(d.mode))throw new E.ErrnoError(54);if(!w){var M=E.mayOpen(d,C);if(M)throw new E.ErrnoError(M)}512&C&&!w&&E.truncate(d,0),C&=-131713;var S=E.createStream({node:d,path:E.getPath(d),flags:C,seekable:!0,position:0,stream_ops:d.stream_ops,ungotten:[],error:!1});return S.stream_ops.open&&S.stream_ops.open(S),S},close(a){if(E.isClosed(a))throw new E.ErrnoError(8);a.getdents&&(a.getdents=null);try{a.stream_ops.close&&a.stream_ops.close(a)}catch(C){throw C}finally{E.closeStream(a.fd)}a.fd=null},isClosed:a=>a.fd===null,llseek(a,C,l){if(E.isClosed(a))throw new E.ErrnoError(8);if(!a.seekable||!a.stream_ops.llseek)throw new E.ErrnoError(70);if(l!=0&&l!=1&&l!=2)throw new E.ErrnoError(28);return a.position=a.stream_ops.llseek(a,C,l),a.ungotten=[],a.position},read(a,C,l,d,w){if(d<0||w<0)throw new E.ErrnoError(28);if(E.isClosed(a))throw new E.ErrnoError(8);if((2097155&a.flags)==1)throw new E.ErrnoError(8);if(E.isDir(a.node.mode))throw new E.ErrnoError(31);if(!a.stream_ops.read)throw new E.ErrnoError(28);var M=w!==void 0;if(M){if(!a.seekable)throw new E.ErrnoError(70)}else w=a.position;var S=a.stream_ops.read(a,C,l,d,w);return M||(a.position+=S),S},write(a,C,l,d,w,M){if(d<0||w<0)throw new E.ErrnoError(28);if(E.isClosed(a))throw new E.ErrnoError(8);if(!(2097155&a.flags))throw new E.ErrnoError(8);if(E.isDir(a.node.mode))throw new E.ErrnoError(31);if(!a.stream_ops.write)throw new E.ErrnoError(28);a.seekable&&1024&a.flags&&E.llseek(a,0,2);var S=w!==void 0;if(S){if(!a.seekable)throw new E.ErrnoError(70)}else w=a.position;var N=a.stream_ops.write(a,C,l,d,w,M);return S||(a.position+=N),N},allocate(a,C,l){if(E.isClosed(a))throw new E.ErrnoError(8);if(C<0||l<=0)throw new E.ErrnoError(28);if(!(2097155&a.flags))throw new E.ErrnoError(8);if(!E.isFile(a.node.mode)&&!E.isDir(a.node.mode))throw new E.ErrnoError(43);if(!a.stream_ops.allocate)throw new E.ErrnoError(138);a.stream_ops.allocate(a,C,l)},mmap(a,C,l,d,w){if(2&d&&!(2&w)&&(2097155&a.flags)!=2)throw new E.ErrnoError(2);if((2097155&a.flags)==1)throw new E.ErrnoError(2);if(!a.stream_ops.mmap)throw new E.ErrnoError(43);if(!C)throw new E.ErrnoError(28);return a.stream_ops.mmap(a,C,l,d,w)},msync:(a,C,l,d,w)=>a.stream_ops.msync?a.stream_ops.msync(a,C,l,d,w):0,ioctl(a,C,l){if(!a.stream_ops.ioctl)throw new E.ErrnoError(59);return a.stream_ops.ioctl(a,C,l)},readFile(a){let C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(C.flags=C.flags||0,C.encoding=C.encoding||"binary",C.encoding!=="utf8"&&C.encoding!=="binary")throw new Error(`Invalid encoding type "${C.encoding}"`);var l,d=E.open(a,C.flags),w=E.stat(a).size,M=new Uint8Array(w);return E.read(d,M,0,w,0),C.encoding==="utf8"?l=P(M):C.encoding==="binary"&&(l=M),E.close(d),l},writeFile(a,C){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};l.flags=l.flags||577;var d=E.open(a,l.flags,l.mode);if(typeof C=="string"){var w=new Uint8Array(le(C)+1),M=si(C,w,0,w.length);E.write(d,w,0,M,void 0,l.canOwn)}else{if(!ArrayBuffer.isView(C))throw new Error("Unsupported data type");E.write(d,C,0,C.byteLength,void 0,l.canOwn)}E.close(d)},cwd:()=>E.currentPath,chdir(a){var C=E.lookupPath(a,{follow:!0});if(C.node===null)throw new E.ErrnoError(44);if(!E.isDir(C.node.mode))throw new E.ErrnoError(54);var l=E.nodePermissions(C.node,"x");if(l)throw new E.ErrnoError(l);E.currentPath=C.path},createDefaultDirectories(){E.mkdir("/tmp"),E.mkdir("/home"),E.mkdir("/home/web_user")},createDefaultDevices(){E.mkdir("/dev"),E.registerDevice(E.makedev(1,3),{read:()=>0,write:(d,w,M,S,N)=>S}),E.mkdev("/dev/null",E.makedev(1,3)),Ui.register(E.makedev(5,0),Ui.default_tty_ops),Ui.register(E.makedev(6,0),Ui.default_tty1_ops),E.mkdev("/dev/tty",E.makedev(5,0)),E.mkdev("/dev/tty1",E.makedev(6,0));var a=new Uint8Array(1024),C=0,l=()=>(C===0&&(C=ct(a).byteLength),a[--C]);E.createDevice("/dev","random",l),E.createDevice("/dev","urandom",l),E.mkdir("/dev/shm"),E.mkdir("/dev/shm/tmp")},createSpecialDirectories(){E.mkdir("/proc");var a=E.mkdir("/proc/self");E.mkdir("/proc/self/fd"),E.mount({mount(){var C=E.createNode(a,"fd",16895,73);return C.node_ops={lookup(l,d){var w=+d,M=E.getStreamChecked(w),S={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:()=>M.path}};return S.parent=S,S}},C}},{},"/proc/self/fd")},createStandardStreams(a,C,l){a?E.createDevice("/dev","stdin",a):E.symlink("/dev/tty","/dev/stdin"),C?E.createDevice("/dev","stdout",null,C):E.symlink("/dev/tty","/dev/stdout"),l?E.createDevice("/dev","stderr",null,l):E.symlink("/dev/tty1","/dev/stderr"),E.open("/dev/stdin",0),E.open("/dev/stdout",1),E.open("/dev/stderr",1)},staticInit(){[44].forEach(a=>{E.genericErrors[a]=new E.ErrnoError(a),E.genericErrors[a].stack="<generic error, no stack>"}),E.nameTable=new Array(4096),E.mount(KA,{},"/"),E.createDefaultDirectories(),E.createDefaultDevices(),E.createSpecialDirectories(),E.filesystems={MEMFS:KA}},init(a,C,l){E.initialized=!0,E.createStandardStreams(a,C,l)},quit(){E.initialized=!1;for(var a=0;a<E.streams.length;a++){var C=E.streams[a];C&&E.close(C)}},findObject(a,C){var l=E.analyzePath(a,C);return l.exists?l.object:null},analyzePath(a,C){try{a=(d=E.lookupPath(a,{follow:!C})).path}catch{}var l={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{var d=E.lookupPath(a,{parent:!0});l.parentExists=!0,l.parentPath=d.path,l.parentObject=d.node,l.name=fA.basename(a),d=E.lookupPath(a,{follow:!C}),l.exists=!0,l.path=d.path,l.object=d.node,l.name=d.node.name,l.isRoot=d.path==="/"}catch(w){l.error=w.errno}return l},createPath(a,C,l,d){a=typeof a=="string"?a:E.getPath(a);for(var w=C.split("/").reverse();w.length;){var M=w.pop();if(M){var S=fA.join2(a,M);try{E.mkdir(S)}catch{}a=S}}return S},createFile(a,C,l,d,w){var M=fA.join2(typeof a=="string"?a:E.getPath(a),C),S=Jg(d,w);return E.create(M,S)},createDataFile(a,C,l,d,w,M){var S=C;a&&(a=typeof a=="string"?a:E.getPath(a),S=C?fA.join2(a,C):a);var N=Jg(d,w),rA=E.create(S,N);if(l){if(typeof l=="string"){for(var bA=new Array(l.length),RA=0,dA=l.length;RA<dA;++RA)bA[RA]=l.charCodeAt(RA);l=bA}E.chmod(rA,146|N);var CA=E.open(rA,577);E.write(CA,l,0,l.length,0,M),E.close(CA),E.chmod(rA,N)}},createDevice(a,C,l,d){var w=fA.join2(typeof a=="string"?a:E.getPath(a),C),M=Jg(!!l,!!d);E.createDevice.major??=64;var S=E.makedev(E.createDevice.major++,0);return E.registerDevice(S,{open(N){N.seekable=!1},close(N){d?.buffer?.length&&d(10)},read(N,rA,bA,RA,dA){for(var CA=0,BA=0;BA<RA;BA++){var Be;try{Be=l()}catch{throw new E.ErrnoError(29)}if(Be===void 0&&CA===0)throw new E.ErrnoError(6);if(Be==null)break;CA++,rA[bA+BA]=Be}return CA&&(N.node.timestamp=Date.now()),CA},write(N,rA,bA,RA,dA){for(var CA=0;CA<RA;CA++)try{d(rA[bA+CA])}catch{throw new E.ErrnoError(29)}return RA&&(N.node.timestamp=Date.now()),CA}}),E.mkdev(w,M,S)},forceLoadFile(a){if(a.isDevice||a.isFolder||a.link||a.contents)return!0;if(typeof XMLHttpRequest<"u")throw new Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.");try{a.contents=readBinary(a.url),a.usedBytes=a.contents.length}catch{throw new E.ErrnoError(29)}},createLazyFile(a,C,l,d,w){class M{constructor(){this.lengthKnown=!1,this.chunks=[]}get(dA){if(!(dA>this.length-1||dA<0)){var CA=dA%this.chunkSize,BA=dA/this.chunkSize|0;return this.getter(BA)[CA]}}setDataGetter(dA){this.getter=dA}cacheLength(){var dA=new XMLHttpRequest;if(dA.open("HEAD",l,!1),dA.send(null),!(dA.status>=200&&dA.status<300||dA.status===304))throw new Error("Couldn't load "+l+". Status: "+dA.status);var CA,BA=Number(dA.getResponseHeader("Content-length")),Be=(CA=dA.getResponseHeader("Accept-Ranges"))&&CA==="bytes",Qe=(CA=dA.getResponseHeader("Content-Encoding"))&&CA==="gzip",Ze=1048576;Be||(Ze=BA);var Fe=this;Fe.setDataGetter(Ii=>{var uc=Ii*Ze,ys=(Ii+1)*Ze-1;if(ys=Math.min(ys,BA-1),Fe.chunks[Ii]===void 0&&(Fe.chunks[Ii]=((mc,Oa)=>{if(mc>Oa)throw new Error("invalid range ("+mc+", "+Oa+") or no bytes requested!");if(Oa>BA-1)throw new Error("only "+BA+" bytes available! programmer error!");var Gt=new XMLHttpRequest;if(Gt.open("GET",l,!1),BA!==Ze&&Gt.setRequestHeader("Range","bytes="+mc+"-"+Oa),Gt.responseType="arraybuffer",Gt.overrideMimeType&&Gt.overrideMimeType("text/plain; charset=x-user-defined"),Gt.send(null),!(Gt.status>=200&&Gt.status<300||Gt.status===304))throw new Error("Couldn't load "+l+". Status: "+Gt.status);return Gt.response!==void 0?new Uint8Array(Gt.response||[]):fo(Gt.responseText||"",!0)})(uc,ys)),Fe.chunks[Ii]===void 0)throw new Error("doXHR failed!");return Fe.chunks[Ii]}),!Qe&&BA||(Ze=BA=1,BA=this.getter(0).length,Ze=BA,h("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=BA,this._chunkSize=Ze,this.lengthKnown=!0}get length(){return this.lengthKnown||this.cacheLength(),this._length}get chunkSize(){return this.lengthKnown||this.cacheLength(),this._chunkSize}}if(typeof XMLHttpRequest<"u"){if(!ENVIRONMENT_IS_WORKER)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var S={isDevice:!1,contents:new M}}else S={isDevice:!1,url:l};var N=E.createFile(a,C,S,d,w);S.contents?N.contents=S.contents:S.url&&(N.contents=null,N.url=S.url),Object.defineProperties(N,{usedBytes:{get:function(){return this.contents.length}}});var rA={};function bA(RA,dA,CA,BA,Be){var Qe=RA.node.contents;if(Be>=Qe.length)return 0;var Ze=Math.min(Qe.length-Be,BA);if(Qe.slice)for(var Fe=0;Fe<Ze;Fe++)dA[CA+Fe]=Qe[Be+Fe];else for(Fe=0;Fe<Ze;Fe++)dA[CA+Fe]=Qe.get(Be+Fe);return Ze}return Object.keys(N.stream_ops).forEach(RA=>{var dA=N.stream_ops[RA];rA[RA]=function(){return E.forceLoadFile(N),dA(...arguments)}}),rA.read=(RA,dA,CA,BA,Be)=>(E.forceLoadFile(N),bA(RA,dA,CA,BA,Be)),rA.mmap=(RA,dA,CA,BA,Be)=>{E.forceLoadFile(N);var Qe=Yg(dA);if(!Qe)throw new E.ErrnoError(48);return bA(RA,A,Qe,dA,CA),{ptr:Qe,allocated:!0}},N.stream_ops=rA,N}},eA={DEFAULT_POLLMASK:5,calculateAt(a,C,l){if(fA.isAbs(C))return C;var d;if(a===-100?d=E.cwd():d=eA.getStreamFromFD(a).path,C.length==0){if(!l)throw new E.ErrnoError(44);return d}return fA.join2(d,C)},doStat(a,C,l){var d=a(C);o[l>>2]=d.dev,o[l+4>>2]=d.mode,g[l+8>>2]=d.nlink,o[l+12>>2]=d.uid,o[l+16>>2]=d.gid,o[l+20>>2]=d.rdev,I[l+24>>3]=BigInt(d.size),o[l+32>>2]=4096,o[l+36>>2]=d.blocks;var w=d.atime.getTime(),M=d.mtime.getTime(),S=d.ctime.getTime();return I[l+40>>3]=BigInt(Math.floor(w/1e3)),g[l+48>>2]=w%1e3*1e3*1e3,I[l+56>>3]=BigInt(Math.floor(M/1e3)),g[l+64>>2]=M%1e3*1e3*1e3,I[l+72>>3]=BigInt(Math.floor(S/1e3)),g[l+80>>2]=S%1e3*1e3*1e3,I[l+88>>3]=BigInt(d.ino),0},doMsync(a,C,l,d,w){if(!E.isFile(C.node.mode))throw new E.ErrnoError(43);if(2&d)return 0;var M=n.slice(a,a+l);E.msync(C,M,w,l,d)},getStreamFromFD:a=>E.getStreamChecked(a),varargs:void 0,getStr:a=>DA(a)};function uA(){var a=o[+eA.varargs>>2];return eA.varargs+=4,a}var OA=uA,ke=a=>a<-9007199254740992||a>9007199254740992?NaN:Number(a),ze=(a,C,l)=>si(a,n,C,l),rt=a=>{var C=(a-B.buffer.byteLength+65535)/65536|0;try{return B.grow(C),y(),1}catch{}},Wt={},oe=()=>{if(!oe.strings){var a={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:"./this.program"};for(var C in Wt)Wt[C]===void 0?delete a[C]:a[C]=Wt[C];var l=[];for(var C in a)l.push(`${C}=${a[C]}`);oe.strings=l}return oe.strings},Ha=a=>{throw`exit(${a})`},Ta=a=>st(a);E.createPreloadedFile=(a,C,l,d,w,M,S,N,rA,bA)=>{var RA=C?ue.resolve(fA.join2(a,C)):a,dA=getUniqueRunDependency(`cp ${RA}`);function CA(BA){(function(Be){bA?.(),N||((Qe,Ze,Fe,Ii,uc,ys)=>{E.createDataFile(Qe,Ze,Fe,Ii,uc,ys)})(a,C,Be,d,w,rA),M?.(),removeRunDependency(dA)})(BA)}addRunDependency(dA),typeof l=="string"?((BA,Be,Qe,Ze)=>{var Fe=Ze?"":getUniqueRunDependency(`al ${BA}`);readAsync(BA).then(Ii=>{Be(new Uint8Array(Ii)),Fe&&removeRunDependency(Fe)},Ii=>{if(!Qe)throw`Loading data file "${BA}" failed.`;Qe()}),Fe&&addRunDependency(Fe)})(l,CA,S):CA(l)},E.staticInit();var Ke,Yi,st,Gn,ws={a:(a,C,l,d)=>{p(`Assertion failed: ${DA(a)}, at: `+[C?DA(C):"unknown filename",l,d?DA(d):"unknown function"])},b:(a,C,l)=>{throw new UA(a).init(C,l),a},v:function(a,C,l,d){try{if(C=eA.getStr(C),C=eA.calculateAt(a,C),-8&l)return-28;var w=E.lookupPath(C,{follow:!0}).node;if(!w)return-44;var M="";return 4&l&&(M+="r"),2&l&&(M+="w"),1&l&&(M+="x"),M&&E.nodePermissions(w,M)?-2:0}catch(S){if(E===void 0||S.name!=="ErrnoError")throw S;return-S.errno}},f:function(a,C,l){eA.varargs=l;try{var d=eA.getStreamFromFD(a);switch(C){case 0:if((w=uA())<0)return-28;for(;E.streams[w];)w++;return E.dupStream(d,w).fd;case 1:case 2:case 13:case 14:return 0;case 3:return d.flags;case 4:var w=uA();return d.flags|=w,0;case 12:return w=OA(),i[w+0>>1]=2,0}return-28}catch(M){if(E===void 0||M.name!=="ErrnoError")throw M;return-M.errno}},u:function(a,C){try{var l=eA.getStreamFromFD(a);return eA.doStat(E.stat,l.path,C)}catch(d){if(E===void 0||d.name!=="ErrnoError")throw d;return-d.errno}},j:function(a,C,l){eA.varargs=l;try{var d=eA.getStreamFromFD(a);switch(C){case 21509:case 21510:case 21511:case 21512:case 21524:case 21515:return d.tty?0:-59;case 21505:if(!d.tty)return-59;if(d.tty.ops.ioctl_tcgets){var w=d.tty.ops.ioctl_tcgets(d),M=OA();o[M>>2]=w.c_iflag||0,o[M+4>>2]=w.c_oflag||0,o[M+8>>2]=w.c_cflag||0,o[M+12>>2]=w.c_lflag||0;for(var S=0;S<32;S++)A[M+S+17]=w.c_cc[S]||0;return 0}return 0;case 21506:case 21507:case 21508:if(!d.tty)return-59;if(d.tty.ops.ioctl_tcsets){M=OA();var N=o[M>>2],rA=o[M+4>>2],bA=o[M+8>>2],RA=o[M+12>>2],dA=[];for(S=0;S<32;S++)dA.push(A[M+S+17]);return d.tty.ops.ioctl_tcsets(d.tty,C,{c_iflag:N,c_oflag:rA,c_cflag:bA,c_lflag:RA,c_cc:dA})}return 0;case 21519:return d.tty?(M=OA(),o[M>>2]=0,0):-59;case 21520:return d.tty?-28:-59;case 21531:return M=OA(),E.ioctl(d,C,M);case 21523:if(!d.tty)return-59;if(d.tty.ops.ioctl_tiocgwinsz){var CA=d.tty.ops.ioctl_tiocgwinsz(d.tty);M=OA(),i[M>>1]=CA[0],i[M+2>>1]=CA[1]}return 0;default:return-28}}catch(BA){if(E===void 0||BA.name!=="ErrnoError")throw BA;return-BA.errno}},s:function(a,C,l,d){try{C=eA.getStr(C);var w=256&d,M=4096&d;return d&=-6401,C=eA.calculateAt(a,C,M),eA.doStat(w?E.lstat:E.stat,C,l)}catch(S){if(E===void 0||S.name!=="ErrnoError")throw S;return-S.errno}},m:function(a,C,l,d){eA.varargs=d;try{C=eA.getStr(C),C=eA.calculateAt(a,C);var w=d?uA():0;return E.open(C,l,w).fd}catch(M){if(E===void 0||M.name!=="ErrnoError")throw M;return-M.errno}},t:function(a,C){try{return a=eA.getStr(a),eA.doStat(E.stat,a,C)}catch(l){if(E===void 0||l.name!=="ErrnoError")throw l;return-l.errno}},i:()=>{p("")},n:function(a,C,l,d,w,M,S){w=ke(w);try{if(isNaN(w))return 61;var N=eA.getStreamFromFD(d),rA=E.mmap(N,a,w,C,l),bA=rA.ptr;return o[M>>2]=rA.allocated,g[S>>2]=bA,0}catch(RA){if(E===void 0||RA.name!=="ErrnoError")throw RA;return-RA.errno}},o:function(a,C,l,d,w,M){M=ke(M);try{var S=eA.getStreamFromFD(w);2&l&&eA.doMsync(a,S,C,d,M)}catch(N){if(E===void 0||N.name!=="ErrnoError")throw N;return-N.errno}},k:(a,C,l,d)=>{var w=new Date().getFullYear(),M=new Date(w,0,1),S=new Date(w,6,1),N=M.getTimezoneOffset(),rA=S.getTimezoneOffset(),bA=Math.max(N,rA);g[a>>2]=60*bA,o[C>>2]=+(N!=rA);var RA=BA=>{var Be=BA>=0?"-":"+",Qe=Math.abs(BA);return`UTC${Be}${String(Math.floor(Qe/60)).padStart(2,"0")}${String(Qe%60).padStart(2,"0")}`},dA=RA(N),CA=RA(rA);rA<N?(ze(dA,l,17),ze(CA,d,17)):(ze(dA,d,17),ze(CA,l,17))},h:()=>Date.now(),l:a=>{var C=n.length,l=2147483648;if((a>>>=0)>l)return!1;for(var d=1;d<=4;d*=2){var w=C*(1+.2/d);w=Math.min(w,a+100663296);var M=Math.min(l,xi(Math.max(a,w),65536));if(rt(M))return!0}return!1},q:(a,C)=>{var l=0;return oe().forEach((d,w)=>{var M=C+l;g[a+4*w>>2]=M,((S,N)=>{for(var rA=0;rA<S.length;++rA)A[N++]=S.charCodeAt(rA);A[N]=0})(d,M),l+=d.length+1}),0},r:(a,C)=>{var l=oe();g[a>>2]=l.length;var d=0;return l.forEach(w=>d+=w.length+1),g[C>>2]=d,0},g:Ha,e:function(a){try{var C=eA.getStreamFromFD(a);return E.close(C),0}catch(l){if(E===void 0||l.name!=="ErrnoError")throw l;return l.errno}},d:function(a,C,l,d){try{var w=((M,S,N,rA)=>{for(var bA=0,RA=0;RA<N;RA++){var dA=g[S>>2],CA=g[S+4>>2];S+=8;var BA=E.read(M,A,dA,CA,rA);if(BA<0)return-1;if(bA+=BA,BA<CA)break;rA!==void 0&&(rA+=BA)}return bA})(eA.getStreamFromFD(a),C,l);return g[d>>2]=w,0}catch(M){if(E===void 0||M.name!=="ErrnoError")throw M;return M.errno}},p:function(a,C,l,d){C=ke(C);try{if(isNaN(C))return 61;var w=eA.getStreamFromFD(a);return E.llseek(w,C,l),I[d>>3]=BigInt(w.position),w.getdents&&C===0&&l===0&&(w.getdents=null),0}catch(M){if(E===void 0||M.name!=="ErrnoError")throw M;return M.errno}},c:function(a,C,l,d){try{var w=((M,S,N,rA)=>{for(var bA=0,RA=0;RA<N;RA++){var dA=g[S>>2],CA=g[S+4>>2];S+=8;var BA=E.write(M,A,dA,CA,rA);if(BA<0)return-1;if(bA+=BA,BA<CA)break;rA!==void 0&&(rA+=BA)}return bA})(eA.getStreamFromFD(a),C,l);return g[d>>2]=w,0}catch(M){if(E===void 0||M.name!=="ErrnoError")throw M;return M.errno}},w:function(a){return c.agerrMessages.push(DA(a)),0}};c.ccall=(a,C,l,d,w)=>{var M={string:CA=>{var BA=0;return CA!=null&&CA!==0&&(BA=(Be=>{var Qe=le(Be)+1,Ze=Ta(Qe);return ze(Be,Ze,Qe),Ze})(CA)),BA},array:CA=>{var BA,Be,Qe=Ta(CA.length);return BA=CA,Be=Qe,A.set(BA,Be),Qe}},S=(CA=>c["_"+CA])(a),N=[],rA=0;if(d)for(var bA=0;bA<d.length;bA++){var RA=M[l[bA]];RA?(rA===0&&(rA=Gn()),N[bA]=RA(d[bA])):N[bA]=d[bA]}var dA=S(...N);return dA=function(CA){return rA!==0&&Yi(rA),function(BA){return C==="string"?DA(BA):C==="boolean"?!!BA:BA}(CA)}(dA)},c.getValue=function(a){let C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"i8";switch(C.endsWith("*")&&(C="*"),C){case"i1":case"i8":return A[a];case"i16":return i[a>>1];case"i32":return o[a>>2];case"i64":return I[a>>3];case"float":return r[a>>2];case"double":return s[a>>3];case"*":return g[a>>2];default:p(`invalid type for getValue: ${C}`)}},c.PATH=fA,c.UTF8ToString=DA,c.stringToUTF8=ze,c.lengthBytesUTF8=le,c.FS=E;var pS={a:ws};return WebAssembly.instantiate(c.wasm,pS).then(a=>{var C=a.instance.exports;c._viz_set_y_invert=C.z,c._viz_set_reduce=C.A,c._viz_get_graphviz_version=C.B,c._viz_get_plugin_list=C.C,c._viz_create_graph=C.D,c._viz_read_one_graph=C.E,c._viz_string_dup=C.F,c._viz_string_dup_html=C.G,c._viz_string_free=C.H,c._viz_add_node=C.I,c._viz_add_edge=C.J,c._viz_add_subgraph=C.K,c._viz_set_default_graph_attribute=C.L,c._viz_set_default_node_attribute=C.M,c._viz_set_default_edge_attribute=C.N,c._viz_set_attribute=C.O,c._viz_free_graph=C.P,c._viz_create_context=C.Q,c._viz_free_context=C.R,c._viz_layout=C.S,c._viz_free_layout=C.T,c._viz_reset_errors=C.U,c._viz_render=C.V,c._free=C.X,c._malloc=C.Y,Ke=C.Z,Yi=C._,st=C.$,Gn=C.aa,B=C.x,y(),function(l){l.y(),c.noFSInit||E.initialized||E.init(),E.ignorePermissions=!1}(C),t(c)}),D},Kk=[[/^Error: (.*)/,"error"],[/^Warning: (.*)/,"warning"]];function Uk(t,e){let A=t.ccall("viz_get_plugin_list","number",["string"],[e]);if(A==0)throw new Error(`couldn't get plugin list: ${e}`);let i=[],o,n=A;for(;o=t.getValue(n,"*");)i.push(t.UTF8ToString(o)),t.ccall("free","number",["number"],[o]),n+=4;return t.ccall("free","number",["number"],[A]),i}function xk(t,e,A,i){let o,n,g,r;try{if(t.agerrMessages=[],t.stderrMessages=[],r=function(I,B){return B?B.map(c=>{if(typeof c.name!="string")throw new Error("image name must be a string");if(typeof c.width!="number"&&typeof c.width!="string")throw new Error("image width must be a number or string");if(typeof c.height!="number"&&typeof c.height!="string")throw new Error("image height must be a number or string");let D=I.PATH.join("/",c.name),h=`<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="${c.width}" height="${c.height}"></svg>
`;return I.FS.createPath("/",I.PATH.dirname(D)),I.FS.writeFile(D,h),D}):[]}(t,i.images),typeof e=="string")o=function(I,B){let c;try{let D=I.lengthBytesUTF8(B);return c=I.ccall("malloc","number",["number"],[D+1]),I.stringToUTF8(B,c,D+1),I.ccall("viz_read_one_graph","number",["number"],[c])}finally{c&&I.ccall("free","number",["number"],[c])}}(t,e);else{if(typeof e!="object")throw new Error("input must be a string or object");o=function(I,B){let c=I.ccall("viz_create_graph","number",["string","number","number"],[B.name,B.directed===void 0||B.directed,B.strict!==void 0&&B.strict]);return Jk(I,c,B),c}(t,e)}if(o===0)return{status:"failure",output:void 0,errors:Ea(t)};if(Hk(t,o,i),t.ccall("viz_set_y_invert","number",["number"],[i.yInvert?1:0]),t.ccall("viz_set_reduce","number",["number"],[i.reduce?1:0]),n=t.ccall("viz_create_context"),t.ccall("viz_reset_errors"),t.ccall("viz_layout","number",["number","number","string"],[n,o,i.engine])!==0)return{status:"failure",output:void 0,errors:Ea(t)};let s={};for(let I of A){if(g=t.ccall("viz_render","number",["number","number","string"],[n,o,I]),g===0)return{status:"failure",output:void 0,errors:Ea(t)};s[I]=t.UTF8ToString(g),t.ccall("free","number",["number"],[g]),g=0}return{status:"success",output:s,errors:Ea(t)}}catch(s){if(/^exit\(\d+\)/.test(s))return{status:"failure",output:void 0,errors:Ea(t)};throw s}finally{n&&o&&t.ccall("viz_free_layout","number",["number"],[n,o]),o&&t.ccall("viz_free_graph","number",["number"],[o]),n&&t.ccall("viz_free_context","number",["number"],[n]),g&&t.ccall("free","number",["number"],[g]),r&&function(s,I){for(let B of I)s.FS.analyzePath(B).exists&&s.FS.unlink(B)}(t,r)}}function Ea(t){return function(e){let A=[],i;for(let o=0;o<e.length;o++)e[o]=="Error"&&e[o+1]==": "?(i="error",o+=1):e[o]=="Warning"&&e[o+1]==": "?(i="warning",o+=1):A.push({message:e[o].trimEnd(),level:i});return A}(t.agerrMessages).concat(t.stderrMessages.map(e=>{for(let A=0;A<Kk.length;A++){let[i,o]=Kk[A],n;if((n=i.exec(e))!==null)return{message:n[1].trimEnd(),level:o}}return{message:e.trimEnd()}}))}function Jk(t,e,A){Hk(t,e,A),A.nodes&&A.nodes.forEach(i=>{let o=t.ccall("viz_add_node","number",["number","string"],[e,String(i.name)]);i.attributes&&Yk(t,e,o,i.attributes)}),A.edges&&A.edges.forEach(i=>{let o=t.ccall("viz_add_edge","number",["number","string","string"],[e,String(i.tail),String(i.head)]);i.attributes&&Yk(t,e,o,i.attributes)}),A.subgraphs&&A.subgraphs.forEach(i=>{let o=t.ccall("viz_add_subgraph","number",["number","string"],[e,String(i.name)]);Jk(t,o,i)})}function Hk(t,e,A){if(A.graphAttributes)for(let[i,o]of Object.entries(A.graphAttributes))FE(t,e,o,n=>{t.ccall("viz_set_default_graph_attribute","number",["number","string","number"],[e,i,n])});if(A.nodeAttributes)for(let[i,o]of Object.entries(A.nodeAttributes))FE(t,e,o,n=>{t.ccall("viz_set_default_node_attribute","number",["number","string","number"],[e,i,n])});if(A.edgeAttributes)for(let[i,o]of Object.entries(A.edgeAttributes))FE(t,e,o,n=>{t.ccall("viz_set_default_edge_attribute","number",["number","string","number"],[e,i,n])})}function Yk(t,e,A,i){for(let[o,n]of Object.entries(i))FE(t,e,n,g=>{t.ccall("viz_set_attribute","number",["number","string","number"],[A,o,g])})}function FE(t,e,A,i){let o;if(o=typeof A=="object"&&"html"in A?t.ccall("viz_string_dup_html","number",["number","string"],[e,String(A.html)]):t.ccall("viz_string_dup","number",["number","string"],[e,String(A)]),o==0)throw new Error("couldn't dup string");i(o),t.ccall("viz_string_free","number",["number","number"],[e,o])}var pm=class{constructor(e){this.module=e}get graphvizVersion(){return function(e){let A=e.ccall("viz_get_graphviz_version","number",[],[]);return e.UTF8ToString(A)}(this.module)}get formats(){return Uk(this.module,"device")}get engines(){return Uk(this.module,"layout")}renderFormats(e,A){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return xk(this.module,e,A,R({engine:"dot"},i))}render(e){let A,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};A=i.format===void 0?"dot":i.format;let o=xk(this.module,e,[A],R({engine:"dot"},i));return o.status==="success"&&(o.output=o.output[A]),o}renderString(e){let A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.render(e,A);if(i.status!=="success")throw new Error(i.errors.find(o=>o.level=="error")?.message||"render failed");return i.output}renderSVGElement(e){let A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.renderString(e,hA(R({},A),{format:"svg"}));return new DOMParser().parseFromString(i,"image/svg+xml").documentElement}renderJSON(e){let A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.renderString(e,hA(R({},A),{format:"json"}));return JSON.parse(i)}};function gO(){let t=atob("[encoded data, 1345852 characters]"),e=new Uint8Array(t.length);for(let A=0;A<t.length;A++)e[A]=t.charCodeAt(A);return e.buffer}function wm(){return nO({wasm:gO()}).then(t=>new pm(t))}function rO(t,e){if(t&1){let A=aA();u(0,"div",1)(1,"button",2),x("click",function(){J(A);let o=b();return H(o.action())}),G(2),m()()}if(t&2){let A=b();f(2),te(" ",A.data.action," ")}}var sO=["label"];function IO(t,e){}var aO=Math.pow(2,31)-1,ca=class{_overlayRef;instance;containerInstance;_afterDismissed=new _;_afterOpened=new _;_onAction=new _;_durationTimeoutId;_dismissedByAction=!1;constructor(e,A){this._overlayRef=A,this.containerInstance=e,e._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(e){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(e,aO))}_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}},Tk=new k("MatSnackBarData"),rs=class{politeness="assertive";announcementMessage="";viewContainerRef;duration=0;panelClass;direction;data=null;horizontalPosition="center";verticalPosition="bottom"},CO=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}return t})(),BO=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}return t})(),QO=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}return t})(),EO=(()=>{class t{snackBarRef=Q(ca);data=Q(Tk);constructor(){}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=T({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(i,o){i&1&&(u(0,"div",0),G(1),m(),U(2,rO,3,1,"div",1)),i&2&&(f(),te(" ",o.data.message,`
`),f(),pA(o.hasAction?2:-1))},dependencies:[bt,CO,BO,QO],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0})}return t})(),cO={snackBarState:Qo("state",[gi("void, hidden",Ge({transform:"scale(0.8)",opacity:0})),gi("visible",Ge({transform:"scale(1)",opacity:1})),St("* => visible",qt("150ms cubic-bezier(0, 0, 0.2, 1)")),St("* => void, * => hidden",qt("75ms cubic-bezier(0.4, 0.0, 1, 1)",Ge({opacity:0})))])},lO=(()=>{class t extends pn{_ngZone=Q(X);_elementRef=Q(q);_changeDetectorRef=Q(zA);_platform=Q(TA);snackBarConfig=Q(rs);_document=Q(lA);_trackedModals=new Set;_announceDelay=150;_announceTimeoutId;_destroyed=!1;_portalOutlet;_onAnnounce=new _;_onExit=new _;_onEnter=new _;_animationState="void";_live;_label;_role;_liveElementId=Q(ce).getId("mat-snack-bar-container-live-");constructor(){super();let A=this.snackBarConfig;A.politeness==="assertive"&&!A.announcementMessage?this._live="assertive":A.politeness==="off"?this._live="off":this._live="polite",this._platform.FIREFOX&&(this._live==="polite"&&(this._role="status"),this._live==="assertive"&&(this._role="alert"))}attachComponentPortal(A){this._assertNotAttached();let i=this._portalOutlet.attachComponentPortal(A);return this._afterPortalAttached(),i}attachTemplatePortal(A){this._assertNotAttached();let i=this._portalOutlet.attachTemplatePortal(A);return this._afterPortalAttached(),i}attachDomPortal=A=>{this._assertNotAttached();let i=this._portalOutlet.attachDomPortal(A);return this._afterPortalAttached(),i};onAnimationEnd(A){let{fromState:i,toState:o}=A;if((o==="void"&&i!=="void"||o==="hidden")&&this._completeExit(),o==="visible"){let n=this._onEnter;this._ngZone.run(()=>{n.next(),n.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){queueMicrotask(()=>{this._onExit.next(),this._onExit.complete()})}_afterPortalAttached(){let A=this._elementRef.nativeElement,i=this.snackBarConfig.panelClass;i&&(Array.isArray(i)?i.forEach(g=>A.classList.add(g)):A.classList.add(i)),this._exposeToModals();let o=this._label.nativeElement,n="mdc-snackbar__label";o.classList.toggle(n,!o.querySelector(`.${n}`))}_exposeToModals(){let A=this._liveElementId,i=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let o=0;o<i.length;o++){let n=i[o],g=n.getAttribute("aria-owns");this._trackedModals.add(n),g?g.indexOf(A)===-1&&n.setAttribute("aria-owns",g+" "+A):n.setAttribute("aria-owns",A)}}_clearFromModals(){this._trackedModals.forEach(A=>{let i=A.getAttribute("aria-owns");if(i){let o=i.replace(this._liveElementId,"").trim();o.length>0?A.setAttribute("aria-owns",o):A.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{let A=this._elementRef.nativeElement.querySelector("[aria-hidden]"),i=this._elementRef.nativeElement.querySelector("[aria-live]");if(A&&i){let o=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&A.contains(document.activeElement)&&(o=document.activeElement),A.removeAttribute("aria-hidden"),i.appendChild(A),o?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=T({type:t,selectors:[["mat-snack-bar-container"]],viewQuery:function(i,o){if(i&1&&(cA(oi,7),cA(sO,7)),i&2){let n;z(n=j())&&(o._portalOutlet=n.first),z(n=j())&&(o._label=n.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:1,hostBindings:function(i,o){i&1&&fh("@state.done",function(g){return o.onAnimationEnd(g)}),i&2&&Dh("@state",o._animationState)},features:[EA],decls:6,vars:3,consts:[["label",""],[1,"mdc-snackbar__surface","mat-mdc-snackbar-surface"],[1,"mat-mdc-snack-bar-label"],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(i,o){i&1&&(u(0,"div",1)(1,"div",2,0)(3,"div",3),U(4,IO,0,0,"ng-template",4),m(),W(5,"div"),m()()),i&2&&(f(5),IA("aria-live",o._live)("role",o._role)("id",o._liveElementId))},dependencies:[oi],styles:[".mat-mdc-snack-bar-container{display:flex;align-items:center;justify-content:center;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);margin:8px}.mat-mdc-snack-bar-handset .mat-mdc-snack-bar-container{width:100vw}.mat-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);display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;padding-left:0;padding-right:8px}[dir=rtl] .mat-mdc-snackbar-surface{padding-right:0;padding-left:8px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{min-width:344px;max-width:672px}.mat-mdc-snack-bar-handset .mat-mdc-snackbar-surface{width:100%;min-width:0}@media(forced-colors: active){.mat-mdc-snackbar-surface{outline:solid 1px}}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{color:var(--mdc-snackbar-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mdc-snackbar-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mdc-snackbar-container-color, var(--mat-sys-inverse-surface))}.mdc-snackbar__label{width:100%;flex-grow:1;box-sizing:border-box;margin:0;padding:14px 8px 14px 16px}[dir=rtl] .mdc-snackbar__label{padding-left:8px;padding-right:16px}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-family:var(--mdc-snackbar-supporting-text-font, var(--mat-sys-body-medium-font));font-size:var(--mdc-snackbar-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mdc-snackbar-supporting-text-weight, var(--mat-sys-body-medium-weight));line-height:var(--mdc-snackbar-supporting-text-line-height, var(--mat-sys-body-medium-line-height))}.mat-mdc-snack-bar-actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled).mat-unthemed{color:var(--mat-snack-bar-button-color, var(--mat-sys-inverse-primary))}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){--mat-text-button-state-layer-color:currentColor;--mat-text-button-ripple-color:currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{opacity:.1}"],encapsulation:2,data:{animation:[cO.snackBarState]}})}return t})();function dO(){return new rs}var hO=new k("mat-snack-bar-default-options",{providedIn:"root",factory:dO}),Ok=(()=>{class t{_overlay=Q(Pe);_live=Q(BE);_injector=Q(wA);_breakpointObserver=Q(AE);_parentSnackBar=Q(t,{optional:!0,skipSelf:!0});_defaultConfig=Q(hO);_snackBarRefAtThisLevel=null;simpleSnackBarComponent=EO;snackBarContainerComponent=lO;handsetCssClass="mat-mdc-snack-bar-handset";get _openedSnackBarRef(){let A=this._parentSnackBar;return A?A._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(A){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=A:this._snackBarRefAtThisLevel=A}constructor(){}openFromComponent(A,i){return this._attach(A,i)}openFromTemplate(A,i){return this._attach(A,i)}open(A,i="",o){let n=R(R({},this._defaultConfig),o);return n.data={message:A,action:i},n.announcementMessage===A&&(n.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,n)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(A,i){let o=i&&i.viewContainerRef&&i.viewContainerRef.injector,n=wA.create({parent:o||this._injector,providers:[{provide:rs,useValue:i}]}),g=new Si(this.snackBarContainerComponent,i.viewContainerRef,n),r=A.attach(g);return r.instance.snackBarConfig=i,r.instance}_attach(A,i){let o=R(R(R({},new rs),this._defaultConfig),i),n=this._createOverlay(o),g=this._attachSnackBarContainer(n,o),r=new ca(g,n);if(A instanceof ge){let s=new ii(A,null,{$implicit:o.data,snackBarRef:r});r.instance=g.attachTemplatePortal(s)}else{let s=this._createInjector(o,r),I=new Si(A,void 0,s),B=g.attachComponentPortal(I);r.instance=B.instance}return this._breakpointObserver.observe(LR.HandsetPortrait).pipe(mA(n.detachments())).subscribe(s=>{n.overlayElement.classList.toggle(this.handsetCssClass,s.matches)}),o.announcementMessage&&g._onAnnounce.subscribe(()=>{this._live.announce(o.announcementMessage,o.politeness)}),this._animateSnackBar(r,o),this._openedSnackBarRef=r,this._openedSnackBarRef}_animateSnackBar(A,i){A.afterDismissed().subscribe(()=>{this._openedSnackBarRef==A&&(this._openedSnackBarRef=null),i.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{A.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):A.containerInstance.enter(),i.duration&&i.duration>0&&A.afterOpened().subscribe(()=>A._dismissAfter(i.duration))}_createOverlay(A){let i=new wn;i.direction=A.direction;let o=this._overlay.position().global(),n=A.direction==="rtl",g=A.horizontalPosition==="left"||A.horizontalPosition==="start"&&!n||A.horizontalPosition==="end"&&n,r=!g&&A.horizontalPosition!=="center";return g?o.left("0"):r?o.right("0"):o.centerHorizontally(),A.verticalPosition==="top"?o.top("0"):o.bottom("0"),i.positionStrategy=o,this._overlay.create(i)}_createInjector(A,i){let o=A&&A.viewContainerRef&&A.viewContainerRef.injector;return wA.create({parent:o||this._injector,providers:[{provide:ca,useValue:i},{provide:Tk,useValue:A.data}]})}static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var nt=class{static getBaseUrlWithoutPath(){let e=window.location.href;return new URL(e).origin+"/dev-ui"}static getApiServerBaseUrl(){return window.runtimeConfig?.backendUrl}static getWSServerUrl(){let e=this.getApiServerBaseUrl();return!e||e==""?window.location.host:e.startsWith("http://")?e.slice(7):e.startsWith("https://")?e.slice(8):e}};var yn=class t{constructor(e,A){this.http=e;this.zone=A}apiServerDomain=nt.getApiServerBaseUrl();_currentApp=new ee("");currentApp=this._currentApp.asObservable();getApp(){return this.currentApp}setApp(e){this._currentApp.next(e)}run(e){let i={headers:{"Content-type":"application/json"}},o=this.apiServerDomain+"/run";return this.http.post(o,e,i)}run_sse(e){let A=this.apiServerDomain+"/run_sse";return new QA(i=>{fetch(A,{method:"POST",headers:{"Content-Type":"application/json",Accept:"text/event-stream"},body:JSON.stringify(e)}).then(o=>{let n=o.body?.getReader(),g=new TextDecoder("utf-8"),r=null,s=()=>{n?.read().then(({done:I,value:B})=>{if(I)return i.complete();g.decode(B,{stream:!0}).split(/\r?\n/).filter(h=>h.startsWith("data: ")).forEach(h=>{let p=h.replace(/^data:\s*/,"");this.zone.run(()=>i.next(p))}),s()}).catch(I=>{this.zone.run(()=>i.error(I))})};s()}).catch(o=>{this.zone.run(()=>i.error(o))})})}listApps(){if(this.apiServerDomain!=null){let e=this.apiServerDomain+"/list-apps?relative_path=./";return this.http.get(e)}return new QA}static \u0275fac=function(A){return new(A||t)(O(ot),O(X))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})};var DO=["input"],fO=["label"],pO=["*"],wO=new k("mat-checkbox-default-options",{providedIn:"root",factory:Zk});function Zk(){return{color:"accent",clickAction:"check-indeterminate",disabledInteractive:!1}}var gt=function(t){return t[t.Init=0]="Init",t[t.Checked=1]="Checked",t[t.Unchecked=2]="Unchecked",t[t.Indeterminate=3]="Indeterminate",t}(gt||{}),yO={provide:Eg,useExisting:Ct(()=>ss),multi:!0},ym=class{source;checked},Pk=Zk(),ss=(()=>{class t{_elementRef=Q(q);_changeDetectorRef=Q(zA);_ngZone=Q(X);_animationMode=Q($A,{optional:!0});_options=Q(wO,{optional:!0});focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(A){let i=new ym;return i.source=this,i.checked=A,i}_getAnimationTargetElement(){return this._inputElement?.nativeElement}_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"};ariaLabel="";ariaLabelledby=null;ariaDescribedby;ariaExpanded;ariaControls;ariaOwns;_uniqueId;id;get inputId(){return`${this.id||this._uniqueId}-input`}required;labelPosition="after";name=null;change=new $;indeterminateChange=new $;value;disableRipple;_inputElement;_labelElement;tabIndex;color;disabledInteractive;_onTouched=()=>{};_currentAnimationClass="";_currentCheckState=gt.Init;_controlValueAccessorChangeFn=()=>{};_validatorChangeFn=()=>{};constructor(){Q(Se).load(ei);let A=Q(new ft("tabindex"),{optional:!0});this._options=this._options||Pk,this.color=this._options.color||Pk.color,this.tabIndex=A==null?0:parseInt(A)||0,this.id=this._uniqueId=Q(ce).getId("mat-mdc-checkbox-"),this.disabledInteractive=this._options?.disabledInteractive??!1}ngOnChanges(A){A.required&&this._validatorChangeFn()}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(A){A!=this.checked&&(this._checked=A,this._changeDetectorRef.markForCheck())}_checked=!1;get disabled(){return this._disabled}set disabled(A){A!==this.disabled&&(this._disabled=A,this._changeDetectorRef.markForCheck())}_disabled=!1;get indeterminate(){return this._indeterminate}set indeterminate(A){let i=A!=this._indeterminate;this._indeterminate=A,i&&(this._indeterminate?this._transitionCheckState(gt.Indeterminate):this._transitionCheckState(this.checked?gt.Checked:gt.Unchecked),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_indeterminate=!1;_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(A){this.checked=!!A}registerOnChange(A){this._controlValueAccessorChangeFn=A}registerOnTouched(A){this._onTouched=A}setDisabledState(A){this.disabled=A}validate(A){return this.required&&A.value!==!0?{required:!0}:null}registerOnValidatorChange(A){this._validatorChangeFn=A}_transitionCheckState(A){let i=this._currentCheckState,o=this._getAnimationTargetElement();if(!(i===A||!o)&&(this._currentAnimationClass&&o.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(i,A),this._currentCheckState=A,this._currentAnimationClass.length>0)){o.classList.add(this._currentAnimationClass);let n=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{o.classList.remove(n)},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(){let A=this._options?.clickAction;!this.disabled&&A!=="noop"?(this.indeterminate&&A!=="check"&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?gt.Checked:gt.Unchecked),this._emitChangeEvent()):(this.disabled&&this.disabledInteractive||!this.disabled&&A==="noop")&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate)}_onInteractionEvent(A){A.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(A,i){if(this._animationMode==="NoopAnimations")return"";switch(A){case gt.Init:if(i===gt.Checked)return this._animationClasses.uncheckedToChecked;if(i==gt.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case gt.Unchecked:return i===gt.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case gt.Checked:return i===gt.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case gt.Indeterminate:return i===gt.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(A){let i=this._inputElement;i&&(i.nativeElement.indeterminate=A)}_onInputClick(){this._handleInputClick()}_onTouchTargetClick(){this._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(A){A.target&&this._labelElement.nativeElement.contains(A.target)&&A.stopPropagation()}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=T({type:t,selectors:[["mat-checkbox"]],viewQuery:function(i,o){if(i&1&&(cA(DO,5),cA(fO,5)),i&2){let n;z(n=j())&&(o._inputElement=n.first),z(n=j())&&(o._labelElement=n.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:16,hostBindings:function(i,o){i&2&&(Qt("id",o.id),IA("tabindex",null)("aria-label",null)("aria-labelledby",null),We(o.color?"mat-"+o.color:"mat-accent"),oA("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mdc-checkbox--disabled",o.disabled)("mat-mdc-checkbox-disabled",o.disabled)("mat-mdc-checkbox-checked",o.checked)("mat-mdc-checkbox-disabled-interactive",o.disabledInteractive))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],ariaExpanded:[2,"aria-expanded","ariaExpanded",tA],ariaControls:[0,"aria-controls","ariaControls"],ariaOwns:[0,"aria-owns","ariaOwns"],id:"id",required:[2,"required","required",tA],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[2,"disableRipple","disableRipple",tA],tabIndex:[2,"tabIndex","tabIndex",A=>A==null?void 0:Re(A)],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",tA],checked:[2,"checked","checked",tA],disabled:[2,"disabled","disabled",tA],indeterminate:[2,"indeterminate","indeterminate",tA]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[LA([yO,{provide:Qn,useExisting:t,multi:!0}]),VA],ngContentSelectors:pO,decls:15,vars:23,consts:[["checkbox",""],["input",""],["label",""],["mat-internal-form-field","",3,"click","labelPosition"],[1,"mdc-checkbox"],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"blur","click","change","checked","indeterminate","disabled","id","required","tabIndex"],[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-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"]],template:function(i,o){if(i&1){let n=aA();ZA(),u(0,"div",3),x("click",function(r){return J(n),H(o._preventBubblingFromLabel(r))}),u(1,"div",4,0)(3,"div",5),x("click",function(){return J(n),H(o._onTouchTargetClick())}),m(),u(4,"input",6,1),x("blur",function(){return J(n),H(o._onBlur())})("click",function(){return J(n),H(o._onInputClick())})("change",function(r){return J(n),H(o._onInteractionEvent(r))}),m(),W(6,"div",7),u(7,"div",8),it(),u(8,"svg",9),W(9,"path",10),m(),eg(),W(10,"div",11),m(),W(11,"div",12),m(),u(12,"label",13,2),sA(14),m()()}if(i&2){let n=He(2);F("labelPosition",o.labelPosition),f(4),oA("mdc-checkbox--selected",o.checked),F("checked",o.checked)("indeterminate",o.indeterminate)("disabled",o.disabled&&!o.disabledInteractive)("id",o.inputId)("required",o.required)("tabIndex",o.disabled&&!o.disabledInteractive?-1:o.tabIndex),IA("aria-label",o.ariaLabel||null)("aria-labelledby",o.ariaLabelledby)("aria-describedby",o.ariaDescribedby)("aria-checked",o.indeterminate?"mixed":null)("aria-controls",o.ariaControls)("aria-disabled",o.disabled&&o.disabledInteractive?!0:null)("aria-expanded",o.ariaExpanded)("aria-owns",o.ariaOwns)("name",o.name)("value",o.value),f(7),F("matRippleTrigger",n)("matRippleDisabled",o.disableRipple||o.disabled)("matRippleCentered",!0),f(),F("for",o.inputId)}},dependencies:[mn,cE],styles:['.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;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)}.mdc-checkbox:hover>.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));background-color:var(--mdc-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:hover>.mat-mdc-checkbox-ripple>.mat-ripple-element{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus+.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));background-color:var(--mdc-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:active>.mdc-checkbox__native-control+.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:active>.mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked+.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));background-color:var(--mdc-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked+.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));background-color:var(--mdc-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:active>.mdc-checkbox__native-control:checked+.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));background-color:var(--mdc-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:active>.mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control+.mdc-checkbox__ripple{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;width:var(--mdc-checkbox-state-layer-size, 40px);height:var(--mdc-checkbox-state-layer-size, 40px);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)}.mdc-checkbox--disabled{cursor:default;pointer-events:none}@media(forced-colors: active){.mdc-checkbox--disabled{opacity:.5}}.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 cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms cubic-bezier(0.4, 0, 0.6, 1);-webkit-print-color-adjust:exact;color-adjust:exact;border-color:var(--mdc-checkbox-unselected-icon-color, var(--mat-sys-on-surface-variant));top:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2)}.mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color, var(--mat-sys-primary));background-color:var(--mdc-checkbox-selected-icon-color, var(--mat-sys-primary))}.mdc-checkbox--disabled .mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{background-color:var(--mdc-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}.mdc-checkbox:hover>.mdc-checkbox__native-control:not(:checked)~.mdc-checkbox__background,.mdc-checkbox:hover>.mdc-checkbox__native-control:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mat-sys-on-surface));background-color:rgba(0,0,0,0)}.mdc-checkbox:hover>.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox:hover>.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mat-sys-primary));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mat-sys-primary))}.mdc-checkbox__native-control:focus:focus:not(:checked)~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mat-sys-on-surface))}.mdc-checkbox__native-control:focus:focus:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mat-sys-primary));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mat-sys-primary))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover>.mdc-checkbox__native-control~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{background-color:var(--mdc-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms cubic-bezier(0.4, 0, 0.6, 1);color:var(--mdc-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mdc-checkbox__checkmark{color:CanvasText}}.mdc-checkbox--disabled .mdc-checkbox__checkmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}@media(forced-colors: active){.mdc-checkbox--disabled .mdc-checkbox__checkmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:CanvasText}}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms 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 cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);border-color:var(--mdc-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled .mdc-checkbox__mixedmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}.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;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__checkmark{transition:opacity 180ms cubic-bezier(0, 0, 0.2, 1),transform 180ms 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{transform:rotate(45deg);opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}@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:cubic-bezier(0, 0, 0.2, 1);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}}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mat-mdc-checkbox-touch-target,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__native-control,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__ripple,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mat-mdc-checkbox-ripple::before,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__mixedmark{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox .mat-internal-form-field{color:var(--mat-checkbox-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-checkbox-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-checkbox-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-checkbox-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-checkbox-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-checkbox-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive{pointer-events:auto}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive input{cursor:default}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default;color:var(--mat-checkbox-disabled-label-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-checkbox label:empty{display:none}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox .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 .mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;left:50%;height:48px;width:48px;transform:translate(-50%, -50%);display:var(--mat-checkbox-touch-target-display, block)}.mat-mdc-checkbox .mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return t})();var qk=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=Z({imports:[ss,MA,MA]})}return t})();function RO(t,e){}var Mn=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;scrollStrategy;closeOnNavigation=!0;closeOnDestroy=!0;closeOnOverlayDetachments=!0;componentFactoryResolver;providers;container;templateContext};var Rm=(()=>{class t extends pn{_elementRef=Q(q);_focusTrapFactory=Q(CE);_config;_interactivityChecker=Q(ga);_ngZone=Q(X);_overlayRef=Q(os);_focusMonitor=Q($t);_renderer=Q(Me);_platform=Q(TA);_document=Q(lA,{optional:!0});_portalOutlet;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_changeDetectorRef=Q(zA);_injector=Q(wA);_isDestroyed=!1;constructor(){super(),this._config=Q(Mn,{optional:!0})||new Mn,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(A){this._ariaLabelledByQueue.push(A),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(A){let i=this._ariaLabelledByQueue.indexOf(A);i>-1&&(this._ariaLabelledByQueue.splice(i,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(A){this._portalOutlet.hasAttached();let i=this._portalOutlet.attachComponentPortal(A);return this._contentAttached(),i}attachTemplatePortal(A){this._portalOutlet.hasAttached();let i=this._portalOutlet.attachTemplatePortal(A);return this._contentAttached(),i}attachDomPortal=A=>{this._portalOutlet.hasAttached();let i=this._portalOutlet.attachDomPortal(A);return this._contentAttached(),i};_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(A,i){this._interactivityChecker.isFocusable(A)||(A.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let o=()=>{n(),g(),A.removeAttribute("tabindex")},n=this._renderer.listen(A,"blur",o),g=this._renderer.listen(A,"mousedown",o)})),A.focus(i)}_focusByCssSelector(A,i){let o=this._elementRef.nativeElement.querySelector(A);o&&this._forceFocus(o,i)}_trapFocus(){this._isDestroyed||be(()=>{let A=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||A.focus();break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement()||this._focusDialogContainer();break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus);break}},{injector:this._injector})}_restoreFocus(){let A=this._config.restoreFocus,i=null;if(typeof A=="string"?i=this._document.querySelector(A):typeof A=="boolean"?i=A?this._elementFocusedBeforeDialogWasOpened:null:A&&(i=A),this._config.restoreFocus&&i&&typeof i.focus=="function"){let o=Zr(),n=this._elementRef.nativeElement;(!o||o===this._document.body||o===n||n.contains(o))&&(this._focusMonitor?(this._focusMonitor.focusVia(i,this._closeInteractionType),this._closeInteractionType=null):i.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){let A=this._elementRef.nativeElement,i=Zr();return A===i||A.contains(i)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Zr()))}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=T({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(i,o){if(i&1&&cA(oi,7),i&2){let n;z(n=j())&&(o._portalOutlet=n.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(i,o){i&2&&IA("id",o._config.id||null)("role",o._config.role)("aria-modal",o._config.ariaModal)("aria-labelledby",o._config.ariaLabel?null:o._ariaLabelledByQueue[0])("aria-label",o._config.ariaLabel)("aria-describedby",o._config.ariaDescribedBy||null)},features:[EA],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(i,o){i&1&&U(0,RO,0,0,"ng-template",0)},dependencies:[oi],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2})}return t})(),la=class{overlayRef;config;componentInstance;componentRef;containerInstance;disableClose;closed=new _;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(e,A){this.overlayRef=e,this.config=A,this.disableClose=A.disableClose,this.backdropClick=e.backdropClick(),this.keydownEvents=e.keydownEvents(),this.outsidePointerEvents=e.outsidePointerEvents(),this.id=A.id,this.keydownEvents.subscribe(i=>{i.keyCode===27&&!this.disableClose&&!Oe(i)&&(i.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=e.detachments().subscribe(()=>{A.closeOnOverlayDetachments!==!1&&this.close()})}close(e,A){if(this.containerInstance){let i=this.closed;this.containerInstance._closeInteractionType=A?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),i.next(e),i.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(e="",A=""){return this.overlayRef.updateSize({width:e,height:A}),this}addPanelClass(e){return this.overlayRef.addPanelClass(e),this}removePanelClass(e){return this.overlayRef.removePanelClass(e),this}},kO=new k("DialogScrollStrategy",{providedIn:"root",factory:()=>{let t=Q(Pe);return()=>t.scrollStrategies.block()}}),FO=new k("DialogData"),bO=new k("DefaultDialogConfig");var Vk=(()=>{class t{_overlay=Q(Pe);_injector=Q(wA);_defaultOptions=Q(bO,{optional:!0});_parentDialog=Q(t,{optional:!0,skipSelf:!0});_overlayContainer=Q(pE);_idGenerator=Q(ce);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new _;_afterOpenedAtThisLevel=new _;_ariaHiddenElements=new Map;_scrollStrategy=Q(kO);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=Hi(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(De(void 0)));constructor(){}open(A,i){let o=this._defaultOptions||new Mn;i=R(R({},o),i),i.id=i.id||this._idGenerator.getId("cdk-dialog-"),i.id&&this.getDialogById(i.id);let n=this._getOverlayConfig(i),g=this._overlay.create(n),r=new la(g,i),s=this._attachContainer(g,r,i);return r.containerInstance=s,this._attachDialogContent(A,r,s,i),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(r),r.closed.subscribe(()=>this._removeOpenDialog(r,!0)),this.afterOpened.next(r),r}closeAll(){Mm(this.openDialogs,A=>A.close())}getDialogById(A){return this.openDialogs.find(i=>i.id===A)}ngOnDestroy(){Mm(this._openDialogsAtThisLevel,A=>{A.config.closeOnDestroy===!1&&this._removeOpenDialog(A,!1)}),Mm(this._openDialogsAtThisLevel,A=>A.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(A){let i=new wn({positionStrategy:A.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:A.scrollStrategy||this._scrollStrategy(),panelClass:A.panelClass,hasBackdrop:A.hasBackdrop,direction:A.direction,minWidth:A.minWidth,minHeight:A.minHeight,maxWidth:A.maxWidth,maxHeight:A.maxHeight,width:A.width,height:A.height,disposeOnNavigation:A.closeOnNavigation});return A.backdropClass&&(i.backdropClass=A.backdropClass),i}_attachContainer(A,i,o){let n=o.injector||o.viewContainerRef?.injector,g=[{provide:Mn,useValue:o},{provide:la,useValue:i},{provide:os,useValue:A}],r;o.container?typeof o.container=="function"?r=o.container:(r=o.container.type,g.push(...o.container.providers(o))):r=Rm;let s=new Si(r,o.viewContainerRef,wA.create({parent:n||this._injector,providers:g}));return A.attach(s).instance}_attachDialogContent(A,i,o,n){if(A instanceof ge){let g=this._createInjector(n,i,o,void 0),r={$implicit:n.data,dialogRef:i};n.templateContext&&(r=R(R({},r),typeof n.templateContext=="function"?n.templateContext():n.templateContext)),o.attachTemplatePortal(new ii(A,null,r,g))}else{let g=this._createInjector(n,i,o,this._injector),r=o.attachComponentPortal(new Si(A,n.viewContainerRef,g));i.componentRef=r,i.componentInstance=r.instance}}_createInjector(A,i,o,n){let g=A.injector||A.viewContainerRef?.injector,r=[{provide:FO,useValue:A.data},{provide:la,useValue:i}];return A.providers&&(typeof A.providers=="function"?r.push(...A.providers(i,A,o)):r.push(...A.providers)),A.direction&&(!g||!g.get(Ne,null,{optional:!0}))&&r.push({provide:Ne,useValue:{value:A.direction,change:iA()}}),wA.create({parent:g||n,providers:r})}_removeOpenDialog(A,i){let o=this.openDialogs.indexOf(A);o>-1&&(this.openDialogs.splice(o,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((n,g)=>{n?g.setAttribute("aria-hidden",n):g.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),i&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){let A=this._overlayContainer.getContainerElement();if(A.parentElement){let i=A.parentElement.children;for(let o=i.length-1;o>-1;o--){let n=i[o];n!==A&&n.nodeName!=="SCRIPT"&&n.nodeName!=="STYLE"&&!n.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(n,n.getAttribute("aria-hidden")),n.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let A=this._parentDialog;return A?A._getAfterAllClosed():this._afterAllClosedAtThisLevel}static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Mm(t,e){let A=t.length;for(;A--;)e(t[A])}function SO(t,e){}var SE=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;width="";height="";minWidth;minHeight;maxWidth;maxHeight;position;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;delayFocusTrap=!0;scrollStrategy;closeOnNavigation=!0;componentFactoryResolver;enterAnimationDuration;exitAnimationDuration},km="mdc-dialog--open",Wk="mdc-dialog--opening",zk="mdc-dialog--closing",vO=150,NO=75,GO=(()=>{class t extends Rm{_animationMode=Q($A,{optional:!0});_animationStateChanged=new $;_animationsEnabled=this._animationMode!=="NoopAnimations";_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?Xk(this._config.enterAnimationDuration)??vO:0;_exitAnimationDuration=this._animationsEnabled?Xk(this._config.exitAnimationDuration)??NO:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(jk,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(Wk,km)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(km),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(km),this._animationsEnabled?(this._hostElement.style.setProperty(jk,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(zk)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(A){this._actionSectionCount+=A,this._changeDetectorRef.markForCheck()}_finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)};_finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})};_clearAnimationClasses(){this._hostElement.classList.remove(Wk,zk)}_waitForAnimationToComplete(A,i){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(i,A)}_requestAnimationFrame(A){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(A):A()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(A){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:A})}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer)}attachComponentPortal(A){let i=super.attachComponentPortal(A);return i.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),i}static \u0275fac=(()=>{let A;return function(o){return(A||(A=WA(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(i,o){i&2&&(Qt("id",o._config.id),IA("aria-modal",o._config.ariaModal)("role",o._config.role)("aria-labelledby",o._config.ariaLabel?null:o._ariaLabelledByQueue[0])("aria-label",o._config.ariaLabel)("aria-describedby",o._config.ariaDescribedBy||null),oA("_mat-animation-noopable",!o._animationsEnabled)("mat-mdc-dialog-container-with-actions",o._actionSectionCount>0))},features:[EA],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(i,o){i&1&&(u(0,"div",0)(1,"div",1),U(2,SO,0,0,"ng-template",2),m()())},dependencies:[oi],styles:['.mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 560px);min-width:var(--mat-dialog-container-min-width, 280px)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, calc(100vw - 32px))}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-dialog-container-elevation-shadow, none);border-radius:var(--mdc-dialog-container-shape, var(--mat-sys-corner-extra-large, 4px));background-color:var(--mdc-dialog-container-color, var(--mat-sys-surface, white))}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-mdc-dialog-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-dialog-title{display:block;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 6px 24px 13px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mdc-dialog-subhead-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mdc-dialog-subhead-font, var(--mat-sys-headline-small-font, inherit));line-height:var(--mdc-dialog-subhead-line-height, var(--mat-sys-headline-small-line-height, 1.5rem));font-size:var(--mdc-dialog-subhead-size, var(--mat-sys-headline-small-size, 1rem));font-weight:var(--mdc-dialog-subhead-weight, var(--mat-sys-headline-small-weight, 400));letter-spacing:var(--mdc-dialog-subhead-tracking, var(--mat-sys-headline-small-tracking, 0.03125em))}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mdc-dialog-supporting-text-color, var(--mat-sys-on-surface-variant, rgba(0, 0, 0, 0.6)));font-family:var(--mdc-dialog-supporting-text-font, var(--mat-sys-body-medium-font, inherit));line-height:var(--mdc-dialog-supporting-text-line-height, var(--mat-sys-body-medium-line-height, 1.5rem));font-size:var(--mdc-dialog-supporting-text-size, var(--mat-sys-body-medium-size, 1rem));font-weight:var(--mdc-dialog-supporting-text-weight, var(--mat-sys-body-medium-weight, 400));letter-spacing:var(--mdc-dialog-supporting-text-tracking, var(--mat-sys-body-medium-tracking, 0.03125em))}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px 0)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0);padding:var(--mat-dialog-actions-padding, 16px 24px);justify-content:var(--mat-dialog-actions-alignment, flex-end)}@media(forced-colors: active){.mat-mdc-dialog-actions{border-top-color:CanvasText}}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents}'],encapsulation:2})}return t})(),jk="--mat-dialog-transition-duration";function Xk(t){return t==null?null:typeof t=="number"?t:t.endsWith("ms")?Zt(t.substring(0,t.length-2)):t.endsWith("s")?Zt(t.substring(0,t.length-1))*1e3:t==="0"?0:null}var bE=function(t){return t[t.OPEN=0]="OPEN",t[t.CLOSING=1]="CLOSING",t[t.CLOSED=2]="CLOSED",t}(bE||{}),Vt=class{_ref;_containerInstance;componentInstance;componentRef;disableClose;id;_afterOpened=new _;_beforeClosed=new _;_result;_closeFallbackTimeout;_state=bE.OPEN;_closeInteractionType;constructor(e,A,i){this._ref=e,this._containerInstance=i,this.disableClose=A.disableClose,this.id=e.id,e.addPanelClass("mat-mdc-dialog-panel"),i._animationStateChanged.pipe(kA(o=>o.state==="opened"),de(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),i._animationStateChanged.pipe(kA(o=>o.state==="closed"),de(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),e.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),me(this.backdropClick(),this.keydownEvents().pipe(kA(o=>o.keyCode===27&&!this.disableClose&&!Oe(o)))).subscribe(o=>{this.disableClose||(o.preventDefault(),$k(this,o.type==="keydown"?"keyboard":"mouse"))})}close(e){this._result=e,this._containerInstance._animationStateChanged.pipe(kA(A=>A.state==="closing"),de(1)).subscribe(A=>{this._beforeClosed.next(e),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),A.totalTime+100)}),this._state=bE.CLOSING,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(e){let A=this._ref.config.positionStrategy;return e&&(e.left||e.right)?e.left?A.left(e.left):A.right(e.right):A.centerHorizontally(),e&&(e.top||e.bottom)?e.top?A.top(e.top):A.bottom(e.bottom):A.centerVertically(),this._ref.updatePosition(),this}updateSize(e="",A=""){return this._ref.updateSize(e,A),this}addPanelClass(e){return this._ref.addPanelClass(e),this}removePanelClass(e){return this._ref.removePanelClass(e),this}getState(){return this._state}_finishDialogClose(){this._state=bE.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};function $k(t,e,A){return t._closeInteractionType=e,t.close(A)}var Po=new k("MatMdcDialogData"),LO=new k("mat-mdc-dialog-default-options"),_O=new k("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let t=Q(Pe);return()=>t.scrollStrategies.block()}});var Rn=(()=>{class t{_overlay=Q(Pe);_defaultOptions=Q(LO,{optional:!0});_scrollStrategy=Q(_O);_parentDialog=Q(t,{optional:!0,skipSelf:!0});_idGenerator=Q(ce);_dialog=Q(Vk);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new _;_afterOpenedAtThisLevel=new _;dialogConfigClass=SE;_dialogRefConstructor;_dialogContainerType;_dialogDataToken;get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let A=this._parentDialog;return A?A._getAfterAllClosed():this._afterAllClosedAtThisLevel}afterAllClosed=Hi(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(De(void 0)));constructor(){this._dialogRefConstructor=Vt,this._dialogContainerType=GO,this._dialogDataToken=Po}open(A,i){let o;i=R(R({},this._defaultOptions||new SE),i),i.id=i.id||this._idGenerator.getId("mat-mdc-dialog-"),i.scrollStrategy=i.scrollStrategy||this._scrollStrategy();let n=this._dialog.open(A,hA(R({},i),{positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:i},{provide:Mn,useValue:i}]},templateContext:()=>({dialogRef:o}),providers:(g,r,s)=>(o=new this._dialogRefConstructor(g,i,s),o.updatePosition(i?.position),[{provide:this._dialogContainerType,useValue:s},{provide:this._dialogDataToken,useValue:r.data},{provide:this._dialogRefConstructor,useValue:o}])}));return o.componentRef=n.componentRef,o.componentInstance=n.componentInstance,this.openDialogs.push(o),this.afterOpened.next(o),o.afterClosed().subscribe(()=>{let g=this.openDialogs.indexOf(o);g>-1&&(this.openDialogs.splice(g,1),this.openDialogs.length||this._getAfterAllClosed().next())}),o}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(A){return this.openDialogs.find(i=>i.id===A)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(A){let i=A.length;for(;i--;)A[i].close()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Is=(()=>{class t{dialogRef=Q(Vt,{optional:!0});_elementRef=Q(q);_dialog=Q(Rn);ariaLabel;type="button";dialogResult;_matDialogClose;constructor(){}ngOnInit(){this.dialogRef||(this.dialogRef=eF(this._elementRef,this._dialog.openDialogs))}ngOnChanges(A){let i=A._matDialogClose||A._matDialogCloseResult;i&&(this.dialogResult=i.currentValue)}_onButtonClick(A){$k(this.dialogRef,A.screenX===0&&A.screenY===0?"keyboard":"mouse",this.dialogResult)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(i,o){i&1&&x("click",function(g){return o._onButtonClick(g)}),i&2&&IA("aria-label",o.ariaLabel||null)("type",o.type)},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],type:"type",dialogResult:[0,"mat-dialog-close","dialogResult"],_matDialogClose:[0,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[VA]})}return t})(),AF=(()=>{class t{_dialogRef=Q(Vt,{optional:!0});_elementRef=Q(q);_dialog=Q(Rn);constructor(){}ngOnInit(){this._dialogRef||(this._dialogRef=eF(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t})}return t})(),kn=(()=>{class t extends AF{id=Q(ce).getId("mat-mdc-dialog-title-");_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id)}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id)}static \u0275fac=(()=>{let A;return function(o){return(A||(A=WA(t)))(o||t)}})();static \u0275dir=Y({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(i,o){i&2&&Qt("id",o.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],features:[EA]})}return t})(),Fn=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],features:[Hy([Ho])]})}return t})(),bn=(()=>{class t extends AF{align;_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}static \u0275fac=(()=>{let A;return function(o){return(A||(A=WA(t)))(o||t)}})();static \u0275dir=Y({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(i,o){i&2&&oA("mat-mdc-dialog-actions-align-start",o.align==="start")("mat-mdc-dialog-actions-align-center",o.align==="center")("mat-mdc-dialog-actions-align-end",o.align==="end")},inputs:{align:"align"},features:[EA]})}return t})();function eF(t,e){let A=t.nativeElement.parentElement;for(;A&&!A.classList.contains("mat-mdc-dialog-container");)A=A.parentElement;return A?e.find(i=>i.id===A.id):null}var UO=[[["caption"]],[["colgroup"],["col"]],"*"],xO=["caption","colgroup, col","*"];function YO(t,e){t&1&&sA(0,2)}function JO(t,e){t&1&&(u(0,"thead",0),Je(1,1),m(),u(2,"tbody",0),Je(3,2)(4,3),m(),u(5,"tfoot",0),Je(6,4),m())}function HO(t,e){t&1&&Je(0,1)(1,2)(2,3)(3,4)}var vi=new k("CDK_TABLE");var KE=(()=>{class t{template=Q(ge);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["","cdkCellDef",""]]})}return t})(),UE=(()=>{class t{template=Q(ge);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["","cdkHeaderCellDef",""]]})}return t})(),oF=(()=>{class t{template=Q(ge);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["","cdkFooterCellDef",""]]})}return t})(),Cs=(()=>{class t{_table=Q(vi,{optional:!0});_hasStickyChanged=!1;get name(){return this._name}set name(A){this._setNameInput(A)}_name;get sticky(){return this._sticky}set sticky(A){A!==this._sticky&&(this._sticky=A,this._hasStickyChanged=!0)}_sticky=!1;get stickyEnd(){return this._stickyEnd}set stickyEnd(A){A!==this._stickyEnd&&(this._stickyEnd=A,this._hasStickyChanged=!0)}_stickyEnd=!1;cell;headerCell;footerCell;cssClassFriendlyName;_columnCssClassName;constructor(){}hasStickyChanged(){let A=this._hasStickyChanged;return this.resetStickyChanged(),A}resetStickyChanged(){this._hasStickyChanged=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(A){A&&(this._name=A,this.cssClassFriendlyName=A.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(i,o,n){if(i&1&&(jA(n,KE,5),jA(n,UE,5),jA(n,oF,5)),i&2){let g;z(g=j())&&(o.cell=g.first),z(g=j())&&(o.headerCell=g.first),z(g=j())&&(o.footerCell=g.first)}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",tA],stickyEnd:[2,"stickyEnd","stickyEnd",tA]},features:[LA([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}])]})}return t})(),NE=class{constructor(e,A){A.nativeElement.classList.add(...e._columnCssClassName)}},nF=(()=>{class t extends NE{constructor(){super(Q(Cs),Q(q))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[EA]})}return t})();var gF=(()=>{class t extends NE{constructor(){let A=Q(Cs),i=Q(q);super(A,i);let o=A._table?._getCellRole();o&&i.nativeElement.setAttribute("role",o)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[EA]})}return t})(),GE=class{tasks=[];endTasks=[]},LE=new k("_COALESCED_STYLE_SCHEDULER"),bm=(()=>{class t{_currentSchedule=null;_ngZone=Q(X);constructor(){}schedule(A){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(A)}scheduleEnd(A){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(A)}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new GE,this._ngZone.runOutsideAngular(()=>queueMicrotask(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){let A=this._currentSchedule;this._currentSchedule=new GE;for(let i of A.tasks)i();for(let i of A.endTasks)i()}this._currentSchedule=null})))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})();var Sm=(()=>{class t{template=Q(ge);_differs=Q(eo);columns;_columnsDiffer;constructor(){}ngOnChanges(A){if(!this._columnsDiffer){let i=A.columns&&A.columns.currentValue||[];this._columnsDiffer=this._differs.find(i).create(),this._columnsDiffer.diff(i)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(A){return this instanceof da?A.headerCell.template:this instanceof vm?A.footerCell.template:A.cell.template}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,features:[VA]})}return t})(),da=(()=>{class t extends Sm{_table=Q(vi,{optional:!0});_hasStickyChanged=!1;get sticky(){return this._sticky}set sticky(A){A!==this._sticky&&(this._sticky=A,this._hasStickyChanged=!0)}_sticky=!1;constructor(){super(Q(ge),Q(eo))}ngOnChanges(A){super.ngOnChanges(A)}hasStickyChanged(){let A=this._hasStickyChanged;return this.resetStickyChanged(),A}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",tA]},features:[EA,VA]})}return t})(),vm=(()=>{class t extends Sm{_table=Q(vi,{optional:!0});_hasStickyChanged=!1;get sticky(){return this._sticky}set sticky(A){A!==this._sticky&&(this._sticky=A,this._hasStickyChanged=!0)}_sticky=!1;constructor(){super(Q(ge),Q(eo))}ngOnChanges(A){super.ngOnChanges(A)}hasStickyChanged(){let A=this._hasStickyChanged;return this.resetStickyChanged(),A}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",tA]},features:[EA,VA]})}return t})(),xE=(()=>{class t extends Sm{_table=Q(vi,{optional:!0});when;constructor(){super(Q(ge),Q(eo))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},features:[EA]})}return t})(),bg=(()=>{class t{_viewContainer=Q(Ce);cells;context;static mostRecentCellOutlet=null;constructor(){t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["","cdkCellOutlet",""]]})}return t})(),Nm=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=T({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,o){i&1&&Je(0,0)},dependencies:[bg],encapsulation:2})}return t})();var Gm=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=T({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,o){i&1&&Je(0,0)},dependencies:[bg],encapsulation:2})}return t})(),rF=(()=>{class t{templateRef=Q(ge);_contentClassName="cdk-no-data-row";constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["ng-template","cdkNoDataRow",""]]})}return t})(),tF=["top","bottom","left","right"],Fm=class{_isNativeHtmlTable;_stickCellCss;direction;_coalescedStyleScheduler;_isBrowser;_needsPositionStickyOnElement;_positionListener;_tableInjector;_elemSizeCache=new WeakMap;_resizeObserver=globalThis?.ResizeObserver?new globalThis.ResizeObserver(e=>this._updateCachedSizes(e)):null;_updatedStickyColumnsParamsToReplay=[];_stickyColumnsReplayTimeout=null;_cachedCellWidths=[];_borderCellCss;_destroyed=!1;constructor(e,A,i,o,n=!0,g=!0,r,s){this._isNativeHtmlTable=e,this._stickCellCss=A,this.direction=i,this._coalescedStyleScheduler=o,this._isBrowser=n,this._needsPositionStickyOnElement=g,this._positionListener=r,this._tableInjector=s,this._borderCellCss={top:`${A}-border-elem-top`,bottom:`${A}-border-elem-bottom`,left:`${A}-border-elem-left`,right:`${A}-border-elem-right`}}clearStickyPositioning(e,A){(A.includes("left")||A.includes("right"))&&this._removeFromStickyColumnReplayQueue(e);let i=[];for(let o of e)o.nodeType===o.ELEMENT_NODE&&i.push(o,...Array.from(o.children));this._afterNextRender({write:()=>{for(let o of i)this._removeStickyStyle(o,A)}})}updateStickyColumns(e,A,i,o=!0,n=!0){if(!e.length||!this._isBrowser||!(A.some(L=>L)||i.some(L=>L))){this._positionListener?.stickyColumnsUpdated({sizes:[]}),this._positionListener?.stickyEndColumnsUpdated({sizes:[]});return}let g=e[0],r=g.children.length,s=this.direction==="rtl",I=s?"right":"left",B=s?"left":"right",c=A.lastIndexOf(!0),D=i.indexOf(!0),h,p,y;n&&this._updateStickyColumnReplayQueue({rows:[...e],stickyStartStates:[...A],stickyEndStates:[...i]}),this._afterNextRender({earlyRead:()=>{h=this._getCellWidths(g,o),p=this._getStickyStartColumnPositions(h,A),y=this._getStickyEndColumnPositions(h,i)},write:()=>{for(let L of e)for(let P=0;P<r;P++){let DA=L.children[P];A[P]&&this._addStickyStyle(DA,I,p[P],P===c),i[P]&&this._addStickyStyle(DA,B,y[P],P===D)}this._positionListener&&h.some(L=>!!L)&&(this._positionListener.stickyColumnsUpdated({sizes:c===-1?[]:h.slice(0,c+1).map((L,P)=>A[P]?L:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:D===-1?[]:h.slice(D).map((L,P)=>i[P+D]?L:null).reverse()}))}})}stickRows(e,A,i){if(!this._isBrowser)return;let o=i==="bottom"?e.slice().reverse():e,n=i==="bottom"?A.slice().reverse():A,g=[],r=[],s=[];this._afterNextRender({earlyRead:()=>{for(let I=0,B=0;I<o.length;I++){if(!n[I])continue;g[I]=B;let c=o[I];s[I]=this._isNativeHtmlTable?Array.from(c.children):[c];let D=this._retrieveElementSize(c).height;B+=D,r[I]=D}},write:()=>{let I=n.lastIndexOf(!0);for(let B=0;B<o.length;B++){if(!n[B])continue;let c=g[B],D=B===I;for(let h of s[B])this._addStickyStyle(h,i,c,D)}i==="top"?this._positionListener?.stickyHeaderRowsUpdated({sizes:r,offsets:g,elements:s}):this._positionListener?.stickyFooterRowsUpdated({sizes:r,offsets:g,elements:s})}})}updateStickyFooterContainer(e,A){this._isNativeHtmlTable&&this._afterNextRender({write:()=>{let i=e.querySelector("tfoot");i&&(A.some(o=>!o)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0,!1))}})}destroy(){this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._resizeObserver?.disconnect(),this._destroyed=!0}_removeStickyStyle(e,A){for(let o of A)e.style[o]="",e.classList.remove(this._borderCellCss[o]);tF.some(o=>A.indexOf(o)===-1&&e.style[o])?e.style.zIndex=this._getCalculatedZIndex(e):(e.style.zIndex="",this._needsPositionStickyOnElement&&(e.style.position=""),e.classList.remove(this._stickCellCss))}_addStickyStyle(e,A,i,o){e.classList.add(this._stickCellCss),o&&e.classList.add(this._borderCellCss[A]),e.style[A]=`${i}px`,e.style.zIndex=this._getCalculatedZIndex(e),this._needsPositionStickyOnElement&&(e.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(e){let A={top:100,bottom:10,left:1,right:1},i=0;for(let o of tF)e.style[o]&&(i+=A[o]);return i?`${i}`:""}_getCellWidths(e,A=!0){if(!A&&this._cachedCellWidths.length)return this._cachedCellWidths;let i=[],o=e.children;for(let n=0;n<o.length;n++){let g=o[n];i.push(this._retrieveElementSize(g).width)}return this._cachedCellWidths=i,i}_getStickyStartColumnPositions(e,A){let i=[],o=0;for(let n=0;n<e.length;n++)A[n]&&(i[n]=o,o+=e[n]);return i}_getStickyEndColumnPositions(e,A){let i=[],o=0;for(let n=e.length;n>0;n--)A[n]&&(i[n]=o,o+=e[n]);return i}_retrieveElementSize(e){let A=this._elemSizeCache.get(e);if(A)return A;let i=e.getBoundingClientRect(),o={width:i.width,height:i.height};return this._resizeObserver&&(this._elemSizeCache.set(e,o),this._resizeObserver.observe(e,{box:"border-box"})),o}_updateStickyColumnReplayQueue(e){this._removeFromStickyColumnReplayQueue(e.rows),this._stickyColumnsReplayTimeout||this._updatedStickyColumnsParamsToReplay.push(e)}_removeFromStickyColumnReplayQueue(e){let A=new Set(e);for(let i of this._updatedStickyColumnsParamsToReplay)i.rows=i.rows.filter(o=>!A.has(o));this._updatedStickyColumnsParamsToReplay=this._updatedStickyColumnsParamsToReplay.filter(i=>!!i.rows.length)}_updateCachedSizes(e){let A=!1;for(let i of e){let o=i.borderBoxSize?.length?{width:i.borderBoxSize[0].inlineSize,height:i.borderBoxSize[0].blockSize}:{width:i.contentRect.width,height:i.contentRect.height};o.width!==this._elemSizeCache.get(i.target)?.width&&TO(i.target)&&(A=!0),this._elemSizeCache.set(i.target,o)}A&&this._updatedStickyColumnsParamsToReplay.length&&(this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._stickyColumnsReplayTimeout=setTimeout(()=>{if(!this._destroyed){for(let i of this._updatedStickyColumnsParamsToReplay)this.updateStickyColumns(i.rows,i.stickyStartStates,i.stickyEndStates,!0,!1);this._updatedStickyColumnsParamsToReplay=[],this._stickyColumnsReplayTimeout=null}},0))}_afterNextRender(e){this._tableInjector?be(e,{injector:this._tableInjector}):this._coalescedStyleScheduler.schedule(()=>{e.earlyRead?.(),e.write()})}};function TO(t){return["cdk-cell","cdk-header-cell","cdk-footer-cell"].some(e=>t.classList.contains(e))}var _E=new k("CDK_SPL");var Lm=(()=>{class t{viewContainer=Q(Ce);elementRef=Q(q);constructor(){let A=Q(vi);A._rowOutlet=this,A._outletAssigned()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["","rowOutlet",""]]})}return t})(),_m=(()=>{class t{viewContainer=Q(Ce);elementRef=Q(q);constructor(){let A=Q(vi);A._headerRowOutlet=this,A._outletAssigned()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["","headerRowOutlet",""]]})}return t})(),Km=(()=>{class t{viewContainer=Q(Ce);elementRef=Q(q);constructor(){let A=Q(vi);A._footerRowOutlet=this,A._outletAssigned()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["","footerRowOutlet",""]]})}return t})(),Um=(()=>{class t{viewContainer=Q(Ce);elementRef=Q(q);constructor(){let A=Q(vi);A._noDataRowOutlet=this,A._outletAssigned()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["","noDataRowOutlet",""]]})}return t})();var xm=(()=>{class t{_differs=Q(eo);_changeDetectorRef=Q(zA);_elementRef=Q(q);_dir=Q(Ne,{optional:!0});_platform=Q(TA);_viewRepeater=Q(ra);_coalescedStyleScheduler=Q(LE);_viewportRuler=Q(ti);_stickyPositioningListener=Q(_E,{optional:!0,skipSelf:!0});_document=Q(lA);_data;_onDestroy=new _;_renderRows;_renderChangeSubscription;_columnDefsByName=new Map;_rowDefs;_headerRowDefs;_footerRowDefs;_dataDiffer;_defaultRowDef;_customColumnDefs=new Set;_customRowDefs=new Set;_customHeaderRowDefs=new Set;_customFooterRowDefs=new Set;_customNoDataRow;_headerRowDefChanged=!0;_footerRowDefChanged=!0;_stickyColumnStylesNeedReset=!0;_forceRecalculateCellWidths=!0;_cachedRenderRowsMap=new Map;_isNativeHtmlTable;_stickyStyler;stickyCssClass="cdk-table-sticky";needsPositionStickyOnElement=!0;_isServer;_isShowingNoDataRow=!1;_hasAllOutlets=!1;_hasInitialized=!1;_getCellRole(){if(this._cellRoleInternal===void 0){let A=this._elementRef.nativeElement.getAttribute("role");return A==="grid"||A==="treegrid"?"gridcell":"cell"}return this._cellRoleInternal}_cellRoleInternal=void 0;get trackBy(){return this._trackByFn}set trackBy(A){this._trackByFn=A}_trackByFn;get dataSource(){return this._dataSource}set dataSource(A){this._dataSource!==A&&this._switchDataSource(A)}_dataSource;get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(A){this._multiTemplateDataRows=A,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}_multiTemplateDataRows=!1;get fixedLayout(){return this._fixedLayout}set fixedLayout(A){this._fixedLayout=A,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}_fixedLayout=!1;contentChanged=new $;viewChange=new ee({start:0,end:Number.MAX_VALUE});_rowOutlet;_headerRowOutlet;_footerRowOutlet;_noDataRowOutlet;_contentColumnDefs;_contentRowDefs;_contentHeaderRowDefs;_contentFooterRowDefs;_noDataRow;_injector=Q(wA);constructor(){Q(new ft("role"),{optional:!0})||this._elementRef.nativeElement.setAttribute("role","table"),this._isServer=!this._platform.isBrowser,this._isNativeHtmlTable=this._elementRef.nativeElement.nodeName==="TABLE"}ngOnInit(){this._setupStickyStyler(),this._dataDiffer=this._differs.find([]).create((A,i)=>this.trackBy?this.trackBy(i.dataIndex,i.data):i),this._viewportRuler.change().pipe(mA(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentInit(){this._hasInitialized=!0}ngAfterContentChecked(){this._canRender()&&this._render()}ngOnDestroy(){this._stickyStyler?.destroy(),[this._rowOutlet?.viewContainer,this._headerRowOutlet?.viewContainer,this._footerRowOutlet?.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(A=>{A?.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),mE(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();let A=this._dataDiffer.diff(this._renderRows);if(!A){this._updateNoDataRow(),this.contentChanged.next();return}let i=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(A,i,(o,n,g)=>this._getEmbeddedViewArgs(o.item,g),o=>o.item.data,o=>{o.operation===es.INSERTED&&o.context&&this._renderCellTemplateForItem(o.record.item.rowDef,o.context)}),this._updateRowIndexContext(),A.forEachIdentityChange(o=>{let n=i.get(o.currentIndex);n.context.$implicit=o.item.data}),this._updateNoDataRow(),this.contentChanged.next(),this.updateStickyColumnStyles()}addColumnDef(A){this._customColumnDefs.add(A)}removeColumnDef(A){this._customColumnDefs.delete(A)}addRowDef(A){this._customRowDefs.add(A)}removeRowDef(A){this._customRowDefs.delete(A)}addHeaderRowDef(A){this._customHeaderRowDefs.add(A),this._headerRowDefChanged=!0}removeHeaderRowDef(A){this._customHeaderRowDefs.delete(A),this._headerRowDefChanged=!0}addFooterRowDef(A){this._customFooterRowDefs.add(A),this._footerRowDefChanged=!0}removeFooterRowDef(A){this._customFooterRowDefs.delete(A),this._footerRowDefChanged=!0}setNoDataRow(A){this._customNoDataRow=A}updateStickyHeaderRowStyles(){let A=this._getRenderedRows(this._headerRowOutlet);if(this._isNativeHtmlTable){let o=iF(this._headerRowOutlet,"thead");o&&(o.style.display=A.length?"":"none")}let i=this._headerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(A,["top"]),this._stickyStyler.stickRows(A,i,"top"),this._headerRowDefs.forEach(o=>o.resetStickyChanged())}updateStickyFooterRowStyles(){let A=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){let o=iF(this._footerRowOutlet,"tfoot");o&&(o.style.display=A.length?"":"none")}let i=this._footerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(A,["bottom"]),this._stickyStyler.stickRows(A,i,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,i),this._footerRowDefs.forEach(o=>o.resetStickyChanged())}updateStickyColumnStyles(){let A=this._getRenderedRows(this._headerRowOutlet),i=this._getRenderedRows(this._rowOutlet),o=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...A,...i,...o],["left","right"]),this._stickyColumnStylesNeedReset=!1),A.forEach((n,g)=>{this._addStickyColumnStyles([n],this._headerRowDefs[g])}),this._rowDefs.forEach(n=>{let g=[];for(let r=0;r<i.length;r++)this._renderRows[r].rowDef===n&&g.push(i[r]);this._addStickyColumnStyles(g,n)}),o.forEach((n,g)=>{this._addStickyColumnStyles([n],this._footerRowDefs[g])}),Array.from(this._columnDefsByName.values()).forEach(n=>n.resetStickyChanged())}_outletAssigned(){!this._hasAllOutlets&&this._rowOutlet&&this._headerRowOutlet&&this._footerRowOutlet&&this._noDataRowOutlet&&(this._hasAllOutlets=!0,this._canRender()&&this._render())}_canRender(){return this._hasAllOutlets&&this._hasInitialized}_render(){this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&this._rowDefs.length;let i=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||i,this._forceRecalculateCellWidths=i,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}_getAllRenderRows(){let A=[],i=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let o=0;o<this._data.length;o++){let n=this._data[o],g=this._getRenderRowsForData(n,o,i.get(n));this._cachedRenderRowsMap.has(n)||this._cachedRenderRowsMap.set(n,new WeakMap);for(let r=0;r<g.length;r++){let s=g[r],I=this._cachedRenderRowsMap.get(s.data);I.has(s.rowDef)?I.get(s.rowDef).push(s):I.set(s.rowDef,[s]),A.push(s)}}return A}_getRenderRowsForData(A,i,o){return this._getRowDefs(A,i).map(g=>{let r=o&&o.has(g)?o.get(g):[];if(r.length){let s=r.shift();return s.dataIndex=i,s}else return{data:A,rowDef:g,dataIndex:i}})}_cacheColumnDefs(){this._columnDefsByName.clear(),vE(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(i=>{this._columnDefsByName.has(i.name),this._columnDefsByName.set(i.name,i)})}_cacheRowDefs(){this._headerRowDefs=vE(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=vE(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=vE(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);let A=this._rowDefs.filter(i=>!i.when);!this.multiTemplateDataRows&&A.length>1,this._defaultRowDef=A[0]}_renderUpdatedColumns(){let A=(g,r)=>{let s=!!r.getColumnsDiff();return g||s},i=this._rowDefs.reduce(A,!1);i&&this._forceRenderDataRows();let o=this._headerRowDefs.reduce(A,!1);o&&this._forceRenderHeaderRows();let n=this._footerRowDefs.reduce(A,!1);return n&&this._forceRenderFooterRows(),i||o||n}_switchDataSource(A){this._data=[],mE(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),A||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet&&this._rowOutlet.viewContainer.clear()),this._dataSource=A}_observeRenderChanges(){if(!this.dataSource)return;let A;mE(this.dataSource)?A=this.dataSource.connect(this):zo(this.dataSource)?A=this.dataSource:Array.isArray(this.dataSource)&&(A=iA(this.dataSource)),this._renderChangeSubscription=A.pipe(mA(this._onDestroy)).subscribe(i=>{this._data=i||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((A,i)=>this._renderRow(this._headerRowOutlet,A,i)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((A,i)=>this._renderRow(this._footerRowOutlet,A,i)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(A,i){let o=Array.from(i?.columns||[]).map(r=>{let s=this._columnDefsByName.get(r);return s}),n=o.map(r=>r.sticky),g=o.map(r=>r.stickyEnd);this._stickyStyler.updateStickyColumns(A,n,g,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(A){let i=[];for(let o=0;o<A.viewContainer.length;o++){let n=A.viewContainer.get(o);i.push(n.rootNodes[0])}return i}_getRowDefs(A,i){if(this._rowDefs.length==1)return[this._rowDefs[0]];let o=[];if(this.multiTemplateDataRows)o=this._rowDefs.filter(n=>!n.when||n.when(i,A));else{let n=this._rowDefs.find(g=>g.when&&g.when(i,A))||this._defaultRowDef;n&&o.push(n)}return o.length,o}_getEmbeddedViewArgs(A,i){let o=A.rowDef,n={$implicit:A.data};return{templateRef:o.template,context:n,index:i}}_renderRow(A,i,o,n={}){let g=A.viewContainer.createEmbeddedView(i.template,n,o);return this._renderCellTemplateForItem(i,n),g}_renderCellTemplateForItem(A,i){for(let o of this._getCellTemplates(A))bg.mostRecentCellOutlet&&bg.mostRecentCellOutlet._viewContainer.createEmbeddedView(o,i);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){let A=this._rowOutlet.viewContainer;for(let i=0,o=A.length;i<o;i++){let g=A.get(i).context;g.count=o,g.first=i===0,g.last=i===o-1,g.even=i%2===0,g.odd=!g.even,this.multiTemplateDataRows?(g.dataIndex=this._renderRows[i].dataIndex,g.renderIndex=i):g.index=this._renderRows[i].dataIndex}}_getCellTemplates(A){return!A||!A.columns?[]:Array.from(A.columns,i=>{let o=this._columnDefsByName.get(i);return A.extractCellTemplate(o)})}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){let A=(i,o)=>i||o.hasStickyChanged();this._headerRowDefs.reduce(A,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(A,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(A,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){let A=this._dir?this._dir.value:"ltr";this._stickyStyler=new Fm(this._isNativeHtmlTable,this.stickyCssClass,A,this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener,this._injector),(this._dir?this._dir.change:iA()).pipe(mA(this._onDestroy)).subscribe(i=>{this._stickyStyler.direction=i,this.updateStickyColumnStyles()})}_getOwnDefs(A){return A.filter(i=>!i._table||i._table===this)}_updateNoDataRow(){let A=this._customNoDataRow||this._noDataRow;if(!A)return;let i=this._rowOutlet.viewContainer.length===0;if(i===this._isShowingNoDataRow)return;let o=this._noDataRowOutlet.viewContainer;if(i){let n=o.createEmbeddedView(A.templateRef),g=n.rootNodes[0];n.rootNodes.length===1&&g?.nodeType===this._document.ELEMENT_NODE&&(g.setAttribute("role","row"),g.classList.add(A._contentClassName))}else o.clear();this._isShowingNoDataRow=i,this._changeDetectorRef.markForCheck()}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=T({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(i,o,n){if(i&1&&(jA(n,rF,5),jA(n,Cs,5),jA(n,xE,5),jA(n,da,5),jA(n,vm,5)),i&2){let g;z(g=j())&&(o._noDataRow=g.first),z(g=j())&&(o._contentColumnDefs=g),z(g=j())&&(o._contentRowDefs=g),z(g=j())&&(o._contentHeaderRowDefs=g),z(g=j())&&(o._contentFooterRowDefs=g)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(i,o){i&2&&oA("cdk-table-fixed-layout",o.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:[2,"multiTemplateDataRows","multiTemplateDataRows",tA],fixedLayout:[2,"fixedLayout","fixedLayout",tA]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[LA([{provide:vi,useExisting:t},{provide:ra,useClass:ts},{provide:LE,useClass:bm},{provide:_E,useValue:null}])],ngContentSelectors:xO,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(i,o){i&1&&(ZA(UO),sA(0),sA(1,1),U(2,YO,1,0)(3,JO,7,0)(4,HO,4,0)),i&2&&(f(2),pA(o._isServer?2:-1),f(),pA(o._isNativeHtmlTable?3:4))},dependencies:[_m,Lm,Um,Km],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2})}return t})();function vE(t,e){return t.concat(Array.from(e))}function iF(t,e){let A=e.toUpperCase(),i=t.viewContainer.element.nativeElement;for(;i;){let o=i.nodeType===1?i.nodeName:null;if(o===A)return i;if(o==="TABLE")break;i=i.parentNode}return null}var sF=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=Z({imports:[sa]})}return t})();var OO=[[["caption"]],[["colgroup"],["col"]],"*"],PO=["caption","colgroup, col","*"];function ZO(t,e){t&1&&sA(0,2)}function qO(t,e){t&1&&(u(0,"thead",0),Je(1,1),m(),u(2,"tbody",2),Je(3,3)(4,4),m(),u(5,"tfoot",0),Je(6,5),m())}function VO(t,e){t&1&&Je(0,1)(1,3)(2,4)(3,5)}var IF=(()=>{class t extends xm{stickyCssClass="mat-mdc-table-sticky";needsPositionStickyOnElement=!1;static \u0275fac=(()=>{let A;return function(o){return(A||(A=WA(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(i,o){i&2&&oA("mdc-table-fixed-layout",o.fixedLayout)},exportAs:["matTable"],features:[LA([{provide:xm,useExisting:t},{provide:vi,useExisting:t},{provide:LE,useClass:bm},{provide:ra,useClass:ts},{provide:_E,useValue:null}]),EA],ngContentSelectors:PO,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(i,o){i&1&&(ZA(OO),sA(0),sA(1,1),U(2,ZO,1,0)(3,qO,7,0)(4,VO,4,0)),i&2&&(f(2),pA(o._isServer?2:-1),f(),pA(o._isNativeHtmlTable?3:4))},dependencies:[_m,Lm,Um,Km],styles:[".mat-mdc-table-sticky{position:sticky !important}mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}.mat-mdc-table{min-width:100%;border:0;border-spacing:0;table-layout:auto;white-space:normal;background-color:var(--mat-table-background-color, var(--mat-sys-surface))}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell{text-align:right}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px}.mat-mdc-header-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-header-container-height, 56px);color:var(--mat-table-header-headline-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mat-table-header-headline-font, var(--mat-sys-title-small-font, Roboto, sans-serif));line-height:var(--mat-table-header-headline-line-height, var(--mat-sys-title-small-line-height));font-size:var(--mat-table-header-headline-size, var(--mat-sys-title-small-size, 14px));font-weight:var(--mat-table-header-headline-weight, var(--mat-sys-title-small-weight, 500))}.mat-mdc-row{height:var(--mat-table-row-item-container-height, 52px);color:var(--mat-table-row-item-label-text-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)))}.mat-mdc-row,.mdc-data-table__content{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-table-row-item-label-text-font, var(--mat-sys-body-medium-font, Roboto, sans-serif));line-height:var(--mat-table-row-item-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-table-row-item-label-text-size, var(--mat-sys-body-medium-size, 14px));font-weight:var(--mat-table-row-item-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-footer-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-footer-container-height, 52px);color:var(--mat-table-row-item-label-text-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mat-table-footer-supporting-text-font, var(--mat-sys-body-medium-font, Roboto, sans-serif));line-height:var(--mat-table-footer-supporting-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-table-footer-supporting-text-size, var(--mat-sys-body-medium-size, 14px));font-weight:var(--mat-table-footer-supporting-text-weight, var(--mat-sys-body-medium-weight));letter-spacing:var(--mat-table-footer-supporting-text-tracking, var(--mat-sys-body-medium-tracking))}.mat-mdc-header-cell{border-bottom-color:var(--mat-table-row-item-outline-color, var(--mat-sys-outline, rgba(0, 0, 0, 0.12)));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-header-headline-tracking, var(--mat-sys-title-small-tracking));font-weight:inherit;line-height:inherit;box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mat-mdc-header-cell{text-align:right}.mdc-data-table__row:last-child>.mat-mdc-header-cell{border-bottom:none}.mat-mdc-cell{border-bottom-color:var(--mat-table-row-item-outline-color, var(--mat-sys-outline, rgba(0, 0, 0, 0.12)));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-row-item-label-text-tracking, var(--mat-sys-body-medium-tracking));line-height:inherit}.mdc-data-table__row:last-child>.mat-mdc-cell{border-bottom:none}.mat-mdc-footer-cell{letter-spacing:var(--mat-table-row-item-label-text-tracking, var(--mat-sys-body-medium-tracking))}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-header-row,.mat-mdc-row,.mat-mdc-footer-row,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch}"],encapsulation:2})}return t})(),aF=(()=>{class t extends KE{static \u0275fac=(()=>{let A;return function(o){return(A||(A=WA(t)))(o||t)}})();static \u0275dir=Y({type:t,selectors:[["","matCellDef",""]],features:[LA([{provide:KE,useExisting:t}]),EA]})}return t})(),CF=(()=>{class t extends UE{static \u0275fac=(()=>{let A;return function(o){return(A||(A=WA(t)))(o||t)}})();static \u0275dir=Y({type:t,selectors:[["","matHeaderCellDef",""]],features:[LA([{provide:UE,useExisting:t}]),EA]})}return t})();var BF=(()=>{class t extends Cs{get name(){return this._name}set name(A){this._setNameInput(A)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}static \u0275fac=(()=>{let A;return function(o){return(A||(A=WA(t)))(o||t)}})();static \u0275dir=Y({type:t,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},features:[LA([{provide:Cs,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),EA]})}return t})(),QF=(()=>{class t extends nF{static \u0275fac=(()=>{let A;return function(o){return(A||(A=WA(t)))(o||t)}})();static \u0275dir=Y({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[EA]})}return t})();var EF=(()=>{class t extends gF{static \u0275fac=(()=>{let A;return function(o){return(A||(A=WA(t)))(o||t)}})();static \u0275dir=Y({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[EA]})}return t})();var cF=(()=>{class t extends da{static \u0275fac=(()=>{let A;return function(o){return(A||(A=WA(t)))(o||t)}})();static \u0275dir=Y({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",tA]},features:[LA([{provide:da,useExisting:t}]),EA]})}return t})();var lF=(()=>{class t extends xE{static \u0275fac=(()=>{let A;return function(o){return(A||(A=WA(t)))(o||t)}})();static \u0275dir=Y({type:t,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},features:[LA([{provide:xE,useExisting:t}]),EA]})}return t})(),dF=(()=>{class t extends Nm{static \u0275fac=(()=>{let A;return function(o){return(A||(A=WA(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[LA([{provide:Nm,useExisting:t}]),EA],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,o){i&1&&Je(0,0)},dependencies:[bg],encapsulation:2})}return t})();var hF=(()=>{class t extends Gm{static \u0275fac=(()=>{let A;return function(o){return(A||(A=WA(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[LA([{provide:Gm,useExisting:t}]),EA],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,o){i&1&&Je(0,0)},dependencies:[bg],encapsulation:2})}return t})();var uF=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=Z({imports:[MA,sF,MA]})}return t})(),WO=9007199254740991,ha=class extends uE{_data;_renderData=new ee([]);_filter=new ee("");_internalPageChanges=new _;_renderChangesSubscription=null;filteredData;get data(){return this._data.value}set data(e){e=Array.isArray(e)?e:[],this._data.next(e),this._renderChangesSubscription||this._filterData(e)}get filter(){return this._filter.value}set filter(e){this._filter.next(e),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(e){this._sort=e,this._updateChangeSubscription()}_sort;get paginator(){return this._paginator}set paginator(e){this._paginator=e,this._updateChangeSubscription()}_paginator;sortingDataAccessor=(e,A)=>{let i=e[A];if(Lu(i)){let o=Number(i);return o<WO?o:i}return i};sortData=(e,A)=>{let i=A.active,o=A.direction;return!i||o==""?e:e.sort((n,g)=>{let r=this.sortingDataAccessor(n,i),s=this.sortingDataAccessor(g,i),I=typeof r,B=typeof s;I!==B&&(I==="number"&&(r+=""),B==="number"&&(s+=""));let c=0;return r!=null&&s!=null?r>s?c=1:r<s&&(c=-1):r!=null?c=1:s!=null&&(c=-1),c*(o=="asc"?1:-1)})};filterPredicate=(e,A)=>{let i=A.trim().toLowerCase();return Object.values(e).some(o=>`${o}`.toLowerCase().includes(i))};constructor(e=[]){super(),this._data=new ee(e),this._updateChangeSubscription()}_updateChangeSubscription(){let e=this._sort?me(this._sort.sortChange,this._sort.initialized):iA(null),A=this._paginator?me(this._paginator.page,this._internalPageChanges,this._paginator.initialized):iA(null),i=this._data,o=Bi([i,this._filter]).pipe(nA(([r])=>this._filterData(r))),n=Bi([o,e]).pipe(nA(([r])=>this._orderData(r))),g=Bi([n,A]).pipe(nA(([r])=>this._pageData(r)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=g.subscribe(r=>this._renderData.next(r))}_filterData(e){return this.filteredData=this.filter==null||this.filter===""?e:e.filter(A=>this.filterPredicate(A,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(e){return this.sort?this.sortData(e.slice(),this.sort):e}_pageData(e){if(!this.paginator)return e;let A=this.paginator.pageIndex*this.paginator.pageSize;return e.slice(A,A+this.paginator.pageSize)}_updatePaginator(e){Promise.resolve().then(()=>{let A=this.paginator;if(A&&(A.length=e,A.pageIndex>0)){let i=Math.ceil(A.length/A.pageSize)-1||0,o=Math.min(A.pageIndex,i);o!==A.pageIndex&&(A.pageIndex=o,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}};var $e=[];for(let t=0;t<256;++t)$e.push((t+256).toString(16).slice(1));function mF(t,e=0){return($e[t[e+0]]+$e[t[e+1]]+$e[t[e+2]]+$e[t[e+3]]+"-"+$e[t[e+4]]+$e[t[e+5]]+"-"+$e[t[e+6]]+$e[t[e+7]]+"-"+$e[t[e+8]]+$e[t[e+9]]+"-"+$e[t[e+10]]+$e[t[e+11]]+$e[t[e+12]]+$e[t[e+13]]+$e[t[e+14]]+$e[t[e+15]]).toLowerCase()}var Ym,jO=new Uint8Array(16);function Jm(){if(!Ym){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Ym=crypto.getRandomValues.bind(crypto)}return Ym(jO)}var XO=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Hm={randomUUID:XO};function $O(t,e,A){if(Hm.randomUUID&&!e&&!t)return Hm.randomUUID();t=t||{};let i=t.random??t.rng?.()??Jm();if(i.length<16)throw new Error("Random bytes length must be >= 16");if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,e){if(A=A||0,A<0||A+16>e.length)throw new RangeError(`UUID byte range ${A}:${A+15} is out of buffer bounds`);for(let o=0;o<16;++o)e[A+o]=i[o];return e}return mF(i)}var ua=$O;var co=class t{constructor(e){this.http=e}apiServerDomain=nt.getApiServerBaseUrl();getEvalSets(e){if(this.apiServerDomain!=null){let A=this.apiServerDomain+`/apps/${e}/eval_sets`;return this.http.get(A)}return new QA}createNewEvalSet(e,A){let i=this.apiServerDomain+`/apps/${e}/eval_sets/${A}`;return this.http.post(i,{})}listEvalCases(e,A){let i=this.apiServerDomain+`/apps/${e}/eval_sets/${A}/evals`;return this.http.get(i,{})}addCurrentSession(e,A,i,o,n){let g=this.apiServerDomain+`/apps/${e}/eval_sets/${A}/add_session`;return this.http.post(g,{eval_id:i,session_id:o,user_id:n})}runEval(e,A,i,o){let n=this.apiServerDomain+`/apps/${e}/eval_sets/${A}/run_eval`;return this.http.post(n,{eval_ids:i,eval_metrics:o})}static \u0275fac=function(A){return new(A||t)(O(ot))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})};var A2=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=T({type:t,selectors:[["ng-component"]],hostAttrs:["cdk-text-field-style-loader",""],decls:0,vars:0,template:function(i,o){},styles:["textarea.cdk-textarea-autosize{resize:none}textarea.cdk-textarea-autosize-measuring{padding:2px 0 !important;box-sizing:content-box !important;height:auto !important;overflow:hidden !important}textarea.cdk-textarea-autosize-measuring-firefox{padding:2px 0 !important;box-sizing:content-box !important;height:0 !important}@keyframes cdk-text-field-autofill-start{/*!*/}@keyframes cdk-text-field-autofill-end{/*!*/}.cdk-text-field-autofill-monitored:-webkit-autofill{animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored:not(:-webkit-autofill){animation:cdk-text-field-autofill-end 0s 1ms}"],encapsulation:2,changeDetection:0})}return t})(),DF=Co({passive:!0}),fF=(()=>{class t{_platform=Q(TA);_ngZone=Q(X);_styleLoader=Q(Se);_monitoredElements=new Map;constructor(){}monitor(A){if(!this._platform.isBrowser)return Le;this._styleLoader.load(A2);let i=Ft(A),o=this._monitoredElements.get(i);if(o)return o.subject;let n=new _,g="cdk-text-field-autofilled",r=s=>{s.animationName==="cdk-text-field-autofill-start"&&!i.classList.contains(g)?(i.classList.add(g),this._ngZone.run(()=>n.next({target:s.target,isAutofilled:!0}))):s.animationName==="cdk-text-field-autofill-end"&&i.classList.contains(g)&&(i.classList.remove(g),this._ngZone.run(()=>n.next({target:s.target,isAutofilled:!1})))};return this._ngZone.runOutsideAngular(()=>{i.addEventListener("animationstart",r,DF),i.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(i,{subject:n,unlisten:()=>{i.removeEventListener("animationstart",r,DF)}}),n}stopMonitoring(A){let i=Ft(A),o=this._monitoredElements.get(i);o&&(o.unlisten(),o.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((A,i)=>this.stopMonitoring(i))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var pF=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=Z({})}return t})();var e2=new k("MAT_INPUT_VALUE_ACCESSOR"),t2=["button","checkbox","file","hidden","image","radio","range","reset","submit"],i2=new k("MAT_INPUT_CONFIG"),Sn=(()=>{class t{_elementRef=Q(q);_platform=Q(TA);ngControl=Q(Ri,{optional:!0,self:!0});_autofillMonitor=Q(fF);_ngZone=Q(X);_formField=Q(Qa,{optional:!0});_renderer=Q(Me);_uid=Q(ce).getId("mat-input-");_previousNativeValue;_inputValueAccessor;_signalBasedValueAccessor;_previousPlaceholder;_errorStateTracker;_config=Q(i2,{optional:!0});_cleanupIosKeyup;_cleanupWebkitWheel;_formFieldDescribedBy;_isServer;_isNativeSelect;_isTextarea;_isInFormField;focused=!1;stateChanges=new _;controlType="mat-input";autofilled=!1;get disabled(){return this._disabled}set disabled(A){this._disabled=pe(A),this.focused&&(this.focused=!1,this.stateChanges.next())}_disabled=!1;get id(){return this._id}set id(A){this._id=A||this._uid}_id;placeholder;name;get required(){return this._required??this.ngControl?.control?.hasValidator(Fr.required)??!1}set required(A){this._required=pe(A)}_required;get type(){return this._type}set type(A){let i=this._type;this._type=A||"text",this._validateType(),!this._isTextarea&&vu().has(this._type)&&(this._elementRef.nativeElement.type=this._type),this._type!==i&&this._ensureWheelDefaultBehavior()}_type="text";get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(A){this._errorStateTracker.matcher=A}userAriaDescribedBy;get value(){return this._signalBasedValueAccessor?this._signalBasedValueAccessor.value():this._inputValueAccessor.value}set value(A){A!==this.value&&(this._signalBasedValueAccessor?this._signalBasedValueAccessor.value.set(A):this._inputValueAccessor.value=A,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(A){this._readonly=pe(A)}_readonly=!1;disabledInteractive;get errorState(){return this._errorStateTracker.errorState}set errorState(A){this._errorStateTracker.errorState=A}_neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(A=>vu().has(A));constructor(){let A=Q(KI,{optional:!0}),i=Q(UI,{optional:!0}),o=Q(Xr),n=Q(e2,{optional:!0,self:!0}),g=this._elementRef.nativeElement,r=g.nodeName.toLowerCase();n?rn(n.value)?this._signalBasedValueAccessor=n:this._inputValueAccessor=n:this._inputValueAccessor=g,this._previousNativeValue=this.value,this.id=this.id,this._platform.IOS&&this._ngZone.runOutsideAngular(()=>{this._cleanupIosKeyup=this._renderer.listen(g,"keyup",this._iOSKeyupListener)}),this._errorStateTracker=new wg(o,this.ngControl,i,A,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=r==="select",this._isTextarea=r==="textarea",this._isInFormField=!!this._formField,this.disabledInteractive=this._config?.disabledInteractive||!1,this._isNativeSelect&&(this.controlType=g.multiple?"mat-native-select-multiple":"mat-native-select"),this._signalBasedValueAccessor&&EI(()=>{this._signalBasedValueAccessor.value(),this.stateChanges.next()})}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(A=>{this.autofilled=A.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._cleanupIosKeyup?.(),this._cleanupWebkitWheel?.()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==null&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(A){this._elementRef.nativeElement.focus(A)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(A){if(A!==this.focused){if(!this._isNativeSelect&&A&&this.disabled&&this.disabledInteractive){let i=this._elementRef.nativeElement;i.type==="number"?(i.type="text",i.setSelectionRange(0,0),i.type="number"):i.setSelectionRange(0,0)}this.focused=A,this.stateChanges.next()}}_onInput(){}_dirtyCheckNativeValue(){let A=this._elementRef.nativeElement.value;this._previousNativeValue!==A&&(this._previousNativeValue=A,this.stateChanges.next())}_dirtyCheckPlaceholder(){let A=this._getPlaceholder();if(A!==this._previousPlaceholder){let i=this._elementRef.nativeElement;this._previousPlaceholder=A,A?i.setAttribute("placeholder",A):i.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){t2.indexOf(this._type)>-1}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let A=this._elementRef.nativeElement.validity;return A&&A.badInput}get empty(){return!this._isNeverEmpty()&&!this._elementRef.nativeElement.value&&!this._isBadInput()&&!this.autofilled}get shouldLabelFloat(){if(this._isNativeSelect){let A=this._elementRef.nativeElement,i=A.options[0];return this.focused||A.multiple||!this.empty||!!(A.selectedIndex>-1&&i&&i.label)}else return this.focused&&!this.disabled||!this.empty}setDescribedByIds(A){let i=this._elementRef.nativeElement,o=i.getAttribute("aria-describedby"),n;if(o){let g=this._formFieldDescribedBy||A;n=A.concat(o.split(" ").filter(r=>r&&!g.includes(r)))}else n=A;this._formFieldDescribedBy=A,n.length?i.setAttribute("aria-describedby",n.join(" ")):i.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){let A=this._elementRef.nativeElement;return this._isNativeSelect&&(A.multiple||A.size>1)}_iOSKeyupListener=A=>{let i=A.target;!i.value&&i.selectionStart===0&&i.selectionEnd===0&&(i.setSelectionRange(1,1),i.setSelectionRange(0,0))};_webkitBlinkWheelListener=()=>{};_ensureWheelDefaultBehavior(){this._cleanupWebkitWheel?.(),this._type==="number"&&(this._platform.BLINK||this._platform.WEBKIT)&&(this._cleanupWebkitWheel=this._renderer.listen(this._elementRef.nativeElement,"wheel",this._webkitBlinkWheelListener))}_getReadonlyAttribute(){return this._isNativeSelect?null:this.readonly||this.disabled&&this.disabledInteractive?"true":null}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:21,hostBindings:function(i,o){i&1&&x("focus",function(){return o._focusChanged(!0)})("blur",function(){return o._focusChanged(!1)})("input",function(){return o._onInput()}),i&2&&(Qt("id",o.id)("disabled",o.disabled&&!o.disabledInteractive)("required",o.required),IA("name",o.name||null)("readonly",o._getReadonlyAttribute())("aria-disabled",o.disabled&&o.disabledInteractive?"true":null)("aria-invalid",o.empty&&o.required?null:o.errorState)("aria-required",o.required)("id",o.id),oA("mat-input-server",o._isServer)("mat-mdc-form-field-textarea-control",o._isInFormField&&o._isTextarea)("mat-mdc-form-field-input-control",o._isInFormField)("mat-mdc-input-disabled-interactive",o.disabledInteractive)("mdc-text-field__input",o._isInFormField)("mat-mdc-native-select-inline",o._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly",disabledInteractive:[2,"disabledInteractive","disabledInteractive",tA]},exportAs:["matInput"],features:[LA([{provide:Ba,useExisting:t}]),VA]})}return t})(),YE=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=Z({imports:[MA,Oo,Oo,pF,MA]})}return t})();var ma=class t{constructor(e,A,i){this.evalService=e;this.data=A;this.dialogRef=i}newCaseId="case"+ua().slice(0,6);createNewEvalCase(){!this.newCaseId||this.newCaseId==""?alert("Cannot create eval set with empty id!"):this.evalService.addCurrentSession(this.data.appName,this.data.evalSetId,this.newCaseId,this.data.sessionId,this.data.userId).subscribe(e=>{console.log(e),this.dialogRef.close(!0)})}static \u0275fac=function(A){return new(A||t)(AA(co),AA(Po),AA(Vt))};static \u0275cmp=T({type:t,selectors:[["app-add-eval-session-dialog"]],standalone:!1,decls:11,vars:1,consts:[["mat-dialog-title",""],[2,"padding-left","20px","padding-right","24px"],["matInput","",3,"ngModelChange","ngModel"],["align","end"],["mat-button","","mat-dialog-close",""],["mat-button","","cdkFocusInitial","",3,"click"]],template:function(A,i){A&1&&(u(0,"h2",0),G(1,"Add Current Session To Eval Set"),m(),u(2,"mat-dialog-content"),G(3,` Please enter the eval case name
`),m(),u(4,"mat-form-field",1)(5,"input",2),yi("ngModelChange",function(n){return Ao(i.newCaseId,n)||(i.newCaseId=n),n}),m()(),u(6,"mat-dialog-actions",3)(7,"button",4),G(8,"Cancel"),m(),u(9,"button",5),x("click",function(){return i.createNewEvalCase()}),G(10,"Create"),m()()),A&2&&(f(5),wi("ngModel",i.newCaseId))},dependencies:[oo,no,ki,Eo,Sn,bt,kn,Fn,bn,Is],encapsulation:2})};var Da=class t{constructor(e,A,i){this.evalService=e;this.data=A;this.dialogRef=i}newSetId="evalset"+ua().slice(0,6);createNewEvalSet(){!this.newSetId||this.newSetId==""?alert("Cannot create eval set with empty id!"):this.evalService.createNewEvalSet(this.data.appName,this.newSetId).subscribe(e=>{this.dialogRef.close(!0)})}static \u0275fac=function(A){return new(A||t)(AA(co),AA(Po),AA(Vt))};static \u0275cmp=T({type:t,selectors:[["app-new-eval-set-dialog-component"]],standalone:!1,decls:11,vars:1,consts:[["mat-dialog-title",""],[2,"padding-left","20px","padding-right","24px"],["matInput","",3,"ngModelChange","ngModel"],["align","end"],["mat-button","","mat-dialog-close",""],["mat-button","","cdkFocusInitial","",3,"click"]],template:function(A,i){A&1&&(u(0,"h2",0),G(1,"Create New Eval Set"),m(),u(2,"mat-dialog-content"),G(3,` Please enter the eval set name
`),m(),u(4,"mat-form-field",1)(5,"input",2),yi("ngModelChange",function(n){return Ao(i.newSetId,n)||(i.newSetId=n),n}),m()(),u(6,"mat-dialog-actions",3)(7,"button",4),G(8,"Cancel"),m(),u(9,"button",5),x("click",function(){return i.createNewEvalSet()}),G(10,"Create"),m()()),A&2&&(f(5),wi("ngModel",i.newSetId))},dependencies:[oo,no,ki,Eo,Sn,bt,kn,Fn,bn,Is],encapsulation:2})};var Ni=class t{constructor(e){this.http=e}apiServerDomain=nt.getApiServerBaseUrl();createSession(e,A){if(this.apiServerDomain!=null){let i=this.apiServerDomain+`/apps/${A}/users/${e}/sessions`;return this.http.post(i,null)}return new QA}listSessions(e,A){if(this.apiServerDomain!=null){let i=this.apiServerDomain+`/apps/${A}/users/${e}/sessions`;return this.http.get(i)}return new QA}deleteSession(e,A,i){let o=this.apiServerDomain+`/apps/${A}/users/${e}/sessions/${i}`;return this.http.delete(o)}getSession(e,A,i){let o=this.apiServerDomain+`/apps/${A}/users/${e}/sessions/${i}`;return this.http.get(o)}static \u0275fac=function(A){return new(A||t)(O(ot))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})};var o2=["*"],HE;function n2(){if(HE===void 0&&(HE=null,typeof window<"u")){let t=window;t.trustedTypes!==void 0&&(HE=t.trustedTypes.createPolicy("angular#components",{createHTML:e=>e}))}return HE}function fa(t){return n2()?.createHTML(t)||t}function wF(t){return Error(`Unable to find icon with the name "${t}"`)}function g2(){return Error("Could not find HttpClient for use with Angular Material icons. Please add provideHttpClient() to your providers.")}function yF(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function MF(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}var Zo=class{url;svgText;options;svgElement;constructor(e,A,i){this.url=e,this.svgText=A,this.options=i}},r2=(()=>{class t{_httpClient;_sanitizer;_errorHandler;_document;_svgIconConfigs=new Map;_iconSetConfigs=new Map;_cachedIconsByUrl=new Map;_inProgressUrlFetches=new Map;_fontCssClassesByAlias=new Map;_resolvers=[];_defaultFontSetClass=["material-icons","mat-ligature-font"];constructor(A,i,o,n){this._httpClient=A,this._sanitizer=i,this._errorHandler=n,this._document=o}addSvgIcon(A,i,o){return this.addSvgIconInNamespace("",A,i,o)}addSvgIconLiteral(A,i,o){return this.addSvgIconLiteralInNamespace("",A,i,o)}addSvgIconInNamespace(A,i,o,n){return this._addSvgIconConfig(A,i,new Zo(o,null,n))}addSvgIconResolver(A){return this._resolvers.push(A),this}addSvgIconLiteralInNamespace(A,i,o,n){let g=this._sanitizer.sanitize(Ve.HTML,o);if(!g)throw MF(o);let r=fa(g);return this._addSvgIconConfig(A,i,new Zo("",r,n))}addSvgIconSet(A,i){return this.addSvgIconSetInNamespace("",A,i)}addSvgIconSetLiteral(A,i){return this.addSvgIconSetLiteralInNamespace("",A,i)}addSvgIconSetInNamespace(A,i,o){return this._addSvgIconSetConfig(A,new Zo(i,null,o))}addSvgIconSetLiteralInNamespace(A,i,o){let n=this._sanitizer.sanitize(Ve.HTML,i);if(!n)throw MF(i);let g=fa(n);return this._addSvgIconSetConfig(A,new Zo("",g,o))}registerFontClassAlias(A,i=A){return this._fontCssClassesByAlias.set(A,i),this}classNameForFontAlias(A){return this._fontCssClassesByAlias.get(A)||A}setDefaultFontSetClass(...A){return this._defaultFontSetClass=A,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(A){let i=this._sanitizer.sanitize(Ve.RESOURCE_URL,A);if(!i)throw yF(A);let o=this._cachedIconsByUrl.get(i);return o?iA(TE(o)):this._loadSvgIconFromConfig(new Zo(A,null)).pipe(Ie(n=>this._cachedIconsByUrl.set(i,n)),nA(n=>TE(n)))}getNamedSvgIcon(A,i=""){let o=RF(i,A),n=this._svgIconConfigs.get(o);if(n)return this._getSvgFromConfig(n);if(n=this._getIconConfigFromResolvers(i,A),n)return this._svgIconConfigs.set(o,n),this._getSvgFromConfig(n);let g=this._iconSetConfigs.get(i);return g?this._getSvgFromIconSetConfigs(A,g):Wo(wF(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(A){return A.svgText?iA(TE(this._svgElementFromConfig(A))):this._loadSvgIconFromConfig(A).pipe(nA(i=>TE(i)))}_getSvgFromIconSetConfigs(A,i){let o=this._extractIconWithNameFromAnySet(A,i);if(o)return iA(o);let n=i.filter(g=>!g.svgText).map(g=>this._loadSvgIconSetFromConfig(g).pipe(ht(r=>{let I=`Loading icon set URL: ${this._sanitizer.sanitize(Ve.RESOURCE_URL,g.url)} failed: ${r.message}`;return this._errorHandler.handleError(new Error(I)),iA(null)})));return _s(n).pipe(nA(()=>{let g=this._extractIconWithNameFromAnySet(A,i);if(!g)throw wF(A);return g}))}_extractIconWithNameFromAnySet(A,i){for(let o=i.length-1;o>=0;o--){let n=i[o];if(n.svgText&&n.svgText.toString().indexOf(A)>-1){let g=this._svgElementFromConfig(n),r=this._extractSvgIconFromSet(g,A,n.options);if(r)return r}}return null}_loadSvgIconFromConfig(A){return this._fetchIcon(A).pipe(Ie(i=>A.svgText=i),nA(()=>this._svgElementFromConfig(A)))}_loadSvgIconSetFromConfig(A){return A.svgText?iA(null):this._fetchIcon(A).pipe(Ie(i=>A.svgText=i))}_extractSvgIconFromSet(A,i,o){let n=A.querySelector(`[id="${i}"]`);if(!n)return null;let g=n.cloneNode(!0);if(g.removeAttribute("id"),g.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(g,o);if(g.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(g),o);let r=this._svgElementFromString(fa("<svg></svg>"));return r.appendChild(g),this._setSvgAttributes(r,o)}_svgElementFromString(A){let i=this._document.createElement("DIV");i.innerHTML=A;let o=i.querySelector("svg");if(!o)throw Error("<svg> tag not found");return o}_toSvgElement(A){let i=this._svgElementFromString(fa("<svg></svg>")),o=A.attributes;for(let n=0;n<o.length;n++){let{name:g,value:r}=o[n];g!=="id"&&i.setAttribute(g,r)}for(let n=0;n<A.childNodes.length;n++)A.childNodes[n].nodeType===this._document.ELEMENT_NODE&&i.appendChild(A.childNodes[n].cloneNode(!0));return i}_setSvgAttributes(A,i){return A.setAttribute("fit",""),A.setAttribute("height","100%"),A.setAttribute("width","100%"),A.setAttribute("preserveAspectRatio","xMidYMid meet"),A.setAttribute("focusable","false"),i&&i.viewBox&&A.setAttribute("viewBox",i.viewBox),A}_fetchIcon(A){let{url:i,options:o}=A,n=o?.withCredentials??!1;if(!this._httpClient)throw g2();if(i==null)throw Error(`Cannot fetch icon from URL "${i}".`);let g=this._sanitizer.sanitize(Ve.RESOURCE_URL,i);if(!g)throw yF(i);let r=this._inProgressUrlFetches.get(g);if(r)return r;let s=this._httpClient.get(g,{responseType:"text",withCredentials:n}).pipe(nA(I=>fa(I)),Oi(()=>this._inProgressUrlFetches.delete(g)),Us());return this._inProgressUrlFetches.set(g,s),s}_addSvgIconConfig(A,i,o){return this._svgIconConfigs.set(RF(A,i),o),this}_addSvgIconSetConfig(A,i){let o=this._iconSetConfigs.get(A);return o?o.push(i):this._iconSetConfigs.set(A,[i]),this}_svgElementFromConfig(A){if(!A.svgElement){let i=this._svgElementFromString(A.svgText);this._setSvgAttributes(i,A.options),A.svgElement=i}return A.svgElement}_getIconConfigFromResolvers(A,i){for(let o=0;o<this._resolvers.length;o++){let n=this._resolvers[o](i,A);if(n)return s2(n)?new Zo(n.url,null,n.options):new Zo(n,null)}}static \u0275fac=function(i){return new(i||t)(O(ot,8),O(Bg),O(lA,8),O(pt))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function TE(t){return t.cloneNode(!0)}function RF(t,e){return t+":"+e}function s2(t){return!!(t.url&&t.options)}var I2=new k("MAT_ICON_DEFAULT_OPTIONS"),a2=new k("mat-icon-location",{providedIn:"root",factory:C2});function C2(){let t=Q(lA),e=t?t.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}var kF=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],B2=kF.map(t=>`[${t}]`).join(", "),Q2=/^url\(['"]?#(.*?)['"]?\)$/,Bs=(()=>{class t{_elementRef=Q(q);_iconRegistry=Q(r2);_location=Q(a2);_errorHandler=Q(pt);_defaultColor;get color(){return this._color||this._defaultColor}set color(A){this._color=A}_color;inline=!1;get svgIcon(){return this._svgIcon}set svgIcon(A){A!==this._svgIcon&&(A?this._updateSvgIcon(A):this._svgIcon&&this._clearSvgElement(),this._svgIcon=A)}_svgIcon;get fontSet(){return this._fontSet}set fontSet(A){let i=this._cleanupFontValue(A);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}_fontSet;get fontIcon(){return this._fontIcon}set fontIcon(A){let i=this._cleanupFontValue(A);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}_fontIcon;_previousFontSetClass=[];_previousFontIconClass;_svgName;_svgNamespace;_previousPath;_elementsWithExternalReferences;_currentIconFetch=vA.EMPTY;constructor(){let A=Q(new ft("aria-hidden"),{optional:!0}),i=Q(I2,{optional:!0});i&&(i.color&&(this.color=this._defaultColor=i.color),i.fontSet&&(this.fontSet=i.fontSet)),A||this._elementRef.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(A){if(!A)return["",""];let i=A.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${A}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let A=this._elementsWithExternalReferences;if(A&&A.size){let 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(A){this._clearSvgElement();let i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(A),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(A)}_clearSvgElement(){let A=this._elementRef.nativeElement,i=A.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){let o=A.childNodes[i];(o.nodeType!==1||o.nodeName.toLowerCase()==="svg")&&o.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let A=this._elementRef.nativeElement,i=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(o=>o.length>0);this._previousFontSetClass.forEach(o=>A.classList.remove(o)),i.forEach(o=>A.classList.add(o)),this._previousFontSetClass=i,this.fontIcon!==this._previousFontIconClass&&!i.includes("mat-ligature-font")&&(this._previousFontIconClass&&A.classList.remove(this._previousFontIconClass),this.fontIcon&&A.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(A){return typeof A=="string"?A.trim().split(" ")[0]:A}_prependPathToReferences(A){let i=this._elementsWithExternalReferences;i&&i.forEach((o,n)=>{o.forEach(g=>{n.setAttribute(g.name,`url('${A}#${g.value}')`)})})}_cacheChildrenWithExternalReferences(A){let i=A.querySelectorAll(B2),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let n=0;n<i.length;n++)kF.forEach(g=>{let r=i[n],s=r.getAttribute(g),I=s?s.match(Q2):null;if(I){let B=o.get(r);B||(B=[],o.set(r,B)),B.push({name:g,value:I[1]})}})}_updateSvgIcon(A){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),A){let[i,o]=this._splitIconName(A);i&&(this._svgNamespace=i),o&&(this._svgName=o),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,i).pipe(de(1)).subscribe(n=>this._setSvgElement(n),n=>{let g=`Error retrieving icon ${i}:${o}! ${n.message}`;this._errorHandler.handleError(new Error(g))})}}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=T({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(i,o){i&2&&(IA("data-mat-icon-type",o._usingFontIcon()?"font":"svg")("data-mat-icon-name",o._svgName||o.fontIcon)("data-mat-icon-namespace",o._svgNamespace||o.fontSet)("fontIcon",o._usingFontIcon()?o.fontIcon:null),We(o.color?"mat-"+o.color:""),oA("mat-icon-inline",o.inline)("mat-icon-no-color",o.color!=="primary"&&o.color!=="accent"&&o.color!=="warn"))},inputs:{color:"color",inline:[2,"inline","inline",tA],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],ngContentSelectors:o2,decls:1,vars:0,template:function(i,o){i&1&&(ZA(),sA(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color, inherit)}.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})}return t})(),FF=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=Z({imports:[MA,MA]})}return t})();var E2=["determinateSpinner"];function c2(t,e){if(t&1&&(it(),u(0,"svg",11),W(1,"circle",12),m()),t&2){let A=b();IA("viewBox",A._viewBox()),f(),Bt("stroke-dasharray",A._strokeCircumference(),"px")("stroke-dashoffset",A._strokeCircumference()/2,"px")("stroke-width",A._circleStrokeWidth(),"%"),IA("r",A._circleRadius())}}var l2=new k("mat-progress-spinner-default-options",{providedIn:"root",factory:d2});function d2(){return{diameter:bF}}var bF=100,h2=10,SF=(()=>{class t{_elementRef=Q(q);_noopAnimations;get color(){return this._color||this._defaultColor}set color(A){this._color=A}_color;_defaultColor="primary";_determinateCircle;constructor(){let A=Q($A,{optional:!0}),i=Q(l2);this._noopAnimations=A==="NoopAnimations"&&!!i&&!i._forceAnimations,this.mode=this._elementRef.nativeElement.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",i&&(i.color&&(this.color=this._defaultColor=i.color),i.diameter&&(this.diameter=i.diameter),i.strokeWidth&&(this.strokeWidth=i.strokeWidth))}mode;get value(){return this.mode==="determinate"?this._value:0}set value(A){this._value=Math.max(0,Math.min(100,A||0))}_value=0;get diameter(){return this._diameter}set diameter(A){this._diameter=A||0}_diameter=bF;get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(A){this._strokeWidth=A||0}_strokeWidth;_circleRadius(){return(this.diameter-h2)/2}_viewBox(){let A=this._circleRadius()*2+this.strokeWidth;return`0 0 ${A} ${A}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return this.mode==="determinate"?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=T({type:t,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(i,o){if(i&1&&cA(E2,5),i&2){let n;z(n=j())&&(o._determinateCircle=n.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(i,o){i&2&&(IA("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",o.mode==="determinate"?o.value:null)("mode",o.mode),We("mat-"+o.color),Bt("width",o.diameter,"px")("height",o.diameter,"px")("--mdc-circular-progress-size",o.diameter+"px")("--mdc-circular-progress-active-indicator-width",o.diameter+"px"),oA("_mat-animation-noopable",o._noopAnimations)("mdc-circular-progress--indeterminate",o.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[2,"value","value",Re],diameter:[2,"diameter","diameter",Re],strokeWidth:[2,"strokeWidth","strokeWidth",Re]},exportAs:["matProgressSpinner"],decls:14,vars:11,consts:[["circle",""],["determinateSpinner",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(i,o){if(i&1&&(U(0,c2,2,8,"ng-template",null,0,QI),u(2,"div",2,1),it(),u(4,"svg",3),W(5,"circle",4),m()(),eg(),u(6,"div",5)(7,"div",6)(8,"div",7),Je(9,8),m(),u(10,"div",9),Je(11,8),m(),u(12,"div",10),Je(13,8),m()()()),i&2){let n=He(1);f(4),IA("viewBox",o._viewBox()),f(),Bt("stroke-dasharray",o._strokeCircumference(),"px")("stroke-dashoffset",o._strokeDashOffset(),"px")("stroke-width",o._circleStrokeWidth(),"%"),IA("r",o._circleRadius()),f(4),F("ngTemplateOutlet",n),f(2),F("ngTemplateOutlet",n),f(2),F("ngTemplateOutlet",n)}},dependencies:[dI],styles:[".mat-mdc-progress-spinner{display:block;overflow:hidden;line-height:0;position:relative;direction:ltr;transition:opacity 250ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-progress-spinner circle{stroke-width:var(--mdc-circular-progress-active-indicator-width, 4px)}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1;animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mdc-circular-progress-active-indicator-color, var(--mat-sys-primary))}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}"],encapsulation:2,changeDetection:0})}return t})();var vF=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=Z({imports:[MA]})}return t})();function m2(t,e){if(t&1){let A=aA();u(0,"div",3)(1,"div"),G(2,"All eval sets"),m(),u(3,"mat-icon",4),x("click",function(){J(A);let o=b();return H(o.openNewEvalSetDialog())}),G(4,"add"),m()()}}function D2(t,e){if(t&1){let A=aA();u(0,"div")(1,"div",5)(2,"div",6),G(3," Create New Evaluation Set "),m(),u(4,"div",7),G(5," An evaluation set is a curated collection of evaluation cases, where each case includes input-output examples for assessing agent performance. "),m(),u(6,"div",8),x("click",function(){J(A);let o=b();return H(o.openNewEvalSetDialog())}),G(7," Create Evaluation Set "),m()()()}}function f2(t,e){if(t&1){let A=aA();u(0,"div",10),x("click",function(){let o=J(A).$implicit,n=b(2);return H(n.selectEvalSet(o))}),u(1,"div",11)(2,"span",12),G(3,"folder"),m(),u(4,"div",13),G(5),m()(),u(6,"div")(7,"mat-icon",14),G(8,"chevron_right"),m()()()}if(t&2){let A=e.$implicit;f(5),HA(A)}}function p2(t,e){if(t&1&&(u(0,"div"),U(1,f2,9,1,"div",9),m()),t&2){let A=b();f(),F("ngForOf",A.evalsets)}}function w2(t,e){if(t&1){let A=aA();u(0,"th",29)(1,"mat-checkbox",30),x("change",function(o){J(A);let n=b(3);return H(o?n.toggleAllRows():null)}),m()()}if(t&2){let A=b(3);f(),F("checked",A.selection.hasValue()&&A.isAllSelected())("indeterminate",A.selection.hasValue()&&!A.isAllSelected())}}function y2(t,e){if(t&1){let A=aA();u(0,"td",31)(1,"mat-checkbox",32),x("click",function(o){return J(A),H(o.stopPropagation())})("change",function(o){let n=J(A).$implicit,g=b(3);return H(o?g.selection.toggle(n):null)}),m()()}if(t&2){let A=e.$implicit,i=b(3);f(),F("checked",i.selection.isSelected(A))}}function M2(t,e){t&1&&(u(0,"th",29),G(1," Case ID "),m())}function R2(t,e){if(t&1&&(u(0,"td",31),G(1),m()),t&2){let A=e.$implicit;f(),te(" ",A," ")}}function k2(t,e){t&1&&(u(0,"th",29),G(1," Result "),m())}function F2(t,e){if(t&1){let A=aA();u(0,"button",35),x("click",function(){J(A);let o=b().$implicit,n=b(3);return H(n.getSession(o))}),u(1,"span",36),G(2),m(),u(3,"div",37),G(4),m()()}if(t&2){let A=b().$implicit,i=b(3);F("ngClass",i.getEvalResultForCase(A)==1?"result-btn pass":"result-btn fail"),f(2),te(" ",i.getEvalResultForCase(A)==1?"check":"close"," "),f(2),te("",i.getEvalResultForCase(A)==1?"PASS":"FAIL"," ")}}function b2(t,e){if(t&1&&(u(0,"td",33),U(1,F2,5,3,"button",34),m()),t&2){let A=e.$implicit,i=b(3);f(),F("ngIf",i.getEvalResultForCase(A))}}function S2(t,e){t&1&&W(0,"tr",38)}function v2(t,e){t&1&&W(0,"tr",39)}function N2(t,e){if(t&1){let A=aA();u(0,"div")(1,"button",18),x("click",function(){J(A);let o=b(2);return H(o.runEval())}),G(2,"Run Evaluation"),m(),u(3,"div",19)(4,"table",20),fi(5,21),U(6,w2,2,2,"th",22)(7,y2,2,1,"td",23),pi(),fi(8,24),U(9,M2,2,0,"th",22)(10,R2,2,1,"td",23),pi(),fi(11,25),U(12,k2,2,0,"th",22)(13,b2,2,1,"td",26),pi(),U(14,S2,1,0,"tr",27)(15,v2,1,0,"tr",28),m()()()}if(t&2){let A=b(2);f(4),F("dataSource",A.dataSource),f(10),F("matHeaderRowDef",A.displayedColumns),f(),F("matRowDefColumns",A.displayedColumns)}}function G2(t,e){if(t&1){let A=aA();u(0,"button",40),x("click",function(){J(A);let o=b(2);return H(o.openNewEvalCaseDialog())}),u(1,"div",41)(2,"mat-icon"),G(3,"add"),m(),u(4,"div",42),G(5),m()()()}if(t&2){let A=b(2);f(5),te(" Add current session to ",A.selectedEvalSet," ")}}function L2(t,e){t&1&&(u(0,"div"),W(1,"mat-spinner"),m())}function _2(t,e){if(t&1){let A=aA();u(0,"div")(1,"div",11)(2,"mat-icon",15),x("click",function(){J(A);let o=b();return H(o.clearSelectedEvalSet())}),G(3,"chevron_left"),m(),u(4,"div",16),x("click",function(){J(A);let o=b();return H(o.clearSelectedEvalSet())}),G(5),m()(),U(6,N2,16,3,"div",2)(7,G2,6,1,"button",17)(8,L2,2,0,"div",2),m()}if(t&2){let A=b();f(5),te(" ",A.selectedEvalSet," "),f(),F("ngIf",A.evalCases.length>0&&!A.evalRunning),f(),F("ngIf",!A.evalRunning),f(),F("ngIf",A.evalRunning)}}var Sg=class t{constructor(e,A){this.evalService=e;this.sessionService=A}checkboxes;appName="";userId="";sessionId="";sessionSelected=new $;displayedColumns=["select","eval_id","final_eval_status"];evalsets=[];selectedEvalSet="";evalCases=[];dataSource=new ha(this.evalCases);selection=new is(!0,[]);evalRunning=!1;evalMetrics=[{metric_name:"tool_trajectory_avg_score",threshold:1}];evalResult=[];dialog=Q(Rn);ngOnChanges(e){e.appName&&(this.selectedEvalSet="",this.evalCases=[],this.getEvalSet())}ngOnInit(){}getEvalSet(){this.appName!=""&&this.evalService.getEvalSets(this.appName).subscribe(e=>{this.evalsets=e})}openNewEvalSetDialog(){this.dialog.open(Da,{width:"600px",data:{appName:this.appName}}).afterClosed().subscribe(A=>{A&&this.getEvalSet()})}openNewEvalCaseDialog(){this.dialog.open(ma,{width:"600px",data:{appName:this.appName,userId:this.userId,sessionId:this.sessionId,evalSetId:this.selectedEvalSet}}).afterClosed().subscribe(A=>{A&&this.listEvalCases()})}listEvalCases(){this.evalCases=[],this.evalService.listEvalCases(this.appName,this.selectedEvalSet).subscribe(e=>{this.evalCases=e,this.dataSource=new ha(this.evalCases)})}runEval(){if(this.evalRunning=!0,this.selection.selected.length==0){alert("No case selected!"),this.evalRunning=!1;return}this.evalService.runEval(this.appName,this.selectedEvalSet,this.selection.selected,this.evalMetrics).subscribe(e=>{this.evalRunning=!1,this.evalResult=e})}selectEvalSet(e){this.selectedEvalSet=e,this.listEvalCases()}clearSelectedEvalSet(){this.selectedEvalSet=""}isAllSelected(){let e=this.selection.selected.length,A=this.dataSource.data.length;return e===A}toggleAllRows(){if(this.isAllSelected()){this.selection.clear();return}this.selection.select(...this.dataSource.data)}getEvalResultForCase(e){let A=this.evalResult.filter(i=>i.eval_id==e);if(A.length!=0)return A[0].final_eval_status}fromApiResultToSession(e){return{id:e?.id??"",app_name:e?.app_name??"",user_id:e?.user_id??"",state:e?.state??[],events:e?.events??[]}}getSession(e){let A=this.evalResult.filter(i=>i.eval_id==e)[0].session_id;this.sessionService.getSession(this.userId,this.appName,A).subscribe(i=>{let o=this.fromApiResultToSession(i);this.sessionSelected.emit(o)})}static \u0275fac=function(A){return new(A||t)(AA(co),AA(Ni))};static \u0275cmp=T({type:t,selectors:[["app-eval-tab"]],viewQuery:function(A,i){if(A&1&&cA(ss,5),A&2){let o;z(o=j())&&(i.checkboxes=o)}},inputs:{appName:"appName",userId:"userId",sessionId:"sessionId"},outputs:{sessionSelected:"sessionSelected"},standalone:!1,features:[VA],decls:5,vars:4,consts:[[1,"eval-container"],["class","eval-set-actions",4,"ngIf"],[4,"ngIf"],[1,"eval-set-actions"],[2,"cursor","pointer",3,"click"],[1,"empty-eval-info"],[1,"info-title"],[1,"info-detail"],[1,"info-create",3,"click"],["class","eval-set-row",3,"click",4,"ngFor","ngForOf"],[1,"eval-set-row",3,"click"],[2,"display","flex"],[1,"material-symbols-outlined",2,"margin-right","10px","padding-top","16px"],[2,"font-family","Roboto","font-size","14px","padding","16px","padding-top","20px"],[2,"padding-top","20px","color","#9AA0A6"],[2,"color","white","cursor","pointer",3,"click"],[2,"color","#9AA0A6","padding-top","2px","cursor","pointer",3,"click"],["class","save-session-btn",3,"click",4,"ngIf"],[1,"run-eval-btn",3,"click"],[1,"mat-table-container",2,"margin-top","16px"],["mat-table","",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","eval_id"],["matColumnDef","final_eval_status"],["mat-cell","","style","display: flex; color:white;",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],[3,"change","checked","indeterminate"],["mat-cell",""],[3,"click","change","checked"],["mat-cell","",2,"display","flex","color","white"],[3,"ngClass","click",4,"ngIf"],[3,"click","ngClass"],[1,"material-symbols-outlined"],[2,"padding-top","4px"],["mat-header-row",""],["mat-row",""],[1,"save-session-btn",3,"click"],[1,"save-session-btn-detail"],[1,"save-session-btn-text"]],template:function(A,i){A&1&&(u(0,"div",0),U(1,m2,5,0,"div",1)(2,D2,8,0,"div",2)(3,p2,2,1,"div",2)(4,_2,9,4,"div",2),m()),A&2&&(f(),F("ngIf",i.selectedEvalSet==""),f(),F("ngIf",i.evalsets.length==0),f(),F("ngIf",i.evalsets.length>0&&i.selectedEvalSet==""),f(),F("ngIf",i.selectedEvalSet!=""))},dependencies:[Yt,Rt,Jt,Bs,ss,IF,CF,cF,BF,aF,lF,QF,EF,dF,hF,SF],styles:[".eval-container[_ngcontent-%COMP%]{margin-top:20px;padding-left:25px;padding-right:25px}.eval-set-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between;color:#9aa0a6;font-style:normal;font-weight:700;font-size:14px}.empty-eval-info[_ngcontent-%COMP%]{margin-top:12px;background-color:#202124;border-radius:8px;box-shadow:0 2px 6px 2px #00000026,0 1px 2px #0000004d}.info-title[_ngcontent-%COMP%]{color:#e8eaed;font-family:Roboto;font-size:14px;font-weight:500;padding-top:13px;padding-right:16px;padding-left:16px}.info-detail[_ngcontent-%COMP%]{color:#e8eaed;font-family:Roboto;font-size:14px;font-weight:400;padding-top:13px;padding-right:16px;padding-left:16px;letter-spacing:.2px}.info-create[_ngcontent-%COMP%]{color:var(--Blue-300, #8AB4F8);font-size:14px;font-style:normal;font-weight:500;padding-right:16px;padding-left:16px;margin-top:19px;padding-bottom:16px;cursor:pointer}.eval-set-row[_ngcontent-%COMP%]{display:flex;justify-content:space-between;cursor:pointer}.save-session-btn[_ngcontent-%COMP%]{width:100%;background:linear-gradient(0deg,#8ab4f83d 0% 100%),#202124;border:none;border-radius:4px;margin-top:12px;cursor:pointer}.save-session-btn-detail[_ngcontent-%COMP%]{display:flex;padding:8px 16px 8px 12px;justify-content:center}.save-session-btn-text[_ngcontent-%COMP%]{padding-top:2px;color:var(--Blue-100, #D2E3FC);font-family:Google Sans;font-size:14px;font-style:normal;font-weight:500;line-height:20px;letter-spacing:.25px}.run-eval-btn[_ngcontent-%COMP%]{border-radius:4px;border:1px solid var(--Grey-700, #5F6368);background-color:transparent;padding:8px 24px;margin-top:16px;color:#8ab4f8;cursor:pointer}.run-eval-btn[_ngcontent-%COMP%]:hover{background-color:#202124}.result-btn[_ngcontent-%COMP%]{display:flex;background-color:transparent;border-radius:4px;border:1px solid var(--Grey-700, #5F6368);margin-top:13px;cursor:pointer}.result-btn[_ngcontent-%COMP%]:hover{background-color:#202124}.result-btn.pass[_ngcontent-%COMP%]{color:#44c265}.result-btn.fail[_ngcontent-%COMP%]{color:#ff8983}"]})};var vn=class t{constructor(e){this.http=e}apiServerDomain=nt.getApiServerBaseUrl();getEventTrace(e){let A=this.apiServerDomain+`/debug/trace/${e}`;return this.http.get(A)}getEvent(e,A,i,o){let n=this.apiServerDomain+`/apps/${A}/users/${e}/sessions/${i}/events/${o}/graph`;return this.http.get(n)}static \u0275fac=function(A){return new(A||t)(O(ot))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})};var GF=(()=>{class t{get vertical(){return this._vertical}set vertical(A){this._vertical=pe(A)}_vertical=!1;get inset(){return this._inset}set inset(A){this._inset=pe(A)}_inset=!1;static \u0275fac=function(i){return new(i||t)};static \u0275cmp=T({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(i,o){i&2&&(IA("aria-orientation",o.vertical?"vertical":"horizontal"),oA("mat-divider-vertical",o.vertical)("mat-divider-horizontal",!o.vertical)("mat-divider-inset",o.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(i,o){},styles:[".mat-divider{display:block;margin:0;border-top-style:solid;border-top-color:var(--mat-divider-color, var(--mat-sys-outline));border-top-width:var(--mat-divider-width, 1px)}.mat-divider.mat-divider-vertical{border-top:0;border-right-style:solid;border-right-color:var(--mat-divider-color, var(--mat-sys-outline));border-right-width:var(--mat-divider-width, 1px)}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0})}return t})(),LF=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=Z({imports:[MA,MA]})}return t})();var x2=["*"],Y2='.mdc-list{margin:0;padding:8px 0;list-style-type:none}.mdc-list:focus{outline:none}.mdc-list-item{display:flex;position:relative;justify-content:flex-start;overflow:hidden;padding:0;align-items:stretch;cursor:pointer;padding-left:16px;padding-right:16px;background-color:var(--mdc-list-list-item-container-color, transparent);border-radius:var(--mdc-list-list-item-container-shape, var(--mat-sys-corner-none))}.mdc-list-item.mdc-list-item--selected{background-color:var(--mdc-list-list-item-selected-container-color)}.mdc-list-item:focus{outline:0}.mdc-list-item.mdc-list-item--disabled{cursor:auto}.mdc-list-item.mdc-list-item--with-one-line{height:var(--mdc-list-list-item-one-line-container-height, 48px)}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__start{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-two-lines{height:var(--mdc-list-list-item-two-line-container-height, 64px)}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-three-lines{height:var(--mdc-list-list-item-three-line-container-height, 88px)}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--selected::before,.mdc-list-item.mdc-list-item--selected:focus::before,.mdc-list-item:not(.mdc-list-item--selected):focus::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;content:"";pointer-events:none}a.mdc-list-item{color:inherit;text-decoration:none}.mdc-list-item__start{fill:currentColor;flex-shrink:0;pointer-events:none}.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mdc-list-list-item-leading-icon-color, var(--mat-sys-on-surface-variant));width:var(--mdc-list-list-item-leading-icon-size, 24px);height:var(--mdc-list-list-item-leading-icon-size, 24px);margin-left:16px;margin-right:32px}[dir=rtl] .mdc-list-item--with-leading-icon .mdc-list-item__start{margin-left:32px;margin-right:16px}.mdc-list-item--with-leading-icon:hover .mdc-list-item__start{color:var(--mdc-list-list-item-hover-leading-icon-color)}.mdc-list-item--with-leading-avatar .mdc-list-item__start{width:var(--mdc-list-list-item-leading-avatar-size, 40px);height:var(--mdc-list-list-item-leading-avatar-size, 40px);margin-left:16px;margin-right:16px;border-radius:50%}.mdc-list-item--with-leading-avatar .mdc-list-item__start,[dir=rtl] .mdc-list-item--with-leading-avatar .mdc-list-item__start{margin-left:16px;margin-right:16px;border-radius:50%}.mdc-list-item__end{flex-shrink:0;pointer-events:none}.mdc-list-item--with-trailing-meta .mdc-list-item__end{font-family:var(--mdc-list-list-item-trailing-supporting-text-font, var(--mat-sys-label-small-font));line-height:var(--mdc-list-list-item-trailing-supporting-text-line-height, var(--mat-sys-label-small-line-height));font-size:var(--mdc-list-list-item-trailing-supporting-text-size, var(--mat-sys-label-small-size));font-weight:var(--mdc-list-list-item-trailing-supporting-text-weight, var(--mat-sys-label-small-weight));letter-spacing:var(--mdc-list-list-item-trailing-supporting-text-tracking, var(--mat-sys-label-small-tracking))}.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-list-list-item-trailing-icon-color, var(--mat-sys-on-surface-variant));width:var(--mdc-list-list-item-trailing-icon-size, 24px);height:var(--mdc-list-list-item-trailing-icon-size, 24px)}.mdc-list-item--with-trailing-icon:hover .mdc-list-item__end{color:var(--mdc-list-list-item-hover-trailing-icon-color)}.mdc-list-item.mdc-list-item--with-trailing-meta .mdc-list-item__end{color:var(--mdc-list-list-item-trailing-supporting-text-color, var(--mat-sys-on-surface-variant))}.mdc-list-item--selected.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-list-list-item-selected-trailing-icon-color, var(--mat-sys-primary))}.mdc-list-item__content{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;align-self:center;flex:1;pointer-events:none}.mdc-list-item--with-two-lines .mdc-list-item__content,.mdc-list-item--with-three-lines .mdc-list-item__content{align-self:stretch}.mdc-list-item__primary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;color:var(--mdc-list-list-item-label-text-color, var(--mat-sys-on-surface));font-family:var(--mdc-list-list-item-label-text-font, var(--mat-sys-body-large-font));line-height:var(--mdc-list-list-item-label-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mdc-list-list-item-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mdc-list-list-item-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mdc-list-list-item-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-list-item:hover .mdc-list-item__primary-text{color:var(--mdc-list-list-item-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item:focus .mdc-list-item__primary-text{color:var(--mdc-list-list-item-focus-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-three-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item__secondary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;color:var(--mdc-list-list-item-supporting-text-color, var(--mat-sys-on-surface-variant));font-family:var(--mdc-list-list-item-supporting-text-font, var(--mat-sys-body-medium-font));line-height:var(--mdc-list-list-item-supporting-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mdc-list-list-item-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mdc-list-list-item-supporting-text-weight, var(--mat-sys-body-medium-weight));letter-spacing:var(--mdc-list-list-item-supporting-text-tracking, var(--mat-sys-body-medium-tracking))}.mdc-list-item__secondary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item--with-three-lines .mdc-list-item__secondary-text{white-space:normal;line-height:20px}.mdc-list-item--with-overline .mdc-list-item__secondary-text{white-space:nowrap;line-height:auto}.mdc-list-item--with-leading-radio.mdc-list-item,.mdc-list-item--with-leading-checkbox.mdc-list-item,.mdc-list-item--with-leading-icon.mdc-list-item,.mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:0;padding-right:16px}[dir=rtl] .mdc-list-item--with-leading-radio.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-checkbox.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-icon.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:16px;padding-right:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-trailing-icon.mdc-list-item,[dir=rtl] .mdc-list-item--with-trailing-icon.mdc-list-item{padding-left:0;padding-right:0}.mdc-list-item--with-trailing-icon .mdc-list-item__end{margin-left:16px;margin-right:16px}.mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:16px;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:0;padding-right:16px}.mdc-list-item--with-trailing-meta .mdc-list-item__end{-webkit-user-select:none;user-select:none;margin-left:28px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-meta .mdc-list-item__end{margin-left:16px;margin-right:28px}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end,.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end{display:block;line-height:normal;align-self:flex-start;margin-top:0}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end::before,.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio .mdc-list-item__start,.mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:8px;margin-right:24px}[dir=rtl] .mdc-list-item--with-leading-radio .mdc-list-item__start,[dir=rtl] .mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:24px;margin-right:8px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__start,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-trailing-radio.mdc-list-item,.mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:16px;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:0;padding-right:16px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-icon,.mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-avatar,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-icon,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-avatar{padding-left:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-icon,[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-avatar,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-icon,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-avatar{padding-right:0}.mdc-list-item--with-trailing-radio .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:24px;margin-right:8px}[dir=rtl] .mdc-list-item--with-trailing-radio .mdc-list-item__end,[dir=rtl] .mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:8px;margin-right:24px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-three-lines .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:8px}.mdc-list-group__subheader{margin:.75rem 16px}.mdc-list-item--disabled .mdc-list-item__start,.mdc-list-item--disabled .mdc-list-item__content,.mdc-list-item--disabled .mdc-list-item__end{opacity:1}.mdc-list-item--disabled .mdc-list-item__primary-text,.mdc-list-item--disabled .mdc-list-item__secondary-text{opacity:var(--mdc-list-list-item-disabled-label-text-opacity, 0.3)}.mdc-list-item--disabled.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mdc-list-list-item-disabled-leading-icon-color, var(--mat-sys-on-surface));opacity:var(--mdc-list-list-item-disabled-leading-icon-opacity, 0.38)}.mdc-list-item--disabled.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-list-list-item-disabled-trailing-icon-color, var(--mat-sys-on-surface));opacity:var(--mdc-list-list-item-disabled-trailing-icon-opacity, 0.38)}.mat-mdc-list-item.mat-mdc-list-item-both-leading-and-trailing,[dir=rtl] .mat-mdc-list-item.mat-mdc-list-item-both-leading-and-trailing{padding-left:0;padding-right:0}.mdc-list-item.mdc-list-item--disabled .mdc-list-item__primary-text{color:var(--mdc-list-list-item-disabled-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item:hover::before{background-color:var(--mdc-list-list-item-hover-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mdc-list-list-item-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mdc-list-item.mdc-list-item--disabled::before{background-color:var(--mdc-list-list-item-disabled-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mdc-list-list-item-disabled-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-list-item:focus::before{background-color:var(--mdc-list-list-item-focus-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mdc-list-list-item-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-list-item--disabled .mdc-radio,.mdc-list-item--disabled .mdc-checkbox{opacity:var(--mdc-list-list-item-disabled-label-text-opacity, 0.3)}.mdc-list-item--with-leading-avatar .mat-mdc-list-item-avatar{border-radius:var(--mdc-list-list-item-leading-avatar-shape, var(--mat-sys-corner-full));background-color:var(--mdc-list-list-item-leading-avatar-color, var(--mat-sys-primary-container))}.mat-mdc-list-item-icon{font-size:var(--mdc-list-list-item-leading-icon-size, 24px)}@media(forced-colors: active){a.mdc-list-item--activated::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}a.mdc-list-item--activated [dir=rtl]::after{right:auto;left:16px}}.mat-mdc-list-base{display:block}.mat-mdc-list-base .mdc-list-item__start,.mat-mdc-list-base .mdc-list-item__end,.mat-mdc-list-base .mdc-list-item__content{pointer-events:auto}.mat-mdc-list-item,.mat-mdc-list-option{width:100%;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-list-item:not(.mat-mdc-list-item-interactive),.mat-mdc-list-option:not(.mat-mdc-list-item-interactive){cursor:default}.mat-mdc-list-item .mat-divider-inset,.mat-mdc-list-option .mat-divider-inset{position:absolute;left:0;right:0;bottom:0}.mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,.mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-left:72px}[dir=rtl] .mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,[dir=rtl] .mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-right:72px}.mat-mdc-list-item-interactive::before{top:0;left:0;right:0;bottom:0;position:absolute;content:"";opacity:0;pointer-events:none;border-radius:inherit}.mat-mdc-list-item>.mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-list-item:focus>.mat-focus-indicator::before{content:""}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-line.mdc-list-item__secondary-text{white-space:nowrap;line-height:normal}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-unscoped-content.mdc-list-item__secondary-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:start}mat-action-list button::-moz-focus-inner{border:0}.mdc-list-item--with-leading-icon .mdc-list-item__start{margin-inline-start:var(--mat-list-list-item-leading-icon-start-space, 16px);margin-inline-end:var(--mat-list-list-item-leading-icon-end-space, 16px)}.mat-mdc-nav-list .mat-mdc-list-item{border-radius:var(--mat-list-active-indicator-shape, var(--mat-sys-corner-full));--mat-focus-indicator-border-radius:var(--mat-list-active-indicator-shape, var(--mat-sys-corner-full))}.mat-mdc-nav-list .mat-mdc-list-item.mdc-list-item--activated{background-color:var(--mat-list-active-indicator-color, var(--mat-sys-secondary-container))}',J2=["unscopedContent"],H2=["text"],T2=[[["","matListItemAvatar",""],["","matListItemIcon",""]],[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["","matListItemMeta",""]],[["mat-divider"]]],O2=["[matListItemAvatar],[matListItemIcon]","[matListItemTitle]","[matListItemLine]","*","[matListItemMeta]","mat-divider"];var P2=new k("ListOption"),Z2=(()=>{class t{_elementRef=Q(q);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["","matListItemTitle",""]],hostAttrs:[1,"mat-mdc-list-item-title","mdc-list-item__primary-text"]})}return t})(),q2=(()=>{class t{_elementRef=Q(q);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["","matListItemLine",""]],hostAttrs:[1,"mat-mdc-list-item-line","mdc-list-item__secondary-text"]})}return t})(),V2=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["","matListItemMeta",""]],hostAttrs:[1,"mat-mdc-list-item-meta","mdc-list-item__end"]})}return t})(),_F=(()=>{class t{_listOption=Q(P2,{optional:!0});constructor(){}_isAlignedAtStart(){return!this._listOption||this._listOption?._getTogglePosition()==="after"}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,hostVars:4,hostBindings:function(i,o){i&2&&oA("mdc-list-item__start",o._isAlignedAtStart())("mdc-list-item__end",!o._isAlignedAtStart())}})}return t})(),W2=(()=>{class t extends _F{static \u0275fac=(()=>{let A;return function(o){return(A||(A=WA(t)))(o||t)}})();static \u0275dir=Y({type:t,selectors:[["","matListItemAvatar",""]],hostAttrs:[1,"mat-mdc-list-item-avatar"],features:[EA]})}return t})(),z2=(()=>{class t extends _F{static \u0275fac=(()=>{let A;return function(o){return(A||(A=WA(t)))(o||t)}})();static \u0275dir=Y({type:t,selectors:[["","matListItemIcon",""]],hostAttrs:[1,"mat-mdc-list-item-icon"],features:[EA]})}return t})(),j2=new k("MAT_LIST_CONFIG"),Zm=(()=>{class t{_isNonInteractive=!0;get disableRipple(){return this._disableRipple}set disableRipple(A){this._disableRipple=pe(A)}_disableRipple=!1;get disabled(){return this._disabled}set disabled(A){this._disabled=pe(A)}_disabled=!1;_defaultOptions=Q(j2,{optional:!0});static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,hostVars:1,hostBindings:function(i,o){i&2&&IA("aria-disabled",o.disabled)},inputs:{disableRipple:"disableRipple",disabled:"disabled"}})}return t})(),X2=(()=>{class t{_elementRef=Q(q);_ngZone=Q(X);_listBase=Q(Zm,{optional:!0});_platform=Q(TA);_hostElement;_isButtonElement;_noopAnimations;_avatars;_icons;set lines(A){this._explicitLines=Zt(A,null),this._updateItemLines(!1)}_explicitLines=null;get disableRipple(){return this.disabled||this._disableRipple||this._noopAnimations||!!this._listBase?.disableRipple}set disableRipple(A){this._disableRipple=pe(A)}_disableRipple=!1;get disabled(){return this._disabled||!!this._listBase?.disabled}set disabled(A){this._disabled=pe(A)}_disabled=!1;_subscriptions=new vA;_rippleRenderer=null;_hasUnscopedTextContent=!1;rippleConfig;get rippleDisabled(){return this.disableRipple||!!this.rippleConfig.disabled}constructor(){Q(Se).load(ei);let A=Q($r,{optional:!0}),i=Q($A,{optional:!0});this.rippleConfig=A||{},this._hostElement=this._elementRef.nativeElement,this._isButtonElement=this._hostElement.nodeName.toLowerCase()==="button",this._noopAnimations=i==="NoopAnimations",this._listBase&&!this._listBase._isNonInteractive&&this._initInteractiveListItem(),this._isButtonElement&&!this._hostElement.hasAttribute("type")&&this._hostElement.setAttribute("type","button")}ngAfterViewInit(){this._monitorProjectedLinesAndTitle(),this._updateItemLines(!0)}ngOnDestroy(){this._subscriptions.unsubscribe(),this._rippleRenderer!==null&&this._rippleRenderer._removeTriggerEvents()}_hasIconOrAvatar(){return!!(this._avatars.length||this._icons.length)}_initInteractiveListItem(){this._hostElement.classList.add("mat-mdc-list-item-interactive"),this._rippleRenderer=new zr(this,this._ngZone,this._hostElement,this._platform,Q(wA)),this._rippleRenderer.setupTriggerEvents(this._hostElement)}_monitorProjectedLinesAndTitle(){this._ngZone.runOutsideAngular(()=>{this._subscriptions.add(me(this._lines.changes,this._titles.changes).subscribe(()=>this._updateItemLines(!1)))})}_updateItemLines(A){if(!this._lines||!this._titles||!this._unscopedContent)return;A&&this._checkDomForUnscopedTextContent();let i=this._explicitLines??this._inferLinesFromContent(),o=this._unscopedContent.nativeElement;if(this._hostElement.classList.toggle("mat-mdc-list-item-single-line",i<=1),this._hostElement.classList.toggle("mdc-list-item--with-one-line",i<=1),this._hostElement.classList.toggle("mdc-list-item--with-two-lines",i===2),this._hostElement.classList.toggle("mdc-list-item--with-three-lines",i===3),this._hasUnscopedTextContent){let n=this._titles.length===0&&i===1;o.classList.toggle("mdc-list-item__primary-text",n),o.classList.toggle("mdc-list-item__secondary-text",!n)}else o.classList.remove("mdc-list-item__primary-text"),o.classList.remove("mdc-list-item__secondary-text")}_inferLinesFromContent(){let A=this._titles.length+this._lines.length;return this._hasUnscopedTextContent&&(A+=1),A}_checkDomForUnscopedTextContent(){this._hasUnscopedTextContent=Array.from(this._unscopedContent.nativeElement.childNodes).filter(A=>A.nodeType!==A.COMMENT_NODE).some(A=>!!(A.textContent&&A.textContent.trim()))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,contentQueries:function(i,o,n){if(i&1&&(jA(n,W2,4),jA(n,z2,4)),i&2){let g;z(g=j())&&(o._avatars=g),z(g=j())&&(o._icons=g)}},hostVars:4,hostBindings:function(i,o){i&2&&(IA("aria-disabled",o.disabled)("disabled",o._isButtonElement&&o.disabled||null),oA("mdc-list-item--disabled",o.disabled))},inputs:{lines:"lines",disableRipple:"disableRipple",disabled:"disabled"}})}return t})();var KF=(()=>{class t extends Zm{static \u0275fac=(()=>{let A;return function(o){return(A||(A=WA(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["mat-list"]],hostAttrs:[1,"mat-mdc-list","mat-mdc-list-base","mdc-list"],exportAs:["matList"],features:[LA([{provide:Zm,useExisting:t}]),EA],ngContentSelectors:x2,decls:1,vars:0,template:function(i,o){i&1&&(ZA(),sA(0))},styles:[Y2],encapsulation:2,changeDetection:0})}return t})(),UF=(()=>{class t extends X2{_lines;_titles;_meta;_unscopedContent;_itemText;get activated(){return this._activated}set activated(A){this._activated=pe(A)}_activated=!1;_getAriaCurrent(){return this._hostElement.nodeName==="A"&&this._activated?"page":null}_hasBothLeadingAndTrailing(){return this._meta.length!==0&&(this._avatars.length!==0||this._icons.length!==0)}static \u0275fac=(()=>{let A;return function(o){return(A||(A=WA(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(i,o,n){if(i&1&&(jA(n,q2,5),jA(n,Z2,5),jA(n,V2,5)),i&2){let g;z(g=j())&&(o._lines=g),z(g=j())&&(o._titles=g),z(g=j())&&(o._meta=g)}},viewQuery:function(i,o){if(i&1&&(cA(J2,5),cA(H2,5)),i&2){let n;z(n=j())&&(o._unscopedContent=n.first),z(n=j())&&(o._itemText=n.first)}},hostAttrs:[1,"mat-mdc-list-item","mdc-list-item"],hostVars:13,hostBindings:function(i,o){i&2&&(IA("aria-current",o._getAriaCurrent()),oA("mdc-list-item--activated",o.activated)("mdc-list-item--with-leading-avatar",o._avatars.length!==0)("mdc-list-item--with-leading-icon",o._icons.length!==0)("mdc-list-item--with-trailing-meta",o._meta.length!==0)("mat-mdc-list-item-both-leading-and-trailing",o._hasBothLeadingAndTrailing())("_mat-animation-noopable",o._noopAnimations))},inputs:{activated:"activated"},exportAs:["matListItem"],features:[EA],ngContentSelectors:O2,decls:10,vars:0,consts:[["unscopedContent",""],[1,"mdc-list-item__content"],[1,"mat-mdc-list-item-unscoped-content",3,"cdkObserveContent"],[1,"mat-focus-indicator"]],template:function(i,o){if(i&1){let n=aA();ZA(T2),sA(0),u(1,"span",1),sA(2,1),sA(3,2),u(4,"span",2,0),x("cdkObserveContent",function(){return J(n),H(o._updateItemLines(!0))}),sA(6,3),m()(),sA(7,4),sA(8,5),W(9,"div",3)}},dependencies:[$Q],encapsulation:2,changeDetection:0})}return t})();var xF=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=Z({imports:[Vr,MA,yg,em,LF]})}return t})();function A8(t,e){if(t&1){let A=aA();u(0,"mat-list-item",6),x("click",function(){let o=J(A).$implicit,n=b(2);return H(n.selectEvent(o.key))}),u(1,"span",7),G(2),m(),u(3,"span"),G(4),m()()}if(t&2){let A=e.$implicit,i=e.index;f(2),HA(i),f(2),HA(A.key)}}function e8(t,e){if(t&1&&(u(0,"div",3)(1,"p"),G(2,"Conversations with agent"),m(),u(3,"mat-list",4),U(4,A8,5,2,"mat-list-item",5),an(5,"keyvalue"),m()()),t&2){let A=b();f(4),F("ngForOf",Q0(5,1,A.eventsMap,A.mapOrderPreservingSort))}}function t8(t,e){t&1&&(u(0,"div")(1,"p"),G(2,"No conversations"),m()())}var vg=class t{constructor(e){this.eventService=e}eventsMap=new Map;selectedEvent=new $;llmRequest=void 0;llmResponse=void 0;llmRequestKey="gcp.vertex.agent.llm_request";llmResponseKey="gcp.vertex.agent.llm_response";isDetailsPanelOpen=!1;showJson=Array(this.eventsMap.size).fill(!1);toggleJson(e){this.showJson[e]=!this.showJson[e]}selectEvent(e){this.selectedEvent.emit(e)}mapOrderPreservingSort=(e,A)=>0;static \u0275fac=function(A){return new(A||t)(AA(vn))};static \u0275cmp=T({type:t,selectors:[["app-event-tab"]],inputs:{eventsMap:"eventsMap"},outputs:{selectedEvent:"selectedEvent"},standalone:!1,decls:3,vars:2,consts:[[1,"events-wrapper"],["class","events-container",4,"ngIf"],[4,"ngIf"],[1,"events-container"],[1,"event-list"],[3,"click",4,"ngFor","ngForOf"],[3,"click"],[1,"event-index"]],template:function(A,i){A&1&&(u(0,"div",0),U(1,e8,6,4,"div",1)(2,t8,3,0,"div",2),m()),A&2&&(f(),F("ngIf",i.eventsMap.size>0),f(),F("ngIf",i.eventsMap.size==0))},dependencies:[Rt,Jt,KF,UF,Nh],styles:[".events-wrapper[_ngcontent-%COMP%]{padding-left:25px;padding-right:25px;color:#9aa0a6;font-size:14px;font-weight:700}.event-index[_ngcontent-%COMP%]{color:#80868b;font-family:Roboto;font-size:14px;font-style:normal;font-weight:400;margin-right:10px}.spacer[_ngcontent-%COMP%]{flex:1 1 auto}.events-container[_ngcontent-%COMP%]{margin-top:20px}.event-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin-top:20px}.function-event-button[_ngcontent-%COMP%]{margin-top:11px}.event-list[_ngcontent-%COMP%]{--mat-list-active-indicator-color: orange}.event-list[_ngcontent-%COMP%]{--mdc-list-list-item-container-color: #2b2b2f}.event-list[_ngcontent-%COMP%]{--mdc-list-list-item-label-text-size: 14px}.event-list[_ngcontent-%COMP%]{--mdc-list-list-item-label-text-weight: 400}.event-list[_ngcontent-%COMP%]{--mdc-list-list-item-one-line-container-height: 52px}[_nghost-%COMP%]     .mdc-list-item{border:1px solid #5f6368;cursor:pointer}[_nghost-%COMP%]     .mdc-list-item:hover{background-color:#1c1b1c}"]})};function o8(t,e){t&1&&(u(0,"h2",4),G(1,"Events List"),m())}function n8(t,e){t&1&&(u(0,"h2",4),G(1,"Send Response To Pending Event"),m())}function g8(t,e){if(t&1){let A=aA();u(0,"div")(1,"p"),G(2,"Name"),m(),u(3,"p"),G(4),m(),u(5,"p"),G(6,"Args"),m(),u(7,"p"),G(8),m(),u(9,"mat-form-field",5)(10,"mat-label"),G(11,"Response"),m(),u(12,"textarea",6),yi("ngModelChange",function(o){J(A);let n=b();return Ao(n.selectedEvent.response,o)||(n.selectedEvent.response=o),H(o)}),m()()()}if(t&2){let A=b();f(4),HA(A.selectedEvent.name),f(4),HA(A.argsToJson(A.selectedEvent.args)),f(4),wi("ngModel",A.selectedEvent.response)}}function r8(t,e){if(t&1){let A=aA();u(0,"button",7),x("click",function(){J(A);let o=b();return H(o.sendResponse())}),G(1),m()}if(t&2){let A=b();F("disabled",A.sending),f(),HA(A.sending?"Sending...":"Send")}}var pa=class t{constructor(e,A,i){this.dialogRef=e;this.data=A;this.agentService=i;this.selectedEvent=A.event,this.app_name=A.app_name,this.user_id=A.user_id,this.session_id=A.session_id,this.function_call_event_id=A.function_call_event_id}selectedEvent=null;app_name;user_id;session_id;function_call_event_id;sending=!1;argsToJson(e){return JSON.stringify(e)}sendResponse(){this.sending=!0;let e={app_name:this.app_name,user_id:this.user_id,session_id:this.session_id,new_message:{role:"user",parts:[]}};this.selectedEvent.response&&(e.function_call_event_id=this.function_call_event_id,e.new_message.parts.push({function_response:{id:this.selectedEvent.id,name:this.selectedEvent.name,response:{response:this.selectedEvent.response}}})),this.agentService.run(e).subscribe(A=>{this.sending=!1;for(let i of A)i.content.parts[0].text&&this.dialogRef.close({text:i.content.parts[0].text,events:[this.selectedEvent]})})}static \u0275fac=function(A){return new(A||t)(AA(Vt),AA(Po),AA(yn))};static \u0275cmp=T({type:t,selectors:[["app-pending-event-dialog"]],standalone:!1,decls:8,vars:4,consts:[["mat-dialog-title","",4,"ngIf"],[4,"ngIf"],["mat-button","",3,"disabled","click",4,"ngIf"],["mat-button","","mat-dialog-close",""],["mat-dialog-title",""],["appearance","outline",1,"full-width"],["matInput","",3,"ngModelChange","ngModel"],["mat-button","",3,"click","disabled"]],template:function(A,i){A&1&&(U(0,o8,2,0,"h2",0)(1,n8,2,0,"h2",0),u(2,"mat-dialog-content"),U(3,g8,13,3,"div",1),m(),u(4,"mat-dialog-actions"),U(5,r8,2,2,"button",2),u(6,"button",3),G(7,"Close"),m()()),A&2&&(F("ngIf",!i.selectedEvent),f(),F("ngIf",i.selectedEvent),f(2),F("ngIf",i.selectedEvent),f(2),F("ngIf",i.selectedEvent&&i.selectedEvent.response))},dependencies:[Jt,oo,no,ki,Eo,ME,Sn,bt,kn,Fn,bn,Is],encapsulation:2})};var wa=class t{constructor(e,A){this.dialogRef=e;this.data=A}onConfirm(){this.dialogRef.close(!0)}onCancel(){this.dialogRef.close(!1)}static \u0275fac=function(A){return new(A||t)(AA(Vt),AA(Po))};static \u0275cmp=T({type:t,selectors:[["app-delete-session-dialog"]],standalone:!1,decls:11,vars:4,consts:[[1,"confirm-delete-wrapper"],["mat-dialog-title",""],["align","end"],["mat-button","",3,"click"],["mat-button","","cdkFocusInitial","",3,"click"]],template:function(A,i){A&1&&(u(0,"div",0)(1,"h2",1),G(2),m(),u(3,"mat-dialog-content")(4,"p"),G(5),m()(),u(6,"mat-dialog-actions",2)(7,"button",3),x("click",function(){return i.onCancel()}),G(8),m(),u(9,"button",4),x("click",function(){return i.onConfirm()}),G(10),m()()()),A&2&&(f(2),HA(i.data.title),f(3),HA(i.data.message),f(3),HA(i.data.cancelButtonText),f(2),HA(i.data.confirmButtonText))},dependencies:[bt,kn,Fn,bn],encapsulation:2})};function s8(t,e){if(t&1){let A=aA();u(0,"div",3),x("click",function(){let o=J(A).$implicit,n=b();return H(n.getSession(o.id))}),u(1,"div",4)(2,"div",5),G(3),m(),u(4,"div",6),G(5),m()()()}if(t&2){let A=e.$implicit,i=b();F("ngClass",A.id===i.sessionId?"session-item current":"session-item"),f(3),te(" ",A.id," "),f(2),te(" ",i.getDate(A)," ")}}var Ng=class t{constructor(e,A){this.sessionService=e;this.dialog=A;this.refreshSessionsSubject.pipe(se(()=>this.sessionService.listSessions(this.userId,this.appName))).subscribe(i=>{i=i.sort((o,n)=>Number(n.last_update_time)-Number(o.last_update_time)),this.sessionList=i})}userId="";appName="";sessionId="";sessionSelected=new $;sessionReloaded=new $;sessionList=[];refreshSessionsSubject=new _;ngOnInit(){setTimeout(()=>{this.refreshSessionsSubject.next()},500)}getSession(e){this.sessionService.getSession(this.userId,this.appName,e).subscribe(A=>{let i=this.fromApiResultToSession(A);this.sessionSelected.emit(i)})}getDate(e){let A=e.last_update_time;return new Date(A*1e3).toLocaleString()}fromApiResultToSession(e){return{id:e?.id??"",app_name:e?.app_name??"",user_id:e?.user_id??"",state:e?.state??[],events:e?.events??[]}}reloadSession(e){this.sessionService.getSession(this.userId,this.appName,e).subscribe(A=>{let i=this.fromApiResultToSession(A);this.sessionReloaded.emit(i)})}refreshSession(e){if(this.refreshSessionsSubject.next(),!(this.sessionList.length<=1)){let A=this.sessionList.findIndex(i=>i.id==e);return A==this.sessionList.length-1&&(A=-1),this.sessionList[A+1]}}static \u0275fac=function(A){return new(A||t)(AA(Ni),AA(Rn))};static \u0275cmp=T({type:t,selectors:[["app-session-tab"]],inputs:{userId:"userId",appName:"appName",sessionId:"sessionId"},outputs:{sessionSelected:"sessionSelected",sessionReloaded:"sessionReloaded"},standalone:!1,decls:3,vars:1,consts:[[1,"session-wrapper"],[1,"session-tab-container",2,"margin-top","16px"],[3,"ngClass","click",4,"ngFor","ngForOf"],[3,"click","ngClass"],[1,"session-info"],[1,"session-id"],[1,"session-date"]],template:function(A,i){A&1&&(u(0,"div",0)(1,"div",1),U(2,s8,6,3,"div",2),m()()),A&2&&(f(2),F("ngForOf",i.sessionList))},dependencies:[Yt,Rt],styles:[".session-wrapper[_ngcontent-%COMP%]{padding-left:25px;padding-right:25px;color:#9aa0a6;font-size:14px;font-weight:700}.session-item[_ngcontent-%COMP%]{display:flex;justify-content:space-between;border:none;background-color:#303030;border-radius:8px;margin-bottom:4px;cursor:pointer}.session-item[_ngcontent-%COMP%]:hover{background-color:#141414}.session-item.current[_ngcontent-%COMP%]{background-color:#004a77}.session-id[_ngcontent-%COMP%]{color:#e8eaed;font-family:monospace;font-size:14px;font-style:normal;font-weight:500;line-height:20px;letter-spacing:.25px}.session-date[_ngcontent-%COMP%]{color:#9aa0a6;font-family:Roboto;font-size:12px;font-style:normal;font-weight:400;line-height:16px;letter-spacing:.3px}.session-info[_ngcontent-%COMP%]{padding:11px}"]})};var Qs=class t{constructor(e){this.http=e}apiServerDomain=nt.getApiServerBaseUrl();getLatestArtifact(e,A,i,o){let n=this.apiServerDomain+`/apps/${A}/users/${e}/sessions/${i}/artifacts/${o}`;return this.http.get(n)}getArtifactVersion(e,A,i,o,n){let g=this.apiServerDomain+`/apps/${A}/users/${e}/sessions/${i}/artifacts/${o}/versions/${n}`;return this.http.get(g)}static \u0275fac=function(A){return new(A||t)(O(ot))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})};var C8={url:"",deserializer:t=>JSON.parse(t.data),serializer:t=>JSON.stringify(t)},B8="WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }",ya=class t extends Vg{constructor(e,A){if(super(),this._socket=null,e instanceof QA)this.destination=A,this.source=e;else{let i=this._config=Object.assign({},C8);if(this._output=new _,typeof e=="string")i.url=e;else for(let o in e)e.hasOwnProperty(o)&&(i[o]=e[o]);if(!i.WebSocketCtor&&WebSocket)i.WebSocketCtor=WebSocket;else if(!i.WebSocketCtor)throw new Error("no WebSocket constructor can be found");this.destination=new Ci}}lift(e){let A=new t(this._config,this.destination);return A.operator=e,A.source=this,A}_resetState(){this._socket=null,this.source||(this.destination=new Ci),this._output=new _}multiplex(e,A,i){let o=this;return new QA(n=>{try{o.next(e())}catch(r){n.error(r)}let g=o.subscribe({next:r=>{try{i(r)&&n.next(r)}catch(s){n.error(s)}},error:r=>n.error(r),complete:()=>n.complete()});return()=>{try{o.next(A())}catch(r){n.error(r)}g.unsubscribe()}})}_connectSocket(){let{WebSocketCtor:e,protocol:A,url:i,binaryType:o}=this._config,n=this._output,g=null;try{g=A?new e(i,A):new e(i),this._socket=g,o&&(this._socket.binaryType=o)}catch(s){n.error(s);return}let r=new vA(()=>{this._socket=null,g&&g.readyState===1&&g.close()});g.onopen=s=>{let{_socket:I}=this;if(!I){g.close(),this._resetState();return}let{openObserver:B}=this._config;B&&B.next(s);let c=this.destination;this.destination=wo.create(D=>{if(g.readyState===1)try{let{serializer:h}=this._config;g.send(h(D))}catch(h){this.destination.error(h)}},D=>{let{closingObserver:h}=this._config;h&&h.next(void 0),D&&D.code?g.close(D.code,D.reason):n.error(new TypeError(B8)),this._resetState()},()=>{let{closingObserver:D}=this._config;D&&D.next(void 0),g.close(),this._resetState()}),c&&c instanceof Ci&&r.add(c.subscribe(this.destination))},g.onerror=s=>{this._resetState(),n.error(s)},g.onclose=s=>{g===this._socket&&this._resetState();let{closeObserver:I}=this._config;I&&I.next(s),s.wasClean?n.complete():n.error(s)},g.onmessage=s=>{try{let{deserializer:I}=this._config;n.next(I(s))}catch(I){n.error(I)}}}_subscribe(e){let{source:A}=this;return A?A.subscribe(e):(this._socket||this._connectSocket(),this._output.subscribe(e),e.add(()=>{let{_socket:i}=this;this._output.observers.length===0&&(i&&(i.readyState===1||i.readyState===0)&&i.close(),this._resetState())}),e)}unsubscribe(){let{_socket:e}=this;e&&(e.readyState===1||e.readyState===0)&&e.close(),this._resetState(),super.unsubscribe()}};var ho=class t{socket$;messages$=new ee("");audioContext=new AudioContext({sampleRate:22e3});audioBuffer=[];audioIntervalId=null;lastAudioTime=0;closeReasonSubject=new _;constructor(){}connect(e){this.socket$=new ya({url:e,serializer:A=>JSON.stringify(A),deserializer:A=>A.data,closeObserver:{next:A=>{this.emitWsCloseReason(A.reason)}}}),this.socket$.subscribe(A=>{this.handleIncomingAudio(A),this.messages$.next(A)},A=>{console.error("WebSocket error:",A)}),this.audioIntervalId=setInterval(()=>this.processBufferedAudio(),250)}sendMessage(e){if(e.blob.data=this.arrayBufferToBase64(e.blob.data.buffer),!this.socket$||this.socket$.closed){console.error("WebSocket is not open.");return}this.socket$.next(e)}closeConnection(){clearInterval(this.audioIntervalId),this.audioIntervalId=null,this.socket$&&this.socket$.complete()}getMessages(){return this.messages$.asObservable()}arrayBufferToBase64(e){let A="",i=new Uint8Array(e),o=i.byteLength;for(let n=0;n<o;n++)A+=String.fromCharCode(i[n]);return btoa(A)}handleIncomingAudio(e){let A=JSON.parse(e);if(A.content&&A.content.parts&&A.content.parts[0].inlineData){let i=this.base64ToUint8Array(A.content.parts[0].inlineData.data);this.audioBuffer.push(i)}}processBufferedAudio(){if(this.audioBuffer.length===0)return;let e=this.audioBuffer.reduce((o,n)=>o+n.length,0),A=new Uint8Array(e),i=0;for(let o of this.audioBuffer)A.set(o,i),i+=o.length;this.playPCM(A),this.audioBuffer=[]}base64ToUint8Array(e){let A=atob(this.urlSafeBase64ToBase64(e)),i=A.length,o=new Uint8Array(i);for(let n=0;n<i;n++)o[n]=A.charCodeAt(n);return o}playPCM(e){let A=new Float32Array(e.length/2);for(let r=0;r<A.length;r++){let s=e[r*2]|e[r*2+1]<<8;s>=32768&&(s-=65536),A[r]=s/32768}let i=this.audioContext.createBuffer(1,A.length,22e3);i.copyToChannel(A,0);let o=this.audioContext.createBufferSource();o.buffer=i,o.connect(this.audioContext.destination);let n=this.audioContext.currentTime,g=Math.max(this.lastAudioTime,n);o.start(g),this.lastAudioTime=g+i.duration}urlSafeBase64ToBase64(e){let A=e.replace(/_/g,"/").replace(/-/g,"+");for(;A.length%4!==0;)A+="=";return A}emitWsCloseReason(e){this.closeReasonSubject.next(e)}onCloseReason(){return this.closeReasonSubject.asObservable()}static \u0275fac=function(A){return new(A||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})};var Es=class t{constructor(e){this.wsService=e}mediaRecorder;stream;audioContext;source;processor;audioBuffer=[];audioIntervalId=null;startRecording(){return qe(this,null,function*(){try{this.stream=yield navigator.mediaDevices.getUserMedia({audio:!0}),this.audioContext=new AudioContext,yield this.audioContext.audioWorklet.addModule("/assets/audio-processor.js"),this.source=this.audioContext.createMediaStreamSource(this.stream);let e=new AudioWorkletNode(this.audioContext,"audio-processor");e.port.onmessage=A=>{let i=A.data,o=this.float32ToPCM(i);this.audioBuffer.push(o)},this.source.connect(e),e.connect(this.audioContext.destination),this.audioIntervalId=setInterval(()=>this.sendBufferedAudio(),250)}catch(e){console.error("Error accessing microphone:",e)}})}sendBufferedAudio(){if(this.audioBuffer.length===0)return;let e=this.audioBuffer.reduce((n,g)=>n+g.length,0),A=new Uint8Array(e),i=0;for(let n of this.audioBuffer)A.set(n,i),i+=n.length;let o={blob:{mime_type:"audio/pcm",data:A}};this.wsService.sendMessage(o),this.audioBuffer=[]}stopRecording(){this.processor&&this.processor.disconnect(),this.source&&this.source.disconnect(),this.audioContext&&this.audioContext.close(),this.stream&&this.stream.getTracks().forEach(e=>e.stop()),this.audioIntervalId&&(clearInterval(this.audioIntervalId),this.audioIntervalId=null)}float32ToPCM(e){let A=new ArrayBuffer(e.length*2),i=new DataView(A);for(let o=0;o<e.length;o++){let n=Math.max(-1,Math.min(1,e[o]));n=n<0?n*32768:n*32767,i.setInt16(o*2,n,!0)}return new Uint8Array(A)}static \u0275fac=function(A){return new(A||t)(O(ho))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})};var cs=class t{constructor(e,A){this.wsService=e;this.renderer=A.createRenderer(null,null)}mediaRecorder;stream;renderer;videoElement;videoBuffer=[];videoIntervalId=null;createVideoElement(e){this.clearVideoElement(e),this.videoElement=this.renderer.createElement("video"),this.renderer.setAttribute(this.videoElement,"width","400"),this.renderer.setAttribute(this.videoElement,"height","300"),this.renderer.setAttribute(this.videoElement,"autoplay","true"),this.renderer.setAttribute(this.videoElement,"muted","true"),this.renderer.appendChild(e.nativeElement,this.videoElement)}startRecording(e){return qe(this,null,function*(){this.createVideoElement(e);try{this.stream=yield navigator.mediaDevices.getUserMedia({video:!0}),this.videoElement.srcObject=this.stream,this.mediaRecorder=new MediaRecorder(this.stream,{mimeType:"video/webm"}),this.mediaRecorder.start(1e3),this.videoIntervalId=setInterval(()=>this.captureAndSendFrame(),1e3)}catch(A){console.error("Error accessing camera/microphone:",A)}})}captureAndSendFrame(){return qe(this,null,function*(){try{let e=yield this.captureFrame(),i={blob:{mime_type:"image/jpeg",data:yield this.blobToUint8Array(e)}};this.wsService.sendMessage(i)}catch(e){console.error("Error capturing frame:",e)}})}blobToUint8Array(e){return qe(this,null,function*(){let A=yield e.arrayBuffer();return new Uint8Array(A)})}captureFrame(){return qe(this,null,function*(){return new Promise((e,A)=>{try{let i=document.createElement("canvas");i.width=this.videoElement.videoWidth,i.height=this.videoElement.videoHeight;let o=i.getContext("2d");if(!o){A(new Error("Canvas context not supported"));return}o.drawImage(this.videoElement,0,0,i.width,i.height),i.toBlob(n=>{n?e(n):A(new Error("Failed to create image blob"))},"image/png")}catch(i){A(i)}})})}sendBufferedVideo(){if(this.videoBuffer.length===0)return;let e=this.videoBuffer.reduce((n,g)=>n+g.length,0),A=new Uint8Array(e),i=0;for(let n of this.videoBuffer)A.set(n,i),i+=n.length;let o={blob:{mime_type:"image/jpeg",data:A}};this.wsService.sendMessage(o),this.videoBuffer=[]}stopRecording(e){this.mediaRecorder&&this.mediaRecorder.stop(),this.stream&&this.stream.getTracks().forEach(A=>A.stop()),clearInterval(this.videoIntervalId),this.clearVideoElement(e)}clearVideoElement(e){let A=e.nativeElement.querySelector("video");A&&this.renderer.removeChild(e.nativeElement,A)}static \u0275fac=function(A){return new(A||t)(O(ho),O(tt))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})};var c8=["*"];var l8=new k("MAT_CARD_CONFIG"),YF=(()=>{class t{appearance;constructor(){let A=Q(l8,{optional:!0});this.appearance=A?.appearance||"raised"}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=T({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:4,hostBindings:function(i,o){i&2&&oA("mat-mdc-card-outlined",o.appearance==="outlined")("mdc-card--outlined",o.appearance==="outlined")},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:c8,decls:1,vars:0,template:function(i,o){i&1&&(ZA(),sA(0))},styles:['.mat-mdc-card{display:flex;flex-direction:column;box-sizing:border-box;position:relative;border-style:solid;border-width:0;background-color:var(--mdc-elevated-card-container-color, var(--mat-sys-surface-container-low));border-color:var(--mdc-elevated-card-container-color, var(--mat-sys-surface-container-low));border-radius:var(--mdc-elevated-card-container-shape, var(--mat-sys-corner-medium));box-shadow:var(--mdc-elevated-card-container-elevation, var(--mat-sys-level1))}.mat-mdc-card::after{position:absolute;top:0;left:0;width:100%;height:100%;border:solid 1px rgba(0,0,0,0);content:"";display:block;pointer-events:none;box-sizing:border-box;border-radius:var(--mdc-elevated-card-container-shape, var(--mat-sys-corner-medium))}.mat-mdc-card-outlined{background-color:var(--mdc-outlined-card-container-color, var(--mat-sys-surface));border-radius:var(--mdc-outlined-card-container-shape, var(--mat-sys-corner-medium));border-width:var(--mdc-outlined-card-outline-width, 1px);border-color:var(--mdc-outlined-card-outline-color, var(--mat-sys-outline-variant));box-shadow:var(--mdc-outlined-card-container-elevation, var(--mat-sys-level0))}.mat-mdc-card-outlined::after{border:none}.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}.mat-mdc-card-actions{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:52px;padding:8px}.mat-mdc-card-title{font-family:var(--mat-card-title-text-font, var(--mat-sys-title-large-font));line-height:var(--mat-card-title-text-line-height, var(--mat-sys-title-large-line-height));font-size:var(--mat-card-title-text-size, var(--mat-sys-title-large-size));letter-spacing:var(--mat-card-title-text-tracking, var(--mat-sys-title-large-tracking));font-weight:var(--mat-card-title-text-weight, var(--mat-sys-title-large-weight))}.mat-mdc-card-subtitle{color:var(--mat-card-subtitle-text-color, var(--mat-sys-on-surface));font-family:var(--mat-card-subtitle-text-font, var(--mat-sys-title-medium-font));line-height:var(--mat-card-subtitle-text-line-height, var(--mat-sys-title-medium-line-height));font-size:var(--mat-card-subtitle-text-size, var(--mat-sys-title-medium-size));letter-spacing:var(--mat-card-subtitle-text-tracking, var(--mat-sys-title-medium-tracking));font-weight:var(--mat-card-subtitle-text-weight, var(--mat-sys-title-medium-weight))}.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})}return t})();var JF=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=Z({imports:[MA,MA]})}return t})();var h8=t=>["segment",t],u8=(t,e)=>({"segment-main":!0,expandable:t,expanded:e});function m8(t,e){t&1&&W(0,"div",9)}function D8(t,e){if(t&1&&(u(0,"span",10),G(1),m()),t&2){let A=b().$implicit;f(),HA(A.description)}}function f8(t,e){if(t&1&&(u(0,"section",11),W(1,"ngx-json-viewer",12),m()),t&2){let A=b().$implicit,i=b();f(),F("json",A.value)("expanded",i.expanded)("depth",i.depth)("_currentDepth",i._currentDepth+1)}}function p8(t,e){if(t&1){let A=aA();u(0,"section",2)(1,"section",3),x("click",function(){let o=J(A).$implicit,n=b();return H(n.toggle(o))}),U(2,m8,1,0,"div",4),u(3,"span",5),G(4),m(),u(5,"span",6),G(6,": "),m(),U(7,D8,2,1,"span",7),m(),U(8,f8,2,4,"section",8),m()}if(t&2){let A=e.$implicit,i=b();F("ngClass",gg(6,h8,"segment-type-"+A.type)),f(),F("ngClass",rg(8,u8,i.isExpandable(A),A.expanded)),f(),F("ngIf",i.isExpandable(A)),f(2),HA(A.key),f(3),F("ngIf",!A.expanded||!i.isExpandable(A)),f(),F("ngIf",A.expanded&&i.isExpandable(A))}}var OE=(()=>{class t{constructor(){this.expanded=!0,this.depth=-1,this._currentDepth=0,this.segments=[]}ngOnChanges(){this.segments=[],this.json=this.decycle(this.json),typeof this.json=="object"?Object.keys(this.json).forEach(A=>{this.segments.push(this.parseKeyValue(A,this.json[A]))}):this.segments.push(this.parseKeyValue(`(${typeof this.json})`,this.json))}isExpandable(A){return A.type==="object"||A.type==="array"}toggle(A){this.isExpandable(A)&&(A.expanded=!A.expanded)}parseKeyValue(A,i){let o={key:A,value:i,type:void 0,description:""+i,expanded:this.isExpanded()};switch(typeof o.value){case"number":{o.type="number";break}case"boolean":{o.type="boolean";break}case"function":{o.type="function";break}case"string":{o.type="string",o.description='"'+o.value+'"';break}case"undefined":{o.type="undefined",o.description="undefined";break}case"object":{o.value===null?(o.type="null",o.description="null"):Array.isArray(o.value)?(o.type="array",o.description="Array["+o.value.length+"] "+JSON.stringify(o.value)):o.value instanceof Date?o.type="date":(o.type="object",o.description="Object "+JSON.stringify(o.value));break}}return o}isExpanded(){return this.expanded&&!(this.depth>-1&&this._currentDepth>=this.depth)}decycle(A){let i=new WeakMap;return function o(n,g){let r,s;return typeof n=="object"&&n!==null&&!(n instanceof Boolean)&&!(n instanceof Date)&&!(n instanceof Number)&&!(n instanceof RegExp)&&!(n instanceof String)?(r=i.get(n),r!==void 0?{$ref:r}:(i.set(n,g),Array.isArray(n)?(s=[],n.forEach(function(I,B){s[B]=o(I,g+"["+B+"]")})):(s={},Object.keys(n).forEach(function(I){s[I]=o(n[I],g+"["+JSON.stringify(I)+"]")})),s)):n}(A,"$")}}return t.\u0275fac=function(A){return new(A||t)},t.\u0275cmp=T({type:t,selectors:[["ngx-json-viewer"]],inputs:{json:"json",expanded:"expanded",depth:"depth",_currentDepth:"_currentDepth"},standalone:!1,features:[VA],decls:2,vars:1,consts:[[1,"ngx-json-viewer"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],[3,"click","ngClass"],["class","toggler",4,"ngIf"],[1,"segment-key"],[1,"segment-separator"],["class","segment-value",4,"ngIf"],["class","children",4,"ngIf"],[1,"toggler"],[1,"segment-value"],[1,"children"],[3,"json","expanded","depth","_currentDepth"]],template:function(A,i){A&1&&(u(0,"section",0),U(1,p8,9,11,"section",1),m()),A&2&&(f(),F("ngForOf",i.segments))},dependencies:[Yt,Rt,Jt,t],styles:['@charset "UTF-8";.ngx-json-viewer[_ngcontent-%COMP%]{font-family:var(--ngx-json-font-family, monospace);font-size:var(--ngx-json-font-size, 1em);width:100%;height:100%;overflow:hidden;position:relative}.ngx-json-viewer[_ngcontent-%COMP%]   .segment[_ngcontent-%COMP%]{padding:2px;margin:1px 1px 1px 12px}.ngx-json-viewer[_ngcontent-%COMP%]   .segment[_ngcontent-%COMP%]   .segment-main[_ngcontent-%COMP%]{word-wrap:break-word}.ngx-json-viewer[_ngcontent-%COMP%]   .segment[_ngcontent-%COMP%]   .segment-main[_ngcontent-%COMP%]   .toggler[_ngcontent-%COMP%]{position:absolute;margin-left:-14px;margin-top:3px;font-size:.8em;line-height:1.2em;vertical-align:middle;color:var(--ngx-json-toggler, #787878)}.ngx-json-viewer[_ngcontent-%COMP%]   .segment[_ngcontent-%COMP%]   .segment-main[_ngcontent-%COMP%]   .toggler[_ngcontent-%COMP%]:after{display:inline-block;content:"\\25ba";transition:transform .1s ease-in}.ngx-json-viewer[_ngcontent-%COMP%]   .segment[_ngcontent-%COMP%]   .segment-main[_ngcontent-%COMP%]   .segment-key[_ngcontent-%COMP%]{color:var(--ngx-json-key, #4E187C)}.ngx-json-viewer[_ngcontent-%COMP%]   .segment[_ngcontent-%COMP%]   .segment-main[_ngcontent-%COMP%]   .segment-separator[_ngcontent-%COMP%]{color:var(--ngx-json-separator, #999)}.ngx-json-viewer[_ngcontent-%COMP%]   .segment[_ngcontent-%COMP%]   .segment-main[_ngcontent-%COMP%]   .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-value, #000)}.ngx-json-viewer[_ngcontent-%COMP%]   .segment[_ngcontent-%COMP%]   .children[_ngcontent-%COMP%]{margin-left:12px}.ngx-json-viewer[_ngcontent-%COMP%]   .segment-type-string[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-string, #FF6B6B)}.ngx-json-viewer[_ngcontent-%COMP%]   .segment-type-number[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-number, #009688)}.ngx-json-viewer[_ngcontent-%COMP%]   .segment-type-boolean[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-boolean, #B938A4)}.ngx-json-viewer[_ngcontent-%COMP%]   .segment-type-date[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-date, #05668D)}.ngx-json-viewer[_ngcontent-%COMP%]   .segment-type-array[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-array, #999)}.ngx-json-viewer[_ngcontent-%COMP%]   .segment-type-object[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-object, #999)}.ngx-json-viewer[_ngcontent-%COMP%]   .segment-type-function[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-function, #999)}.ngx-json-viewer[_ngcontent-%COMP%]   .segment-type-null[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-null, #fff)}.ngx-json-viewer[_ngcontent-%COMP%]   .segment-type-undefined[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-undefined, #fff)}.ngx-json-viewer[_ngcontent-%COMP%]   .segment-type-null[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{background-color:var(--ngx-json-null-bg, red)}.ngx-json-viewer[_ngcontent-%COMP%]   .segment-type-undefined[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-key[_ngcontent-%COMP%]{color:var(--ngx-json-undefined-key, #999)}.ngx-json-viewer[_ngcontent-%COMP%]   .segment-type-undefined[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{background-color:var(--ngx-json-undefined-key, #999)}.ngx-json-viewer[_ngcontent-%COMP%]   .segment-type-object[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%], .ngx-json-viewer[_ngcontent-%COMP%]   .segment-type-array[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%]{white-space:nowrap}.ngx-json-viewer[_ngcontent-%COMP%]   .expanded[_ngcontent-%COMP%] > .toggler[_ngcontent-%COMP%]:after{transform:rotate(90deg)}.ngx-json-viewer[_ngcontent-%COMP%]   .expandable[_ngcontent-%COMP%], .ngx-json-viewer[_ngcontent-%COMP%]   .expandable[_ngcontent-%COMP%] > .toggler[_ngcontent-%COMP%]{cursor:pointer}']}),t})(),HF=(()=>{class t{}return t.\u0275fac=function(A){return new(A||t)},t.\u0275mod=V({type:t}),t.\u0275inj=Z({imports:[Uo]}),t})();var OF=["*"],w8=["content"],y8=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],M8=["mat-drawer","mat-drawer-content","*"];function R8(t,e){if(t&1){let A=aA();u(0,"div",1),x("click",function(){J(A);let o=b();return H(o._onBackdropClicked())}),m()}if(t&2){let A=b();oA("mat-drawer-shown",A._isShowingBackdrop())}}function k8(t,e){t&1&&(u(0,"mat-drawer-content"),sA(1,2),m())}var F8=new k("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:b8}),PF=new k("MAT_DRAWER_CONTAINER");function b8(){return!1}var Vm=(()=>{class t extends Ho{_platform=Q(TA);_changeDetectorRef=Q(zA);_container=Q(zm);constructor(){let A=Q(q),i=Q(fn),o=Q(X);super(A,i,o)}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}_shouldBeHidden(){if(this._platform.isBrowser)return!1;let{start:A,end:i}=this._container;return A!=null&&A.mode!=="over"&&A.opened||i!=null&&i.mode!=="over"&&i.opened}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=T({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:6,hostBindings:function(i,o){i&2&&(Bt("margin-left",o._container._contentMargins.left,"px")("margin-right",o._container._contentMargins.right,"px"),oA("mat-drawer-content-hidden",o._shouldBeHidden()))},features:[LA([{provide:Ho,useExisting:t}]),EA],ngContentSelectors:OF,decls:1,vars:0,template:function(i,o){i&1&&(ZA(),sA(0))},encapsulation:2,changeDetection:0})}return t})(),Wm=(()=>{class t{_elementRef=Q(q);_focusTrapFactory=Q(CE);_focusMonitor=Q($t);_platform=Q(TA);_ngZone=Q(X);_renderer=Q(Me);_interactivityChecker=Q(ga);_doc=Q(lA,{optional:!0});_container=Q(PF,{optional:!0});_focusTrap=null;_elementFocusedBeforeDrawerWasOpened=null;_eventCleanups;_isAttached;_anchor;get position(){return this._position}set position(A){A=A==="end"?"end":"start",A!==this._position&&(this._isAttached&&this._updatePositionInParent(A),this._position=A,this.onPositionChanged.emit())}_position="start";get mode(){return this._mode}set mode(A){this._mode=A,this._updateFocusTrapState(),this._modeChanged.next()}_mode="over";get disableClose(){return this._disableClose}set disableClose(A){this._disableClose=pe(A)}_disableClose=!1;get autoFocus(){let A=this._autoFocus;return A??(this.mode==="side"?"dialog":"first-tabbable")}set autoFocus(A){(A==="true"||A==="false"||A==null)&&(A=pe(A)),this._autoFocus=A}_autoFocus;get opened(){return this._opened}set opened(A){this.toggle(pe(A))}_opened=!1;_openedVia;_animationStarted=new _;_animationEnd=new _;openedChange=new $(!0);_openedStream=this.openedChange.pipe(kA(A=>A),nA(()=>{}));openedStart=this._animationStarted.pipe(kA(()=>this.opened),Xg(void 0));_closedStream=this.openedChange.pipe(kA(A=>!A),nA(()=>{}));closedStart=this._animationStarted.pipe(kA(()=>!this.opened),Xg(void 0));_destroyed=new _;onPositionChanged=new $;_content;_modeChanged=new _;_injector=Q(wA);_changeDetectorRef=Q(zA);constructor(){this.openedChange.pipe(mA(this._destroyed)).subscribe(A=>{A?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{let A=this._elementRef.nativeElement;Ks(A,"keydown").pipe(kA(i=>i.keyCode===27&&!this.disableClose&&!Oe(i)),mA(this._destroyed)).subscribe(i=>this._ngZone.run(()=>{this.close(),i.stopPropagation(),i.preventDefault()})),this._eventCleanups=[this._renderer.listen(A,"transitionrun",this._handleTransitionEvent),this._renderer.listen(A,"transitionend",this._handleTransitionEvent),this._renderer.listen(A,"transitioncancel",this._handleTransitionEvent)]}),this._animationEnd.subscribe(()=>{this.openedChange.emit(this._opened)})}_forceFocus(A,i){this._interactivityChecker.isFocusable(A)||(A.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let o=()=>{n(),g(),A.removeAttribute("tabindex")},n=this._renderer.listen(A,"blur",o),g=this._renderer.listen(A,"mousedown",o)})),A.focus(i)}_focusByCssSelector(A,i){let o=this._elementRef.nativeElement.querySelector(A);o&&this._forceFocus(o,i)}_takeFocus(){if(!this._focusTrap)return;let A=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":be(()=>{!this._focusTrap.focusInitialElement()&&typeof A.focus=="function"&&A.focus()},{injector:this._injector});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus);break}}_restoreFocus(A){this.autoFocus!=="dialog"&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,A):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){let A=this._doc.activeElement;return!!A&&this._elementRef.nativeElement.contains(A)}ngAfterViewInit(){this._isAttached=!0,this._position==="end"&&this._updatePositionInParent("end"),this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState())}ngOnDestroy(){this._eventCleanups.forEach(A=>A()),this._focusTrap?.destroy(),this._anchor?.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(A){return this.toggle(!0,A)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(A=!this.opened,i){A&&i&&(this._openedVia=i);let o=this._setOpen(A,!A&&this._isFocusWithinDrawer(),this._openedVia||"program");return A||(this._openedVia=null),o}_setOpen(A,i,o){return A===this._opened?Promise.resolve(A?"open":"close"):(this._opened=A,this._container?._transitionsEnabled?this._setIsAnimating(!0):setTimeout(()=>{this._animationStarted.next(),this._animationEnd.next()}),this._elementRef.nativeElement.classList.toggle("mat-drawer-opened",A),!A&&i&&this._restoreFocus(o),this._changeDetectorRef.markForCheck(),this._updateFocusTrapState(),new Promise(n=>{this.openedChange.pipe(de(1)).subscribe(g=>n(g?"open":"close"))}))}_setIsAnimating(A){this._elementRef.nativeElement.classList.toggle("mat-drawer-animating",A)}_getWidth(){return this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=!!this._container?.hasBackdrop&&this.opened)}_updatePositionInParent(A){if(!this._platform.isBrowser)return;let i=this._elementRef.nativeElement,o=i.parentNode;A==="end"?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),o.insertBefore(this._anchor,i)),o.appendChild(i)):this._anchor&&this._anchor.parentNode.insertBefore(i,this._anchor)}_handleTransitionEvent=A=>{let i=this._elementRef.nativeElement;A.target===i&&this._ngZone.run(()=>{A.type==="transitionrun"?this._animationStarted.next(A):(A.type==="transitionend"&&this._setIsAnimating(!1),this._animationEnd.next(A))})};static \u0275fac=function(i){return new(i||t)};static \u0275cmp=T({type:t,selectors:[["mat-drawer"]],viewQuery:function(i,o){if(i&1&&cA(w8,5),i&2){let n;z(n=j())&&(o._content=n.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:11,hostBindings:function(i,o){i&2&&(IA("align",null),Bt("visibility",!o._container&&!o.opened?"hidden":null),oA("mat-drawer-end",o.position==="end")("mat-drawer-over",o.mode==="over")("mat-drawer-push",o.mode==="push")("mat-drawer-side",o.mode==="side"))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:OF,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(i,o){i&1&&(ZA(),u(0,"div",1,0),sA(2),m())},dependencies:[Ho],encapsulation:2,changeDetection:0})}return t})(),zm=(()=>{class t{_dir=Q(Ne,{optional:!0});_element=Q(q);_ngZone=Q(X);_changeDetectorRef=Q(zA);_animationMode=Q($A,{optional:!0});_transitionsEnabled=!1;_allDrawers;_drawers=new ui;_content;_userContent;get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(A){this._autosize=pe(A)}_autosize=Q(F8);get hasBackdrop(){return this._drawerHasBackdrop(this._start)||this._drawerHasBackdrop(this._end)}set hasBackdrop(A){this._backdropOverride=A==null?null:pe(A)}_backdropOverride;backdropClick=new $;_start;_end;_left;_right;_destroyed=new _;_doCheckSubject=new _;_contentMargins={left:null,right:null};_contentMarginChanges=new _;get scrollable(){return this._userContent||this._content}_injector=Q(wA);constructor(){let A=Q(TA),i=Q(ti);this._dir?.change.pipe(mA(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),i.change().pipe(mA(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._animationMode!=="NoopAnimations"&&A.isBrowser&&this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{this._element.nativeElement.classList.add("mat-drawer-transition"),this._transitionsEnabled=!0},200)})}ngAfterContentInit(){this._allDrawers.changes.pipe(De(this._allDrawers),mA(this._destroyed)).subscribe(A=>{this._drawers.reset(A.filter(i=>!i._container||i._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(De(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(A=>{this._watchDrawerToggle(A),this._watchDrawerPosition(A),this._watchDrawerMode(A)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe(Qi(10),mA(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(A=>A.open())}close(){this._drawers.forEach(A=>A.close())}updateContentMargins(){let A=0,i=0;if(this._left&&this._left.opened){if(this._left.mode=="side")A+=this._left._getWidth();else if(this._left.mode=="push"){let o=this._left._getWidth();A+=o,i-=o}}if(this._right&&this._right.opened){if(this._right.mode=="side")i+=this._right._getWidth();else if(this._right.mode=="push"){let o=this._right._getWidth();i+=o,A-=o}}A=A||null,i=i||null,(A!==this._contentMargins.left||i!==this._contentMargins.right)&&(this._contentMargins={left:A,right:i},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(A){A._animationStarted.pipe(mA(this._drawers.changes)).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),A.mode!=="side"&&A.openedChange.pipe(mA(this._drawers.changes)).subscribe(()=>this._setContainerClass(A.opened))}_watchDrawerPosition(A){A.onPositionChanged.pipe(mA(this._drawers.changes)).subscribe(()=>{be({read:()=>this._validateDrawers()},{injector:this._injector})})}_watchDrawerMode(A){A._modeChanged.pipe(mA(me(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(A){let i=this._element.nativeElement.classList,o="mat-drawer-container-has-open";A?i.add(o):i.remove(o)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(A=>{A.position=="end"?(this._end!=null,this._end=A):(this._start!=null,this._start=A)}),this._right=this._left=null,this._dir&&this._dir.value==="rtl"?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&this._start.mode!="over"||this._isDrawerOpen(this._end)&&this._end.mode!="over"}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(A=>A&&!A.disableClose&&this._drawerHasBackdrop(A)).forEach(A=>A._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._drawerHasBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._drawerHasBackdrop(this._end)}_isDrawerOpen(A){return A!=null&&A.opened}_drawerHasBackdrop(A){return this._backdropOverride==null?!!A&&A.mode!=="side":this._backdropOverride}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=T({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(i,o,n){if(i&1&&(jA(n,Vm,5),jA(n,Wm,5)),i&2){let g;z(g=j())&&(o._content=g.first),z(g=j())&&(o._allDrawers=g)}},viewQuery:function(i,o){if(i&1&&cA(Vm,5),i&2){let n;z(n=j())&&(o._userContent=n.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(i,o){i&2&&oA("mat-drawer-container-explicit-backdrop",o._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[LA([{provide:PF,useExisting:t}])],ngContentSelectors:M8,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(i,o){i&1&&(ZA(y8),U(0,R8,1,2,"div",0),sA(1),sA(2,1),U(3,k8,2,0,"mat-drawer-content")),i&2&&(pA(o.hasBackdrop?0:-1),f(3),pA(o._content?-1:3))},dependencies:[Vm],styles:[".mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color, var(--mat-sys-on-background));background-color:var(--mat-sidenav-content-background-color, var(--mat-sys-background));box-sizing:border-box;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible;background-color:var(--mat-sidenav-scrim-color, color-mix(in srgb, var(--mat-sys-neutral-variant20) 40%, transparent))}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}@media(forced-colors: active){.mat-drawer-backdrop{opacity:.5}}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-content.mat-drawer-content-hidden{opacity:0}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;color:var(--mat-sidenav-container-text-color, var(--mat-sys-on-surface-variant));box-shadow:var(--mat-sidenav-container-elevation-shadow, none);background-color:var(--mat-sidenav-container-background-color, var(--mat-sys-surface));border-top-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));width:var(--mat-sidenav-container-width, 360px);display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}@media(forced-colors: active){.mat-drawer,[dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}}@media(forced-colors: active){[dir=rtl] .mat-drawer,.mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0);border-top-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .mat-drawer{border-top-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-right-radius:0;border-bottom-right-radius:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{border-top-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-left-radius:0;border-bottom-left-radius:0;left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-transition .mat-drawer{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-drawer:not(.mat-drawer-opened):not(.mat-drawer-animating){visibility:hidden;box-shadow:none}.mat-drawer:not(.mat-drawer-opened):not(.mat-drawer-animating) .mat-drawer-inner-container{display:none}.mat-drawer.mat-drawer-opened.mat-drawer-opened{transform:none}.mat-drawer-side{box-shadow:none;border-right-color:var(--mat-sidenav-container-divider-color, transparent);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color, transparent);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side{border-left-color:var(--mat-sidenav-container-divider-color, transparent);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-right-color:var(--mat-sidenav-container-divider-color, transparent);border-right-width:1px;border-right-style:solid;border-left:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto}.mat-sidenav-fixed{position:fixed}"],encapsulation:2,changeDetection:0})}return t})();var ZF=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=Z({imports:[MA,Jo,Jo,MA]})}return t})();var AD=["*"];function v8(t,e){t&1&&sA(0)}var N8=["tabListContainer"],G8=["tabList"],L8=["tabListInner"],_8=["nextPaginator"],K8=["previousPaginator"],U8=t=>({animationDuration:t}),x8=(t,e)=>({value:t,params:e});function Y8(t,e){}var J8=["tabBodyWrapper"],H8=["tabHeader"];function T8(t,e){}function O8(t,e){if(t&1&&U(0,T8,0,0,"ng-template",12),t&2){let A=b().$implicit;F("cdkPortalOutlet",A.templateLabel)}}function P8(t,e){if(t&1&&G(0),t&2){let A=b().$implicit;HA(A.textLabel)}}function Z8(t,e){if(t&1){let A=aA();u(0,"div",7,2),x("click",function(){let o=J(A),n=o.$implicit,g=o.$index,r=b(),s=He(1);return H(r._handleClick(n,s,g))})("cdkFocusChange",function(o){let n=J(A).$index,g=b();return H(g._tabFocusChanged(o,n))}),W(2,"span",8)(3,"div",9),u(4,"span",10)(5,"span",11),U(6,O8,1,1,null,12)(7,P8,1,1),m()()()}if(t&2){let A=e.$implicit,i=e.$index,o=He(1),n=b();We(A.labelClass),oA("mdc-tab--active",n.selectedIndex===i),F("id",n._getTabLabelId(i))("disabled",A.disabled)("fitInkBarToContent",n.fitInkBarToContent),IA("tabIndex",n._getTabIndex(i))("aria-posinset",i+1)("aria-setsize",n._tabs.length)("aria-controls",n._getTabContentId(i))("aria-selected",n.selectedIndex===i)("aria-label",A.ariaLabel||null)("aria-labelledby",!A.ariaLabel&&A.ariaLabelledby?A.ariaLabelledby:null),f(3),F("matRippleTrigger",o)("matRippleDisabled",A.disabled||n.disableRipple),f(3),pA(A.templateLabel?6:7)}}function q8(t,e){t&1&&sA(0)}function V8(t,e){if(t&1){let A=aA();u(0,"mat-tab-body",13),x("_onCentered",function(){J(A);let o=b();return H(o._removeTabBodyWrapperHeight())})("_onCentering",function(o){J(A);let n=b();return H(n._setTabBodyWrapperHeight(o))}),m()}if(t&2){let A=e.$implicit,i=e.$index,o=b();We(A.bodyClass),oA("mat-mdc-tab-body-active",o.selectedIndex===i),F("id",o._getTabContentId(i))("content",A.content)("position",A.position)("origin",A.origin)("animationDuration",o.animationDuration)("preserveContent",o.preserveContent),IA("tabindex",o.contentTabIndex!=null&&o.selectedIndex===i?o.contentTabIndex:null)("aria-labelledby",o._getTabLabelId(i))("aria-hidden",o.selectedIndex!==i)}}var W8=new k("MatTabContent"),z8=(()=>{class t{template=Q(ge);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["","matTabContent",""]],features:[LA([{provide:W8,useExisting:t}])]})}return t})(),j8=new k("MatTabLabel"),WF=new k("MAT_TAB"),eD=(()=>{class t extends gk{_closestTab=Q(WF,{optional:!0});static \u0275fac=(()=>{let A;return function(o){return(A||(A=WA(t)))(o||t)}})();static \u0275dir=Y({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[LA([{provide:j8,useExisting:t}]),EA]})}return t})(),zF=new k("MAT_TAB_GROUP"),tD=(()=>{class t{_viewContainerRef=Q(Ce);_closestTabGroup=Q(zF,{optional:!0});disabled=!1;get templateLabel(){return this._templateLabel}set templateLabel(A){this._setTemplateLabelInput(A)}_templateLabel;_explicitContent=void 0;_implicitContent;textLabel="";ariaLabel;ariaLabelledby;labelClass;bodyClass;_contentPortal=null;get content(){return this._contentPortal}_stateChanges=new _;position=null;origin=null;isActive=!1;constructor(){Q(Se).load(ei)}ngOnChanges(A){(A.hasOwnProperty("textLabel")||A.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new ii(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(A){A&&A._closestTab===this&&(this._templateLabel=A)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=T({type:t,selectors:[["mat-tab"]],contentQueries:function(i,o,n){if(i&1&&(jA(n,eD,5),jA(n,z8,7,ge)),i&2){let g;z(g=j())&&(o.templateLabel=g.first),z(g=j())&&(o._explicitContent=g.first)}},viewQuery:function(i,o){if(i&1&&cA(ge,7),i&2){let n;z(n=j())&&(o._implicitContent=n.first)}},hostAttrs:["hidden",""],inputs:{disabled:[2,"disabled","disabled",tA],textLabel:[0,"label","textLabel"],ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],features:[LA([{provide:WF,useExisting:t}]),VA],ngContentSelectors:AD,decls:1,vars:0,template:function(i,o){i&1&&(ZA(),U(0,v8,1,0,"ng-template"))},encapsulation:2})}return t})(),jm="mdc-tab-indicator--active",qF="mdc-tab-indicator--no-transition",Xm=class{_items;_currentItem;constructor(e){this._items=e}hide(){this._items.forEach(e=>e.deactivateInkBar()),this._currentItem=void 0}alignToElement(e){let A=this._items.find(o=>o.elementRef.nativeElement===e),i=this._currentItem;if(A!==i&&(i?.deactivateInkBar(),A)){let o=i?.elementRef.nativeElement.getBoundingClientRect?.();A.activateInkBar(o),this._currentItem=A}}},X8=(()=>{class t{_elementRef=Q(q);_inkBarElement;_inkBarContentElement;_fitToContent=!1;get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(A){this._fitToContent!==A&&(this._fitToContent=A,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(A){let i=this._elementRef.nativeElement;if(!A||!i.getBoundingClientRect||!this._inkBarContentElement){i.classList.add(jm);return}let o=i.getBoundingClientRect(),n=A.width/o.width,g=A.left-o.left;i.classList.add(qF),this._inkBarContentElement.style.setProperty("transform",`translateX(${g}px) scaleX(${n})`),i.getBoundingClientRect(),i.classList.remove(qF),i.classList.add(jm),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(jm)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){let A=this._elementRef.nativeElement.ownerDocument||document,i=this._inkBarElement=A.createElement("span"),o=this._inkBarContentElement=A.createElement("span");i.className="mdc-tab-indicator",o.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",i.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){this._inkBarElement;let A=this._fitToContent?this._elementRef.nativeElement.querySelector(".mdc-tab__content"):this._elementRef.nativeElement;A.appendChild(this._inkBarElement)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",tA]}})}return t})();var jF=(()=>{class t extends X8{elementRef=Q(q);disabled=!1;focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}static \u0275fac=(()=>{let A;return function(o){return(A||(A=WA(t)))(o||t)}})();static \u0275dir=Y({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(i,o){i&2&&(IA("aria-disabled",!!o.disabled),oA("mat-mdc-tab-disabled",o.disabled))},inputs:{disabled:[2,"disabled","disabled",tA]},features:[EA]})}return t})(),VF={passive:!0},$8=650,AP=100,eP=(()=>{class t{_elementRef=Q(q);_changeDetectorRef=Q(zA);_viewportRuler=Q(ti);_dir=Q(Ne,{optional:!0});_ngZone=Q(X);_platform=Q(TA);_sharedResizeObserver=Q(wE);_injector=Q(wA);_renderer=Q(Me);_animationMode=Q($A,{optional:!0});_eventCleanups;_scrollDistance=0;_selectedIndexChanged=!1;_destroyed=new _;_showPaginationControls=!1;_disableScrollAfter=!0;_disableScrollBefore=!0;_tabLabelCount;_scrollDistanceChanged;_keyManager;_currentTextContent;_stopScrolling=new _;disablePagination=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(A){let i=isNaN(A)?0:A;this._selectedIndex!=i&&(this._selectedIndexChanged=!0,this._selectedIndex=i,this._keyManager&&this._keyManager.updateActiveItem(i))}_selectedIndex=0;selectFocusedIndex=new $;indexFocused=new $;constructor(){this._eventCleanups=this._ngZone.runOutsideAngular(()=>[this._renderer.listen(this._elementRef.nativeElement,"mouseleave",()=>this._stopInterval())])}ngAfterViewInit(){this._eventCleanups.push(Gu(this._renderer,this._previousPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("before"),VF),Gu(this._renderer,this._nextPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("after"),VF))}ngAfterContentInit(){let A=this._dir?this._dir.change:iA("ltr"),i=this._sharedResizeObserver.observe(this._elementRef.nativeElement).pipe(Qi(32),mA(this._destroyed)),o=this._viewportRuler.change(150).pipe(mA(this._destroyed)),n=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new rE(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),be(n,{injector:this._injector}),me(A,o,i,this._items.changes,this._itemsResized()).pipe(mA(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),n()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(g=>{this.indexFocused.emit(g),this._setTabFocus(g)})}_itemsResized(){return typeof ResizeObserver!="function"?Le:this._items.changes.pipe(De(this._items),se(A=>new QA(i=>this._ngZone.runOutsideAngular(()=>{let o=new ResizeObserver(n=>i.next(n));return A.forEach(n=>o.observe(n.elementRef.nativeElement)),()=>{o.disconnect()}}))),xn(1),kA(A=>A.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._eventCleanups.forEach(A=>A()),this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(A){if(!Oe(A))switch(A.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){let i=this._items.get(this.focusIndex);i&&!i.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(A))}break;default:this._keyManager.onKeydown(A)}}_onContentChanges(){let A=this._elementRef.nativeElement.textContent;A!==this._currentTextContent&&(this._currentTextContent=A||"",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(A){!this._isValidIndex(A)||this.focusIndex===A||!this._keyManager||this._keyManager.setActiveItem(A)}_isValidIndex(A){return this._items?!!this._items.toArray()[A]:!0}_setTabFocus(A){if(this._showPaginationControls&&this._scrollToLabel(A),this._items&&this._items.length){this._items.toArray()[A].focus();let i=this._tabListContainer.nativeElement;this._getLayoutDirection()=="ltr"?i.scrollLeft=0:i.scrollLeft=i.scrollWidth-i.offsetWidth}}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;let A=this.scrollDistance,i=this._getLayoutDirection()==="ltr"?-A:A;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(A){this._scrollTo(A)}_scrollHeader(A){let i=this._tabListContainer.nativeElement.offsetWidth,o=(A=="before"?-1:1)*i/3;return this._scrollTo(this._scrollDistance+o)}_handlePaginatorClick(A){this._stopInterval(),this._scrollHeader(A)}_scrollToLabel(A){if(this.disablePagination)return;let i=this._items?this._items.toArray()[A]:null;if(!i)return;let o=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:n,offsetWidth:g}=i.elementRef.nativeElement,r,s;this._getLayoutDirection()=="ltr"?(r=n,s=r+g):(s=this._tabListInner.nativeElement.offsetWidth-n,r=s-g);let I=this.scrollDistance,B=this.scrollDistance+o;r<I?this.scrollDistance-=I-r:s>B&&(this.scrollDistance+=Math.min(s-B,r-I))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{let A=this._tabListInner.nativeElement.scrollWidth,i=this._elementRef.nativeElement.offsetWidth,o=A-i>=5;o||(this.scrollDistance=0),o!==this._showPaginationControls&&(this._showPaginationControls=o,this._changeDetectorRef.markForCheck())}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=this.scrollDistance==0,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){let A=this._tabListInner.nativeElement.scrollWidth,i=this._tabListContainer.nativeElement.offsetWidth;return A-i||0}_alignInkBarToSelectedTab(){let A=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,i=A?A.elementRef.nativeElement:null;i?this._inkBar.alignToElement(i):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(A,i){i&&i.button!=null&&i.button!==0||(this._stopInterval(),Un($8,AP).pipe(mA(me(this._stopScrolling,this._destroyed))).subscribe(()=>{let{maxScrollDistance:o,distance:n}=this._scrollHeader(A);(n===0||n>=o)&&this._stopInterval()}))}_scrollTo(A){if(this.disablePagination)return{maxScrollDistance:0,distance:0};let i=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(i,A)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:i,distance:this._scrollDistance}}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,inputs:{disablePagination:[2,"disablePagination","disablePagination",tA],selectedIndex:[2,"selectedIndex","selectedIndex",Re]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"}})}return t})(),tP=(()=>{class t extends eP{_items;_tabListContainer;_tabList;_tabListInner;_nextPaginator;_previousPaginator;_inkBar;ariaLabel;ariaLabelledby;disableRipple=!1;ngAfterContentInit(){this._inkBar=new Xm(this._items),super.ngAfterContentInit()}_itemSelected(A){A.preventDefault()}static \u0275fac=(()=>{let A;return function(o){return(A||(A=WA(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["mat-tab-header"]],contentQueries:function(i,o,n){if(i&1&&jA(n,jF,4),i&2){let g;z(g=j())&&(o._items=g)}},viewQuery:function(i,o){if(i&1&&(cA(N8,7),cA(G8,7),cA(L8,7),cA(_8,5),cA(K8,5)),i&2){let n;z(n=j())&&(o._tabListContainer=n.first),z(n=j())&&(o._tabList=n.first),z(n=j())&&(o._tabListInner=n.first),z(n=j())&&(o._nextPaginator=n.first),z(n=j())&&(o._previousPaginator=n.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(i,o){i&2&&oA("mat-mdc-tab-header-pagination-controls-enabled",o._showPaginationControls)("mat-mdc-tab-header-rtl",o._getLayoutDirection()=="rtl")},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],disableRipple:[2,"disableRipple","disableRipple",tA]},features:[EA],ngContentSelectors:AD,decls:13,vars:10,consts:[["previousPaginator",""],["tabListContainer",""],["tabList",""],["tabListInner",""],["nextPaginator",""],["mat-ripple","",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"click","mousedown","touchend","matRippleDisabled"],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],[1,"mat-mdc-tab-labels"],["mat-ripple","",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"mousedown","click","touchend","matRippleDisabled"]],template:function(i,o){if(i&1){let n=aA();ZA(),u(0,"div",5,0),x("click",function(){return J(n),H(o._handlePaginatorClick("before"))})("mousedown",function(r){return J(n),H(o._handlePaginatorPress("before",r))})("touchend",function(){return J(n),H(o._stopInterval())}),W(2,"div",6),m(),u(3,"div",7,1),x("keydown",function(r){return J(n),H(o._handleKeydown(r))}),u(5,"div",8,2),x("cdkObserveContent",function(){return J(n),H(o._onContentChanges())}),u(7,"div",9,3),sA(9),m()()(),u(10,"div",10,4),x("mousedown",function(r){return J(n),H(o._handlePaginatorPress("after",r))})("click",function(){return J(n),H(o._handlePaginatorClick("after"))})("touchend",function(){return J(n),H(o._stopInterval())}),W(12,"div",6),m()}i&2&&(oA("mat-mdc-tab-header-pagination-disabled",o._disableScrollBefore),F("matRippleDisabled",o._disableScrollBefore||o.disableRipple),f(3),oA("_mat-animation-noopable",o._animationMode==="NoopAnimations"),f(2),IA("aria-label",o.ariaLabel||null)("aria-labelledby",o.ariaLabelledby||null),f(5),oA("mat-mdc-tab-header-pagination-disabled",o._disableScrollAfter),F("matRippleDisabled",o._disableScrollAfter||o.disableRipple))},dependencies:[mn,$Q],styles:[".mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.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;outline:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color, var(--mat-sys-on-surface))}.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;border-color:var(--mat-tab-header-pagination-icon-color, var(--mat-sys-on-surface))}.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-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-header-divider-height, 1px);border-bottom-color:var(--mat-tab-header-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-group-inverted-header .mat-mdc-tab-label-container{border-bottom:none;border-top-style:solid;border-top-width:var(--mat-tab-header-divider-height, 1px);border-top-color:var(--mat-tab-header-divider-color, var(--mat-sys-surface-variant))}.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}.cdk-drop-list .mat-mdc-tab-labels,.mat-mdc-tab-labels.cdk-drop-list{min-height:var(--mdc-secondary-navigation-tab-container-height, 48px)}.mat-mdc-tab::before{margin:5px}@media(forced-colors: active){.mat-mdc-tab[aria-disabled=true]{color:GrayText}}"],encapsulation:2})}return t})(),iP=new k("MAT_TABS_CONFIG"),oP={translateTab:Qo("translateTab",[gi("center, void, left-origin-center, right-origin-center",Ge({transform:"none",visibility:"visible"})),gi("left",Ge({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),gi("right",Ge({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),St("* => left, * => right, left => center, right => center",qt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),St("void => left-origin-center",[Ge({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),qt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),St("void => right-origin-center",[Ge({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),qt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},nP=(()=>{class t extends oi{_host=Q(XF);_centeringSub=vA.EMPTY;_leavingSub=vA.EMPTY;constructor(){super()}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(De(this._host._isCenterPosition(this._host._position))).subscribe(A=>{this._host._content&&A&&!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()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["","matTabBodyHost",""]],features:[EA]})}return t})(),XF=(()=>{class t{_elementRef=Q(q);_dir=Q(Ne,{optional:!0});_positionIndex;_dirChangeSubscription=vA.EMPTY;_position;_translateTabComplete=new _;_onCentering=new $;_beforeCentering=new $;_afterLeavingCenter=new $;_onCentered=new $(!0);_portalHost;_content;origin;animationDuration="500ms";preserveContent=!1;set position(A){this._positionIndex=A,this._computePositionAnimationState()}constructor(){if(this._dir){let A=Q(zA);this._dirChangeSubscription=this._dir.change.subscribe(i=>{this._computePositionAnimationState(i),A.markForCheck()})}this._translateTabComplete.subscribe(A=>{this._isCenterPosition(A.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(A.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}ngOnInit(){this._position=="center"&&this.origin!=null&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(A){let i=this._isCenterPosition(A.toState);this._beforeCentering.emit(i),i&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_isCenterPosition(A){return A=="center"||A=="left-origin-center"||A=="right-origin-center"}_computePositionAnimationState(A=this._getLayoutDirection()){this._positionIndex<0?this._position=A=="ltr"?"left":"right":this._positionIndex>0?this._position=A=="ltr"?"right":"left":this._position="center"}_computePositionFromOrigin(A){let i=this._getLayoutDirection();return i=="ltr"&&A<=0||i=="rtl"&&A>0?"left-origin-center":"right-origin-center"}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=T({type:t,selectors:[["mat-tab-body"]],viewQuery:function(i,o){if(i&1&&cA(oi,5),i&2){let n;z(n=j())&&(o._portalHost=n.first)}},hostAttrs:[1,"mat-mdc-tab-body"],inputs:{_content:[0,"content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"},decls:3,vars:6,consts:[["content",""],["cdkScrollable","",1,"mat-mdc-tab-body-content"],["matTabBodyHost",""]],template:function(i,o){if(i&1){let n=aA();u(0,"div",1,0),x("@translateTab.start",function(r){return J(n),H(o._onTranslateTabStarted(r))})("@translateTab.done",function(r){return J(n),H(o._translateTabComplete.next(r))}),U(2,Y8,0,0,"ng-template",2),m()}i&2&&F("@translateTab",rg(3,x8,o._position,gg(1,U8,o.animationDuration)))},dependencies:[nP,Ho],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:[oP.translateTab]}})}return t})(),gP=!0,$F=(()=>{class t{_elementRef=Q(q);_changeDetectorRef=Q(zA);_animationMode=Q($A,{optional:!0});_allTabs;_tabBodyWrapper;_tabHeader;_tabs=new ui;_indexToSelect=0;_lastFocusedTabIndex=null;_tabBodyWrapperHeight=0;_tabsSubscription=vA.EMPTY;_tabLabelSubscription=vA.EMPTY;color;get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(A){this._fitInkBarToContent=A,this._changeDetectorRef.markForCheck()}_fitInkBarToContent=!1;stretchTabs=!0;alignTabs=null;dynamicHeight=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(A){this._indexToSelect=isNaN(A)?null:A}_selectedIndex=null;headerPosition="above";get animationDuration(){return this._animationDuration}set animationDuration(A){let i=A+"";this._animationDuration=/^\d+$/.test(i)?A+"ms":i}_animationDuration;get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(A){this._contentTabIndex=isNaN(A)?null:A}_contentTabIndex;disablePagination=!1;disableRipple=!1;preserveContent=!1;get backgroundColor(){return this._backgroundColor}set backgroundColor(A){if(!gP)throw new Error("mat-tab-group background color must be set through the Sass theming API");let i=this._elementRef.nativeElement.classList;i.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),A&&i.add("mat-tabs-with-background",`mat-background-${A}`),this._backgroundColor=A}_backgroundColor;ariaLabel;ariaLabelledby;selectedIndexChange=new $;focusChange=new $;animationDone=new $;selectedTabChange=new $(!0);_groupId;_isServer=!Q(TA).isBrowser;constructor(){let A=Q(iP,{optional:!0});this._groupId=Q(ce).getId("mat-tab-group-"),this.animationDuration=A&&A.animationDuration?A.animationDuration:"500ms",this.disablePagination=A&&A.disablePagination!=null?A.disablePagination:!1,this.dynamicHeight=A&&A.dynamicHeight!=null?A.dynamicHeight:!1,A?.contentTabIndex!=null&&(this.contentTabIndex=A.contentTabIndex),this.preserveContent=!!A?.preserveContent,this.fitInkBarToContent=A&&A.fitInkBarToContent!=null?A.fitInkBarToContent:!1,this.stretchTabs=A&&A.stretchTabs!=null?A.stretchTabs:!0,this.alignTabs=A&&A.alignTabs!=null?A.alignTabs:null}ngAfterContentChecked(){let A=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=A){let i=this._selectedIndex==null;if(!i){this.selectedTabChange.emit(this._createChangeEvent(A));let o=this._tabBodyWrapper.nativeElement;o.style.minHeight=o.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((o,n)=>o.isActive=n===A),i||(this.selectedIndexChange.emit(A),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((i,o)=>{i.position=o-A,this._selectedIndex!=null&&i.position==0&&!i.origin&&(i.origin=A-this._selectedIndex)}),this._selectedIndex!==A&&(this._selectedIndex=A,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{let A=this._clampTabIndex(this._indexToSelect);if(A===this._selectedIndex){let i=this._tabs.toArray(),o;for(let n=0;n<i.length;n++)if(i[n].isActive){this._indexToSelect=this._selectedIndex=n,this._lastFocusedTabIndex=null,o=i[n];break}!o&&i[A]&&Promise.resolve().then(()=>{i[A].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(A))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(De(this._allTabs)).subscribe(A=>{this._tabs.reset(A.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(A){let i=this._tabHeader;i&&(i.focusIndex=A)}_focusChanged(A){this._lastFocusedTabIndex=A,this.focusChange.emit(this._createChangeEvent(A))}_createChangeEvent(A){let i=new $m;return i.index=A,this._tabs&&this._tabs.length&&(i.tab=this._tabs.toArray()[A]),i}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=me(...this._tabs.map(A=>A._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(A){return Math.min(this._tabs.length-1,Math.max(A||0,0))}_getTabLabelId(A){return`${this._groupId}-label-${A}`}_getTabContentId(A){return`${this._groupId}-content-${A}`}_setTabBodyWrapperHeight(A){if(!this.dynamicHeight||!this._tabBodyWrapperHeight)return;let i=this._tabBodyWrapper.nativeElement;i.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(i.style.height=A+"px")}_removeTabBodyWrapperHeight(){let A=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=A.clientHeight,A.style.height="",this.animationDone.emit()}_handleClick(A,i,o){i.focusIndex=o,A.disabled||(this.selectedIndex=o)}_getTabIndex(A){let i=this._lastFocusedTabIndex??this.selectedIndex;return A===i?0:-1}_tabFocusChanged(A,i){A&&A!=="mouse"&&A!=="touch"&&(this._tabHeader.focusIndex=i)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=T({type:t,selectors:[["mat-tab-group"]],contentQueries:function(i,o,n){if(i&1&&jA(n,tD,5),i&2){let g;z(g=j())&&(o._allTabs=g)}},viewQuery:function(i,o){if(i&1&&(cA(J8,5),cA(H8,5)),i&2){let n;z(n=j())&&(o._tabBodyWrapper=n.first),z(n=j())&&(o._tabHeader=n.first)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:11,hostBindings:function(i,o){i&2&&(IA("mat-align-tabs",o.alignTabs),We("mat-"+(o.color||"primary")),Bt("--mat-tab-animation-duration",o.animationDuration),oA("mat-mdc-tab-group-dynamic-height",o.dynamicHeight)("mat-mdc-tab-group-inverted-header",o.headerPosition==="below")("mat-mdc-tab-group-stretch-tabs",o.stretchTabs))},inputs:{color:"color",fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",tA],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",tA],alignTabs:[0,"mat-align-tabs","alignTabs"],dynamicHeight:[2,"dynamicHeight","dynamicHeight",tA],selectedIndex:[2,"selectedIndex","selectedIndex",Re],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[2,"contentTabIndex","contentTabIndex",Re],disablePagination:[2,"disablePagination","disablePagination",tA],disableRipple:[2,"disableRipple","disableRipple",tA],preserveContent:[2,"preserveContent","preserveContent",tA],backgroundColor:"backgroundColor",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"]},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],features:[LA([{provide:zF,useExisting:t}])],ngContentSelectors:AD,decls:9,vars:8,consts:[["tabHeader",""],["tabBodyWrapper",""],["tabNode",""],[3,"indexFocused","selectFocusedIndex","selectedIndex","disableRipple","disablePagination","aria-label","aria-labelledby"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-focus-indicator",3,"id","mdc-tab--active","class","disabled","fitInkBarToContent"],[1,"mat-mdc-tab-body-wrapper"],["role","tabpanel",3,"id","mat-mdc-tab-body-active","class","content","position","origin","animationDuration","preserveContent"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-focus-indicator",3,"click","cdkFocusChange","id","disabled","fitInkBarToContent"],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"_onCentered","_onCentering","id","content","position","origin","animationDuration","preserveContent"]],template:function(i,o){if(i&1){let n=aA();ZA(),u(0,"mat-tab-header",3,0),x("indexFocused",function(r){return J(n),H(o._focusChanged(r))})("selectFocusedIndex",function(r){return J(n),H(o.selectedIndex=r)}),og(2,Z8,8,17,"div",4,ig),m(),U(4,q8,1,0),u(5,"div",5,1),og(7,V8,1,13,"mat-tab-body",6,ig),m()}i&2&&(F("selectedIndex",o.selectedIndex||0)("disableRipple",o.disableRipple)("disablePagination",o.disablePagination)("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledby),f(2),ng(o._tabs),f(2),pA(o._isServer?4:-1),f(),oA("_mat-animation-noopable",o._animationMode==="NoopAnimations"),f(2),ng(o._tabs))},dependencies:[tP,jF,PR,mn,oi,XF],styles:['.mdc-tab{min-width:90px;padding:0 24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;z-index:1}.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--active .mdc-tab__text-label{transition-delay:100ms}._mat-animation-noopable .mdc-tab__text-label{transition:none}.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{transition:var(--mat-tab-animation-duration, 250ms) transform cubic-bezier(0.4, 0, 0.2, 1);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--active .mdc-tab-indicator__content{opacity:1}._mat-animation-noopable .mdc-tab-indicator__content,.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mat-mdc-tab-ripple.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);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;height:var(--mdc-secondary-navigation-tab-container-height, 48px);font-family:var(--mat-tab-header-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-tab-header-label-text-size, var(--mat-sys-title-small-size));letter-spacing:var(--mat-tab-header-label-text-tracking, var(--mat-sys-title-small-tracking));line-height:var(--mat-tab-header-label-text-line-height, var(--mat-sys-title-small-line-height));font-weight:var(--mat-tab-header-label-text-weight, var(--mat-sys-title-small-weight))}.mat-mdc-tab.mdc-tab{flex-grow:0}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-color:var(--mdc-tab-indicator-active-indicator-color, var(--mat-sys-primary));border-top-width:var(--mdc-tab-indicator-active-indicator-height, 2px);border-radius:var(--mdc-tab-indicator-active-indicator-shape, 0)}.mat-mdc-tab:hover .mdc-tab__text-label{color:var(--mat-tab-header-inactive-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab:focus .mdc-tab__text-label{color:var(--mat-tab-header-inactive-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-header-active-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-header-active-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-header-active-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-hover-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-header-active-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-focus-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-header-disabled-ripple-color)}.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;background-color:var(--mat-tab-header-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-inactive-label-text-color, var(--mat-sys-on-surface));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;background-color:var(--mat-tab-header-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.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-tab-header-with-background-background-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.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-focus-indicator::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-focus-indicator::before{border-color:var(--mat-tab-header-with-background-foreground-color)}.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-tab-header-with-background-foreground-color)}.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{color:var(--mat-tab-header-with-background-foreground-color)}.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})}return t})(),$m=class{index;tab};var Ab=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=Z({imports:[MA,MA]})}return t})();function nD(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Lg=nD();function gb(t){Lg=t}var ka={exec:()=>null};function ie(t,e=""){let A=typeof t=="string"?t:t.source,i={replace:(o,n)=>{let g=typeof n=="string"?n:n.source;return g=g.replace(Et.caret,"$1"),A=A.replace(o,g),i},getRegex:()=>new RegExp(A,e)};return i}var Et={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[	 ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ 	][^\\n]*)?(?:\\n|$))`),hrRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i")},sP=/^(?:[ \t]*(?:\n|$))+/,IP=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,aP=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,ba=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,CP=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,gD=/(?:[*+-]|\d{1,9}[.)])/,rb=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,sb=ie(rb).replace(/bull/g,gD).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),BP=ie(rb).replace(/bull/g,gD).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),rD=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,QP=/^[^\n]+/,sD=/(?!\s*\])(?:\\.|[^\[\]\\])+/,EP=ie(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",sD).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),cP=ie(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,gD).getRegex(),qE="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ID=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,lP=ie("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$))","i").replace("comment",ID).replace("tag",qE).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ib=ie(rD).replace("hr",ba).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",qE).getRegex(),dP=ie(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Ib).getRegex(),aD={blockquote:dP,code:IP,def:EP,fences:aP,heading:CP,hr:ba,html:lP,lheading:sb,list:cP,newline:sP,paragraph:Ib,table:ka,text:QP},eb=ie("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",ba).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}	)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",qE).getRegex(),hP=hA(R({},aD),{lheading:BP,table:eb,paragraph:ie(rD).replace("hr",ba).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",eb).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",qE).getRegex()}),uP=hA(R({},aD),{html:ie(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ID).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:ka,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ie(rD).replace("hr",ba).replace("heading",` *#{1,6} *[^
]`).replace("lheading",sb).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()}),mP=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,DP=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,ab=/^( {2,}|\\)\n(?!\s*$)/,fP=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,VE=/[\p{P}\p{S}]/u,CD=/[\s\p{P}\p{S}]/u,Cb=/[^\s\p{P}\p{S}]/u,pP=ie(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,CD).getRegex(),Bb=/(?!~)[\p{P}\p{S}]/u,wP=/(?!~)[\s\p{P}\p{S}]/u,yP=/(?:[^\s\p{P}\p{S}]|~)/u,MP=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,Qb=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,RP=ie(Qb,"u").replace(/punct/g,VE).getRegex(),kP=ie(Qb,"u").replace(/punct/g,Bb).getRegex(),Eb="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",FP=ie(Eb,"gu").replace(/notPunctSpace/g,Cb).replace(/punctSpace/g,CD).replace(/punct/g,VE).getRegex(),bP=ie(Eb,"gu").replace(/notPunctSpace/g,yP).replace(/punctSpace/g,wP).replace(/punct/g,Bb).getRegex(),SP=ie("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Cb).replace(/punctSpace/g,CD).replace(/punct/g,VE).getRegex(),vP=ie(/\\(punct)/,"gu").replace(/punct/g,VE).getRegex(),NP=ie(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[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])?)+(?![-_])/).getRegex(),GP=ie(ID).replace("(?:-->|$)","-->").getRegex(),LP=ie("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",GP).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ZE=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,_P=ie(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",ZE).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),cb=ie(/^!?\[(label)\]\[(ref)\]/).replace("label",ZE).replace("ref",sD).getRegex(),lb=ie(/^!?\[(ref)\](?:\[\])?/).replace("ref",sD).getRegex(),KP=ie("reflink|nolink(?!\\()","g").replace("reflink",cb).replace("nolink",lb).getRegex(),BD={_backpedal:ka,anyPunctuation:vP,autolink:NP,blockSkip:MP,br:ab,code:DP,del:ka,emStrongLDelim:RP,emStrongRDelimAst:FP,emStrongRDelimUnd:SP,escape:mP,link:_P,nolink:lb,punctuation:pP,reflink:cb,reflinkSearch:KP,tag:LP,text:fP,url:ka},UP=hA(R({},BD),{link:ie(/^!?\[(label)\]\((.*?)\)/).replace("label",ZE).getRegex(),reflink:ie(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ZE).getRegex()}),iD=hA(R({},BD),{emStrongRDelimAst:bP,emStrongLDelim:kP,url:ie(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),xP=hA(R({},iD),{br:ie(ab).replace("{2,}","*").getRegex(),text:ie(iD.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()}),PE={normal:aD,gfm:hP,pedantic:uP},Ma={normal:BD,gfm:iD,breaks:xP,pedantic:UP},YP={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},tb=t=>YP[t];function uo(t,e){if(e){if(Et.escapeTest.test(t))return t.replace(Et.escapeReplace,tb)}else if(Et.escapeTestNoEncode.test(t))return t.replace(Et.escapeReplaceNoEncode,tb);return t}function ib(t){try{t=encodeURI(t).replace(Et.percentDecode,"%")}catch{return null}return t}function ob(t,e){let A=t.replace(Et.findPipe,(n,g,r)=>{let s=!1,I=g;for(;--I>=0&&r[I]==="\\";)s=!s;return s?"|":" |"}),i=A.split(Et.splitPipe),o=0;if(i[0].trim()||i.shift(),i.length>0&&!i.at(-1)?.trim()&&i.pop(),e)if(i.length>e)i.splice(e);else for(;i.length<e;)i.push("");for(;o<i.length;o++)i[o]=i[o].trim().replace(Et.slashPipe,"|");return i}function Ra(t,e,A){let i=t.length;if(i===0)return"";let o=0;for(;o<i&&t.charAt(i-o-1)===e;)o++;return t.slice(0,i-o)}function JP(t,e){if(t.indexOf(e[1])===-1)return-1;let A=0;for(let i=0;i<t.length;i++)if(t[i]==="\\")i++;else if(t[i]===e[0])A++;else if(t[i]===e[1]&&(A--,A<0))return i;return A>0?-2:-1}function nb(t,e,A,i,o){let n=e.href,g=e.title||null,r=t[1].replace(o.other.outputLinkReplace,"$1");if(t[0].charAt(0)!=="!"){i.state.inLink=!0;let s={type:"link",raw:A,href:n,title:g,text:r,tokens:i.inlineTokens(r)};return i.state.inLink=!1,s}return{type:"image",raw:A,href:n,title:g,text:r}}function HP(t,e,A){let i=t.match(A.other.indentCodeCompensation);if(i===null)return e;let o=i[1];return e.split(`
`).map(n=>{let g=n.match(A.other.beginningSpace);if(g===null)return n;let[r]=g;return r.length>=o.length?n.slice(o.length):n}).join(`
`)}var ds=class{options;rules;lexer;constructor(e){this.options=e||Lg}space(e){let A=this.rules.block.newline.exec(e);if(A&&A[0].length>0)return{type:"space",raw:A[0]}}code(e){let A=this.rules.block.code.exec(e);if(A){let i=A[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:A[0],codeBlockStyle:"indented",text:this.options.pedantic?i:Ra(i,`
`)}}}fences(e){let A=this.rules.block.fences.exec(e);if(A){let i=A[0],o=HP(i,A[3]||"",this.rules);return{type:"code",raw:i,lang:A[2]?A[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):A[2],text:o}}}heading(e){let A=this.rules.block.heading.exec(e);if(A){let i=A[2].trim();if(this.rules.other.endingHash.test(i)){let o=Ra(i,"#");(this.options.pedantic||!o||this.rules.other.endingSpaceChar.test(o))&&(i=o.trim())}return{type:"heading",raw:A[0],depth:A[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(e){let A=this.rules.block.hr.exec(e);if(A)return{type:"hr",raw:Ra(A[0],`
`)}}blockquote(e){let A=this.rules.block.blockquote.exec(e);if(A){let i=Ra(A[0],`
`).split(`
`),o="",n="",g=[];for(;i.length>0;){let r=!1,s=[],I;for(I=0;I<i.length;I++)if(this.rules.other.blockquoteStart.test(i[I]))s.push(i[I]),r=!0;else if(!r)s.push(i[I]);else break;i=i.slice(I);let B=s.join(`
`),c=B.replace(this.rules.other.blockquoteSetextReplace,`
    $1`).replace(this.rules.other.blockquoteSetextReplace2,"");o=o?`${o}
${B}`:B,n=n?`${n}
${c}`:c;let D=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,g,!0),this.lexer.state.top=D,i.length===0)break;let h=g.at(-1);if(h?.type==="code")break;if(h?.type==="blockquote"){let p=h,y=p.raw+`
`+i.join(`
`),L=this.blockquote(y);g[g.length-1]=L,o=o.substring(0,o.length-p.raw.length)+L.raw,n=n.substring(0,n.length-p.text.length)+L.text;break}else if(h?.type==="list"){let p=h,y=p.raw+`
`+i.join(`
`),L=this.list(y);g[g.length-1]=L,o=o.substring(0,o.length-h.raw.length)+L.raw,n=n.substring(0,n.length-p.raw.length)+L.raw,i=y.substring(g.at(-1).raw.length).split(`
`);continue}}return{type:"blockquote",raw:o,tokens:g,text:n}}}list(e){let A=this.rules.block.list.exec(e);if(A){let i=A[1].trim(),o=i.length>1,n={type:"list",raw:"",ordered:o,start:o?+i.slice(0,-1):"",loose:!1,items:[]};i=o?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=o?i:"[*+-]");let g=this.rules.other.listItemRegex(i),r=!1;for(;e;){let I=!1,B="",c="";if(!(A=g.exec(e))||this.rules.block.hr.test(e))break;B=A[0],e=e.substring(B.length);let D=A[2].split(`
`,1)[0].replace(this.rules.other.listReplaceTabs,DA=>" ".repeat(3*DA.length)),h=e.split(`
`,1)[0],p=!D.trim(),y=0;if(this.options.pedantic?(y=2,c=D.trimStart()):p?y=A[1].length+1:(y=A[2].search(this.rules.other.nonSpaceChar),y=y>4?1:y,c=D.slice(y),y+=A[1].length),p&&this.rules.other.blankLine.test(h)&&(B+=h+`
`,e=e.substring(h.length+1),I=!0),!I){let DA=this.rules.other.nextBulletRegex(y),UA=this.rules.other.hrRegex(y),fA=this.rules.other.fencesBeginRegex(y),ct=this.rules.other.headingBeginRegex(y),ue=this.rules.other.htmlBeginRegex(y);for(;e;){let we=e.split(`
`,1)[0],le;if(h=we,this.options.pedantic?(h=h.replace(this.rules.other.listReplaceNesting,"  "),le=h):le=h.replace(this.rules.other.tabCharGlobal,"    "),fA.test(h)||ct.test(h)||ue.test(h)||DA.test(h)||UA.test(h))break;if(le.search(this.rules.other.nonSpaceChar)>=y||!h.trim())c+=`
`+le.slice(y);else{if(p||D.replace(this.rules.other.tabCharGlobal,"    ").search(this.rules.other.nonSpaceChar)>=4||fA.test(D)||ct.test(D)||UA.test(D))break;c+=`
`+h}!p&&!h.trim()&&(p=!0),B+=we+`
`,e=e.substring(we.length+1),D=le.slice(y)}}n.loose||(r?n.loose=!0:this.rules.other.doubleBlankLine.test(B)&&(r=!0));let L=null,P;this.options.gfm&&(L=this.rules.other.listIsTask.exec(c),L&&(P=L[0]!=="[ ] ",c=c.replace(this.rules.other.listReplaceTask,""))),n.items.push({type:"list_item",raw:B,task:!!L,checked:P,loose:!1,text:c,tokens:[]}),n.raw+=B}let s=n.items.at(-1);if(s)s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd();else return;n.raw=n.raw.trimEnd();for(let I=0;I<n.items.length;I++)if(this.lexer.state.top=!1,n.items[I].tokens=this.lexer.blockTokens(n.items[I].text,[]),!n.loose){let B=n.items[I].tokens.filter(D=>D.type==="space"),c=B.length>0&&B.some(D=>this.rules.other.anyLine.test(D.raw));n.loose=c}if(n.loose)for(let I=0;I<n.items.length;I++)n.items[I].loose=!0;return n}}html(e){let A=this.rules.block.html.exec(e);if(A)return{type:"html",block:!0,raw:A[0],pre:A[1]==="pre"||A[1]==="script"||A[1]==="style",text:A[0]}}def(e){let A=this.rules.block.def.exec(e);if(A){let i=A[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),o=A[2]?A[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",n=A[3]?A[3].substring(1,A[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):A[3];return{type:"def",tag:i,raw:A[0],href:o,title:n}}}table(e){let A=this.rules.block.table.exec(e);if(!A||!this.rules.other.tableDelimiter.test(A[2]))return;let i=ob(A[1]),o=A[2].replace(this.rules.other.tableAlignChars,"").split("|"),n=A[3]?.trim()?A[3].replace(this.rules.other.tableRowBlankLine,"").split(`
`):[],g={type:"table",raw:A[0],header:[],align:[],rows:[]};if(i.length===o.length){for(let r of o)this.rules.other.tableAlignRight.test(r)?g.align.push("right"):this.rules.other.tableAlignCenter.test(r)?g.align.push("center"):this.rules.other.tableAlignLeft.test(r)?g.align.push("left"):g.align.push(null);for(let r=0;r<i.length;r++)g.header.push({text:i[r],tokens:this.lexer.inline(i[r]),header:!0,align:g.align[r]});for(let r of n)g.rows.push(ob(r,g.header.length).map((s,I)=>({text:s,tokens:this.lexer.inline(s),header:!1,align:g.align[I]})));return g}}lheading(e){let A=this.rules.block.lheading.exec(e);if(A)return{type:"heading",raw:A[0],depth:A[2].charAt(0)==="="?1:2,text:A[1],tokens:this.lexer.inline(A[1])}}paragraph(e){let A=this.rules.block.paragraph.exec(e);if(A){let i=A[1].charAt(A[1].length-1)===`
`?A[1].slice(0,-1):A[1];return{type:"paragraph",raw:A[0],text:i,tokens:this.lexer.inline(i)}}}text(e){let A=this.rules.block.text.exec(e);if(A)return{type:"text",raw:A[0],text:A[0],tokens:this.lexer.inline(A[0])}}escape(e){let A=this.rules.inline.escape.exec(e);if(A)return{type:"escape",raw:A[0],text:A[1]}}tag(e){let A=this.rules.inline.tag.exec(e);if(A)return!this.lexer.state.inLink&&this.rules.other.startATag.test(A[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(A[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(A[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(A[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:A[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:A[0]}}link(e){let A=this.rules.inline.link.exec(e);if(A){let i=A[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(i)){if(!this.rules.other.endAngleBracket.test(i))return;let g=Ra(i.slice(0,-1),"\\");if((i.length-g.length)%2===0)return}else{let g=JP(A[2],"()");if(g===-2)return;if(g>-1){let s=(A[0].indexOf("!")===0?5:4)+A[1].length+g;A[2]=A[2].substring(0,g),A[0]=A[0].substring(0,s).trim(),A[3]=""}}let o=A[2],n="";if(this.options.pedantic){let g=this.rules.other.pedanticHrefTitle.exec(o);g&&(o=g[1],n=g[3])}else n=A[3]?A[3].slice(1,-1):"";return o=o.trim(),this.rules.other.startAngleBracket.test(o)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?o=o.slice(1):o=o.slice(1,-1)),nb(A,{href:o&&o.replace(this.rules.inline.anyPunctuation,"$1"),title:n&&n.replace(this.rules.inline.anyPunctuation,"$1")},A[0],this.lexer,this.rules)}}reflink(e,A){let i;if((i=this.rules.inline.reflink.exec(e))||(i=this.rules.inline.nolink.exec(e))){let o=(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," "),n=A[o.toLowerCase()];if(!n){let g=i[0].charAt(0);return{type:"text",raw:g,text:g}}return nb(i,n,i[0],this.lexer,this.rules)}}emStrong(e,A,i=""){let o=this.rules.inline.emStrongLDelim.exec(e);if(!o||o[3]&&i.match(this.rules.other.unicodeAlphaNumeric))return;if(!(o[1]||o[2]||"")||!i||this.rules.inline.punctuation.exec(i)){let g=[...o[0]].length-1,r,s,I=g,B=0,c=o[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,A=A.slice(-1*e.length+g);(o=c.exec(A))!=null;){if(r=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!r)continue;if(s=[...r].length,o[3]||o[4]){I+=s;continue}else if((o[5]||o[6])&&g%3&&!((g+s)%3)){B+=s;continue}if(I-=s,I>0)continue;s=Math.min(s,s+I+B);let D=[...o[0]][0].length,h=e.slice(0,g+o.index+D+s);if(Math.min(g,s)%2){let y=h.slice(1,-1);return{type:"em",raw:h,text:y,tokens:this.lexer.inlineTokens(y)}}let p=h.slice(2,-2);return{type:"strong",raw:h,text:p,tokens:this.lexer.inlineTokens(p)}}}}codespan(e){let A=this.rules.inline.code.exec(e);if(A){let i=A[2].replace(this.rules.other.newLineCharGlobal," "),o=this.rules.other.nonSpaceChar.test(i),n=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return o&&n&&(i=i.substring(1,i.length-1)),{type:"codespan",raw:A[0],text:i}}}br(e){let A=this.rules.inline.br.exec(e);if(A)return{type:"br",raw:A[0]}}del(e){let A=this.rules.inline.del.exec(e);if(A)return{type:"del",raw:A[0],text:A[2],tokens:this.lexer.inlineTokens(A[2])}}autolink(e){let A=this.rules.inline.autolink.exec(e);if(A){let i,o;return A[2]==="@"?(i=A[1],o="mailto:"+i):(i=A[1],o=i),{type:"link",raw:A[0],text:i,href:o,tokens:[{type:"text",raw:i,text:i}]}}}url(e){let A;if(A=this.rules.inline.url.exec(e)){let i,o;if(A[2]==="@")i=A[0],o="mailto:"+i;else{let n;do n=A[0],A[0]=this.rules.inline._backpedal.exec(A[0])?.[0]??"";while(n!==A[0]);i=A[0],A[1]==="www."?o="http://"+A[0]:o=A[0]}return{type:"link",raw:A[0],text:i,href:o,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(e){let A=this.rules.inline.text.exec(e);if(A){let i=this.lexer.state.inRawBlock;return{type:"text",raw:A[0],text:A[0],escaped:i}}}},Gi=class t{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Lg,this.options.tokenizer=this.options.tokenizer||new ds,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let A={other:Et,block:PE.normal,inline:Ma.normal};this.options.pedantic?(A.block=PE.pedantic,A.inline=Ma.pedantic):this.options.gfm&&(A.block=PE.gfm,this.options.breaks?A.inline=Ma.breaks:A.inline=Ma.gfm),this.tokenizer.rules=A}static get rules(){return{block:PE,inline:Ma}}static lex(e,A){return new t(A).lex(e)}static lexInline(e,A){return new t(A).inlineTokens(e)}lex(e){e=e.replace(Et.carriageReturn,`
`),this.blockTokens(e,this.tokens);for(let A=0;A<this.inlineQueue.length;A++){let i=this.inlineQueue[A];this.inlineTokens(i.src,i.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,A=[],i=!1){for(this.options.pedantic&&(e=e.replace(Et.tabCharGlobal,"    ").replace(Et.spaceLine,""));e;){let o;if(this.options.extensions?.block?.some(g=>(o=g.call({lexer:this},e,A))?(e=e.substring(o.raw.length),A.push(o),!0):!1))continue;if(o=this.tokenizer.space(e)){e=e.substring(o.raw.length);let g=A.at(-1);o.raw.length===1&&g!==void 0?g.raw+=`
`:A.push(o);continue}if(o=this.tokenizer.code(e)){e=e.substring(o.raw.length);let g=A.at(-1);g?.type==="paragraph"||g?.type==="text"?(g.raw+=`
`+o.raw,g.text+=`
`+o.text,this.inlineQueue.at(-1).src=g.text):A.push(o);continue}if(o=this.tokenizer.fences(e)){e=e.substring(o.raw.length),A.push(o);continue}if(o=this.tokenizer.heading(e)){e=e.substring(o.raw.length),A.push(o);continue}if(o=this.tokenizer.hr(e)){e=e.substring(o.raw.length),A.push(o);continue}if(o=this.tokenizer.blockquote(e)){e=e.substring(o.raw.length),A.push(o);continue}if(o=this.tokenizer.list(e)){e=e.substring(o.raw.length),A.push(o);continue}if(o=this.tokenizer.html(e)){e=e.substring(o.raw.length),A.push(o);continue}if(o=this.tokenizer.def(e)){e=e.substring(o.raw.length);let g=A.at(-1);g?.type==="paragraph"||g?.type==="text"?(g.raw+=`
`+o.raw,g.text+=`
`+o.raw,this.inlineQueue.at(-1).src=g.text):this.tokens.links[o.tag]||(this.tokens.links[o.tag]={href:o.href,title:o.title});continue}if(o=this.tokenizer.table(e)){e=e.substring(o.raw.length),A.push(o);continue}if(o=this.tokenizer.lheading(e)){e=e.substring(o.raw.length),A.push(o);continue}let n=e;if(this.options.extensions?.startBlock){let g=1/0,r=e.slice(1),s;this.options.extensions.startBlock.forEach(I=>{s=I.call({lexer:this},r),typeof s=="number"&&s>=0&&(g=Math.min(g,s))}),g<1/0&&g>=0&&(n=e.substring(0,g+1))}if(this.state.top&&(o=this.tokenizer.paragraph(n))){let g=A.at(-1);i&&g?.type==="paragraph"?(g.raw+=`
`+o.raw,g.text+=`
`+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=g.text):A.push(o),i=n.length!==e.length,e=e.substring(o.raw.length);continue}if(o=this.tokenizer.text(e)){e=e.substring(o.raw.length);let g=A.at(-1);g?.type==="text"?(g.raw+=`
`+o.raw,g.text+=`
`+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=g.text):A.push(o);continue}if(e){let g="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(g);break}else throw new Error(g)}}return this.state.top=!0,A}inline(e,A=[]){return this.inlineQueue.push({src:e,tokens:A}),A}inlineTokens(e,A=[]){let i=e,o=null;if(this.tokens.links){let r=Object.keys(this.tokens.links);if(r.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(i))!=null;)r.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.anyPunctuation.exec(i))!=null;)i=i.slice(0,o.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(o=this.tokenizer.rules.inline.blockSkip.exec(i))!=null;)i=i.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let n=!1,g="";for(;e;){n||(g=""),n=!1;let r;if(this.options.extensions?.inline?.some(I=>(r=I.call({lexer:this},e,A))?(e=e.substring(r.raw.length),A.push(r),!0):!1))continue;if(r=this.tokenizer.escape(e)){e=e.substring(r.raw.length),A.push(r);continue}if(r=this.tokenizer.tag(e)){e=e.substring(r.raw.length),A.push(r);continue}if(r=this.tokenizer.link(e)){e=e.substring(r.raw.length),A.push(r);continue}if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length);let I=A.at(-1);r.type==="text"&&I?.type==="text"?(I.raw+=r.raw,I.text+=r.text):A.push(r);continue}if(r=this.tokenizer.emStrong(e,i,g)){e=e.substring(r.raw.length),A.push(r);continue}if(r=this.tokenizer.codespan(e)){e=e.substring(r.raw.length),A.push(r);continue}if(r=this.tokenizer.br(e)){e=e.substring(r.raw.length),A.push(r);continue}if(r=this.tokenizer.del(e)){e=e.substring(r.raw.length),A.push(r);continue}if(r=this.tokenizer.autolink(e)){e=e.substring(r.raw.length),A.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(e))){e=e.substring(r.raw.length),A.push(r);continue}let s=e;if(this.options.extensions?.startInline){let I=1/0,B=e.slice(1),c;this.options.extensions.startInline.forEach(D=>{c=D.call({lexer:this},B),typeof c=="number"&&c>=0&&(I=Math.min(I,c))}),I<1/0&&I>=0&&(s=e.substring(0,I+1))}if(r=this.tokenizer.inlineText(s)){e=e.substring(r.raw.length),r.raw.slice(-1)!=="_"&&(g=r.raw.slice(-1)),n=!0;let I=A.at(-1);I?.type==="text"?(I.raw+=r.raw,I.text+=r.text):A.push(r);continue}if(e){let I="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(I);break}else throw new Error(I)}}return A}},mo=class{options;parser;constructor(e){this.options=e||Lg}space(e){return""}code({text:e,lang:A,escaped:i}){let o=(A||"").match(Et.notSpaceStart)?.[0],n=e.replace(Et.endingNewline,"")+`
`;return o?'<pre><code class="language-'+uo(o)+'">'+(i?n:uo(n,!0))+`</code></pre>
`:"<pre><code>"+(i?n:uo(n,!0))+`</code></pre>
`}blockquote({tokens:e}){return`<blockquote>
${this.parser.parse(e)}</blockquote>
`}html({text:e}){return e}heading({tokens:e,depth:A}){return`<h${A}>${this.parser.parseInline(e)}</h${A}>
`}hr(e){return`<hr>
`}list(e){let A=e.ordered,i=e.start,o="";for(let r=0;r<e.items.length;r++){let s=e.items[r];o+=this.listitem(s)}let n=A?"ol":"ul",g=A&&i!==1?' start="'+i+'"':"";return"<"+n+g+`>
`+o+"</"+n+`>
`}listitem(e){let A="";if(e.task){let i=this.checkbox({checked:!!e.checked});e.loose?e.tokens[0]?.type==="paragraph"?(e.tokens[0].text=i+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type==="text"&&(e.tokens[0].tokens[0].text=i+" "+uo(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:i+" ",text:i+" ",escaped:!0}):A+=i+" "}return A+=this.parser.parse(e.tokens,!!e.loose),`<li>${A}</li>
`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
`}table(e){let A="",i="";for(let n=0;n<e.header.length;n++)i+=this.tablecell(e.header[n]);A+=this.tablerow({text:i});let o="";for(let n=0;n<e.rows.length;n++){let g=e.rows[n];i="";for(let r=0;r<g.length;r++)i+=this.tablecell(g[r]);o+=this.tablerow({text:i})}return o&&(o=`<tbody>${o}</tbody>`),`<table>
<thead>
`+A+`</thead>
`+o+`</table>
`}tablerow({text:e}){return`<tr>
${e}</tr>
`}tablecell(e){let A=this.parser.parseInline(e.tokens),i=e.header?"th":"td";return(e.align?`<${i} align="${e.align}">`:`<${i}>`)+A+`</${i}>
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${uo(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:A,tokens:i}){let o=this.parser.parseInline(i),n=ib(e);if(n===null)return o;e=n;let g='<a href="'+e+'"';return A&&(g+=' title="'+uo(A)+'"'),g+=">"+o+"</a>",g}image({href:e,title:A,text:i}){let o=ib(e);if(o===null)return uo(i);e=o;let n=`<img src="${e}" alt="${i}"`;return A&&(n+=` title="${uo(A)}"`),n+=">",n}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:uo(e.text)}},Fa=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},Li=class t{options;renderer;textRenderer;constructor(e){this.options=e||Lg,this.options.renderer=this.options.renderer||new mo,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Fa}static parse(e,A){return new t(A).parse(e)}static parseInline(e,A){return new t(A).parseInline(e)}parse(e,A=!0){let i="";for(let o=0;o<e.length;o++){let n=e[o];if(this.options.extensions?.renderers?.[n.type]){let r=n,s=this.options.extensions.renderers[r.type].call({parser:this},r);if(s!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(r.type)){i+=s||"";continue}}let g=n;switch(g.type){case"space":{i+=this.renderer.space(g);continue}case"hr":{i+=this.renderer.hr(g);continue}case"heading":{i+=this.renderer.heading(g);continue}case"code":{i+=this.renderer.code(g);continue}case"table":{i+=this.renderer.table(g);continue}case"blockquote":{i+=this.renderer.blockquote(g);continue}case"list":{i+=this.renderer.list(g);continue}case"html":{i+=this.renderer.html(g);continue}case"paragraph":{i+=this.renderer.paragraph(g);continue}case"text":{let r=g,s=this.renderer.text(r);for(;o+1<e.length&&e[o+1].type==="text";)r=e[++o],s+=`
`+this.renderer.text(r);A?i+=this.renderer.paragraph({type:"paragraph",raw:s,text:s,tokens:[{type:"text",raw:s,text:s,escaped:!0}]}):i+=s;continue}default:{let r='Token with "'+g.type+'" type was not found.';if(this.options.silent)return console.error(r),"";throw new Error(r)}}}return i}parseInline(e,A=this.renderer){let i="";for(let o=0;o<e.length;o++){let n=e[o];if(this.options.extensions?.renderers?.[n.type]){let r=this.options.extensions.renderers[n.type].call({parser:this},n);if(r!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(n.type)){i+=r||"";continue}}let g=n;switch(g.type){case"escape":{i+=A.text(g);break}case"html":{i+=A.html(g);break}case"link":{i+=A.link(g);break}case"image":{i+=A.image(g);break}case"strong":{i+=A.strong(g);break}case"em":{i+=A.em(g);break}case"codespan":{i+=A.codespan(g);break}case"br":{i+=A.br(g);break}case"del":{i+=A.del(g);break}case"text":{i+=A.text(g);break}default:{let r='Token with "'+g.type+'" type was not found.';if(this.options.silent)return console.error(r),"";throw new Error(r)}}}return i}},ls=class{options;block;constructor(e){this.options=e||Lg}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}provideLexer(){return this.block?Gi.lex:Gi.lexInline}provideParser(){return this.block?Li.parse:Li.parseInline}},oD=class{defaults=nD();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Li;Renderer=mo;TextRenderer=Fa;Lexer=Gi;Tokenizer=ds;Hooks=ls;constructor(...e){this.use(...e)}walkTokens(e,A){let i=[];for(let o of e)switch(i=i.concat(A.call(this,o)),o.type){case"table":{let n=o;for(let g of n.header)i=i.concat(this.walkTokens(g.tokens,A));for(let g of n.rows)for(let r of g)i=i.concat(this.walkTokens(r.tokens,A));break}case"list":{let n=o;i=i.concat(this.walkTokens(n.items,A));break}default:{let n=o;this.defaults.extensions?.childTokens?.[n.type]?this.defaults.extensions.childTokens[n.type].forEach(g=>{let r=n[g].flat(1/0);i=i.concat(this.walkTokens(r,A))}):n.tokens&&(i=i.concat(this.walkTokens(n.tokens,A)))}}return i}use(...e){let A=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(i=>{let o=R({},i);if(o.async=this.defaults.async||o.async||!1,i.extensions&&(i.extensions.forEach(n=>{if(!n.name)throw new Error("extension name required");if("renderer"in n){let g=A.renderers[n.name];g?A.renderers[n.name]=function(...r){let s=n.renderer.apply(this,r);return s===!1&&(s=g.apply(this,r)),s}:A.renderers[n.name]=n.renderer}if("tokenizer"in n){if(!n.level||n.level!=="block"&&n.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let g=A[n.level];g?g.unshift(n.tokenizer):A[n.level]=[n.tokenizer],n.start&&(n.level==="block"?A.startBlock?A.startBlock.push(n.start):A.startBlock=[n.start]:n.level==="inline"&&(A.startInline?A.startInline.push(n.start):A.startInline=[n.start]))}"childTokens"in n&&n.childTokens&&(A.childTokens[n.name]=n.childTokens)}),o.extensions=A),i.renderer){let n=this.defaults.renderer||new mo(this.defaults);for(let g in i.renderer){if(!(g in n))throw new Error(`renderer '${g}' does not exist`);if(["options","parser"].includes(g))continue;let r=g,s=i.renderer[r],I=n[r];n[r]=(...B)=>{let c=s.apply(n,B);return c===!1&&(c=I.apply(n,B)),c||""}}o.renderer=n}if(i.tokenizer){let n=this.defaults.tokenizer||new ds(this.defaults);for(let g in i.tokenizer){if(!(g in n))throw new Error(`tokenizer '${g}' does not exist`);if(["options","rules","lexer"].includes(g))continue;let r=g,s=i.tokenizer[r],I=n[r];n[r]=(...B)=>{let c=s.apply(n,B);return c===!1&&(c=I.apply(n,B)),c}}o.tokenizer=n}if(i.hooks){let n=this.defaults.hooks||new ls;for(let g in i.hooks){if(!(g in n))throw new Error(`hook '${g}' does not exist`);if(["options","block"].includes(g))continue;let r=g,s=i.hooks[r],I=n[r];ls.passThroughHooks.has(g)?n[r]=B=>{if(this.defaults.async)return Promise.resolve(s.call(n,B)).then(D=>I.call(n,D));let c=s.call(n,B);return I.call(n,c)}:n[r]=(...B)=>{let c=s.apply(n,B);return c===!1&&(c=I.apply(n,B)),c}}o.hooks=n}if(i.walkTokens){let n=this.defaults.walkTokens,g=i.walkTokens;o.walkTokens=function(r){let s=[];return s.push(g.call(this,r)),n&&(s=s.concat(n.call(this,r))),s}}this.defaults=R(R({},this.defaults),o)}),this}setOptions(e){return this.defaults=R(R({},this.defaults),e),this}lexer(e,A){return Gi.lex(e,A??this.defaults)}parser(e,A){return Li.parse(e,A??this.defaults)}parseMarkdown(e){return(i,o)=>{let n=R({},o),g=R(R({},this.defaults),n),r=this.onError(!!g.silent,!!g.async);if(this.defaults.async===!0&&n.async===!1)return r(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof i>"u"||i===null)return r(new Error("marked(): input parameter is undefined or null"));if(typeof i!="string")return r(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(i)+", string expected"));g.hooks&&(g.hooks.options=g,g.hooks.block=e);let s=g.hooks?g.hooks.provideLexer():e?Gi.lex:Gi.lexInline,I=g.hooks?g.hooks.provideParser():e?Li.parse:Li.parseInline;if(g.async)return Promise.resolve(g.hooks?g.hooks.preprocess(i):i).then(B=>s(B,g)).then(B=>g.hooks?g.hooks.processAllTokens(B):B).then(B=>g.walkTokens?Promise.all(this.walkTokens(B,g.walkTokens)).then(()=>B):B).then(B=>I(B,g)).then(B=>g.hooks?g.hooks.postprocess(B):B).catch(r);try{g.hooks&&(i=g.hooks.preprocess(i));let B=s(i,g);g.hooks&&(B=g.hooks.processAllTokens(B)),g.walkTokens&&this.walkTokens(B,g.walkTokens);let c=I(B,g);return g.hooks&&(c=g.hooks.postprocess(c)),c}catch(B){return r(B)}}}onError(e,A){return i=>{if(i.message+=`
Please report this to https://github.com/markedjs/marked.`,e){let o="<p>An error occurred:</p><pre>"+uo(i.message+"",!0)+"</pre>";return A?Promise.resolve(o):o}if(A)return Promise.reject(i);throw i}}},Gg=new oD;function XA(t,e){return Gg.parse(t,e)}XA.options=XA.setOptions=function(t){return Gg.setOptions(t),XA.defaults=Gg.defaults,gb(XA.defaults),XA};XA.getDefaults=nD;XA.defaults=Lg;XA.use=function(...t){return Gg.use(...t),XA.defaults=Gg.defaults,gb(XA.defaults),XA};XA.walkTokens=function(t,e){return Gg.walkTokens(t,e)};XA.parseInline=Gg.parseInline;XA.Parser=Li;XA.parser=Li.parse;XA.Renderer=mo;XA.TextRenderer=Fa;XA.Lexer=Gi;XA.lexer=Gi.lex;XA.Tokenizer=ds;XA.Hooks=ls;XA.parse=XA;var lIA=XA.options,dIA=XA.setOptions,hIA=XA.use,uIA=XA.walkTokens,mIA=XA.parseInline;var DIA=Li.parse,fIA=Gi.lex;var TP=["*"],OP="Copy",PP="Copied",ZP=(()=>{class t{constructor(){this._buttonClick$=new _,this.copied$=this._buttonClick$.pipe(se(()=>me(iA(!0),Un(3e3).pipe(Xg(!1)))),Ei(),Ro(1)),this.copiedText$=this.copied$.pipe(De(!1),nA(A=>A?PP:OP))}onCopyToClipboardClick(){this._buttonClick$.next()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=T({type:t,selectors:[["markdown-clipboard"]],decls:4,vars:7,consts:[[1,"markdown-clipboard-button",3,"click"]],template:function(i,o){i&1&&(u(0,"button",0),an(1,"async"),x("click",function(){return o.onCopyToClipboardClick()}),G(2),an(3,"async"),m()),i&2&&(oA("copied",pr(1,3,o.copied$)),f(2),HA(pr(3,5,o.copiedText$)))},dependencies:[hI],encapsulation:2,changeDetection:0})}}return t})(),qP=new k("CLIPBOARD_OPTIONS");var QD=function(t){return t.CommandLine="command-line",t.LineHighlight="line-highlight",t.LineNumbers="line-numbers",t}(QD||{}),db=new k("MARKED_EXTENSIONS"),VP=new k("MARKED_OPTIONS"),WP=new k("MERMAID_OPTIONS"),zP="[ngx-markdown] When using the `emoji` attribute you *have to* include Emoji-Toolkit files to `angular.json` or use imports. See README for more information",jP="[ngx-markdown] When using the `katex` attribute you *have to* include KaTeX files to `angular.json` or use imports. See README for more information",XP="[ngx-markdown] When using the `mermaid` attribute you *have to* include Mermaid files to `angular.json` or use imports. See README for more information",$P="[ngx-markdown] When using the `clipboard` attribute you *have to* include Clipboard files to `angular.json` or use imports. See README for more information",AZ="[ngx-markdown] When using the `clipboard` attribute you *have to* provide the `viewContainerRef` parameter to `MarkdownService.render()` function",eZ="[ngx-markdown] When using the `src` attribute you *have to* pass the `HttpClient` as a parameter of the `forRoot` method. See README for more information",hb=new k("SECURITY_CONTEXT");var ub=(()=>{class t{get options(){return this._options}set options(A){this._options=R(R({},this.DEFAULT_MARKED_OPTIONS),A)}get renderer(){return this.options.renderer}set renderer(A){this.options.renderer=A}constructor(A,i,o,n,g,r,s,I){this.clipboardOptions=A,this.extensions=i,this.mermaidOptions=n,this.platform=g,this.securityContext=r,this.http=s,this.sanitizer=I,this.DEFAULT_MARKED_OPTIONS={renderer:new mo},this.DEFAULT_KATEX_OPTIONS={delimiters:[{left:"$$",right:"$$",display:!0},{left:"$",right:"$",display:!1},{left:"\\(",right:"\\)",display:!1},{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0},{left:"\\[",right:"\\]",display:!0}]},this.DEFAULT_MERMAID_OPTIONS={startOnLoad:!1},this.DEFAULT_CLIPBOARD_OPTIONS={buttonComponent:void 0},this.DEFAULT_PARSE_OPTIONS={decodeHtml:!1,inline:!1,emoji:!1,mermaid:!1,markedOptions:void 0,disableSanitizer:!1},this.DEFAULT_RENDER_OPTIONS={clipboard:!1,clipboardOptions:void 0,katex:!1,katexOptions:void 0,mermaid:!1,mermaidOptions:void 0},this._reload$=new _,this.reload$=this._reload$.asObservable(),this.options=o}parse(A,i=this.DEFAULT_PARSE_OPTIONS){let{decodeHtml:o,inline:n,emoji:g,mermaid:r,disableSanitizer:s}=i,I=R(R({},this.options),i.markedOptions),B=I.renderer||this.renderer||new mo;this.extensions&&(this.renderer=this.extendsRendererForExtensions(B)),r&&(this.renderer=this.extendsRendererForMermaid(B));let c=this.trimIndentation(A),D=o?this.decodeHtml(c):c,h=g?this.parseEmoji(D):D,p=this.parseMarked(h,I,n);return(s?p:this.sanitizer.sanitize(this.securityContext,p))||""}render(A,i=this.DEFAULT_RENDER_OPTIONS,o){let{clipboard:n,clipboardOptions:g,katex:r,katexOptions:s,mermaid:I,mermaidOptions:B}=i;r&&this.renderKatex(A,R(R({},this.DEFAULT_KATEX_OPTIONS),s)),I&&this.renderMermaid(A,R(R(R({},this.DEFAULT_MERMAID_OPTIONS),this.mermaidOptions),B)),n&&this.renderClipboard(A,o,R(R(R({},this.DEFAULT_CLIPBOARD_OPTIONS),this.clipboardOptions),g)),this.highlight(A)}reload(){this._reload$.next()}getSource(A){if(!this.http)throw new Error(eZ);return this.http.get(A,{responseType:"text"}).pipe(nA(i=>this.handleExtension(A,i)))}highlight(A){if(!io(this.platform)||typeof Prism>"u"||typeof Prism.highlightAllUnder>"u")return;A||(A=document);let i=A.querySelectorAll('pre code:not([class*="language-"])');Array.prototype.forEach.call(i,o=>o.classList.add("language-none")),Prism.highlightAllUnder(A)}decodeHtml(A){if(!io(this.platform))return A;let i=document.createElement("textarea");return i.innerHTML=A,i.value}extendsRendererForExtensions(A){let i=A;return i.\u0275NgxMarkdownRendererExtendedForExtensions===!0||(this.extensions?.length>0&&XA.use(...this.extensions),i.\u0275NgxMarkdownRendererExtendedForExtensions=!0),A}extendsRendererForMermaid(A){let i=A;if(i.\u0275NgxMarkdownRendererExtendedForMermaid===!0)return A;let o=A.code;return A.code=n=>n.lang==="mermaid"?`<div class="mermaid">${n.text}</div>`:o(n),i.\u0275NgxMarkdownRendererExtendedForMermaid=!0,A}handleExtension(A,i){let o=A.lastIndexOf("://"),n=o>-1?A.substring(o+4):A,g=n.lastIndexOf("/"),r=g>-1?n.substring(g+1).split("?")[0]:"",s=r.lastIndexOf("."),I=s>-1?r.substring(s+1):"";return I&&I!=="md"?"```"+I+`
`+i+"\n```":i}parseMarked(A,i,o=!1){if(i.renderer){let n=R({},i.renderer);delete n.\u0275NgxMarkdownRendererExtendedForExtensions,delete n.\u0275NgxMarkdownRendererExtendedForMermaid,delete i.renderer,XA.use({renderer:n})}return o?XA.parseInline(A,i):XA.parse(A,i)}parseEmoji(A){if(!io(this.platform))return A;if(typeof joypixels>"u"||typeof joypixels.shortnameToUnicode>"u")throw new Error(zP);return joypixels.shortnameToUnicode(A)}renderKatex(A,i){if(io(this.platform)){if(typeof katex>"u"||typeof renderMathInElement>"u")throw new Error(jP);renderMathInElement(A,i)}}renderClipboard(A,i,o){if(!io(this.platform))return;if(typeof ClipboardJS>"u")throw new Error($P);if(!i)throw new Error(AZ);let{buttonComponent:n,buttonTemplate:g}=o,r=A.querySelectorAll("pre");for(let s=0;s<r.length;s++){let I=r.item(s),B=document.createElement("div");B.style.position="relative",I.parentNode.insertBefore(B,I),B.appendChild(I);let c=document.createElement("div");c.classList.add("markdown-clipboard-toolbar"),c.style.position="absolute",c.style.top=".5em",c.style.right=".5em",c.style.zIndex="1",B.insertAdjacentElement("beforeend",c),B.onmouseenter=()=>c.classList.add("hover"),B.onmouseleave=()=>c.classList.remove("hover");let D;if(n){let p=i.createComponent(n);D=p.hostView,p.changeDetectorRef.markForCheck()}else if(g)D=i.createEmbeddedView(g);else{let p=i.createComponent(ZP);D=p.hostView,p.changeDetectorRef.markForCheck()}let h;D.rootNodes.forEach(p=>{c.appendChild(p),h=new ClipboardJS(p,{text:()=>I.innerText})}),D.onDestroy(()=>h.destroy())}}renderMermaid(A,i=this.DEFAULT_MERMAID_OPTIONS){if(!io(this.platform))return;if(typeof mermaid>"u"||typeof mermaid.initialize>"u")throw new Error(XP);let o=A.querySelectorAll(".mermaid");o.length!==0&&(mermaid.initialize(i),mermaid.run({nodes:o}))}trimIndentation(A){if(!A)return"";let i;return A.split(`
`).map(o=>{let n=i;return o.length>0&&(n=isNaN(n)?o.search(/\S|$/):Math.min(o.search(/\S|$/),n)),isNaN(i)&&(i=n),n?o.substring(n):o}).join(`
`)}static{this.\u0275fac=function(i){return new(i||t)(O(qP,8),O(db,8),O(VP,8),O(WP,8),O(jt),O(hb),O(ot,8),O(Bg))}}static{this.\u0275prov=v({token:t,factory:t.\u0275fac})}}return t})(),mb=(()=>{class t{get disableSanitizer(){return this._disableSanitizer}set disableSanitizer(A){this._disableSanitizer=this.coerceBooleanProperty(A)}get inline(){return this._inline}set inline(A){this._inline=this.coerceBooleanProperty(A)}get clipboard(){return this._clipboard}set clipboard(A){this._clipboard=this.coerceBooleanProperty(A)}get emoji(){return this._emoji}set emoji(A){this._emoji=this.coerceBooleanProperty(A)}get katex(){return this._katex}set katex(A){this._katex=this.coerceBooleanProperty(A)}get mermaid(){return this._mermaid}set mermaid(A){this._mermaid=this.coerceBooleanProperty(A)}get lineHighlight(){return this._lineHighlight}set lineHighlight(A){this._lineHighlight=this.coerceBooleanProperty(A)}get lineNumbers(){return this._lineNumbers}set lineNumbers(A){this._lineNumbers=this.coerceBooleanProperty(A)}get commandLine(){return this._commandLine}set commandLine(A){this._commandLine=this.coerceBooleanProperty(A)}constructor(A,i,o){this.element=A,this.markdownService=i,this.viewContainerRef=o,this.error=new $,this.load=new $,this.ready=new $,this._clipboard=!1,this._commandLine=!1,this._disableSanitizer=!1,this._emoji=!1,this._inline=!1,this._katex=!1,this._lineHighlight=!1,this._lineNumbers=!1,this._mermaid=!1,this.destroyed$=new _}ngOnChanges(){this.loadContent()}loadContent(){if(this.data!=null){this.handleData();return}if(this.src!=null){this.handleSrc();return}}ngAfterViewInit(){!this.data&&!this.src&&this.handleTransclusion(),this.markdownService.reload$.pipe(mA(this.destroyed$)).subscribe(()=>this.loadContent())}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}render(A,i=!1){return qe(this,null,function*(){let o={decodeHtml:i,inline:this.inline,emoji:this.emoji,mermaid:this.mermaid,disableSanitizer:this.disableSanitizer},n={clipboard:this.clipboard,clipboardOptions:this.getClipboardOptions(),katex:this.katex,katexOptions:this.katexOptions,mermaid:this.mermaid,mermaidOptions:this.mermaidOptions},g=yield this.markdownService.parse(A,o);this.element.nativeElement.innerHTML=g,this.handlePlugins(),this.markdownService.render(this.element.nativeElement,n,this.viewContainerRef),this.ready.emit()})}coerceBooleanProperty(A){return A!=null&&`${String(A)}`!="false"}getClipboardOptions(){if(this.clipboardButtonComponent||this.clipboardButtonTemplate)return{buttonComponent:this.clipboardButtonComponent,buttonTemplate:this.clipboardButtonTemplate}}handleData(){this.render(this.data)}handleSrc(){this.markdownService.getSource(this.src).subscribe({next:A=>{this.render(A).then(()=>{this.load.emit(A)})},error:A=>this.error.emit(A)})}handleTransclusion(){this.render(this.element.nativeElement.innerHTML,!0)}handlePlugins(){this.commandLine&&(this.setPluginClass(this.element.nativeElement,QD.CommandLine),this.setPluginOptions(this.element.nativeElement,{dataFilterOutput:this.filterOutput,dataHost:this.host,dataPrompt:this.prompt,dataOutput:this.output,dataUser:this.user})),this.lineHighlight&&this.setPluginOptions(this.element.nativeElement,{dataLine:this.line,dataLineOffset:this.lineOffset}),this.lineNumbers&&(this.setPluginClass(this.element.nativeElement,QD.LineNumbers),this.setPluginOptions(this.element.nativeElement,{dataStart:this.start}))}setPluginClass(A,i){let o=A.querySelectorAll("pre");for(let n=0;n<o.length;n++){let g=i instanceof Array?i:[i];o.item(n).classList.add(...g)}}setPluginOptions(A,i){let o=A.querySelectorAll("pre");for(let n=0;n<o.length;n++)Object.keys(i).forEach(g=>{let r=i[g];if(r){let s=this.toLispCase(g);o.item(n).setAttribute(s,r.toString())}})}toLispCase(A){let i=A.match(/([A-Z])/g);if(!i)return A;let o=A.toString();for(let n=0,g=i.length;n<g;n++)o=o.replace(new RegExp(i[n]),"-"+i[n].toLowerCase());return o.slice(0,1)==="-"&&(o=o.slice(1)),o}static{this.\u0275fac=function(i){return new(i||t)(AA(q),AA(ub),AA(Ce))}}static{this.\u0275cmp=T({type:t,selectors:[["markdown"],["","markdown",""]],inputs:{data:"data",src:"src",disableSanitizer:"disableSanitizer",inline:"inline",clipboard:"clipboard",clipboardButtonComponent:"clipboardButtonComponent",clipboardButtonTemplate:"clipboardButtonTemplate",emoji:"emoji",katex:"katex",katexOptions:"katexOptions",mermaid:"mermaid",mermaidOptions:"mermaidOptions",lineHighlight:"lineHighlight",line:"line",lineOffset:"lineOffset",lineNumbers:"lineNumbers",start:"start",commandLine:"commandLine",filterOutput:"filterOutput",host:"host",prompt:"prompt",output:"output",user:"user"},outputs:{error:"error",load:"load",ready:"ready"},features:[VA],ngContentSelectors:TP,decls:1,vars:0,template:function(i,o){i&1&&(ZA(),sA(0))},encapsulation:2})}}return t})();function tZ(t){return[ub,t?.loader??[],t?.clipboardOptions??[],t?.markedOptions??[],t?.mermaidOptions??[],oZ(t?.markedExtensions)??[],{provide:hb,useValue:t?.sanitize??Ve.HTML}]}function iZ(t){return t!=null&&t.provide!=null}function oZ(t){if(t)return t.reduce((e,A)=>{let i=iZ(A)?hA(R({},A),{multi:!0}):{provide:db,useValue:A,multi:!0};return[...e,i]},[])}var Db=(()=>{class t{static forRoot(A){return{ngModule:t,providers:[tZ(A)]}}static forChild(){return{ngModule:t}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=V({type:t})}static{this.\u0275inj=Z({imports:[Uo]})}}return t})();var gZ=["switch"],rZ=["*"];function sZ(t,e){t&1&&(u(0,"span",10),it(),u(1,"svg",12),W(2,"path",13),m(),u(3,"svg",14),W(4,"path",15),m()())}var IZ=new k("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1,disabledInteractive:!1})}),aZ={provide:Eg,useExisting:Ct(()=>zE),multi:!0},WE=class{source;checked;constructor(e,A){this.source=e,this.checked=A}},zE=(()=>{class t{_elementRef=Q(q);_focusMonitor=Q($t);_changeDetectorRef=Q(zA);defaults=Q(IZ);_onChange=A=>{};_onTouched=()=>{};_validatorOnChange=()=>{};_uniqueId;_checked=!1;_createChangeEvent(A){return new WE(this,A)}_labelId;get buttonId(){return`${this.id||this._uniqueId}-button`}_switchElement;focus(){this._switchElement.nativeElement.focus()}_noopAnimations;_focused;name=null;id;labelPosition="after";ariaLabel=null;ariaLabelledby=null;ariaDescribedby;required;color;disabled=!1;disableRipple=!1;tabIndex=0;get checked(){return this._checked}set checked(A){this._checked=A,this._changeDetectorRef.markForCheck()}hideIcon;disabledInteractive;change=new $;toggleChange=new $;get inputId(){return`${this.id||this._uniqueId}-input`}constructor(){Q(Se).load(ei);let A=Q(new ft("tabindex"),{optional:!0}),i=this.defaults,o=Q($A,{optional:!0});this.tabIndex=A==null?0:parseInt(A)||0,this.color=i.color||"accent",this._noopAnimations=o==="NoopAnimations",this.id=this._uniqueId=Q(ce).getId("mat-mdc-slide-toggle-"),this.hideIcon=i.hideIcon??!1,this.disabledInteractive=i.disabledInteractive??!1,this._labelId=this._uniqueId+"-label"}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(A=>{A==="keyboard"||A==="program"?(this._focused=!0,this._changeDetectorRef.markForCheck()):A||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnChanges(A){A.required&&this._validatorOnChange()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(A){this.checked=!!A}registerOnChange(A){this._onChange=A}registerOnTouched(A){this._onTouched=A}validate(A){return this.required&&A.value!==!0?{required:!0}:null}registerOnValidatorChange(A){this._validatorOnChange=A}setDisabledState(A){this.disabled=A,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}_handleClick(){this.disabled||(this.toggleChange.emit(),this.defaults.disableToggleValue||(this.checked=!this.checked,this._onChange(this.checked),this.change.emit(new WE(this,this.checked))))}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=T({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(i,o){if(i&1&&cA(gZ,5),i&2){let n;z(n=j())&&(o._switchElement=n.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(i,o){i&2&&(Qt("id",o.id),IA("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),We(o.color?"mat-"+o.color:""),oA("mat-mdc-slide-toggle-focused",o._focused)("mat-mdc-slide-toggle-checked",o.checked)("_mat-animation-noopable",o._noopAnimations))},inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],required:[2,"required","required",tA],color:"color",disabled:[2,"disabled","disabled",tA],disableRipple:[2,"disableRipple","disableRipple",tA],tabIndex:[2,"tabIndex","tabIndex",A=>A==null?0:Re(A)],checked:[2,"checked","checked",tA],hideIcon:[2,"hideIcon","hideIcon",tA],disabledInteractive:[2,"disabledInteractive","disabledInteractive",tA]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[LA([aZ,{provide:Qn,useExisting:t,multi:!0}]),VA],ngContentSelectors:rZ,decls:13,vars:27,consts:[["switch",""],["mat-internal-form-field","",3,"labelPosition"],["role","switch","type","button",1,"mdc-switch",3,"click","tabIndex","disabled"],[1,"mdc-switch__track"],[1,"mdc-switch__handle-track"],[1,"mdc-switch__handle"],[1,"mdc-switch__shadow"],[1,"mdc-elevation-overlay"],[1,"mdc-switch__ripple"],["mat-ripple","",1,"mat-mdc-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-switch__icons"],[1,"mdc-label",3,"click","for"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--on"],["d","M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--off"],["d","M20 13H4v-2h16v2z"]],template:function(i,o){if(i&1){let n=aA();ZA(),u(0,"div",1)(1,"button",2,0),x("click",function(){return J(n),H(o._handleClick())}),W(3,"span",3),u(4,"span",4)(5,"span",5)(6,"span",6),W(7,"span",7),m(),u(8,"span",8),W(9,"span",9),m(),U(10,sZ,5,0,"span",10),m()()(),u(11,"label",11),x("click",function(r){return J(n),H(r.stopPropagation())}),sA(12),m()()}if(i&2){let n=He(2);F("labelPosition",o.labelPosition),f(),oA("mdc-switch--selected",o.checked)("mdc-switch--unselected",!o.checked)("mdc-switch--checked",o.checked)("mdc-switch--disabled",o.disabled)("mat-mdc-slide-toggle-disabled-interactive",o.disabledInteractive),F("tabIndex",o.disabled&&!o.disabledInteractive?-1:o.tabIndex)("disabled",o.disabled&&!o.disabledInteractive),IA("id",o.buttonId)("name",o.name)("aria-label",o.ariaLabel)("aria-labelledby",o._getAriaLabelledBy())("aria-describedby",o.ariaDescribedby)("aria-required",o.required||null)("aria-checked",o.checked)("aria-disabled",o.disabled&&o.disabledInteractive?"true":null),f(8),F("matRippleTrigger",n)("matRippleDisabled",o.disableRipple||o.disabled)("matRippleCentered",!0),f(),pA(o.hideIcon?-1:10),f(),F("for",o.buttonId),IA("id",o._labelId)}},dependencies:[mn,cE],styles:['.mdc-switch{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;flex-shrink:0;margin:0;outline:none;overflow:visible;padding:0;position:relative;width:var(--mdc-switch-track-width, 52px)}.mdc-switch.mdc-switch--disabled{cursor:default;pointer-events:none}.mdc-switch.mat-mdc-slide-toggle-disabled-interactive{pointer-events:auto}.mdc-switch__track{overflow:hidden;position:relative;width:100%;height:var(--mdc-switch-track-height, 32px);border-radius:var(--mdc-switch-track-shape, var(--mat-sys-corner-full))}.mdc-switch--disabled.mdc-switch .mdc-switch__track{opacity:var(--mdc-switch-disabled-track-opacity, 0.12)}.mdc-switch__track::before,.mdc-switch__track::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";height:100%;left:0;position:absolute;width:100%;border-width:var(--mat-switch-track-outline-width, 2px);border-color:var(--mat-switch-track-outline-color, var(--mat-sys-outline))}.mdc-switch--selected .mdc-switch__track::before,.mdc-switch--selected .mdc-switch__track::after{border-width:var(--mat-switch-selected-track-outline-width, 2px);border-color:var(--mat-switch-selected-track-outline-color, transparent)}.mdc-switch--disabled .mdc-switch__track::before,.mdc-switch--disabled .mdc-switch__track::after{border-width:var(--mat-switch-disabled-unselected-track-outline-width, 2px);border-color:var(--mat-switch-disabled-unselected-track-outline-color, var(--mat-sys-on-surface))}@media(forced-colors: active){.mdc-switch__track{border-color:currentColor}}.mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0);background:var(--mdc-switch-unselected-track-color, var(--mat-sys-surface-variant))}.mdc-switch--selected .mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch--selected .mdc-switch__track::before{transform:translateX(-100%)}.mdc-switch--selected .mdc-switch__track::before{opacity:var(--mat-switch-hidden-track-opacity, 0);transition:var(--mat-switch-hidden-track-transition, opacity 75ms)}.mdc-switch--unselected .mdc-switch__track::before{opacity:var(--mat-switch-visible-track-opacity, 1);transition:var(--mat-switch-visible-track-transition, opacity 75ms)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-hover-track-color, var(--mat-sys-surface-variant))}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-focus-track-color, var(--mat-sys-surface-variant))}.mdc-switch:enabled:active .mdc-switch__track::before{background:var(--mdc-switch-unselected-pressed-track-color, var(--mat-sys-surface-variant))}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__track::before,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__track::before,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__track::before,.mdc-switch.mdc-switch--disabled .mdc-switch__track::before{background:var(--mdc-switch-disabled-unselected-track-color, var(--mat-sys-surface-variant))}.mdc-switch__track::after{transform:translateX(-100%);background:var(--mdc-switch-selected-track-color, var(--mat-sys-primary))}[dir=rtl] .mdc-switch__track::after{transform:translateX(100%)}.mdc-switch--selected .mdc-switch__track::after{transform:translateX(0)}.mdc-switch--selected .mdc-switch__track::after{opacity:var(--mat-switch-visible-track-opacity, 1);transition:var(--mat-switch-visible-track-transition, opacity 75ms)}.mdc-switch--unselected .mdc-switch__track::after{opacity:var(--mat-switch-hidden-track-opacity, 0);transition:var(--mat-switch-hidden-track-transition, opacity 75ms)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-hover-track-color, var(--mat-sys-primary))}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-focus-track-color, var(--mat-sys-primary))}.mdc-switch:enabled:active .mdc-switch__track::after{background:var(--mdc-switch-selected-pressed-track-color, var(--mat-sys-primary))}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__track::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__track::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__track::after,.mdc-switch.mdc-switch--disabled .mdc-switch__track::after{background:var(--mdc-switch-disabled-selected-track-color, var(--mat-sys-on-surface))}.mdc-switch__handle-track{height:100%;pointer-events:none;position:absolute;top:0;transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);left:0;right:auto;transform:translateX(0);width:calc(100% - var(--mdc-switch-handle-width))}[dir=rtl] .mdc-switch__handle-track{left:auto;right:0}.mdc-switch--selected .mdc-switch__handle-track{transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__handle-track{transform:translateX(-100%)}.mdc-switch__handle{display:flex;pointer-events:auto;position:absolute;top:50%;transform:translateY(-50%);left:0;right:auto;transition:width 75ms cubic-bezier(0.4, 0, 0.2, 1),height 75ms cubic-bezier(0.4, 0, 0.2, 1),margin 75ms cubic-bezier(0.4, 0, 0.2, 1);width:var(--mdc-switch-handle-width);height:var(--mdc-switch-handle-height);border-radius:var(--mdc-switch-handle-shape, var(--mat-sys-corner-full))}[dir=rtl] .mdc-switch__handle{left:auto;right:0}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle{width:var(--mat-switch-unselected-handle-size, 16px);height:var(--mat-switch-unselected-handle-size, 16px);margin:var(--mat-switch-unselected-handle-horizontal-margin, 0 8px)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-switch-unselected-with-icon-handle-horizontal-margin, 0 4px)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle{width:var(--mat-switch-selected-handle-size, 24px);height:var(--mat-switch-selected-handle-size, 24px);margin:var(--mat-switch-selected-handle-horizontal-margin, 0 24px)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-switch-selected-with-icon-handle-horizontal-margin, 0 24px)}.mat-mdc-slide-toggle .mdc-switch__handle:has(.mdc-switch__icons){width:var(--mat-switch-with-icon-handle-size, 24px);height:var(--mat-switch-with-icon-handle-size, 24px)}.mat-mdc-slide-toggle .mdc-switch:active:not(.mdc-switch--disabled) .mdc-switch__handle{width:var(--mat-switch-pressed-handle-size, 28px);height:var(--mat-switch-pressed-handle-size, 28px)}.mat-mdc-slide-toggle .mdc-switch--selected:active:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-switch-selected-pressed-handle-horizontal-margin, 0 22px)}.mat-mdc-slide-toggle .mdc-switch--unselected:active:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-switch-unselected-pressed-handle-horizontal-margin, 0 2px)}.mdc-switch--disabled.mdc-switch--selected .mdc-switch__handle::after{opacity:var(--mat-switch-disabled-selected-handle-opacity, 1)}.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__handle::after{opacity:var(--mat-switch-disabled-unselected-handle-opacity, 0.38)}.mdc-switch__handle::before,.mdc-switch__handle::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";width:100%;height:100%;left:0;position:absolute;top:0;transition:background-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1),border-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);z-index:-1}@media(forced-colors: active){.mdc-switch__handle::before,.mdc-switch__handle::after{border-color:currentColor}}.mdc-switch--selected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-selected-handle-color, var(--mat-sys-on-primary))}.mdc-switch--selected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-hover-handle-color, var(--mat-sys-primary-container))}.mdc-switch--selected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-focus-handle-color, var(--mat-sys-primary-container))}.mdc-switch--selected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-selected-pressed-handle-color, var(--mat-sys-primary-container))}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:hover:not(:focus):not(:active) .mdc-switch__handle::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:focus:not(:active) .mdc-switch__handle::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:active .mdc-switch__handle::after,.mdc-switch--selected.mdc-switch--disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-selected-handle-color, var(--mat-sys-surface))}.mdc-switch--unselected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-unselected-handle-color, var(--mat-sys-outline))}.mdc-switch--unselected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-hover-handle-color, var(--mat-sys-on-surface-variant))}.mdc-switch--unselected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-focus-handle-color, var(--mat-sys-on-surface-variant))}.mdc-switch--unselected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-unselected-pressed-handle-color, var(--mat-sys-on-surface-variant))}.mdc-switch--unselected.mdc-switch--disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-unselected-handle-color, var(--mat-sys-on-surface))}.mdc-switch__handle::before{background:var(--mdc-switch-handle-surface-color)}.mdc-switch__shadow{border-radius:inherit;bottom:0;left:0;position:absolute;right:0;top:0}.mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation-shadow)}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__shadow,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__shadow,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__shadow,.mdc-switch.mdc-switch--disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation-shadow)}.mdc-switch__ripple{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);z-index:-1;width:var(--mdc-switch-state-layer-size, 40px);height:var(--mdc-switch-state-layer-size, 40px)}.mdc-switch__ripple::after{content:"";opacity:0}.mdc-switch--disabled .mdc-switch__ripple::after{display:none}.mat-mdc-slide-toggle-disabled-interactive .mdc-switch__ripple::after{display:block}.mdc-switch:hover .mdc-switch__ripple::after{opacity:.04;transition:75ms opacity cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mdc-switch .mdc-switch__ripple::after{opacity:.12}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:focus .mdc-switch__ripple::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:active .mdc-switch__ripple::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:hover:not(:focus) .mdc-switch__ripple::after,.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background:var(--mdc-switch-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::after{background:var(--mdc-switch-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-switch--unselected:enabled:active .mdc-switch__ripple::after{background:var(--mdc-switch-unselected-pressed-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));transition:opacity 75ms linear}.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background:var(--mdc-switch-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-switch--selected:enabled:focus .mdc-switch__ripple::after{background:var(--mdc-switch-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-switch--selected:enabled:active .mdc-switch__ripple::after{background:var(--mdc-switch-selected-pressed-state-layer-color, var(--mat-sys-primary));opacity:var(--mdc-switch-selected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));transition:opacity 75ms linear}.mdc-switch__icons{position:relative;height:100%;width:100%;z-index:1}.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__icons{opacity:var(--mdc-switch-disabled-unselected-icon-opacity, 0.38)}.mdc-switch--disabled.mdc-switch--selected .mdc-switch__icons{opacity:var(--mdc-switch-disabled-selected-icon-opacity, 0.38)}.mdc-switch__icon{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0;opacity:0;transition:opacity 30ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-switch--unselected .mdc-switch__icon{width:var(--mdc-switch-unselected-icon-size, 16px);height:var(--mdc-switch-unselected-icon-size, 16px);fill:var(--mdc-switch-unselected-icon-color, var(--mat-sys-surface-variant))}.mdc-switch--unselected.mdc-switch--disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-unselected-icon-color, var(--mat-sys-surface-variant))}.mdc-switch--selected .mdc-switch__icon{width:var(--mdc-switch-selected-icon-size, 16px);height:var(--mdc-switch-selected-icon-size, 16px);fill:var(--mdc-switch-selected-icon-color, var(--mat-sys-on-primary-container))}.mdc-switch--selected.mdc-switch--disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-selected-icon-color, var(--mat-sys-on-surface))}.mdc-switch--selected .mdc-switch__icon--on,.mdc-switch--unselected .mdc-switch__icon--off{opacity:1;transition:opacity 45ms 30ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle{-webkit-user-select:none;user-select:none;display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple,.mat-mdc-slide-toggle .mdc-switch__ripple::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple:not(:empty),.mat-mdc-slide-toggle .mdc-switch__ripple::after:not(:empty){transform:translateZ(0)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mat-focus-indicator::before{content:""}.mat-mdc-slide-toggle .mat-internal-form-field{color:var(--mat-switch-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-switch-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-switch-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-switch-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-switch-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-switch-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-slide-toggle .mat-ripple-element{opacity:.12}.mat-mdc-slide-toggle .mat-focus-indicator::before{border-radius:50%}.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle-track,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__icon,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::after,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::after{transition:none}.mat-mdc-slide-toggle .mdc-switch:enabled+.mdc-label{cursor:pointer}.mat-mdc-slide-toggle .mdc-switch--disabled+label{color:var(--mdc-switch-disabled-label-text-color)}'],encapsulation:2,changeDetection:0})}return t})();var fb=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=Z({imports:[zE,MA,MA]})}return t})();var hs=class t{downloadBase64Data(e,A,i="image.png"){try{let o=document.createElement("a");o.href=e,o.download=i,document.body.appendChild(o),o.click(),document.body.removeChild(o)}catch(o){throw console.error("Error downloading base64 data:",o),o}}static \u0275fac=function(A){return new(A||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})};function QZ(t,e){t&1&&W(0,"hr",10)}function EZ(t,e){if(t&1&&(u(0,"mat-option",11),G(1),m()),t&2){let A=e.$implicit;F("value",A),f(),HA(A.versionId)}}function cZ(t,e){if(t&1&&W(0,"img",12),t&2){let A,i=b().index,o=b();F("src",(A=o.selectedArtifacts[i].data)!==null&&A!==void 0?A:"",tg)}}function lZ(t,e){if(t&1){let A=aA();u(0,"div",2),U(1,QZ,1,0,"hr",3),u(2,"div",4)(3,"span"),G(4),m()(),u(5,"div",4)(6,"span"),G(7," Version: "),m(),u(8,"div",5)(9,"mat-select",6),yi("ngModelChange",function(o){let n=J(A).index,g=b();return Ao(g.selectedArtifacts[n],o)||(g.selectedArtifacts[n]=o),H(o)}),x("selectionChange",function(o){let n=J(A).index,g=b();return H(g.onArtifactVersionChange(o,n))}),U(10,EZ,2,2,"mat-option",7),m()(),u(11,"button",8),x("click",function(){let o=J(A).index,n=b();return H(n.downloadArtifact(n.selectedArtifacts[o]))}),u(12,"mat-icon"),G(13,"file_download"),m(),G(14," Download "),m()(),U(15,cZ,1,1,"img",9),m()}if(t&2){let A=e.$implicit,i=e.index,o=b();f(),F("ngIf",i>0),f(3),te(" ",o.getArtifactName(A)," "),f(5),wi("ngModel",o.selectedArtifacts[i]),f(),F("ngForOf",o.getSortedArtifactsFromId(A)),f(5),F("ngIf",o.isArtifactImage(o.selectedArtifacts[i]))}}var dZ="default_artifact_name",Sa=class t{constructor(e){this.downloadService=e}artifacts=[];selectedArtifacts=[];ngOnChanges(e){if(e.artifacts){this.selectedArtifacts=[];for(let A of this.getDistinctArtifactIds())this.selectedArtifacts.push(this.getSortedArtifactsFromId(A)[0])}}downloadArtifact(e){this.downloadService.downloadBase64Data(e.data,e.mimeType,e.id)}getArtifactName(e){return e??dZ}isArtifactImage(e){return!e||!e.mimeType?!1:e.mimeType.startsWith("image/")}getDistinctArtifactIds(){return[...new Set(this.artifacts.map(e=>e.id))]}getSortedArtifactsFromId(e){return this.artifacts.filter(A=>A.id===e).sort((A,i)=>i.versionId-A.versionId)}onArtifactVersionChange(e,A){this.selectedArtifacts[A]=e.value}static \u0275fac=function(A){return new(A||t)(AA(hs))};static \u0275cmp=T({type:t,selectors:[["app-artifact-tab"]],inputs:{artifacts:"artifacts"},standalone:!1,features:[VA],decls:2,vars:1,consts:[[1,"artifact-container"],["class","artifact-box",4,"ngFor","ngForOf"],[1,"artifact-box"],["class","white-separator",4,"ngIf"],[1,"artifact-metadata"],[1,"version-select-container"],[3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["mat-flat-button","",1,"download-button",3,"click"],["class","generated-image","alt","artifact.id",3,"src",4,"ngIf"],[1,"white-separator"],[3,"value"],["alt","artifact.id",1,"generated-image",3,"src"]],template:function(A,i){A&1&&(u(0,"div",0),U(1,lZ,16,5,"div",1),m()),A&2&&(f(),F("ngForOf",i.getDistinctArtifactIds()))},dependencies:[Rt,Jt,no,ki,Bs,bt,gs,Dn],styles:[".artifact-container[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.artifact-box[_ngcontent-%COMP%]{padding:10px;max-width:100%;margin-left:26px;display:flex;flex-direction:column}.artifact-metadata[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:15px}.download-button[_ngcontent-%COMP%]{background-color:#8ab4f8!important;margin-left:35px;width:130px;height:28px;font-size:14px}.generated-image[_ngcontent-%COMP%]{max-width:60%;border-radius:8px}hr.white-separator[_ngcontent-%COMP%]{border:none;border-top:1px solid white;margin-bottom:1.2em;margin-right:15px}.version-select-container[_ngcontent-%COMP%]{background-color:#212123;width:80px;margin-left:15px}"]})};var va=class t{sessionState={};constructor(){}static \u0275fac=function(A){return new(A||t)};static \u0275cmp=T({type:t,selectors:[["app-state-tab"]],inputs:{sessionState:"sessionState"},standalone:!1,decls:3,vars:1,consts:[[1,"state-wrapper"],[3,"json"]],template:function(A,i){A&1&&(u(0,"div",0)(1,"div"),W(2,"ngx-json-viewer",1),m()()),A&2&&(f(2),F("json",i.sessionState))},dependencies:[OE],styles:[".state-wrapper[_ngcontent-%COMP%]{padding-left:25px;padding-right:25px;margin-top:16px}"]})};var mZ=["videoContainer"],DZ=["sidenav"],fZ=["autoScroll"],pZ=()=>[],wZ=(t,e)=>({"user-message":t,"bot-message":e}),yZ=(t,e)=>({"font-style":t,color:e}),pb=t=>({"background-color":t});function MZ(t,e){if(t&1&&(u(0,"mat-option",20),G(1),m()),t&2){let A=e.$implicit;F("value",A),f(),HA(A)}}function RZ(t,e){t&1&&og(0,MZ,2,2,"mat-option",20,ig),t&2&&ng(e)}function kZ(t,e){if(t&1&&(u(0,"mat-option",20),G(1),m()),t&2){let A=b(2);F("value",A.selectedAppControl.value),f(),HA(A.selectedAppControl.value)}}function FZ(t,e){if(t&1&&(u(0,"div",10)(1,"mat-select",19),U(2,RZ,2,0),an(3,"async"),U(4,kZ,2,2,"mat-option",20),m()()),t&2){let A,i=b();f(),F("placeholder",i.isLoadingApps()?"Loading...":"Select an agent")("formControl",i.selectedAppControl),f(),pA((A=pr(3,4,i.apps$))?2:-1,A),f(2),pA(i.selectedAppControl.value&&i.isLoadingApps()?4:-1)}}function bZ(t,e){t&1&&(u(0,"span"),G(1," No apps Avaiable in current directory"),m())}function SZ(t,e){t&1&&(u(0,"span",29),G(1,"Events"),m())}function vZ(t,e){t&1&&(u(0,"span",29),G(1,"State"),m())}function NZ(t,e){t&1&&(u(0,"span",29),G(1,"Artifacts"),m())}function GZ(t,e){t&1&&(u(0,"span",29),G(1,"Sessions"),m())}function LZ(t,e){t&1&&(u(0,"span",29),G(1,"Eval"),m())}function _Z(t,e){if(t&1){let A=aA();u(0,"div",21)(1,"mat-tab-group")(2,"mat-tab",22),U(3,SZ,2,0,"ng-template",23),u(4,"app-event-tab",24),x("selectedEvent",function(o){J(A);let n=b();return H(n.selectEvent(o))}),m()(),u(5,"mat-tab"),U(6,vZ,2,0,"ng-template",23),W(7,"app-state-tab",25),m(),u(8,"mat-tab"),U(9,NZ,2,0,"ng-template",23),W(10,"app-artifact-tab",26),m(),u(11,"mat-tab"),U(12,GZ,2,0,"ng-template",23),u(13,"app-session-tab",27),x("sessionSelected",function(o){J(A);let n=b();return H(n.updateWithSelectedSession(o))})("sessionReloaded",function(o){J(A);let n=b();return H(n.updateSessionState(o))}),m()(),u(14,"mat-tab"),U(15,LZ,2,0,"ng-template",23),u(16,"app-eval-tab",28),x("sessionSelected",function(o){J(A);let n=b();return H(n.updateWithSelectedSession(o))}),m()()()()}if(t&2){let A=b();f(4),F("eventsMap",A.eventData),f(3),F("sessionState",A.currentSessionState),f(3),F("artifacts",A.artifacts),f(3),F("userId",A.userId)("appName",A.appName)("sessionId",A.sessionId),f(3),F("appName",A.appName)("userId",A.userId)("sessionId",A.sessionId)}}function KZ(t,e){if(t&1&&W(0,"div",41),t&2){let A=b(2);F("innerHtml",A.renderedEventGraph,Wd)}}function UZ(t,e){if(t&1){let A=aA();u(0,"div",30)(1,"div",31)(2,"div",32)(3,"mat-paginator",33),x("page",function(o){J(A);let n=b();return H(n.handlePageEvent(o))}),m(),u(4,"button",34)(5,"mat-icon",9),x("click",function(){J(A);let o=b();return H(o.closeSelectedEvent())}),G(6,"close"),m()()()(),u(7,"div")(8,"mat-tab-group")(9,"mat-tab",35)(10,"div",36),U(11,KZ,1,1,"div",37),m(),W(12,"ngx-json-viewer",38),m(),u(13,"mat-tab",39),W(14,"ngx-json-viewer",38),m(),u(15,"mat-tab",40),W(16,"ngx-json-viewer",38),m()()()()}if(t&2){let A=b();f(3),F("length",A.eventData.size)("pageSize",1)("pageIndex",A.selectedEventIndex),f(8),F("ngIf",A.renderedEventGraph),f(),F("json",A.selectedEvent),f(2),F("json",A.llmRequest),f(2),F("json",A.llmResponse)}}function xZ(t,e){if(t&1){let A=aA();u(0,"div",42)(1,"div",43)(2,"div",44),G(3,"Session ID"),m(),u(4,"div",45),G(5),m()(),u(6,"div",46)(7,"div",47)(8,"mat-slide-toggle",48),x("change",function(){J(A);let o=b();return H(o.toggleSse())}),G(9," Token Streaming "),m()(),W(10,"mat-divider",49),u(11,"div",50)(12,"div",51),x("click",function(){J(A);let o=b();return H(o.onNewSessionClick())}),u(13,"mat-icon"),G(14,"add"),m(),G(15," New Session "),m(),u(16,"span",52),x("click",function(){J(A);let o=b();return H(o.deleteSession(o.sessionId))}),G(17," delete "),m()()()()}if(t&2){let A=b();f(5),HA(A.sessionId),f(3),F("checked",A.enableSseIndicator()),f(2),F("vertical",!0)}}function YZ(t,e){t&1&&(u(0,"div",53)(1,"span"),G(2,"Loading agents, please wait..."),m()())}function JZ(t,e){t&1&&(u(0,"span"),G(1,"Welcome to ADK!"),W(2,"br"),G(3," Select an agent on the left to begin with."),m())}function HZ(t,e){if(t&1&&(G(0," Error message: "),W(1,"br"),u(2,"pre",55),G(3),m()),t&2){let A=b(4);f(3),HA(A.loadingError())}}function TZ(t,e){t&1&&(u(0,"pre",54),G(1,"Warning: No agents found in current folder."),m())}function OZ(t,e){if(t&1&&(u(0,"div"),G(1," Failed to load agents. To get started, run "),u(2,"pre"),G(3,"adk web"),m(),G(4," in the folder that contains the agents."),W(5,"br"),U(6,HZ,4,1)(7,TZ,2,0,"pre",54),m()),t&2){let A=b(3);f(6),pA(A.loadingError()?6:7)}}function PZ(t,e){if(t&1&&(u(0,"div",53),U(1,JZ,4,0,"span"),an(2,"async"),U(3,OZ,8,1,"div"),m()),t&2){let A=b(2);f(),pA((pr(2,1,A.apps$)||I0(3,pZ)).length>0?1:3)}}function ZZ(t,e){if(t&1&&U(0,YZ,3,0,"div",53)(1,PZ,4,4,"div",53),t&2){let A=b();pA(A.isLoadingApps()?0:1)}}function qZ(t,e){if(t&1){let A=aA();u(0,"button",56),x("click",function(){J(A);let o=b();return H(o.openDialog())}),u(1,"mat-icon"),G(2,"priority_high"),m()()}}function VZ(t,e){if(t&1){let A=aA();u(0,"button",68),x("click",function(){J(A);let o=b().index,n=b(2);return H(n.clickEvent(o))}),u(1,"mat-icon",69),G(2,"robot_2"),m()()}}function WZ(t,e){if(t&1&&(fi(0),W(1,"img",73),pi()),t&2){let A=b().$implicit;f(),F("src",A.url,tg)}}function zZ(t,e){if(t&1&&(fi(0),u(1,"mat-icon"),G(2,"insert_drive_file"),m(),u(3,"a",74),G(4),m(),pi()),t&2){let A=b().$implicit;f(3),F("href",A.url,tg),f(),HA(A.file.name)}}function jZ(t,e){if(t&1&&(u(0,"div",72),U(1,WZ,2,1,"ng-container",65)(2,zZ,5,2,"ng-container",65),m()),t&2){let A=e.$implicit;f(),F("ngIf",A.file.type.startsWith("image/")),f(),F("ngIf",!A.file.type.startsWith("image/"))}}function XZ(t,e){if(t&1&&(u(0,"div",70),U(1,jZ,3,2,"div",71),m()),t&2){let A=b().$implicit;f(),F("ngForOf",A.attachments)}}function $Z(t,e){t&1&&(u(0,"div",75),G(1,"Thought"),m())}function A1(t,e){if(t&1&&W(0,"markdown",76),t&2){let A=b().$implicit;F("data",A.text)("ngStyle",rg(2,yZ,A.thought?"italic":"normal",A.thought?"#9aa0a6":"white"))}}function e1(t,e){if(t&1&&(u(0,"div"),W(1,"div",77),m()),t&2){let A=b().$implicit,i=b(2);f(),F("innerHTML",i.renderGooglerSearch(A.renderedContent),Wd)}}function t1(t,e){if(t&1&&(u(0,"code"),G(1),m()),t&2){let A=b().$implicit;f(),te(" ",A.executableCode.code," ")}}function i1(t,e){if(t&1&&(u(0,"div")(1,"div"),G(2),m(),u(3,"div"),G(4),m()()),t&2){let A=b().$implicit;f(2),te("Outcome: ",A.codeExecutionResult.outcome,""),f(2),te("Output: ",A.codeExecutionResult.output,"")}}function o1(t,e){if(t&1&&(u(0,"div"),W(1,"img",78),m()),t&2){let A=b().$implicit;f(),F("src",A.inline_data.data,tg)}}function n1(t,e){if(t&1){let A=aA();u(0,"button",79),x("click",function(){J(A);let o=b().index,n=b(2);return H(n.clickEvent(o))}),u(1,"mat-icon"),G(2,"bolt"),m(),G(3),m()}if(t&2){let A=b().$implicit;f(3),te(" ",A.functionCall.name," ")}}function g1(t,e){if(t&1){let A=aA();u(0,"button",79),x("click",function(){J(A);let o=b().index,n=b(2);return H(n.clickEvent(o))}),u(1,"mat-icon"),G(2,"check"),m(),G(3),m()}if(t&2){let A=b().$implicit;f(3),te(" ",A.functionResponse.name," ")}}function r1(t,e){t&1&&(u(0,"button",34)(1,"mat-icon"),G(2,"person"),m()())}function s1(t,e){if(t&1&&(u(0,"div",59),U(1,VZ,3,0,"button",60),u(2,"mat-card",61),U(3,XZ,2,1,"div",62),u(4,"div"),U(5,$Z,2,0,"div",63),u(6,"div"),U(7,A1,1,5,"markdown",64),m(),U(8,e1,2,1,"div",65),m(),U(9,t1,2,1,"code",65)(10,i1,5,2,"div",65)(11,o1,2,1,"div",65)(12,n1,4,1,"button",66)(13,g1,4,1,"button",66),m(),U(14,r1,3,0,"button",67),m()),t&2){let A=e.$implicit;F("ngClass",rg(12,wZ,A.role==="user",A.role==="bot")),f(),F("ngIf",A.role==="bot"),f(2),F("ngIf",A.attachments),f(2),F("ngIf",A.thought),f(2),F("ngIf",A.text),f(),F("ngIf",A.renderedContent),f(),F("ngIf",A.executableCode),f(),F("ngIf",A.codeExecutionResult),f(),F("ngIf",A.inline_data&&A.role==="bot"),f(),F("ngIf",A.functionCall),f(),F("ngIf",A.functionResponse),f(),F("ngIf",A.role==="user")}}function I1(t,e){if(t&1&&(u(0,"div",57,1),W(2,"div",null,2),U(4,s1,15,15,"div",58),m()),t&2){let A=b();f(4),F("ngForOf",A.messages)}}function a1(t,e){if(t&1){let A=aA();u(0,"div",93),W(1,"img",94),u(2,"button",95),x("click",function(){J(A);let o=b().index,n=b(3);return H(n.removeFile(o))}),u(3,"mat-icon",96),G(4,"close"),m()()()}if(t&2){let A=b().$implicit;f(),F("src",A.url,tg)}}function C1(t,e){if(t&1){let A=aA();u(0,"div",97)(1,"button",95),x("click",function(){J(A);let o=b().index,n=b(3);return H(n.removeFile(o))}),u(2,"mat-icon",96),G(3,"close"),m()(),u(4,"div",98)(5,"mat-icon"),G(6,"insert_drive_file"),m(),u(7,"span"),G(8),m()()()}if(t&2){let A=b().$implicit;f(8),HA(A.file.name)}}function B1(t,e){if(t&1&&(u(0,"div"),U(1,a1,5,1,"div",91)(2,C1,9,1,"div",92),m()),t&2){let A=e.$implicit;f(),F("ngIf",A.file.type.startsWith("image/")),f(),F("ngIf",!A.file.type.startsWith("image/"))}}function Q1(t,e){if(t&1&&(u(0,"div",89),U(1,B1,3,2,"div",90),m()),t&2){let A=b(2);f(),F("ngForOf",A.selectedFiles)}}function E1(t,e){if(t&1){let A=aA();u(0,"div",80)(1,"input",81,3),x("change",function(o){J(A);let n=b();return H(n.onFileSelect(o))}),m(),u(3,"mat-form-field",82),U(4,Q1,2,1,"div",83),u(5,"input",84),yi("ngModelChange",function(o){J(A);let n=b();return Ao(n.userInput,o)||(n.userInput=o),H(o)}),x("keydown.enter",function(o){J(A);let n=b();return H(n.sendMessage(o))}),m(),u(6,"div",85)(7,"button",86),x("click",function(){J(A);let o=He(2);return H(o.click())}),u(8,"mat-icon"),G(9,"attach_file"),m()(),u(10,"div")(11,"button",87),x("click",function(){J(A);let o=b();return H(o.toggleAudioRecording())}),W(12,"mat-icon",88),m(),u(13,"button",87),x("click",function(){J(A);let o=b();return H(o.toggleVideoRecording())}),W(14,"mat-icon",88),m()()()()()}if(t&2){let A=b();f(4),F("ngIf",A.selectedFiles.length&&A.appName!=""),f(),wi("ngModel",A.userInput),f(6),F("ngStyle",gg(6,pb,A.isAudioRecording?"rgb(234, 67, 53)":"rgb(51, 53, 55)")),f(),F("innerText",A.isAudioRecording?"stop":"mic"),f(),F("ngStyle",gg(8,pb,A.isVideoRecording?"rgb(234, 67, 53)":"rgb(51, 53, 55)")),f(),F("innerText",A.isVideoRecording?"stop":"videocam")}}function c1(t){for(t=t.replace(/-/g,"+").replace(/_/g,"/");t.length%4!==0;)t+="=";return t}var ED=class extends Fg{nextPageLabel="Next Event";previousPageLabel="Previous Event";firstPageLabel="First Event";lastPageLabel="Last Event";getRangeLabel=(e,A,i)=>i===0?`Event 0 of ${i}`:(i=Math.max(i,0),`Event ${e*A+1} of ${i}`)},Na=class t{constructor(e,A,i,o,n,g,r,s,I,B){this.sanitizer=e;this.sesisonService=A;this.artifactService=i;this.audioService=o;this.webSocketService=n;this.videoService=g;this.dialog=r;this.eventService=s;this.sessionService=I;this.route=B}videoContainer;sidenav;eventTabComponent;sessionTab;evalTab;scrollContainer;_snackBar=Q(Ok);enableSseIndicator=Ut(!1);videoElement;currentMessage="";messages=[];lastTextChunk="";streamingTextMessage=null;artifacts=[];userInput="";userId="user";appName="";sessionId="";isAudioRecording=!1;isVideoRecording=!1;longRunningEvents=[];functionCallEventId="";redirectUri=nt.getBaseUrlWithoutPath();showSidePanel=!0;useSse=!1;currentSessionState={};eventData=new Map;eventMessageIndexArray=[];renderedEventGraph;selectedEvent=void 0;selectedEventIndex=void 0;llmRequest=void 0;llmResponse=void 0;llmRequestKey="gcp.vertex.agent.llm_request";llmResponseKey="gcp.vertex.agent.llm_response";selectedFiles=[];previousMessageCount=0;router=Q(ao);activatedRoute=Q(Xt);selectedAppControl=new hQ("",{nonNullable:!0});agentService=Q(yn);isLoadingApps=Ut(!1);loadingError=Ut("");apps$=iA([]).pipe(Ie(()=>{this.isLoadingApps.set(!0),this.selectedAppControl.disable()}),se(()=>this.agentService.listApps().pipe(ht(e=>(this.loadingError.set(e.message),iA(void 0))))),de(1),Ie(e=>{this.isLoadingApps.set(!1),this.selectedAppControl.enable(),e?.length==1&&this.router.navigate([],{relativeTo:this.route,queryParams:{app:e[0]}})}),Ro());ngOnInit(){if(this.syncSelectedAppFromUrl(),this.updateSelectedAppUrl(),this.webSocketService.onCloseReason().subscribe(i=>{let o=`Please check server log for full details: 
`+i;this.openSnackBar(o,"OK")}),new URL(window.location.href).searchParams.has("code")){let i=window.location.href;window.opener?.postMessage({authResponseUrl:i},window.origin),window.close()}this.agentService.getApp().subscribe(i=>{this.appName=i})}ngAfterViewInit(){this.showSidePanel=!0,this.sidenav.open()}ngAfterViewChecked(){this.messages.length!==this.previousMessageCount&&(this.scrollContainer.nativeElement.scrollTop=this.scrollContainer.nativeElement.scrollHeight,this.previousMessageCount=this.messages.length)}selectApp(e){e!=this.appName&&(this.agentService.setApp(e),this.createSession(),this.eventData=new Map,this.eventMessageIndexArray=[],this.messages=[],this.artifacts=[],this.userInput="",this.longRunningEvents=[])}createSession(){this.sesisonService.createSession(this.userId,this.appName).subscribe(e=>{this.currentSessionState=e.state,this.sessionId=e.id,this.sessionTab.refreshSession()})}sendMessage(e){return qe(this,null,function*(){if(e.preventDefault(),!this.userInput.trim())return;if(this.selectedFiles.length>0){let o=this.selectedFiles.map(n=>({file:n.file,url:n.url}));this.messages.push({role:"user",attachments:o})}this.messages.push({role:"user",text:this.userInput});let A={app_name:this.appName,user_id:this.userId,session_id:this.sessionId,new_message:{role:"user",parts:yield this.getUserMessageParts()},streaming:this.useSse};this.selectedFiles=[];let i=this.eventMessageIndexArray.length-1;this.streamingTextMessage=null,this.agentService.run_sse(A).subscribe({next:o=>qe(this,null,function*(){let n=JSON.parse(o);if(n.error){this.openSnackBar(n.error,"OK");return}if(n.content)for(let g of n.content.parts)i+=1,this.processPart(n,g,i)}),error:o=>console.error("SSE error:",o),complete:()=>{this.streamingTextMessage=null,this.sessionTab.reloadSession(this.sessionId)}}),this.userInput=""})}processPart(e,A,i){if(A.text){let o=A.text;if(this.streamingTextMessage){if(o==this.streamingTextMessage.text){this.storeEvents(A,e,i),this.eventMessageIndexArray[i]=o,this.streamingTextMessage=null;return}this.streamingTextMessage.text+=o}else if(this.streamingTextMessage={role:"bot",text:this.processThoughtText(o),thought:!!A.thought},e.grounding_metadata&&e.grounding_metadata.searchEntryPoint&&e.grounding_metadata.searchEntryPoint.renderedContent&&(this.streamingTextMessage.renderedContent=e.grounding_metadata.searchEntryPoint.renderedContent),this.messages.push(this.streamingTextMessage),!this.useSse){this.storeEvents(A,e,i),this.eventMessageIndexArray[i]=o,this.streamingTextMessage=null;return}}else this.storeEvents(A,e,i),this.storeMessage(A,e,i)}getUserMessageParts(){return qe(this,null,function*(){let e=[{text:`${this.userInput}`}];if(this.selectedFiles.length>0)for(let A of this.selectedFiles)e.push({inline_data:{data:yield this.readFileAsBytes(A.file),mime_type:A.file.type}});return e})}readFileAsBytes(e){return new Promise((A,i)=>{let o=new FileReader;o.onload=n=>{let g=n.target.result.split(",")[1];A(g)},o.onerror=i,o.readAsDataURL(e)})}updateRedirectUri(e,A){try{let i=new URL(e);return i.searchParams.set("redirect_uri",A),i.toString()}catch(i){return console.warn("Failed to update redirect URI: ",i),e}}storeMessage(e,A,i){if(A.long_running_tool_ids&&A.long_running_tool_ids.length>0){this.getAsyncFunctionsFromParts(A.long_running_tool_ids,A.content.parts);let o=this.longRunningEvents[0];if(o.args.auth_config&&o.args.auth_config.exchanged_auth_credential&&o.args.auth_config.exchanged_auth_credential.oauth2){let n=o.args.auth_config.exchanged_auth_credential.oauth2.auth_uri,g=this.updateRedirectUri(n,this.redirectUri);this.openOAuthPopup(g).then(r=>{this.functionCallEventId=A.id,this.sendOAuthResponse(o,r,this.redirectUri)}).catch(r=>{console.error("OAuth Error:",r)})}else this.functionCallEventId=A.id}if(e.text){let o={role:A.author==="user"?"user":"bot",text:e.text};A.grounding_metadata&&A.grounding_metadata.searchEntryPoint&&A.grounding_metadata.searchEntryPoint.renderedContent&&(o.renderedContent=A.grounding_metadata.searchEntryPoint.renderedContent),this.messages.push(o),this.eventMessageIndexArray[i]=e.text}else if(e.functionCall)this.messages.push({role:A.author==="user"?"user":"bot",functionCall:e.functionCall}),this.eventMessageIndexArray[i]=e.functionCall;else if(e.functionResponse){if(this.messages.push({role:A.author==="user"?"user":"bot",functionResponse:e.functionResponse}),A.actions&&A.actions.artifact_delta)for(let o in A.actions.artifact_delta)A.actions.artifact_delta.hasOwnProperty(o)&&this.renderArtifact(o,A.actions.artifact_delta[o]);this.eventMessageIndexArray[i]=e.functionResponse}else if(e.executableCode)this.messages.push({role:A.author==="user"?"user":"bot",executableCode:e.executableCode}),this.eventMessageIndexArray[i]=e.executableCode;else if(e.codeExecutionResult&&(this.messages.push({role:A.author==="user"?"user":"bot",codeExecutionResult:e.codeExecutionResult}),this.eventMessageIndexArray[i]=e.codeExecutionResult,A.actions&&A.actions.artifact_delta))for(let o in A.actions.artifact_delta)A.actions.artifact_delta.hasOwnProperty(o)&&this.renderArtifact(o,A.actions.artifact_delta[o])}renderArtifact(e,A){this.messages.push({role:"bot",inline_data:{data:"",mime_type:"image/png"}});let i=this.messages.length-1;this.artifactService.getArtifactVersion(this.userId,this.appName,this.sessionId,e,A).subscribe(o=>{let n=o.inlineData.mimeType,g=c1(o.inlineData.data),r=`data:${n};base64,${g}`;this.messages[i]={role:"bot",inline_data:{data:r,mime_type:n}},this.artifacts=[...this.artifacts,{id:e,data:r,mimeType:n,versionId:A}]})}storeEvents(e,A,i){let o=A.content.role+":";e.text?o+=i+e.text:e.functionCall?o+="functionCall:"+i+":"+e.functionCall.name:e.functionResponse?o+="functionResponse:"+i+":"+e.functionResponse.name:e.executableCode?o+="executableCode:"+i+":"+e.executableCode.code.slice(0,10):e.codeExecutionResult&&(o+="codeExecutionResult:"+i+":"+e.codeExecutionResult.outcome),this.eventData.set(o,A),this.eventData=new Map(this.eventData)}sendOAuthResponse(e,A,i){this.longRunningEvents.pop();let o={app_name:this.appName,user_id:this.userId,session_id:this.sessionId,new_message:{role:"user",parts:[]}};var n=structuredClone(e.args.auth_config);n.exchanged_auth_credential.oauth2.auth_response_uri=A,n.exchanged_auth_credential.oauth2.redirect_uri=i,o.function_call_event_id=this.functionCallEventId,o.new_message.parts.push({function_response:{id:e.id,name:e.name,response:n}}),this.agentService.run(o).subscribe(g=>{let r=this.eventMessageIndexArray.length-1;for(let s of g)if(s.content)for(let I of s.content.parts)r+=1,this.processPart(s,I,r)})}openDialog(){this.dialog.open(pa,{width:"600px",data:{event:this.longRunningEvents[0],app_name:this.appName,user_id:this.userId,session_id:this.sessionId,function_call_event_id:this.functionCallEventId}}).afterClosed().subscribe(A=>{A&&(this.longRunningEvents=A.events,this.messages.push({role:"bot",text:A.text}))})}clickEvent(e){let A=Array.from(this.eventData.entries())[e-this.userMessagesLength(e)],[i,o]=A;this.sidenav.open(),this.showSidePanel=!0,this.selectedEvent=o,this.selectedEventIndex=this.getIndexOfKeyInMap(i),this.eventService.getEventTrace(this.selectedEvent.id).subscribe(n=>{this.llmRequest=JSON.parse(n[this.llmRequestKey]),this.llmResponse=JSON.parse(n[this.llmResponseKey])}),this.eventService.getEvent(this.userId,this.appName,this.sessionId,this.selectedEvent.id).subscribe(n=>qe(this,null,function*(){if(!n.dot_src){this.renderedEventGraph=void 0;return}let g=n.dot_src,s=(yield wm()).renderString(g,{format:"svg",engine:"dot"});this.renderedEventGraph=this.sanitizer.bypassSecurityTrustHtml(s)}))}userMessagesLength(e){return this.messages.slice(0,e).filter(A=>A.role=="user").length}ngOnDestroy(){this.webSocketService.closeConnection()}toggleAudioRecording(){this.isAudioRecording?this.stopAudioRecording():this.startAudioRecording(),this.isAudioRecording=!this.isAudioRecording}startAudioRecording(){let e=window.location.protocol==="https:"?"wss":"ws";this.webSocketService.connect(`${e}://${nt.getWSServerUrl()}/run_live?app_name=${this.appName}&user_id=${this.userId}&session_id=${this.sessionId}`),this.audioService.startRecording(),this.messages.push({role:"user",text:"Speaking..."}),this.messages.push({role:"bot",text:"Speaking..."})}stopAudioRecording(){this.audioService.stopRecording(),this.webSocketService.closeConnection()}toggleVideoRecording(){this.isVideoRecording?this.stopVideoRecording():this.startVideoRecording(),this.isVideoRecording=!this.isVideoRecording}startVideoRecording(){let e=window.location.protocol==="https:"?"wss":"ws";this.webSocketService.connect(`${e}://${nt.getWSServerUrl()}/run_live?app_name=${this.appName}&user_id=${this.userId}&session_id=${this.sessionId}`),this.videoService.startRecording(this.videoContainer),this.audioService.startRecording(),this.messages.push({role:"user",text:"Speaking..."})}stopVideoRecording(){this.audioService.stopRecording(),this.videoService.stopRecording(this.videoContainer),this.webSocketService.closeConnection()}getAsyncFunctionsFromParts(e,A){for(let i of A)i.functionCall&&e.includes(i.functionCall.id)&&this.longRunningEvents.push(i.functionCall)}openOAuthPopup(e){return new Promise((A,i)=>{if(!window.open(e,"oauthPopup","width=600,height=700")){i("Popup blocked!");return}window.addEventListener("message",n=>{if(n.origin!==window.location.origin)return;let{authResponseUrl:g}=n.data;g?A(g):i("OAuth failed")},{once:!0})})}toggleSidePanel(){this.showSidePanel=!this.showSidePanel}updateWithSelectedSession(e){if(!e||!e.id||!e.events||!e.state){console.log("Session is not valid");return}this.sessionId=e.id,this.currentSessionState=e.state,this.eventData.clear(),this.eventMessageIndexArray=[],this.messages=[],this.artifacts=[];let A=0;e.events.forEach(i=>{i.content.parts.forEach(o=>{this.storeMessage(o,i,A),A+=1,i.author&&i.author!=="user"&&this.storeEvents(o,i,A)})})}updateSessionState(e){this.currentSessionState=e.state}onNewSessionClick(){this.createSession(),this.eventData.clear(),this.eventMessageIndexArray=[],this.messages=[],this.artifacts=[]}onFileSelect(e){let A=e.target;if(A.files)for(let i=0;i<A.files.length;i++){let o=A.files[i],n=URL.createObjectURL(o);this.selectedFiles.push({file:o,url:n})}A.value=""}removeFile(e){URL.revokeObjectURL(this.selectedFiles[e].url),this.selectedFiles.splice(e,1)}toggleSse(){this.useSse=!this.useSse}selectEvent(e){this.selectedEvent=this.eventData.get(e),this.selectedEventIndex=this.getIndexOfKeyInMap(e),this.eventService.getEventTrace(this.selectedEvent.id).subscribe(A=>{this.llmRequest=JSON.parse(A[this.llmRequestKey]),this.llmResponse=JSON.parse(A[this.llmResponseKey])}),this.eventService.getEvent(this.userId,this.appName,this.sessionId,this.selectedEvent.id).subscribe(A=>qe(this,null,function*(){if(!A.dot_src){this.renderedEventGraph=void 0;return}let i=A.dot_src,n=(yield wm()).renderString(i,{format:"svg",engine:"dot"});this.renderedEventGraph=this.sanitizer.bypassSecurityTrustHtml(n)}))}deleteSession(e){let A={title:"Confirm delete",message:`Are you sure you want to delete this session ${this.sessionId}?`,confirmButtonText:"Delete",cancelButtonText:"Cancel"};this.dialog.open(wa,{width:"600px",data:A}).afterClosed().subscribe(o=>{o&&this.sessionService.deleteSession(this.userId,this.appName,e).subscribe(n=>{let g=this.sessionTab.refreshSession(e);g?this.sessionTab.getSession(g.id):window.location.reload()})})}syncSelectedAppFromUrl(){this.router.events.pipe(kA(e=>e instanceof Ot),nA(()=>this.activatedRoute.snapshot.queryParams)).subscribe(e=>{let A=e.app;A&&this.selectedAppControl.setValue(A)})}updateSelectedAppUrl(){this.selectedAppControl.valueChanges.pipe(Ei(),kA(Boolean)).subscribe(e=>{this.selectApp(e);let A=this.activatedRoute.snapshot.queryParams.app;e!==A&&this.router.navigate([],{queryParams:{app:e},queryParamsHandling:"merge"})})}handlePageEvent(e){if(e.pageIndex>=0){let A=this.getKeyAtIndexInMap(e.pageIndex);A&&this.selectEvent(A)}}closeSelectedEvent(){this.selectedEvent=void 0,this.selectedEventIndex=void 0}getIndexOfKeyInMap(e){let A=0,i=(n,g)=>0,o=Array.from(this.eventData.keys()).sort(i);for(let n of o){if(n===e)return A;A++}}getKeyAtIndexInMap(e){let A=(o,n)=>0,i=Array.from(this.eventData.keys()).sort(A);if(e>=0&&e<i.length)return i[e]}openSnackBar(e,A){this._snackBar.open(e,A)}processThoughtText(e){return e.replace("/*PLANNING*/","").replace("/*ACTION*/","")}openLink(e){window.open(e,"_blank")}renderGooglerSearch(e){return this.sanitizer.bypassSecurityTrustHtml(e)}static \u0275fac=function(A){return new(A||t)(AA(Bg),AA(Ni),AA(Qs),AA(Es),AA(ho),AA(cs),AA(Rn),AA(vn),AA(Ni),AA(Xt))};static \u0275cmp=T({type:t,selectors:[["app-chat"]],viewQuery:function(A,i){if(A&1&&(cA(mZ,5,q),cA(DZ,5),cA(vg,5),cA(Ng,5),cA(Sg,5),cA(fZ,5)),A&2){let o;z(o=j())&&(i.videoContainer=o.first),z(o=j())&&(i.sidenav=o.first),z(o=j())&&(i.eventTabComponent=o.first),z(o=j())&&(i.sessionTab=o.first),z(o=j())&&(i.evalTab=o.first),z(o=j())&&(i.scrollContainer=o.first)}},standalone:!1,features:[LA([{provide:Fg,useClass:ED}])],decls:19,vars:12,consts:[["sidenav",""],["autoScroll",""],["videoContainer",""],["fileInput",""],["autosize","",1,"drawer-container"],["mode","side",1,"sidenav",2,"color","white",3,"opened","disableClose"],[2,"margin-top","20px","margin-left","20px","display","flex"],[2,"width","100%"],[1,"drawer-header"],[3,"click"],[1,"app-select-container"],["class","tabs-container",4,"ngIf"],["class","details-panel-container",4,"ngIf"],[1,"chat-container"],["class","chat-toolbar",4,"ngIf"],[1,"chat-card"],["mat-fab","","color","primary","class","fab-button",3,"click",4,"ngIf"],["class","chat-messages",4,"ngIf"],["class","chat-input",4,"ngIf"],[1,"app-select",3,"placeholder","formControl"],[3,"value"],[1,"tabs-container"],[1,"tabs-header"],["mat-tab-label",""],[3,"selectedEvent","eventsMap"],[3,"sessionState"],[3,"artifacts"],[3,"sessionSelected","sessionReloaded","userId","appName","sessionId"],[3,"sessionSelected","appName","userId","sessionId"],[1,"tab-label"],[1,"details-panel-container"],[1,"details-content"],[2,"display","flex","justify-content","flex-end","margin-top","10px"],["aria-label","Select event",1,"event-paginator",3,"page","length","pageSize","pageIndex"],["mat-mini-fab",""],["label","Event"],[2,"margin-top","16px","margin-bottom","16px","diaply","flex","justify-content","center"],[3,"innerHtml",4,"ngIf"],[3,"json"],["label","Request"],["label","Response"],[3,"innerHtml"],[1,"chat-toolbar"],[2,"display","flex"],[1,"toolbar-session-text"],[1,"toolbar-session-id"],[1,"toolbar-actions"],[1,"toolbar-sse-toggle"],[1,"example-margin",3,"change","checked"],[2,"margin-left","8px","margin-right","8px","height","22px",3,"vertical"],[2,"display","flex","align-items","center"],[1,"toolbar-new-sesison",3,"click"],[1,"material-symbols-outlined",2,"width","24px","height","24px","color","#C4C7C5","cursor","pointer","margin-right","16px",3,"click"],[1,"empty-state-container"],[1,"warning"],[1,"error"],["mat-fab","","color","primary",1,"fab-button",3,"click"],[1,"chat-messages"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],["mat-mini-fab","",3,"click",4,"ngIf"],[1,"message-card"],["class","attachments",4,"ngIf"],["class","thought-chip",4,"ngIf"],[3,"data","ngStyle",4,"ngIf"],[4,"ngIf"],["mat-stroked-button","","class","function-event-button",3,"click",4,"ngIf"],["mat-mini-fab","",4,"ngIf"],["mat-mini-fab","",3,"click"],["fontSet","material-symbols-outlined"],[1,"attachments"],["class","attachment",4,"ngFor","ngForOf"],[1,"attachment"],["alt","attachment",1,"image-preview-chat",3,"src"],["download","",3,"href"],[1,"thought-chip"],[3,"data","ngStyle"],[3,"innerHTML"],["alt","image",1,"generated-image",3,"src"],["mat-stroked-button","",1,"function-event-button",3,"click"],[1,"chat-input"],["type","file","multiple","","hidden","",3,"change"],["appearance","outline",1,"input-field"],["class","file-preview",4,"ngIf"],["matInput","","placeholder","Type a Message...",1,"chat-input-box",2,"caret-color","white",3,"ngModelChange","keydown.enter","ngModel"],[1,"chat-input-actions"],["mat-icon-button","",1,"function-event-button",2,"margin-right","10px",3,"click"],["mat-icon-button","","matSuffix","",3,"click","ngStyle"],[3,"innerText"],[1,"file-preview"],[4,"ngFor","ngForOf"],["class","image-container",4,"ngIf"],["class","file-container",4,"ngIf"],[1,"image-container"],["alt","preview",1,"image-preview",3,"src"],["mat-icon-button","",1,"delete-button",3,"click"],["color","warn"],[1,"file-container"],[1,"file-info"]],template:function(A,i){if(A&1){let o=aA();u(0,"mat-drawer-container",4)(1,"mat-drawer",5,0)(3,"div",6)(4,"div",7)(5,"div",8)(6,"mat-icon",9),x("click",function(){return J(o),H(i.toggleSidePanel())}),G(7,"menu"),m(),U(8,FZ,5,6,"div",10)(9,bZ,2,0,"span"),m()()(),U(10,_Z,17,9,"div",11)(11,UZ,17,7,"div",12),m(),u(12,"div",13),U(13,xZ,18,3,"div",14),u(14,"mat-card",15),U(15,ZZ,2,1)(16,qZ,3,0,"button",16)(17,I1,5,1,"div",17)(18,E1,15,10,"div",18),m()()()}A&2&&(f(),Bt("width",i.showSidePanel?510:56,"px"),F("opened",!0)("disableClose",!0),f(7),pA(i.showSidePanel?8:9),f(2),F("ngIf",i.appName!=""&&i.showSidePanel),f(),F("ngIf",i.selectedEvent&&i.showSidePanel),f(2),F("ngIf",i.appName!=""),f(2),pA(i.selectedAppControl.value?-1:15),f(),F("ngIf",i.longRunningEvents.length>0),f(),F("ngIf",i.appName!=""),f(),F("ngIf",i.appName!=""))},dependencies:[Yt,Rt,Jt,vh,oo,no,ki,YF,Bs,Eo,Mk,Sn,bt,hE,nk,ok,fm,GF,OE,Wm,zm,eD,tD,$F,gs,Dn,mb,zE,Au,vg,Ng,Sg,Sa,va,hI],styles:[".drawer-container[_ngcontent-%COMP%]{height:100%;background-color:#131314}.generated-image[_ngcontent-%COMP%]{max-width:33%;border-radius:8px}.chat-container[_ngcontent-%COMP%]{width:100%;height:100%;max-width:1200px;margin:auto}.event-container[_ngcontent-%COMP%]{color:#fff}.drawer-header[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:flex-start;align-items:center}.drawer-header[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{width:36px;height:36px;color:#bdc1c6;cursor:pointer;display:flex;align-items:center;justify-content:center}.chat-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:500px;overflow:hidden;height:95%;box-shadow:none;background-color:#131314}.chat-messages[_ngcontent-%COMP%]{flex-grow:1;overflow-y:auto;padding:20px;margin-top:16px}.message-card[_ngcontent-%COMP%]{padding:5px 20px;margin:5px;border-radius:20px;max-width:80%;font-size:14px;font-weight:400}.user-message[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center}.user-message[_ngcontent-%COMP%]   .message-card[_ngcontent-%COMP%]{background-color:#004a77;align-self:flex-end;color:#fff;box-shadow:none}.bot-message[_ngcontent-%COMP%]{display:flex;align-items:center}.bot-message[_ngcontent-%COMP%]   .message-card[_ngcontent-%COMP%]{background-color:#303030;align-self:flex-start;color:#fff;box-shadow:none}.navigation-button-sidepanel[_ngcontent-%COMP%]{margin-left:auto;margin-right:20px}.chat-input[_ngcontent-%COMP%]{display:flex;padding:10px;width:80%;margin:0 auto}.input-field[_ngcontent-%COMP%]{flex-grow:1}.input-field[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{color:#fff;border:none;padding:10px}.input-field[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]::placeholder{color:#8e918f}.input-field[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{color:#fff;background-color:#333537}.chat-input-actions[_ngcontent-%COMP%]{margin-top:10px;display:flex;justify-content:space-between}.fab-button[_ngcontent-%COMP%]{position:fixed;bottom:200px;right:100px;z-index:1000}.sidepanel-toggle[_ngcontent-%COMP%]{position:relative;top:100px;z-index:1000}.sidenav[_ngcontent-%COMP%]{background-color:#1b1b1b;color:#fff;border-radius:0}.tabs-container[_ngcontent-%COMP%]{margin-top:20px;padding-left:10px;padding-right:10px}.tab-label[_ngcontent-%COMP%]{font-size:14px}.file-preview[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:5px;margin-top:2px;margin-bottom:8px}.file-item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:5px;background:#eee;padding:5px;border-radius:4px}.image-preview[_ngcontent-%COMP%]{width:40px;height:40px;object-fit:cover;border-radius:4px}.image-preview-chat[_ngcontent-%COMP%]{max-width:90%;max-height:70vh;width:auto;height:auto;border-radius:8px;cursor:pointer;transition:transform .2s ease-in-out}button[_ngcontent-%COMP%]{margin-left:20px;margin-right:20px}.app-select[_ngcontent-%COMP%]{width:180px}.empty-state-container[_ngcontent-%COMP%]{color:#eee;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;font-family:Open Sans,sans-serif;font-weight:400;letter-spacing:normal;line-height:24px;font-size:18px}.empty-state-container[_ngcontent-%COMP%]   pre.warning[_ngcontent-%COMP%]{color:#ffc185}.empty-state-container[_ngcontent-%COMP%]   pre.error[_ngcontent-%COMP%]{color:#ff4545}.function-event-button[_ngcontent-%COMP%]{background-color:#fff}[_nghost-%COMP%]     .mat-mdc-text-field-wrapper{border:1px solid #8e918f}[_nghost-%COMP%]     .input-field .mat-mdc-text-field-wrapper{border:1px solid #8e918f;border-radius:16px}[_nghost-%COMP%]     .mdc-notched-outline__leading, [_nghost-%COMP%]     .mdc-notched-outline__notch, [_nghost-%COMP%]     .mdc-notched-outline__trailing{border:none}[_nghost-%COMP%]     .mat-mdc-form-field-icon-suffix{padding:0 10px 0 40px}[_nghost-%COMP%]     .segment-key{color:#d3d3d3!important}[_nghost-%COMP%]     .mat-mdc-mini-fab{background-color:#fff}[_nghost-%COMP%]     .mat-mdc-mini-fab mat-icon{color:#000}[_nghost-%COMP%]     .mat-drawer-inner-container{width:500px}.mat-mdc-select-placeholder[_ngcontent-%COMP%]{margin-left:20px}.new-session-button[_ngcontent-%COMP%]{margin-top:0;margin-left:50px;width:130px;height:28px;font-size:14px}.app-select-container[_ngcontent-%COMP%]{background-color:#212123;margin-left:20px;height:30px;display:flex;justify-content:space-between;padding-left:20px;padding-right:20px;border-radius:10px;padding-top:5px;margin-top:-2px}.drawer-header[_ngcontent-%COMP%]{--mat-select-placeholder-text-color: #8ab4f8}.drawer-header[_ngcontent-%COMP%]{--mat-select-enabled-trigger-text-color: #8ab4f8}.drawer-header[_ngcontent-%COMP%]{--mat-select-enabled-arrow-color: #8ab4f8}.event-paginator[_ngcontent-%COMP%]{background-color:inherit;display:flex;justify-content:center}[_nghost-%COMP%]     .mat-mdc-paginator-page-size{display:none!important}.details-panel-container[_ngcontent-%COMP%]{position:absolute;height:98%;left:0;right:0;bottom:0;background:#242424;display:inline-block;justify-content:center;align-items:center;z-index:10}.details-content[_ngcontent-%COMP%]{color:#fff;font-size:14px}.event-paginator[_ngcontent-%COMP%]{margin-top:-8px;margin-right:160px}.adk-checkbox[_ngcontent-%COMP%]{position:fixed;bottom:0;left:0;right:0;margin-bottom:20px;margin-left:20px}.drawer-header[_ngcontent-%COMP%]{--mdc-filled-button-container-color: #89b4f8}.drawer-header[_ngcontent-%COMP%]{--mdc-filled-button-label-text-color: black}.chat-toolbar[_ngcontent-%COMP%]{position:sticky;top:0;height:48px;background:#1b1b1b;display:flex;justify-content:space-between;align-items:center;z-index:10}.toolbar-session-text[_ngcontent-%COMP%]{color:#fdfdfd;font-family:Roboto;font-size:12px;font-style:normal;font-weight:500;line-height:12px;letter-spacing:.8px;text-transform:uppercase;margin-left:20px;padding-top:4px}.toolbar-session-id[_ngcontent-%COMP%]{color:#9aa0a6;font-family:monospace;font-size:14px;font-style:normal;font-weight:400;line-height:20px;letter-spacing:.25px;margin-left:5px}.toolbar-actions[_ngcontent-%COMP%]{display:flex}.toolbar-new-sesison[_ngcontent-%COMP%]{font-size:14px;margin-right:16px;color:#9aa0a6;cursor:pointer;display:flex;align-items:center}.toolbar-sse-toggle[_ngcontent-%COMP%]{--mat-switch-label-text-size: 14px}.toolbar-sse-toggle[_ngcontent-%COMP%]{--mat-switch-label-text-color: #9aa0a6}.toolbar-sse-toggle[_ngcontent-%COMP%]{--mdc-switch-selected-track-color: #8ab4f9}.toolbar-sse-toggle[_ngcontent-%COMP%]{--mdc-switch-selected-focus-track-color: #8ab4f9}.toolbar-sse-toggle[_ngcontent-%COMP%]{--mdc-switch-selected-hover-track-color: #8ab4f9}.toolbar-sse-toggle[_ngcontent-%COMP%]{--mdc-switch-selected-handle-color: #1b73e8}.toolbar-sse-toggle[_ngcontent-%COMP%]{--mdc-switch-selected-focus-handle-color: #1b73e8}.toolbar-sse-toggle[_ngcontent-%COMP%]{--mdc-switch-selected-hover-handle-color: #1b73e8}.toolbar-sse-toggle[_ngcontent-%COMP%]{--mdc-switch-track-height: 24px}.toolbar-sse-toggle[_ngcontent-%COMP%]{--mdc-switch-track-width: 46px}.toolbar-sse-toggle[_ngcontent-%COMP%]{--mat-switch-track-outline-color: #1b73e8}.toolbar-sse-toggle[_ngcontent-%COMP%]{--mat-switch-with-icon-handle-size: 20px}.image-container[_ngcontent-%COMP%]{position:relative;display:inline-block;border-radius:12px;overflow:hidden}.image-preview[_ngcontent-%COMP%]{display:block;width:100%;height:auto;border-radius:12px;width:80px;height:80px}.delete-button[_ngcontent-%COMP%]{position:absolute;top:1px;right:1px;background-color:#000000b3;border:none;border-radius:50%;padding:8px;cursor:pointer;color:#fff;display:flex;align-items:center;justify-content:center;margin-right:0;scale:.7}.delete-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{font-size:20px}.file-container[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;gap:8px;height:80px;background-color:#1e1e1e;border-radius:12px}.file-info[_ngcontent-%COMP%]{margin-right:60px;padding-top:20px;padding-left:16px}.thought-chip[_ngcontent-%COMP%]{border-radius:5px;background-color:#8ab4f8;width:80px;text-align:center;margin-top:5px}[_nghost-%COMP%]     pre{white-space:pre-wrap;word-break:break-word;overflow-x:auto;max-width:100%}"]})};var us=class t{title="agent_framework_web";userId="";appName="";sessionId="";constructor(){}static \u0275fac=function(A){return new(A||t)};static \u0275cmp=T({type:t,selectors:[["app-root"]],standalone:!1,decls:1,vars:0,template:function(A,i){A&1&&W(0,"app-chat")},dependencies:[Na],encapsulation:2})};var d1=[{path:"dev-ui",component:us},{path:"",redirectTo:"dev-ui",pathMatch:"full"}],jE=class t{static \u0275fac=function(A){return new(A||t)};static \u0275mod=V({type:t});static \u0275inj=Z({imports:[WQ.forRoot(d1),WQ]})};function wb(t){return new K(3e3,!1)}function h1(){return new K(3100,!1)}function u1(){return new K(3101,!1)}function m1(t){return new K(3001,!1)}function D1(t){return new K(3003,!1)}function f1(t){return new K(3004,!1)}function Mb(t,e){return new K(3005,!1)}function Rb(){return new K(3006,!1)}function kb(){return new K(3007,!1)}function Fb(t,e){return new K(3008,!1)}function bb(t){return new K(3002,!1)}function Sb(t,e,A,i,o){return new K(3010,!1)}function vb(){return new K(3011,!1)}function Nb(){return new K(3012,!1)}function Gb(){return new K(3200,!1)}function Lb(){return new K(3202,!1)}function _b(){return new K(3013,!1)}function Kb(t){return new K(3014,!1)}function Ub(t){return new K(3015,!1)}function xb(t){return new K(3016,!1)}function Yb(t,e){return new K(3404,!1)}function p1(t){return new K(3502,!1)}function Jb(t){return new K(3503,!1)}function Hb(){return new K(3300,!1)}function Tb(t){return new K(3504,!1)}function Ob(t){return new K(3301,!1)}function Pb(t,e){return new K(3302,!1)}function Zb(t){return new K(3303,!1)}function qb(t,e){return new K(3400,!1)}function Vb(t){return new K(3401,!1)}function Wb(t){return new K(3402,!1)}function zb(t,e){return new K(3505,!1)}function qo(t){switch(t.length){case 0:return new Bo;case 1:return t[0];default:return new kg(t)}}function hD(t,e,A=new Map,i=new Map){let o=[],n=[],g=-1,r=null;if(e.forEach(s=>{let I=s.get("offset"),B=I==g,c=B&&r||new Map;s.forEach((D,h)=>{let p=h,y=D;if(h!=="offset")switch(p=t.normalizePropertyName(p,o),y){case ns:y=A.get(h);break;case ni:y=i.get(h);break;default:y=t.normalizeStyleValue(h,p,y,o);break}c.set(p,y)}),B||n.push(c),r=c,g=I}),o.length)throw p1(o);return n}function XE(t,e,A,i){switch(e){case"start":t.onStart(()=>i(A&&cD(A,"start",t)));break;case"done":t.onDone(()=>i(A&&cD(A,"done",t)));break;case"destroy":t.onDestroy(()=>i(A&&cD(A,"destroy",t)));break}}function cD(t,e,A){let i=A.totalTime,o=!!A.disabled,n=$E(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,i??t.totalTime,o),g=t._data;return g!=null&&(n._data=g),n}function $E(t,e,A,i,o="",n=0,g){return{element:t,triggerName:e,fromState:A,toState:i,phaseName:o,totalTime:n,disabled:!!g}}function vt(t,e,A){let i=t.get(e);return i||t.set(e,i=A),i}function uD(t){let e=t.indexOf(":"),A=t.substring(1,e),i=t.slice(e+1);return[A,i]}var w1=typeof document>"u"?null:document.documentElement;function Ac(t){let e=t.parentNode||t.host||null;return e===w1?null:e}function y1(t){return t.substring(1,6)=="ebkit"}var _g=null,yb=!1;function jb(t){_g||(_g=M1()||{},yb=_g.style?"WebkitAppearance"in _g.style:!1);let e=!0;return _g.style&&!y1(t)&&(e=t in _g.style,!e&&yb&&(e="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in _g.style)),e}function M1(){return typeof document<"u"?document.body:null}function mD(t,e){for(;e;){if(e===t)return!0;e=Ac(e)}return!1}function DD(t,e,A){if(A)return Array.from(t.querySelectorAll(e));let i=t.querySelector(e);return i?[i]:[]}var R1=1e3,fD="{{",k1="}}",pD="ng-enter",ec="ng-leave",Ga="ng-trigger",La=".ng-trigger",wD="ng-animating",tc=".ng-animating";function Do(t){if(typeof t=="number")return t;let e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:lD(parseFloat(e[1]),e[2])}function lD(t,e){switch(e){case"s":return t*R1;default:return t}}function _a(t,e,A){return t.hasOwnProperty("duration")?t:F1(t,e,A)}function F1(t,e,A){let i=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,o,n=0,g="";if(typeof t=="string"){let r=t.match(i);if(r===null)return e.push(wb(t)),{duration:0,delay:0,easing:""};o=lD(parseFloat(r[1]),r[2]);let s=r[3];s!=null&&(n=lD(parseFloat(s),r[4]));let I=r[5];I&&(g=I)}else o=t;if(!A){let r=!1,s=e.length;o<0&&(e.push(h1()),r=!0),n<0&&(e.push(u1()),r=!0),r&&e.splice(s,0,wb(t))}return{duration:o,delay:n,easing:g}}function Xb(t){return t.length?t[0]instanceof Map?t:t.map(e=>new Map(Object.entries(e))):[]}function _i(t,e,A){e.forEach((i,o)=>{let n=ic(o);A&&!A.has(o)&&A.set(o,t.style[n]),t.style[n]=i})}function Nn(t,e){e.forEach((A,i)=>{let o=ic(i);t.style[o]=""})}function ms(t){return Array.isArray(t)?t.length==1?t[0]:dk(t):t}function $b(t,e,A){let i=e.params||{},o=yD(t);o.length&&o.forEach(n=>{i.hasOwnProperty(n)||A.push(m1(n))})}var dD=new RegExp(`${fD}\\s*(.+?)\\s*${k1}`,"g");function yD(t){let e=[];if(typeof t=="string"){let A;for(;A=dD.exec(t);)e.push(A[1]);dD.lastIndex=0}return e}function Ds(t,e,A){let i=`${t}`,o=i.replace(dD,(n,g)=>{let r=e[g];return r==null&&(A.push(D1(g)),r=""),r.toString()});return o==i?t:o}var b1=/-+([a-z0-9])/g;function ic(t){return t.replace(b1,(...e)=>e[1].toUpperCase())}function AS(t,e){return t===0||e===0}function eS(t,e,A){if(A.size&&e.length){let i=e[0],o=[];if(A.forEach((n,g)=>{i.has(g)||o.push(g),i.set(g,n)}),o.length)for(let n=1;n<e.length;n++){let g=e[n];o.forEach(r=>g.set(r,oc(t,r)))}}return e}function Nt(t,e,A){switch(e.type){case _A.Trigger:return t.visitTrigger(e,A);case _A.State:return t.visitState(e,A);case _A.Transition:return t.visitTransition(e,A);case _A.Sequence:return t.visitSequence(e,A);case _A.Group:return t.visitGroup(e,A);case _A.Animate:return t.visitAnimate(e,A);case _A.Keyframes:return t.visitKeyframes(e,A);case _A.Style:return t.visitStyle(e,A);case _A.Reference:return t.visitReference(e,A);case _A.AnimateChild:return t.visitAnimateChild(e,A);case _A.AnimateRef:return t.visitAnimateRef(e,A);case _A.Query:return t.visitQuery(e,A);case _A.Stagger:return t.visitStagger(e,A);default:throw f1(e.type)}}function oc(t,e){return window.getComputedStyle(t)[e]}var HD=(()=>{class t{validateStyleProperty(A){return jb(A)}containsElement(A,i){return mD(A,i)}getParentElement(A){return Ac(A)}query(A,i,o){return DD(A,i,o)}computeStyle(A,i,o){return o||""}animate(A,i,o,n,g,r=[],s){return new Bo(o,n)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})(),Ug=class{static NOOP=new HD},xg=class{};var S1=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"]),Ic=class extends xg{normalizePropertyName(e,A){return ic(e)}normalizeStyleValue(e,A,i,o){let n="",g=i.toString().trim();if(S1.has(A)&&i!==0&&i!=="0")if(typeof i=="number")n="px";else{let r=i.match(/^[+-]?[\d\.]+([a-z]*)$/);r&&r[1].length==0&&o.push(Mb(e,i))}return g+n}};var ac="*";function v1(t,e){let A=[];return typeof t=="string"?t.split(/\s*,\s*/).forEach(i=>N1(i,A,e)):A.push(t),A}function N1(t,e,A){if(t[0]==":"){let s=G1(t,A);if(typeof s=="function"){e.push(s);return}t=s}let i=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(i==null||i.length<4)return A.push(Ub(t)),e;let o=i[1],n=i[2],g=i[3];e.push(tS(o,g));let r=o==ac&&g==ac;n[0]=="<"&&!r&&e.push(tS(g,o))}function G1(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(A,i)=>parseFloat(i)>parseFloat(A);case":decrement":return(A,i)=>parseFloat(i)<parseFloat(A);default:return e.push(xb(t)),"* => *"}}var nc=new Set(["true","1"]),gc=new Set(["false","0"]);function tS(t,e){let A=nc.has(t)||gc.has(t),i=nc.has(e)||gc.has(e);return(o,n)=>{let g=t==ac||t==o,r=e==ac||e==n;return!g&&A&&typeof o=="boolean"&&(g=o?nc.has(t):gc.has(t)),!r&&i&&typeof n=="boolean"&&(r=n?nc.has(e):gc.has(e)),g&&r}}var BS=":self",L1=new RegExp(`s*${BS}s*,?`,"g");function QS(t,e,A,i){return new SD(t).build(e,A,i)}var iS="",SD=class{_driver;constructor(e){this._driver=e}build(e,A,i){let o=new vD(A);return this._resetContextStyleTimingState(o),Nt(this,ms(e),o)}_resetContextStyleTimingState(e){e.currentQuerySelector=iS,e.collectedStyles=new Map,e.collectedStyles.set(iS,new Map),e.currentTime=0}visitTrigger(e,A){let i=A.queryCount=0,o=A.depCount=0,n=[],g=[];return e.name.charAt(0)=="@"&&A.errors.push(Rb()),e.definitions.forEach(r=>{if(this._resetContextStyleTimingState(A),r.type==_A.State){let s=r,I=s.name;I.toString().split(/\s*,\s*/).forEach(B=>{s.name=B,n.push(this.visitState(s,A))}),s.name=I}else if(r.type==_A.Transition){let s=this.visitTransition(r,A);i+=s.queryCount,o+=s.depCount,g.push(s)}else A.errors.push(kb())}),{type:_A.Trigger,name:e.name,states:n,transitions:g,queryCount:i,depCount:o,options:null}}visitState(e,A){let i=this.visitStyle(e.styles,A),o=e.options&&e.options.params||null;if(i.containsDynamicStyles){let n=new Set,g=o||{};i.styles.forEach(r=>{r instanceof Map&&r.forEach(s=>{yD(s).forEach(I=>{g.hasOwnProperty(I)||n.add(I)})})}),n.size&&A.errors.push(Fb(e.name,[...n.values()]))}return{type:_A.State,name:e.name,style:i,options:o?{params:o}:null}}visitTransition(e,A){A.queryCount=0,A.depCount=0;let i=Nt(this,ms(e.animation),A),o=v1(e.expr,A.errors);return{type:_A.Transition,matchers:o,animation:i,queryCount:A.queryCount,depCount:A.depCount,options:Kg(e.options)}}visitSequence(e,A){return{type:_A.Sequence,steps:e.steps.map(i=>Nt(this,i,A)),options:Kg(e.options)}}visitGroup(e,A){let i=A.currentTime,o=0,n=e.steps.map(g=>{A.currentTime=i;let r=Nt(this,g,A);return o=Math.max(o,A.currentTime),r});return A.currentTime=o,{type:_A.Group,steps:n,options:Kg(e.options)}}visitAnimate(e,A){let i=x1(e.timings,A.errors);A.currentAnimateTimings=i;let o,n=e.styles?e.styles:Ge({});if(n.type==_A.Keyframes)o=this.visitKeyframes(n,A);else{let g=e.styles,r=!1;if(!g){r=!0;let I={};i.easing&&(I.easing=i.easing),g=Ge(I)}A.currentTime+=i.duration+i.delay;let s=this.visitStyle(g,A);s.isEmptyStep=r,o=s}return A.currentAnimateTimings=null,{type:_A.Animate,timings:i,style:o,options:null}}visitStyle(e,A){let i=this._makeStyleAst(e,A);return this._validateStyleAst(i,A),i}_makeStyleAst(e,A){let i=[],o=Array.isArray(e.styles)?e.styles:[e.styles];for(let r of o)typeof r=="string"?r===ni?i.push(r):A.errors.push(bb(r)):i.push(new Map(Object.entries(r)));let n=!1,g=null;return i.forEach(r=>{if(r instanceof Map&&(r.has("easing")&&(g=r.get("easing"),r.delete("easing")),!n)){for(let s of r.values())if(s.toString().indexOf(fD)>=0){n=!0;break}}}),{type:_A.Style,styles:i,easing:g,offset:e.offset,containsDynamicStyles:n,options:null}}_validateStyleAst(e,A){let i=A.currentAnimateTimings,o=A.currentTime,n=A.currentTime;i&&n>0&&(n-=i.duration+i.delay),e.styles.forEach(g=>{typeof g!="string"&&g.forEach((r,s)=>{let I=A.collectedStyles.get(A.currentQuerySelector),B=I.get(s),c=!0;B&&(n!=o&&n>=B.startTime&&o<=B.endTime&&(A.errors.push(Sb(s,B.startTime,B.endTime,n,o)),c=!1),n=B.startTime),c&&I.set(s,{startTime:n,endTime:o}),A.options&&$b(r,A.options,A.errors)})})}visitKeyframes(e,A){let i={type:_A.Keyframes,styles:[],options:null};if(!A.currentAnimateTimings)return A.errors.push(vb()),i;let o=1,n=0,g=[],r=!1,s=!1,I=0,B=e.steps.map(P=>{let DA=this._makeStyleAst(P,A),UA=DA.offset!=null?DA.offset:U1(DA.styles),fA=0;return UA!=null&&(n++,fA=DA.offset=UA),s=s||fA<0||fA>1,r=r||fA<I,I=fA,g.push(fA),DA});s&&A.errors.push(Nb()),r&&A.errors.push(Gb());let c=e.steps.length,D=0;n>0&&n<c?A.errors.push(Lb()):n==0&&(D=o/(c-1));let h=c-1,p=A.currentTime,y=A.currentAnimateTimings,L=y.duration;return B.forEach((P,DA)=>{let UA=D>0?DA==h?1:D*DA:g[DA],fA=UA*L;A.currentTime=p+y.delay+fA,y.duration=fA,this._validateStyleAst(P,A),P.offset=UA,i.styles.push(P)}),i}visitReference(e,A){return{type:_A.Reference,animation:Nt(this,ms(e.animation),A),options:Kg(e.options)}}visitAnimateChild(e,A){return A.depCount++,{type:_A.AnimateChild,options:Kg(e.options)}}visitAnimateRef(e,A){return{type:_A.AnimateRef,animation:this.visitReference(e.animation,A),options:Kg(e.options)}}visitQuery(e,A){let i=A.currentQuerySelector,o=e.options||{};A.queryCount++,A.currentQuery=e;let[n,g]=_1(e.selector);A.currentQuerySelector=i.length?i+" "+n:n,vt(A.collectedStyles,A.currentQuerySelector,new Map);let r=Nt(this,ms(e.animation),A);return A.currentQuery=null,A.currentQuerySelector=i,{type:_A.Query,selector:n,limit:o.limit||0,optional:!!o.optional,includeSelf:g,animation:r,originalSelector:e.selector,options:Kg(e.options)}}visitStagger(e,A){A.currentQuery||A.errors.push(_b());let i=e.timings==="full"?{duration:0,delay:0,easing:"full"}:_a(e.timings,A.errors,!0);return{type:_A.Stagger,animation:Nt(this,ms(e.animation),A),timings:i,options:null}}};function _1(t){let e=!!t.split(/\s*,\s*/).find(A=>A==BS);return e&&(t=t.replace(L1,"")),t=t.replace(/@\*/g,La).replace(/@\w+/g,A=>La+"-"+A.slice(1)).replace(/:animating/g,tc),[t,e]}function K1(t){return t?R({},t):null}var vD=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(e){this.errors=e}};function U1(t){if(typeof t=="string")return null;let e=null;if(Array.isArray(t))t.forEach(A=>{if(A instanceof Map&&A.has("offset")){let i=A;e=parseFloat(i.get("offset")),i.delete("offset")}});else if(t instanceof Map&&t.has("offset")){let A=t;e=parseFloat(A.get("offset")),A.delete("offset")}return e}function x1(t,e){if(t.hasOwnProperty("duration"))return t;if(typeof t=="number"){let n=_a(t,e).duration;return MD(n,0,"")}let A=t;if(A.split(/\s+/).some(n=>n.charAt(0)=="{"&&n.charAt(1)=="{")){let n=MD(0,0,"");return n.dynamic=!0,n.strValue=A,n}let o=_a(A,e);return MD(o.duration,o.delay,o.easing)}function Kg(t){return t?(t=R({},t),t.params&&(t.params=K1(t.params))):t={},t}function MD(t,e,A){return{duration:t,delay:e,easing:A}}function TD(t,e,A,i,o,n,g=null,r=!1){return{type:1,element:t,keyframes:e,preStyleProps:A,postStyleProps:i,duration:o,delay:n,totalTime:o+n,easing:g,subTimeline:r}}var Ua=class{_map=new Map;get(e){return this._map.get(e)||[]}append(e,A){let i=this._map.get(e);i||this._map.set(e,i=[]),i.push(...A)}has(e){return this._map.has(e)}clear(){this._map.clear()}},Y1=1,J1=":enter",H1=new RegExp(J1,"g"),T1=":leave",O1=new RegExp(T1,"g");function ES(t,e,A,i,o,n=new Map,g=new Map,r,s,I=[]){return new ND().buildKeyframes(t,e,A,i,o,n,g,r,s,I)}var ND=class{buildKeyframes(e,A,i,o,n,g,r,s,I,B=[]){I=I||new Ua;let c=new GD(e,A,I,o,n,B,[]);c.options=s;let D=s.delay?Do(s.delay):0;c.currentTimeline.delayNextStep(D),c.currentTimeline.setStyles([g],null,c.errors,s),Nt(this,i,c);let h=c.timelines.filter(p=>p.containsAnimation());if(h.length&&r.size){let p;for(let y=h.length-1;y>=0;y--){let L=h[y];if(L.element===A){p=L;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([r],null,c.errors,s)}return h.length?h.map(p=>p.buildKeyframes()):[TD(A,[],[],[],0,D,"",!1)]}visitTrigger(e,A){}visitState(e,A){}visitTransition(e,A){}visitAnimateChild(e,A){let i=A.subInstructions.get(A.element);if(i){let o=A.createSubContext(e.options),n=A.currentTimeline.currentTime,g=this._visitSubInstructions(i,o,o.options);n!=g&&A.transformIntoNewTimeline(g)}A.previousNode=e}visitAnimateRef(e,A){let i=A.createSubContext(e.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],A,i),this.visitReference(e.animation,i),A.transformIntoNewTimeline(i.currentTimeline.currentTime),A.previousNode=e}_applyAnimationRefDelays(e,A,i){for(let o of e){let n=o?.delay;if(n){let g=typeof n=="number"?n:Do(Ds(n,o?.params??{},A.errors));i.delayNextStep(g)}}}_visitSubInstructions(e,A,i){let n=A.currentTimeline.currentTime,g=i.duration!=null?Do(i.duration):null,r=i.delay!=null?Do(i.delay):null;return g!==0&&e.forEach(s=>{let I=A.appendInstructionToTimeline(s,g,r);n=Math.max(n,I.duration+I.delay)}),n}visitReference(e,A){A.updateOptions(e.options,!0),Nt(this,e.animation,A),A.previousNode=e}visitSequence(e,A){let i=A.subContextCount,o=A,n=e.options;if(n&&(n.params||n.delay)&&(o=A.createSubContext(n),o.transformIntoNewTimeline(),n.delay!=null)){o.previousNode.type==_A.Style&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=Cc);let g=Do(n.delay);o.delayNextStep(g)}e.steps.length&&(e.steps.forEach(g=>Nt(this,g,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>i&&o.transformIntoNewTimeline()),A.previousNode=e}visitGroup(e,A){let i=[],o=A.currentTimeline.currentTime,n=e.options&&e.options.delay?Do(e.options.delay):0;e.steps.forEach(g=>{let r=A.createSubContext(e.options);n&&r.delayNextStep(n),Nt(this,g,r),o=Math.max(o,r.currentTimeline.currentTime),i.push(r.currentTimeline)}),i.forEach(g=>A.currentTimeline.mergeTimelineCollectedStyles(g)),A.transformIntoNewTimeline(o),A.previousNode=e}_visitTiming(e,A){if(e.dynamic){let i=e.strValue,o=A.params?Ds(i,A.params,A.errors):i;return _a(o,A.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,A){let i=A.currentAnimateTimings=this._visitTiming(e.timings,A),o=A.currentTimeline;i.delay&&(A.incrementTime(i.delay),o.snapshotCurrentStyles());let n=e.style;n.type==_A.Keyframes?this.visitKeyframes(n,A):(A.incrementTime(i.duration),this.visitStyle(n,A),o.applyStylesToKeyframe()),A.currentAnimateTimings=null,A.previousNode=e}visitStyle(e,A){let i=A.currentTimeline,o=A.currentAnimateTimings;!o&&i.hasCurrentStyleProperties()&&i.forwardFrame();let n=o&&o.easing||e.easing;e.isEmptyStep?i.applyEmptyStep(n):i.setStyles(e.styles,n,A.errors,A.options),A.previousNode=e}visitKeyframes(e,A){let i=A.currentAnimateTimings,o=A.currentTimeline.duration,n=i.duration,r=A.createSubContext().currentTimeline;r.easing=i.easing,e.styles.forEach(s=>{let I=s.offset||0;r.forwardTime(I*n),r.setStyles(s.styles,s.easing,A.errors,A.options),r.applyStylesToKeyframe()}),A.currentTimeline.mergeTimelineCollectedStyles(r),A.transformIntoNewTimeline(o+n),A.previousNode=e}visitQuery(e,A){let i=A.currentTimeline.currentTime,o=e.options||{},n=o.delay?Do(o.delay):0;n&&(A.previousNode.type===_A.Style||i==0&&A.currentTimeline.hasCurrentStyleProperties())&&(A.currentTimeline.snapshotCurrentStyles(),A.previousNode=Cc);let g=i,r=A.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!o.optional,A.errors);A.currentQueryTotal=r.length;let s=null;r.forEach((I,B)=>{A.currentQueryIndex=B;let c=A.createSubContext(e.options,I);n&&c.delayNextStep(n),I===A.element&&(s=c.currentTimeline),Nt(this,e.animation,c),c.currentTimeline.applyStylesToKeyframe();let D=c.currentTimeline.currentTime;g=Math.max(g,D)}),A.currentQueryIndex=0,A.currentQueryTotal=0,A.transformIntoNewTimeline(g),s&&(A.currentTimeline.mergeTimelineCollectedStyles(s),A.currentTimeline.snapshotCurrentStyles()),A.previousNode=e}visitStagger(e,A){let i=A.parentContext,o=A.currentTimeline,n=e.timings,g=Math.abs(n.duration),r=g*(A.currentQueryTotal-1),s=g*A.currentQueryIndex;switch(n.duration<0?"reverse":n.easing){case"reverse":s=r-s;break;case"full":s=i.currentStaggerTime;break}let B=A.currentTimeline;s&&B.delayNextStep(s);let c=B.currentTime;Nt(this,e.animation,A),A.previousNode=e,i.currentStaggerTime=o.currentTime-c+(o.startTime-i.currentTimeline.startTime)}},Cc={},GD=class t{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=Cc;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(e,A,i,o,n,g,r,s){this._driver=e,this.element=A,this.subInstructions=i,this._enterClassName=o,this._leaveClassName=n,this.errors=g,this.timelines=r,this.currentTimeline=s||new Bc(this._driver,A,0),r.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,A){if(!e)return;let i=e,o=this.options;i.duration!=null&&(o.duration=Do(i.duration)),i.delay!=null&&(o.delay=Do(i.delay));let n=i.params;if(n){let g=o.params;g||(g=this.options.params={}),Object.keys(n).forEach(r=>{(!A||!g.hasOwnProperty(r))&&(g[r]=Ds(n[r],g,this.errors))})}}_copyOptions(){let e={};if(this.options){let A=this.options.params;if(A){let i=e.params={};Object.keys(A).forEach(o=>{i[o]=A[o]})}}return e}createSubContext(e=null,A,i){let o=A||this.element,n=new t(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,i||0));return n.previousNode=this.previousNode,n.currentAnimateTimings=this.currentAnimateTimings,n.options=this._copyOptions(),n.updateOptions(e),n.currentQueryIndex=this.currentQueryIndex,n.currentQueryTotal=this.currentQueryTotal,n.parentContext=this,this.subContextCount++,n}transformIntoNewTimeline(e){return this.previousNode=Cc,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,A,i){let o={duration:A??e.duration,delay:this.currentTimeline.currentTime+(i??0)+e.delay,easing:""},n=new LD(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,o,e.stretchStartingKeyframe);return this.timelines.push(n),o}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,A,i,o,n,g){let r=[];if(o&&r.push(this.element),e.length>0){e=e.replace(H1,"."+this._enterClassName),e=e.replace(O1,"."+this._leaveClassName);let s=i!=1,I=this._driver.query(this.element,e,s);i!==0&&(I=i<0?I.slice(I.length+i,I.length):I.slice(0,i)),r.push(...I)}return!n&&r.length==0&&g.push(Kb(A)),r}},Bc=class t{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(e,A,i,o){this._driver=e,this.element=A,this.startTime=i,this._elementTimelineStylesLookup=o,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(A),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(A,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(e){let A=this._keyframes.size===1&&this._pendingStyles.size;this.duration||A?(this.forwardTime(this.currentTime+e),A&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,A){return this.applyStylesToKeyframe(),new t(this._driver,e,A||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+=Y1,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,A){this._localTimelineStyles.set(e,A),this._globalTimelineStyles.set(e,A),this._styleSummary.set(e,{time:this.currentTime,value:A})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[A,i]of this._globalTimelineStyles)this._backFill.set(A,i||ni),this._currentKeyframe.set(A,ni);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,A,i,o){A&&this._previousKeyframe.set("easing",A);let n=o&&o.params||{},g=P1(e,this._globalTimelineStyles);for(let[r,s]of g){let I=Ds(s,n,i);this._pendingStyles.set(r,I),this._localTimelineStyles.has(r)||this._backFill.set(r,this._globalTimelineStyles.get(r)??ni),this._updateStyle(r,I)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,A)=>{this._currentKeyframe.set(A,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,A)=>{this._currentKeyframe.has(A)||this._currentKeyframe.set(A,e)}))}snapshotCurrentStyles(){for(let[e,A]of this._localTimelineStyles)this._pendingStyles.set(e,A),this._updateStyle(e,A)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let A in this._currentKeyframe)e.push(A);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((A,i)=>{let o=this._styleSummary.get(i);(!o||A.time>o.time)&&this._updateStyle(i,A.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,A=new Set,i=this._keyframes.size===1&&this.duration===0,o=[];this._keyframes.forEach((r,s)=>{let I=new Map([...this._backFill,...r]);I.forEach((B,c)=>{B===ns?e.add(c):B===ni&&A.add(c)}),i||I.set("offset",s/this.duration),o.push(I)});let n=[...e.values()],g=[...A.values()];if(i){let r=o[0],s=new Map(r);r.set("offset",0),s.set("offset",1),o=[r,s]}return TD(this.element,o,n,g,this.duration,this.startTime,this.easing,!1)}},LD=class extends Bc{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(e,A,i,o,n,g,r=!1){super(e,A,g.delay),this.keyframes=i,this.preStyleProps=o,this.postStyleProps=n,this._stretchStartingKeyframe=r,this.timings={duration:g.duration,delay:g.delay,easing:g.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:A,duration:i,easing:o}=this.timings;if(this._stretchStartingKeyframe&&A){let n=[],g=i+A,r=A/g,s=new Map(e[0]);s.set("offset",0),n.push(s);let I=new Map(e[0]);I.set("offset",oS(r)),n.push(I);let B=e.length-1;for(let c=1;c<=B;c++){let D=new Map(e[c]),h=D.get("offset"),p=A+h*i;D.set("offset",oS(p/g)),n.push(D)}i=g,A=0,o="",e=n}return TD(this.element,e,this.preStyleProps,this.postStyleProps,i,A,o,!0)}};function oS(t,e=3){let A=Math.pow(10,e-1);return Math.round(t*A)/A}function P1(t,e){let A=new Map,i;return t.forEach(o=>{if(o==="*"){i??=e.keys();for(let n of i)A.set(n,ni)}else for(let[n,g]of o)A.set(n,g)}),A}function nS(t,e,A,i,o,n,g,r,s,I,B,c,D){return{type:0,element:t,triggerName:e,isRemovalTransition:o,fromState:A,fromStyles:n,toState:i,toStyles:g,timelines:r,queriedElements:s,preStyleProps:I,postStyleProps:B,totalTime:c,errors:D}}var RD={},Qc=class{_triggerName;ast;_stateStyles;constructor(e,A,i){this._triggerName=e,this.ast=A,this._stateStyles=i}match(e,A,i,o){return Z1(this.ast.matchers,e,A,i,o)}buildStyles(e,A,i){let o=this._stateStyles.get("*");return e!==void 0&&(o=this._stateStyles.get(e?.toString())||o),o?o.buildStyles(A,i):new Map}build(e,A,i,o,n,g,r,s,I,B){let c=[],D=this.ast.options&&this.ast.options.params||RD,h=r&&r.params||RD,p=this.buildStyles(i,h,c),y=s&&s.params||RD,L=this.buildStyles(o,y,c),P=new Set,DA=new Map,UA=new Map,fA=o==="void",ct={params:cS(y,D),delay:this.ast.options?.delay},ue=B?[]:ES(e,A,this.ast.animation,n,g,p,L,ct,I,c),we=0;return ue.forEach(le=>{we=Math.max(le.duration+le.delay,we)}),c.length?nS(A,this._triggerName,i,o,fA,p,L,[],[],DA,UA,we,c):(ue.forEach(le=>{let si=le.element,fo=vt(DA,si,new Set);le.preStyleProps.forEach(xi=>fo.add(xi));let Ui=vt(UA,si,new Set);le.postStyleProps.forEach(xi=>Ui.add(xi)),si!==A&&P.add(si)}),nS(A,this._triggerName,i,o,fA,p,L,ue,[...P.values()],DA,UA,we))}};function Z1(t,e,A,i,o){return t.some(n=>n(e,A,i,o))}function cS(t,e){let A=R({},e);return Object.entries(t).forEach(([i,o])=>{o!=null&&(A[i]=o)}),A}var _D=class{styles;defaultParams;normalizer;constructor(e,A,i){this.styles=e,this.defaultParams=A,this.normalizer=i}buildStyles(e,A){let i=new Map,o=cS(e,this.defaultParams);return this.styles.styles.forEach(n=>{typeof n!="string"&&n.forEach((g,r)=>{g&&(g=Ds(g,o,A));let s=this.normalizer.normalizePropertyName(r,A);g=this.normalizer.normalizeStyleValue(r,s,g,A),i.set(r,g)})}),i}};function q1(t,e,A){return new KD(t,e,A)}var KD=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(e,A,i){this.name=e,this.ast=A,this._normalizer=i,A.states.forEach(o=>{let n=o.options&&o.options.params||{};this.states.set(o.name,new _D(o.style,n,i))}),gS(this.states,"true","1"),gS(this.states,"false","0"),A.transitions.forEach(o=>{this.transitionFactories.push(new Qc(e,o,this.states))}),this.fallbackTransition=V1(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,A,i,o){return this.transitionFactories.find(g=>g.match(e,A,i,o))||null}matchStyles(e,A,i){return this.fallbackTransition.buildStyles(e,A,i)}};function V1(t,e,A){let i=[(g,r)=>!0],o={type:_A.Sequence,steps:[],options:null},n={type:_A.Transition,animation:o,matchers:i,options:null,queryCount:0,depCount:0};return new Qc(t,n,e)}function gS(t,e,A){t.has(e)?t.has(A)||t.set(A,t.get(e)):t.has(A)&&t.set(e,t.get(A))}var W1=new Ua,UD=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(e,A,i){this.bodyNode=e,this._driver=A,this._normalizer=i}register(e,A){let i=[],o=[],n=QS(this._driver,A,i,o);if(i.length)throw Jb(i);this._animations.set(e,n)}_buildPlayer(e,A,i){let o=e.element,n=hD(this._normalizer,e.keyframes,A,i);return this._driver.animate(o,n,e.duration,e.delay,e.easing,[],!0)}create(e,A,i={}){let o=[],n=this._animations.get(e),g,r=new Map;if(n?(g=ES(this._driver,A,n,pD,ec,new Map,new Map,i,W1,o),g.forEach(B=>{let c=vt(r,B.element,new Map);B.postStyleProps.forEach(D=>c.set(D,null))})):(o.push(Hb()),g=[]),o.length)throw Tb(o);r.forEach((B,c)=>{B.forEach((D,h)=>{B.set(h,this._driver.computeStyle(c,h,ni))})});let s=g.map(B=>{let c=r.get(B.element);return this._buildPlayer(B,new Map,c)}),I=qo(s);return this._playersById.set(e,I),I.onDestroy(()=>this.destroy(e)),this.players.push(I),I}destroy(e){let A=this._getPlayer(e);A.destroy(),this._playersById.delete(e);let i=this.players.indexOf(A);i>=0&&this.players.splice(i,1)}_getPlayer(e){let A=this._playersById.get(e);if(!A)throw Ob(e);return A}listen(e,A,i,o){let n=$E(A,"","","");return XE(this._getPlayer(e),i,n,o),()=>{}}command(e,A,i,o){if(i=="register"){this.register(e,o[0]);return}if(i=="create"){let g=o[0]||{};this.create(e,A,g);return}let n=this._getPlayer(e);switch(i){case"play":n.play();break;case"pause":n.pause();break;case"reset":n.reset();break;case"restart":n.restart();break;case"finish":n.finish();break;case"init":n.init();break;case"setPosition":n.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(e);break}}},rS="ng-animate-queued",z1=".ng-animate-queued",kD="ng-animate-disabled",j1=".ng-animate-disabled",X1="ng-star-inserted",$1=".ng-star-inserted",Aq=[],lS={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},eq={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ki="__ng_removed",xa=class{namespaceId;value;options;get params(){return this.options.params}constructor(e,A=""){this.namespaceId=A;let i=e&&e.hasOwnProperty("value"),o=i?e.value:e;if(this.value=iq(o),i){let n=e,{value:g}=n,r=Dc(n,["value"]);this.options=r}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let A=e.params;if(A){let i=this.options.params;Object.keys(A).forEach(o=>{i[o]==null&&(i[o]=A[o])})}}},Ka="void",FD=new xa(Ka),xD=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(e,A,i){this.id=e,this.hostElement=A,this._engine=i,this._hostClassName="ng-tns-"+e,ri(A,this._hostClassName)}listen(e,A,i,o){if(!this._triggers.has(A))throw Pb(i,A);if(i==null||i.length==0)throw Zb(A);if(!oq(i))throw qb(i,A);let n=vt(this._elementListeners,e,[]),g={name:A,phase:i,callback:o};n.push(g);let r=vt(this._engine.statesByElement,e,new Map);return r.has(A)||(ri(e,Ga),ri(e,Ga+"-"+A),r.set(A,FD)),()=>{this._engine.afterFlush(()=>{let s=n.indexOf(g);s>=0&&n.splice(s,1),this._triggers.has(A)||r.delete(A)})}}register(e,A){return this._triggers.has(e)?!1:(this._triggers.set(e,A),!0)}_getTrigger(e){let A=this._triggers.get(e);if(!A)throw Vb(e);return A}trigger(e,A,i,o=!0){let n=this._getTrigger(A),g=new Ya(this.id,A,e),r=this._engine.statesByElement.get(e);r||(ri(e,Ga),ri(e,Ga+"-"+A),this._engine.statesByElement.set(e,r=new Map));let s=r.get(A),I=new xa(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&s&&I.absorbOptions(s.options),r.set(A,I),s||(s=FD),!(I.value===Ka)&&s.value===I.value){if(!rq(s.params,I.params)){let y=[],L=n.matchStyles(s.value,s.params,y),P=n.matchStyles(I.value,I.params,y);y.length?this._engine.reportError(y):this._engine.afterFlush(()=>{Nn(e,L),_i(e,P)})}return}let D=vt(this._engine.playersByElement,e,[]);D.forEach(y=>{y.namespaceId==this.id&&y.triggerName==A&&y.queued&&y.destroy()});let h=n.matchTransition(s.value,I.value,e,I.params),p=!1;if(!h){if(!o)return;h=n.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:A,transition:h,fromState:s,toState:I,player:g,isFallbackTransition:p}),p||(ri(e,rS),g.onStart(()=>{fs(e,rS)})),g.onDone(()=>{let y=this.players.indexOf(g);y>=0&&this.players.splice(y,1);let L=this._engine.playersByElement.get(e);if(L){let P=L.indexOf(g);P>=0&&L.splice(P,1)}}),this.players.push(g),D.push(g),g}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(A=>A.delete(e)),this._elementListeners.forEach((A,i)=>{this._elementListeners.set(i,A.filter(o=>o.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let A=this._engine.playersByElement.get(e);A&&(A.forEach(i=>i.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,A){let i=this._engine.driver.query(e,La,!0);i.forEach(o=>{if(o[Ki])return;let n=this._engine.fetchNamespacesByElement(o);n.size?n.forEach(g=>g.triggerLeaveAnimation(o,A,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(e,A,i,o){let n=this._engine.statesByElement.get(e),g=new Map;if(n){let r=[];if(n.forEach((s,I)=>{if(g.set(I,s.value),this._triggers.has(I)){let B=this.trigger(e,I,Ka,o);B&&r.push(B)}}),r.length)return this._engine.markElementAsRemoved(this.id,e,!0,A,g),i&&qo(r).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let A=this._elementListeners.get(e),i=this._engine.statesByElement.get(e);if(A&&i){let o=new Set;A.forEach(n=>{let g=n.name;if(o.has(g))return;o.add(g);let s=this._triggers.get(g).fallbackTransition,I=i.get(g)||FD,B=new xa(Ka),c=new Ya(this.id,g,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:g,transition:s,fromState:I,toState:B,player:c,isFallbackTransition:!0})})}}removeNode(e,A){let i=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,A),this.triggerLeaveAnimation(e,A,!0))return;let o=!1;if(i.totalAnimations){let n=i.players.length?i.playersByQueriedElement.get(e):[];if(n&&n.length)o=!0;else{let g=e;for(;g=g.parentNode;)if(i.statesByElement.get(g)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(e),o)i.markElementAsRemoved(this.id,e,!1,A);else{let n=e[Ki];(!n||n===lS)&&(i.afterFlush(()=>this.clearElementCache(e)),i.destroyInnerAnimations(e),i._onRemovalComplete(e,A))}}insertNode(e,A){ri(e,this._hostClassName)}drainQueuedTransitions(e){let A=[];return this._queue.forEach(i=>{let o=i.player;if(o.destroyed)return;let n=i.element,g=this._elementListeners.get(n);g&&g.forEach(r=>{if(r.name==i.triggerName){let s=$E(n,i.triggerName,i.fromState.value,i.toState.value);s._data=e,XE(i.player,r.phase,s,r.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):A.push(i)}),this._queue=[],A.sort((i,o)=>{let n=i.transition.ast.depCount,g=o.transition.ast.depCount;return n==0||g==0?n-g:this._engine.driver.containsElement(i.element,o.element)?1:-1})}destroy(e){this.players.forEach(A=>A.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},YD=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(e,A)=>{};_onRemovalComplete(e,A){this.onRemovalComplete(e,A)}constructor(e,A,i){this.bodyNode=e,this.driver=A,this._normalizer=i}get queuedPlayers(){let e=[];return this._namespaceList.forEach(A=>{A.players.forEach(i=>{i.queued&&e.push(i)})}),e}createNamespace(e,A){let i=new xD(e,A,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,A)?this._balanceNamespaceList(i,A):(this.newHostElements.set(A,i),this.collectEnterElement(A)),this._namespaceLookup[e]=i}_balanceNamespaceList(e,A){let i=this._namespaceList,o=this.namespacesByHostElement;if(i.length-1>=0){let g=!1,r=this.driver.getParentElement(A);for(;r;){let s=o.get(r);if(s){let I=i.indexOf(s);i.splice(I+1,0,e),g=!0;break}r=this.driver.getParentElement(r)}g||i.unshift(e)}else i.push(e);return o.set(A,e),e}register(e,A){let i=this._namespaceLookup[e];return i||(i=this.createNamespace(e,A)),i}registerTrigger(e,A,i){let o=this._namespaceLookup[e];o&&o.register(A,i)&&this.totalAnimations++}destroy(e,A){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let i=this._fetchNamespace(e);this.namespacesByHostElement.delete(i.hostElement);let o=this._namespaceList.indexOf(i);o>=0&&this._namespaceList.splice(o,1),i.destroy(A),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let A=new Set,i=this.statesByElement.get(e);if(i){for(let o of i.values())if(o.namespaceId){let n=this._fetchNamespace(o.namespaceId);n&&A.add(n)}}return A}trigger(e,A,i,o){if(rc(A)){let n=this._fetchNamespace(e);if(n)return n.trigger(A,i,o),!0}return!1}insertNode(e,A,i,o){if(!rc(A))return;let n=A[Ki];if(n&&n.setForRemoval){n.setForRemoval=!1,n.setForMove=!0;let g=this.collectedLeaveElements.indexOf(A);g>=0&&this.collectedLeaveElements.splice(g,1)}if(e){let g=this._fetchNamespace(e);g&&g.insertNode(A,i)}o&&this.collectEnterElement(A)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,A){A?this.disabledNodes.has(e)||(this.disabledNodes.add(e),ri(e,kD)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),fs(e,kD))}removeNode(e,A,i){if(rc(A)){let o=e?this._fetchNamespace(e):null;o?o.removeNode(A,i):this.markElementAsRemoved(e,A,!1,i);let n=this.namespacesByHostElement.get(A);n&&n.id!==e&&n.removeNode(A,i)}else this._onRemovalComplete(A,i)}markElementAsRemoved(e,A,i,o,n){this.collectedLeaveElements.push(A),A[Ki]={namespaceId:e,setForRemoval:o,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:n}}listen(e,A,i,o,n){return rc(A)?this._fetchNamespace(e).listen(A,i,o,n):()=>{}}_buildInstruction(e,A,i,o,n){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,i,o,e.fromState.options,e.toState.options,A,n)}destroyInnerAnimations(e){let A=this.driver.query(e,La,!0);A.forEach(i=>this.destroyActiveAnimationsForElement(i)),this.playersByQueriedElement.size!=0&&(A=this.driver.query(e,tc,!0),A.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(e){let A=this.playersByElement.get(e);A&&A.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(e){let A=this.playersByQueriedElement.get(e);A&&A.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return qo(this.players).onDone(()=>e());e()})}processLeaveNode(e){let A=e[Ki];if(A&&A.setForRemoval){if(e[Ki]=lS,A.namespaceId){this.destroyInnerAnimations(e);let i=this._fetchNamespace(A.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,A.setForRemoval)}e.classList?.contains(kD)&&this.markElementAsDisabled(e,!1),this.driver.query(e,j1,!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(e=-1){let A=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,o)=>this._balanceNamespaceList(i,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++){let o=this.collectedEnterElements[i];ri(o,X1)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let i=[];try{A=this._flushAnimations(i,e)}finally{for(let o=0;o<i.length;o++)i[o]()}}else for(let i=0;i<this.collectedLeaveElements.length;i++){let o=this.collectedLeaveElements[i];this.processLeaveNode(o)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(i=>i()),this._flushFns=[],this._whenQuietFns.length){let i=this._whenQuietFns;this._whenQuietFns=[],A.length?qo(A).onDone(()=>{i.forEach(o=>o())}):i.forEach(o=>o())}}reportError(e){throw Wb(e)}_flushAnimations(e,A){let i=new Ua,o=[],n=new Map,g=[],r=new Map,s=new Map,I=new Map,B=new Set;this.disabledNodes.forEach(E=>{B.add(E);let eA=this.driver.query(E,z1,!0);for(let uA=0;uA<eA.length;uA++)B.add(eA[uA])});let c=this.bodyNode,D=Array.from(this.statesByElement.keys()),h=aS(D,this.collectedEnterElements),p=new Map,y=0;h.forEach((E,eA)=>{let uA=pD+y++;p.set(eA,uA),E.forEach(OA=>ri(OA,uA))});let L=[],P=new Set,DA=new Set;for(let E=0;E<this.collectedLeaveElements.length;E++){let eA=this.collectedLeaveElements[E],uA=eA[Ki];uA&&uA.setForRemoval&&(L.push(eA),P.add(eA),uA.hasAnimation?this.driver.query(eA,$1,!0).forEach(OA=>P.add(OA)):DA.add(eA))}let UA=new Map,fA=aS(D,Array.from(P));fA.forEach((E,eA)=>{let uA=ec+y++;UA.set(eA,uA),E.forEach(OA=>ri(OA,uA))}),e.push(()=>{h.forEach((E,eA)=>{let uA=p.get(eA);E.forEach(OA=>fs(OA,uA))}),fA.forEach((E,eA)=>{let uA=UA.get(eA);E.forEach(OA=>fs(OA,uA))}),L.forEach(E=>{this.processLeaveNode(E)})});let ct=[],ue=[];for(let E=this._namespaceList.length-1;E>=0;E--)this._namespaceList[E].drainQueuedTransitions(A).forEach(uA=>{let OA=uA.player,ke=uA.element;if(ct.push(OA),this.collectedEnterElements.length){let Ke=ke[Ki];if(Ke&&Ke.setForMove){if(Ke.previousTriggersValues&&Ke.previousTriggersValues.has(uA.triggerName)){let Yi=Ke.previousTriggersValues.get(uA.triggerName),st=this.statesByElement.get(uA.element);if(st&&st.has(uA.triggerName)){let Gn=st.get(uA.triggerName);Gn.value=Yi,st.set(uA.triggerName,Gn)}}OA.destroy();return}}let ze=!c||!this.driver.containsElement(c,ke),rt=UA.get(ke),Wt=p.get(ke),oe=this._buildInstruction(uA,i,Wt,rt,ze);if(oe.errors&&oe.errors.length){ue.push(oe);return}if(ze){OA.onStart(()=>Nn(ke,oe.fromStyles)),OA.onDestroy(()=>_i(ke,oe.toStyles)),o.push(OA);return}if(uA.isFallbackTransition){OA.onStart(()=>Nn(ke,oe.fromStyles)),OA.onDestroy(()=>_i(ke,oe.toStyles)),o.push(OA);return}let Ha=[];oe.timelines.forEach(Ke=>{Ke.stretchStartingKeyframe=!0,this.disabledNodes.has(Ke.element)||Ha.push(Ke)}),oe.timelines=Ha,i.append(ke,oe.timelines);let Ta={instruction:oe,player:OA,element:ke};g.push(Ta),oe.queriedElements.forEach(Ke=>vt(r,Ke,[]).push(OA)),oe.preStyleProps.forEach((Ke,Yi)=>{if(Ke.size){let st=s.get(Yi);st||s.set(Yi,st=new Set),Ke.forEach((Gn,ws)=>st.add(ws))}}),oe.postStyleProps.forEach((Ke,Yi)=>{let st=I.get(Yi);st||I.set(Yi,st=new Set),Ke.forEach((Gn,ws)=>st.add(ws))})});if(ue.length){let E=[];ue.forEach(eA=>{E.push(zb(eA.triggerName,eA.errors))}),ct.forEach(eA=>eA.destroy()),this.reportError(E)}let we=new Map,le=new Map;g.forEach(E=>{let eA=E.element;i.has(eA)&&(le.set(eA,eA),this._beforeAnimationBuild(E.player.namespaceId,E.instruction,we))}),o.forEach(E=>{let eA=E.element;this._getPreviousPlayers(eA,!1,E.namespaceId,E.triggerName,null).forEach(OA=>{vt(we,eA,[]).push(OA),OA.destroy()})});let si=L.filter(E=>CS(E,s,I)),fo=new Map;IS(fo,this.driver,DA,I,ni).forEach(E=>{CS(E,s,I)&&si.push(E)});let xi=new Map;h.forEach((E,eA)=>{IS(xi,this.driver,new Set(E),s,ns)}),si.forEach(E=>{let eA=fo.get(E),uA=xi.get(E);fo.set(E,new Map([...eA?.entries()??[],...uA?.entries()??[]]))});let Yg=[],KA=[],Jg={};g.forEach(E=>{let{element:eA,player:uA,instruction:OA}=E;if(i.has(eA)){if(B.has(eA)){uA.onDestroy(()=>_i(eA,OA.toStyles)),uA.disabled=!0,uA.overrideTotalTime(OA.totalTime),o.push(uA);return}let ke=Jg;if(le.size>1){let rt=eA,Wt=[];for(;rt=rt.parentNode;){let oe=le.get(rt);if(oe){ke=oe;break}Wt.push(rt)}Wt.forEach(oe=>le.set(oe,ke))}let ze=this._buildAnimation(uA.namespaceId,OA,we,n,xi,fo);if(uA.setRealPlayer(ze),ke===Jg)Yg.push(uA);else{let rt=this.playersByElement.get(ke);rt&&rt.length&&(uA.parentPlayer=qo(rt)),o.push(uA)}}else Nn(eA,OA.fromStyles),uA.onDestroy(()=>_i(eA,OA.toStyles)),KA.push(uA),B.has(eA)&&o.push(uA)}),KA.forEach(E=>{let eA=n.get(E.element);if(eA&&eA.length){let uA=qo(eA);E.setRealPlayer(uA)}}),o.forEach(E=>{E.parentPlayer?E.syncPlayerEvents(E.parentPlayer):E.destroy()});for(let E=0;E<L.length;E++){let eA=L[E],uA=eA[Ki];if(fs(eA,ec),uA&&uA.hasAnimation)continue;let OA=[];if(r.size){let ze=r.get(eA);ze&&ze.length&&OA.push(...ze);let rt=this.driver.query(eA,tc,!0);for(let Wt=0;Wt<rt.length;Wt++){let oe=r.get(rt[Wt]);oe&&oe.length&&OA.push(...oe)}}let ke=OA.filter(ze=>!ze.destroyed);ke.length?nq(this,eA,ke):this.processLeaveNode(eA)}return L.length=0,Yg.forEach(E=>{this.players.push(E),E.onDone(()=>{E.destroy();let eA=this.players.indexOf(E);this.players.splice(eA,1)}),E.play()}),Yg}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,A,i,o,n){let g=[];if(A){let r=this.playersByQueriedElement.get(e);r&&(g=r)}else{let r=this.playersByElement.get(e);if(r){let s=!n||n==Ka;r.forEach(I=>{I.queued||!s&&I.triggerName!=o||g.push(I)})}}return(i||o)&&(g=g.filter(r=>!(i&&i!=r.namespaceId||o&&o!=r.triggerName))),g}_beforeAnimationBuild(e,A,i){let o=A.triggerName,n=A.element,g=A.isRemovalTransition?void 0:e,r=A.isRemovalTransition?void 0:o;for(let s of A.timelines){let I=s.element,B=I!==n,c=vt(i,I,[]);this._getPreviousPlayers(I,B,g,r,A.toState).forEach(h=>{let p=h.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),h.destroy(),c.push(h)})}Nn(n,A.fromStyles)}_buildAnimation(e,A,i,o,n,g){let r=A.triggerName,s=A.element,I=[],B=new Set,c=new Set,D=A.timelines.map(p=>{let y=p.element;B.add(y);let L=y[Ki];if(L&&L.removedBeforeQueried)return new Bo(p.duration,p.delay);let P=y!==s,DA=gq((i.get(y)||Aq).map(we=>we.getRealPlayer())).filter(we=>{let le=we;return le.element?le.element===y:!1}),UA=n.get(y),fA=g.get(y),ct=hD(this._normalizer,p.keyframes,UA,fA),ue=this._buildPlayer(p,ct,DA);if(p.subTimeline&&o&&c.add(y),P){let we=new Ya(e,r,y);we.setRealPlayer(ue),I.push(we)}return ue});I.forEach(p=>{vt(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>tq(this.playersByQueriedElement,p.element,p))}),B.forEach(p=>ri(p,wD));let h=qo(D);return h.onDestroy(()=>{B.forEach(p=>fs(p,wD)),_i(s,A.toStyles)}),c.forEach(p=>{vt(o,p,[]).push(h)}),h}_buildPlayer(e,A,i){return A.length>0?this.driver.animate(e.element,A,e.duration,e.delay,e.easing,i):new Bo(e.duration,e.delay)}},Ya=class{namespaceId;triggerName;element;_player=new Bo;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(e,A,i){this.namespaceId=e,this.triggerName=A,this.element=i}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((A,i)=>{A.forEach(o=>XE(e,i,void 0,o))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let A=this._player;A.triggerCallback&&e.onStart(()=>A.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,A){vt(this._queuedCallbacks,e,[]).push(A)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let A=this._player;A.triggerCallback&&A.triggerCallback(e)}};function tq(t,e,A){let i=t.get(e);if(i){if(i.length){let o=i.indexOf(A);i.splice(o,1)}i.length==0&&t.delete(e)}return i}function iq(t){return t??null}function rc(t){return t&&t.nodeType===1}function oq(t){return t=="start"||t=="done"}function sS(t,e){let A=t.style.display;return t.style.display=e??"none",A}function IS(t,e,A,i,o){let n=[];A.forEach(s=>n.push(sS(s)));let g=[];i.forEach((s,I)=>{let B=new Map;s.forEach(c=>{let D=e.computeStyle(I,c,o);B.set(c,D),(!D||D.length==0)&&(I[Ki]=eq,g.push(I))}),t.set(I,B)});let r=0;return A.forEach(s=>sS(s,n[r++])),g}function aS(t,e){let A=new Map;if(t.forEach(r=>A.set(r,[])),e.length==0)return A;let i=1,o=new Set(e),n=new Map;function g(r){if(!r)return i;let s=n.get(r);if(s)return s;let I=r.parentNode;return A.has(I)?s=I:o.has(I)?s=i:s=g(I),n.set(r,s),s}return e.forEach(r=>{let s=g(r);s!==i&&A.get(s).push(r)}),A}function ri(t,e){t.classList?.add(e)}function fs(t,e){t.classList?.remove(e)}function nq(t,e,A){qo(A).onDone(()=>t.processLeaveNode(e))}function gq(t){let e=[];return dS(t,e),e}function dS(t,e){for(let A=0;A<t.length;A++){let i=t[A];i instanceof kg?dS(i.players,e):e.push(i)}}function rq(t,e){let A=Object.keys(t),i=Object.keys(e);if(A.length!=i.length)return!1;for(let o=0;o<A.length;o++){let n=A[o];if(!e.hasOwnProperty(n)||t[n]!==e[n])return!1}return!0}function CS(t,e,A){let i=A.get(t);if(!i)return!1;let o=e.get(t);return o?i.forEach(n=>o.add(n)):e.set(t,i),A.delete(t),!0}var ps=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(e,A)=>{};constructor(e,A,i){this._driver=A,this._normalizer=i,this._transitionEngine=new YD(e.body,A,i),this._timelineEngine=new UD(e.body,A,i),this._transitionEngine.onRemovalComplete=(o,n)=>this.onRemovalComplete(o,n)}registerTrigger(e,A,i,o,n){let g=e+"-"+o,r=this._triggerCache[g];if(!r){let s=[],I=[],B=QS(this._driver,n,s,I);if(s.length)throw Yb(o,s);r=q1(o,B,this._normalizer),this._triggerCache[g]=r}this._transitionEngine.registerTrigger(A,o,r)}register(e,A){this._transitionEngine.register(e,A)}destroy(e,A){this._transitionEngine.destroy(e,A)}onInsert(e,A,i,o){this._transitionEngine.insertNode(e,A,i,o)}onRemove(e,A,i){this._transitionEngine.removeNode(e,A,i)}disableAnimations(e,A){this._transitionEngine.markElementAsDisabled(e,A)}process(e,A,i,o){if(i.charAt(0)=="@"){let[n,g]=uD(i),r=o;this._timelineEngine.command(n,A,g,r)}else this._transitionEngine.trigger(e,A,i,o)}listen(e,A,i,o,n){if(i.charAt(0)=="@"){let[g,r]=uD(i);return this._timelineEngine.listen(g,A,r,n)}return this._transitionEngine.listen(e,A,i,o,n)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function sq(t,e){let A=null,i=null;return Array.isArray(e)&&e.length?(A=bD(e[0]),e.length>1&&(i=bD(e[e.length-1]))):e instanceof Map&&(A=bD(e)),A||i?new Iq(t,A,i):null}var Iq=(()=>{class t{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(A,i,o){this._element=A,this._startStyles=i,this._endStyles=o;let n=t.initialStylesByElement.get(A);n||t.initialStylesByElement.set(A,n=new Map),this._initialStyles=n}start(){this._state<1&&(this._startStyles&&_i(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(_i(this._element,this._initialStyles),this._endStyles&&(_i(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Nn(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Nn(this._element,this._endStyles),this._endStyles=null),_i(this._element,this._initialStyles),this._state=3)}}return t})();function bD(t){let e=null;return t.forEach((A,i)=>{aq(i)&&(e=e||new Map,e.set(i,A))}),e}function aq(t){return t==="display"||t==="position"}var Ec=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(e,A,i,o){this.element=e,this.keyframes=A,this.options=i,this._specialStyles=o,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let A=()=>this._onFinish();this.domPlayer.addEventListener("finish",A),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",A)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let A=[];return e.forEach(i=>{A.push(Object.fromEntries(i))}),A}_triggerWebAnimation(e,A,i){return e.animate(this._convertKeyframesToObject(A),i)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,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(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,o)=>{o!=="offset"&&e.set(o,this._finished?i:oc(this.element,o))}),this.currentSnapshot=e}triggerCallback(e){let A=e==="start"?this._onStartFns:this._onDoneFns;A.forEach(i=>i()),A.length=0}},cc=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,A){return mD(e,A)}getParentElement(e){return Ac(e)}query(e,A,i){return DD(e,A,i)}computeStyle(e,A,i){return oc(e,A)}animate(e,A,i,o,n,g=[]){let r=o==0?"both":"forwards",s={duration:i,delay:o,fill:r};n&&(s.easing=n);let I=new Map,B=g.filter(h=>h instanceof Ec);AS(i,o)&&B.forEach(h=>{h.currentSnapshot.forEach((p,y)=>I.set(y,p))});let c=Xb(A).map(h=>new Map(h));c=eS(e,c,I);let D=sq(e,c);return new Ec(e,c,s,D)}};var sc="@",hS="@.disabled",lc=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(e,A,i,o){this.namespaceId=e,this.delegate=A,this.engine=i,this._onDestroy=o}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,A){return this.delegate.createElement(e,A)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,A){this.delegate.appendChild(e,A),this.engine.onInsert(this.namespaceId,A,e,!1)}insertBefore(e,A,i,o=!0){this.delegate.insertBefore(e,A,i),this.engine.onInsert(this.namespaceId,A,e,o)}removeChild(e,A,i){this.parentNode(A)&&this.engine.onRemove(this.namespaceId,A,this.delegate)}selectRootElement(e,A){return this.delegate.selectRootElement(e,A)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,A,i,o){this.delegate.setAttribute(e,A,i,o)}removeAttribute(e,A,i){this.delegate.removeAttribute(e,A,i)}addClass(e,A){this.delegate.addClass(e,A)}removeClass(e,A){this.delegate.removeClass(e,A)}setStyle(e,A,i,o){this.delegate.setStyle(e,A,i,o)}removeStyle(e,A,i){this.delegate.removeStyle(e,A,i)}setProperty(e,A,i){A.charAt(0)==sc&&A==hS?this.disableAnimations(e,!!i):this.delegate.setProperty(e,A,i)}setValue(e,A){this.delegate.setValue(e,A)}listen(e,A,i,o){return this.delegate.listen(e,A,i,o)}disableAnimations(e,A){this.engine.disableAnimations(e,A)}},JD=class extends lc{factory;constructor(e,A,i,o,n){super(A,i,o,n),this.factory=e,this.namespaceId=A}setProperty(e,A,i){A.charAt(0)==sc?A.charAt(1)=="."&&A==hS?(i=i===void 0?!0:!!i,this.disableAnimations(e,i)):this.engine.process(this.namespaceId,e,A.slice(1),i):this.delegate.setProperty(e,A,i)}listen(e,A,i,o){if(A.charAt(0)==sc){let n=Cq(e),g=A.slice(1),r="";return g.charAt(0)!=sc&&([g,r]=Bq(g)),this.engine.listen(this.namespaceId,n,g,r,s=>{let I=s._data||-1;this.factory.scheduleListenerCallback(I,i,s)})}return this.delegate.listen(e,A,i,o)}};function Cq(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}function Bq(t){let e=t.indexOf("."),A=t.substring(0,e),i=t.slice(e+1);return[A,i]}var dc=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(e,A,i){this.delegate=e,this.engine=A,this._zone=i,A.onRemovalComplete=(o,n)=>{n?.removeChild(null,o)}}createRenderer(e,A){let i="",o=this.delegate.createRenderer(e,A);if(!e||!A?.data?.animation){let I=this._rendererCache,B=I.get(o);if(!B){let c=()=>I.delete(o);B=new lc(i,o,this.engine,c),I.set(o,B)}return B}let n=A.id,g=A.id+"-"+this._currentId;this._currentId++,this.engine.register(g,e);let r=I=>{Array.isArray(I)?I.forEach(r):this.engine.registerTrigger(n,g,e,I.name,I)};return A.data.animation.forEach(r),new JD(this,g,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,A,i){if(e>=0&&e<this._microtaskId){this._zone.run(()=>A(i));return}let o=this._animationCallbacksBuffer;o.length==0&&queueMicrotask(()=>{this._zone.run(()=>{o.forEach(n=>{let[g,r]=n;g(r)}),this._animationCallbacksBuffer=[]})}),o.push([A,i])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}componentReplaced(e){this.engine.flush(),this.delegate.componentReplaced?.(e)}};var Eq=(()=>{class t extends ps{constructor(A,i,o){super(A,i,o)}ngOnDestroy(){this.flush()}static \u0275fac=function(i){return new(i||t)(O(lA),O(Ug),O(xg))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})();function cq(){return new Ic}function lq(t,e,A){return new dc(t,e,A)}var mS=[{provide:xg,useFactory:cq},{provide:ps,useClass:Eq},{provide:tt,useFactory:lq,deps:[pI,ps,X]}],dq=[{provide:Ug,useClass:HD},{provide:$A,useValue:"NoopAnimations"},...mS],uS=[{provide:Ug,useFactory:()=>new cc},{provide:$A,useFactory:()=>"BrowserAnimations"},...mS],DS=(()=>{class t{static withConfig(A){return{ngModule:t,providers:A.disableAnimations?dq:uS}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=Z({providers:uS,imports:[yI]})}return t})();var hq=new k("mat-chips-default-options",{providedIn:"root",factory:()=>({separatorKeyCodes:[13]})});var fS=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=Z({providers:[Xr,{provide:hq,useValue:{separatorKeyCodes:[13]}}],imports:[MA,yg,MA]})}return t})();var hc=class t{static \u0275fac=function(A){return new(A||t)};static \u0275mod=V({type:t});static \u0275inj=Z({imports:[Uo,uQ,JF,FF,Oo,YE,Yo,_k,Yo,xF,HF,ZF,Ab,kE,qk,uF,vF,Db.forRoot(),fb,SM,fS]})};var Ja=class t{static \u0275fac=function(A){return new(A||t)};static \u0275mod=V({type:t,bootstrap:[us]});static \u0275inj=Z({providers:[Ni,yn,ho,Es,cs,vn,co,Qs,hs],imports:[hc,yI,uQ,Zh,jE,YE,Oo,Yo,DS,Yo]})};fetch("/assets/config/runtime-config.json").then(t=>t.json()).then(t=>{window.runtimeConfig=t,XB().bootstrapModule(Ja).catch(e=>console.error(e))});XB().bootstrapModule(Ja).catch(t=>console.error(t));
