/**
 * 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 Wv=Object.defineProperty,zv=Object.defineProperties;var jv=Object.getOwnPropertyDescriptors;var AC=Object.getOwnPropertySymbols;var af=Object.prototype.hasOwnProperty,If=Object.prototype.propertyIsEnumerable;var sf=(t,e,A)=>e in t?Wv(t,e,{enumerable:!0,configurable:!0,writable:!0,value:A}):t[e]=A,b=(t,e)=>{for(var A in e||={})af.call(e,A)&&sf(t,A,e[A]);if(AC)for(var A of AC(e))If.call(e,A)&&sf(t,A,e[A]);return t},uA=(t,e)=>zv(t,jv(e));var _c=(t,e)=>{var A={};for(var i in t)af.call(t,i)&&e.indexOf(i)<0&&(A[i]=t[i]);if(t!=null&&AC)for(var i of AC(t))e.indexOf(i)<0&&If.call(t,i)&&(A[i]=t[i]);return A};var $e=(t,e,A)=>new Promise((i,o)=>{var n=s=>{try{r(A.next(s))}catch(a){o(a)}},g=s=>{try{r(A.throw(s))}catch(a){o(a)}},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 Te=null,eC=!1,Jc=1,Mt=Symbol("SIGNAL");function WA(t){let e=Te;return Te=t,e}function Hc(){return Te}var Vg={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 Ss(t){if(eC)throw new Error("");if(Te===null)return;Te.consumerOnSignalRead(t);let e=Te.nextProducerIndex++;if(gC(Te),e<Te.producerNode.length&&Te.producerNode[e]!==t&&vs(Te)){let A=Te.producerNode[e];nC(A,Te.producerIndexOfThis[e])}Te.producerNode[e]!==t&&(Te.producerNode[e]=t,Te.producerIndexOfThis[e]=vs(Te)?Bf(t,Te,e):0),Te.producerLastReadVersion[e]=t.version}function Cf(){Jc++}function Tc(t){if(!(vs(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===Jc)){if(!t.producerMustRecompute(t)&&!oC(t)){xc(t);return}t.producerRecomputeValue(t),xc(t)}}function Oc(t){if(t.liveConsumerNode===void 0)return;let e=eC;eC=!0;try{for(let A of t.liveConsumerNode)A.dirty||Xv(A)}finally{eC=e}}function Pc(){return Te?.consumerAllowSignalWrites!==!1}function Xv(t){t.dirty=!0,Oc(t),t.consumerMarkedDirty?.(t)}function xc(t){t.dirty=!1,t.lastCleanEpoch=Jc}function Ns(t){return t&&(t.nextProducerIndex=0),WA(t)}function iC(t,e){if(WA(e),!(!t||t.producerNode===void 0||t.producerIndexOfThis===void 0||t.producerLastReadVersion===void 0)){if(vs(t))for(let A=t.nextProducerIndex;A<t.producerNode.length;A++)nC(t.producerNode[A],t.producerIndexOfThis[A]);for(;t.producerNode.length>t.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function oC(t){gC(t);for(let e=0;e<t.producerNode.length;e++){let A=t.producerNode[e],i=t.producerLastReadVersion[e];if(i!==A.version||(Tc(A),i!==A.version))return!0}return!1}function Gs(t){if(gC(t),vs(t))for(let e=0;e<t.producerNode.length;e++)nC(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 Bf(t,e,A){if(Qf(t),t.liveConsumerNode.length===0&&Ef(t))for(let i=0;i<t.producerNode.length;i++)t.producerIndexOfThis[i]=Bf(t.producerNode[i],t,i);return t.liveConsumerIndexOfThis.push(A),t.liveConsumerNode.push(e)-1}function nC(t,e){if(Qf(t),t.liveConsumerNode.length===1&&Ef(t))for(let i=0;i<t.producerNode.length;i++)nC(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];gC(o),o.producerIndexOfThis[i]=e}}function vs(t){return t.consumerIsAlwaysLive||(t?.liveConsumerNode?.length??0)>0}function gC(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function Qf(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function Ef(t){return t.producerNode!==void 0}function rC(t,e){let A=Object.create($v);A.computation=t,e!==void 0&&(A.equal=e);let i=()=>{if(Tc(A),Ss(A),A.value===tC)throw A.error;return A.value};return i[Mt]=A,i}var Kc=Symbol("UNSET"),Uc=Symbol("COMPUTING"),tC=Symbol("ERRORED"),$v=uA(b({},Vg),{value:Kc,dirty:!0,error:null,equal:Yc,kind:"computed",producerMustRecompute(t){return t.value===Kc||t.value===Uc},producerRecomputeValue(t){if(t.value===Uc)throw new Error("Detected cycle in computations.");let e=t.value;t.value=Uc;let A=Ns(t),i,o=!1;try{i=t.computation(),WA(null),o=e!==Kc&&e!==tC&&i!==tC&&t.equal(e,i)}catch(n){i=tC,t.error=n}finally{iC(t,A)}if(o){t.value=e;return}t.value=i,t.version++}});function AS(){throw new Error}var cf=AS;function lf(t){cf(t)}function Zc(t){cf=t}var eS=null;function qc(t,e){let A=Object.create(sC);A.value=t,e!==void 0&&(A.equal=e);let i=()=>(Ss(A),A.value);return i[Mt]=A,i}function Ls(t,e){Pc()||lf(t),t.equal(t.value,e)||(t.value=e,tS(t))}function Vc(t,e){Pc()||lf(t),Ls(t,e(t.value))}var sC=uA(b({},Vg),{equal:Yc,value:void 0,kind:"signal"});function tS(t){t.version++,Cf(),Oc(t),eS?.()}function Wc(t){let e=WA(null);try{return t()}finally{WA(e)}}var zc;function _s(){return zc}function Fo(t){let e=zc;return zc=t,e}var aC=Symbol("NotFound");function MA(t){return typeof t=="function"}function Wg(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 IC=Wg(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 Pn(t,e){if(t){let A=t.indexOf(e);0<=A&&t.splice(A,1)}}var GA=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(MA(i))try{i()}catch(n){e=n instanceof IC?n.errors:[n]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let n of o)try{df(n)}catch(g){e=e??[],g instanceof IC?e=[...e,...g.errors]:e.push(g)}}if(e)throw new IC(e)}}add(e){var A;if(e&&e!==this)if(this.closed)df(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)&&Pn(A,e)}remove(e){let{_finalizers:A}=this;A&&Pn(A,e),e instanceof t&&e._removeParent(this)}};GA.EMPTY=(()=>{let t=new GA;return t.closed=!0,t})();var jc=GA.EMPTY;function CC(t){return t instanceof GA||t&&"closed"in t&&MA(t.remove)&&MA(t.add)&&MA(t.unsubscribe)}function df(t){MA(t)?t():t.unsubscribe()}var Di={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var zg={setTimeout(t,e,...A){let{delegate:i}=zg;return i?.setTimeout?i.setTimeout(t,e,...A):setTimeout(t,e,...A)},clearTimeout(t){let{delegate:e}=zg;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function BC(t){zg.setTimeout(()=>{let{onUnhandledError:e}=Di;if(e)e(t);else throw t})}function Ks(){}var hf=Xc("C",void 0,void 0);function uf(t){return Xc("E",void 0,t)}function mf(t){return Xc("N",t,void 0)}function Xc(t,e,A){return{kind:t,value:e,error:A}}var Zn=null;function jg(t){if(Di.useDeprecatedSynchronousErrorHandling){let e=!Zn;if(e&&(Zn={errorThrown:!1,error:null}),t(),e){let{errorThrown:A,error:i}=Zn;if(Zn=null,A)throw i}}else t()}function Df(t){Di.useDeprecatedSynchronousErrorHandling&&Zn&&(Zn.errorThrown=!0,Zn.error=t)}var vo=class extends GA{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,CC(e)&&e.add(this)):this.destination=sS}static create(e,A,i){return new So(e,A,i)}next(e){this.isStopped?Al(mf(e),this):this._next(e)}error(e){this.isStopped?Al(uf(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?Al(hf,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()}}},gS=Function.prototype.bind;function $c(t,e){return gS.call(t,e)}var el=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:A}=this;if(A.next)try{A.next(e)}catch(i){QC(i)}}error(e){let{partialObserver:A}=this;if(A.error)try{A.error(e)}catch(i){QC(i)}else QC(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(A){QC(A)}}},So=class extends vo{constructor(e,A,i){super();let o;if(MA(e)||!e)o={next:e??void 0,error:A??void 0,complete:i??void 0};else{let n;this&&Di.useDeprecatedNextContext?(n=Object.create(e),n.unsubscribe=()=>this.unsubscribe(),o={next:e.next&&$c(e.next,n),error:e.error&&$c(e.error,n),complete:e.complete&&$c(e.complete,n)}):o=e}this.destination=new el(o)}};function QC(t){Di.useDeprecatedSynchronousErrorHandling?Df(t):BC(t)}function rS(t){throw t}function Al(t,e){let{onStoppedNotification:A}=Di;A&&zg.setTimeout(()=>A(t,e))}var sS={closed:!0,next:Ks,error:rS,complete:Ks};var Xg=typeof Symbol=="function"&&Symbol.observable||"@@observable";function ut(t){return t}function tl(...t){return il(t)}function il(t){return t.length===0?ut:t.length===1?t[0]:function(A){return t.reduce((i,o)=>o(i),A)}}var BA=(()=>{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=IS(A)?A:new So(A,i,o);return jg(()=>{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=ff(i),new i((o,n)=>{let g=new So({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)}[Xg](){return this}pipe(...A){return il(A)(this)}toPromise(A){return A=ff(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 ff(t){var e;return(e=t??Di.Promise)!==null&&e!==void 0?e:Promise}function aS(t){return t&&MA(t.next)&&MA(t.error)&&MA(t.complete)}function IS(t){return t&&t instanceof vo||aS(t)&&CC(t)}function ol(t){return MA(t?.lift)}function LA(t){return e=>{if(ol(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 nl(t,e,A,i,o)}var nl=class extends vo{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 $g(){return LA((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 gn=class extends BA{constructor(e,A){super(),this.source=e,this.subjectFactory=A,this._subject=null,this._refCount=0,this._connection=null,ol(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 GA;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=GA.EMPTY)}return e}refCount(){return $g()(this)}};var pf=Wg(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var U=(()=>{class t extends BA{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(A){let i=new Ar(this,this);return i.operator=A,i}_throwIfClosed(){if(this.closed)throw new pf}next(A){jg(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let i of this.currentObservers)i.next(A)}})}error(A){jg(()=>{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(){jg(()=>{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?jc:(this.currentObservers=null,n.push(A),new GA(()=>{this.currentObservers=null,Pn(n,A)}))}_checkFinalizedStatuses(A){let{hasError:i,thrownError:o,isStopped:n}=this;i?A.error(o):n&&A.complete()}asObservable(){let A=new BA;return A.source=this,A}}return t.create=(e,A)=>new Ar(e,A),t})(),Ar=class extends U{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:jc}};var $A=class extends U{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 Us={now(){return(Us.delegate||Date).now()},delegate:void 0};var fi=class extends U{constructor(e=1/0,A=1/0,i=Us){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 EC=class extends GA{constructor(e,A){super()}schedule(e,A=0){return this}};var xs={setInterval(t,e,...A){let{delegate:i}=xs;return i?.setInterval?i.setInterval(t,e,...A):setInterval(t,e,...A)},clearInterval(t){let{delegate:e}=xs;return(e?.clearInterval||clearInterval)(t)},delegate:void 0};var cC=class extends EC{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 xs.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&&xs.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,Pn(i,this),e!=null&&(this.id=this.recycleAsyncId(A,e,null)),this.delay=null,super.unsubscribe()}}};var er=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)}};er.now=Us.now;var lC=class extends er{constructor(e,A=er.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 Ys=new lC(cC),wf=Ys;var xe=new BA(t=>t.complete());function dC(t){return t&&MA(t.schedule)}function gl(t){return t[t.length-1]}function hC(t){return MA(gl(t))?t.pop():void 0}function Pi(t){return dC(gl(t))?t.pop():void 0}function yf(t,e){return typeof gl(t)=="number"?t.pop():e}function Rf(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(Q){try{a(i.next(Q))}catch(c){g(c)}}function s(Q){try{a(i.throw(Q))}catch(c){g(c)}}function a(Q){Q.done?n(Q.value):o(Q.value).then(r,s)}a((i=i.apply(t,e||[])).next())})}function Mf(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 qn(t){return this instanceof qn?(this.v=t,this):new qn(t)}function kf(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(m){return function(p){return Promise.resolve(p).then(m,c)}}function r(m,p){i[m]&&(o[m]=function(M){return new Promise(function(K,W){n.push([m,M,K,W])>1||s(m,M)})},p&&(o[m]=p(o[m])))}function s(m,p){try{a(i[m](p))}catch(M){f(n[0][3],M)}}function a(m){m.value instanceof qn?Promise.resolve(m.value.v).then(Q,c):f(n[0][2],m)}function Q(m){s("next",m)}function c(m){s("throw",m)}function f(m,p){m(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 Mf=="function"?Mf(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(a){n({value:a,done:r})},g)}}var tr=t=>t&&typeof t.length=="number"&&typeof t!="function";function uC(t){return MA(t?.then)}function mC(t){return MA(t[Xg])}function DC(t){return Symbol.asyncIterator&&MA(t?.[Symbol.asyncIterator])}function fC(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 CS(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var pC=CS();function wC(t){return MA(t?.[pC])}function yC(t){return kf(this,arguments,function*(){let A=t.getReader();try{for(;;){let{value:i,done:o}=yield qn(A.read());if(o)return yield qn(void 0);yield yield qn(i)}}finally{A.releaseLock()}})}function MC(t){return MA(t?.getReader)}function ne(t){if(t instanceof BA)return t;if(t!=null){if(mC(t))return BS(t);if(tr(t))return QS(t);if(uC(t))return ES(t);if(DC(t))return Ff(t);if(wC(t))return cS(t);if(MC(t))return lS(t)}throw fC(t)}function BS(t){return new BA(e=>{let A=t[Xg]();if(MA(A.subscribe))return A.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function QS(t){return new BA(e=>{for(let A=0;A<t.length&&!e.closed;A++)e.next(t[A]);e.complete()})}function ES(t){return new BA(e=>{t.then(A=>{e.closed||(e.next(A),e.complete())},A=>e.error(A)).then(null,BC)})}function cS(t){return new BA(e=>{for(let A of t)if(e.next(A),e.closed)return;e.complete()})}function Ff(t){return new BA(e=>{dS(t,e).catch(A=>e.error(A))})}function lS(t){return Ff(yC(t))}function dS(t,e){var A,i,o,n;return Rf(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 Rt(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 RC(t,e=0){return LA((A,i)=>{A.subscribe(SA(i,o=>Rt(i,t,()=>i.next(o),e),()=>Rt(i,t,()=>i.complete(),e),o=>Rt(i,t,()=>i.error(o),e)))})}function kC(t,e=0){return LA((A,i)=>{i.add(t.schedule(()=>A.subscribe(i),e))})}function vf(t,e){return ne(t).pipe(kC(e),RC(e))}function Sf(t,e){return ne(t).pipe(kC(e),RC(e))}function Nf(t,e){return new BA(A=>{let i=0;return e.schedule(function(){i===t.length?A.complete():(A.next(t[i++]),A.closed||this.schedule())})})}function Gf(t,e){return new BA(A=>{let i;return Rt(A,e,()=>{i=t[pC](),Rt(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)}),()=>MA(i?.return)&&i.return()})}function bC(t,e){if(!t)throw new Error("Iterable cannot be null");return new BA(A=>{Rt(A,e,()=>{let i=t[Symbol.asyncIterator]();Rt(A,e,()=>{i.next().then(o=>{o.done?A.complete():A.next(o.value)})},0,!0)})})}function Lf(t,e){return bC(yC(t),e)}function _f(t,e){if(t!=null){if(mC(t))return vf(t,e);if(tr(t))return Nf(t,e);if(uC(t))return Sf(t,e);if(DC(t))return bC(t,e);if(wC(t))return Gf(t,e);if(MC(t))return Lf(t,e)}throw fC(t)}function se(t,e){return e?_f(t,e):ne(t)}function iA(...t){let e=Pi(t);return se(t,e)}function rn(t,e){let A=MA(t)?t:()=>t,i=o=>o.error(A());return new BA(e?o=>e.schedule(i,0,o):i)}function sn(t){return!!t&&(t instanceof BA||MA(t.lift)&&MA(t.subscribe))}var No=Wg(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function Kf(t){return t instanceof Date&&!isNaN(t)}function sA(t,e){return LA((A,i)=>{let o=0;A.subscribe(SA(i,n=>{i.next(t.call(e,n,o++))}))})}var{isArray:hS}=Array;function uS(t,e){return hS(e)?t(...e):t(e)}function ir(t){return sA(e=>uS(t,e))}var{isArray:mS}=Array,{getPrototypeOf:DS,prototype:fS,keys:pS}=Object;function FC(t){if(t.length===1){let e=t[0];if(mS(e))return{args:e,keys:null};if(wS(e)){let A=pS(e);return{args:A.map(i=>e[i]),keys:A}}}return{args:t,keys:null}}function wS(t){return t&&typeof t=="object"&&DS(t)===fS}function vC(t,e){return t.reduce((A,i,o)=>(A[i]=e[o],A),{})}function mt(...t){let e=Pi(t),A=hC(t),{args:i,keys:o}=FC(t);if(i.length===0)return se([],e);let n=new BA(yS(i,e,o?g=>vC(o,g):ut));return A?n.pipe(ir(A)):n}function yS(t,e,A=ut){return i=>{Uf(e,()=>{let{length:o}=t,n=new Array(o),g=o,r=o;for(let s=0;s<o;s++)Uf(e,()=>{let a=se(t[s],e),Q=!1;a.subscribe(SA(i,c=>{n[s]=c,Q||(Q=!0,r--),r||i.next(A(n.slice()))},()=>{--g||i.complete()}))},i)},i)}}function Uf(t,e,A){t?Rt(A,t,e):e()}function xf(t,e,A,i,o,n,g,r){let s=[],a=0,Q=0,c=!1,f=()=>{c&&!s.length&&!a&&e.complete()},m=M=>a<i?p(M):s.push(M),p=M=>{n&&e.next(M),a++;let K=!1;ne(A(M,Q++)).subscribe(SA(e,W=>{o?.(W),n?m(W):e.next(W)},()=>{K=!0},void 0,()=>{if(K)try{for(a--;s.length&&a<i;){let W=s.shift();g?Rt(e,g,()=>p(W)):p(W)}f()}catch(W){e.error(W)}}))};return t.subscribe(SA(e,m,()=>{c=!0,f()})),()=>{r?.()}}function ve(t,e,A=1/0){return MA(e)?ve((i,o)=>sA((n,g)=>e(i,n,o,g))(ne(t(i,o))),A):(typeof e=="number"&&(A=e),LA((i,o)=>xf(i,o,t,A)))}function an(t=1/0){return ve(ut,t)}function Yf(){return an(1)}function In(...t){return Yf()(se(t,Pi(t)))}function Zi(t){return new BA(e=>{ne(t()).subscribe(e)})}function Js(...t){let e=hC(t),{args:A,keys:i}=FC(t),o=new BA(n=>{let{length:g}=A;if(!g){n.complete();return}let r=new Array(g),s=g,a=g;for(let Q=0;Q<g;Q++){let c=!1;ne(A[Q]).subscribe(SA(n,f=>{c||(c=!0,a--),r[Q]=f},()=>s--,void 0,()=>{(!s||!c)&&(a||n.next(i?vC(i,r):r),n.complete())}))}});return e?o.pipe(ir(e)):o}var MS=["addListener","removeListener"],RS=["addEventListener","removeEventListener"],kS=["on","off"];function Hs(t,e,A,i){if(MA(A)&&(i=A,A=void 0),i)return Hs(t,e,A).pipe(ir(i));let[o,n]=vS(t)?RS.map(g=>r=>t[g](e,r,A)):bS(t)?MS.map(Jf(t,e)):FS(t)?kS.map(Jf(t,e)):[];if(!o&&tr(t))return ve(g=>Hs(g,e,A))(ne(t));if(!o)throw new TypeError("Invalid event target");return new BA(g=>{let r=(...s)=>g.next(1<s.length?s:s[0]);return o(r),()=>n(r)})}function Jf(t,e){return A=>i=>t[A](e,i)}function bS(t){return MA(t.addListener)&&MA(t.removeListener)}function FS(t){return MA(t.on)&&MA(t.off)}function vS(t){return MA(t.addEventListener)&&MA(t.removeEventListener)}function Vn(t=0,e,A=wf){let i=-1;return e!=null&&(dC(e)?A=e:i=e),new BA(o=>{let n=Kf(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 ye(...t){let e=Pi(t),A=yf(t,1/0),i=t;return i.length?i.length===1?ne(i[0]):an(A)(se(i,e)):xe}function kA(t,e){return LA((A,i)=>{let o=0;A.subscribe(SA(i,n=>t.call(e,n,o++)&&i.next(n)))})}function Hf(t){return LA((e,A)=>{let i=!1,o=null,n=null,g=!1,r=()=>{if(n?.unsubscribe(),n=null,i){i=!1;let a=o;o=null,A.next(a)}g&&A.complete()},s=()=>{n=null,g&&A.complete()};e.subscribe(SA(A,a=>{i=!0,o=a,n||ne(t(a)).subscribe(n=SA(A,r,s))},()=>{g=!0,(!i||!n||n.closed)&&A.complete()}))})}function or(t,e=Ys){return Hf(()=>Vn(t,e))}function Oe(t){return LA((e,A)=>{let i=null,o=!1,n;i=e.subscribe(SA(A,void 0,void 0,g=>{n=ne(t(g,Oe(t)(e))),i?(i.unsubscribe(),i=null,n.subscribe(A)):o=!0})),o&&(i.unsubscribe(),i=null,n.subscribe(A))})}function Tf(t,e,A,i,o){return(n,g)=>{let r=A,s=e,a=0;n.subscribe(SA(g,Q=>{let c=a++;s=r?t(s,Q,c):(r=!0,Q),i&&g.next(s)},o&&(()=>{r&&g.next(s),g.complete()})))}}function qi(t,e){return MA(e)?ve(t,e,1):ve(t,1)}function pi(t,e=Ys){return LA((A,i)=>{let o=null,n=null,g=null,r=()=>{if(o){o.unsubscribe(),o=null;let a=n;n=null,i.next(a)}};function s(){let a=g+t,Q=e.now();if(Q<a){o=this.schedule(void 0,a-Q),i.add(o);return}r()}A.subscribe(SA(i,a=>{n=a,g=e.now(),o||(o=e.schedule(s,t),i.add(o))},()=>{r(),i.complete()},void 0,()=>{n=o=null}))})}function Cn(t){return LA((e,A)=>{let i=!1;e.subscribe(SA(A,o=>{i=!0,A.next(o)},()=>{i||A.next(t),A.complete()}))})}function ue(t){return t<=0?()=>xe:LA((e,A)=>{let i=0;e.subscribe(SA(A,o=>{++i<=t&&(A.next(o),t<=i&&A.complete())}))})}function nr(t){return sA(()=>t)}function wi(t,e=ut){return t=t??SS,LA((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 SS(t,e){return t===e}function SC(t=NS){return LA((e,A)=>{let i=!1;e.subscribe(SA(A,o=>{i=!0,A.next(o)},()=>i?A.complete():A.error(t())))})}function NS(){return new No}function Vi(t){return LA((e,A)=>{try{e.subscribe(A)}finally{A.add(t)}})}function Wi(t,e){let A=arguments.length>=2;return i=>i.pipe(t?kA((o,n)=>t(o,n,i)):ut,ue(1),A?Cn(e):SC(()=>new No))}function gr(t){return t<=0?()=>xe:LA((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 rl(t,e){let A=arguments.length>=2;return i=>i.pipe(t?kA((o,n)=>t(o,n,i)):ut,gr(1),A?Cn(e):SC(()=>new No))}function NC(){return LA((t,e)=>{let A,i=!1;t.subscribe(SA(e,o=>{let n=A;A=o,i&&e.next([n,o]),i=!0}))})}function sl(t,e){return LA(Tf(t,e,arguments.length>=2,!0))}function Ts(t={}){let{connector:e=()=>new U,resetOnError:A=!0,resetOnComplete:i=!0,resetOnRefCountZero:o=!0}=t;return n=>{let g,r,s,a=0,Q=!1,c=!1,f=()=>{r?.unsubscribe(),r=void 0},m=()=>{f(),g=s=void 0,Q=c=!1},p=()=>{let M=g;m(),M?.unsubscribe()};return LA((M,K)=>{a++,!c&&!Q&&f();let W=s=s??e();K.add(()=>{a--,a===0&&!c&&!Q&&(r=al(p,o))}),W.subscribe(K),!g&&a>0&&(g=new So({next:DA=>W.next(DA),error:DA=>{c=!0,f(),r=al(m,A,DA),W.error(DA)},complete:()=>{Q=!0,f(),r=al(m,i),W.complete()}}),ne(M).subscribe(g))})(n)}}function al(t,e,...A){if(e===!0){t();return}if(e===!1)return;let i=new So({next:()=>{i.unsubscribe(),t()}});return ne(e(...A)).subscribe(i)}function Go(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,Ts({connector:()=>new fi(i,e,A),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}function Wn(t){return kA((e,A)=>t<=A)}function Me(...t){let e=Pi(t);return LA((A,i)=>{(e?In(t,A,e):In(t,A)).subscribe(i)})}function Ie(t,e){return LA((A,i)=>{let o=null,n=0,g=!1,r=()=>g&&!o&&i.complete();A.subscribe(SA(i,s=>{o?.unsubscribe();let a=0,Q=n++;ne(t(s,Q)).subscribe(o=SA(i,c=>i.next(e?e(s,c,Q,a++):c),()=>{o=null,r()}))},()=>{g=!0,r()}))})}function pA(t){return LA((e,A)=>{ne(t).subscribe(SA(A,()=>A.complete(),Ks)),!A.closed&&e.subscribe(A)})}function Il(t,e=!1){return LA((A,i)=>{let o=0;A.subscribe(SA(i,n=>{let g=t(n,o++);(g||e)&&i.next(n),!g&&i.complete()}))})}function Ce(t,e,A){let i=MA(t)||e||A?{next:t,error:e,complete:A}:t;return i?LA((o,n)=>{var g;(g=i.subscribe)===null||g===void 0||g.call(i);let r=!0;o.subscribe(SA(n,s=>{var a;(a=i.next)===null||a===void 0||a.call(i,s),n.next(s)},()=>{var s;r=!1,(s=i.complete)===null||s===void 0||s.call(i),n.complete()},s=>{var a;r=!1,(a=i.error)===null||a===void 0||a.call(i,s),n.error(s)},()=>{var s,a;r&&((s=i.unsubscribe)===null||s===void 0||s.call(i)),(a=i.finalize)===null||a===void 0||a.call(i)}))}):ut}var _p="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",H=class extends Error{code;constructor(e,A){super(Gd(e,A)),this.code=e}};function GS(t){return`NG0${Math.abs(t)}`}function Gd(t,e){return`${GS(t)}${e?": "+e:""}`}var Kp=Symbol("InputSignalNode#UNSET"),LS=uA(b({},sC),{transformFn:void 0,applyValueToInputSignal(t,e){Ls(t,e)}});function Up(t,e){let A=Object.create(LS);A.value=t,A.transformFn=e?.transform;function i(){if(Ss(A),A.value===Kp){let o=null;throw new H(-950,o)}return A.value}return i[Mt]=A,i}function ta(t){return{toString:t}.toString()}var GC="__parameters__";function _S(t){return function(...A){if(t){let i=t(...A);for(let o in i)this[o]=i[o]}}}function xp(t,e,A){return ta(()=>{let i=_S(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,a,Q){let c=s.hasOwnProperty(GC)?s[GC]:Object.defineProperty(s,GC,{value:[]})[GC];for(;c.length<=Q;)c.push(null);return(c[Q]=c[Q]||[]).push(g),s}}return o.prototype.ngMetadataName=t,o.annotationCls=o,o})}var Ft=globalThis;function Be(t){for(let e in t)if(t[e]===Be)return e;throw Error("Could not find renamed property on target object.")}function KS(t,e){for(let A in e)e.hasOwnProperty(A)&&!t.hasOwnProperty(A)&&(t[A]=e[A])}function bt(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map(bt).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 yl(t,e){return t?e?`${t} ${e}`:t:e||""}var US=Be({__forward_ref__:Be});function ot(t){return t.__forward_ref__=ot,t.toString=function(){return bt(this())},t}function it(t){return Yp(t)?t():t}function Yp(t){return typeof t=="function"&&t.hasOwnProperty(US)&&t.__forward_ref__===ot}function v(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function j(t){return{providers:t.providers||[],imports:t.imports||[]}}function DB(t){return Of(t,Hp)||Of(t,Tp)}function Jp(t){return DB(t)!==null}function Of(t,e){return t.hasOwnProperty(e)?t[e]:null}function xS(t){let e=t&&(t[Hp]||t[Tp]);return e||null}function Pf(t){return t&&(t.hasOwnProperty(Zf)||t.hasOwnProperty(YS))?t[Zf]:null}var Hp=Be({\u0275prov:Be}),Zf=Be({\u0275inj:Be}),Tp=Be({ngInjectableDef:Be}),YS=Be({ngInjectorDef:Be}),F=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 Op(t){return t&&!!t.\u0275providers}var JS=Be({\u0275cmp:Be}),HS=Be({\u0275dir:Be}),TS=Be({\u0275pipe:Be}),OS=Be({\u0275mod:Be}),PC=Be({\u0275fac:Be}),qs=Be({__NG_ELEMENT_ID__:Be}),qf=Be({__NG_ENV_ID__:Be});function ia(t){return typeof t=="string"?t:t==null?"":String(t)}function PS(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():ia(t)}function Pp(t,e){throw new H(-200,t)}function Ld(t,e){throw new H(-201,!1)}var zA=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}(zA||{}),Ml;function Zp(){return Ml}function kt(t){let e=Ml;return Ml=t,e}function qp(t,e,A){let i=DB(t);if(i&&i.providedIn=="root")return i.value===void 0?i.value=i.factory():i.value;if(A&zA.Optional)return null;if(e!==void 0)return e;Ld(t,"Injector")}var ZS={},zn=ZS,Rl="__NG_DI_FLAG__",ZC=class{injector;constructor(e){this.injector=e}retrieve(e,A){let i=A;return this.injector.get(e,i.optional?aC:zn,i)}},qC="ngTempTokenPath",qS="ngTokenPath",VS=/\n/gm,WS="\u0275",Vf="__source";function zS(t,e=zA.Default){if(_s()===void 0)throw new H(-203,!1);if(_s()===null)return qp(t,void 0,e);{let A=_s(),i;return A instanceof ZC?i=A.injector:i=A,i.get(t,e&zA.Optional?null:void 0,e)}}function Z(t,e=zA.Default){return(Zp()||zS)(it(t),e)}function B(t,e=zA.Default){return Z(t,fB(e))}function fB(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function kl(t){let e=[];for(let A=0;A<t.length;A++){let i=it(t[A]);if(Array.isArray(i)){if(i.length===0)throw new H(900,!1);let o,n=zA.Default;for(let g=0;g<i.length;g++){let r=i[g],s=jS(r);typeof s=="number"?s===-1?o=r.token:n|=s:o=r}e.push(Z(o,n))}else e.push(Z(i))}return e}function Vp(t,e){return t[Rl]=e,t.prototype[Rl]=e,t}function jS(t){return t[Rl]}function XS(t,e,A,i){let o=t[qC];throw e[Vf]&&o.unshift(e[Vf]),t.message=$S(`
`+t.message,o,A,i),t[qS]=o,t[qC]=null,t}function $S(t,e,A,i=null){t=t&&t.charAt(0)===`
`&&t.charAt(1)==WS?t.slice(2):t;let o=bt(e);if(Array.isArray(e))o=e.map(bt).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):bt(r)))}o=`{${n.join(", ")}}`}return`${A}${i?"("+i+")":""}[${o}]: ${t.replace(VS,`
  `)}`}var Ig=Vp(xp("Optional"),8);var oa=Vp(xp("SkipSelf"),4);function Xn(t,e){let A=t.hasOwnProperty(PC);return A?t[PC]:null}function AN(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 eN(t){return t.flat(Number.POSITIVE_INFINITY)}function _d(t,e){t.forEach(A=>Array.isArray(A)?_d(A,e):e(A))}function Wp(t,e,A){e>=t.length?t.push(A):t.splice(e,0,A)}function VC(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function tN(t,e){let A=[];for(let i=0;i<t;i++)A.push(e);return A}function iN(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 pB(t,e,A){let i=na(t,e);return i>=0?t[i|1]=A:(i=~i,iN(t,i,e,A)),i}function Cl(t,e){let A=na(t,e);if(A>=0)return t[A|1]}function na(t,e){return oN(t,e,1)}function oN(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 ji={},Dt=[],Qr=new F(""),zp=new F("",-1),jp=new F(""),WC=class{get(e,A=zn){if(A===zn){let i=new Error(`NullInjectorError: No provider for ${bt(e)}!`);throw i.name="NullInjectorError",i}return A}};function Xp(t,e){let A=t[OS]||null;if(!A&&e===!0)throw new Error(`Type ${bt(t)} does not have '\u0275mod' property.`);return A}function En(t){return t[JS]||null}function $p(t){return t[HS]||null}function nN(t){return t[TS]||null}function ga(t){return{\u0275providers:t}}function gN(...t){return{\u0275providers:Aw(!0,t),\u0275fromNgModule:!0}}function Aw(t,...e){let A=[],i=new Set,o,n=g=>{A.push(g)};return _d(e,g=>{let r=g;bl(r,n,[],i)&&(o||=[],o.push(r))}),o!==void 0&&ew(o,n),A}function ew(t,e){for(let A=0;A<t.length;A++){let{ngModule:i,providers:o}=t[A];Kd(o,n=>{e(n,i)})}}function bl(t,e,A,i){if(t=it(t),!t)return!1;let o=null,n=Pf(t),g=!n&&En(t);if(!n&&!g){let s=t.ngModule;if(n=Pf(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 a of s)bl(a,e,A,i)}}else if(n){if(n.imports!=null&&!r){i.add(o);let a;try{_d(n.imports,Q=>{bl(Q,e,A,i)&&(a||=[],a.push(Q))})}finally{}a!==void 0&&ew(a,e)}if(!r){let a=Xn(o)||(()=>new o);e({provide:o,useFactory:a,deps:Dt},o),e({provide:jp,useValue:o,multi:!0},o),e({provide:Qr,useValue:()=>Z(o),multi:!0},o)}let s=n.providers;if(s!=null&&!r){let a=t;Kd(s,Q=>{e(Q,a)})}}else return!1;return o!==t&&t.providers!==void 0}function Kd(t,e){for(let A of t)Op(A)&&(A=A.\u0275providers),Array.isArray(A)?Kd(A,e):e(A)}var rN=Be({provide:String,useValue:Be});function tw(t){return t!==null&&typeof t=="object"&&rN in t}function sN(t){return!!(t&&t.useExisting)}function aN(t){return!!(t&&t.useFactory)}function Er(t){return typeof t=="function"}function IN(t){return!!t.useClass}var wB=new F(""),YC={},Wf={},Bl;function yB(){return Bl===void 0&&(Bl=new WC),Bl}var Ye=class{},Ws=class extends Ye{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,vl(e,g=>this.processProvider(g)),this.records.set(zp,rr(void 0,this)),o.has("environment")&&this.records.set(Ye,rr(void 0,this));let n=this.records.get(wB);n!=null&&typeof n.value=="string"&&this.scopes.add(n.value),this.injectorDefTypes=new Set(this.get(jp,Dt,zA.Self))}retrieve(e,A){let i=A;return this.get(e,i.optional?aC:zn,i)}destroy(){Ps(this),this._destroyed=!0;let e=WA(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(),WA(e)}}onDestroy(e){return Ps(this),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){Ps(this);let A=Fo(this),i=kt(void 0),o;try{return e()}finally{Fo(A),kt(i)}}get(e,A=zn,i=zA.Default){if(Ps(this),e.hasOwnProperty(qf))return e[qf](this);i=fB(i);let o,n=Fo(this),g=kt(void 0);try{if(!(i&zA.SkipSelf)){let s=this.records.get(e);if(s===void 0){let a=cN(e)&&DB(e);a&&this.injectableDefInScope(a)?s=rr(Fl(e),YC):s=null,this.records.set(e,s)}if(s!=null)return this.hydrate(e,s)}let r=i&zA.Self?yB():this.parent;return A=i&zA.Optional&&A===zn?null:A,r.get(e,A)}catch(r){if(r.name==="NullInjectorError"){if((r[qC]=r[qC]||[]).unshift(bt(e)),n)throw r;return XS(r,e,"R3InjectorError",this.source)}else throw r}finally{kt(g),Fo(n)}}resolveInjectorInitializers(){let e=WA(null),A=Fo(this),i=kt(void 0),o;try{let n=this.get(Qr,Dt,zA.Self);for(let g of n)g()}finally{Fo(A),kt(i),WA(e)}}toString(){let e=[],A=this.records;for(let i of A.keys())e.push(bt(i));return`R3Injector[${e.join(", ")}]`}processProvider(e){e=it(e);let A=Er(e)?e:it(e&&e.provide),i=BN(e);if(!Er(e)&&e.multi===!0){let o=this.records.get(A);o||(o=rr(void 0,YC,!0),o.factory=()=>kl(o.multi),this.records.set(A,o)),A=e,o.multi.push(e)}this.records.set(A,i)}hydrate(e,A){let i=WA(null);try{return A.value===Wf?Pp(bt(e)):A.value===YC&&(A.value=Wf,A.value=A.factory()),typeof A.value=="object"&&A.value&&EN(A.value)&&this._ngOnDestroyHooks.add(A.value),A.value}finally{WA(i)}}injectableDefInScope(e){if(!e.providedIn)return!1;let A=it(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 Fl(t){let e=DB(t),A=e!==null?e.factory:Xn(t);if(A!==null)return A;if(t instanceof F)throw new H(204,!1);if(t instanceof Function)return CN(t);throw new H(204,!1)}function CN(t){if(t.length>0)throw new H(204,!1);let A=xS(t);return A!==null?()=>A.factory(t):()=>new t}function BN(t){if(tw(t))return rr(void 0,t.useValue);{let e=iw(t);return rr(e,YC)}}function iw(t,e,A){let i;if(Er(t)){let o=it(t);return Xn(o)||Fl(o)}else if(tw(t))i=()=>it(t.useValue);else if(aN(t))i=()=>t.useFactory(...kl(t.deps||[]));else if(sN(t))i=()=>Z(it(t.useExisting));else{let o=it(t&&(t.useClass||t.provide));if(QN(t))i=()=>new o(...kl(t.deps));else return Xn(o)||Fl(o)}return i}function Ps(t){if(t.destroyed)throw new H(205,!1)}function rr(t,e,A=!1){return{factory:t,value:e,multi:A?[]:void 0}}function QN(t){return!!t.deps}function EN(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function cN(t){return typeof t=="function"||typeof t=="object"&&t instanceof F}function vl(t,e){for(let A of t)Array.isArray(A)?vl(A,e):A&&Op(A)?vl(A.\u0275providers,e):e(A)}function St(t,e){let A;t instanceof Ws?(Ps(t),A=t):A=new ZC(t);let i,o=Fo(A),n=kt(void 0);try{return e()}finally{Fo(o),kt(n)}}function ow(){return Zp()!==void 0||_s()!=null}function Ud(t){if(!ow())throw new H(-203,!1)}function lN(t){let e=Ft.ng;if(e&&e.\u0275compilerFacade)return e.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function dN(t){return typeof t=="function"}var to=0,HA=1,_A=2,It=3,Ri=4,Nt=5,cr=6,zC=7,Pe=8,$n=9,Lo=10,Re=11,zs=12,zf=13,Dr=14,Ot=15,Ag=16,sr=17,_o=18,MB=19,nw=20,Bn=21,Ql=22,eg=23,ri=24,Cr=25,Ze=26,xd=1;var tg=7,jC=8,lr=9,at=10;function Qn(t){return Array.isArray(t)&&typeof t[xd]=="object"}function xo(t){return Array.isArray(t)&&t[xd]===!0}function Yd(t){return(t.flags&4)!==0}function fr(t){return t.componentOffset>-1}function RB(t){return(t.flags&1)===1}function ki(t){return!!t.template}function XC(t){return(t[_A]&512)!==0}function pr(t){return(t[_A]&256)===256}var Sl=class{previousValue;currentValue;firstChange;constructor(e,A,i){this.previousValue=e,this.currentValue=A,this.firstChange=i}isFirstChange(){return this.firstChange}};function gw(t,e,A,i){e!==null?e.applyValueToInputSignal(e,i):t[A]=i}var TA=(()=>{let t=()=>rw;return t.ngInherit=!0,t})();function rw(t){return t.type.prototype.ngOnChanges&&(t.setInput=uN),hN}function hN(){let t=aw(this),e=t?.current;if(e){let A=t.previous;if(A===ji)t.previous=e;else for(let i in e)A[i]=e[i];t.current=null,this.ngOnChanges(e)}}function uN(t,e,A,i,o){let n=this.declaredInputs[i],g=aw(t)||mN(t,{previous:ji,current:null}),r=g.current||(g.current={}),s=g.previous,a=s[n];r[n]=new Sl(a&&a.currentValue,A,s===ji),gw(t,e,o,A)}var sw="__ngSimpleChanges__";function aw(t){return t[sw]||null}function mN(t,e){return t[sw]=e}var jf=null;var le=function(t,e=null,A){jf?.(t,e,A)},Iw="svg",DN="math";function Xi(t){for(;Array.isArray(t);)t=t[to];return t}function fN(t){for(;Array.isArray(t);){if(typeof t[xd]=="object")return t;t=t[to]}return null}function Cw(t,e){return Xi(e[t])}function io(t,e){return Xi(e[t.index])}function Jd(t,e){return t.data[e]}function Hd(t,e){return t[e]}function $i(t,e){let A=e[t];return Qn(A)?A:A[to]}function pN(t){return(t[_A]&4)===4}function Td(t){return(t[_A]&128)===128}function wN(t){return xo(t[It])}function cn(t,e){return e==null?null:t[e]}function Bw(t){t[sr]=0}function Qw(t){t[_A]&1024||(t[_A]|=1024,Td(t)&&wr(t))}function yN(t,e){for(;t>0;)e=e[Dr],t--;return e}function kB(t){return!!(t[_A]&9216||t[ri]?.dirty)}function Nl(t){t[Lo].changeDetectionScheduler?.notify(8),t[_A]&64&&(t[_A]|=1024),kB(t)&&wr(t)}function wr(t){t[Lo].changeDetectionScheduler?.notify(0);let e=ig(t);for(;e!==null&&!(e[_A]&8192||(e[_A]|=8192,!Td(e)));)e=ig(e)}function Ew(t,e){if(pr(t))throw new H(911,!1);t[Bn]===null&&(t[Bn]=[]),t[Bn].push(e)}function MN(t,e){if(t[Bn]===null)return;let A=t[Bn].indexOf(e);A!==-1&&t[Bn].splice(A,1)}function ig(t){let e=t[It];return xo(e)?e[It]:e}function Od(t){return t[zC]??=[]}function Pd(t){return t.cleanup??=[]}function RN(t,e,A,i){let o=Od(e);o.push(A),t.firstCreatePass&&Pd(t).push(i,o.length-1)}var qA={lFrame:Dw(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Gl=!1;function kN(){return qA.lFrame.elementDepthCount}function bN(){qA.lFrame.elementDepthCount++}function FN(){qA.lFrame.elementDepthCount--}function Zd(){return qA.bindingsEnabled}function cw(){return qA.skipHydrationRootTNode!==null}function vN(t){return qA.skipHydrationRootTNode===t}function SN(){qA.skipHydrationRootTNode=null}function bA(){return qA.lFrame.lView}function me(){return qA.lFrame.tView}function Y(t){return qA.lFrame.contextLView=t,t[Pe]}function J(t){return qA.lFrame.contextLView=null,t}function nt(){let t=lw();for(;t!==null&&t.type===64;)t=t.parent;return t}function lw(){return qA.lFrame.currentTNode}function NN(){let t=qA.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function Cg(t,e){let A=qA.lFrame;A.currentTNode=t,A.isParent=e}function qd(){return qA.lFrame.isParent}function Vd(){qA.lFrame.isParent=!1}function GN(){return qA.lFrame.contextLView}function dw(){return Gl}function $C(t){let e=Gl;return Gl=t,e}function ra(){let t=qA.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function LN(t){return qA.lFrame.bindingIndex=t}function ln(){return qA.lFrame.bindingIndex++}function hw(t){let e=qA.lFrame,A=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,A}function _N(){return qA.lFrame.inI18n}function KN(t,e){let A=qA.lFrame;A.bindingIndex=A.bindingRootIndex=t,Ll(e)}function UN(){return qA.lFrame.currentDirectiveIndex}function Ll(t){qA.lFrame.currentDirectiveIndex=t}function Wd(t){let e=qA.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function zd(){return qA.lFrame.currentQueryIndex}function bB(t){qA.lFrame.currentQueryIndex=t}function xN(t){let e=t[HA];return e.type===2?e.declTNode:e.type===1?t[Nt]:null}function uw(t,e,A){if(A&zA.SkipSelf){let o=e,n=t;for(;o=o.parent,o===null&&!(A&zA.Host);)if(o=xN(n),o===null||(n=n[Dr],o.type&10))break;if(o===null)return!1;e=o,t=n}let i=qA.lFrame=mw();return i.currentTNode=e,i.lView=t,!0}function jd(t){let e=mw(),A=t[HA];qA.lFrame=e,e.currentTNode=A.firstChild,e.lView=t,e.tView=A,e.contextLView=t,e.bindingIndex=A.bindingStartIndex,e.inI18n=!1}function mw(){let t=qA.lFrame,e=t===null?null:t.child;return e===null?Dw(t):e}function Dw(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 fw(){let t=qA.lFrame;return qA.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var pw=fw;function Xd(){let t=fw();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 YN(t){return(qA.lFrame.contextLView=yN(t,qA.lFrame.contextLView))[Pe]}function dn(){return qA.lFrame.selectedIndex}function og(t){qA.lFrame.selectedIndex=t}function sa(){let t=qA.lFrame;return Jd(t.tView,t.selectedIndex)}function At(){qA.lFrame.currentNamespace=Iw}function Bg(){JN()}function JN(){qA.lFrame.currentNamespace=null}function HN(){return qA.lFrame.currentNamespace}var ww=!0;function FB(){return ww}function vB(t){ww=t}function TN(t,e,A){let{ngOnChanges:i,ngOnInit:o,ngDoCheck:n}=e.type.prototype;if(i){let g=rw(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 $d(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:a,ngOnDestroy:Q}=n;g&&(t.contentHooks??=[]).push(-A,g),r&&((t.contentHooks??=[]).push(A,r),(t.contentCheckHooks??=[]).push(A,r)),s&&(t.viewHooks??=[]).push(-A,s),a&&((t.viewHooks??=[]).push(A,a),(t.viewCheckHooks??=[]).push(A,a)),Q!=null&&(t.destroyHooks??=[]).push(A,Q)}}function JC(t,e,A){yw(t,e,3,A)}function HC(t,e,A,i){(t[_A]&3)===A&&yw(t,e,A,i)}function El(t,e){let A=t[_A];(A&3)===e&&(A&=16383,A+=1,t[_A]=A)}function yw(t,e,A,i){let o=i!==void 0?t[sr]&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[sr]+=65536),(r<n||n==-1)&&(ON(t,A,e,s),t[sr]=(t[sr]&4294901760)+s+2),s++}function Xf(t,e){le(4,t,e);let A=WA(null);try{e.call(t)}finally{WA(A),le(5,t,e)}}function ON(t,e,A,i){let o=A[i]<0,n=A[i+1],g=o?-A[i]:A[i],r=t[g];o?t[_A]>>14<t[sr]>>16&&(t[_A]&3)===e&&(t[_A]+=16384,Xf(r,n)):Xf(r,n)}var Br=-1,ng=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(e,A,i){this.factory=e,this.canSeeViewProviders=A,this.injectImpl=i}};function PN(t){return(t.flags&8)!==0}function ZN(t){return(t.flags&16)!==0}function qN(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];VN(n)?t.setProperty(e,n,g):t.setAttribute(e,n,g),i++}}return i}function Mw(t){return t===3||t===4||t===6}function VN(t){return t.charCodeAt(0)===64}function dr(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 Rw(t){return t!==Br}function AB(t){return t&32767}function WN(t){return t>>16}function eB(t,e){let A=WN(t),i=e;for(;A>0;)i=i[Dr],A--;return i}var _l=!0;function tB(t){let e=_l;return _l=t,e}var zN=256,kw=zN-1,bw=5,jN=0,zi={};function XN(t,e,A){let i;typeof A=="string"?i=A.charCodeAt(0)||0:A.hasOwnProperty(qs)&&(i=A[qs]),i==null&&(i=A[qs]=jN++);let o=i&kw,n=1<<o;e.data[t+(o>>bw)]|=n}function iB(t,e){let A=Fw(t,e);if(A!==-1)return A;let i=e[HA];i.firstCreatePass&&(t.injectorIndex=e.length,cl(i.data,t),cl(e,null),cl(i.blueprint,null));let o=Ah(t,e),n=t.injectorIndex;if(Rw(o)){let g=AB(o),r=eB(o,e),s=r[HA].data;for(let a=0;a<8;a++)e[n+a]=r[g+a]|s[g+a]}return e[n+8]=o,n}function cl(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Fw(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function Ah(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=Lw(o),i===null)return Br;if(A++,o=o[Dr],i.injectorIndex!==-1)return i.injectorIndex|A<<16}return Br}function Kl(t,e,A){XN(t,e,A)}function $N(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(Mw(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 vw(t,e,A){if(A&zA.Optional||t!==void 0)return t;Ld(e,"NodeInjector")}function Sw(t,e,A,i){if(A&zA.Optional&&i===void 0&&(i=null),(A&(zA.Self|zA.Host))===0){let o=t[$n],n=kt(void 0);try{return o?o.get(e,i,A&zA.Optional):qp(e,i,A&zA.Optional)}finally{kt(n)}}return vw(i,e,A)}function Nw(t,e,A,i=zA.Default,o){if(t!==null){if(e[_A]&2048&&!(i&zA.Self)){let g=iG(t,e,A,i,zi);if(g!==zi)return g}let n=Gw(t,e,A,i,zi);if(n!==zi)return n}return Sw(e,A,i,o)}function Gw(t,e,A,i,o){let n=eG(A);if(typeof n=="function"){if(!uw(e,t,i))return i&zA.Host?vw(o,A,i):Sw(e,A,i,o);try{let g;if(g=n(i),g==null&&!(i&zA.Optional))Ld(A);else return g}finally{pw()}}else if(typeof n=="number"){let g=null,r=Fw(t,e),s=Br,a=i&zA.Host?e[Ot][Nt]:null;for((r===-1||i&zA.SkipSelf)&&(s=r===-1?Ah(t,e):e[r+8],s===Br||!ep(i,!1)?r=-1:(g=e[HA],r=AB(s),e=eB(s,e)));r!==-1;){let Q=e[HA];if(Ap(n,r,Q.data)){let c=AG(r,e,A,g,i,a);if(c!==zi)return c}s=e[r+8],s!==Br&&ep(i,e[HA].data[r+8]===a)&&Ap(n,r,e)?(g=Q,r=AB(s),e=eB(s,e)):r=-1}}return o}function AG(t,e,A,i,o,n){let g=e[HA],r=g.data[t+8],s=i==null?fr(r)&&_l:i!=g&&(r.type&3)!==0,a=o&zA.Host&&n===r,Q=TC(r,g,A,s,a);return Q!==null?js(e,g,Q,r):zi}function TC(t,e,A,i,o){let n=t.providerIndexes,g=e.data,r=n&1048575,s=t.directiveStart,a=t.directiveEnd,Q=n>>20,c=i?r:r+Q,f=o?r+Q:a;for(let m=c;m<f;m++){let p=g[m];if(m<s&&A===p||m>=s&&p.type===A)return m}if(o){let m=g[s];if(m&&ki(m)&&m.type===A)return s}return null}function js(t,e,A,i){let o=t[A],n=e.data;if(o instanceof ng){let g=o;g.resolving&&Pp(PS(n[A]));let r=tB(g.canSeeViewProviders);g.resolving=!0;let s,a=g.injectImpl?kt(g.injectImpl):null,Q=uw(t,i,zA.Default);try{o=t[A]=g.factory(void 0,n,t,i),e.firstCreatePass&&A>=i.directiveStart&&TN(A,n[A],e)}finally{a!==null&&kt(a),tB(r),g.resolving=!1,pw()}}return o}function eG(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(qs)?t[qs]:void 0;return typeof e=="number"?e>=0?e&kw:tG:e}function Ap(t,e,A){let i=1<<t;return!!(A[e+(t>>bw)]&i)}function ep(t,e){return!(t&zA.Self)&&!(t&zA.Host&&e)}var jn=class{_tNode;_lView;constructor(e,A){this._tNode=e,this._lView=A}get(e,A,i){return Nw(this._tNode,this._lView,e,fB(i),A)}};function tG(){return new jn(nt(),bA())}function jA(t){return ta(()=>{let e=t.prototype.constructor,A=e[PC]||Ul(e),i=Object.prototype,o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==i;){let n=o[PC]||Ul(o);if(n&&n!==A)return n;o=Object.getPrototypeOf(o)}return n=>new n})}function Ul(t){return Yp(t)?()=>{let e=Ul(it(t));return e&&e()}:Xn(t)}function iG(t,e,A,i,o){let n=t,g=e;for(;n!==null&&g!==null&&g[_A]&2048&&!XC(g);){let r=Gw(n,g,A,i|zA.Self,zi);if(r!==zi)return r;let s=n.parent;if(!s){let a=g[nw];if(a){let Q=a.get(A,zi,i);if(Q!==zi)return Q}s=Lw(g),g=g[Dr]}n=s}return o}function Lw(t){let e=t[HA],A=e.type;return A===2?e.declTNode:A===1?t[Nt]:null}function eh(t){return $N(nt(),t)}function tp(t,e=null,A=null,i){let o=_w(t,e,A,i);return o.resolveInjectorInitializers(),o}function _w(t,e=null,A=null,i,o=new Set){let n=[A||Dt,gN(t)];return i=i||(typeof t=="object"?void 0:bt(t)),new Ws(n,e||yB(),i||null,o)}var yA=class t{static THROW_IF_NOT_FOUND=zn;static NULL=new WC;static create(e,A){if(Array.isArray(e))return tp({name:""},A,e,"");{let i=e.name??"";return tp({name:i},e.parent,e.providers,i)}}static \u0275prov=v({token:t,providedIn:"any",factory:()=>Z(zp)});static __NG_ELEMENT_ID__=-1};var Ct=class{attributeName;constructor(e){this.attributeName=e}__NG_ELEMENT_ID__=()=>eh(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}},oG=new F("");oG.__NG_ELEMENT_ID__=t=>{let e=nt();if(e===null)throw new H(204,!1);if(e.type&2)return e.value;if(t&zA.Optional)return null;throw new H(204,!1)};var Kw=!1,yr=(()=>{class t{static __NG_ELEMENT_ID__=nG;static __NG_ENV_ID__=A=>A}return t})(),oB=class extends yr{_lView;constructor(e){super(),this._lView=e}onDestroy(e){let A=this._lView;return pr(A)?(e(),()=>{}):(Ew(A,e),()=>MN(A,e))}};function nG(){return new oB(bA())}var gg=class{},th=new F("",{providedIn:"root",factory:()=>!1});var Uw=new F(""),xw=new F(""),Yo=(()=>{class t{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new $A(!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 xl=class extends U{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(e=!1){super(),this.__isAsync=e,ow()&&(this.destroyRef=B(yr,{optional:!0})??void 0,this.pendingTasks=B(Yo,{optional:!0})??void 0)}emit(e){let A=WA(null);try{super.next(e)}finally{WA(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 GA&&e.add(r),r}wrapInTimeout(e){return A=>{let i=this.pendingTasks?.add();setTimeout(()=>{try{e(A)}finally{i!==void 0&&this.pendingTasks?.remove(i)}})}}},z=xl;function Xs(...t){}function Yw(t){let e,A;function i(){t=Xs;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 ip(t){return queueMicrotask(()=>t()),()=>{t=Xs}}var ih="isAngularZone",nB=ih+"_ID",gG=0,tA=class t{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new z(!1);onMicrotaskEmpty=new z(!1);onStable=new z(!1);onError=new z(!1);constructor(e){let{enableLongStackTrace:A=!1,shouldCoalesceEventChangeDetection:i=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:n=Kw}=e;if(typeof Zone>"u")throw new H(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,aG(g)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(ih)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new H(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new H(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,rG,Xs,Xs);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)}},rG={};function oh(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 sG(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function e(){Yw(()=>{t.callbackScheduled=!1,Yl(t),t.isCheckStableRunning=!0,oh(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{e()}):t._outer.run(()=>{e()}),Yl(t)}function aG(t){let e=()=>{sG(t)},A=gG++;t._inner=t._inner.fork({name:"angular",properties:{[ih]:!0,[nB]:A,[nB+A]:!0},onInvokeTask:(i,o,n,g,r,s)=>{if(IG(s))return i.invokeTask(n,g,r,s);try{return op(t),i.invokeTask(n,g,r,s)}finally{(t.shouldCoalesceEventChangeDetection&&g.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),np(t)}},onInvoke:(i,o,n,g,r,s,a)=>{try{return op(t),i.invoke(n,g,r,s,a)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!CG(s)&&e(),np(t)}},onHasTask:(i,o,n,g)=>{i.hasTask(n,g),o===n&&(g.change=="microTask"?(t._hasPendingMicrotasks=g.microTask,Yl(t),oh(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 op(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function np(t){t._nesting--,oh(t)}var gB=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new z;onMicrotaskEmpty=new z;onStable=new z;onError=new z;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 IG(t){return Jw(t,"__ignore_ng_zone__")}function CG(t){return Jw(t,"__scheduler_tick__")}function Jw(t,e){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[e]===!0}function BG(t="zone.js",e){return t==="noop"?new gB:t==="zone.js"?new tA(e):t}var vt=class{_console=console;handleError(e){this._console.error("ERROR",e)}},QG=new F("",{providedIn:"root",factory:()=>{let t=B(tA),e=B(vt);return A=>t.runOutsideAngular(()=>e.handleError(A))}});function gp(t,e){return Up(t,e)}function EG(t){return Up(Kp,t)}var Hw=(gp.required=EG,gp);function cG(){return Mr(nt(),bA())}function Mr(t,e){return new q(io(t,e))}var q=(()=>{class t{nativeElement;constructor(A){this.nativeElement=A}static __NG_ELEMENT_ID__=cG}return t})();function Tw(t){return t instanceof q?t.nativeElement:t}function hn(t){return typeof t=="function"&&t[Mt]!==void 0}function gt(t,e){let A=qc(t,e?.equal),i=A[Mt];return A.set=o=>Ls(i,o),A.update=o=>Vc(i,o),A.asReadonly=lG.bind(A),A}function lG(){let t=this[Mt];if(t.readonlyFn===void 0){let e=()=>this();e[Mt]=t,t.readonlyFn=e}return t.readonlyFn}function Ow(t){return hn(t)&&typeof t.set=="function"}function dG(){return this._results[Symbol.iterator]()}var bi=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 U}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=eN(e);(this._changesDetected=!AN(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]=dG};function Pw(t){return(t.flags&128)===128}var Zw=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}(Zw||{}),qw=new Map,hG=0;function uG(){return hG++}function mG(t){qw.set(t[MB],t)}function Jl(t){qw.delete(t[MB])}var rp="__ngContext__";function Rr(t,e){Qn(e)?(t[rp]=e[MB],mG(e)):t[rp]=e}function Vw(t){return zw(t[zs])}function Ww(t){return zw(t[Ri])}function zw(t){for(;t!==null&&!xo(t);)t=t[Ri];return t}var Hl;function jw(t){Hl=t}function Xw(){if(Hl!==void 0)return Hl;if(typeof document<"u")return document;throw new H(210,!1)}var Qg=new F("",{providedIn:"root",factory:()=>DG}),DG="ng",nh=new F(""),si=new F("",{providedIn:"platform",factory:()=>"unknown"});var Ae=new F(""),aa=new F("",{providedIn:"root",factory:()=>Xw().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var fG="h",pG="b";var $w=!1,wG=new F("",{providedIn:"root",factory:()=>$w});var gh=function(t){return t[t.CHANGE_DETECTION=0]="CHANGE_DETECTION",t[t.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",t}(gh||{}),kr=new F(""),sp=new Set;function Jo(t){sp.has(t)||(sp.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}var rh=(()=>{class t{view;node;constructor(A,i){this.view=A,this.node=i}static __NG_ELEMENT_ID__=yG}return t})();function yG(){return new rh(bA(),nt())}var ar=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(ar||{}),Ay=(()=>{class t{impl=null;execute(){this.impl?.execute()}static \u0275prov=v({token:t,providedIn:"root",factory:()=>new t})}return t})(),MG=[ar.EarlyRead,ar.Write,ar.MixedReadWrite,ar.Read],RG=(()=>{class t{ngZone=B(tA);scheduler=B(gg);errorHandler=B(vt,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){B(kr,{optional:!0})}execute(){let A=this.sequences.size>0;A&&le(16),this.executing=!0;for(let i of MG)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&&le(17)}register(A){let{view:i}=A;i!==void 0?((i[Cr]??=[]).push(A),wr(i),i[_A]|=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(gh.AFTER_NEXT_RENDER,A):A()}static \u0275prov=v({token:t,providedIn:"root",factory:()=>new t})}return t})(),Tl=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?.[Cr];e&&(this.view[Cr]=e.filter(A=>A!==this))}};function Ia(t,e){!e?.injector&&Ud(Ia);let A=e?.injector??B(yA);return Jo("NgAfterRender"),ey(t,A,e,!1)}function Le(t,e){!e?.injector&&Ud(Le);let A=e?.injector??B(yA);return Jo("NgAfterNextRender"),ey(t,A,e,!0)}function kG(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 ey(t,e,A,i){let o=e.get(Ay);o.impl??=e.get(RG);let n=e.get(kr,null,{optional:!0}),g=A?.phase??ar.MixedReadWrite,r=A?.manualCleanup!==!0?e.get(yr):null,s=e.get(rh,null,{optional:!0}),a=new Tl(o.impl,kG(t,g),s?.view,i,r,n?.snapshot(null));return o.impl.register(a),a}var bG=()=>null;function ty(t,e,A=!1){return bG(t,e,A)}function iy(t,e){let A=t.contentQueries;if(A!==null){let i=WA(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];bB(n),r.contentQueries(2,e[g],g)}}}finally{WA(i)}}}function Ol(t,e,A){bB(0);let i=WA(null);try{e(t,A)}finally{WA(i)}}function sh(t,e,A){if(Yd(e)){let i=WA(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{WA(i)}}}var Ao=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}(Ao||{}),LC;function FG(){if(LC===void 0&&(LC=null,Ft.trustedTypes))try{LC=Ft.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return LC}function SB(t){return FG()?.createHTML(t)||t}var _C;function vG(){if(_C===void 0&&(_C=null,Ft.trustedTypes))try{_C=Ft.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return _C}function ap(t){return vG()?.createHTML(t)||t}var Ko=class{changingThisBreaksApplicationSecurity;constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${_p})`}},Pl=class extends Ko{getTypeName(){return"HTML"}},Zl=class extends Ko{getTypeName(){return"Style"}},ql=class extends Ko{getTypeName(){return"Script"}},Vl=class extends Ko{getTypeName(){return"URL"}},Wl=class extends Ko{getTypeName(){return"ResourceURL"}};function Fi(t){return t instanceof Ko?t.changingThisBreaksApplicationSecurity:t}function un(t,e){let A=SG(t);if(A!=null&&A!==e){if(A==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${A} (see ${_p})`)}return A===e}function SG(t){return t instanceof Ko&&t.getTypeName()||null}function oy(t){return new Pl(t)}function ny(t){return new Zl(t)}function gy(t){return new ql(t)}function ry(t){return new Vl(t)}function sy(t){return new Wl(t)}function NG(t){let e=new jl(t);return GG()?new zl(e):e}var zl=class{inertDocumentHelper;constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{let A=new window.DOMParser().parseFromString(SB(e),"text/html").body;return A===null?this.inertDocumentHelper.getInertBodyElement(e):(A.firstChild?.remove(),A)}catch{return null}}},jl=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=SB(e),A}};function GG(){try{return!!new window.DOMParser().parseFromString(SB(""),"text/html")}catch{return!1}}var LG=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function NB(t){return t=String(t),t.match(LG)?t:"unsafe:"+t}function Ho(t){let e={};for(let A of t.split(","))e[A]=!0;return e}function Ca(...t){let e={};for(let A of t)for(let i in A)A.hasOwnProperty(i)&&(e[i]=!0);return e}var ay=Ho("area,br,col,hr,img,wbr"),Iy=Ho("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Cy=Ho("rp,rt"),_G=Ca(Cy,Iy),KG=Ca(Iy,Ho("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")),UG=Ca(Cy,Ho("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")),Ip=Ca(ay,KG,UG,_G),By=Ho("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),xG=Ho("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"),YG=Ho("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"),JG=Ca(By,xG,YG),HG=Ho("script,style,template"),Xl=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=PG(A);continue}for(;A;){A.nodeType===Node.ELEMENT_NODE&&this.endElement(A);let n=OG(A);if(n){A=n;break}A=o.pop()}}return this.buf.join("")}startElement(e){let A=Cp(e).toLowerCase();if(!Ip.hasOwnProperty(A))return this.sanitizedSomething=!0,!HG.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(!JG.hasOwnProperty(r)){this.sanitizedSomething=!0;continue}let s=n.value;By[r]&&(s=NB(s)),this.buf.push(" ",g,'="',Bp(s),'"')}return this.buf.push(">"),!0}endElement(e){let A=Cp(e).toLowerCase();Ip.hasOwnProperty(A)&&!ay.hasOwnProperty(A)&&(this.buf.push("</"),this.buf.push(A),this.buf.push(">"))}chars(e){this.buf.push(Bp(e))}};function TG(t,e){return(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function OG(t){let e=t.nextSibling;if(e&&t!==e.previousSibling)throw Qy(e);return e}function PG(t){let e=t.firstChild;if(e&&TG(t,e))throw Qy(e);return e}function Cp(t){let e=t.nodeName;return typeof e=="string"?e:"FORM"}function Qy(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var ZG=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,qG=/([^\#-~ |!])/g;function Bp(t){return t.replace(/&/g,"&amp;").replace(ZG,function(e){let A=e.charCodeAt(0),i=e.charCodeAt(1);return"&#"+((A-55296)*1024+(i-56320)+65536)+";"}).replace(qG,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}var KC;function ah(t,e){let A=null;try{KC=KC||NG(t);let i=e?String(e):"";A=KC.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=KC.getInertBodyElement(i)}while(i!==n);let r=new Xl().sanitizeChildren(Qp(A)||A);return SB(r)}finally{if(A){let i=Qp(A)||A;for(;i.firstChild;)i.firstChild.remove()}}}function Qp(t){return"content"in t&&VG(t)?t.content:null}function VG(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var et=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}(et||{});function Ba(t){let e=Ey();return e?ap(e.sanitize(et.HTML,t)||""):un(t,"HTML")?ap(Fi(t)):ah(Xw(),ia(t))}function qt(t){let e=Ey();return e?e.sanitize(et.URL,t)||"":un(t,"URL")?Fi(t):NB(ia(t))}function Ey(){let t=bA();return t&&t[Lo].sanitizer}var WG=/^>|^->|<!--|-->|--!>|<!-$/g,zG=/(<|>)/g,jG="\u200B$1\u200B";function XG(t){return t.replace(WG,e=>e.replace(zG,jG))}function cy(t){return t.ownerDocument.defaultView}function Ih(t){return t.ownerDocument}function ly(t){return t instanceof Function?t():t}function $G(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 dy="ng-template";function AL(t,e,A,i){let o=0;if(i){for(;o<e.length&&typeof e[o]=="string";o+=2)if(e[o]==="class"&&$G(e[o+1].toLowerCase(),A,0)!==-1)return!0}else if(Ch(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 Ch(t){return t.type===4&&t.value!==dy}function eL(t,e,A){let i=t.type===4&&!A?dy:t.value;return e===i}function tL(t,e,A){let i=4,o=t.attrs,n=o!==null?nL(o):0,g=!1;for(let r=0;r<e.length;r++){let s=e[r];if(typeof s=="number"){if(!g&&!yi(i)&&!yi(s))return!1;if(g&&yi(s))continue;g=!1,i=s|i&1;continue}if(!g)if(i&4){if(i=2|i&1,s!==""&&!eL(t,s,A)||s===""&&e.length===1){if(yi(i))return!1;g=!0}}else if(i&8){if(o===null||!AL(t,o,s,A)){if(yi(i))return!1;g=!0}}else{let a=e[++r],Q=iL(s,o,Ch(t),A);if(Q===-1){if(yi(i))return!1;g=!0;continue}if(a!==""){let c;if(Q>n?c="":c=o[Q+1].toLowerCase(),i&2&&a!==c){if(yi(i))return!1;g=!0}}}}return yi(i)||g}function yi(t){return(t&1)===0}function iL(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 gL(e,t)}function hy(t,e,A=!1){for(let i=0;i<e.length;i++)if(tL(t,e[i],A))return!0;return!1}function oL(t){let e=t.attrs;if(e!=null){let A=e.indexOf(5);if((A&1)===0)return e[A+1]}return null}function nL(t){for(let e=0;e<t.length;e++){let A=t[e];if(Mw(A))return e}return t.length}function gL(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 rL(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 Ep(t,e){return t?":not("+e.trim()+")":e}function sL(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!==""&&!yi(g)&&(e+=Ep(n,o),o=""),i=g,n=n||!yi(i);A++}return o!==""&&(e+=Ep(n,o)),e}function aL(t){return t.map(sL).join(",")}function IL(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(!yi(o))break;o=n}i++}return A.length&&e.push(1,...A),e}var vi={};function CL(t,e){return t.createText(e)}function BL(t,e,A){t.setValue(e,A)}function QL(t,e){return t.createComment(XG(e))}function uy(t,e,A){return t.createElement(e,A)}function rB(t,e,A,i,o){t.insertBefore(e,A,i,o)}function my(t,e,A){t.appendChild(e,A)}function cp(t,e,A,i,o){i!==null?rB(t,e,A,i,o):my(t,e,A)}function EL(t,e,A){t.removeChild(null,e,A)}function cL(t,e,A){t.setAttribute(e,"style",A)}function lL(t,e,A){A===""?t.removeAttribute(e,"class"):t.setAttribute(e,"class",A)}function Dy(t,e,A){let{mergedAttrs:i,classes:o,styles:n}=A;i!==null&&qN(t,e,i),o!==null&&lL(t,e,o),n!==null&&cL(t,e,n)}function Bh(t,e,A,i,o,n,g,r,s,a,Q){let c=Ze+i,f=c+o,m=dL(c,f),p=typeof a=="function"?a():a;return m[HA]={type:t,blueprint:m,template:A,queries:null,viewQuery:r,declTNode:e,data:m.slice().fill(null,c),bindingStartIndex:c,expandoStartIndex:f,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:Q}}function dL(t,e){let A=[];for(let i=0;i<e;i++)A.push(i<t?null:vi);return A}function hL(t){let e=t.tView;return e===null||e.incompleteFirstPass?t.tView=Bh(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts,t.id):e}function Qh(t,e,A,i,o,n,g,r,s,a,Q){let c=e.blueprint.slice();return c[to]=o,c[_A]=i|4|128|8|64|1024,(a!==null||t&&t[_A]&2048)&&(c[_A]|=2048),Bw(c),c[It]=c[Dr]=t,c[Pe]=A,c[Lo]=g||t&&t[Lo],c[Re]=r||t&&t[Re],c[$n]=s||t&&t[$n]||null,c[Nt]=n,c[MB]=uG(),c[cr]=Q,c[nw]=a,c[Ot]=e.type==2?t[Ot]:c,c}function uL(t,e,A){let i=io(e,t),o=hL(A),n=t[Lo].rendererFactory,g=Eh(t,Qh(t,o,null,fy(A),i,e,null,n.createRenderer(i,A),null,null,null));return t[e.index]=g}function fy(t){let e=16;return t.signals?e=4096:t.onPush&&(e=64),e}function py(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 Eh(t,e){return t[zs]?t[zf][Ri]=e:t[zs]=e,t[zf]=e,e}function D(t=1){wy(me(),bA(),dn()+t,!1)}function wy(t,e,A,i){if(!i)if((e[_A]&3)===3){let n=t.preOrderCheckHooks;n!==null&&JC(e,n,A)}else{let n=t.preOrderHooks;n!==null&&HC(e,n,0,A)}og(A)}var GB=function(t){return t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",t}(GB||{});function $l(t,e,A,i){let o=WA(null);try{let[n,g,r]=t.inputs[A],s=null;(g&GB.SignalBased)!==0&&(s=e[n][Mt]),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):gw(e,s,n,i)}finally{WA(o)}}function yy(t,e,A,i,o){let n=dn(),g=i&2;try{og(-1),g&&e.length>Ze&&wy(t,e,Ze,!1),le(g?2:0,o),A(i,o)}finally{og(n),le(g?3:1,o)}}function LB(t,e,A){yL(t,e,A),(A.flags&64)===64&&ML(t,e,A)}function ch(t,e,A=io){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 mL(t,e,A,i){let n=i.get(wG,$w)||A===Ao.ShadowDom,g=t.selectRootElement(e,n);return DL(g),g}function DL(t){fL(t)}var fL=()=>null;function pL(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function _B(t,e,A,i,o,n,g,r){if(!r&&dh(e,t,A,i,o)){fr(e)&&wL(A,e.index);return}if(e.type&3){let s=io(e,A);i=pL(i),o=g!=null?g(o,e.value||"",i):o,n.setProperty(s,i,o)}else e.type&12}function wL(t,e){let A=$i(e,t);A[_A]&16||(A[_A]|=64)}function yL(t,e,A){let i=A.directiveStart,o=A.directiveEnd;fr(A)&&uL(e,A,t.data[i+A.componentOffset]),t.firstCreatePass||iB(A,e);let n=A.initialInputs;for(let g=i;g<o;g++){let r=t.data[g],s=js(e,t,g,A);if(Rr(s,e),n!==null&&FL(e,g-i,s,r,A,n),ki(r)){let a=$i(A.index,e);a[Pe]=js(e,t,g,A)}}}function ML(t,e,A){let i=A.directiveStart,o=A.directiveEnd,n=A.index,g=UN();try{og(n);for(let r=i;r<o;r++){let s=t.data[r],a=e[r];Ll(r),(s.hostBindings!==null||s.hostVars!==0||s.hostAttrs!==null)&&RL(s,a)}}finally{og(-1),Ll(g)}}function RL(t,e){t.hostBindings!==null&&t.hostBindings(1,e)}function lh(t,e){let A=t.directiveRegistry,i=null;if(A)for(let o=0;o<A.length;o++){let n=A[o];hy(e,n.selectors,!1)&&(i??=[],ki(n)?i.unshift(n):i.push(n))}return i}function kL(t,e,A,i,o,n){let g=io(t,e);bL(e[Re],g,n,t.value,A,i,o)}function bL(t,e,A,i,o,n,g){if(n==null)t.removeAttribute(e,o,A);else{let r=g==null?ia(n):g(n,i||"",o);t.setAttribute(e,o,r,A)}}function FL(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],a=g[r+1];$l(i,A,s,a)}}function My(t,e,A){return(t===null||ki(t))&&(A=fN(A[e.index])),A[Re]}function vL(t,e){let A=t[$n],i=A?A.get(vt,null):null;i&&i.handleError(e)}function dh(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 a=g[s],Q=g[s+1],c=e.data[a];$l(c,A[a],Q,o),r=!0}if(n)for(let s of n){let a=A[s],Q=e.data[s];$l(Q,a,i,o),r=!0}return r}function SL(t,e){let A=$i(e,t),i=A[HA];NL(i,A);let o=A[to];o!==null&&A[cr]===null&&(A[cr]=ty(o,A[$n])),le(18),hh(i,A,A[Pe]),le(19,A[Pe])}function NL(t,e){for(let A=e.length;A<t.blueprint.length;A++)e.push(t.blueprint[A])}function hh(t,e,A){jd(e);try{let i=t.viewQuery;i!==null&&Ol(1,i,A);let o=t.template;o!==null&&yy(t,e,o,1,A),t.firstCreatePass&&(t.firstCreatePass=!1),e[_o]?.finishViewCreation(t),t.staticContentQueries&&iy(t,e),t.staticViewQueries&&Ol(2,t.viewQuery,A);let n=t.components;n!==null&&GL(e,n)}catch(i){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),i}finally{e[_A]&=-5,Xd()}}function GL(t,e){for(let A=0;A<e.length;A++)SL(t,e[A])}function Qa(t,e,A,i){let o=WA(null);try{let n=e.tView,r=t[_A]&4096?4096:16,s=Qh(t,n,A,r,null,e,null,null,i?.injector??null,i?.embeddedViewInjector??null,i?.dehydratedView??null),a=t[e.index];s[Ag]=a;let Q=t[_o];return Q!==null&&(s[_o]=Q.createEmbeddedView(n)),hh(n,s,A),s}finally{WA(o)}}function hr(t,e){return!e||e.firstChild===null||Pw(t)}var LL;function uh(t,e){return LL(t,e)}var eo=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(eo||{});function mh(t){return(t.flags&32)===32}function Ir(t,e,A,i,o){if(i!=null){let n,g=!1;xo(i)?n=i:Qn(i)&&(g=!0,i=i[to]);let r=Xi(i);t===0&&A!==null?o==null?my(e,A,r):rB(e,A,r,o||null,!0):t===1&&A!==null?rB(e,A,r,o||null,!0):t===2?EL(e,r,g):t===3&&e.destroyNode(r),n!=null&&PL(e,t,n,A,o)}}function _L(t,e){Ry(t,e),e[to]=null,e[Nt]=null}function KL(t,e,A,i,o,n){i[to]=o,i[Nt]=e,xB(t,i,A,1,o,n)}function Ry(t,e){e[Lo].changeDetectionScheduler?.notify(9),xB(t,e,e[Re],2,null,null)}function UL(t){let e=t[zs];if(!e)return ll(t[HA],t);for(;e;){let A=null;if(Qn(e))A=e[zs];else{let i=e[at];i&&(A=i)}if(!A){for(;e&&!e[Ri]&&e!==t;)Qn(e)&&ll(e[HA],e),e=e[It];e===null&&(e=t),Qn(e)&&ll(e[HA],e),A=e&&e[Ri]}e=A}}function Dh(t,e){let A=t[lr],i=A.indexOf(e);A.splice(i,1)}function KB(t,e){if(pr(e))return;let A=e[Re];A.destroyNode&&xB(t,e,A,3,null,null),UL(e)}function ll(t,e){if(pr(e))return;let A=WA(null);try{e[_A]&=-129,e[_A]|=256,e[ri]&&Gs(e[ri]),YL(t,e),xL(t,e),e[HA].type===1&&e[Re].destroy();let i=e[Ag];if(i!==null&&xo(e[It])){i!==e[It]&&Dh(i,e);let o=e[_o];o!==null&&o.detachView(t)}Jl(e)}finally{WA(A)}}function xL(t,e){let A=t.cleanup,i=e[zC];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[zC]=null);let o=e[Bn];if(o!==null){e[Bn]=null;for(let g=0;g<o.length;g++){let r=o[g];r()}}let n=e[eg];if(n!==null){e[eg]=null;for(let g of n)g.destroy()}}function YL(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 ng)){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];le(4,r,s);try{s.call(r)}finally{le(5,r,s)}}else{le(4,o,n);try{n.call(o)}finally{le(5,o,n)}}}}}function ky(t,e,A){return JL(t,e.parent,A)}function JL(t,e,A){let i=e;for(;i!==null&&i.type&168;)e=i,i=e.parent;if(i===null)return A[to];if(fr(i)){let{encapsulation:o}=t.data[i.directiveStart+i.componentOffset];if(o===Ao.None||o===Ao.Emulated)return null}return io(i,A)}function by(t,e,A){return TL(t,e,A)}function HL(t,e,A){return t.type&40?io(t,A):null}var TL=HL,lp;function UB(t,e,A,i){let o=ky(t,i,e),n=e[Re],g=i.parent||e[Nt],r=by(g,i,e);if(o!=null)if(Array.isArray(A))for(let s=0;s<A.length;s++)cp(n,o,A[s],r,!1);else cp(n,o,A,r,!1);lp!==void 0&&lp(n,i,e,A,o)}function Zs(t,e){if(e!==null){let A=e.type;if(A&3)return io(e,t);if(A&4)return Ad(-1,t[e.index]);if(A&8){let i=e.child;if(i!==null)return Zs(t,i);{let o=t[e.index];return xo(o)?Ad(-1,o):Xi(o)}}else{if(A&128)return Zs(t,e.next);if(A&32)return uh(e,t)()||Xi(t[e.index]);{let i=Fy(t,e);if(i!==null){if(Array.isArray(i))return i[0];let o=ig(t[Ot]);return Zs(o,i)}else return Zs(t,e.next)}}}return null}function Fy(t,e){if(e!==null){let i=t[Ot][Nt],o=e.projection;return i.projection[o]}return null}function Ad(t,e){let A=at+t+1;if(A<e.length){let i=e[A],o=i[HA].firstChild;if(o!==null)return Zs(i,o)}return e[tg]}function fh(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&&Rr(Xi(r),i),A.flags|=2),!mh(A))if(s&8)fh(t,e,A.child,i,o,n,!1),Ir(e,t,o,r,n);else if(s&32){let a=uh(A,i),Q;for(;Q=a();)Ir(e,t,o,Q,n);Ir(e,t,o,r,n)}else s&16?vy(t,e,i,A,o,n):Ir(e,t,o,r,n);A=g?A.projectionNext:A.next}}function xB(t,e,A,i,o,n){fh(A,i,t.firstChild,e,o,n,!1)}function OL(t,e,A){let i=e[Re],o=ky(t,A,e),n=A.parent||e[Nt],g=by(n,A,e);vy(i,0,e,A,o,g)}function vy(t,e,A,i,o,n){let g=A[Ot],s=g[Nt].projection[i.projection];if(Array.isArray(s))for(let a=0;a<s.length;a++){let Q=s[a];Ir(e,t,o,Q,n)}else{let a=s,Q=g[It];Pw(i)&&(a.flags|=128),fh(t,e,a,Q,o,n,!0)}}function PL(t,e,A,i,o){let n=A[tg],g=Xi(A);n!==g&&Ir(e,t,i,n,o);for(let r=at;r<A.length;r++){let s=A[r];xB(s[HA],s,t,e,i,n)}}function ZL(t,e,A,i,o){if(e)o?t.addClass(A,i):t.removeClass(A,i);else{let n=i.indexOf("-")===-1?void 0:eo.DashCase;o==null?t.removeStyle(A,i,n):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),n|=eo.Important),t.setStyle(A,i,o,n))}}function sB(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(Xi(n)),xo(n)&&qL(n,i);let g=A.type;if(g&8)sB(t,e,A.child,i);else if(g&32){let r=uh(A,e),s;for(;s=r();)i.push(s)}else if(g&16){let r=Fy(e,A);if(Array.isArray(r))i.push(...r);else{let s=ig(e[Ot]);sB(s[HA],s,r,i,!0)}}A=o?A.projectionNext:A.next}return i}function qL(t,e){for(let A=at;A<t.length;A++){let i=t[A],o=i[HA].firstChild;o!==null&&sB(i[HA],i,o,e)}t[tg]!==t[to]&&e.push(t[tg])}function Sy(t){if(t[Cr]!==null){for(let e of t[Cr])e.impl.addSequence(e);t[Cr].length=0}}var Ny=[];function VL(t){return t[ri]??WL(t)}function WL(t){let e=Ny.pop()??Object.create(jL);return e.lView=t,e}function zL(t){t.lView[ri]!==t&&(t.lView=null,Ny.push(t))}var jL=uA(b({},Vg),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{wr(t.lView)},consumerOnSignalRead(){this.lView[ri]=this}});function XL(t){let e=t[ri]??Object.create($L);return e.lView=t,e}var $L=uA(b({},Vg),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{let e=ig(t.lView);for(;e&&!Gy(e[HA]);)e=ig(e);e&&Qw(e)},consumerOnSignalRead(){this.lView[ri]=this}});function Gy(t){return t.type!==2}function Ly(t){if(t[eg]===null)return;let e=!0;for(;e;){let A=!1;for(let i of t[eg])i.dirty&&(A=!0,i.zone===null||Zone.current===i.zone?i.run():i.zone.run(()=>i.run()));e=A&&!!(t[_A]&8192)}}var A_=100;function _y(t,e=!0,A=0){let o=t[Lo].rendererFactory,n=!1;n||o.begin?.();try{e_(t,A)}catch(g){throw e&&vL(t,g),g}finally{n||o.end?.()}}function e_(t,e){let A=dw();try{$C(!0),ed(t,e);let i=0;for(;kB(t);){if(i===A_)throw new H(103,!1);i++,ed(t,1)}}finally{$C(A)}}function t_(t,e,A,i){if(pr(e))return;let o=e[_A],n=!1,g=!1;jd(e);let r=!0,s=null,a=null;n||(Gy(t)?(a=VL(e),s=Ns(a)):Hc()===null?(r=!1,a=XL(e),s=Ns(a)):e[ri]&&(Gs(e[ri]),e[ri]=null));try{Bw(e),LN(t.bindingStartIndex),A!==null&&yy(t,e,A,2,i);let Q=(o&3)===3;if(!n)if(Q){let m=t.preOrderCheckHooks;m!==null&&JC(e,m,null)}else{let m=t.preOrderHooks;m!==null&&HC(e,m,0,null),El(e,0)}if(g||i_(e),Ly(e),Ky(e,0),t.contentQueries!==null&&iy(t,e),!n)if(Q){let m=t.contentCheckHooks;m!==null&&JC(e,m)}else{let m=t.contentHooks;m!==null&&HC(e,m,1),El(e,1)}n_(t,e);let c=t.components;c!==null&&xy(e,c,0);let f=t.viewQuery;if(f!==null&&Ol(2,f,i),!n)if(Q){let m=t.viewCheckHooks;m!==null&&JC(e,m)}else{let m=t.viewHooks;m!==null&&HC(e,m,2),El(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[Ql]){for(let m of e[Ql])m();e[Ql]=null}n||(Sy(e),e[_A]&=-73)}catch(Q){throw n||wr(e),Q}finally{a!==null&&(iC(a,s),r&&zL(a)),Xd()}}function Ky(t,e){for(let A=Vw(t);A!==null;A=Ww(A))for(let i=at;i<A.length;i++){let o=A[i];Uy(o,e)}}function i_(t){for(let e=Vw(t);e!==null;e=Ww(e)){if(!(e[_A]&2))continue;let A=e[lr];for(let i=0;i<A.length;i++){let o=A[i];Qw(o)}}}function o_(t,e,A){le(18);let i=$i(e,t);Uy(i,A),le(19,i[Pe])}function Uy(t,e){Td(t)&&ed(t,e)}function ed(t,e){let i=t[HA],o=t[_A],n=t[ri],g=!!(e===0&&o&16);if(g||=!!(o&64&&e===0),g||=!!(o&1024),g||=!!(n?.dirty&&oC(n)),g||=!1,n&&(n.dirty=!1),t[_A]&=-9217,g)t_(i,t,i.template,t[Pe]);else if(o&8192){Ly(t),Ky(t,1);let r=i.components;r!==null&&xy(t,r,1),Sy(t)}}function xy(t,e,A){for(let i=0;i<e.length;i++)o_(t,e[i],A)}function n_(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)og(~o);else{let n=o,g=A[++i],r=A[++i];KN(g,n);let s=e[n];le(24,s),r(2,s),le(25,s)}}}finally{og(-1)}}function ph(t,e){let A=dw()?64:1088;for(t[Lo].changeDetectionScheduler?.notify(e);t;){t[_A]|=A;let i=ig(t);if(XC(t)&&!i)return t;t=i}return null}function Yy(t,e,A,i){return[t,!0,0,e,null,i,null,A,null,null]}function Jy(t,e){let A=at+e;if(A<t.length)return t[A]}function Ea(t,e,A,i=!0){let o=e[HA];if(g_(o,e,t,A),i){let g=Ad(A,t),r=e[Re],s=r.parentNode(t[tg]);s!==null&&KL(o,t[Nt],r,e,s,g)}let n=e[cr];n!==null&&n.firstChild!==null&&(n.firstChild=null)}function Hy(t,e){let A=$s(t,e);return A!==void 0&&KB(A[HA],A),A}function $s(t,e){if(t.length<=at)return;let A=at+e,i=t[A];if(i){let o=i[Ag];o!==null&&o!==t&&Dh(o,i),e>0&&(t[A-1][Ri]=i[Ri]);let n=VC(t,at+e);_L(i[HA],i);let g=n[_o];g!==null&&g.detachView(n[HA]),i[It]=null,i[Ri]=null,i[_A]&=-129}return i}function g_(t,e,A,i){let o=at+i,n=A.length;i>0&&(A[o-1][Ri]=e),i<n-at?(e[Ri]=A[o],Wp(A,at+i,e)):(A.push(e),e[Ri]=null),e[It]=A;let g=e[Ag];g!==null&&A!==g&&Ty(g,e);let r=e[_o];r!==null&&r.insertView(t),Nl(e),e[_A]|=128}function Ty(t,e){let A=t[lr],i=e[It];if(Qn(i))t[_A]|=2;else{let o=i[It][Ot];e[Ot]!==o&&(t[_A]|=2)}A===null?t[lr]=[e]:A.push(e)}var Aa=class{_lView;_cdRefInjectingView;notifyErrorHandler;_appRef=null;_attachedToViewContainer=!1;get rootNodes(){let e=this._lView,A=e[HA];return sB(A,e,A.firstChild,[])}constructor(e,A,i=!0){this._lView=e,this._cdRefInjectingView=A,this.notifyErrorHandler=i}get context(){return this._lView[Pe]}set context(e){this._lView[Pe]=e}get destroyed(){return pr(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let e=this._lView[It];if(xo(e)){let A=e[jC],i=A?A.indexOf(this):-1;i>-1&&($s(e,i),VC(A,i))}this._attachedToViewContainer=!1}KB(this._lView[HA],this._lView)}onDestroy(e){Ew(this._lView,e)}markForCheck(){ph(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[_A]&=-129}reattach(){Nl(this._lView),this._lView[_A]|=128}detectChanges(){this._lView[_A]|=1024,_y(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new H(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=XC(this._lView),A=this._lView[Ag];A!==null&&!e&&Dh(A,this._lView),Ry(this._lView[HA],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new H(902,!1);this._appRef=e;let A=XC(this._lView),i=this._lView[Ag];i!==null&&!A&&Ty(i,this._lView),Nl(this._lView)}};var ge=(()=>{class t{static __NG_ELEMENT_ID__=a_}return t})(),r_=ge,s_=class extends r_{_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=Qa(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:A,dehydratedView:i});return new Aa(o)}};function a_(){return YB(nt(),bA())}function YB(t,e){return t.type&4?new s_(e,t,Mr(t,e)):null}function ca(t,e,A,i,o){let n=t.data[e];if(n===null)n=I_(t,e,A,i,o),_N()&&(n.flags|=32);else if(n.type&64){n.type=A,n.value=i,n.attrs=o;let g=NN();n.injectorIndex=g===null?-1:g.injectorIndex}return Cg(n,!0),n}function I_(t,e,A,i,o){let n=lw(),g=qd(),r=g?n:n&&n.parent,s=t.data[e]=B_(t,r,A,e,i,o);return C_(t,s,n,g),s}function C_(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 B_(t,e,A,i,o,n){let g=e?e.injectorIndex:-1,r=0;return cw()&&(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 D9=new RegExp(`^(\\d+)*(${pG}|${fG})*(.*)`);var Q_=()=>null;function ur(t,e){return Q_(t,e)}var E_=class{},Oy=class{},td=class{resolveComponentFactory(e){throw Error(`No component factory found for ${bt(e)}.`)}},JB=class{static NULL=new td},Bt=class{},ae=(()=>{class t{destroyNode=null;static __NG_ELEMENT_ID__=()=>c_()}return t})();function c_(){let t=bA(),e=nt(),A=$i(e.index,t);return(Qn(A)?A:t)[Re]}var l_=(()=>{class t{static \u0275prov=v({token:t,providedIn:"root",factory:()=>null})}return t})();var dl={},id=class{injector;parentInjector;constructor(e,A){this.injector=e,this.parentInjector=A}get(e,A,i){i=fB(i);let o=this.injector.get(e,dl,i);return o!==dl||A===dl?o:this.parentInjector.get(e,A,i)}};function od(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=yl(o,r);else if(n==2){let s=r,a=e[++g];i=yl(i,s+": "+a+";")}}A?t.styles=i:t.stylesWithoutHost=i,A?t.classes=o:t.classesWithoutHost=o}function V(t,e=zA.Default){let A=bA();if(A===null)return Z(t,e);let i=nt();return Nw(i,A,it(t),e)}function Py(){let t="invalid";throw new Error(t)}function wh(t,e,A,i,o){let n=i===null?null:{"":-1},g=o(t,A);if(g!==null){let r,s=null,a=null,Q=h_(g);Q===null?r=g:[r,s,a]=Q,D_(t,e,A,r,n,s,a)}n!==null&&i!==null&&d_(A,i,n)}function d_(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 H(-301,!1);i.push(e[o],n)}}function h_(t){let e=null,A=!1;for(let g=0;g<t.length;g++){let r=t[g];if(g===0&&ki(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,u_(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 u_(t,e,A,i){let o=e.length;t.findHostDirectiveDefs(t,e,i),A.set(t,[o,e.length-1])}function m_(t,e,A){e.componentOffset=A,(t.components??=[]).push(e.index)}function D_(t,e,A,i,o,n,g){let r=i.length,s=!1;for(let f=0;f<r;f++){let m=i[f];!s&&ki(m)&&(s=!0,m_(t,A,f)),Kl(iB(A,e),t,m.type)}R_(A,t.data.length,r);for(let f=0;f<r;f++){let m=i[f];m.providersResolver&&m.providersResolver(m)}let a=!1,Q=!1,c=py(t,e,r,null);r>0&&(A.directiveToIndex=new Map);for(let f=0;f<r;f++){let m=i[f];if(A.mergedAttrs=dr(A.mergedAttrs,m.hostAttrs),p_(t,A,e,c,m),M_(c,m,o),g!==null&&g.has(m)){let[M,K]=g.get(m);A.directiveToIndex.set(m.type,[c,M+A.directiveStart,K+A.directiveStart])}else(n===null||!n.has(m))&&A.directiveToIndex.set(m.type,c);m.contentQueries!==null&&(A.flags|=4),(m.hostBindings!==null||m.hostAttrs!==null||m.hostVars!==0)&&(A.flags|=64);let p=m.type.prototype;!a&&(p.ngOnChanges||p.ngOnInit||p.ngDoCheck)&&((t.preOrderHooks??=[]).push(A.index),a=!0),!Q&&(p.ngOnChanges||p.ngDoCheck)&&((t.preOrderCheckHooks??=[]).push(A.index),Q=!0),c++}f_(t,A,n)}function f_(t,e,A){for(let i=e.directiveStart;i<e.directiveEnd;i++){let o=t.data[i];if(A===null||!A.has(o))dp(0,e,o,i),dp(1,e,o,i),up(e,i,!1);else{let n=A.get(o);hp(0,e,n,i),hp(1,e,n,i),up(e,i,!0)}}}function dp(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),Zy(e,n)}}function hp(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),Zy(e,g)}}function Zy(t,e){e==="class"?t.flags|=8:e==="style"&&(t.flags|=16)}function up(t,e,A){let{attrs:i,inputs:o,hostDirectiveInputs:n}=t;if(i===null||!A&&o===null||A&&n===null||Ch(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 a=o[s];for(let Q of a)if(Q===e){g??=[],g.push(s,i[r+1]);break}}else if(A&&n.hasOwnProperty(s)){let a=n[s];for(let Q=0;Q<a.length;Q+=2)if(a[Q]===e){g??=[],g.push(a[Q+1],i[r+1]);break}}r+=2}t.initialInputs??=[],t.initialInputs.push(g)}function p_(t,e,A,i,o){t.data[i]=o;let n=o.factory||(o.factory=Xn(o.type,!0)),g=new ng(n,ki(o),V);t.blueprint[i]=g,A[i]=g,w_(t,e,i,py(t,A,o.hostVars,vi),o)}function w_(t,e,A,i,o){let n=o.hostBindings;if(n){let g=t.hostBindingOpCodes;g===null&&(g=t.hostBindingOpCodes=[]);let r=~e.index;y_(g)!=r&&g.push(r),g.push(A,i,n)}}function y_(t){let e=t.length;for(;e>0;){let A=t[--e];if(typeof A=="number"&&A<0)return A}return 0}function M_(t,e,A){if(A){if(e.exportAs)for(let i=0;i<e.exportAs.length;i++)A[e.exportAs[i]]=t;ki(e)&&(A[""]=t)}}function R_(t,e,A){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+A,t.providerIndexes=e}function qy(t,e,A,i,o,n,g,r){let s=e.consts,a=cn(s,g),Q=ca(e,t,2,i,a);return n&&wh(e,A,Q,cn(s,r),o),Q.mergedAttrs=dr(Q.mergedAttrs,Q.attrs),Q.attrs!==null&&od(Q,Q.attrs,!1),Q.mergedAttrs!==null&&od(Q,Q.mergedAttrs,!0),e.queries!==null&&e.queries.elementStart(e,Q),Q}function Vy(t,e){$d(t,e),Yd(e)&&t.queries.elementEnd(e)}var aB=class extends JB{ngModule;constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){let A=En(e);return new rg(A,this.ngModule)}};function k_(t){return Object.keys(t).map(e=>{let[A,i,o]=t[e],n={propName:A,templateName:e,isSignal:(i&GB.SignalBased)!==0};return o&&(n.transform=o),n})}function b_(t){return Object.keys(t).map(e=>({propName:t[e],templateName:e}))}function F_(t,e,A){let i=e instanceof Ye?e:e?.injector;return i&&t.getStandaloneInjector!==null&&(i=t.getStandaloneInjector(i)||i),i?new id(A,i):A}function v_(t){let e=t.get(Bt,null);if(e===null)throw new H(407,!1);let A=t.get(l_,null),i=t.get(gg,null);return{rendererFactory:e,sanitizer:A,changeDetectionScheduler:i}}function S_(t,e){let A=(t.selectors[0][0]||"div").toLowerCase();return uy(e,A,A==="svg"?Iw:A==="math"?DN:null)}var rg=class extends Oy{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=k_(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=b_(this.componentDef.outputs),this.cachedOutputs}constructor(e,A){super(),this.componentDef=e,this.ngModule=A,this.componentType=e.type,this.selector=aL(e.selectors),this.ngContentSelectors=e.ngContentSelectors??[],this.isBoundToModule=!!A}create(e,A,i,o){le(22);let n=WA(null);try{let g=this.componentDef,r=i?["ng-version","19.2.9"]:IL(this.componentDef.selectors[0]),s=Bh(0,null,null,1,0,null,null,null,null,[r],null),a=F_(g,o||this.ngModule,e),Q=v_(a),c=Q.rendererFactory.createRenderer(null,g),f=i?mL(c,i,g.encapsulation,a):S_(g,c),m=Qh(null,s,null,512|fy(g),null,null,Q,c,a,null,ty(f,a,!0));m[Ze]=f,jd(m);let p=null;try{let M=qy(Ze,s,m,"#host",()=>[this.componentDef],!0,0);f&&(Dy(c,f,M),Rr(f,m)),LB(s,m,M),sh(s,M,m),Vy(s,M),A!==void 0&&N_(M,this.ngContentSelectors,A),p=$i(M.index,m),m[Pe]=p[Pe],hh(s,m,null)}catch(M){throw p!==null&&Jl(p),Jl(m),M}finally{le(23),Xd()}return new nd(this.componentType,m)}finally{WA(n)}}},nd=class extends E_{_rootLView;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(e,A){super(),this._rootLView=A,this._tNode=Jd(A[HA],Ze),this.location=Mr(this._tNode,A),this.instance=$i(this._tNode.index,A)[Pe],this.hostView=this.changeDetectorRef=new Aa(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=dh(i,o[HA],o,e,A);this.previousInputValues.set(e,A);let g=$i(i.index,o);ph(g,1)}get injector(){return new jn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}};function N_(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 Qe=(()=>{class t{static __NG_ELEMENT_ID__=G_}return t})();function G_(){let t=nt();return zy(t,bA())}var L_=Qe,Wy=class extends L_{_lContainer;_hostTNode;_hostLView;constructor(e,A,i){super(),this._lContainer=e,this._hostTNode=A,this._hostLView=i}get element(){return Mr(this._hostTNode,this._hostLView)}get injector(){return new jn(this._hostTNode,this._hostLView)}get parentInjector(){let e=Ah(this._hostTNode,this._hostLView);if(Rw(e)){let A=eB(e,this._hostLView),i=AB(e),o=A[HA].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=mp(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=ur(this._lContainer,e.ssrId),r=e.createEmbeddedViewImpl(A||{},n,g);return this.insertImpl(r,o,hr(this._hostTNode,g)),r}createComponent(e,A,i,o,n){let g=e&&!dN(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 rg(En(e)),a=i||this.parentInjector;if(!n&&s.ngModule==null){let M=(g?a:this.parentInjector).get(Ye,null);M&&(n=M)}let Q=En(s.componentType??{}),c=ur(this._lContainer,Q?.id??null),f=c?.firstChild??null,m=s.create(a,o,f,n);return this.insertImpl(m.hostView,r,hr(this._hostTNode,c)),m}insert(e,A){return this.insertImpl(e,A,!0)}insertImpl(e,A,i){let o=e._lView;if(wN(o)){let r=this.indexOf(e);if(r!==-1)this.detach(r);else{let s=o[It],a=new Wy(s,s[Nt],s[It]);a.detach(a.indexOf(e))}}let n=this._adjustIndex(A),g=this._lContainer;return Ea(g,o,n,i),e.attachToViewContainerRef(),Wp(hl(g),n,e),e}move(e,A){return this.insert(e,A)}indexOf(e){let A=mp(this._lContainer);return A!==null?A.indexOf(e):-1}remove(e){let A=this._adjustIndex(e,-1),i=$s(this._lContainer,A);i&&(VC(hl(this._lContainer),A),KB(i[HA],i))}detach(e){let A=this._adjustIndex(e,-1),i=$s(this._lContainer,A);return i&&VC(hl(this._lContainer),A)!=null?new Aa(i):null}_adjustIndex(e,A=0){return e??this.length+A}};function mp(t){return t[jC]}function hl(t){return t[jC]||(t[jC]=[])}function zy(t,e){let A,i=e[t.index];return xo(i)?A=i:(A=Yy(i,e,null,t),e[t.index]=A,Eh(e,A)),K_(A,e,t,i),new Wy(A,t,e)}function __(t,e){let A=t[Re],i=A.createComment(""),o=io(e,t),n=A.parentNode(o);return rB(A,n,i,A.nextSibling(o),!1),i}var K_=Y_,U_=()=>!1;function x_(t,e,A){return U_(t,e,A)}function Y_(t,e,A,i){if(t[tg])return;let o;A.type&8?o=Xi(i):o=__(e,A),t[tg]=o}var gd=class t{queryList;matches=null;constructor(e){this.queryList=e}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},rd=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++)Mh(e,A).matches!==null&&this.queries[A].setDirty()}},IB=class{flags;read;predicate;constructor(e,A,i=null){this.flags=A,this.read=i,typeof e=="string"?this.predicate=Z_(e):this.predicate=e}},sd=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)}},ad=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,J_(A,n)),this.matchTNodeWithReadOption(e,A,TC(A,e,n,!1,!1))}else i===ge?A.type&4&&this.matchTNodeWithReadOption(e,A,-1):this.matchTNodeWithReadOption(e,A,TC(A,e,i,!1,!1))}matchTNodeWithReadOption(e,A,i){if(i!==null){let o=this.metadata.read;if(o!==null)if(o===q||o===Qe||o===ge&&A.type&4)this.addMatch(A.index,-2);else{let n=TC(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 J_(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 H_(t,e){return t.type&11?Mr(t,e):t.type&4?YB(t,e):null}function T_(t,e,A,i){return A===-1?H_(e,t):A===-2?O_(t,e,i):js(t,t[HA],A,e)}function O_(t,e,A){if(A===q)return Mr(e,t);if(A===ge)return YB(e,t);if(A===Qe)return zy(e,t)}function jy(t,e,A,i){let o=e[_o].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 a=g[s];if(a<0)r.push(null);else{let Q=n[a];r.push(T_(e,Q,g[s+1],A.metadata.read))}}o.matches=r}return o.matches}function Id(t,e,A,i){let o=t.queries.getByIndex(A),n=o.matches;if(n!==null){let g=jy(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 a=n[r+1],Q=e[-s];for(let c=at;c<Q.length;c++){let f=Q[c];f[Ag]===f[It]&&Id(f[HA],f,a,i)}if(Q[lr]!==null){let c=Q[lr];for(let f=0;f<c.length;f++){let m=c[f];Id(m[HA],m,a,i)}}}}}return i}function yh(t,e){return t[_o].queries[e].queryList}function Xy(t,e,A){let i=new bi((A&4)===4);return RN(t,e,i,i.destroy),(e[_o]??=new rd).queries.push(new gd(i))-1}function P_(t,e,A){let i=me();return i.firstCreatePass&&(A0(i,new IB(t,e,A),-1),(e&2)===2&&(i.staticViewQueries=!0)),Xy(i,bA(),e)}function $y(t,e,A,i){let o=me();if(o.firstCreatePass){let n=nt();A0(o,new IB(e,A,i),n.index),q_(o,t),(A&2)===2&&(o.staticContentQueries=!0)}return Xy(o,bA(),A)}function Z_(t){return t.split(",").map(e=>e.trim())}function A0(t,e,A){t.queries===null&&(t.queries=new sd),t.queries.track(new ad(e,A))}function q_(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 Mh(t,e){return t.queries.getByIndex(e)}function e0(t,e){let A=t[HA],i=Mh(A,e);return i.crossesNgTemplate?Id(A,t,e,[]):jy(A,t,i,e)}function t0(t,e,A){let i,o=rC(()=>{i._dirtyCounter();let n=j_(i,t);if(e&&n===void 0)throw new H(-951,!1);return n});return i=o[Mt],i._dirtyCounter=gt(0),i._flatValue=void 0,o}function V_(t){return t0(!0,!1,t)}function W_(t){return t0(!0,!0,t)}function z_(t,e){let A=t[Mt];A._lView=bA(),A._queryIndex=e,A._queryList=yh(A._lView,e),A._queryList.onDirty(()=>A._dirtyCounter.update(i=>i+1))}function j_(t,e){let A=t._lView,i=t._queryIndex;if(A===void 0||i===void 0||A[_A]&4)return e?void 0:Dt;let o=yh(A,i),n=e0(A,i);return o.reset(n,Tw),e?o.first:o._changesDetected||t._flatValue===void 0?t._flatValue=o.toArray():t._flatValue}function Dp(t,e){return V_(e)}function X_(t,e){return W_(e)}var i0=(Dp.required=X_,Dp);function $_(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(iK))}return n}return CB.forEach((o,n)=>{let g=[];o.templateUrl&&g.push(i(o.templateUrl).then(a=>{o.template=a}));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 a=o.styles.length,Q=o.styleUrls;o.styleUrls.forEach((c,f)=>{r.push(""),g.push(i(c).then(m=>{r[a+f]=m,Q.splice(Q.indexOf(c),1),Q.length==0&&(o.styleUrls=void 0)}))})}else o.styleUrl&&g.push(i(o.styleUrl).then(a=>{r.push(a),o.styleUrl=void 0}));let s=Promise.all(g).then(()=>oK(n));e.push(s)}),eK(),Promise.all(e).then(()=>{})}var CB=new Map,AK=new Set;function eK(){let t=CB;return CB=new Map,t}function tK(){return CB.size===0}function iK(t){return typeof t=="string"?t:t.text()}function oK(t){AK.delete(t)}var Uo=class{},Rh=class{};var BB=class extends Uo{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new aB(this);constructor(e,A,i,o=!0){super(),this.ngModuleType=e,this._parent=A;let n=Xp(e);this._bootstrapComponents=ly(n.bootstrap),this._r3Injector=_w(e,A,[{provide:Uo,useValue:this},{provide:JB,useValue:this.componentFactoryResolver},...i],bt(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)}},QB=class extends Rh{moduleType;constructor(e){super(),this.moduleType=e}create(e){return new BB(this.moduleType,e,[])}};function nK(t,e,A){return new BB(t,e,A,!1)}var Cd=class extends Uo{injector;componentFactoryResolver=new aB(this);instance=null;constructor(e){super();let A=new Ws([...e.providers,{provide:Uo,useValue:this},{provide:JB,useValue:this.componentFactoryResolver}],e.parent||yB(),e.debugName,new Set(["environment"]));this.injector=A,e.runEnvironmentInitializers&&A.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function la(t,e,A=null){return new Cd({providers:t,parent:e,debugName:A,runEnvironmentInitializers:!0}).injector}var gK=(()=>{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=Aw(!1,A.type),o=i.length>0?la([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(Z(Ye))})}return t})();function O(t){return ta(()=>{let e=o0(t),A=uA(b({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Zw.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:e.standalone?o=>o.get(gK).getOrCreateStandaloneInjector(A):null,getExternalStyles:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Ao.Emulated,styles:t.styles||Dt,_:null,schemas:t.schemas||null,tView:null,id:""});e.standalone&&Jo("NgStandalone"),n0(A);let i=t.dependencies;return A.directiveDefs=fp(i,!1),A.pipeDefs=fp(i,!0),A.id=CK(A),A})}function rK(t){return En(t)||$p(t)}function sK(t){return t!==null}function X(t){return ta(()=>({type:t.type,bootstrap:t.bootstrap||Dt,declarations:t.declarations||Dt,imports:t.imports||Dt,exports:t.exports||Dt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function aK(t,e){if(t==null)return ji;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=GB.None,s=null),A[n]=[i,r,s],e[n]=g}return A}function IK(t){if(t==null)return ji;let e={};for(let A in t)t.hasOwnProperty(A)&&(e[t[A]]=A);return e}function T(t){return ta(()=>{let e=o0(t);return n0(e),e})}function HB(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 o0(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||ji,exportAs:t.exportAs||null,standalone:t.standalone??!0,signals:t.signals===!0,selectors:t.selectors||Dt,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:aK(t.inputs,e),outputs:IK(t.outputs),debugInfo:null}}function n0(t){t.features?.forEach(e=>e(t))}function fp(t,e){if(!t)return null;let A=e?nN:rK;return()=>(typeof t=="function"?t():t).map(i=>A(i)).filter(sK)}function CK(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 BK(t){return Object.getPrototypeOf(t.prototype).constructor}function dA(t){let e=BK(t.type),A=!0,i=[t];for(;e;){let o;if(ki(t))o=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new H(903,!1);o=e.\u0275dir}if(o){if(A){i.push(o);let g=t;g.inputs=ul(t.inputs),g.declaredInputs=ul(t.declaredInputs),g.outputs=ul(t.outputs);let r=o.hostBindings;r&&dK(t,r);let s=o.viewQuery,a=o.contentQueries;if(s&&cK(t,s),a&&lK(t,a),QK(t,o),KS(t.outputs,o.outputs),ki(o)&&o.data.animation){let Q=t.data;Q.animation=(Q.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===dA&&(A=!1)}}e=Object.getPrototypeOf(e)}EK(i)}function QK(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 EK(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=dr(o.hostAttrs,A=dr(A,o.hostAttrs))}}function ul(t){return t===ji?{}:t===Dt?[]:t}function cK(t,e){let A=t.viewQuery;A?t.viewQuery=(i,o)=>{e(i,o),A(i,o)}:t.viewQuery=e}function lK(t,e){let A=t.contentQueries;A?t.contentQueries=(i,o,n)=>{e(i,o,n),A(i,o,n)}:t.contentQueries=e}function dK(t,e){let A=t.hostBindings;A?t.hostBindings=(i,o)=>{e(i,o),A(i,o)}:t.hostBindings=e}function g0(t){let e=A=>{let i=Array.isArray(t);A.hostDirectives===null?(A.findHostDirectiveDefs=r0,A.hostDirectives=i?t.map(Bd):[t]):i?A.hostDirectives.unshift(...t.map(Bd)):A.hostDirectives.unshift(t)};return e.ngInherit=!0,e}function r0(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)pp(Bd(n),e,A)}else pp(i,e,A)}function pp(t,e,A){let i=$p(t.directive);hK(i.declaredInputs,t.inputs),r0(i,e,A),A.set(i,t),e.push(i)}function Bd(t){return typeof t=="function"?{directive:it(t),inputs:ji,outputs:ji}:{directive:it(t.directive),inputs:wp(t.inputs),outputs:wp(t.outputs)}}function wp(t){if(t===void 0||t.length===0)return ji;let e={};for(let A=0;A<t.length;A+=2)e[t[A]]=t[A+1];return e}function hK(t,e){for(let A in e)if(e.hasOwnProperty(A)){let i=e[A],o=t[A];t[i]=o}}function s0(t){return kh(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function uK(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 kh(t){return t!==null&&(typeof t=="function"||typeof t=="object")}function bh(t,e,A){return t[e]=A}function mK(t,e){return t[e]}function Pt(t,e,A){let i=t[e];return Object.is(i,A)?!1:(t[e]=A,!0)}function DK(t,e,A,i){let o=Pt(t,e,A);return Pt(t,e+1,i)||o}function fK(t,e,A,i,o,n,g,r,s){let a=e.consts,Q=ca(e,t,4,g||null,r||null);Zd()&&wh(e,A,Q,cn(a,s),lh),Q.mergedAttrs=dr(Q.mergedAttrs,Q.attrs),$d(e,Q);let c=Q.tView=Bh(2,Q,i,o,n,e.directiveRegistry,e.pipeRegistry,null,e.schemas,a,null);return e.queries!==null&&(e.queries.template(e,Q),c.queries=e.queries.embeddedTView(Q)),Q}function EB(t,e,A,i,o,n,g,r,s,a){let Q=A+Ze,c=e.firstCreatePass?fK(Q,e,t,i,o,n,g,r,s):e.data[Q];Cg(c,!1);let f=pK(e,t,c,A);FB()&&UB(e,t,f,c),Rr(f,t);let m=Yy(f,t,f,c);return t[Q]=m,Eh(t,m),x_(m,c,t),RB(c)&&LB(e,t,c),s!=null&&ch(t,c,a),c}function x(t,e,A,i,o,n,g,r){let s=bA(),a=me(),Q=cn(a.consts,n);return EB(s,a,t,e,A,i,o,Q,g,r),x}var pK=wK;function wK(t,e,A,i){return vB(!0),e[Re].createComment("")}var Fh=(()=>{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 vh=new F(""),da=new F(""),TB=(()=>{class t{_ngZone;registry;_isZoneStable=!0;_callbacks=[];taskTrackingZone=null;constructor(A,i,o){this._ngZone=A,this.registry=i,Sh||(yK(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:()=>{tA.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)(Z(tA),Z(OB),Z(da))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})(),OB=(()=>{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 Sh?.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 yK(t){Sh=t}var Sh,a0=(()=>{class t{static \u0275prov=v({token:t,providedIn:"root",factory:()=>new Qd})}return t})(),Qd=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 mn(t){return!!t&&typeof t.then=="function"}function Nh(t){return!!t&&typeof t.subscribe=="function"}var I0=new F("");function Gh(t){return ga([{provide:I0,multi:!0,useValue:t}])}var C0=(()=>{class t{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((A,i)=>{this.resolve=A,this.reject=i});appInits=B(I0,{optional:!0})??[];injector=B(yA);constructor(){}runInitializers(){if(this.initialized)return;let A=[];for(let o of this.appInits){let n=St(this.injector,o);if(mn(n))A.push(n);else if(Nh(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})(),Lh=new F("");function MK(){Zc(()=>{throw new H(600,!1)})}function RK(t){return t.isBoundToModule}var kK=10;function B0(t,e){return Array.isArray(e)?e.reduce(B0,t):b(b({},t),e)}var Zt=(()=>{class t{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=B(QG);afterRenderManager=B(Ay);zonelessEnabled=B(th);rootEffectScheduler=B(a0);dirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new U;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=B(Yo).hasPendingTasks.pipe(sA(A=>!A));constructor(){B(kr,{optional:!0})}whenStable(){let A;return new Promise(i=>{A=this.isStable.subscribe({next:o=>{o&&i()}})}).finally(()=>{A.unsubscribe()})}_injector=B(Ye);_rendererFactory=null;get injector(){return this._injector}bootstrap(A,i){return this.bootstrapImpl(A,i)}bootstrapImpl(A,i,o=yA.NULL){le(10);let n=A instanceof Oy;if(!this._injector.get(C0).done){let m="";throw new H(405,m)}let r;n?r=A:r=this._injector.get(JB).resolveComponentFactory(A),this.componentTypes.push(r.componentType);let s=RK(r)?void 0:this._injector.get(Uo),a=i||r.selector,Q=r.create(o,[],a,s),c=Q.location.nativeElement,f=Q.injector.get(vh,null);return f?.registerApplication(c),Q.onDestroy(()=>{this.detachView(Q.hostView),OC(this.components,Q),f?.unregisterApplication(c)}),this._loadComponent(Q),le(11,Q),Q}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){le(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(gh.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new H(101,!1);let A=WA(null);try{this._runningTick=!0,this.synchronize()}catch(i){this.internalErrorHandler(i)}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,WA(A),this.afterTick.next(),le(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Bt,null,{optional:!0}));let A=0;for(;this.dirtyFlags!==0&&A++<kK;)le(14),this.synchronizeOnce(),le(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)bK(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})=>kB(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;OC(this._views,i),i.detachFromAppRef()}_loadComponent(A){this.attachView(A.hostView),this.tick(),this.components.push(A),this._injector.get(Lh,[]).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),()=>OC(this._destroyListeners,A)}destroy(){if(this._destroyed)throw new H(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 OC(t,e){let A=t.indexOf(e);A>-1&&t.splice(A,1)}function bK(t,e,A,i){if(!A&&!kB(t))return;_y(t,e,A&&!i?0:1)}function aA(t,e,A,i){let o=bA(),n=ln();if(Pt(o,n,e)){let g=me(),r=sa();kL(r,o,t,e,A,i)}return aA}function Q0(t,e,A,i){return Pt(t,ln(),A)?e+ia(A)+i:vi}function UC(t,e){return t<<17|e<<2}function sg(t){return t>>17&32767}function FK(t){return(t&2)==2}function vK(t,e){return t&131071|e<<17}function Ed(t){return t|2}function mr(t){return(t&131068)>>2}function ml(t,e){return t&-131069|e<<2}function SK(t){return(t&1)===1}function cd(t){return t|1}function NK(t,e,A,i,o,n){let g=n?e.classBindings:e.styleBindings,r=sg(g),s=mr(g);t[i]=A;let a=!1,Q;if(Array.isArray(A)){let c=A;Q=c[1],(Q===null||na(c,Q)>0)&&(a=!0)}else Q=A;if(o)if(s!==0){let f=sg(t[r+1]);t[i+1]=UC(f,r),f!==0&&(t[f+1]=ml(t[f+1],i)),t[r+1]=vK(t[r+1],i)}else t[i+1]=UC(r,0),r!==0&&(t[r+1]=ml(t[r+1],i)),r=i;else t[i+1]=UC(s,0),r===0?r=i:t[s+1]=ml(t[s+1],i),s=i;a&&(t[i+1]=Ed(t[i+1])),yp(t,Q,i,!0),yp(t,Q,i,!1),GK(e,Q,t,i,n),g=UC(r,s),n?e.classBindings=g:e.styleBindings=g}function GK(t,e,A,i,o){let n=o?t.residualClasses:t.residualStyles;n!=null&&typeof e=="string"&&na(n,e)>=0&&(A[i+1]=cd(A[i+1]))}function yp(t,e,A,i){let o=t[A+1],n=e===null,g=i?sg(o):mr(o),r=!1;for(;g!==0&&(r===!1||n);){let s=t[g],a=t[g+1];LK(s,e)&&(r=!0,t[g+1]=i?cd(a):Ed(a)),g=i?sg(a):mr(a)}r&&(t[A+1]=i?Ed(o):cd(o))}function LK(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?na(t,e)>=0:!1}var Mi={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function _K(t){return t.substring(Mi.key,Mi.keyEnd)}function KK(t){return UK(t),E0(t,c0(t,0,Mi.textEnd))}function E0(t,e){let A=Mi.textEnd;return A===e?-1:(e=Mi.keyEnd=xK(t,Mi.key=e,A),c0(t,e,A))}function UK(t){Mi.key=0,Mi.keyEnd=0,Mi.value=0,Mi.valueEnd=0,Mi.textEnd=t.length}function c0(t,e,A){for(;e<A&&t.charCodeAt(e)<=32;)e++;return e}function xK(t,e,A){for(;e<A&&t.charCodeAt(e)>32;)e++;return e}function L(t,e,A){let i=bA(),o=ln();if(Pt(i,o,e)){let n=me(),g=sa();_B(n,g,i,t,e,i[Re],A,!1)}return L}function ld(t,e,A,i,o){dh(e,t,A,o?"class":"style",i)}function qe(t,e,A){return d0(t,e,A,!1),qe}function nA(t,e){return d0(t,e,null,!0),nA}function Je(t){h0(PK,l0,t,!0)}function l0(t,e){for(let A=KK(e);A>=0;A=E0(e,A))pB(t,_K(e),!0)}function d0(t,e,A,i){let o=bA(),n=me(),g=hw(2);if(n.firstUpdatePass&&m0(n,t,g,i),e!==vi&&Pt(o,g,e)){let r=n.data[dn()];D0(n,r,o,o[Re],t,o[g+1]=qK(e,A),i,g)}}function h0(t,e,A,i){let o=me(),n=hw(2);o.firstUpdatePass&&m0(o,null,n,i);let g=bA();if(A!==vi&&Pt(g,n,A)){let r=o.data[dn()];if(f0(r,i)&&!u0(o,n)){let s=i?r.classesWithoutHost:r.stylesWithoutHost;s!==null&&(A=yl(s,A||"")),ld(o,r,g,A,i)}else ZK(o,r,g,g[Re],g[n+1],g[n+1]=OK(t,e,A),i,n)}}function u0(t,e){return e>=t.expandoStartIndex}function m0(t,e,A,i){let o=t.data;if(o[A+1]===null){let n=o[dn()],g=u0(t,A);f0(n,i)&&e===null&&!g&&(e=!1),e=YK(o,n,e,i),NK(o,n,e,A,g,i)}}function YK(t,e,A,i){let o=Wd(t),n=i?e.residualClasses:e.residualStyles;if(o===null)(i?e.classBindings:e.styleBindings)===0&&(A=Dl(null,t,e,A,i),A=ea(A,e.attrs,i),n=null);else{let g=e.directiveStylingLast;if(g===-1||t[g]!==o)if(A=Dl(o,t,e,A,i),n===null){let s=JK(t,e,i);s!==void 0&&Array.isArray(s)&&(s=Dl(null,t,e,s[1],i),s=ea(s,e.attrs,i),HK(t,e,i,s))}else n=TK(t,e,i)}return n!==void 0&&(i?e.residualClasses=n:e.residualStyles=n),A}function JK(t,e,A){let i=A?e.classBindings:e.styleBindings;if(mr(i)!==0)return t[sg(i)]}function HK(t,e,A,i){let o=A?e.classBindings:e.styleBindings;t[sg(o)]=i}function TK(t,e,A){let i,o=e.directiveEnd;for(let n=1+e.directiveStylingLast;n<o;n++){let g=t[n].hostAttrs;i=ea(i,g,A)}return ea(i,e.attrs,A)}function Dl(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=ea(i,n.hostAttrs,o),n!==t);)r++;return t!==null&&(A.directiveStylingLast=r),i}function ea(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]),pB(t,g,A?!0:e[++n]))}return t===void 0?null:t}function OK(t,e,A){if(A==null||A==="")return Dt;let i=[],o=Fi(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 PK(t,e,A){let i=String(e);i!==""&&!i.includes(" ")&&pB(t,i,A)}function ZK(t,e,A,i,o,n,g,r){o===vi&&(o=Dt);let s=0,a=0,Q=0<o.length?o[0]:null,c=0<n.length?n[0]:null;for(;Q!==null||c!==null;){let f=s<o.length?o[s+1]:void 0,m=a<n.length?n[a+1]:void 0,p=null,M;Q===c?(s+=2,a+=2,f!==m&&(p=c,M=m)):c===null||Q!==null&&Q<c?(s+=2,p=Q):(a+=2,p=c,M=m),p!==null&&D0(t,e,A,i,p,M,g,r),Q=s<o.length?o[s]:null,c=a<n.length?n[a]:null}}function D0(t,e,A,i,o,n,g,r){if(!(e.type&3))return;let s=t.data,a=s[r+1],Q=SK(a)?Mp(s,e,A,o,mr(a),g):void 0;if(!cB(Q)){cB(n)||FK(a)&&(n=Mp(s,null,A,o,r,g));let c=Cw(dn(),A);ZL(i,g,c,o,n)}}function Mp(t,e,A,i,o,n){let g=e===null,r;for(;o>0;){let s=t[o],a=Array.isArray(s),Q=a?s[1]:s,c=Q===null,f=A[o+1];f===vi&&(f=c?Dt:void 0);let m=c?Cl(f,i):Q===i?f:void 0;if(a&&!cB(m)&&(m=Cl(s,i)),cB(m)&&(r=m,g))return r;let p=t[o+1];o=g?sg(p):mr(p)}if(e!==null){let s=n?e.residualClasses:e.residualStyles;s!=null&&(r=Cl(s,i))}return r}function cB(t){return t!==void 0}function qK(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=bt(Fi(t)))),t}function f0(t,e){return(t.flags&(e?8:16))!==0}function p0(t,e,A){let i=bA(),o=Q0(i,t,e,A);h0(pB,l0,o,!0)}var dd=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 fl(t,e,A,i,o){return t===A&&Object.is(e,i)?1:Object.is(o(t,e),o(A,i))?-1:0}function VK(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 a=t.at(n),Q=e[n],c=fl(n,a,n,Q,A);if(c!==0){c<0&&t.updateValue(n,Q),n++;continue}let f=t.at(g),m=e[s],p=fl(g,f,s,m,A);if(p!==0){p<0&&t.updateValue(g,m),g--,s--;continue}let M=A(n,a),K=A(g,f),W=A(n,Q);if(Object.is(W,K)){let DA=A(s,m);Object.is(DA,M)?(t.swap(n,g),t.updateValue(g,m),s--,g--):t.move(g,n),t.updateValue(n,Q),n++;continue}if(i??=new lB,o??=kp(t,n,g,A),hd(t,i,n,W))t.updateValue(n,Q),n++,g++;else if(o.has(W))i.set(M,t.detach(n)),g--;else{let DA=t.create(n,e[n]);t.attach(n,DA),n++,g++}}for(;n<=s;)Rp(t,i,A,n,e[n]),n++}else if(e!=null){let s=e[Symbol.iterator](),a=s.next();for(;!a.done&&n<=g;){let Q=t.at(n),c=a.value,f=fl(n,Q,n,c,A);if(f!==0)f<0&&t.updateValue(n,c),n++,a=s.next();else{i??=new lB,o??=kp(t,n,g,A);let m=A(n,c);if(hd(t,i,n,m))t.updateValue(n,c),n++,g++,a=s.next();else if(!o.has(m))t.attach(n,t.create(n,c)),n++,g++,a=s.next();else{let p=A(n,Q);i.set(p,t.detach(n)),g--}}}for(;!a.done;)Rp(t,i,A,t.length,a.value),a=s.next()}for(;n<=g;)t.destroy(t.detach(g--));i?.forEach(s=>{t.destroy(s)})}function hd(t,e,A,i){return e!==void 0&&e.has(i)?(t.attach(A,e.get(i)),e.delete(i),!0):!1}function Rp(t,e,A,i,o){if(hd(t,e,i,A(i,o)))t.updateValue(i,o);else{let n=t.create(i,o);t.attach(i,n)}}function kp(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 lB=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 _(t,e){Jo("NgControlFlow");let A=bA(),i=ln(),o=A[i]!==vi?A[i]:-1,n=o!==-1?dB(A,Ze+o):void 0,g=0;if(Pt(A,i,t)){let r=WA(null);try{if(n!==void 0&&Hy(n,g),t!==-1){let s=Ze+t,a=dB(A,s),Q=fd(A[HA],s),c=ur(a,Q.tView.ssrId),f=Qa(A,Q,e,{dehydratedView:c});Ea(a,f,g,hr(Q,c))}}finally{WA(r)}}else if(n!==void 0){let r=Jy(n,g);r!==void 0&&(r[Pe]=e)}}var ud=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 De(t,e){return e}var md=class{hasEmptyBlock;trackByFn;liveCollection;constructor(e,A,i){this.hasEmptyBlock=e,this.trackByFn=A,this.liveCollection=i}};function fe(t,e,A,i,o,n,g,r,s,a,Q,c,f){Jo("NgControlFlow");let m=bA(),p=me(),M=s!==void 0,K=bA(),W=r?g.bind(K[Ot][Pe]):g,DA=new md(M,W);K[Ze+t]=DA,EB(m,p,t+1,e,A,i,o,cn(p.consts,n)),M&&EB(m,p,t+2,s,a,Q,c,cn(p.consts,f))}var Dd=class extends dd{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)[Pe].$implicit}attach(e,A){let i=A[cr];this.needsIndexUpdate||=e!==this.length,Ea(this.lContainer,A,e,hr(this.templateTNode,i))}detach(e){return this.needsIndexUpdate||=e!==this.length-1,WK(this.lContainer,e)}create(e,A){let i=ur(this.lContainer,this.templateTNode.tView.ssrId),o=Qa(this.hostLView,this.templateTNode,new ud(this.lContainer,A,e),{dehydratedView:i});return this.operationsCounter?.recordCreate(),o}destroy(e){KB(e[HA],e),this.operationsCounter?.recordDestroy()}updateValue(e,A){this.getLView(e)[Pe].$implicit=A}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e<this.length;e++)this.getLView(e)[Pe].$index=e}getLView(e){return zK(this.lContainer,e)}};function pe(t){let e=WA(null),A=dn();try{let i=bA(),o=i[HA],n=i[A],g=A+1,r=dB(i,g);if(n.liveCollection===void 0){let a=fd(o,g);n.liveCollection=new Dd(r,i,a)}else n.liveCollection.reset();let s=n.liveCollection;if(VK(s,t,n.trackByFn),s.updateIndexes(),n.hasEmptyBlock){let a=ln(),Q=s.length===0;if(Pt(i,a,Q)){let c=A+2,f=dB(i,c);if(Q){let m=fd(o,c),p=ur(f,m.tView.ssrId),M=Qa(i,m,void 0,{dehydratedView:p});Ea(f,M,0,hr(m,p))}else Hy(f,0)}}}finally{WA(e)}}function dB(t,e){return t[e]}function WK(t,e){return $s(t,e)}function zK(t,e){return Jy(t,e)}function fd(t,e){return Jd(t,e)}function d(t,e,A,i){let o=bA(),n=me(),g=Ze+t,r=o[Re],s=n.firstCreatePass?qy(g,n,o,e,lh,Zd(),A,i):n.data[g],a=jK(n,o,s,r,e,t);o[g]=a;let Q=RB(s);return Cg(s,!0),Dy(r,a,s),!mh(s)&&FB()&&UB(n,o,a,s),(kN()===0||Q)&&Rr(a,o),bN(),Q&&(LB(n,o,s),sh(n,s,o)),i!==null&&ch(o,s),d}function h(){let t=nt();qd()?Vd():(t=t.parent,Cg(t,!1));let e=t;vN(e)&&SN(),FN();let A=me();return A.firstCreatePass&&Vy(A,e),e.classesWithoutHost!=null&&PN(e)&&ld(A,e,bA(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&ZN(e)&&ld(A,e,bA(),e.stylesWithoutHost,!1),h}function P(t,e,A,i){return d(t,e,A,i),h(),P}var jK=(t,e,A,i,o,n)=>(vB(!0),uy(i,o,HN()));function XK(t,e,A,i,o){let n=e.consts,g=cn(n,i),r=ca(e,t,8,"ng-container",g);g!==null&&od(r,g,!0);let s=cn(n,o);return Zd()&&wh(e,A,r,s,lh),r.mergedAttrs=dr(r.mergedAttrs,r.attrs),e.queries!==null&&e.queries.elementStart(e,r),r}function Dn(t,e,A){let i=bA(),o=me(),n=t+Ze,g=o.firstCreatePass?XK(n,o,i,e,A):o.data[n];Cg(g,!0);let r=$K(o,i,g,t);return i[n]=r,FB()&&UB(o,i,r,g),Rr(r,i),RB(g)&&(LB(o,i,g),sh(o,g,i)),A!=null&&ch(i,g),Dn}function fn(){let t=nt(),e=me();return qd()?Vd():(t=t.parent,Cg(t,!1)),e.firstCreatePass&&($d(e,t),Yd(t)&&e.queries.elementEnd(t)),fn}function Ve(t,e,A){return Dn(t,e,A),fn(),Ve}var $K=(t,e,A,i)=>(vB(!0),QL(e[Re],""));function rA(){return bA()}function ft(t,e,A){let i=bA(),o=ln();if(Pt(i,o,e)){let n=me(),g=sa();_B(n,g,i,t,e,i[Re],A,!0)}return ft}function _h(t,e,A){let i=bA(),o=ln();if(Pt(i,o,e)){let n=me(),g=sa(),r=Wd(n.data),s=My(r,g,i);_B(n,g,i,t,e,s,A,!0)}return _h}var hB="en-US";var AU=hB;function eU(t){typeof t=="string"&&(AU=t.toLowerCase().replace(/_/g,"-"))}function bp(t,e,A){return function i(o){if(o===Function)return A;let n=fr(t)?$i(t.index,e):e;ph(n,5);let g=e[Pe],r=Fp(e,g,A,o),s=i.__ngNextListenerFn__;for(;s;)r=Fp(e,g,s,o)&&r,s=s.__ngNextListenerFn__;return r}}function Fp(t,e,A,i){let o=WA(null);try{return le(6,e,A),A(i)!==!1}catch(n){return tU(t,n),!1}finally{le(7,e,A),WA(o)}}function tU(t,e){let A=t[$n],i=A?A.get(vt,null):null;i&&i.handleError(e)}function vp(t,e,A,i,o,n){let g=e[A],r=e[HA],a=r.data[A].outputs[i],Q=g[a],c=r.firstCreatePass?Pd(r):null,f=Od(e),m=Q.subscribe(n),p=f.length;f.push(n,m),c&&c.push(o,t.index,p,-(p+1))}var iU=new Map;function G(t,e,A,i){let o=bA(),n=me(),g=nt();return Uh(n,o,o[Re],g,t,e,i),G}function Kh(t,e){let A=nt(),i=bA(),o=me(),n=Wd(o.data),g=My(n,A,i);return Uh(o,i,g,A,t,e),Kh}function oU(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[zC],s=o[n+2];return r.length>s?r[s]:null}typeof g=="string"&&(n+=2)}return null}function Uh(t,e,A,i,o,n,g){let r=RB(i),a=t.firstCreatePass?Pd(t):null,Q=Od(e),c=!0;if(i.type&3||g){let f=io(i,e),m=g?g(f):f,p=Q.length,M=g?W=>g(Xi(W[i.index])):i.index,K=null;if(!g&&r&&(K=oU(t,e,o,i.index)),K!==null){let W=K.__ngLastListenerFn__||K;W.__ngNextListenerFn__=n,K.__ngLastListenerFn__=n,c=!1}else{n=bp(i,e,n);let W=e[$n].get(Qg);iU.get(W)?.(m,o,n);let YA=A.listen(m,o,n);Q.push(n,YA),a&&a.push(o,M,p,p+1)}}else n=bp(i,e,n);if(c){let f=i.outputs?.[o],m=i.hostDirectiveOutputs?.[o];if(m&&m.length)for(let p=0;p<m.length;p+=2){let M=m[p],K=m[p+1];vp(i,e,M,K,o,n)}if(f&&f.length)for(let p of f)vp(i,e,p,o,o,n)}}function y(t=1){return YN(t)}function nU(t,e){let A=null,i=oL(t);for(let o=0;o<e.length;o++){let n=e[o];if(n==="*"){A=o;continue}if(i===null?hy(t,n,!0):rL(i,n))return o}return A}function OA(t){let e=bA()[Ot][Nt];if(!e.projection){let A=t?t.length:1,i=e.projection=tN(A,null),o=i.slice(),n=e.child;for(;n!==null;){if(n.type!==128){let g=t?nU(n,t):0;g!==null&&(o[g]?o[g].projectionNext=n:i[g]=n,o[g]=n)}n=n.next}}}function IA(t,e=0,A,i,o,n){let g=bA(),r=me(),s=i?t+1:null;s!==null&&EB(g,r,s,i,o,n,null,A);let a=ca(r,Ze+t,16,null,A||null);a.projection===null&&(a.projection=e),Vd();let c=!g[cr]||cw();g[Ot][Nt].projection[a.projection]===null&&s!==null?gU(g,r,s):c&&!mh(a)&&OL(r,g,a)}function gU(t,e,A){let i=Ze+A,o=e.data[i],n=t[i],g=ur(n,o.tView.ssrId),r=Qa(t,o,void 0,{dehydratedView:g});Ea(n,r,0,hr(o,g))}function XA(t,e,A,i){$y(t,e,A,i)}function QA(t,e,A){P_(t,e,A)}function $(t){let e=bA(),A=me(),i=zd();bB(i+1);let o=Mh(A,i);if(t.dirty&&pN(e)===((o.metadata.flags&2)===2)){if(o.matches===null)t.reset([]);else{let n=e0(e,i);t.reset(n,Tw),t.notifyOnChanges()}return!0}return!1}function AA(){return yh(bA(),zd())}function w0(t,e,A,i,o){z_(e,$y(t,A,i,o))}function y0(t=1){bB(zd()+t)}function rU(t,e,A,i){A>=t.data.length&&(t.data[A]=null,t.blueprint[A]=null),e[A]=i}function _e(t){let e=GN();return Hd(e,Ze+t)}function k(t,e=""){let A=bA(),i=me(),o=t+Ze,n=i.firstCreatePass?ca(i,o,1,e,null):i.data[o],g=sU(i,A,n,e,t);A[o]=g,FB()&&UB(i,A,g,n),Cg(n,!1)}var sU=(t,e,A,i,o)=>(vB(!0),CL(e[Re],i));function KA(t){return NA("",t,""),KA}function NA(t,e,A){let i=bA(),o=Q0(i,t,e,A);return o!==vi&&aU(i,dn(),o),NA}function aU(t,e,A){let i=Cw(e,t);BL(t[Re],i,A)}function Vt(t,e,A){Ow(e)&&(e=e());let i=bA(),o=ln();if(Pt(i,o,e)){let n=me(),g=sa();_B(n,g,i,t,e,i[Re],A,!1)}return Vt}function ai(t,e){let A=Ow(t);return A&&t.set(e),A}function Wt(t,e){let A=bA(),i=me(),o=nt();return Uh(i,A,A[Re],o,t,e),Wt}function IU(t,e,A){let i=me();if(i.firstCreatePass){let o=ki(t);pd(A,i.data,i.blueprint,o,!0),pd(e,i.data,i.blueprint,o,!1)}}function pd(t,e,A,i,o){if(t=it(t),Array.isArray(t))for(let n=0;n<t.length;n++)pd(t[n],e,A,i,o);else{let n=me(),g=bA(),r=nt(),s=Er(t)?t:it(t.provide),a=iw(t),Q=r.providerIndexes&1048575,c=r.directiveStart,f=r.providerIndexes>>20;if(Er(t)||!t.multi){let m=new ng(a,o,V),p=wl(s,e,o?Q:Q+f,c);p===-1?(Kl(iB(r,g),n,s),pl(n,t,e.length),e.push(s),r.directiveStart++,r.directiveEnd++,o&&(r.providerIndexes+=1048576),A.push(m),g.push(m)):(A[p]=m,g[p]=m)}else{let m=wl(s,e,Q+f,c),p=wl(s,e,Q,Q+f),M=m>=0&&A[m],K=p>=0&&A[p];if(o&&!K||!o&&!M){Kl(iB(r,g),n,s);let W=QU(o?BU:CU,A.length,o,i,a);!o&&K&&(A[p].providerFactory=W),pl(n,t,e.length,0),e.push(s),r.directiveStart++,r.directiveEnd++,o&&(r.providerIndexes+=1048576),A.push(W),g.push(W)}else{let W=M0(A[o?p:m],a,!o&&i);pl(n,t,m>-1?m:p,W)}!o&&i&&K&&A[p].componentProviders++}}}function pl(t,e,A,i){let o=Er(e),n=IN(e);if(o||n){let s=(n?it(e.useClass):e).prototype.ngOnDestroy;if(s){let a=t.destroyHooks||(t.destroyHooks=[]);if(!o&&e.multi){let Q=a.indexOf(A);Q===-1?a.push(A,[i,s]):a[Q+1].push(i,s)}else a.push(A,s)}}}function M0(t,e,A){return A&&t.componentProviders++,t.multi.push(e)-1}function wl(t,e,A,i){for(let o=A;o<i;o++)if(e[o]===t)return o;return-1}function CU(t,e,A,i){return wd(this.multi,[])}function BU(t,e,A,i){let o=this.multi,n;if(this.providerFactory){let g=this.providerFactory.componentProviders,r=js(A,A[HA],this.providerFactory.index,i);n=r.slice(0,g),wd(o,n);for(let s=g;s<r.length;s++)n.push(r[s])}else n=[],wd(o,n);return n}function wd(t,e){for(let A=0;A<t.length;A++){let i=t[A];e.push(i())}return e}function QU(t,e,A,i,o){let n=new ng(t,A,V);return n.multi=[],n.index=e,n.componentProviders=0,M0(n,o,i&&!A),n}function FA(t,e=[]){return A=>{A.providersResolver=(i,o)=>IU(i,o?o(t):t,e)}}function PB(t,e,A){let i=ra()+t,o=bA();return o[i]===vi?bh(o,i,A?e.call(A):e()):mK(o,i)}function pn(t,e,A,i){return k0(bA(),ra(),t,e,A,i)}function wn(t,e,A,i,o){return b0(bA(),ra(),t,e,A,i,o)}function R0(t,e){let A=t[e];return A===vi?void 0:A}function k0(t,e,A,i,o,n){let g=e+A;return Pt(t,g,o)?bh(t,g+1,n?i.call(n,o):i(o)):R0(t,g+1)}function b0(t,e,A,i,o,n,g){let r=e+A;return DK(t,r,o,n)?bh(t,r+2,g?i.call(g,o,n):i(o,n)):R0(t,r+2)}function To(t,e){let A=me(),i,o=t+Ze;A.firstCreatePass?(i=EU(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=Xn(i.type,!0)),g,r=kt(V);try{let s=tB(!1),a=n();return tB(s),rU(A,bA(),o,a),a}finally{kt(r)}}function EU(t,e){if(e)for(let A=e.length-1;A>=0;A--){let i=e[A];if(t===i.name)return i}}function br(t,e,A){let i=t+Ze,o=bA(),n=Hd(o,i);return F0(o,i)?k0(o,ra(),e,n.transform,A,n):n.transform(A)}function xh(t,e,A,i){let o=t+Ze,n=bA(),g=Hd(n,o);return F0(n,o)?b0(n,ra(),e,g.transform,A,i,g):g.transform(A,i)}function F0(t,e){return t[HA].data[e].pure}function ha(t,e){return YB(t,e)}var xC=null;function cU(t){xC!==null&&(t.defaultEncapsulation!==xC.defaultEncapsulation||t.preserveWhitespaces!==xC.preserveWhitespaces)||(xC=t)}var ag=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(".")}},Yh=new ag("19.2.9"),yd=class{ngModuleFactory;componentFactories;constructor(e,A){this.ngModuleFactory=e,this.componentFactories=A}},v0=(()=>{class t{compileModuleSync(A){return new QB(A)}compileModuleAsync(A){return Promise.resolve(this.compileModuleSync(A))}compileModuleAndAllComponentsSync(A){let i=this.compileModuleSync(A),o=Xp(A),n=ly(o.declarations).reduce((g,r)=>{let s=En(r);return s&&g.push(new rg(s)),g},[]);return new yd(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})(),lU=new F("");function dU(t,e,A){let i=new QB(A);return Promise.resolve(i)}function Sp(t){for(let e=t.length-1;e>=0;e--)if(t[e]!==void 0)return t[e]}var hU=(()=>{class t{zone=B(tA);changeDetectionScheduler=B(gg);applicationRef=B(Zt);_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 uU({ngZoneFactory:t,ignoreChangesOutsideZone:e,scheduleInRootZone:A}){return t??=()=>new tA(uA(b({},S0()),{scheduleInRootZone:A})),[{provide:tA,useFactory:t},{provide:Qr,multi:!0,useFactory:()=>{let i=B(hU,{optional:!0});return()=>i.initialize()}},{provide:Qr,multi:!0,useFactory:()=>{let i=B(mU);return()=>{i.initialize()}}},e===!0?{provide:Uw,useValue:!0}:[],{provide:xw,useValue:A??Kw}]}function S0(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var mU=(()=>{class t{subscription=new GA;initialized=!1;zone=B(tA);pendingTasks=B(Yo);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(()=>{tA.assertNotInAngularZone(),queueMicrotask(()=>{A!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(A),A=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{tA.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 DU=(()=>{class t{appRef=B(Zt);taskService=B(Yo);ngZone=B(tA);zonelessEnabled=B(th);tracing=B(kr,{optional:!0});disableScheduling=B(Uw,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new GA;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(nB):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(B(xw,{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 gB||!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?ip:Yw;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(nB+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,ip(()=>{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 fU(){return typeof $localize<"u"&&$localize.locale||hB}var ZB=new F("",{providedIn:"root",factory:()=>B(ZB,zA.Optional|zA.SkipSelf)||fU()});var uB=new F(""),pU=new F("");function Os(t){return!t.moduleRef}function wU(t){let e=Os(t)?t.r3Injector:t.moduleRef.injector,A=e.get(tA);return A.run(()=>{Os(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let i=e.get(vt,null),o;if(A.runOutsideAngular(()=>{o=A.onError.subscribe({next:n=>{i.handleError(n)}})}),Os(t)){let n=()=>e.destroy(),g=t.platformInjector.get(uB);g.add(n),e.onDestroy(()=>{o.unsubscribe(),g.delete(n)})}else{let n=()=>t.moduleRef.destroy(),g=t.platformInjector.get(uB);g.add(n),t.moduleRef.onDestroy(()=>{OC(t.allPlatformModules,t.moduleRef),o.unsubscribe(),g.delete(n)})}return MU(i,A,()=>{let n=e.get(C0);return n.runInitializers(),n.donePromise.then(()=>{let g=e.get(ZB,hB);if(eU(g||hB),!e.get(pU,!0))return Os(t)?e.get(Zt):(t.allPlatformModules.push(t.moduleRef),t.moduleRef);if(Os(t)){let s=e.get(Zt);return t.rootComponent!==void 0&&s.bootstrap(t.rootComponent),s}else return yU(t.moduleRef,t.allPlatformModules),t.moduleRef})})})}function yU(t,e){let A=t.injector.get(Zt);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(i=>A.bootstrap(i));else if(t.instance.ngDoBootstrap)t.instance.ngDoBootstrap(A);else throw new H(-403,!1);e.push(t)}function MU(t,e,A){try{let i=A();return mn(i)?i.catch(o=>{throw e.runOutsideAngular(()=>t.handleError(o)),o}):i}catch(i){throw e.runOutsideAngular(()=>t.handleError(i)),i}}var N0=(()=>{class t{_injector;_modules=[];_destroyListeners=[];_destroyed=!1;constructor(A){this._injector=A}bootstrapModuleFactory(A,i){let o=i?.scheduleInRootZone,n=()=>BG(i?.ngZone,uA(b({},S0({eventCoalescing:i?.ngZoneEventCoalescing,runCoalescing:i?.ngZoneRunCoalescing})),{scheduleInRootZone:o})),g=i?.ignoreChangesOutsideZone,r=[uU({ngZoneFactory:n,ignoreChangesOutsideZone:g}),{provide:gg,useExisting:DU}],s=nK(A.moduleType,this.injector,r);return wU({moduleRef:s,allPlatformModules:this._modules,platformInjector:this.injector})}bootstrapModule(A,i=[]){let o=B0({},i);return dU(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 H(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());let A=this._injector.get(uB,null);A&&(A.forEach(i=>i()),A.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static \u0275fac=function(i){return new(i||t)(Z(yA))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})(),Vs=null,G0=new F("");function RU(t){if(Vs&&!Vs.get(G0,!1))throw new H(400,!1);MK(),Vs=t;let e=t.get(N0);return FU(t),e}function Jh(t,e,A=[]){let i=`Platform: ${e}`,o=new F(i);return(n=[])=>{let g=L0();if(!g||g.injector.get(G0,!1)){let r=[...A,...n,{provide:o,useValue:!0}];t?t(r):RU(kU(r,i))}return bU(o)}}function kU(t=[],e){return yA.create({name:e,providers:[{provide:wB,useValue:"platform"},{provide:uB,useValue:new Set([()=>Vs=null])},...t]})}function bU(t){let e=L0();if(!e)throw new H(401,!1);return e}function L0(){return Vs?.get(N0)??null}function FU(t){let e=t.get(nh,null);St(t,()=>{e?.forEach(A=>A())})}var UA=(()=>{class t{static __NG_ELEMENT_ID__=vU}return t})();function vU(t){return SU(nt(),bA(),(t&16)===16)}function SU(t,e,A){if(fr(t)&&!A){let i=$i(t.index,e);return new Aa(i,i)}else if(t.type&175){let i=e[Ot];return new Aa(i,e)}return null}var Md=class{constructor(){}supports(e){return s0(e)}create(e){return new Rd(e)}},NU=(t,e)=>e,Rd=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||NU}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<Np(i,o,n)?A:i,r=Np(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 a=r-o,Q=s-o;if(a!=Q){for(let f=0;f<a;f++){let m=f<n.length?n[f]:n[f]=0,p=m+f;Q<=p&&p<a&&(n[f]=m+1)}let c=g.previousIndex;n[c]=Q-a}}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=[]),!s0(e))throw new H(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,uK(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 kd(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 mB),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 mB),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}},kd=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}},bd=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}},mB=class{map=new Map;put(e){let A=e.trackById,i=this.map.get(A);i||(i=new bd,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 Np(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 Fd=class{constructor(){}supports(e){return e instanceof Map||kh(e)}create(){return new vd}},vd=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||kh(e)))throw new H(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 Sd(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))}},Sd=class{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(e){this.key=e}};function Gp(){return new oo([new Md])}var oo=(()=>{class t{factories;static \u0275prov=v({token:t,providedIn:"root",factory:Gp});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||Gp()),deps:[[t,new oa,new Ig]]}}find(A){let i=this.factories.find(o=>o.supports(A));if(i!=null)return i;throw new H(901,!1)}}return t})();function Lp(){return new qB([new Fd])}var qB=(()=>{class t{static \u0275prov=v({token:t,providedIn:"root",factory:Lp});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||Lp()),deps:[[t,new oa,new Ig]]}}find(A){let i=this.factories.find(o=>o.supports(A));if(i)return i;throw new H(901,!1)}}return t})();var _0=Jh(null,"core",[]),K0=(()=>{class t{constructor(A){}static \u0275fac=function(i){return new(i||t)(Z(Zt))};static \u0275mod=X({type:t});static \u0275inj=j({})}return t})();function eA(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function de(t,e=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):e}function Gt(t){return Wc(t)}function Oo(t,e){return rC(t,e?.equal)}var Nd=class{[Mt];constructor(e){this[Mt]=e}destroy(){this[Mt].destroy()}};function ua(t,e){!e?.injector&&Ud(ua);let A=e?.injector??B(yA),i=e?.manualCleanup!==!0?A.get(yr):null,o,n=A.get(rh,null,{optional:!0}),g=A.get(gg);return n!==null&&!e?.forceRoot?(o=_U(n.view,g,t),i instanceof oB&&i._lView===n.view&&(i=null)):o=KU(t,A.get(a0),g),o.injector=A,i!==null&&(o.onDestroyFn=i.onDestroy(()=>o.destroy())),new Nd(o)}var U0=uA(b({},Vg),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,hasRun:!1,cleanupFns:void 0,zone:null,kind:"effect",onDestroyFn:Xs,run(){if(this.dirty=!1,this.hasRun&&!oC(this))return;this.hasRun=!0;let t=i=>(this.cleanupFns??=[]).push(i),e=Ns(this),A=$C(!1);try{this.maybeCleanup(),this.fn(t)}finally{$C(A),iC(this,e)}},maybeCleanup(){if(this.cleanupFns?.length)try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[]}}}),GU=uA(b({},U0),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){Gs(this),this.onDestroyFn(),this.maybeCleanup(),this.scheduler.remove(this)}}),LU=uA(b({},U0),{consumerMarkedDirty(){this.view[_A]|=8192,wr(this.view),this.notifier.notify(13)},destroy(){Gs(this),this.onDestroyFn(),this.maybeCleanup(),this.view[eg]?.delete(this)}});function _U(t,e,A){let i=Object.create(LU);return i.view=t,i.zone=typeof Zone<"u"?Zone.current:null,i.notifier=e,i.fn=A,t[eg]??=new Set,t[eg].add(i),i.consumerMarkedDirty(i),i}function KU(t,e,A){let i=Object.create(GU);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 VB(t,e){let A=En(t),i=e.elementInjector||yB();return new rg(A).create(i,e.projectableNodes,e.hostElement,e.environmentInjector)}function x0(t){let e=En(t);if(!e)return null;let A=new rg(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 cA=new F("");var H0=null;function zt(){return H0}function Hh(t){H0??=t}var ma=class{},Da=(()=>{class t{historyGo(A){throw new Error("")}static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:()=>B(T0),providedIn:"platform"})}return t})(),Th=new F(""),T0=(()=>{class t extends Da{_location;_history;_doc=B(cA);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return zt().getBaseHref(this._doc)}onPopState(A){let i=zt().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",A,!1),()=>i.removeEventListener("popstate",A)}onHashChange(A){let i=zt().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 WB(t,e){return t?e?t.endsWith("/")?e.startsWith("/")?t+e.slice(1):t+e:e.startsWith("/")?t+e:`${t}/${e}`:t:e}function Y0(t){let e=t.search(/#|\?|$/);return t[e-1]==="/"?t.slice(0,e-1)+t.slice(e):t}function Si(t){return t&&t[0]!=="?"?`?${t}`:t}var Po=(()=>{class t{historyGo(A){throw new Error("")}static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:()=>B(jB),providedIn:"root"})}return t})(),zB=new F(""),jB=(()=>{class t extends Po{_platformLocation;_baseHref;_removeListenerFns=[];constructor(A,i){super(),this._platformLocation=A,this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??B(cA).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 WB(this._baseHref,A)}path(A=!1){let i=this._platformLocation.pathname+Si(this._platformLocation.search),o=this._platformLocation.hash;return o&&A?`${i}${o}`:i}pushState(A,i,o,n){let g=this.prepareExternalUrl(o+Si(n));this._platformLocation.pushState(A,i,g)}replaceState(A,i,o,n){let g=this.prepareExternalUrl(o+Si(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)(Z(Da),Z(zB,8))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),no=(()=>{class t{_subject=new U;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(A){this._locationStrategy=A;let i=this._locationStrategy.getBaseHref();this._basePath=YU(Y0(J0(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+Si(i))}normalize(A){return t.stripTrailingSlash(xU(this._basePath,J0(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+Si(i)),o)}replaceState(A,i="",o=null){this._locationStrategy.replaceState(o,"",A,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(A+Si(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=Si;static joinWithSlash=WB;static stripTrailingSlash=Y0;static \u0275fac=function(i){return new(i||t)(Z(Po))};static \u0275prov=v({token:t,factory:()=>UU(),providedIn:"root"})}return t})();function UU(){return new no(Z(Po))}function xU(t,e){if(!t||!e.startsWith(t))return e;let A=e.substring(t.length);return A===""||["/",";","?","#"].includes(A[0])?A:e}function J0(t){return t.replace(/\/index.html$/,"")}function YU(t){if(new RegExp("^(https?:)?//").test(t)){let[,A]=t.split(/\/\/[^\/]+/);return A}return t}var qh=(()=>{class t extends Po{_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=WB(this._baseHref,A);return i.length>0?"#"+i:i}pushState(A,i,o,n){let g=this.prepareExternalUrl(o+Si(n))||this._platformLocation.pathname;this._platformLocation.pushState(A,i,g)}replaceState(A,i,o,n){let g=this.prepareExternalUrl(o+Si(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)(Z(Da),Z(zB,8))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})();var Oh=/\s+/,O0=[],jt=(()=>{class t{_ngEl;_renderer;initialClasses=O0;rawClass;stateMap=new Map;constructor(A,i){this._ngEl=A,this._renderer=i}set klass(A){this.initialClasses=A!=null?A.trim().split(Oh):O0}set ngClass(A){this.rawClass=typeof A=="string"?A.trim().split(Oh):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(Oh).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)(V(q),V(ae))};static \u0275dir=T({type:t,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return t})();var XB=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}},AQ=(()=>{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 XB(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),P0(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);P0(n,o)})}static ngTemplateContextGuard(A,i){return!0}static \u0275fac=function(i){return new(i||t)(V(Qe),V(ge),V(oo))};static \u0275dir=T({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return t})();function P0(t,e){t.context.$implicit=e.item}var fa=(()=>{class t{_viewContainer;_context=new $B;_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){Z0(A,!1),this._thenTemplateRef=A,this._thenViewRef=null,this._updateView()}set ngIfElse(A){Z0(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)(V(Qe),V(ge))};static \u0275dir=T({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return t})(),$B=class{$implicit=null;ngIf=null};function Z0(t,e){if(t&&!t.createEmbeddedView)throw new H(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:eo.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)(V(q),V(qB),V(ae))};static \u0275dir=T({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return t})(),pa=(()=>{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)(V(Qe))};static \u0275dir=T({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[TA]})}return t})();function JU(t,e){return new H(2100,!1)}var Ph=class{createSubscription(e,A){return Gt(()=>e.subscribe({next:A,error:i=>{throw i}}))}dispose(e){Gt(()=>e.unsubscribe())}},Zh=class{createSubscription(e,A){return e.then(A,i=>{throw i})}dispose(e){}},HU=new Zh,TU=new Ph,wa=(()=>{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(mn(A))return HU;if(Nh(A))return TU;throw JU(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)(V(UA,16))};static \u0275pipe=HB({name:"async",type:t,pure:!1})}return t})();function OU(t,e){return{key:t,value:e}}var Wh=(()=>{class t{differs;constructor(A){this.differs=A}differ;keyValues=[];compareFn=q0;transform(A,i=q0){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(OU(g.key,g.currentValue))})),(o||n)&&(i&&this.keyValues.sort(i),this.compareFn=i),this.keyValues}static \u0275fac=function(i){return new(i||t)(V(qB,16))};static \u0275pipe=HB({name:"keyvalue",type:t,pure:!1})}return t})();function q0(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 Zo=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=X({type:t});static \u0275inj=j({})}return t})();function ya(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 eQ="browser",V0="server";function go(t){return t===eQ}function tQ(t){return t===V0}var Eg=class{};var W0=(()=>{class t{static \u0275prov=v({token:t,providedIn:"root",factory:()=>new zh(B(cA),window)})}return t})(),zh=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=PU(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 PU(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 nQ=new F(""),Au=(()=>{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 H(5101,!1);return this._eventNameToPlugin.set(A,i),i}static \u0275fac=function(i){return new(i||t)(Z(nQ),Z(tA))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})(),Ma=class{_doc;constructor(e){this._doc=e}manager},iQ="ng-app-id";function z0(t){for(let e of t)e.remove()}function j0(t,e){let A=e.createElement("style");return A.textContent=t,A}function ZU(t,e,A,i){let o=t.head?.querySelectorAll(`style[${iQ}="${e}"],link[${iQ}="${e}"]`);if(o)for(let n of o)n.removeAttribute(iQ),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 Xh(t,e){let A=e.createElement("link");return A.setAttribute("rel","stylesheet"),A.setAttribute("href",t),A}var eu=(()=>{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=tQ(n),ZU(A,i,this.inline,this.external),this.hosts.add(A.head)}addStyles(A,i){for(let o of A)this.addUsage(o,this.inline,j0);i?.forEach(o=>this.addUsage(o,this.external,Xh))}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&&(z0(o.elements),i.delete(A)))}ngOnDestroy(){for(let[,{elements:A}]of[...this.inline,...this.external])z0(A);this.hosts.clear()}addHost(A){this.hosts.add(A);for(let[i,{elements:o}]of this.inline)o.push(this.addElement(A,j0(i,this.doc)));for(let[i,{elements:o}]of this.external)o.push(this.addElement(A,Xh(i,this.doc)))}removeHost(A){this.hosts.delete(A)}addElement(A,i){return this.nonce&&i.setAttribute("nonce",this.nonce),this.isServer&&i.setAttribute(iQ,this.appId),A.appendChild(i)}static \u0275fac=function(i){return new(i||t)(Z(cA),Z(Qg),Z(aa,8),Z(si))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})(),jh={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"},tu=/%COMP%/g;var $0="%COMP%",qU=`_nghost-${$0}`,VU=`_ngcontent-${$0}`,WU=!0,zU=new F("",{providedIn:"root",factory:()=>WU});function jU(t){return VU.replace(tu,t)}function XU(t){return qU.replace(tu,t)}function AM(t,e){return e.map(A=>A.replace(tu,t))}var ba=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(A,i,o,n,g,r,s,a=null,Q=null){this.eventManager=A,this.sharedStylesHost=i,this.appId=o,this.removeStylesOnCompDestroy=n,this.doc=g,this.platformId=r,this.ngZone=s,this.nonce=a,this.tracingService=Q,this.platformIsServer=tQ(r),this.defaultRenderer=new Ra(A,g,s,this.platformIsServer,this.tracingService)}createRenderer(A,i){if(!A||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===Ao.ShadowDom&&(i=uA(b({},i),{encapsulation:Ao.Emulated}));let o=this.getOrCreateRenderer(A,i);return o instanceof oQ?o.applyToHost(A):o instanceof ka&&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,a=this.sharedStylesHost,Q=this.removeStylesOnCompDestroy,c=this.platformIsServer,f=this.tracingService;switch(i.encapsulation){case Ao.Emulated:n=new oQ(s,a,i,this.appId,Q,g,r,c,f);break;case Ao.ShadowDom:return new $h(s,a,A,i,g,r,this.nonce,c,f);default:n=new ka(s,a,i,Q,g,r,c,f);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)(Z(Au),Z(eu),Z(Qg),Z(zU),Z(cA),Z(si),Z(tA),Z(aa),Z(kr,8))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})(),Ra=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(jh[A]||A,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,A){(X0(e)?e.content:e).appendChild(A)}insertBefore(e,A,i){e&&(X0(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 H(-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=jh[o];n?e.setAttributeNS(n,A,i):e.setAttribute(A,i)}else e.setAttribute(A,i)}removeAttribute(e,A,i){if(i){let o=jh[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&(eo.DashCase|eo.Important)?e.style.setProperty(A,i,o&eo.Important?"important":""):e.style[A]=i}removeStyle(e,A,i){i&eo.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=zt().getGlobalEventTarget(this.doc,e),!e))throw new H(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 X0(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var $h=class extends Ra{sharedStylesHost;hostEl;shadowRoot;constructor(e,A,i,o,n,g,r,s,a){super(e,n,g,s,a),this.sharedStylesHost=A,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let Q=o.styles;Q=AM(o.id,Q);for(let f of Q){let m=document.createElement("style");r&&m.setAttribute("nonce",r),m.textContent=f,this.shadowRoot.appendChild(m)}let c=o.getExternalStyles?.();if(c)for(let f of c){let m=Xh(f,n);r&&m.setAttribute("nonce",r),this.shadowRoot.appendChild(m)}}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)}},ka=class extends Ra{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(e,A,i,o,n,g,r,s,a){super(e,n,g,r,s),this.sharedStylesHost=A,this.removeStylesOnCompDestroy=o;let Q=i.styles;this.styles=a?AM(a,Q):Q,this.styleUrls=i.getExternalStyles?.(a)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},oQ=class extends ka{contentAttr;hostAttr;constructor(e,A,i,o,n,g,r,s,a){let Q=o+"-"+i.id;super(e,A,i,n,g,r,s,a,Q),this.contentAttr=jU(Q),this.hostAttr=XU(Q)}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 gQ=class t extends ma{supportsDOMEvents=!0;static makeCurrent(){Hh(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=$U();return A==null?null:Ax(A)}resetBaseElement(){Fa=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return ya(document.cookie,e)}},Fa=null;function $U(){return Fa=Fa||document.querySelector("base"),Fa?Fa.getAttribute("href"):null}function Ax(t){return new URL(t,document.baseURI).pathname}var rQ=class{addToWindow(e){Ft.getAngularTestability=(i,o=!0)=>{let n=e.findTestabilityInTree(i,o);if(n==null)throw new H(5103,!1);return n},Ft.getAllAngularTestabilities=()=>e.getAllTestabilities(),Ft.getAllAngularRootElements=()=>e.getAllRootElements();let A=i=>{let o=Ft.getAllAngularTestabilities(),n=o.length,g=function(){n--,n==0&&i()};o.forEach(r=>{r.whenStable(g)})};Ft.frameworkStabilizers||(Ft.frameworkStabilizers=[]),Ft.frameworkStabilizers.push(A)}findTestabilityInTree(e,A,i){if(A==null)return null;let o=e.getTestability(A);return o??(i?zt().isShadowRoot(A)?this.findTestabilityInTree(e,A.host,!0):this.findTestabilityInTree(e,A.parentElement,!0):null)}},ex=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})(),tM=(()=>{class t extends Ma{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)(Z(cA))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})(),eM=["alt","control","meta","shift"],tx={"\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"},ix={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},iM=(()=>{class t extends Ma{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(()=>zt().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."),eM.forEach(a=>{let Q=i.indexOf(a);Q>-1&&(i.splice(Q,1),g+=a+".")}),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=tx[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"),eM.forEach(g=>{if(g!==o){let r=ix[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)(Z(cA))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})();function ox(){gQ.makeCurrent()}function nx(){return new vt}function gx(){return jw(document),document}var rx=[{provide:si,useValue:eQ},{provide:nh,useValue:ox,multi:!0},{provide:cA,useFactory:gx}],sQ=Jh(_0,"browser",rx);var sx=[{provide:da,useClass:rQ},{provide:vh,useClass:TB,deps:[tA,OB,da]},{provide:TB,useClass:TB,deps:[tA,OB,da]}],ax=[{provide:wB,useValue:"root"},{provide:vt,useFactory:nx},{provide:nQ,useClass:tM,multi:!0,deps:[cA]},{provide:nQ,useClass:iM,multi:!0,deps:[cA]},ba,eu,Au,{provide:Bt,useExisting:ba},{provide:Eg,useClass:ex},[]],va=(()=>{class t{constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275mod=X({type:t});static \u0275inj=j({providers:[...ax,...sx],imports:[Zo,K0]})}return t})();var Sr=class{},Sa=class{},yn=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 IQ=class{encodeKey(e){return oM(e)}encodeValue(e){return oM(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function Ix(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 Cx=/%(\d[a-f0-9])/gi,Bx={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function oM(t){return encodeURIComponent(t).replace(Cx,(e,A)=>Bx[A]??e)}function aQ(t){return`${t}`}var qo=class t{map;encoder;updates=null;cloneFrom=null;constructor(e={}){if(this.encoder=e.encoder||new IQ,e.fromString){if(e.fromObject)throw new H(2805,!1);this.map=Ix(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(aQ):[aQ(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(aQ(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(aQ(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 CQ=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 Qx(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function nM(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function gM(t){return typeof Blob<"u"&&t instanceof Blob}function rM(t){return typeof FormData<"u"&&t instanceof FormData}function Ex(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var sM="Content-Type",aM="Accept",CM="X-Request-URL",BM="text/plain",QM="application/json",cx=`${QM}, ${BM}, */*`,vr=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(Qx(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 yn,this.context??=new CQ,!this.params)this.params=new qo,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"||nM(this.body)||gM(this.body)||rM(this.body)||Ex(this.body)?this.body:this.body instanceof qo?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||rM(this.body)?null:gM(this.body)?this.body.type||null:nM(this.body)?null:typeof this.body=="string"?BM:this.body instanceof qo?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?QM: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,a=e.headers||this.headers,Q=e.params||this.params,c=e.context??this.context;return e.setHeaders!==void 0&&(a=Object.keys(e.setHeaders).reduce((f,m)=>f.set(m,e.setHeaders[m]),a)),e.setParams&&(Q=Object.keys(e.setParams).reduce((f,m)=>f.set(m,e.setParams[m]),Q)),new t(A,i,g,{params:Q,headers:a,context:c,reportProgress:s,responseType:o,withCredentials:r,transferCache:n})}},cg=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}(cg||{}),Nr=class{headers;status;statusText;url;ok;type;constructor(e,A=200,i="OK"){this.headers=e.headers||new yn,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}},BQ=class t extends Nr{constructor(e={}){super(e)}type=cg.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})}},Na=class t extends Nr{body;constructor(e={}){super(e),this.body=e.body!==void 0?e.body:null}type=cg.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})}},Ga=class extends Nr{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}},lx=200,dx=204;function iu(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 Qt=(()=>{class t{handler;constructor(A){this.handler=A}request(A,i,o={}){let n;if(A instanceof vr)n=A;else{let s;o.headers instanceof yn?s=o.headers:s=new yn(o.headers);let a;o.params&&(o.params instanceof qo?a=o.params:a=new qo({fromObject:o.params})),n=new vr(A,i,o.body!==void 0?o.body:null,{headers:s,context:o.context,params:a,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let g=iA(n).pipe(qi(s=>this.handler.handle(s)));if(A instanceof vr||o.observe==="events")return g;let r=g.pipe(kA(s=>s instanceof Na));switch(o.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return r.pipe(sA(s=>{if(s.body!==null&&!(s.body instanceof ArrayBuffer))throw new H(2806,!1);return s.body}));case"blob":return r.pipe(sA(s=>{if(s.body!==null&&!(s.body instanceof Blob))throw new H(2807,!1);return s.body}));case"text":return r.pipe(sA(s=>{if(s.body!==null&&typeof s.body!="string")throw new H(2808,!1);return s.body}));case"json":default:return r.pipe(sA(s=>s.body))}case"response":return r;default:throw new H(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 qo().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,iu(o,i))}post(A,i,o={}){return this.request("POST",A,iu(o,i))}put(A,i,o={}){return this.request("PUT",A,iu(o,i))}static \u0275fac=function(i){return new(i||t)(Z(Sr))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})();var hx=new F("");function EM(t,e){return e(t)}function ux(t,e){return(A,i)=>e.intercept(A,{handle:o=>t(o,i)})}function mx(t,e,A){return(i,o)=>St(A,()=>e(i,n=>t(n,o)))}var cM=new F(""),nu=new F(""),lM=new F(""),gu=new F("",{providedIn:"root",factory:()=>!0});function Dx(){let t=null;return(e,A)=>{t===null&&(t=(B(cM,{optional:!0})??[]).reduceRight(ux,EM));let i=B(Yo);if(B(gu)){let n=i.add();return t(e,A).pipe(Vi(()=>i.remove(n)))}else return t(e,A)}}var QQ=(()=>{class t extends Sr{backend;injector;chain=null;pendingTasks=B(Yo);contributeToStability=B(gu);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(nu),...this.injector.get(lM,[])]));this.chain=i.reduceRight((o,n)=>mx(o,n,this.injector),EM)}if(this.contributeToStability){let i=this.pendingTasks.add();return this.chain(A,o=>this.backend.handle(o)).pipe(Vi(()=>this.pendingTasks.remove(i)))}else return this.chain(A,i=>this.backend.handle(i))}static \u0275fac=function(i){return new(i||t)(Z(Sa),Z(Ye))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})();var fx=/^\)\]\}',?\n/,px=RegExp(`^${CM}:`,"m");function wx(t){return"responseURL"in t&&t.responseURL?t.responseURL:px.test(t.getAllResponseHeaders())?t.getResponseHeader(CM):null}var ou=(()=>{class t{xhrFactory;constructor(A){this.xhrFactory=A}handle(A){if(A.method==="JSONP")throw new H(-2800,!1);let i=this.xhrFactory;return(i.\u0275loadImpl?se(i.\u0275loadImpl()):iA(null)).pipe(Ie(()=>new BA(n=>{let g=i.build();if(g.open(A.method,A.urlWithParams),A.withCredentials&&(g.withCredentials=!0),A.headers.forEach((M,K)=>g.setRequestHeader(M,K.join(","))),A.headers.has(aM)||g.setRequestHeader(aM,cx),!A.headers.has(sM)){let M=A.detectContentTypeHeader();M!==null&&g.setRequestHeader(sM,M)}if(A.responseType){let M=A.responseType.toLowerCase();g.responseType=M!=="json"?M:"text"}let r=A.serializeBody(),s=null,a=()=>{if(s!==null)return s;let M=g.statusText||"OK",K=new yn(g.getAllResponseHeaders()),W=wx(g)||A.url;return s=new BQ({headers:K,status:g.status,statusText:M,url:W}),s},Q=()=>{let{headers:M,status:K,statusText:W,url:DA}=a(),YA=null;K!==dx&&(YA=typeof g.response>"u"?g.responseText:g.response),K===0&&(K=YA?lx:0);let wA=K>=200&&K<300;if(A.responseType==="json"&&typeof YA=="string"){let yt=YA;YA=YA.replace(fx,"");try{YA=YA!==""?JSON.parse(YA):null}catch(we){YA=yt,wA&&(wA=!1,YA={error:we,text:YA})}}wA?(n.next(new Na({body:YA,headers:M,status:K,statusText:W,url:DA||void 0})),n.complete()):n.error(new Ga({error:YA,headers:M,status:K,statusText:W,url:DA||void 0}))},c=M=>{let{url:K}=a(),W=new Ga({error:M,status:g.status||0,statusText:g.statusText||"Unknown Error",url:K||void 0});n.error(W)},f=!1,m=M=>{f||(n.next(a()),f=!0);let K={type:cg.DownloadProgress,loaded:M.loaded};M.lengthComputable&&(K.total=M.total),A.responseType==="text"&&g.responseText&&(K.partialText=g.responseText),n.next(K)},p=M=>{let K={type:cg.UploadProgress,loaded:M.loaded};M.lengthComputable&&(K.total=M.total),n.next(K)};return g.addEventListener("load",Q),g.addEventListener("error",c),g.addEventListener("timeout",c),g.addEventListener("abort",c),A.reportProgress&&(g.addEventListener("progress",m),r!==null&&g.upload&&g.upload.addEventListener("progress",p)),g.send(r),n.next({type:cg.Sent}),()=>{g.removeEventListener("error",c),g.removeEventListener("abort",c),g.removeEventListener("load",Q),g.removeEventListener("timeout",c),A.reportProgress&&(g.removeEventListener("progress",m),r!==null&&g.upload&&g.upload.removeEventListener("progress",p)),g.readyState!==g.DONE&&g.abort()}})))}static \u0275fac=function(i){return new(i||t)(Z(Eg))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})(),dM=new F(""),yx="XSRF-TOKEN",Mx=new F("",{providedIn:"root",factory:()=>yx}),Rx="X-XSRF-TOKEN",kx=new F("",{providedIn:"root",factory:()=>Rx}),La=class{},bx=(()=>{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=ya(A,this.cookieName),this.lastCookieString=A),this.lastToken}static \u0275fac=function(i){return new(i||t)(Z(cA),Z(si),Z(Mx))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})();function Fx(t,e){let A=t.url.toLowerCase();if(!B(dM)||t.method==="GET"||t.method==="HEAD"||A.startsWith("http://")||A.startsWith("https://"))return e(t);let i=B(La).getToken(),o=B(kx);return i!=null&&!t.headers.has(o)&&(t=t.clone({headers:t.headers.set(o,i)})),e(t)}var ru=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}(ru||{});function vx(t,e){return{\u0275kind:t,\u0275providers:e}}function hM(...t){let e=[Qt,ou,QQ,{provide:Sr,useExisting:QQ},{provide:Sa,useFactory:()=>B(hx,{optional:!0})??B(ou)},{provide:nu,useValue:Fx,multi:!0},{provide:dM,useValue:!0},{provide:La,useClass:bx}];for(let A of t)e.push(...A.\u0275providers);return ga(e)}var IM=new F("");function uM(){return vx(ru.LegacyInterceptors,[{provide:IM,useFactory:Dx},{provide:nu,useExisting:IM,multi:!0}])}var su=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=X({type:t});static \u0275inj=j({providers:[hM(uM())]})}return t})();var mM=(()=>{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)(Z(cA))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Vo=(()=>{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=Z(Sx),o},providedIn:"root"})}return t})(),Sx=(()=>{class t extends Vo{_doc;constructor(A){super(),this._doc=A}sanitize(A,i){if(i==null)return null;switch(A){case et.NONE:return i;case et.HTML:return un(i,"HTML")?Fi(i):ah(this._doc,String(i)).toString();case et.STYLE:return un(i,"Style")?Fi(i):i;case et.SCRIPT:if(un(i,"Script"))return Fi(i);throw new H(5200,!1);case et.URL:return un(i,"URL")?Fi(i):NB(String(i));case et.RESOURCE_URL:if(un(i,"ResourceURL"))return Fi(i);throw new H(5201,!1);default:throw new H(5202,!1)}}bypassSecurityTrustHtml(A){return oy(A)}bypassSecurityTrustStyle(A){return ny(A)}bypassSecurityTrustScript(A){return gy(A)}bypassSecurityTrustUrl(A){return ry(A)}bypassSecurityTrustResourceUrl(A){return sy(A)}static \u0275fac=function(i){return new(i||t)(Z(cA))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var RM=(()=>{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)(V(ae),V(q))};static \u0275dir=T({type:t})}return t})(),Nx=(()=>{class t extends RM{static \u0275fac=(()=>{let A;return function(o){return(A||(A=jA(t)))(o||t)}})();static \u0275dir=T({type:t,features:[dA]})}return t})(),Wo=new F("");var Gx={provide:Wo,useExisting:ot(()=>ro),multi:!0};function Lx(){let t=zt()?zt().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var _x=new F(""),ro=(()=>{class t extends RM{_compositionMode;_composing=!1;constructor(A,i,o){super(A,i),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!Lx())}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)(V(ae),V(q),V(_x,8))};static \u0275dir=T({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&&G("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:[FA([Gx]),dA]})}return t})();function Cu(t){return t==null||Bu(t)===0}function Bu(t){return t==null?null:Array.isArray(t)||typeof t=="string"?t.length:t instanceof Set?t.size:null}var Rn=new F(""),yQ=new F(""),Kx=/^(?=.{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])?)*$/,Kr=class{static min(e){return Ux(e)}static max(e){return xx(e)}static required(e){return Yx(e)}static requiredTrue(e){return Jx(e)}static email(e){return Hx(e)}static minLength(e){return Tx(e)}static maxLength(e){return Ox(e)}static pattern(e){return Px(e)}static nullValidator(e){return kM()}static compose(e){return GM(e)}static composeAsync(e){return LM(e)}};function Ux(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 xx(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 Yx(t){return Cu(t.value)?{required:!0}:null}function Jx(t){return t.value===!0?null:{required:!0}}function Hx(t){return Cu(t.value)||Kx.test(t.value)?null:{email:!0}}function Tx(t){return e=>{let A=e.value?.length??Bu(e.value);return A===null||A===0?null:A<t?{minlength:{requiredLength:t,actualLength:A}}:null}}function Ox(t){return e=>{let A=e.value?.length??Bu(e.value);return A!==null&&A>t?{maxlength:{requiredLength:t,actualLength:A}}:null}}function Px(t){if(!t)return kM;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(Cu(i.value))return null;let o=i.value;return e.test(o)?null:{pattern:{requiredPattern:A,actualValue:o}}}}function kM(t){return null}function bM(t){return t!=null}function FM(t){return mn(t)?se(t):t}function vM(t){let e={};return t.forEach(A=>{e=A!=null?b(b({},e),A):e}),Object.keys(e).length===0?null:e}function SM(t,e){return e.map(A=>A(t))}function Zx(t){return!t.validate}function NM(t){return t.map(e=>Zx(e)?e:A=>e.validate(A))}function GM(t){if(!t)return null;let e=t.filter(bM);return e.length==0?null:function(A){return vM(SM(A,e))}}function Qu(t){return t!=null?GM(NM(t)):null}function LM(t){if(!t)return null;let e=t.filter(bM);return e.length==0?null:function(A){let i=SM(A,e).map(FM);return Js(i).pipe(sA(vM))}}function Eu(t){return t!=null?LM(NM(t)):null}function DM(t,e){return t===null?[e]:Array.isArray(t)?[...t,e]:[t,e]}function _M(t){return t._rawValidators}function KM(t){return t._rawAsyncValidators}function au(t){return t?Array.isArray(t)?t:[t]:[]}function cQ(t,e){return Array.isArray(t)?t.includes(e):t===e}function fM(t,e){let A=au(e);return au(t).forEach(o=>{cQ(A,o)||A.push(o)}),A}function pM(t,e){return au(e).filter(A=>!cQ(t,A))}var lQ=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=Qu(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=Eu(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}},dg=class extends lQ{name;get formDirective(){return null}get path(){return null}},Ni=class extends lQ{_parent=null;name=null;valueAccessor=null},Iu=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}},qx={"[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"},J$=uA(b({},qx),{"[class.ng-submitted]":"isSubmitted"}),Ii=(()=>{class t extends Iu{constructor(A){super(A)}static \u0275fac=function(i){return new(i||t)(V(Ni,2))};static \u0275dir=T({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,o){i&2&&nA("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:[dA]})}return t})();var _a="VALID",EQ="INVALID",Lr="PENDING",Ka="DISABLED",Mn=class{},dQ=class extends Mn{value;source;constructor(e,A){super(),this.value=e,this.source=A}},xa=class extends Mn{pristine;source;constructor(e,A){super(),this.pristine=e,this.source=A}},Ya=class extends Mn{touched;source;constructor(e,A){super(),this.touched=e,this.source=A}},_r=class extends Mn{status;source;constructor(e,A){super(),this.status=e,this.source=A}},hQ=class extends Mn{source;constructor(e){super(),this.source=e}},uQ=class extends Mn{source;constructor(e){super(),this.source=e}};function UM(t){return(MQ(t)?t.validators:t)||null}function Vx(t){return Array.isArray(t)?Qu(t):t||null}function xM(t,e){return(MQ(e)?e.asyncValidators:t)||null}function Wx(t){return Array.isArray(t)?Eu(t):t||null}function MQ(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function zx(t,e,A){let i=t.controls;if(!(e?Object.keys(i):i).length)throw new H(1e3,"");if(!i[A])throw new H(1001,"")}function jx(t,e,A){t._forEachChild((i,o)=>{if(A[o]===void 0)throw new H(1002,"")})}var mQ=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 Gt(this.statusReactive)}set status(e){Gt(()=>this.statusReactive.set(e))}_status=Oo(()=>this.statusReactive());statusReactive=gt(void 0);get valid(){return this.status===_a}get invalid(){return this.status===EQ}get pending(){return this.status==Lr}get disabled(){return this.status===Ka}get enabled(){return this.status!==Ka}errors;get pristine(){return Gt(this.pristineReactive)}set pristine(e){Gt(()=>this.pristineReactive.set(e))}_pristine=Oo(()=>this.pristineReactive());pristineReactive=gt(!0);get dirty(){return!this.pristine}get touched(){return Gt(this.touchedReactive)}set touched(e){Gt(()=>this.touchedReactive.set(e))}_touched=Oo(()=>this.touchedReactive());touchedReactive=gt(!1);get untouched(){return!this.touched}_events=new U;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(fM(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(fM(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(pM(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(pM(e,this._rawAsyncValidators))}hasValidator(e){return cQ(this._rawValidators,e)}hasAsyncValidator(e){return cQ(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(uA(b({},e),{sourceControl:i})),A&&e.emitEvent!==!1&&this._events.next(new Ya(!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 Ya(!1,i))}markAsDirty(e={}){let A=this.pristine===!0;this.pristine=!1;let i=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(uA(b({},e),{sourceControl:i})),A&&e.emitEvent!==!1&&this._events.next(new xa(!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 xa(!0,i))}markAsPending(e={}){this.status=Lr;let A=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new _r(this.status,A)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(uA(b({},e),{sourceControl:A}))}disable(e={}){let A=this._parentMarkedDirty(e.onlySelf);this.status=Ka,this.errors=null,this._forEachChild(o=>{o.disable(uA(b({},e),{onlySelf:!0}))}),this._updateValue();let i=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new dQ(this.value,i)),this._events.next(new _r(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(uA(b({},e),{skipPristineCheck:A}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(e={}){let A=this._parentMarkedDirty(e.onlySelf);this.status=_a,this._forEachChild(i=>{i.enable(uA(b({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(uA(b({},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===_a||this.status===Lr)&&this._runAsyncValidator(i,e.emitEvent)}let A=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new dQ(this.value,A)),this._events.next(new _r(this.status,A)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(uA(b({},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()?Ka:_a}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,A){if(this.asyncValidator){this.status=Lr,this._hasOwnPendingAsyncValidator={emitEvent:A!==!1};let i=FM(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 _r(this.status,A)),this._parent&&this._parent._updateControlsErrors(e,A,i)}_initObservables(){this.valueChanges=new z,this.statusChanges=new z}_calculateStatus(){return this._allControlsDisabled()?Ka:this.errors?EQ:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Lr)?Lr:this._anyControlsHaveStatus(EQ)?EQ:_a}_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 xa(this.pristine,A))}_updateTouched(e={},A){this.touched=this._anyControlsTouched(),this._events.next(new Ya(this.touched,A)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,A)}_onDisabledChange=[];_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){MQ(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=Vx(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=Wx(this._rawAsyncValidators)}},DQ=class extends mQ{constructor(e,A,i){super(UM(A),xM(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={}){jx(this,!0,e),Object.keys(e).forEach(i=>{zx(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 Ur=new F("",{providedIn:"root",factory:()=>RQ}),RQ="always";function Xx(t,e){return[...e.path,t]}function Ja(t,e,A=RQ){cu(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||A==="always")&&e.valueAccessor.setDisabledState?.(t.disabled),AY(t,e),tY(t,e),eY(t,e),$x(t,e)}function fQ(t,e,A=!0){let i=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(i),e.valueAccessor.registerOnTouched(i)),wQ(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function pQ(t,e){t.forEach(A=>{A.registerOnValidatorChange&&A.registerOnValidatorChange(e)})}function $x(t,e){if(e.valueAccessor.setDisabledState){let A=i=>{e.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(A),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(A)})}}function cu(t,e){let A=_M(t);e.validator!==null?t.setValidators(DM(A,e.validator)):typeof A=="function"&&t.setValidators([A]);let i=KM(t);e.asyncValidator!==null?t.setAsyncValidators(DM(i,e.asyncValidator)):typeof i=="function"&&t.setAsyncValidators([i]);let o=()=>t.updateValueAndValidity();pQ(e._rawValidators,o),pQ(e._rawAsyncValidators,o)}function wQ(t,e){let A=!1;if(t!==null){if(e.validator!==null){let o=_M(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=KM(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 pQ(e._rawValidators,i),pQ(e._rawAsyncValidators,i),A}function AY(t,e){e.valueAccessor.registerOnChange(A=>{t._pendingValue=A,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&YM(t,e)})}function eY(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&YM(t,e),t.updateOn!=="submit"&&t.markAsTouched()})}function YM(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function tY(t,e){let A=(i,o)=>{e.valueAccessor.writeValue(i),o&&e.viewToModelUpdate(i)};t.registerOnChange(A),e._registerOnDestroy(()=>{t._unregisterOnChange(A)})}function JM(t,e){t==null,cu(t,e)}function iY(t,e){return wQ(t,e)}function HM(t,e){if(!t.hasOwnProperty("model"))return!1;let A=t.model;return A.isFirstChange()?!0:!Object.is(e,A.currentValue)}function oY(t){return Object.getPrototypeOf(t.constructor)===Nx}function TM(t,e){t._syncPendingControls(),e.forEach(A=>{let i=A.control;i.updateOn==="submit"&&i._pendingChange&&(A.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function OM(t,e){if(!e)return null;Array.isArray(e);let A,i,o;return e.forEach(n=>{n.constructor===ro?A=n:oY(n)?i=n:o=n}),o||i||A||null}function nY(t,e){let A=t.indexOf(e);A>-1&&t.splice(A,1)}var gY={provide:dg,useExisting:ot(()=>Ha)},Ua=Promise.resolve(),Ha=(()=>{class t extends dg{callSetDisabledState;get submitted(){return Gt(this.submittedReactive)}_submitted=Oo(()=>this.submittedReactive());submittedReactive=gt(!1);_directives=new Set;form;ngSubmit=new z;options;constructor(A,i,o){super(),this.callSetDisabledState=o,this.form=new DQ({},Qu(A),Eu(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(A){Ua.then(()=>{let i=this._findContainer(A.path);A.control=i.registerControl(A.name,A.control),Ja(A.control,A,this.callSetDisabledState),A.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(A)})}getControl(A){return this.form.get(A.path)}removeControl(A){Ua.then(()=>{let i=this._findContainer(A.path);i&&i.removeControl(A.name),this._directives.delete(A)})}addFormGroup(A){Ua.then(()=>{let i=this._findContainer(A.path),o=new DQ({});JM(o,A),i.registerControl(A.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(A){Ua.then(()=>{let i=this._findContainer(A.path);i&&i.removeControl(A.name)})}getFormGroup(A){return this.form.get(A.path)}updateModel(A,i){Ua.then(()=>{this.form.get(A.path).setValue(i)})}setValue(A){this.control.setValue(A)}onSubmit(A){return this.submittedReactive.set(!0),TM(this.form,this._directives),this.ngSubmit.emit(A),this.form._events.next(new hQ(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 uQ(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)(V(Rn,10),V(yQ,10),V(Ur,8))};static \u0275dir=T({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(i,o){i&1&&G("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:[FA([gY]),dA]})}return t})();function wM(t,e){let A=t.indexOf(e);A>-1&&t.splice(A,1)}function yM(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var kQ=class extends mQ{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(e=null,A,i){super(UM(A),xM(i,A)),this._applyFormState(e),this._setUpdateStrategy(A),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),MQ(A)&&(A.nonNullable||A.initialValueIsDefault)&&(yM(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){wM(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){wM(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){yM(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 rY=t=>t instanceof kQ;var sY={provide:Ni,useExisting:ot(()=>Xt)},MM=Promise.resolve(),Xt=(()=>{class t extends Ni{_changeDetectorRef;callSetDisabledState;control=new kQ;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new z;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=OM(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),HM(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(){Ja(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){MM.then(()=>{this.control.setValue(A,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(A){let i=A.isDisabled.currentValue,o=i!==0&&eA(i);MM.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(A){return this._parent?Xx(A,this._parent):[A]}static \u0275fac=function(i){return new(i||t)(V(dg,9),V(Rn,10),V(yQ,10),V(Wo,10),V(UA,8),V(Ur,8))};static \u0275dir=T({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:[FA([sY]),dA,TA]})}return t})();var PM=new F(""),aY={provide:Ni,useExisting:ot(()=>lu)},lu=(()=>{class t extends Ni{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(A){}model;update=new z;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=OM(this,o)}ngOnChanges(A){if(this._isControlChanged(A)){let i=A.form.previousValue;i&&fQ(i,this,!1),Ja(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}HM(A,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&fQ(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)(V(Rn,10),V(yQ,10),V(Wo,10),V(PM,8),V(Ur,8))};static \u0275dir=T({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:[FA([aY]),dA,TA]})}return t})(),IY={provide:dg,useExisting:ot(()=>Ta)},Ta=(()=>{class t extends dg{callSetDisabledState;get submitted(){return Gt(this._submittedReactive)}set submitted(A){this._submittedReactive.set(A)}_submitted=Oo(()=>this._submittedReactive());_submittedReactive=gt(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new z;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&&(wQ(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 Ja(i,A,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(A),i}getControl(A){return this.form.get(A.path)}removeControl(A){fQ(A.control||null,A,!1),nY(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),TM(this.form,this.directives),this.ngSubmit.emit(A),this.form._events.next(new hQ(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 uQ(this.form))}_updateDomValue(){this.directives.forEach(A=>{let i=A.control,o=this.form.get(A.path);i!==o&&(fQ(i||null,A),rY(o)&&(Ja(o,A,this.callSetDisabledState),A.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(A){let i=this.form.get(A.path);JM(i,A),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(A){if(this.form){let i=this.form.get(A.path);i&&iY(i,A)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){cu(this.form,this),this._oldForm&&wQ(this._oldForm,this)}static \u0275fac=function(i){return new(i||t)(V(Rn,10),V(yQ,10),V(Ur,8))};static \u0275dir=T({type:t,selectors:[["","formGroup",""]],hostBindings:function(i,o){i&1&&G("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:[FA([IY]),dA,TA]})}return t})();var ZM=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=X({type:t});static \u0275inj=j({})}return t})();var bQ=(()=>{class t{static withConfig(A){return{ngModule:t,providers:[{provide:Ur,useValue:A.callSetDisabledState??RQ}]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=X({type:t});static \u0275inj=j({imports:[ZM]})}return t})(),qM=(()=>{class t{static withConfig(A){return{ngModule:t,providers:[{provide:PM,useValue:A.warnOnNgModelWithFormControl??"always"},{provide:Ur,useValue:A.callSetDisabledState??RQ}]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=X({type:t});static \u0275inj=j({imports:[ZM]})}return t})();var PA="primary",tI=Symbol("RouteTitle"),Du=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 mg(t){return new Du(t)}function eR(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 CY(t,e){if(t.length!==e.length)return!1;for(let A=0;A<t.length;++A)if(!so(t[A],e[A]))return!1;return!0}function so(t,e){let A=t?fu(t):void 0,i=e?fu(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],!tR(t[o],e[o]))return!1;return!0}function fu(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function tR(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 iR(t){return t.length>0?t[t.length-1]:null}function vn(t){return sn(t)?t:mn(t)?se(Promise.resolve(t)):iA(t)}var BY={exact:nR,subset:gR},oR={exact:QY,subset:EY,ignored:()=>!0};function VM(t,e,A){return BY[A.paths](t.root,e.root,A.matrixParams)&&oR[A.queryParams](t.queryParams,e.queryParams)&&!(A.fragment==="exact"&&t.fragment!==e.fragment)}function QY(t,e){return so(t,e)}function nR(t,e,A){if(!hg(t.segments,e.segments)||!SQ(t.segments,e.segments,A)||t.numberOfChildren!==e.numberOfChildren)return!1;for(let i in e.children)if(!t.children[i]||!nR(t.children[i],e.children[i],A))return!1;return!0}function EY(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(A=>tR(t[A],e[A]))}function gR(t,e,A){return rR(t,e,e.segments,A)}function rR(t,e,A,i){if(t.segments.length>A.length){let o=t.segments.slice(0,A.length);return!(!hg(o,A)||e.hasChildren()||!SQ(o,A,i))}else if(t.segments.length===A.length){if(!hg(t.segments,A)||!SQ(t.segments,A,i))return!1;for(let o in e.children)if(!t.children[o]||!gR(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!hg(t.segments,o)||!SQ(t.segments,o,i)||!t.children[PA]?!1:rR(t.children[PA],e,n,i)}}function SQ(t,e,A){return e.every((i,o)=>oR[A](t[o].parameters,i.parameters))}var Io=class{root;queryParams;fragment;_queryParamMap;constructor(e=new te([],{}),A={},i=null){this.root=e,this.queryParams=A,this.fragment=i}get queryParamMap(){return this._queryParamMap??=mg(this.queryParams),this._queryParamMap}toString(){return dY.serialize(this)}},te=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 NQ(this)}},kn=class{path;parameters;_parameterMap;constructor(e,A){this.path=e,this.parameters=A}get parameterMap(){return this._parameterMap??=mg(this.parameters),this._parameterMap}toString(){return aR(this)}};function cY(t,e){return hg(t,e)&&t.every((A,i)=>so(A.parameters,e[i].parameters))}function hg(t,e){return t.length!==e.length?!1:t.every((A,i)=>A.path===e[i].path)}function lY(t,e){let A=[];return Object.entries(t.children).forEach(([i,o])=>{i===PA&&(A=A.concat(e(o,i)))}),Object.entries(t.children).forEach(([i,o])=>{i!==PA&&(A=A.concat(e(o,i)))}),A}var Dg=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:()=>new bn,providedIn:"root"})}return t})(),bn=class{parse(e){let A=new wu(e);return new Io(A.parseRootSegment(),A.parseQueryParams(),A.parseFragment())}serialize(e){let A=`/${Oa(e.root,!0)}`,i=mY(e.queryParams),o=typeof e.fragment=="string"?`#${hY(e.fragment)}`:"";return`${A}${i}${o}`}},dY=new bn;function NQ(t){return t.segments.map(e=>aR(e)).join("/")}function Oa(t,e){if(!t.hasChildren())return NQ(t);if(e){let A=t.children[PA]?Oa(t.children[PA],!1):"",i=[];return Object.entries(t.children).forEach(([o,n])=>{o!==PA&&i.push(`${o}:${Oa(n,!1)}`)}),i.length>0?`${A}(${i.join("//")})`:A}else{let A=lY(t,(i,o)=>o===PA?[Oa(t.children[PA],!1)]:[`${o}:${Oa(i,!1)}`]);return Object.keys(t.children).length===1&&t.children[PA]!=null?`${NQ(t)}/${A[0]}`:`${NQ(t)}/(${A.join("//")})`}}function sR(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function FQ(t){return sR(t).replace(/%3B/gi,";")}function hY(t){return encodeURI(t)}function pu(t){return sR(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function GQ(t){return decodeURIComponent(t)}function WM(t){return GQ(t.replace(/\+/g,"%20"))}function aR(t){return`${pu(t.path)}${uY(t.parameters)}`}function uY(t){return Object.entries(t).map(([e,A])=>`;${pu(e)}=${pu(A)}`).join("")}function mY(t){let e=Object.entries(t).map(([A,i])=>Array.isArray(i)?i.map(o=>`${FQ(A)}=${FQ(o)}`).join("&"):`${FQ(A)}=${FQ(i)}`).filter(A=>A);return e.length?`?${e.join("&")}`:""}var DY=/^[^\/()?;#]+/;function du(t){let e=t.match(DY);return e?e[0]:""}var fY=/^[^\/()?;=#]+/;function pY(t){let e=t.match(fY);return e?e[0]:""}var wY=/^[^=?&#]+/;function yY(t){let e=t.match(wY);return e?e[0]:""}var MY=/^[^&#]+/;function RY(t){let e=t.match(MY);return e?e[0]:""}var wu=class{url;remaining;constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new te([],{}):new te([],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[PA]=new te(e,A)),i}parseSegment(){let e=du(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new H(4009,!1);return this.capture(e),new kn(GQ(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let A=pY(this.remaining);if(!A)return;this.capture(A);let i="";if(this.consumeOptional("=")){let o=du(this.remaining);o&&(i=o,this.capture(i))}e[GQ(A)]=GQ(i)}parseQueryParam(e){let A=yY(this.remaining);if(!A)return;this.capture(A);let i="";if(this.consumeOptional("=")){let g=RY(this.remaining);g&&(i=g,this.capture(i))}let o=WM(A),n=WM(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=du(this.remaining),o=this.remaining[i.length];if(o!=="/"&&o!==")"&&o!==";")throw new H(4010,!1);let n;i.indexOf(":")>-1?(n=i.slice(0,i.indexOf(":")),this.capture(n),this.capture(":")):e&&(n=PA);let g=this.parseChildren();A[n]=Object.keys(g).length===1?g[PA]:new te([],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 H(4011,!1)}};function IR(t){return t.segments.length>0?new te([],{[PA]:t}):t}function CR(t){let e={};for(let[i,o]of Object.entries(t.children)){let n=CR(o);if(i===PA&&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 te(t.segments,e);return kY(A)}function kY(t){if(t.numberOfChildren===1&&t.children[PA]){let e=t.children[PA];return new te(t.segments.concat(e.segments),e.children)}return t}function Or(t){return t instanceof Io}function BR(t,e,A=null,i=null){let o=QR(t);return ER(o,e,A,i)}function QR(t){let e;function A(n){let g={};for(let s of n.children){let a=A(s);g[s.outlet]=a}let r=new te(n.url,g);return n===t&&(e=r),r}let i=A(t.root),o=IR(i);return e??o}function ER(t,e,A,i){let o=t;for(;o.parent;)o=o.parent;if(e.length===0)return hu(o,o,o,A,i);let n=bY(e);if(n.toRoot())return hu(o,o,new te([],{}),A,i);let g=FY(n,o,t),r=g.processChildren?Za(g.segmentGroup,g.index,n.commands):lR(g.segmentGroup,g.index,n.commands);return hu(o,g.segmentGroup,r,A,i)}function _Q(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function Va(t){return typeof t=="object"&&t!=null&&t.outlets}function hu(t,e,A,i,o){let n={};i&&Object.entries(i).forEach(([s,a])=>{n[s]=Array.isArray(a)?a.map(Q=>`${Q}`):`${a}`});let g;t===e?g=A:g=cR(t,e,A);let r=IR(CR(g));return new Io(r,n,o)}function cR(t,e,A){let i={};return Object.entries(t.children).forEach(([o,n])=>{n===e?i[o]=A:i[o]=cR(n,e,A)}),new te(t.segments,i)}var KQ=class{isAbsolute;numberOfDoubleDots;commands;constructor(e,A,i){if(this.isAbsolute=e,this.numberOfDoubleDots=A,this.commands=i,e&&i.length>0&&_Q(i[0]))throw new H(4003,!1);let o=i.find(Va);if(o&&o!==iR(i))throw new H(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function bY(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new KQ(!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,a])=>{r[s]=typeof a=="string"?a.split("/"):a}),[...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 KQ(A,e,i)}var Hr=class{segmentGroup;processChildren;index;constructor(e,A,i){this.segmentGroup=e,this.processChildren=A,this.index=i}};function FY(t,e,A){if(t.isAbsolute)return new Hr(e,!0,0);if(!A)return new Hr(e,!1,NaN);if(A.parent===null)return new Hr(A,!0,0);let i=_Q(t.commands[0])?0:1,o=A.segments.length-1+i;return vY(A,o,t.numberOfDoubleDots)}function vY(t,e,A){let i=t,o=e,n=A;for(;n>o;){if(n-=o,i=i.parent,!i)throw new H(4005,!1);o=i.segments.length}return new Hr(i,!1,o-n)}function SY(t){return Va(t[0])?t[0].outlets:{[PA]:t}}function lR(t,e,A){if(t??=new te([],{}),t.segments.length===0&&t.hasChildren())return Za(t,e,A);let i=NY(t,e,A),o=A.slice(i.commandIndex);if(i.match&&i.pathIndex<t.segments.length){let n=new te(t.segments.slice(0,i.pathIndex),{});return n.children[PA]=new te(t.segments.slice(i.pathIndex),t.children),Za(n,0,o)}else return i.match&&o.length===0?new te(t.segments,{}):i.match&&!t.hasChildren()?yu(t,e,A):i.match?Za(t,0,o):yu(t,e,A)}function Za(t,e,A){if(A.length===0)return new te(t.segments,{});{let i=SY(A),o={};if(Object.keys(i).some(n=>n!==PA)&&t.children[PA]&&t.numberOfChildren===1&&t.children[PA].segments.length===0){let n=Za(t.children[PA],e,A);return new te(t.segments,n.children)}return Object.entries(i).forEach(([n,g])=>{typeof g=="string"&&(g=[g]),g!==null&&(o[n]=lR(t.children[n],e,g))}),Object.entries(t.children).forEach(([n,g])=>{i[n]===void 0&&(o[n]=g)}),new te(t.segments,o)}}function NY(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(Va(r))break;let s=`${r}`,a=i<A.length-1?A[i+1]:null;if(o>0&&s===void 0)break;if(s&&a&&typeof a=="object"&&a.outlets===void 0){if(!jM(s,a,g))return n;i+=2}else{if(!jM(s,{},g))return n;i++}o++}return{match:!0,pathIndex:o,commandIndex:i}}function yu(t,e,A){let i=t.segments.slice(0,e),o=0;for(;o<A.length;){let n=A[o];if(Va(n)){let s=GY(n.outlets);return new te(i,s)}if(o===0&&_Q(A[0])){let s=t.segments[e];i.push(new kn(s.path,zM(A[0]))),o++;continue}let g=Va(n)?n.outlets[PA]:`${n}`,r=o<A.length-1?A[o+1]:null;g&&r&&_Q(r)?(i.push(new kn(g,zM(r))),o+=2):(i.push(new kn(g,{})),o++)}return new te(i,{})}function GY(t){let e={};return Object.entries(t).forEach(([A,i])=>{typeof i=="string"&&(i=[i]),i!==null&&(e[A]=yu(new te([],{}),0,i))}),e}function zM(t){let e={};return Object.entries(t).forEach(([A,i])=>e[A]=`${i}`),e}function jM(t,e,A){return t==A.path&&so(e,A.parameters)}var LQ="imperative",We=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}(We||{}),Ai=class{id;url;constructor(e,A){this.id=e,this.url=A}},Fn=class extends Ai{type=We.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}')`}},ei=class extends Ai{urlAfterRedirects;type=We.NavigationEnd;constructor(e,A,i){super(e,A),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Lt=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(Lt||{}),Pr=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(Pr||{}),ao=class extends Ai{reason;code;type=We.NavigationCancel;constructor(e,A,i,o){super(e,A),this.reason=i,this.code=o}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Co=class extends Ai{reason;code;type=We.NavigationSkipped;constructor(e,A,i,o){super(e,A),this.reason=i,this.code=o}},Zr=class extends Ai{error;target;type=We.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})`}},Wa=class extends Ai{urlAfterRedirects;state;type=We.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})`}},UQ=class extends Ai{urlAfterRedirects;state;type=We.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})`}},xQ=class extends Ai{urlAfterRedirects;state;shouldActivate;type=We.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})`}},YQ=class extends Ai{urlAfterRedirects;state;type=We.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})`}},JQ=class extends Ai{urlAfterRedirects;state;type=We.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})`}},HQ=class{route;type=We.RouteConfigLoadStart;constructor(e){this.route=e}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},TQ=class{route;type=We.RouteConfigLoadEnd;constructor(e){this.route=e}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},OQ=class{snapshot;type=We.ChildActivationStart;constructor(e){this.snapshot=e}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},PQ=class{snapshot;type=We.ChildActivationEnd;constructor(e){this.snapshot=e}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ZQ=class{snapshot;type=We.ActivationStart;constructor(e){this.snapshot=e}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},qQ=class{snapshot;type=We.ActivationEnd;constructor(e){this.snapshot=e}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},qr=class{routerEvent;position;anchor;type=We.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}')`}},za=class{},Vr=class{url;navigationBehaviorOptions;constructor(e,A){this.url=e,this.navigationBehaviorOptions=A}};function LY(t,e){return t.providers&&!t._injector&&(t._injector=la(t.providers,e,`Route: ${t.path}`)),t._injector??e}function Gi(t){return t.outlet||PA}function _Y(t,e){let A=t.filter(i=>Gi(i)===e);return A.push(...t.filter(i=>Gi(i)!==e)),A}function iI(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 VQ=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return iI(this.route?.snapshot)??this.rootInjector}constructor(e){this.rootInjector=e,this.children=new fg(this.rootInjector)}},fg=(()=>{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 VQ(this.rootInjector),this.contexts.set(A,i)),i}getContext(A){return this.contexts.get(A)||null}static \u0275fac=function(i){return new(i||t)(Z(Ye))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),WQ=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=Mu(e,this._root);return A?A.children.map(i=>i.value):[]}firstChild(e){let A=Mu(e,this._root);return A&&A.children.length>0?A.children[0].value:null}siblings(e){let A=Ru(e,this._root);return A.length<2?[]:A[A.length-2].children.map(o=>o.value).filter(o=>o!==e)}pathFromRoot(e){return Ru(e,this._root).map(A=>A.value)}};function Mu(t,e){if(t===e.value)return e;for(let A of e.children){let i=Mu(t,A);if(i)return i}return null}function Ru(t,e){if(t===e.value)return[e];for(let A of e.children){let i=Ru(t,A);if(i.length)return i.unshift(e),i}return[]}var $t=class{value;children;constructor(e,A){this.value=e,this.children=A}toString(){return`TreeNode(${this.value})`}};function Jr(t){let e={};return t&&t.children.forEach(A=>e[A.value.outlet]=A),e}var ja=class extends WQ{snapshot;constructor(e,A){super(e),this.snapshot=A,Lu(this,e)}toString(){return this.snapshot.toString()}};function dR(t){let e=KY(t),A=new $A([new kn("",{})]),i=new $A({}),o=new $A({}),n=new $A({}),g=new $A(""),r=new _t(A,i,n,g,o,PA,t,e.root);return r.snapshot=e.root,new ja(new $t(r,[]),e)}function KY(t){let e={},A={},i={},o="",n=new ug([],e,i,o,A,PA,t,null,{});return new Xa("",new $t(n,[]))}var _t=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(sA(a=>a[tI]))??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(sA(e=>mg(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(sA(e=>mg(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function zQ(t,e,A="emptyOnly"){let i,{routeConfig:o}=t;return e!==null&&(A==="always"||o?.path===""||!e.component&&!e.routeConfig?.loadComponent)?i={params:b(b({},e.params),t.params),data:b(b({},e.data),t.data),resolve:b(b(b(b({},t.data),e.data),o?.data),t._resolvedData)}:i={params:b({},t.params),data:b({},t.data),resolve:b(b({},t.data),t._resolvedData??{})},o&&uR(o)&&(i.resolve[tI]=o.title),i}var ug=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[tI]}constructor(e,A,i,o,n,g,r,s,a){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=a}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??=mg(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=mg(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}')`}},Xa=class extends WQ{url;constructor(e,A){super(A),this.url=e,Lu(this,A)}toString(){return hR(this._root)}};function Lu(t,e){e.value._routerState=t,e.children.forEach(A=>Lu(t,A))}function hR(t){let e=t.children.length>0?` { ${t.children.map(hR).join(", ")} } `:"";return`${t.value}${e}`}function uu(t){if(t.snapshot){let e=t.snapshot,A=t._futureSnapshot;t.snapshot=A,so(e.queryParams,A.queryParams)||t.queryParamsSubject.next(A.queryParams),e.fragment!==A.fragment&&t.fragmentSubject.next(A.fragment),so(e.params,A.params)||t.paramsSubject.next(A.params),CY(e.url,A.url)||t.urlSubject.next(A.url),so(e.data,A.data)||t.dataSubject.next(A.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function ku(t,e){let A=so(t.params,e.params)&&cY(t.url,e.url),i=!t.parent!=!e.parent;return A&&!i&&(!t.parent||ku(t.parent,e.parent))}function uR(t){return typeof t.title=="string"||t.title===null}var mR=new F(""),_u=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=PA;activateEvents=new z;deactivateEvents=new z;attachEvents=new z;detachEvents=new z;routerOutletData=Hw(void 0);parentContexts=B(fg);location=B(Qe);changeDetector=B(UA);inputBinder=B(oI,{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 H(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new H(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new H(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 H(4013,!1);this._activatedRoute=A;let o=this.location,g=A.snapshot.component,r=this.parentContexts.getOrCreateContext(this.name).children,s=new bu(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=T({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[TA]})}return t})(),bu=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===_t?this.route:e===fg?this.childContexts:e===mR?this.outletData:this.parent.get(e,A)}},oI=new F(""),Ku=(()=>{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=mt([i.queryParams,i.params,i.data]).pipe(Ie(([n,g,r],s)=>(r=b(b(b({},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=x0(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 UY(t,e,A){let i=$a(t,e._root,A?A._root:void 0);return new ja(i,e)}function $a(t,e,A){if(A&&t.shouldReuseRoute(e.value,A.value.snapshot)){let i=A.value;i._futureSnapshot=e.value;let o=xY(t,e,A);return new $t(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=>$a(t,r)),g}}let i=YY(e.value),o=e.children.map(n=>$a(t,n));return new $t(i,o)}}function xY(t,e,A){return e.children.map(i=>{for(let o of A.children)if(t.shouldReuseRoute(i.value,o.value.snapshot))return $a(t,i,o);return $a(t,i)})}function YY(t){return new _t(new $A(t.url),new $A(t.params),new $A(t.queryParams),new $A(t.fragment),new $A(t.data),t.outlet,t.component,t)}var Wr=class{redirectTo;navigationBehaviorOptions;constructor(e,A){this.redirectTo=e,this.navigationBehaviorOptions=A}},DR="ngNavigationCancelingError";function jQ(t,e){let{redirectTo:A,navigationBehaviorOptions:i}=Or(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,o=fR(!1,Lt.Redirect);return o.url=A,o.navigationBehaviorOptions=i,o}function fR(t,e){let A=new Error(`NavigationCancelingError: ${t||""}`);return A[DR]=!0,A.cancellationCode=e,A}function JY(t){return pR(t)&&Or(t.url)}function pR(t){return!!t&&t[DR]}var HY=(t,e,A,i)=>sA(o=>(new Fu(e,o.targetRouterState,o.currentRouterState,A,i).activate(t),o)),Fu=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),uu(this.futureState.root),this.activateChildRoutes(A,i,e)}deactivateChildRoutes(e,A,i){let o=Jr(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=Jr(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=Jr(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=Jr(A);e.children.forEach(n=>{this.activateRoutes(n,o[n.value.outlet],i),this.forwardEvent(new qQ(n.value.snapshot))}),e.children.length&&this.forwardEvent(new PQ(e.value.snapshot))}activateRoutes(e,A,i){let o=e.value,n=A?A.value:null;if(uu(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),uu(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)}},XQ=class{path;route;constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},Tr=class{component;route;constructor(e,A){this.component=e,this.route=A}};function TY(t,e,A){let i=t._root,o=e?e._root:null;return Pa(i,o,A,[i.value])}function OY(t){let e=t.routeConfig?t.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:t,guards:e}}function jr(t,e){let A=Symbol(),i=e.get(t,A);return i===A?typeof t=="function"&&!Jp(t)?t:e.get(t):i}function Pa(t,e,A,i,o={canDeactivateChecks:[],canActivateChecks:[]}){let n=Jr(e);return t.children.forEach(g=>{PY(g,n[g.value.outlet],A,i.concat([g.value]),o),delete n[g.value.outlet]}),Object.entries(n).forEach(([g,r])=>qa(r,A.getContext(g),o)),o}function PY(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=ZY(g,n,n.routeConfig.runGuardsAndResolvers);s?o.canActivateChecks.push(new XQ(i)):(n.data=g.data,n._resolvedData=g._resolvedData),n.component?Pa(t,e,r?r.children:null,i,o):Pa(t,e,A,i,o),s&&r&&r.outlet&&r.outlet.isActivated&&o.canDeactivateChecks.push(new Tr(r.outlet.component,g))}else g&&qa(e,r,o),o.canActivateChecks.push(new XQ(i)),n.component?Pa(t,null,r?r.children:null,i,o):Pa(t,null,A,i,o);return o}function ZY(t,e,A){if(typeof A=="function")return A(t,e);switch(A){case"pathParamsChange":return!hg(t.url,e.url);case"pathParamsOrQueryParamsChange":return!hg(t.url,e.url)||!so(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ku(t,e)||!so(t.queryParams,e.queryParams);case"paramsChange":default:return!ku(t,e)}}function qa(t,e,A){let i=Jr(t),o=t.value;Object.entries(i).forEach(([n,g])=>{o.component?e?qa(g,e.children.getContext(n),A):qa(g,null,A):qa(g,e,A)}),o.component?e&&e.outlet&&e.outlet.isActivated?A.canDeactivateChecks.push(new Tr(e.outlet.component,o)):A.canDeactivateChecks.push(new Tr(null,o)):A.canDeactivateChecks.push(new Tr(null,o))}function nI(t){return typeof t=="function"}function qY(t){return typeof t=="boolean"}function VY(t){return t&&nI(t.canLoad)}function WY(t){return t&&nI(t.canActivate)}function zY(t){return t&&nI(t.canActivateChild)}function jY(t){return t&&nI(t.canDeactivate)}function XY(t){return t&&nI(t.canMatch)}function wR(t){return t instanceof No||t?.name==="EmptyError"}var vQ=Symbol("INITIAL_VALUE");function zr(){return Ie(t=>mt(t.map(e=>e.pipe(ue(1),Me(vQ)))).pipe(sA(e=>{for(let A of e)if(A!==!0){if(A===vQ)return vQ;if(A===!1||$Y(A))return A}return!0}),kA(e=>e!==vQ),ue(1)))}function $Y(t){return Or(t)||t instanceof Wr}function AJ(t,e){return ve(A=>{let{targetSnapshot:i,currentSnapshot:o,guards:{canActivateChecks:n,canDeactivateChecks:g}}=A;return g.length===0&&n.length===0?iA(uA(b({},A),{guardsResult:!0})):eJ(g,i,o,t).pipe(ve(r=>r&&qY(r)?tJ(i,n,t,e):iA(r)),sA(r=>uA(b({},A),{guardsResult:r})))})}function eJ(t,e,A,i){return se(t).pipe(ve(o=>rJ(o.component,o.route,A,e,i)),Wi(o=>o!==!0,!0))}function tJ(t,e,A,i){return se(e).pipe(qi(o=>In(oJ(o.route.parent,i),iJ(o.route,i),gJ(t,o.path,A),nJ(t,o.route,A))),Wi(o=>o!==!0,!0))}function iJ(t,e){return t!==null&&e&&e(new ZQ(t)),iA(!0)}function oJ(t,e){return t!==null&&e&&e(new OQ(t)),iA(!0)}function nJ(t,e,A){let i=e.routeConfig?e.routeConfig.canActivate:null;if(!i||i.length===0)return iA(!0);let o=i.map(n=>Zi(()=>{let g=iI(e)??A,r=jr(n,g),s=WY(r)?r.canActivate(e,t):St(g,()=>r(e,t));return vn(s).pipe(Wi())}));return iA(o).pipe(zr())}function gJ(t,e,A){let i=e[e.length-1],n=e.slice(0,e.length-1).reverse().map(g=>OY(g)).filter(g=>g!==null).map(g=>Zi(()=>{let r=g.guards.map(s=>{let a=iI(g.node)??A,Q=jr(s,a),c=zY(Q)?Q.canActivateChild(i,t):St(a,()=>Q(i,t));return vn(c).pipe(Wi())});return iA(r).pipe(zr())}));return iA(n).pipe(zr())}function rJ(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=iI(e)??o,a=jr(r,s),Q=jY(a)?a.canDeactivate(t,e,A,i):St(s,()=>a(t,e,A,i));return vn(Q).pipe(Wi())});return iA(g).pipe(zr())}function sJ(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=jr(g,t),s=VY(r)?r.canLoad(e,A):St(t,()=>r(e,A));return vn(s)});return iA(n).pipe(zr(),yR(i))}function yR(t){return tl(Ce(e=>{if(typeof e!="boolean")throw jQ(t,e)}),sA(e=>e===!0))}function aJ(t,e,A,i){let o=e.canMatch;if(!o||o.length===0)return iA(!0);let n=o.map(g=>{let r=jr(g,t),s=XY(r)?r.canMatch(e,A):St(t,()=>r(e,A));return vn(s)});return iA(n).pipe(zr(),yR(i))}var AI=class{segmentGroup;constructor(e){this.segmentGroup=e||null}},eI=class extends Error{urlTree;constructor(e){super(),this.urlTree=e}};function Yr(t){return rn(new AI(t))}function IJ(t){return rn(new H(4e3,!1))}function CJ(t){return rn(fR(!1,Lt.GuardRejected))}var vu=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[PA])return IJ(`${e.redirectTo}`);o=o.children[PA]}}applyRedirectCommands(e,A,i,o,n){if(typeof A!="string"){let r=A,{queryParams:s,fragment:a,routeConfig:Q,url:c,outlet:f,params:m,data:p,title:M}=o,K=St(n,()=>r({params:m,data:p,queryParams:s,fragment:a,routeConfig:Q,url:c,outlet:f,title:M}));if(K instanceof Io)throw new eI(K);A=K}let g=this.applyRedirectCreateUrlTree(A,this.urlSerializer.parse(A),e,i);if(A[0]==="/")throw new eI(g);return g}applyRedirectCreateUrlTree(e,A,i,o){let n=this.createSegmentGroup(e,A.root,i,o);return new Io(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 te(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 H(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}},Su={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function BJ(t,e,A,i,o){let n=MR(t,e,A);return n.matched?(i=LY(e,i),aJ(i,e,A,o).pipe(sA(g=>g===!0?n:b({},Su)))):iA(n)}function MR(t,e,A){if(e.path==="**")return QJ(A);if(e.path==="")return e.pathMatch==="full"&&(t.hasChildren()||A.length>0)?b({},Su):{matched:!0,consumedSegments:[],remainingSegments:A,parameters:{},positionalParamSegments:{}};let o=(e.matcher||eR)(A,t,e);if(!o)return b({},Su);let n={};Object.entries(o.posParams??{}).forEach(([r,s])=>{n[r]=s.path});let g=o.consumed.length>0?b(b({},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 QJ(t){return{matched:!0,parameters:t.length>0?iR(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function XM(t,e,A,i){return A.length>0&&lJ(t,A,i)?{segmentGroup:new te(e,cJ(i,new te(A,t.children))),slicedSegments:[]}:A.length===0&&dJ(t,A,i)?{segmentGroup:new te(t.segments,EJ(t,A,i,t.children)),slicedSegments:A}:{segmentGroup:new te(t.segments,t.children),slicedSegments:A}}function EJ(t,e,A,i){let o={};for(let n of A)if(AE(t,e,n)&&!i[Gi(n)]){let g=new te([],{});o[Gi(n)]=g}return b(b({},i),o)}function cJ(t,e){let A={};A[PA]=e;for(let i of t)if(i.path===""&&Gi(i)!==PA){let o=new te([],{});A[Gi(i)]=o}return A}function lJ(t,e,A){return A.some(i=>AE(t,e,i)&&Gi(i)!==PA)}function dJ(t,e,A){return A.some(i=>AE(t,e,i))}function AE(t,e,A){return(t.hasChildren()||e.length>0)&&A.pathMatch==="full"?!1:A.path===""}function hJ(t,e,A){return e.length===0&&!t.children[A]}var Nu=class{};function uJ(t,e,A,i,o,n,g="emptyOnly"){return new Gu(t,e,A,i,o,g,n).recognize()}var mJ=31,Gu=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 vu(this.urlSerializer,this.urlTree)}noMatchError(e){return new H(4002,`'${e.segmentGroup}'`)}recognize(){let e=XM(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(sA(({children:A,rootSnapshot:i})=>{let o=new $t(i,A),n=new Xa("",o),g=BR(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 ug([],Object.freeze({}),Object.freeze(b({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),PA,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,e,PA,A).pipe(sA(i=>({children:i,rootSnapshot:A})),Oe(i=>{if(i instanceof eI)return this.urlTree=i.urlTree,this.match(i.urlTree.root);throw i instanceof AI?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(sA(g=>g instanceof $t?[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 se(n).pipe(qi(g=>{let r=i.children[g],s=_Y(A,g);return this.processSegmentGroup(e,s,r,g,o)}),sl((g,r)=>(g.push(...r),g)),Cn(null),rl(),ve(g=>{if(g===null)return Yr(i);let r=RR(g);return DJ(r),iA(r)}))}processSegment(e,A,i,o,n,g,r){return se(A).pipe(qi(s=>this.processSegmentAgainstRoute(s._injector??e,A,s,i,o,n,g,r).pipe(Oe(a=>{if(a instanceof AI)return iA(null);throw a}))),Wi(s=>!!s),Oe(s=>{if(wR(s))return hJ(i,o,n)?iA(new Nu):Yr(i);throw s}))}processSegmentAgainstRoute(e,A,i,o,n,g,r,s){return Gi(i)!==g&&(g===PA||!AE(o,n,i))?Yr(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):Yr(o)}expandSegmentAgainstRouteUsingRedirect(e,A,i,o,n,g,r){let{matched:s,parameters:a,consumedSegments:Q,positionalParamSegments:c,remainingSegments:f}=MR(A,o,n);if(!s)return Yr(A);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>mJ&&(this.allowRedirects=!1));let m=new ug(n,a,Object.freeze(b({},this.urlTree.queryParams)),this.urlTree.fragment,$M(o),Gi(o),o.component??o._loadedComponent??null,o,AR(o)),p=zQ(m,r,this.paramsInheritanceStrategy);m.params=Object.freeze(p.params),m.data=Object.freeze(p.data);let M=this.applyRedirects.applyRedirectCommands(Q,o.redirectTo,c,m,e);return this.applyRedirects.lineralizeSegments(o,M).pipe(ve(K=>this.processSegment(e,i,A,K.concat(f),g,!1,r)))}matchSegmentAgainstRoute(e,A,i,o,n,g){let r=BJ(A,i,o,e,this.urlSerializer);return i.path==="**"&&(A.children={}),r.pipe(Ie(s=>s.matched?(e=i._injector??e,this.getChildConfig(e,i,o).pipe(Ie(({routes:a})=>{let Q=i._loadedInjector??e,{parameters:c,consumedSegments:f,remainingSegments:m}=s,p=new ug(f,c,Object.freeze(b({},this.urlTree.queryParams)),this.urlTree.fragment,$M(i),Gi(i),i.component??i._loadedComponent??null,i,AR(i)),M=zQ(p,g,this.paramsInheritanceStrategy);p.params=Object.freeze(M.params),p.data=Object.freeze(M.data);let{segmentGroup:K,slicedSegments:W}=XM(A,f,m,a);if(W.length===0&&K.hasChildren())return this.processChildren(Q,a,K,p).pipe(sA(YA=>new $t(p,YA)));if(a.length===0&&W.length===0)return iA(new $t(p,[]));let DA=Gi(i)===n;return this.processSegment(Q,a,K,W,DA?PA:n,!0,p).pipe(sA(YA=>new $t(p,YA instanceof $t?[YA]:[])))}))):Yr(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}):sJ(e,A,i,this.urlSerializer).pipe(ve(o=>o?this.configLoader.loadChildren(e,A).pipe(Ce(n=>{A._loadedRoutes=n.routes,A._loadedInjector=n.injector})):CJ(A))):iA({routes:[],injector:e})}};function DJ(t){t.sort((e,A)=>e.value.outlet===PA?-1:A.value.outlet===PA?1:e.value.outlet.localeCompare(A.value.outlet))}function fJ(t){let e=t.value.routeConfig;return e&&e.path===""}function RR(t){let e=[],A=new Set;for(let i of t){if(!fJ(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=RR(i.children);e.push(new $t(i.value,o))}return e.filter(i=>!A.has(i))}function $M(t){return t.data||{}}function AR(t){return t.resolve||{}}function pJ(t,e,A,i,o,n){return ve(g=>uJ(t,e,A,i,g.extractedUrl,o,n).pipe(sA(({state:r,tree:s})=>uA(b({},g),{targetSnapshot:r,urlAfterRedirects:s}))))}function wJ(t,e){return ve(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 a of kR(s))g.add(a);let r=0;return se(g).pipe(qi(s=>n.has(s)?yJ(s,i,t,e):(s.data=zQ(s,s.parent,t).resolve,iA(void 0))),Ce(()=>r++),gr(1),ve(s=>r===g.size?iA(A):xe))})}function kR(t){let e=t.children.map(A=>kR(A)).flat();return[t,...e]}function yJ(t,e,A,i){let o=t.routeConfig,n=t._resolve;return o?.title!==void 0&&!uR(o)&&(n[tI]=o.title),MJ(n,t,e,i).pipe(sA(g=>(t._resolvedData=g,t.data=zQ(t,t.parent,A).resolve,null)))}function MJ(t,e,A,i){let o=fu(t);if(o.length===0)return iA({});let n={};return se(o).pipe(ve(g=>RJ(t[g],e,A,i).pipe(Wi(),Ce(r=>{if(r instanceof Wr)throw jQ(new bn,r);n[g]=r}))),gr(1),sA(()=>n),Oe(g=>wR(g)?xe:rn(g)))}function RJ(t,e,A,i){let o=iI(e)??i,n=jr(t,o),g=n.resolve?n.resolve(e,A):St(o,()=>n(e,A));return vn(g)}function mu(t){return Ie(e=>{let A=t(e);return A?se(A).pipe(sA(()=>e)):iA(e)})}var Uu=(()=>{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===PA);return i}getResolvedTitleForRoute(A){return A.data[tI]}static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:()=>B(bR),providedIn:"root"})}return t})(),bR=(()=>{class t extends Uu{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)(Z(mM))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),pg=new F("",{providedIn:"root",factory:()=>({})}),xu=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=O({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(i,o){i&1&&P(0,"router-outlet")},dependencies:[_u],encapsulation:2})}return t})();function Yu(t){let e=t.children&&t.children.map(Yu),A=e?uA(b({},t),{children:e}):b({},t);return!A.component&&!A.loadComponent&&(e||A.loadChildren)&&A.outlet&&A.outlet!==PA&&(A.component=xu),A}var Xr=new F(""),eE=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=B(v0);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=vn(A.loadComponent()).pipe(sA(vR),Ce(n=>{this.onLoadEndListener&&this.onLoadEndListener(A),A._loadedComponent=n}),Vi(()=>{this.componentLoaders.delete(A)})),o=new gn(i,()=>new U).pipe($g());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=FR(i,this.compiler,A,this.onLoadEndListener).pipe(Vi(()=>{this.childrenLoaders.delete(i)})),g=new gn(n,()=>new U).pipe($g());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 FR(t,e,A,i){return vn(t.loadChildren()).pipe(sA(vR),ve(o=>o instanceof Rh||Array.isArray(o)?iA(o):se(e.compileModuleAsync(o))),sA(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(Xr,[],{optional:!0,self:!0}).flat()),{routes:g.map(Yu),injector:n}}))}function kJ(t){return t&&typeof t=="object"&&"default"in t}function vR(t){return kJ(t)?t.default:t}var tE=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:()=>B(bJ),providedIn:"root"})}return t})(),bJ=(()=>{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})(),Ju=new F(""),Hu=new F("");function SR(t,e,A){let i=t.get(Hu),o=t.get(cA);return t.get(tA).runOutsideAngular(()=>{if(!o.startViewTransition||i.skipNextTransition)return i.skipNextTransition=!1,new Promise(a=>setTimeout(a));let n,g=new Promise(a=>{n=a}),r=o.startViewTransition(()=>(n(),FJ(t))),{onViewTransitionCreated:s}=i;return s&&St(t,()=>s({transition:r,from:e,to:A})),g})}function FJ(t){return new Promise(e=>{Le({read:()=>setTimeout(e)},{injector:t})})}var Tu=new F(""),iE=(()=>{class t{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new U;transitionAbortSubject=new U;configLoader=B(eE);environmentInjector=B(Ye);destroyRef=B(yr);urlSerializer=B(Dg);rootContexts=B(fg);location=B(no);inputBindingEnabled=B(oI,{optional:!0})!==null;titleStrategy=B(Uu);options=B(pg,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=B(tE);createViewTransition=B(Ju,{optional:!0});navigationErrorHandler=B(Tu,{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 HQ(o)),i=o=>this.events.next(new TQ(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(uA(b({},A),{extractedUrl:this.urlHandlingStrategy.extract(A.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:i}))}setupNavigations(A){return this.transitions=new $A(null),this.transitions.pipe(kA(i=>i!==null),Ie(i=>{let o=!1,n=!1;return iA(i).pipe(Ie(g=>{if(this.navigationId>i.id)return this.cancelNavigationTransition(i,"",Lt.SupersededByNewNavigation),xe;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?uA(b({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let r=!A.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),s=g.extras.onSameUrlNavigation??A.onSameUrlNavigation;if(!r&&s!=="reload"){let a="";return this.events.next(new Co(g.id,this.urlSerializer.serialize(g.rawUrl),a,Pr.IgnoredSameUrlNavigation)),g.resolve(!1),xe}if(this.urlHandlingStrategy.shouldProcessUrl(g.rawUrl))return iA(g).pipe(Ie(a=>(this.events.next(new Fn(a.id,this.urlSerializer.serialize(a.extractedUrl),a.source,a.restoredState)),a.id!==this.navigationId?xe:Promise.resolve(a))),pJ(this.environmentInjector,this.configLoader,this.rootComponentType,A.config,this.urlSerializer,this.paramsInheritanceStrategy),Ce(a=>{i.targetSnapshot=a.targetSnapshot,i.urlAfterRedirects=a.urlAfterRedirects,this.currentNavigation=uA(b({},this.currentNavigation),{finalUrl:a.urlAfterRedirects});let Q=new Wa(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(Q)}));if(r&&this.urlHandlingStrategy.shouldProcessUrl(g.currentRawUrl)){let{id:a,extractedUrl:Q,source:c,restoredState:f,extras:m}=g,p=new Fn(a,this.urlSerializer.serialize(Q),c,f);this.events.next(p);let M=dR(this.rootComponentType).snapshot;return this.currentTransition=i=uA(b({},g),{targetSnapshot:M,urlAfterRedirects:Q,extras:uA(b({},m),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=Q,iA(i)}else{let a="";return this.events.next(new Co(g.id,this.urlSerializer.serialize(g.extractedUrl),a,Pr.IgnoredByUrlHandlingStrategy)),g.resolve(!1),xe}}),Ce(g=>{let r=new UQ(g.id,this.urlSerializer.serialize(g.extractedUrl),this.urlSerializer.serialize(g.urlAfterRedirects),g.targetSnapshot);this.events.next(r)}),sA(g=>(this.currentTransition=i=uA(b({},g),{guards:TY(g.targetSnapshot,g.currentSnapshot,this.rootContexts)}),i)),AJ(this.environmentInjector,g=>this.events.next(g)),Ce(g=>{if(i.guardsResult=g.guardsResult,g.guardsResult&&typeof g.guardsResult!="boolean")throw jQ(this.urlSerializer,g.guardsResult);let r=new xQ(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,"",Lt.GuardRejected),!1)),mu(g=>{if(g.guards.canActivateChecks.length!==0)return iA(g).pipe(Ce(r=>{let s=new YQ(r.id,this.urlSerializer.serialize(r.extractedUrl),this.urlSerializer.serialize(r.urlAfterRedirects),r.targetSnapshot);this.events.next(s)}),Ie(r=>{let s=!1;return iA(r).pipe(wJ(this.paramsInheritanceStrategy,this.environmentInjector),Ce({next:()=>s=!0,complete:()=>{s||this.cancelNavigationTransition(r,"",Lt.NoDataFromResolver)}}))}),Ce(r=>{let s=new JQ(r.id,this.urlSerializer.serialize(r.extractedUrl),this.urlSerializer.serialize(r.urlAfterRedirects),r.targetSnapshot);this.events.next(s)}))}),mu(g=>{let r=s=>{let a=[];s.routeConfig?.loadComponent&&!s.routeConfig._loadedComponent&&a.push(this.configLoader.loadComponent(s.routeConfig).pipe(Ce(Q=>{s.component=Q}),sA(()=>{})));for(let Q of s.children)a.push(...r(Q));return a};return mt(r(g.targetSnapshot.root)).pipe(Cn(null),ue(1))}),mu(()=>this.afterPreactivation()),Ie(()=>{let{currentSnapshot:g,targetSnapshot:r}=i,s=this.createViewTransition?.(this.environmentInjector,g.root,r.root);return s?se(s).pipe(sA(()=>i)):iA(i)}),sA(g=>{let r=UY(A.routeReuseStrategy,g.targetSnapshot,g.currentRouterState);return this.currentTransition=i=uA(b({},g),{targetRouterState:r}),this.currentNavigation.targetRouterState=r,i}),Ce(()=>{this.events.next(new za)}),HY(this.rootContexts,A.routeReuseStrategy,g=>this.events.next(g),this.inputBindingEnabled),ue(1),Ce({next:g=>{o=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new ei(g.id,this.urlSerializer.serialize(g.extractedUrl),this.urlSerializer.serialize(g.urlAfterRedirects))),this.titleStrategy?.updateTitle(g.targetRouterState.snapshot),g.resolve(!0)},complete:()=>{o=!0}}),pA(this.transitionAbortSubject.pipe(Ce(g=>{throw g}))),Vi(()=>{!o&&!n&&this.cancelNavigationTransition(i,"",Lt.SupersededByNewNavigation),this.currentTransition?.id===i.id&&(this.currentNavigation=null,this.currentTransition=null)}),Oe(g=>{if(this.destroyed)return i.resolve(!1),xe;if(n=!0,pR(g))this.events.next(new ao(i.id,this.urlSerializer.serialize(i.extractedUrl),g.message,g.cancellationCode)),JY(g)?this.events.next(new Vr(g.url,g.navigationBehaviorOptions)):i.resolve(!1);else{let r=new Zr(i.id,this.urlSerializer.serialize(i.extractedUrl),g,i.targetSnapshot??void 0);try{let s=St(this.environmentInjector,()=>this.navigationErrorHandler?.(r));if(s instanceof Wr){let{message:a,cancellationCode:Q}=jQ(this.urlSerializer,s);this.events.next(new ao(i.id,this.urlSerializer.serialize(i.extractedUrl),a,Q)),this.events.next(new Vr(s.redirectTo,s.navigationBehaviorOptions))}else throw this.events.next(r),g}catch(s){this.options.resolveNavigationPromiseOnError?i.resolve(!1):i.reject(s)}}return xe}))}))}cancelNavigationTransition(A,i,o){let n=new ao(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 vJ(t){return t!==LQ}var NR=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:()=>B(SJ),providedIn:"root"})}return t})(),$Q=class{shouldDetach(e){return!1}store(e,A){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,A){return e.routeConfig===A.routeConfig}},SJ=(()=>{class t extends $Q{static \u0275fac=(()=>{let A;return function(o){return(A||(A=jA(t)))(o||t)}})();static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),GR=(()=>{class t{urlSerializer=B(Dg);options=B(pg,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=B(no);urlHandlingStrategy=B(tE);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new Io;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 Io?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=dR(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:()=>B(NJ),providedIn:"root"})}return t})(),NJ=(()=>{class t extends GR{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 Fn?this.updateStateMemento():A instanceof Co?this.commitTransition(i):A instanceof Wa?this.urlUpdateStrategy==="eager"&&(i.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(i),i)):A instanceof za?(this.commitTransition(i),this.urlUpdateStrategy==="deferred"&&!i.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(i),i)):A instanceof ao&&(A.code===Lt.GuardRejected||A.code===Lt.NoDataFromResolver)?this.restoreHistory(i):A instanceof Zr?this.restoreHistory(i,!0):A instanceof ei&&(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=b(b({},g),this.generateNgRouterState(o,r));this.location.replaceState(A,"",s)}else{let r=b(b({},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=jA(t)))(o||t)}})();static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function oE(t,e){t.events.pipe(kA(A=>A instanceof ei||A instanceof ao||A instanceof Zr||A instanceof Co),sA(A=>A instanceof ei||A instanceof Co?0:(A instanceof ao?A.code===Lt.Redirect||A.code===Lt.SupersededByNewNavigation:!1)?2:1),kA(A=>A!==2),ue(1)).subscribe(()=>{e()})}var GJ={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},LJ={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Bo=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=B(Fh);stateManager=B(GR);options=B(pg,{optional:!0})||{};pendingTasks=B(Yo);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=B(iE);urlSerializer=B(Dg);location=B(no);urlHandlingStrategy=B(tE);_events=new U;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=B(NR);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=B(Xr,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!B(oI,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:A=>{this.console.warn(A)}}),this.subscribeToNavigationEvents()}eventsSubscription=new GA;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 ao&&i.code!==Lt.Redirect&&i.code!==Lt.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof ei)this.navigated=!0;else if(i instanceof Vr){let g=i.navigationBehaviorOptions,r=this.urlHandlingStrategy.merge(i.url,o.currentRawUrl),s=b({browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||vJ(o.source)},g);this.scheduleNavigation(r,LQ,null,s,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}KJ(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),LQ,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=b({},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(Yu),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,a=s?this.currentUrlTree.fragment:g,Q=null;switch(r??this.options.defaultQueryParamsHandling){case"merge":Q=b(b({},this.currentUrlTree.queryParams),n);break;case"preserve":Q=this.currentUrlTree.queryParams;break;default:Q=n||null}Q!==null&&(Q=this.removeEmptyProps(Q));let c;try{let f=o?o.snapshot:this.routerState.snapshot.root;c=QR(f)}catch{(typeof A[0]!="string"||A[0][0]!=="/")&&(A=[]),c=this.currentUrlTree.root}return ER(c,A,Q,a??null)}navigateByUrl(A,i={skipLocationChange:!1}){let o=Or(A)?A:this.parseUrl(A),n=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(n,LQ,null,i)}navigate(A,i={skipLocationChange:!1}){return _J(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=b({},GJ):i===!1?o=b({},LJ):o=i,Or(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,a;g?(r=g.resolve,s=g.reject,a=g.promise):a=new Promise((c,f)=>{r=c,s=f});let Q=this.pendingTasks.add();return oE(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(Q))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:A,extras:n,resolve:r,reject:s,promise:a,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),a.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 _J(t){for(let e=0;e<t.length;e++)if(t[e]==null)throw new H(4008,!1)}function KJ(t){return!(t instanceof za)&&!(t instanceof Vr)}var gI=class{};var LR=(()=>{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 ei),qi(()=>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=la(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 se(o).pipe(an())}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(ve(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 se([n,g]).pipe(an())}else return n})}static \u0275fac=function(i){return new(i||t)(Z(Bo),Z(Ye),Z(gI),Z(eE))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),_R=new F(""),UJ=(()=>{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 Fn?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=A.navigationTrigger,this.restoredId=A.restoredState?A.restoredState.navigationId:0):A instanceof ei?(this.lastId=A.id,this.scheduleScrollEvent(A,this.urlSerializer.parse(A.urlAfterRedirects).fragment)):A instanceof Co&&A.code===Pr.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 qr&&(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 qr(A,this.lastSource==="popstate"?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(i){Py()};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})();function xJ(t){return t.routerState.root}function rI(t,e){return{\u0275kind:t,\u0275providers:e}}function YJ(){let t=B(yA);return e=>{let A=t.get(Zt);if(e!==A.components[0])return;let i=t.get(Bo),o=t.get(KR);t.get(Pu)===1&&i.initialNavigation(),t.get(YR,null,zA.Optional)?.setUpPreloading(),t.get(_R,null,zA.Optional)?.init(),i.resetRootComponentType(A.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var KR=new F("",{factory:()=>new U}),Pu=new F("",{providedIn:"root",factory:()=>1});function UR(){let t=[{provide:Pu,useValue:0},Gh(()=>{let e=B(yA);return e.get(Th,Promise.resolve()).then(()=>new Promise(i=>{let o=e.get(Bo),n=e.get(KR);oE(o,()=>{i(!0)}),e.get(iE).afterPreactivation=()=>(i(!0),n.closed?iA(void 0):n),o.initialNavigation()}))})];return rI(2,t)}function xR(){let t=[Gh(()=>{B(Bo).setUpLocationChangeListener()}),{provide:Pu,useValue:2}];return rI(3,t)}var YR=new F("");function JR(t){return rI(0,[{provide:YR,useExisting:LR},{provide:gI,useExisting:t}])}function HR(){return rI(8,[Ku,{provide:oI,useExisting:Ku}])}function TR(t){Jo("NgRouterViewTransitions");let e=[{provide:Ju,useValue:SR},{provide:Hu,useValue:b({skipNextTransition:!!t?.skipInitialTransition},t)}];return rI(9,e)}var OR=[no,{provide:Dg,useClass:bn},Bo,fg,{provide:_t,useFactory:xJ,deps:[Bo]},eE,[]],nE=(()=>{class t{constructor(){}static forRoot(A,i){return{ngModule:t,providers:[OR,[],{provide:Xr,multi:!0,useValue:A},[],i?.errorHandler?{provide:Tu,useValue:i.errorHandler}:[],{provide:pg,useValue:i||{}},i?.useHash?HJ():TJ(),JJ(),i?.preloadingStrategy?JR(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?OJ(i):[],i?.bindToComponentInputs?HR().\u0275providers:[],i?.enableViewTransitions?TR().\u0275providers:[],PJ()]}}static forChild(A){return{ngModule:t,providers:[{provide:Xr,multi:!0,useValue:A}]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=X({type:t});static \u0275inj=j({})}return t})();function JJ(){return{provide:_R,useFactory:()=>{let t=B(W0),e=B(tA),A=B(pg),i=B(iE),o=B(Dg);return A.scrollOffset&&t.setOffset(A.scrollOffset),new UJ(o,i,t,e,A)}}}function HJ(){return{provide:Po,useClass:qh}}function TJ(){return{provide:Po,useClass:jB}}function OJ(t){return[t.initialNavigation==="disabled"?xR().\u0275providers:[],t.initialNavigation==="enabledBlocking"?UR().\u0275providers:[]]}var Ou=new F("");function PJ(){return[{provide:Ou,useFactory:YJ},{provide:Lh,multi:!0,useExisting:Ou}]}var qu;try{qu=typeof Intl<"u"&&Intl.v8BreakIterator}catch{qu=!1}var ZA=(()=>{class t{_platformId=B(si);isBrowser=this._platformId?go(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||qu)&&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 $r,PR=["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($r)return $r;if(typeof document!="object"||!document)return $r=new Set(PR),$r;let t=document.createElement("input");return $r=new Set(PR.filter(e=>(t.setAttribute("type",e),t.type===e))),$r}var sI;function VJ(){if(sI==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>sI=!0}))}finally{sI=sI||!1}return sI}function Qo(t){return VJ()?t:!!t.capture}var Li=function(t){return t[t.NORMAL=0]="NORMAL",t[t.NEGATED=1]="NEGATED",t[t.INVERTED=2]="INVERTED",t}(Li||{}),gE,wg;function rE(){if(wg==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return wg=!1,wg;if("scrollBehavior"in document.documentElement.style)wg=!0;else{let t=Element.prototype.scrollTo;t?wg=!/\{\s*\[native code\]\s*\}/.test(t.toString()):wg=!1}}return wg}function As(){if(typeof document!="object"||!document)return Li.NORMAL;if(gE==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),gE=Li.NORMAL,t.scrollLeft===0&&(t.scrollLeft=1,gE=t.scrollLeft===0?Li.NEGATED:Li.INVERTED),t.remove()}return gE}var Zu;function WJ(){if(Zu==null){let t=typeof document<"u"?document.head:null;Zu=!!(t&&(t.createShadowRoot||t.attachShadow))}return Zu}function ZR(t){if(WJ()){let e=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function es(){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 ti(t){return t.composedPath?t.composedPath()[0]:t.target}function Wu(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function zu(t,e,A,i,o){let n=parseInt(Yh.major),g=parseInt(Yh.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 sE=new WeakMap,ke=(()=>{class t{_appRef;_injector=B(yA);_environmentInjector=B(Ye);load(A){let i=this._appRef=this._appRef||this._injector.get(Zt),o=sE.get(i);o||(o={loaders:new Set,refs:[]},sE.set(i,o),i.onDestroy(()=>{sE.get(i)?.refs.forEach(n=>n.destroy()),sE.delete(i)})),o.loaders.has(A)||(o.loaders.add(A),o.refs.push(VB(A,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),aI=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=O({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 ze(t,...e){return e.length?e.some(A=>t[A]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}function be(t){return t!=null&&`${t}`!="false"}function pt(t,e=0){return ju(t)?Number(t):arguments.length===2?e:0}function ju(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function ts(t){return Array.isArray(t)?t:[t]}function Ke(t){return t==null?"":typeof t=="string"?t:`${t}px`}function Kt(t){return t instanceof q?t.nativeElement:t}function zJ(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 qR=(()=>{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=B(qR);_observedElements=new Map;_ngZone=B(tA);constructor(){}ngOnDestroy(){this._observedElements.forEach((A,i)=>this._cleanupObserver(i))}observe(A){let i=Kt(A);return new BA(o=>{let g=this._observeElement(i).pipe(sA(r=>r.filter(s=>!zJ(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 U,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})(),aE=(()=>{class t{_contentObserver=B(VR);_elementRef=B(q);event=new z;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=pt(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(pi(this.debounce)):A).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=T({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",eA],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]})}return t})(),is=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=X({type:t});static \u0275inj=j({providers:[qR]})}return t})();var WR=new Set,yg,jJ=(()=>{class t{_platform=B(ZA);_nonce=B(aa,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):$J}matchMedia(A){return(this._platform.WEBKIT||this._platform.BLINK)&&XJ(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 XJ(t,e){if(!WR.has(t))try{yg||(yg=document.createElement("style"),e&&yg.setAttribute("nonce",e),yg.setAttribute("type","text/css"),document.head.appendChild(yg)),yg.sheet&&(yg.sheet.insertRule(`@media ${t} {body{ }}`,0),WR.add(t))}catch(A){console.error(A)}}function $J(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var IE=(()=>{class t{_mediaMatcher=B(jJ);_zone=B(tA);_queries=new Map;_destroySubject=new U;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(A){return zR(ts(A)).some(o=>this._registerQuery(o).mql.matches)}observe(A){let o=zR(ts(A)).map(g=>this._registerQuery(g).observable),n=mt(o);return n=In(n.pipe(ue(1)),n.pipe(Wn(1),pi(0))),n.pipe(sA(g=>{let r={matches:!1,breakpoints:{}};return g.forEach(({matches:s,query:a})=>{r.matches=r.matches||s,r.breakpoints[a]=s}),r}))}_registerQuery(A){if(this._queries.has(A))return this._queries.get(A);let i=this._mediaMatcher.matchMedia(A),n={observable:new BA(g=>{let r=s=>this._zone.run(()=>g.next(s));return i.addListener(r),()=>{i.removeListener(r)}}).pipe(Me(i),sA(({matches:g})=>({query:A,matches:g})),pA(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 zR(t){return t.map(e=>e.split(",")).reduce((e,A)=>e.concat(A)).map(e=>e.trim())}var jR={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 tk=" ";function nm(t,e,A){let i=EE(t,e);A=A.trim(),!i.some(o=>o.trim()===A)&&(i.push(A),t.setAttribute(e,i.join(tk)))}function mE(t,e,A){let i=EE(t,e);A=A.trim();let o=i.filter(n=>n!==A);o.length?t.setAttribute(e,o.join(tk)):t.removeAttribute(e)}function EE(t,e){return t.getAttribute(e)?.match(/\S+/g)??[]}var ik="cdk-describedby-message",CE="cdk-describedby-host",em=0,ok=(()=>{class t{_platform=B(ZA);_document=B(cA);_messageRegistry=new Map;_messagesContainer=null;_id=`${em++}`;constructor(){B(ke).load(aI),this._id=B(Qg)+"-"+em++}describe(A,i,o){if(!this._canBeDescribed(A,i))return;let n=Xu(i,o);typeof i!="string"?(XR(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=Xu(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(`[${CE}="${this._id}"]`);for(let i=0;i<A.length;i++)this._removeCdkDescribedByReferenceIds(A[i]),A[i].removeAttribute(CE);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(A,i){let o=this._document.createElement("div");XR(o,this._id),o.textContent=A,i&&o.setAttribute("role",i),this._createMessagesContainer(),this._messagesContainer.appendChild(o),this._messageRegistry.set(Xu(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=EE(A,"aria-describedby").filter(o=>o.indexOf(ik)!=0);A.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(A,i){let o=this._messageRegistry.get(i);nm(A,"aria-describedby",o.messageElement.id),A.setAttribute(CE,this._id),o.referenceCount++}_removeMessageReference(A,i){let o=this._messageRegistry.get(i);o.referenceCount--,mE(A,"aria-describedby",o.messageElement.id),A.removeAttribute(CE)}_isElementDescribedByMessage(A,i){let o=EE(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 Xu(t,e){return typeof t=="string"?`${e||""}/${t}`:t}function XR(t,e){t.id||(t.id=`${ik}-${e}-${em++}`)}var QH=200,tm=class{_letterKeyStream=new U;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new U;selectedItem=this._selectedItem;constructor(e,A){let i=typeof A?.debounceInterval=="number"?A.debounceInterval:QH;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(Ce(A=>this._pressedLetters.push(A)),pi(e),kA(()=>this._pressedLetters.length>0),sA(()=>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=[]})}},cE=class{_items;_activeItemIndex=-1;_activeItem=gt(null);_wrap=!1;_typeaheadSubscription=GA.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 bi?this._itemChangesSubscription=e.changes.subscribe(i=>this._itemsChanged(i.toArray())):hn(e)&&(this._effectRef=ua(()=>this._itemsChanged(e()),{injector:A}))}tabOut=new U;change=new U;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 tm(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||ze(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 hn(this._items)?this._items():this._items instanceof bi?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))}}},lE=class extends cE{setActiveItem(e){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(e),this.activeItem&&this.activeItem.setActiveStyles()}},dE=class extends cE{_origin="program";setFocusOrigin(e){return this._origin=e,this}setActiveItem(e){super.setActiveItem(e),this.activeItem&&this.activeItem.focus(this._origin)}};var BI=(()=>{class t{_platform=B(ZA);constructor(){}isDisabled(A){return A.hasAttribute("disabled")}isVisible(A){return cH(A)&&getComputedStyle(A).visibility==="visible"}isTabbable(A){if(!this._platform.isBrowser)return!1;let i=EH(pH(A));if(i&&($R(i)===-1||!this.isVisible(i)))return!1;let o=A.nodeName.toLowerCase(),n=$R(A);return A.hasAttribute("contenteditable")?n!==-1:o==="iframe"||o==="object"||this._platform.WEBKIT&&this._platform.IOS&&!DH(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 fH(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 EH(t){try{return t.frameElement}catch{return null}}function cH(t){return!!(t.offsetWidth||t.offsetHeight||typeof t.getClientRects=="function"&&t.getClientRects().length)}function lH(t){let e=t.nodeName.toLowerCase();return e==="input"||e==="select"||e==="button"||e==="textarea"}function dH(t){return uH(t)&&t.type=="hidden"}function hH(t){return mH(t)&&t.hasAttribute("href")}function uH(t){return t.nodeName.toLowerCase()=="input"}function mH(t){return t.nodeName.toLowerCase()=="a"}function nk(t){if(!t.hasAttribute("tabindex")||t.tabIndex===void 0)return!1;let e=t.getAttribute("tabindex");return!!(e&&!isNaN(parseInt(e,10)))}function $R(t){if(!nk(t))return null;let e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}function DH(t){let e=t.nodeName.toLowerCase(),A=e==="input"&&t.type;return A==="text"||A==="password"||e==="select"||e==="textarea"}function fH(t){return dH(t)?!1:lH(t)||hH(t)||t.hasAttribute("contenteditable")||nk(t)}function pH(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}var im=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?Le(e,{injector:this._injector}):setTimeout(e)}},DE=(()=>{class t{_checker=B(BI);_ngZone=B(tA);_document=B(cA);_injector=B(yA);constructor(){B(ke).load(aI)}create(A,i=!1){return new im(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 gm(t){return t.buttons===0||t.detail===0}function rm(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 wH=new F("cdk-input-modality-detector-options"),yH={ignoreKeys:[18,17,224,91,16]},gk=650,os=Qo({passive:!0,capture:!0}),MH=(()=>{class t{_platform=B(ZA);modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new $A(null);_options;_lastTouchMs=0;_onKeydown=A=>{this._options?.ignoreKeys?.some(i=>i===A.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=ti(A))};_onMousedown=A=>{Date.now()-this._lastTouchMs<gk||(this._modality.next(gm(A)?"keyboard":"mouse"),this._mostRecentTarget=ti(A))};_onTouchstart=A=>{if(rm(A)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=ti(A)};constructor(){let A=B(tA),i=B(cA),o=B(wH,{optional:!0});this._options=b(b({},yH),o),this.modalityDetected=this._modality.pipe(Wn(1)),this.modalityChanged=this.modalityDetected.pipe(wi()),this._platform.isBrowser&&A.runOutsideAngular(()=>{i.addEventListener("keydown",this._onKeydown,os),i.addEventListener("mousedown",this._onMousedown,os),i.addEventListener("touchstart",this._onTouchstart,os)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,os),document.removeEventListener("mousedown",this._onMousedown,os),document.removeEventListener("touchstart",this._onTouchstart,os))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),RH=new F("liveAnnouncerElement",{providedIn:"root",factory:kH});function kH(){return null}var bH=new F("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),FH=0,fE=(()=>{class t{_ngZone=B(tA);_defaultOptions=B(bH,{optional:!0});_liveElement;_document=B(cA);_previousTimeout;_currentPromise;_currentResolve;constructor(){let A=B(RH,{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-${FH++}`,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 QE=function(t){return t[t.IMMEDIATE=0]="IMMEDIATE",t[t.EVENTUAL=1]="EVENTUAL",t}(QE||{}),vH=new F("cdk-focus-monitor-default-options"),BE=Qo({passive:!0,capture:!0}),Ut=(()=>{class t{_ngZone=B(tA);_platform=B(ZA);_inputModalityDetector=B(MH);_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=B(cA,{optional:!0});_stopInputModalityDetector=new U;constructor(){let A=B(vH,{optional:!0});this._detectionMode=A?.detectionMode||QE.IMMEDIATE}_rootNodeFocusAndBlurListener=A=>{let i=ti(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=Kt(A);if(!this._platform.isBrowser||o.nodeType!==1)return iA();let n=ZR(o)||this._getDocument(),g=this._elementInfo.get(o);if(g)return i&&(g.checkChildren=!0),g.subject;let r={checkChildren:i,subject:new U,rootNode:n};return this._elementInfo.set(o,r),this._registerGlobalListeners(r),r.subject}stopMonitoring(A){let i=Kt(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=Kt(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===QE.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===QE.IMMEDIATE){clearTimeout(this._originTimeoutId);let o=this._originFromTouchInteraction?gk:1;this._originTimeoutId=setTimeout(()=>this._origin=null,o)}})}_onFocus(A,i){let o=this._elementInfo.get(i),n=ti(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,BE),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,BE)}),this._rootNodeFocusListenerCount.set(i,o+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(pA(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,BE),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,BE),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})(),rk=(()=>{class t{_elementRef=B(q);_focusMonitor=B(Ut);_monitorSubscription;_focusOrigin=null;cdkFocusChange=new z;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=T({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return t})(),Mg=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}(Mg||{}),Ak="cdk-high-contrast-black-on-white",ek="cdk-high-contrast-white-on-black",$u="cdk-high-contrast-active",sm=(()=>{class t{_platform=B(ZA);_hasCheckedHighContrastMode;_document=B(cA);_breakpointSubscription;constructor(){this._breakpointSubscription=B(IE).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return Mg.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 Mg.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return Mg.BLACK_ON_WHITE}return Mg.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let A=this._document.body.classList;A.remove($u,Ak,ek),this._hasCheckedHighContrastMode=!0;let i=this.getHighContrastMode();i===Mg.BLACK_ON_WHITE?A.add($u,Ak):i===Mg.WHITE_ON_BLACK&&A.add($u,ek)}}static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),am=(()=>{class t{constructor(){B(sm)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(i){return new(i||t)};static \u0275mod=X({type:t});static \u0275inj=j({imports:[is]})}return t})(),Am={},re=(()=>{class t{_appId=B(Qg);getId(A){return this._appId!=="ng"&&(A+=this._appId),Am.hasOwnProperty(A)||(Am[A]=0),`${A}${Am[A]++}`}static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var SH=new F("cdk-dir-doc",{providedIn:"root",factory:NH});function NH(){return B(cA)}var GH=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function LH(t){let e=t?.toLowerCase()||"";return e==="auto"&&typeof navigator<"u"&&navigator?.language?GH.test(navigator.language)?"rtl":"ltr":e==="rtl"?"rtl":"ltr"}var Se=(()=>{class t{value="ltr";change=new z;constructor(){let A=B(SH,{optional:!0});if(A){let i=A.body?A.body.dir:null,o=A.documentElement?A.documentElement.dir:null;this.value=LH(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 Sn=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=X({type:t});static \u0275inj=j({})}return t})();var _H=["text"],KH=[[["mat-icon"]],"*"],UH=["mat-icon","*"];function xH(t,e){if(t&1&&P(0,"mat-pseudo-checkbox",1),t&2){let A=y();L("disabled",A.disabled)("state",A.selected?"checked":"unchecked")}}function YH(t,e){if(t&1&&P(0,"mat-pseudo-checkbox",3),t&2){let A=y();L("disabled",A.disabled)}}function JH(t,e){if(t&1&&(d(0,"span",4),k(1),h()),t&2){let A=y();D(),NA("(",A.group.label,")")}}var HH=["mat-internal-form-field",""],TH=["*"];var mA=(()=>{class t{constructor(){B(sm)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(i){return new(i||t)};static \u0275mod=X({type:t});static \u0275inj=j({imports:[Sn,Sn]})}return t})(),Rg=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 gs=(()=>{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})(),xt=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=O({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 Ci=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}(Ci||{}),Bm=class{_renderer;element;config;_animationForciblyDisabledThroughCss;state=Ci.HIDDEN;constructor(e,A,i,o=!1){this._renderer=e,this.element=A,this.config=i,this._animationForciblyDisabledThroughCss=o}fadeOut(){this._renderer.fadeOutRipple(this)}},sk=Qo({passive:!0,capture:!0}),Qm=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,sk)})}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,sk)))}_delegateEventHandler=e=>{let A=ti(e);A&&this._events.get(e.type)?.forEach((i,o)=>{(o===A||o.contains(A))&&i.forEach(n=>n.handleEvent(e))})}},wE={enterDuration:225,exitDuration:150},OH=800,ak=Qo({passive:!0,capture:!0}),Ik=["mousedown","touchstart"],Ck=["mouseup","mouseleave","touchend","touchcancel"],PH=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=O({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})(),ns=class t{_target;_ngZone;_platform;_containerElement;_triggerElement;_isPointerDown=!1;_activeRipples=new Map;_mostRecentTransientRipple;_lastTouchStartEvent;_pointerUpEventsRegistered=!1;_containerRect;static _eventManager=new Qm;constructor(e,A,i,o,n){this._target=e,this._ngZone=A,this._platform=o,o.isBrowser&&(this._containerElement=Kt(i)),n&&n.get(ke).load(PH)}fadeInRipple(e,A,i={}){let o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),n=b(b({},wE),i.animation);i.centered&&(e=o.left+o.width/2,A=o.top+o.height/2);let g=i.radius||ZH(e,A,o),r=e-o.left,s=A-o.top,a=n.enterDuration,Q=document.createElement("div");Q.classList.add("mat-ripple-element"),Q.style.left=`${r-g}px`,Q.style.top=`${s-g}px`,Q.style.height=`${g*2}px`,Q.style.width=`${g*2}px`,i.color!=null&&(Q.style.backgroundColor=i.color),Q.style.transitionDuration=`${a}ms`,this._containerElement.appendChild(Q);let c=window.getComputedStyle(Q),f=c.transitionProperty,m=c.transitionDuration,p=f==="none"||m==="0s"||m==="0s, 0s"||o.width===0&&o.height===0,M=new Bm(this,Q,i,p);Q.style.transform="scale3d(1, 1, 1)",M.state=Ci.FADING_IN,i.persistent||(this._mostRecentTransientRipple=M);let K=null;return!p&&(a||n.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let W=()=>{K&&(K.fallbackTimer=null),clearTimeout(YA),this._finishRippleTransition(M)},DA=()=>this._destroyRipple(M),YA=setTimeout(DA,a+100);Q.addEventListener("transitionend",W),Q.addEventListener("transitioncancel",DA),K={onTransitionEnd:W,onTransitionCancel:DA,fallbackTimer:YA}}),this._activeRipples.set(M,K),(p||!a)&&this._finishRippleTransition(M),M}fadeOutRipple(e){if(e.state===Ci.FADING_OUT||e.state===Ci.HIDDEN)return;let A=e.element,i=b(b({},wE),e.config.animation);A.style.transitionDuration=`${i.exitDuration}ms`,A.style.opacity="0",e.state=Ci.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=Kt(e);!this._platform.isBrowser||!A||A===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=A,Ik.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(()=>{Ck.forEach(A=>{this._triggerElement.addEventListener(A,this,ak)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(e){e.state===Ci.FADING_IN?this._startFadeOutTransition(e):e.state===Ci.FADING_OUT&&this._destroyRipple(e)}_startFadeOutTransition(e){let A=e===this._mostRecentTransientRipple,{persistent:i}=e.config;e.state=Ci.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=Ci.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=gm(e),i=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+OH;!this._target.rippleDisabled&&!A&&!i&&(this._isPointerDown=!0,this.fadeInRipple(e.clientX,e.clientY,this._target.rippleConfig))}_onTouchStart(e){if(!this._target.rippleDisabled&&!rm(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===Ci.VISIBLE||e.config.terminateOnPointerUp&&e.state===Ci.FADING_IN;!e.config.persistent&&A&&e.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let e=this._triggerElement;e&&(Ik.forEach(A=>t._eventManager.removeHandler(A,e,this)),this._pointerUpEventsRegistered&&(Ck.forEach(A=>e.removeEventListener(A,this,ak)),this._pointerUpEventsRegistered=!1))}};function ZH(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 rs=new F("mat-ripple-global-options"),Eo=(()=>{class t{_elementRef=B(q);_animationMode=B(Ae,{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=B(tA),i=B(ZA),o=B(rs,{optional:!0}),n=B(yA);this._globalOptions=o||{},this._rippleRenderer=new ns(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:b(b(b({},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,b(b({},this.rippleConfig),o)):this._rippleRenderer.fadeInRipple(0,0,b(b({},this.rippleConfig),A))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=T({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(i,o){i&2&&nA("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})(),jo=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=X({type:t});static \u0275inj=j({imports:[mA,mA]})}return t})(),cm=(()=>{class t{_animationMode=B(Ae,{optional:!0});state="unchecked";disabled=!1;appearance="full";constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=O({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(i,o){i&2&&nA("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})(),lm=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=X({type:t});static \u0275inj=j({imports:[mA]})}return t})(),dm=new F("MAT_OPTION_PARENT_COMPONENT"),hm=new F("MatOptgroup");var Em=class{source;isUserInput;constructor(e,A=!1){this.source=e,this.isUserInput=A}},Nn=(()=>{class t{_element=B(q);_changeDetectorRef=B(UA);_parent=B(dm,{optional:!0});group=B(hm,{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=B(re).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 z;_text;_stateChanges=new U;constructor(){let A=B(ke);A.load(xt),A.load(aI),this._signalDisableRipple=!!this._parent&&hn(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)&&!ze(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 Em(this,A))}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=O({type:t,selectors:[["mat-option"]],viewQuery:function(i,o){if(i&1&&QA(_H,7),i&2){let n;$(n=AA())&&(o._text=n.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(i,o){i&1&&G("click",function(){return o._selectViaInteraction()})("keydown",function(g){return o._handleKeydown(g)}),i&2&&(ft("id",o.id),aA("aria-selected",o.selected)("aria-disabled",o.disabled.toString()),nA("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",eA]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:UH,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&&(OA(KH),x(0,xH,1,2,"mat-pseudo-checkbox",1),IA(1),d(2,"span",2,0),IA(4,1),h(),x(5,YH,1,1,"mat-pseudo-checkbox",3)(6,JH,2,1,"span",4),P(7,"div",5)),i&2&&(_(o.multiple?0:-1),D(5),_(!o.multiple&&o.selected&&!o.hideSingleSelectionIndicator?5:-1),D(),_(o.group&&o.group._inert?6:-1),D(),L("matRippleTrigger",o._getHostElement())("matRippleDisabled",o.disabled||o.disableRipple))},dependencies:[cm,Eo],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 ck(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 lk(t,e,A,i){return t<A?t:t+e>A+i?Math.max(0,t-i+e):A}var um=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=X({type:t});static \u0275inj=j({imports:[jo,mA,lm]})}return t})(),Bk={capture:!0},Qk=["focus","mousedown","mouseenter","touchstart"],Im="mat-ripple-loader-uninitialized",Cm="mat-ripple-loader-class-name",Ek="mat-ripple-loader-centered",pE="mat-ripple-loader-disabled",mm=(()=>{class t{_document=B(cA,{optional:!0});_animationMode=B(Ae,{optional:!0});_globalRippleOptions=B(rs,{optional:!0});_platform=B(ZA);_ngZone=B(tA);_injector=B(yA);_hosts=new Map;constructor(){this._ngZone.runOutsideAngular(()=>{for(let A of Qk)this._document?.addEventListener(A,this._onInteraction,Bk)})}ngOnDestroy(){let A=this._hosts.keys();for(let i of A)this.destroyRipple(i);for(let i of Qk)this._document?.removeEventListener(i,this._onInteraction,Bk)}configureRipple(A,i){A.setAttribute(Im,this._globalRippleOptions?.namespace??""),(i.className||!A.hasAttribute(Cm))&&A.setAttribute(Cm,i.className||""),i.centered&&A.setAttribute(Ek,""),i.disabled&&A.setAttribute(pE,"")}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(pE,""):A.removeAttribute(pE)}_onInteraction=A=>{let i=ti(A);if(i instanceof HTMLElement){let o=i.closest(`[${Im}="${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(Cm)),A.append(i);let o=this._animationMode==="NoopAnimations",n=this._globalRippleOptions,g=o?0:n?.animation?.enterDuration??wE.enterDuration,r=o?0:n?.animation?.exitDuration??wE.exitDuration,s={rippleDisabled:o||n?.disabled||A.hasAttribute(pE),rippleConfig:{centered:A.hasAttribute(Ek),terminateOnPointerUp:n?.terminateOnPointerUp,animation:{enterDuration:g,exitDuration:r}}},a=new ns(s,this._ngZone,i,this._platform,this._injector),Q=!s.rippleDisabled;Q&&a.setupTriggerEvents(A),this._hosts.set(A,{target:s,renderer:a,hasSetUpEvents:Q}),A.removeAttribute(Im)}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})(),yE=(()=>{class t{labelPosition;static \u0275fac=function(i){return new(i||t)};static \u0275cmp=O({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&&nA("mdc-form-field--align-end",o.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},attrs:HH,ngContentSelectors:TH,decls:1,vars:0,template:function(i,o){i&1&&(OA(),IA(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 qH=["mat-button",""],Dm=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],fm=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"];var VH="@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}}",WH=["mat-fab",""],zH=["mat-mini-fab",""],jH='.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%}',XH=["mat-icon-button",""],$H=["*"];var AT=new F("MAT_BUTTON_CONFIG");var eT=[{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"]}],RE=(()=>{class t{_elementRef=B(q);_ngZone=B(tA);_animationMode=B(Ae,{optional:!0});_focusMonitor=B(Ut);_rippleLoader=B(mm);_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(){B(ke).load(xt);let A=B(AT,{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 eT)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=T({type:t,inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",eA],disabled:[2,"disabled","disabled",eA],ariaDisabled:[2,"aria-disabled","ariaDisabled",eA],disabledInteractive:[2,"disabledInteractive","disabledInteractive",eA]}})}return t})();var Et=(()=>{class t extends RE{static \u0275fac=(()=>{let A;return function(o){return(A||(A=jA(t)))(o||t)}})();static \u0275cmp=O({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&&(aA("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled()),Je(o.color?"mat-"+o.color:""),nA("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:[dA],attrs:qH,ngContentSelectors:fm,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&&(OA(Dm),P(0,"span",0),IA(1),d(2,"span",1),IA(3,1),h(),IA(4,2),P(5,"span",2)(6,"span",3)),i&2&&nA("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 hk=new F("mat-mdc-fab-default-options",{providedIn:"root",factory:uk});function uk(){return{color:"accent"}}var ME=uk(),mk=(()=>{class t extends RE{_options=B(hk,{optional:!0});_isFab=!0;extended;constructor(){super(),this._options=this._options||ME,this.color=this._options.color||ME.color}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=O({type:t,selectors:[["button","mat-fab",""]],hostVars:18,hostBindings:function(i,o){i&2&&(aA("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled()),Je(o.color?"mat-"+o.color:""),nA("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",eA]},exportAs:["matButton"],features:[dA],attrs:WH,ngContentSelectors:fm,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&&(OA(Dm),P(0,"span",0),IA(1),d(2,"span",1),IA(3,1),h(),IA(4,2),P(5,"span",2)(6,"span",3)),i&2&&nA("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})(),Dk=(()=>{class t extends RE{_options=B(hk,{optional:!0});_isFab=!0;constructor(){super(),this._options=this._options||ME,this.color=this._options.color||ME.color}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=O({type:t,selectors:[["button","mat-mini-fab",""]],hostVars:14,hostBindings:function(i,o){i&2&&(aA("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled()),Je(o.color?"mat-"+o.color:""),nA("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:[dA],attrs:zH,ngContentSelectors:fm,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&&(OA(Dm),P(0,"span",0),IA(1),d(2,"span",1),IA(3,1),h(),IA(4,2),P(5,"span",2)(6,"span",3)),i&2&&nA("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:[jH],encapsulation:2,changeDetection:0})}return t})();var kE=(()=>{class t extends RE{constructor(){super(),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=O({type:t,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(i,o){i&2&&(aA("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled()),Je(o.color?"mat-"+o.color:""),nA("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:[dA],attrs:XH,ngContentSelectors:$H,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&&(OA(),P(0,"span",0),IA(1),P(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}',VH],encapsulation:2,changeDetection:0})}return t})();var Xo=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=X({type:t});static \u0275inj=j({imports:[mA,jo,mA]})}return t})();var bE=class{};function FE(t){return t&&typeof t.connect=="function"&&!(t instanceof gn)}var ss=function(t){return t[t.REPLACED=0]="REPLACED",t[t.INSERTED=1]="INSERTED",t[t.MOVED=2]="MOVED",t[t.REMOVED=3]="REMOVED",t}(ss||{}),QI=new F("_ViewRepeater"),as=class{applyChanges(e,A,i,o,n){e.forEachOperation((g,r,s)=>{let a,Q;if(g.previousIndex==null){let c=i(g,r,s);a=A.createEmbeddedView(c.templateRef,c.context,c.index),Q=ss.INSERTED}else s==null?(A.remove(r),Q=ss.REMOVED):(a=A.get(r),A.move(a,s),Q=ss.MOVED);n&&n({context:a?.context,operation:Q,record:g})})}detach(){}};var Gn=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 U;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 tT=20,Ln=(()=>{class t{_ngZone=B(tA);_platform=B(ZA);_renderer=B(Bt).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new U;_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=tT){return this._platform.isBrowser?new BA(i=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let o=A>0?this._scrolled.pipe(or(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=Kt(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})(),An=(()=>{class t{elementRef=B(q);scrollDispatcher=B(Ln);ngZone=B(tA);dir=B(Se,{optional:!0});_scrollElement=this.elementRef.nativeElement;_destroyed=new U;_renderer=B(ae);_cleanupScroll;_elementScrolled=new U;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&&As()!=Li.NORMAL?(A.left!=null&&(A.right=i.scrollWidth-i.clientWidth-A.left),As()==Li.INVERTED?A.left=A.right:As()==Li.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;rE()?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&&As()==Li.INVERTED?A==i?n.scrollWidth-n.clientWidth-n.scrollLeft:n.scrollLeft:g&&As()==Li.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=T({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return t})(),iT=20,Bi=(()=>{class t{_platform=B(ZA);_listeners;_viewportSize;_change=new U;_document=B(cA,{optional:!0});constructor(){let A=B(tA),i=B(Bt).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=iT){return A>0?this._change.pipe(or(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 $o=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=X({type:t});static \u0275inj=j({})}return t})(),EI=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=X({type:t});static \u0275inj=j({imports:[Sn,$o,Sn,$o]})}return t})();var cI=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}},_i=class extends cI{component;viewContainerRef;injector;componentFactoryResolver;projectableNodes;constructor(e,A,i,o,n){super(),this.component=e,this.viewContainerRef=A,this.injector=i,this.projectableNodes=n}},Qi=class extends cI{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()}},pm=class extends cI{element;constructor(e){super(),this.element=e instanceof q?e.nativeElement:e}},_n=class{_attachedPortal;_disposeFn;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(e){if(e instanceof _i)return this._attachedPortal=e,this.attachComponentPortal(e);if(e instanceof Qi)return this._attachedPortal=e,this.attachTemplatePortal(e);if(this.attachDomPortal&&e instanceof pm)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 vE=class extends _n{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(Uo,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=VB(e.component,{elementInjector:e.injector||this._defaultInjector||yA.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 fk=(()=>{class t extends Qi{constructor(){let A=B(ge),i=B(Qe);super(A,i)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=T({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[dA]})}return t})();var Ei=(()=>{class t extends _n{_moduleRef=B(Uo,{optional:!0});_document=B(cA);_viewContainerRef=B(Qe);_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 z;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=T({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[dA]})}return t})();var lI=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=X({type:t});static \u0275inj=j({})}return t})();var pk=rE(),wm=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=Ke(-this._previousScrollPosition.left),e.style.top=Ke(-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"),pk&&(i.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),pk&&(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 ym=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())}},SE=class{enable(){}disable(){}attach(){}};function Mm(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 wk(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 Rm=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();Mm(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}},nT=(()=>{class t{_scrollDispatcher=B(Ln);_viewportRuler=B(Bi);_ngZone=B(tA);_document=B(cA);constructor(){}noop=()=>new SE;close=A=>new ym(this._scrollDispatcher,this._ngZone,this._viewportRuler,A);block=()=>new wm(this._viewportRuler,this._document);reposition=A=>new Rm(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})(),Kn=class{positionStrategy;scrollStrategy=new SE;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 km=class{connectionPair;scrollableViewProperties;constructor(e,A){this.connectionPair=e,this.scrollableViewProperties=A}};var Fk=(()=>{class t{_attachedOverlays=[];_document=B(cA);_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})(),gT=(()=>{class t extends Fk{_ngZone=B(tA);_renderer=B(Bt).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=jA(t)))(o||t)}})();static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),rT=(()=>{class t extends Fk{_platform=B(ZA);_ngZone=B(tA,{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=ti(A)};_clickListener=A=>{let i=ti(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(yk(r.overlayElement,i)||yk(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=jA(t)))(o||t)}})();static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function yk(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 vk=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=O({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})(),NE=(()=>{class t{_platform=B(ZA);_containerElement;_document=B(cA);_styleLoader=B(ke);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||Wu()){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),Wu()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}_loadStyles(){this._styleLoader.load(vk)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),bm=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()}},Is=class{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new U;_attachments=new U;_detachments=new U;_positionStrategy;_scrollStrategy;_locationChanges=GA.EMPTY;_backdropRef=null;_previousHostParent;_keydownEvents=new U;_outsidePointerEvents=new U;_renders=new U;_afterRenderRef;_afterNextRenderRef;constructor(e,A,i,o,n,g,r,s,a,Q=!1,c,f){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=a,this._animationsDisabled=Q,this._injector=c,this._renderer=f,o.scrollStrategy&&(this._scrollStrategy=o.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=o.positionStrategy,this._afterRenderRef=Gt(()=>Ia(()=>{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=Le(()=>{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=b(b({},this._config),e),this._updateElementSize()}setDirection(e){this._config=uA(b({},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=Ke(this._config.width),e.height=Ke(this._config.height),e.minWidth=Ke(this._config.minWidth),e.minHeight=Ke(this._config.minHeight),e.maxWidth=Ke(this._config.maxWidth),e.maxHeight=Ke(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){let e="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new bm(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=ts(A||[]).filter(n=>!!n);o.length&&(i?e.classList.add(...o):e.classList.remove(...o))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{let e=this._renders.pipe(pA(ye(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?.()}},Mk="cdk-overlay-connected-position-bounding-box",sT=/([A-Za-z%]+)$/,Fm=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 U;_resizeSubscription=GA.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(Mk),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),a=this._getOverlayPoint(s,A,r),Q=this._getOverlayFit(a,A,i,r);if(Q.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(r,s);return}if(this._canFitWithFlexibleDimensions(Q,a,i)){n.push({position:r,origin:s,overlayRect:A,boundingBoxRect:this._calculateBoundingBoxRect(s,r)});continue}(!g||g.overlayFit.visibleArea<Q.visibleArea)&&(g={overlayFit:Q,overlayPoint:a,originPoint:s,position:r,overlayRect:A})}if(n.length){let r=null,s=-1;for(let a of n){let Q=a.boundingBoxRect.width*a.boundingBoxRect.height*(a.position.weight||1);Q>s&&(s=Q,r=a)}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&&Fg(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Mk),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=kk(A),{x:g,y:r}=e,s=this._getOffset(o,"x"),a=this._getOffset(o,"y");s&&(g+=s),a&&(r+=a);let Q=0-g,c=g+n.width-i.width,f=0-r,m=r+n.height-i.height,p=this._subtractOverflows(n.width,Q,c),M=this._subtractOverflows(n.height,f,m),K=p*M;return{visibleArea:K,isCompletelyWithinViewport:n.width*n.height===K,fitsInViewportVertically:M===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=Rk(this._overlayRef.getConfig().minHeight),r=Rk(this._overlayRef.getConfig().minWidth),s=e.fitsInViewportVertically||g!=null&&g<=o,a=e.fitsInViewportHorizontally||r!=null&&r<=n;return s&&a}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=kk(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),a=Math.max(n.left-i.left-e.x,0),Q=0,c=0;return o.width<=n.width?Q=a||-g:Q=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:Q,y:c},{x:e.x+Q,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||!aT(this._lastScrollVisibility,i)){let o=new km(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 m=Math.min(i.bottom-e.y+i.top,e.y),p=this._lastBoundingBoxSize.height;n=m*2,g=e.y-m,n>p&&!this._isInitialRender&&!this._growAfterOpen&&(g=e.y-p/2)}let s=A.overlayX==="start"&&!o||A.overlayX==="end"&&o,a=A.overlayX==="end"&&!o||A.overlayX==="start"&&o,Q,c,f;if(a)f=i.width-e.x+this._viewportMargin*2,Q=e.x-this._viewportMargin;else if(s)c=e.x,Q=i.right-e.x;else{let m=Math.min(i.right-e.x+i.left,e.x),p=this._lastBoundingBoxSize.width;Q=m*2,c=e.x-m,Q>p&&!this._isInitialRender&&!this._growAfterOpen&&(c=e.x-p/2)}return{top:g,left:c,bottom:r,right:f,width:Q,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=Ke(i.height),o.top=Ke(i.top),o.bottom=Ke(i.bottom),o.width=Ke(i.width),o.left=Ke(i.left),o.right=Ke(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=Ke(n)),g&&(o.maxWidth=Ke(g))}this._lastBoundingBoxSize=i,Fg(this._boundingBox.style,o)}_resetBoundingBoxStyles(){Fg(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Fg(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 Q=this._viewportRuler.getViewportScrollPosition();Fg(i,this._getExactOverlayY(A,e,Q)),Fg(i,this._getExactOverlayX(A,e,Q))}else i.position="static";let r="",s=this._getOffset(A,"x"),a=this._getOffset(A,"y");s&&(r+=`translateX(${s}px) `),a&&(r+=`translateY(${a}px)`),i.transform=r.trim(),g.maxHeight&&(o?i.maxHeight=Ke(g.maxHeight):n&&(i.maxHeight="")),g.maxWidth&&(o?i.maxWidth=Ke(g.maxWidth):n&&(i.maxWidth="")),Fg(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=Ke(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=Ke(n.x);return o}_getScrollVisibility(){let e=this._getOriginRect(),A=this._pane.getBoundingClientRect(),i=this._scrollables.map(o=>o.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:wk(e,i),isOriginOutsideView:Mm(e,i),isOverlayClipped:wk(A,i),isOverlayOutsideView:Mm(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&&ts(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 Fg(t,e){for(let A in e)e.hasOwnProperty(A)&&(t[A]=e[A]);return t}function Rk(t){if(typeof t!="number"&&t!=null){let[e,A]=t.split(sT);return!A||A==="px"?parseFloat(e):null}return t||null}function kk(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 aT(t,e){return t===e?!0:t.isOriginClipped===e.isOriginClipped&&t.isOriginOutsideView===e.isOriginOutsideView&&t.isOverlayClipped===e.isOverlayClipped&&t.isOverlayOutsideView===e.isOverlayOutsideView}var bk="cdk-global-overlay-wrapper",vm=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(bk),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"),a=(n==="100%"||n==="100vh")&&(!r||r==="100%"||r==="100vh"),Q=this._xPosition,c=this._xOffset,f=this._overlayRef.getConfig().direction==="rtl",m="",p="",M="";s?M="flex-start":Q==="center"?(M="center",f?p=c:m=c):f?Q==="left"||Q==="end"?(M="flex-end",m=c):(Q==="right"||Q==="start")&&(M="flex-start",p=c):Q==="left"||Q==="start"?(M="flex-start",m=c):(Q==="right"||Q==="end")&&(M="flex-end",p=c),e.position=this._cssPosition,e.marginLeft=s?"0":m,e.marginTop=a?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=s?"0":p,A.justifyContent=M,A.alignItems=a?"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(bk),i.justifyContent=i.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}},IT=(()=>{class t{_viewportRuler=B(Bi);_document=B(cA);_platform=B(ZA);_overlayContainer=B(NE);constructor(){}global(){return new vm}flexibleConnectedTo(A){return new Fm(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})(),je=(()=>{class t{scrollStrategies=B(nT);_overlayContainer=B(NE);_positionBuilder=B(IT);_keyboardDispatcher=B(gT);_injector=B(yA);_ngZone=B(tA);_document=B(cA);_directionality=B(Se);_location=B(no);_outsideClickDispatcher=B(rT);_animationsModuleType=B(Ae,{optional:!0});_idGenerator=B(re);_renderer=B(Bt).createRenderer(null,null);_appRef;_styleLoader=B(ke);constructor(){}create(A){this._styleLoader.load(vk);let i=this._createHostElement(),o=this._createPaneElement(i),n=this._createPortalOutlet(o),g=new Kn(A);return g.direction=g.direction||this._directionality.value,new Is(n,i,o,g,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,this._animationsModuleType==="NoopAnimations",this._injector.get(Ye),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(Zt)),new vE(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})(),CT=[{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"}],Sk=new F("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let t=B(je);return()=>t.scrollStrategies.reposition()}}),dI=(()=>{class t{elementRef=B(q);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=T({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]})}return t})(),Sm=(()=>{class t{_overlay=B(je);_dir=B(Se,{optional:!0});_overlayRef;_templatePortal;_backdropSubscription=GA.EMPTY;_attachSubscription=GA.EMPTY;_detachSubscription=GA.EMPTY;_positionSubscription=GA.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=B(Sk);_disposeOnNavigation=!1;_ngZone=B(tA);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 z;positionChange=new z;attach=new z;detach=new z;overlayKeydown=new z;overlayOutsideClick=new z;constructor(){let A=B(ge),i=B(Qe);this._templatePortal=new Qi(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=CT);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&&!ze(i)&&(i.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{let o=this._getOriginElement(),n=ti(i);(!o||o!==n&&!o.contains(n))&&this.overlayOutsideClick.next(i)})}_buildConfig(){let A=this._position=this.positionStrategy||this._createPositionStrategy(),i=new Kn({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 dI?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof dI?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(Il(()=>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=T({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",eA],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",eA],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",eA],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",eA],push:[2,"cdkConnectedOverlayPush","push",eA],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",eA]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[TA]})}return t})();function BT(t){return()=>t.scrollStrategies.reposition()}var QT={provide:Sk,deps:[je],useFactory:BT},vg=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=X({type:t});static \u0275inj=j({providers:[je,QT],imports:[Sn,lI,EI,EI]})}return t})();var Nm=class{_box;_destroyed=new U;_resizeSubject=new U;_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 BA(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)),Go({bufferSize:1,refCount:!0}),pA(this._destroyed))),this._elementObservables.get(e)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},GE=(()=>{class t{_cleanupErrorListener;_observers=new Map;_ngZone=B(tA);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 Nm(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 xA=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}(xA||{}),ci="*";function lo(t,e){return{type:xA.Trigger,name:t,definitions:e,options:{}}}function ii(t,e=null){return{type:xA.Animate,styles:e,timings:t}}function Nk(t,e=null){return{type:xA.Sequence,steps:t,options:e}}function Ue(t){return{type:xA.Style,styles:t,offset:null}}function li(t,e,A){return{type:xA.State,name:t,styles:e,options:A}}function Yt(t,e,A=null){return{type:xA.Transition,expr:t,animation:e,options:A}}function Gm(t=null){return{type:xA.AnimateChild,options:t}}function Lm(t,e,A=null){return{type:xA.Query,selector:t,animation:e,options:A}}var co=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}},Sg=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}},Cs="!";var ET=["notch"],cT=["matFormFieldNotchedOutline",""],lT=["*"],dT=["textField"],hT=["iconPrefixContainer"],uT=["textPrefixContainer"],mT=["iconSuffixContainer"],DT=["textSuffixContainer"],fT=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],pT=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function wT(t,e){t&1&&P(0,"span",21)}function yT(t,e){if(t&1&&(d(0,"label",20),IA(1,1),x(2,wT,1,0,"span",21),h()),t&2){let A=y(2);L("floating",A._shouldLabelFloat())("monitorResize",A._hasOutline())("id",A._labelId),aA("for",A._control.disableAutomaticLabeling?null:A._control.id),D(2),_(!A.hideRequiredMarker&&A._control.required?2:-1)}}function MT(t,e){if(t&1&&x(0,yT,3,5,"label",20),t&2){let A=y();_(A._hasFloatingLabel()?0:-1)}}function RT(t,e){t&1&&P(0,"div",7)}function kT(t,e){}function bT(t,e){if(t&1&&x(0,kT,0,0,"ng-template",13),t&2){y(2);let A=_e(1);L("ngTemplateOutlet",A)}}function FT(t,e){if(t&1&&(d(0,"div",9),x(1,bT,1,1,null,13),h()),t&2){let A=y();L("matFormFieldNotchedOutlineOpen",A._shouldLabelFloat()),D(),_(A._forceDisplayInfixLabel()?-1:1)}}function vT(t,e){t&1&&(d(0,"div",10,2),IA(2,2),h())}function ST(t,e){t&1&&(d(0,"div",11,3),IA(2,3),h())}function NT(t,e){}function GT(t,e){if(t&1&&x(0,NT,0,0,"ng-template",13),t&2){y();let A=_e(1);L("ngTemplateOutlet",A)}}function LT(t,e){t&1&&(d(0,"div",14,4),IA(2,4),h())}function _T(t,e){t&1&&(d(0,"div",15,5),IA(2,5),h())}function KT(t,e){t&1&&P(0,"div",16)}function UT(t,e){if(t&1&&(d(0,"div",18),IA(1,6),h()),t&2){let A=y();L("@transitionMessages",A._subscriptAnimationState)}}function xT(t,e){if(t&1&&(d(0,"mat-hint",22),k(1),h()),t&2){let A=y(2);L("id",A._hintLabelId),D(),KA(A.hintLabel)}}function YT(t,e){if(t&1&&(d(0,"div",19),x(1,xT,2,2,"mat-hint",22),IA(2,7),P(3,"div",23),IA(4,8),h()),t&2){let A=y();L("@transitionMessages",A._subscriptAnimationState),D(),_(A.hintLabel?1:-1)}}var _E=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=T({type:t,selectors:[["mat-label"]]})}return t})(),JT=new F("MatError");var Gk=(()=>{class t{align="start";id=B(re).getId("mat-mdc-hint-");static \u0275fac=function(i){return new(i||t)};static \u0275dir=T({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&&(ft("id",o.id),aA("align",null),nA("mat-mdc-form-field-hint-end",o.align==="end"))},inputs:{align:"align",id:"id"}})}return t})(),HT=new F("MatPrefix");var Jk=new F("MatSuffix"),Hk=(()=>{class t{set _isTextSelector(A){this._isText=!0}_isText=!1;static \u0275fac=function(i){return new(i||t)};static \u0275dir=T({type:t,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},features:[FA([{provide:Jk,useExisting:t}])]})}return t})(),Tk=new F("FloatingLabelParent"),Lk=(()=>{class t{_elementRef=B(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=B(GE);_ngZone=B(tA);_parent=B(Tk);_resizeSubscription=new GA;constructor(){}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return TT(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=T({type:t,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(i,o){i&2&&nA("mdc-floating-label--float-above",o.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return t})();function TT(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 _k="mdc-line-ripple--active",LE="mdc-line-ripple--deactivating",Kk=(()=>{class t{_elementRef=B(q);_cleanupTransitionEnd;constructor(){let A=B(tA),i=B(ae);A.runOutsideAngular(()=>{this._cleanupTransitionEnd=i.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionEnd)})}activate(){let A=this._elementRef.nativeElement.classList;A.remove(LE),A.add(_k)}deactivate(){this._elementRef.nativeElement.classList.add(LE)}_handleTransitionEnd=A=>{let i=this._elementRef.nativeElement.classList,o=i.contains(LE);A.propertyName==="opacity"&&o&&i.remove(_k,LE)};ngOnDestroy(){this._cleanupTransitionEnd()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=T({type:t,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return t})(),Uk=(()=>{class t{_elementRef=B(q);_ngZone=B(tA);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=O({type:t,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(i,o){if(i&1&&QA(ET,5),i&2){let n;$(n=AA())&&(o._notch=n.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(i,o){i&2&&nA("mdc-notched-outline--notched",o.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},attrs:cT,ngContentSelectors:lT,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&&(OA(),P(0,"div",1),d(1,"div",2,0),IA(3),h(),P(4,"div",3))},encapsulation:2,changeDetection:0})}return t})(),OT={transitionMessages:lo("transitionMessages",[li("enter",Ue({opacity:1,transform:"translateY(0%)"})),Yt("void => enter",[Ue({opacity:0,transform:"translateY(-5px)"}),ii("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},hI=(()=>{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=T({type:t})}return t})();var uI=new F("MatFormField"),PT=new F("MAT_FORM_FIELD_DEFAULT_OPTIONS"),xk="fill",ZT="auto",Yk="fixed",qT="translateY(-50%)",ho=(()=>{class t{_elementRef=B(q);_changeDetectorRef=B(UA);_dir=B(Se);_platform=B(ZA);_idGenerator=B(re);_defaults=B(PT,{optional:!0});_animationMode=B(Ae,{optional:!0});_textField;_iconPrefixContainer;_textPrefixContainer;_iconSuffixContainer;_textSuffixContainer;_floatingLabel;_notchedOutline;_lineRipple;_formFieldControl;_prefixChildren;_suffixChildren;_errorChildren;_hintChildren;_labelChild=i0(_E);get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(A){this._hideRequiredMarker=be(A)}_hideRequiredMarker=!1;color="primary";get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||ZT}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||xk;this._appearance=o,this._appearance==="outline"&&this._appearance!==i&&(this._needsOutlineLabelOffsetUpdate=!0)}_appearance=xk;get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||Yk}set subscriptSizing(A){this._subscriptSizing=A||this._defaults?.subscriptSizing||Yk}_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 U;_isFocused=null;_explicitFormFieldControl;_needsOutlineLabelOffsetUpdate=!1;_previousControl=null;_stateChanges;_valueChanges;_describedByChanges;_injector=B(yA);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=Oo(()=>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(Me([void 0,void 0]),sA(()=>[i.errorState,i.userAriaDescribedBy]),NC(),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(pA(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(),ye(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),Ia(()=>{this._needsOutlineLabelOffsetUpdate&&(this._needsOutlineLabelOffsetUpdate=!1,this._updateOutlineLabelOffset())},{injector:this._injector}),this._dir.change.pipe(pA(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=Oo(()=>!!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,a=n?.getBoundingClientRect().width??0,Q=g?.getBoundingClientRect().width??0,c=this._dir.value==="rtl"?"-1":"1",f=`${r+s}px`,p=`calc(${c} * (${f} + var(--mat-mdc-form-field-label-offset-x, 0px)))`;A.style.transform=`var(
        --mat-mdc-form-field-label-transform,
        ${qT} translateX(${p})
    )`;let M=r+s+a+Q;this._elementRef.nativeElement.style.setProperty("--mat-form-field-notch-max-width",`calc(100% - ${M}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=O({type:t,selectors:[["mat-form-field"]],contentQueries:function(i,o,n){if(i&1&&(w0(n,o._labelChild,_E,5),XA(n,hI,5),XA(n,HT,5),XA(n,Jk,5),XA(n,JT,5),XA(n,Gk,5)),i&2){y0();let g;$(g=AA())&&(o._formFieldControl=g.first),$(g=AA())&&(o._prefixChildren=g),$(g=AA())&&(o._suffixChildren=g),$(g=AA())&&(o._errorChildren=g),$(g=AA())&&(o._hintChildren=g)}},viewQuery:function(i,o){if(i&1&&(QA(dT,5),QA(hT,5),QA(uT,5),QA(mT,5),QA(DT,5),QA(Lk,5),QA(Uk,5),QA(Kk,5)),i&2){let n;$(n=AA())&&(o._textField=n.first),$(n=AA())&&(o._iconPrefixContainer=n.first),$(n=AA())&&(o._textPrefixContainer=n.first),$(n=AA())&&(o._iconSuffixContainer=n.first),$(n=AA())&&(o._textSuffixContainer=n.first),$(n=AA())&&(o._floatingLabel=n.first),$(n=AA())&&(o._notchedOutline=n.first),$(n=AA())&&(o._lineRipple=n.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(i,o){i&2&&nA("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:[FA([{provide:uI,useExisting:t},{provide:Tk,useExisting:t}])],ngContentSelectors:pT,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=rA();OA(fT),x(0,MT,1,1,"ng-template",null,0,ha),d(2,"div",6,1),G("click",function(r){return Y(n),J(o._control.onContainerClick(r))}),x(4,RT,1,0,"div",7),d(5,"div",8),x(6,FT,2,2,"div",9)(7,vT,3,0,"div",10)(8,ST,3,0,"div",11),d(9,"div",12),x(10,GT,1,1,null,13),IA(11),h(),x(12,LT,3,0,"div",14)(13,_T,3,0,"div",15),h(),x(14,KT,1,0,"div",16),h(),d(15,"div",17),x(16,UT,2,1,"div",18)(17,YT,5,2,"div",19),h()}if(i&2){let n;D(2),nA("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),D(2),_(!o._hasOutline()&&!o._control.disabled?4:-1),D(2),_(o._hasOutline()?6:-1),D(),_(o._hasIconPrefix?7:-1),D(),_(o._hasTextPrefix?8:-1),D(2),_(!o._hasOutline()||o._forceDisplayInfixLabel()?10:-1),D(2),_(o._hasTextSuffix?12:-1),D(),_(o._hasIconSuffix?13:-1),D(),_(o._hasOutline()?-1:14),D(),nA("mat-mdc-form-field-subscript-dynamic-size",o.subscriptSizing==="dynamic"),D(),_((n=o._getDisplayedMessages())==="error"?16:n==="hint"?17:-1)}},dependencies:[Lk,Uk,pa,Kk,Gk],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:[OT.transitionMessages]},changeDetection:0})}return t})(),tn=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=X({type:t});static \u0275inj=j({imports:[mA,is,mA]})}return t})();var VT=["trigger"],WT=["panel"],zT=[[["mat-select-trigger"]],"*"],jT=["mat-select-trigger","*"];function XT(t,e){if(t&1&&(d(0,"span",4),k(1),h()),t&2){let A=y();D(),KA(A.placeholder)}}function $T(t,e){t&1&&IA(0)}function A2(t,e){if(t&1&&(d(0,"span",11),k(1),h()),t&2){let A=y(2);D(),KA(A.triggerValue)}}function e2(t,e){if(t&1&&(d(0,"span",5),x(1,$T,1,0)(2,A2,2,1,"span",11),h()),t&2){let A=y();D(),_(A.customTrigger?1:2)}}function t2(t,e){if(t&1){let A=rA();d(0,"div",12,1),G("@transformPanel.done",function(o){Y(A);let n=y();return J(n._panelDoneAnimatingStream.next(o.toState))})("keydown",function(o){Y(A);let n=y();return J(n._handleKeydown(o))}),IA(2,1),h()}if(t&2){let A=y();p0("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",A._getPanelTheme(),""),L("ngClass",A.panelClass)("@transformPanel","showing"),aA("id",A.id+"-panel")("aria-multiselectable",A.multiple)("aria-label",A.ariaLabel||null)("aria-labelledby",A._getPanelAriaLabelledby())}}var i2={transformPanelWrap:lo("transformPanelWrap",[Yt("* => void",Lm("@transformPanel",[Gm()],{optional:!0}))]),transformPanel:lo("transformPanel",[li("void",Ue({opacity:0,transform:"scale(1, 0.8)"})),Yt("void => showing",ii("120ms cubic-bezier(0, 0, 0.2, 1)",Ue({opacity:1,transform:"scale(1, 1)"}))),Yt("* => void",ii("100ms linear",Ue({opacity:0})))])};var Ok=new F("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let t=B(je);return()=>t.scrollStrategies.reposition()}});function o2(t){return()=>t.scrollStrategies.reposition()}var n2=new F("MAT_SELECT_CONFIG"),g2={provide:Ok,deps:[je],useFactory:o2},r2=new F("MatSelectTrigger"),_m=class{source;value;constructor(e,A){this.source=e,this.value=A}},Bs=(()=>{class t{_viewportRuler=B(Bi);_changeDetectorRef=B(UA);_elementRef=B(q);_dir=B(Se,{optional:!0});_idGenerator=B(re);_parentFormField=B(uI,{optional:!0});ngControl=B(Ni,{self:!0,optional:!0});_liveAnnouncer=B(fE);_defaultOptions=B(n2,{optional:!0});_initialized=new U;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=ck(A,this.options,this.optionGroups),g=i._getHostElement();A===0&&n===1?o.scrollTop=0:o.scrollTop=lk(g.offsetTop,g.offsetHeight,o.scrollTop,o.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(A){return new _m(this,A)}_scrollStrategyFactory=B(Ok);_panelOpen=!1;_compareWith=(A,i)=>A===i;_uid=this._idGenerator.getId("mat-select-");_triggerAriaLabelledBy=null;_previousControl;_destroy=new U;_errorStateTracker;stateChanges=new U;disableAutomaticLabeling=!0;userAriaDescribedBy;_selectionModel;_keyManager;_preferredOverlayOrigin;_overlayWidth;_onChange=()=>{};_onTouched=()=>{};_valueId=this._idGenerator.getId("mat-select-value-");_panelDoneAnimatingStream=new U;_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(Kr.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=Zi(()=>{let A=this.options;return A?A.changes.pipe(Me(A),Ie(()=>ye(...A.map(i=>i.onSelectionChange)))):this._initialized.pipe(Ie(()=>this.optionSelectionChanges))});openedChange=new z;_openedStream=this.openedChange.pipe(kA(A=>A),sA(()=>{}));_closedStream=this.openedChange.pipe(kA(A=>!A),sA(()=>{}));selectionChange=new z;valueChange=new z;constructor(){let A=B(gs),i=B(Ha,{optional:!0}),o=B(Ta,{optional:!0}),n=B(new Ct("tabindex"),{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this),this._defaultOptions?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval),this._errorStateTracker=new Rg(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 Gn(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(wi(),pA(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen)),this._viewportRuler.change().pipe(pA(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(pA(this._destroy)).subscribe(A=>{A.added.forEach(i=>i.select()),A.removed.forEach(i=>i.deselect())}),this.options.changes.pipe(Me(null),pA(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&&mE(this._trackedModal,"aria-owns",i),nm(A,"aria-owns",i),this._trackedModal=A}_clearFromModal(){if(!this._trackedModal)return;let A=`${this.id}-panel`;mE(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&&!ze(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&&!ze(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(ue(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 dI?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 lE(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=ye(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(pA(A)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),ye(...this.options.map(i=>i._stateChanges)).pipe(pA(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=O({type:t,selectors:[["mat-select"]],contentQueries:function(i,o,n){if(i&1&&(XA(n,r2,5),XA(n,Nn,5),XA(n,hm,5)),i&2){let g;$(g=AA())&&(o.customTrigger=g.first),$(g=AA())&&(o.options=g),$(g=AA())&&(o.optionGroups=g)}},viewQuery:function(i,o){if(i&1&&(QA(VT,5),QA(WT,5),QA(Sm,5)),i&2){let n;$(n=AA())&&(o.trigger=n.first),$(n=AA())&&(o.panel=n.first),$(n=AA())&&(o._overlayDir=n.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(i,o){i&1&&G("keydown",function(g){return o._handleKeydown(g)})("focus",function(){return o._onFocus()})("blur",function(){return o._onBlur()}),i&2&&(aA("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()),nA("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",eA],disableRipple:[2,"disableRipple","disableRipple",eA],tabIndex:[2,"tabIndex","tabIndex",A=>A==null?0:de(A)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",eA],placeholder:"placeholder",required:[2,"required","required",eA],multiple:[2,"multiple","multiple",eA],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",eA],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",de],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth",canSelectNullableOptions:[2,"canSelectNullableOptions","canSelectNullableOptions",eA]},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[FA([{provide:hI,useExisting:t},{provide:dm,useExisting:t}]),TA],ngContentSelectors:jT,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=rA();OA(zT),d(0,"div",2,0),G("click",function(){return Y(n),J(o.open())}),d(3,"div",3),x(4,XT,2,1,"span",4)(5,e2,3,1,"span",5),h(),d(6,"div",6)(7,"div",7),At(),d(8,"svg",8),P(9,"path",9),h()()()(),x(10,t2,3,9,"ng-template",10),G("backdropClick",function(){return Y(n),J(o.close())})("attach",function(){return Y(n),J(o._onAttached())})("detach",function(){return Y(n),J(o.close())})}if(i&2){let n=_e(1);D(3),aA("id",o._valueId),D(),_(o.empty?4:5),D(6),L("cdkConnectedOverlayPanelClass",o._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",o._scrollStrategy)("cdkConnectedOverlayOrigin",o._preferredOverlayOrigin||n)("cdkConnectedOverlayOpen",o.panelOpen)("cdkConnectedOverlayPositions",o._positions)("cdkConnectedOverlayWidth",o._overlayWidth)}},dependencies:[dI,Sm,jt],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:[i2.transformPanel]},changeDetection:0})}return t})();var UE=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=X({type:t});static \u0275inj=j({providers:[g2],imports:[vg,um,mA,$o,tn,um,mA]})}return t})();var s2=["tooltip"],Vk=20;var Wk=new F("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let t=B(je);return()=>t.scrollStrategies.reposition({scrollThrottle:Vk})}});function a2(t){return()=>t.scrollStrategies.reposition({scrollThrottle:Vk})}var I2={provide:Wk,deps:[je],useFactory:a2};function C2(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}var B2=new F("mat-tooltip-default-options",{providedIn:"root",factory:C2});var Zk="tooltip-panel",qk=Qo({passive:!0}),Q2=8,E2=8,c2=24,l2=200,Qs=(()=>{class t{_elementRef=B(q);_ngZone=B(tA);_platform=B(ZA);_ariaDescriber=B(ok);_focusMonitor=B(Ut);_dir=B(Se);_injector=B(yA);_defaultOptions=B(B2,{optional:!0});_overlayRef;_tooltipInstance;_portal;_position="below";_positionAtOrigin=!1;_disabled=!1;_tooltipClass;_viewInitialized=!1;_pointerExitEventsInitialized=!1;_tooltipComponent=d2;_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=be(A),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(A){let i=be(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=pt(A)}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(A){this._hideDelay=pt(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 U;_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=Q2}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(pA(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,qk)}),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 _i(this._tooltipComponent,this._injector.get(Qe));let n=this._tooltipInstance=o.attach(this._portal).instance;n._triggerElement=this._elementRef.nativeElement,n._mouseLeaveHideDelay=this._hideDelay,n.afterHidden().pipe(pA(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(Ln).getAncestorScrollContainers(this._elementRef),o=this._injector.get(je),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(pA(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}-${Zk}`,scrollStrategy:this._injector.get(Wk)()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(pA(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(pA(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(pA(this._destroyed)).subscribe(g=>{this._isTooltipVisible()&&g.keyCode===27&&!ze(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(pA(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(b(b({},o.main),n.main)),this._addOffset(b(b({},o.fallback),n.fallback))])}_addOffset(A){let i=E2,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(),Le(()=>{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}-${Zk}-`;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,qk)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(A){if(this._isTooltipVisible()){let i=this._injector.get(cA).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||Le({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=T({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(i,o){i&2&&nA("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})(),d2=(()=>{class t{_changeDetectorRef=B(UA);_elementRef=B(q);_isMultiline=!1;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled;_tooltip;_closeOnInteraction=!1;_isVisible=!1;_onHide=new U;_showAnimation="mat-mdc-tooltip-show";_hideAnimation="mat-mdc-tooltip-hide";constructor(){let A=B(Ae,{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>c2&&A.width>=l2}_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=O({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(i,o){if(i&1&&QA(s2,7),i&2){let n;$(n=AA())&&(o._tooltip=n.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(i,o){i&1&&G("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=rA();d(0,"div",1,0),G("animationend",function(r){return Y(n),J(o._handleAnimationEnd(r))}),d(2,"div",2),k(3),h()()}i&2&&(nA("mdc-tooltip--multiline",o._isMultiline),L("ngClass",o.tooltipClass),D(3),KA(o.message))},dependencies:[jt],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 xE=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=X({type:t});static \u0275inj=j({providers:[I2],imports:[am,vg,mA,mA,$o]})}return t})();function h2(t,e){if(t&1&&(d(0,"mat-option",17),k(1),h()),t&2){let A=e.$implicit;L("value",A),D(),NA(" ",A," ")}}function u2(t,e){if(t&1){let A=rA();d(0,"mat-form-field",14)(1,"mat-select",16,0),G("selectionChange",function(o){Y(A);let n=y(2);return J(n._changePageSize(o.value))}),fe(3,h2,2,2,"mat-option",17,De),h(),d(5,"div",18),G("click",function(){Y(A);let o=_e(2);return J(o.open())}),h()()}if(t&2){let A=y(2);L("appearance",A._formFieldAppearance)("color",A.color),D(),L("value",A.pageSize)("disabled",A.disabled)("aria-labelledby",A._pageSizeLabelId)("panelClass",A.selectConfig.panelClass||"")("disableOptionCentering",A.selectConfig.disableOptionCentering),D(2),pe(A._displayedPageSizeOptions)}}function m2(t,e){if(t&1&&(d(0,"div",15),k(1),h()),t&2){let A=y(2);D(),KA(A.pageSize)}}function D2(t,e){if(t&1&&(d(0,"div",3)(1,"div",13),k(2),h(),x(3,u2,6,7,"mat-form-field",14)(4,m2,2,1,"div",15),h()),t&2){let A=y();D(),aA("id",A._pageSizeLabelId),D(),NA(" ",A._intl.itemsPerPageLabel," "),D(),_(A._displayedPageSizeOptions.length>1?3:-1),D(),_(A._displayedPageSizeOptions.length<=1?4:-1)}}function f2(t,e){if(t&1){let A=rA();d(0,"button",19),G("click",function(){Y(A);let o=y();return J(o._buttonClicked(0,o._previousButtonsDisabled()))}),At(),d(1,"svg",8),P(2,"path",20),h()()}if(t&2){let A=y();L("matTooltip",A._intl.firstPageLabel)("matTooltipDisabled",A._previousButtonsDisabled())("disabled",A._previousButtonsDisabled()),aA("aria-label",A._intl.firstPageLabel)}}function p2(t,e){if(t&1){let A=rA();d(0,"button",21),G("click",function(){Y(A);let o=y();return J(o._buttonClicked(o.getNumberOfPages()-1,o._nextButtonsDisabled()))}),At(),d(1,"svg",8),P(2,"path",22),h()()}if(t&2){let A=y();L("matTooltip",A._intl.lastPageLabel)("matTooltipDisabled",A._nextButtonsDisabled())("disabled",A._nextButtonsDisabled()),aA("aria-label",A._intl.lastPageLabel)}}var Ng=(()=>{class t{changes=new U;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 w2(t){return t||new Ng}var y2={provide:Ng,deps:[[new Ig,new oa,Ng]],useFactory:w2},M2=50;var R2=new F("MAT_PAGINATOR_DEFAULT_OPTIONS"),Km=(()=>{class t{_intl=B(Ng);_changeDetectorRef=B(UA);_formFieldAppearance;_pageSizeLabelId=B(re).getId("mat-paginator-page-size-label-");_intlChanges;_isInitialized=!1;_initializedStream=new fi(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=>de(i,0)),this._updateDisplayedPageSizeOptions()}_pageSizeOptions=[];hidePageSize=!1;showFirstLastButtons=!1;selectConfig={};disabled=!1;page=new z;_displayedPageSizeOptions;initialized=this._initializedStream;constructor(){let A=this._intl,i=B(R2,{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]:M2),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=O({type:t,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{color:"color",pageIndex:[2,"pageIndex","pageIndex",de],length:[2,"length","length",de],pageSize:[2,"pageSize","pageSize",de],pageSizeOptions:"pageSizeOptions",hidePageSize:[2,"hidePageSize","hidePageSize",eA],showFirstLastButtons:[2,"showFirstLastButtons","showFirstLastButtons",eA],selectConfig:"selectConfig",disabled:[2,"disabled","disabled",eA]},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&&(d(0,"div",1)(1,"div",2),x(2,D2,5,4,"div",3),d(3,"div",4)(4,"div",5),k(5),h(),x(6,f2,3,4,"button",6),d(7,"button",7),G("click",function(){return o._buttonClicked(o.pageIndex-1,o._previousButtonsDisabled())}),At(),d(8,"svg",8),P(9,"path",9),h()(),Bg(),d(10,"button",10),G("click",function(){return o._buttonClicked(o.pageIndex+1,o._nextButtonsDisabled())}),At(),d(11,"svg",8),P(12,"path",11),h()(),x(13,p2,3,4,"button",12),h()()()),i&2&&(D(2),_(o.hidePageSize?-1:2),D(3),NA(" ",o._intl.getRangeLabel(o.pageIndex,o.pageSize,o.length)," "),D(),_(o.showFirstLastButtons?6:-1),D(),L("matTooltip",o._intl.previousPageLabel)("matTooltipDisabled",o._previousButtonsDisabled())("disabled",o._previousButtonsDisabled()),aA("aria-label",o._intl.previousPageLabel),D(3),L("matTooltip",o._intl.nextPageLabel)("matTooltipDisabled",o._nextButtonsDisabled())("disabled",o._nextButtonsDisabled()),aA("aria-label",o._intl.nextPageLabel),D(3),_(o.showFirstLastButtons?13:-1))},dependencies:[ho,Bs,Nn,kE,Qs],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})(),jk=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=X({type:t});static \u0275inj=j({providers:[y2],imports:[Xo,UE,xE,Km]})}return t})();function b2(t,e){if(t&1){let A=rA();d(0,"div",1)(1,"button",2),G("click",function(){Y(A);let o=y();return J(o.action())}),k(2),h()()}if(t&2){let A=y();D(2),NA(" ",A.data.action," ")}}var F2=["label"];function v2(t,e){}var S2=Math.pow(2,31)-1,mI=class{_overlayRef;instance;containerInstance;_afterDismissed=new U;_afterOpened=new U;_onAction=new U;_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,S2))}_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}},Xk=new F("MatSnackBarData"),Es=class{politeness="assertive";announcementMessage="";viewContainerRef;duration=0;panelClass;direction;data=null;horizontalPosition="center";verticalPosition="bottom"},N2=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=T({type:t,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}return t})(),G2=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=T({type:t,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}return t})(),L2=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=T({type:t,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}return t})(),_2=(()=>{class t{snackBarRef=B(mI);data=B(Xk);constructor(){}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=O({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&&(d(0,"div",0),k(1),h(),x(2,b2,3,1,"div",1)),i&2&&(D(),NA(" ",o.data.message,`
`),D(),_(o.hasAction?2:-1))},dependencies:[Et,N2,G2,L2],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0})}return t})(),K2={snackBarState:lo("state",[li("void, hidden",Ue({transform:"scale(0.8)",opacity:0})),li("visible",Ue({transform:"scale(1)",opacity:1})),Yt("* => visible",ii("150ms cubic-bezier(0, 0, 0.2, 1)")),Yt("* => void, * => hidden",ii("75ms cubic-bezier(0.4, 0.0, 1, 1)",Ue({opacity:0})))])},U2=(()=>{class t extends _n{_ngZone=B(tA);_elementRef=B(q);_changeDetectorRef=B(UA);_platform=B(ZA);snackBarConfig=B(Es);_document=B(cA);_trackedModals=new Set;_announceDelay=150;_announceTimeoutId;_destroyed=!1;_portalOutlet;_onAnnounce=new U;_onExit=new U;_onEnter=new U;_animationState="void";_live;_label;_role;_liveElementId=B(re).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=O({type:t,selectors:[["mat-snack-bar-container"]],viewQuery:function(i,o){if(i&1&&(QA(Ei,7),QA(F2,7)),i&2){let n;$(n=AA())&&(o._portalOutlet=n.first),$(n=AA())&&(o._label=n.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:1,hostBindings:function(i,o){i&1&&Kh("@state.done",function(g){return o.onAnimationEnd(g)}),i&2&&_h("@state",o._animationState)},features:[dA],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&&(d(0,"div",1)(1,"div",2,0)(3,"div",3),x(4,v2,0,0,"ng-template",4),h(),P(5,"div"),h()()),i&2&&(D(5),aA("aria-live",o._live)("role",o._role)("id",o._liveElementId))},dependencies:[Ei],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:[K2.snackBarState]}})}return t})();function x2(){return new Es}var Y2=new F("mat-snack-bar-default-options",{providedIn:"root",factory:x2}),$k=(()=>{class t{_overlay=B(je);_live=B(fE);_injector=B(yA);_breakpointObserver=B(IE);_parentSnackBar=B(t,{optional:!0,skipSelf:!0});_defaultConfig=B(Y2);_snackBarRefAtThisLevel=null;simpleSnackBarComponent=_2;snackBarContainerComponent=U2;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=b(b({},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=yA.create({parent:o||this._injector,providers:[{provide:Es,useValue:i}]}),g=new _i(this.snackBarContainerComponent,i.viewContainerRef,n),r=A.attach(g);return r.instance.snackBarConfig=i,r.instance}_attach(A,i){let o=b(b(b({},new Es),this._defaultConfig),i),n=this._createOverlay(o),g=this._attachSnackBarContainer(n,o),r=new mI(g,n);if(A instanceof ge){let s=new Qi(A,null,{$implicit:o.data,snackBarRef:r});r.instance=g.attachTemplatePortal(s)}else{let s=this._createInjector(o,r),a=new _i(A,void 0,s),Q=g.attachComponentPortal(a);r.instance=Q.instance}return this._breakpointObserver.observe(jR.HandsetPortrait).pipe(pA(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 Kn;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 yA.create({parent:o||this._injector,providers:[{provide:mI,useValue:i},{provide:Xk,useValue:A.data}]})}static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var J2=function(){var t,e,A,i,o,n,g,r,s,a,Q,c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},f=new Promise((I,C)=>{t=I}),m=I=>console.log(I);function p(I){throw I}function M(){var I=Q.buffer;A=new Int8Array(I),i=new Int16Array(I),n=new Uint8Array(I),o=new Int32Array(I),g=new Uint32Array(I),r=new Float32Array(I),s=new Float64Array(I),a=new BigInt64Array(I),new BigUint64Array(I)}c.agerrMessages=[],c.stderrMessages=[],e=I=>c.stderrMessages.push(I);var K=typeof TextDecoder<"u"?new TextDecoder:void 0,W=function(I){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),u=C;I[u]&&!(u>=l);)++u;if(u-C>16&&I.buffer&&K)return K.decode(I.subarray(C,u));for(var w="";C<u;){var R=I[C++];if(128&R){var S=63&I[C++];if((224&R)!=192){var N=63&I[C++];if((R=(240&R)==224?(15&R)<<12|S<<6|N:(7&R)<<18|S<<12|N<<6|63&I[C++])<65536)w+=String.fromCharCode(R);else{var CA=R-65536;w+=String.fromCharCode(55296|CA>>10,56320|1023&CA)}}else w+=String.fromCharCode((31&R)<<6|S)}else w+=String.fromCharCode(R)}return w},DA=(I,C)=>I?W(n,I,C):"";class YA{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 wA={isAbs:I=>I.charAt(0)==="/",splitPath:I=>/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(I).slice(1),normalizeArray:(I,C)=>{for(var l=0,u=I.length-1;u>=0;u--){var w=I[u];w==="."?I.splice(u,1):w===".."?(I.splice(u,1),l++):l&&(I.splice(u,1),l--)}if(C)for(;l;l--)I.unshift("..");return I},normalize:I=>{var C=wA.isAbs(I),l=I.substr(-1)==="/";return(I=wA.normalizeArray(I.split("/").filter(u=>!!u),!C).join("/"))||C||(I="."),I&&l&&(I+="/"),(C?"/":"")+I},dirname:I=>{var C=wA.splitPath(I),l=C[0],u=C[1];return l||u?(u&&(u=u.substr(0,u.length-1)),l+u):"."},basename:I=>{if(I==="/")return"/";var C=(I=(I=wA.normalize(I)).replace(/\/$/,"")).lastIndexOf("/");return C===-1?I:I.substr(C+1)},join:function(){for(var I=arguments.length,C=new Array(I),l=0;l<I;l++)C[l]=arguments[l];return wA.normalize(C.join("/"))},join2:(I,C)=>wA.normalize(I+"/"+C)},yt=I=>(yt=(()=>{if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function")return C=>crypto.getRandomValues(C);p("initRandomDevice")})())(I),we={resolve:function(){for(var I="",C=!1,l=arguments.length-1;l>=-1&&!C;l--){var u=l>=0?l<0||arguments.length<=l?void 0:arguments[l]:E.cwd();if(typeof u!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!u)return"";I=u+"/"+I,C=wA.isAbs(u)}return(C?"/":"")+(I=wA.normalizeArray(I.split("/").filter(w=>!!w),!C).join("/"))||"."},relative:(I,C)=>{function l(vA){for(var RA=0;RA<vA.length&&vA[RA]==="";RA++);for(var hA=vA.length-1;hA>=0&&vA[hA]==="";hA--);return RA>hA?[]:vA.slice(RA,hA-RA+1)}I=we.resolve(I).substr(1),C=we.resolve(C).substr(1);for(var u=l(I.split("/")),w=l(C.split("/")),R=Math.min(u.length,w.length),S=R,N=0;N<R;N++)if(u[N]!==w[N]){S=N;break}var CA=[];for(N=S;N<u.length;N++)CA.push("..");return(CA=CA.concat(w.slice(S))).join("/")}},Fe=[],he=I=>{for(var C=0,l=0;l<I.length;++l){var u=I.charCodeAt(l);u<=127?C++:u<=2047?C+=2:u>=55296&&u<=57343?(C+=4,++l):C+=3}return C},ui=(I,C,l,u)=>{if(!(u>0))return 0;for(var w=l,R=l+u-1,S=0;S<I.length;++S){var N=I.charCodeAt(S);if(N>=55296&&N<=57343&&(N=65536+((1023&N)<<10)|1023&I.charCodeAt(++S)),N<=127){if(l>=R)break;C[l++]=N}else if(N<=2047){if(l+1>=R)break;C[l++]=192|N>>6,C[l++]=128|63&N}else if(N<=65535){if(l+2>=R)break;C[l++]=224|N>>12,C[l++]=128|N>>6&63,C[l++]=128|63&N}else{if(l+3>=R)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 bo(I,C,l){var u=l>0?l:he(I)+1,w=new Array(u),R=ui(I,w,0,w.length);return C&&(w.length=R),w}var Hi={ttys:[],init(){},shutdown(){},register(I,C){Hi.ttys[I]={input:[],output:[],ops:C},E.registerDevice(I,Hi.stream_ops)},stream_ops:{open(I){var C=Hi.ttys[I.node.rdev];if(!C)throw new E.ErrnoError(43);I.tty=C,I.seekable=!1},close(I){I.tty.ops.fsync(I.tty)},fsync(I){I.tty.ops.fsync(I.tty)},read(I,C,l,u,w){if(!I.tty||!I.tty.ops.get_char)throw new E.ErrnoError(60);for(var R=0,S=0;S<u;S++){var N;try{N=I.tty.ops.get_char(I.tty)}catch{throw new E.ErrnoError(29)}if(N===void 0&&R===0)throw new E.ErrnoError(6);if(N==null)break;R++,C[l+S]=N}return R&&(I.node.timestamp=Date.now()),R},write(I,C,l,u,w){if(!I.tty||!I.tty.ops.put_char)throw new E.ErrnoError(60);try{for(var R=0;R<u;R++)I.tty.ops.put_char(I.tty,C[l+R])}catch{throw new E.ErrnoError(29)}return u&&(I.node.timestamp=Date.now()),R}},default_tty_ops:{get_char:I=>(()=>{if(!Fe.length){var C=null;if(typeof window<"u"&&typeof window.prompt=="function"&&(C=window.prompt("Input: "))!==null&&(C+=`
`),!C)return null;Fe=bo(C,!0)}return Fe.shift()})(),put_char(I,C){C===null||C===10?(m(W(I.output)),I.output=[]):C!=0&&I.output.push(C)},fsync(I){I.output&&I.output.length>0&&(m(W(I.output)),I.output=[])},ioctl_tcgets:I=>({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:(I,C,l)=>0,ioctl_tiocgwinsz:I=>[24,80]},default_tty1_ops:{put_char(I,C){C===null||C===10?(e(W(I.output)),I.output=[]):C!=0&&I.output.push(C)},fsync(I){I.output&&I.output.length>0&&(e(W(I.output)),I.output=[])}}},Ti=(I,C)=>Math.ceil(I/C)*C,Zg=I=>{I=Ti(I,65536);var C=He(65536,I);return C&&((l,u)=>{n.fill(0,l,l+u)})(C,I),C},JA={ops_table:null,mount:I=>JA.createNode(null,"/",16895,0),createNode(I,C,l,u){if(E.isBlkdev(l)||E.isFIFO(l))throw new E.ErrnoError(63);JA.ops_table||={dir:{node:{getattr:JA.node_ops.getattr,setattr:JA.node_ops.setattr,lookup:JA.node_ops.lookup,mknod:JA.node_ops.mknod,rename:JA.node_ops.rename,unlink:JA.node_ops.unlink,rmdir:JA.node_ops.rmdir,readdir:JA.node_ops.readdir,symlink:JA.node_ops.symlink},stream:{llseek:JA.stream_ops.llseek}},file:{node:{getattr:JA.node_ops.getattr,setattr:JA.node_ops.setattr},stream:{llseek:JA.stream_ops.llseek,read:JA.stream_ops.read,write:JA.stream_ops.write,allocate:JA.stream_ops.allocate,mmap:JA.stream_ops.mmap,msync:JA.stream_ops.msync}},link:{node:{getattr:JA.node_ops.getattr,setattr:JA.node_ops.setattr,readlink:JA.node_ops.readlink},stream:{}},chrdev:{node:{getattr:JA.node_ops.getattr,setattr:JA.node_ops.setattr},stream:E.chrdev_stream_ops}};var w=E.createNode(I,C,l,u);return E.isDir(w.mode)?(w.node_ops=JA.ops_table.dir.node,w.stream_ops=JA.ops_table.dir.stream,w.contents={}):E.isFile(w.mode)?(w.node_ops=JA.ops_table.file.node,w.stream_ops=JA.ops_table.file.stream,w.usedBytes=0,w.contents=null):E.isLink(w.mode)?(w.node_ops=JA.ops_table.link.node,w.stream_ops=JA.ops_table.link.stream):E.isChrdev(w.mode)&&(w.node_ops=JA.ops_table.chrdev.node,w.stream_ops=JA.ops_table.chrdev.stream),w.timestamp=Date.now(),I&&(I.contents[C]=w,I.timestamp=w.timestamp),w},getFileDataAsTypedArray:I=>I.contents?I.contents.subarray?I.contents.subarray(0,I.usedBytes):new Uint8Array(I.contents):new Uint8Array(0),expandFileStorage(I,C){var l=I.contents?I.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 u=I.contents;I.contents=new Uint8Array(C),I.usedBytes>0&&I.contents.set(u.subarray(0,I.usedBytes),0)}},resizeFileStorage(I,C){if(I.usedBytes!=C)if(C==0)I.contents=null,I.usedBytes=0;else{var l=I.contents;I.contents=new Uint8Array(C),l&&I.contents.set(l.subarray(0,Math.min(C,I.usedBytes))),I.usedBytes=C}},node_ops:{getattr(I){var C={};return C.dev=E.isChrdev(I.mode)?I.id:1,C.ino=I.id,C.mode=I.mode,C.nlink=1,C.uid=0,C.gid=0,C.rdev=I.rdev,E.isDir(I.mode)?C.size=4096:E.isFile(I.mode)?C.size=I.usedBytes:E.isLink(I.mode)?C.size=I.link.length:C.size=0,C.atime=new Date(I.timestamp),C.mtime=new Date(I.timestamp),C.ctime=new Date(I.timestamp),C.blksize=4096,C.blocks=Math.ceil(C.size/C.blksize),C},setattr(I,C){C.mode!==void 0&&(I.mode=C.mode),C.timestamp!==void 0&&(I.timestamp=C.timestamp),C.size!==void 0&&JA.resizeFileStorage(I,C.size)},lookup(I,C){throw E.genericErrors[44]},mknod:(I,C,l,u)=>JA.createNode(I,C,l,u),rename(I,C,l){if(E.isDir(I.mode)){var u;try{u=E.lookupNode(C,l)}catch{}if(u)for(var w in u.contents)throw new E.ErrnoError(55)}delete I.parent.contents[I.name],I.parent.timestamp=Date.now(),I.name=l,C.contents[l]=I,C.timestamp=I.parent.timestamp},unlink(I,C){delete I.contents[C],I.timestamp=Date.now()},rmdir(I,C){var l=E.lookupNode(I,C);for(var u in l.contents)throw new E.ErrnoError(55);delete I.contents[C],I.timestamp=Date.now()},readdir(I){var C=[".",".."];for(var l of Object.keys(I.contents))C.push(l);return C},symlink(I,C,l){var u=JA.createNode(I,C,41471,0);return u.link=l,u},readlink(I){if(!E.isLink(I.mode))throw new E.ErrnoError(28);return I.link}},stream_ops:{read(I,C,l,u,w){var R=I.node.contents;if(w>=I.node.usedBytes)return 0;var S=Math.min(I.node.usedBytes-w,u);if(S>8&&R.subarray)C.set(R.subarray(w,w+S),l);else for(var N=0;N<S;N++)C[l+N]=R[w+N];return S},write(I,C,l,u,w,R){if(C.buffer===A.buffer&&(R=!1),!u)return 0;var S=I.node;if(S.timestamp=Date.now(),C.subarray&&(!S.contents||S.contents.subarray)){if(R)return S.contents=C.subarray(l,l+u),S.usedBytes=u,u;if(S.usedBytes===0&&w===0)return S.contents=C.slice(l,l+u),S.usedBytes=u,u;if(w+u<=S.usedBytes)return S.contents.set(C.subarray(l,l+u),w),u}if(JA.expandFileStorage(S,w+u),S.contents.subarray&&C.subarray)S.contents.set(C.subarray(l,l+u),w);else for(var N=0;N<u;N++)S.contents[w+N]=C[l+N];return S.usedBytes=Math.max(S.usedBytes,w+u),u},llseek(I,C,l){var u=C;if(l===1?u+=I.position:l===2&&E.isFile(I.node.mode)&&(u+=I.node.usedBytes),u<0)throw new E.ErrnoError(28);return u},allocate(I,C,l){JA.expandFileStorage(I.node,C+l),I.node.usedBytes=Math.max(I.node.usedBytes,C+l)},mmap(I,C,l,u,w){if(!E.isFile(I.node.mode))throw new E.ErrnoError(43);var R,S,N=I.node.contents;if(2&w||!N||N.buffer!==A.buffer){if(S=!0,!(R=Zg(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,R))}else S=!1,R=N.byteOffset;return{ptr:R,allocated:S}},msync:(I,C,l,u,w)=>(JA.stream_ops.write(I,C,0,u,l,!1),0)}},qg=(I,C)=>{var l=0;return I&&(l|=365),C&&(l|=146),l},E={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,ErrnoError:class{constructor(I){this.name="ErrnoError",this.errno=I}},genericErrors:{},filesystems:null,syncFSRequests:0,FSStream:class{constructor(){this.shared={}}get object(){return this.node}set object(I){this.node=I}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(I){this.shared.flags=I}get position(){return this.shared.position}set position(I){this.shared.position=I}},FSNode:class{constructor(I,C,l,u){I||(I=this),this.parent=I,this.mount=I.mount,this.mounted=null,this.id=E.nextInode++,this.name=C,this.mode=l,this.node_ops={},this.stream_ops={},this.rdev=u,this.readMode=365,this.writeMode=146}get read(){return(this.mode&this.readMode)===this.readMode}set read(I){I?this.mode|=this.readMode:this.mode&=~this.readMode}get write(){return(this.mode&this.writeMode)===this.writeMode}set write(I){I?this.mode|=this.writeMode:this.mode&=~this.writeMode}get isFolder(){return E.isDir(this.mode)}get isDevice(){return E.isChrdev(this.mode)}},lookupPath(I){let C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(I=we.resolve(I)))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=I.split("/").filter(vA=>!!vA),u=E.root,w="/",R=0;R<l.length;R++){var S=R===l.length-1;if(S&&C.parent)break;if(u=E.lookupNode(u,l[R]),w=wA.join2(w,l[R]),E.isMountpoint(u)&&(!S||S&&C.follow_mount)&&(u=u.mounted.root),!S||C.follow)for(var N=0;E.isLink(u.mode);){var CA=E.readlink(w);if(w=we.resolve(wA.dirname(w),CA),u=E.lookupPath(w,{recurse_count:C.recurse_count+1}).node,N++>40)throw new E.ErrnoError(32)}}return{path:w,node:u}},getPath(I){for(var C;;){if(E.isRoot(I)){var l=I.mount.mountpoint;return C?l[l.length-1]!=="/"?`${l}/${C}`:l+C:l}C=C?`${I.name}/${C}`:I.name,I=I.parent}},hashName(I,C){for(var l=0,u=0;u<C.length;u++)l=(l<<5)-l+C.charCodeAt(u)|0;return(I+l>>>0)%E.nameTable.length},hashAddNode(I){var C=E.hashName(I.parent.id,I.name);I.name_next=E.nameTable[C],E.nameTable[C]=I},hashRemoveNode(I){var C=E.hashName(I.parent.id,I.name);if(E.nameTable[C]===I)E.nameTable[C]=I.name_next;else for(var l=E.nameTable[C];l;){if(l.name_next===I){l.name_next=I.name_next;break}l=l.name_next}},lookupNode(I,C){var l=E.mayLookup(I);if(l)throw new E.ErrnoError(l);for(var u=E.hashName(I.id,C),w=E.nameTable[u];w;w=w.name_next){var R=w.name;if(w.parent.id===I.id&&R===C)return w}return E.lookup(I,C)},createNode(I,C,l,u){var w=new E.FSNode(I,C,l,u);return E.hashAddNode(w),w},destroyNode(I){E.hashRemoveNode(I)},isRoot:I=>I===I.parent,isMountpoint:I=>!!I.mounted,isFile:I=>(61440&I)==32768,isDir:I=>(61440&I)==16384,isLink:I=>(61440&I)==40960,isChrdev:I=>(61440&I)==8192,isBlkdev:I=>(61440&I)==24576,isFIFO:I=>(61440&I)==4096,isSocket:I=>!(49152&~I),flagsToPermissionString(I){var C=["r","w","rw"][3&I];return 512&I&&(C+="w"),C},nodePermissions:(I,C)=>E.ignorePermissions||(!C.includes("r")||292&I.mode)&&(!C.includes("w")||146&I.mode)&&(!C.includes("x")||73&I.mode)?0:2,mayLookup(I){if(!E.isDir(I.mode))return 54;var C=E.nodePermissions(I,"x");return C||(I.node_ops.lookup?0:2)},mayCreate(I,C){try{return E.lookupNode(I,C),20}catch{}return E.nodePermissions(I,"wx")},mayDelete(I,C,l){var u;try{u=E.lookupNode(I,C)}catch(R){return R.errno}var w=E.nodePermissions(I,"wx");if(w)return w;if(l){if(!E.isDir(u.mode))return 54;if(E.isRoot(u)||E.getPath(u)===E.cwd())return 10}else if(E.isDir(u.mode))return 31;return 0},mayOpen:(I,C)=>I?E.isLink(I.mode)?32:E.isDir(I.mode)&&(E.flagsToPermissionString(C)!=="r"||512&C)?31:E.nodePermissions(I,E.flagsToPermissionString(C)):44,MAX_OPEN_FDS:4096,nextfd(){for(var I=0;I<=E.MAX_OPEN_FDS;I++)if(!E.streams[I])return I;throw new E.ErrnoError(33)},getStreamChecked(I){var C=E.getStream(I);if(!C)throw new E.ErrnoError(8);return C},getStream:I=>E.streams[I],createStream(I){let C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1;return I=Object.assign(new E.FSStream,I),C==-1&&(C=E.nextfd()),I.fd=C,E.streams[C]=I,I},closeStream(I){E.streams[I]=null},dupStream(I){let C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1;var l=E.createStream(I,C);return l.stream_ops?.dup?.(l),l},chrdev_stream_ops:{open(I){var C=E.getDevice(I.node.rdev);I.stream_ops=C.stream_ops,I.stream_ops.open?.(I)},llseek(){throw new E.ErrnoError(70)}},major:I=>I>>8,minor:I=>255&I,makedev:(I,C)=>I<<8|C,registerDevice(I,C){E.devices[I]={stream_ops:C}},getDevice:I=>E.devices[I],getMounts(I){for(var C=[],l=[I];l.length;){var u=l.pop();C.push(u),l.push(...u.mounts)}return C},syncfs(I,C){typeof I=="function"&&(C=I,I=!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),u=0;function w(S){return E.syncFSRequests--,C(S)}function R(S){if(S)return R.errored?void 0:(R.errored=!0,w(S));++u>=l.length&&w(null)}l.forEach(S=>{if(!S.type.syncfs)return R(null);S.type.syncfs(S,I,R)})},mount(I,C,l){var u,w=l==="/",R=!l;if(w&&E.root)throw new E.ErrnoError(10);if(!w&&!R){var S=E.lookupPath(l,{follow_mount:!1});if(l=S.path,u=S.node,E.isMountpoint(u))throw new E.ErrnoError(10);if(!E.isDir(u.mode))throw new E.ErrnoError(54)}var N={type:I,opts:C,mountpoint:l,mounts:[]},CA=I.mount(N);return CA.mount=N,N.root=CA,w?E.root=CA:u&&(u.mounted=N,u.mount&&u.mount.mounts.push(N)),CA},unmount(I){var C=E.lookupPath(I,{follow_mount:!1});if(!E.isMountpoint(C.node))throw new E.ErrnoError(28);var l=C.node,u=l.mounted,w=E.getMounts(u);Object.keys(E.nameTable).forEach(S=>{for(var N=E.nameTable[S];N;){var CA=N.name_next;w.includes(N.mount)&&E.destroyNode(N),N=CA}}),l.mounted=null;var R=l.mount.mounts.indexOf(u);l.mount.mounts.splice(R,1)},lookup:(I,C)=>I.node_ops.lookup(I,C),mknod(I,C,l){var u=E.lookupPath(I,{parent:!0}).node,w=wA.basename(I);if(!w||w==="."||w==="..")throw new E.ErrnoError(28);var R=E.mayCreate(u,w);if(R)throw new E.ErrnoError(R);if(!u.node_ops.mknod)throw new E.ErrnoError(63);return u.node_ops.mknod(u,w,C,l)},create:(I,C)=>(C=C!==void 0?C:438,C&=4095,C|=32768,E.mknod(I,C,0)),mkdir:(I,C)=>(C=C!==void 0?C:511,C&=1023,C|=16384,E.mknod(I,C,0)),mkdirTree(I,C){for(var l=I.split("/"),u="",w=0;w<l.length;++w)if(l[w]){u+="/"+l[w];try{E.mkdir(u,C)}catch(R){if(R.errno!=20)throw R}}},mkdev:(I,C,l)=>(l===void 0&&(l=C,C=438),C|=8192,E.mknod(I,C,l)),symlink(I,C){if(!we.resolve(I))throw new E.ErrnoError(44);var l=E.lookupPath(C,{parent:!0}).node;if(!l)throw new E.ErrnoError(44);var u=wA.basename(C),w=E.mayCreate(l,u);if(w)throw new E.ErrnoError(w);if(!l.node_ops.symlink)throw new E.ErrnoError(63);return l.node_ops.symlink(l,u,I)},rename(I,C){var l,u,w=wA.dirname(I),R=wA.dirname(C),S=wA.basename(I),N=wA.basename(C);if(l=E.lookupPath(I,{parent:!0}).node,u=E.lookupPath(C,{parent:!0}).node,!l||!u)throw new E.ErrnoError(44);if(l.mount!==u.mount)throw new E.ErrnoError(75);var CA,vA=E.lookupNode(l,S),RA=we.relative(I,R);if(RA.charAt(0)!==".")throw new E.ErrnoError(28);if((RA=we.relative(C,w)).charAt(0)!==".")throw new E.ErrnoError(55);try{CA=E.lookupNode(u,N)}catch{}if(vA!==CA){var hA=E.isDir(vA.mode),EA=E.mayDelete(l,S,hA);if(EA)throw new E.ErrnoError(EA);if(EA=CA?E.mayDelete(u,N,hA):E.mayCreate(u,N))throw new E.ErrnoError(EA);if(!l.node_ops.rename)throw new E.ErrnoError(63);if(E.isMountpoint(vA)||CA&&E.isMountpoint(CA))throw new E.ErrnoError(10);if(u!==l&&(EA=E.nodePermissions(l,"w")))throw new E.ErrnoError(EA);E.hashRemoveNode(vA);try{l.node_ops.rename(vA,u,N),vA.parent=u}catch(lA){throw lA}finally{E.hashAddNode(vA)}}},rmdir(I){var C=E.lookupPath(I,{parent:!0}).node,l=wA.basename(I),u=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(u))throw new E.ErrnoError(10);C.node_ops.rmdir(C,l),E.destroyNode(u)},readdir(I){var C=E.lookupPath(I,{follow:!0}).node;if(!C.node_ops.readdir)throw new E.ErrnoError(54);return C.node_ops.readdir(C)},unlink(I){var C=E.lookupPath(I,{parent:!0}).node;if(!C)throw new E.ErrnoError(44);var l=wA.basename(I),u=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(u))throw new E.ErrnoError(10);C.node_ops.unlink(C,l),E.destroyNode(u)},readlink(I){var C=E.lookupPath(I).node;if(!C)throw new E.ErrnoError(44);if(!C.node_ops.readlink)throw new E.ErrnoError(28);return we.resolve(E.getPath(C.parent),C.node_ops.readlink(C))},stat(I,C){var l=E.lookupPath(I,{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:I=>E.stat(I,!0),chmod(I,C,l){var u;if(typeof I=="string"?u=E.lookupPath(I,{follow:!l}).node:u=I,!u.node_ops.setattr)throw new E.ErrnoError(63);u.node_ops.setattr(u,{mode:4095&C|-4096&u.mode,timestamp:Date.now()})},lchmod(I,C){E.chmod(I,C,!0)},fchmod(I,C){var l=E.getStreamChecked(I);E.chmod(l.node,C)},chown(I,C,l,u){var w;if(typeof I=="string"?w=E.lookupPath(I,{follow:!u}).node:w=I,!w.node_ops.setattr)throw new E.ErrnoError(63);w.node_ops.setattr(w,{timestamp:Date.now()})},lchown(I,C,l){E.chown(I,C,l,!0)},fchown(I,C,l){var u=E.getStreamChecked(I);E.chown(u.node,C,l)},truncate(I,C){if(C<0)throw new E.ErrnoError(28);var l;if(typeof I=="string"?l=E.lookupPath(I,{follow:!0}).node:l=I,!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 u=E.nodePermissions(l,"w");if(u)throw new E.ErrnoError(u);l.node_ops.setattr(l,{size:C,timestamp:Date.now()})},ftruncate(I,C){var l=E.getStreamChecked(I);if(!(2097155&l.flags))throw new E.ErrnoError(28);E.truncate(l.node,C)},utime(I,C,l){var u=E.lookupPath(I,{follow:!0}).node;u.node_ops.setattr(u,{timestamp:Math.max(C,l)})},open(I,C,l){if(I==="")throw new E.ErrnoError(44);var u;if(l=64&(C=typeof C=="string"?(N=>{var CA={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[N];if(CA===void 0)throw new Error(`Unknown file open mode: ${N}`);return CA})(C):C)?4095&(l=l===void 0?438:l)|32768:0,typeof I=="object")u=I;else{I=wA.normalize(I);try{u=E.lookupPath(I,{follow:!(131072&C)}).node}catch{}}var w=!1;if(64&C)if(u){if(128&C)throw new E.ErrnoError(20)}else u=E.mknod(I,l,0),w=!0;if(!u)throw new E.ErrnoError(44);if(E.isChrdev(u.mode)&&(C&=-513),65536&C&&!E.isDir(u.mode))throw new E.ErrnoError(54);if(!w){var R=E.mayOpen(u,C);if(R)throw new E.ErrnoError(R)}512&C&&!w&&E.truncate(u,0),C&=-131713;var S=E.createStream({node:u,path:E.getPath(u),flags:C,seekable:!0,position:0,stream_ops:u.stream_ops,ungotten:[],error:!1});return S.stream_ops.open&&S.stream_ops.open(S),S},close(I){if(E.isClosed(I))throw new E.ErrnoError(8);I.getdents&&(I.getdents=null);try{I.stream_ops.close&&I.stream_ops.close(I)}catch(C){throw C}finally{E.closeStream(I.fd)}I.fd=null},isClosed:I=>I.fd===null,llseek(I,C,l){if(E.isClosed(I))throw new E.ErrnoError(8);if(!I.seekable||!I.stream_ops.llseek)throw new E.ErrnoError(70);if(l!=0&&l!=1&&l!=2)throw new E.ErrnoError(28);return I.position=I.stream_ops.llseek(I,C,l),I.ungotten=[],I.position},read(I,C,l,u,w){if(u<0||w<0)throw new E.ErrnoError(28);if(E.isClosed(I))throw new E.ErrnoError(8);if((2097155&I.flags)==1)throw new E.ErrnoError(8);if(E.isDir(I.node.mode))throw new E.ErrnoError(31);if(!I.stream_ops.read)throw new E.ErrnoError(28);var R=w!==void 0;if(R){if(!I.seekable)throw new E.ErrnoError(70)}else w=I.position;var S=I.stream_ops.read(I,C,l,u,w);return R||(I.position+=S),S},write(I,C,l,u,w,R){if(u<0||w<0)throw new E.ErrnoError(28);if(E.isClosed(I))throw new E.ErrnoError(8);if(!(2097155&I.flags))throw new E.ErrnoError(8);if(E.isDir(I.node.mode))throw new E.ErrnoError(31);if(!I.stream_ops.write)throw new E.ErrnoError(28);I.seekable&&1024&I.flags&&E.llseek(I,0,2);var S=w!==void 0;if(S){if(!I.seekable)throw new E.ErrnoError(70)}else w=I.position;var N=I.stream_ops.write(I,C,l,u,w,R);return S||(I.position+=N),N},allocate(I,C,l){if(E.isClosed(I))throw new E.ErrnoError(8);if(C<0||l<=0)throw new E.ErrnoError(28);if(!(2097155&I.flags))throw new E.ErrnoError(8);if(!E.isFile(I.node.mode)&&!E.isDir(I.node.mode))throw new E.ErrnoError(43);if(!I.stream_ops.allocate)throw new E.ErrnoError(138);I.stream_ops.allocate(I,C,l)},mmap(I,C,l,u,w){if(2&u&&!(2&w)&&(2097155&I.flags)!=2)throw new E.ErrnoError(2);if((2097155&I.flags)==1)throw new E.ErrnoError(2);if(!I.stream_ops.mmap)throw new E.ErrnoError(43);if(!C)throw new E.ErrnoError(28);return I.stream_ops.mmap(I,C,l,u,w)},msync:(I,C,l,u,w)=>I.stream_ops.msync?I.stream_ops.msync(I,C,l,u,w):0,ioctl(I,C,l){if(!I.stream_ops.ioctl)throw new E.ErrnoError(59);return I.stream_ops.ioctl(I,C,l)},readFile(I){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,u=E.open(I,C.flags),w=E.stat(I).size,R=new Uint8Array(w);return E.read(u,R,0,w,0),C.encoding==="utf8"?l=W(R):C.encoding==="binary"&&(l=R),E.close(u),l},writeFile(I,C){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};l.flags=l.flags||577;var u=E.open(I,l.flags,l.mode);if(typeof C=="string"){var w=new Uint8Array(he(C)+1),R=ui(C,w,0,w.length);E.write(u,w,0,R,void 0,l.canOwn)}else{if(!ArrayBuffer.isView(C))throw new Error("Unsupported data type");E.write(u,C,0,C.byteLength,void 0,l.canOwn)}E.close(u)},cwd:()=>E.currentPath,chdir(I){var C=E.lookupPath(I,{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:(u,w,R,S,N)=>S}),E.mkdev("/dev/null",E.makedev(1,3)),Hi.register(E.makedev(5,0),Hi.default_tty_ops),Hi.register(E.makedev(6,0),Hi.default_tty1_ops),E.mkdev("/dev/tty",E.makedev(5,0)),E.mkdev("/dev/tty1",E.makedev(6,0));var I=new Uint8Array(1024),C=0,l=()=>(C===0&&(C=yt(I).byteLength),I[--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 I=E.mkdir("/proc/self");E.mkdir("/proc/self/fd"),E.mount({mount(){var C=E.createNode(I,"fd",16895,73);return C.node_ops={lookup(l,u){var w=+u,R=E.getStreamChecked(w),S={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:()=>R.path}};return S.parent=S,S}},C}},{},"/proc/self/fd")},createStandardStreams(I,C,l){I?E.createDevice("/dev","stdin",I):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(I=>{E.genericErrors[I]=new E.ErrnoError(I),E.genericErrors[I].stack="<generic error, no stack>"}),E.nameTable=new Array(4096),E.mount(JA,{},"/"),E.createDefaultDirectories(),E.createDefaultDevices(),E.createSpecialDirectories(),E.filesystems={MEMFS:JA}},init(I,C,l){E.initialized=!0,E.createStandardStreams(I,C,l)},quit(){E.initialized=!1;for(var I=0;I<E.streams.length;I++){var C=E.streams[I];C&&E.close(C)}},findObject(I,C){var l=E.analyzePath(I,C);return l.exists?l.object:null},analyzePath(I,C){try{I=(u=E.lookupPath(I,{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 u=E.lookupPath(I,{parent:!0});l.parentExists=!0,l.parentPath=u.path,l.parentObject=u.node,l.name=wA.basename(I),u=E.lookupPath(I,{follow:!C}),l.exists=!0,l.path=u.path,l.object=u.node,l.name=u.node.name,l.isRoot=u.path==="/"}catch(w){l.error=w.errno}return l},createPath(I,C,l,u){I=typeof I=="string"?I:E.getPath(I);for(var w=C.split("/").reverse();w.length;){var R=w.pop();if(R){var S=wA.join2(I,R);try{E.mkdir(S)}catch{}I=S}}return S},createFile(I,C,l,u,w){var R=wA.join2(typeof I=="string"?I:E.getPath(I),C),S=qg(u,w);return E.create(R,S)},createDataFile(I,C,l,u,w,R){var S=C;I&&(I=typeof I=="string"?I:E.getPath(I),S=C?wA.join2(I,C):I);var N=qg(u,w),CA=E.create(S,N);if(l){if(typeof l=="string"){for(var vA=new Array(l.length),RA=0,hA=l.length;RA<hA;++RA)vA[RA]=l.charCodeAt(RA);l=vA}E.chmod(CA,146|N);var EA=E.open(CA,577);E.write(EA,l,0,l.length,0,R),E.close(EA),E.chmod(CA,N)}},createDevice(I,C,l,u){var w=wA.join2(typeof I=="string"?I:E.getPath(I),C),R=qg(!!l,!!u);E.createDevice.major??=64;var S=E.makedev(E.createDevice.major++,0);return E.registerDevice(S,{open(N){N.seekable=!1},close(N){u?.buffer?.length&&u(10)},read(N,CA,vA,RA,hA){for(var EA=0,lA=0;lA<RA;lA++){var Ee;try{Ee=l()}catch{throw new E.ErrnoError(29)}if(Ee===void 0&&EA===0)throw new E.ErrnoError(6);if(Ee==null)break;EA++,CA[vA+lA]=Ee}return EA&&(N.node.timestamp=Date.now()),EA},write(N,CA,vA,RA,hA){for(var EA=0;EA<RA;EA++)try{u(CA[vA+EA])}catch{throw new E.ErrnoError(29)}return RA&&(N.node.timestamp=Date.now()),EA}}),E.mkdev(w,R,S)},forceLoadFile(I){if(I.isDevice||I.isFolder||I.link||I.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{I.contents=readBinary(I.url),I.usedBytes=I.contents.length}catch{throw new E.ErrnoError(29)}},createLazyFile(I,C,l,u,w){class R{constructor(){this.lengthKnown=!1,this.chunks=[]}get(hA){if(!(hA>this.length-1||hA<0)){var EA=hA%this.chunkSize,lA=hA/this.chunkSize|0;return this.getter(lA)[EA]}}setDataGetter(hA){this.getter=hA}cacheLength(){var hA=new XMLHttpRequest;if(hA.open("HEAD",l,!1),hA.send(null),!(hA.status>=200&&hA.status<300||hA.status===304))throw new Error("Couldn't load "+l+". Status: "+hA.status);var EA,lA=Number(hA.getResponseHeader("Content-length")),Ee=(EA=hA.getResponseHeader("Accept-Ranges"))&&EA==="bytes",ce=(EA=hA.getResponseHeader("Content-Encoding"))&&EA==="gzip",Xe=1048576;Ee||(Xe=lA);var Ge=this;Ge.setDataGetter(mi=>{var Gc=mi*Xe,Fs=(mi+1)*Xe-1;if(Fs=Math.min(Fs,lA-1),Ge.chunks[mi]===void 0&&(Ge.chunks[mi]=((Lc,$I)=>{if(Lc>$I)throw new Error("invalid range ("+Lc+", "+$I+") or no bytes requested!");if($I>lA-1)throw new Error("only "+lA+" bytes available! programmer error!");var Tt=new XMLHttpRequest;if(Tt.open("GET",l,!1),lA!==Xe&&Tt.setRequestHeader("Range","bytes="+Lc+"-"+$I),Tt.responseType="arraybuffer",Tt.overrideMimeType&&Tt.overrideMimeType("text/plain; charset=x-user-defined"),Tt.send(null),!(Tt.status>=200&&Tt.status<300||Tt.status===304))throw new Error("Couldn't load "+l+". Status: "+Tt.status);return Tt.response!==void 0?new Uint8Array(Tt.response||[]):bo(Tt.responseText||"",!0)})(Gc,Fs)),Ge.chunks[mi]===void 0)throw new Error("doXHR failed!");return Ge.chunks[mi]}),!ce&&lA||(Xe=lA=1,lA=this.getter(0).length,Xe=lA,m("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=lA,this._chunkSize=Xe,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 R}}else S={isDevice:!1,url:l};var N=E.createFile(I,C,S,u,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 CA={};function vA(RA,hA,EA,lA,Ee){var ce=RA.node.contents;if(Ee>=ce.length)return 0;var Xe=Math.min(ce.length-Ee,lA);if(ce.slice)for(var Ge=0;Ge<Xe;Ge++)hA[EA+Ge]=ce[Ee+Ge];else for(Ge=0;Ge<Xe;Ge++)hA[EA+Ge]=ce.get(Ee+Ge);return Xe}return Object.keys(N.stream_ops).forEach(RA=>{var hA=N.stream_ops[RA];CA[RA]=function(){return E.forceLoadFile(N),hA(...arguments)}}),CA.read=(RA,hA,EA,lA,Ee)=>(E.forceLoadFile(N),vA(RA,hA,EA,lA,Ee)),CA.mmap=(RA,hA,EA,lA,Ee)=>{E.forceLoadFile(N);var ce=Zg(hA);if(!ce)throw new E.ErrnoError(48);return vA(RA,A,ce,hA,EA),{ptr:ce,allocated:!0}},N.stream_ops=CA,N}},oA={DEFAULT_POLLMASK:5,calculateAt(I,C,l){if(wA.isAbs(C))return C;var u;if(I===-100?u=E.cwd():u=oA.getStreamFromFD(I).path,C.length==0){if(!l)throw new E.ErrnoError(44);return u}return wA.join2(u,C)},doStat(I,C,l){var u=I(C);o[l>>2]=u.dev,o[l+4>>2]=u.mode,g[l+8>>2]=u.nlink,o[l+12>>2]=u.uid,o[l+16>>2]=u.gid,o[l+20>>2]=u.rdev,a[l+24>>3]=BigInt(u.size),o[l+32>>2]=4096,o[l+36>>2]=u.blocks;var w=u.atime.getTime(),R=u.mtime.getTime(),S=u.ctime.getTime();return a[l+40>>3]=BigInt(Math.floor(w/1e3)),g[l+48>>2]=w%1e3*1e3*1e3,a[l+56>>3]=BigInt(Math.floor(R/1e3)),g[l+64>>2]=R%1e3*1e3*1e3,a[l+72>>3]=BigInt(Math.floor(S/1e3)),g[l+80>>2]=S%1e3*1e3*1e3,a[l+88>>3]=BigInt(u.ino),0},doMsync(I,C,l,u,w){if(!E.isFile(C.node.mode))throw new E.ErrnoError(43);if(2&u)return 0;var R=n.slice(I,I+l);E.msync(C,R,w,l,u)},getStreamFromFD:I=>E.getStreamChecked(I),varargs:void 0,getStr:I=>DA(I)};function fA(){var I=o[+oA.varargs>>2];return oA.varargs+=4,I}var VA=fA,Ne=I=>I<-9007199254740992||I>9007199254740992?NaN:Number(I),tt=(I,C,l)=>ui(I,n,C,l),dt=I=>{var C=(I-Q.buffer.byteLength+65535)/65536|0;try{return Q.grow(C),M(),1}catch{}},gi={},oe=()=>{if(!oe.strings){var I={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 gi)gi[C]===void 0?delete I[C]:I[C]=gi[C];var l=[];for(var C in I)l.push(`${C}=${I[C]}`);oe.strings=l}return oe.strings},jI=I=>{throw`exit(${I})`},XI=I=>ht(I);E.createPreloadedFile=(I,C,l,u,w,R,S,N,CA,vA)=>{var RA=C?we.resolve(wA.join2(I,C)):I,hA=getUniqueRunDependency(`cp ${RA}`);function EA(lA){(function(Ee){vA?.(),N||((ce,Xe,Ge,mi,Gc,Fs)=>{E.createDataFile(ce,Xe,Ge,mi,Gc,Fs)})(I,C,Ee,u,w,CA),R?.(),removeRunDependency(hA)})(lA)}addRunDependency(hA),typeof l=="string"?((lA,Ee,ce,Xe)=>{var Ge=Xe?"":getUniqueRunDependency(`al ${lA}`);readAsync(lA).then(mi=>{Ee(new Uint8Array(mi)),Ge&&removeRunDependency(Ge)},mi=>{if(!ce)throw`Loading data file "${lA}" failed.`;ce()}),Ge&&addRunDependency(Ge)})(l,EA,S):EA(l)},E.staticInit();var He,Oi,ht,On,bs={a:(I,C,l,u)=>{p(`Assertion failed: ${DA(I)}, at: `+[C?DA(C):"unknown filename",l,u?DA(u):"unknown function"])},b:(I,C,l)=>{throw new YA(I).init(C,l),I},v:function(I,C,l,u){try{if(C=oA.getStr(C),C=oA.calculateAt(I,C),-8&l)return-28;var w=E.lookupPath(C,{follow:!0}).node;if(!w)return-44;var R="";return 4&l&&(R+="r"),2&l&&(R+="w"),1&l&&(R+="x"),R&&E.nodePermissions(w,R)?-2:0}catch(S){if(E===void 0||S.name!=="ErrnoError")throw S;return-S.errno}},f:function(I,C,l){oA.varargs=l;try{var u=oA.getStreamFromFD(I);switch(C){case 0:if((w=fA())<0)return-28;for(;E.streams[w];)w++;return E.dupStream(u,w).fd;case 1:case 2:case 13:case 14:return 0;case 3:return u.flags;case 4:var w=fA();return u.flags|=w,0;case 12:return w=VA(),i[w+0>>1]=2,0}return-28}catch(R){if(E===void 0||R.name!=="ErrnoError")throw R;return-R.errno}},u:function(I,C){try{var l=oA.getStreamFromFD(I);return oA.doStat(E.stat,l.path,C)}catch(u){if(E===void 0||u.name!=="ErrnoError")throw u;return-u.errno}},j:function(I,C,l){oA.varargs=l;try{var u=oA.getStreamFromFD(I);switch(C){case 21509:case 21510:case 21511:case 21512:case 21524:case 21515:return u.tty?0:-59;case 21505:if(!u.tty)return-59;if(u.tty.ops.ioctl_tcgets){var w=u.tty.ops.ioctl_tcgets(u),R=VA();o[R>>2]=w.c_iflag||0,o[R+4>>2]=w.c_oflag||0,o[R+8>>2]=w.c_cflag||0,o[R+12>>2]=w.c_lflag||0;for(var S=0;S<32;S++)A[R+S+17]=w.c_cc[S]||0;return 0}return 0;case 21506:case 21507:case 21508:if(!u.tty)return-59;if(u.tty.ops.ioctl_tcsets){R=VA();var N=o[R>>2],CA=o[R+4>>2],vA=o[R+8>>2],RA=o[R+12>>2],hA=[];for(S=0;S<32;S++)hA.push(A[R+S+17]);return u.tty.ops.ioctl_tcsets(u.tty,C,{c_iflag:N,c_oflag:CA,c_cflag:vA,c_lflag:RA,c_cc:hA})}return 0;case 21519:return u.tty?(R=VA(),o[R>>2]=0,0):-59;case 21520:return u.tty?-28:-59;case 21531:return R=VA(),E.ioctl(u,C,R);case 21523:if(!u.tty)return-59;if(u.tty.ops.ioctl_tiocgwinsz){var EA=u.tty.ops.ioctl_tiocgwinsz(u.tty);R=VA(),i[R>>1]=EA[0],i[R+2>>1]=EA[1]}return 0;default:return-28}}catch(lA){if(E===void 0||lA.name!=="ErrnoError")throw lA;return-lA.errno}},s:function(I,C,l,u){try{C=oA.getStr(C);var w=256&u,R=4096&u;return u&=-6401,C=oA.calculateAt(I,C,R),oA.doStat(w?E.lstat:E.stat,C,l)}catch(S){if(E===void 0||S.name!=="ErrnoError")throw S;return-S.errno}},m:function(I,C,l,u){oA.varargs=u;try{C=oA.getStr(C),C=oA.calculateAt(I,C);var w=u?fA():0;return E.open(C,l,w).fd}catch(R){if(E===void 0||R.name!=="ErrnoError")throw R;return-R.errno}},t:function(I,C){try{return I=oA.getStr(I),oA.doStat(E.stat,I,C)}catch(l){if(E===void 0||l.name!=="ErrnoError")throw l;return-l.errno}},i:()=>{p("")},n:function(I,C,l,u,w,R,S){w=Ne(w);try{if(isNaN(w))return 61;var N=oA.getStreamFromFD(u),CA=E.mmap(N,I,w,C,l),vA=CA.ptr;return o[R>>2]=CA.allocated,g[S>>2]=vA,0}catch(RA){if(E===void 0||RA.name!=="ErrnoError")throw RA;return-RA.errno}},o:function(I,C,l,u,w,R){R=Ne(R);try{var S=oA.getStreamFromFD(w);2&l&&oA.doMsync(I,S,C,u,R)}catch(N){if(E===void 0||N.name!=="ErrnoError")throw N;return-N.errno}},k:(I,C,l,u)=>{var w=new Date().getFullYear(),R=new Date(w,0,1),S=new Date(w,6,1),N=R.getTimezoneOffset(),CA=S.getTimezoneOffset(),vA=Math.max(N,CA);g[I>>2]=60*vA,o[C>>2]=+(N!=CA);var RA=lA=>{var Ee=lA>=0?"-":"+",ce=Math.abs(lA);return`UTC${Ee}${String(Math.floor(ce/60)).padStart(2,"0")}${String(ce%60).padStart(2,"0")}`},hA=RA(N),EA=RA(CA);CA<N?(tt(hA,l,17),tt(EA,u,17)):(tt(hA,u,17),tt(EA,l,17))},h:()=>Date.now(),l:I=>{var C=n.length,l=2147483648;if((I>>>=0)>l)return!1;for(var u=1;u<=4;u*=2){var w=C*(1+.2/u);w=Math.min(w,I+100663296);var R=Math.min(l,Ti(Math.max(I,w),65536));if(dt(R))return!0}return!1},q:(I,C)=>{var l=0;return oe().forEach((u,w)=>{var R=C+l;g[I+4*w>>2]=R,((S,N)=>{for(var CA=0;CA<S.length;++CA)A[N++]=S.charCodeAt(CA);A[N]=0})(u,R),l+=u.length+1}),0},r:(I,C)=>{var l=oe();g[I>>2]=l.length;var u=0;return l.forEach(w=>u+=w.length+1),g[C>>2]=u,0},g:jI,e:function(I){try{var C=oA.getStreamFromFD(I);return E.close(C),0}catch(l){if(E===void 0||l.name!=="ErrnoError")throw l;return l.errno}},d:function(I,C,l,u){try{var w=((R,S,N,CA)=>{for(var vA=0,RA=0;RA<N;RA++){var hA=g[S>>2],EA=g[S+4>>2];S+=8;var lA=E.read(R,A,hA,EA,CA);if(lA<0)return-1;if(vA+=lA,lA<EA)break;CA!==void 0&&(CA+=lA)}return vA})(oA.getStreamFromFD(I),C,l);return g[u>>2]=w,0}catch(R){if(E===void 0||R.name!=="ErrnoError")throw R;return R.errno}},p:function(I,C,l,u){C=Ne(C);try{if(isNaN(C))return 61;var w=oA.getStreamFromFD(I);return E.llseek(w,C,l),a[u>>3]=BigInt(w.position),w.getdents&&C===0&&l===0&&(w.getdents=null),0}catch(R){if(E===void 0||R.name!=="ErrnoError")throw R;return R.errno}},c:function(I,C,l,u){try{var w=((R,S,N,CA)=>{for(var vA=0,RA=0;RA<N;RA++){var hA=g[S>>2],EA=g[S+4>>2];S+=8;var lA=E.write(R,A,hA,EA,CA);if(lA<0)return-1;if(vA+=lA,lA<EA)break;CA!==void 0&&(CA+=lA)}return vA})(oA.getStreamFromFD(I),C,l);return g[u>>2]=w,0}catch(R){if(E===void 0||R.name!=="ErrnoError")throw R;return R.errno}},w:function(I){return c.agerrMessages.push(DA(I)),0}};c.ccall=(I,C,l,u,w)=>{var R={string:EA=>{var lA=0;return EA!=null&&EA!==0&&(lA=(Ee=>{var ce=he(Ee)+1,Xe=XI(ce);return tt(Ee,Xe,ce),Xe})(EA)),lA},array:EA=>{var lA,Ee,ce=XI(EA.length);return lA=EA,Ee=ce,A.set(lA,Ee),ce}},S=(EA=>c["_"+EA])(I),N=[],CA=0;if(u)for(var vA=0;vA<u.length;vA++){var RA=R[l[vA]];RA?(CA===0&&(CA=On()),N[vA]=RA(u[vA])):N[vA]=u[vA]}var hA=S(...N);return hA=function(EA){return CA!==0&&Oi(CA),function(lA){return C==="string"?DA(lA):C==="boolean"?!!lA:lA}(EA)}(hA)},c.getValue=function(I){let C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"i8";switch(C.endsWith("*")&&(C="*"),C){case"i1":case"i8":return A[I];case"i16":return i[I>>1];case"i32":return o[I>>2];case"i64":return a[I>>3];case"float":return r[I>>2];case"double":return s[I>>3];case"*":return g[I>>2];default:p(`invalid type for getValue: ${C}`)}},c.PATH=wA,c.UTF8ToString=DA,c.stringToUTF8=tt,c.lengthBytesUTF8=he,c.FS=E;var Vv={a:bs};return WebAssembly.instantiate(c.wasm,Vv).then(I=>{var C=I.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,He=C.Z,Oi=C._,ht=C.$,On=C.aa,Q=C.x,M(),function(l){l.y(),c.noFSInit||E.initialized||E.init(),E.ignorePermissions=!1}(C),t(c)}),f},Ab=[[/^Error: (.*)/,"error"],[/^Warning: (.*)/,"warning"]];function eb(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 tb(t,e,A,i){let o,n,g,r;try{if(t.agerrMessages=[],t.stderrMessages=[],r=function(a,Q){return Q?Q.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 f=a.PATH.join("/",c.name),m=`<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="${c.width}" height="${c.height}"></svg>
`;return a.FS.createPath("/",a.PATH.dirname(f)),a.FS.writeFile(f,m),f}):[]}(t,i.images),typeof e=="string")o=function(a,Q){let c;try{let f=a.lengthBytesUTF8(Q);return c=a.ccall("malloc","number",["number"],[f+1]),a.stringToUTF8(Q,c,f+1),a.ccall("viz_read_one_graph","number",["number"],[c])}finally{c&&a.ccall("free","number",["number"],[c])}}(t,e);else{if(typeof e!="object")throw new Error("input must be a string or object");o=function(a,Q){let c=a.ccall("viz_create_graph","number",["string","number","number"],[Q.name,Q.directed===void 0||Q.directed,Q.strict!==void 0&&Q.strict]);return ob(a,c,Q),c}(t,e)}if(o===0)return{status:"failure",output:void 0,errors:DI(t)};if(nb(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:DI(t)};let s={};for(let a of A){if(g=t.ccall("viz_render","number",["number","number","string"],[n,o,a]),g===0)return{status:"failure",output:void 0,errors:DI(t)};s[a]=t.UTF8ToString(g),t.ccall("free","number",["number"],[g]),g=0}return{status:"success",output:s,errors:DI(t)}}catch(s){if(/^exit\(\d+\)/.test(s))return{status:"failure",output:void 0,errors:DI(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,a){for(let Q of a)s.FS.analyzePath(Q).exists&&s.FS.unlink(Q)}(t,r)}}function DI(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<Ab.length;A++){let[i,o]=Ab[A],n;if((n=i.exec(e))!==null)return{message:n[1].trimEnd(),level:o}}return{message:e.trimEnd()}}))}function ob(t,e,A){nb(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&&ib(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&&ib(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)]);ob(t,o,i)})}function nb(t,e,A){if(A.graphAttributes)for(let[i,o]of Object.entries(A.graphAttributes))YE(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))YE(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))YE(t,e,o,n=>{t.ccall("viz_set_default_edge_attribute","number",["number","string","number"],[e,i,n])})}function ib(t,e,A,i){for(let[o,n]of Object.entries(i))YE(t,e,n,g=>{t.ccall("viz_set_attribute","number",["number","string","number"],[A,o,g])})}function YE(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 Um=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 eb(this.module,"device")}get engines(){return eb(this.module,"layout")}renderFormats(e,A){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return tb(this.module,e,A,b({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=tb(this.module,e,[A],b({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,uA(b({},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,uA(b({},A),{format:"json"}));return JSON.parse(i)}};function H2(){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 xm(){return J2({wasm:H2()}).then(t=>new Um(t))}var ct=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 Un=class t{constructor(e,A){this.http=e;this.zone=A}apiServerDomain=ct.getApiServerBaseUrl();_currentApp=new $A("");currentApp=this._currentApp.asObservable();isLoading=new $A(!1);getApp(){return this.currentApp}setApp(e){this._currentApp.next(e)}getLoadingState(){return this.isLoading}run(e){let i={headers:{"Content-type":"application/json"}},o=this.apiServerDomain+"/run";return this.http.post(o,e,i)}runSse(e){let A=this.apiServerDomain+"/run_sse";return this.isLoading.next(!0),new BA(i=>{let o=this;fetch(A,{method:"POST",headers:{"Content-Type":"application/json",Accept:"text/event-stream"},body:JSON.stringify(e)}).then(n=>{let g=n.body?.getReader(),r=new TextDecoder("utf-8"),s=null,a=()=>{g?.read().then(({done:Q,value:c})=>{if(Q)return i.complete();r.decode(c,{stream:!0}).split(/\r?\n/).filter(p=>p.startsWith("data:")).forEach(p=>{let M=p.replace(/^data:\s*/,"");o.zone.run(()=>i.next(M))}),a()}).catch(Q=>{o.zone.run(()=>i.error(Q))})};a()}).catch(n=>{o.zone.run(()=>i.error(n))})})}listApps(){if(this.apiServerDomain!=null){let e=this.apiServerDomain+"/list-apps?relative_path=./";return this.http.get(e)}return new BA}static \u0275fac=function(A){return new(A||t)(Z(Qt),Z(tA))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})};function O2(t,e){}var xn=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 Jm=(()=>{class t extends _n{_elementRef=B(q);_focusTrapFactory=B(DE);_config;_interactivityChecker=B(BI);_ngZone=B(tA);_overlayRef=B(Is);_focusMonitor=B(Ut);_renderer=B(ae);_platform=B(ZA);_document=B(cA,{optional:!0});_portalOutlet;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_changeDetectorRef=B(UA);_injector=B(yA);_isDestroyed=!1;constructor(){super(),this._config=B(xn,{optional:!0})||new xn,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||Le(()=>{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=es(),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=es();return A===i||A.contains(i)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=es()))}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=O({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(i,o){if(i&1&&QA(Ei,7),i&2){let n;$(n=AA())&&(o._portalOutlet=n.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(i,o){i&2&&aA("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:[dA],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(i,o){i&1&&x(0,O2,0,0,"ng-template",0)},dependencies:[Ei],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2})}return t})(),fI=class{overlayRef;config;componentInstance;componentRef;containerInstance;disableClose;closed=new U;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&&!ze(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}},P2=new F("DialogScrollStrategy",{providedIn:"root",factory:()=>{let t=B(je);return()=>t.scrollStrategies.block()}}),Z2=new F("DialogData"),q2=new F("DefaultDialogConfig");var gb=(()=>{class t{_overlay=B(je);_injector=B(yA);_defaultOptions=B(q2,{optional:!0});_parentDialog=B(t,{optional:!0,skipSelf:!0});_overlayContainer=B(NE);_idGenerator=B(re);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new U;_afterOpenedAtThisLevel=new U;_ariaHiddenElements=new Map;_scrollStrategy=B(P2);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=Zi(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Me(void 0)));constructor(){}open(A,i){let o=this._defaultOptions||new xn;i=b(b({},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 fI(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(){Ym(this.openDialogs,A=>A.close())}getDialogById(A){return this.openDialogs.find(i=>i.id===A)}ngOnDestroy(){Ym(this._openDialogsAtThisLevel,A=>{A.config.closeOnDestroy===!1&&this._removeOpenDialog(A,!1)}),Ym(this._openDialogsAtThisLevel,A=>A.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(A){let i=new Kn({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:xn,useValue:o},{provide:fI,useValue:i},{provide:Is,useValue:A}],r;o.container?typeof o.container=="function"?r=o.container:(r=o.container.type,g.push(...o.container.providers(o))):r=Jm;let s=new _i(r,o.viewContainerRef,yA.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=b(b({},r),typeof n.templateContext=="function"?n.templateContext():n.templateContext)),o.attachTemplatePortal(new Qi(A,null,r,g))}else{let g=this._createInjector(n,i,o,this._injector),r=o.attachComponentPortal(new _i(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:Z2,useValue:A.data},{provide:fI,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(Se,null,{optional:!0}))&&r.push({provide:Se,useValue:{value:A.direction,change:iA()}}),yA.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 Ym(t,e){let A=t.length;for(;A--;)e(t[A])}function V2(t,e){}var HE=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},Hm="mdc-dialog--open",rb="mdc-dialog--opening",sb="mdc-dialog--closing",W2=150,z2=75,j2=(()=>{class t extends Jm{_animationMode=B(Ae,{optional:!0});_animationStateChanged=new z;_animationsEnabled=this._animationMode!=="NoopAnimations";_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?Ib(this._config.enterAnimationDuration)??W2:0;_exitAnimationDuration=this._animationsEnabled?Ib(this._config.exitAnimationDuration)??z2:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(ab,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(rb,Hm)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(Hm),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(Hm),this._animationsEnabled?(this._hostElement.style.setProperty(ab,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(sb)),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(rb,sb)}_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=jA(t)))(o||t)}})();static \u0275cmp=O({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(i,o){i&2&&(ft("id",o._config.id),aA("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),nA("_mat-animation-noopable",!o._animationsEnabled)("mat-mdc-dialog-container-with-actions",o._actionSectionCount>0))},features:[dA],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&&(d(0,"div",0)(1,"div",1),x(2,V2,0,0,"ng-template",2),h()())},dependencies:[Ei],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})(),ab="--mat-dialog-transition-duration";function Ib(t){return t==null?null:typeof t=="number"?t:t.endsWith("ms")?pt(t.substring(0,t.length-2)):t.endsWith("s")?pt(t.substring(0,t.length-1))*1e3:t==="0"?0:null}var JE=function(t){return t[t.OPEN=0]="OPEN",t[t.CLOSING=1]="CLOSING",t[t.CLOSED=2]="CLOSED",t}(JE||{}),rt=class{_ref;_containerInstance;componentInstance;componentRef;disableClose;id;_afterOpened=new U;_beforeClosed=new U;_result;_closeFallbackTimeout;_state=JE.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"),ue(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),i._animationStateChanged.pipe(kA(o=>o.state==="closed"),ue(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),e.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),ye(this.backdropClick(),this.keydownEvents().pipe(kA(o=>o.keyCode===27&&!this.disableClose&&!ze(o)))).subscribe(o=>{this.disableClose||(o.preventDefault(),Cb(this,o.type==="keydown"?"keyboard":"mouse"))})}close(e){this._result=e,this._containerInstance._animationStateChanged.pipe(kA(A=>A.state==="closing"),ue(1)).subscribe(A=>{this._beforeClosed.next(e),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),A.totalTime+100)}),this._state=JE.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=JE.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};function Cb(t,e,A){return t._closeInteractionType=e,t.close(A)}var oi=new F("MatMdcDialogData"),X2=new F("mat-mdc-dialog-default-options"),$2=new F("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let t=B(je);return()=>t.scrollStrategies.block()}});var di=(()=>{class t{_overlay=B(je);_defaultOptions=B(X2,{optional:!0});_scrollStrategy=B($2);_parentDialog=B(t,{optional:!0,skipSelf:!0});_idGenerator=B(re);_dialog=B(gb);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new U;_afterOpenedAtThisLevel=new U;dialogConfigClass=HE;_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=Zi(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Me(void 0)));constructor(){this._dialogRefConstructor=rt,this._dialogContainerType=j2,this._dialogDataToken=oi}open(A,i){let o;i=b(b({},this._defaultOptions||new HE),i),i.id=i.id||this._idGenerator.getId("mat-mdc-dialog-"),i.scrollStrategy=i.scrollStrategy||this._scrollStrategy();let n=this._dialog.open(A,uA(b({},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:xn,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})(),Yn=(()=>{class t{dialogRef=B(rt,{optional:!0});_elementRef=B(q);_dialog=B(di);ariaLabel;type="button";dialogResult;_matDialogClose;constructor(){}ngOnInit(){this.dialogRef||(this.dialogRef=Qb(this._elementRef,this._dialog.openDialogs))}ngOnChanges(A){let i=A._matDialogClose||A._matDialogCloseResult;i&&(this.dialogResult=i.currentValue)}_onButtonClick(A){Cb(this.dialogRef,A.screenX===0&&A.screenY===0?"keyboard":"mouse",this.dialogResult)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=T({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(i,o){i&1&&G("click",function(g){return o._onButtonClick(g)}),i&2&&aA("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:[TA]})}return t})(),Bb=(()=>{class t{_dialogRef=B(rt,{optional:!0});_elementRef=B(q);_dialog=B(di);constructor(){}ngOnInit(){this._dialogRef||(this._dialogRef=Qb(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=T({type:t})}return t})(),uo=(()=>{class t extends Bb{id=B(re).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=jA(t)))(o||t)}})();static \u0275dir=T({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(i,o){i&2&&ft("id",o.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],features:[dA]})}return t})(),mo=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=T({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],features:[g0([An])]})}return t})(),Do=(()=>{class t extends Bb{align;_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}static \u0275fac=(()=>{let A;return function(o){return(A||(A=jA(t)))(o||t)}})();static \u0275dir=T({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&&nA("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:[dA]})}return t})();function Qb(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}function AO(t,e){if(t&1&&P(0,"img",5),t&2){let A=y(2);L("src",A.displayContent,qt)}}function eO(t,e){t&1&&(d(0,"div",6),k(1," No image data provided. "),h())}function tO(t,e){if(t&1&&(d(0,"div",3),x(1,AO,1,1,"img",5)(2,eO,2,0,"div",6),h()),t&2){let A=y();D(),_(A.displayContent?1:-1),D(),_(A.displayContent?-1:2)}}function iO(t,e){if(t&1&&P(0,"div",4),t&2){let A=y();L("innerHTML",A.displayContent,Ba)}}var Gg=class t{constructor(e,A,i){this.dialogRef=e;this.data=A;this.sanitizer=i}displayContent=null;isSvgContent=!1;ngOnInit(){this.processImageData()}processImageData(){let e=this.data.imageData;if(!e){this.displayContent=null,this.isSvgContent=!1;return}if(e.trim().includes("<svg"))this.isSvgContent=!0,this.displayContent=this.sanitizer.bypassSecurityTrustHtml(e);else{let A=e.startsWith("data:image/")?"":"data:image/png;base64,";this.isSvgContent=!1,this.displayContent=this.sanitizer.bypassSecurityTrustUrl(A+e)}}close(){this.dialogRef.close()}static \u0275fac=function(A){return new(A||t)(V(rt),V(oi),V(Vo))};static \u0275cmp=O({type:t,selectors:[["app-view-image-dialog"]],standalone:!1,decls:6,vars:2,consts:[[1,"close-button",3,"click"],["xmlns","[http://www.w3.org/2000/svg](http://www.w3.org/2000/svg)","viewBox","0 0 24 24","fill","currentColor","width","24px","height","24px"],["d","M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"],[1,"image-wrapper"],[3,"innerHTML"],["alt","Viewed Image",3,"src"],[1,"no-image-placeholder"]],template:function(A,i){A&1&&(d(0,"div")(1,"button",0),G("click",function(){return i.close()}),At(),d(2,"svg",1),P(3,"path",2),h()(),x(4,tO,3,2,"div",3)(5,iO,1,1,"div",4),h()),A&2&&(D(4),_(i.isSvgContent?-1:4),D(),_(i.isSvgContent?5:-1))},styles:[".close-button[_ngcontent-%COMP%]{position:absolute;top:5px;right:10px;background:none;border:none;cursor:pointer;padding:8px;border-radius:50%;transition:background-color .2s ease;color:#666;display:flex;align-items:center;justify-content:center;z-index:10;margin-bottom:15px}.close-button[_ngcontent-%COMP%]:hover{background-color:#f0f0f0;color:#333}.close-button[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{width:24px;height:24px;fill:currentColor}.image-wrapper[_ngcontent-%COMP%]{flex-grow:1;display:flex;justify-content:center;align-items:center;overflow:auto}.image-wrapper[_ngcontent-%COMP%]   img[_ngcontent-%COMP%], .image-wrapper[_ngcontent-%COMP%]   .svg-container[_ngcontent-%COMP%]{max-width:90vw;max-height:90vh;object-fit:contain;border-radius:8px}.no-image-placeholder[_ngcontent-%COMP%]{color:#888;font-style:italic;text-align:center;padding:20px}@media (max-width: 1768px){.close-button[_ngcontent-%COMP%]{top:5px;right:5px;padding:5px}}"]})};var Jn=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}}downloadObjectAsJson(e,A="session.json"){let i=JSON.stringify(e,null,2),o=new Blob([i],{type:"application/json"}),n=URL.createObjectURL(o),g=document.createElement("a");g.href=n,g.download=A,document.body.appendChild(g),g.click(),document.body.removeChild(g),URL.revokeObjectURL(n)}static \u0275fac=function(A){return new(A||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})};var oO=["*"],TE;function nO(){if(TE===void 0&&(TE=null,typeof window<"u")){let t=window;t.trustedTypes!==void 0&&(TE=t.trustedTypes.createPolicy("angular#components",{createHTML:e=>e}))}return TE}function pI(t){return nO()?.createHTML(t)||t}function cb(t){return Error(`Unable to find icon with the name "${t}"`)}function gO(){return Error("Could not find HttpClient for use with Angular Material icons. Please add provideHttpClient() to your providers.")}function lb(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function db(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}var on=class{url;svgText;options;svgElement;constructor(e,A,i){this.url=e,this.svgText=A,this.options=i}},rO=(()=>{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 on(o,null,n))}addSvgIconResolver(A){return this._resolvers.push(A),this}addSvgIconLiteralInNamespace(A,i,o,n){let g=this._sanitizer.sanitize(et.HTML,o);if(!g)throw db(o);let r=pI(g);return this._addSvgIconConfig(A,i,new on("",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 on(i,null,o))}addSvgIconSetLiteralInNamespace(A,i,o){let n=this._sanitizer.sanitize(et.HTML,i);if(!n)throw db(i);let g=pI(n);return this._addSvgIconSetConfig(A,new on("",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(et.RESOURCE_URL,A);if(!i)throw lb(A);let o=this._cachedIconsByUrl.get(i);return o?iA(OE(o)):this._loadSvgIconFromConfig(new on(A,null)).pipe(Ce(n=>this._cachedIconsByUrl.set(i,n)),sA(n=>OE(n)))}getNamedSvgIcon(A,i=""){let o=hb(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):rn(cb(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(A){return A.svgText?iA(OE(this._svgElementFromConfig(A))):this._loadSvgIconFromConfig(A).pipe(sA(i=>OE(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(Oe(r=>{let a=`Loading icon set URL: ${this._sanitizer.sanitize(et.RESOURCE_URL,g.url)} failed: ${r.message}`;return this._errorHandler.handleError(new Error(a)),iA(null)})));return Js(n).pipe(sA(()=>{let g=this._extractIconWithNameFromAnySet(A,i);if(!g)throw cb(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(Ce(i=>A.svgText=i),sA(()=>this._svgElementFromConfig(A)))}_loadSvgIconSetFromConfig(A){return A.svgText?iA(null):this._fetchIcon(A).pipe(Ce(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(pI("<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(pI("<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 gO();if(i==null)throw Error(`Cannot fetch icon from URL "${i}".`);let g=this._sanitizer.sanitize(et.RESOURCE_URL,i);if(!g)throw lb(i);let r=this._inProgressUrlFetches.get(g);if(r)return r;let s=this._httpClient.get(g,{responseType:"text",withCredentials:n}).pipe(sA(a=>pI(a)),Vi(()=>this._inProgressUrlFetches.delete(g)),Ts());return this._inProgressUrlFetches.set(g,s),s}_addSvgIconConfig(A,i,o){return this._svgIconConfigs.set(hb(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 sO(n)?new on(n.url,null,n.options):new on(n,null)}}static \u0275fac=function(i){return new(i||t)(Z(Qt,8),Z(Vo),Z(cA,8),Z(vt))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function OE(t){return t.cloneNode(!0)}function hb(t,e){return t+":"+e}function sO(t){return!!(t.url&&t.options)}var aO=new F("MAT_ICON_DEFAULT_OPTIONS"),IO=new F("mat-icon-location",{providedIn:"root",factory:CO});function CO(){let t=B(cA),e=t?t.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}var ub=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],BO=ub.map(t=>`[${t}]`).join(", "),QO=/^url\(['"]?#(.*?)['"]?\)$/,cs=(()=>{class t{_elementRef=B(q);_iconRegistry=B(rO);_location=B(IO);_errorHandler=B(vt);_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=GA.EMPTY;constructor(){let A=B(new Ct("aria-hidden"),{optional:!0}),i=B(aO,{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(BO),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let n=0;n<i.length;n++)ub.forEach(g=>{let r=i[n],s=r.getAttribute(g),a=s?s.match(QO):null;if(a){let Q=o.get(r);Q||(Q=[],o.set(r,Q)),Q.push({name:g,value:a[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(ue(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=O({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(i,o){i&2&&(aA("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),Je(o.color?"mat-"+o.color:""),nA("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",eA],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],ngContentSelectors:oO,decls:1,vars:0,template:function(i,o){i&1&&(OA(),IA(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})(),mb=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=X({type:t});static \u0275inj=j({imports:[mA,mA]})}return t})();var EO=["audioPlayer"],Lg=class t{base64data="";audioPlayerRef;audioSrc="";constructor(){}ngOnChanges(e){e.base64data&&this.base64data&&this.setAudioSource(this.base64data)}setAudioSource(e){e.startsWith("data:")?this.audioSrc=e:this.audioSrc=`data:audio/mpeg;base64,${e}`,this.audioPlayerRef&&this.audioPlayerRef.nativeElement&&this.audioPlayerRef.nativeElement.load()}play(){this.audioPlayerRef&&this.audioPlayerRef.nativeElement&&this.audioPlayerRef.nativeElement.play()}pause(){this.audioPlayerRef&&this.audioPlayerRef.nativeElement&&this.audioPlayerRef.nativeElement.pause()}stop(){this.audioPlayerRef&&this.audioPlayerRef.nativeElement&&(this.audioPlayerRef.nativeElement.pause(),this.audioPlayerRef.nativeElement.currentTime=0)}static \u0275fac=function(A){return new(A||t)};static \u0275cmp=O({type:t,selectors:[["app-audio-player"]],viewQuery:function(A,i){if(A&1&&QA(EO,5),A&2){let o;$(o=AA())&&(i.audioPlayerRef=o.first)}},inputs:{base64data:"base64data"},standalone:!1,features:[TA],decls:3,vars:1,consts:[["audioPlayer",""],["controls","",3,"src"]],template:function(A,i){A&1&&(d(0,"div"),P(1,"audio",1,0),h()),A&2&&(D(),L("src",i.audioSrc,qt))},styles:[".audio-player-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;padding:15px;background-color:#f0f0f0;border-radius:8px;box-shadow:0 2px 5px #0000001a;margin:20px auto;max-width:350px}audio[_ngcontent-%COMP%]{outline:none;border-radius:5px;width:350px}.custom-controls[_ngcontent-%COMP%]{margin-top:10px;display:flex;gap:10px}.custom-controls[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{padding:8px 15px;border:none;border-radius:5px;background-color:#007bff;color:#fff;cursor:pointer;font-size:14px;transition:background-color .2s ease}.custom-controls[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:hover{background-color:#0056b3}"]})};function cO(t,e){t&1&&P(0,"hr",2)}function lO(t,e){if(t&1&&(d(0,"mat-option",7),k(1),h()),t&2){let A=e.$implicit;L("value",A),D(),KA(A.versionId)}}function dO(t,e){if(t&1){let A=rA();d(0,"div")(1,"img",9),G("click",function(){Y(A);let o=y().$index,n=y();return J(n.openViewImageDialog(n.selectedArtifacts[o].data))}),h()()}if(t&2){let A,i=y().$index,o=y();D(),L("src",(A=o.selectedArtifacts[i].data)!==null&&A!==void 0?A:"",qt)}}function hO(t,e){if(t&1&&(d(0,"div"),P(1,"app-audio-player",10),h()),t&2){let A=y().$index,i=y();D(),L("base64data",i.selectedArtifacts[A].data)}}function uO(t,e){if(t&1){let A=rA();d(0,"div",1),x(1,cO,1,0,"hr",2),d(2,"div",3)(3,"button",4),G("click",function(){let o=Y(A).$index,n=y();return J(n.openArtifact(n.selectedArtifacts[o].data,n.selectedArtifacts[o].mimeType))}),k(4),h()(),d(5,"div",3)(6,"span"),k(7," Version: "),h(),d(8,"div",5)(9,"mat-select",6),Wt("ngModelChange",function(o){let n=Y(A).$index,g=y();return ai(g.selectedArtifacts[n],o)||(g.selectedArtifacts[n]=o),J(o)}),G("selectionChange",function(o){let n=Y(A).$index,g=y();return J(g.onArtifactVersionChange(o,n))}),fe(10,lO,2,2,"mat-option",7,De),h()(),d(12,"button",8),G("click",function(){let o=Y(A).$index,n=y();return J(n.downloadArtifact(n.selectedArtifacts[o]))}),d(13,"mat-icon"),k(14,"file_download"),h(),k(15," Download "),h()(),d(16,"div"),x(17,dO,2,1,"div")(18,hO,2,1,"div"),h()()}if(t&2){let A,i=e.$implicit,o=e.$index,n=y();D(),_(o>0?1:-1),D(3),NA(" ",n.getArtifactName(i)," "),D(5),Vt("ngModel",n.selectedArtifacts[o]),D(),pe(n.getSortedArtifactsFromId(i)),D(7),_((A=n.selectedArtifacts[o].mediaType)===n.MediaType.IMAGE?17:A===n.MediaType.AUDIO?18:-1)}}var mO="default_artifact_name",yI=(o=>(o.IMAGE="image",o.AUDIO="audio",o.TEXT="text",o.UNSPECIFIED="unspecified",o))(yI||{});function PE(t){let e=t.toLowerCase();for(let A of Object.values(yI))if(A!=="unspecified"&&e.startsWith(A+"/"))return A;return"unspecified"}function DO(t){return t?t.startsWith("image/"):!1}function fO(t){return t?t.startsWith("audio/"):!1}function Om(t,e){try{if(!t)return;let A=t;if(t.startsWith("data:")&&t.includes(";base64,")&&(A=A.substring(A.indexOf(";base64,")+8)),!e||!A)return;let i=atob(A),o=new Array(i.length);for(let a=0;a<i.length;a++)o[a]=i.charCodeAt(a);let n=new Uint8Array(o),g=new Blob([n],{type:e}),r=URL.createObjectURL(g),s=window.open(r,"_blank");s?s.focus():alert("Pop-up blocked! Please allow pop-ups for this site to open the data in a new tab.")}catch{alert("Could not open the data. It might be invalid or too large. Check the browser console for errors.")}}var wI=class t{constructor(e,A){this.downloadService=e;this.dialog=A}artifacts=[];selectedArtifacts=[];isArtifactAudio=fO;isArtifactImage=DO;MediaType=yI;openBase64InNewTab=Om;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??mO}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}openViewImageDialog(e){if(!e||!e.startsWith("data:")||e.indexOf(";base64,")===-1)return;let A=this.dialog.open(Gg,{maxWidth:"90vw",maxHeight:"90vh",data:{imageData:e}})}openArtifact(e,A){if(this.isArtifactImage(A)){this.openViewImageDialog(e);return}this.openBase64InNewTab(e,A)}static \u0275fac=function(A){return new(A||t)(V(Jn),V(di))};static \u0275cmp=O({type:t,selectors:[["app-artifact-tab"]],inputs:{artifacts:"artifacts"},standalone:!1,features:[TA],decls:3,vars:0,consts:[[1,"artifact-container"],[1,"artifact-box"],[1,"white-separator"],[1,"artifact-metadata"],[1,"link-style-button",3,"click"],[1,"version-select-container"],[3,"ngModelChange","selectionChange","ngModel"],[3,"value"],["mat-flat-button","",1,"download-button",3,"click"],["alt","artifact.id",1,"generated-image",3,"click","src"],[3,"base64data"]],template:function(A,i){A&1&&(d(0,"div",0),fe(1,uO,19,4,"div",1,De),h()),A&2&&(D(),pe(i.getDistinctArtifactIds()))},dependencies:[Ii,Xt,cs,Et,Bs,Nn,Lg],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;flex-wrap:wrap;gap:5px}.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;cursor:pointer}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}.link-style-button[_ngcontent-%COMP%]{background:none;border:none;padding:0;font:inherit;color:#007bff!important;text-decoration:underline;cursor:pointer;outline:none}.link-style-button[_ngcontent-%COMP%]:hover{color:#0056b3;text-decoration:underline}.link-style-button[_ngcontent-%COMP%]:focus{outline:1px dotted #007bff}.link-style-button[_ngcontent-%COMP%]:active{color:#004085}.link-style-button[_ngcontent-%COMP%]:disabled{color:#6c757d;text-decoration:none;cursor:not-allowed}"]})};var yO=["input"],MO=["label"],RO=["*"],kO=new F("mat-checkbox-default-options",{providedIn:"root",factory:pb});function pb(){return{color:"accent",clickAction:"check-indeterminate",disabledInteractive:!1}}var lt=function(t){return t[t.Init=0]="Init",t[t.Checked=1]="Checked",t[t.Unchecked=2]="Unchecked",t[t.Indeterminate=3]="Indeterminate",t}(lt||{}),bO={provide:Wo,useExisting:ot(()=>ls),multi:!0},Pm=class{source;checked},fb=pb(),ls=(()=>{class t{_elementRef=B(q);_changeDetectorRef=B(UA);_ngZone=B(tA);_animationMode=B(Ae,{optional:!0});_options=B(kO,{optional:!0});focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(A){let i=new Pm;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 z;indeterminateChange=new z;value;disableRipple;_inputElement;_labelElement;tabIndex;color;disabledInteractive;_onTouched=()=>{};_currentAnimationClass="";_currentCheckState=lt.Init;_controlValueAccessorChangeFn=()=>{};_validatorChangeFn=()=>{};constructor(){B(ke).load(xt);let A=B(new Ct("tabindex"),{optional:!0});this._options=this._options||fb,this.color=this._options.color||fb.color,this.tabIndex=A==null?0:parseInt(A)||0,this.id=this._uniqueId=B(re).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(lt.Indeterminate):this._transitionCheckState(this.checked?lt.Checked:lt.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?lt.Checked:lt.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 lt.Init:if(i===lt.Checked)return this._animationClasses.uncheckedToChecked;if(i==lt.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case lt.Unchecked:return i===lt.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case lt.Checked:return i===lt.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case lt.Indeterminate:return i===lt.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=O({type:t,selectors:[["mat-checkbox"]],viewQuery:function(i,o){if(i&1&&(QA(yO,5),QA(MO,5)),i&2){let n;$(n=AA())&&(o._inputElement=n.first),$(n=AA())&&(o._labelElement=n.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:16,hostBindings:function(i,o){i&2&&(ft("id",o.id),aA("tabindex",null)("aria-label",null)("aria-labelledby",null),Je(o.color?"mat-"+o.color:"mat-accent"),nA("_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",eA],ariaControls:[0,"aria-controls","ariaControls"],ariaOwns:[0,"aria-owns","ariaOwns"],id:"id",required:[2,"required","required",eA],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[2,"disableRipple","disableRipple",eA],tabIndex:[2,"tabIndex","tabIndex",A=>A==null?void 0:de(A)],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",eA],checked:[2,"checked","checked",eA],disabled:[2,"disabled","disabled",eA],indeterminate:[2,"indeterminate","indeterminate",eA]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[FA([bO,{provide:Rn,useExisting:t,multi:!0}]),TA],ngContentSelectors:RO,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=rA();OA(),d(0,"div",3),G("click",function(r){return Y(n),J(o._preventBubblingFromLabel(r))}),d(1,"div",4,0)(3,"div",5),G("click",function(){return Y(n),J(o._onTouchTargetClick())}),h(),d(4,"input",6,1),G("blur",function(){return Y(n),J(o._onBlur())})("click",function(){return Y(n),J(o._onInputClick())})("change",function(r){return Y(n),J(o._onInteractionEvent(r))}),h(),P(6,"div",7),d(7,"div",8),At(),d(8,"svg",9),P(9,"path",10),h(),Bg(),P(10,"div",11),h(),P(11,"div",12),h(),d(12,"label",13,2),IA(14),h()()}if(i&2){let n=_e(2);L("labelPosition",o.labelPosition),D(4),nA("mdc-checkbox--selected",o.checked),L("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),aA("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),D(7),L("matRippleTrigger",n)("matRippleDisabled",o.disableRipple||o.disabled)("matRippleCentered",!0),D(),L("for",o.inputId)}},dependencies:[Eo,yE],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 wb=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=X({type:t});static \u0275inj=j({imports:[ls,mA,mA]})}return t})();var SO=[[["caption"]],[["colgroup"],["col"]],"*"],NO=["caption","colgroup, col","*"];function GO(t,e){t&1&&IA(0,2)}function LO(t,e){t&1&&(d(0,"thead",0),Ve(1,1),h(),d(2,"tbody",0),Ve(3,2)(4,3),h(),d(5,"tfoot",0),Ve(6,4),h())}function _O(t,e){t&1&&Ve(0,1)(1,2)(2,3)(3,4)}var Ki=new F("CDK_TABLE");var jE=(()=>{class t{template=B(ge);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=T({type:t,selectors:[["","cdkCellDef",""]]})}return t})(),XE=(()=>{class t{template=B(ge);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=T({type:t,selectors:[["","cdkHeaderCellDef",""]]})}return t})(),Rb=(()=>{class t{template=B(ge);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=T({type:t,selectors:[["","cdkFooterCellDef",""]]})}return t})(),ds=(()=>{class t{_table=B(Ki,{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=T({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(i,o,n){if(i&1&&(XA(n,jE,5),XA(n,XE,5),XA(n,Rb,5)),i&2){let g;$(g=AA())&&(o.cell=g.first),$(g=AA())&&(o.headerCell=g.first),$(g=AA())&&(o.footerCell=g.first)}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",eA],stickyEnd:[2,"stickyEnd","stickyEnd",eA]},features:[FA([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}])]})}return t})(),qE=class{constructor(e,A){A.nativeElement.classList.add(...e._columnCssClassName)}},kb=(()=>{class t extends qE{constructor(){super(B(ds),B(q))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=T({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[dA]})}return t})();var bb=(()=>{class t extends qE{constructor(){let A=B(ds),i=B(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=T({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[dA]})}return t})(),VE=class{tasks=[];endTasks=[]},WE=new F("_COALESCED_STYLE_SCHEDULER"),qm=(()=>{class t{_currentSchedule=null;_ngZone=B(tA);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 VE,this._ngZone.runOutsideAngular(()=>queueMicrotask(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){let A=this._currentSchedule;this._currentSchedule=new VE;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 Vm=(()=>{class t{template=B(ge);_differs=B(oo);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 MI?A.headerCell.template:this instanceof Wm?A.footerCell.template:A.cell.template}static \u0275fac=function(i){return new(i||t)};static \u0275dir=T({type:t,features:[TA]})}return t})(),MI=(()=>{class t extends Vm{_table=B(Ki,{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(B(ge),B(oo))}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=T({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",eA]},features:[dA,TA]})}return t})(),Wm=(()=>{class t extends Vm{_table=B(Ki,{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(B(ge),B(oo))}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=T({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",eA]},features:[dA,TA]})}return t})(),$E=(()=>{class t extends Vm{_table=B(Ki,{optional:!0});when;constructor(){super(B(ge),B(oo))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=T({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},features:[dA]})}return t})(),_g=(()=>{class t{_viewContainer=B(Qe);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=T({type:t,selectors:[["","cdkCellOutlet",""]]})}return t})(),zm=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=O({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&&Ve(0,0)},dependencies:[_g],encapsulation:2})}return t})();var jm=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=O({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&&Ve(0,0)},dependencies:[_g],encapsulation:2})}return t})(),Fb=(()=>{class t{templateRef=B(ge);_contentClassName="cdk-no-data-row";constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=T({type:t,selectors:[["ng-template","cdkNoDataRow",""]]})}return t})(),yb=["top","bottom","left","right"],Zm=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(K=>K)||i.some(K=>K))){this._positionListener?.stickyColumnsUpdated({sizes:[]}),this._positionListener?.stickyEndColumnsUpdated({sizes:[]});return}let g=e[0],r=g.children.length,s=this.direction==="rtl",a=s?"right":"left",Q=s?"left":"right",c=A.lastIndexOf(!0),f=i.indexOf(!0),m,p,M;n&&this._updateStickyColumnReplayQueue({rows:[...e],stickyStartStates:[...A],stickyEndStates:[...i]}),this._afterNextRender({earlyRead:()=>{m=this._getCellWidths(g,o),p=this._getStickyStartColumnPositions(m,A),M=this._getStickyEndColumnPositions(m,i)},write:()=>{for(let K of e)for(let W=0;W<r;W++){let DA=K.children[W];A[W]&&this._addStickyStyle(DA,a,p[W],W===c),i[W]&&this._addStickyStyle(DA,Q,M[W],W===f)}this._positionListener&&m.some(K=>!!K)&&(this._positionListener.stickyColumnsUpdated({sizes:c===-1?[]:m.slice(0,c+1).map((K,W)=>A[W]?K:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:f===-1?[]:m.slice(f).map((K,W)=>i[W+f]?K: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 a=0,Q=0;a<o.length;a++){if(!n[a])continue;g[a]=Q;let c=o[a];s[a]=this._isNativeHtmlTable?Array.from(c.children):[c];let f=this._retrieveElementSize(c).height;Q+=f,r[a]=f}},write:()=>{let a=n.lastIndexOf(!0);for(let Q=0;Q<o.length;Q++){if(!n[Q])continue;let c=g[Q],f=Q===a;for(let m of s[Q])this._addStickyStyle(m,i,c,f)}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]);yb.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 yb)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&&KO(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?Le(e,{injector:this._tableInjector}):this._coalescedStyleScheduler.schedule(()=>{e.earlyRead?.(),e.write()})}};function KO(t){return["cdk-cell","cdk-header-cell","cdk-footer-cell"].some(e=>t.classList.contains(e))}var zE=new F("CDK_SPL");var Xm=(()=>{class t{viewContainer=B(Qe);elementRef=B(q);constructor(){let A=B(Ki);A._rowOutlet=this,A._outletAssigned()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=T({type:t,selectors:[["","rowOutlet",""]]})}return t})(),$m=(()=>{class t{viewContainer=B(Qe);elementRef=B(q);constructor(){let A=B(Ki);A._headerRowOutlet=this,A._outletAssigned()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=T({type:t,selectors:[["","headerRowOutlet",""]]})}return t})(),AD=(()=>{class t{viewContainer=B(Qe);elementRef=B(q);constructor(){let A=B(Ki);A._footerRowOutlet=this,A._outletAssigned()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=T({type:t,selectors:[["","footerRowOutlet",""]]})}return t})(),eD=(()=>{class t{viewContainer=B(Qe);elementRef=B(q);constructor(){let A=B(Ki);A._noDataRowOutlet=this,A._outletAssigned()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=T({type:t,selectors:[["","noDataRowOutlet",""]]})}return t})();var tD=(()=>{class t{_differs=B(oo);_changeDetectorRef=B(UA);_elementRef=B(q);_dir=B(Se,{optional:!0});_platform=B(ZA);_viewRepeater=B(QI);_coalescedStyleScheduler=B(WE);_viewportRuler=B(Bi);_stickyPositioningListener=B(zE,{optional:!0,skipSelf:!0});_document=B(cA);_data;_onDestroy=new U;_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 z;viewChange=new $A({start:0,end:Number.MAX_VALUE});_rowOutlet;_headerRowOutlet;_footerRowOutlet;_noDataRowOutlet;_contentColumnDefs;_contentRowDefs;_contentHeaderRowDefs;_contentFooterRowDefs;_noDataRow;_injector=B(yA);constructor(){B(new Ct("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(pA(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(),FE(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===ss.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=Mb(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=Mb(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],a=this._cachedRenderRowsMap.get(s.data);a.has(s.rowDef)?a.get(s.rowDef).push(s):a.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(),ZE(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(i=>{this._columnDefsByName.has(i.name),this._columnDefsByName.set(i.name,i)})}_cacheRowDefs(){this._headerRowDefs=ZE(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=ZE(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=ZE(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=[],FE(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;FE(this.dataSource)?A=this.dataSource.connect(this):sn(this.dataSource)?A=this.dataSource:Array.isArray(this.dataSource)&&(A=iA(this.dataSource)),this._renderChangeSubscription=A.pipe(pA(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))_g.mostRecentCellOutlet&&_g.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 Zm(this._isNativeHtmlTable,this.stickyCssClass,A,this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener,this._injector),(this._dir?this._dir.change:iA()).pipe(pA(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=O({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(i,o,n){if(i&1&&(XA(n,Fb,5),XA(n,ds,5),XA(n,$E,5),XA(n,MI,5),XA(n,Wm,5)),i&2){let g;$(g=AA())&&(o._noDataRow=g.first),$(g=AA())&&(o._contentColumnDefs=g),$(g=AA())&&(o._contentRowDefs=g),$(g=AA())&&(o._contentHeaderRowDefs=g),$(g=AA())&&(o._contentFooterRowDefs=g)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(i,o){i&2&&nA("cdk-table-fixed-layout",o.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:[2,"multiTemplateDataRows","multiTemplateDataRows",eA],fixedLayout:[2,"fixedLayout","fixedLayout",eA]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[FA([{provide:Ki,useExisting:t},{provide:QI,useClass:as},{provide:WE,useClass:qm},{provide:zE,useValue:null}])],ngContentSelectors:NO,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(i,o){i&1&&(OA(SO),IA(0),IA(1,1),x(2,GO,1,0)(3,LO,7,0)(4,_O,4,0)),i&2&&(D(2),_(o._isServer?2:-1),D(),_(o._isNativeHtmlTable?3:4))},dependencies:[$m,Xm,eD,AD],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2})}return t})();function ZE(t,e){return t.concat(Array.from(e))}function Mb(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 vb=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=X({type:t});static \u0275inj=j({imports:[EI]})}return t})();var UO=[[["caption"]],[["colgroup"],["col"]],"*"],xO=["caption","colgroup, col","*"];function YO(t,e){t&1&&IA(0,2)}function JO(t,e){t&1&&(d(0,"thead",0),Ve(1,1),h(),d(2,"tbody",2),Ve(3,3)(4,4),h(),d(5,"tfoot",0),Ve(6,5),h())}function HO(t,e){t&1&&Ve(0,1)(1,3)(2,4)(3,5)}var Sb=(()=>{class t extends tD{stickyCssClass="mat-mdc-table-sticky";needsPositionStickyOnElement=!1;static \u0275fac=(()=>{let A;return function(o){return(A||(A=jA(t)))(o||t)}})();static \u0275cmp=O({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&&nA("mdc-table-fixed-layout",o.fixedLayout)},exportAs:["matTable"],features:[FA([{provide:tD,useExisting:t},{provide:Ki,useExisting:t},{provide:WE,useClass:qm},{provide:QI,useClass:as},{provide:zE,useValue:null}]),dA],ngContentSelectors:xO,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(i,o){i&1&&(OA(UO),IA(0),IA(1,1),x(2,YO,1,0)(3,JO,7,0)(4,HO,4,0)),i&2&&(D(2),_(o._isServer?2:-1),D(),_(o._isNativeHtmlTable?3:4))},dependencies:[$m,Xm,eD,AD],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})(),Nb=(()=>{class t extends jE{static \u0275fac=(()=>{let A;return function(o){return(A||(A=jA(t)))(o||t)}})();static \u0275dir=T({type:t,selectors:[["","matCellDef",""]],features:[FA([{provide:jE,useExisting:t}]),dA]})}return t})(),Gb=(()=>{class t extends XE{static \u0275fac=(()=>{let A;return function(o){return(A||(A=jA(t)))(o||t)}})();static \u0275dir=T({type:t,selectors:[["","matHeaderCellDef",""]],features:[FA([{provide:XE,useExisting:t}]),dA]})}return t})();var Lb=(()=>{class t extends ds{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=jA(t)))(o||t)}})();static \u0275dir=T({type:t,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},features:[FA([{provide:ds,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),dA]})}return t})(),_b=(()=>{class t extends kb{static \u0275fac=(()=>{let A;return function(o){return(A||(A=jA(t)))(o||t)}})();static \u0275dir=T({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[dA]})}return t})();var Kb=(()=>{class t extends bb{static \u0275fac=(()=>{let A;return function(o){return(A||(A=jA(t)))(o||t)}})();static \u0275dir=T({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[dA]})}return t})();var Ub=(()=>{class t extends MI{static \u0275fac=(()=>{let A;return function(o){return(A||(A=jA(t)))(o||t)}})();static \u0275dir=T({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",eA]},features:[FA([{provide:MI,useExisting:t}]),dA]})}return t})();var xb=(()=>{class t extends $E{static \u0275fac=(()=>{let A;return function(o){return(A||(A=jA(t)))(o||t)}})();static \u0275dir=T({type:t,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},features:[FA([{provide:$E,useExisting:t}]),dA]})}return t})(),Yb=(()=>{class t extends zm{static \u0275fac=(()=>{let A;return function(o){return(A||(A=jA(t)))(o||t)}})();static \u0275cmp=O({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:[FA([{provide:zm,useExisting:t}]),dA],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,o){i&1&&Ve(0,0)},dependencies:[_g],encapsulation:2})}return t})();var Jb=(()=>{class t extends jm{static \u0275fac=(()=>{let A;return function(o){return(A||(A=jA(t)))(o||t)}})();static \u0275cmp=O({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[FA([{provide:jm,useExisting:t}]),dA],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,o){i&1&&Ve(0,0)},dependencies:[_g],encapsulation:2})}return t})();var Hb=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=X({type:t});static \u0275inj=j({imports:[mA,vb,mA]})}return t})(),TO=9007199254740991,RI=class extends bE{_data;_renderData=new $A([]);_filter=new $A("");_internalPageChanges=new U;_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(ju(i)){let o=Number(i);return o<TO?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),a=typeof r,Q=typeof s;a!==Q&&(a==="number"&&(r+=""),Q==="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 $A(e),this._updateChangeSubscription()}_updateChangeSubscription(){let e=this._sort?ye(this._sort.sortChange,this._sort.initialized):iA(null),A=this._paginator?ye(this._paginator.page,this._internalPageChanges,this._paginator.initialized):iA(null),i=this._data,o=mt([i,this._filter]).pipe(sA(([r])=>this._filterData(r))),n=mt([o,e]).pipe(sA(([r])=>this._orderData(r))),g=mt([n,A]).pipe(sA(([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 PO="view_eval_case",Ac=class t{route=B(_t);constructor(){}isViewEvalCaseEnabled(){return this.route.snapshot.queryParams[PO]==="true"}static \u0275fac=function(A){return new(A||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})};var st=[];for(let t=0;t<256;++t)st.push((t+256).toString(16).slice(1));function Tb(t,e=0){return(st[t[e+0]]+st[t[e+1]]+st[t[e+2]]+st[t[e+3]]+"-"+st[t[e+4]]+st[t[e+5]]+"-"+st[t[e+6]]+st[t[e+7]]+"-"+st[t[e+8]]+st[t[e+9]]+"-"+st[t[e+10]]+st[t[e+11]]+st[t[e+12]]+st[t[e+13]]+st[t[e+14]]+st[t[e+15]]).toLowerCase()}var iD,ZO=new Uint8Array(16);function oD(){if(!iD){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");iD=crypto.getRandomValues.bind(crypto)}return iD(ZO)}var qO=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),nD={randomUUID:qO};function VO(t,e,A){if(nD.randomUUID&&!e&&!t)return nD.randomUUID();t=t||{};let i=t.random??t.rng?.()??oD();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 Tb(i)}var kI=VO;var po=class t{constructor(e){this.http=e}apiServerDomain=ct.getApiServerBaseUrl();getEvalSets(e){if(this.apiServerDomain!=null){let A=this.apiServerDomain+`/apps/${e}/eval_sets`;return this.http.get(A)}return new BA}createNewEvalSet(e,A){if(this.apiServerDomain!=null){let i=this.apiServerDomain+`/apps/${e}/eval_sets/${A}`;return this.http.post(i,{})}return new BA}listEvalCases(e,A){if(this.apiServerDomain!=null){let i=this.apiServerDomain+`/apps/${e}/eval_sets/${A}/evals`;return this.http.get(i,{})}return new BA}addCurrentSession(e,A,i,o,n){let g=this.apiServerDomain+`/apps/${e}/eval_sets/${A}/add_session`;return this.http.post(g,{evalId:i,sessionId:o,userId:n})}runEval(e,A,i,o){let n=this.apiServerDomain+`/apps/${e}/eval_sets/${A}/run_eval`;return this.http.post(n,{evalIds:i,evalMetrics:o})}listEvalResults(e){if(this.apiServerDomain!=null){let A=this.apiServerDomain+`/apps/${e}/eval_results`;return this.http.get(A,{})}return new BA}getEvalResult(e,A){if(this.apiServerDomain!=null){let i=this.apiServerDomain+`/apps/${e}/eval_results/${A}`;return this.http.get(i,{})}return new BA}static \u0275fac=function(A){return new(A||t)(Z(Qt))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})};var Pb=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=O({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})(),Ob=Qo({passive:!0}),Zb=(()=>{class t{_platform=B(ZA);_ngZone=B(tA);_styleLoader=B(ke);_monitoredElements=new Map;constructor(){}monitor(A){if(!this._platform.isBrowser)return xe;this._styleLoader.load(Pb);let i=Kt(A),o=this._monitoredElements.get(i);if(o)return o.subject;let n=new U,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,Ob),i.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(i,{subject:n,unlisten:()=>{i.removeEventListener("animationstart",r,Ob)}}),n}stopMonitoring(A){let i=Kt(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 qb=(()=>{class t{_elementRef=B(q);_platform=B(ZA);_ngZone=B(tA);_renderer=B(ae);_resizeEvents=new U;_previousValue;_initialHeight;_destroyed=new U;_listenerCleanups;_minRows;_maxRows;_enabled=!0;_previousMinRows=-1;_textareaElement;get minRows(){return this._minRows}set minRows(A){this._minRows=pt(A),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(A){this._maxRows=pt(A),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(A){this._enabled!==A&&((this._enabled=A)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(A){this._cachedPlaceholderHeight=void 0,A?this._textareaElement.setAttribute("placeholder",A):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_cachedLineHeight;_cachedPlaceholderHeight;_document=B(cA,{optional:!0});_hasFocus;_isViewInited=!1;constructor(){B(ke).load(Pb),this._textareaElement=this._elementRef.nativeElement}_setMinHeight(){let A=this.minRows&&this._cachedLineHeight?`${this.minRows*this._cachedLineHeight}px`:null;A&&(this._textareaElement.style.minHeight=A)}_setMaxHeight(){let A=this.maxRows&&this._cachedLineHeight?`${this.maxRows*this._cachedLineHeight}px`:null;A&&(this._textareaElement.style.maxHeight=A)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{this._listenerCleanups=[this._renderer.listen("window","resize",()=>this._resizeEvents.next()),this._renderer.listen(this._textareaElement,"focus",this._handleFocusEvent),this._renderer.listen(this._textareaElement,"blur",this._handleFocusEvent)],this._resizeEvents.pipe(or(16)).subscribe(()=>{this._cachedLineHeight=this._cachedPlaceholderHeight=void 0,this.resizeToFitContent(!0)})}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._listenerCleanups?.forEach(A=>A()),this._resizeEvents.complete(),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let A=this._textareaElement.cloneNode(!1),i=A.style;A.rows=1,i.position="absolute",i.visibility="hidden",i.border="none",i.padding="0",i.height="",i.minHeight="",i.maxHeight="",i.top=i.bottom=i.left=i.right="auto",i.overflow="hidden",this._textareaElement.parentNode.appendChild(A),this._cachedLineHeight=A.clientHeight,A.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){let A=this._textareaElement,i=A.style.marginBottom||"",o=this._platform.FIREFOX,n=o&&this._hasFocus,g=o?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";n&&(A.style.marginBottom=`${A.clientHeight}px`),A.classList.add(g);let r=A.scrollHeight-4;return A.classList.remove(g),n&&(A.style.marginBottom=i),r}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||this._cachedPlaceholderHeight!=null)return;if(!this.placeholder){this._cachedPlaceholderHeight=0;return}let A=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=A}_handleFocusEvent=A=>{this._hasFocus=A.type==="focus"};ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(A=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;let i=this._elementRef.nativeElement,o=i.value;if(!A&&this._minRows===this._previousMinRows&&o===this._previousValue)return;let n=this._measureScrollHeight(),g=Math.max(n,this._cachedPlaceholderHeight||0);i.style.height=`${g}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(i)):setTimeout(()=>this._scrollToCaretPosition(i))}),this._previousValue=o,this._previousMinRows=this._minRows}reset(){this._initialHeight!==void 0&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_scrollToCaretPosition(A){let{selectionStart:i,selectionEnd:o}=A;!this._destroyed.isStopped&&this._hasFocus&&A.setSelectionRange(i,o)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=T({type:t,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(i,o){i&1&&G("input",function(){return o._noopInputHandler()})},inputs:{minRows:[0,"cdkAutosizeMinRows","minRows"],maxRows:[0,"cdkAutosizeMaxRows","maxRows"],enabled:[2,"cdkTextareaAutosize","enabled",eA],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]})}return t})(),Vb=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=X({type:t});static \u0275inj=j({})}return t})();var zO=new F("MAT_INPUT_VALUE_ACCESSOR"),jO=["button","checkbox","file","hidden","image","radio","range","reset","submit"],XO=new F("MAT_INPUT_CONFIG"),Hn=(()=>{class t{_elementRef=B(q);_platform=B(ZA);ngControl=B(Ni,{optional:!0,self:!0});_autofillMonitor=B(Zb);_ngZone=B(tA);_formField=B(uI,{optional:!0});_renderer=B(ae);_uid=B(re).getId("mat-input-");_previousNativeValue;_inputValueAccessor;_signalBasedValueAccessor;_previousPlaceholder;_errorStateTracker;_config=B(XO,{optional:!0});_cleanupIosKeyup;_cleanupWebkitWheel;_formFieldDescribedBy;_isServer;_isNativeSelect;_isTextarea;_isInFormField;focused=!1;stateChanges=new U;controlType="mat-input";autofilled=!1;get disabled(){return this._disabled}set disabled(A){this._disabled=be(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(Kr.required)??!1}set required(A){this._required=be(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=be(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=B(Ha,{optional:!0}),i=B(Ta,{optional:!0}),o=B(gs),n=B(zO,{optional:!0,self:!0}),g=this._elementRef.nativeElement,r=g.nodeName.toLowerCase();n?hn(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 Rg(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&&ua(()=>{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(){jO.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=T({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&&G("focus",function(){return o._focusChanged(!0)})("blur",function(){return o._focusChanged(!1)})("input",function(){return o._onInput()}),i&2&&(ft("id",o.id)("disabled",o.disabled&&!o.disabledInteractive)("required",o.required),aA("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),nA("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",eA]},exportAs:["matInput"],features:[FA([{provide:hI,useExisting:t}]),TA]})}return t})(),ec=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=X({type:t});static \u0275inj=j({imports:[mA,tn,tn,Vb,mA]})}return t})();var bI=class t{constructor(e,A,i){this.evalService=e;this.data=A;this.dialogRef=i}newCaseId="case"+kI().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=>{this.dialogRef.close(!0)})}static \u0275fac=function(A){return new(A||t)(V(po),V(oi),V(rt))};static \u0275cmp=O({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&&(d(0,"h2",0),k(1,"Add Current Session To Eval Set"),h(),d(2,"mat-dialog-content"),k(3,` Please enter the eval case name
`),h(),d(4,"mat-form-field",1)(5,"input",2),Wt("ngModelChange",function(n){return ai(i.newCaseId,n)||(i.newCaseId=n),n}),h()(),d(6,"mat-dialog-actions",3)(7,"button",4),k(8,"Cancel"),h(),d(9,"button",5),G("click",function(){return i.createNewEvalCase()}),k(10,"Create"),h()()),A&2&&(D(5),Vt("ngModel",i.newCaseId))},dependencies:[ro,Ii,Xt,ho,Hn,Et,uo,mo,Do,Yn],encapsulation:2})};var FI=class t{constructor(e,A,i){this.evalService=e;this.data=A;this.dialogRef=i}newSetId="evalset"+kI().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)(V(po),V(oi),V(rt))};static \u0275cmp=O({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&&(d(0,"h2",0),k(1,"Create New Eval Set"),h(),d(2,"mat-dialog-content"),k(3,` Please enter the eval set name
`),h(),d(4,"mat-form-field",1)(5,"input",2),Wt("ngModelChange",function(n){return ai(i.newSetId,n)||(i.newSetId=n),n}),h()(),d(6,"mat-dialog-actions",3)(7,"button",4),k(8,"Cancel"),h(),d(9,"button",5),G("click",function(){return i.createNewEvalSet()}),k(10,"Create"),h()()),A&2&&(D(5),Vt("ngModel",i.newSetId))},dependencies:[ro,Ii,Xt,ho,Hn,Et,uo,mo,Do,Yn],encapsulation:2})};var wo=class t{constructor(e){this.http=e}apiServerDomain=ct.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 BA}listSessions(e,A){if(this.apiServerDomain!=null){let i=this.apiServerDomain+`/apps/${A}/users/${e}/sessions`;return this.http.get(i)}return new BA}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)(Z(Qt))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})};var $O=["determinateSpinner"];function A8(t,e){if(t&1&&(At(),d(0,"svg",11),P(1,"circle",12),h()),t&2){let A=y();aA("viewBox",A._viewBox()),D(),qe("stroke-dasharray",A._strokeCircumference(),"px")("stroke-dashoffset",A._strokeCircumference()/2,"px")("stroke-width",A._circleStrokeWidth(),"%"),aA("r",A._circleRadius())}}var e8=new F("mat-progress-spinner-default-options",{providedIn:"root",factory:t8});function t8(){return{diameter:Wb}}var Wb=100,i8=10,zb=(()=>{class t{_elementRef=B(q);_noopAnimations;get color(){return this._color||this._defaultColor}set color(A){this._color=A}_color;_defaultColor="primary";_determinateCircle;constructor(){let A=B(Ae,{optional:!0}),i=B(e8);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=Wb;get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(A){this._strokeWidth=A||0}_strokeWidth;_circleRadius(){return(this.diameter-i8)/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=O({type:t,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(i,o){if(i&1&&QA($O,5),i&2){let n;$(n=AA())&&(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&&(aA("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",o.mode==="determinate"?o.value:null)("mode",o.mode),Je("mat-"+o.color),qe("width",o.diameter,"px")("height",o.diameter,"px")("--mdc-circular-progress-size",o.diameter+"px")("--mdc-circular-progress-active-indicator-width",o.diameter+"px"),nA("_mat-animation-noopable",o._noopAnimations)("mdc-circular-progress--indeterminate",o.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[2,"value","value",de],diameter:[2,"diameter","diameter",de],strokeWidth:[2,"strokeWidth","strokeWidth",de]},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&&(x(0,A8,2,8,"ng-template",null,0,ha),d(2,"div",2,1),At(),d(4,"svg",3),P(5,"circle",4),h()(),Bg(),d(6,"div",5)(7,"div",6)(8,"div",7),Ve(9,8),h(),d(10,"div",9),Ve(11,8),h(),d(12,"div",10),Ve(13,8),h()()()),i&2){let n=_e(1);D(4),aA("viewBox",o._viewBox()),D(),qe("stroke-dasharray",o._strokeCircumference(),"px")("stroke-dashoffset",o._strokeDashOffset(),"px")("stroke-width",o._circleStrokeWidth(),"%"),aA("r",o._circleRadius()),D(4),L("ngTemplateOutlet",n),D(2),L("ngTemplateOutlet",n),D(2),L("ngTemplateOutlet",n)}},dependencies:[pa],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 jb=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=X({type:t});static \u0275inj=j({imports:[mA]})}return t})();function n8(t,e){if(t&1){let A=rA();d(0,"div",1)(1,"div"),k(2,"All eval sets"),h(),d(3,"mat-icon",2),G("click",function(){Y(A);let o=y();return J(o.openNewEvalSetDialog())}),k(4,"add"),h()()}}function g8(t,e){if(t&1){let A=rA();d(0,"div")(1,"div",3)(2,"div",4),k(3," Create New Evaluation Set "),h(),d(4,"div",5),k(5," An evaluation set is a curated collection of evaluation cases, where each case includes input-output examples for assessing agent performance. "),h(),d(6,"div",6),G("click",function(){Y(A);let o=y();return J(o.openNewEvalSetDialog())}),k(7," Create Evaluation Set "),h()()()}}function r8(t,e){if(t&1){let A=rA();d(0,"div",8),G("click",function(){let o=Y(A).$implicit,n=y(2);return J(n.selectEvalSet(o))}),d(1,"div",9)(2,"span",10),k(3,"folder"),h(),d(4,"div",11),k(5),h()(),d(6,"div")(7,"mat-icon",12),k(8,"chevron_right"),h()()()}if(t&2){let A=e.$implicit;D(5),KA(A)}}function s8(t,e){if(t&1&&(d(0,"div"),fe(1,r8,9,1,"div",7,De),h()),t&2){let A=y();D(),pe(A.evalsets)}}function a8(t,e){if(t&1){let A=rA();d(0,"th",28)(1,"mat-checkbox",29),G("change",function(o){Y(A);let n=y(4);return J(o?n.toggleAllRows():null)}),h()()}if(t&2){let A=y(4);D(),L("checked",A.selection.hasValue()&&A.isAllSelected())("indeterminate",A.selection.hasValue()&&!A.isAllSelected())}}function I8(t,e){if(t&1){let A=rA();d(0,"td",30)(1,"mat-checkbox",31),G("click",function(o){return Y(A),J(o.stopPropagation())})("change",function(o){let n=Y(A).$implicit,g=y(4);return J(o?g.selection.toggle(n):null)}),h()()}if(t&2){let A=e.$implicit,i=y(4);D(),L("checked",i.selection.isSelected(A))}}function C8(t,e){t&1&&(d(0,"th",28),k(1," Case ID "),h())}function B8(t,e){if(t&1&&(d(0,"td",30),k(1),h()),t&2){let A=e.$implicit;D(),NA(" ",A," ")}}function Q8(t,e){t&1&&(d(0,"th",28),k(1," Result "),h())}function E8(t,e){if(t&1){let A=rA();d(0,"button",33),G("click",function(){Y(A);let o=y().$implicit,n=y(4);return J(n.getSession(o))}),d(1,"span",34),k(2),h(),d(3,"div",35),k(4),h()()}if(t&2){let A=y().$implicit,i=y(4);L("ngClass",i.getEvalResultForCase(A)==1?"result-btn pass":"result-btn fail"),D(2),NA(" ",i.getEvalResultForCase(A)==1?"check":"close"," "),D(2),NA("",i.getEvalResultForCase(A)==1?"Pass":"Fail"," ")}}function c8(t,e){if(t&1&&(d(0,"td",30),x(1,E8,5,3,"button",32),h()),t&2){let A=e.$implicit,i=y(4);D(),_(i.getEvalResultForCase(A)?1:-1)}}function l8(t,e){t&1&&P(0,"tr",36)}function d8(t,e){t&1&&P(0,"tr",37)}function h8(t,e){if(t&1){let A=rA();d(0,"div")(1,"div",16)(2,"button",17),G("click",function(){Y(A);let o=y(3);return J(o.runEval())}),k(3,"Run Evaluation"),h(),d(4,"mat-icon",18),G("click",function(){Y(A);let o=y(3);return J(o.toggleEvalHistoryButton())}),k(5,"history"),h()(),d(6,"div",19)(7,"table",20),Dn(8,21),x(9,a8,2,2,"th",22)(10,I8,2,1,"td",23),fn(),Dn(11,24),x(12,C8,2,0,"th",22)(13,B8,2,1,"td",23),fn(),Dn(14,25),x(15,Q8,2,0,"th",22)(16,c8,2,1,"td",23),fn(),x(17,l8,1,0,"tr",26)(18,d8,1,0,"tr",27),h()()()}if(t&2){let A=y(3);D(7),L("dataSource",A.dataSource),D(10),L("matHeaderRowDef",A.displayedColumns),D(),L("matRowDefColumns",A.displayedColumns)}}function u8(t,e){if(t&1&&(d(0,"div")(1,"span",47),k(2,"|"),h(),d(3,"span",48),k(4),h()()),t&2){let A=y().$implicit,i=y(4);D(4),NA("",i.getFailCountForCurrentResult(A.evaluationResults.evaluationResults)," Failed")}}function m8(t,e){if(t&1){let A=rA();d(0,"div")(1,"div",49)(2,"span"),k(3),h(),d(4,"button",50),G("click",function(){let o=Y(A).$implicit,n=y(6);return J(n.getHistorySession(o))}),d(5,"span",34),k(6),h(),d(7,"div",35),k(8),h()()()()}if(t&2){let A=e.$implicit;D(3),NA(" ",A.evalId," "),D(),L("ngClass",A.finalEvalStatus==1?"result-btn pass":"result-btn fail"),D(2),NA(" ",A.finalEvalStatus==1?"check":"close"," "),D(2),NA("",A.finalEvalStatus==1?"PASS":"FAIL"," ")}}function D8(t,e){if(t&1&&(d(0,"div",46),fe(1,m8,9,4,"div",null,De),h()),t&2){let A=y().$implicit,i=y(4);D(),pe(i.generateHistoryEvaluationDatasource(A.timestamp))}}function f8(t,e){if(t&1){let A=rA();d(0,"div")(1,"div",38)(2,"div",39)(3,"div",40)(4,"div",41),k(5),h(),d(6,"div",42)(7,"span",43),k(8),h(),x(9,u8,5,1,"div"),h()(),d(10,"div",44)(11,"mat-icon",45),G("click",function(){let o=Y(A).$implicit,n=y(4);return J(n.toggleHistoryStatusCard(o.timestamp))}),k(12),h()()(),x(13,D8,3,0,"div",46),h()()}if(t&2){let A=e.$implicit,i=y(4);D(5),KA(i.formatTimestamp(A.timestamp)),D(3),NA("",i.getPassCountForCurrentResult(A.evaluationResults.evaluationResults)," Passed"),D(),_(i.getFailCountForCurrentResult(A.evaluationResults.evaluationResults)>0?9:-1),D(3),KA(i.getEvaluationStatusCardActionButtonIcon(A.timestamp)),D(),_(i.isEvaluationStatusCardToggled(A.timestamp)?13:-1)}}function p8(t,e){if(t&1&&(d(0,"div"),fe(1,f8,14,5,"div",null,De),h()),t&2){let A=y(3);D(),pe(A.getEvalHistoryOfCurrentSetSorted())}}function w8(t,e){if(t&1&&(d(0,"div"),x(1,h8,19,3,"div")(2,p8,3,0,"div"),h()),t&2){let A=y(2);D(),_(A.showEvalHistory()?-1:1),D(),_(A.showEvalHistory()?2:-1)}}function y8(t,e){if(t&1){let A=rA();d(0,"button",51),G("click",function(){Y(A);let o=y(2);return J(o.openNewEvalCaseDialog())}),d(1,"div",52)(2,"mat-icon"),k(3,"add"),h(),d(4,"div",53),k(5),h()()()}if(t&2){let A=y(2);D(5),NA(" Add current session to ",A.selectedEvalSet," ")}}function M8(t,e){t&1&&(d(0,"div"),P(1,"mat-spinner",54),h()),t&2&&(D(),L("diameter",28)("strokeWidth",3))}function R8(t,e){if(t&1){let A=rA();d(0,"div")(1,"div",9)(2,"mat-icon",13),G("click",function(){Y(A);let o=y();return J(o.clearSelectedEvalSet())}),k(3,"chevron_left"),h(),d(4,"div",14),G("click",function(){Y(A);let o=y();return J(o.clearSelectedEvalSet())}),k(5),h()(),x(6,w8,3,2,"div")(7,y8,6,1,"button",15)(8,M8,2,2,"div"),h()}if(t&2){let A=y();D(5),NA(" ",A.selectedEvalSet," "),D(),_(A.evalCases.length>0&&!A.evalRunning()?6:-1),D(),_(!A.evalRunning()&&!A.showEvalHistory()?7:-1),D(),_(A.evalRunning()?8:-1)}}var Kg=class t{constructor(e,A){this.evalService=e;this.sessionService=A}checkboxes;appName="";userId="";sessionId="";sessionSelected=new z;shouldShowTab=new z;evalNotInstalledMsg=new z;changeDetectorRef=B(UA);flagService=B(Ac);isViewEvalCaseEnabled=this.flagService.isViewEvalCaseEnabled();displayedColumns=["select","evalId","finalEvalStatus"];evalsets=[];selectedEvalSet="";evalCases=[];dataSource=new RI(this.evalCases);selection=new Gn(!0,[]);showEvalHistory=gt(!1);evalRunning=gt(!1);evalMetrics=[{metricName:"tool_trajectory_avg_score",threshold:1}];evalResult=[];dialog=B(di);appEvaluationResults={};ngOnChanges(e){e.appName&&(this.selectedEvalSet="",this.evalCases=[],this.getEvalSet(),this.getEvaluationResult())}ngOnInit(){}getEvalSet(){this.appName!=""&&this.evalService.getEvalSets(this.appName).pipe(Oe(e=>e.status===404&&e.statusText==="Not Found"?(this.shouldShowTab.emit(!1),iA(null)):iA([]))).subscribe(e=>{e!==null&&(this.shouldShowTab.emit(!0),this.evalsets=e)})}openNewEvalSetDialog(){this.dialog.open(FI,{width:"600px",data:{appName:this.appName}}).afterClosed().subscribe(A=>{A&&this.getEvalSet()})}openNewEvalCaseDialog(){this.dialog.open(bI,{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 RI(this.evalCases),this.changeDetectorRef.detectChanges()})}runEval(){if(this.evalRunning.set(!0),this.selection.selected.length==0){alert("No case selected!"),this.evalRunning.set(!1);return}this.evalService.runEval(this.appName,this.selectedEvalSet,this.selection.selected,this.evalMetrics).pipe(Oe(e=>(e.error?.detail?.includes("not installed")&&this.evalNotInstalledMsg.emit(e.error.detail),iA([])))).subscribe(e=>{this.evalRunning.set(!1),this.evalResult=e,this.getEvaluationResult()})}selectEvalSet(e){this.selectedEvalSet=e,this.listEvalCases()}clearSelectedEvalSet(){if(this.showEvalHistory()){this.toggleEvalHistoryButton();return}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.evalId==e);if(A.length!=0)return A[0].finalEvalStatus}formatToolUses(e){let A=[];for(let i of e)A.push({name:i.name,args:i.args});return A}addEvalCaseResultToEvents(e,A){let i=A.evalMetricResultPerInvocation,o=-1;if(i)for(let n=0;n<e.events.length;n++){let g=e.events[n];if(g.author==="user")o++;else{let r=i[o];g.evalStatus=r.evalMetricResults[0].evalStatus,(n===e.events.length-1||e.events[n+1].author==="user")&&(g.actualInvocationToolUses=this.formatToolUses(r.actualInvocation.intermediateData.toolUses),g.expectedInvocationToolUses=this.formatToolUses(r.expectedInvocation.intermediateData.toolUses))}}return e}fromApiResultToSession(e){return{id:e?.id??"",appName:e?.appName??"",userId:e?.userId??"",state:e?.state??[],events:e?.events??[]}}getSession(e){let A=this.evalResult.filter(o=>o.evalId==e)[0],i=A.sessionId;this.sessionService.getSession(this.userId,this.appName,i).subscribe(o=>{this.addEvalCaseResultToEvents(o,A);let n=this.fromApiResultToSession(o);this.sessionSelected.emit(n)})}toggleEvalHistoryButton(){this.showEvalHistory.set(!this.showEvalHistory())}getEvalHistoryOfCurrentSet(){return this.appEvaluationResults[this.appName][this.selectedEvalSet]}getEvalHistoryOfCurrentSetSorted(){let e=this.getEvalHistoryOfCurrentSet();return Object.keys(e).sort((o,n)=>n.localeCompare(o)).map(o=>({timestamp:o,evaluationResults:e[o]}))}getPassCountForCurrentResult(e){return e.filter(A=>A.finalEvalStatus==1).length}getFailCountForCurrentResult(e){return e.filter(A=>A.finalEvalStatus==2).length}formatTimestamp(e){let A=Number(e);if(isNaN(A))return"Invalid timestamp provided";let i=new Date(A*1e3);if(isNaN(i.getTime()))return"Invalid date created from timestamp";let o={month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",hour12:!0};return new Intl.DateTimeFormat("en-US",o).format(i)}getEvaluationStatusCardActionButtonIcon(e){return this.getEvalHistoryOfCurrentSet()[e].isToggled?"keyboard_arrow_up":"keyboard_arrow_down"}toggleHistoryStatusCard(e){this.getEvalHistoryOfCurrentSet()[e].isToggled=!this.getEvalHistoryOfCurrentSet()[e].isToggled}isEvaluationStatusCardToggled(e){return this.getEvalHistoryOfCurrentSet()[e].isToggled}generateHistoryEvaluationDatasource(e){return this.getEvalHistoryOfCurrentSet()[e].evaluationResults}getHistorySession(e){this.addEvalCaseResultToEvents(e.sessionDetails,e);let A=this.fromApiResultToSession(e.sessionDetails);this.sessionSelected.emit(A)}getEvaluationResult(){this.evalService.listEvalResults(this.appName).pipe(Oe(e=>e.status===404&&e.statusText==="Not Found"?(this.shouldShowTab.emit(!1),iA(null)):iA([]))).subscribe(e=>{for(let A of e)this.evalService.getEvalResult(this.appName,A).subscribe(i=>{this.appEvaluationResults[this.appName]||(this.appEvaluationResults[this.appName]={}),this.appEvaluationResults[this.appName][i.evalSetId]||(this.appEvaluationResults[this.appName][i.evalSetId]={});let o=i.creationTimestamp;this.appEvaluationResults[this.appName][i.evalSetId][o]||(this.appEvaluationResults[this.appName][i.evalSetId][o]={isToggled:!1,evaluationResults:[]});let n={isToggled:!1,evaluationResults:i.evalCaseResults.map(g=>({setId:g.id,evalId:g.evalId,finalEvalStatus:g.finalEvalStatus,evalMetricResults:g.evalMetricResults,evalMetricResultPerInvocation:g.evalMetricResultPerInvocation,sessionId:g.sessionId,sessionDetails:g.sessionDetails}))};this.appEvaluationResults[this.appName][i.evalSetId][o]=n})})}static \u0275fac=function(A){return new(A||t)(V(po),V(wo))};static \u0275cmp=O({type:t,selectors:[["app-eval-tab"]],viewQuery:function(A,i){if(A&1&&QA(ls,5),A&2){let o;$(o=AA())&&(i.checkboxes=o)}},inputs:{appName:"appName",userId:"userId",sessionId:"sessionId"},outputs:{sessionSelected:"sessionSelected",shouldShowTab:"shouldShowTab",evalNotInstalledMsg:"evalNotInstalledMsg"},standalone:!1,features:[TA],decls:5,vars:4,consts:[[1,"eval-container"],[1,"eval-set-actions"],["matTooltip","Create new evaluation set",2,"cursor","pointer",3,"click"],[1,"empty-eval-info"],[1,"info-title"],[1,"info-detail"],[1,"info-create",3,"click"],[1,"eval-set-row"],[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"],[1,"save-session-btn"],[1,"evaluation-tab-header"],[1,"run-eval-btn",3,"click"],["matTooltip","View eval run history",1,"evaluation-history-icon",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","evalId"],["matColumnDef","finalEvalStatus"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],[3,"change","checked","indeterminate"],["mat-cell",""],[3,"click","change","checked"],["matTooltip","View eval run result",3,"ngClass"],["matTooltip","View eval run result",3,"click","ngClass"],[1,"material-symbols-outlined"],[2,"padding-top","4px"],["mat-header-row",""],["mat-row",""],[1,"status-card"],[1,"status-card__overview"],[1,"status-card__info"],[1,"status-card__timestamp"],[1,"status-card__summary"],[1,"status-card__passed"],[1,"status-card__action"],[3,"click"],[1,"status-card__history-cases"],[1,"status-card__separator"],[1,"status-card__failed"],[1,"status-card__history-case"],[3,"click","ngClass"],[1,"save-session-btn",3,"click"],[1,"save-session-btn-detail"],[1,"save-session-btn-text"],[1,"eval-spinner",3,"diameter","strokeWidth"]],template:function(A,i){A&1&&(d(0,"div",0),x(1,n8,5,0,"div",1)(2,g8,8,0,"div")(3,s8,3,0,"div")(4,R8,9,4,"div"),h()),A&2&&(D(),_(i.selectedEvalSet==""?1:-1),D(),_(i.evalsets.length==0?2:-1),D(),_(i.evalsets.length>0&&i.selectedEvalSet==""?3:-1),D(),_(i.selectedEvalSet!=""?4:-1))},dependencies:[jt,cs,ls,Sb,Gb,Ub,Lb,Nb,xb,_b,Kb,Yb,Jb,Qs,zb],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:4px;cursor:pointer}.result-btn[_ngcontent-%COMP%]:hover{background-color:#202124}.result-btn.pass[_ngcontent-%COMP%]{color:#44c265}.result-btn.fail[_ngcontent-%COMP%]{color:#ff8983}.evaluation-tab-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:100%}.evaluation-history-icon[_ngcontent-%COMP%]{cursor:pointer;margin-top:4px}.status-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;border-radius:8px;background-color:#2d2d2d;padding:12px 16px;margin-top:12px}.status-card__overview[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:100%}.status-card__info[_ngcontent-%COMP%]{display:flex;flex-direction:column}.status-card__timestamp[_ngcontent-%COMP%]{font-size:.9em;color:#e0e0e0;margin-bottom:5px}.status-card__summary[_ngcontent-%COMP%]{display:flex;align-items:center;font-size:.95em;font-weight:500}.status-card__failed[_ngcontent-%COMP%]{color:#ff6b6b}.status-card__separator[_ngcontent-%COMP%]{color:#666;margin:0 8px}.status-card__passed[_ngcontent-%COMP%]{color:#63e6be}.status-card__action[_ngcontent-%COMP%]{display:flex;align-items:center}.status-card__action[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#bdbdbd;cursor:pointer;transition:transform .2s ease-in-out}.status-card__action[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]:hover{opacity:.8}.status-card__action[_ngcontent-%COMP%]   .status-card__icon[_ngcontent-%COMP%]{color:#bdbdbd;font-size:1.2em;cursor:pointer}.status-card__action[_ngcontent-%COMP%]   .status-card__icon[_ngcontent-%COMP%]:hover{opacity:.8}.status-card__history-cases[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-top:3px;justify-content:flex-start;width:100%}.status-card__history-case[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:100%;margin-top:15px}.eval-spinner[_ngcontent-%COMP%]{margin-top:12px}"],changeDetection:0})};var b8=()=>[];function F8(t,e){t&1&&P(0,"div",6)}function v8(t,e){if(t&1&&(d(0,"div",3)(1,"div",5),fe(2,F8,1,0,"div",6,De),h(),d(4,"span",7),k(5),h(),d(6,"div",8),k(7),d(8,"span",9),k(9),h()(),d(10,"div",10)(11,"div",11),k(12),h()()()),t&2){let A=e.$implicit,i=y();D(2),pe(PB(10,b8).constructor(A.level)),D(3),NA(" ",i.getSpanIcon(A.span.name)," "),D(),qe("width",400-A.level*20,"px"),D(),NA(" ",A.span.name," "),D(2),NA(" (",(i.toMs(A.span.end_time)-i.toMs(A.span.start_time)).toFixed(2),"ms) "),D(2),qe("left",i.getRelativeStart(A.span),"%")("width",i.getRelativeWidth(A.span),"%"),D(),NA(" ",(i.toMs(A.span.end_time)-i.toMs(A.span.start_time)).toFixed(2),"ms ")}}var vI=class t{constructor(e,A){this.dialogRef=e;this.data=A}tree=[];baseStartTimeMs=0;totalDurationMs=1;flatTree=[];traceLabelIconMap=new Map([["Invocation","start"],["agent_run","directions_run"],["tool","build"],["call_llm","chat"]]);ngOnInit(){this.tree=this.buildSpanTree(this.data.spans),this.flatTree=this.flattenTree(this.tree);let e=this.getGlobalTimes(this.data.spans);this.baseStartTimeMs=e.start,this.totalDurationMs=e.duration}buildSpanTree(e){let A=e.map(n=>b({},n)),i=new Map,o=[];return A.forEach(n=>i.set(n.span_id,n)),A.forEach(n=>{if(n.parent_span_id&&i.has(n.parent_span_id)){let g=i.get(n.parent_span_id);g.children=g.children||[],g.children.push(n)}else o.push(n)}),o}getGlobalTimes(e){let A=Math.min(...e.map(o=>this.toMs(o.start_time))),i=Math.max(...e.map(o=>this.toMs(o.end_time)));return{start:A,duration:i-A}}toMs(e){return e/1e6}getRelativeStart(e){return(this.toMs(e.start_time)-this.baseStartTimeMs)/this.totalDurationMs*100}getRelativeWidth(e){return(this.toMs(e.end_time)-this.toMs(e.start_time))/this.totalDurationMs*100}flattenTree(e,A=0){return e.flatMap(o=>[{span:o,level:A},...o.children?this.flattenTree(o.children,A+1):[]])}getSpanIcon(e){for(let[A,i]of this.traceLabelIconMap.entries())if(e.startsWith(A))return i;return"start"}static \u0275fac=function(A){return new(A||t)(V(rt),V(oi))};static \u0275cmp=O({type:t,selectors:[["app-trace-chart"]],standalone:!1,decls:9,vars:1,consts:[["mat-dialog-title",""],[2,"margin-top","8px"],[1,"trace-container"],[1,"trace-row"],["mat-button","","mat-dialog-close",""],[1,"trace-indent"],[1,"indent-connector"],[1,"material-symbols-outlined",2,"margin-right","8px"],[1,"trace-label"],[1,"trace-duration"],[1,"trace-bar-container"],[1,"trace-bar"]],template:function(A,i){A&1&&(d(0,"h2",0),k(1),h(),d(2,"mat-dialog-content",1)(3,"div",2),fe(4,v8,13,11,"div",3,De),h()(),d(6,"mat-dialog-actions")(7,"button",4),k(8,"Close"),h()()),A&2&&(D(),NA("Invocation ",i.data.invocId,""),D(3),pe(i.flatTree))},dependencies:[Et,uo,mo,Do,Yn],styles:[".trace-container[_ngcontent-%COMP%]{width:100%;white-space:nowrap;font-size:12px}.trace-label[_ngcontent-%COMP%]{width:400px;color:#e3e3e3;text-overflow:ellipsis;font-family:Google Sans;font-size:14px;font-style:normal;font-weight:500;line-height:20px;letter-spacing:0px}.trace-bar-container[_ngcontent-%COMP%]{width:50vw;position:relative;height:16px}.trace-bar[_ngcontent-%COMP%]{position:absolute;height:18px;background-color:#2f4d65;border-radius:4px;padding-left:4px;overflow:hidden;font-size:11px;line-height:16px;color:#8dabbf;font-family:Google Sans}.trace-duration[_ngcontent-%COMP%]{color:#888;font-weight:400;margin-left:4px}.trace-row[_ngcontent-%COMP%]{display:flex;align-items:stretch;position:relative;height:32px}.trace-indent[_ngcontent-%COMP%]{display:flex;flex-shrink:0;height:100%}.indent-connector[_ngcontent-%COMP%]{width:20px;position:relative;height:100%}.vertical-line[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:9px;width:1px;background-color:#ccc}.horizontal-line[_ngcontent-%COMP%]{position:absolute;top:50%;left:9px;width:10px;height:1px;background-color:#ccc}"]})};var Xb=(()=>{class t{get vertical(){return this._vertical}set vertical(A){this._vertical=be(A)}_vertical=!1;get inset(){return this._inset}set inset(A){this._inset=be(A)}_inset=!1;static \u0275fac=function(i){return new(i||t)};static \u0275cmp=O({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(i,o){i&2&&(aA("aria-orientation",o.vertical?"vertical":"horizontal"),nA("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})(),$b=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=X({type:t});static \u0275inj=j({imports:[mA,mA]})}return t})();var N8=["*"],G8='.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))}',L8=["unscopedContent"],_8=["text"],K8=[[["","matListItemAvatar",""],["","matListItemIcon",""]],[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["","matListItemMeta",""]],[["mat-divider"]]],U8=["[matListItemAvatar],[matListItemIcon]","[matListItemTitle]","[matListItemLine]","*","[matListItemMeta]","mat-divider"];var x8=new F("ListOption"),Y8=(()=>{class t{_elementRef=B(q);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=T({type:t,selectors:[["","matListItemTitle",""]],hostAttrs:[1,"mat-mdc-list-item-title","mdc-list-item__primary-text"]})}return t})(),J8=(()=>{class t{_elementRef=B(q);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=T({type:t,selectors:[["","matListItemLine",""]],hostAttrs:[1,"mat-mdc-list-item-line","mdc-list-item__secondary-text"]})}return t})(),H8=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=T({type:t,selectors:[["","matListItemMeta",""]],hostAttrs:[1,"mat-mdc-list-item-meta","mdc-list-item__end"]})}return t})(),AF=(()=>{class t{_listOption=B(x8,{optional:!0});constructor(){}_isAlignedAtStart(){return!this._listOption||this._listOption?._getTogglePosition()==="after"}static \u0275fac=function(i){return new(i||t)};static \u0275dir=T({type:t,hostVars:4,hostBindings:function(i,o){i&2&&nA("mdc-list-item__start",o._isAlignedAtStart())("mdc-list-item__end",!o._isAlignedAtStart())}})}return t})(),T8=(()=>{class t extends AF{static \u0275fac=(()=>{let A;return function(o){return(A||(A=jA(t)))(o||t)}})();static \u0275dir=T({type:t,selectors:[["","matListItemAvatar",""]],hostAttrs:[1,"mat-mdc-list-item-avatar"],features:[dA]})}return t})(),O8=(()=>{class t extends AF{static \u0275fac=(()=>{let A;return function(o){return(A||(A=jA(t)))(o||t)}})();static \u0275dir=T({type:t,selectors:[["","matListItemIcon",""]],hostAttrs:[1,"mat-mdc-list-item-icon"],features:[dA]})}return t})(),P8=new F("MAT_LIST_CONFIG"),sD=(()=>{class t{_isNonInteractive=!0;get disableRipple(){return this._disableRipple}set disableRipple(A){this._disableRipple=be(A)}_disableRipple=!1;get disabled(){return this._disabled}set disabled(A){this._disabled=be(A)}_disabled=!1;_defaultOptions=B(P8,{optional:!0});static \u0275fac=function(i){return new(i||t)};static \u0275dir=T({type:t,hostVars:1,hostBindings:function(i,o){i&2&&aA("aria-disabled",o.disabled)},inputs:{disableRipple:"disableRipple",disabled:"disabled"}})}return t})(),Z8=(()=>{class t{_elementRef=B(q);_ngZone=B(tA);_listBase=B(sD,{optional:!0});_platform=B(ZA);_hostElement;_isButtonElement;_noopAnimations;_avatars;_icons;set lines(A){this._explicitLines=pt(A,null),this._updateItemLines(!1)}_explicitLines=null;get disableRipple(){return this.disabled||this._disableRipple||this._noopAnimations||!!this._listBase?.disableRipple}set disableRipple(A){this._disableRipple=be(A)}_disableRipple=!1;get disabled(){return this._disabled||!!this._listBase?.disabled}set disabled(A){this._disabled=be(A)}_disabled=!1;_subscriptions=new GA;_rippleRenderer=null;_hasUnscopedTextContent=!1;rippleConfig;get rippleDisabled(){return this.disableRipple||!!this.rippleConfig.disabled}constructor(){B(ke).load(xt);let A=B(rs,{optional:!0}),i=B(Ae,{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 ns(this,this._ngZone,this._hostElement,this._platform,B(yA)),this._rippleRenderer.setupTriggerEvents(this._hostElement)}_monitorProjectedLinesAndTitle(){this._ngZone.runOutsideAngular(()=>{this._subscriptions.add(ye(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=T({type:t,contentQueries:function(i,o,n){if(i&1&&(XA(n,T8,4),XA(n,O8,4)),i&2){let g;$(g=AA())&&(o._avatars=g),$(g=AA())&&(o._icons=g)}},hostVars:4,hostBindings:function(i,o){i&2&&(aA("aria-disabled",o.disabled)("disabled",o._isButtonElement&&o.disabled||null),nA("mdc-list-item--disabled",o.disabled))},inputs:{lines:"lines",disableRipple:"disableRipple",disabled:"disabled"}})}return t})();var eF=(()=>{class t extends sD{static \u0275fac=(()=>{let A;return function(o){return(A||(A=jA(t)))(o||t)}})();static \u0275cmp=O({type:t,selectors:[["mat-list"]],hostAttrs:[1,"mat-mdc-list","mat-mdc-list-base","mdc-list"],exportAs:["matList"],features:[FA([{provide:sD,useExisting:t}]),dA],ngContentSelectors:N8,decls:1,vars:0,template:function(i,o){i&1&&(OA(),IA(0))},styles:[G8],encapsulation:2,changeDetection:0})}return t})(),tF=(()=>{class t extends Z8{_lines;_titles;_meta;_unscopedContent;_itemText;get activated(){return this._activated}set activated(A){this._activated=be(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=jA(t)))(o||t)}})();static \u0275cmp=O({type:t,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(i,o,n){if(i&1&&(XA(n,J8,5),XA(n,Y8,5),XA(n,H8,5)),i&2){let g;$(g=AA())&&(o._lines=g),$(g=AA())&&(o._titles=g),$(g=AA())&&(o._meta=g)}},viewQuery:function(i,o){if(i&1&&(QA(L8,5),QA(_8,5)),i&2){let n;$(n=AA())&&(o._unscopedContent=n.first),$(n=AA())&&(o._itemText=n.first)}},hostAttrs:[1,"mat-mdc-list-item","mdc-list-item"],hostVars:13,hostBindings:function(i,o){i&2&&(aA("aria-current",o._getAriaCurrent()),nA("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:[dA],ngContentSelectors:U8,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=rA();OA(K8),IA(0),d(1,"span",1),IA(2,1),IA(3,2),d(4,"span",2,0),G("cdkObserveContent",function(){return Y(n),J(o._updateItemLines(!0))}),IA(6,3),h()(),IA(7,4),IA(8,5),P(9,"div",3)}},dependencies:[aE],encapsulation:2,changeDetection:0})}return t})();var iF=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=X({type:t});static \u0275inj=j({imports:[is,mA,jo,lm,$b]})}return t})();var V8=["button"],W8=["*"];function z8(t,e){if(t&1&&(d(0,"div",2),P(1,"mat-pseudo-checkbox",6),h()),t&2){let A=y();D(),L("disabled",A.disabled)}}var oF=new F("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS",{providedIn:"root",factory:j8});function j8(){return{hideSingleSelectionIndicator:!1,hideMultipleSelectionIndicator:!1,disabledInteractive:!1}}var nF=new F("MatButtonToggleGroup"),X8={provide:Wo,useExisting:ot(()=>aD),multi:!0},ic=class{source;value;constructor(e,A){this.source=e,this.value=A}},aD=(()=>{class t{_changeDetector=B(UA);_dir=B(Se,{optional:!0});_multiple=!1;_disabled=!1;_disabledInteractive=!1;_selectionModel;_rawValue;_controlValueAccessorChangeFn=()=>{};_onTouched=()=>{};_buttonToggles;appearance;get name(){return this._name}set name(A){this._name=A,this._markButtonsForCheck()}_name=B(re).getId("mat-button-toggle-group-");vertical;get value(){let A=this._selectionModel?this._selectionModel.selected:[];return this.multiple?A.map(i=>i.value):A[0]?A[0].value:void 0}set value(A){this._setSelectionByValue(A),this.valueChange.emit(this.value)}valueChange=new z;get selected(){let A=this._selectionModel?this._selectionModel.selected:[];return this.multiple?A:A[0]||null}get multiple(){return this._multiple}set multiple(A){this._multiple=A,this._markButtonsForCheck()}get disabled(){return this._disabled}set disabled(A){this._disabled=A,this._markButtonsForCheck()}get disabledInteractive(){return this._disabledInteractive}set disabledInteractive(A){this._disabledInteractive=A,this._markButtonsForCheck()}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}change=new z;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(A){this._hideSingleSelectionIndicator=A,this._markButtonsForCheck()}_hideSingleSelectionIndicator;get hideMultipleSelectionIndicator(){return this._hideMultipleSelectionIndicator}set hideMultipleSelectionIndicator(A){this._hideMultipleSelectionIndicator=A,this._markButtonsForCheck()}_hideMultipleSelectionIndicator;constructor(){let A=B(oF,{optional:!0});this.appearance=A&&A.appearance?A.appearance:"standard",this.hideSingleSelectionIndicator=A?.hideSingleSelectionIndicator??!1,this.hideMultipleSelectionIndicator=A?.hideMultipleSelectionIndicator??!1}ngOnInit(){this._selectionModel=new Gn(this.multiple,void 0,!1)}ngAfterContentInit(){this._selectionModel.select(...this._buttonToggles.filter(A=>A.checked)),this.multiple||this._initializeTabIndex()}writeValue(A){this.value=A,this._changeDetector.markForCheck()}registerOnChange(A){this._controlValueAccessorChangeFn=A}registerOnTouched(A){this._onTouched=A}setDisabledState(A){this.disabled=A}_keydown(A){if(this.multiple||this.disabled)return;let o=A.target.id,n=this._buttonToggles.toArray().findIndex(r=>r.buttonId===o),g=null;switch(A.keyCode){case 32:case 13:g=this._buttonToggles.get(n)||null;break;case 38:g=this._getNextButton(n,-1);break;case 37:g=this._getNextButton(n,this.dir==="ltr"?-1:1);break;case 40:g=this._getNextButton(n,1);break;case 39:g=this._getNextButton(n,this.dir==="ltr"?1:-1);break;default:return}g&&(A.preventDefault(),g._onButtonClick(),g.focus())}_emitChangeEvent(A){let i=new ic(A,this.value);this._rawValue=i.value,this._controlValueAccessorChangeFn(i.value),this.change.emit(i)}_syncButtonToggle(A,i,o=!1,n=!1){!this.multiple&&this.selected&&!A.checked&&(this.selected.checked=!1),this._selectionModel?i?this._selectionModel.select(A):this._selectionModel.deselect(A):n=!0,n?Promise.resolve().then(()=>this._updateModelValue(A,o)):this._updateModelValue(A,o)}_isSelected(A){return this._selectionModel&&this._selectionModel.isSelected(A)}_isPrechecked(A){return typeof this._rawValue>"u"?!1:this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(i=>A.value!=null&&i===A.value):A.value===this._rawValue}_initializeTabIndex(){if(this._buttonToggles.forEach(A=>{A.tabIndex=-1}),this.selected)this.selected.tabIndex=0;else for(let A=0;A<this._buttonToggles.length;A++){let i=this._buttonToggles.get(A);if(!i.disabled){i.tabIndex=0;break}}this._markButtonsForCheck()}_getNextButton(A,i){let o=this._buttonToggles;for(let n=1;n<=o.length;n++){let g=(A+i*n+o.length)%o.length,r=o.get(g);if(r&&!r.disabled)return r}return null}_setSelectionByValue(A){if(this._rawValue=A,!this._buttonToggles)return;let i=this._buttonToggles.toArray();if(this.multiple&&A?(Array.isArray(A),this._clearSelection(),A.forEach(o=>this._selectValue(o,i))):(this._clearSelection(),this._selectValue(A,i)),!this.multiple&&i.every(o=>o.tabIndex===-1)){for(let o of i)if(!o.disabled){o.tabIndex=0;break}}}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(A=>{A.checked=!1,this.multiple||(A.tabIndex=-1)})}_selectValue(A,i){for(let o of i)if(o.value===A){o.checked=!0,this._selectionModel.select(o),this.multiple||(o.tabIndex=0);break}}_updateModelValue(A,i){i&&this._emitChangeEvent(A),this.valueChange.emit(this.value)}_markButtonsForCheck(){this._buttonToggles?.forEach(A=>A._markForCheck())}static \u0275fac=function(i){return new(i||t)};static \u0275dir=T({type:t,selectors:[["mat-button-toggle-group"]],contentQueries:function(i,o,n){if(i&1&&XA(n,oc,5),i&2){let g;$(g=AA())&&(o._buttonToggles=g)}},hostAttrs:[1,"mat-button-toggle-group"],hostVars:6,hostBindings:function(i,o){i&1&&G("keydown",function(g){return o._keydown(g)}),i&2&&(aA("role",o.multiple?"group":"radiogroup")("aria-disabled",o.disabled),nA("mat-button-toggle-vertical",o.vertical)("mat-button-toggle-group-appearance-standard",o.appearance==="standard"))},inputs:{appearance:"appearance",name:"name",vertical:[2,"vertical","vertical",eA],value:"value",multiple:[2,"multiple","multiple",eA],disabled:[2,"disabled","disabled",eA],disabledInteractive:[2,"disabledInteractive","disabledInteractive",eA],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",eA],hideMultipleSelectionIndicator:[2,"hideMultipleSelectionIndicator","hideMultipleSelectionIndicator",eA]},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[FA([X8,{provide:nF,useExisting:t}])]})}return t})(),oc=(()=>{class t{_changeDetectorRef=B(UA);_elementRef=B(q);_focusMonitor=B(Ut);_idGenerator=B(re);_animationMode=B(Ae,{optional:!0});_checked=!1;ariaLabel;ariaLabelledby=null;_buttonElement;buttonToggleGroup;get buttonId(){return`${this.id}-button`}id;name;value;get tabIndex(){return this._tabIndex}set tabIndex(A){A!==this._tabIndex&&(this._tabIndex=A,this._markForCheck())}_tabIndex;disableRipple;get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(A){this._appearance=A}_appearance;get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(A){A!==this._checked&&(this._checked=A,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(A){this._disabled=A}_disabled=!1;get disabledInteractive(){return this._disabledInteractive||this.buttonToggleGroup!==null&&this.buttonToggleGroup.disabledInteractive}set disabledInteractive(A){this._disabledInteractive=A}_disabledInteractive;change=new z;constructor(){B(ke).load(xt);let A=B(nF,{optional:!0}),i=B(new Ct("tabindex"),{optional:!0})||"",o=B(oF,{optional:!0});this._tabIndex=parseInt(i)||0,this.buttonToggleGroup=A,this.appearance=o&&o.appearance?o.appearance:"standard",this.disabledInteractive=o?.disabledInteractive??!1}ngOnInit(){let A=this.buttonToggleGroup;this.id=this.id||this._idGenerator.getId("mat-button-toggle-"),A&&(A._isPrechecked(this)?this.checked=!0:A._isSelected(this)!==this._checked&&A._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._animationMode!=="NoopAnimations"&&this._elementRef.nativeElement.classList.add("mat-button-toggle-animations-enabled"),this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){let A=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),A&&A._isSelected(this)&&A._syncButtonToggle(this,!1,!1,!0)}focus(A){this._buttonElement.nativeElement.focus(A)}_onButtonClick(){if(this.disabled)return;let A=this.isSingleSelector()?!0:!this._checked;if(A!==this._checked&&(this._checked=A,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.isSingleSelector()){let i=this.buttonToggleGroup._buttonToggles.find(o=>o.tabIndex===0);i&&(i.tabIndex=-1),this.tabIndex=0}this.change.emit(new ic(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this.isSingleSelector()?this.buttonToggleGroup.name:this.name||null}isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=O({type:t,selectors:[["mat-button-toggle"]],viewQuery:function(i,o){if(i&1&&QA(V8,5),i&2){let n;$(n=AA())&&(o._buttonElement=n.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:14,hostBindings:function(i,o){i&1&&G("focus",function(){return o.focus()}),i&2&&(aA("aria-label",null)("aria-labelledby",null)("id",o.id)("name",null),nA("mat-button-toggle-standalone",!o.buttonToggleGroup)("mat-button-toggle-checked",o.checked)("mat-button-toggle-disabled",o.disabled)("mat-button-toggle-disabled-interactive",o.disabledInteractive)("mat-button-toggle-appearance-standard",o.appearance==="standard"))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],id:"id",name:"name",value:"value",tabIndex:"tabIndex",disableRipple:[2,"disableRipple","disableRipple",eA],appearance:"appearance",checked:[2,"checked","checked",eA],disabled:[2,"disabled","disabled",eA],disabledInteractive:[2,"disabledInteractive","disabledInteractive",eA]},outputs:{change:"change"},exportAs:["matButtonToggle"],ngContentSelectors:W8,decls:7,vars:13,consts:[["button",""],["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"click","id","disabled"],[1,"mat-button-toggle-checkbox-wrapper"],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"],["state","checked","aria-hidden","true","appearance","minimal",3,"disabled"]],template:function(i,o){if(i&1){let n=rA();OA(),d(0,"button",1,0),G("click",function(){return Y(n),J(o._onButtonClick())}),x(2,z8,2,1,"div",2),d(3,"span",3),IA(4),h()(),P(5,"span",4)(6,"span",5)}if(i&2){let n=_e(1);L("id",o.buttonId)("disabled",o.disabled&&!o.disabledInteractive||null),aA("role",o.isSingleSelector()?"radio":"button")("tabindex",o.disabled&&!o.disabledInteractive?-1:o.tabIndex)("aria-pressed",o.isSingleSelector()?null:o.checked)("aria-checked",o.isSingleSelector()?o.checked:null)("name",o._getButtonName())("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledby)("aria-disabled",o.disabled&&o.disabledInteractive?"true":null),D(2),_(o.buttonToggleGroup&&(!o.buttonToggleGroup.multiple&&!o.buttonToggleGroup.hideSingleSelectionIndicator||o.buttonToggleGroup.multiple&&!o.buttonToggleGroup.hideMultipleSelectionIndicator)?2:-1),D(4),L("matRippleTrigger",n)("matRippleDisabled",o.disableRipple||o.disabled)}},dependencies:[Eo,cm],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0);transform:translateZ(0);border-radius:var(--mat-legacy-button-toggle-shape)}.mat-button-toggle-standalone:not([class*=mat-elevation-z]),.mat-button-toggle-group:not([class*=mat-elevation-z]){box-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)}@media(forced-colors: active){.mat-button-toggle-standalone,.mat-button-toggle-group{outline:solid 1px}}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:var(--mat-standard-button-toggle-shape, var(--mat-sys-corner-full));border:solid 1px var(--mat-standard-button-toggle-divider-color, var(--mat-sys-outline))}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard .mat-pseudo-checkbox,.mat-button-toggle-group-appearance-standard .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-selected-checkmark-color: var(--mat-standard-button-toggle-selected-state-text-color, var(--mat-sys-on-secondary-container))}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard:not([class*=mat-elevation-z]),.mat-button-toggle-group-appearance-standard:not([class*=mat-elevation-z]){box-shadow:none}@media(forced-colors: active){.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{outline:0}}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative;color:var(--mat-legacy-button-toggle-text-color);font-family:var(--mat-legacy-button-toggle-label-text-font);font-size:var(--mat-legacy-button-toggle-label-text-size);line-height:var(--mat-legacy-button-toggle-label-text-line-height);font-weight:var(--mat-legacy-button-toggle-label-text-weight);letter-spacing:var(--mat-legacy-button-toggle-label-text-tracking);--mat-minimal-pseudo-checkbox-selected-checkmark-color: var(--mat-legacy-button-toggle-selected-state-text-color)}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:var(--mat-legacy-button-toggle-focus-state-layer-opacity)}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle-checkbox-wrapper{display:inline-block;justify-content:flex-start;align-items:center;width:0;height:18px;line-height:18px;overflow:hidden;box-sizing:border-box;position:absolute;top:50%;left:16px;transform:translate3d(0, -50%, 0)}[dir=rtl] .mat-button-toggle-checkbox-wrapper{left:auto;right:16px}.mat-button-toggle-appearance-standard .mat-button-toggle-checkbox-wrapper{left:12px}[dir=rtl] .mat-button-toggle-appearance-standard .mat-button-toggle-checkbox-wrapper{left:auto;right:12px}.mat-button-toggle-checked .mat-button-toggle-checkbox-wrapper{width:18px}.mat-button-toggle-animations-enabled .mat-button-toggle-checkbox-wrapper{transition:width 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-button-toggle-vertical .mat-button-toggle-checkbox-wrapper{transition:none}.mat-button-toggle-checked{color:var(--mat-legacy-button-toggle-selected-state-text-color);background-color:var(--mat-legacy-button-toggle-selected-state-background-color)}.mat-button-toggle-disabled{pointer-events:none;color:var(--mat-legacy-button-toggle-disabled-state-text-color);background-color:var(--mat-legacy-button-toggle-disabled-state-background-color);--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: var(--mat-legacy-button-toggle-disabled-state-text-color)}.mat-button-toggle-disabled.mat-button-toggle-checked{background-color:var(--mat-legacy-button-toggle-disabled-selected-state-background-color)}.mat-button-toggle-disabled-interactive{pointer-events:auto}.mat-button-toggle-appearance-standard{color:var(--mat-standard-button-toggle-text-color, var(--mat-sys-on-surface));background-color:var(--mat-standard-button-toggle-background-color, transparent);font-family:var(--mat-standard-button-toggle-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-standard-button-toggle-label-text-size, var(--mat-sys-label-large-size));line-height:var(--mat-standard-button-toggle-label-text-line-height, var(--mat-sys-label-large-line-height));font-weight:var(--mat-standard-button-toggle-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mat-standard-button-toggle-label-text-tracking, var(--mat-sys-label-large-tracking))}.mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:solid 1px var(--mat-standard-button-toggle-divider-color, var(--mat-sys-outline))}[dir=rtl] .mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:solid 1px var(--mat-standard-button-toggle-divider-color, var(--mat-sys-outline))}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:none;border-top:solid 1px var(--mat-standard-button-toggle-divider-color, var(--mat-sys-outline))}.mat-button-toggle-appearance-standard.mat-button-toggle-checked{color:var(--mat-standard-button-toggle-selected-state-text-color, var(--mat-sys-on-secondary-container));background-color:var(--mat-standard-button-toggle-selected-state-background-color, var(--mat-sys-secondary-container))}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled{color:var(--mat-standard-button-toggle-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-standard-button-toggle-disabled-state-background-color, transparent)}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: var(--mat-standard-button-toggle-disabled-selected-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled.mat-button-toggle-checked{color:var(--mat-standard-button-toggle-disabled-selected-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-standard-button-toggle-disabled-selected-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{background-color:var(--mat-standard-button-toggle-state-layer-color, var(--mat-sys-on-surface))}.mat-button-toggle-appearance-standard:hover .mat-button-toggle-focus-overlay{opacity:var(--mat-standard-button-toggle-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-button-toggle-appearance-standard.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:var(--mat-standard-button-toggle-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}@media(hover: none){.mat-button-toggle-appearance-standard:hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;user-select:none;display:inline-block;padding:0 16px;line-height:var(--mat-legacy-button-toggle-height);position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px;line-height:var(--mat-standard-button-toggle-height, 40px)}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;pointer-events:none;opacity:0;background-color:var(--mat-legacy-button-toggle-state-layer-color)}@media(forced-colors: active){.mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 500px;opacity:.5;height:0}.mat-button-toggle-checked:hover .mat-button-toggle-focus-overlay{opacity:.6}.mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-animations-enabled .mat-button-toggle-button{transition:padding 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-button-toggle-vertical .mat-button-toggle-button{transition:none}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}.mat-button-toggle-checked .mat-button-toggle-button:has(.mat-button-toggle-checkbox-wrapper){padding-left:30px}[dir=rtl] .mat-button-toggle-checked .mat-button-toggle-button:has(.mat-button-toggle-checkbox-wrapper){padding-left:0;padding-right:30px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard{--mat-focus-indicator-border-radius:var(--mat-standard-button-toggle-shape, var(--mat-sys-corner-full))}.mat-button-toggle-group-appearance-standard:not(.mat-button-toggle-vertical) .mat-button-toggle:last-of-type .mat-button-toggle-button::before{border-top-right-radius:var(--mat-standard-button-toggle-shape, var(--mat-sys-corner-full));border-bottom-right-radius:var(--mat-standard-button-toggle-shape, var(--mat-sys-corner-full))}.mat-button-toggle-group-appearance-standard:not(.mat-button-toggle-vertical) .mat-button-toggle:first-of-type .mat-button-toggle-button::before{border-top-left-radius:var(--mat-standard-button-toggle-shape, var(--mat-sys-corner-full));border-bottom-left-radius:var(--mat-standard-button-toggle-shape, var(--mat-sys-corner-full))}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle:last-of-type .mat-button-toggle-button::before{border-bottom-right-radius:var(--mat-standard-button-toggle-shape, var(--mat-sys-corner-full));border-bottom-left-radius:var(--mat-standard-button-toggle-shape, var(--mat-sys-corner-full))}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle:first-of-type .mat-button-toggle-button::before{border-top-right-radius:var(--mat-standard-button-toggle-shape, var(--mat-sys-corner-full));border-top-left-radius:var(--mat-standard-button-toggle-shape, var(--mat-sys-corner-full))}"],encapsulation:2,changeDetection:0})}return t})(),gF=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=X({type:t});static \u0275inj=j({imports:[mA,jo,oc,mA]})}return t})();function AP(t,e){t&1&&(d(0,"p"),k(1,"Conversations"),h())}function eP(t,e){t&1&&(d(0,"p"),k(1,"Trace"),h())}function tP(t,e){if(t&1){let A=rA();d(0,"mat-button-toggle-group",5),Wt("ngModelChange",function(o){Y(A);let n=y(2);return ai(n.view,o)||(n.view=o),J(o)}),d(1,"mat-button-toggle",6),k(2,"Events"),h(),d(3,"mat-button-toggle",7),k(4,"Trace"),h()()}if(t&2){let A=y(2);Vt("ngModel",A.view)}}function iP(t,e){if(t&1){let A=rA();d(0,"mat-list-item",8),G("click",function(){let o=Y(A).$implicit,n=y(3);return J(n.selectEvent(o.key))}),d(1,"span",9),k(2),h(),d(3,"span"),k(4),h()()}if(t&2){let A=e.$implicit,i=e.$index;D(2),KA(i),D(2),KA(A.value.title)}}function oP(t,e){if(t&1&&(d(0,"mat-list",4),fe(1,iP,5,2,"mat-list-item",null,De),To(3,"keyvalue"),h()),t&2){let A=y(2);D(),pe(xh(3,0,A.eventsMap,A.mapOrderPreservingSort))}}function nP(t,e){if(t&1){let A=rA();d(0,"mat-list-item",8),G("click",function(){let o=Y(A).$implicit,n=y(3);return J(n.openDialog(o.key))}),d(1,"span",9),k(2),h(),d(3,"span"),k(4),h()()}if(t&2){let A=e.$implicit,i=e.$index,o=y(3);D(2),KA(i),D(2),NA("Invocation ",o.findInvocIdFromTraceId(A.key),"")}}function gP(t,e){if(t&1&&(d(0,"mat-list",4),fe(1,nP,5,2,"mat-list-item",null,De),To(3,"keyvalue"),h()),t&2){let A=y(2);D(),pe(xh(3,0,A.invocTraces,A.mapOrderPreservingSort))}}function rP(t,e){if(t&1&&(d(0,"div",1)(1,"div",2),x(2,AP,2,0,"p")(3,eP,2,0,"p")(4,tP,5,1,"mat-button-toggle-group",3),h(),x(5,oP,4,3,"mat-list",4)(6,gP,4,3,"mat-list",4),h()),t&2){let A=y();D(2),_(A.isTraceView()?-1:2),D(),_(A.isTraceView()?3:-1),D(),_(A.traceData?4:-1),D(),_(A.isTraceView()?-1:5),D(),_(A.isTraceView()?6:-1)}}function sP(t,e){t&1&&(d(0,"div")(1,"p"),k(2,"No conversations"),h()())}var Ug=class t{constructor(e){this.dialog=e}eventsMap=new Map;selectedEvent=new z;traceData=[];llmRequest=void 0;llmResponse=void 0;llmRequestKey="gcp.vertex.agent.llm_request";llmResponseKey="gcp.vertex.agent.llm_response";isDetailsPanelOpen=!1;view="events";invocTraces=new Map;ngOnChanges(e){"traceData"in e&&this.prcessTraceDataToInvocTrace()}showJson=Array(this.eventsMap.size).fill(!1);toggleJson(e){this.showJson[e]=!this.showJson[e]}selectEvent(e){this.selectedEvent.emit(e)}isTraceView(){return this.view=="trace"}mapOrderPreservingSort=(e,A)=>0;prcessTraceDataToInvocTrace(){!this.traceData||this.traceData.length==0||(this.invocTraces=this.traceData.reduce((e,A)=>{let i=A.trace_id,o=e.get(i);return o?(o.push(A),o.sort((n,g)=>n.start_time-g.start_time)):e.set(i,[A]),e},new Map))}findInvocIdFromTraceId(e){return this.invocTraces.get(e)?.find(i=>i.attributes!==void 0&&"gcp.vertex.agent.invocation_id"in i.attributes).attributes["gcp.vertex.agent.invocation_id"]}openDialog(e){let A=this.dialog.open(vI,{width:"auto",maxWidth:"90vw",data:{spans:this.invocTraces.get(e),invocId:this.findInvocIdFromTraceId(e)}})}static \u0275fac=function(A){return new(A||t)(V(di))};static \u0275cmp=O({type:t,selectors:[["app-event-tab"]],inputs:{eventsMap:"eventsMap",traceData:"traceData"},outputs:{selectedEvent:"selectedEvent"},standalone:!1,features:[TA],decls:3,vars:2,consts:[[1,"events-wrapper"],[1,"events-container"],[1,"event-header"],["name","fontStyle","aria-label","Font Style",2,"scale","0.8",3,"ngModel"],[1,"event-list"],["name","fontStyle","aria-label","Font Style",2,"scale","0.8",3,"ngModelChange","ngModel"],["value","events"],["value","trace"],[3,"click"],[1,"event-index"]],template:function(A,i){A&1&&(d(0,"div",0),x(1,rP,7,5,"div",1)(2,sP,3,0,"div"),h()),A&2&&(D(),_(i.eventsMap.size>0?1:-1),D(),_(i.eventsMap.size==0?2:-1))},dependencies:[Ii,Xt,eF,tF,aD,oc,Wh],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}.event-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"]})};function IP(t,e){t&1&&(d(0,"h2",0),k(1,"Events List"),h())}function CP(t,e){t&1&&(d(0,"h2",0),k(1,"Send Response To Pending Event"),h())}function BP(t,e){t&1&&(d(0,"h2",4),k(1,"Events List"),h())}function QP(t,e){t&1&&(d(0,"h2",4),k(1,"Send Response To Pending Event"),h())}function EP(t,e){if(t&1){let A=rA();d(0,"div")(1,"p"),k(2,"Name"),h(),d(3,"p"),k(4),h(),d(5,"p"),k(6,"Args"),h(),d(7,"p"),k(8),h(),d(9,"mat-form-field",5)(10,"mat-label"),k(11,"Response"),h(),d(12,"textarea",6),Wt("ngModelChange",function(o){Y(A);let n=y();return ai(n.selectedEvent.response,o)||(n.selectedEvent.response=o),J(o)}),h()()()}if(t&2){let A=y();D(4),KA(A.selectedEvent.name),D(4),KA(A.argsToJson(A.selectedEvent.args)),D(4),Vt("ngModel",A.selectedEvent.response)}}function cP(t,e){if(t&1){let A=rA();d(0,"button",7),G("click",function(){Y(A);let o=y();return J(o.sendResponse())}),k(1),h()}if(t&2){let A=y();L("disabled",A.sending),D(),NA(" ",A.sending?"Sending...":"Send"," ")}}var SI=class t{constructor(e,A,i){this.dialogRef=e;this.data=A;this.agentService=i;this.selectedEvent=A.event,this.appName=A.appName,this.userId=A.userId,this.sessionId=A.sessionId,this.functionCallEventId=A.functionCallEventId}selectedEvent=null;appName;userId;sessionId;functionCallEventId;sending=!1;argsToJson(e){return JSON.stringify(e)}sendResponse(){this.sending=!0;let e={appName:this.appName,userId:this.userId,sessionId:this.sessionId,newMessage:{role:"user",parts:[]}};this.selectedEvent.response&&(e.functionCallEventId=this.functionCallEventId,e.newMessage.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,this.dialogRef.close({response:A,events:[this.selectedEvent]})})}static \u0275fac=function(A){return new(A||t)(V(rt),V(oi),V(Un))};static \u0275cmp=O({type:t,selectors:[["app-pending-event-dialog"]],standalone:!1,decls:10,vars:6,consts:[["mat-dialog-title",""],["mat-dialog-title","","class","dialog-title",4,"ngIf"],["mat-button","",3,"disabled"],["mat-button","","mat-dialog-close",""],["mat-dialog-title","",1,"dialog-title"],["appearance","outline",1,"response-textarea"],["matInput","",3,"ngModelChange","ngModel"],["mat-button","",3,"click","disabled"]],template:function(A,i){A&1&&(x(0,IP,2,0,"h2",0)(1,CP,2,0,"h2",0)(2,BP,2,0,"h2",1)(3,QP,2,0,"h2",1),d(4,"mat-dialog-content"),x(5,EP,13,3,"div"),h(),d(6,"mat-dialog-actions"),x(7,cP,2,2,"button",2),d(8,"button",3),k(9,"Close"),h()()),A&2&&(_(i.selectedEvent?-1:0),D(),_(i.selectedEvent?1:-1),D(),L("ngIf",!i.selectedEvent),D(),L("ngIf",i.selectedEvent),D(2),_(i.selectedEvent?5:-1),D(2),_(i.selectedEvent&&i.selectedEvent.response?7:-1))},dependencies:[fa,ro,Ii,Xt,ho,_E,Hn,Et,uo,mo,Do,Yn],styles:[".response-textarea[_ngcontent-%COMP%]{min-width:500px;margin-top:15px}.dialog-title[_ngcontent-%COMP%]{font-weight:700;font-size:large}"]})};var NI=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)(V(rt),V(oi))};static \u0275cmp=O({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&&(d(0,"div",0)(1,"h2",1),k(2),h(),d(3,"mat-dialog-content")(4,"p"),k(5),h()(),d(6,"mat-dialog-actions",2)(7,"button",3),G("click",function(){return i.onCancel()}),k(8),h(),d(9,"button",4),G("click",function(){return i.onConfirm()}),k(10),h()()()),A&2&&(D(2),KA(i.data.title),D(3),KA(i.data.message),D(3),KA(i.data.cancelButtonText),D(2),KA(i.data.confirmButtonText))},dependencies:[Et,uo,mo,Do],encapsulation:2})};function lP(t,e){if(t&1){let A=rA();d(0,"div",3),G("click",function(){let o=Y(A).$implicit,n=y();return J(n.getSession(o.id))}),d(1,"div",4)(2,"div",5),k(3),h(),d(4,"div",6),k(5),h()()()}if(t&2){let A=e.$implicit,i=y();L("ngClass",A.id===i.sessionId?"session-item current":"session-item"),D(3),NA(" ",A.id," "),D(2),NA(" ",i.getDate(A)," ")}}var xg=class t{constructor(e,A){this.sessionService=e;this.dialog=A;this.refreshSessionsSubject.pipe(Ie(()=>this.sessionService.listSessions(this.userId,this.appName))).subscribe(i=>{i=i.sort((o,n)=>Number(n.lastUpdateTime)-Number(o.lastUpdateTime)),this.sessionList=i})}userId="";appName="";sessionId="";sessionSelected=new z;sessionReloaded=new z;sessionList=[];refreshSessionsSubject=new U;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.lastUpdateTime;return new Date(A*1e3).toLocaleString()}fromApiResultToSession(e){return{id:e?.id??"",appName:e?.appName??"",userId:e?.userId??"",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)(V(wo),V(di))};static \u0275cmp=O({type:t,selectors:[["app-session-tab"]],inputs:{userId:"userId",appName:"appName",sessionId:"sessionId"},outputs:{sessionSelected:"sessionSelected",sessionReloaded:"sessionReloaded"},standalone:!1,decls:4,vars:0,consts:[[1,"session-wrapper"],[1,"session-tab-container",2,"margin-top","16px"],[3,"ngClass"],[3,"click","ngClass"],[1,"session-info"],[1,"session-id"],[1,"session-date"]],template:function(A,i){A&1&&(d(0,"div",0)(1,"div",1),fe(2,lP,6,3,"div",2,De),h()()),A&2&&(D(2),pe(i.sessionList))},dependencies:[jt],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 hs=class t{constructor(e){this.http=e}apiServerDomain=ct.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)(Z(Qt))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})};var uP={url:"",deserializer:t=>JSON.parse(t.data),serializer:t=>JSON.stringify(t)},mP="WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }",GI=class t extends Ar{constructor(e,A){if(super(),this._socket=null,e instanceof BA)this.destination=A,this.source=e;else{let i=this._config=Object.assign({},uP);if(this._output=new U,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 fi}}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 fi),this._output=new U}multiplex(e,A,i){let o=this;return new BA(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 GA(()=>{this._socket=null,g&&g.readyState===1&&g.close()});g.onopen=s=>{let{_socket:a}=this;if(!a){g.close(),this._resetState();return}let{openObserver:Q}=this._config;Q&&Q.next(s);let c=this.destination;this.destination=vo.create(f=>{if(g.readyState===1)try{let{serializer:m}=this._config;g.send(m(f))}catch(m){this.destination.error(m)}},f=>{let{closingObserver:m}=this._config;m&&m.next(void 0),f&&f.code?g.close(f.code,f.reason):n.error(new TypeError(mP)),this._resetState()},()=>{let{closingObserver:f}=this._config;f&&f.next(void 0),g.close(),this._resetState()}),c&&c instanceof fi&&r.add(c.subscribe(this.destination))},g.onerror=s=>{this._resetState(),n.error(s)},g.onclose=s=>{g===this._socket&&this._resetState();let{closeObserver:a}=this._config;a&&a.next(s),s.wasClean?n.complete():n.error(s)},g.onmessage=s=>{try{let{deserializer:a}=this._config;n.next(a(s))}catch(a){n.error(a)}}}_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 yo=class t{socket$;messages$=new $A("");audioContext=new AudioContext({sampleRate:22e3});audioBuffer=[];audioIntervalId=null;lastAudioTime=0;closeReasonSubject=new U;constructor(){}connect(e){this.socket$=new GI({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 us=class t{constructor(e){this.wsService=e}mediaRecorder;stream;audioContext;source;processor;audioBuffer=[];audioIntervalId=null;startRecording(){return $e(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)(Z(yo))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})};var ms=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 $e(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 $e(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 $e(this,null,function*(){let A=yield e.arrayBuffer();return new Uint8Array(A)})}captureFrame(){return $e(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)(Z(yo),Z(Bt))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})};var Ds=class t{constructor(e){this.http=e}apiServerDomain=ct.getApiServerBaseUrl();getEventTrace(e){let A=this.apiServerDomain+`/debug/trace/${e}`;return this.http.get(A)}getTrace(e){let A=this.apiServerDomain+`/debug/trace/session/${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)(Z(Qt))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})};var wP=["*"];var yP=new F("MAT_CARD_CONFIG"),rF=(()=>{class t{appearance;constructor(){let A=B(yP,{optional:!0});this.appearance=A?.appearance||"raised"}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=O({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:4,hostBindings:function(i,o){i&2&&nA("mat-mdc-card-outlined",o.appearance==="outlined")("mdc-card--outlined",o.appearance==="outlined")},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:wP,decls:1,vars:0,template:function(i,o){i&1&&(OA(),IA(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 sF=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=X({type:t});static \u0275inj=j({imports:[mA,mA]})}return t})();var RP=t=>["segment",t],kP=(t,e)=>({"segment-main":!0,expandable:t,expanded:e});function bP(t,e){t&1&&P(0,"div",9)}function FP(t,e){if(t&1&&(d(0,"span",10),k(1),h()),t&2){let A=y().$implicit;D(),KA(A.description)}}function vP(t,e){if(t&1&&(d(0,"section",11),P(1,"ngx-json-viewer",12),h()),t&2){let A=y().$implicit,i=y();D(),L("json",A.value)("expanded",i.expanded)("depth",i.depth)("_currentDepth",i._currentDepth+1)}}function SP(t,e){if(t&1){let A=rA();d(0,"section",2)(1,"section",3),G("click",function(){let o=Y(A).$implicit,n=y();return J(n.toggle(o))}),x(2,bP,1,0,"div",4),d(3,"span",5),k(4),h(),d(5,"span",6),k(6,": "),h(),x(7,FP,2,1,"span",7),h(),x(8,vP,2,4,"section",8),h()}if(t&2){let A=e.$implicit,i=y();L("ngClass",pn(6,RP,"segment-type-"+A.type)),D(),L("ngClass",wn(8,kP,i.isExpandable(A),A.expanded)),D(),L("ngIf",i.isExpandable(A)),D(2),KA(A.key),D(3),L("ngIf",!A.expanded||!i.isExpandable(A)),D(),L("ngIf",A.expanded&&i.isExpandable(A))}}var nc=(()=>{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(a,Q){s[Q]=o(a,g+"["+Q+"]")})):(s={},Object.keys(n).forEach(function(a){s[a]=o(n[a],g+"["+JSON.stringify(a)+"]")})),s)):n}(A,"$")}}return t.\u0275fac=function(A){return new(A||t)},t.\u0275cmp=O({type:t,selectors:[["ngx-json-viewer"]],inputs:{json:"json",expanded:"expanded",depth:"depth",_currentDepth:"_currentDepth"},standalone:!1,features:[TA],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&&(d(0,"section",0),x(1,SP,9,11,"section",1),h()),A&2&&(D(),L("ngForOf",i.segments))},dependencies:[jt,AQ,fa,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})(),aF=(()=>{class t{}return t.\u0275fac=function(A){return new(A||t)},t.\u0275mod=X({type:t}),t.\u0275inj=j({imports:[Zo]}),t})();var CF=["*"],NP=["content"],GP=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],LP=["mat-drawer","mat-drawer-content","*"];function _P(t,e){if(t&1){let A=rA();d(0,"div",1),G("click",function(){Y(A);let o=y();return J(o._onBackdropClicked())}),h()}if(t&2){let A=y();nA("mat-drawer-shown",A._isShowingBackdrop())}}function KP(t,e){t&1&&(d(0,"mat-drawer-content"),IA(1,2),h())}var UP=new F("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:xP}),BF=new F("MAT_DRAWER_CONTAINER");function xP(){return!1}var CD=(()=>{class t extends An{_platform=B(ZA);_changeDetectorRef=B(UA);_container=B(QD);constructor(){let A=B(q),i=B(Ln),o=B(tA);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=O({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:6,hostBindings:function(i,o){i&2&&(qe("margin-left",o._container._contentMargins.left,"px")("margin-right",o._container._contentMargins.right,"px"),nA("mat-drawer-content-hidden",o._shouldBeHidden()))},features:[FA([{provide:An,useExisting:t}]),dA],ngContentSelectors:CF,decls:1,vars:0,template:function(i,o){i&1&&(OA(),IA(0))},encapsulation:2,changeDetection:0})}return t})(),BD=(()=>{class t{_elementRef=B(q);_focusTrapFactory=B(DE);_focusMonitor=B(Ut);_platform=B(ZA);_ngZone=B(tA);_renderer=B(ae);_interactivityChecker=B(BI);_doc=B(cA,{optional:!0});_container=B(BF,{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=be(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=be(A)),this._autoFocus=A}_autoFocus;get opened(){return this._opened}set opened(A){this.toggle(be(A))}_opened=!1;_openedVia;_animationStarted=new U;_animationEnd=new U;openedChange=new z(!0);_openedStream=this.openedChange.pipe(kA(A=>A),sA(()=>{}));openedStart=this._animationStarted.pipe(kA(()=>this.opened),nr(void 0));_closedStream=this.openedChange.pipe(kA(A=>!A),sA(()=>{}));closedStart=this._animationStarted.pipe(kA(()=>!this.opened),nr(void 0));_destroyed=new U;onPositionChanged=new z;_content;_modeChanged=new U;_injector=B(yA);_changeDetectorRef=B(UA);constructor(){this.openedChange.pipe(pA(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;Hs(A,"keydown").pipe(kA(i=>i.keyCode===27&&!this.disableClose&&!ze(i)),pA(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":Le(()=>{!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(ue(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=O({type:t,selectors:[["mat-drawer"]],viewQuery:function(i,o){if(i&1&&QA(NP,5),i&2){let n;$(n=AA())&&(o._content=n.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:11,hostBindings:function(i,o){i&2&&(aA("align",null),qe("visibility",!o._container&&!o.opened?"hidden":null),nA("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:CF,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(i,o){i&1&&(OA(),d(0,"div",1,0),IA(2),h())},dependencies:[An],encapsulation:2,changeDetection:0})}return t})(),QD=(()=>{class t{_dir=B(Se,{optional:!0});_element=B(q);_ngZone=B(tA);_changeDetectorRef=B(UA);_animationMode=B(Ae,{optional:!0});_transitionsEnabled=!1;_allDrawers;_drawers=new bi;_content;_userContent;get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(A){this._autosize=be(A)}_autosize=B(UP);get hasBackdrop(){return this._drawerHasBackdrop(this._start)||this._drawerHasBackdrop(this._end)}set hasBackdrop(A){this._backdropOverride=A==null?null:be(A)}_backdropOverride;backdropClick=new z;_start;_end;_left;_right;_destroyed=new U;_doCheckSubject=new U;_contentMargins={left:null,right:null};_contentMarginChanges=new U;get scrollable(){return this._userContent||this._content}_injector=B(yA);constructor(){let A=B(ZA),i=B(Bi);this._dir?.change.pipe(pA(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),i.change().pipe(pA(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(Me(this._allDrawers),pA(this._destroyed)).subscribe(A=>{this._drawers.reset(A.filter(i=>!i._container||i._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(Me(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(pi(10),pA(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(pA(this._drawers.changes)).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),A.mode!=="side"&&A.openedChange.pipe(pA(this._drawers.changes)).subscribe(()=>this._setContainerClass(A.opened))}_watchDrawerPosition(A){A.onPositionChanged.pipe(pA(this._drawers.changes)).subscribe(()=>{Le({read:()=>this._validateDrawers()},{injector:this._injector})})}_watchDrawerMode(A){A._modeChanged.pipe(pA(ye(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=O({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(i,o,n){if(i&1&&(XA(n,CD,5),XA(n,BD,5)),i&2){let g;$(g=AA())&&(o._content=g.first),$(g=AA())&&(o._allDrawers=g)}},viewQuery:function(i,o){if(i&1&&QA(CD,5),i&2){let n;$(n=AA())&&(o._userContent=n.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(i,o){i&2&&nA("mat-drawer-container-explicit-backdrop",o._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[FA([{provide:BF,useExisting:t}])],ngContentSelectors:LP,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&&(OA(GP),x(0,_P,1,2,"div",0),IA(1),IA(2,1),x(3,KP,2,0,"mat-drawer-content")),i&2&&(_(o.hasBackdrop?0:-1),D(3),_(o._content?-1:3))},dependencies:[CD],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 QF=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=X({type:t});static \u0275inj=j({imports:[mA,$o,$o,mA]})}return t})();var dD=["*"];function JP(t,e){t&1&&IA(0)}var HP=["tabListContainer"],TP=["tabList"],OP=["tabListInner"],PP=["nextPaginator"],ZP=["previousPaginator"],qP=t=>({animationDuration:t}),VP=(t,e)=>({value:t,params:e});function WP(t,e){}var zP=["tabBodyWrapper"],jP=["tabHeader"];function XP(t,e){}function $P(t,e){if(t&1&&x(0,XP,0,0,"ng-template",12),t&2){let A=y().$implicit;L("cdkPortalOutlet",A.templateLabel)}}function A1(t,e){if(t&1&&k(0),t&2){let A=y().$implicit;KA(A.textLabel)}}function e1(t,e){if(t&1){let A=rA();d(0,"div",7,2),G("click",function(){let o=Y(A),n=o.$implicit,g=o.$index,r=y(),s=_e(1);return J(r._handleClick(n,s,g))})("cdkFocusChange",function(o){let n=Y(A).$index,g=y();return J(g._tabFocusChanged(o,n))}),P(2,"span",8)(3,"div",9),d(4,"span",10)(5,"span",11),x(6,$P,1,1,null,12)(7,A1,1,1),h()()()}if(t&2){let A=e.$implicit,i=e.$index,o=_e(1),n=y();Je(A.labelClass),nA("mdc-tab--active",n.selectedIndex===i),L("id",n._getTabLabelId(i))("disabled",A.disabled)("fitInkBarToContent",n.fitInkBarToContent),aA("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),D(3),L("matRippleTrigger",o)("matRippleDisabled",A.disabled||n.disableRipple),D(3),_(A.templateLabel?6:7)}}function t1(t,e){t&1&&IA(0)}function i1(t,e){if(t&1){let A=rA();d(0,"mat-tab-body",13),G("_onCentered",function(){Y(A);let o=y();return J(o._removeTabBodyWrapperHeight())})("_onCentering",function(o){Y(A);let n=y();return J(n._setTabBodyWrapperHeight(o))}),h()}if(t&2){let A=e.$implicit,i=e.$index,o=y();Je(A.bodyClass),nA("mat-mdc-tab-body-active",o.selectedIndex===i),L("id",o._getTabContentId(i))("content",A.content)("position",A.position)("origin",A.origin)("animationDuration",o.animationDuration)("preserveContent",o.preserveContent),aA("tabindex",o.contentTabIndex!=null&&o.selectedIndex===i?o.contentTabIndex:null)("aria-labelledby",o._getTabLabelId(i))("aria-hidden",o.selectedIndex!==i)}}var o1=new F("MatTabContent"),n1=(()=>{class t{template=B(ge);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=T({type:t,selectors:[["","matTabContent",""]],features:[FA([{provide:o1,useExisting:t}])]})}return t})(),g1=new F("MatTabLabel"),lF=new F("MAT_TAB"),hD=(()=>{class t extends fk{_closestTab=B(lF,{optional:!0});static \u0275fac=(()=>{let A;return function(o){return(A||(A=jA(t)))(o||t)}})();static \u0275dir=T({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[FA([{provide:g1,useExisting:t}]),dA]})}return t})(),dF=new F("MAT_TAB_GROUP"),uD=(()=>{class t{_viewContainerRef=B(Qe);_closestTabGroup=B(dF,{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 U;position=null;origin=null;isActive=!1;constructor(){B(ke).load(xt)}ngOnChanges(A){(A.hasOwnProperty("textLabel")||A.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new Qi(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=O({type:t,selectors:[["mat-tab"]],contentQueries:function(i,o,n){if(i&1&&(XA(n,hD,5),XA(n,n1,7,ge)),i&2){let g;$(g=AA())&&(o.templateLabel=g.first),$(g=AA())&&(o._explicitContent=g.first)}},viewQuery:function(i,o){if(i&1&&QA(ge,7),i&2){let n;$(n=AA())&&(o._implicitContent=n.first)}},hostAttrs:["hidden",""],inputs:{disabled:[2,"disabled","disabled",eA],textLabel:[0,"label","textLabel"],ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],features:[FA([{provide:lF,useExisting:t}]),TA],ngContentSelectors:dD,decls:1,vars:0,template:function(i,o){i&1&&(OA(),x(0,JP,1,0,"ng-template"))},encapsulation:2})}return t})(),ED="mdc-tab-indicator--active",EF="mdc-tab-indicator--no-transition",cD=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}}},r1=(()=>{class t{_elementRef=B(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(ED);return}let o=i.getBoundingClientRect(),n=A.width/o.width,g=A.left-o.left;i.classList.add(EF),this._inkBarContentElement.style.setProperty("transform",`translateX(${g}px) scaleX(${n})`),i.getBoundingClientRect(),i.classList.remove(EF),i.classList.add(ED),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(ED)}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=T({type:t,inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",eA]}})}return t})();var hF=(()=>{class t extends r1{elementRef=B(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=jA(t)))(o||t)}})();static \u0275dir=T({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(i,o){i&2&&(aA("aria-disabled",!!o.disabled),nA("mat-mdc-tab-disabled",o.disabled))},inputs:{disabled:[2,"disabled","disabled",eA]},features:[dA]})}return t})(),cF={passive:!0},s1=650,a1=100,I1=(()=>{class t{_elementRef=B(q);_changeDetectorRef=B(UA);_viewportRuler=B(Bi);_dir=B(Se,{optional:!0});_ngZone=B(tA);_platform=B(ZA);_sharedResizeObserver=B(GE);_injector=B(yA);_renderer=B(ae);_animationMode=B(Ae,{optional:!0});_eventCleanups;_scrollDistance=0;_selectedIndexChanged=!1;_destroyed=new U;_showPaginationControls=!1;_disableScrollAfter=!0;_disableScrollBefore=!0;_tabLabelCount;_scrollDistanceChanged;_keyManager;_currentTextContent;_stopScrolling=new U;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 z;indexFocused=new z;constructor(){this._eventCleanups=this._ngZone.runOutsideAngular(()=>[this._renderer.listen(this._elementRef.nativeElement,"mouseleave",()=>this._stopInterval())])}ngAfterViewInit(){this._eventCleanups.push(zu(this._renderer,this._previousPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("before"),cF),zu(this._renderer,this._nextPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("after"),cF))}ngAfterContentInit(){let A=this._dir?this._dir.change:iA("ltr"),i=this._sharedResizeObserver.observe(this._elementRef.nativeElement).pipe(pi(32),pA(this._destroyed)),o=this._viewportRuler.change(150).pipe(pA(this._destroyed)),n=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new dE(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),Le(n,{injector:this._injector}),ye(A,o,i,this._items.changes,this._itemsResized()).pipe(pA(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"?xe:this._items.changes.pipe(Me(this._items),Ie(A=>new BA(i=>this._ngZone.runOutsideAngular(()=>{let o=new ResizeObserver(n=>i.next(n));return A.forEach(n=>o.observe(n.elementRef.nativeElement)),()=>{o.disconnect()}}))),Wn(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(!ze(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 a=this.scrollDistance,Q=this.scrollDistance+o;r<a?this.scrollDistance-=a-r:s>Q&&(this.scrollDistance+=Math.min(s-Q,r-a))}_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(),Vn(s1,a1).pipe(pA(ye(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=T({type:t,inputs:{disablePagination:[2,"disablePagination","disablePagination",eA],selectedIndex:[2,"selectedIndex","selectedIndex",de]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"}})}return t})(),C1=(()=>{class t extends I1{_items;_tabListContainer;_tabList;_tabListInner;_nextPaginator;_previousPaginator;_inkBar;ariaLabel;ariaLabelledby;disableRipple=!1;ngAfterContentInit(){this._inkBar=new cD(this._items),super.ngAfterContentInit()}_itemSelected(A){A.preventDefault()}static \u0275fac=(()=>{let A;return function(o){return(A||(A=jA(t)))(o||t)}})();static \u0275cmp=O({type:t,selectors:[["mat-tab-header"]],contentQueries:function(i,o,n){if(i&1&&XA(n,hF,4),i&2){let g;$(g=AA())&&(o._items=g)}},viewQuery:function(i,o){if(i&1&&(QA(HP,7),QA(TP,7),QA(OP,7),QA(PP,5),QA(ZP,5)),i&2){let n;$(n=AA())&&(o._tabListContainer=n.first),$(n=AA())&&(o._tabList=n.first),$(n=AA())&&(o._tabListInner=n.first),$(n=AA())&&(o._nextPaginator=n.first),$(n=AA())&&(o._previousPaginator=n.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(i,o){i&2&&nA("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",eA]},features:[dA],ngContentSelectors:dD,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=rA();OA(),d(0,"div",5,0),G("click",function(){return Y(n),J(o._handlePaginatorClick("before"))})("mousedown",function(r){return Y(n),J(o._handlePaginatorPress("before",r))})("touchend",function(){return Y(n),J(o._stopInterval())}),P(2,"div",6),h(),d(3,"div",7,1),G("keydown",function(r){return Y(n),J(o._handleKeydown(r))}),d(5,"div",8,2),G("cdkObserveContent",function(){return Y(n),J(o._onContentChanges())}),d(7,"div",9,3),IA(9),h()()(),d(10,"div",10,4),G("mousedown",function(r){return Y(n),J(o._handlePaginatorPress("after",r))})("click",function(){return Y(n),J(o._handlePaginatorClick("after"))})("touchend",function(){return Y(n),J(o._stopInterval())}),P(12,"div",6),h()}i&2&&(nA("mat-mdc-tab-header-pagination-disabled",o._disableScrollBefore),L("matRippleDisabled",o._disableScrollBefore||o.disableRipple),D(3),nA("_mat-animation-noopable",o._animationMode==="NoopAnimations"),D(2),aA("aria-label",o.ariaLabel||null)("aria-labelledby",o.ariaLabelledby||null),D(5),nA("mat-mdc-tab-header-pagination-disabled",o._disableScrollAfter),L("matRippleDisabled",o._disableScrollAfter||o.disableRipple))},dependencies:[Eo,aE],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})(),B1=new F("MAT_TABS_CONFIG"),Q1={translateTab:lo("translateTab",[li("center, void, left-origin-center, right-origin-center",Ue({transform:"none",visibility:"visible"})),li("left",Ue({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),li("right",Ue({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),Yt("* => left, * => right, left => center, right => center",ii("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),Yt("void => left-origin-center",[Ue({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),ii("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),Yt("void => right-origin-center",[Ue({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),ii("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},E1=(()=>{class t extends Ei{_host=B(uF);_centeringSub=GA.EMPTY;_leavingSub=GA.EMPTY;constructor(){super()}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(Me(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=T({type:t,selectors:[["","matTabBodyHost",""]],features:[dA]})}return t})(),uF=(()=>{class t{_elementRef=B(q);_dir=B(Se,{optional:!0});_positionIndex;_dirChangeSubscription=GA.EMPTY;_position;_translateTabComplete=new U;_onCentering=new z;_beforeCentering=new z;_afterLeavingCenter=new z;_onCentered=new z(!0);_portalHost;_content;origin;animationDuration="500ms";preserveContent=!1;set position(A){this._positionIndex=A,this._computePositionAnimationState()}constructor(){if(this._dir){let A=B(UA);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=O({type:t,selectors:[["mat-tab-body"]],viewQuery:function(i,o){if(i&1&&QA(Ei,5),i&2){let n;$(n=AA())&&(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=rA();d(0,"div",1,0),G("@translateTab.start",function(r){return Y(n),J(o._onTranslateTabStarted(r))})("@translateTab.done",function(r){return Y(n),J(o._translateTabComplete.next(r))}),x(2,WP,0,0,"ng-template",2),h()}i&2&&L("@translateTab",wn(3,VP,o._position,pn(1,qP,o.animationDuration)))},dependencies:[E1,An],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:[Q1.translateTab]}})}return t})(),c1=!0,mF=(()=>{class t{_elementRef=B(q);_changeDetectorRef=B(UA);_animationMode=B(Ae,{optional:!0});_allTabs;_tabBodyWrapper;_tabHeader;_tabs=new bi;_indexToSelect=0;_lastFocusedTabIndex=null;_tabBodyWrapperHeight=0;_tabsSubscription=GA.EMPTY;_tabLabelSubscription=GA.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(!c1)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 z;focusChange=new z;animationDone=new z;selectedTabChange=new z(!0);_groupId;_isServer=!B(ZA).isBrowser;constructor(){let A=B(B1,{optional:!0});this._groupId=B(re).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(Me(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 lD;return i.index=A,this._tabs&&this._tabs.length&&(i.tab=this._tabs.toArray()[A]),i}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=ye(...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=O({type:t,selectors:[["mat-tab-group"]],contentQueries:function(i,o,n){if(i&1&&XA(n,uD,5),i&2){let g;$(g=AA())&&(o._allTabs=g)}},viewQuery:function(i,o){if(i&1&&(QA(zP,5),QA(jP,5)),i&2){let n;$(n=AA())&&(o._tabBodyWrapper=n.first),$(n=AA())&&(o._tabHeader=n.first)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:11,hostBindings:function(i,o){i&2&&(aA("mat-align-tabs",o.alignTabs),Je("mat-"+(o.color||"primary")),qe("--mat-tab-animation-duration",o.animationDuration),nA("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",eA],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",eA],alignTabs:[0,"mat-align-tabs","alignTabs"],dynamicHeight:[2,"dynamicHeight","dynamicHeight",eA],selectedIndex:[2,"selectedIndex","selectedIndex",de],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[2,"contentTabIndex","contentTabIndex",de],disablePagination:[2,"disablePagination","disablePagination",eA],disableRipple:[2,"disableRipple","disableRipple",eA],preserveContent:[2,"preserveContent","preserveContent",eA],backgroundColor:"backgroundColor",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"]},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],features:[FA([{provide:dF,useExisting:t}])],ngContentSelectors:dD,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=rA();OA(),d(0,"mat-tab-header",3,0),G("indexFocused",function(r){return Y(n),J(o._focusChanged(r))})("selectFocusedIndex",function(r){return Y(n),J(o.selectedIndex=r)}),fe(2,e1,8,17,"div",4,De),h(),x(4,t1,1,0),d(5,"div",5,1),fe(7,i1,1,13,"mat-tab-body",6,De),h()}i&2&&(L("selectedIndex",o.selectedIndex||0)("disableRipple",o.disableRipple)("disablePagination",o.disablePagination)("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledby),D(2),pe(o._tabs),D(2),_(o._isServer?4:-1),D(),nA("_mat-animation-noopable",o._animationMode==="NoopAnimations"),D(2),pe(o._tabs))},dependencies:[C1,hF,rk,Eo,Ei,uF],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})(),lD=class{index;tab};var DF=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=X({type:t});static \u0275inj=j({imports:[mA,mA]})}return t})();function d1(t,e){t&1&&P(0,"div",2)}var h1=new F("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");var pF=(()=>{class t{_elementRef=B(q);_ngZone=B(tA);_changeDetectorRef=B(UA);_renderer=B(ae);_cleanupTransitionEnd;_animationMode=B(Ae,{optional:!0});constructor(){let A=B(h1,{optional:!0});this._isNoopAnimation=this._animationMode==="NoopAnimations",A&&(A.color&&(this.color=this._defaultColor=A.color),this.mode=A.mode||this.mode)}_isNoopAnimation=!1;get color(){return this._color||this._defaultColor}set color(A){this._color=A}_color;_defaultColor="primary";get value(){return this._value}set value(A){this._value=fF(A||0),this._changeDetectorRef.markForCheck()}_value=0;get bufferValue(){return this._bufferValue||0}set bufferValue(A){this._bufferValue=fF(A||0),this._changeDetectorRef.markForCheck()}_bufferValue=0;animationEnd=new z;get mode(){return this._mode}set mode(A){this._mode=A,this._changeDetectorRef.markForCheck()}_mode="determinate";ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._cleanupTransitionEnd=this._renderer.listen(this._elementRef.nativeElement,"transitionend",this._transitionendHandler)})}ngOnDestroy(){this._cleanupTransitionEnd?.()}_getPrimaryBarTransform(){return`scaleX(${this._isIndeterminate()?1:this.value/100})`}_getBufferBarFlexBasis(){return`${this.mode==="buffer"?this.bufferValue:100}%`}_isIndeterminate(){return this.mode==="indeterminate"||this.mode==="query"}_transitionendHandler=A=>{this.animationEnd.observers.length===0||!A.target||!A.target.classList.contains("mdc-linear-progress__primary-bar")||(this.mode==="determinate"||this.mode==="buffer")&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))};static \u0275fac=function(i){return new(i||t)};static \u0275cmp=O({type:t,selectors:[["mat-progress-bar"]],hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-mdc-progress-bar","mdc-linear-progress"],hostVars:10,hostBindings:function(i,o){i&2&&(aA("aria-valuenow",o._isIndeterminate()?null:o.value)("mode",o.mode),Je("mat-"+o.color),nA("_mat-animation-noopable",o._isNoopAnimation)("mdc-linear-progress--animation-ready",!o._isNoopAnimation)("mdc-linear-progress--indeterminate",o._isIndeterminate()))},inputs:{color:"color",value:[2,"value","value",de],bufferValue:[2,"bufferValue","bufferValue",de],mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],decls:7,vars:5,consts:[["aria-hidden","true",1,"mdc-linear-progress__buffer"],[1,"mdc-linear-progress__buffer-bar"],[1,"mdc-linear-progress__buffer-dots"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__primary-bar"],[1,"mdc-linear-progress__bar-inner"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__secondary-bar"]],template:function(i,o){i&1&&(d(0,"div",0),P(1,"div",1),x(2,d1,1,0,"div",2),h(),d(3,"div",3),P(4,"span",4),h(),d(5,"div",5),P(6,"span",4),h()),i&2&&(D(),qe("flex-basis",o._getBufferBarFlexBasis()),D(),_(o.mode==="buffer"?2:-1),D(),qe("transform",o._getPrimaryBarTransform()))},styles:[`.mat-mdc-progress-bar{display:block;text-align:start}.mat-mdc-progress-bar[mode=query]{transform:scaleX(-1)}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-dots,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__secondary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__bar-inner.mdc-linear-progress__bar-inner{animation:none}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-bar{transition:transform 1ms}.mdc-linear-progress{position:relative;width:100%;transform:translateZ(0);outline:1px solid rgba(0,0,0,0);overflow-x:hidden;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);height:max(var(--mdc-linear-progress-track-height, 4px),var(--mdc-linear-progress-active-indicator-height, 4px))}@media(forced-colors: active){.mdc-linear-progress{outline-color:CanvasText}}.mdc-linear-progress__bar{position:absolute;top:0;bottom:0;margin:auto 0;width:100%;animation:none;transform-origin:top left;transition:transform 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);height:var(--mdc-linear-progress-active-indicator-height, 4px)}.mdc-linear-progress--indeterminate .mdc-linear-progress__bar{transition:none}[dir=rtl] .mdc-linear-progress__bar{right:0;transform-origin:center right}.mdc-linear-progress__bar-inner{display:inline-block;position:absolute;width:100%;animation:none;border-top-style:solid;border-color:var(--mdc-linear-progress-active-indicator-color, var(--mat-sys-primary));border-top-width:var(--mdc-linear-progress-active-indicator-height, 4px)}.mdc-linear-progress__buffer{display:flex;position:absolute;top:0;bottom:0;margin:auto 0;width:100%;overflow:hidden;height:var(--mdc-linear-progress-track-height, 4px);border-radius:var(--mdc-linear-progress-track-shape, var(--mat-sys-corner-none))}.mdc-linear-progress__buffer-dots{-webkit-mask-image:url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E");background-repeat:repeat-x;flex:auto;transform:rotate(180deg);animation:mdc-linear-progress-buffering 250ms infinite linear;background-color:var(--mdc-linear-progress-track-color, var(--mat-sys-surface-variant))}@media(forced-colors: active){.mdc-linear-progress__buffer-dots{background-color:ButtonBorder}}[dir=rtl] .mdc-linear-progress__buffer-dots{animation:mdc-linear-progress-buffering-reverse 250ms infinite linear;transform:rotate(0)}.mdc-linear-progress__buffer-bar{flex:0 1 100%;transition:flex-basis 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);background-color:var(--mdc-linear-progress-track-color, var(--mat-sys-surface-variant))}.mdc-linear-progress__primary-bar{transform:scaleX(0)}.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{left:-145.166611%}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation:mdc-linear-progress-primary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-primary-indeterminate-scale 2s infinite linear}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation-name:mdc-linear-progress-primary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{right:-145.166611%;left:auto}.mdc-linear-progress__secondary-bar{display:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{left:-54.888891%;display:block}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation:mdc-linear-progress-secondary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-secondary-indeterminate-scale 2s infinite linear}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation-name:mdc-linear-progress-secondary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{right:-54.888891%;left:auto}@keyframes mdc-linear-progress-buffering{from{transform:rotate(180deg) translateX(calc(var(--mdc-linear-progress-track-height, 4px) * -2.5))}}@keyframes mdc-linear-progress-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mdc-linear-progress-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mdc-linear-progress-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-primary-indeterminate-translate-reverse{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(-83.67142%)}100%{transform:translateX(-200.611057%)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate-reverse{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(-37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(-84.386165%)}100%{transform:translateX(-160.277782%)}}@keyframes mdc-linear-progress-buffering-reverse{from{transform:translateX(-10px)}}`],encapsulation:2,changeDetection:0})}return t})();function fF(t,e=0,A=100){return Math.max(e,Math.min(A,t))}var wF=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=X({type:t});static \u0275inj=j({imports:[mA]})}return t})();function fD(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Jg=fD();function FF(t){Jg=t}var KI={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(wt.caret,"$1"),A=A.replace(o,g),i},getRegex:()=>new RegExp(A,e)};return i}var wt={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")},m1=/^(?:[ \t]*(?:\n|$))+/,D1=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,f1=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,xI=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,p1=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,pD=/(?:[*+-]|\d{1,9}[.)])/,vF=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,SF=ie(vF).replace(/bull/g,pD).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(),w1=ie(vF).replace(/bull/g,pD).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(),wD=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,y1=/^[^\n]+/,yD=/(?!\s*\])(?:\\.|[^\[\]\\])+/,M1=ie(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",yD).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),R1=ie(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,pD).getRegex(),sc="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",MD=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,k1=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",MD).replace("tag",sc).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),NF=ie(wD).replace("hr",xI).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",sc).getRegex(),b1=ie(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",NF).getRegex(),RD={blockquote:b1,code:D1,def:M1,fences:f1,heading:p1,hr:xI,html:k1,lheading:SF,list:R1,newline:m1,paragraph:NF,table:KI,text:y1},yF=ie("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",xI).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",sc).getRegex(),F1=uA(b({},RD),{lheading:w1,table:yF,paragraph:ie(wD).replace("hr",xI).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",yF).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",sc).getRegex()}),v1=uA(b({},RD),{html:ie(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",MD).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:KI,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ie(wD).replace("hr",xI).replace("heading",` *#{1,6} *[^
]`).replace("lheading",SF).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()}),S1=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,N1=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,GF=/^( {2,}|\\)\n(?!\s*$)/,G1=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,ac=/[\p{P}\p{S}]/u,kD=/[\s\p{P}\p{S}]/u,LF=/[^\s\p{P}\p{S}]/u,L1=ie(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,kD).getRegex(),_F=/(?!~)[\p{P}\p{S}]/u,_1=/(?!~)[\s\p{P}\p{S}]/u,K1=/(?:[^\s\p{P}\p{S}]|~)/u,U1=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,KF=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,x1=ie(KF,"u").replace(/punct/g,ac).getRegex(),Y1=ie(KF,"u").replace(/punct/g,_F).getRegex(),UF="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",J1=ie(UF,"gu").replace(/notPunctSpace/g,LF).replace(/punctSpace/g,kD).replace(/punct/g,ac).getRegex(),H1=ie(UF,"gu").replace(/notPunctSpace/g,K1).replace(/punctSpace/g,_1).replace(/punct/g,_F).getRegex(),T1=ie("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,LF).replace(/punctSpace/g,kD).replace(/punct/g,ac).getRegex(),O1=ie(/\\(punct)/,"gu").replace(/punct/g,ac).getRegex(),P1=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(),Z1=ie(MD).replace("(?:-->|$)","-->").getRegex(),q1=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",Z1).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),rc=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,V1=ie(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",rc).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),xF=ie(/^!?\[(label)\]\[(ref)\]/).replace("label",rc).replace("ref",yD).getRegex(),YF=ie(/^!?\[(ref)\](?:\[\])?/).replace("ref",yD).getRegex(),W1=ie("reflink|nolink(?!\\()","g").replace("reflink",xF).replace("nolink",YF).getRegex(),bD={_backpedal:KI,anyPunctuation:O1,autolink:P1,blockSkip:U1,br:GF,code:N1,del:KI,emStrongLDelim:x1,emStrongRDelimAst:J1,emStrongRDelimUnd:T1,escape:S1,link:V1,nolink:YF,punctuation:L1,reflink:xF,reflinkSearch:W1,tag:q1,text:G1,url:KI},z1=uA(b({},bD),{link:ie(/^!?\[(label)\]\((.*?)\)/).replace("label",rc).getRegex(),reflink:ie(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",rc).getRegex()}),mD=uA(b({},bD),{emStrongRDelimAst:H1,emStrongLDelim:Y1,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.!#$%&'*+\/=?_`{\|}~-]+@)))/}),j1=uA(b({},mD),{br:ie(GF).replace("{2,}","*").getRegex(),text:ie(mD.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()}),gc={normal:RD,gfm:F1,pedantic:v1},LI={normal:bD,gfm:mD,breaks:j1,pedantic:z1},X1={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},MF=t=>X1[t];function Mo(t,e){if(e){if(wt.escapeTest.test(t))return t.replace(wt.escapeReplace,MF)}else if(wt.escapeTestNoEncode.test(t))return t.replace(wt.escapeReplaceNoEncode,MF);return t}function RF(t){try{t=encodeURI(t).replace(wt.percentDecode,"%")}catch{return null}return t}function kF(t,e){let A=t.replace(wt.findPipe,(n,g,r)=>{let s=!1,a=g;for(;--a>=0&&r[a]==="\\";)s=!s;return s?"|":" |"}),i=A.split(wt.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(wt.slashPipe,"|");return i}function _I(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 $1(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 bF(t,e,A,i,o){let n=e.href,g=e.title||null,r=t[1].replace(o.other.outputLinkReplace,"$1");i.state.inLink=!0;let s={type:t[0].charAt(0)==="!"?"image":"link",raw:A,href:n,title:g,text:r,tokens:i.inlineTokens(r)};return i.state.inLink=!1,s}function AZ(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 ps=class{options;rules;lexer;constructor(e){this.options=e||Jg}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:_I(i,`
`)}}}fences(e){let A=this.rules.block.fences.exec(e);if(A){let i=A[0],o=AZ(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=_I(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:_I(A[0],`
`)}}blockquote(e){let A=this.rules.block.blockquote.exec(e);if(A){let i=_I(A[0],`
`).split(`
`),o="",n="",g=[];for(;i.length>0;){let r=!1,s=[],a;for(a=0;a<i.length;a++)if(this.rules.other.blockquoteStart.test(i[a]))s.push(i[a]),r=!0;else if(!r)s.push(i[a]);else break;i=i.slice(a);let Q=s.join(`
`),c=Q.replace(this.rules.other.blockquoteSetextReplace,`
    $1`).replace(this.rules.other.blockquoteSetextReplace2,"");o=o?`${o}
${Q}`:Q,n=n?`${n}
${c}`:c;let f=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,g,!0),this.lexer.state.top=f,i.length===0)break;let m=g.at(-1);if(m?.type==="code")break;if(m?.type==="blockquote"){let p=m,M=p.raw+`
`+i.join(`
`),K=this.blockquote(M);g[g.length-1]=K,o=o.substring(0,o.length-p.raw.length)+K.raw,n=n.substring(0,n.length-p.text.length)+K.text;break}else if(m?.type==="list"){let p=m,M=p.raw+`
`+i.join(`
`),K=this.list(M);g[g.length-1]=K,o=o.substring(0,o.length-m.raw.length)+K.raw,n=n.substring(0,n.length-p.raw.length)+K.raw,i=M.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 a=!1,Q="",c="";if(!(A=g.exec(e))||this.rules.block.hr.test(e))break;Q=A[0],e=e.substring(Q.length);let f=A[2].split(`
`,1)[0].replace(this.rules.other.listReplaceTabs,DA=>" ".repeat(3*DA.length)),m=e.split(`
`,1)[0],p=!f.trim(),M=0;if(this.options.pedantic?(M=2,c=f.trimStart()):p?M=A[1].length+1:(M=A[2].search(this.rules.other.nonSpaceChar),M=M>4?1:M,c=f.slice(M),M+=A[1].length),p&&this.rules.other.blankLine.test(m)&&(Q+=m+`
`,e=e.substring(m.length+1),a=!0),!a){let DA=this.rules.other.nextBulletRegex(M),YA=this.rules.other.hrRegex(M),wA=this.rules.other.fencesBeginRegex(M),yt=this.rules.other.headingBeginRegex(M),we=this.rules.other.htmlBeginRegex(M);for(;e;){let Fe=e.split(`
`,1)[0],he;if(m=Fe,this.options.pedantic?(m=m.replace(this.rules.other.listReplaceNesting,"  "),he=m):he=m.replace(this.rules.other.tabCharGlobal,"    "),wA.test(m)||yt.test(m)||we.test(m)||DA.test(m)||YA.test(m))break;if(he.search(this.rules.other.nonSpaceChar)>=M||!m.trim())c+=`
`+he.slice(M);else{if(p||f.replace(this.rules.other.tabCharGlobal,"    ").search(this.rules.other.nonSpaceChar)>=4||wA.test(f)||yt.test(f)||YA.test(f))break;c+=`
`+m}!p&&!m.trim()&&(p=!0),Q+=Fe+`
`,e=e.substring(Fe.length+1),f=he.slice(M)}}n.loose||(r?n.loose=!0:this.rules.other.doubleBlankLine.test(Q)&&(r=!0));let K=null,W;this.options.gfm&&(K=this.rules.other.listIsTask.exec(c),K&&(W=K[0]!=="[ ] ",c=c.replace(this.rules.other.listReplaceTask,""))),n.items.push({type:"list_item",raw:Q,task:!!K,checked:W,loose:!1,text:c,tokens:[]}),n.raw+=Q}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 a=0;a<n.items.length;a++)if(this.lexer.state.top=!1,n.items[a].tokens=this.lexer.blockTokens(n.items[a].text,[]),!n.loose){let Q=n.items[a].tokens.filter(f=>f.type==="space"),c=Q.length>0&&Q.some(f=>this.rules.other.anyLine.test(f.raw));n.loose=c}if(n.loose)for(let a=0;a<n.items.length;a++)n.items[a].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=kF(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(kF(r,g.header.length).map((s,a)=>({text:s,tokens:this.lexer.inline(s),header:!1,align:g.align[a]})));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=_I(i.slice(0,-1),"\\");if((i.length-g.length)%2===0)return}else{let g=$1(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)),bF(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 bF(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,a=g,Q=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]){a+=s;continue}else if((o[5]||o[6])&&g%3&&!((g+s)%3)){Q+=s;continue}if(a-=s,a>0)continue;s=Math.min(s,s+a+Q);let f=[...o[0]][0].length,m=e.slice(0,g+o.index+f+s);if(Math.min(g,s)%2){let M=m.slice(1,-1);return{type:"em",raw:m,text:M,tokens:this.lexer.inlineTokens(M)}}let p=m.slice(2,-2);return{type:"strong",raw:m,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}}}},Ui=class t{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Jg,this.options.tokenizer=this.options.tokenizer||new ps,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:wt,block:gc.normal,inline:LI.normal};this.options.pedantic?(A.block=gc.pedantic,A.inline=LI.pedantic):this.options.gfm&&(A.block=gc.gfm,this.options.breaks?A.inline=LI.breaks:A.inline=LI.gfm),this.tokenizer.rules=A}static get rules(){return{block:gc,inline:LI}}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(wt.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(wt.tabCharGlobal,"    ").replace(wt.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(a=>{s=a.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(a=>(r=a.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 a=A.at(-1);r.type==="text"&&a?.type==="text"?(a.raw+=r.raw,a.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 a=1/0,Q=e.slice(1),c;this.options.extensions.startInline.forEach(f=>{c=f.call({lexer:this},Q),typeof c=="number"&&c>=0&&(a=Math.min(a,c))}),a<1/0&&a>=0&&(s=e.substring(0,a+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 a=A.at(-1);a?.type==="text"?(a.raw+=r.raw,a.text+=r.text):A.push(r);continue}if(e){let a="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(a);break}else throw new Error(a)}}return A}},Ro=class{options;parser;constructor(e){this.options=e||Jg}space(e){return""}code({text:e,lang:A,escaped:i}){let o=(A||"").match(wt.notSpaceStart)?.[0],n=e.replace(wt.endingNewline,"")+`
`;return o?'<pre><code class="language-'+Mo(o)+'">'+(i?n:Mo(n,!0))+`</code></pre>
`:"<pre><code>"+(i?n:Mo(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+" "+Mo(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>${Mo(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=RF(e);if(n===null)return o;e=n;let g='<a href="'+e+'"';return A&&(g+=' title="'+Mo(A)+'"'),g+=">"+o+"</a>",g}image({href:e,title:A,text:i,tokens:o}){o&&(i=this.parser.parseInline(o,this.parser.textRenderer));let n=RF(e);if(n===null)return Mo(i);e=n;let g=`<img src="${e}" alt="${i}"`;return A&&(g+=` title="${Mo(A)}"`),g+=">",g}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:Mo(e.text)}},UI=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""}},xi=class t{options;renderer;textRenderer;constructor(e){this.options=e||Jg,this.options.renderer=this.options.renderer||new Ro,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new UI}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}},fs=class{options;block;constructor(e){this.options=e||Jg}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}provideLexer(){return this.block?Ui.lex:Ui.lexInline}provideParser(){return this.block?xi.parse:xi.parseInline}},DD=class{defaults=fD();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=xi;Renderer=Ro;TextRenderer=UI;Lexer=Ui;Tokenizer=ps;Hooks=fs;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=b({},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 Ro(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],a=n[r];n[r]=(...Q)=>{let c=s.apply(n,Q);return c===!1&&(c=a.apply(n,Q)),c||""}}o.renderer=n}if(i.tokenizer){let n=this.defaults.tokenizer||new ps(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],a=n[r];n[r]=(...Q)=>{let c=s.apply(n,Q);return c===!1&&(c=a.apply(n,Q)),c}}o.tokenizer=n}if(i.hooks){let n=this.defaults.hooks||new fs;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],a=n[r];fs.passThroughHooks.has(g)?n[r]=Q=>{if(this.defaults.async)return Promise.resolve(s.call(n,Q)).then(f=>a.call(n,f));let c=s.call(n,Q);return a.call(n,c)}:n[r]=(...Q)=>{let c=s.apply(n,Q);return c===!1&&(c=a.apply(n,Q)),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=b(b({},this.defaults),o)}),this}setOptions(e){return this.defaults=b(b({},this.defaults),e),this}lexer(e,A){return Ui.lex(e,A??this.defaults)}parser(e,A){return xi.parse(e,A??this.defaults)}parseMarkdown(e){return(i,o)=>{let n=b({},o),g=b(b({},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?Ui.lex:Ui.lexInline,a=g.hooks?g.hooks.provideParser():e?xi.parse:xi.parseInline;if(g.async)return Promise.resolve(g.hooks?g.hooks.preprocess(i):i).then(Q=>s(Q,g)).then(Q=>g.hooks?g.hooks.processAllTokens(Q):Q).then(Q=>g.walkTokens?Promise.all(this.walkTokens(Q,g.walkTokens)).then(()=>Q):Q).then(Q=>a(Q,g)).then(Q=>g.hooks?g.hooks.postprocess(Q):Q).catch(r);try{g.hooks&&(i=g.hooks.preprocess(i));let Q=s(i,g);g.hooks&&(Q=g.hooks.processAllTokens(Q)),g.walkTokens&&this.walkTokens(Q,g.walkTokens);let c=a(Q,g);return g.hooks&&(c=g.hooks.postprocess(c)),c}catch(Q){return r(Q)}}}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>"+Mo(i.message+"",!0)+"</pre>";return A?Promise.resolve(o):o}if(A)return Promise.reject(i);throw i}}},Yg=new DD;function ee(t,e){return Yg.parse(t,e)}ee.options=ee.setOptions=function(t){return Yg.setOptions(t),ee.defaults=Yg.defaults,FF(ee.defaults),ee};ee.getDefaults=fD;ee.defaults=Jg;ee.use=function(...t){return Yg.use(...t),ee.defaults=Yg.defaults,FF(ee.defaults),ee};ee.walkTokens=function(t,e){return Yg.walkTokens(t,e)};ee.parseInline=Yg.parseInline;ee.Parser=xi;ee.parser=xi.parse;ee.Renderer=Ro;ee.TextRenderer=UI;ee.Lexer=Ui;ee.lexer=Ui.lex;ee.Tokenizer=ps;ee.Hooks=fs;ee.parse=ee;var DCA=ee.options,fCA=ee.setOptions,pCA=ee.use,wCA=ee.walkTokens,yCA=ee.parseInline;var MCA=xi.parse,RCA=Ui.lex;var eZ=["*"],tZ="Copy",iZ="Copied",oZ=(()=>{class t{constructor(){this._buttonClick$=new U,this.copied$=this._buttonClick$.pipe(Ie(()=>ye(iA(!0),Vn(3e3).pipe(nr(!1)))),wi(),Go(1)),this.copiedText$=this.copied$.pipe(Me(!1),sA(A=>A?iZ:tZ))}onCopyToClipboardClick(){this._buttonClick$.next()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=O({type:t,selectors:[["markdown-clipboard"]],decls:4,vars:7,consts:[[1,"markdown-clipboard-button",3,"click"]],template:function(i,o){i&1&&(d(0,"button",0),To(1,"async"),G("click",function(){return o.onCopyToClipboardClick()}),k(2),To(3,"async"),h()),i&2&&(nA("copied",br(1,3,o.copied$)),D(2),KA(br(3,5,o.copiedText$)))},dependencies:[wa],encapsulation:2,changeDetection:0})}}return t})(),nZ=new F("CLIPBOARD_OPTIONS");var FD=function(t){return t.CommandLine="command-line",t.LineHighlight="line-highlight",t.LineNumbers="line-numbers",t}(FD||{}),JF=new F("MARKED_EXTENSIONS"),gZ=new F("MARKED_OPTIONS"),rZ=new F("MERMAID_OPTIONS"),sZ="[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",aZ="[ngx-markdown] When using the `katex` attribute you *have to* include KaTeX files to `angular.json` or use imports. See README for more information",IZ="[ngx-markdown] When using the `mermaid` attribute you *have to* include Mermaid files to `angular.json` or use imports. See README for more information",CZ="[ngx-markdown] When using the `clipboard` attribute you *have to* include Clipboard files to `angular.json` or use imports. See README for more information",BZ="[ngx-markdown] When using the `clipboard` attribute you *have to* provide the `viewContainerRef` parameter to `MarkdownService.render()` function",QZ="[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",HF=new F("SECURITY_CONTEXT");var TF=(()=>{class t{get options(){return this._options}set options(A){this._options=b(b({},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,a){this.clipboardOptions=A,this.extensions=i,this.mermaidOptions=n,this.platform=g,this.securityContext=r,this.http=s,this.sanitizer=a,this.DEFAULT_MARKED_OPTIONS={renderer:new Ro},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 U,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,a=b(b({},this.options),i.markedOptions),Q=a.renderer||this.renderer||new Ro;this.extensions&&(this.renderer=this.extendsRendererForExtensions(Q)),r&&(this.renderer=this.extendsRendererForMermaid(Q));let c=this.trimIndentation(A),f=o?this.decodeHtml(c):c,m=g?this.parseEmoji(f):f,p=this.parseMarked(m,a,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:a,mermaidOptions:Q}=i;r&&this.renderKatex(A,b(b({},this.DEFAULT_KATEX_OPTIONS),s)),a&&this.renderMermaid(A,b(b(b({},this.DEFAULT_MERMAID_OPTIONS),this.mermaidOptions),Q)),n&&this.renderClipboard(A,o,b(b(b({},this.DEFAULT_CLIPBOARD_OPTIONS),this.clipboardOptions),g)),this.highlight(A)}reload(){this._reload$.next()}getSource(A){if(!this.http)throw new Error(QZ);return this.http.get(A,{responseType:"text"}).pipe(sA(i=>this.handleExtension(A,i)))}highlight(A){if(!go(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(!go(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&&ee.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("."),a=s>-1?r.substring(s+1):"";return a&&a!=="md"?"```"+a+`
`+i+"\n```":i}parseMarked(A,i,o=!1){if(i.renderer){let n=b({},i.renderer);delete n.\u0275NgxMarkdownRendererExtendedForExtensions,delete n.\u0275NgxMarkdownRendererExtendedForMermaid,delete i.renderer,ee.use({renderer:n})}return o?ee.parseInline(A,i):ee.parse(A,i)}parseEmoji(A){if(!go(this.platform))return A;if(typeof joypixels>"u"||typeof joypixels.shortnameToUnicode>"u")throw new Error(sZ);return joypixels.shortnameToUnicode(A)}renderKatex(A,i){if(go(this.platform)){if(typeof katex>"u"||typeof renderMathInElement>"u")throw new Error(aZ);renderMathInElement(A,i)}}renderClipboard(A,i,o){if(!go(this.platform))return;if(typeof ClipboardJS>"u")throw new Error(CZ);if(!i)throw new Error(BZ);let{buttonComponent:n,buttonTemplate:g}=o,r=A.querySelectorAll("pre");for(let s=0;s<r.length;s++){let a=r.item(s),Q=document.createElement("div");Q.style.position="relative",a.parentNode.insertBefore(Q,a),Q.appendChild(a);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",Q.insertAdjacentElement("beforeend",c),Q.onmouseenter=()=>c.classList.add("hover"),Q.onmouseleave=()=>c.classList.remove("hover");let f;if(n){let p=i.createComponent(n);f=p.hostView,p.changeDetectorRef.markForCheck()}else if(g)f=i.createEmbeddedView(g);else{let p=i.createComponent(oZ);f=p.hostView,p.changeDetectorRef.markForCheck()}let m;f.rootNodes.forEach(p=>{c.appendChild(p),m=new ClipboardJS(p,{text:()=>a.innerText})}),f.onDestroy(()=>m.destroy())}}renderMermaid(A,i=this.DEFAULT_MERMAID_OPTIONS){if(!go(this.platform))return;if(typeof mermaid>"u"||typeof mermaid.initialize>"u")throw new Error(IZ);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)(Z(nZ,8),Z(JF,8),Z(gZ,8),Z(rZ,8),Z(si),Z(HF),Z(Qt,8),Z(Vo))}}static{this.\u0275prov=v({token:t,factory:t.\u0275fac})}}return t})(),OF=(()=>{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 z,this.load=new z,this.ready=new z,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 U}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(pA(this.destroyed$)).subscribe(()=>this.loadContent())}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}render(A,i=!1){return $e(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,FD.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,FD.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)(V(q),V(TF),V(Qe))}}static{this.\u0275cmp=O({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:[TA],ngContentSelectors:eZ,decls:1,vars:0,template:function(i,o){i&1&&(OA(),IA(0))},encapsulation:2})}}return t})();function EZ(t){return[TF,t?.loader??[],t?.clipboardOptions??[],t?.markedOptions??[],t?.mermaidOptions??[],lZ(t?.markedExtensions)??[],{provide:HF,useValue:t?.sanitize??et.HTML}]}function cZ(t){return t!=null&&t.provide!=null}function lZ(t){if(t)return t.reduce((e,A)=>{let i=cZ(A)?uA(b({},A),{multi:!0}):{provide:JF,useValue:A,multi:!0};return[...e,i]},[])}var PF=(()=>{class t{static forRoot(A){return{ngModule:t,providers:[EZ(A)]}}static forChild(){return{ngModule:t}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=X({type:t})}static{this.\u0275inj=j({imports:[Zo]})}}return t})();var hZ=["switch"],uZ=["*"];function mZ(t,e){t&1&&(d(0,"span",10),At(),d(1,"svg",12),P(2,"path",13),h(),d(3,"svg",14),P(4,"path",15),h()())}var DZ=new F("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1,disabledInteractive:!1})}),fZ={provide:Wo,useExisting:ot(()=>Cc),multi:!0},Ic=class{source;checked;constructor(e,A){this.source=e,this.checked=A}},Cc=(()=>{class t{_elementRef=B(q);_focusMonitor=B(Ut);_changeDetectorRef=B(UA);defaults=B(DZ);_onChange=A=>{};_onTouched=()=>{};_validatorOnChange=()=>{};_uniqueId;_checked=!1;_createChangeEvent(A){return new Ic(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 z;toggleChange=new z;get inputId(){return`${this.id||this._uniqueId}-input`}constructor(){B(ke).load(xt);let A=B(new Ct("tabindex"),{optional:!0}),i=this.defaults,o=B(Ae,{optional:!0});this.tabIndex=A==null?0:parseInt(A)||0,this.color=i.color||"accent",this._noopAnimations=o==="NoopAnimations",this.id=this._uniqueId=B(re).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 Ic(this,this.checked))))}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=O({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(i,o){if(i&1&&QA(hZ,5),i&2){let n;$(n=AA())&&(o._switchElement=n.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(i,o){i&2&&(ft("id",o.id),aA("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),Je(o.color?"mat-"+o.color:""),nA("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",eA],color:"color",disabled:[2,"disabled","disabled",eA],disableRipple:[2,"disableRipple","disableRipple",eA],tabIndex:[2,"tabIndex","tabIndex",A=>A==null?0:de(A)],checked:[2,"checked","checked",eA],hideIcon:[2,"hideIcon","hideIcon",eA],disabledInteractive:[2,"disabledInteractive","disabledInteractive",eA]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[FA([fZ,{provide:Rn,useExisting:t,multi:!0}]),TA],ngContentSelectors:uZ,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=rA();OA(),d(0,"div",1)(1,"button",2,0),G("click",function(){return Y(n),J(o._handleClick())}),P(3,"span",3),d(4,"span",4)(5,"span",5)(6,"span",6),P(7,"span",7),h(),d(8,"span",8),P(9,"span",9),h(),x(10,mZ,5,0,"span",10),h()()(),d(11,"label",11),G("click",function(r){return Y(n),J(r.stopPropagation())}),IA(12),h()()}if(i&2){let n=_e(2);L("labelPosition",o.labelPosition),D(),nA("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),L("tabIndex",o.disabled&&!o.disabledInteractive?-1:o.tabIndex)("disabled",o.disabled&&!o.disabledInteractive),aA("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),D(8),L("matRippleTrigger",n)("matRippleDisabled",o.disableRipple||o.disabled)("matRippleCentered",!0),D(),_(o.hideIcon?-1:10),D(),L("for",o.buttonId),aA("id",o._labelId)}},dependencies:[Eo,yE],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 ZF=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=X({type:t});static \u0275inj=j({imports:[Cc,mA,mA]})}return t})();var YI=class t{sessionState={};constructor(){}static \u0275fac=function(A){return new(A||t)};static \u0275cmp=O({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&&(d(0,"div",0)(1,"div"),P(2,"ngx-json-viewer",1),h()()),A&2&&(D(2),L("json",i.sessionState))},dependencies:[nc],styles:[".state-wrapper[_ngcontent-%COMP%]{padding-left:25px;padding-right:25px;margin-top:16px}"]})};var JI=class t{constructor(e,A){this.el=e;this.renderer=A;this.sideDrawerMaxWidth=window.innerWidth/2}sideDrawerMinWidth=310;sideDrawerMaxWidth;resizeHandle=null;resizingEvent={isResizing:!1,startingCursorX:0,startingWidth:0};ngAfterViewInit(){this.resizeHandle=document.getElementsByClassName("resize-handler")[0],this.renderer.listen(this.resizeHandle,"mousedown",e=>this.onResizeHandleMouseDown(e)),document.documentElement.style.setProperty("--side-drawer-width","500px"),this.renderer.setStyle(this.el.nativeElement,"width","var(--side-drawer-width)")}onResizeHandleMouseDown(e){this.resizingEvent={isResizing:!0,startingCursorX:e.clientX,startingWidth:this.sideDrawerWidth},e.preventDefault()}onMouseMove(e){if(!this.resizingEvent.isResizing)return;let A=e.clientX-this.resizingEvent.startingCursorX,i=this.resizingEvent.startingWidth+A;this.sideDrawerWidth=i,this.renderer.addClass(document.body,"resizing")}onMouseUp(){this.resizingEvent.isResizing=!1,this.renderer.removeClass(document.body,"resizing")}onResize(){this.sideDrawerMaxWidth=window.innerWidth/2,this.sideDrawerWidth=this.sideDrawerWidth}set sideDrawerWidth(e){let A=Math.min(Math.max(e,this.sideDrawerMinWidth),this.sideDrawerMaxWidth);document.body.style.setProperty("--side-drawer-width",`${A}px`)}get sideDrawerWidth(){let e=getComputedStyle(document.body).getPropertyValue("--side-drawer-width"),A=parseInt(e,10);return isNaN(A)?500:A}static \u0275fac=function(A){return new(A||t)(V(q),V(ae))};static \u0275dir=T({type:t,selectors:[["","appResizableDrawer",""]],hostBindings:function(A,i){A&1&&G("mousemove",function(n){return i.onMouseMove(n)},!1,Ih)("mouseup",function(){return i.onMouseUp()},!1,Ih)("resize",function(){return i.onResize()},!1,cy)},standalone:!1})};var MZ=["videoContainer"],RZ=["sideDrawer"],kZ=["autoScroll"],bZ=()=>[],FZ=(t,e)=>({"user-message":t,"bot-message":e}),vZ=t=>({"eval-fail":t}),SZ=(t,e)=>({"eval-pass":t,"eval-fail":e}),NZ=(t,e)=>({"font-style":t,color:e}),qF=t=>({"background-color":t});function GZ(t,e){if(t&1){let A=rA();d(0,"span",25),G("click",function(){Y(A);let o=y();return J(o.toggleSidePanel())}),k(1,"left_panel_open"),h()}}function LZ(t,e){if(t&1&&(d(0,"mat-option",15),k(1),h()),t&2){let A=e.$implicit;L("value",A),D(),KA(A)}}function _Z(t,e){t&1&&fe(0,LZ,2,2,"mat-option",15,De),t&2&&pe(e)}function KZ(t,e){if(t&1&&(d(0,"mat-option",15),k(1),h()),t&2){let A=y();L("value",A.selectedAppControl.value),D(),KA(A.selectedAppControl.value)}}function UZ(t,e){t&1&&(d(0,"span",32),k(1,"Events"),h())}function xZ(t,e){t&1&&(d(0,"span",32),k(1,"State"),h())}function YZ(t,e){t&1&&(d(0,"span",32),k(1,"Artifacts"),h())}function JZ(t,e){t&1&&(d(0,"span",32),k(1,"Sessions"),h())}function HZ(t,e){t&1&&(d(0,"span",32),k(1,"Eval"),h())}function TZ(t,e){if(t&1){let A=rA();d(0,"mat-tab"),x(1,HZ,2,0,"ng-template",27),d(2,"app-eval-tab",33),G("shouldShowTab",function(o){Y(A);let n=y(2);return J(n.handleShouldShowEvalTab(o))})("sessionSelected",function(o){Y(A);let n=y(2);return J(n.updateWithSelectedSession(o))}),h()()}if(t&2){let A=y(2);D(2),L("appName",A.appName)("userId",A.userId)("sessionId",A.sessionId)}}function OZ(t,e){if(t&1){let A=rA();d(0,"div",16)(1,"mat-tab-group")(2,"mat-tab",26),x(3,UZ,2,0,"ng-template",27),d(4,"app-event-tab",28),G("selectedEvent",function(o){Y(A);let n=y();return J(n.selectEvent(o))}),h()(),d(5,"mat-tab"),x(6,xZ,2,0,"ng-template",27),P(7,"app-state-tab",29),h(),d(8,"mat-tab"),x(9,YZ,2,0,"ng-template",27),P(10,"app-artifact-tab",30),h(),d(11,"mat-tab"),x(12,JZ,2,0,"ng-template",27),d(13,"app-session-tab",31),G("sessionSelected",function(o){Y(A);let n=y();return J(n.updateWithSelectedSession(o))})("sessionReloaded",function(o){Y(A);let n=y();return J(n.updateSessionState(o))}),h()(),x(14,TZ,3,3,"mat-tab"),h()()}if(t&2){let A=y();D(4),L("eventsMap",A.eventData)("traceData",A.traceData),D(3),L("sessionState",A.currentSessionState),D(3),L("artifacts",A.artifacts),D(3),L("userId",A.userId)("appName",A.appName)("sessionId",A.sessionId),D(),_(A.shouldShowEvalTab()?14:-1)}}function PZ(t,e){if(t&1){let A=rA();d(0,"div",46),G("click",function(){Y(A);let o=y(2);return J(o.openViewImageDialog(o.rawSvgString))}),h()}if(t&2){let A=y(2);L("innerHtml",A.renderedEventGraph,Ba)}}function ZZ(t,e){if(t&1){let A=rA();d(0,"div",17)(1,"div",34)(2,"div",35)(3,"mat-paginator",36),G("page",function(o){Y(A);let n=y();return J(n.handlePageEvent(o))}),h(),d(4,"button",37)(5,"mat-icon",38),G("click",function(){Y(A);let o=y();return J(o.closeSelectedEvent())}),k(6,"close"),h()()()(),d(7,"div")(8,"mat-tab-group")(9,"mat-tab",39)(10,"div",40),x(11,PZ,1,1,"div",41),h(),d(12,"div",42),P(13,"ngx-json-viewer",43),h()(),d(14,"mat-tab",44)(15,"div",42),P(16,"ngx-json-viewer",43),h()(),d(17,"mat-tab",45)(18,"div",42),P(19,"ngx-json-viewer",43),h()()()()()}if(t&2){let A=y();D(3),L("length",A.eventData.size)("pageSize",1)("pageIndex",A.selectedEventIndex),D(8),_(A.renderedEventGraph?11:-1),D(2),L("json",A.selectedEvent),D(3),L("json",A.llmRequest),D(3),L("json",A.llmResponse)}}function qZ(t,e){if(t&1){let A=rA();d(0,"div",20)(1,"div",47)(2,"div",48),k(3,"Session ID"),h(),d(4,"div",49),k(5),h()(),d(6,"div",50)(7,"div",51)(8,"mat-slide-toggle",52),G("change",function(){Y(A);let o=y();return J(o.toggleSse())}),k(9," Token Streaming "),h()(),P(10,"mat-divider",53),d(11,"div",54)(12,"div",55),G("click",function(){Y(A);let o=y();return J(o.onNewSessionClick())}),d(13,"mat-icon"),k(14,"add"),h(),k(15," New Session "),h(),d(16,"span",56),G("click",function(){Y(A);let o=y();return J(o.deleteSession(o.sessionId))}),k(17," delete "),h(),d(18,"span",57),G("click",function(){Y(A);let o=y();return J(o.exportSession())}),k(19," download "),h()()()()}if(t&2){let A=y();D(5),KA(A.sessionId),D(3),L("checked",A.enableSseIndicator()),D(2),L("vertical",!0)}}function VZ(t,e){t&1&&(d(0,"div",58)(1,"span"),k(2,"Loading agents, please wait..."),h()())}function WZ(t,e){t&1&&(d(0,"span"),k(1,"Welcome to ADK!"),P(2,"br"),k(3," Select an agent on the left to begin with."),h())}function zZ(t,e){if(t&1&&(k(0," Error message: "),P(1,"br"),d(2,"pre",60),k(3),h()),t&2){let A=y(4);D(3),KA(A.loadingError())}}function jZ(t,e){t&1&&(d(0,"pre",59),k(1,"Warning: No agents found in current folder."),h())}function XZ(t,e){if(t&1&&(d(0,"div"),k(1," Failed to load agents. To get started, run "),d(2,"pre"),k(3,"adk web"),h(),k(4," in the folder that contains the agents."),P(5,"br"),x(6,zZ,4,1)(7,jZ,2,0,"pre",59),h()),t&2){let A=y(3);D(6),_(A.loadingError()?6:7)}}function $Z(t,e){if(t&1&&(d(0,"div",58),x(1,WZ,4,0,"span"),To(2,"async"),x(3,XZ,8,1,"div"),h()),t&2){let A=y(2);D(),_((br(2,1,A.apps$)||PB(3,bZ)).length>0?1:3)}}function Aq(t,e){if(t&1&&x(0,VZ,3,0,"div",58)(1,$Z,4,4,"div",58),t&2){let A=y();_(A.isLoadingApps()?0:1)}}function eq(t,e){if(t&1){let A=rA();d(0,"button",61),G("click",function(){Y(A);let o=y();return J(o.openDialog())}),d(1,"mat-icon"),k(2,"priority_high"),h()()}}function tq(t,e){if(t&1){let A=rA();d(0,"button",72),G("click",function(){Y(A);let o=y().$index,n=y(2);return J(n.clickEvent(o))}),d(1,"mat-icon",73),k(2,"robot_2"),h()()}if(t&2){let A=y(3);L("matTooltip",A.selectedAppControl.value)}}function iq(t,e){t&1&&P(0,"mat-progress-bar",65)}function oq(t,e){if(t&1&&P(0,"img",75),t&2){let A=y().$implicit;L("src",A.url,qt)}}function nq(t,e){if(t&1&&(d(0,"mat-icon"),k(1,"insert_drive_file"),h(),d(2,"a",76),k(3),h()),t&2){let A=y().$implicit;D(2),L("href",A.url,qt),D(),KA(A.file.name)}}function gq(t,e){if(t&1&&(d(0,"div",74),x(1,oq,1,1,"img",75)(2,nq,4,2),h()),t&2){let A=e.$implicit;D(),_(A.file.type.startsWith("image/")?1:-1),D(),_(A.file.type.startsWith("image/")?-1:2)}}function rq(t,e){if(t&1&&(d(0,"div",66),fe(1,gq,3,2,"div",74,De),h()),t&2){let A=y().$implicit;D(),pe(A.attachments)}}function sq(t,e){t&1&&(d(0,"div",67),k(1,"Thought"),h())}function aq(t,e){if(t&1&&P(0,"markdown",68),t&2){let A=y().$implicit;L("data",A.text)("ngStyle",wn(2,NZ,A.thought?"italic":"normal",A.thought?"#9aa0a6":"white"))}}function Iq(t,e){if(t&1&&(d(0,"div"),P(1,"div",77),h()),t&2){let A=y().$implicit,i=y(2);D(),L("innerHTML",i.renderGooglerSearch(A.renderedContent),Ba)}}function Cq(t,e){if(t&1&&(d(0,"code"),k(1),h()),t&2){let A=y().$implicit;D(),NA(" ",A.executableCode.code," ")}}function Bq(t,e){if(t&1&&(d(0,"div")(1,"div"),k(2),h(),d(3,"div"),k(4),h()()),t&2){let A=y().$implicit;D(2),NA("Outcome: ",A.codeExecutionResult.outcome,""),D(2),NA("Output: ",A.codeExecutionResult.output,"")}}function Qq(t,e){if(t&1){let A=rA();d(0,"div",78)(1,"img",79),G("click",function(){Y(A);let o=y(3).$implicit,n=y(2);return J(n.openViewImageDialog(o.inlineData.data))}),h()()}if(t&2){let A=y(3).$implicit;D(),L("src",A.inlineData.data,qt)}}function Eq(t,e){if(t&1&&(d(0,"div"),P(1,"app-audio-player",80),h()),t&2){let A=y(3).$implicit;D(),L("base64data",A.inlineData.data)}}function cq(t,e){if(t&1){let A=rA();d(0,"div")(1,"div",81)(2,"mat-icon"),k(3,"description"),h(),d(4,"button",82),G("click",function(){Y(A);let o=y(3).$implicit,n=y(2);return J(n.openBase64InNewTab(o.inlineData.data,o.inlineData.mimeType))}),k(5),h()()()}if(t&2){let A=y(3).$implicit;D(5),NA(" ",A.inlineData.name," ")}}function lq(t,e){if(t&1){let A=rA();d(0,"div")(1,"button",82),G("click",function(){Y(A);let o=y(3).$implicit,n=y(2);return J(n.openBase64InNewTab(o.inlineData.data,o.inlineData.mimeType))}),k(2),h()()}if(t&2){let A=y(3).$implicit;D(2),NA(" ",A.inlineData.name," ")}}function dq(t,e){if(t&1&&(d(0,"div")(1,"div"),x(2,Qq,2,1,"div",78)(3,Eq,2,1,"div")(4,cq,6,1,"div")(5,lq,3,1,"div"),h()()),t&2){let A,i=y(2).$implicit,o=y(2);D(2),_((A=i.inlineData.mediaType)===o.MediaType.IMAGE?2:A===o.MediaType.AUDIO?3:A===o.MediaType.TEXT?4:5)}}function hq(t,e){if(t&1){let A=rA();d(0,"div")(1,"img",83),G("click",function(){Y(A);let o=y(3).$implicit,n=y(2);return J(n.openViewImageDialog(o.inlineData.data))}),h()()}if(t&2){let A=y(3).$implicit;D(),L("src",A.inlineData.data,qt)}}function uq(t,e){if(t&1&&(d(0,"div")(1,"mat-icon"),k(2,"insert_drive_file"),h(),d(3,"a",76),k(4),h()()),t&2){let A=y(3).$implicit;D(3),L("href",A.inlineData.data,qt),D(),KA(A.inlineData.displayName)}}function mq(t,e){if(t&1&&(d(0,"div"),x(1,hq,2,1,"div")(2,uq,5,2,"div"),h()),t&2){let A=y(2).$implicit;D(),_(A.inlineData.mimeType.startsWith("image/")?1:2)}}function Dq(t,e){if(t&1&&x(0,dq,6,1,"div")(1,mq,3,1,"div"),t&2){let A=y().$implicit;_(A.role==="bot"?0:1)}}function fq(t,e){if(t&1){let A=rA();d(0,"button",84),G("click",function(){Y(A);let o=y().$index,n=y(2);return J(n.clickEvent(o))}),d(1,"mat-icon"),k(2,"bolt"),h(),k(3),h()}if(t&2){let A=y().$implicit;D(3),NA(" ",A.functionCall.name," ")}}function pq(t,e){if(t&1){let A=rA();d(0,"button",84),G("click",function(){Y(A);let o=y().$index,n=y(2);return J(n.clickEvent(o))}),d(1,"mat-icon"),k(2,"check"),h(),k(3),h()}if(t&2){let A=y().$implicit;D(3),NA(" ",A.functionResponse.name," ")}}function wq(t,e){if(t&1&&(d(0,"div",70)(1,"div",85)(2,"div",86),k(3,"Actual tool uses:"),h(),P(4,"ngx-json-viewer",43),h(),d(5,"div",87)(6,"div",86),k(7,"Expected tool uses:"),h(),P(8,"ngx-json-viewer",43),h()()),t&2){let A=y().$implicit;D(4),L("json",A.actualInvocationToolUses),D(4),L("json",A.expectedInvocationToolUses)}}function yq(t,e){t&1&&(d(0,"button",37)(1,"mat-icon"),k(2,"person"),h()())}function Mq(t,e){if(t&1&&(d(0,"div",62),x(1,tq,3,1,"button",63),d(2,"mat-card",64),x(3,iq,1,0,"mat-progress-bar",65)(4,rq,3,0,"div",66),d(5,"div"),x(6,sq,2,0,"div",67),d(7,"div"),x(8,aq,1,5,"markdown",68),h(),x(9,Iq,2,1,"div"),h(),x(10,Cq,2,1,"code")(11,Bq,5,2,"div")(12,Dq,2,1)(13,fq,4,1,"button",69)(14,pq,4,1,"button",69)(15,wq,9,2,"div",70),h(),d(16,"div",62)(17,"span",71),k(18),h(),d(19,"span"),k(20),h()(),x(21,yq,3,0,"button",37),h()),t&2){let A=e.$implicit;L("ngClass",wn(18,FZ,A.role==="user",A.role==="bot")),D(),_(A.role==="bot"?1:-1),D(),L("ngClass",pn(21,vZ,A.evalStatus===2)),D(),_(A.isLoading?3:-1),D(),_(A.attachments?4:-1),D(2),_(A.thought?6:-1),D(2),_(A.text?8:-1),D(),_(A.renderedContent?9:-1),D(),_(A.executableCode?10:-1),D(),_(A.codeExecutionResult?11:-1),D(),_(A.inlineData?12:-1),D(),_(A.functionCall?13:-1),D(),_(A.functionResponse?14:-1),D(),_(A.actualInvocationToolUses&&A.evalStatus===2?15:-1),D(),L("ngClass",wn(23,SZ,A.evalStatus===1,A.evalStatus===2)),D(2),KA(A.evalStatus===1?"check":A.evalStatus===2?"close":""),D(2),KA(A.evalStatus===1?"Pass":A.evalStatus===2?"Fail":""),D(),_(A.role==="user"?21:-1)}}function Rq(t,e){if(t&1&&(d(0,"div",23,1),P(2,"div",null,2),fe(4,Mq,22,26,"div",62,De),h()),t&2){let A=y();D(4),pe(A.messages)}}function kq(t,e){if(t&1){let A=rA();d(0,"div",95),P(1,"img",97),d(2,"button",98),G("click",function(){Y(A);let o=y().$index,n=y(3);return J(n.removeFile(o))}),d(3,"mat-icon",99),k(4,"close"),h()()()}if(t&2){let A=y().$implicit;D(),L("src",A.url,qt)}}function bq(t,e){if(t&1){let A=rA();d(0,"div",96)(1,"button",98),G("click",function(){Y(A);let o=y().$index,n=y(3);return J(n.removeFile(o))}),d(2,"mat-icon",99),k(3,"close"),h()(),d(4,"div",100)(5,"mat-icon"),k(6,"insert_drive_file"),h(),d(7,"span"),k(8),h()()()}if(t&2){let A=y().$implicit;D(8),KA(A.file.name)}}function Fq(t,e){if(t&1&&(d(0,"div"),x(1,kq,5,1,"div",95)(2,bq,9,1,"div",96),h()),t&2){let A=e.$implicit;D(),_(A.file.type.startsWith("image/")?1:-1),D(),_(A.file.type.startsWith("image/")?-1:2)}}function vq(t,e){if(t&1&&(d(0,"div",90),fe(1,Fq,3,2,"div",null,De),h()),t&2){let A=y(2);D(),pe(A.selectedFiles)}}function Sq(t,e){if(t&1){let A=rA();d(0,"div",24)(1,"input",88,3),G("change",function(o){Y(A);let n=y();return J(n.onFileSelect(o))}),h(),d(3,"mat-form-field",89),x(4,vq,3,0,"div",90),d(5,"textarea",91),Wt("ngModelChange",function(o){Y(A);let n=y();return ai(n.userInput,o)||(n.userInput=o),J(o)}),G("keydown.enter",function(o){Y(A);let n=y();return J(n.sendMessage(o))}),h(),d(6,"div",92)(7,"button",93),G("click",function(){Y(A);let o=_e(2);return J(o.click())}),d(8,"mat-icon"),k(9,"attach_file"),h()(),d(10,"div")(11,"button",94),G("click",function(){Y(A);let o=y();return J(o.toggleAudioRecording())}),d(12,"mat-icon"),k(13,"mic"),h()(),d(14,"button",94),G("click",function(){Y(A);let o=y();return J(o.toggleVideoRecording())}),d(15,"mat-icon"),k(16,"videocam"),h()()()()()()}if(t&2){let A=y();D(4),_(A.selectedFiles.length&&A.appName!=""?4:-1),D(),Vt("ngModel",A.userInput),D(6),L("ngStyle",pn(6,qF,A.isAudioRecording?"rgb(234, 67, 53)":"rgb(51, 53, 55)"))("matTooltip",A.isAudioRecording?"Turn off microphone":"Use microphone"),D(3),L("ngStyle",pn(8,qF,A.isVideoRecording?"rgb(234, 67, 53)":"rgb(51, 53, 55)"))("matTooltip",A.isVideoRecording?"Turn off camera":"Use camera")}}function Nq(t){for(t=t.replace(/-/g,"+").replace(/_/g,"/");t.length%4!==0;)t+="=";return t}var vD=class extends Ng{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}`)},VF="Restarting bidirectional streaming is not currently supported. Please refresh the page or start a new session.",HI=class t{constructor(e,A,i,o,n,g,r,s,a,Q){this.sanitizer=e;this.sessionService=A;this.artifactService=i;this.audioService=o;this.webSocketService=n;this.videoService=g;this.dialog=r;this.eventService=s;this.route=a;this.downloadService=Q}videoContainer;sideDrawer;eventTabComponent;sessionTab;evalTab;scrollContainer;_snackBar=B($k);shouldShowEvalTab=gt(!0);enableSseIndicator=gt(!1);videoElement;currentMessage="";messages=[];lastTextChunk="";streamingTextMessage=null;latestThought="";artifacts=[];userInput="";userId="user";appName="";sessionId="";isAudioRecording=!1;isVideoRecording=!1;longRunningEvents=[];functionCallEventId="";redirectUri=ct.getBaseUrlWithoutPath();showSidePanel=!0;useSse=!1;currentSessionState={};messagesSubject=new $A([]);streamingTextMessageSubject=new $A(null);scrollInterruptedSubject=new $A(!0);isModelThinkingSubject=new $A(!1);sessionHasUsedBidi=new Set;eventData=new Map;traceData=[];eventMessageIndexArray=[];renderedEventGraph;rawSvgString=null;selectedEvent=void 0;selectedEventIndex=void 0;llmRequest=void 0;llmResponse=void 0;llmRequestKey="gcp.vertex.agent.llm_request";llmResponseKey="gcp.vertex.agent.llm_response";getMediaTypeFromMimetype=PE;selectedFiles=[];previousMessageCount=0;openBase64InNewTab=Om;MediaType=yI;router=B(Bo);activatedRoute=B(_t);selectedAppControl=new kQ("",{nonNullable:!0});agentService=B(Un);isLoadingApps=gt(!1);loadingError=gt("");apps$=iA([]).pipe(Ce(()=>{this.isLoadingApps.set(!0),this.selectedAppControl.disable()}),Ie(()=>this.agentService.listApps().pipe(Oe(e=>(this.loadingError.set(e.message),iA(void 0))))),ue(1),Ce(e=>{this.isLoadingApps.set(!1),this.selectedAppControl.enable(),e?.length==1&&this.router.navigate([],{relativeTo:this.route,queryParams:{app:e[0]}})}),Go());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}),mt([this.agentService.getLoadingState(),this.isModelThinkingSubject]).subscribe(([i,o])=>{let n=this.messages[this.messages.length-1];i&&!n?.isLoading?(this.messages.push({role:"bot",isLoading:!0}),this.messagesSubject.next(this.messages)):n?.isLoading&&!o&&(this.messages.pop(),this.messagesSubject.next(this.messages))}),mt([this.messagesSubject,this.scrollInterruptedSubject,this.streamingTextMessageSubject]).subscribe(([i,o,n])=>{o||setTimeout(()=>{this.scrollToBottom()},100)})}ngAfterViewInit(){this.showSidePanel=!0,this.sideDrawer.open()}scrollToBottom(){setTimeout(()=>{this.scrollContainer.nativeElement.scrollTo({top:this.scrollContainer.nativeElement.scrollHeight,behavior:"smooth"})})}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.sessionService.createSession(this.userId,this.appName).subscribe(e=>{this.currentSessionState=e.state,this.sessionId=e.id,this.sessionTab.refreshSession()})}sendMessage(e){return $e(this,null,function*(){if(this.messages.length===0&&(this.scrollContainer.nativeElement.addEventListener("wheel",()=>{this.scrollInterruptedSubject.next(!0)}),this.scrollContainer.nativeElement.addEventListener("touchmove",()=>{this.scrollInterruptedSubject.next(!0)})),this.scrollInterruptedSubject.next(!1),e.preventDefault(),!this.userInput.trim())return;if(this.messages.push({role:"user",text:this.userInput}),this.messagesSubject.next(this.messages),this.selectedFiles.length>0){let o=this.selectedFiles.map(n=>({file:n.file,url:n.url}));this.messages.push({role:"user",attachments:o}),this.messagesSubject.next(this.messages)}let A={appName:this.appName,userId:this.userId,sessionId:this.sessionId,newMessage:{role:"user",parts:yield this.getUserMessageParts()},streaming:this.useSse};this.selectedFiles=[];let i=this.eventMessageIndexArray.length-1;this.streamingTextMessage=null,this.agentService.runSse(A).subscribe({next:o=>$e(this,null,function*(){if(o.startsWith('{"error"')){this.openSnackBar(o,"OK");return}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.eventService.getTrace(this.sessionId).pipe(Oe(o=>o.status===404?iA(null):iA([]))).subscribe(o=>{this.traceData=o})}}),this.userInput=""})}processPart(e,A,i){let o=e.groundingMetadata?.searchEntryPoint?.renderedContent;if(A.text){this.isModelThinkingSubject.next(!1),this.agentService.getLoadingState().next(!1);let n=A.text;if(A.thought)n!==this.latestThought&&(this.storeEvents(A,e,i),this.storeMessage(A,e,i)),this.latestThought=n;else if(this.streamingTextMessage){if(o&&(this.streamingTextMessage.renderedContent=e.groundingMetadata.searchEntryPoint.renderedContent),n==this.streamingTextMessage.text){this.storeEvents(A,e,i),this.eventMessageIndexArray[i]=n,this.streamingTextMessage=null;return}this.streamingTextMessage.text+=n,this.streamingTextMessageSubject.next(this.streamingTextMessage)}else if(this.streamingTextMessage={role:"bot",text:this.processThoughtText(n),thought:!!A.thought,eventId:e.id},o&&(this.streamingTextMessage.renderedContent=e.groundingMetadata.searchEntryPoint.renderedContent),this.messages.push(this.streamingTextMessage),this.messagesSubject.next(this.messages),!this.useSse){this.storeEvents(A,e,i),this.eventMessageIndexArray[i]=n,this.streamingTextMessage=null;return}}else A.thought?this.isModelThinkingSubject.next(!0):(this.isModelThinkingSubject.next(!1),this.agentService.getLoadingState().next(!1),this.storeEvents(A,e,i),this.storeMessage(A,e,i))}getUserMessageParts(){return $e(this,null,function*(){let e=[{text:`${this.userInput}`}];if(this.selectedFiles.length>0)for(let A of this.selectedFiles)e.push({inlineData:{displayName:A.file.name,data:yield this.readFileAsBytes(A.file),mimeType: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.longRunningToolIds&&A.longRunningToolIds.length>0){this.getAsyncFunctionsFromParts(A.longRunningToolIds,A.content.parts);let o=this.longRunningEvents[0];if(o.args.authConfig&&o.args.authConfig.exchangedAuthCredential&&o.args.authConfig.exchangedAuthCredential.oauth2){let n=o.args.authConfig.exchangedAuthCredential.oauth2.authUri,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(A.actions&&A.actions.artifactDelta)for(let o in A.actions.artifactDelta)A.actions.artifactDelta.hasOwnProperty(o)&&this.renderArtifact(o,A.actions.artifactDelta[o]);if(e.inlineData){let o=this.formatBase64Data(e.inlineData.data,e.inlineData.mimeType);this.messages.push({role:A.author==="user"?"user":"bot",inlineData:{displayName:e.inlineData.displayName,data:o,mimeType:e.inlineData.mimeType}}),this.messagesSubject.next(this.messages),this.eventMessageIndexArray[i]=e.inlineData}else if(e.text){let o={role:A.author==="user"?"user":"bot",text:e.text,thought:!!e.thought,evalStatus:A.evalStatus,actualInvocationToolUses:A.actualInvocationToolUses,expectedInvocationToolUses:A.expectedInvocationToolUses};A.groundingMetadata&&A.groundingMetadata.searchEntryPoint&&A.groundingMetadata.searchEntryPoint.renderedContent&&(o.renderedContent=A.groundingMetadata.searchEntryPoint.renderedContent),this.messages.push(o),this.messagesSubject.next(this.messages),this.eventMessageIndexArray[i]=e.text}else if(e.functionCall)this.messages.push({role:A.author==="user"?"user":"bot",functionCall:e.functionCall,eventId:A.id,evalStatus:A.evalStatus,actualInvocationToolUses:A.actualInvocationToolUses,expectedInvocationToolUses:A.expectedInvocationToolUses}),this.messagesSubject.next(this.messages),this.eventMessageIndexArray[i]=e.functionCall;else if(e.functionResponse)this.messages.push({role:A.author==="user"?"user":"bot",functionResponse:e.functionResponse,eventId:A.id,evalStatus:A.evalStatus,actualInvocationToolUses:A.actualInvocationToolUses,expectedInvocationToolUses:A.expectedInvocationToolUses}),this.messagesSubject.next(this.messages),this.eventMessageIndexArray[i]=e.functionResponse;else if(e.executableCode)this.messages.push({role:A.author==="user"?"user":"bot",executableCode:e.executableCode,evalStatus:A.evalStatus,actualInvocationToolUses:A.actualInvocationToolUses,expectedInvocationToolUses:A.expectedInvocationToolUses}),this.messagesSubject.next(this.messages),this.eventMessageIndexArray[i]=e.executableCode;else if(e.codeExecutionResult&&(this.messages.push({role:A.author==="user"?"user":"bot",codeExecutionResult:e.codeExecutionResult,evalStatus:A.evalStatus,actualInvocationToolUses:A.actualInvocationToolUses,expectedInvocationToolUses:A.expectedInvocationToolUses}),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])}formatBase64Data(e,A){let i=Nq(e);return`data:${A};base64,${i}`}renderArtifact(e,A){this.messages.push({role:"bot",inlineData:{data:"",mimeType:"image/png"}}),this.messagesSubject.next(this.messages);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=this.formatBase64Data(o.inlineData.data,n),r=PE(n),s={name:this.createDefaultArtifactName(n),data:g,mimeType:n,mediaType:r};this.messages[i]={role:"bot",inlineData:s},this.artifacts=[...this.artifacts,{id:e,data:g,mimeType:n,versionId:A,mediaType:PE(n)}]})}storeEvents(e,A,i){let o="";e.text?o+="text:"+e.text:e.functionCall?o+="functionCall:"+e.functionCall.name:e.functionResponse?o+="functionResponse:"+e.functionResponse.name:e.executableCode?o+="executableCode:"+e.executableCode.code.slice(0,10):e.codeExecutionResult&&(o+="codeExecutionResult:"+e.codeExecutionResult.outcome),A.title=o,this.eventData.set(A.id,A),this.eventData=new Map(this.eventData)}sendOAuthResponse(e,A,i){this.longRunningEvents.pop();let o={appName:this.appName,userId:this.userId,sessionId:this.sessionId,newMessage:{role:"user",parts:[]}};var n=structuredClone(e.args.authConfig);n.exchangedAuthCredential.oauth2.authResponseUri=A,n.exchangedAuthCredential.oauth2.redirectUri=i,o.functionCallEventId=this.functionCallEventId,o.newMessage.parts.push({function_response:{id:e.id,name:e.name,response:n}}),this.agentService.run(o).subscribe(g=>{this.processRunResponse(g)})}processRunResponse(e){let A=this.eventMessageIndexArray.length-1;for(let i of e)if(i.content)for(let o of i.content.parts)A+=1,this.processPart(i,o,A)}openDialog(){this.dialog.open(SI,{width:"600px",data:{event:this.longRunningEvents[0],appName:this.appName,userId:this.userId,sessionId:this.sessionId,functionCallEventId:this.functionCallEventId}}).afterClosed().subscribe(A=>{A&&(this.removeFinishedLongRunningEvents(A.events),this.processRunResponse(A.response))})}removeFinishedLongRunningEvents(e){let A=new Set(e.map(i=>i.id));this.longRunningEvents=this.longRunningEvents.filter(i=>!A.has(i.id))}clickEvent(e){let A=this.messages[e].eventId;this.sideDrawer.open(),this.showSidePanel=!0,this.selectedEvent=this.eventData.get(A),this.selectedEventIndex=this.getIndexOfKeyInMap(A),this.eventService.getEventTrace(this.selectedEvent.id).subscribe(i=>{this.llmRequest=JSON.parse(i[this.llmRequestKey]),this.llmResponse=JSON.parse(i[this.llmResponseKey])}),this.eventService.getEvent(this.userId,this.appName,this.sessionId,this.selectedEvent.id).subscribe(i=>$e(this,null,function*(){if(!i.dotSrc){this.renderedEventGraph=void 0;return}let o=i.dotSrc,g=(yield xm()).renderString(o,{format:"svg",engine:"dot"});this.rawSvgString=g,this.renderedEventGraph=this.sanitizer.bypassSecurityTrustHtml(g)}))}userMessagesLength(e){return this.messages.slice(0,e).filter(A=>A.role=="user").length}ngOnDestroy(){this.webSocketService.closeConnection()}onAppSelection(e){this.isAudioRecording&&(this.stopAudioRecording(),this.isAudioRecording=!1),this.isVideoRecording&&(this.stopVideoRecording(),this.isVideoRecording=!1)}toggleAudioRecording(){this.isAudioRecording?this.stopAudioRecording():this.startAudioRecording()}startAudioRecording(){if(this.sessionHasUsedBidi.has(this.sessionId)){this.openSnackBar(VF,"OK");return}this.isAudioRecording=!0;let e=window.location.protocol==="https:"?"wss":"ws";this.webSocketService.connect(`${e}://${ct.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..."}),this.messagesSubject.next(this.messages),this.sessionHasUsedBidi.add(this.sessionId)}stopAudioRecording(){this.audioService.stopRecording(),this.webSocketService.closeConnection(),this.isAudioRecording=!1}toggleVideoRecording(){this.isVideoRecording?this.stopVideoRecording():this.startVideoRecording()}startVideoRecording(){if(this.sessionHasUsedBidi.has(this.sessionId)){this.openSnackBar(VF,"OK");return}this.isVideoRecording=!0;let e=window.location.protocol==="https:"?"wss":"ws";this.webSocketService.connect(`${e}://${ct.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..."}),this.messagesSubject.next(this.messages),this.sessionHasUsedBidi.add(this.sessionId)}stopVideoRecording(){this.audioService.stopRecording(),this.videoService.stopRecording(this.videoContainer),this.webSocketService.closeConnection(),this.isVideoRecording=!1}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.sideDrawer.close():this.sideDrawer.open(),this.showSidePanel=!this.showSidePanel}handleShouldShowEvalTab(e){this.shouldShowEvalTab.set(e)}handleEvalNotInstalled(e){e&&this.openSnackBar(e,"OK")}updateWithSelectedSession(e){if(!e||!e.id||!e.events||!e.state)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)})}),this.eventService.getTrace(this.sessionId).subscribe(i=>{this.traceData=i})}updateSessionState(e){this.currentSessionState=e.state}onNewSessionClick(){this.createSession(),this.eventData.clear(),this.eventMessageIndexArray=[],this.messages=[],this.artifacts=[],this.evalTab.showEvalHistory&&this.evalTab.toggleEvalHistoryButton()}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=>$e(this,null,function*(){if(!A.dotSrc){this.renderedEventGraph=void 0;return}let i=A.dotSrc,n=(yield xm()).renderString(i,{format:"svg",engine:"dot"});this.rawSvgString=n,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(NI,{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(){mt([this.router.events.pipe(kA(e=>e instanceof ei),sA(()=>this.activatedRoute.snapshot.queryParams)),this.apps$]).subscribe(([e,A])=>{if(A&&A.length){let i=e.app;i&&A.includes(i)?this.selectedAppControl.setValue(i):i&&this.openSnackBar(`Agent '${i}' not found`,"OK")}})}updateSelectedAppUrl(){this.selectedAppControl.valueChanges.pipe(wi(),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)}openViewImageDialog(e){let A=this.dialog.open(Gg,{maxWidth:"90vw",maxHeight:"90vh",data:{imageData:e}})}createDefaultArtifactName(e){return!e||!e.includes("/")?"":e.replace("/",".")}exportSession(){this.sessionService.getSession(this.userId,this.appName,this.sessionId).subscribe(e=>{console.log(e),this.downloadService.downloadObjectAsJson(e,`session-${this.sessionId}.json`)})}static \u0275fac=function(A){return new(A||t)(V(Vo),V(wo),V(hs),V(us),V(yo),V(ms),V(di),V(Ds),V(_t),V(Jn))};static \u0275cmp=O({type:t,selectors:[["app-chat"]],viewQuery:function(A,i){if(A&1&&(QA(MZ,5,q),QA(RZ,5),QA(Ug,5),QA(xg,5),QA(Kg,5),QA(kZ,5)),A&2){let o;$(o=AA())&&(i.videoContainer=o.first),$(o=AA())&&(i.sideDrawer=o.first),$(o=AA())&&(i.eventTabComponent=o.first),$(o=AA())&&(i.sessionTab=o.first),$(o=AA())&&(i.evalTab=o.first),$(o=AA())&&(i.scrollContainer=o.first)}},standalone:!1,features:[FA([{provide:Ng,useClass:vD}])],decls:27,vars:14,consts:[["sideDrawer",""],["autoScroll",""],["videoContainer",""],["fileInput",""],["autosize","",1,"drawer-container"],["matTooltip","Open panel",1,"material-symbols-outlined",2,"position","absolute","width","24px","height","24px","color","#C4C7C5","cursor","pointer","margin-left","20px","margin-top","20px"],["mode","side","appResizableDrawer","",1,"side-drawer"],[2,"margin-top","20px","margin-left","20px","display","flex"],[2,"width","100%"],[1,"drawer-header"],["matTooltip","Collapse panel",1,"material-symbols-outlined",2,"color","#C4C7C5","cursor","pointer",3,"click"],[1,"drawer-logo"],["src","assets/ADK-512-color.svg","width","32px","height","32px"],[1,"app-select-container"],[1,"app-select",3,"selectionChange","placeholder","formControl"],[3,"value"],[1,"tabs-container"],[1,"details-panel-container"],[1,"resize-handler"],[1,"chat-container"],[1,"chat-toolbar"],[1,"chat-card"],["mat-fab","","color","primary",1,"fab-button"],[1,"chat-messages"],[1,"chat-input"],["matTooltip","Open panel",1,"material-symbols-outlined",2,"position","absolute","width","24px","height","24px","color","#C4C7C5","cursor","pointer","margin-left","20px","margin-top","20px",3,"click"],[1,"tabs-header"],["mat-tab-label",""],[3,"selectedEvent","eventsMap","traceData"],[3,"sessionState"],[3,"artifacts"],[3,"sessionSelected","sessionReloaded","userId","appName","sessionId"],[1,"tab-label"],[3,"shouldShowTab","sessionSelected","appName","userId","sessionId"],[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",""],[3,"click"],["label","Event"],[1,"event-graph-container"],[3,"innerHtml"],[1,"json-viewer-container"],[3,"json"],["label","Request"],["label","Response"],[3,"click","innerHtml"],[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"],["matTooltip","Delete current session",1,"material-symbols-outlined",2,"width","24px","height","24px","color","#C4C7C5","cursor","pointer","margin-right","16px",3,"click"],["matTooltip","Export current session",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"],[3,"ngClass"],["mat-mini-fab","",3,"matTooltip"],[1,"message-card",3,"ngClass"],["mode","buffer",1,"loading-bar"],[1,"attachments"],[1,"thought-chip"],[1,"message-text",3,"data","ngStyle"],["mat-stroked-button","",1,"function-event-button"],[1,"tool-uses-container"],[1,"material-symbols-outlined"],["mat-mini-fab","",3,"click","matTooltip"],["fontSet","material-symbols-outlined"],[1,"attachment"],["alt","attachment",1,"image-preview-chat",3,"src"],["download","",3,"href"],[3,"innerHTML"],[1,"generated-image-container"],["alt","image",1,"generated-image",3,"click","src"],[3,"base64data"],[1,"html-artifact-container"],[1,"link-style-button",3,"click"],["alt","image",1,"image-preview-chat",3,"click","src"],["mat-stroked-button","",1,"function-event-button",3,"click"],[1,"actual-tool-uses"],[1,"tool-uses-header"],[1,"expected-tool-uses"],["type","file","multiple","","hidden","",3,"change"],["appearance","outline",1,"input-field"],[1,"file-preview"],["matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","1","cdkAutosizeMaxRows","10","placeholder","Type a Message...",1,"chat-input-box",2,"caret-color","white",3,"ngModelChange","keydown.enter","ngModel"],[1,"chat-input-actions"],["mat-icon-button","","matTooltip","Upload local file",1,"function-event-button",3,"click"],["mat-icon-button","","matSuffix","",3,"click","ngStyle","matTooltip"],[1,"image-container"],[1,"file-container"],["alt","preview",1,"image-preview",3,"src"],["mat-icon-button","",1,"delete-button",3,"click"],["color","warn"],[1,"file-info"]],template:function(A,i){if(A&1){let o=rA();d(0,"mat-drawer-container",4),x(1,GZ,2,0,"span",5),d(2,"mat-drawer",6,0)(4,"div",7)(5,"div",8)(6,"div",9)(7,"span",10),G("click",function(){return Y(o),J(i.toggleSidePanel())}),k(8,"left_panel_close"),h(),d(9,"div",11),P(10,"img",12),k(11," Agent Development Kit "),h()()()(),d(12,"div",13)(13,"mat-select",14),G("selectionChange",function(g){return Y(o),J(i.onAppSelection(g))}),x(14,_Z,2,0),To(15,"async"),x(16,KZ,2,2,"mat-option",15),h()(),x(17,OZ,15,8,"div",16)(18,ZZ,20,7,"div",17),P(19,"div",18),h(),d(20,"div",19),x(21,qZ,20,3,"div",20),d(22,"mat-card",21),x(23,Aq,2,1)(24,eq,3,0,"button",22)(25,Rq,6,0,"div",23)(26,Sq,17,10,"div",24),h()()()}if(A&2){let o;D(),_(i.showSidePanel?-1:1),D(12),L("placeholder",i.isLoadingApps()?"Loading...":"Select an agent")("formControl",i.selectedAppControl),D(),_((o=br(15,12,i.apps$))?14:-1,o),D(2),_(i.selectedAppControl.value&&i.isLoadingApps()?16:-1),D(),_(i.appName!=""&&i.showSidePanel?17:-1),D(),_(i.selectedEvent&&i.showSidePanel?18:-1),D(3),_(i.appName!=""?21:-1),D(2),_(i.selectedAppControl.value?-1:23),D(),_(i.longRunningEvents.length>0?24:-1),D(),_(i.appName!=""?25:-1),D(),_(i.appName!=""?26:-1)}},dependencies:[jt,Vh,ro,Ii,Xt,rF,cs,ho,Hk,Hn,qb,Et,kE,Dk,mk,Km,Xb,nc,BD,QD,hD,uD,mF,Bs,Nn,Qs,pF,OF,Cc,lu,Ug,xg,Kg,wI,YI,Lg,JI,wa],styles:[".expand-side-drawer[_ngcontent-%COMP%]{position:relative;top:4%;left:1%}.drawer-container[_ngcontent-%COMP%]{height:100%;background-color:#131314}.generated-image-container[_ngcontent-%COMP%]{max-width:400px}.generated-image[_ngcontent-%COMP%]{max-width:100%;border-radius:8px}.chat-container[_ngcontent-%COMP%]{width:100%;height:100%;max-width:1200px;margin:auto}.event-container[_ngcontent-%COMP%]{color:#fff}.html-artifact-container[_ngcontent-%COMP%], .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}.loading-bar[_ngcontent-%COMP%]{width:100px;margin:15px}.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;position:relative;display:inline-block}.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}.message-card[_ngcontent-%COMP%]   .tool-uses-container[_ngcontent-%COMP%]{visibility:hidden;position:absolute;left:10px;z-index:10;display:flex;background-color:#484848;overflow:hidden;border-radius:20px;padding:5px 20px;margin-bottom:10px;font-size:16px}.message-card[_ngcontent-%COMP%]   .tool-uses-container[_ngcontent-%COMP%]   .actual-tool-uses[_ngcontent-%COMP%]{border-right:2px solid #8a8686;padding-right:8px}.message-card[_ngcontent-%COMP%]   .tool-uses-container[_ngcontent-%COMP%]   .expected-tool-uses[_ngcontent-%COMP%]{padding-left:12px}.message-card[_ngcontent-%COMP%]:hover   .tool-uses-container[_ngcontent-%COMP%]{visibility:visible}.tool-uses-header[_ngcontent-%COMP%]{padding-bottom:5px;border-bottom:2px solid #8a8686;font-style:italic;font-weight:700}.eval-pass[_ngcontent-%COMP%]{display:flex;color:#44c265}.eval-fail[_ngcontent-%COMP%]{display:flex;color:#ff8983}.navigation-button-sidepanel[_ngcontent-%COMP%]{margin-left:auto;margin-right:20px}.chat-input[_ngcontent-%COMP%]{display:flex;padding:10px;width:60%;margin:0 auto}.input-field[_ngcontent-%COMP%]{flex-grow:1}.input-field[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{color:#fff;border:none;padding:10px;box-sizing:content-box}.input-field[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]::placeholder{color:#8e918f}.input-field[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{color:#fff;background-color:#333537}.chat-input-actions[_ngcontent-%COMP%]{width:106%;margin-top:10px;display:flex;justify-content:space-between}.chat-input-actions[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.fab-button[_ngcontent-%COMP%]{position:fixed;bottom:200px;right:100px;z-index:1000}.sidepanel-toggle[_ngcontent-%COMP%]{position:relative;top:100px;z-index:1000}.side-drawer[_ngcontent-%COMP%]{background-color:#1b1b1b;color:#fff;border-radius:0}.tabs-container[_ngcontent-%COMP%]{width:100%;margin-top:20px}.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;margin-left:0}[_nghost-%COMP%]     .message-text p{white-space:pre-line;word-break:break-word;overflow-wrap:break-word}[_nghost-%COMP%]     .mdc-linear-progress__buffer-dots{background:#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}.mat-mdc-select-placeholder[_ngcontent-%COMP%]{margin-left:20px}.resize-handler[_ngcontent-%COMP%]{background:#5f6368;width:4px;border-radius:4px;position:absolute;display:block;height:20%;top:40%;right:0;z-index:9999;cursor:ew-resize}.new-session-button[_ngcontent-%COMP%]{margin-top:0;margin-left:50px;width:130px;height:28px;font-size:14px}.app-select-container[_ngcontent-%COMP%]{width:30%;margin-top:12px;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}.app-select-container[_ngcontent-%COMP%]{--mat-select-placeholder-text-color: #8ab4f8}.app-select-container[_ngcontent-%COMP%]{--mat-select-enabled-trigger-text-color: #8ab4f8}.app-select-container[_ngcontent-%COMP%]{--mat-select-enabled-arrow-color: #8ab4f8}.json-viewer-container[_ngcontent-%COMP%]{margin:10px}.event-paginator[_ngcontent-%COMP%]{margin-top:-8px;margin-right:auto;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;width:100%;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}.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}.event-graph-container[_ngcontent-%COMP%]{margin-top:16px;margin-bottom:16px;display:flex;justify-content:center;max-height:33%;cursor:pointer}.event-graph-container[_ngcontent-%COMP%]     svg{width:100%;height:100%;display:block;object-fit:contain}[_nghost-%COMP%]     pre{white-space:pre-wrap;word-break:break-word;overflow-x:auto;max-width:100%}.link-style-button[_ngcontent-%COMP%]{background:none;border:none;padding:0;font:inherit;color:#007bff!important;text-decoration:underline;cursor:pointer;outline:none;font-size:14px}.drawer-logo[_ngcontent-%COMP%]{margin-left:9px;display:flex;align-items:center;font-size:16px;font-style:normal;font-weight:500;line-height:24px;letter-spacing:.1px}.drawer-logo[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{margin-right:9px}"]})};var ws=class t{title="agent_framework_web";userId="";appName="";sessionId="";constructor(){}static \u0275fac=function(A){return new(A||t)};static \u0275cmp=O({type:t,selectors:[["app-root"]],standalone:!1,decls:1,vars:0,template:function(A,i){A&1&&P(0,"app-chat")},dependencies:[HI],encapsulation:2})};var Lq=[{path:"",component:ws}],Bc=class t{static \u0275fac=function(A){return new(A||t)};static \u0275mod=X({type:t});static \u0275inj=j({imports:[nE.forRoot(Lq),nE]})};function WF(t){return new H(3e3,!1)}function _q(){return new H(3100,!1)}function Kq(){return new H(3101,!1)}function Uq(t){return new H(3001,!1)}function xq(t){return new H(3003,!1)}function Yq(t){return new H(3004,!1)}function jF(t,e){return new H(3005,!1)}function XF(){return new H(3006,!1)}function $F(){return new H(3007,!1)}function Av(t,e){return new H(3008,!1)}function ev(t){return new H(3002,!1)}function tv(t,e,A,i,o){return new H(3010,!1)}function iv(){return new H(3011,!1)}function ov(){return new H(3012,!1)}function nv(){return new H(3200,!1)}function gv(){return new H(3202,!1)}function rv(){return new H(3013,!1)}function sv(t){return new H(3014,!1)}function av(t){return new H(3015,!1)}function Iv(t){return new H(3016,!1)}function Cv(t,e){return new H(3404,!1)}function Jq(t){return new H(3502,!1)}function Bv(t){return new H(3503,!1)}function Qv(){return new H(3300,!1)}function Ev(t){return new H(3504,!1)}function cv(t){return new H(3301,!1)}function lv(t,e){return new H(3302,!1)}function dv(t){return new H(3303,!1)}function hv(t,e){return new H(3400,!1)}function uv(t){return new H(3401,!1)}function mv(t){return new H(3402,!1)}function Dv(t,e){return new H(3505,!1)}function nn(t){switch(t.length){case 0:return new co;case 1:return t[0];default:return new Sg(t)}}function LD(t,e,A=new Map,i=new Map){let o=[],n=[],g=-1,r=null;if(e.forEach(s=>{let a=s.get("offset"),Q=a==g,c=Q&&r||new Map;s.forEach((f,m)=>{let p=m,M=f;if(m!=="offset")switch(p=t.normalizePropertyName(p,o),M){case Cs:M=A.get(m);break;case ci:M=i.get(m);break;default:M=t.normalizeStyleValue(m,p,M,o);break}c.set(p,M)}),Q||n.push(c),r=c,g=a}),o.length)throw Jq(o);return n}function Qc(t,e,A,i){switch(e){case"start":t.onStart(()=>i(A&&SD(A,"start",t)));break;case"done":t.onDone(()=>i(A&&SD(A,"done",t)));break;case"destroy":t.onDestroy(()=>i(A&&SD(A,"destroy",t)));break}}function SD(t,e,A){let i=A.totalTime,o=!!A.disabled,n=Ec(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 Ec(t,e,A,i,o="",n=0,g){return{element:t,triggerName:e,fromState:A,toState:i,phaseName:o,totalTime:n,disabled:!!g}}function Jt(t,e,A){let i=t.get(e);return i||t.set(e,i=A),i}function _D(t){let e=t.indexOf(":"),A=t.substring(1,e),i=t.slice(e+1);return[A,i]}var Hq=typeof document>"u"?null:document.documentElement;function cc(t){let e=t.parentNode||t.host||null;return e===Hq?null:e}function Tq(t){return t.substring(1,6)=="ebkit"}var Hg=null,zF=!1;function fv(t){Hg||(Hg=Oq()||{},zF=Hg.style?"WebkitAppearance"in Hg.style:!1);let e=!0;return Hg.style&&!Tq(t)&&(e=t in Hg.style,!e&&zF&&(e="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Hg.style)),e}function Oq(){return typeof document<"u"?document.body:null}function KD(t,e){for(;e;){if(e===t)return!0;e=cc(e)}return!1}function UD(t,e,A){if(A)return Array.from(t.querySelectorAll(e));let i=t.querySelector(e);return i?[i]:[]}var Pq=1e3,xD="{{",Zq="}}",YD="ng-enter",lc="ng-leave",TI="ng-trigger",OI=".ng-trigger",JD="ng-animating",dc=".ng-animating";function ko(t){if(typeof t=="number")return t;let e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:ND(parseFloat(e[1]),e[2])}function ND(t,e){switch(e){case"s":return t*Pq;default:return t}}function PI(t,e,A){return t.hasOwnProperty("duration")?t:qq(t,e,A)}function qq(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(WF(t)),{duration:0,delay:0,easing:""};o=ND(parseFloat(r[1]),r[2]);let s=r[3];s!=null&&(n=ND(parseFloat(s),r[4]));let a=r[5];a&&(g=a)}else o=t;if(!A){let r=!1,s=e.length;o<0&&(e.push(_q()),r=!0),n<0&&(e.push(Kq()),r=!0),r&&e.splice(s,0,WF(t))}return{duration:o,delay:n,easing:g}}function pv(t){return t.length?t[0]instanceof Map?t:t.map(e=>new Map(Object.entries(e))):[]}function Yi(t,e,A){e.forEach((i,o)=>{let n=hc(o);A&&!A.has(o)&&A.set(o,t.style[n]),t.style[n]=i})}function Tn(t,e){e.forEach((A,i)=>{let o=hc(i);t.style[o]=""})}function ys(t){return Array.isArray(t)?t.length==1?t[0]:Nk(t):t}function wv(t,e,A){let i=e.params||{},o=HD(t);o.length&&o.forEach(n=>{i.hasOwnProperty(n)||A.push(Uq(n))})}var GD=new RegExp(`${xD}\\s*(.+?)\\s*${Zq}`,"g");function HD(t){let e=[];if(typeof t=="string"){let A;for(;A=GD.exec(t);)e.push(A[1]);GD.lastIndex=0}return e}function Ms(t,e,A){let i=`${t}`,o=i.replace(GD,(n,g)=>{let r=e[g];return r==null&&(A.push(xq(g)),r=""),r.toString()});return o==i?t:o}var Vq=/-+([a-z0-9])/g;function hc(t){return t.replace(Vq,(...e)=>e[1].toUpperCase())}function yv(t,e){return t===0||e===0}function Mv(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,uc(t,r)))}}return e}function Ht(t,e,A){switch(e.type){case xA.Trigger:return t.visitTrigger(e,A);case xA.State:return t.visitState(e,A);case xA.Transition:return t.visitTransition(e,A);case xA.Sequence:return t.visitSequence(e,A);case xA.Group:return t.visitGroup(e,A);case xA.Animate:return t.visitAnimate(e,A);case xA.Keyframes:return t.visitKeyframes(e,A);case xA.Style:return t.visitStyle(e,A);case xA.Reference:return t.visitReference(e,A);case xA.AnimateChild:return t.visitAnimateChild(e,A);case xA.AnimateRef:return t.visitAnimateRef(e,A);case xA.Query:return t.visitQuery(e,A);case xA.Stagger:return t.visitStagger(e,A);default:throw Yq(e.type)}}function uc(t,e){return window.getComputedStyle(t)[e]}var gf=(()=>{class t{validateStyleProperty(A){return fv(A)}containsElement(A,i){return KD(A,i)}getParentElement(A){return cc(A)}query(A,i,o){return UD(A,i,o)}computeStyle(A,i,o){return o||""}animate(A,i,o,n,g,r=[],s){return new co(o,n)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})(),Og=class{static NOOP=new gf},Pg=class{};var Wq=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"]),wc=class extends Pg{normalizePropertyName(e,A){return hc(e)}normalizeStyleValue(e,A,i,o){let n="",g=i.toString().trim();if(Wq.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(jF(e,i))}return g+n}};var yc="*";function zq(t,e){let A=[];return typeof t=="string"?t.split(/\s*,\s*/).forEach(i=>jq(i,A,e)):A.push(t),A}function jq(t,e,A){if(t[0]==":"){let s=Xq(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(av(t)),e;let o=i[1],n=i[2],g=i[3];e.push(Rv(o,g));let r=o==yc&&g==yc;n[0]=="<"&&!r&&e.push(Rv(g,o))}function Xq(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(Iv(t)),"* => *"}}var mc=new Set(["true","1"]),Dc=new Set(["false","0"]);function Rv(t,e){let A=mc.has(t)||Dc.has(t),i=mc.has(e)||Dc.has(e);return(o,n)=>{let g=t==yc||t==o,r=e==yc||e==n;return!g&&A&&typeof o=="boolean"&&(g=o?mc.has(t):Dc.has(t)),!r&&i&&typeof n=="boolean"&&(r=n?mc.has(e):Dc.has(e)),g&&r}}var Kv=":self",$q=new RegExp(`s*${Kv}s*,?`,"g");function Uv(t,e,A,i){return new VD(t).build(e,A,i)}var kv="",VD=class{_driver;constructor(e){this._driver=e}build(e,A,i){let o=new WD(A);return this._resetContextStyleTimingState(o),Ht(this,ys(e),o)}_resetContextStyleTimingState(e){e.currentQuerySelector=kv,e.collectedStyles=new Map,e.collectedStyles.set(kv,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(XF()),e.definitions.forEach(r=>{if(this._resetContextStyleTimingState(A),r.type==xA.State){let s=r,a=s.name;a.toString().split(/\s*,\s*/).forEach(Q=>{s.name=Q,n.push(this.visitState(s,A))}),s.name=a}else if(r.type==xA.Transition){let s=this.visitTransition(r,A);i+=s.queryCount,o+=s.depCount,g.push(s)}else A.errors.push($F())}),{type:xA.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=>{HD(s).forEach(a=>{g.hasOwnProperty(a)||n.add(a)})})}),n.size&&A.errors.push(Av(e.name,[...n.values()]))}return{type:xA.State,name:e.name,style:i,options:o?{params:o}:null}}visitTransition(e,A){A.queryCount=0,A.depCount=0;let i=Ht(this,ys(e.animation),A),o=zq(e.expr,A.errors);return{type:xA.Transition,matchers:o,animation:i,queryCount:A.queryCount,depCount:A.depCount,options:Tg(e.options)}}visitSequence(e,A){return{type:xA.Sequence,steps:e.steps.map(i=>Ht(this,i,A)),options:Tg(e.options)}}visitGroup(e,A){let i=A.currentTime,o=0,n=e.steps.map(g=>{A.currentTime=i;let r=Ht(this,g,A);return o=Math.max(o,A.currentTime),r});return A.currentTime=o,{type:xA.Group,steps:n,options:Tg(e.options)}}visitAnimate(e,A){let i=iV(e.timings,A.errors);A.currentAnimateTimings=i;let o,n=e.styles?e.styles:Ue({});if(n.type==xA.Keyframes)o=this.visitKeyframes(n,A);else{let g=e.styles,r=!1;if(!g){r=!0;let a={};i.easing&&(a.easing=i.easing),g=Ue(a)}A.currentTime+=i.duration+i.delay;let s=this.visitStyle(g,A);s.isEmptyStep=r,o=s}return A.currentAnimateTimings=null,{type:xA.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===ci?i.push(r):A.errors.push(ev(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(xD)>=0){n=!0;break}}}),{type:xA.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 a=A.collectedStyles.get(A.currentQuerySelector),Q=a.get(s),c=!0;Q&&(n!=o&&n>=Q.startTime&&o<=Q.endTime&&(A.errors.push(tv(s,Q.startTime,Q.endTime,n,o)),c=!1),n=Q.startTime),c&&a.set(s,{startTime:n,endTime:o}),A.options&&wv(r,A.options,A.errors)})})}visitKeyframes(e,A){let i={type:xA.Keyframes,styles:[],options:null};if(!A.currentAnimateTimings)return A.errors.push(iv()),i;let o=1,n=0,g=[],r=!1,s=!1,a=0,Q=e.steps.map(W=>{let DA=this._makeStyleAst(W,A),YA=DA.offset!=null?DA.offset:tV(DA.styles),wA=0;return YA!=null&&(n++,wA=DA.offset=YA),s=s||wA<0||wA>1,r=r||wA<a,a=wA,g.push(wA),DA});s&&A.errors.push(ov()),r&&A.errors.push(nv());let c=e.steps.length,f=0;n>0&&n<c?A.errors.push(gv()):n==0&&(f=o/(c-1));let m=c-1,p=A.currentTime,M=A.currentAnimateTimings,K=M.duration;return Q.forEach((W,DA)=>{let YA=f>0?DA==m?1:f*DA:g[DA],wA=YA*K;A.currentTime=p+M.delay+wA,M.duration=wA,this._validateStyleAst(W,A),W.offset=YA,i.styles.push(W)}),i}visitReference(e,A){return{type:xA.Reference,animation:Ht(this,ys(e.animation),A),options:Tg(e.options)}}visitAnimateChild(e,A){return A.depCount++,{type:xA.AnimateChild,options:Tg(e.options)}}visitAnimateRef(e,A){return{type:xA.AnimateRef,animation:this.visitReference(e.animation,A),options:Tg(e.options)}}visitQuery(e,A){let i=A.currentQuerySelector,o=e.options||{};A.queryCount++,A.currentQuery=e;let[n,g]=AV(e.selector);A.currentQuerySelector=i.length?i+" "+n:n,Jt(A.collectedStyles,A.currentQuerySelector,new Map);let r=Ht(this,ys(e.animation),A);return A.currentQuery=null,A.currentQuerySelector=i,{type:xA.Query,selector:n,limit:o.limit||0,optional:!!o.optional,includeSelf:g,animation:r,originalSelector:e.selector,options:Tg(e.options)}}visitStagger(e,A){A.currentQuery||A.errors.push(rv());let i=e.timings==="full"?{duration:0,delay:0,easing:"full"}:PI(e.timings,A.errors,!0);return{type:xA.Stagger,animation:Ht(this,ys(e.animation),A),timings:i,options:null}}};function AV(t){let e=!!t.split(/\s*,\s*/).find(A=>A==Kv);return e&&(t=t.replace($q,"")),t=t.replace(/@\*/g,OI).replace(/@\w+/g,A=>OI+"-"+A.slice(1)).replace(/:animating/g,dc),[t,e]}function eV(t){return t?b({},t):null}var WD=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 tV(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 iV(t,e){if(t.hasOwnProperty("duration"))return t;if(typeof t=="number"){let n=PI(t,e).duration;return TD(n,0,"")}let A=t;if(A.split(/\s+/).some(n=>n.charAt(0)=="{"&&n.charAt(1)=="{")){let n=TD(0,0,"");return n.dynamic=!0,n.strValue=A,n}let o=PI(A,e);return TD(o.duration,o.delay,o.easing)}function Tg(t){return t?(t=b({},t),t.params&&(t.params=eV(t.params))):t={},t}function TD(t,e,A){return{duration:t,delay:e,easing:A}}function rf(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 qI=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()}},oV=1,nV=":enter",gV=new RegExp(nV,"g"),rV=":leave",sV=new RegExp(rV,"g");function xv(t,e,A,i,o,n=new Map,g=new Map,r,s,a=[]){return new zD().buildKeyframes(t,e,A,i,o,n,g,r,s,a)}var zD=class{buildKeyframes(e,A,i,o,n,g,r,s,a,Q=[]){a=a||new qI;let c=new jD(e,A,a,o,n,Q,[]);c.options=s;let f=s.delay?ko(s.delay):0;c.currentTimeline.delayNextStep(f),c.currentTimeline.setStyles([g],null,c.errors,s),Ht(this,i,c);let m=c.timelines.filter(p=>p.containsAnimation());if(m.length&&r.size){let p;for(let M=m.length-1;M>=0;M--){let K=m[M];if(K.element===A){p=K;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([r],null,c.errors,s)}return m.length?m.map(p=>p.buildKeyframes()):[rf(A,[],[],[],0,f,"",!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:ko(Ms(n,o?.params??{},A.errors));i.delayNextStep(g)}}}_visitSubInstructions(e,A,i){let n=A.currentTimeline.currentTime,g=i.duration!=null?ko(i.duration):null,r=i.delay!=null?ko(i.delay):null;return g!==0&&e.forEach(s=>{let a=A.appendInstructionToTimeline(s,g,r);n=Math.max(n,a.duration+a.delay)}),n}visitReference(e,A){A.updateOptions(e.options,!0),Ht(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==xA.Style&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=Mc);let g=ko(n.delay);o.delayNextStep(g)}e.steps.length&&(e.steps.forEach(g=>Ht(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?ko(e.options.delay):0;e.steps.forEach(g=>{let r=A.createSubContext(e.options);n&&r.delayNextStep(n),Ht(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?Ms(i,A.params,A.errors):i;return PI(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==xA.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 a=s.offset||0;r.forwardTime(a*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?ko(o.delay):0;n&&(A.previousNode.type===xA.Style||i==0&&A.currentTimeline.hasCurrentStyleProperties())&&(A.currentTimeline.snapshotCurrentStyles(),A.previousNode=Mc);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((a,Q)=>{A.currentQueryIndex=Q;let c=A.createSubContext(e.options,a);n&&c.delayNextStep(n),a===A.element&&(s=c.currentTimeline),Ht(this,e.animation,c),c.currentTimeline.applyStylesToKeyframe();let f=c.currentTimeline.currentTime;g=Math.max(g,f)}),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 Q=A.currentTimeline;s&&Q.delayNextStep(s);let c=Q.currentTime;Ht(this,e.animation,A),A.previousNode=e,i.currentStaggerTime=o.currentTime-c+(o.startTime-i.currentTimeline.startTime)}},Mc={},jD=class t{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=Mc;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 Rc(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=ko(i.duration)),i.delay!=null&&(o.delay=ko(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]=Ms(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=Mc,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 XD(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(gV,"."+this._enterClassName),e=e.replace(sV,"."+this._leaveClassName);let s=i!=1,a=this._driver.query(this.element,e,s);i!==0&&(a=i<0?a.slice(a.length+i,a.length):a.slice(0,i)),r.push(...a)}return!n&&r.length==0&&g.push(sv(A)),r}},Rc=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+=oV,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||ci),this._currentKeyframe.set(A,ci);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,A,i,o){A&&this._previousKeyframe.set("easing",A);let n=o&&o.params||{},g=aV(e,this._globalTimelineStyles);for(let[r,s]of g){let a=Ms(s,n,i);this._pendingStyles.set(r,a),this._localTimelineStyles.has(r)||this._backFill.set(r,this._globalTimelineStyles.get(r)??ci),this._updateStyle(r,a)}}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 a=new Map([...this._backFill,...r]);a.forEach((Q,c)=>{Q===Cs?e.add(c):Q===ci&&A.add(c)}),i||a.set("offset",s/this.duration),o.push(a)});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 rf(this.element,o,n,g,this.duration,this.startTime,this.easing,!1)}},XD=class extends Rc{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 a=new Map(e[0]);a.set("offset",bv(r)),n.push(a);let Q=e.length-1;for(let c=1;c<=Q;c++){let f=new Map(e[c]),m=f.get("offset"),p=A+m*i;f.set("offset",bv(p/g)),n.push(f)}i=g,A=0,o="",e=n}return rf(this.element,e,this.preStyleProps,this.postStyleProps,i,A,o,!0)}};function bv(t,e=3){let A=Math.pow(10,e-1);return Math.round(t*A)/A}function aV(t,e){let A=new Map,i;return t.forEach(o=>{if(o==="*"){i??=e.keys();for(let n of i)A.set(n,ci)}else for(let[n,g]of o)A.set(n,g)}),A}function Fv(t,e,A,i,o,n,g,r,s,a,Q,c,f){return{type:0,element:t,triggerName:e,isRemovalTransition:o,fromState:A,fromStyles:n,toState:i,toStyles:g,timelines:r,queriedElements:s,preStyleProps:a,postStyleProps:Q,totalTime:c,errors:f}}var OD={},kc=class{_triggerName;ast;_stateStyles;constructor(e,A,i){this._triggerName=e,this.ast=A,this._stateStyles=i}match(e,A,i,o){return IV(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,a,Q){let c=[],f=this.ast.options&&this.ast.options.params||OD,m=r&&r.params||OD,p=this.buildStyles(i,m,c),M=s&&s.params||OD,K=this.buildStyles(o,M,c),W=new Set,DA=new Map,YA=new Map,wA=o==="void",yt={params:Yv(M,f),delay:this.ast.options?.delay},we=Q?[]:xv(e,A,this.ast.animation,n,g,p,K,yt,a,c),Fe=0;return we.forEach(he=>{Fe=Math.max(he.duration+he.delay,Fe)}),c.length?Fv(A,this._triggerName,i,o,wA,p,K,[],[],DA,YA,Fe,c):(we.forEach(he=>{let ui=he.element,bo=Jt(DA,ui,new Set);he.preStyleProps.forEach(Ti=>bo.add(Ti));let Hi=Jt(YA,ui,new Set);he.postStyleProps.forEach(Ti=>Hi.add(Ti)),ui!==A&&W.add(ui)}),Fv(A,this._triggerName,i,o,wA,p,K,we,[...W.values()],DA,YA,Fe))}};function IV(t,e,A,i,o){return t.some(n=>n(e,A,i,o))}function Yv(t,e){let A=b({},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=Yv(e,this.defaultParams);return this.styles.styles.forEach(n=>{typeof n!="string"&&n.forEach((g,r)=>{g&&(g=Ms(g,o,A));let s=this.normalizer.normalizePropertyName(r,A);g=this.normalizer.normalizeStyleValue(r,s,g,A),i.set(r,g)})}),i}};function CV(t,e,A){return new Af(t,e,A)}var Af=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))}),vv(this.states,"true","1"),vv(this.states,"false","0"),A.transitions.forEach(o=>{this.transitionFactories.push(new kc(e,o,this.states))}),this.fallbackTransition=BV(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 BV(t,e,A){let i=[(g,r)=>!0],o={type:xA.Sequence,steps:[],options:null},n={type:xA.Transition,animation:o,matchers:i,options:null,queryCount:0,depCount:0};return new kc(t,n,e)}function vv(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 QV=new qI,ef=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=Uv(this._driver,A,i,o);if(i.length)throw Bv(i);this._animations.set(e,n)}_buildPlayer(e,A,i){let o=e.element,n=LD(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=xv(this._driver,A,n,YD,lc,new Map,new Map,i,QV,o),g.forEach(Q=>{let c=Jt(r,Q.element,new Map);Q.postStyleProps.forEach(f=>c.set(f,null))})):(o.push(Qv()),g=[]),o.length)throw Ev(o);r.forEach((Q,c)=>{Q.forEach((f,m)=>{Q.set(m,this._driver.computeStyle(c,m,ci))})});let s=g.map(Q=>{let c=r.get(Q.element);return this._buildPlayer(Q,new Map,c)}),a=nn(s);return this._playersById.set(e,a),a.onDestroy(()=>this.destroy(e)),this.players.push(a),a}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 cv(e);return A}listen(e,A,i,o){let n=Ec(A,"","","");return Qc(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}}},Sv="ng-animate-queued",EV=".ng-animate-queued",PD="ng-animate-disabled",cV=".ng-animate-disabled",lV="ng-star-inserted",dV=".ng-star-inserted",hV=[],Jv={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},uV={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ji="__ng_removed",VI=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=DV(o),i){let n=e,{value:g}=n,r=_c(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])})}}},ZI="void",ZD=new VI(ZI),tf=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,hi(A,this._hostClassName)}listen(e,A,i,o){if(!this._triggers.has(A))throw lv(i,A);if(i==null||i.length==0)throw dv(A);if(!fV(i))throw hv(i,A);let n=Jt(this._elementListeners,e,[]),g={name:A,phase:i,callback:o};n.push(g);let r=Jt(this._engine.statesByElement,e,new Map);return r.has(A)||(hi(e,TI),hi(e,TI+"-"+A),r.set(A,ZD)),()=>{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 uv(e);return A}trigger(e,A,i,o=!0){let n=this._getTrigger(A),g=new WI(this.id,A,e),r=this._engine.statesByElement.get(e);r||(hi(e,TI),hi(e,TI+"-"+A),this._engine.statesByElement.set(e,r=new Map));let s=r.get(A),a=new VI(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&s&&a.absorbOptions(s.options),r.set(A,a),s||(s=ZD),!(a.value===ZI)&&s.value===a.value){if(!yV(s.params,a.params)){let M=[],K=n.matchStyles(s.value,s.params,M),W=n.matchStyles(a.value,a.params,M);M.length?this._engine.reportError(M):this._engine.afterFlush(()=>{Tn(e,K),Yi(e,W)})}return}let f=Jt(this._engine.playersByElement,e,[]);f.forEach(M=>{M.namespaceId==this.id&&M.triggerName==A&&M.queued&&M.destroy()});let m=n.matchTransition(s.value,a.value,e,a.params),p=!1;if(!m){if(!o)return;m=n.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:A,transition:m,fromState:s,toState:a,player:g,isFallbackTransition:p}),p||(hi(e,Sv),g.onStart(()=>{Rs(e,Sv)})),g.onDone(()=>{let M=this.players.indexOf(g);M>=0&&this.players.splice(M,1);let K=this._engine.playersByElement.get(e);if(K){let W=K.indexOf(g);W>=0&&K.splice(W,1)}}),this.players.push(g),f.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,OI,!0);i.forEach(o=>{if(o[Ji])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,a)=>{if(g.set(a,s.value),this._triggers.has(a)){let Q=this.trigger(e,a,ZI,o);Q&&r.push(Q)}}),r.length)return this._engine.markElementAsRemoved(this.id,e,!0,A,g),i&&nn(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,a=i.get(g)||ZD,Q=new VI(ZI),c=new WI(this.id,g,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:g,transition:s,fromState:a,toState:Q,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[Ji];(!n||n===Jv)&&(i.afterFlush(()=>this.clearElementCache(e)),i.destroyInnerAnimations(e),i._onRemovalComplete(e,A))}}insertNode(e,A){hi(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=Ec(n,i.triggerName,i.fromState.value,i.toState.value);s._data=e,Qc(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)}},of=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 tf(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 a=i.indexOf(s);i.splice(a+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(fc(A)){let n=this._fetchNamespace(e);if(n)return n.trigger(A,i,o),!0}return!1}insertNode(e,A,i,o){if(!fc(A))return;let n=A[Ji];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),hi(e,PD)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Rs(e,PD))}removeNode(e,A,i){if(fc(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[Ji]={namespaceId:e,setForRemoval:o,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:n}}listen(e,A,i,o,n){return fc(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,OI,!0);A.forEach(i=>this.destroyActiveAnimationsForElement(i)),this.playersByQueriedElement.size!=0&&(A=this.driver.query(e,dc,!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 nn(this.players).onDone(()=>e());e()})}processLeaveNode(e){let A=e[Ji];if(A&&A.setForRemoval){if(e[Ji]=Jv,A.namespaceId){this.destroyInnerAnimations(e);let i=this._fetchNamespace(A.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,A.setForRemoval)}e.classList?.contains(PD)&&this.markElementAsDisabled(e,!1),this.driver.query(e,cV,!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];hi(o,lV)}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?nn(A).onDone(()=>{i.forEach(o=>o())}):i.forEach(o=>o())}}reportError(e){throw mv(e)}_flushAnimations(e,A){let i=new qI,o=[],n=new Map,g=[],r=new Map,s=new Map,a=new Map,Q=new Set;this.disabledNodes.forEach(E=>{Q.add(E);let oA=this.driver.query(E,EV,!0);for(let fA=0;fA<oA.length;fA++)Q.add(oA[fA])});let c=this.bodyNode,f=Array.from(this.statesByElement.keys()),m=Lv(f,this.collectedEnterElements),p=new Map,M=0;m.forEach((E,oA)=>{let fA=YD+M++;p.set(oA,fA),E.forEach(VA=>hi(VA,fA))});let K=[],W=new Set,DA=new Set;for(let E=0;E<this.collectedLeaveElements.length;E++){let oA=this.collectedLeaveElements[E],fA=oA[Ji];fA&&fA.setForRemoval&&(K.push(oA),W.add(oA),fA.hasAnimation?this.driver.query(oA,dV,!0).forEach(VA=>W.add(VA)):DA.add(oA))}let YA=new Map,wA=Lv(f,Array.from(W));wA.forEach((E,oA)=>{let fA=lc+M++;YA.set(oA,fA),E.forEach(VA=>hi(VA,fA))}),e.push(()=>{m.forEach((E,oA)=>{let fA=p.get(oA);E.forEach(VA=>Rs(VA,fA))}),wA.forEach((E,oA)=>{let fA=YA.get(oA);E.forEach(VA=>Rs(VA,fA))}),K.forEach(E=>{this.processLeaveNode(E)})});let yt=[],we=[];for(let E=this._namespaceList.length-1;E>=0;E--)this._namespaceList[E].drainQueuedTransitions(A).forEach(fA=>{let VA=fA.player,Ne=fA.element;if(yt.push(VA),this.collectedEnterElements.length){let He=Ne[Ji];if(He&&He.setForMove){if(He.previousTriggersValues&&He.previousTriggersValues.has(fA.triggerName)){let Oi=He.previousTriggersValues.get(fA.triggerName),ht=this.statesByElement.get(fA.element);if(ht&&ht.has(fA.triggerName)){let On=ht.get(fA.triggerName);On.value=Oi,ht.set(fA.triggerName,On)}}VA.destroy();return}}let tt=!c||!this.driver.containsElement(c,Ne),dt=YA.get(Ne),gi=p.get(Ne),oe=this._buildInstruction(fA,i,gi,dt,tt);if(oe.errors&&oe.errors.length){we.push(oe);return}if(tt){VA.onStart(()=>Tn(Ne,oe.fromStyles)),VA.onDestroy(()=>Yi(Ne,oe.toStyles)),o.push(VA);return}if(fA.isFallbackTransition){VA.onStart(()=>Tn(Ne,oe.fromStyles)),VA.onDestroy(()=>Yi(Ne,oe.toStyles)),o.push(VA);return}let jI=[];oe.timelines.forEach(He=>{He.stretchStartingKeyframe=!0,this.disabledNodes.has(He.element)||jI.push(He)}),oe.timelines=jI,i.append(Ne,oe.timelines);let XI={instruction:oe,player:VA,element:Ne};g.push(XI),oe.queriedElements.forEach(He=>Jt(r,He,[]).push(VA)),oe.preStyleProps.forEach((He,Oi)=>{if(He.size){let ht=s.get(Oi);ht||s.set(Oi,ht=new Set),He.forEach((On,bs)=>ht.add(bs))}}),oe.postStyleProps.forEach((He,Oi)=>{let ht=a.get(Oi);ht||a.set(Oi,ht=new Set),He.forEach((On,bs)=>ht.add(bs))})});if(we.length){let E=[];we.forEach(oA=>{E.push(Dv(oA.triggerName,oA.errors))}),yt.forEach(oA=>oA.destroy()),this.reportError(E)}let Fe=new Map,he=new Map;g.forEach(E=>{let oA=E.element;i.has(oA)&&(he.set(oA,oA),this._beforeAnimationBuild(E.player.namespaceId,E.instruction,Fe))}),o.forEach(E=>{let oA=E.element;this._getPreviousPlayers(oA,!1,E.namespaceId,E.triggerName,null).forEach(VA=>{Jt(Fe,oA,[]).push(VA),VA.destroy()})});let ui=K.filter(E=>_v(E,s,a)),bo=new Map;Gv(bo,this.driver,DA,a,ci).forEach(E=>{_v(E,s,a)&&ui.push(E)});let Ti=new Map;m.forEach((E,oA)=>{Gv(Ti,this.driver,new Set(E),s,Cs)}),ui.forEach(E=>{let oA=bo.get(E),fA=Ti.get(E);bo.set(E,new Map([...oA?.entries()??[],...fA?.entries()??[]]))});let Zg=[],JA=[],qg={};g.forEach(E=>{let{element:oA,player:fA,instruction:VA}=E;if(i.has(oA)){if(Q.has(oA)){fA.onDestroy(()=>Yi(oA,VA.toStyles)),fA.disabled=!0,fA.overrideTotalTime(VA.totalTime),o.push(fA);return}let Ne=qg;if(he.size>1){let dt=oA,gi=[];for(;dt=dt.parentNode;){let oe=he.get(dt);if(oe){Ne=oe;break}gi.push(dt)}gi.forEach(oe=>he.set(oe,Ne))}let tt=this._buildAnimation(fA.namespaceId,VA,Fe,n,Ti,bo);if(fA.setRealPlayer(tt),Ne===qg)Zg.push(fA);else{let dt=this.playersByElement.get(Ne);dt&&dt.length&&(fA.parentPlayer=nn(dt)),o.push(fA)}}else Tn(oA,VA.fromStyles),fA.onDestroy(()=>Yi(oA,VA.toStyles)),JA.push(fA),Q.has(oA)&&o.push(fA)}),JA.forEach(E=>{let oA=n.get(E.element);if(oA&&oA.length){let fA=nn(oA);E.setRealPlayer(fA)}}),o.forEach(E=>{E.parentPlayer?E.syncPlayerEvents(E.parentPlayer):E.destroy()});for(let E=0;E<K.length;E++){let oA=K[E],fA=oA[Ji];if(Rs(oA,lc),fA&&fA.hasAnimation)continue;let VA=[];if(r.size){let tt=r.get(oA);tt&&tt.length&&VA.push(...tt);let dt=this.driver.query(oA,dc,!0);for(let gi=0;gi<dt.length;gi++){let oe=r.get(dt[gi]);oe&&oe.length&&VA.push(...oe)}}let Ne=VA.filter(tt=>!tt.destroyed);Ne.length?pV(this,oA,Ne):this.processLeaveNode(oA)}return K.length=0,Zg.forEach(E=>{this.players.push(E),E.onDone(()=>{E.destroy();let oA=this.players.indexOf(E);this.players.splice(oA,1)}),E.play()}),Zg}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==ZI;r.forEach(a=>{a.queued||!s&&a.triggerName!=o||g.push(a)})}}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 a=s.element,Q=a!==n,c=Jt(i,a,[]);this._getPreviousPlayers(a,Q,g,r,A.toState).forEach(m=>{let p=m.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),m.destroy(),c.push(m)})}Tn(n,A.fromStyles)}_buildAnimation(e,A,i,o,n,g){let r=A.triggerName,s=A.element,a=[],Q=new Set,c=new Set,f=A.timelines.map(p=>{let M=p.element;Q.add(M);let K=M[Ji];if(K&&K.removedBeforeQueried)return new co(p.duration,p.delay);let W=M!==s,DA=wV((i.get(M)||hV).map(Fe=>Fe.getRealPlayer())).filter(Fe=>{let he=Fe;return he.element?he.element===M:!1}),YA=n.get(M),wA=g.get(M),yt=LD(this._normalizer,p.keyframes,YA,wA),we=this._buildPlayer(p,yt,DA);if(p.subTimeline&&o&&c.add(M),W){let Fe=new WI(e,r,M);Fe.setRealPlayer(we),a.push(Fe)}return we});a.forEach(p=>{Jt(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>mV(this.playersByQueriedElement,p.element,p))}),Q.forEach(p=>hi(p,JD));let m=nn(f);return m.onDestroy(()=>{Q.forEach(p=>Rs(p,JD)),Yi(s,A.toStyles)}),c.forEach(p=>{Jt(o,p,[]).push(m)}),m}_buildPlayer(e,A,i){return A.length>0?this.driver.animate(e.element,A,e.duration,e.delay,e.easing,i):new co(e.duration,e.delay)}},WI=class{namespaceId;triggerName;element;_player=new co;_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=>Qc(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){Jt(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 mV(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 DV(t){return t??null}function fc(t){return t&&t.nodeType===1}function fV(t){return t=="start"||t=="done"}function Nv(t,e){let A=t.style.display;return t.style.display=e??"none",A}function Gv(t,e,A,i,o){let n=[];A.forEach(s=>n.push(Nv(s)));let g=[];i.forEach((s,a)=>{let Q=new Map;s.forEach(c=>{let f=e.computeStyle(a,c,o);Q.set(c,f),(!f||f.length==0)&&(a[Ji]=uV,g.push(a))}),t.set(a,Q)});let r=0;return A.forEach(s=>Nv(s,n[r++])),g}function Lv(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 a=r.parentNode;return A.has(a)?s=a:o.has(a)?s=i:s=g(a),n.set(r,s),s}return e.forEach(r=>{let s=g(r);s!==i&&A.get(s).push(r)}),A}function hi(t,e){t.classList?.add(e)}function Rs(t,e){t.classList?.remove(e)}function pV(t,e,A){nn(A).onDone(()=>t.processLeaveNode(e))}function wV(t){let e=[];return Hv(t,e),e}function Hv(t,e){for(let A=0;A<t.length;A++){let i=t[A];i instanceof Sg?Hv(i.players,e):e.push(i)}}function yV(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 _v(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 ks=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(e,A)=>{};constructor(e,A,i){this._driver=A,this._normalizer=i,this._transitionEngine=new of(e.body,A,i),this._timelineEngine=new ef(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=[],a=[],Q=Uv(this._driver,n,s,a);if(s.length)throw Cv(o,s);r=CV(o,Q,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]=_D(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]=_D(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 MV(t,e){let A=null,i=null;return Array.isArray(e)&&e.length?(A=qD(e[0]),e.length>1&&(i=qD(e[e.length-1]))):e instanceof Map&&(A=qD(e)),A||i?new RV(t,A,i):null}var RV=(()=>{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&&Yi(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Yi(this._element,this._initialStyles),this._endStyles&&(Yi(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Tn(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Tn(this._element,this._endStyles),this._endStyles=null),Yi(this._element,this._initialStyles),this._state=3)}}return t})();function qD(t){let e=null;return t.forEach((A,i)=>{kV(i)&&(e=e||new Map,e.set(i,A))}),e}function kV(t){return t==="display"||t==="position"}var bc=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:uc(this.element,o))}),this.currentSnapshot=e}triggerCallback(e){let A=e==="start"?this._onStartFns:this._onDoneFns;A.forEach(i=>i()),A.length=0}},Fc=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,A){return KD(e,A)}getParentElement(e){return cc(e)}query(e,A,i){return UD(e,A,i)}computeStyle(e,A,i){return uc(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 a=new Map,Q=g.filter(m=>m instanceof bc);yv(i,o)&&Q.forEach(m=>{m.currentSnapshot.forEach((p,M)=>a.set(M,p))});let c=pv(A).map(m=>new Map(m));c=Mv(e,c,a);let f=MV(e,c);return new bc(e,c,s,f)}};var pc="@",Tv="@.disabled",vc=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)==pc&&A==Tv?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)}},nf=class extends vc{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)==pc?A.charAt(1)=="."&&A==Tv?(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)==pc){let n=bV(e),g=A.slice(1),r="";return g.charAt(0)!=pc&&([g,r]=FV(g)),this.engine.listen(this.namespaceId,n,g,r,s=>{let a=s._data||-1;this.factory.scheduleListenerCallback(a,i,s)})}return this.delegate.listen(e,A,i,o)}};function bV(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}function FV(t){let e=t.indexOf("."),A=t.substring(0,e),i=t.slice(e+1);return[A,i]}var Sc=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 a=this._rendererCache,Q=a.get(o);if(!Q){let c=()=>a.delete(o);Q=new vc(i,o,this.engine,c),a.set(o,Q)}return Q}let n=A.id,g=A.id+"-"+this._currentId;this._currentId++,this.engine.register(g,e);let r=a=>{Array.isArray(a)?a.forEach(r):this.engine.registerTrigger(n,g,e,a.name,a)};return A.data.animation.forEach(r),new nf(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 SV=(()=>{class t extends ks{constructor(A,i,o){super(A,i,o)}ngOnDestroy(){this.flush()}static \u0275fac=function(i){return new(i||t)(Z(cA),Z(Og),Z(Pg))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})();function NV(){return new wc}function GV(t,e,A){return new Sc(t,e,A)}var Pv=[{provide:Pg,useFactory:NV},{provide:ks,useClass:SV},{provide:Bt,useFactory:GV,deps:[ba,ks,tA]}],LV=[{provide:Og,useClass:gf},{provide:Ae,useValue:"NoopAnimations"},...Pv],Ov=[{provide:Og,useFactory:()=>new Fc},{provide:Ae,useFactory:()=>"BrowserAnimations"},...Pv],Zv=(()=>{class t{static withConfig(A){return{ngModule:t,providers:A.disableAnimations?LV:Ov}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=X({type:t});static \u0275inj=j({providers:Ov,imports:[va]})}return t})();var _V=new F("mat-chips-default-options",{providedIn:"root",factory:()=>({separatorKeyCodes:[13]})});var qv=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=X({type:t});static \u0275inj=j({providers:[gs,{provide:_V,useValue:{separatorKeyCodes:[13]}}],imports:[mA,jo,mA]})}return t})();var Nc=class t{static \u0275fac=function(A){return new(A||t)};static \u0275mod=X({type:t});static \u0275inj=j({imports:[Zo,bQ,sF,mb,tn,ec,Xo,jk,Xo,iF,aF,QF,DF,UE,wb,Hb,xE,wF,jb,PF.forRoot(),ZF,qM,qv,gF]})};var zI=class t{static \u0275fac=function(A){return new(A||t)};static \u0275mod=X({type:t,bootstrap:[ws]});static \u0275inj=j({providers:[wo,Un,yo,us,ms,Ds,po,hs,Jn],imports:[Nc,va,bQ,su,Bc,ec,tn,Xo,Zv,Xo]})};fetch("./assets/config/runtime-config.json").then(t=>t.json()).then(t=>{window.runtimeConfig=t,sQ().bootstrapModule(zI).catch(e=>console.error(e))});sQ().bootstrapModule(zI).catch(t=>console.error(t));
