diff --git a/angular/docs/assets/images/hex_angular.png b/angular/docs/assets/images/hex_angular.png new file mode 100755 index 00000000000..85563d38d87 Binary files /dev/null and b/angular/docs/assets/images/hex_angular.png differ diff --git a/angular/docs/assets/images/hex_react.png b/angular/docs/assets/images/hex_react.png new file mode 100755 index 00000000000..a1ce6fba8a7 Binary files /dev/null and b/angular/docs/assets/images/hex_react.png differ diff --git a/angular/docs/charts/index.html b/angular/docs/charts/index.html index 743c2007383..5737414f7fc 100644 --- a/angular/docs/charts/index.html +++ b/angular/docs/charts/index.html @@ -8,11 +8,11 @@ - + - + - \ No newline at end of file + \ No newline at end of file diff --git a/angular/docs/chunk-25GTFEEJ.js b/angular/docs/chunk-25GTFEEJ.js new file mode 100644 index 00000000000..a535b42046b --- /dev/null +++ b/angular/docs/chunk-25GTFEEJ.js @@ -0,0 +1 @@ +import{a as b,b as j}from"./chunk-B4O44F5N.js";import{C as c,F as p,K as h,Q as m,V as l,Y as f,ca as u,ha as d,n as a,q as n}from"./chunk-XE7UNM7U.js";import{a as o}from"./chunk-JKOY2XUY.js";var y={},P=(()=>{class r{constructor(t){this.httpClient=t,this.usersUrl="https://apitest.coreui.io/demos/users"}search(t){return t.pipe(p(100),h(),l(e=>{let s={last_name:e,offset:0,limit:15e3,sort:"id%asc"};return this.fetchData(s)}))}fetchData(t){let e=o({},t),s=new b({fromObject:e}),C=Object.keys(s).length?o({params:s},y):o({params:{}},y);return this.httpClient.get(this.usersUrl,C).pipe(m({count:1,delay:1e3,resetOnSuccess:!0}),c(this.handleHttpError),f(i=>{console.log("httpClient",i)}),n(i=>i.records))}handleHttpError(t){return a(()=>t)}static{this.\u0275fac=function(e){return new(e||r)(d(j))}}static{this.\u0275prov=u({token:r,factory:r.\u0275fac})}}return r})();export{P as a}; diff --git a/angular/docs/chunk-2CGQ5GFN.js b/angular/docs/chunk-2CGQ5GFN.js deleted file mode 100644 index b87832a0014..00000000000 --- a/angular/docs/chunk-2CGQ5GFN.js +++ /dev/null @@ -1 +0,0 @@ -import{d as g}from"./chunk-B63QWX6S.js";import{$ as d,Va as p,ca as a,ha as l,ia as u,ma as y,sb as m}from"./chunk-KT673Y7G.js";var r=function(s){return s[s.State=0]="State",s[s.Transition=1]="Transition",s[s.Sequence=2]="Sequence",s[s.Group=3]="Group",s[s.Animate=4]="Animate",s[s.Keyframes=5]="Keyframes",s[s.Style=6]="Style",s[s.Trigger=7]="Trigger",s[s.Reference=8]="Reference",s[s.AnimateChild=9]="AnimateChild",s[s.AnimateRef=10]="AnimateRef",s[s.Query=11]="Query",s[s.Stagger=12]="Stagger",s}(r||{}),x="*";function q(s,t){return{type:r.Trigger,name:s,definitions:t,options:{}}}function L(s,t=null){return{type:r.Animate,styles:t,timings:s}}function $(s,t=null){return{type:r.Group,steps:s,options:t}}function P(s,t=null){return{type:r.Sequence,steps:s,options:t}}function G(s){return{type:r.Style,styles:s,offset:null}}function K(s,t,e){return{type:r.State,name:s,styles:t,options:e}}function N(s,t,e=null){return{type:r.Transition,expr:s,animation:t,options:e}}function Q(s,t=null){return{type:r.Reference,animation:s,options:t}}function T(s,t=null){return{type:r.AnimateRef,animation:s,options:t}}function U(s,t,e=null){return{type:r.Query,selector:s,animation:t,options:e}}var v=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=a({token:t,factory:()=>u(b),providedIn:"root"});let s=t;return s})(),c=class{},b=(()=>{let t=class t extends v{constructor(n,i){super(),this.animationModuleType=u(p,{optional:!0}),this._nextAnimationId=0;let o={id:"0",encapsulation:y.None,styles:[],data:{animation:[]}};if(this._renderer=n.createRenderer(i.body,o),this.animationModuleType===null&&!R(this._renderer))throw new d(3600,!1)}build(n){let i=this._nextAnimationId;this._nextAnimationId++;let o=Array.isArray(n)?P(n):n;return S(this._renderer,null,i,"register",[o]),new f(i,this._renderer)}};t.\u0275fac=function(i){return new(i||t)(l(m),l(g))},t.\u0275prov=a({token:t,factory:t.\u0275fac,providedIn:"root"});let s=t;return s})(),f=class extends c{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new _(this._id,t,e||{},this._renderer)}},_=class{constructor(t,e,n,i){this.id=t,this.element=e,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){S(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(t){this._command("setPosition",t)}getPosition(){return I(this._renderer)?.engine?.players[this.id]?.getPosition()??0}};function S(s,t,e,n,i){s.setProperty(t,`@@${e}:${n}`,i)}function I(s){let t=s.\u0275type;return t===0?s:t===1?s.animationRenderer:null}function R(s){let t=s.\u0275type;return t===0||t===1}var D=class{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){let e=t=="start"?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}},F=class{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,n=0,i=0,o=this.players.length;o==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(h=>{h.onDone(()=>{++e==o&&this._onFinish()}),h.onDestroy(()=>{++n==o&&this._onDestroy()}),h.onStart(()=>{++i==o&&this._onStart()})}),this.totalTime=this.players.reduce((h,E)=>Math.max(h,E.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){let e=t*this.totalTime;this.players.forEach(n=>{let i=n.totalTime?Math.min(1,e/n.totalTime):1;n.setPosition(i)})}getPosition(){let t=this.players.reduce((e,n)=>e===null||n.totalTime>e.totalTime?n:e,null);return t!=null?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){let e=t=="start"?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}},Y="!";export{r as a,x as b,q as c,L as d,$ as e,P as f,G as g,K as h,N as i,Q as j,T as k,U as l,v as m,D as n,F as o,Y as p}; diff --git a/angular/docs/chunk-2CY2CZQN.js b/angular/docs/chunk-2CY2CZQN.js deleted file mode 100644 index 459fe49d853..00000000000 --- a/angular/docs/chunk-2CY2CZQN.js +++ /dev/null @@ -1 +0,0 @@ -import{a as j,b as y}from"./chunk-3MGQMOH2.js";import{C as p,F as h,K as m,Q as l,V as f,Y as u,ca as d,ha as b,n,q as c}from"./chunk-KT673Y7G.js";import{a as o}from"./chunk-RGL3W33T.js";var C={},U=(()=>{let r=class r{constructor(t){this.httpClient=t,this.usersUrl="https://apitest.coreui.io/demos/users"}search(t){return t.pipe(h(100),m(),f(e=>{let s={last_name:e,offset:0,limit:15e3,sort:"id%asc"};return this.fetchData(s)}))}fetchData(t){let e=o({},t),s=new j({fromObject:e}),g=Object.keys(s).length?o({params:s},C):o({params:{}},C);return this.httpClient.get(this.usersUrl,g).pipe(l({count:1,delay:1e3,resetOnSuccess:!0}),p(this.handleHttpError),u(a=>{console.log("httpClient",a)}),c(a=>a.records))}handleHttpError(t){return n(()=>t)}};r.\u0275fac=function(e){return new(e||r)(b(y))},r.\u0275prov=d({token:r,factory:r.\u0275fac});let i=r;return i})();export{U as a}; diff --git a/angular/docs/chunk-2F2UHWPS.js b/angular/docs/chunk-2F2UHWPS.js deleted file mode 100644 index 86aef54d09a..00000000000 --- a/angular/docs/chunk-2F2UHWPS.js +++ /dev/null @@ -1,5 +0,0 @@ -import{c as wt,d as Ue,e as oo,g as Ee,h as Je,i as Ye,j as so,k as Qu,l as Hi,m as Yu}from"./chunk-2CGQ5GFN.js";import{i as Ku,j as qu}from"./chunk-3MGQMOH2.js";import{A as hr,B as Wu,C as _l,E as Gu,a as Cl,d as Be,e as Hu,f as no,g as $u,h as Uu,i as ro,j as zu,m as ae,s as Rt,t as $e,u as Kt,w as bl}from"./chunk-B63QWX6S.js";import{$ as nt,$b as me,$c as de,A as ke,Aa as j,Ab as Iu,Ac as io,B as Ds,Ba as B,Bc as G,C as ar,Ca as ii,Cb as Ms,Cc as W,D as al,Db as Ci,Dc as fe,E as lr,Ea as st,Eb as Ne,Ec as be,F as kt,Fa as _u,Fb as Xe,Fc as Ru,G as ll,Ga as vi,Gb as $,H as jt,Ha as he,Hb as Eu,I as cu,Ia as yu,Ib as pl,J as Ss,Ja as q,Jb as I,K as Ft,Ka as tt,L as ki,Lb as Os,Lc as ln,M as tn,Ma as xu,Mb as ku,Mc as cn,N as cl,Na as nn,Nb as Fu,Nc as dn,O as du,Oa as Q,Ob as Au,Oc as Ce,P as uu,Pa as H,Pc as w,Qa as ul,Qb as N,Qc as Ve,R as hu,Rb as y,Rc as Fe,S as pu,Sb as dr,Sc as Gt,T as cr,Tb as je,Tc as Pu,U as Tn,Ua as rn,Ub as ni,Uc as Vu,V as zt,Vb as E,Vc as Nu,W as Wt,Wa as wu,Wc as ml,X as Ts,Xb as P,Xc as _e,Y as le,Yb as Mu,Yc as Ie,Z as mu,Zb as xe,Zc as Ps,_ as fu,_b as pe,_c as fl,a as or,ac as b,ad as ju,b as nu,ba as qe,bc as _,bd as Vs,c as gi,ca as K,cc as ie,d as ol,da as U,dc as gt,dd as gl,e as Xr,ea as gu,ec as vt,ed as vl,f as Te,fa as Ge,fc as ne,fd as Bu,g as ye,ga as dl,gc as X,h as ru,ha as ce,hc as Mi,hd as Ns,i as ou,ia as A,ib as Du,ic as Oi,j as su,ja as vu,jb as ks,jd as ze,k as en,ka as Is,kb as Su,kd as ur,l as Et,la as Cu,lb as Fs,ld as js,m as ue,n as Jr,na as x,nb as m,nc as V,o as Sn,oa as z,ob as v,oc as sn,p as au,pa as k,pb as Tu,pc as p,pd as S,q as Ae,qa as Qe,qb as on,qc as R,qd as Le,r as sr,ra as bu,rc as O,rd as re,s as Ut,sb as As,sc as an,sd as Ze,t as eo,tb as se,td as He,u as xs,ua as to,uc as De,ud as Lu,v as sl,va as Fi,vc as Me,w as lu,wa as Es,wb as Ai,wc as J,x as lt,xa as ve,xb as ft,xc as ee,yb as hl,yc as Rs,z as ws,zb as te,zc as Ou}from"./chunk-KT673Y7G.js";import{a as M,b as we,c as ys,e as u,f as T,g as D,h as iu}from"./chunk-RGL3W33T.js";var In=function(t){return t.xs="xs",t.sm="sm",t.md="md",t.lg="lg",t.xl="xl",t.xxl="xxl",t}(In||{});var Jf=(()=>{let e=class e{constructor(){this.elementRef=A(H)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=k({type:e,selectors:[["","cElementRef",""]],exportAs:["cElementRef"],standalone:!0});let t=e;return t})();var At=(()=>{let e=class e{constructor(i,n){this.renderer=i,this.el=n}ngOnInit(){let i=this.cHtmlAttr;for(let n in i)n==="style"&&typeof i[n]=="object"?this.setStyle(i[n]):n==="class"?this.addClass(i[n]):this.setAttrib(n,i[n])}setStyle(i){for(let n in i)n&&this.renderer.setStyle(this.el.nativeElement,n,i[n])}addClass(i){(Array.isArray(i)?i:i.split(" ")).filter(o=>o.length>0).forEach(o=>{this.renderer.addClass(this.el.nativeElement,o)})}setAttrib(i,n){n!==null?this.renderer.setAttribute(this.el.nativeElement,i,n):this.renderer.removeAttribute(this.el.nativeElement,i)}};e.\u0275fac=function(n){return new(n||e)(v(se),v(H))},e.\u0275dir=k({type:e,selectors:[["","cHtmlAttr",""]],inputs:{cHtmlAttr:"cHtmlAttr"},exportAs:["cHtmlAttr"],standalone:!0});let t=e;return t})();var rt=(()=>{let e=class e{constructor(){this.templateRef=A(on)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=k({type:e,selectors:[["","cTemplateId",""]],inputs:{id:[0,"cTemplateId","id"]},standalone:!0});let t=e;return t})();var qt=(()=>{var e,r;let i=class i{constructor(){T(this,e,A(H));T(this,r,A(se))}set colorScheme(o){o?this.setTheme(o):this.unsetTheme()}set dark(o){o?this.setTheme("dark"):this.unsetTheme()}setTheme(o){o&&u(this,r).setAttribute(u(this,e).nativeElement,"data-coreui-theme",o)}unsetTheme(){u(this,r).removeAttribute(u(this,e).nativeElement,"data-coreui-theme")}};e=new WeakMap,r=new WeakMap,i.\u0275fac=function(s){return new(s||i)},i.\u0275dir=k({type:i,selectors:[["","cTheme",""]],inputs:{colorScheme:"colorScheme",dark:[2,"dark","dark",S]},standalone:!0,features:[$]});let t=i;return t})();var eg=(()=>{let e=class e{static forRoot(){return{ngModule:e}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=z({type:e}),e.\u0275inj=U({});let t=e;return t})();var yl=(()=>{let e=class e{constructor(){this.type="button"}get hostClasses(){return{"accordion-button":!0,collapsed:this.collapsed}}get ariaExpanded(){return!this.collapsed}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=k({type:e,selectors:[["","cAccordionButton",""]],hostAttrs:[1,"accordion-button"],hostVars:4,hostBindings:function(n,o){n&2&&(N("type",o.type)("aria-expanded",o.ariaExpanded),E(o.hostClasses))},inputs:{collapsed:"collapsed",type:"type"},standalone:!0});let t=e;return t})();var En=(()=>{let e=class e{constructor(){this.items=[],this.alwaysOpen=!1}addItem(i){this.items.push(i)}removeItem(i){let n=this.items.indexOf(i);n!==-1&&this.items.splice(n,1)}toggleItem(i){i.visible=!i.visible,this.closeOtherItems(i)}closeOtherItems(i){this.alwaysOpen||this.items.forEach(n=>{n!==i&&(n.visible=!1)})}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac});let t=e;return t})();var ig=["*"],ng=(()=>{var e;let r=class r{constructor(){T(this,e);D(this,e,A(En)),this.flush=!1}set alwaysOpen(n){u(this,e).alwaysOpen=n}get alwaysOpen(){return u(this,e).alwaysOpen}get hostClasses(){return{accordion:!0,"accordion-flush":this.flush}}};e=new WeakMap,r.\u0275fac=function(o){return new(o||r)},r.\u0275cmp=x({type:r,selectors:[["c-accordion"]],hostAttrs:[1,"accordion"],hostVars:2,hostBindings:function(o,s){o&2&&E(s.hostClasses)},inputs:{flush:[2,"flush","flush",S],alwaysOpen:[2,"alwaysOpen","alwaysOpen",S]},exportAs:["cAccordionItem"],standalone:!0,features:[Ce([En]),$,w],ngContentSelectors:ig,decls:1,vars:0,template:function(o,s){o&1&&(R(),O(0))},styles:["[_nghost-%COMP%]{display:block}"]});let t=r;return t})();var Zu=so([Ue("{{ time }} {{ easing }}")]),Xu=so([Ee({height:"*",minHeight:"*"}),Ue("{{ time }} {{ easing }}",Ee({height:0,minHeight:0}))]),Ju=so([Ue("{{ time }} {{ easing }}")]),eh=so([Ue("{{ time }} {{ easing }}")]);var ao=(()=>{let e=class e{set visible(i){this._visible=i}get visible(){return this._visible}constructor(i,n,o){this.hostElement=i,this.renderer=n,this.animationBuilder=o,this.animate=!0,this.horizontal=!1,this._visible=!1,this.navbar=!1,this.duration="350ms",this.transition="ease",this.collapseChange=new q,this.collapsing=!1,this.host=this.hostElement.nativeElement,this.renderer.setStyle(this.host,"display","none")}get hostClasses(){return{"navbar-collapse":this.navbar,"collapse-horizontal":this.horizontal}}ngAfterViewInit(){this.visible&&this.toggle()}ngOnDestroy(){this.destroyPlayer()}ngOnChanges(i){i.visible&&(!i.visible.firstChange||!i.visible.currentValue)&&this.toggle(i.visible.currentValue)}ngDoCheck(){this._visible!==this.visible&&this.toggle()}toggle(i=this.visible){this.createPlayer(i),this.player?.play()}destroyPlayer(){this.player?.destroy()}createPlayer(i=this.visible){this.player?.hasStarted()&&this.destroyPlayer(),i&&this.renderer.removeStyle(this.host,"display");let n=this.animate?this.duration:"0ms",o=this.horizontal?Ju:Zu,s=this.horizontal?eh:Xu,a=this.horizontal?"width":"height",l=`scroll${a[0].toUpperCase()+a.slice(1)}`,h=this.animationBuilder.build(Qu(i?o:s,{params:{time:n,easing:this.transition}}));this.player=h.create(this.host),this.renderer.setStyle(this.host,a,i?0:`${this.host.getBoundingClientRect()[a]}px`),!i&&this.host.offsetHeight,this.player.onStart(()=>{this.setMaxSize(),this.renderer.removeClass(this.host,"collapse"),this.renderer.addClass(this.host,"collapsing"),this.renderer.removeClass(this.host,"show"),this.collapsing=!0,i?this.renderer.setStyle(this.host,a,`${this.host[l]}px`):this.renderer.setStyle(this.host,a,""),this.collapseChange.emit(i?"opening":"collapsing")}),this.player.onDone(()=>{this.visible=i,this.collapsing=!1,this.renderer.removeClass(this.host,"collapsing"),this.renderer.addClass(this.host,"collapse"),i?(this.renderer.addClass(this.host,"show"),this.renderer.setStyle(this.host,a,"")):this.renderer.removeClass(this.host,"show"),this.collapseChange.emit(i?"open":"collapsed")})}setMaxSize(){this.horizontal&&(this.scrollWidth=this.host.scrollWidth,this.scrollWidth>0&&this.renderer.setStyle(this.host,"maxWidth",`${this.scrollWidth}px`))}};e.\u0275fac=function(n){return new(n||e)(v(H),v(se),v(Yu))},e.\u0275dir=k({type:e,selectors:[["","cCollapse",""]],hostVars:2,hostBindings:function(n,o){n&2&&E(o.hostClasses)},inputs:{animate:[2,"animate","animate",S],horizontal:[2,"horizontal","horizontal",S],visible:[2,"visible","visible",S],navbar:[2,"navbar","navbar",S],duration:"duration",transition:"transition"},outputs:{collapseChange:"collapseChange"},exportAs:["cCollapse"],standalone:!0,features:[$,ve]});let t=e;return t})();var rg=(()=>{let e=class e{static forRoot(){return{ngModule:e,providers:[]}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=z({type:e}),e.\u0275inj=U({});let t=e;return t})();var th=["*","*"];function og(t,e){t&1&&ne(0)}function sg(t,e){t&1&&ne(0)}function ag(t,e){t&1&&ne(0)}function lg(t,e){if(t&1){let r=X();b(0,"button",7),V("click",function(){j(r);let n=p();return B(n.toggleItem())}),I(1,ag,1,0,"ng-container",5),_()}if(t&2){let r=p(),i=G(8);y("collapsed",!r.visible),N("aria-controls",r.contentId),m(),y("ngTemplateOutlet",r.templates.accordionHeader||i)("ngTemplateOutletContext",r.itemContext)}}function cg(t,e){t&1&&O(0)}function dg(t,e){t&1&&ne(0)}function ug(t,e){if(t&1&&(b(0,"div",8),I(1,dg,1,0,"ng-container",5),_()),t&2){let r=p(),i=G(12);m(),y("ngTemplateOutlet",r.templates.accordionBody||i)("ngTemplateOutletContext",r.itemContext)}}function hg(t,e){t&1&&O(0,1)}var pg=0,mg=(()=>{let e=class e{constructor(i){this.accordionService=i,this.visible=!1,this.contentId=`accordion-item-${pg++}`,this.itemContext={$implicit:this.visible},this.templates={}}set open(i){console.warn('c-accordion-item "open" prop is deprecated, use "visible" prop instead.'),this.visible=i||this.visible}get open(){return this.visible}ngOnInit(){this.accordionService.addItem(this)}ngOnDestroy(){this.accordionService.removeItem(this)}toggleItem(){this.accordionService.toggleItem(this)}ngAfterContentInit(){this.contentTemplates.forEach(i=>{this.templates[i.id]=i.templateRef})}};e.\u0275fac=function(n){return new(n||e)(v(En))},e.\u0275cmp=x({type:e,selectors:[["c-accordion-item"]],contentQueries:function(n,o,s){if(n&1&&De(s,rt,5),n&2){let a;J(a=ee())&&(o.contentTemplates=a)}},hostAttrs:[1,"accordion-item"],inputs:{visible:[2,"visible","visible",S],open:"open"},exportAs:["cAccordionItem"],standalone:!0,features:[$,w],ngContentSelectors:th,decls:13,vars:7,consts:[["defaultAccordionHeaderTemplate",""],["defaultAccordionHeaderContentTemplate",""],["defaultAccordionBodyTemplate",""],["defaultAccordionBodyContentTemplate",""],[1,"accordion-header"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["cCollapse","",1,"accordion-collapse",3,"visible","id"],["cAccordionButton","",3,"click","collapsed"],[1,"accordion-body"]],template:function(n,o){if(n&1&&(R(th),gt(0),b(1,"div",4),I(2,og,1,0,"ng-container",5),_(),b(3,"div",6),I(4,sg,1,0,"ng-container",5),_(),vt(),I(5,lg,2,4,"ng-template",null,0,de)(7,cg,1,0,"ng-template",null,1,de)(9,ug,2,2,"ng-template",null,2,de)(11,hg,1,0,"ng-template",null,3,de)),n&2){let s=G(6),a=G(10);m(2),y("ngTemplateOutlet",o.templates.accordionHeaderTemplate||s)("ngTemplateOutletContext",o.itemContext),m(),y("visible",o.visible)("id",o.contentId),N("aria-expanded",o.visible),m(),y("ngTemplateOutlet",o.templates.accordionBodyTemplate||a)("ngTemplateOutletContext",o.itemContext)}},dependencies:[yl,$e,ao],styles:["[_nghost-%COMP%]{display:block;overflow:hidden}"]});let t=e;return t})();var fg=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=z({type:e}),e.\u0275inj=U({providers:[En]});let t=e;return t})();var gg=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=k({type:e,selectors:[["","cAlertHeading",""]],hostAttrs:[1,"alert-heading"],standalone:!0});let t=e;return t})();var vg=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=k({type:e,selectors:[["","cAlertLink",""]],hostAttrs:[1,"alert-link"],standalone:!0});let t=e;return t})();var Qt=(()=>{let e=class e{constructor(){this.active=Q(!1,{transform:S}),this.color=Q("primary"),this.disabled=Q(!1,{transform:S}),this.shape=Q(),this.size=Q(""),this.type=Q("button"),this.variant=Q(),this.hostClasses=re(()=>({btn:!0,[`btn-${this.color()}`]:!!this.color()&&!this.variant(),[`btn-${this.variant()}`]:!!this.variant()&&!this.color(),[`btn-${this.variant()}-${this.color()}`]:!!this.variant()&&!!this.color(),[`btn-${this.size()}`]:!!this.size(),[`${this.shape()}`]:!!this.shape(),active:this.active(),disabled:this._disabled()})),this._disabled=re(()=>this.disabled()),this.ariaDisabled=re(()=>this._disabled()?!0:null),this.attrDisabled=re(()=>this._disabled()?"":null),this.tabIndex=re(()=>this._disabled()?"-1":null),this.isActive=re(()=>this.active()||null)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=k({type:e,selectors:[["","cButton",""]],hostAttrs:[1,"btn"],hostVars:7,hostBindings:function(n,o){n&2&&(N("aria-disabled",o.ariaDisabled())("aria-pressed",o.isActive())("disabled",o.attrDisabled())("tabindex",o.tabIndex())("type",o.type()),E(o.hostClasses()))},inputs:{active:[1,"active"],color:[1,"color"],disabled:[1,"disabled"],shape:[1,"shape"],size:[1,"size"],type:[1,"type"],variant:[1,"variant"]},exportAs:["cButton"],standalone:!0});let t=e;return t})();var lo=(()=>{let e=class e extends Qt{constructor(){super(...arguments),this.white=Q(!1,{transform:S}),this.hostClasses=re(()=>({btn:!0,"btn-close":!0,"btn-close-white":this.white(),[`btn-${this.size()}`]:!!this.size(),active:this.active(),disabled:this._disabled()}))}};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=st(e)))(o||e)}})(),e.\u0275dir=k({type:e,selectors:[["","cButtonClose",""]],hostAttrs:[1,"btn","btn-close"],hostVars:7,hostBindings:function(n,o){n&2&&(N("aria-disabled",o.ariaDisabled())("aria-pressed",o.isActive())("disabled",o.attrDisabled())("tabindex",o.tabIndex())("type",o.type()),E(o.hostClasses()))},inputs:{white:[1,"white"]},standalone:!0,features:[Xe([{directive:qt,inputs:["dark","dark"]}]),Ne]});let t=e;return t})();var Cg=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=z({type:e}),e.\u0275inj=U({});let t=e;return t})();var bg=["*"];function _g(t,e){t&1&&ne(0)}function yg(t,e){if(t&1&&I(0,_g,1,0,"ng-container",1),t&2){let r=p(2),i=G(2);y("ngTemplateOutlet",(r.templates==null?null:r.templates.alertButtonCloseTemplate)||i)}}function xg(t,e){if(t&1&&(I(0,yg,1,1,"ng-container"),O(1)),t&2){let r=p();P(r.dismissible?0:-1)}}function wg(t,e){if(t&1){let r=X();b(0,"button",2),V("click",function(){j(r);let n=p();return B(n.visible=!1)}),_()}}var Dg=(()=>{var e;let r=class r{constructor(){T(this,e);this.color="primary",this.role="alert",this.visibleChange=new q,this.templates={},this.dismissible=!1,this.fade=!1,D(this,e,!0)}set visible(n){u(this,e)!==n&&(D(this,e,n),this.visibleChange.emit(n))}get visible(){return u(this,e)}get animationDisabled(){return!this.fade}get animateType(){return this.visible?"show":"hide"}get hostClasses(){return{alert:!0,"alert-dismissible":this.dismissible,fade:this.fade,show:!this.hide,[`alert-${this.color}`]:!!this.color&&this.variant!=="solid",[`bg-${this.color}`]:!!this.color&&this.variant==="solid","text-white":!!this.color&&this.variant==="solid"}}onAnimationStart(n){this.onAnimationEvent(n)}onAnimationDone(n){this.onAnimationEvent(n)}ngAfterContentInit(){this.contentTemplates.forEach(n=>{this.templates[n.id]=n.templateRef})}onAnimationEvent(n){this.hide=n.phaseName==="start"&&n.toState==="show",n.phaseName==="done"&&(this.hide=n.toState==="hide"||n.toState==="void",n.toState==="show"&&(this.hide=!1))}};e=new WeakMap,r.\u0275fac=function(o){return new(o||r)},r.\u0275cmp=x({type:r,selectors:[["c-alert"]],contentQueries:function(o,s,a){if(o&1&&De(a,rt,5),o&2){let c;J(c=ee())&&(s.contentTemplates=c)}},hostVars:5,hostBindings:function(o,s){o&1&&sn("@fadeInOut.start",function(c){return s.onAnimationStart(c)})("@fadeInOut.done",function(c){return s.onAnimationDone(c)}),o&2&&(Oi("@.disabled",s.animationDisabled)("@fadeInOut",s.animateType),N("role",s.role),E(s.hostClasses))},inputs:{color:"color",role:"role",variant:"variant",dismissible:[2,"dismissible","dismissible",S],fade:[2,"fade","fade",S],visible:[2,"visible","visible",S]},outputs:{visibleChange:"visibleChange"},exportAs:["cAlert"],standalone:!0,features:[$,w],ngContentSelectors:bg,decls:3,vars:1,consts:[["defaultAlertButtonCloseTemplate",""],[4,"ngTemplateOutlet"],["aria-label","Close","cButtonClose","",3,"click"]],template:function(o,s){o&1&&(R(),I(0,xg,2,1)(1,wg,1,0,"ng-template",null,0,de)),o&2&&P(s.visible||!s.hide?0:-1)},dependencies:[$e,lo],styles:["[_nghost-%COMP%]{display:block;overflow:hidden}"],data:{animation:[wt("fadeInOut",[Je("show",Ee({opacity:1,height:"*",padding:"*",border:"*",margin:"*"})),Je("hide",Ee({opacity:0,height:0,padding:0,border:0,margin:0})),Je("void",Ee({opacity:0,height:0,padding:0,border:0,margin:0})),Ye("show => hide",[Ue(".3s ease-out")]),Ye("hide => show",[Ue(".3s ease-in")]),Ye("show => void",[Ue(".3s ease-out")]),Ye("void => show",[Ue(".3s ease-in")])])]}});let t=r;return t})();var Sg=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=z({type:e}),e.\u0275inj=U({});let t=e;return t})();var xl=(()=>{let e=class e{get hostClasses(){return{[`align-${this.align}`]:!!this.align}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=k({type:e,selectors:[["","cAlign",""]],hostVars:2,hostBindings:function(n,o){n&2&&E(o.hostClasses)},inputs:{align:[0,"cAlign","align"]},standalone:!0});let t=e;return t})();var Tg=(()=>{let e=class e{constructor(){this.color=""}get hostClasses(){return{[`bg-${this.color}`]:!!this.color,"bg-gradient":this.gradient}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=k({type:e,selectors:[["","cBgColor",""]],hostVars:2,hostBindings:function(n,o){n&2&&E(o.hostClasses)},inputs:{color:[0,"cBgColor","color"],gradient:"gradient"},standalone:!0});let t=e;return t})();var Ig=(()=>{let e=class e{constructor(){this.border=!0}get hostClasses(){if(typeof this.border=="boolean")return{border:!0};if(typeof this.border=="number"||typeof this.border=="string")return{border:!0,[`border-${this.border}`]:!0};if(typeof this.border=="object"){let i=M({top:void 0,end:void 0,bottom:void 0,start:void 0,color:void 0},this.border),n=Object.keys(i).filter(s=>i[s]!==void 0),o={};return n.forEach(s=>{let a=i[s];typeof a=="boolean"?o[`border-${s}`]=!0:typeof a=="number"||typeof a=="string"?o[`border-${s}-${a}`]=!0:typeof a=="object"&&("color"in a&&(o[`border-${s}-${a.color}`]=!0),"width"in a&&(o[`border-${s}-${a.width}`]=!0))}),Object.entries(o).length===0?{border:!1}:o}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=k({type:e,selectors:[["","cBorder",""]],hostVars:2,hostBindings:function(n,o){n&2&&E(o.hostClasses)},inputs:{border:[0,"cBorder","border"]},standalone:!0});let t=e;return t})();var Eg=(()=>{let e=class e{constructor(){this.rounded=!0}get hostClasses(){if(typeof this.rounded=="boolean")return{rounded:!0};if(typeof this.rounded=="number"||typeof this.rounded=="string")return{[`rounded-${this.rounded}`]:!0};if(typeof this.rounded=="object"){let i=M({top:void 0,end:void 0,bottom:void 0,start:void 0,circle:void 0,pill:void 0,size:void 0},this.rounded),n=Object.keys(i).filter(s=>i[s]!==void 0),o={};return n.forEach(s=>{let a=i[s];typeof a=="boolean"?o[`rounded-${s}`]=a:o[`rounded-${a}`]=!0}),Object.entries(o).length===0?{rounded:!1}:o}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=k({type:e,selectors:[["","cRounded",""]],hostVars:2,hostBindings:function(n,o){n&2&&E(o.hostClasses)},inputs:{rounded:[0,"cRounded","rounded"]},standalone:!0});let t=e;return t})();function Z(t){t||(Es(Z),t=A(he));let e=new gi(r=>t.onDestroy(r.next.bind(r)));return r=>r.pipe(Wt(e))}function wl(t){let e=xu(t);return new gi(r=>{e?.onDestroy(()=>r.complete());let i=t.subscribe(n=>r.next(n));return()=>i.unsubscribe()})}function Dl(t,e){!e?.injector&&Es(Dl);let r=e?.injector??A(vi),i=new ru(1),n=He(()=>{let o;try{o=t()}catch(s){Ze(()=>i.error(s));return}Ze(()=>i.next(o))},{injector:r,manualCleanup:!0});return r.get(he).onDestroy(()=>{n.destroy(),i.complete()}),i.asObservable()}function Sl(t,e){let r=!e?.manualCleanup;r&&!e?.injector&&Es(Sl);let i=r?e?.injector?.get(he)??A(he):null,n=kg(e?.equal),o;e?.requireSync?o=te({kind:0},{equal:n}):o=te({kind:1,value:e?.initialValue},{equal:n});let s=t.subscribe({next:a=>o.set({kind:1,value:a}),error:a=>{if(e?.rejectErrors)throw a;o.set({kind:2,error:a})}});if(e?.requireSync&&o().kind===0)throw new nt(601,!1);return i?.onDestroy(s.unsubscribe.bind(s)),re(()=>{let a=o();switch(a.kind){case 1:return a.value;case 2:throw a.error;case 0:throw new nt(601,!1)}},{equal:e?.equal})}function kg(t=Object.is){return(e,r)=>e.kind===1&&r.kind===1&&t(e.value,r.value)}var Fg=(()=>{var e,r,i,n,o,s,a;let c=class c{constructor(){T(this,e,A(he));T(this,r,A(Be));T(this,i,A(H));T(this,n,te(!1));T(this,o,He(()=>{u(this,i).nativeElement.classList.toggle(u(this,a),u(this,n).call(this))}));T(this,s);T(this,a,"shadow-sm");u(this,e).onDestroy(()=>{u(this,o)?.destroy()})}set cShadowOnScroll(h){u(this,n).set(!1),h?(D(this,a,h===!0?"shadow":`shadow-${h}`),D(this,s,lt(u(this,r),"scroll").pipe(Z(u(this,e))).subscribe(d=>{u(this,n).set(u(this,r).documentElement.scrollTop>0)}))):u(this,s)?.unsubscribe()}};e=new WeakMap,r=new WeakMap,i=new WeakMap,n=new WeakMap,o=new WeakMap,s=new WeakMap,a=new WeakMap,c.\u0275fac=function(d){return new(d||c)},c.\u0275dir=k({type:c,selectors:[["","cShadowOnScroll",""]],inputs:{cShadowOnScroll:"cShadowOnScroll"},standalone:!0});let t=c;return t})();var kn=(()=>{let e=class e{constructor(){this.color=Q("",{alias:"cTextColor"})}get hostClasses(){let i=this.color();return{[`text-${i}`]:!!i}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=k({type:e,selectors:[["","cTextColor",""]],hostVars:2,hostBindings:function(n,o){n&2&&E(o.hostClasses)},inputs:{color:[1,"cTextColor","color"]},standalone:!0});let t=e;return t})();var co=(()=>{let e=class e{constructor(){this.textBgColor=Q("",{alias:"cTextBgColor"})}get hostClasses(){let i=this.textBgColor();return{[`text-bg-${i}`]:!!i}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=k({type:e,selectors:[["","cTextBgColor",""]],hostVars:2,hostBindings:function(n,o){n&2&&E(o.hostClasses)},inputs:{textBgColor:[1,"cTextBgColor","textBgColor"]},standalone:!0});let t=e;return t})();var Ag=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=z({type:e}),e.\u0275inj=U({});let t=e;return t})();var Mg=["*"],Og=()=>[Gu];function Rg(t,e){if(t&1&&ie(0,"img",1),t&2){let r,i=p(3);an("alt",i.alt()),y("ngSrc",(r=i.src())!==null&&r!==void 0?r:"")}}function Pg(t,e){t&1&&(ii(),b(0,"svg",2),ie(1,"rect",3),_())}function Vg(t,e){t&1&&(I(0,Rg,1,2)(1,Pg,2,0),Os(2,0,Og,null,1),ku(),Fu())}function Ng(t,e){if(t&1&&I(0,Vg,4,0),t&2){let r=p();P(r.src()?0:-1)}}function jg(t,e){if(t&1&&ie(0,"span",0),t&2){let r=p();y("ngClass",r.statusClass())}}var Bg=(()=>{let e=class e{constructor(){this.color=Q(),this.shape=Q(),this.size=Q("md"),this.alt=Q(""),this.src=Q(),this.status=Q(),this.textColor=Q(),this.statusClass=re(()=>({"avatar-status":!0,[`bg-${this.status()}`]:!!this.status()})),this.hostClasses=re(()=>({avatar:!0,[`avatar-${this.size()}`]:!!this.size(),[`bg-${this.color()}`]:!!this.color(),[`${this.shape()}`]:!!this.shape()}))}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=x({type:e,selectors:[["c-avatar"]],hostAttrs:[1,"avatar"],hostVars:2,hostBindings:function(n,o){n&2&&E(o.hostClasses())},inputs:{color:[1,"color"],shape:[1,"shape"],size:[1,"size"],alt:[1,"alt"],src:[1,"src"],status:[1,"status"],textColor:[1,"textColor"]},standalone:!0,features:[Xe([{directive:kn,inputs:["cTextColor","textColor"]}]),w],ngContentSelectors:Mg,decls:3,vars:1,consts:[[3,"ngClass"],["fill","",1,"avatar-img",3,"ngSrc","alt"],["aria-label","Avatar placeholder","focusable","false","preserveAspectRatio","xMidYMid slice","role","img","xmlns","http://www.w3.org/2000/svg",1,"avatar-img",2,"position","absolute","width","100%","height","100%","inset","0"],["fill","#868e96","height","100%","width","100%"]],template:function(n,o){n&1&&(R(),O(0,0,null,Ng,1,1),I(2,jg,1,1,"span",0)),n&2&&(m(2),P(o.status()?2:-1))},dependencies:[ae],encapsulation:2});let t=e;return t})();var Lg=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=z({type:e}),e.\u0275inj=U({});let t=e;return t})();var Hg=["*"],$g=(()=>{let e=class e{constructor(){this.color=Q(),this.position=Q(),this.shape=Q(),this.size=Q(),this.textColor=Q(),this.textBgColor=Q(),this.hostClasses=re(()=>{let i=this.position(),n={"position-absolute":!!i,"translate-middle":!!i,"top-0":i?.includes("top"),"top-100":i?.includes("bottom"),"start-100":i?.includes("end"),"start-0":i?.includes("start")};return Object.assign({badge:!0,[`bg-${this.color()}`]:!!this.color(),[`badge-${this.size()}`]:!!this.size(),[`${this.shape()}`]:!!this.shape()},i?n:{})})}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=x({type:e,selectors:[["c-badge"]],hostAttrs:[1,"badge"],hostVars:2,hostBindings:function(n,o){n&2&&E(o.hostClasses())},inputs:{color:[1,"color"],position:[1,"position"],shape:[1,"shape"],size:[1,"size"],textColor:[1,"textColor"],textBgColor:[1,"textBgColor"]},standalone:!0,features:[Xe([{directive:kn,inputs:["cTextColor","textColor"]},{directive:co,inputs:["cTextBgColor","textBgColor"]}]),w],ngContentSelectors:Hg,decls:1,vars:0,template:function(n,o){n&1&&(R(),O(0))},encapsulation:2});let t=e;return t})();var Ug=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=z({type:e}),e.\u0275inj=U({});let t=e;return t})();var Fn=(()=>{var e,r,i,n,o,s,Il,El,l;let h=class h{constructor(){T(this,s);T(this,e);T(this,r);T(this,i);T(this,n);T(this,o);T(this,l);D(this,e,new Te),this.backdropClick$=u(this,e).asObservable(),D(this,r,A(Be)),D(this,i,A(As)),D(this,n,u(this,i).createRenderer(null,null)),this.scrollbarWidth=u(this,s,Il),D(this,l,!0)}setBackdrop(f="modal"){let g=u(this,n).createElement("div");return u(this,n).addClass(g,`${f}-backdrop`),u(this,n).addClass(g,"fade"),u(this,n).appendChild(u(this,r).body,g),D(this,o,u(this,n).listen(g,"click",F=>{this.onClickHandler()})),this.scrollbarWidth=u(this,s,Il),setTimeout(()=>{u(this,n).addClass(g,"show")}),this.activeBackdrop=g,g}clearBackdrop(f){f&&(u(this,o).call(this),u(this,n).removeClass(f,"show"),setTimeout(()=>{u(this,n).removeChild(u(this,r).body,f),this.activeBackdrop===f&&this.resetScrollbar(),f=void 0},300))}hideScrollbar(){u(this,l)&&(u(this,n).setStyle(u(this,r).body,"overflow","hidden"),u(this,n).setStyle(u(this,r).body,`padding-${u(this,s,El)?"left":"right"}`,this.scrollbarWidth),D(this,l,!1))}resetScrollbar(){u(this,n).removeStyle(u(this,r).body,"overflow"),u(this,n).removeStyle(u(this,r).body,`padding-${u(this,s,El)?"left":"right"}`),D(this,l,!0)}onClickHandler(){u(this,e).next(!0)}};e=new WeakMap,r=new WeakMap,i=new WeakMap,n=new WeakMap,o=new WeakMap,s=new WeakSet,Il=function(){let f=u(this,r).documentElement.clientWidth;return`${Math.abs((u(this,r).defaultView?.innerWidth??f)-f)}px`},El=function(){return u(this,r).documentElement.dir==="rtl"||u(this,r).body.dir==="rtl"},l=new WeakMap,h.\u0275fac=function(g){return new(g||h)},h.\u0275prov=K({token:h,factory:h.\u0275fac,providedIn:"root"});let t=h;return t})();var Oe="primary",So=Symbol("RouteTitle"),Ol=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r[0]:r}return null}getAll(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r:[r]}return[]}get keys(){return Object.keys(this.params)}};function br(t){return new Ol(t)}function Wg(t,e,r){let i=r.path.split("/");if(i.length>t.length||r.pathMatch==="full"&&(e.hasChildren()||i.lengthi[o]===n)}else return t===e}function fh(t){return t.length>0?t[t.length-1]:null}function pn(t){return Sn(t)?t:Vs(t)?Et(Promise.resolve(t)):ue(t)}var Kg={exact:vh,subset:Ch},gh={exact:qg,subset:Qg,ignored:()=>!0};function rh(t,e,r){return Kg[r.paths](t.root,e.root,r.matrixParams)&&gh[r.queryParams](t.queryParams,e.queryParams)&&!(r.fragment==="exact"&&t.fragment!==e.fragment)}function qg(t,e){return Ri(t,e)}function vh(t,e,r){if(!Mn(t.segments,e.segments)||!Hs(t.segments,e.segments,r)||t.numberOfChildren!==e.numberOfChildren)return!1;for(let i in e.children)if(!t.children[i]||!vh(t.children[i],e.children[i],r))return!1;return!0}function Qg(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(r=>mh(t[r],e[r]))}function Ch(t,e,r){return bh(t,e,e.segments,r)}function bh(t,e,r,i){if(t.segments.length>r.length){let n=t.segments.slice(0,r.length);return!(!Mn(n,r)||e.hasChildren()||!Hs(n,r,i))}else if(t.segments.length===r.length){if(!Mn(t.segments,r)||!Hs(t.segments,r,i))return!1;for(let n in e.children)if(!t.children[n]||!Ch(t.children[n],e.children[n],i))return!1;return!0}else{let n=r.slice(0,t.segments.length),o=r.slice(t.segments.length);return!Mn(t.segments,n)||!Hs(t.segments,n,i)||!t.children[Oe]?!1:bh(t.children[Oe],e,o,i)}}function Hs(t,e,r){return e.every((i,n)=>gh[r](t[n].parameters,i.parameters))}var Ui=class{constructor(e=new Ke([],{}),r={},i=null){this.root=e,this.queryParams=r,this.fragment=i}get queryParamMap(){return this._queryParamMap??=br(this.queryParams),this._queryParamMap}toString(){return Xg.serialize(this)}},Ke=class{constructor(e,r){this.segments=e,this.children=r,this.parent=null,Object.values(r).forEach(i=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return $s(this)}},An=class{constructor(e,r){this.path=e,this.parameters=r}get parameterMap(){return this._parameterMap??=br(this.parameters),this._parameterMap}toString(){return yh(this)}};function Yg(t,e){return Mn(t,e)&&t.every((r,i)=>Ri(r.parameters,e[i].parameters))}function Mn(t,e){return t.length!==e.length?!1:t.every((r,i)=>r.path===e[i].path)}function Zg(t,e){let r=[];return Object.entries(t.children).forEach(([i,n])=>{i===Oe&&(r=r.concat(e(n,i)))}),Object.entries(t.children).forEach(([i,n])=>{i!==Oe&&(r=r.concat(e(n,i)))}),r}var Dr=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:()=>new _r,providedIn:"root"});let t=e;return t})(),_r=class{parse(e){let r=new Vl(e);return new Ui(r.parseRootSegment(),r.parseQueryParams(),r.parseFragment())}serialize(e){let r=`/${uo(e.root,!0)}`,i=t0(e.queryParams),n=typeof e.fragment=="string"?`#${Jg(e.fragment)}`:"";return`${r}${i}${n}`}},Xg=new _r;function $s(t){return t.segments.map(e=>yh(e)).join("/")}function uo(t,e){if(!t.hasChildren())return $s(t);if(e){let r=t.children[Oe]?uo(t.children[Oe],!1):"",i=[];return Object.entries(t.children).forEach(([n,o])=>{n!==Oe&&i.push(`${n}:${uo(o,!1)}`)}),i.length>0?`${r}(${i.join("//")})`:r}else{let r=Zg(t,(i,n)=>n===Oe?[uo(t.children[Oe],!1)]:[`${n}:${uo(i,!1)}`]);return Object.keys(t.children).length===1&&t.children[Oe]!=null?`${$s(t)}/${r[0]}`:`${$s(t)}/(${r.join("//")})`}}function _h(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Bs(t){return _h(t).replace(/%3B/gi,";")}function Jg(t){return encodeURI(t)}function Pl(t){return _h(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Us(t){return decodeURIComponent(t)}function oh(t){return Us(t.replace(/\+/g,"%20"))}function yh(t){return`${Pl(t.path)}${e0(t.parameters)}`}function e0(t){return Object.entries(t).map(([e,r])=>`;${Pl(e)}=${Pl(r)}`).join("")}function t0(t){let e=Object.entries(t).map(([r,i])=>Array.isArray(i)?i.map(n=>`${Bs(r)}=${Bs(n)}`).join("&"):`${Bs(r)}=${Bs(i)}`).filter(r=>r);return e.length?`?${e.join("&")}`:""}var i0=/^[^\/()?;#]+/;function kl(t){let e=t.match(i0);return e?e[0]:""}var n0=/^[^\/()?;=#]+/;function r0(t){let e=t.match(n0);return e?e[0]:""}var o0=/^[^=?&#]+/;function s0(t){let e=t.match(o0);return e?e[0]:""}var a0=/^[^&#]+/;function l0(t){let e=t.match(a0);return e?e[0]:""}var Vl=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ke([],{}):new Ke([],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 r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(e.length>0||Object.keys(r).length>0)&&(i[Oe]=new Ke(e,r)),i}parseSegment(){let e=kl(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new nt(4009,!1);return this.capture(e),new An(Us(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let r=r0(this.remaining);if(!r)return;this.capture(r);let i="";if(this.consumeOptional("=")){let n=kl(this.remaining);n&&(i=n,this.capture(i))}e[Us(r)]=Us(i)}parseQueryParam(e){let r=s0(this.remaining);if(!r)return;this.capture(r);let i="";if(this.consumeOptional("=")){let s=l0(this.remaining);s&&(i=s,this.capture(i))}let n=oh(r),o=oh(i);if(e.hasOwnProperty(n)){let s=e[n];Array.isArray(s)||(s=[s],e[n]=s),s.push(o)}else e[n]=o}parseParens(e){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=kl(this.remaining),n=this.remaining[i.length];if(n!=="/"&&n!==")"&&n!==";")throw new nt(4010,!1);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):e&&(o=Oe);let s=this.parseChildren();r[o]=Object.keys(s).length===1?s[Oe]:new Ke([],s),this.consumeOptional("//")}return r}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 nt(4011,!1)}};function xh(t){return t.segments.length>0?new Ke([],{[Oe]:t}):t}function wh(t){let e={};for(let[i,n]of Object.entries(t.children)){let o=wh(n);if(i===Oe&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))e[s]=a;else(o.segments.length>0||o.hasChildren())&&(e[i]=o)}let r=new Ke(t.segments,e);return c0(r)}function c0(t){if(t.numberOfChildren===1&&t.children[Oe]){let e=t.children[Oe];return new Ke(t.segments.concat(e.segments),e.children)}return t}function On(t){return t instanceof Ui}function d0(t,e,r=null,i=null){let n=Dh(t);return Sh(n,e,r,i)}function Dh(t){let e;function r(o){let s={};for(let c of o.children){let l=r(c);s[c.outlet]=l}let a=new Ke(o.url,s);return o===t&&(e=a),a}let i=r(t.root),n=xh(i);return e??n}function Sh(t,e,r,i){let n=t;for(;n.parent;)n=n.parent;if(e.length===0)return Fl(n,n,n,r,i);let o=u0(e);if(o.toRoot())return Fl(n,n,new Ke([],{}),r,i);let s=h0(o,n,t),a=s.processChildren?mo(s.segmentGroup,s.index,o.commands):Ih(s.segmentGroup,s.index,o.commands);return Fl(n,s.segmentGroup,a,r,i)}function zs(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function vo(t){return typeof t=="object"&&t!=null&&t.outlets}function Fl(t,e,r,i,n){let o={};i&&Object.entries(i).forEach(([c,l])=>{o[c]=Array.isArray(l)?l.map(h=>`${h}`):`${l}`});let s;t===e?s=r:s=Th(t,e,r);let a=xh(wh(s));return new Ui(a,o,n)}function Th(t,e,r){let i={};return Object.entries(t.children).forEach(([n,o])=>{o===e?i[n]=r:i[n]=Th(o,e,r)}),new Ke(t.segments,i)}var Ws=class{constructor(e,r,i){if(this.isAbsolute=e,this.numberOfDoubleDots=r,this.commands=i,e&&i.length>0&&zs(i[0]))throw new nt(4003,!1);let n=i.find(vo);if(n&&n!==fh(i))throw new nt(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function u0(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new Ws(!0,0,t);let e=0,r=!1,i=t.reduce((n,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([c,l])=>{a[c]=typeof l=="string"?l.split("/"):l}),[...n,{outlets:a}]}if(o.segmentPath)return[...n,o.segmentPath]}return typeof o!="string"?[...n,o]:s===0?(o.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?r=!0:a===".."?e++:a!=""&&n.push(a))}),n):[...n,o]},[]);return new Ws(r,e,i)}var gr=class{constructor(e,r,i){this.segmentGroup=e,this.processChildren=r,this.index=i}};function h0(t,e,r){if(t.isAbsolute)return new gr(e,!0,0);if(!r)return new gr(e,!1,NaN);if(r.parent===null)return new gr(r,!0,0);let i=zs(t.commands[0])?0:1,n=r.segments.length-1+i;return p0(r,n,t.numberOfDoubleDots)}function p0(t,e,r){let i=t,n=e,o=r;for(;o>n;){if(o-=n,i=i.parent,!i)throw new nt(4005,!1);n=i.segments.length}return new gr(i,!1,n-o)}function m0(t){return vo(t[0])?t[0].outlets:{[Oe]:t}}function Ih(t,e,r){if(t??=new Ke([],{}),t.segments.length===0&&t.hasChildren())return mo(t,e,r);let i=f0(t,e,r),n=r.slice(i.commandIndex);if(i.match&&i.pathIndexo!==Oe)&&t.children[Oe]&&t.numberOfChildren===1&&t.children[Oe].segments.length===0){let o=mo(t.children[Oe],e,r);return new Ke(t.segments,o.children)}return Object.entries(i).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(n[o]=Ih(t.children[o],e,s))}),Object.entries(t.children).forEach(([o,s])=>{i[o]===void 0&&(n[o]=s)}),new Ke(t.segments,n)}}function f0(t,e,r){let i=0,n=e,o={match:!1,pathIndex:0,commandIndex:0};for(;n=r.length)return o;let s=t.segments[n],a=r[i];if(vo(a))break;let c=`${a}`,l=i0&&c===void 0)break;if(c&&l&&typeof l=="object"&&l.outlets===void 0){if(!ah(c,l,s))return o;i+=2}else{if(!ah(c,{},s))return o;i++}n++}return{match:!0,pathIndex:n,commandIndex:i}}function Nl(t,e,r){let i=t.segments.slice(0,e),n=0;for(;n{typeof i=="string"&&(i=[i]),i!==null&&(e[r]=Nl(new Ke([],{}),0,i))}),e}function sh(t){let e={};return Object.entries(t).forEach(([r,i])=>e[r]=`${i}`),e}function ah(t,e,r){return t==r.path&&Ri(e,r.parameters)}var fo="imperative",Ct=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}(Ct||{}),ri=class{constructor(e,r){this.id=e,this.url=r}},yr=class extends ri{constructor(e,r,i="imperative",n=null){super(e,r),this.type=Ct.NavigationStart,this.navigationTrigger=i,this.restoredState=n}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Dt=class extends ri{constructor(e,r,i){super(e,r),this.urlAfterRedirects=i,this.type=Ct.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Zt=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(Zt||{}),Gs=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(Gs||{}),$i=class extends ri{constructor(e,r,i,n){super(e,r),this.reason=i,this.code=n,this.type=Ct.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},un=class extends ri{constructor(e,r,i,n){super(e,r),this.reason=i,this.code=n,this.type=Ct.NavigationSkipped}},Co=class extends ri{constructor(e,r,i,n){super(e,r),this.error=i,this.target=n,this.type=Ct.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Ks=class extends ri{constructor(e,r,i,n){super(e,r),this.urlAfterRedirects=i,this.state=n,this.type=Ct.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},jl=class extends ri{constructor(e,r,i,n){super(e,r),this.urlAfterRedirects=i,this.state=n,this.type=Ct.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Bl=class extends ri{constructor(e,r,i,n,o){super(e,r),this.urlAfterRedirects=i,this.state=n,this.shouldActivate=o,this.type=Ct.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Ll=class extends ri{constructor(e,r,i,n){super(e,r),this.urlAfterRedirects=i,this.state=n,this.type=Ct.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Hl=class extends ri{constructor(e,r,i,n){super(e,r),this.urlAfterRedirects=i,this.state=n,this.type=Ct.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},$l=class{constructor(e){this.route=e,this.type=Ct.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Ul=class{constructor(e){this.route=e,this.type=Ct.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},zl=class{constructor(e){this.snapshot=e,this.type=Ct.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Wl=class{constructor(e){this.snapshot=e,this.type=Ct.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Gl=class{constructor(e){this.snapshot=e,this.type=Ct.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Kl=class{constructor(e){this.snapshot=e,this.type=Ct.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},qs=class{constructor(e,r,i){this.routerEvent=e,this.position=r,this.anchor=i,this.type=Ct.Scroll}toString(){let e=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${e}')`}},bo=class{},xr=class{constructor(e,r){this.url=e,this.navigationBehaviorOptions=r}};function v0(t,e){return t.providers&&!t._injector&&(t._injector=pl(t.providers,e,`Route: ${t.path}`)),t._injector??e}function bi(t){return t.outlet||Oe}function C0(t,e){let r=t.filter(i=>bi(i)===e);return r.push(...t.filter(i=>bi(i)!==e)),r}function To(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){let r=e.routeConfig;if(r?._loadedInjector)return r._loadedInjector;if(r?._injector)return r._injector}return null}var ql=class{get injector(){return To(this.route?.snapshot)??this.rootInjector}set injector(e){}constructor(e){this.rootInjector=e,this.outlet=null,this.route=null,this.children=new Io(this.rootInjector),this.attachRef=null}},Io=(()=>{let e=class e{constructor(i){this.rootInjector=i,this.contexts=new Map}onChildOutletCreated(i,n){let o=this.getOrCreateContext(i);o.outlet=n,this.contexts.set(i,o)}onChildOutletDestroyed(i){let n=this.getContext(i);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){let i=this.contexts;return this.contexts=new Map,i}onOutletReAttached(i){this.contexts=i}getOrCreateContext(i){let n=this.getContext(i);return n||(n=new ql(this.rootInjector),this.contexts.set(i,n)),n}getContext(i){return this.contexts.get(i)||null}};e.\u0275fac=function(n){return new(n||e)(ce(to))},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Qs=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let r=this.pathFromRoot(e);return r.length>1?r[r.length-2]:null}children(e){let r=Ql(e,this._root);return r?r.children.map(i=>i.value):[]}firstChild(e){let r=Ql(e,this._root);return r&&r.children.length>0?r.children[0].value:null}siblings(e){let r=Yl(e,this._root);return r.length<2?[]:r[r.length-2].children.map(n=>n.value).filter(n=>n!==e)}pathFromRoot(e){return Yl(e,this._root).map(r=>r.value)}};function Ql(t,e){if(t===e.value)return e;for(let r of e.children){let i=Ql(t,r);if(i)return i}return null}function Yl(t,e){if(t===e.value)return[e];for(let r of e.children){let i=Yl(t,r);if(i.length)return i.unshift(e),i}return[]}var Yt=class{constructor(e,r){this.value=e,this.children=r}toString(){return`TreeNode(${this.value})`}};function fr(t){let e={};return t&&t.children.forEach(r=>e[r.value.outlet]=r),e}var Ys=class extends Qs{constructor(e,r){super(e),this.snapshot=r,oc(this,e)}toString(){return this.snapshot.toString()}};function Eh(t){let e=b0(t),r=new ye([new An("",{})]),i=new ye({}),n=new ye({}),o=new ye({}),s=new ye(""),a=new Pi(r,i,o,s,n,Oe,t,e.root);return a.snapshot=e.root,new Ys(new Yt(a,[]),e)}function b0(t){let e={},r={},i={},n="",o=new vr([],e,i,n,r,Oe,t,null,{});return new Xs("",new Yt(o,[]))}var Pi=class{constructor(e,r,i,n,o,s,a,c){this.urlSubject=e,this.paramsSubject=r,this.queryParamsSubject=i,this.fragmentSubject=n,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(Ae(l=>l[So]))??ue(void 0),this.url=e,this.params=r,this.queryParams=i,this.fragment=n,this.data=o}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(Ae(e=>br(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(Ae(e=>br(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Zs(t,e,r="emptyOnly"){let i,{routeConfig:n}=t;return e!==null&&(r==="always"||n?.path===""||!e.component&&!e.routeConfig?.loadComponent)?i={params:M(M({},e.params),t.params),data:M(M({},e.data),t.data),resolve:M(M(M(M({},t.data),e.data),n?.data),t._resolvedData)}:i={params:M({},t.params),data:M({},t.data),resolve:M(M({},t.data),t._resolvedData??{})},n&&Fh(n)&&(i.resolve[So]=n.title),i}var vr=class{get title(){return this.data?.[So]}constructor(e,r,i,n,o,s,a,c,l){this.url=e,this.params=r,this.queryParams=i,this.fragment=n,this.data=o,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=l}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??=br(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=br(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(i=>i.toString()).join("/"),r=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${r}')`}},Xs=class extends Qs{constructor(e,r){super(r),this.url=e,oc(this,r)}toString(){return kh(this._root)}};function oc(t,e){e.value._routerState=t,e.children.forEach(r=>oc(t,r))}function kh(t){let e=t.children.length>0?` { ${t.children.map(kh).join(", ")} } `:"";return`${t.value}${e}`}function Al(t){if(t.snapshot){let e=t.snapshot,r=t._futureSnapshot;t.snapshot=r,Ri(e.queryParams,r.queryParams)||t.queryParamsSubject.next(r.queryParams),e.fragment!==r.fragment&&t.fragmentSubject.next(r.fragment),Ri(e.params,r.params)||t.paramsSubject.next(r.params),Gg(e.url,r.url)||t.urlSubject.next(r.url),Ri(e.data,r.data)||t.dataSubject.next(r.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function Zl(t,e){let r=Ri(t.params,e.params)&&Yg(t.url,e.url),i=!t.parent!=!e.parent;return r&&!i&&(!t.parent||Zl(t.parent,e.parent))}function Fh(t){return typeof t.title=="string"||t.title===null}var _0=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=Oe,this.activateEvents=new q,this.deactivateEvents=new q,this.attachEvents=new q,this.detachEvents=new q,this.parentContexts=A(Io),this.location=A(ft),this.changeDetector=A(ze),this.inputBinder=A(ia,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(i){if(i.name){let{firstChange:n,previousValue:o}=i.name;if(n)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(i){return this.parentContexts.getContext(i)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let i=this.parentContexts.getContext(this.name);i?.route&&(i.attachRef?this.attach(i.attachRef,i.route):this.activateWith(i.route,i.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new nt(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new nt(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new nt(4012,!1);this.location.detach();let i=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(i.instance),i}attach(i,n){this.activated=i,this._activatedRoute=n,this.location.insert(i.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(i.instance)}deactivate(){if(this.activated){let i=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(i)}}activateWith(i,n){if(this.isActivated)throw new nt(4013,!1);this._activatedRoute=i;let o=this.location,a=i.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,l=new Xl(i,c,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:l,environmentInjector:n}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=k({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[ve]});let t=e;return t})(),Xl=class t{__ngOutletInjector(e){return new t(this.route,this.childContexts,e)}constructor(e,r,i){this.route=e,this.childContexts=r,this.parent=i}get(e,r){return e===Pi?this.route:e===Io?this.childContexts:this.parent.get(e,r)}},ia=new Ge(""),lh=(()=>{let e=class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(i){this.unsubscribeFromRouteData(i),this.subscribeToRouteData(i)}unsubscribeFromRouteData(i){this.outletDataSubscriptions.get(i)?.unsubscribe(),this.outletDataSubscriptions.delete(i)}subscribeToRouteData(i){let{activatedRoute:n}=i,o=sr([n.queryParams,n.params,n.data]).pipe(zt(([s,a,c],l)=>(c=M(M(M({},s),a),c),l===0?ue(c):Promise.resolve(c)))).subscribe(s=>{if(!i.isActivated||!i.activatedComponentRef||i.activatedRoute!==n||n.component===null){this.unsubscribeFromRouteData(i);return}let a=Lu(n.component);if(!a){this.unsubscribeFromRouteData(i);return}for(let{templateName:c}of a.inputs)i.activatedComponentRef.setInput(c,s[c])});this.outletDataSubscriptions.set(i,o)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac});let t=e;return t})();function y0(t,e,r){let i=_o(t,e._root,r?r._root:void 0);return new Ys(i,e)}function _o(t,e,r){if(r&&t.shouldReuseRoute(e.value,r.value.snapshot)){let i=r.value;i._futureSnapshot=e.value;let n=x0(t,e,r);return new Yt(i,n)}else{if(t.shouldAttach(e.value)){let o=t.retrieve(e.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=e.value,s.children=e.children.map(a=>_o(t,a)),s}}let i=w0(e.value),n=e.children.map(o=>_o(t,o));return new Yt(i,n)}}function x0(t,e,r){return e.children.map(i=>{for(let n of r.children)if(t.shouldReuseRoute(i.value,n.value.snapshot))return _o(t,i,n);return _o(t,i)})}function w0(t){return new Pi(new ye(t.url),new ye(t.params),new ye(t.queryParams),new ye(t.fragment),new ye(t.data),t.outlet,t.component,t)}var yo=class{constructor(e,r){this.redirectTo=e,this.navigationBehaviorOptions=r}},Ah="ngNavigationCancelingError";function Js(t,e){let{redirectTo:r,navigationBehaviorOptions:i}=On(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,n=Mh(!1,Zt.Redirect);return n.url=r,n.navigationBehaviorOptions=i,n}function Mh(t,e){let r=new Error(`NavigationCancelingError: ${t||""}`);return r[Ah]=!0,r.cancellationCode=e,r}function D0(t){return Oh(t)&&On(t.url)}function Oh(t){return!!t&&t[Ah]}var S0=(t,e,r,i)=>Ae(n=>(new Jl(e,n.targetRouterState,n.currentRouterState,r,i).activate(t),n)),Jl=class{constructor(e,r,i,n,o){this.routeReuseStrategy=e,this.futureState=r,this.currState=i,this.forwardEvent=n,this.inputBindingEnabled=o}activate(e){let r=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(r,i,e),Al(this.futureState.root),this.activateChildRoutes(r,i,e)}deactivateChildRoutes(e,r,i){let n=fr(r);e.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,n[s],i),delete n[s]}),Object.values(n).forEach(o=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(e,r,i){let n=e.value,o=r?r.value:null;if(n===o)if(n.component){let s=i.getContext(n.outlet);s&&this.deactivateChildRoutes(e,r,s.children)}else this.deactivateChildRoutes(e,r,i);else o&&this.deactivateRouteAndItsChildren(r,i)}deactivateRouteAndItsChildren(e,r){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,r):this.deactivateRouteAndOutlet(e,r)}detachAndStoreRouteSubtree(e,r){let i=r.getContext(e.value.outlet),n=i&&e.value.component?i.children:r,o=fr(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,n);if(i&&i.outlet){let s=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:s,route:e,contexts:a})}}deactivateRouteAndOutlet(e,r){let i=r.getContext(e.value.outlet),n=i&&e.value.component?i.children:r,o=fr(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,n);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.route=null)}activateChildRoutes(e,r,i){let n=fr(r);e.children.forEach(o=>{this.activateRoutes(o,n[o.value.outlet],i),this.forwardEvent(new Kl(o.value.snapshot))}),e.children.length&&this.forwardEvent(new Wl(e.value.snapshot))}activateRoutes(e,r,i){let n=e.value,o=r?r.value:null;if(Al(n),n===o)if(n.component){let s=i.getOrCreateContext(n.outlet);this.activateChildRoutes(e,r,s.children)}else this.activateChildRoutes(e,r,i);else if(n.component){let s=i.getOrCreateContext(n.outlet);if(this.routeReuseStrategy.shouldAttach(n.snapshot)){let a=this.routeReuseStrategy.retrieve(n.snapshot);this.routeReuseStrategy.store(n.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Al(a.route.value),this.activateChildRoutes(e,null,s.children)}else s.attachRef=null,s.route=n,s.outlet&&s.outlet.activateWith(n,s.injector),this.activateChildRoutes(e,null,s.children)}else this.activateChildRoutes(e,null,i)}},ea=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},Cr=class{constructor(e,r){this.component=e,this.route=r}};function T0(t,e,r){let i=t._root,n=e?e._root:null;return ho(i,n,r,[i.value])}function I0(t){let e=t.routeConfig?t.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:t,guards:e}}function Sr(t,e){let r=Symbol(),i=e.get(t,r);return i===r?typeof t=="function"&&!gu(t)?t:e.get(t):i}function ho(t,e,r,i,n={canDeactivateChecks:[],canActivateChecks:[]}){let o=fr(e);return t.children.forEach(s=>{E0(s,o[s.value.outlet],r,i.concat([s.value]),n),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>go(a,r.getContext(s),n)),n}function E0(t,e,r,i,n={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=e?e.value:null,a=r?r.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let c=k0(s,o,o.routeConfig.runGuardsAndResolvers);c?n.canActivateChecks.push(new ea(i)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?ho(t,e,a?a.children:null,i,n):ho(t,e,r,i,n),c&&a&&a.outlet&&a.outlet.isActivated&&n.canDeactivateChecks.push(new Cr(a.outlet.component,s))}else s&&go(e,a,n),n.canActivateChecks.push(new ea(i)),o.component?ho(t,null,a?a.children:null,i,n):ho(t,null,r,i,n);return n}function k0(t,e,r){if(typeof r=="function")return r(t,e);switch(r){case"pathParamsChange":return!Mn(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Mn(t.url,e.url)||!Ri(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Zl(t,e)||!Ri(t.queryParams,e.queryParams);case"paramsChange":default:return!Zl(t,e)}}function go(t,e,r){let i=fr(t),n=t.value;Object.entries(i).forEach(([o,s])=>{n.component?e?go(s,e.children.getContext(o),r):go(s,null,r):go(s,e,r)}),n.component?e&&e.outlet&&e.outlet.isActivated?r.canDeactivateChecks.push(new Cr(e.outlet.component,n)):r.canDeactivateChecks.push(new Cr(null,n)):r.canDeactivateChecks.push(new Cr(null,n))}function Eo(t){return typeof t=="function"}function F0(t){return typeof t=="boolean"}function A0(t){return t&&Eo(t.canLoad)}function M0(t){return t&&Eo(t.canActivate)}function O0(t){return t&&Eo(t.canActivateChild)}function R0(t){return t&&Eo(t.canDeactivate)}function P0(t){return t&&Eo(t.canMatch)}function Rh(t){return t instanceof au||t?.name==="EmptyError"}var Ls=Symbol("INITIAL_VALUE");function wr(){return zt(t=>sr(t.map(e=>e.pipe(jt(1),Tn(Ls)))).pipe(Ae(e=>{for(let r of e)if(r!==!0){if(r===Ls)return Ls;if(r===!1||V0(r))return r}return!0}),ke(e=>e!==Ls),jt(1)))}function V0(t){return On(t)||t instanceof yo}function N0(t,e){return Ut(r=>{let{targetSnapshot:i,currentSnapshot:n,guards:{canActivateChecks:o,canDeactivateChecks:s}}=r;return s.length===0&&o.length===0?ue(we(M({},r),{guardsResult:!0})):j0(s,i,n,t).pipe(Ut(a=>a&&F0(a)?B0(i,o,t,e):ue(a)),Ae(a=>we(M({},r),{guardsResult:a})))})}function j0(t,e,r,i){return Et(t).pipe(Ut(n=>z0(n.component,n.route,r,e,i)),tn(n=>n!==!0,!0))}function B0(t,e,r,i){return Et(e).pipe(lr(n=>xs(H0(n.route.parent,i),L0(n.route,i),U0(t,n.path,r),$0(t,n.route,r))),tn(n=>n!==!0,!0))}function L0(t,e){return t!==null&&e&&e(new Gl(t)),ue(!0)}function H0(t,e){return t!==null&&e&&e(new zl(t)),ue(!0)}function $0(t,e,r){let i=e.routeConfig?e.routeConfig.canActivate:null;if(!i||i.length===0)return ue(!0);let n=i.map(o=>sl(()=>{let s=To(e)??r,a=Sr(o,s),c=M0(a)?a.canActivate(e,t):Fi(s,()=>a(e,t));return pn(c).pipe(tn())}));return ue(n).pipe(wr())}function U0(t,e,r){let i=e[e.length-1],o=e.slice(0,e.length-1).reverse().map(s=>I0(s)).filter(s=>s!==null).map(s=>sl(()=>{let a=s.guards.map(c=>{let l=To(s.node)??r,h=Sr(c,l),d=O0(h)?h.canActivateChild(i,t):Fi(l,()=>h(i,t));return pn(d).pipe(tn())});return ue(a).pipe(wr())}));return ue(o).pipe(wr())}function z0(t,e,r,i,n){let o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||o.length===0)return ue(!0);let s=o.map(a=>{let c=To(e)??n,l=Sr(a,c),h=R0(l)?l.canDeactivate(t,e,r,i):Fi(c,()=>l(t,e,r,i));return pn(h).pipe(tn())});return ue(s).pipe(wr())}function W0(t,e,r,i){let n=e.canLoad;if(n===void 0||n.length===0)return ue(!0);let o=n.map(s=>{let a=Sr(s,t),c=A0(a)?a.canLoad(e,r):Fi(t,()=>a(e,r));return pn(c)});return ue(o).pipe(wr(),Ph(i))}function Ph(t){return nu(le(e=>{if(typeof e!="boolean")throw Js(t,e)}),Ae(e=>e===!0))}function G0(t,e,r,i){let n=e.canMatch;if(!n||n.length===0)return ue(!0);let o=n.map(s=>{let a=Sr(s,t),c=P0(a)?a.canMatch(e,r):Fi(t,()=>a(e,r));return pn(c)});return ue(o).pipe(wr(),Ph(i))}var xo=class{constructor(e){this.segmentGroup=e||null}},wo=class extends Error{constructor(e){super(),this.urlTree=e}};function mr(t){return Jr(new xo(t))}function K0(t){return Jr(new nt(4e3,!1))}function q0(t){return Jr(Mh(!1,Zt.GuardRejected))}var ec=class{constructor(e,r){this.urlSerializer=e,this.urlTree=r}lineralizeSegments(e,r){let i=[],n=r.root;for(;;){if(i=i.concat(n.segments),n.numberOfChildren===0)return ue(i);if(n.numberOfChildren>1||!n.children[Oe])return K0(`${e.redirectTo}`);n=n.children[Oe]}}applyRedirectCommands(e,r,i,n,o){if(typeof r!="string"){let a=r,{queryParams:c,fragment:l,routeConfig:h,url:d,outlet:f,params:g,data:F,title:L}=n,Y=Fi(o,()=>a({params:g,data:F,queryParams:c,fragment:l,routeConfig:h,url:d,outlet:f,title:L}));if(Y instanceof Ui)throw new wo(Y);r=Y}let s=this.applyRedirectCreateUrlTree(r,this.urlSerializer.parse(r),e,i);if(r[0]==="/")throw new wo(s);return s}applyRedirectCreateUrlTree(e,r,i,n){let o=this.createSegmentGroup(e,r.root,i,n);return new Ui(o,this.createQueryParams(r.queryParams,this.urlTree.queryParams),r.fragment)}createQueryParams(e,r){let i={};return Object.entries(e).forEach(([n,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);i[n]=r[a]}else i[n]=o}),i}createSegmentGroup(e,r,i,n){let o=this.createSegments(e,r.segments,i,n),s={};return Object.entries(r.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(e,c,i,n)}),new Ke(o,s)}createSegments(e,r,i,n){return r.map(o=>o.path[0]===":"?this.findPosParam(e,o,n):this.findOrReturn(o,i))}findPosParam(e,r,i){let n=i[r.path.substring(1)];if(!n)throw new nt(4001,!1);return n}findOrReturn(e,r){let i=0;for(let n of r){if(n.path===e.path)return r.splice(i),n;i++}return e}},tc={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Q0(t,e,r,i,n){let o=sc(t,e,r);return o.matched?(i=v0(e,i),G0(i,e,r,n).pipe(Ae(s=>s===!0?o:M({},tc)))):ue(o)}function sc(t,e,r){if(e.path==="**")return Y0(r);if(e.path==="")return e.pathMatch==="full"&&(t.hasChildren()||r.length>0)?M({},tc):{matched:!0,consumedSegments:[],remainingSegments:r,parameters:{},positionalParamSegments:{}};let n=(e.matcher||Wg)(r,t,e);if(!n)return M({},tc);let o={};Object.entries(n.posParams??{}).forEach(([a,c])=>{o[a]=c.path});let s=n.consumed.length>0?M(M({},o),n.consumed[n.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:n.consumed,remainingSegments:r.slice(n.consumed.length),parameters:s,positionalParamSegments:n.posParams??{}}}function Y0(t){return{matched:!0,parameters:t.length>0?fh(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function ch(t,e,r,i){return r.length>0&&J0(t,r,i)?{segmentGroup:new Ke(e,X0(i,new Ke(r,t.children))),slicedSegments:[]}:r.length===0&&ev(t,r,i)?{segmentGroup:new Ke(t.segments,Z0(t,r,i,t.children)),slicedSegments:r}:{segmentGroup:new Ke(t.segments,t.children),slicedSegments:r}}function Z0(t,e,r,i){let n={};for(let o of r)if(na(t,e,o)&&!i[bi(o)]){let s=new Ke([],{});n[bi(o)]=s}return M(M({},i),n)}function X0(t,e){let r={};r[Oe]=e;for(let i of t)if(i.path===""&&bi(i)!==Oe){let n=new Ke([],{});r[bi(i)]=n}return r}function J0(t,e,r){return r.some(i=>na(t,e,i)&&bi(i)!==Oe)}function ev(t,e,r){return r.some(i=>na(t,e,i))}function na(t,e,r){return(t.hasChildren()||e.length>0)&&r.pathMatch==="full"?!1:r.path===""}function tv(t,e,r,i){return bi(t)!==i&&(i===Oe||!na(e,r,t))?!1:sc(e,t,r).matched}function iv(t,e,r){return e.length===0&&!t.children[r]}var ic=class{};function nv(t,e,r,i,n,o,s="emptyOnly"){return new nc(t,e,r,i,n,s,o).recognize()}var rv=31,nc=class{constructor(e,r,i,n,o,s,a){this.injector=e,this.configLoader=r,this.rootComponentType=i,this.config=n,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new ec(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new nt(4002,`'${e.segmentGroup}'`)}recognize(){let e=ch(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(Ae(({children:r,rootSnapshot:i})=>{let n=new Yt(i,r),o=new Xs("",n),s=d0(i,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(e){let r=new vr([],Object.freeze({}),Object.freeze(M({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),Oe,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,e,Oe,r).pipe(Ae(i=>({children:i,rootSnapshot:r})),ar(i=>{if(i instanceof wo)return this.urlTree=i.urlTree,this.match(i.urlTree.root);throw i instanceof xo?this.noMatchError(i):i}))}processSegmentGroup(e,r,i,n,o){return i.segments.length===0&&i.hasChildren()?this.processChildren(e,r,i,o):this.processSegment(e,r,i,i.segments,n,!0,o).pipe(Ae(s=>s instanceof Yt?[s]:[]))}processChildren(e,r,i,n){let o=[];for(let s of Object.keys(i.children))s==="primary"?o.unshift(s):o.push(s);return Et(o).pipe(lr(s=>{let a=i.children[s],c=C0(r,s);return this.processSegmentGroup(e,c,a,s,n)}),hu((s,a)=>(s.push(...a),s)),ll(null),du(),Ut(s=>{if(s===null)return mr(i);let a=Vh(s);return ov(a),ue(a)}))}processSegment(e,r,i,n,o,s,a){return Et(r).pipe(lr(c=>this.processSegmentAgainstRoute(c._injector??e,r,c,i,n,o,s,a).pipe(ar(l=>{if(l instanceof xo)return ue(null);throw l}))),tn(c=>!!c),ar(c=>{if(Rh(c))return iv(i,n,o)?ue(new ic):mr(i);throw c}))}processSegmentAgainstRoute(e,r,i,n,o,s,a,c){return tv(i,n,o,s)?i.redirectTo===void 0?this.matchSegmentAgainstRoute(e,n,i,o,s,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,n,r,i,o,s,c):mr(n):mr(n)}expandSegmentAgainstRouteUsingRedirect(e,r,i,n,o,s,a){let{matched:c,parameters:l,consumedSegments:h,positionalParamSegments:d,remainingSegments:f}=sc(r,n,o);if(!c)return mr(r);typeof n.redirectTo=="string"&&n.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>rv&&(this.allowRedirects=!1));let g=new vr(o,l,Object.freeze(M({},this.urlTree.queryParams)),this.urlTree.fragment,dh(n),bi(n),n.component??n._loadedComponent??null,n,uh(n)),F=Zs(g,a,this.paramsInheritanceStrategy);g.params=Object.freeze(F.params),g.data=Object.freeze(F.data);let L=this.applyRedirects.applyRedirectCommands(h,n.redirectTo,d,g,e);return this.applyRedirects.lineralizeSegments(n,L).pipe(Ut(Y=>this.processSegment(e,i,r,Y.concat(f),s,!1,a)))}matchSegmentAgainstRoute(e,r,i,n,o,s){let a=Q0(r,i,n,e,this.urlSerializer);return i.path==="**"&&(r.children={}),a.pipe(zt(c=>c.matched?(e=i._injector??e,this.getChildConfig(e,i,n).pipe(zt(({routes:l})=>{let h=i._loadedInjector??e,{parameters:d,consumedSegments:f,remainingSegments:g}=c,F=new vr(f,d,Object.freeze(M({},this.urlTree.queryParams)),this.urlTree.fragment,dh(i),bi(i),i.component??i._loadedComponent??null,i,uh(i)),L=Zs(F,s,this.paramsInheritanceStrategy);F.params=Object.freeze(L.params),F.data=Object.freeze(L.data);let{segmentGroup:Y,slicedSegments:oe}=ch(r,f,g,l);if(oe.length===0&&Y.hasChildren())return this.processChildren(h,l,Y,F).pipe(Ae(Re=>new Yt(F,Re)));if(l.length===0&&oe.length===0)return ue(new Yt(F,[]));let Se=bi(i)===o;return this.processSegment(h,l,Y,oe,Se?Oe:o,!0,F).pipe(Ae(Re=>new Yt(F,Re instanceof Yt?[Re]:[])))}))):mr(r)))}getChildConfig(e,r,i){return r.children?ue({routes:r.children,injector:e}):r.loadChildren?r._loadedRoutes!==void 0?ue({routes:r._loadedRoutes,injector:r._loadedInjector}):W0(e,r,i,this.urlSerializer).pipe(Ut(n=>n?this.configLoader.loadChildren(e,r).pipe(le(o=>{r._loadedRoutes=o.routes,r._loadedInjector=o.injector})):q0(r))):ue({routes:[],injector:e})}};function ov(t){t.sort((e,r)=>e.value.outlet===Oe?-1:r.value.outlet===Oe?1:e.value.outlet.localeCompare(r.value.outlet))}function sv(t){let e=t.value.routeConfig;return e&&e.path===""}function Vh(t){let e=[],r=new Set;for(let i of t){if(!sv(i)){e.push(i);continue}let n=e.find(o=>i.value.routeConfig===o.value.routeConfig);n!==void 0?(n.children.push(...i.children),r.add(n)):e.push(i)}for(let i of r){let n=Vh(i.children);e.push(new Yt(i.value,n))}return e.filter(i=>!r.has(i))}function dh(t){return t.data||{}}function uh(t){return t.resolve||{}}function av(t,e,r,i,n,o){return Ut(s=>nv(t,e,r,i,s.extractedUrl,n,o).pipe(Ae(({state:a,tree:c})=>we(M({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function lv(t,e){return Ut(r=>{let{targetSnapshot:i,guards:{canActivateChecks:n}}=r;if(!n.length)return ue(r);let o=new Set(n.map(c=>c.route)),s=new Set;for(let c of o)if(!s.has(c))for(let l of Nh(c))s.add(l);let a=0;return Et(s).pipe(lr(c=>o.has(c)?cv(c,i,t,e):(c.data=Zs(c,c.parent,t).resolve,ue(void 0))),le(()=>a++),cl(1),Ut(c=>a===s.size?ue(r):en))})}function Nh(t){let e=t.children.map(r=>Nh(r)).flat();return[t,...e]}function cv(t,e,r,i){let n=t.routeConfig,o=t._resolve;return n?.title!==void 0&&!Fh(n)&&(o[So]=n.title),dv(o,t,e,i).pipe(Ae(s=>(t._resolvedData=s,t.data=Zs(t,t.parent,r).resolve,null)))}function dv(t,e,r,i){let n=Rl(t);if(n.length===0)return ue({});let o={};return Et(n).pipe(Ut(s=>uv(t[s],e,r,i).pipe(tn(),le(a=>{if(a instanceof yo)throw Js(new _r,a);o[s]=a}))),cl(1),cu(o),ar(s=>Rh(s)?en:Jr(s)))}function uv(t,e,r,i){let n=To(e)??i,o=Sr(t,n),s=o.resolve?o.resolve(e,r):Fi(n,()=>o(e,r));return pn(s)}function Ml(t){return zt(e=>{let r=t(e);return r?Et(r).pipe(Ae(()=>e)):ue(e)})}var jh=(()=>{let e=class e{buildTitle(i){let n,o=i.root;for(;o!==void 0;)n=this.getResolvedTitleForRoute(o)??n,o=o.children.find(s=>s.outlet===Oe);return n}getResolvedTitleForRoute(i){return i.data[So]}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:()=>A(hv),providedIn:"root"});let t=e;return t})(),hv=(()=>{let e=class e extends jh{constructor(i){super(),this.title=i}updateTitle(i){let n=this.buildTitle(i);n!==void 0&&this.title.setTitle(n)}};e.\u0275fac=function(n){return new(n||e)(ce(Ku))},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Tr=new Ge("",{providedIn:"root",factory:()=>({})}),pv=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=x({type:e,selectors:[["ng-component"]],standalone:!0,features:[w],decls:1,vars:0,template:function(n,o){n&1&&ie(0,"router-outlet")},dependencies:[_0],encapsulation:2});let t=e;return t})();function ac(t){let e=t.children&&t.children.map(ac),r=e?we(M({},t),{children:e}):M({},t);return!r.component&&!r.loadComponent&&(e||r.loadChildren)&&r.outlet&&r.outlet!==Oe&&(r.component=pv),r}var Do=new Ge(""),lc=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=A(Ns)}loadComponent(i){if(this.componentLoaders.get(i))return this.componentLoaders.get(i);if(i._loadedComponent)return ue(i._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(i);let n=pn(i.loadComponent()).pipe(Ae(Bh),le(s=>{this.onLoadEndListener&&this.onLoadEndListener(i),i._loadedComponent=s}),ki(()=>{this.componentLoaders.delete(i)})),o=new Xr(n,()=>new Te).pipe(ol());return this.componentLoaders.set(i,o),o}loadChildren(i,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return ue({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let s=mv(n,this.compiler,i,this.onLoadEndListener).pipe(ki(()=>{this.childrenLoaders.delete(n)})),a=new Xr(s,()=>new Te).pipe(ol());return this.childrenLoaders.set(n,a),a}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function mv(t,e,r,i){return pn(t.loadChildren()).pipe(Ae(Bh),Ut(n=>n instanceof Eu||Array.isArray(n)?ue(n):Et(e.compileModuleAsync(n))),Ae(n=>{i&&i(t);let o,s,a=!1;return Array.isArray(n)?(s=n,a=!0):(o=n.create(r).injector,s=o.get(Do,[],{optional:!0,self:!0}).flat()),{routes:s.map(ac),injector:o}}))}function fv(t){return t&&typeof t=="object"&&"default"in t}function Bh(t){return fv(t)?t.default:t}var cc=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:()=>A(gv),providedIn:"root"});let t=e;return t})(),gv=(()=>{let e=class e{shouldProcessUrl(i){return!0}extract(i){return i}merge(i,n){return i}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Lh=new Ge(""),Hh=new Ge("");function vv(t,e,r){let i=t.get(Hh),n=t.get(Be);return t.get(tt).runOutsideAngular(()=>{if(!n.startViewTransition||i.skipNextTransition)return i.skipNextTransition=!1,new Promise(l=>setTimeout(l));let o,s=new Promise(l=>{o=l}),a=n.startViewTransition(()=>(o(),Cv(t))),{onViewTransitionCreated:c}=i;return c&&Fi(t,()=>c({transition:a,from:e,to:r})),s})}function Cv(t){return new Promise(e=>{Ai({read:()=>setTimeout(e)},{injector:t})})}var bv=new Ge(""),ra=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new Te,this.transitionAbortSubject=new Te,this.configLoader=A(lc),this.environmentInjector=A(to),this.urlSerializer=A(Dr),this.rootContexts=A(Io),this.location=A(ro),this.inputBindingEnabled=A(ia,{optional:!0})!==null,this.titleStrategy=A(jh),this.options=A(Tr,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=A(cc),this.createViewTransition=A(Lh,{optional:!0}),this.navigationErrorHandler=A(bv,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>ue(void 0),this.rootComponentType=null;let i=o=>this.events.next(new $l(o)),n=o=>this.events.next(new Ul(o));this.configLoader.onLoadEndListener=n,this.configLoader.onLoadStartListener=i}complete(){this.transitions?.complete()}handleNavigationRequest(i){let n=++this.navigationId;this.transitions?.next(we(M(M({},this.transitions.value),i),{id:n}))}setupNavigations(i,n,o){return this.transitions=new ye({id:0,currentUrlTree:n,currentRawUrl:n,extractedUrl:this.urlHandlingStrategy.extract(n),urlAfterRedirects:this.urlHandlingStrategy.extract(n),rawUrl:n,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:fo,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(ke(s=>s.id!==0),Ae(s=>we(M({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),zt(s=>{let a=!1,c=!1;return ue(s).pipe(zt(l=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",Zt.SupersededByNewNavigation),en;this.currentTransition=s,this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,targetBrowserUrl:typeof l.extras.browserUrl=="string"?this.urlSerializer.parse(l.extras.browserUrl):l.extras.browserUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?we(M({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let h=!i.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=l.extras.onSameUrlNavigation??i.onSameUrlNavigation;if(!h&&d!=="reload"){let f="";return this.events.next(new un(l.id,this.urlSerializer.serialize(l.rawUrl),f,Gs.IgnoredSameUrlNavigation)),l.resolve(!1),en}if(this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return ue(l).pipe(zt(f=>{let g=this.transitions?.getValue();return this.events.next(new yr(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),g!==this.transitions?.getValue()?en:Promise.resolve(f)}),av(this.environmentInjector,this.configLoader,this.rootComponentType,i.config,this.urlSerializer,this.paramsInheritanceStrategy),le(f=>{s.targetSnapshot=f.targetSnapshot,s.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation=we(M({},this.currentNavigation),{finalUrl:f.urlAfterRedirects});let g=new Ks(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(g)}));if(h&&this.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){let{id:f,extractedUrl:g,source:F,restoredState:L,extras:Y}=l,oe=new yr(f,this.urlSerializer.serialize(g),F,L);this.events.next(oe);let Se=Eh(this.rootComponentType).snapshot;return this.currentTransition=s=we(M({},l),{targetSnapshot:Se,urlAfterRedirects:g,extras:we(M({},Y),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=g,ue(s)}else{let f="";return this.events.next(new un(l.id,this.urlSerializer.serialize(l.extractedUrl),f,Gs.IgnoredByUrlHandlingStrategy)),l.resolve(!1),en}}),le(l=>{let h=new jl(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(h)}),Ae(l=>(this.currentTransition=s=we(M({},l),{guards:T0(l.targetSnapshot,l.currentSnapshot,this.rootContexts)}),s)),N0(this.environmentInjector,l=>this.events.next(l)),le(l=>{if(s.guardsResult=l.guardsResult,l.guardsResult&&typeof l.guardsResult!="boolean")throw Js(this.urlSerializer,l.guardsResult);let h=new Bl(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(h)}),ke(l=>l.guardsResult?!0:(this.cancelNavigationTransition(l,"",Zt.GuardRejected),!1)),Ml(l=>{if(l.guards.canActivateChecks.length)return ue(l).pipe(le(h=>{let d=new Ll(h.id,this.urlSerializer.serialize(h.extractedUrl),this.urlSerializer.serialize(h.urlAfterRedirects),h.targetSnapshot);this.events.next(d)}),zt(h=>{let d=!1;return ue(h).pipe(lv(this.paramsInheritanceStrategy,this.environmentInjector),le({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(h,"",Zt.NoDataFromResolver)}}))}),le(h=>{let d=new Hl(h.id,this.urlSerializer.serialize(h.extractedUrl),this.urlSerializer.serialize(h.urlAfterRedirects),h.targetSnapshot);this.events.next(d)}))}),Ml(l=>{let h=d=>{let f=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&f.push(this.configLoader.loadComponent(d.routeConfig).pipe(le(g=>{d.component=g}),Ae(()=>{})));for(let g of d.children)f.push(...h(g));return f};return sr(h(l.targetSnapshot.root)).pipe(ll(null),jt(1))}),Ml(()=>this.afterPreactivation()),zt(()=>{let{currentSnapshot:l,targetSnapshot:h}=s,d=this.createViewTransition?.(this.environmentInjector,l.root,h.root);return d?Et(d).pipe(Ae(()=>s)):ue(s)}),Ae(l=>{let h=y0(i.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=s=we(M({},l),{targetRouterState:h}),this.currentNavigation.targetRouterState=h,s}),le(()=>{this.events.next(new bo)}),S0(this.rootContexts,i.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),jt(1),le({next:l=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Dt(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),this.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{a=!0}}),Wt(this.transitionAbortSubject.pipe(le(l=>{throw l}))),ki(()=>{!a&&!c&&this.cancelNavigationTransition(s,"",Zt.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),ar(l=>{if(c=!0,Oh(l))this.events.next(new $i(s.id,this.urlSerializer.serialize(s.extractedUrl),l.message,l.cancellationCode)),D0(l)?this.events.next(new xr(l.url,l.navigationBehaviorOptions)):s.resolve(!1);else{let h=new Co(s.id,this.urlSerializer.serialize(s.extractedUrl),l,s.targetSnapshot??void 0);try{let d=Fi(this.environmentInjector,()=>this.navigationErrorHandler?.(h));if(d instanceof yo){let{message:f,cancellationCode:g}=Js(this.urlSerializer,d);this.events.next(new $i(s.id,this.urlSerializer.serialize(s.extractedUrl),f,g)),this.events.next(new xr(d.redirectTo,d.navigationBehaviorOptions))}else{this.events.next(h);let f=i.errorHandler(l);s.resolve(!!f)}}catch(d){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(d)}}return en}))}))}cancelNavigationTransition(i,n,o){let s=new $i(i.id,this.urlSerializer.serialize(i.extractedUrl),n,o);this.events.next(s),i.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let i=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),n=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return i.toString()!==n?.toString()&&!this.currentNavigation?.extras.skipLocationChange}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function _v(t){return t!==fo}var yv=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:()=>A(xv),providedIn:"root"});let t=e;return t})(),rc=class{shouldDetach(e){return!1}store(e,r){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,r){return e.routeConfig===r.routeConfig}},xv=(()=>{let e=class e extends rc{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=st(e)))(o||e)}})(),e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),$h=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:()=>A(wv),providedIn:"root"});let t=e;return t})(),wv=(()=>{let e=class e extends $h{constructor(){super(...arguments),this.location=A(ro),this.urlSerializer=A(Dr),this.options=A(Tr,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=A(cc),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Ui,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Eh(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(i){return this.location.subscribe(n=>{n.type==="popstate"&&i(n.url,n.state)})}handleRouterEvent(i,n){if(i instanceof yr)this.stateMemento=this.createStateMemento();else if(i instanceof un)this.rawUrlTree=n.initialUrl;else if(i instanceof Ks){if(this.urlUpdateStrategy==="eager"&&!n.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(n.finalUrl,n.initialUrl);this.setBrowserUrl(n.targetBrowserUrl??o,n)}}else i instanceof bo?(this.currentUrlTree=n.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(n.finalUrl,n.initialUrl),this.routerState=n.targetRouterState,this.urlUpdateStrategy==="deferred"&&!n.extras.skipLocationChange&&this.setBrowserUrl(n.targetBrowserUrl??this.rawUrlTree,n)):i instanceof $i&&(i.code===Zt.GuardRejected||i.code===Zt.NoDataFromResolver)?this.restoreHistory(n):i instanceof Co?this.restoreHistory(n,!0):i instanceof Dt&&(this.lastSuccessfulId=i.id,this.currentPageId=this.browserPageId)}setBrowserUrl(i,n){let o=i instanceof Ui?this.urlSerializer.serialize(i):i;if(this.location.isCurrentPathEqualTo(o)||n.extras.replaceUrl){let s=this.browserPageId,a=M(M({},n.extras.state),this.generateNgRouterState(n.id,s));this.location.replaceState(o,"",a)}else{let s=M(M({},n.extras.state),this.generateNgRouterState(n.id,this.browserPageId+1));this.location.go(o,"",s)}}restoreHistory(i,n=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,s=this.currentPageId-o;s!==0?this.location.historyGo(s):this.currentUrlTree===i.finalUrl&&s===0&&(this.resetState(i),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(n&&this.resetState(i),this.resetUrlToCurrentUrlTree())}resetState(i){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,i.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(i,n){return this.canceledNavigationResolution==="computed"?{navigationId:i,\u0275routerPageId:n}:{navigationId:i}}};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=st(e)))(o||e)}})(),e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),po=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(po||{});function Uh(t,e){t.events.pipe(ke(r=>r instanceof Dt||r instanceof $i||r instanceof Co||r instanceof un),Ae(r=>r instanceof Dt||r instanceof un?po.COMPLETE:(r instanceof $i?r.code===Zt.Redirect||r.code===Zt.SupersededByNewNavigation:!1)?po.REDIRECTING:po.FAILED),ke(r=>r!==po.REDIRECTING),jt(1)).subscribe(()=>{e()})}function Dv(t){throw t}var Sv={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Tv={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},St=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=A(ju),this.stateManager=A($h),this.options=A(Tr,{optional:!0})||{},this.pendingTasks=A(yu),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=A(ra),this.urlSerializer=A(Dr),this.location=A(ro),this.urlHandlingStrategy=A(cc),this._events=new Te,this.errorHandler=this.options.errorHandler||Dv,this.navigated=!1,this.routeReuseStrategy=A(yv),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=A(Do,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!A(ia,{optional:!0}),this.eventsSubscription=new or,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:i=>{this.console.warn(i)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let i=this.navigationTransitions.events.subscribe(n=>{try{let o=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(o!==null&&s!==null){if(this.stateManager.handleRouterEvent(n,s),n instanceof $i&&n.code!==Zt.Redirect&&n.code!==Zt.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof Dt)this.navigated=!0;else if(n instanceof xr){let a=n.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(n.url,o.currentRawUrl),l=M({browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||_v(o.source)},a);this.scheduleNavigation(c,fo,null,l,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}Ev(n)&&this._events.next(n)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(i)}resetRootComponentType(i){this.routerState.root.component=i,this.navigationTransitions.rootComponentType=i}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),fo,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((i,n)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(i,"popstate",n)},0)})}navigateToSyncWithBrowser(i,n,o){let s={replaceUrl:!0},a=o?.navigationId?o:null;if(o){let l=M({},o);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(s.state=l)}let c=this.parseUrl(i);this.scheduleNavigation(c,n,a,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(i){this.config=i.map(ac),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(i,n={}){let{relativeTo:o,queryParams:s,fragment:a,queryParamsHandling:c,preserveFragment:l}=n,h=l?this.currentUrlTree.fragment:a,d=null;switch(c??this.options.defaultQueryParamsHandling){case"merge":d=M(M({},this.currentUrlTree.queryParams),s);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=s||null}d!==null&&(d=this.removeEmptyProps(d));let f;try{let g=o?o.snapshot:this.routerState.snapshot.root;f=Dh(g)}catch{(typeof i[0]!="string"||i[0][0]!=="/")&&(i=[]),f=this.currentUrlTree.root}return Sh(f,i,d,h??null)}navigateByUrl(i,n={skipLocationChange:!1}){let o=On(i)?i:this.parseUrl(i),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,fo,null,n)}navigate(i,n={skipLocationChange:!1}){return Iv(i),this.navigateByUrl(this.createUrlTree(i,n),n)}serializeUrl(i){return this.urlSerializer.serialize(i)}parseUrl(i){try{return this.urlSerializer.parse(i)}catch{return this.urlSerializer.parse("/")}}isActive(i,n){let o;if(n===!0?o=M({},Sv):n===!1?o=M({},Tv):o=n,On(i))return rh(this.currentUrlTree,i,o);let s=this.parseUrl(i);return rh(this.currentUrlTree,s,o)}removeEmptyProps(i){return Object.entries(i).reduce((n,[o,s])=>(s!=null&&(n[o]=s),n),{})}scheduleNavigation(i,n,o,s,a){if(this.disposed)return Promise.resolve(!1);let c,l,h;a?(c=a.resolve,l=a.reject,h=a.promise):h=new Promise((f,g)=>{c=f,l=g});let d=this.pendingTasks.add();return Uh(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:i,extras:s,resolve:c,reject:l,promise:h,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),h.catch(f=>Promise.reject(f))}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Iv(t){for(let e=0;e{let e=class e{constructor(i,n,o,s,a,c){this.router=i,this.route=n,this.tabIndexAttribute=o,this.renderer=s,this.el=a,this.locationStrategy=c,this.href=null,this.onChanges=new Te,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1,this.routerLinkInput=null;let l=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=l==="a"||l==="area",this.isAnchorElement?this.subscription=i.events.subscribe(h=>{h instanceof Dt&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(i){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",i)}ngOnChanges(i){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(i){i==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(On(i)?this.routerLinkInput=i:this.routerLinkInput=Array.isArray(i)?i:[i],this.setTabIndexIfNotOnNativeEl("0"))}onClick(i,n,o,s,a){let c=this.urlTree;if(c===null||this.isAnchorElement&&(i!==0||n||o||s||a||typeof this.target=="string"&&this.target!="_self"))return!0;let l={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(c,l),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let i=this.urlTree;this.href=i!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(i)):null;let n=this.href===null?null:Su(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",n)}applyAttributeValue(i,n){let o=this.renderer,s=this.el.nativeElement;n!==null?o.setAttribute(s,i,n):o.removeAttribute(s,i)}get urlTree(){return this.routerLinkInput===null?null:On(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}};e.\u0275fac=function(n){return new(n||e)(v(St),v(Pi),_u("tabindex"),v(se),v(H),v(no))},e.\u0275dir=k({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(n,o){n&1&&V("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),n&2&&N("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",S],skipLocationChange:[2,"skipLocationChange","skipLocationChange",S],replaceUrl:[2,"replaceUrl","replaceUrl",S],routerLink:"routerLink"},standalone:!0,features:[$,ve]});let t=e;return t})(),oa=(()=>{let e=class e{get isActive(){return this._isActive}constructor(i,n,o,s,a){this.router=i,this.element=n,this.renderer=o,this.cdr=s,this.link=a,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new q,this.routerEventsSubscription=i.events.subscribe(c=>{c instanceof Dt&&this.update()})}ngAfterContentInit(){ue(this.links.changes,ue(null)).pipe(eo()).subscribe(i=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let i=[...this.links.toArray(),this.link].filter(n=>!!n).map(n=>n.onChanges);this.linkInputChangesSubscription=Et(i).pipe(eo()).subscribe(n=>{this._isActive!==this.isLinkActive(this.router)(n)&&this.update()})}set routerLinkActive(i){let n=Array.isArray(i)?i:i.split(" ");this.classes=n.filter(o=>!!o)}ngOnChanges(i){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let i=this.hasActiveLinks();this.classes.forEach(n=>{i?this.renderer.addClass(this.element.nativeElement,n):this.renderer.removeClass(this.element.nativeElement,n)}),i&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==i&&(this._isActive=i,this.cdr.markForCheck(),this.isActiveChange.emit(i))})}isLinkActive(i){let n=kv(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>{let s=o.urlTree;return s?i.isActive(s,n):!1}}hasActiveLinks(){let i=this.isLinkActive(this.router);return this.link&&i(this.link)||this.links.some(i)}};e.\u0275fac=function(n){return new(n||e)(v(St),v(H),v(se),v(ze),v(hn,8))},e.\u0275dir=k({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(n,o,s){if(n&1&&De(s,hn,5),n&2){let a;J(a=ee())&&(o.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[ve]});let t=e;return t})();function kv(t){return!!t.paths}var ta=class{};var Fv=(()=>{let e=class e{constructor(i,n,o,s,a){this.router=i,this.injector=o,this.preloadingStrategy=s,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(ke(i=>i instanceof Dt),lr(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(i,n){let o=[];for(let s of n){s.providers&&!s._injector&&(s._injector=pl(s.providers,i,`Route: ${s.path}`));let a=s._injector??i,c=s._loadedInjector??a;(s.loadChildren&&!s._loadedRoutes&&s.canLoad===void 0||s.loadComponent&&!s._loadedComponent)&&o.push(this.preloadConfig(a,s)),(s.children||s._loadedRoutes)&&o.push(this.processRoutes(c,s.children??s._loadedRoutes))}return Et(o).pipe(eo())}preloadConfig(i,n){return this.preloadingStrategy.preload(n,()=>{let o;n.loadChildren&&n.canLoad===void 0?o=this.loader.loadChildren(i,n):o=ue(null);let s=o.pipe(Ut(a=>a===null?ue(void 0):(n._loadedRoutes=a.routes,n._loadedInjector=a.injector,this.processRoutes(a.injector??i,a.routes))));if(n.loadComponent&&!n._loadedComponent){let a=this.loader.loadComponent(n);return Et([s,a]).pipe(eo())}else return s})}};e.\u0275fac=function(n){return new(n||e)(ce(St),ce(Ns),ce(to),ce(ta),ce(lc))},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),dc=new Ge(""),zh=(()=>{let e=class e{constructor(i,n,o,s,a={}){this.urlSerializer=i,this.transitions=n,this.viewportScroller=o,this.zone=s,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration||="disabled",a.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(i=>{i instanceof yr?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=i.navigationTrigger,this.restoredId=i.restoredState?i.restoredState.navigationId:0):i instanceof Dt?(this.lastId=i.id,this.scheduleScrollEvent(i,this.urlSerializer.parse(i.urlAfterRedirects).fragment)):i instanceof un&&i.code===Gs.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(i,this.urlSerializer.parse(i.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(i=>{i instanceof qs&&(i.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(i.position):i.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(i.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(i,n){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new qs(i,this.lastSource==="popstate"?this.store[this.restoredId]:null,n))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};e.\u0275fac=function(n){Tu()},e.\u0275prov=K({token:e,factory:e.\u0275fac});let t=e;return t})();function SM(t,...e){return bu([{provide:Do,multi:!0,useValue:t},[],{provide:Pi,useFactory:Wh,deps:[St]},{provide:vl,multi:!0,useFactory:Gh},e.map(r=>r.\u0275providers)])}function Wh(t){return t.routerState.root}function Rn(t,e){return{\u0275kind:t,\u0275providers:e}}function TM(t={}){return Rn(4,[{provide:dc,useFactory:()=>{let r=A(_l),i=A(tt),n=A(ra),o=A(Dr);return new zh(o,n,r,i,t)}}])}function Gh(){let t=A(vi);return e=>{let r=t.get(Bu);if(e!==r.components[0])return;let i=t.get(St),n=t.get(Kh);t.get(uc)===1&&i.initialNavigation(),t.get(qh,null,dl.Optional)?.setUpPreloading(),t.get(dc,null,dl.Optional)?.init(),i.resetRootComponentType(r.componentTypes[0]),n.closed||(n.next(),n.complete(),n.unsubscribe())}}var Kh=new Ge("",{factory:()=>new Te}),uc=new Ge("",{providedIn:"root",factory:()=>1});function Av(){return Rn(2,[{provide:uc,useValue:0},{provide:gl,multi:!0,deps:[vi],useFactory:e=>{let r=e.get(Hu,Promise.resolve());return()=>r.then(()=>new Promise(i=>{let n=e.get(St),o=e.get(Kh);Uh(n,()=>{i(!0)}),e.get(ra).afterPreactivation=()=>(i(!0),o.closed?ue(void 0):o),n.initialNavigation()}))}}])}function Mv(){return Rn(3,[{provide:gl,multi:!0,useFactory:()=>{let e=A(St);return()=>{e.setUpLocationChangeListener()}}},{provide:uc,useValue:2}])}var qh=new Ge("");function Ov(t){return Rn(0,[{provide:qh,useExisting:Fv},{provide:ta,useExisting:t}])}function IM(t){return Rn(5,[{provide:Tr,useValue:t}])}function Rv(){return Rn(8,[lh,{provide:ia,useExisting:lh}])}function Pv(t){let e=[{provide:Lh,useValue:vv},{provide:Hh,useValue:M({skipNextTransition:!!t?.skipInitialTransition},t)}];return Rn(9,e)}var hh=new Ge("ROUTER_FORROOT_GUARD"),Vv=[ro,{provide:Dr,useClass:_r},St,Io,{provide:Pi,useFactory:Wh,deps:[St]},lc,[]],Ir=(()=>{let e=class e{constructor(i){}static forRoot(i,n){return{ngModule:e,providers:[Vv,[],{provide:Do,multi:!0,useValue:i},{provide:hh,useFactory:Lv,deps:[[St,new Is,new Cu]]},{provide:Tr,useValue:n||{}},n?.useHash?jv():Bv(),Nv(),n?.preloadingStrategy?Ov(n.preloadingStrategy).\u0275providers:[],n?.initialNavigation?Hv(n):[],n?.bindToComponentInputs?Rv().\u0275providers:[],n?.enableViewTransitions?Pv().\u0275providers:[],$v()]}}static forChild(i){return{ngModule:e,providers:[{provide:Do,multi:!0,useValue:i}]}}};e.\u0275fac=function(n){return new(n||e)(ce(hh,8))},e.\u0275mod=z({type:e}),e.\u0275inj=U({});let t=e;return t})();function Nv(){return{provide:dc,useFactory:()=>{let t=A(_l),e=A(tt),r=A(Tr),i=A(ra),n=A(Dr);return r.scrollOffset&&t.setOffset(r.scrollOffset),new zh(n,i,t,e,r)}}}function jv(){return{provide:no,useClass:Uu}}function Bv(){return{provide:no,useClass:$u}}function Lv(t){return"guarded"}function Hv(t){return[t.initialNavigation==="disabled"?Mv().\u0275providers:[],t.initialNavigation==="enabledBlocking"?Av().\u0275providers:[]]}var ph=new Ge("");function $v(){return[{provide:ph,useFactory:Gh},{provide:vl,multi:!0,useExisting:ph}]}var Uv=["*"],hc=()=>({});function zv(t,e){t&1&&ne(0)}function Wv(t,e){if(t&1&&(b(0,"a",1),I(1,zv,1,0,"ng-container",3),_()),t&2){let r,i,n,o,s,a,c,l=p(),h=G(3);y("routerLink",l.url)("cHtmlAttr",(r=l.attributes)!==null&&r!==void 0?r:Ve(11,hc))("target",l.attributes==null?null:l.attributes.target)("queryParams",(i=l.linkProps==null?null:l.linkProps.queryParams)!==null&&i!==void 0?i:null)("fragment",l.linkProps==null?null:l.linkProps.fragment)("queryParamsHandling",(n=l.linkProps==null?null:l.linkProps.queryParamsHandling)!==null&&n!==void 0?n:null)("preserveFragment",(o=l.linkProps==null?null:l.linkProps.preserveFragment)!==null&&o!==void 0?o:!1)("skipLocationChange",(s=l.linkProps==null?null:l.linkProps.skipLocationChange)!==null&&s!==void 0?s:!1)("replaceUrl",(a=l.linkProps==null?null:l.linkProps.replaceUrl)!==null&&a!==void 0?a:!1)("state",(c=l.linkProps==null?null:l.linkProps.state)!==null&&c!==void 0?c:Ve(12,hc)),m(),y("ngTemplateOutlet",h)}}function Gv(t,e){t&1&&ne(0)}function Kv(t,e){if(t&1&&(b(0,"span",2),I(1,Gv,1,0,"ng-container",3),_()),t&2){let r,i=p(),n=G(3);y("cHtmlAttr",(r=i.attributes)!==null&&r!==void 0?r:Ve(2,hc)),m(),y("ngTemplateOutlet",n)}}function qv(t,e){t&1&&O(0)}var ko=(()=>{let e=class e{get ariaCurrent(){return this.active?"page":null}get hostClasses(){return{"breadcrumb-item":!0,active:this.active}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=x({type:e,selectors:[["c-breadcrumb-item"]],hostVars:3,hostBindings:function(n,o){n&2&&(N("aria-current",o.ariaCurrent),E(o.hostClasses))},inputs:{active:[2,"active","active",S],url:"url",attributes:"attributes",linkProps:"linkProps"},standalone:!0,features:[$,w],ngContentSelectors:Uv,decls:4,vars:1,consts:[["defaultBreadcrumbItemContentTemplate",""],[3,"routerLink","cHtmlAttr","target","queryParams","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state"],[3,"cHtmlAttr"],[4,"ngTemplateOutlet"]],template:function(n,o){n&1&&(R(),I(0,Wv,2,13,"a",1)(1,Kv,2,3,"span",2)(2,qv,1,0,"ng-template",null,0,de)),n&2&&P(o.active?1:0)},dependencies:[Ir,hn,$e,At],styles:["[_nghost-%COMP%]{display:list-item;text-align:-webkit-match-parent;text-align:match-parent}"]});let t=e;return t})();var Qv=["*"],pc=(()=>{let e=class e{constructor(){this.ariaLabel="breadcrumb",this.role="navigation"}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=x({type:e,selectors:[["c-breadcrumb"]],hostAttrs:[1,"breadcrumb"],hostVars:2,hostBindings:function(n,o){n&2&&N("aria-label",o.ariaLabel)("role",o.role)},inputs:{ariaLabel:"ariaLabel",role:"role"},standalone:!0,features:[w],ngContentSelectors:Qv,decls:1,vars:0,template:function(n,o){n&1&&(R(),O(0))},encapsulation:2});let t=e;return t})();var Fo=(()=>{var e;let r=class r{constructor(n,o){T(this,e);this.router=n,this.route=o,this.outlet="primary",D(this,e,new ye(new Array)),this.breadcrumbs$=u(this,e).asObservable(),this.router.events.pipe(Z(),ke(s=>s instanceof Dt)).subscribe(s=>{let a=[],c=this.route.root,l="";do{let h=c.children;c=null,h.forEach(d=>{if(d.outlet===this.outlet){let f=d.snapshot;l+="/"+f.url.map(g=>g.path).join("/"),a.push({label:f.data.title??f.title??"",url:l,queryParams:f.queryParams}),c=d}})}while(c);return u(this,e).next(Object.assign([],a)),a})}};e=new WeakMap,r.\u0275fac=function(o){return new(o||r)(ce(St),ce(Pi))},r.\u0275prov=K({token:r,factory:r.\u0275fac,providedIn:"root"});let t=r;return t})();function Zv(t,e){if(t&1&&(b(0,"c-breadcrumb-item",1),W(1),_()),t&2){let r=p(),i=r.$implicit,n=r.$index,o=r.$count;y("active",n===o-1)("url",i==null?null:i.url)("attributes",i==null?null:i.attributes)("linkProps",i==null?null:i.linkProps),m(),be(" ",i==null?null:i.label," ")}}function Xv(t,e){if(t&1&&I(0,Zv,2,5,"c-breadcrumb-item",1),t&2){let r=e.$implicit,i=e.$index,n=e.$count;P(r!=null&&r.label&&((r==null||r.url==null?null:r.url.slice(-1))==="/"||i===n-1)?0:-1)}}var mc=(()=>{let e=class e{constructor(i){this.service=i}ngOnInit(){this.breadcrumbs=this.service.breadcrumbs$}ngOnChanges(i){i.items&&this.setup()}setup(){this.items&&this.items.length>0&&(this.breadcrumbs=new gi(i=>{this.items&&i.next(this.items)}))}ngOnDestroy(){this.breadcrumbs=void 0}};e.\u0275fac=function(n){return new(n||e)(v(Fo))},e.\u0275cmp=x({type:e,selectors:[["c-breadcrumb-router"],["","cBreadcrumbRouter",""]],inputs:{items:"items"},standalone:!0,features:[ve,w],decls:4,vars:2,consts:[[1,"m-0"],[3,"active","url","attributes","linkProps"]],template:function(n,o){n&1&&(b(0,"c-breadcrumb",0),pe(1,Xv,1,1,null,null,xe),_e(3,"async"),_()),n&2&&(m(),me(Ie(3,0,o.breadcrumbs)))},dependencies:[pc,ko,Kt],encapsulation:2});let t=e;return t})();var Jv=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=z({type:e}),e.\u0275inj=U({providers:[Fo],imports:[ko,mc]});let t=e;return t})();var eC=["*"],tC=(()=>{let e=class e{constructor(){this.size=Q(),this.vertical=Q(!1,{transform:S}),this.role=Q("group"),this.hostClasses=re(()=>({"btn-group":!this.vertical(),"btn-group-vertical":this.vertical(),[`btn-group-${this.size()}`]:!!this.size()}))}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=x({type:e,selectors:[["c-button-group"]],hostVars:3,hostBindings:function(n,o){n&2&&(N("role",o.role()),E(o.hostClasses()))},inputs:{size:[1,"size"],vertical:[1,"vertical"],role:[1,"role"]},standalone:!0,features:[w],ngContentSelectors:eC,decls:1,vars:0,template:function(n,o){n&1&&(R(),O(0))},encapsulation:2});let t=e;return t})();var iC=["*"],nC=(()=>{let e=class e{constructor(){this.role=Q("toolbar")}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=x({type:e,selectors:[["c-button-toolbar"]],hostAttrs:[1,"btn-toolbar"],hostVars:1,hostBindings:function(n,o){n&2&&N("role",o.role())},inputs:{role:[1,"role"]},standalone:!0,features:[w],ngContentSelectors:iC,decls:1,vars:0,template:function(n,o){n&1&&(R(),O(0))},encapsulation:2});let t=e;return t})();var rC=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=z({type:e}),e.\u0275inj=U({});let t=e;return t})();function Zh(t){return Bt(t,"dateTransform")}var oC=t=>{let[e,r]=t.split(/w/i),i=new Date(Number(e),0,4);return i.setDate(i.getDate()-(i.getDay()||7)+1+(Number(r)-1)*7),i},Mo=(t,e)=>t instanceof Date?t:e==="week"?oC(t):new Date(Date.parse(t));var fc=(t,e)=>{let r=Math.ceil(t.length/e);return Array.from({length:e}).fill("").map((i,n)=>t.slice(n*r,(n+1)*r))},Xh=(t,e,r)=>e!==0&&r==="days"?new Date(Date.UTC(t.getFullYear(),t.getMonth()+e,1)):e!==0&&r==="months"?new Date(Date.UTC(t.getFullYear()+e,t.getMonth(),1)):e!==0&&r==="years"?new Date(Date.UTC(t.getFullYear()+12*e,t.getMonth(),1)):t;var Jh=(t,e,r)=>{let i=new Date(2013,11,31,17,19,22),n=r?i.toLocaleString(e):i.toLocaleDateString(e);n=n.replace("2013","(?[0-9]{2,4})").replace("12","(?[0-9]{1,2})").replace("31","(?[0-9]{1,2})"),r&&(n=n.replace("5","(?[0-9]{1,2})").replace("17","(?[0-9]{1,2})").replace("19","(?[0-9]{1,2})").replace("22","(?[0-9]{1,2})").replace("PM","(?[A-Z]{2})"));let o=RegExp(`${n}`),s=t.match(o);return s===null?void 0:s.groups&&(r?new Date(Number(s.groups.year),Number(s.groups.month)-1,Number(s.groups.day),s.groups.ampm&&s.groups.ampm==="PM"?Number(s.groups.hour)+12:Number(s.groups.hour),Number(s.groups.minute),Number(s.groups.second)):new Date(Number(s.groups.year),Number(s.groups.month)-1,Number(s.groups.day)))};var ep=(t,e)=>{let r=[],i=new Date(e);i.setDate(1);for(let n=0;n<12;n++)i.setMonth(n),r.push({year:e,month:i.toLocaleDateString(t,{month:"short"})});return r},tp=t=>{let e=[];for(let r=t-6;r{let i=[],n=new Date(t,e),o=n.getFullYear(),s=n.getMonth(),c=6-(6-new Date(o,s,1).getDay())-r;r&&(c=c<0?7+c:c);for(let l=c*-1;l<0;l++)i.push({date:new Date(o,s,l+1),month:"previous"});return i},aC=(t,e)=>{let r=[],i=new Date(t,e+1,0).getDate();for(let n=1;n<=i;n++)r.push({date:new Date(t,e,n),month:"current"});return r},lC=(t,e,r,i)=>{let n=[],o=42-(r.length+i.length);for(let s=1;s<=o;s++)n.push({date:new Date(t,e+1,s),month:"next"});return n};var cC=t=>{let e=new Date(t.getFullYear(),0,4);return 1+Math.round(((t.getTime()-e.getTime())/864e5-3+(e.getDay()+6)%7)/7)},ip=(t,e,r)=>{let i=sC(t,e,r),n=aC(t,e),o=lC(t,e,i,n),s=[...i,...n,...o],a=[];return s.forEach((c,l)=>{(l%7===0||a.length===0)&&a.push({weekNumber:-1,days:[]}),(l+1)%7===0&&(a[a.length-1].weekNumber=cC(c.date)),a[a.length-1].days.push(c)}),[...a]},Xt=(t,e,r,i)=>{if(!t||!e&&!r&&(!i||!i.length))return!1;if(e&&tr)return!0;let n=!1;if(i)for(let o of i){if(Array.isArray(o)&&_i(t,o[0],o[1])){n=!0;break}if(o instanceof Date&&Ao(t,o)){n=!0;break}}return n},_i=(t,e,r)=>t&&e&&r&&e<=t&&t<=r,np=(t,e,r)=>t&&e&&r&&e.getFullYear()<=t.getFullYear()&&t.getFullYear()<=r.getFullYear(),rp=(t,e,r)=>t&&e&&r?e<=t&&t<=r:t&&e?e<=t:t&&r?t<=r:!0,aa=(t,e,r)=>t&&(e&&Ao(e,t)||r&&Ao(r,t)),op=(t,e,r)=>t&&(e&&Qh(e,t)||r&&Qh(r,t)),sp=(t,e,r)=>t&&(e&&Yh(e,t)||r&&Yh(r,t)),ap=(t,e,r)=>t&&e&&r&&Ao(r,t)&&e{let e=new Date(t.getTime()),r=e.getMonth();return e.setDate(e.getDate()+1),e.getMonth()!==r},Ao=(t,e)=>t.getDate()==e.getDate()&&t.getMonth()==e.getMonth()&&t.getFullYear()==e.getFullYear(),Qh=(t,e)=>t.getMonth()==e.getMonth()&&t.getFullYear()==e.getFullYear(),Yh=(t,e)=>t.getFullYear()==e.getFullYear(),cp=(t,e,r)=>t&&e&&r&&Ao(e,t)&&e{let e=new Date;return t.getDate()==e.getDate()&&t.getMonth()==e.getMonth()&&t.getFullYear()==e.getFullYear()},up=(t,e)=>{let r=new Date;return e==r.getMonth()&&t.getFullYear()==r.getFullYear()},hp=t=>t==new Date().getFullYear(),Vi=t=>{if(t instanceof Date||typeof t=="number"||typeof t=="string"){let e=new Date(t);return!isNaN(e.getTime())}return!1},Bt=(t,e="date")=>{let r;try{if(!Vi(t))throw t;r=new Date(t)}catch(i){console.warn(`Invalid ${e}`,i),r=new Date,r.setHours(0,0,0,0)}return r},Oo=(t,e,r)=>{if(!r||!r.length)return!1;if(t&&e){let i=new Date(t),n=!1;for(;i{let e=class e{constructor(i){this.keyValueDiffers=i,this.calendarStateObject={calendarDate:new Date,hoverDate:null,startDate:null,endDate:null,maxDate:null,minDate:null,disabledDates:[],range:!1,view:"days",locale:"default",dateFilter:void 0,weekdayFormat:"short",dayFormat:"numeric",navYearFirst:!1,showAdjacentDays:!0,selectAdjacentDays:!1,selectionType:"day",showWeekNumber:!1,weekNumbersLabel:void 0},this.calendarState=new ye(this.calendarStateObject),this.calendarState$=this.calendarState.asObservable(),this.differ=this.keyValueDiffers.find(this.calendarStateObject).create()}update(i){let n=Object.keys(i);for(let o of n){let s=this.calendarStateObject[o];s!==i[o]&&(Vi(i[o])&&s&&s.getTime()===i[o]?.getTime()||(this.calendarStateObject[o]=i[o]))}if(this.differ){let o=this.differ.diff(this.calendarStateObject);if(o){let s=M({},this.calendarStateObject);o.forEachChangedItem(a=>{s[a.key]=a.currentValue}),this.calendarState.next(s)}}}};e.\u0275fac=function(n){return new(n||e)(ce(js))},e.\u0275prov=K({token:e,factory:e.\u0275fac});let t=e;return t})();var dC=()=>({display:"flex",justifyContent:"center"}),pp=()=>({}),uC=()=>({order:"-1"}),hC=()=>({year:"numeric"}),pC=()=>({month:"long"});function mC(t,e){if(t&1){let r=X();b(0,"button",5),V("click",function(){j(r);let n=p(2);return B(n.handleNavigationClick("prev"))})("keyup",function(n){j(r);let o=p(2);return B(o.handleNavigationKeyUp(n,"prev"))}),ie(1,"span",7),_()}}function fC(t,e){if(t&1){let r=X();b(0,"div",0)(1,"button",5),V("click",function(){j(r);let n=p();return B(n.handleNavigationClick("prev",!0))})("keyup",function(n){j(r);let o=p();return B(o.handleNavigationKeyUp(n,"prev",!0))}),ie(2,"span",6),_(),I(3,mC,2,0,"button",2),_()}if(t&2){let r=p();m(3),P(r.view==="days"?3:-1)}}function gC(t,e){if(t&1){let r=X();b(0,"button",8),V("click",function(){j(r);let n=p();return B(n.setView("months"))}),W(1),_()}if(t&2){let r=p();m(),be(" ",r.date.toLocaleDateString(r.locale,Ve(1,pC))," ")}}function vC(t,e){if(t&1){let r=X();b(0,"button",5),V("click",function(){j(r);let n=p(2);return B(n.handleNavigationClick("next"))})("keyup",function(n){j(r);let o=p(2);return B(o.handleNavigationKeyUp(n,"next"))}),ie(1,"span",10),_()}}function CC(t,e){if(t&1){let r=X();b(0,"div",4),I(1,vC,2,0,"button",2),b(2,"button",5),V("click",function(){j(r);let n=p();return B(n.handleNavigationClick("next",!0))})("keyup",function(n){j(r);let o=p();return B(o.handleNavigationKeyUp(n,"next",!0))}),ie(3,"span",9),_()()}if(t&2){let r=p();m(),P(r.view==="days"?1:-1)}}var vc=(()=>{var e;let r=class r{constructor(n){T(this,e);this.calendarService=n,D(this,e,A(he)),this.addMonths=0,this._calendarDate=new Date,this.navigation=!0,this.navYearFirst=!1,this.locale="default",this.view="days",this.selectionType="day",this.navigationClick=new q,this.calendarStateSubscribe()}set calendarDate(n){this._calendarDate=n}get calendarDate(){return this._calendarDate}get date(){return new Date(this.calendarDate.getFullYear(),this.calendarDate.getMonth()+this.addMonths)}get hostClasses(){return{"calendar-nav":!0}}calendarStateSubscribe(){this.calendarService.calendarState$.pipe(Z(u(this,e))).subscribe(n=>{let o=Object.keys(n);for(let s of o)s in this&&(this[s]=n[s])})}setView(n){this.view=n,this.calendarService.update({view:n})}handleNavigationClick(n,o=!1){this.navigationClick.emit({direction:n,years:o})}handleNavigationKeyUp(n,o,s){["Space"].includes(n.code)&&(n.preventDefault(),this.handleNavigationClick(o,s))}};e=new WeakMap,r.\u0275fac=function(o){return new(o||r)(v(oi))},r.\u0275cmp=x({type:r,selectors:[["c-calendar-navigation"]],hostVars:2,hostBindings:function(o,s){o&2&&E(s.hostClasses)},inputs:{addMonths:"addMonths",calendarDate:"calendarDate",navigation:"navigation",navYearFirst:"navYearFirst"},outputs:{navigationClick:"navigationClick"},standalone:!0,features:[w],decls:6,vars:11,consts:[[1,"calendar-nav-prev"],[1,"calendar-nav-date",3,"ngStyle"],["cButton","","color","transparent","size","sm","tabindex","0"],["cButton","","color","transparent","size","sm","tabindex","0",3,"click","ngStyle"],[1,"calendar-nav-next"],["cButton","","color","transparent","size","sm","tabindex","0",3,"click","keyup"],[1,"calendar-nav-icon","calendar-nav-icon-double-prev"],[1,"calendar-nav-icon","calendar-nav-icon-prev"],["cButton","","color","transparent","size","sm","tabindex","0",3,"click"],[1,"calendar-nav-icon","calendar-nav-icon-double-next"],[1,"calendar-nav-icon","calendar-nav-icon-next"]],template:function(o,s){o&1&&(I(0,fC,4,1,"div",0),b(1,"div",1),I(2,gC,2,2,"button",2),b(3,"button",3),V("click",function(){return s.setView("years")}),W(4),_()(),I(5,CC,4,1,"div",4)),o&2&&(P(s.navigation?0:-1),m(),y("ngStyle",s.navYearFirst?Ve(6,dC):Ve(7,pp)),m(),P(s.view==="days"?2:-1),m(),y("ngStyle",s.navYearFirst?Ve(8,uC):Ve(9,pp)),m(),be(" ",s.date.toLocaleDateString(s.locale,Ve(10,hC))," "),m(),P(s.navigation?5:-1))},dependencies:[Qt,Rt]});let t=r;return t})();var mp=(()=>{let e=class e{transform(i,n="short",o="default"){return typeof n=="function"?n(i):typeof n=="string"?i.toLocaleDateString(o,{weekday:n}):i.toLocaleDateString(o,{weekday:"long"}).slice(0,n)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275pipe=Qe({name:"calendarWeekday",type:e,pure:!0,standalone:!0});let t=e;return t})();var fp=(()=>{let e=class e{transform(i,n){return{"calendar-cell":!0,year:!0,today:hp(i)}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275pipe=Qe({name:"calendarClassYear",type:e,pure:!0,standalone:!0});let t=e;return t})();var gp=(()=>{let e=class e{transform(i,n){let o=new Date(new Date(i).getFullYear(),n,1);return{"calendar-cell":!0,month:!0,today:up(o,n)}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275pipe=Qe({name:"calendarClassMonth",type:e,pure:!0,standalone:!0});let t=e;return t})();var vp=(()=>{let e=class e{transform(i,n="numeric",o="default"){return typeof n=="function"?n(i):i.toLocaleDateString(o,{day:n})}};e.\u0275fac=function(n){return new(n||e)},e.\u0275pipe=Qe({name:"calendarDay",type:e,pure:!0,standalone:!0});let t=e;return t})();var bc;try{bc=typeof Intl<"u"&&Intl.v8BreakIterator}catch{bc=!1}var Lt=(()=>{let e=class e{constructor(i){this._platformId=i,this.isBrowser=this._platformId?hr(this._platformId):typeof document=="object"&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!!(window.chrome||bc)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}};e.\u0275fac=function(n){return new(n||e)(ce(rn))},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Ro;function bC(){if(Ro==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Ro=!0}))}finally{Ro=Ro||!1}return Ro}function _c(t){return bC()?t:!!t.capture}var yi=function(t){return t[t.NORMAL=0]="NORMAL",t[t.NEGATED=1]="NEGATED",t[t.INVERTED=2]="INVERTED",t}(yi||{}),la,Pn;function Cp(){if(Pn==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return Pn=!1,Pn;if("scrollBehavior"in document.documentElement.style)Pn=!0;else{let t=Element.prototype.scrollTo;t?Pn=!/\{\s*\[native code\]\s*\}/.test(t.toString()):Pn=!1}}return Pn}function Er(){if(typeof document!="object"||!document)return yi.NORMAL;if(la==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 r=document.createElement("div"),i=r.style;i.width="2px",i.height="1px",t.appendChild(r),document.body.appendChild(t),la=yi.NORMAL,t.scrollLeft===0&&(t.scrollLeft=1,la=t.scrollLeft===0?yi.NEGATED:yi.INVERTED),t.remove()}return la}var Cc;function _C(){if(Cc==null){let t=typeof document<"u"?document.head:null;Cc=!!(t&&(t.createShadowRoot||t.attachShadow))}return Cc}function bp(t){if(_C()){let e=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function _p(){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 kr(t){return t.composedPath?t.composedPath()[0]:t.target}function yp(t,...e){return e.length?e.some(r=>t[r]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}function xp(t){return t!=null&&`${t}`!="false"}function Vn(t,e=0){return yC(t)?Number(t):arguments.length===2?e:0}function yC(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function xc(t){return Array.isArray(t)?t:[t]}function Fr(t){return t instanceof H?t.nativeElement:t}var xC=(()=>{let e=class e{create(i){return typeof MutationObserver>"u"?null:new MutationObserver(i)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var wp=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=z({type:e}),e.\u0275inj=U({providers:[xC]});let t=e;return t})();var Dp=new Set,Nn,wC=(()=>{let e=class e{constructor(i,n){this._platform=i,this._nonce=n,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):SC}matchMedia(i){return(this._platform.WEBKIT||this._platform.BLINK)&&DC(i,this._nonce),this._matchMedia(i)}};e.\u0275fac=function(n){return new(n||e)(ce(Lt),ce(wu,8))},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function DC(t,e){if(!Dp.has(t))try{Nn||(Nn=document.createElement("style"),e&&Nn.setAttribute("nonce",e),Nn.setAttribute("type","text/css"),document.head.appendChild(Nn)),Nn.sheet&&(Nn.sheet.insertRule(`@media ${t} {body{ }}`,0),Dp.add(t))}catch(r){console.error(r)}}function SC(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var si=(()=>{let e=class e{constructor(i,n){this._mediaMatcher=i,this._zone=n,this._queries=new Map,this._destroySubject=new Te}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(i){return Sp(xc(i)).some(o=>this._registerQuery(o).mql.matches)}observe(i){let o=Sp(xc(i)).map(a=>this._registerQuery(a).observable),s=sr(o);return s=xs(s.pipe(jt(1)),s.pipe(cr(1),kt(0))),s.pipe(Ae(a=>{let c={matches:!1,breakpoints:{}};return a.forEach(({matches:l,query:h})=>{c.matches=c.matches||l,c.breakpoints[h]=l}),c}))}_registerQuery(i){if(this._queries.has(i))return this._queries.get(i);let n=this._mediaMatcher.matchMedia(i),s={observable:new gi(a=>{let c=l=>this._zone.run(()=>a.next(l));return n.addListener(c),()=>{n.removeListener(c)}}).pipe(Tn(n),Ae(({matches:a})=>({query:i,matches:a})),Wt(this._destroySubject)),mql:n};return this._queries.set(i,s),s}};e.\u0275fac=function(n){return new(n||e)(ce(wC),ce(tt))},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Sp(t){return t.map(e=>e.split(",")).reduce((e,r)=>e.concat(r)).map(e=>e.trim())}var zC=200,Dc=class{constructor(e,r){this._letterKeyStream=new Te,this._items=[],this._selectedItemIndex=-1,this._pressedLetters=[],this._selectedItem=new Te,this.selectedItem=this._selectedItem;let i=typeof r?.debounceInterval=="number"?r.debounceInterval:zC;r?.skipPredicate&&(this._skipPredicateFn=r.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 r=e.keyCode;e.key&&e.key.length===1?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(r>=65&&r<=90||r>=48&&r<=57)&&this._letterKeyStream.next(String.fromCharCode(r))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(e){this._letterKeyStream.pipe(le(r=>this._pressedLetters.push(r)),kt(e),ke(()=>this._pressedLetters.length>0),Ae(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(r=>{for(let i=1;ii.disabled,this.tabOut=new Te,this.change=new Te,e instanceof ul?this._itemChangesSubscription=e.changes.subscribe(i=>this._itemsChanged(i.toArray())):hl(e)&&(this._effectRef=He(()=>this._itemsChanged(e()),{injector:r}))}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 r=this._getItemsArray();return this._typeahead=new Dc(r,{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,r=10){return this._pageUpAndDown={enabled:e,delta:r},this}setActiveItem(e){let r=this._activeItem;this.updateActiveItem(e),this._activeItem!==r&&this.change.next(this._activeItemIndex)}onKeydown(e){let r=e.keyCode,n=["altKey","ctrlKey","metaKey","shiftKey"].every(o=>!e[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(r){case 9:this.tabOut.next();return;case 40:if(this._vertical&&n){this.setNextItemActive();break}else return;case 38:if(this._vertical&&n){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&n){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&n){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&n){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&n){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&n){let o=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>0?o:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&n){let o=this._activeItemIndex+this._pageUpAndDown.delta,s=this._getItemsArray().length;this._setActiveItemByIndex(o-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r,this._typeahead?.setCurrentSelectedItemIndex(r))}}};var Ni=class extends Sc{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(e){return this._origin=e,this}setActiveItem(e){super.setActiveItem(e),this.activeItem&&this.activeItem.focus(this._origin)}};var WC=(()=>{let e=class e{constructor(i){this._platform=i}isDisabled(i){return i.hasAttribute("disabled")}isVisible(i){return KC(i)&&getComputedStyle(i).visibility==="visible"}isTabbable(i){if(!this._platform.isBrowser)return!1;let n=GC(tb(i));if(n&&(Tp(n)===-1||!this.isVisible(n)))return!1;let o=i.nodeName.toLowerCase(),s=Tp(i);return i.hasAttribute("contenteditable")?s!==-1:o==="iframe"||o==="object"||this._platform.WEBKIT&&this._platform.IOS&&!JC(i)?!1:o==="audio"?i.hasAttribute("controls")?s!==-1:!1:o==="video"?s===-1?!1:s!==null?!0:this._platform.FIREFOX||i.hasAttribute("controls"):i.tabIndex>=0}isFocusable(i,n){return eb(i)&&!this.isDisabled(i)&&(n?.ignoreVisibility||this.isVisible(i))}};e.\u0275fac=function(n){return new(n||e)(ce(Lt))},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function GC(t){try{return t.frameElement}catch{return null}}function KC(t){return!!(t.offsetWidth||t.offsetHeight||typeof t.getClientRects=="function"&&t.getClientRects().length)}function qC(t){let e=t.nodeName.toLowerCase();return e==="input"||e==="select"||e==="button"||e==="textarea"}function QC(t){return ZC(t)&&t.type=="hidden"}function YC(t){return XC(t)&&t.hasAttribute("href")}function ZC(t){return t.nodeName.toLowerCase()=="input"}function XC(t){return t.nodeName.toLowerCase()=="a"}function kp(t){if(!t.hasAttribute("tabindex")||t.tabIndex===void 0)return!1;let e=t.getAttribute("tabindex");return!!(e&&!isNaN(parseInt(e,10)))}function Tp(t){if(!kp(t))return null;let e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}function JC(t){let e=t.nodeName.toLowerCase(),r=e==="input"&&t.type;return r==="text"||r==="password"||e==="select"||e==="textarea"}function eb(t){return QC(t)?!1:qC(t)||YC(t)||t.hasAttribute("contenteditable")||kp(t)}function tb(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}var Tc=class{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))}constructor(e,r,i,n,o=!1,s){this._element=e,this._checker=r,this._ngZone=i,this._document=n,this._injector=s,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,o||this.attachAnchors()}destroy(){let e=this._startAnchor,r=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.remove()),r&&(r.removeEventListener("focus",this.endAnchorListener),r.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(r=>{this._executeOnStable(()=>r(this.focusInitialElement(e)))})}focusFirstTabbableElementWhenReady(e){return new Promise(r=>{this._executeOnStable(()=>r(this.focusFirstTabbableElement(e)))})}focusLastTabbableElementWhenReady(e){return new Promise(r=>{this._executeOnStable(()=>r(this.focusLastTabbableElement(e)))})}_getRegionBoundary(e){let r=this._element.querySelectorAll(`[cdk-focus-region-${e}], [cdkFocusRegion${e}], [cdk-focus-${e}]`);return e=="start"?r.length?r[0]:this._getFirstTabbableElement(this._element):r.length?r[r.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(e){let r=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(r){if(!this._checker.isFocusable(r)){let i=this._getFirstTabbableElement(r);return i?.focus(e),!!i}return r.focus(e),!0}return this.focusFirstTabbableElement(e)}focusFirstTabbableElement(e){let r=this._getRegionBoundary("start");return r&&r.focus(e),!!r}focusLastTabbableElement(e){let r=this._getRegionBoundary("end");return r&&r.focus(e),!!r}hasAttached(){return this._hasAttached}_getFirstTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let r=e.children;for(let i=0;i=0;i--){let n=r[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(r[i]):null;if(n)return n}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,r){e?r.setAttribute("tabindex","0"):r.removeAttribute("tabindex")}toggleAnchors(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}_executeOnStable(e){this._injector?Ai(e,{injector:this._injector}):setTimeout(e)}},ib=(()=>{let e=class e{constructor(i,n,o){this._checker=i,this._ngZone=n,this._injector=A(vi),this._document=o}create(i,n=!1){return new Tc(i,this._checker,this._ngZone,this._document,n,this._injector)}};e.\u0275fac=function(n){return new(n||e)(ce(WC),ce(tt),ce(Be))},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ua=(()=>{let e=class e{get enabled(){return this.focusTrap?.enabled||!1}set enabled(i){this.focusTrap&&(this.focusTrap.enabled=i)}constructor(i,n,o){this._elementRef=i,this._focusTrapFactory=n,this._previouslyFocusedElement=null,A(Lt).isBrowser&&(this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0))}ngOnDestroy(){this.focusTrap?.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap?.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap&&!this.focusTrap.hasAttached()&&this.focusTrap.attachAnchors()}ngOnChanges(i){let n=i.autoCapture;n&&!n.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=_p(),this.focusTrap?.focusInitialElementWhenReady()}};e.\u0275fac=function(n){return new(n||e)(v(H),v(ib),v(Be))},e.\u0275dir=k({type:e,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",S],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",S]},exportAs:["cdkTrapFocus"],standalone:!0,features:[$,ve]});let t=e;return t})();function nb(t){return t.buttons===0||t.detail===0}function rb(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 ob=new Ge("cdk-input-modality-detector-options"),sb={ignoreKeys:[18,17,224,91,16]},Fp=650,Ar=_c({passive:!0,capture:!0}),ab=(()=>{let e=class e{get mostRecentModality(){return this._modality.value}constructor(i,n,o,s){this._platform=i,this._mostRecentTarget=null,this._modality=new ye(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(c=>c===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=kr(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs{if(rb(a)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=kr(a)},this._options=M(M({},sb),s),this.modalityDetected=this._modality.pipe(cr(1)),this.modalityChanged=this.modalityDetected.pipe(Ft()),i.isBrowser&&n.runOutsideAngular(()=>{o.addEventListener("keydown",this._onKeydown,Ar),o.addEventListener("mousedown",this._onMousedown,Ar),o.addEventListener("touchstart",this._onTouchstart,Ar)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Ar),document.removeEventListener("mousedown",this._onMousedown,Ar),document.removeEventListener("touchstart",this._onTouchstart,Ar))}};e.\u0275fac=function(n){return new(n||e)(ce(Lt),ce(tt),ce(Be),ce(ob,8))},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var da=function(t){return t[t.IMMEDIATE=0]="IMMEDIATE",t[t.EVENTUAL=1]="EVENTUAL",t}(da||{}),lb=new Ge("cdk-focus-monitor-default-options"),ca=_c({passive:!0,capture:!0}),xi=(()=>{let e=class e{constructor(i,n,o,s,a){this._ngZone=i,this._platform=n,this._inputModalityDetector=o,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new Te,this._rootNodeFocusAndBlurListener=c=>{let l=kr(c);for(let h=l;h;h=h.parentElement)c.type==="focus"?this._onFocus(c,h):this._onBlur(c,h)},this._document=s,this._detectionMode=a?.detectionMode||da.IMMEDIATE}monitor(i,n=!1){let o=Fr(i);if(!this._platform.isBrowser||o.nodeType!==1)return ue();let s=bp(o)||this._getDocument(),a=this._elementInfo.get(o);if(a)return n&&(a.checkChildren=!0),a.subject;let c={checkChildren:n,subject:new Te,rootNode:s};return this._elementInfo.set(o,c),this._registerGlobalListeners(c),c.subject}stopMonitoring(i){let n=Fr(i),o=this._elementInfo.get(n);o&&(o.subject.complete(),this._setClasses(n),this._elementInfo.delete(n),this._removeGlobalListeners(o))}focusVia(i,n,o){let s=Fr(i),a=this._getDocument().activeElement;s===a?this._getClosestElementsInfo(s).forEach(([c,l])=>this._originChanged(c,n,l)):(this._setOrigin(n),typeof s.focus=="function"&&s.focus(o))}ngOnDestroy(){this._elementInfo.forEach((i,n)=>this.stopMonitoring(n))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(i){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(i)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:i&&this._isLastInteractionFromInputLabel(i)?"mouse":"program"}_shouldBeAttributedToTouch(i){return this._detectionMode===da.EVENTUAL||!!i?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(i,n){i.classList.toggle("cdk-focused",!!n),i.classList.toggle("cdk-touch-focused",n==="touch"),i.classList.toggle("cdk-keyboard-focused",n==="keyboard"),i.classList.toggle("cdk-mouse-focused",n==="mouse"),i.classList.toggle("cdk-program-focused",n==="program")}_setOrigin(i,n=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=i,this._originFromTouchInteraction=i==="touch"&&n,this._detectionMode===da.IMMEDIATE){clearTimeout(this._originTimeoutId);let o=this._originFromTouchInteraction?Fp:1;this._originTimeoutId=setTimeout(()=>this._origin=null,o)}})}_onFocus(i,n){let o=this._elementInfo.get(n),s=kr(i);!o||!o.checkChildren&&n!==s||this._originChanged(n,this._getFocusOrigin(s),o)}_onBlur(i,n){let o=this._elementInfo.get(n);!o||o.checkChildren&&i.relatedTarget instanceof Node&&n.contains(i.relatedTarget)||(this._setClasses(n),this._emitOrigin(o,null))}_emitOrigin(i,n){i.subject.observers.length&&this._ngZone.run(()=>i.subject.next(n))}_registerGlobalListeners(i){if(!this._platform.isBrowser)return;let n=i.rootNode,o=this._rootNodeFocusListenerCount.get(n)||0;o||this._ngZone.runOutsideAngular(()=>{n.addEventListener("focus",this._rootNodeFocusAndBlurListener,ca),n.addEventListener("blur",this._rootNodeFocusAndBlurListener,ca)}),this._rootNodeFocusListenerCount.set(n,o+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Wt(this._stopInputModalityDetector)).subscribe(s=>{this._setOrigin(s,!0)}))}_removeGlobalListeners(i){let n=i.rootNode;if(this._rootNodeFocusListenerCount.has(n)){let o=this._rootNodeFocusListenerCount.get(n);o>1?this._rootNodeFocusListenerCount.set(n,o-1):(n.removeEventListener("focus",this._rootNodeFocusAndBlurListener,ca),n.removeEventListener("blur",this._rootNodeFocusAndBlurListener,ca),this._rootNodeFocusListenerCount.delete(n))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(i,n,o){this._setClasses(i,n),this._emitOrigin(o,n),this._lastFocusOrigin=n}_getClosestElementsInfo(i){let n=[];return this._elementInfo.forEach((o,s)=>{(s===i||o.checkChildren&&s.contains(i))&&n.push([s,o])}),n}_isLastInteractionFromInputLabel(i){let{_mostRecentTarget:n,mostRecentModality:o}=this._inputModalityDetector;if(o!=="mouse"||!n||n===i||i.nodeName!=="INPUT"&&i.nodeName!=="TEXTAREA"||i.disabled)return!1;let s=i.labels;if(s){for(let a=0;a{let e=class e{constructor(i,n){this._elementRef=i,this._focusMonitor=n,this._focusOrigin=null,this.cdkFocusChange=new q}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){let i=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(i,i.nodeType===1&&i.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(n=>{this._focusOrigin=n,this.cdkFocusChange.emit(n)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}};e.\u0275fac=function(n){return new(n||e)(v(H),v(xi))},e.\u0275dir=k({type:e,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"],standalone:!0});let t=e;return t})(),jn=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}(jn||{}),Ip="cdk-high-contrast-black-on-white",Ep="cdk-high-contrast-white-on-black",wc="cdk-high-contrast-active",cb=(()=>{let e=class e{constructor(i,n){this._platform=i,this._document=n,this._breakpointSubscription=A(si).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return jn.NONE;let i=this._document.createElement("div");i.style.backgroundColor="rgb(1,2,3)",i.style.position="absolute",this._document.body.appendChild(i);let n=this._document.defaultView||window,o=n&&n.getComputedStyle?n.getComputedStyle(i):null,s=(o&&o.backgroundColor||"").replace(/ /g,"");switch(i.remove(),s){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return jn.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return jn.BLACK_ON_WHITE}return jn.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let i=this._document.body.classList;i.remove(wc,Ip,Ep),this._hasCheckedHighContrastMode=!0;let n=this.getHighContrastMode();n===jn.BLACK_ON_WHITE?i.add(wc,Ip):n===jn.WHITE_ON_BLACK&&i.add(wc,Ep)}}};e.\u0275fac=function(n){return new(n||e)(ce(Lt),ce(Be))},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Mr=(()=>{let e=class e{constructor(i){i._applyBodyHighContrastModeCssClasses()}};e.\u0275fac=function(n){return new(n||e)(ce(cb))},e.\u0275mod=z({type:e}),e.\u0275inj=U({imports:[wp]});let t=e;return t})();var Ic=(()=>{var e,r,i,n;let o=class o{constructor(){T(this,e);T(this,r);T(this,i);T(this,n);D(this,e,A(he)),D(this,r,A(oi)),this.elementRef=A(H),this.focusMonitor=A(xi),D(this,i,te(M({},u(this,r).calendarStateObject))),this.disabled=!1,this.month="current",this.calendarDate=new Date,D(this,n,re(()=>{let a=u(this,i).call(this);return a.range&&!!a.startDate&&!a.endDate})),this.disabled$=re(()=>{let a=M({},u(this,i).call(this)),c=this.date.getFullYear();switch(a.view){case"months":{let l=c*100+this.date.getMonth(),h=a.minDate?a.minDate.getFullYear()*100+a.minDate?.getMonth():void 0,d=a.maxDate?a.maxDate.getFullYear()*100+a.maxDate?.getMonth():void 0;this.disabled=(h?ld:!1);break}case"years":{let l=a.minDate?.getFullYear(),h=a.maxDate?.getFullYear();this.disabled=(l?ch:!1);break}}return this.disabled}),u(this,r).calendarState$.pipe(le(a=>{u(this,i).set(a)}),Z(u(this,e))).subscribe()}get hostClasses(){if(!this.date)return;let a=u(this,i).call(this);a.startDate=a.startDate??null,a.hoverDate=a.hoverDate??null,a.endDate=a.endDate??null;let c=cp(this.date,a.startDate,a.endDate),l=ap(this.date,a.startDate,a.endDate),h=!1,d=!1,f=!1,g=!1,F=!1,L=!1,Y=!1;switch(a.view){case"months":a.selectionType==="month"&&(h=!!op(this.date,a.startDate,a.endDate),g=!!_i(this.date,a.startDate,a.endDate),f=u(this,n).call(this)&&!!_i(this.date,a.startDate,a.hoverDate));break;case"years":a.selectionType==="year"&&(h=!!sp(this.date,a.startDate,a.endDate),g=!!_i(this.date,a.startDate,a.endDate),f=u(this,n).call(this)&&!!np(this.date,a.startDate,a.hoverDate));break;default:h=a.selectionType==="day"&&!!aa(this.date,a.startDate,a.endDate),d=this.month!=="current"&&!!a.selectAdjacentDays,f=a.selectionType==="day"&&this.month==="current"&&u(this,n).call(this)&&!!_i(this.date,a.startDate,a.hoverDate),g=this.month==="current"&&(_i(this.date,a.startDate,a.endDate)||!!c||!!l),F=Oo(a.startDate,this.date,a.disabledDates),L=Xt(this.date,a.minDate,a.maxDate,a.disabledDates),Y=a.dateFilter&&Object.prototype.toString.call(a.dateFilter)==="[object Function]"&&this.date?!a.dateFilter(this.date):!1,this.disabled=L||Y}return{"range-hover":f&&(!F||!Y),selected:h,range:g,start:!!c,end:!!l,disabled:this.disabled,clickable:d}}focus(a){this.focusMonitor.focusVia(this.elementRef.nativeElement,a??"keyboard")}getLabel(){return this.date?.toLocaleDateString(u(this,i).call(this).locale)??""}};e=new WeakMap,r=new WeakMap,i=new WeakMap,n=new WeakMap,o.\u0275fac=function(c){return new(c||o)},o.\u0275dir=k({type:o,selectors:[["","cCalendarDay",""]],hostVars:2,hostBindings:function(c,l){c&2&&E(l.hostClasses)},inputs:{date:"date",disabled:[2,"disabled","disabled",S],month:"month",calendarDate:"calendarDate"},exportAs:["cCalendarDay"],standalone:!0,features:[$]});let t=o;return t})();var Mp=(()=>{let e=class e{transform(i,n="default"){return i.toLocaleDateString(n)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275pipe=Qe({name:"calendarDayTitle",type:e,pure:!0,standalone:!0});let t=e;return t})();var Op=(()=>{let e=class e{transform(i,n){let{date:o,month:s}=M({},i),{minDate:a,maxDate:c,disabledDates:l,dateFilter:h}=M({},n),d=Xt(o,a,c,l)||(h?!h(o):!1);return{"calendar-cell":!0,today:dp(o),disabled:d,next:s==="next",previous:s==="previous",current:s==="current",last:lp(o)}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275pipe=Qe({name:"calendarClassDay",type:e,pure:!0,standalone:!0});let t=e;return t})();var Ec=(()=>{var e,r,i,n;let o=class o{constructor(){T(this,e);T(this,r);T(this,i);T(this,n);D(this,e,A(he)),D(this,r,A(oi)),this.elementRef=A(H),this.focusMonitor=A(xi),this.date=null,this.startDate=null,this.endDate=null,this.hoverDate=null,this.maxDate=null,this.minDate=null,this.range=!1,this.selectionType="week",this.calendarDate=new Date,this.locale="default",D(this,n,te(-1)),u(this,r).calendarState$.pipe(Ft(),Z(u(this,e))).subscribe(a=>{let{startDate:c=this.startDate,endDate:l=this.endDate,hoverDate:h=this.hoverDate,maxDate:d=this.maxDate,minDate:f=this.minDate,range:g=this.range,disabledDates:F=this.disabledDates,dateFilter:L=this.dateFilter,selectionType:Y=this.selectionType,calendarDate:oe=this.calendarDate,locale:Se=this.locale}=M({},a);this.startDate=c,this.endDate=l,this.hoverDate=h,this.maxDate=d,this.minDate=f,this.range=g,this.disabledDates=F,this.dateFilter=L,this.selectionType=Y,this.calendarDate=oe??new Date,this.locale=Se??"default"})}set week(a){this.current=a.days.some(c=>c.month==="current"),u(this,n).set(this.selectionType==="week"&&this.current&&!this.disabled?0:-1),D(this,i,a)}get week(){return u(this,i)}get tabindex(){return u(this,n).call(this)}get selectEndDate(){return this.range&&!!this.startDate&&!this.endDate}get hostClasses(){if(!this.week)return{"calendar-row":!0};let a=this.week,c=this.calendarDate,l=this.selectionType;this.date=Mo(a.weekNumber===0?`${c.getFullYear()}W53`:`${c.getFullYear()}W${a.weekNumber}`,l),this.current=a.days.some(L=>L.month==="current");let h=this.selectionType==="week"&&_i(this.date,this.startDate,this.endDate),d=this.selectionType==="week"&&this.hoverDate&&this.selectEndDate?_i(this.date,this.startDate,this.hoverDate):_i(this.date,this.hoverDate,this.endDate),f=aa(this.date,this.startDate,this.endDate),g=Xt(this.date,this.minDate,this.maxDate,this.disabledDates),F=Object.prototype.toString.call(this.dateFilter)==="[object Function]"&&this.date?!this.dateFilter(this.date):!1;return this.disabled=g||F,{"calendar-row":!0,disabled:this.disabled,range:h,"range-hover":d,selected:f,current:this.current}}focus(a){this.focusMonitor.focusVia(this.elementRef.nativeElement,a??"keyboard")}getLabel(){return this.date?.toLocaleDateString(this.locale)??""}};e=new WeakMap,r=new WeakMap,i=new WeakMap,n=new WeakMap,o.\u0275fac=function(c){return new(c||o)},o.\u0275dir=k({type:o,selectors:[["","cCalendarRow",""]],hostVars:3,hostBindings:function(c,l){c&2&&(N("tabindex",l.tabindex),E(l.hostClasses))},inputs:{week:[0,"cCalendarRow","week"]},exportAs:["cCalendarRow"],standalone:!0});let t=o;return t})();var Rp=(t,e)=>e.date,db=(t,e,r,i)=>({minDate:t,maxDate:e,disabledDates:r,dateFilter:i});function ub(t,e){if(t&1&&(b(0,"th",5)(1,"div",6),W(2),_()()),t&2){let r=p(2);m(2),fe(r.weekNumbersLabel)}}function hb(t,e){if(t&1&&(b(0,"th",5)(1,"div",6),W(2),_e(3,"calendarWeekday"),_()()),t&2){let r=e.$implicit,i=p(2);m(2),be(" ",fl(3,1,r.date,i.weekdayFormat,i.locale)," ")}}function pb(t,e){if(t&1&&(b(0,"thead")(1,"tr"),I(2,ub,3,1,"th",5),pe(3,hb,4,5,"th",5,Rp),_()()),t&2){let r=p();m(2),P(r.showWeekNumber?2:-1),m(),me(r.weekDays)}}function mb(t,e){if(t&1){let r=X();b(0,"td",8,0),_e(2,"calendarClassYear"),V("click",function(){let n=j(r).$implicit,o=G(1),s=p(3);return B(!o.disabled$()&&s.handleYearCellClick(n))})("keydown",function(n){j(r);let o=G(1),s=p(3);return B(o.date&&s.handleDayCellKeyDown(n,o.date))})("keyup",function(n){j(r);let o=G(1),s=p(3);return B(s.handleYearCellKeyUp(n,o.date))})("mouseenter",function(){j(r);let n=G(1),o=p(3);return B(n.date&&o.handleCellMouseEnter(n.date))}),b(3,"div",9),W(4),_()()}if(t&2){let r=e.$implicit,i=G(1),n=p(3);y("date",n.getYearStart(r))("ngClass",Ie(2,5,r))("tabindex",i.disabled$()?-1:0),N("aria-label",i.date.getFullYear()),m(4),be(" ",n.yearNumber(r)," ")}}function fb(t,e){if(t&1&&(b(0,"tr"),pe(1,mb,5,7,"td",7,xe),_()),t&2){let r=e.$implicit;m(),me(r)}}function gb(t,e){if(t&1&&pe(0,fb,3,0,"tr",null,xe),t&2){let r=p();me(r.listOfYears())}}function vb(t,e){if(t&1){let r=X();b(0,"td",8,1),_e(2,"calendarClassMonth"),V("click",function(){j(r);let n=G(1),o=p(3);return B(!n.disabled$()&&o.handleMonthCellClick(n.date))})("keydown",function(n){j(r);let o=G(1),s=p(3);return B(o.date&&s.handleDayCellKeyDown(n,o.date))})("keyup",function(n){j(r);let o=G(1),s=p(3);return B(s.handleMonthCellKeyUp(n,o.date))})("mouseenter",function(){j(r);let n=G(1),o=p(3);return B(n.date&&o.handleCellMouseEnter(n.date))}),b(3,"div",9),W(4),_()()}if(t&2){let r=e.$implicit,i=e.$index,n=G(1),o=p().$index,s=p(2);y("date",s.getMonthStart(o*3+i))("ngClass",Ps(2,5,s.calendarDate,o*3+i))("tabindex",n.disabled$()?-1:0),N("aria-label",n.date.getFullYear()+" "+r.month),m(4),be(" ",r.month," ")}}function Cb(t,e){if(t&1&&(b(0,"tr"),pe(1,vb,5,8,"td",7,xe),_()),t&2){let r=e.$implicit;m(),me(r)}}function bb(t,e){if(t&1&&pe(0,Cb,3,0,"tr",null,xe),t&2){let r=p();me(r.listOfMonths())}}function _b(t,e){if(t&1&&(b(0,"th",12),W(1),_()),t&2){let r=p().$implicit;m(),be(" ",r.weekNumber===0?53:r.weekNumber," ")}}function yb(t,e){if(t&1){let r=X();b(0,"td",14,3),_e(2,"calendarClassDay"),_e(3,"calendarDayTitle"),V("click",function(){j(r);let n=p().$implicit,o=p(3);return B(o.selectionType==="day"&&(n.month==="current"||o.selectAdjacentDays)&&o.handleDayCellClick(n.date))})("keydown",function(n){j(r);let o=p().$implicit,s=p(3);return B(s.selectionType==="day"&&(o.month==="current"||s.selectAdjacentDays)&&s.handleDayCellKeyDown(n,o.date))})("keyup",function(n){j(r);let o=p().$implicit,s=p(3);return B(s.selectionType==="day"&&(o.month==="current"||s.selectAdjacentDays)&&s.handleDayCellKeyUp(n,o.date))})("mouseenter",function(){j(r);let n=p().$implicit,o=p(3);return B(o.selectionType==="day"&&(n.month==="current"||o.selectAdjacentDays)&&o.handleCellMouseEnter(n.date))}),b(4,"div",9),W(5),_e(6,"calendarDay"),_()()}if(t&2){let r=p().$implicit,i=p(3);y("date",r.date)("month",r.month)("ngClass",Ps(2,6,r,Vu(16,db,i.minDate,i.maxDate,i.disabledDates,i.dateFilter)))("tabindex",i.selectionType==="day"&&(r.month==="current"||i.selectAdjacentDays)&&!i.isDateDisabled(r.date)?0:-1),N("aria-label",Ps(3,9,r.date,i.locale)),m(5),be(" ",fl(6,12,r.date,i.dayFormat,i.locale)," ")}}function xb(t,e){t&1&&ie(0,"td",5)}function wb(t,e){if(t&1&&I(0,yb,7,21,"td",13)(1,xb,1,0,"td",5),t&2){let r=e.$implicit,i=p(3);P(r.month==="current"||i.showAdjacentDays?0:1)}}function Db(t,e){if(t&1){let r=X();b(0,"tr",11,2),V("click",function(){j(r);let n=G(1),o=p(2);return B(o.selectionType==="week"&&n.current&&n.date&&o.handleDayCellClick(n.date))})("keydown",function(n){j(r);let o=G(1),s=p(2);return B(s.selectionType==="week"&&o.current&&o.date&&s.handleDayCellKeyDown(n,o.date))})("keyup",function(n){j(r);let o=G(1),s=p(2);return B(s.selectionType==="week"&&o.current&&o.date&&s.handleDayCellKeyUp(n,o.date))})("mouseenter",function(){j(r);let n=G(1),o=p(2);return B(o.selectionType==="week"&&n.date&&o.handleCellMouseEnter(n.date))}),I(2,_b,2,1,"th",12),pe(3,wb,2,1,null,null,Rp),_()}if(t&2){let r=e.$implicit,i=p(2);y("cCalendarRow",r),m(2),P(i.showWeekNumber?2:-1),m(),me(r.days)}}function Sb(t,e){if(t&1&&pe(0,Db,5,2,"tr",10,xe),t&2){let r=p();me(r.monthDetails)}}var ha=(()=>{var e,r,i,n;let o=class o{constructor(a){T(this,e);T(this,r);T(this,i);T(this,n);this.calendarService=a,D(this,e,A(he)),this.addMonths=0,this._startDate=null,this._endDate=null,this._disabledDates=[],this.firstDayOfWeek=1,D(this,r,te("default")),this.range=!1,this.weekdayFormat="short",D(this,i,te("days")),this._maxDate=null,this._minDate=null,this.listOfMonths=re(()=>fc(ep(u(this,r).call(this),this.calendarDate$$().getFullYear()),4)),this.listOfYears=re(()=>fc(tp(this.calendarDate$$().getFullYear()),4)),this.calendarDate$$=te(new Date),D(this,n,te("month")),this.showWeekNumber=!0,this.isDateInRangeDisabled=Oo,this.isDateBetweenMinMax=rp,this.calendarStateSubscribe()}set startDate(a){let c=a?Bt(a,"startDate"):null;this._startDate?.getTime()!==c?.getTime()&&(this._startDate=c,this.calendarService.update({startDate:this._startDate}))}get startDate(){return this._startDate}set endDate(a){let c=a?Bt(a,"endDate"):null;this._endDate?.getTime()!==c?.getTime()&&(this._endDate=c,this.calendarService.update({endDate:this._endDate}))}get endDate(){return this._endDate}set disabledDates(a){this._disabledDates=a}get disabledDates(){return this._disabledDates}set locale(a){u(this,r).set(a)}get locale(){return u(this,r).call(this)}set view(a){u(this,i).set(a)}get view(){return u(this,i).call(this)}set maxDate(a){this._maxDate=a?Bt(a,"maxDate"):null}get maxDate(){return this._maxDate}set minDate(a){this._minDate=a?Bt(a,"minDate"):null}get minDate(){return this._minDate}set calendarDate(a){let c=new Date(Bt(a??this.startDate,"calendarDate"));c&&this.calendarDate$$().getTime()!==c.getTime()&&(this.calendarDate$$.set(new Date(new Date(c.setDate(1)).setHours(0,0,0,0))),this.setMonthDetails(this.date),this.calendarService.update({calendarDate:this.calendarDate$$()}))}get calendarDate(){return this.calendarDate$$()}get date(){return new Date(this.calendarDate?.getFullYear(),this.calendarDate?.getMonth()+this.addMonths)}set selectionType(a){u(this,n).set(a)}get selectionType(){return u(this,n).call(this)}get monthDetails(){return this._monthDetails}get weekDays(){return this.monthDetails[0].days}ngOnInit(){this.setMonthDetails(this.date)}setMonthDetails(a=this.date){this._monthDetails=ip(a.getFullYear(),a.getMonth(),this.firstDayOfWeek)}yearNumber(a){return new Date(a,0).toLocaleDateString(this.locale,{year:"numeric"})}isDateDisabled(a){if(this.selectionType==="year"){let c=this.minDate?new Date(this.minDate.getFullYear(),0,1,0,0,0,0):null,l=this.maxDate?new Date(this.maxDate.getFullYear(),11,31,0,0,0,0):null;return Xt(a,c,l,this.disabledDates)||(this.dateFilter?!this.dateFilter(a):!1)}if(this.selectionType==="month"){let c=this.minDate?new Date(this.minDate.getFullYear(),this.minDate.getMonth(),1,0,0,0,0):null,l=this.maxDate?new Date(this.maxDate.getFullYear(),this.maxDate.getMonth()+1,1,0,0,-1,0):null;return Xt(a,c,l,this.disabledDates)||(this.dateFilter?!this.dateFilter(a):!1)}return Xt(a,this.minDate,this.maxDate,this.disabledDates)||(this.dateFilter?!this.dateFilter(a):!1)}calendarCellTitle(a){return a.toLocaleDateString(this.locale)}handleCellMouseEnter(a){let c=["day","week"].includes(this.selectionType)&&this.view==="days"||["month"].includes(this.selectionType)&&this.view==="months"||["year"].includes(this.selectionType)&&this.view==="years",l=this.isDateDisabled(a)||!c?null:a;this.calendarService.update({hoverDate:l})}handleYearCellClick(a){if(this.selectionType==="year"){let l=new Date(a,0,1,0,0,0,0);this.range&&this.startDate&&!this.endDate&&(l=new Date(l.getFullYear(),12,1,0,0,-1,0)),this.handleDayCellClick(l);return}let c=new Date(a,0,1,0,0,0,0);this.view="months",this.calendarService.update({view:this.view,calendarDate:c})}handleYearCellKeyUp(a,c){if(["Space","Enter"].includes(a.code)){this.handleYearCellClick(c.getFullYear());return}if(["Tab","ArrowRight","ArrowLeft","ArrowUp","ArrowDown"].includes(a.code)){this.handleCellMouseEnter(new Date(c));return}}handleMonthCellKeyUp(a,c){if(["Space","Enter"].includes(a.code)){this.handleMonthCellClick(c);return}if(["Tab","ArrowRight","ArrowLeft","ArrowUp","ArrowDown"].includes(a.code)){this.handleCellMouseEnter(c);return}}handleMonthCellClick(a){if(this.selectionType==="month"){let c=new Date(a.getFullYear(),a.getMonth(),1,0,0,0,0);this.range&&this.startDate&&!this.endDate&&(c=new Date(c.getFullYear(),c.getMonth()+1,1,0,0,-1,0)),this.handleDayCellClick(c);return}this.setCalendarPage(0,0,a.getMonth()-this.addMonths),this.view="days",this.calendarService.update({view:this.view})}setCalendarPage(a,c=0,l){let h=this.date.getFullYear(),d=this.date.getMonth(),f=new Date(h,d,1,0,0,0,0);a&&f.setFullYear(f.getFullYear()+a),c&&f.setMonth(f.getMonth()+c),typeof l=="number"&&f.setMonth(l),this.calendarService.update({calendarDate:f})}handleDayCellKeyDown(a,c){if(!["Tab","ArrowRight","ArrowLeft","ArrowUp","ArrowDown"].includes(a.code))return;a.preventDefault(),this.handleCellMouseEnter(c);let l=a.key==="Tab"?a.shiftKey?"ArrowLeft":"ArrowRight":a.key;if(this.maxDate&&c>=Mo(this.maxDate,this.selectionType)&&["ArrowRight","ArrowDown"].includes(l)||this.minDate&&c<=Mo(this.minDate,this.selectionType)&&["ArrowLeft","ArrowUp"].includes(l))return;let h=a.target;this.selectionType==="week"&&this.view==="days"&&h.tabIndex===-1&&(h=h.closest('tr[tabindex="0"]'));let d=["week"].includes(this.selectionType)&&this.view==="days"?this.calendarRows:this.calendarDays,f=d.toArray().map(Re=>Re.elementRef.nativeElement).filter(Re=>Re?.tabIndex===0),g=f.indexOf(h),F=g===0,L=g===f.length-1,Y={start:g,end:f.length-(g+1)},oe={ArrowRight:1,ArrowLeft:-1,ArrowUp:this.selectionType==="week"&&this.view==="days"?-1:this.view==="days"?-7:-3,ArrowDown:this.selectionType==="week"&&this.view==="days"?1:this.view==="days"?7:3};if(l==="ArrowRight"&&L||l==="ArrowDown"&&Y.end{let ge=Re.toArray().filter(Pe=>Pe?.elementRef.nativeElement.tabIndex===0);if(ge.length){let Pe;switch(l){case"ArrowRight":{Pe=ge[0];break}case"ArrowLeft":{Pe=ge[ge.length-1];break}case"ArrowDown":{Pe=ge[oe.ArrowDown-(f.length-g)];break}case"ArrowUp":{Pe=ge[ge.length-(Math.abs(oe.ArrowUp)+1-(g+1))];break}}Pe?.disabled||Pe?.focus("keyboard")}}),this.view==="days"&&this.setCalendarPage(0,["ArrowRight","ArrowDown"].includes(l)?1:-1),this.view==="months"&&this.setCalendarPage(["ArrowRight","ArrowDown"].includes(l)?1:-1),this.view==="years"&&this.setCalendarPage(["ArrowRight","ArrowDown"].includes(l)?12:-12);return}let Se=f[g+oe[l]];if(Se?.tabIndex===0){Se.focus();return}for(let Re=g;Re{let c=Object.keys(a);for(let l of c)this[l]=a[l]})}getMonthStart(a){return new Date(this.calendarDate.getFullYear(),a,1,0,0,0,0)}getMonthEnd(a){return new Date(this.calendarDate.getFullYear(),a+1,1,0,0,-1,0)}getYearStart(a){return new Date(a,0,1)}getYearEnd(a){return new Date(a,11,1,0,0,-1,0)}};e=new WeakMap,r=new WeakMap,i=new WeakMap,n=new WeakMap,o.\u0275fac=function(c){return new(c||o)(v(oi))},o.\u0275cmp=x({type:o,selectors:[["c-calendar-month"]],viewQuery:function(c,l){if(c&1&&(Me(Ic,5),Me(Ec,5)),c&2){let h;J(h=ee())&&(l.calendarDays=h),J(h=ee())&&(l.calendarRows=h)}},inputs:{addMonths:"addMonths",startDate:"startDate",endDate:"endDate",disabledDates:"disabledDates",firstDayOfWeek:[2,"firstDayOfWeek","firstDayOfWeek",Le],locale:"locale",range:[2,"range","range",S],weekdayFormat:"weekdayFormat",view:"view",maxDate:"maxDate",minDate:"minDate",calendarDate:"calendarDate"},exportAs:["cCalendarMonth"],standalone:!0,features:[$,w],decls:6,vars:2,consts:[["calendarYear","cCalendarDay"],["calendarMonth","cCalendarDay"],["calendarRow","cCalendarRow"],["calendarCell","cCalendarDay"],[3,"mouseleave"],[1,"calendar-cell"],[1,"calendar-header-cell-inner"],["cCalendarDay","",3,"date","ngClass","tabindex"],["cCalendarDay","",3,"click","keydown","keyup","mouseenter","date","ngClass","tabindex"],[1,"calendar-cell-inner"],[3,"cCalendarRow"],[3,"click","keydown","keyup","mouseenter","cCalendarRow"],[1,"calendar-cell-week-number"],["cCalendarDay","",3,"date","month","ngClass","tabindex"],["cCalendarDay","",3,"click","keydown","keyup","mouseenter","date","month","ngClass","tabindex"]],template:function(c,l){if(c&1&&(b(0,"table"),I(1,pb,5,1,"thead"),b(2,"tbody",4),V("mouseleave",function(){return l.handleCellMouseLeave()}),I(3,gb,2,0)(4,bb,2,0)(5,Sb,2,0),_()()),c&2){let h;m(),P(l.view==="days"?1:-1),m(2),P((h=l.view)==="years"?3:h==="months"?4:5)}},dependencies:[Ic,vp,Mp,Ec,Op,gp,fp,mp,ae],styles:['.btn-transparent[_ngcontent-%COMP%]:focus-visible{outline:-webkit-focus-ring-color auto 1px}.calendar-row[_ngcontent-%COMP%]:focus-visible{box-shadow:var(--cui-calendar-cell-focus-box-shadow);border-radius:.375rem}.calendar-row[_ngcontent-%COMP%]:focus-within:not([tabindex="-1"]){outline:0;box-shadow:var(--cui-calendar-cell-focus-box-shadow);border-radius:.375rem;outline-style:auto!important}.calendar-row[_ngcontent-%COMP%]:focus:not([tabindex="-1"]){outline:0;box-shadow:var(--cui-calendar-cell-focus-box-shadow);border-radius:.375rem;outline-style:auto!important}.calendar-cell[_ngcontent-%COMP%]:focus:not(:focus-visible):not([tabindex="-1"]){box-shadow:var(--cui-calendar-cell-focus-box-shadow);border-radius:.375rem}']});let t=o;return t})();var Pp=(()=>{let e=class e{transform(i){return{calendar:!0,[`${i}`]:!!i}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275pipe=Qe({name:"calendarClassView",type:e,pure:!0,standalone:!0});let t=e;return t})();function Tb(t,e){if(t&1){let r=X();b(0,"div",0),_e(1,"calendarClassView"),b(2,"c-calendar-navigation",1),V("navigationClick",function(n){j(r);let o=p();return B(o.handleNavigationClick(n.direction,n.years))}),_(),b(3,"c-calendar-month",2),V("cdkFocusChange",function(n){j(r);let o=p();return B(o.handleFocusChange(n))}),_()()}if(t&2){let r=e.$index,i=p();y("ngClass",Ie(1,6,i.view)),m(2),y("addMonths",r)("navigation",i.navigation),m(),y("addMonths",r)("firstDayOfWeek",i.firstDayOfWeek)("weekdayFormat",i.weekdayFormat)}}var Bn=(()=>{var e,r,i;let n=class n{constructor(s){T(this,e);T(this,r);T(this,i);this.calendarService=s,D(this,e,A(he)),this._calendarDate=Bt(new Date),this._calendars=1,this._dayFormat="numeric",this._disabledDates=[],this._startDate=null,this._endDate=null,this._firstDayOfWeek=1,this._locale="default",this._maxDate=null,this._minDate=null,this._navigation=!0,this._navYearFirst=!1,this._range=!1,this._view="days",this._weekdayFormat="short",D(this,r,"day"),D(this,i,te(!1)),this.calendarCellHover=new q,this.calendarDateChange=new q,this.endDateChange=new q,this.startDateChange=new q,this.viewChange=new q,this._hoverDate=null,this.getCalendarDate=Xh,this.calendarStateSubscribe()}set calendarDate(s){let a=new Date(Bt(s??this.startDate,"calendarDate"));if(a&&this._calendarDate.getTime()!==a.getTime()){let c=new Date(new Date(a.setDate(1)).setHours(0,0,0,0));this._calendarDate=c,this.calendarDateChange.emit(c),this.calendarService.update({calendarDate:c})}}get calendarDate(){return this._calendarDate}set calendars(s){this._calendars=s}get calendars(){return this._calendars}get calendarsArray(){return Array.from({length:this.calendars},(s,a)=>a)}set dayFormat(s){this._dayFormat=s,this.calendarService.update({dayFormat:this._dayFormat})}get dayFormat(){return this._dayFormat}set disabledDates(s){this._disabledDates=s,this.calendarService.update({disabledDates:this._disabledDates})}get disabledDates(){return this._disabledDates}set startDate(s){let a=s?Bt(s,"startDate"):null;this._startDate?.getTime()!==a?.getTime()&&(this._startDate=a,this.calendarService.update({startDate:this._startDate}),(!this.range||!this._startDate||this.endDate&&this._startDate>this.endDate)&&(this.endDate=null))}get startDate(){return this._startDate}set endDate(s){let a=s?Bt(s,"endDate"):null;this._endDate?.getTime()!==a?.getTime()&&(this._endDate=a,this.calendarService.update({endDate:this._endDate}))}get endDate(){return this.range?this._endDate:null}set firstDayOfWeek(s){this._firstDayOfWeek=s}get firstDayOfWeek(){return this._firstDayOfWeek}set locale(s){this._locale=s,this.calendarService.update({locale:s})}get locale(){return this._locale}set maxDate(s){this._maxDate=s?Bt(s,"maxDate"):null,this.calendarService.update({maxDate:this._maxDate})}get maxDate(){return this._maxDate}set minDate(s){this._minDate=s?Bt(s,"minDate"):null,this.calendarService.update({minDate:this._minDate})}get minDate(){return this._minDate}set navigation(s){this._navigation=s}get navigation(){return this._navigation}set navYearFirst(s){this._navYearFirst=s,this.calendarService.update({navYearFirst:this._navYearFirst})}get navYearFirst(){return this._navYearFirst}set range(s){this._range=s,this.calendarService.update({range:this._range})}get range(){return this._range}set view(s){this._view=s,this.calendarService.update({view:s})}get view(){return this._view}set weekdayFormat(s){this._weekdayFormat=s,this.calendarService.update({weekdayFormat:this._weekdayFormat})}get weekdayFormat(){return this._weekdayFormat}set dateFilter(s){this.calendarService.update({dateFilter:s})}set selectAdjacentDays(s){this.calendarService.update({selectAdjacentDays:s})}set showAdjacentDays(s){this.calendarService.update({showAdjacentDays:s??!0})}set selectionType(s){this.calendars=["month","year"].includes(s)?1:this.calendars,D(this,r,s),this.view=["day","week"].includes(s)?"days":s==="month"?"months":"years",this.calendarService.update({selectionType:s,view:this.view})}get selectionType(){return u(this,r)}set showWeekNumber(s){u(this,i).set(s),this.calendarService.update({showWeekNumber:s})}set weekNumbersLabel(s){this.calendarService.update({weekNumbersLabel:s})}set hoverDate(s){this._hoverDate=s,this.calendarCellHover.emit(s)}get hoverDate(){return this._hoverDate}get hostClasses(){let s=u(this,r),a=this.view;return{calendars:!0,[`select-${s}`]:s&&a==="days","show-week-numbers":u(this,i).call(this)}}ngOnInit(){this.calendarService.update({locale:this.locale??"default",view:this.view,range:this.range,selectionType:this.selectionType})}calendarStateSubscribe(){this.calendarService.calendarState$.pipe(Z(u(this,e))).subscribe(s=>{let a=Object.keys(s);for(let c of a)if(c in this&&this[c]!==s[c]){if(this[c]=s[c],c==="startDate"){setTimeout(()=>{this.startDateChange.emit(this._startDate)});continue}c==="endDate"&&setTimeout(()=>{this.endDateChange.emit(this._endDate)})}})}setCalendarPage(s,a=0,c){let l=this.calendarDate.getFullYear(),h=this.calendarDate.getMonth(),d=new Date(l,h,1);s&&d.setFullYear(d.getFullYear()+s),a&&d.setMonth(d.getMonth()+a),typeof c=="number"&&d.setMonth(c),this.calendarDate=d}handleNavigationClick(s,a=!1){if(s==="prev"){if(a){this.setCalendarPage(this.view==="years"?-10:-1);return}if(this.view!=="days"){this.setCalendarPage(-1);return}this.setCalendarPage(0,-1);return}if(s==="next"){if(a){this.setCalendarPage(this.view==="years"?10:1);return}if(this.view!=="days"){this.setCalendarPage(1);return}this.setCalendarPage(0,1);return}}clearDates(){this.calendarService.update({endDate:null}),this.calendarService.update({startDate:null})}handleFocusChange(s){s===null&&this.calendarService.update({hoverDate:null})}};e=new WeakMap,r=new WeakMap,i=new WeakMap,n.\u0275fac=function(a){return new(a||n)(v(oi))},n.\u0275cmp=x({type:n,selectors:[["c-calendar"]],viewQuery:function(a,c){if(a&1&&Me(ha,5),a&2){let l;J(l=ee())&&(c.calendarMonths=l)}},hostVars:2,hostBindings:function(a,c){a&2&&E(c.hostClasses)},inputs:{calendarDate:"calendarDate",calendars:[2,"calendars","calendars",Le],dayFormat:"dayFormat",disabledDates:"disabledDates",startDate:"startDate",endDate:"endDate",firstDayOfWeek:[2,"firstDayOfWeek","firstDayOfWeek",Le],locale:"locale",maxDate:"maxDate",minDate:"minDate",navigation:[2,"navigation","navigation",S],navYearFirst:[2,"navYearFirst","navYearFirst",S],range:[2,"range","range",S],view:"view",weekdayFormat:"weekdayFormat",dateFilter:"dateFilter",selectAdjacentDays:[2,"selectAdjacentDays","selectAdjacentDays",S],showAdjacentDays:[2,"showAdjacentDays","showAdjacentDays",S],selectionType:"selectionType",showWeekNumber:[2,"showWeekNumber","showWeekNumber",S],weekNumbersLabel:"weekNumbersLabel"},outputs:{calendarCellHover:"calendarCellHover",calendarDateChange:"calendarDateChange",endDateChange:"endDateChange",startDateChange:"startDateChange",viewChange:"viewChange"},exportAs:["cCalendar"],standalone:!0,features:[Ce([oi]),$,w],decls:2,vars:0,consts:[[3,"ngClass"],[3,"navigationClick","addMonths","navigation"],["cdkMonitorSubtreeFocus","",3,"cdkFocusChange","addMonths","firstDayOfWeek","weekdayFormat"]],template:function(a,c){a&1&&pe(0,Tb,4,8,"div",0,xe),a&2&&me(c.calendarsArray)},dependencies:[vc,Pp,ha,ae,Mr,Ap],styles:[".btn-transparent[_ngcontent-%COMP%]:focus-visible{outline:-webkit-focus-ring-color auto 1px}"]});let t=n;return t})();var Ib=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=z({type:e}),e.\u0275inj=U({imports:[Bn]});let t=e;return t})();var Eb=["*"],kb=(()=>{let e=class e{get hostClasses(){return{callout:!0,[`callout-${this.color}`]:!!this.color}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=x({type:e,selectors:[["c-callout"],["","cCallout",""]],hostAttrs:[1,"callout"],hostVars:2,hostBindings:function(n,o){n&2&&E(o.hostClasses)},inputs:{color:"color"},standalone:!0,features:[w],ngContentSelectors:Eb,decls:1,vars:0,template:function(n,o){n&1&&(R(),O(0))},styles:["[_nghost-%COMP%]{display:block}"]});let t=e;return t})();var Fb=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=z({type:e}),e.\u0275inj=U({});let t=e;return t})();var Ab=["*"],Ln=(()=>{let e=class e{constructor(){this.color=Q(),this.textColor=Q(),this.textBgColor=Q()}get hostClasses(){return{card:!0,[`bg-${this.color()}`]:!!this.color()}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=x({type:e,selectors:[["c-card"],["","c-card",""]],hostAttrs:[1,"card"],hostVars:2,hostBindings:function(n,o){n&2&&E(o.hostClasses)},inputs:{color:[1,"color"],textColor:[1,"textColor"],textBgColor:[1,"textBgColor"]},standalone:!0,features:[Xe([{directive:kn,inputs:["cTextColor","textColor"]},{directive:co,inputs:["cTextBgColor","textBgColor"]}]),w],ngContentSelectors:Ab,decls:1,vars:0,template:function(n,o){n&1&&(R(),O(0))},encapsulation:2});let t=e;return t})();var Mb=["*"],Jt=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=x({type:e,selectors:[["c-card-body"],["","c-card-body",""]],hostAttrs:[1,"card-body"],standalone:!0,features:[w],ngContentSelectors:Mb,decls:1,vars:0,template:function(n,o){n&1&&(R(),O(0))},encapsulation:2});let t=e;return t})();var Ob=["*"],kc=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=x({type:e,selectors:[["c-card-footer"],["","c-card-footer",""]],hostAttrs:[1,"card-footer"],standalone:!0,features:[w],ngContentSelectors:Ob,decls:1,vars:0,template:function(n,o){n&1&&(R(),O(0))},encapsulation:2});let t=e;return t})();var Rb=["*"],Pb=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=x({type:e,selectors:[["c-card-group"],["","c-card-group",""]],hostAttrs:[1,"card-group"],standalone:!0,features:[w],ngContentSelectors:Rb,decls:1,vars:0,template:function(n,o){n&1&&(R(),O(0))},encapsulation:2});let t=e;return t})();var Vb=["*"],Fc=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=x({type:e,selectors:[["c-card-header"],["","c-card-header",""]],hostAttrs:[1,"card-header"],standalone:!0,features:[w],ngContentSelectors:Vb,decls:1,vars:0,template:function(n,o){n&1&&(R(),O(0))},encapsulation:2});let t=e;return t})();var Nb=["*"],jb=(()=>{let e=class e{constructor(){this.cardHeaderActions=!0}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=x({type:e,selectors:[["c-card-header-actions"],["","c-card-header-actions",""]],hostVars:2,hostBindings:function(n,o){n&2&&je("card-header-actions",o.cardHeaderActions)},standalone:!0,features:[w],ngContentSelectors:Nb,decls:1,vars:0,template:function(n,o){n&1&&(R(),O(0))},encapsulation:2});let t=e;return t})();var Bb=(()=>{let e=class e{get hostClasses(){return{[`card-img${this.orientation?`-${this.orientation}`:""}`]:!0}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=k({type:e,selectors:[["","cCardImg",""]],hostVars:2,hostBindings:function(n,o){n&2&&E(o.hostClasses)},inputs:{orientation:[0,"cCardImg","orientation"]},standalone:!0});let t=e;return t})();var Lb=["*"],Hb=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=x({type:e,selectors:[["c-card-img-overlay"]],hostAttrs:[1,"card-img-overlay"],standalone:!0,features:[w],ngContentSelectors:Lb,decls:1,vars:0,template:function(n,o){n&1&&(R(),O(0))},styles:["[_nghost-%COMP%]{display:block}"]});let t=e;return t})();var $b=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=k({type:e,selectors:[["","cCardLink",""]],hostAttrs:[1,"card-link"],standalone:!0});let t=e;return t})();var Ub=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=k({type:e,selectors:[["","cCardSubtitle",""]],hostAttrs:[1,"card-subtitle"],standalone:!0});let t=e;return t})();var zb=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=k({type:e,selectors:[["","cCardText",""]],hostAttrs:[1,"card-text"],standalone:!0});let t=e;return t})();var Wb=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=k({type:e,selectors:[["","cCardTitle",""]],hostAttrs:[1,"card-title"],standalone:!0});let t=e;return t})();var Gb=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=z({type:e}),e.\u0275inj=U({});let t=e;return t})();var zi=(()=>{var e;let r=class r{constructor(){T(this,e);this.platformId=A(rn),D(this,e,new ye({isIntersecting:!1})),this.intersecting$=u(this,e).asObservable(),this.defaultObserverOptions={root:null,rootMargin:"0px",threshold:.2},this.hostElementRefs=new Map}createIntersectionObserver(n,o=this.defaultObserverOptions){if(Wu(this.platformId)){u(this,e).next({isIntersecting:!0,hostElement:n});return}let s=M(M({},this.defaultObserverOptions),o),a=(c,l)=>{c.forEach(h=>{u(this,e).next({isIntersecting:h.isIntersecting,hostElement:n})})};this.hostElementRefs.set(n,new IntersectionObserver(a,s)),this.hostElementRefs.get(n)?.observe(n.nativeElement)}unobserve(n){this.hostElementRefs.get(n)?.unobserve(n.nativeElement),this.hostElementRefs.set(n,null),this.hostElementRefs.delete(n)}ngOnDestroy(){this.hostElementRefs.forEach((n,o)=>{n?.unobserve(o.nativeElement)})}};e=new WeakMap,r.\u0275fac=function(o){return new(o||r)},r.\u0275prov=K({token:r,factory:r.\u0275fac,providedIn:"root"});let t=r;return t})();var ei=(()=>{let e=class e{constructor(){this.renderer=A(se),this.listeners=new Map}setListeners({hostElement:i,trigger:n,callbackOn:o,callbackOff:s,callbackToggle:a}){let c=i.nativeElement,l=Array.isArray(n)?n:n?.split(" ")??[];l?.includes("click")&&typeof a=="function"&&this.listeners.set("click",this.renderer.listen(c,"click",a)),l?.includes("focus")&&typeof o=="function"&&this.listeners.set("focus",this.renderer.listen(c,"focus",o)),l?.includes("focusin")&&(typeof s=="function"&&this.listeners.set("focusout",this.renderer.listen(c,"focusout",s)),typeof o=="function"&&this.listeners.set("focusin",this.renderer.listen(c,"focusin",o))),(l?.includes("click")||l?.includes("focus"))&&typeof s=="function"&&this.listeners.set("blur",this.renderer.listen(c,"blur",s)),l?.includes("hover")&&(typeof o=="function"&&this.listeners.set("mouseenter",this.renderer.listen(c,"mouseenter",o)),typeof s=="function"&&this.listeners.set("mouseleave",this.renderer.listen(c,"mouseleave",s)))}clearListeners(){this.listeners.forEach((i,n)=>{i()}),this.listeners.forEach((i,n)=>{this.listeners.set(n,null)}),this.listeners.clear()}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac});let t=e;return t})();var qb=(()=>{let e=class e{constructor(i,n){this.document=i,this.rendererFactory=n,this.renderer=n.createRenderer(null,null)}toggle(i,n){let o=document.querySelector(i);o&&(o.classList.contains(n)?this.renderer.removeClass(o,n):this.renderer.addClass(o,n))}};e.\u0275fac=function(n){return new(n||e)(ce(Be),ce(As))},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Ac=(()=>{var e;let r=class r{constructor(){T(this,e,new Map)}setItem(n,o){u(this,e).set(n,JSON.stringify(o))}getItem(n){return u(this,e).has(n)?JSON.parse(u(this,e).get(n)??"null"):void 0}removeItem(n){u(this,e).delete(n)}clear(){u(this,e).clear()}get length(){return u(this,e).size}key(n){return Array.from(u(this,e).keys())[n]}};e=new WeakMap,r.\u0275fac=function(o){return new(o||r)},r.\u0275prov=K({token:r,factory:r.\u0275fac,providedIn:"root"});let t=r;return t})();var Mc=(()=>{var e,r;let i=class i{constructor(){T(this,e);T(this,r);this.platformId=A(rn),this.document=A(Be),D(this,r,new ye(null)),this.data$=u(this,r).asObservable(),D(this,e,hr(this.platformId)&&this.document.defaultView?this.document.defaultView?.localStorage:new Ac)}setItem(o,s){u(this,e).setItem(o,JSON.stringify(s)),u(this,r).next({key:o,data:s})}getItem(o){let s=JSON.parse(u(this,e).getItem(o)||"null");return u(this,r).next({key:o,data:s}),s}removeItem(o){u(this,e).removeItem(o),u(this,r).next({key:o,data:null})}clear(){u(this,e).clear(),u(this,r).next(null)}};e=new WeakMap,r=new WeakMap,i.\u0275fac=function(s){return new(s||i)},i.\u0275prov=K({token:i,factory:i.\u0275fac,providedIn:"root"});let t=i;return t})();var Qb=(()=>{var e,r,i,n,Vp;let s=class s{constructor(){T(this,n);T(this,e);T(this,r);T(this,i);D(this,e,A(he)),D(this,r,A(Be)),D(this,i,A(Mc)),this.eventName=te("ColorSchemeChange"),this.localStorageItemName=te(void 0),this.localStorageItemName$=Dl(this.localStorageItemName),this.colorMode=te(void 0),this.colorModeEffect=He(()=>{let c=this.colorMode();if(c){let l=this.localStorageItemName();l&&this.setStoredTheme(l,c),iu(this,n,Vp).call(this,c)}}),Ai({read:()=>{this.localStorageItemName$.pipe(le(c=>{this.colorMode.set(this.getDefaultScheme(c))}),Z(u(this,e))).subscribe()}})}getStoredTheme(c){return u(this,i).getItem(c)}setStoredTheme(c,l){return u(this,i).setItem(c,l)}removeStoredTheme(c){u(this,i).removeItem(c)}getDefaultScheme(c){return u(this,r).defaultView===void 0?this.getDatasetTheme():(c&&this.getStoredTheme(c))??this.getDatasetTheme()}getPrefersColorScheme(){return u(this,r).defaultView?.matchMedia("(prefers-color-scheme: dark)").matches?"dark":u(this,r).defaultView?.matchMedia("(prefers-color-scheme: light)").matches?"light":void 0}getDatasetTheme(){return u(this,r).documentElement.dataset.coreuiTheme}};e=new WeakMap,r=new WeakMap,i=new WeakMap,n=new WeakSet,Vp=function(c){u(this,r).documentElement.dataset.coreuiTheme=c==="auto"?this.getPrefersColorScheme():c;let l=new Event(this.eventName());u(this,r).documentElement.dispatchEvent(l)},s.\u0275fac=function(l){return new(l||s)},s.\u0275prov=K({token:s,factory:s.\u0275fac,providedIn:"root"});let t=s;return t})();var ai=(()=>{let e=class e{constructor(){this.carouselIndex=new ye({}),this.carouselIndex$=this.carouselIndex.asObservable()}setIndex(i){this.carouselIndex.next(i)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac});let t=e;return t})();var li=(()=>{let e=class e{constructor(i){this.carouselService=i,this._state={activeItemIndex:-1,animate:!0,items:[],direction:"next",transition:"slide"}}get state(){return this._state}set state(i){let n=M({},this._state),o=M(M({},this._state),i);if(this._state=o,n.activeItemIndex!==o.activeItemIndex){let s=this.state.activeItemIndex||0,a=this.state.items&&this.state.items[s]?.interval||-1;this.carouselService.setIndex({active:o.activeItemIndex,interval:a,lastItemIndex:(o.items?.length??0)-1})}}setItems(i){if(i.length){let n=i.toArray();n.forEach((o,s)=>{o.index=s}),this.state={items:n}}else this.reset()}setNextIndex(i){this.carouselService.setIndex(i)}direction(i="next"){this.state={direction:i};let{activeItemIndex:n=-1,items:o}=this.state,s=o?.length??0;return s>0?i==="next"?n===s-1?0:n+1:n===0?s-1:n-1:0}reset(){this.state={activeItemIndex:-1,animate:!0,items:[],direction:"next",transition:"slide"}}};e.\u0275fac=function(n){return new(n||e)(ce(ai))},e.\u0275prov=K({token:e,factory:e.\u0275fac});let t=e;return t})();var Or=(()=>{let e=class e{constructor(){this.activeIndex=0,this.animate=!0,this.dark=!1,this.direction="next",this.interval=3e3}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac});let t=e;return t})();var Yb=["*"],Zb=(()=>{var e;let r=class r{constructor(n,o,s,a,c,l){T(this,e);this.config=n,this.hostElement=o,this.carouselService=s,this.carouselState=a,this.intersectionService=c,this.listenersService=l,this.activeIndex=0,this.animate=!0,this.direction="next",this.interval=0,this.pause="hover",this.touch=!0,this.transition="slide",this.wrap=!0,this.itemChange=new q,this.activeItemInterval=0,D(this,e,A(he)),this._visible=!0,Object.assign(this,n)}get hostClasses(){return{carousel:!0,slide:!0,"carousel-fade":this.transition==="crossfade"}}ngOnInit(){this.carouselStateSubscribe()}ngOnDestroy(){this.resetTimer(),this.clearListeners(),this.swipeSubscribe(!1)}ngAfterContentInit(){this.intersectionServiceSubscribe(),this.carouselState.state={activeItemIndex:this.activeIndex,animate:this.animate},this.setListeners(),this.swipeSubscribe()}setListeners(){let n={hostElement:this.hostElement,trigger:this.pause||[],callbackOff:()=>{this.setTimer()},callbackOn:()=>{this.resetTimer()}};this.listenersService.setListeners(n)}clearListeners(){this.listenersService.clearListeners()}set visible(n){this._visible=n}get visible(){return this._visible}setTimer(){let n=this.activeItemInterval||0;this.resetTimer(),n>0&&(this.timerId=setTimeout(()=>{let o=this.carouselState.direction(this.direction);this.carouselState.state={activeItemIndex:o}},n))}resetTimer(){clearTimeout(this.timerId),this.timerId=void 0}carouselStateSubscribe(){this.carouselService.carouselIndex$.pipe(Z(u(this,e))).subscribe(n=>{"active"in n&&this.itemChange.emit(n.active),this.activeItemInterval=typeof n.interval=="number"&&n.interval>-1?n.interval:this.interval;let o=n.active===n.lastItemIndex&&this.direction==="next"||n.active===0&&this.direction==="prev";!this.wrap&&o?this.resetTimer():this.setTimer()})}intersectionServiceSubscribe(){this.intersectionService.createIntersectionObserver(this.hostElement),this.intersectionService.intersecting$.pipe(ke(n=>n.hostElement===this.hostElement),ki(()=>{this.intersectionService.unobserve(this.hostElement)}),Z(u(this,e))).subscribe(n=>{this.visible=n.isIntersecting,n.isIntersecting?this.setTimer():this.resetTimer()})}swipeSubscribe(n=!0){if(this.touch&&n){let o=this.hostElement.nativeElement,s=lt(o,"touchstart"),a=lt(o,"touchend"),c=lt(o,"touchmove");this.swipeSubscription=s.pipe(fu(a.pipe(mu(c))),Z(u(this,e))).subscribe(([l,[h,d]])=>{l.stopPropagation(),d.stopPropagation();let f=l.touches[0].clientX-d.touches[0].clientX;if(Math.abs(f)>.3*o.clientWidth&&l.timeStamp<=d.timeStamp){let g=this.carouselState.direction(f>0?"next":"prev");this.carouselState.state={activeItemIndex:g}}})}else this.swipeSubscription?.unsubscribe()}};e=new WeakMap,r.\u0275fac=function(o){return new(o||r)(v(Or),v(H),v(ai),v(li),v(zi),v(ei))},r.\u0275cmp=x({type:r,selectors:[["c-carousel"]],hostAttrs:[1,"carousel","slide"],hostVars:2,hostBindings:function(o,s){o&2&&E(s.hostClasses)},inputs:{activeIndex:"activeIndex",animate:"animate",direction:"direction",interval:"interval",pause:"pause",touch:"touch",transition:"transition",wrap:"wrap"},outputs:{itemChange:"itemChange"},standalone:!0,features:[Ce([ai,li,Or,ei]),Xe([{directive:qt,inputs:["dark","dark"]}]),w],ngContentSelectors:Yb,decls:1,vars:0,template:function(o,s){o&1&&(R(),O(0))},styles:["[_nghost-%COMP%]{display:block}"]});let t=r;return t})();var Xb=["*"],Jb=(()=>{let e=class e{constructor(){this.carouselCaptionClass=!0}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=x({type:e,selectors:[["c-carousel-caption"]],hostVars:2,hostBindings:function(n,o){n&2&&je("carousel-caption",o.carouselCaptionClass)},standalone:!0,features:[w],ngContentSelectors:Xb,decls:1,vars:0,template:function(n,o){n&1&&(R(),O(0))},styles:["[_nghost-%COMP%]{display:block}"]});let t=e;return t})();var e_=["content"],t_=["*"];function i_(t,e){t&1&&(b(0,"div",null,0),O(2),_())}function n_(t,e){if(t&1&&(ie(0,"span"),b(1,"span",1),W(2),_()),t&2){let r=p();E(r.carouselControlIconClass),N("aria-label",r.direction)("aria-hidden",!0),m(2),fe(r.caption)}}var r_=(()=>{let e=class e{constructor(i,n){this.changeDetectorRef=i,this.carouselState=n,this.direction="next",this.hasContent=!0}set caption(i){this._caption=i}get caption(){return this._caption?this._caption:this.direction==="prev"?"Previous":"Next"}get hostRole(){return"button"}get hostClasses(){return`carousel-control-${this.direction}`}get carouselControlIconClass(){return`carousel-control-${this.direction}-icon`}onKeyUp(i){i.key==="Enter"&&this.play(),i.key==="ArrowLeft"&&this.play("prev"),i.key==="ArrowRight"&&this.play("next")}onClick(i){this.play()}ngAfterViewInit(){this.hasContent=this.content?.nativeElement.childNodes.length??!1,this.changeDetectorRef.detectChanges()}play(i=this.direction){let n=this.carouselState.direction(i);this.carouselState.state={activeItemIndex:n}}};e.\u0275fac=function(n){return new(n||e)(v(ze),v(li))},e.\u0275cmp=x({type:e,selectors:[["c-carousel-control"]],viewQuery:function(n,o){if(n&1&&Me(e_,5),n&2){let s;J(s=ee())&&(o.content=s.first)}},hostVars:3,hostBindings:function(n,o){n&1&&V("keyup",function(a){return o.onKeyUp(a)})("click",function(a){return o.onClick(a)}),n&2&&(N("role",o.hostRole),E(o.hostClasses))},inputs:{caption:"caption",direction:"direction"},standalone:!0,features:[w],ngContentSelectors:t_,decls:2,vars:1,consts:[["content",""],[1,"visually-hidden"]],template:function(n,o){n&1&&(R(),I(0,i_,3,0,"div")(1,n_,3,5)),n&2&&P(o.hasContent?0:1)},encapsulation:2});let t=e;return t})();var o_=t=>({active:t});function s_(t,e){if(t&1){let r=X();b(0,"button",2),V("click",function(){let n=j(r).$index,o=p();return B(o.onClick(n))}),_()}if(t&2){let r=e.$index,i=p();E(Fe(4,o_,i.active===r)),N("data-coreui-target",r)("aria-current",i.active===r)}}var a_=(()=>{let e=class e{constructor(i,n){this.carouselService=i,this.carouselState=n,this.items=[],this.active=0}ngOnInit(){this.carouselStateSubscribe()}ngOnDestroy(){this.carouselStateSubscribe(!1)}onClick(i){if(i!==this.active){let n=i{this.items=this.carouselState?.state?.items?.map(o=>o.index)??[],"active"in n&&(this.active=n.active??0)}):this.carouselIndexSubscription?.unsubscribe()}};e.\u0275fac=function(n){return new(n||e)(v(ai),v(li))},e.\u0275cmp=x({type:e,selectors:[["c-carousel-indicators"]],standalone:!0,features:[w],decls:3,vars:0,consts:[[1,"carousel-indicators"],["type","button",3,"class"],["type","button",3,"click"]],template:function(n,o){n&1&&(b(0,"div",0),pe(1,s_,1,6,"button",1,xe),_()),n&2&&(m(),me(o.items))},encapsulation:2});let t=e;return t})();function jp(t,e){return e.left===!0}function Bp(t,e){return e.left===!1}var Lp=wt("slideAnimation",[Je("*",Ee({transform:"translateX(0)",display:"block",opacity:1})),Ye(jp,oo([Hi(":leave",[Ue("0.6s ease-in-out",Ee({transform:"translateX(-100%)"}))],{optional:!0}),Hi(":enter",[Ee({transform:"translateX(100%)"}),Ue("0.6s ease-in-out",Ee("*"))],{optional:!0})])),Ye(Bp,oo([Hi(":enter",[Ee({transform:"translateX(-100%)"}),Ue("0.6s ease-in-out",Ee("*"))],{optional:!0}),Hi(":leave",[Ue("0.6s ease-in-out",Ee({transform:"translateX(100%)"}))],{optional:!0})]))]),Hp=wt("fadeAnimation",[Je("*",Ee({zIndex:1,opacity:1})),Ye(jp,oo([Hi(":leave",[Ue("0.6s ease-in-out",Ee({zIndex:0,opacity:0}))],{optional:!0}),Hi(":enter",[Ee({zIndex:1,opacity:1}),Ue("0.6s ease-in-out",Ee("*"))],{optional:!0})])),Ye(Bp,oo([Hi(":enter",[Ee({zIndex:1,opacity:1}),Ue("0.6s ease-in-out",Ee("*"))],{optional:!0}),Hi(":leave",[Ue("0.6s ease-in-out",Ee({zIndex:0,opacity:0}))],{optional:!0})]))]);var l_=["*"];function c_(t,e){t&1&&O(0)}var Oc=(()=>{let e=class e{set active(i){this._active=i,this.changeDetectorRef.markForCheck()}get active(){return this._active}get hostClasses(){return{"carousel-item":!0,active:this.active}}constructor(i,n){this.carouselService=i,this.changeDetectorRef=n,this._active=!1,this.interval=-1}ngOnDestroy(){this.carouselStateSubscribe(!1)}ngAfterViewInit(){setTimeout(()=>{this.carouselStateSubscribe()})}carouselStateSubscribe(i=!0){i?this.carouselIndexSubscription=this.carouselService.carouselIndex$.subscribe(n=>{"active"in n&&(this.active=n.active===this.index)}):this.carouselIndexSubscription?.unsubscribe()}};e.\u0275fac=function(n){return new(n||e)(v(ai),v(ze))},e.\u0275cmp=x({type:e,selectors:[["c-carousel-item"]],hostAttrs:[1,"carousel-item"],hostVars:2,hostBindings:function(n,o){n&2&&E(o.hostClasses)},inputs:{active:[2,"active","active",S],interval:"interval"},standalone:!0,features:[$,w],ngContentSelectors:l_,decls:1,vars:1,template:function(n,o){n&1&&(R(),I(0,c_,1,0)),n&2&&P(o.active?0:-1)},styles:["[_nghost-%COMP%]{display:block}"]});let t=e;return t})();var d_=["*"],u_=(()=>{let e=class e{constructor(i){this.carouselState=i,this.carouselInnerClass=!0,this.slide={left:!0},this.transition="slide"}ngAfterContentInit(){this.setItems()}ngAfterContentChecked(){this.setItems();let i=this.carouselState?.state,n=i?.activeItemIndex,o=i?.direction;this.activeIndex!==n&&(this.animate=i?.animate,this.slide={left:o==="next"},this.activeIndex=i?.activeItemIndex,this.transition=i?.transition??"slide")}setItems(){this.prevContentItems!==this.contentItems&&(this.prevContentItems=this.contentItems,this.carouselState.setItems(this.contentItems))}};e.\u0275fac=function(n){return new(n||e)(v(li))},e.\u0275cmp=x({type:e,selectors:[["c-carousel-inner"]],contentQueries:function(n,o,s){if(n&1&&De(s,Oc,4),n&2){let a;J(a=ee())&&(o.contentItems=a)}},hostVars:2,hostBindings:function(n,o){n&2&&je("carousel-inner",o.carouselInnerClass)},standalone:!0,features:[w],ngContentSelectors:d_,decls:2,vars:2,template:function(n,o){n&1&&(R(),b(0,"div"),O(1),_()),n&2&&y("@slideAnimation",o.slide)("@.disabled",!o.animate)},styles:["[_nghost-%COMP%]{display:block}"],data:{animation:[Lp,Hp]}});let t=e;return t})();var h_=(()=>{let e=class e{static forRoot(){return{ngModule:e,providers:[]}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=z({type:e}),e.\u0275inj=U({providers:[ai,li,Or]});let t=e;return t})();var Yp=(()=>{let e=class e{constructor(i,n){this._renderer=i,this._elementRef=n,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(i,n){this._renderer.setProperty(this._elementRef.nativeElement,i,n)}registerOnTouched(i){this.onTouched=i}registerOnChange(i){this.onChange=i}setDisabledState(i){this.setProperty("disabled",i)}};e.\u0275fac=function(n){return new(n||e)(v(se),v(H))},e.\u0275dir=k({type:e});let t=e;return t})(),Nr=(()=>{let e=class e extends Yp{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=st(e)))(o||e)}})(),e.\u0275dir=k({type:e,features:[Ne]});let t=e;return t})(),ut=new Ge(""),p_={provide:ut,useExisting:qe(()=>m_),multi:!0},m_=(()=>{let e=class e extends Nr{writeValue(i){this.setProperty("checked",i)}};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=st(e)))(o||e)}})(),e.\u0275dir=k({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(n,o){n&1&&V("change",function(a){return o.onChange(a.target.checked)})("blur",function(){return o.onTouched()})},features:[Ce([p_]),Ne]});let t=e;return t})(),f_={provide:ut,useExisting:qe(()=>Bi),multi:!0};function g_(){let t=Cl()?Cl().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var v_=new Ge(""),Bi=(()=>{let e=class e extends Yp{constructor(i,n,o){super(i,n),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!g_())}writeValue(i){let n=i??"";this.setProperty("value",n)}_handleInput(i){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(i)}_compositionStart(){this._composing=!0}_compositionEnd(i){this._composing=!1,this._compositionMode&&this.onChange(i)}};e.\u0275fac=function(n){return new(n||e)(v(se),v(H),v(v_,8))},e.\u0275dir=k({type:e,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(n,o){n&1&&V("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},features:[Ce([f_]),Ne]});let t=e;return t})();function mn(t){return t==null||(typeof t=="string"||Array.isArray(t))&&t.length===0}function Zp(t){return t!=null&&typeof t.length=="number"}var gn=new Ge(""),Uo=new Ge(""),C_=/^(?=.{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])?)*$/,Vt=class{static min(e){return b_(e)}static max(e){return __(e)}static required(e){return Xp(e)}static requiredTrue(e){return Jp(e)}static email(e){return y_(e)}static minLength(e){return x_(e)}static maxLength(e){return w_(e)}static pattern(e){return em(e)}static nullValidator(e){return ga(e)}static compose(e){return sm(e)}static composeAsync(e){return am(e)}};function b_(t){return e=>{if(mn(e.value)||mn(t))return null;let r=parseFloat(e.value);return!isNaN(r)&&r{if(mn(e.value)||mn(t))return null;let r=parseFloat(e.value);return!isNaN(r)&&r>t?{max:{max:t,actual:e.value}}:null}}function Xp(t){return mn(t.value)?{required:!0}:null}function Jp(t){return t.value===!0?null:{required:!0}}function y_(t){return mn(t.value)||C_.test(t.value)?null:{email:!0}}function x_(t){return e=>mn(e.value)||!Zp(e.value)?null:e.value.lengthZp(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}function em(t){if(!t)return ga;let e,r;return typeof t=="string"?(r="",t.charAt(0)!=="^"&&(r+="^"),r+=t,t.charAt(t.length-1)!=="$"&&(r+="$"),e=new RegExp(r)):(r=t.toString(),e=t),i=>{if(mn(i.value))return null;let n=i.value;return e.test(n)?null:{pattern:{requiredPattern:r,actualValue:n}}}}function ga(t){return null}function tm(t){return t!=null}function im(t){return Vs(t)?Et(t):t}function nm(t){let e={};return t.forEach(r=>{e=r!=null?M(M({},e),r):e}),Object.keys(e).length===0?null:e}function rm(t,e){return e.map(r=>r(t))}function D_(t){return!t.validate}function om(t){return t.map(e=>D_(e)?e:r=>e.validate(r))}function sm(t){if(!t)return null;let e=t.filter(tm);return e.length==0?null:function(r){return nm(rm(r,e))}}function Bc(t){return t!=null?sm(om(t)):null}function am(t){if(!t)return null;let e=t.filter(tm);return e.length==0?null:function(r){let i=rm(r,e).map(im);return lu(i).pipe(Ae(nm))}}function Lc(t){return t!=null?am(om(t)):null}function $p(t,e){return t===null?[e]:Array.isArray(t)?[...t,e]:[t,e]}function lm(t){return t._rawValidators}function cm(t){return t._rawAsyncValidators}function Rc(t){return t?Array.isArray(t)?t:[t]:[]}function va(t,e){return Array.isArray(t)?t.includes(e):t===e}function Up(t,e){let r=Rc(e);return Rc(t).forEach(n=>{va(r,n)||r.push(n)}),r}function zp(t,e){return Rc(e).filter(r=>!va(t,r))}var Ca=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=Bc(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=Lc(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_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,r){return this.control?this.control.hasError(e,r):!1}getError(e,r){return this.control?this.control.getError(e,r):null}},Wi=class extends Ca{get formDirective(){return null}get path(){return null}},ji=class extends Ca{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},ba=class{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}},S_={"[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"},ZV=we(M({},S_),{"[class.ng-submitted]":"isSubmitted"}),Li=(()=>{let e=class e extends ba{constructor(i){super(i)}};e.\u0275fac=function(n){return new(n||e)(v(ji,2))},e.\u0275dir=k({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,o){n&2&&je("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)},features:[Ne]});let t=e;return t})(),jr=(()=>{let e=class e extends ba{constructor(i){super(i)}};e.\u0275fac=function(n){return new(n||e)(v(Wi,10))},e.\u0275dir=k({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,o){n&2&&je("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)("ng-submitted",o.isSubmitted)},features:[Ne]});let t=e;return t})();var No="VALID",fa="INVALID",Rr="PENDING",jo="DISABLED",fn=class{},_a=class extends fn{constructor(e,r){super(),this.value=e,this.source=r}},Lo=class extends fn{constructor(e,r){super(),this.pristine=e,this.source=r}},Ho=class extends fn{constructor(e,r){super(),this.touched=e,this.source=r}},Pr=class extends fn{constructor(e,r){super(),this.status=e,this.source=r}},Pc=class extends fn{constructor(e){super(),this.source=e}},Vc=class extends fn{constructor(e){super(),this.source=e}};function Hc(t){return(Da(t)?t.validators:t)||null}function T_(t){return Array.isArray(t)?Bc(t):t||null}function $c(t,e){return(Da(e)?e.asyncValidators:t)||null}function I_(t){return Array.isArray(t)?Lc(t):t||null}function Da(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function dm(t,e,r){let i=t.controls;if(!(e?Object.keys(i):i).length)throw new nt(1e3,"");if(!i[r])throw new nt(1001,"")}function um(t,e,r){t._forEachChild((i,n)=>{if(r[n]===void 0)throw new nt(1002,"")})}var Vr=class{constructor(e,r){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=re(()=>this.statusReactive()),this.statusReactive=te(void 0),this._pristine=re(()=>this.pristineReactive()),this.pristineReactive=te(!0),this._touched=re(()=>this.touchedReactive()),this.touchedReactive=te(!1),this._events=new Te,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(r)}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 Ze(this.statusReactive)}set status(e){Ze(()=>this.statusReactive.set(e))}get valid(){return this.status===No}get invalid(){return this.status===fa}get pending(){return this.status==Rr}get disabled(){return this.status===jo}get enabled(){return this.status!==jo}get pristine(){return Ze(this.pristineReactive)}set pristine(e){Ze(()=>this.pristineReactive.set(e))}get dirty(){return!this.pristine}get touched(){return Ze(this.touchedReactive)}set touched(e){Ze(()=>this.touchedReactive.set(e))}get untouched(){return!this.touched}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(Up(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(Up(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(zp(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(zp(e,this._rawAsyncValidators))}hasValidator(e){return va(this._rawValidators,e)}hasAsyncValidator(e){return va(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let r=this.touched===!1;this.touched=!0;let i=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(we(M({},e),{sourceControl:i})),r&&e.emitEvent!==!1&&this._events.next(new Ho(!0,i))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(r=>r.markAllAsTouched(e))}markAsUntouched(e={}){let r=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let i=e.sourceControl??this;this._forEachChild(n=>{n.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:i})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,i),r&&e.emitEvent!==!1&&this._events.next(new Ho(!1,i))}markAsDirty(e={}){let r=this.pristine===!0;this.pristine=!1;let i=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(we(M({},e),{sourceControl:i})),r&&e.emitEvent!==!1&&this._events.next(new Lo(!1,i))}markAsPristine(e={}){let r=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let i=e.sourceControl??this;this._forEachChild(n=>{n.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,i),r&&e.emitEvent!==!1&&this._events.next(new Lo(!0,i))}markAsPending(e={}){this.status=Rr;let r=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Pr(this.status,r)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(we(M({},e),{sourceControl:r}))}disable(e={}){let r=this._parentMarkedDirty(e.onlySelf);this.status=jo,this.errors=null,this._forEachChild(n=>{n.disable(we(M({},e),{onlySelf:!0}))}),this._updateValue();let i=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new _a(this.value,i)),this._events.next(new Pr(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(we(M({},e),{skipPristineCheck:r}),this),this._onDisabledChange.forEach(n=>n(!0))}enable(e={}){let r=this._parentMarkedDirty(e.onlySelf);this.status=No,this._forEachChild(i=>{i.enable(we(M({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(we(M({},e),{skipPristineCheck:r}),this),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(e,r){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},r),this._parent._updateTouched({},r))}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===No||this.status===Rr)&&this._runAsyncValidator(i,e.emitEvent)}let r=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new _a(this.value,r)),this._events.next(new Pr(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(we(M({},e),{sourceControl:r}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(r=>r._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?jo:No}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,r){if(this.asyncValidator){this.status=Rr,this._hasOwnPendingAsyncValidator={emitEvent:r!==!1};let i=im(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(n=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(n,{emitEvent:r,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let e=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,r={}){this.errors=e,this._updateControlsErrors(r.emitEvent!==!1,this,r.shouldHaveEmitted)}get(e){let r=e;return r==null||(Array.isArray(r)||(r=r.split(".")),r.length===0)?null:r.reduce((i,n)=>i&&i._find(n),this)}getError(e,r){let i=r?this.get(r):this;return i&&i.errors?i.errors[e]:null}hasError(e,r){return!!this.getError(e,r)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,r,i){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||i)&&this._events.next(new Pr(this.status,r)),this._parent&&this._parent._updateControlsErrors(e,r,i)}_initObservables(){this.valueChanges=new q,this.statusChanges=new q}_calculateStatus(){return this._allControlsDisabled()?jo:this.errors?fa:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Rr)?Rr:this._anyControlsHaveStatus(fa)?fa:No}_anyControlsHaveStatus(e){return this._anyControls(r=>r.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,r){let i=!this._anyControlsDirty(),n=this.pristine!==i;this.pristine=i,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,r),n&&this._events.next(new Lo(this.pristine,r))}_updateTouched(e={},r){this.touched=this._anyControlsTouched(),this._events.next(new Ho(this.touched,r)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,r)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){Da(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let r=this._parent&&this._parent.dirty;return!e&&!!r&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=T_(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=I_(this._rawAsyncValidators)}},wi=class extends Vr{constructor(e,r,i){super(Hc(r),$c(i,r)),this.controls=e,this._initObservables(),this._setUpdateStrategy(r),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,r){return this.controls[e]?this.controls[e]:(this.controls[e]=r,r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange),r)}addControl(e,r,i={}){this.registerControl(e,r),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(e,r={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}setControl(e,r,i={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],r&&this.registerControl(e,r),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,r={}){um(this,!0,e),Object.keys(e).forEach(i=>{dm(this,!0,i),this.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r)}patchValue(e,r={}){e!=null&&(Object.keys(e).forEach(i=>{let n=this.controls[i];n&&n.patchValue(e[i],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r))}reset(e={},r={}){this._forEachChild((i,n)=>{i.reset(e?e[n]:null,{onlySelf:!0,emitEvent:r.emitEvent})}),this._updatePristine(r,this),this._updateTouched(r,this),this.updateValueAndValidity(r)}getRawValue(){return this._reduceChildren({},(e,r,i)=>(e[i]=r.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(r,i)=>i._syncPendingControls()?!0:r);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(r=>{let i=this.controls[r];i&&e(i,r)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[r,i]of Object.entries(this.controls))if(this.contains(r)&&e(i))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(r,i,n)=>((i.enabled||this.disabled)&&(r[n]=i.value),r))}_reduceChildren(e,r){let i=e;return this._forEachChild((n,o)=>{i=r(i,n,o)}),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 XV=wi;var Nc=class extends wi{};var Hn=new Ge("CallSetDisabledState",{providedIn:"root",factory:()=>zo}),zo="always";function hm(t,e){return[...e.path,t]}function $o(t,e,r=zo){Uc(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||r==="always")&&e.valueAccessor.setDisabledState?.(t.disabled),k_(t,e),A_(t,e),F_(t,e),E_(t,e)}function ya(t,e,r=!0){let i=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(i),e.valueAccessor.registerOnTouched(i)),wa(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function xa(t,e){t.forEach(r=>{r.registerOnValidatorChange&&r.registerOnValidatorChange(e)})}function E_(t,e){if(e.valueAccessor.setDisabledState){let r=i=>{e.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(r),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(r)})}}function Uc(t,e){let r=lm(t);e.validator!==null?t.setValidators($p(r,e.validator)):typeof r=="function"&&t.setValidators([r]);let i=cm(t);e.asyncValidator!==null?t.setAsyncValidators($p(i,e.asyncValidator)):typeof i=="function"&&t.setAsyncValidators([i]);let n=()=>t.updateValueAndValidity();xa(e._rawValidators,n),xa(e._rawAsyncValidators,n)}function wa(t,e){let r=!1;if(t!==null){if(e.validator!==null){let n=lm(t);if(Array.isArray(n)&&n.length>0){let o=n.filter(s=>s!==e.validator);o.length!==n.length&&(r=!0,t.setValidators(o))}}if(e.asyncValidator!==null){let n=cm(t);if(Array.isArray(n)&&n.length>0){let o=n.filter(s=>s!==e.asyncValidator);o.length!==n.length&&(r=!0,t.setAsyncValidators(o))}}}let i=()=>{};return xa(e._rawValidators,i),xa(e._rawAsyncValidators,i),r}function k_(t,e){e.valueAccessor.registerOnChange(r=>{t._pendingValue=r,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&pm(t,e)})}function F_(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&pm(t,e),t.updateOn!=="submit"&&t.markAsTouched()})}function pm(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function A_(t,e){let r=(i,n)=>{e.valueAccessor.writeValue(i),n&&e.viewToModelUpdate(i)};t.registerOnChange(r),e._registerOnDestroy(()=>{t._unregisterOnChange(r)})}function mm(t,e){t==null,Uc(t,e)}function M_(t,e){return wa(t,e)}function zc(t,e){if(!t.hasOwnProperty("model"))return!1;let r=t.model;return r.isFirstChange()?!0:!Object.is(e,r.currentValue)}function O_(t){return Object.getPrototypeOf(t.constructor)===Nr}function fm(t,e){t._syncPendingControls(),e.forEach(r=>{let i=r.control;i.updateOn==="submit"&&i._pendingChange&&(r.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function Wc(t,e){if(!e)return null;Array.isArray(e);let r,i,n;return e.forEach(o=>{o.constructor===Bi?r=o:O_(o)?i=o:n=o}),n||i||r||null}function R_(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}var P_={provide:Wi,useExisting:qe(()=>V_)},Bo=Promise.resolve(),V_=(()=>{let e=class e extends Wi{get submitted(){return Ze(this.submittedReactive)}constructor(i,n,o){super(),this.callSetDisabledState=o,this._submitted=re(()=>this.submittedReactive()),this.submittedReactive=te(!1),this._directives=new Set,this.ngSubmit=new q,this.form=new wi({},Bc(i),Lc(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(i){Bo.then(()=>{let n=this._findContainer(i.path);i.control=n.registerControl(i.name,i.control),$o(i.control,i,this.callSetDisabledState),i.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(i)})}getControl(i){return this.form.get(i.path)}removeControl(i){Bo.then(()=>{let n=this._findContainer(i.path);n&&n.removeControl(i.name),this._directives.delete(i)})}addFormGroup(i){Bo.then(()=>{let n=this._findContainer(i.path),o=new wi({});mm(o,i),n.registerControl(i.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(i){Bo.then(()=>{let n=this._findContainer(i.path);n&&n.removeControl(i.name)})}getFormGroup(i){return this.form.get(i.path)}updateModel(i,n){Bo.then(()=>{this.form.get(i.path).setValue(n)})}setValue(i){this.control.setValue(i)}onSubmit(i){return this.submittedReactive.set(!0),fm(this.form,this._directives),this.ngSubmit.emit(i),i?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(i=void 0){this.form.reset(i),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(i){return i.pop(),i.length?this.form.get(i):this.form}};e.\u0275fac=function(n){return new(n||e)(v(gn,10),v(Uo,10),v(Hn,8))},e.\u0275dir=k({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,o){n&1&&V("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ce([P_]),Ne]});let t=e;return t})();function Wp(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function Gp(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var Pt=class extends Vr{constructor(e=null,r,i){super(Hc(r),$c(i,r)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(r),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Da(r)&&(r.nonNullable||r.initialValueIsDefault)&&(Gp(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,r={}){this.value=this._pendingValue=e,this._onChange.length&&r.emitModelToViewChange!==!1&&this._onChange.forEach(i=>i(this.value,r.emitViewToModelChange!==!1)),this.updateValueAndValidity(r)}patchValue(e,r={}){this.setValue(e,r)}reset(e=this.defaultValue,r={}){this._applyFormState(e),this.markAsPristine(r),this.markAsUntouched(r),this.setValue(this.value,r),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){Wp(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){Wp(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){Gp(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}},eN=Pt,N_=t=>t instanceof Pt;var j_={provide:ji,useExisting:qe(()=>Wo)},Kp=Promise.resolve(),Wo=(()=>{let e=class e extends ji{constructor(i,n,o,s,a,c){super(),this._changeDetectorRef=a,this.callSetDisabledState=c,this.control=new Pt,this._registered=!1,this.name="",this.update=new q,this._parent=i,this._setValidators(n),this._setAsyncValidators(o),this.valueAccessor=Wc(this,s)}ngOnChanges(i){if(this._checkForErrors(),!this._registered||"name"in i){if(this._registered&&(this._checkName(),this.formDirective)){let n=i.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in i&&this._updateDisabled(i),zc(i,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(i){this.viewModel=i,this.update.emit(i)}_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(){$o(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(i){Kp.then(()=>{this.control.setValue(i,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(i){let n=i.isDisabled.currentValue,o=n!==0&&S(n);Kp.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(i){return this._parent?hm(i,this._parent):[i]}};e.\u0275fac=function(n){return new(n||e)(v(Wi,9),v(gn,10),v(Uo,10),v(ut,10),v(ze,8),v(Hn,8))},e.\u0275dir=k({type:e,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"],features:[Ce([j_]),Ne,ve]});let t=e;return t})(),tN=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=k({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let t=e;return t})();var B_={provide:ut,useExisting:qe(()=>H_),multi:!0};var L_=(()=>{let e=class e{constructor(){this._accessors=[]}add(i,n){this._accessors.push([i,n])}remove(i){for(let n=this._accessors.length-1;n>=0;--n)if(this._accessors[n][1]===i){this._accessors.splice(n,1);return}}select(i){this._accessors.forEach(n=>{this._isSameGroup(n,i)&&n[1]!==i&&n[1].fireUncheck(i.value)})}_isSameGroup(i,n){return i[0].control?i[0]._parent===n._control._parent&&i[1].name===n.name:!1}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),H_=(()=>{let e=class e extends Nr{constructor(i,n,o,s){super(i,n),this._registry=o,this._injector=s,this.setDisabledStateFired=!1,this.onChange=()=>{},this.callSetDisabledState=A(Hn,{optional:!0})??zo}ngOnInit(){this._control=this._injector.get(ji),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(i){this._state=i===this.value,this.setProperty("checked",this._state)}registerOnChange(i){this._fn=i,this.onChange=()=>{i(this.value),this._registry.select(this)}}setDisabledState(i){(this.setDisabledStateFired||i||this.callSetDisabledState==="whenDisabledForLegacyCode")&&this.setProperty("disabled",i),this.setDisabledStateFired=!0}fireUncheck(i){this.writeValue(i)}_checkName(){this.name&&this.formControlName&&(this.name,this.formControlName),!this.name&&this.formControlName&&(this.name=this.formControlName)}};e.\u0275fac=function(n){return new(n||e)(v(se),v(H),v(L_),v(vi))},e.\u0275dir=k({type:e,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(n,o){n&1&&V("change",function(){return o.onChange()})("blur",function(){return o.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[Ce([B_]),Ne]});let t=e;return t})(),$_={provide:ut,useExisting:qe(()=>U_),multi:!0},U_=(()=>{let e=class e extends Nr{writeValue(i){this.setProperty("value",parseFloat(i))}registerOnChange(i){this.onChange=n=>{i(n==""?null:parseFloat(n))}}};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=st(e)))(o||e)}})(),e.\u0275dir=k({type:e,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(n,o){n&1&&V("change",function(a){return o.onChange(a.target.value)})("input",function(a){return o.onChange(a.target.value)})("blur",function(){return o.onTouched()})},features:[Ce([$_]),Ne]});let t=e;return t})(),Gc=new Ge(""),z_={provide:ji,useExisting:qe(()=>Kc)},Kc=(()=>{let e=class e extends ji{set isDisabled(i){}constructor(i,n,o,s,a){super(),this._ngModelWarningConfig=s,this.callSetDisabledState=a,this.update=new q,this._ngModelWarningSent=!1,this._setValidators(i),this._setAsyncValidators(n),this.valueAccessor=Wc(this,o)}ngOnChanges(i){if(this._isControlChanged(i)){let n=i.form.previousValue;n&&ya(n,this,!1),$o(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}zc(i,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&ya(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(i){this.viewModel=i,this.update.emit(i)}_isControlChanged(i){return i.hasOwnProperty("form")}};e._ngModelWarningSentOnce=!1,e.\u0275fac=function(n){return new(n||e)(v(gn,10),v(Uo,10),v(ut,10),v(Gc,8),v(Hn,8))},e.\u0275dir=k({type:e,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[Ce([z_]),Ne,ve]});let t=e;return t})(),W_={provide:Wi,useExisting:qe(()=>$n)},$n=(()=>{let e=class e extends Wi{get submitted(){return Ze(this._submittedReactive)}set submitted(i){this._submittedReactive.set(i)}constructor(i,n,o){super(),this.callSetDisabledState=o,this._submitted=re(()=>this._submittedReactive()),this._submittedReactive=te(!1),this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new q,this._setValidators(i),this._setAsyncValidators(n)}ngOnChanges(i){this._checkFormPresent(),i.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(wa(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(i){let n=this.form.get(i.path);return $o(n,i,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(i),n}getControl(i){return this.form.get(i.path)}removeControl(i){ya(i.control||null,i,!1),R_(this.directives,i)}addFormGroup(i){this._setUpFormContainer(i)}removeFormGroup(i){this._cleanUpFormContainer(i)}getFormGroup(i){return this.form.get(i.path)}addFormArray(i){this._setUpFormContainer(i)}removeFormArray(i){this._cleanUpFormContainer(i)}getFormArray(i){return this.form.get(i.path)}updateModel(i,n){this.form.get(i.path).setValue(n)}onSubmit(i){return this._submittedReactive.set(!0),fm(this.form,this.directives),this.ngSubmit.emit(i),this.form._events.next(new Pc(this.control)),i?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(i=void 0){this.form.reset(i),this._submittedReactive.set(!1),this.form._events.next(new Vc(this.form))}_updateDomValue(){this.directives.forEach(i=>{let n=i.control,o=this.form.get(i.path);n!==o&&(ya(n||null,i),N_(o)&&($o(o,i,this.callSetDisabledState),i.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(i){let n=this.form.get(i.path);mm(n,i),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(i){if(this.form){let n=this.form.get(i.path);n&&M_(n,i)&&n.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Uc(this.form,this),this._oldForm&&wa(this._oldForm,this)}_checkFormPresent(){this.form}};e.\u0275fac=function(n){return new(n||e)(v(gn,10),v(Uo,10),v(Hn,8))},e.\u0275dir=k({type:e,selectors:[["","formGroup",""]],hostBindings:function(n,o){n&1&&V("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ce([W_]),Ne,ve]});let t=e;return t})();var G_={provide:ji,useExisting:qe(()=>Un)},Un=(()=>{let e=class e extends ji{set isDisabled(i){}constructor(i,n,o,s,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.name=null,this.update=new q,this._ngModelWarningSent=!1,this._parent=i,this._setValidators(n),this._setAsyncValidators(o),this.valueAccessor=Wc(this,s)}ngOnChanges(i){this._added||this._setUpControl(),zc(i,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(i){this.viewModel=i,this.update.emit(i)}get path(){return hm(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}};e._ngModelWarningSentOnce=!1,e.\u0275fac=function(n){return new(n||e)(v(Wi,13),v(gn,10),v(Uo,10),v(ut,10),v(Gc,8))},e.\u0275dir=k({type:e,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[Ce([G_]),Ne,ve]});let t=e;return t})(),K_={provide:ut,useExisting:qe(()=>Br),multi:!0};function gm(t,e){return t==null?`${e}`:(e&&typeof e=="object"&&(e="Object"),`${t}: ${e}`.slice(0,50))}function q_(t){return t.split(":")[0]}var Br=(()=>{let e=class e extends Nr{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(i){this._compareWith=i}writeValue(i){this.value=i;let n=this._getOptionId(i),o=gm(n,i);this.setProperty("value",o)}registerOnChange(i){this.onChange=n=>{this.value=this._getOptionValue(n),i(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(i){for(let n of this._optionMap.keys())if(this._compareWith(this._optionMap.get(n),i))return n;return null}_getOptionValue(i){let n=q_(i);return this._optionMap.has(n)?this._optionMap.get(n):i}};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=st(e)))(o||e)}})(),e.\u0275dir=k({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(n,o){n&1&&V("change",function(a){return o.onChange(a.target.value)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},features:[Ce([K_]),Ne]});let t=e;return t})(),Sa=(()=>{let e=class e{constructor(i,n,o){this._element=i,this._renderer=n,this._select=o,this._select&&(this.id=this._select._registerOption())}set ngValue(i){this._select!=null&&(this._select._optionMap.set(this.id,i),this._setElementValue(gm(this.id,i)),this._select.writeValue(this._select.value))}set value(i){this._setElementValue(i),this._select&&this._select.writeValue(this._select.value)}_setElementValue(i){this._renderer.setProperty(this._element.nativeElement,"value",i)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}};e.\u0275fac=function(n){return new(n||e)(v(H),v(se),v(Br,9))},e.\u0275dir=k({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});let t=e;return t})(),Q_={provide:ut,useExisting:qe(()=>vm),multi:!0};function qp(t,e){return t==null?`${e}`:(typeof e=="string"&&(e=`'${e}'`),e&&typeof e=="object"&&(e="Object"),`${t}: ${e}`.slice(0,50))}function Y_(t){return t.split(":")[0]}var vm=(()=>{let e=class e extends Nr{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(i){this._compareWith=i}writeValue(i){this.value=i;let n;if(Array.isArray(i)){let o=i.map(s=>this._getOptionId(s));n=(s,a)=>{s._setSelected(o.indexOf(a.toString())>-1)}}else n=(o,s)=>{o._setSelected(!1)};this._optionMap.forEach(n)}registerOnChange(i){this.onChange=n=>{let o=[],s=n.selectedOptions;if(s!==void 0){let a=s;for(let c=0;c{let i;return function(o){return(i||(i=st(e)))(o||e)}})(),e.\u0275dir=k({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(n,o){n&1&&V("change",function(a){return o.onChange(a.target)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},features:[Ce([Q_]),Ne]});let t=e;return t})(),Ta=(()=>{let e=class e{constructor(i,n,o){this._element=i,this._renderer=n,this._select=o,this._select&&(this.id=this._select._registerOption(this))}set ngValue(i){this._select!=null&&(this._value=i,this._setElementValue(qp(this.id,i)),this._select.writeValue(this._select.value))}set value(i){this._select?(this._value=i,this._setElementValue(qp(this.id,i)),this._select.writeValue(this._select.value)):this._setElementValue(i)}_setElementValue(i){this._renderer.setProperty(this._element.nativeElement,"value",i)}_setSelected(i){this._renderer.setProperty(this._element.nativeElement,"selected",i)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}};e.\u0275fac=function(n){return new(n||e)(v(H),v(se),v(vm,9))},e.\u0275dir=k({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});let t=e;return t})();var Cm=(()=>{let e=class e{constructor(){this._validator=ga}ngOnChanges(i){if(this.inputName in i){let n=this.normalizeInput(i[this.inputName].currentValue);this._enabled=this.enabled(n),this._validator=this._enabled?this.createValidator(n):ga,this._onChange&&this._onChange()}}validate(i){return this._validator(i)}registerOnValidatorChange(i){this._onChange=i}enabled(i){return i!=null}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=k({type:e,features:[ve]});let t=e;return t})();var Z_={provide:gn,useExisting:qe(()=>bm),multi:!0},X_={provide:gn,useExisting:qe(()=>J_),multi:!0},bm=(()=>{let e=class e extends Cm{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=S,this.createValidator=i=>Xp}enabled(i){return i}};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=st(e)))(o||e)}})(),e.\u0275dir=k({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(n,o){n&2&&N("required",o._enabled?"":null)},inputs:{required:"required"},features:[Ce([Z_]),Ne]});let t=e;return t})(),J_=(()=>{let e=class e extends bm{constructor(){super(...arguments),this.createValidator=i=>Jp}};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=st(e)))(o||e)}})(),e.\u0275dir=k({type:e,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(n,o){n&2&&N("required",o._enabled?"":null)},features:[Ce([X_]),Ne]});let t=e;return t})();var ey={provide:gn,useExisting:qe(()=>Go),multi:!0},Go=(()=>{let e=class e extends Cm{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=i=>i,this.createValidator=i=>em(i)}};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=st(e)))(o||e)}})(),e.\u0275dir=k({type:e,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(n,o){n&2&&N("pattern",o._enabled?o.pattern:null)},inputs:{pattern:"pattern"},features:[Ce([ey]),Ne]});let t=e;return t})();var _m=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=z({type:e}),e.\u0275inj=U({});let t=e;return t})(),jc=class extends Vr{constructor(e,r,i){super(Hc(r),$c(i,r)),this.controls=e,this._initObservables(),this._setUpdateStrategy(r),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[this._adjustIndex(e)]}push(e,r={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}insert(e,r,i={}){this.controls.splice(e,0,r),this._registerControl(r),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(e,r={}){let i=this._adjustIndex(e);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:r.emitEvent})}setControl(e,r,i={}){let n=this._adjustIndex(e);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),r&&(this.controls.splice(n,0,r),this._registerControl(r)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,r={}){um(this,!1,e),e.forEach((i,n)=>{dm(this,!1,n),this.at(n).setValue(i,{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r)}patchValue(e,r={}){e!=null&&(e.forEach((i,n)=>{this.at(n)&&this.at(n).patchValue(i,{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r))}reset(e=[],r={}){this._forEachChild((i,n)=>{i.reset(e[n],{onlySelf:!0,emitEvent:r.emitEvent})}),this._updatePristine(r,this),this._updateTouched(r,this),this.updateValueAndValidity(r)}getRawValue(){return this.controls.map(e=>e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(r=>r._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_adjustIndex(e){return e<0?e+this.length:e}_syncPendingControls(){let e=this.controls.reduce((r,i)=>i._syncPendingControls()?!0:r,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){this.controls.forEach((r,i)=>{e(r,i)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(r=>r.enabled&&e(r))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_allControlsDisabled(){for(let e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}_find(e){return this.at(e)??null}};function Qp(t){return!!t&&(t.asyncValidators!==void 0||t.validators!==void 0||t.updateOn!==void 0)}var ty=(()=>{let e=class e{constructor(){this.useNonNullable=!1}get nonNullable(){let i=new e;return i.useNonNullable=!0,i}group(i,n=null){let o=this._reduceControls(i),s={};return Qp(n)?s=n:n!==null&&(s.validators=n.validator,s.asyncValidators=n.asyncValidator),new wi(o,s)}record(i,n=null){let o=this._reduceControls(i);return new Nc(o,n)}control(i,n,o){let s={};return this.useNonNullable?(Qp(n)?s=n:(s.validators=n,s.asyncValidators=o),new Pt(i,we(M({},s),{nonNullable:!0}))):new Pt(i,n,o)}array(i,n,o){let s=i.map(a=>this._createControl(a));return new jc(s,n,o)}_reduceControls(i){let n={};return Object.keys(i).forEach(o=>{n[o]=this._createControl(i[o])}),n}_createControl(i){if(i instanceof Pt)return i;if(i instanceof Vr)return i;if(Array.isArray(i)){let n=i[0],o=i.length>1?i[1]:null,s=i.length>2?i[2]:null;return this.control(n,o,s)}else return this.control(i)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var iN=(()=>{let e=class e extends ty{group(i,n=null){return super.group(i,n)}control(i,n,o){return super.control(i,n,o)}array(i,n,o){return super.array(i,n,o)}};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=st(e)))(o||e)}})(),e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Ia=(()=>{let e=class e{static withConfig(i){return{ngModule:e,providers:[{provide:Hn,useValue:i.callSetDisabledState??zo}]}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=z({type:e}),e.\u0275inj=U({imports:[_m]});let t=e;return t})(),Lr=(()=>{let e=class e{static withConfig(i){return{ngModule:e,providers:[{provide:Gc,useValue:i.warnOnNgModelWithFormControl??"always"},{provide:Hn,useValue:i.callSetDisabledState??zo}]}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=z({type:e}),e.\u0275inj=U({imports:[_m]});let t=e;return t})();var iy=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=k({type:e,selectors:[["","cDropdownDivider",""]],hostAttrs:[1,"dropdown-divider"],standalone:!0});let t=e;return t})();var ny=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=k({type:e,selectors:[["","cDropdownHeader",""]],hostAttrs:[1,"dropdown-header"],standalone:!0});let t=e;return t})();var Ht=(()=>{let e=class e{constructor(){this.dropdownState=new ye({}),this.dropdownState$=this.dropdownState.asObservable()}toggle(i){this.dropdownState.next(i)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac});let t=e;return t})();var ot="top",ht="bottom",ct="right",at="left",Ea="auto",vn=[ot,ht,ct,at],Gi="start",zn="end",ym="clippingParents",ka="viewport",Hr="popper",xm="reference",Qc=vn.reduce(function(t,e){return t.concat([e+"-"+Gi,e+"-"+zn])},[]),Fa=[].concat(vn,[Ea]).reduce(function(t,e){return t.concat([e,e+"-"+Gi,e+"-"+zn])},[]),ry="beforeRead",oy="read",sy="afterRead",ay="beforeMain",ly="main",cy="afterMain",dy="beforeWrite",uy="write",hy="afterWrite",wm=[ry,oy,sy,ay,ly,cy,dy,uy,hy];function bt(t){return t?(t.nodeName||"").toLowerCase():null}function et(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function ci(t){var e=et(t).Element;return t instanceof e||t instanceof Element}function pt(t){var e=et(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function $r(t){if(typeof ShadowRoot>"u")return!1;var e=et(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function py(t){var e=t.state;Object.keys(e.elements).forEach(function(r){var i=e.styles[r]||{},n=e.attributes[r]||{},o=e.elements[r];!pt(o)||!bt(o)||(Object.assign(o.style,i),Object.keys(n).forEach(function(s){var a=n[s];a===!1?o.removeAttribute(s):o.setAttribute(s,a===!0?"":a)}))})}function my(t){var e=t.state,r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,r.popper),e.styles=r,e.elements.arrow&&Object.assign(e.elements.arrow.style,r.arrow),function(){Object.keys(e.elements).forEach(function(i){var n=e.elements[i],o=e.attributes[i]||{},s=Object.keys(e.styles.hasOwnProperty(i)?e.styles[i]:r[i]),a=s.reduce(function(c,l){return c[l]="",c},{});!pt(n)||!bt(n)||(Object.assign(n.style,a),Object.keys(o).forEach(function(c){n.removeAttribute(c)}))})}}var Dm={name:"applyStyles",enabled:!0,phase:"write",fn:py,effect:my,requires:["computeStyles"]};function _t(t){return t.split("-")[0]}var Di=Math.max,Wn=Math.min,Ki=Math.round;function Ur(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function qo(){return!/^((?!chrome|android).)*safari/i.test(Ur())}function di(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);var i=t.getBoundingClientRect(),n=1,o=1;e&&pt(t)&&(n=t.offsetWidth>0&&Ki(i.width)/t.offsetWidth||1,o=t.offsetHeight>0&&Ki(i.height)/t.offsetHeight||1);var s=ci(t)?et(t):window,a=s.visualViewport,c=!qo()&&r,l=(i.left+(c&&a?a.offsetLeft:0))/n,h=(i.top+(c&&a?a.offsetTop:0))/o,d=i.width/n,f=i.height/o;return{width:d,height:f,top:h,right:l+d,bottom:h+f,left:l,x:l,y:h}}function Gn(t){var e=di(t),r=t.offsetWidth,i=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:i}}function Qo(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&$r(r)){var i=e;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Nt(t){return et(t).getComputedStyle(t)}function Yc(t){return["table","td","th"].indexOf(bt(t))>=0}function Tt(t){return((ci(t)?t.ownerDocument:t.document)||window.document).documentElement}function qi(t){return bt(t)==="html"?t:t.assignedSlot||t.parentNode||($r(t)?t.host:null)||Tt(t)}function Sm(t){return!pt(t)||Nt(t).position==="fixed"?null:t.offsetParent}function fy(t){var e=/firefox/i.test(Ur()),r=/Trident/i.test(Ur());if(r&&pt(t)){var i=Nt(t);if(i.position==="fixed")return null}var n=qi(t);for($r(n)&&(n=n.host);pt(n)&&["html","body"].indexOf(bt(n))<0;){var o=Nt(n);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||e&&o.willChange==="filter"||e&&o.filter&&o.filter!=="none")return n;n=n.parentNode}return null}function Si(t){for(var e=et(t),r=Sm(t);r&&Yc(r)&&Nt(r).position==="static";)r=Sm(r);return r&&(bt(r)==="html"||bt(r)==="body"&&Nt(r).position==="static")?e:r||fy(t)||e}function Kn(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function qn(t,e,r){return Di(t,Wn(e,r))}function Tm(t,e,r){var i=qn(t,e,r);return i>r?r:i}function Yo(){return{top:0,right:0,bottom:0,left:0}}function Zo(t){return Object.assign({},Yo(),t)}function Xo(t,e){return e.reduce(function(r,i){return r[i]=t,r},{})}var gy=function(e,r){return e=typeof e=="function"?e(Object.assign({},r.rects,{placement:r.placement})):e,Zo(typeof e!="number"?e:Xo(e,vn))};function vy(t){var e,r=t.state,i=t.name,n=t.options,o=r.elements.arrow,s=r.modifiersData.popperOffsets,a=_t(r.placement),c=Kn(a),l=[at,ct].indexOf(a)>=0,h=l?"height":"width";if(!(!o||!s)){var d=gy(n.padding,r),f=Gn(o),g=c==="y"?ot:at,F=c==="y"?ht:ct,L=r.rects.reference[h]+r.rects.reference[c]-s[c]-r.rects.popper[h],Y=s[c]-r.rects.reference[c],oe=Si(o),Se=oe?c==="y"?oe.clientHeight||0:oe.clientWidth||0:0,Re=L/2-Y/2,ge=d[g],Pe=Se-f[h]-d[F],We=Se/2-f[h]/2+Re,it=qn(ge,We,Pe),xt=c;r.modifiersData[i]=(e={},e[xt]=it,e.centerOffset=it-We,e)}}function Cy(t){var e=t.state,r=t.options,i=r.element,n=i===void 0?"[data-popper-arrow]":i;n!=null&&(typeof n=="string"&&(n=e.elements.popper.querySelector(n),!n)||Qo(e.elements.popper,n)&&(e.elements.arrow=n))}var Im={name:"arrow",enabled:!0,phase:"main",fn:vy,effect:Cy,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ui(t){return t.split("-")[1]}var by={top:"auto",right:"auto",bottom:"auto",left:"auto"};function _y(t,e){var r=t.x,i=t.y,n=e.devicePixelRatio||1;return{x:Ki(r*n)/n||0,y:Ki(i*n)/n||0}}function Em(t){var e,r=t.popper,i=t.popperRect,n=t.placement,o=t.variation,s=t.offsets,a=t.position,c=t.gpuAcceleration,l=t.adaptive,h=t.roundOffsets,d=t.isFixed,f=s.x,g=f===void 0?0:f,F=s.y,L=F===void 0?0:F,Y=typeof h=="function"?h({x:g,y:L}):{x:g,y:L};g=Y.x,L=Y.y;var oe=s.hasOwnProperty("x"),Se=s.hasOwnProperty("y"),Re=at,ge=ot,Pe=window;if(l){var We=Si(r),it="clientHeight",xt="clientWidth";if(We===et(r)&&(We=Tt(r),Nt(We).position!=="static"&&a==="absolute"&&(it="scrollHeight",xt="scrollWidth")),We=We,n===ot||(n===at||n===ct)&&o===zn){ge=ht;var mt=d&&We===Pe&&Pe.visualViewport?Pe.visualViewport.height:We[it];L-=mt-i.height,L*=c?1:-1}if(n===at||(n===ot||n===ht)&&o===zn){Re=ct;var dt=d&&We===Pe&&Pe.visualViewport?Pe.visualViewport.width:We[xt];g-=dt-i.width,g*=c?1:-1}}var It=Object.assign({position:a},l&&by),mi=h===!0?_y({x:g,y:L},et(r)):{x:g,y:L};if(g=mi.x,L=mi.y,c){var Ot;return Object.assign({},It,(Ot={},Ot[ge]=Se?"0":"",Ot[Re]=oe?"0":"",Ot.transform=(Pe.devicePixelRatio||1)<=1?"translate("+g+"px, "+L+"px)":"translate3d("+g+"px, "+L+"px, 0)",Ot))}return Object.assign({},It,(e={},e[ge]=Se?L+"px":"",e[Re]=oe?g+"px":"",e.transform="",e))}function yy(t){var e=t.state,r=t.options,i=r.gpuAcceleration,n=i===void 0?!0:i,o=r.adaptive,s=o===void 0?!0:o,a=r.roundOffsets,c=a===void 0?!0:a,l={placement:_t(e.placement),variation:ui(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Em(Object.assign({},l,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:c})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Em(Object.assign({},l,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var km={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:yy,data:{}};var Aa={passive:!0};function xy(t){var e=t.state,r=t.instance,i=t.options,n=i.scroll,o=n===void 0?!0:n,s=i.resize,a=s===void 0?!0:s,c=et(e.elements.popper),l=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&l.forEach(function(h){h.addEventListener("scroll",r.update,Aa)}),a&&c.addEventListener("resize",r.update,Aa),function(){o&&l.forEach(function(h){h.removeEventListener("scroll",r.update,Aa)}),a&&c.removeEventListener("resize",r.update,Aa)}}var Fm={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:xy,data:{}};var wy={left:"right",right:"left",bottom:"top",top:"bottom"};function zr(t){return t.replace(/left|right|bottom|top/g,function(e){return wy[e]})}var Dy={start:"end",end:"start"};function Ma(t){return t.replace(/start|end/g,function(e){return Dy[e]})}function Qn(t){var e=et(t),r=e.pageXOffset,i=e.pageYOffset;return{scrollLeft:r,scrollTop:i}}function Yn(t){return di(Tt(t)).left+Qn(t).scrollLeft}function Zc(t,e){var r=et(t),i=Tt(t),n=r.visualViewport,o=i.clientWidth,s=i.clientHeight,a=0,c=0;if(n){o=n.width,s=n.height;var l=qo();(l||!l&&e==="fixed")&&(a=n.offsetLeft,c=n.offsetTop)}return{width:o,height:s,x:a+Yn(t),y:c}}function Xc(t){var e,r=Tt(t),i=Qn(t),n=(e=t.ownerDocument)==null?void 0:e.body,o=Di(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),s=Di(r.scrollHeight,r.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),a=-i.scrollLeft+Yn(t),c=-i.scrollTop;return Nt(n||r).direction==="rtl"&&(a+=Di(r.clientWidth,n?n.clientWidth:0)-o),{width:o,height:s,x:a,y:c}}function Zn(t){var e=Nt(t),r=e.overflow,i=e.overflowX,n=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+i)}function Oa(t){return["html","body","#document"].indexOf(bt(t))>=0?t.ownerDocument.body:pt(t)&&Zn(t)?t:Oa(qi(t))}function Cn(t,e){var r;e===void 0&&(e=[]);var i=Oa(t),n=i===((r=t.ownerDocument)==null?void 0:r.body),o=et(i),s=n?[o].concat(o.visualViewport||[],Zn(i)?i:[]):i,a=e.concat(s);return n?a:a.concat(Cn(qi(s)))}function Wr(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Sy(t,e){var r=di(t,!1,e==="fixed");return r.top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r}function Am(t,e,r){return e===ka?Wr(Zc(t,r)):ci(e)?Sy(e,r):Wr(Xc(Tt(t)))}function Ty(t){var e=Cn(qi(t)),r=["absolute","fixed"].indexOf(Nt(t).position)>=0,i=r&&pt(t)?Si(t):t;return ci(i)?e.filter(function(n){return ci(n)&&Qo(n,i)&&bt(n)!=="body"}):[]}function Jc(t,e,r,i){var n=e==="clippingParents"?Ty(t):[].concat(e),o=[].concat(n,[r]),s=o[0],a=o.reduce(function(c,l){var h=Am(t,l,i);return c.top=Di(h.top,c.top),c.right=Wn(h.right,c.right),c.bottom=Wn(h.bottom,c.bottom),c.left=Di(h.left,c.left),c},Am(t,s,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Jo(t){var e=t.reference,r=t.element,i=t.placement,n=i?_t(i):null,o=i?ui(i):null,s=e.x+e.width/2-r.width/2,a=e.y+e.height/2-r.height/2,c;switch(n){case ot:c={x:s,y:e.y-r.height};break;case ht:c={x:s,y:e.y+e.height};break;case ct:c={x:e.x+e.width,y:a};break;case at:c={x:e.x-r.width,y:a};break;default:c={x:e.x,y:e.y}}var l=n?Kn(n):null;if(l!=null){var h=l==="y"?"height":"width";switch(o){case Gi:c[l]=c[l]-(e[h]/2-r[h]/2);break;case zn:c[l]=c[l]+(e[h]/2-r[h]/2);break;default:}}return c}function Ti(t,e){e===void 0&&(e={});var r=e,i=r.placement,n=i===void 0?t.placement:i,o=r.strategy,s=o===void 0?t.strategy:o,a=r.boundary,c=a===void 0?ym:a,l=r.rootBoundary,h=l===void 0?ka:l,d=r.elementContext,f=d===void 0?Hr:d,g=r.altBoundary,F=g===void 0?!1:g,L=r.padding,Y=L===void 0?0:L,oe=Zo(typeof Y!="number"?Y:Xo(Y,vn)),Se=f===Hr?xm:Hr,Re=t.rects.popper,ge=t.elements[F?Se:f],Pe=Jc(ci(ge)?ge:ge.contextElement||Tt(t.elements.popper),c,h,s),We=di(t.elements.reference),it=Jo({reference:We,element:Re,strategy:"absolute",placement:n}),xt=Wr(Object.assign({},Re,it)),mt=f===Hr?xt:We,dt={top:Pe.top-mt.top+oe.top,bottom:mt.bottom-Pe.bottom+oe.bottom,left:Pe.left-mt.left+oe.left,right:mt.right-Pe.right+oe.right},It=t.modifiersData.offset;if(f===Hr&&It){var mi=It[n];Object.keys(dt).forEach(function(Ot){var _n=[ct,ht].indexOf(Ot)>=0?1:-1,yn=[ot,ht].indexOf(Ot)>=0?"y":"x";dt[Ot]+=mi[yn]*_n})}return dt}function ed(t,e){e===void 0&&(e={});var r=e,i=r.placement,n=r.boundary,o=r.rootBoundary,s=r.padding,a=r.flipVariations,c=r.allowedAutoPlacements,l=c===void 0?Fa:c,h=ui(i),d=h?a?Qc:Qc.filter(function(F){return ui(F)===h}):vn,f=d.filter(function(F){return l.indexOf(F)>=0});f.length===0&&(f=d);var g=f.reduce(function(F,L){return F[L]=Ti(t,{placement:L,boundary:n,rootBoundary:o,padding:s})[_t(L)],F},{});return Object.keys(g).sort(function(F,L){return g[F]-g[L]})}function Iy(t){if(_t(t)===Ea)return[];var e=zr(t);return[Ma(t),e,Ma(e)]}function Ey(t){var e=t.state,r=t.options,i=t.name;if(!e.modifiersData[i]._skip){for(var n=r.mainAxis,o=n===void 0?!0:n,s=r.altAxis,a=s===void 0?!0:s,c=r.fallbackPlacements,l=r.padding,h=r.boundary,d=r.rootBoundary,f=r.altBoundary,g=r.flipVariations,F=g===void 0?!0:g,L=r.allowedAutoPlacements,Y=e.options.placement,oe=_t(Y),Se=oe===Y,Re=c||(Se||!F?[zr(Y)]:Iy(Y)),ge=[Y].concat(Re).reduce(function(rr,Ji){return rr.concat(_t(Ji)===Ea?ed(e,{placement:Ji,boundary:h,rootBoundary:d,padding:l,flipVariations:F,allowedAutoPlacements:L}):Ji)},[]),Pe=e.rects.reference,We=e.rects.popper,it=new Map,xt=!0,mt=ge[0],dt=0;dt=0,yn=_n?"width":"height",$t=Ti(e,{placement:It,boundary:h,rootBoundary:d,altBoundary:f,padding:l}),fi=_n?Ot?ct:at:Ot?ht:ot;Pe[yn]>We[yn]&&(fi=zr(fi));var gs=zr(fi),xn=[];if(o&&xn.push($t[mi]<=0),a&&xn.push($t[fi]<=0,$t[gs]<=0),xn.every(function(rr){return rr})){mt=It,xt=!1;break}it.set(It,xn)}if(xt)for(var vs=F?3:1,tl=function(Ji){var Zr=ge.find(function(bs){var wn=it.get(bs);if(wn)return wn.slice(0,Ji).every(function(il){return il})});if(Zr)return mt=Zr,"break"},Yr=vs;Yr>0;Yr--){var Cs=tl(Yr);if(Cs==="break")break}e.placement!==mt&&(e.modifiersData[i]._skip=!0,e.placement=mt,e.reset=!0)}}var Mm={name:"flip",enabled:!0,phase:"main",fn:Ey,requiresIfExists:["offset"],data:{_skip:!1}};function Om(t,e,r){return r===void 0&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function Rm(t){return[ot,ct,ht,at].some(function(e){return t[e]>=0})}function ky(t){var e=t.state,r=t.name,i=e.rects.reference,n=e.rects.popper,o=e.modifiersData.preventOverflow,s=Ti(e,{elementContext:"reference"}),a=Ti(e,{altBoundary:!0}),c=Om(s,i),l=Om(a,n,o),h=Rm(c),d=Rm(l);e.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:h,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":d})}var Pm={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ky};function Fy(t,e,r){var i=_t(t),n=[at,ot].indexOf(i)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},e,{placement:t})):r,s=o[0],a=o[1];return s=s||0,a=(a||0)*n,[at,ct].indexOf(i)>=0?{x:a,y:s}:{x:s,y:a}}function Ay(t){var e=t.state,r=t.options,i=t.name,n=r.offset,o=n===void 0?[0,0]:n,s=Fa.reduce(function(h,d){return h[d]=Fy(d,e.rects,o),h},{}),a=s[e.placement],c=a.x,l=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=c,e.modifiersData.popperOffsets.y+=l),e.modifiersData[i]=s}var Vm={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Ay};function My(t){var e=t.state,r=t.name;e.modifiersData[r]=Jo({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var Nm={name:"popperOffsets",enabled:!0,phase:"read",fn:My,data:{}};function td(t){return t==="x"?"y":"x"}function Oy(t){var e=t.state,r=t.options,i=t.name,n=r.mainAxis,o=n===void 0?!0:n,s=r.altAxis,a=s===void 0?!1:s,c=r.boundary,l=r.rootBoundary,h=r.altBoundary,d=r.padding,f=r.tether,g=f===void 0?!0:f,F=r.tetherOffset,L=F===void 0?0:F,Y=Ti(e,{boundary:c,rootBoundary:l,padding:d,altBoundary:h}),oe=_t(e.placement),Se=ui(e.placement),Re=!Se,ge=Kn(oe),Pe=td(ge),We=e.modifiersData.popperOffsets,it=e.rects.reference,xt=e.rects.popper,mt=typeof L=="function"?L(Object.assign({},e.rects,{placement:e.placement})):L,dt=typeof mt=="number"?{mainAxis:mt,altAxis:mt}:Object.assign({mainAxis:0,altAxis:0},mt),It=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,mi={x:0,y:0};if(We){if(o){var Ot,_n=ge==="y"?ot:at,yn=ge==="y"?ht:ct,$t=ge==="y"?"height":"width",fi=We[ge],gs=fi+Y[_n],xn=fi-Y[yn],vs=g?-xt[$t]/2:0,tl=Se===Gi?it[$t]:xt[$t],Yr=Se===Gi?-xt[$t]:-it[$t],Cs=e.elements.arrow,rr=g&&Cs?Gn(Cs):{width:0,height:0},Ji=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Yo(),Zr=Ji[_n],bs=Ji[yn],wn=qn(0,it[$t],rr[$t]),il=Re?it[$t]/2-vs-wn-Zr-dt.mainAxis:tl-wn-Zr-dt.mainAxis,Kf=Re?-it[$t]/2+vs+wn+bs+dt.mainAxis:Yr+wn+bs+dt.mainAxis,nl=e.elements.arrow&&Si(e.elements.arrow),qf=nl?ge==="y"?nl.clientTop||0:nl.clientLeft||0:0,Kd=(Ot=It?.[ge])!=null?Ot:0,Qf=fi+il-Kd-qf,Yf=fi+Kf-Kd,qd=qn(g?Wn(gs,Qf):gs,fi,g?Di(xn,Yf):xn);We[ge]=qd,mi[ge]=qd-fi}if(a){var Qd,Zf=ge==="x"?ot:at,Xf=ge==="x"?ht:ct,Dn=We[Pe],_s=Pe==="y"?"height":"width",Yd=Dn+Y[Zf],Zd=Dn-Y[Xf],rl=[ot,at].indexOf(oe)!==-1,Xd=(Qd=It?.[Pe])!=null?Qd:0,Jd=rl?Yd:Dn-it[_s]-xt[_s]-Xd+dt.altAxis,eu=rl?Dn+it[_s]+xt[_s]-Xd-dt.altAxis:Zd,tu=g&&rl?Tm(Jd,Dn,eu):qn(g?Jd:Yd,Dn,g?eu:Zd);We[Pe]=tu,mi[Pe]=tu-Dn}e.modifiersData[i]=mi}}var jm={name:"preventOverflow",enabled:!0,phase:"main",fn:Oy,requiresIfExists:["offset"]};function id(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function nd(t){return t===et(t)||!pt(t)?Qn(t):id(t)}function Ry(t){var e=t.getBoundingClientRect(),r=Ki(e.width)/t.offsetWidth||1,i=Ki(e.height)/t.offsetHeight||1;return r!==1||i!==1}function rd(t,e,r){r===void 0&&(r=!1);var i=pt(e),n=pt(e)&&Ry(e),o=Tt(e),s=di(t,n,r),a={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(i||!i&&!r)&&((bt(e)!=="body"||Zn(o))&&(a=nd(e)),pt(e)?(c=di(e,!0),c.x+=e.clientLeft,c.y+=e.clientTop):o&&(c.x=Yn(o))),{x:s.left+a.scrollLeft-c.x,y:s.top+a.scrollTop-c.y,width:s.width,height:s.height}}function Py(t){var e=new Map,r=new Set,i=[];t.forEach(function(o){e.set(o.name,o)});function n(o){r.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(a){if(!r.has(a)){var c=e.get(a);c&&n(c)}}),i.push(o)}return t.forEach(function(o){r.has(o.name)||n(o)}),i}function od(t){var e=Py(t);return wm.reduce(function(r,i){return r.concat(e.filter(function(n){return n.phase===i}))},[])}function sd(t){var e;return function(){return e||(e=new Promise(function(r){Promise.resolve().then(function(){e=void 0,r(t())})})),e}}function ad(t){var e=t.reduce(function(r,i){var n=r[i.name];return r[i.name]=n?Object.assign({},n,i,{options:Object.assign({},n.options,i.options),data:Object.assign({},n.data,i.data)}):i,r},{});return Object.keys(e).map(function(r){return e[r]})}var Bm={placement:"bottom",modifiers:[],strategy:"absolute"};function Lm(){for(var t=arguments.length,e=new Array(t),r=0;r{var e,r,i;let n=class n{constructor(){T(this,e);T(this,r);T(this,i);D(this,e,A(he)),this.elementRef=A(H),D(this,r,A(Ht)),this.visible=!1}get hostClasses(){return{"dropdown-menu":!0,[`dropdown-menu-${this.alignment}`]:!!this.alignment,show:this.visible}}get hostStyles(){return{visibility:this.visible?null:"",display:this.visible?null:""}}onKeyDown(s){this.visible&&(["Space","ArrowDown"].includes(s.code)&&s.preventDefault(),u(this,i).onKeydown(s))}onKeyUp(s){this.visible&&["Tab"].includes(s.key)&&(u(this,i).activeItem?s.shiftKey?u(this,i).setPreviousItemActive():u(this,i).setNextItemActive():u(this,i).setFirstItemActive())}ngAfterContentInit(){this.focusKeyManagerInit(),this.dropdownItemsContent.changes.pipe(le(s=>{this.focusKeyManagerInit()}),Z(u(this,e))).subscribe()}ngOnInit(){u(this,r).dropdownState$.pipe(le(s=>{"visible"in s&&(this.visible=s.visible==="toggle"?!this.visible:s.visible,this.visible||u(this,i)?.setActiveItem(-1))}),Z(u(this,e))).subscribe()}focusKeyManagerInit(){D(this,i,new Ni(this.dropdownItemsContent).withHomeAndEnd().withPageUpDown().withWrap().skipPredicate(s=>s.disabled===!0))}};e=new WeakMap,r=new WeakMap,i=new WeakMap,n.\u0275fac=function(a){return new(a||n)},n.\u0275dir=k({type:n,selectors:[["","cDropdownMenu",""]],contentQueries:function(a,c,l){if(a&1&&De(l,ld,5),a&2){let h;J(h=ee())&&(c.dropdownItemsContent=h)}},hostAttrs:[1,"dropdown-menu"],hostVars:4,hostBindings:function(a,c){a&1&&V("keydown",function(h){return c.onKeyDown(h)})("keyup",function(h){return c.onKeyUp(h)}),a&2&&(ni(c.hostStyles),E(c.hostClasses))},inputs:{alignment:"alignment",visible:"visible"},exportAs:["cDropdownMenu"],standalone:!0,features:[Xe([{directive:qt,inputs:["dark","dark"]}])]});let t=n;return t})();var Ny=["*"],Ra=class{},Ii=(()=>{var e,r,i;let n=class n{constructor(){T(this,e);T(this,r);T(this,i);D(this,e,A(he)),this.elementRef=A(H),D(this,r,A(Ht)),this.dropdown=A(Ra,{optional:!0}),this.disabled=!1,this.caret=!0,this.split=!1,D(this,i,te(!1))}get hostClasses(){return{"dropdown-toggle":this.caret,"dropdown-toggle-split":this.split,disabled:this.disabled}}get ariaExpanded(){return u(this,i).call(this)}onClick(s){s.preventDefault(),!this.disabled&&u(this,r).toggle({visible:"toggle",dropdown:this.dropdown})}ngAfterViewInit(){this.dropdownComponent&&(this.dropdown=this.dropdownComponent,D(this,r,this.dropdownComponent?.dropdownService)),this.dropdown&&this.dropdown?.visibleChange?.pipe(Z(u(this,e))).subscribe(a=>{u(this,i).set(a)})}};e=new WeakMap,r=new WeakMap,i=new WeakMap,n.\u0275fac=function(a){return new(a||n)},n.\u0275dir=k({type:n,selectors:[["","cDropdownToggle",""]],hostVars:3,hostBindings:function(a,c){a&1&&V("click",function(h){return c.onClick(h)}),a&2&&(N("aria-expanded",c.ariaExpanded),E(c.hostClasses))},inputs:{dropdownComponent:"dropdownComponent",disabled:[2,"disabled","disabled",S],caret:"caret",split:[2,"split","split",S]},exportAs:["cDropdownToggle"],standalone:!0,features:[Ce([{provide:Ra,useExisting:qe(()=>Mt)}]),$]});let t=n;return t})(),Mt=(()=>{let e=class e{constructor(i,n,o,s,a,c){this.document=i,this.elementRef=n,this.renderer=o,this.ngZone=s,this.changeDetectorRef=a,this.dropdownService=c,this.autoClose=!0,this.placement="bottom-start",this.popper=!0,this._popperOptions={placement:this.placement,modifiers:[],strategy:"absolute"},this.variant="dropdown",this._visible=!1,this.visibleChange=new q,this.dropdownContext={$implicit:this.visible},this.activeTrap=!1,this.listeners=[],this.dropdownStateSubscribe()}set popperOptions(i){this._popperOptions=M(M({},this._popperOptions),i)}get popperOptions(){let i=this.placement;switch(this.direction){case"dropup":{i="top-start";break}case"dropend":{i="right-start";break}case"dropstart":{i="left-start";break}case"center":{i="bottom";break}case"dropup-center":{i="top";break}}return this.alignment==="end"&&(i="bottom-end"),this._popperOptions=we(M({},this._popperOptions),{placement:i}),this._popperOptions}set visible(i){let n=i;n!==this._visible&&(this.activeTrap=n,this._visible=n,n?this.createPopperInstance():this.destroyPopperInstance(),this.visibleChange.emit(n))}get visible(){return this._visible}get hostClasses(){return{dropdown:(this.variant==="dropdown"||this.variant==="nav-item")&&!this.direction,[`${this.direction}`]:!!this.direction,[`${this.variant}`]:!!this.variant,dropup:this.direction==="dropup"||this.direction==="dropup-center",show:this.visible}}get hostStyle(){return this.variant==="input-group"?{display:"contents"}:{}}onHostClick(i){this.clickedTarget=i.target}dropdownStateSubscribe(i=!0){i?this.dropdownStateSubscription=this.dropdownService.dropdownState$.pipe(ke(n=>this===n.dropdown)).subscribe(n=>{"visible"in n&&(n?.visible==="toggle"?this.toggleDropdown():this.visible=n.visible)}):this.dropdownStateSubscription?.unsubscribe()}toggleDropdown(){this.visible=!this.visible}onClick(i){this._toggler?.elementRef.nativeElement.contains(i.target?.closest("[cDropdownToggle]"))||this.toggleDropdown()}ngAfterContentInit(){this.variant==="nav-item"&&this.renderer.addClass(this._toggler.elementRef.nativeElement,"nav-link")}ngOnInit(){this.setVisibleState(this.visible)}ngOnChanges(i){i.visible&&!i.visible.firstChange&&this.setVisibleState(i.visible.currentValue)}ngOnDestroy(){this.clearListeners(),this.dropdownStateSubscribe(!1),this.destroyPopperInstance()}setVisibleState(i){this.dropdownService.toggle({visible:i,dropdown:this})}createPopperInstance(){this._toggler&&this._menu&&this.ngZone.runOutsideAngular(()=>{this._menu.elementRef.nativeElement.style.visibility="hidden",this._menu.elementRef.nativeElement.style.display="block",this.popper&&(this.popperInstance=Xn(this._toggler.elementRef.nativeElement,this._menu.elementRef.nativeElement,M({},this.popperOptions))),this.ngZone.run(()=>{this.setListeners(),this.changeDetectorRef.markForCheck(),this.changeDetectorRef.detectChanges()})})}destroyPopperInstance(){this.clearListeners(),this.popperInstance?.destroy(),this.popperInstance=void 0,this.changeDetectorRef.markForCheck()}setListeners(){this.listeners.push(this.renderer.listen(this.document,"click",i=>{let n=i.target;if(this._menuElementRef?.nativeElement.contains(i.target)&&(this.clickedTarget=n),!this._toggler?.elementRef.nativeElement.contains(i.target)){if(this.autoClose===!0){this.setVisibleState(!1);return}if(this.clickedTarget===n&&this.autoClose==="inside"){this.setVisibleState(!1);return}if(this.clickedTarget!==n&&this.autoClose==="outside"){this.setVisibleState(!1);return}}})),this.listeners.push(this.renderer.listen(this.elementRef.nativeElement,"keyup",i=>{if(i.key==="Escape"&&this.autoClose!==!1){i.stopPropagation(),this.setVisibleState(!1);return}})),this.listeners.push(this.renderer.listen(this.document,"keyup",i=>{if(i.key==="Tab"&&this.autoClose!==!1&&!this.elementRef.nativeElement.contains(i.target)){this.setVisibleState(!1);return}}))}clearListeners(){this.listeners.forEach(i=>{i()}),this.listeners.fill(void 0),this.listeners=[]}};e.\u0275fac=function(n){return new(n||e)(v(Be),v(H),v(se),v(tt),v(ze),v(Ht))},e.\u0275cmp=x({type:e,selectors:[["c-dropdown"]],contentQueries:function(n,o,s){if(n&1&&(De(s,Ii,5),De(s,ti,5),De(s,ti,5,H)),n&2){let a;J(a=ee())&&(o._toggler=a.first),J(a=ee())&&(o._menu=a.first),J(a=ee())&&(o._menuElementRef=a.first)}},hostVars:4,hostBindings:function(n,o){n&1&&V("click",function(a){return o.onHostClick(a)}),n&2&&(ni(o.hostStyle),E(o.hostClasses))},inputs:{alignment:"alignment",autoClose:"autoClose",direction:"direction",placement:"placement",popper:[2,"popper","popper",S],popperOptions:"popperOptions",variant:"variant",visible:[2,"visible","visible",S]},outputs:{visibleChange:"visibleChange"},exportAs:["cDropdown"],standalone:!0,features:[Ce([Ht]),$,Xe([{directive:qt,inputs:["dark","dark"]}]),ve,w],ngContentSelectors:Ny,decls:1,vars:0,template:function(n,o){n&1&&(R(),O(0))},styles:[".dropdown[_nghost-%COMP%]:not(.btn-group), .dropdown [_nghost-%COMP%]:not(.btn-group), .dropup[_nghost-%COMP%]:not(.btn-group), .dropup [_nghost-%COMP%]:not(.btn-group){display:block}.dropstart[_nghost-%COMP%]:not(.btn-group), .dropstart [_nghost-%COMP%]:not(.btn-group), .dropend[_nghost-%COMP%]:not(.btn-group), .dropend [_nghost-%COMP%]:not(.btn-group){display:inline-flex}html:not([dir=rtl]).input-group [_nghost-%COMP%]:first-child :first-child, html:not([dir=rtl]) .input-group [_nghost-%COMP%]:first-child :first-child, .input-group html:not([dir=rtl]) [_nghost-%COMP%]:first-child :first-child{border-top-right-radius:0;border-bottom-right-radius:0}html:not([dir=rtl]).input-group [_nghost-%COMP%]:first-child :not(:first-child):not(.dropdown-menu), html:not([dir=rtl]) .input-group [_nghost-%COMP%]:first-child :not(:first-child):not(.dropdown-menu), .input-group html:not([dir=rtl]) [_nghost-%COMP%]:first-child :not(:first-child):not(.dropdown-menu){margin-left:-1px;border-top-left-radius:0;border-bottom-left-radius:0}html:not([dir=rtl]).input-group [_nghost-%COMP%]:first-child :not(:first-child):not(.dropdown-menu):not(:only-of-type), html:not([dir=rtl]) .input-group [_nghost-%COMP%]:first-child :not(:first-child):not(.dropdown-menu):not(:only-of-type), .input-group html:not([dir=rtl]) [_nghost-%COMP%]:first-child :not(:first-child):not(.dropdown-menu):not(:only-of-type){border-top-right-radius:0;border-bottom-right-radius:0}html:not([dir=rtl]).input-group [_nghost-%COMP%]:last-child :first-child, html:not([dir=rtl]) .input-group [_nghost-%COMP%]:last-child :first-child, .input-group html:not([dir=rtl]) [_nghost-%COMP%]:last-child :first-child{border-top-left-radius:0;border-bottom-left-radius:0}html:not([dir=rtl]).input-group [_nghost-%COMP%]:last-child :first-child:not(:only-of-type), html:not([dir=rtl]) .input-group [_nghost-%COMP%]:last-child :first-child:not(:only-of-type), .input-group html:not([dir=rtl]) [_nghost-%COMP%]:last-child :first-child:not(:only-of-type){border-top-right-radius:0;border-bottom-right-radius:0}html:not([dir=rtl]).input-group [_nghost-%COMP%]:last-child :not(:first-child):not(.dropdown-menu), html:not([dir=rtl]) .input-group [_nghost-%COMP%]:last-child :not(:first-child):not(.dropdown-menu), .input-group html:not([dir=rtl]) [_nghost-%COMP%]:last-child :not(:first-child):not(.dropdown-menu){margin-left:-1px;border-top-left-radius:0;border-bottom-left-radius:0}[dir=rtl] .input-group [_nghost-%COMP%]{direction:rtl}[dir=rtl] .input-group [_nghost-%COMP%]:first-child :first-child{border-top-left-radius:0;border-bottom-left-radius:0}[dir=rtl] .input-group [_nghost-%COMP%]:first-child :not(:first-child):not(.dropdown-menu){margin-right:-1px;border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .input-group [_nghost-%COMP%]:first-child :not(:first-child):not(.dropdown-menu):not(:only-of-type){border-top-left-radius:0;border-bottom-left-radius:0}[dir=rtl] .input-group [_nghost-%COMP%]:last-child :first-child{border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .input-group [_nghost-%COMP%]:last-child :first-child:not(:only-of-type){border-top-left-radius:0;border-bottom-left-radius:0}[dir=rtl] .input-group [_nghost-%COMP%]:last-child :not(:first-child):not(.dropdown-menu){margin-right:-1px;border-top-right-radius:0;border-bottom-right-radius:0}"]});let t=e;return t})();var ld=(()=>{var e;let r=class r{constructor(n,o){T(this,e);this.dropdownService=n,this.dropdown=o,this.autoClose=!0,D(this,e,A(H)),this._tabIndex=null}focus(n){u(this,e)?.nativeElement?.focus()}getLabel(){return u(this,e)?.nativeElement?.textContent.trim()}get ariaCurrent(){return this.active?"true":null}get hostClasses(){return{"dropdown-item":!0,active:this.active,disabled:this.disabled}}set tabIndex(n){this._tabIndex=n}get tabIndex(){return this.disabled?"-1":this._tabIndex}get isDisabled(){return this.disabled||null}onClick(n){this.autoClose&&this.dropdownService.toggle({visible:"toggle",dropdown:this.dropdown})}onKeyUp(n){n.key==="Enter"&&this.autoClose&&this.dropdownService.toggle({visible:!1,dropdown:this.dropdown})}};e=new WeakMap,r.\u0275fac=function(o){return new(o||r)(v(Ht),v(Mt,8))},r.\u0275dir=k({type:r,selectors:[["","cDropdownItem",""]],hostAttrs:[1,"dropdown-item"],hostVars:5,hostBindings:function(o,s){o&1&&V("click",function(c){return s.onClick(c)})("keyup",function(c){return s.onKeyUp(c)}),o&2&&(N("aria-current",s.ariaCurrent)("tabindex",s.tabIndex)("aria-disabled",s.isDisabled),E(s.hostClasses))},inputs:{active:"active",autoClose:"autoClose",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cDropdownItem"],standalone:!0});let t=r;return t})();var jy=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=k({type:e,selectors:[["","cDropdownItemPlain",""]],hostAttrs:[1,"dropdown-item-text"],standalone:!0});let t=e;return t})();var By=(()=>{let e=class e{constructor(i,n){this.dropdownService=i,this.dropdown=n,this._tabIndex=null}ngAfterViewInit(){this.dropdownComponent&&(this.dropdown=this.dropdownComponent,this.dropdownService=this.dropdownComponent?.dropdownService)}get hostClasses(){return{disabled:this.disabled}}set tabIndex(i){this._tabIndex=i}get tabIndex(){return this.disabled?"-1":this._tabIndex}get isDisabled(){return this.disabled||null}onClick(i){!this.disabled&&this.dropdownService.toggle({visible:!1,dropdown:this.dropdown})}onKeyUp(i){i.key==="Enter"&&!this.disabled&&this.dropdownService.toggle({visible:!1,dropdown:this.dropdown})}};e.\u0275fac=function(n){return new(n||e)(v(Ht),v(Mt,8))},e.\u0275dir=k({type:e,selectors:[["","cDropdownClose",""]],hostVars:4,hostBindings:function(n,o){n&1&&V("click",function(a){return o.onClick(a)})("keyup",function(a){return o.onKeyUp(a)}),n&2&&(N("tabindex",o.tabIndex)("aria-disabled",o.isDisabled),E(o.hostClasses))},inputs:{disabled:"disabled",dropdownComponent:"dropdownComponent",tabIndex:"tabIndex"},exportAs:["cDropdownClose"],standalone:!0});let t=e;return t})();var Ly=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=z({type:e}),e.\u0275inj=U({providers:[Ht]});let t=e;return t})();var Hy=(()=>{let e=class e{constructor(){this.validated=!1}get hostClasses(){return{"was-validated":this.validated}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=k({type:e,selectors:[["form","cForm",""]],hostVars:2,hostBindings:function(n,o){n&2&&E(o.hostClasses)},inputs:{validated:[2,"validated","validated",S]},standalone:!0,features:[$]});let t=e;return t})();var $y=["*"],Uy=(()=>{let e=class e{constructor(){this.tooltip=!1}get hostClasses(){return{"valid-feedback":this.valid===!0&&!this.tooltip,"valid-tooltip":this.valid===!0&&this.tooltip,"invalid-feedback":this.valid!==!0&&!this.tooltip,"invalid-tooltip":this.valid!==!0&&this.tooltip}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=x({type:e,selectors:[["c-form-feedback"]],hostVars:2,hostBindings:function(n,o){n&2&&E(o.hostClasses)},inputs:{tooltip:[2,"tooltip","tooltip",S],valid:"valid"},standalone:!0,features:[$,w],ngContentSelectors:$y,decls:1,vars:0,template:function(n,o){n&1&&(R(),O(0))},encapsulation:2});let t=e;return t})();var zy=["*"],Wy=(()=>{let e=class e{constructor(){this.sizing=""}get hostClasses(){return{"input-group":!0,[`input-group-${this.sizing}`]:!!this.sizing}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=x({type:e,selectors:[["c-input-group"]],hostAttrs:[1,"input-group"],hostVars:2,hostBindings:function(n,o){n&2&&E(o.hostClasses)},inputs:{sizing:"sizing"},standalone:!0,features:[w],ngContentSelectors:zy,decls:1,vars:0,template:function(n,o){n&1&&(R(),O(0))},encapsulation:2});let t=e;return t})();var es=(()=>{let e=class e{constructor(){this.sizing=""}get hostClasses(){return{"form-select":!0,[`form-select-${this.sizing}`]:!!this.sizing,"is-valid":this.valid===!0,"is-invalid":this.valid===!1}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=k({type:e,selectors:[["select","cSelect",""]],hostAttrs:[1,"form-select"],hostVars:2,hostBindings:function(n,o){n&2&&E(o.hostClasses)},inputs:{sizing:"sizing",valid:"valid"},standalone:!0});let t=e;return t})();var ts=(()=>{let e=class e{constructor(){this.col="",this.sizing=""}get hostClasses(){return{"form-label":!0,"col-form-label":this.col==="col",[`col-form-label-${this.sizing}`]:!!this.sizing&&this.col==="col"}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=k({type:e,selectors:[["","cLabel",""]],hostAttrs:[1,"form-label"],hostVars:2,hostBindings:function(n,o){n&2&&E(o.hostClasses)},inputs:{col:[0,"cLabel","col"],sizing:"sizing"},standalone:!0});let t=e;return t})();var cd=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=k({type:e,selectors:[["label","cFormCheckLabel",""]],hostAttrs:[1,"form-check-label"],standalone:!0});let t=e;return t})();var Gy=["*"],Ky=(()=>{var e;let r=class r{constructor(){T(this,e);this.inline=!1,this.reverse=!1,this.sizing="",this.switch=!1,D(this,e,!0)}get hostClasses(){return{"form-check":this.formCheckClass,"form-switch":this.switch,[`form-switch-${this.sizing}`]:this.switch&&!!this.sizing,"form-check-inline":this.inline,"form-check-reverse":this.reverse}}get formCheckClass(){return u(this,e)}ngAfterContentInit(){D(this,e,!!this.formCheckLabel)}};e=new WeakMap,r.\u0275fac=function(o){return new(o||r)},r.\u0275cmp=x({type:r,selectors:[["c-form-check"]],contentQueries:function(o,s,a){if(o&1&&De(a,cd,5),o&2){let c;J(c=ee())&&(s.formCheckLabel=c.first)}},hostVars:2,hostBindings:function(o,s){o&2&&E(s.hostClasses)},inputs:{inline:[2,"inline","inline",S],reverse:[2,"reverse","reverse",S],sizing:"sizing",switch:[2,"switch","switch",S]},exportAs:["cFormCheck"],standalone:!0,features:[$,w],ngContentSelectors:Gy,decls:1,vars:0,template:function(o,s){o&1&&(R(),O(0))},encapsulation:2});let t=r;return t})();var is=(()=>{let e=class e{set indeterminate(i){let n=i;if(this._indeterminate!==n){this._indeterminate=n;let o=this.hostElement.nativeElement;n&&this.renderer.setProperty(o,"checked",!1),this.renderer.setProperty(o,"indeterminate",n)}}get indeterminate(){return this._indeterminate}get hostClasses(){return{"form-check-input":!0,"is-valid":this.valid===!0,"is-invalid":this.valid===!1}}set checked(i){let n=i,o=this.hostElement?.nativeElement;o&&this.renderer.setProperty(o,"checked",n)}get checked(){return this.hostElement?.nativeElement?.checked}constructor(i,n){this.renderer=i,this.hostElement=n,this.type="checkbox",this._indeterminate=!1}};e.\u0275fac=function(n){return new(n||e)(v(se),v(H))},e.\u0275dir=k({type:e,selectors:[["input","cFormCheckInput",""]],hostAttrs:[1,"form-check-input"],hostVars:3,hostBindings:function(n,o){n&2&&(N("type",o.type),E(o.hostClasses))},inputs:{type:"type",indeterminate:[2,"indeterminate","indeterminate",S],valid:"valid",checked:[2,"checked","checked",S]},standalone:!0,features:[$]});let t=e;return t})();var Qi=(()=>{let e=class e{constructor(i){this.hostElement=i,this.sizing="",this.type="text",this.plaintext=!1}get hostClasses(){let i=this.type==="range";return{"form-control":!i&&!this.plaintext,"form-control-plaintext":!i&&this.plaintext,"form-control-color":this.type==="color","form-range":i,[`form-control-${this.sizing}`]:!!this.sizing&&!i,"is-valid":this.valid===!0,"is-invalid":this.valid===!1}}get hostTag(){return this.hostElement.nativeElement.tagName}ngOnInit(){let i=this.hostTag.toLowerCase();i!=="input"&&i!=="textarea"&&console.warn(`CoreUI [cFormControl] works with '' and '