1import{a as ta,b as Kt,c as Ai,d as Sn}from"./chunk-TICZJ3OB.js";import{a as wn}from"./chunk-ESKAF6IH.js";import{A as Si,D as Ce,E as He,F as nt,G as vn,H as bn,I as wi,J as ea,K as Et,M as yn,P as Cn,c as et,d as ve,e as Za,g as W,h as ut,i as Qi,j as be,k as Ja,l as en,q as _n,s as Pe,t as Le,u as Di,v as Ne,w as Yt,x as xt,y as fn,z as Be}from"./chunk-X6WXLEJ5.js";import{a as Dn}from"./chunk-MLVA2BKI.js";import{b as rt,g as ot,h as st,l as ki}from"./chunk-SUMO55QQ.js";import{a as gn}from"./chunk-QCZIRXSN.js";import{c as Re}from"./chunk-CZQPPCI2.js";import{b as Ci}from"./chunk-AKJJZDJ4.js";import{$ as bi,A as zi,B as qi,C as Ua,D as ci,E as Xa,F as ce,G as Wi,H as Gi,I as Je,N as tt,O as ke,P as Xi,Q as _i,R as Y,S as ye,T as jt,U as pn,V as mn,W as fi,X as gi,Y as un,Z as it,_ as vi,a as oi,aa as It,c as si,ca as hn,d as Ha,e as ja,ea as Ve,f as te,fa as yi,j as Ya,l as Ht,m as mt,n as li,p as Ka,q as za,r as qa,s as Wa,t as Ga,u as qe,v as Qa,w as $a,x as di,y as St,z as Ki}from"./chunk-G7MMMJCH.js";import{c as Zi,d as B}from"./chunk-W74VQ2ZW.js";import{a as Mt,b as at,c as Ji}from"./chunk-7IEM6YIL.js";import{A as ln,B as hi,J as dn,K as cn,P as Ui,c as At,e as kt,f as tn,g as ui,h as $i,i as Oe,m as an,n as nn,t as Fe,u as rn,y as on,z as sn}from"./chunk-ROAQJP46.js";import{$b as D,Ab as Va,B as Jt,Ba as _,Ca as A,Cb as Xe,Da as j,Dc as bt,Ea as R,Eb as ai,F as ne,Fb as ni,Gb as ri,H as Ye,Hb as m,He as pi,Ia as oe,Ib as u,Ja as y,Jb as v,Jc as Ba,Ka as C,Kb as L,Kc as z,La as Lt,Lb as N,Ma as Ta,Mb as he,Mc as M,Na as Te,Nb as T,Nc as yt,Oa as ht,Ob as Ra,P as ka,Pb as Pa,Qb as g,Qc as Ct,R as Se,Rb as La,Sa as P,Sb as p,T as Ia,Ta as f,Tb as we,U as Ma,Ub as _e,Wc as ee,Xa as Oa,Xc as Dt,Yc as fe,Zb as se,_a as Z,_b as E,a as $,ac as S,bc as J,bd as Ze,c as K,cc as V,cd as ge,d as Pt,dc as Ae,eb as d,ec as le,fb as c,gb as Fa,hb as Nt,ic as _t,ja as re,jc as ft,jd as Q,ka as Ke,kc as gt,la as dt,lc as de,mc as G,na as ei,nb as Ue,ob as ct,oc as vt,oh as mi,p as Qe,pb as ti,pc as X,ph as wt,qc as pt,ra as $e,rb as x,rc as Na,sa as xe,sb as ue,ta as H,tb as h,ua as U,ub as w,v as ae,va as ze,vb as l,w as Aa,wa as Ee,wb as ii,xb as q,ya as xa,yc as k,z as Zt,za as Ea,zb as Bt,zc as I}from"./chunk-ADQO3XXX.js";import{a as wa}from"./chunk-3JMZ37NM.js";var tl=(()=>{let a=class a extends yn{constructor(){super(...arguments),this.enableTooltip=!0}afterOverlayAttached(e){super.afterOverlayAttached(e),e.instance.text=this.tooltipText}};a.\u0275fac=(()=>{let e;return function(i){return(e||(e=Te(a)))(i||a)}})(),a.\u0275dir=R({type:a,selectors:[["","sipTextTooltip",""]],inputs:{enableTooltip:[_.None,"sipTextTooltip","enableTooltip"],tooltipText:"tooltipText"},features:[x]});let n=a;return n})();var An=(()=>{let a=class a{};a.\u0275fac=function(t){return new(t||a)},a.\u0275mod=j({type:a}),a.\u0275inj=H({imports:[Q,ki,yi,Je,wt]});let n=a;return n})();var wl=(()=>{let a=class a extends ot{focusOut(){let e=`[id='${this.selector}'][aria-hidden]`;this._keepOpen||setTimeout(()=>{document.activeElement.closest(e)||this.ariaService.setState(this.selector,!0)},150)}close(){this.ariaService.setState(this.selector,!0)}focusTarget(e){let t=`[id='${this.selector}'][aria-hidden]`;this.focusFirstFocusableElement(t),e.preventDefault(),e.stopImmediatePropagation()}toggleState(e){if(!this.selector)return;(!this.ariaService.toggleState(this.selector)||this.layoutService.isMobile)&&e.preventDefault()}open(e){this.selector&&(e.preventDefault(),this.ariaService.toggleState(this.selector))}constructor(e,t,i,r){super(e,t,i,["aria-expanded"],r)}focusFirstFocusableElement(e){let t=document.querySelectorAll(e);if(t.length!==1){Ba()&&console.warn("target selector match wrong number of elements",t.length);return}let i=this.getAllFocusableChildren(t[0])[0];i&&i.focus()}updateDom(e){this.attributes.forEach(t=>{this.renderer.setAttribute(this.el.nativeElement,t,(!e).toString())})}ngOnInit(){this.selector&&(this.renderer.setAttribute(this.el.nativeElement,"aria-controls",this.selector),super.ngOnInit(),this._keepOpen=this.selectorObject===void 0||typeof this.selectorObject=="string"?!1:!!this.selectorObject.keepOpen)}};a.\u0275fac=function(t){return new(t||a)(c(rt),c(P),c(Ue),c(st))},a.\u0275dir=R({type:a,selectors:[["","sip-aria-controls",""]],hostBindings:function(t,i){t&1&&g("focusout",function(){return i.focusOut()})("keydown.escape",function(){return i.close()})("keydown.arrowdown",function(s){return i.focusTarget(s)})("click",function(s){return i.toggleState(s)})("keydown.space",function(s){return i.open(s)})},inputs:{selectorObject:[_.None,"sip-aria-controls","selectorObject"]},features:[x]});let n=a;return n})();var Il=(()=>{let a=class a extends ot{set selectorObj(e){this.selectorObject=e,e&&typeof e!="string"&&(this._keepOpen=e.keepOpen,this._keepOpen||this.overrideFocus())}constructor(e,t,i,r,s){super(e,t,i,["aria-hidden"],r),this.winRef=s,this._document=this.winRef.document}
1get currentActiveElement(){return this._document.activeElement}handleEscape(e){e.preventDefault(),e.stopImmediatePropagation(),this.close(e.target)}close(e){let t=this.findClosestController(e);t?(t.focus(),this.ariaService.setState(t.getAttribute("aria-controls"),!0)):this.ariaService.setState(this.selector,!0)}findClosestController(e){let t=e.id,i=Array.from(this._document.querySelectorAll(`[aria-controls="${t}"]`)).find(s=>s.offsetParent!=null),r=e.parentElement;return typeof i>"u"&&r&&typeof r.id<"u"?this.findClosestController(r):i}checkFocus(){setTimeout(()=>{!this.el.nativeElement.contains(this._document.activeElement)&&this._document.activeElement.getAttribute("aria-controls")!==this.selector&&this.overrideFocus()},150)}overrideFocus(){this._keepOpen||this.ariaService.setState(this.selector,!0)}nextFocus(e){let t=this.getAllFocusableChildren(),i=t.indexOf(this.currentActiveElement),r=i+1>=t.length?0:i+1;t[r].focus(),e.preventDefault(),e.stopImmediatePropagation()}prevFocus(e){let t=this.getAllFocusableChildren(),i=t.indexOf(this.currentActiveElement),r=i-1<0?t.length-1:i-1;t[r].focus(),e.preventDefault(),e.stopImmediatePropagation()}updateDom(e){super.updateDom(e),e?(this.renderer.setAttribute(this.el.nativeElement,"hidden",e.toString()),this.renderer.setAttribute(this.el.nativeElement,"aria-hidden",e.toString())):(this.renderer.removeAttribute(this.el.nativeElement,"hidden"),this.renderer.setAttribute(this.el.nativeElement,"aria-hidden",e.toString()))}ngOnInit(){super.ngOnInit()}};a.\u0275fac=function(t){return new(t||a)(c(rt),c(P),c(Ue),c(st),c(pi))},a.\u0275dir=R({type:a,selectors:[["","sip-aria-hidden",""]],hostBindings:function(t,i){t&1&&g("keydown.escape",function(s){return i.handleEscape(s)})("focusout",function(){return i.checkFocus()})("keydown.arrowdown",function(s){return i.nextFocus(s)})("keydown.arrowup",function(s){return i.prevFocus(s)})},inputs:{selectorObj:[_.None,"sip-aria-hidden","selectorObj"]},features:[x]});let n=a;return n})();var El=(()=>{let a=class a extends ot{close(){this.layoutService.isMobile||this.ariaService.setState(this.selector,!1)}open(){this.layoutService.isMobile||this.ariaService.setState(this.selector,!0)}constructor(e,t,i,r){super(e,t,i,[],r)}};a.\u0275fac=function(t){return new(t||a)(c(rt),c(P),c(Ue),c(st))},a.\u0275dir=R({type:a,selectors:[["","sip-aria-mouse-events",""]],hostBindings:function(t,i){t&1&&g("mouseenter",function(){return i.close()})("mouseleave",function(){return i.open()})},inputs:{selectorObject:[_.None,"sip-aria-mouse-events","selectorObject"]},features:[x]});let n=a;return n})();var Fl=(()=>{let a=class a extends ot{toggleState(e){!this.selector||this.hasExceptionElementsFocused(e.target.id)||this.ariaService.toggleState(this.selector)}behaveAsClick(e){e.target instanceof HTMLButtonElement&&(e.preventDefault(),e.target.click())}close(){this.ariaService.setState(this.selector,!0)}open(){this.ariaService.setState(this.selector,!1)}hasExceptionElementsFocused(e){return this._preventToggleOnFocusedElements.has(e)}constructor(e,t,i,r){super(e,t,i,["aria-expanded"],r),this._preventToggleOnFocusedElements=new Set}ngOnInit(){super.ngOnInit(),this.selectorObject!==void 0&&typeof this.selectorObject!="string"&&(this._preventToggleOnFocusedElements=new Set(this.selectorObject.preventToggleOnFocusedElements))}};a.\u0275fac=function(t){return new(t||a)(c(rt),c(P),c(Ue),c(st))},a.\u0275dir=R({type:a,selectors:[["","sip-postal-code-aria-controls",""]],hostBindings:function(t,i){t&1&&g("click",function(s){return i.toggleState(s)})("touchstart",function(s){return i.behaveAsClick(s)})("mouseleave",function(){return i.close()})("mouseenter",function(){return i.open()})},inputs:{selectorObject:[_.None,"sip-postal-code-aria-controls","selectorObject"]},features:[x]});let n=a;return n})();var kn=(()=>{let a=class a{};a.\u0275fac=function(t){return new(t||a)},a.\u0275mod=j({type:a}),a.\u0275inj=H({imports:[Q]});let n=a;return n})();var fr=["panel"],gr=["*"];function vr(n,a){if(n&1){let o=T();m(0,"div",1,0),g("@panelAnimation.done",function(t){y(o);let i=p();return C(i._animationDone.next(t))}),_e(2),u()}if(n&2){let o=a.id,e=p();Bt(e._classList),q("mat-mdc-autocomplete-visible",e.showPanel)("mat-mdc-autocomplete-hidden",!e.showPanel)("mat-primary",e._color==="primary")("mat-accent",e._color==="accent")("mat-warn",e._color==="warn"),l("id",e.id)("@panelAnimation",e.isOpen?"visible":"hidden"),w("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby(o))}}
1var br=et("panelAnimation",[ut("void, hidden",W({opacity:0,transform:"scaleY(0.8)"})),be(":enter, hidden => visible",[Za([ve("0.03s linear",W({opacity:1})),ve("0.12s cubic-bezier(0, 0, 0.2, 1)",W({transform:"scaleY(1)"}))])]),be(":leave, visible => hidden",[ve("0.075s linear",W({opacity:0}))])]),yr=0,ra=class{constructor(a,o){this.source=a,this.option=o}},Mn=new U("mat-autocomplete-default-options",{providedIn:"root",factory:Cr});function Cr(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1}}var xn=(()=>{let a=class a{get isOpen(){return this._isOpen&&this.showPanel}_setColor(e){this._color=e,this._changeDetectorRef.markForCheck()}set classList(e){this._classList=e,this._elementRef.nativeElement.className=""}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}constructor(e,t,i,r){this._changeDetectorRef=e,this._elementRef=t,this._defaults=i,this._activeOptionChanges=$.EMPTY,this._animationDone=new f,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new f,this.opened=new f,this.closed=new f,this.optionActivated=new f,this.id=`mat-autocomplete-${yr++}`,this.inertGroups=r?.SAFARI||!1,this.autoActiveFirstOption=!!i.autoActiveFirstOption,this.autoSelectActiveOption=!!i.autoSelectActiveOption,this.requireSelection=!!i.requireSelection,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}ngAfterContentInit(){this._keyManager=new li(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(e=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[e]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe(),this._animationDone.complete()}_setScrollTop(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._changeDetectorRef.markForCheck()}_emitSelectEvent(e){let t=new ra(this,e);this.optionSelected.emit(t)}_getPanelAriaLabelledby(e){if(this.ariaLabel)return null;let t=e?e+" ":"";return this.ariaLabelledby?t+this.ariaLabelledby:e}_skipPredicate(){return!1}};a.\u0275fac=function(t){return new(t||a)(c(z),c(P),c(Mn),c(oi))},a.\u0275cmp=A({type:a,selectors:[["mat-autocomplete"]],contentQueries:function(t,i,r){if(t&1&&(se(r,it,5),se(r,gi,5)),t&2){let s;D(s=S())&&(i.options=s),D(s=S())&&(i.optionGroups=s)}},viewQuery:function(t,i){if(t&1&&(E(Nt,7),E(fr,5)),t&2){let r;D(r=S())&&(i.template=r.first),D(r=S())&&(i.panel=r.first)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{ariaLabel:[_.None,"aria-label","ariaLabel"],ariaLabelledby:[_.None,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:[_.HasDecoratorInputTransform,"autoActiveFirstOption","autoActiveFirstOption",M],autoSelectActiveOption:[_.HasDecoratorInputTransform,"autoSelectActiveOption","autoSelectActiveOption",M],requireSelection:[_.HasDecoratorInputTransform,"requireSelection","requireSelection",M],panelWidth:"panelWidth",disableRipple:[_.HasDecoratorInputTransform,"disableRipple","disableRipple",M],classList:[_.None,"class","classList"],hideSingleSelectionIndicator:[_.HasDecoratorInputTransform,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",M]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],standalone:!0,features:[de([{provide:fi,useExisting:a}]),ue,G],ngContentSelectors:gr,decls:1,vars:0,consts:[["panel",""],["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id"]],template:function(t,i){t&1&&(we(),h(0,vr,3,16,"ng-template"))},styles:["div.mat-mdc-autocomplete-panel{width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;box-sizing:border-box;position:static;border-radius:var(--mat-autocomplete-container-shape);box-shadow:var(--mat-autocomplete-container-elevation-shadow);background-color:var(--mat-autocomplete-background-color)}.cdk-high-contrast-active div.mat-mdc-autocomplete-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden;pointer-events:none}mat-autocomplete{display:none}"],encapsulation:2,data:{animation:[br]},changeDetection:0});let n=a;return n})();var Dr={provide:At,useExisting:$e(()=>oa),multi:!0};var En=new U("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{let n=Ee(ce);return()=>n.scrollStrategies.reposition()}});function Sr(n){return()=>n.scrollStrategies.reposition()}var wr={provide:En,deps:[ce],useFactory:Sr},oa=(()=>{let a=class a{constructor(e,t,i,r,s,b,F,Ge,Ni,Xt,Bi){this._element=e,this._overlay=t,this._viewContainerRef
1=i,this._zone=r,this._changeDetectorRef=s,this._dir=F,this._formField=Ge,this._document=Ni,this._viewportRuler=Xt,this._defaults=Bi,this._componentDestroyed=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=$.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new K,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._aboveClass="mat-mdc-autocomplete-panel-above",this._overlayAttached=!1,this.optionSelections=Zt(()=>{let ie=this.autocomplete?this.autocomplete.options:null;return ie?ie.changes.pipe(re(ie),Ke(()=>ne(...ie.map(Hi=>Hi.onSelectionChange)))):this._zone.onStable.pipe(Se(1),Ke(()=>this.optionSelections))}),this._handlePanelKeydown=ie=>{(ie.keyCode===27&&!te(ie)||ie.keyCode===38&&te(ie,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),ie.stopPropagation(),ie.preventDefault())},this._trackedModal=null,this._scrollStrategy=b}ngAfterViewInit(){let e=this._getWindow();typeof e<"u"&&this._zone.runOutsideAngular(()=>e.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){let e=this._getWindow();typeof e<"u"&&e.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete(),this._clearFromModal()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._openPanelInternal()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._latestOpeningTrigger===this&&(this.autocomplete._isOpen=!1,this.autocomplete._latestOpeningTrigger=null),this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._updatePanelState(),this._componentDestroyed||this._changeDetectorRef.detectChanges(),this._trackedModal&&mt(this._trackedModal,"aria-owns",this.autocomplete.id))}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return ne(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Ye(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Ye(()=>this._overlayAttached)):Qe()).pipe(ae(e=>e instanceof un?e:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return ne(Jt(this._document,"click"),Jt(this._document,"auxclick"),Jt(this._document,"touchend")).pipe(Ye(e=>{let t=ja(e),i=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,r=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&t!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!i||!i.contains(t))&&(!r||!r.contains(t))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(t)}))}writeValue(e){Promise.resolve(null).then(()=>this._assignOptionValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){let t=e.keyCode,i=te(e);if(t===27&&!i&&e.preventDefault(),this._valueOnLastKeydown=this._element.nativeElement.value,this.activeOption&&t===13&&this.panelOpen&&!i)this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){let r=this.autocomplete._keyManager.activeItem,s=t===38||t===40;t===9||s&&!i&&this.panelOpen?this.autocomplete._keyManager.onKeydown(e):s&&this._canOpen()&&this._openPanelInternal(this._valueOnLastKeydown),(s||this.autocomplete._keyManager.activeItem!==r)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pe
1ndingAutoselectedOption||(this._valueBeforeAutoSelection=this._valueOnLastKeydown),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(e){let t=e.target,i=t.value;if(t.type==="number"&&(i=i==""?null:parseFloat(i)),this._previousValue!==i){if(this._previousValue=i,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(i),!i)this._clearPreviousSelectedOption(null,!1);else if(this.panelOpen&&!this.autocomplete.requireSelection){let r=this.autocomplete.options?.find(s=>s.selected);if(r){let s=this._getDisplayValue(r.value);i!==s&&r.deselect(!1)}}if(this._canOpen()&&this._document.activeElement===e.target){let r=this._valueOnLastKeydown??this._element.nativeElement.value;this._valueOnLastKeydown=null,this._openPanelInternal(r)}}}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(this._previousValue),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this._openPanelInternal()}_floatLabel(e=!1){this._formField&&this._formField.floatLabel==="auto"&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){let e=this._zone.onStable.pipe(Se(1)),t=this.autocomplete.options.changes.pipe(ei(()=>this._positionStrategy.reapplyLastPosition()),Ia(0));return ne(e,t).pipe(Ke(()=>(this._zone.run(()=>{let i=this.panelOpen;this._resetActiveItem(),this._updatePanelState(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),i!==this.panelOpen&&(this.panelOpen?this._emitOpened():this.autocomplete.closed.emit())}),this.panelClosingActions)),Se(1)).subscribe(i=>this._setValueAndClose(i))}_emitOpened(){this.autocomplete.opened.emit()}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_getDisplayValue(e){let t=this.autocomplete;return t&&t.displayWith?t.displayWith(e):e}_assignOptionValue(e){let t=this._getDisplayValue(e);e==null&&this._clearPreviousSelectedOption(null,!1),this._updateNativeInputValue(t??"")}_updateNativeInputValue(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e}_setValueAndClose(e){let t=this.autocomplete,i=e?e.source:this._pendingAutoselectedOption;i?(this._clearPreviousSelectedOption(i),this._assignOptionValue(i.value),this._onChange(i.value),t._emitSelectEvent(i),this._element.nativeElement.focus()):t.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),t._animationDone?t._animationDone.pipe(Se(1)).subscribe(()=>this._onChange(null)):this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(e,t){this.autocomplete?.options?.forEach(i=>{i!==e&&i.selected&&i.deselect(t)})}_openPanelInternal(e=this._element.nativeElement.value){if(this._attachOverlay(e),this._floatLabel(),this._trackedModal){let t=this.autocomplete.id;Ht(this._trackedModal,"aria-owns",t)}}_attachOverlay(e){this.autocomplete;let t=this._overlayRef;t?(this._positionStrategy.setOrigin(this._getConnectedElement()),t.updateSize({width:this._getPanelWidth()})):(this._portal=new zi(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),t=this._overlay.create(this._getOverlayConfig()),this._overlayRef=t,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&t&&t.updateSize({width:this._getPanelWidth()})})),t&&!t.hasAttached()&&(t.attach(this._portal),this._valueOnAttach=e,this._valueOnLastKeydown=null,this._closingActionsSubscription=this._subscribeToClosingActions());let i=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._latestOpeningTrigger=this,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this._applyModalPanelOwnership(),this.panelOpen&&i!==this.panelOpen&&this._emitOpened()}_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){let e=this._overlayRef;
1this._keydownSubscription||(this._keydownSubscription=e.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=e.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=null}_getOverlayConfig(){return new ci({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){let e=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}_setStrategyPositions(e){let t=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],i=this._aboveClass,r=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:i},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:i}],s;this.position==="above"?s=r:this.position==="below"?s=t:s=[...t,...r],e.withPositions(s)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){let e=this.autocomplete;if(e.autoActiveFirstOption){let t=-1;for(let i=0;i<e.options.length;i++)if(!e.options.get(i).disabled){t=i;break}e._keyManager.setActiveItem(t)}else e._keyManager.setActiveItem(-1)}_canOpen(){let e=this._element.nativeElement;return!e.readOnly&&!e.disabled&&!this.autocompleteDisabled}_getWindow(){return this._document?.defaultView||window}_scrollToOption(e){let t=this.autocomplete,i=vi(e,t.options,t.optionGroups);if(e===0&&i===1)t._setScrollTop(0);else if(t.panel){let r=t.options.toArray()[e];if(r){let s=r._getHostElement(),b=bi(s.offsetTop,s.offsetHeight,t._getScrollTop(),t.panel.nativeElement.offsetHeight);t._setScrollTop(b)}}}_applyModalPanelOwnership(){let e=this._element.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;let t=this.autocomplete.id;this._trackedModal&&mt(this._trackedModal,"aria-owns",t),Ht(e,"aria-owns",t),this._trackedModal=e}_clearFromModal(){if(this._trackedModal){let e=this.autocomplete.id;mt(this._trackedModal,"aria-owns",e),this._trackedModal=null}}};a.\u0275fac=function(t){return new(t||a)(c(P),c(ce),c(ti),c(ct),c(z),c(En),c(qe,8),c(xt,9),c(Ct,8),c(di),c(Mn,8))},a.\u0275dir=R({type:a,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(t,i){t&1&&g("focusin",function(){return i._handleFocus()})("blur",function(){return i._onTouched()})("input",function(s){return i._handleInput(s)})("keydown",function(s){return i._handleKeydown(s)})("click",function(){return i._handleClick()}),t&2&&w("autocomplete",i.autocompleteAttribute)("role",i.autocompleteDisabled?null:"combobox")("aria-autocomplete",i.autocompleteDisabled?null:"list")("aria-activedescendant",i.panelOpen&&i.activeOption?i.activeOption.id:null)("aria-expanded",i.autocompleteDisabled?null:i.panelOpen.toString())("aria-controls",i.autocompleteDisabled||!i.panelOpen||i.autocomplete==null?null:i.autocomplete.id)("aria-haspopup",i.autocompleteDisabled?null:"listbox")},inputs:{autocomplete:[_.None,"matAutocomplete","autocomplete"],position:[_.None,"matAutocompletePosition","position"],connectedTo:[_.None,"matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:[_.None,"autocomplete","autocompleteAttribute"],autocompleteDisabled:[_.HasDecoratorInputTransform,"matAutocompleteDisabled","autocompleteDisabled",M]},exportAs:["matAutocompleteTrigger"],standalone:!0,features:[de([Dr]),ue,oe]});let n=a;return n})(),Tn=(()=>{let a=class a{};a.\u0275fac=function(t){return new(t||a)},a.\u0275mod=j({type:a}),a.\u0275inj=H({providers:[wr],imports:[Je,It,ke,Q,St,It,ke]});let n=a;return n})();var Ir=["input"],Mr=["formField"],xr=["*"],On=0,Ii=class{constructor(a,o){this.source=a,this.value=o}},Er={provide:At,useExisting:$e(()=>sa),multi:!0}
1,Fn=new U("MatRadioGroup"),Tr=new U("mat-radio-default-options",{providedIn:"root",factory:Or});function Or(){return{color:"accent"}}var sa=(()=>{let a=class a{get name(){return this._name}set name(e){this._name=e,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(e){this._labelPosition=e==="before"?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(e){this._selected=e,this.value=e?e.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._markRadiosForCheck()}get required(){return this._required}set required(e){this._required=e,this._markRadiosForCheck()}constructor(e){this._changeDetector=e,this._value=null,this._name=`mat-radio-group-${On++}`,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new f}ngAfterContentInit(){this._isInitialized=!0,this._buttonChanges=this._radios.changes.subscribe(()=>{this.selected&&!this._radios.find(e=>e===this.selected)&&(this._selected=null)})}ngOnDestroy(){this._buttonChanges?.unsubscribe()}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(e=>{e.name=this.name,e._markForCheck()})}_updateSelectedRadioFromValue(){let e=this._selected!==null&&this._selected.value===this._value;this._radios&&!e&&(this._selected=null,this._radios.forEach(t=>{t.checked=this.value===t.value,t.checked&&(this._selected=t)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new Ii(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(e=>e._markForCheck())}writeValue(e){this.value=e,this._changeDetector.markForCheck()}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetector.markForCheck()}};a.\u0275fac=function(t){return new(t||a)(c(z))},a.\u0275dir=R({type:a,selectors:[["mat-radio-group"]],contentQueries:function(t,i,r){if(t&1&&se(r,Mi,5),t&2){let s;D(s=S())&&(i._radios=s)}},hostAttrs:["role","radiogroup",1,"mat-mdc-radio-group"],inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:[_.HasDecoratorInputTransform,"disabled","disabled",M],required:[_.HasDecoratorInputTransform,"required","required",M]},outputs:{change:"change"},exportAs:["matRadioGroup"],standalone:!0,features:[de([Er,{provide:Fn,useExisting:a}]),ue]});let n=a;return n})(),Mi=(()=>{let a=class a{get checked(){return this._checked}set checked(e){this._checked!==e&&(this._checked=e,e&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!e&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),e&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this.radioGroup!==null&&(this.checked||(this.checked=this.radioGroup.value===e),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(e){this._labelPosition=e}get disabled(){return this._disabled||this.radioGroup!==null&&this.radioGroup.disabled}set disabled(e){this._setDisabled(e)}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(e){this._required=e}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(e){this._color=e}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(e,t,i,r,s,b,F,Ge){this._elementRef=t,this._changeDetector=i,this._focusMonitor=r,this._radioDispat
1cher=s,this._providerOverride=F,this._uniqueId=`mat-radio-${++On}`,this.id=this._uniqueId,this.disableRipple=!1,this.tabIndex=0,this.change=new f,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=e,this._noopAnimations=b==="NoopAnimations",Ge&&(this.tabIndex=yt(Ge,0))}focus(e,t){t?this._focusMonitor.focusVia(this._inputElement,t,e):this._inputElement.nativeElement.focus(e)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name),this._removeUniqueSelectionListener=this._radioDispatcher.listen((e,t)=>{e!==this.id&&t===this.name&&(this.checked=!1)})}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{!e&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new Ii(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(e){e.stopPropagation()}_onInputInteraction(e){if(e.stopPropagation(),!this.checked&&!this.disabled){let t=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),t&&this.radioGroup._emitChangeEvent())}}_onTouchTargetClick(e){this._onInputInteraction(e),this.disabled||this._inputElement.nativeElement.focus()}_setDisabled(e){this._disabled!==e&&(this._disabled=e,this._changeDetector.markForCheck())}_updateTabIndex(){let e=this.radioGroup,t;if(!e||!e.selected||this.disabled?t=this.tabIndex:t=e.selected===this?this.tabIndex:-1,t!==this._previousTabIndex){let i=this._inputElement?.nativeElement;i&&(i.setAttribute("tabindex",t+""),this._previousTabIndex=t)}}};a.\u0275fac=function(t){return new(t||a)(c(Fn,8),c(P),c(z),c(qa),c($a),c(Oa,8),c(Tr,8),ht("tabindex"))},a.\u0275cmp=A({type:a,selectors:[["mat-radio-button"]],viewQuery:function(t,i){if(t&1&&(E(Ir,5),E(Mr,7,P)),t&2){let r;D(r=S())&&(i._inputElement=r.first),D(r=S())&&(i._rippleTrigger=r.first)}},hostAttrs:[1,"mat-mdc-radio-button"],hostVars:15,hostBindings:function(t,i){t&1&&g("focus",function(){return i._inputElement.nativeElement.focus()}),t&2&&(w("id",i.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),q("mat-primary",i.color==="primary")("mat-accent",i.color==="accent")("mat-warn",i.color==="warn")("mat-mdc-radio-checked",i.checked)("_mat-animation-noopable",i._noopAnimations))},inputs:{id:"id",name:"name",ariaLabel:[_.None,"aria-label","ariaLabel"],ariaLabelledby:[_.None,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[_.None,"aria-describedby","ariaDescribedby"],disableRipple:[_.HasDecoratorInputTransform,"disableRipple","disableRipple",M],tabIndex:[_.HasDecoratorInputTransform,"tabIndex","tabIndex",e=>e==null?0:yt(e)],checked:[_.HasDecoratorInputTransform,"checked","checked",M],value:"value",labelPosition:"labelPosition",disabled:[_.HasDecoratorInputTransform,"disabled","disabled",M],required:[_.HasDecoratorInputTransform,"required","required",M],color:"color"},outputs:{change:"change"},exportAs:["matRadioButton"],standalone:!0,features:[ue,G],ngContentSelectors:xr,decls:13,vars:16,consts:[["formField",""],["input",""],["mat-internal-form-field","",3,"labelPosition"],[1,"mdc-radio"],[1,"mat-mdc-radio-touch-target",3,"click"],["type","radio",1,"mdc-radio__native-control",3,"change","id","checked","disabled","required"],[1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner-circle"],["mat-ripple","",1,"mat-radio-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mdc-label",3,"for"]],template:function(t,i){if(t&1){let r=T();we(),m(0,"div",2,0)(2,"div",3)(3,"div",4),g("click",function(b){return y(r),C(i._onTouchTargetClick(b))}
1),u(),m(4,"input",5,1),g("change",function(b){return y(r),C(i._onInputInteraction(b))}),u(),m(6,"div",6),v(7,"div",7)(8,"div",8),u(),m(9,"div",9),v(10,"div",10),u()(),m(11,"label",11),_e(12),u()()}t&2&&(l("labelPosition",i.labelPosition),d(2),q("mdc-radio--disabled",i.disabled),d(2),l("id",i.inputId)("checked",i.checked)("disabled",i.disabled)("required",i.required),w("name",i.name)("value",i.value)("aria-label",i.ariaLabel)("aria-labelledby",i.ariaLabelledby)("aria-describedby",i.ariaDescribedby),d(5),l("matRippleTrigger",i._rippleTrigger.nativeElement)("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",!0),d(2),l("for",i.inputId))},dependencies:[pn,hn],styles:['.mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color}.mdc-radio[hidden]{display:none}.mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0, 0);border-width:10px;border-style:solid;border-radius:50%;transition:transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1}.mdc-radio--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-radio--touch .mdc-radio__native-control{top:calc((40px - 48px) / 2);right:calc((40px - 48px) / 2);left:calc((40px - 48px) / 2);width:48px;height:48px}.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}@media screen and (forced-colors: active){.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring{border-color:CanvasText}}.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring::after{border-color:CanvasText}}.mdc-radio__native-control:checked+.mdc-radio__background,.mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__outer-circle{transition:border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio--disabled{cursor:default;pointer-events:none}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle{transform:scale(0.5);transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:disabled+.mdc-radio__background,[aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background{cursor:default}.mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12;transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-radio-button .mdc-radio{padding:calc((var(--mdc-radio-state-layer-size) - 20px) / 2)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-selected-icon-color)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner
1-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-disabled-selected-icon-color)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{opacity:var(--mdc-radio-disabled-selected-icon-opacity)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{opacity:var(--mdc-radio-disabled-selected-icon-opacity)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-unselected-icon-color)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{opacity:var(--mdc-radio-disabled-unselected-icon-opacity)}.mat-mdc-radio-button .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-focus-icon-color)}.mat-mdc-radio-button .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-focus-icon-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-hover-icon-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-hover-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-icon-color)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-pressed-icon-color)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-pressed-icon-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-hover-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-icon-color)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-pressed-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__background::before{top:calc(-1 * (var(--mdc-radio-state-layer-size) - 20px) / 2);left:calc(-1 * (var(--mdc-radio-state-layer-size) - 20px) / 2);width:var(--mdc-radio-state-layer-size);height:var(--mdc-radio-state-layer-size)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control{top:calc((var(--mdc-radio-state-layer-size) - var(--mdc-radio-state-layer-size)) / 2);right:calc((var(--mdc-radio-state-layer-size) - var(--mdc-radio-state-layer-size)) / 2);left:calc((var(--mdc-radio-state-layer-size) - var(--mdc-radio-state-layer-size)) / 2);width:var(--mdc-radio-state-layer-size);height:var(--mdc-radio-state-layer-size)}.mat-mdc-radio-button .mdc-radio .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:not([disabled]):not(:focus)~.mdc-radio__background::before{opacity:.04;transform:scale(1)}.mat-mdc-radio-button.mat-mdc-radio-checked .mdc-radio__background::before{background-color:var(--mat-radio-checked-ripple-color)}.mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element{background-color:var(--mat-radio-checked-ripple-color)}.mat-mdc-radio-button .mdc-radio--disabled+label{color:var(--mat-radio-disabled-label-color)}.mat-mdc-radio-button .mat-radio-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:50%}.mat-mdc-radio-button .mat-radio-ripple .mat-ripple-element{opacity:.14}.mat-mdc-radio-button .mat-radio-ripple::before{border-radius:50%}.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__background::before,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__outer-circle,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__inner
1-circle{transition:none !important}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:focus:enabled:not(:checked)~.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-focus-icon-color, black)}.mat-mdc-radio-button.cdk-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-radio-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-radio-touch-target-display)}[dir=rtl] .mat-mdc-radio-touch-target{left:0;right:50%;transform:translate(50%, -50%)}'],encapsulation:2,changeDetection:0});let n=a;return n})(),Vn=(()=>{let a=class a{};a.\u0275fac=function(t){return new(t||a)},a.\u0275mod=j({type:a}),a.\u0275inj=H({imports:[ke,Q,mn,Mi,ke]});let n=a;return n})();var Vr=["mat-calendar-body",""];function Rr(n,a){if(n&1&&(m(0,"tr",0)(1,"td",3),V(2),u()()),n&2){let o=p();d(),ii("padding-top",o._cellPadding)("padding-bottom",o._cellPadding),w("colspan",o.numCols),d(),le(" ",o.label," ")}}function Pr(n,a){if(n&1&&(m(0,"td",3),V(1),u()),n&2){let o=p(2);ii("padding-top",o._cellPadding)("padding-bottom",o._cellPadding),w("colspan",o._firstRowOffset),d(),le(" ",o._firstRowOffset>=o.labelMinRequiredCells?o.label:""," ")}}function Lr(n,a){if(n&1){let o=T();m(0,"td",6)(1,"button",7),g("click",function(t){let i=y(o).$implicit,r=p(2);return C(r._cellClicked(i,t))})("focus",function(t){let i=y(o).$implicit,r=p(2);return C(r._emitActiveDateChange(i,t))}),m(2,"span",8),V(3),u(),v(4,"span",9),u()()}if(n&2){let o=a.$implicit,e=a.$index,t=p().$index,i=p();ii("width",i._cellWidth)("padding-top",i._cellPadding)("padding-bottom",i._cellPadding),w("data-mat-row",t)("data-mat-col",e),d(),q("mat-calendar-body-disabled",!o.enabled)("mat-calendar-body-active",i._isActiveCell(t,e))("mat-calendar-body-range-start",i._isRangeStart(o.compareValue))("mat-calendar-body-range-end",i._isRangeEnd(o.compareValue))("mat-calendar-body-in-range",i._isInRange(o.compareValue))("mat-calendar-body-comparison-bridge-start",i._isComparisonBridgeStart(o.compareValue,t,e))("mat-calendar-body-comparison-bridge-end",i._isComparisonBridgeEnd(o.compareValue,t,e))("mat-calendar-body-comparison-start",i._isComparisonStart(o.compareValue))("mat-calendar-body-comparison-end",i._isComparisonEnd(o.compareValue))("mat-calendar-body-in-comparison-range",i._isInComparisonRange(o.compareValue))("mat-calendar-body-preview-start",i._isPreviewStart(o.compareValue))("mat-calendar-body-preview-end",i._isPreviewEnd(o.compareValue))("mat-calendar-body-in-preview",i._isInPreview(o.compareValue)),l("ngClass",o.cssClasses)("tabindex",i._isActiveCell(t,e)?0:-1),w("aria-label",o.ariaLabel)("aria-disabled",!o.enabled||null)("aria-pressed",i._isSelected(o.compareValue))("aria-current",i.todayValue===o.compareValue?"date":null)("aria-describedby",i._getDescribedby(o.compareValue)),d(),q("mat-calendar-body-selected",i._isSelected(o.compareValue))("mat-calendar-body-comparison-identical",i._isComparisonIdentical(o.compareValue))("mat-calendar-body-today",i.todayValue===o.compareValue),d(),le(" ",o.displayValue," ")}}function Nr(n,a){if(n&1&&(m(0,"tr",1),h(1,Pr,2,6,"td",4),ni(2,Lr,5,48,"td",5,ai),u()),n&2){let o=a.$implicit,e=a.$index,t=p();d(),Xe(1,e===0&&t._firstRowOffset?1:-1),d(),ri(o)}}function Br(n,a){if(n&1&&(m(0,"th",2)(1,"span",6),V(2),u(),m(3,"span",3),V(4),u()()),n&2){let o=a.$implicit;d(2),Ae(o.long),d(2),Ae(o.narrow)}}var Hr=["*"];function jr(n,a){}function Yr(n,a){if(n&1){let o=T();m(0,"mat-month-view",2),gt("activeDateChange",function(t){y(o);let i=p();return ft(i.activeDate,t)||(i.activeDate=t),C(t)}),g("_userSelection",function(t){y(o);let i=p();return C(i._dateSelected(t))})("dragStarted",function(t){y(o);let i=p();return C(i._dragStarted(t))})("dragEnded",function(t){y(o);let i=p();return C(i._dragEnded(t))}),u()}if(n&2){let o=p();_t("activeDate",o.activeDate),l("selected",o.selected)("dateFilter",o.dateFilter)("maxDate",o.maxDate)("minDate",o.minDate)("dateClass",o.dateClass)("comparisonStart",o.comparisonStart)("comparisonEnd",o.comparisonEnd)("startDateAccessibleName",o.startDateAccessibleName)("endDateAccessibleName",o.endDateAccessibleName)("activeDrag",o._activeDrag)}}function Kr(n,a){if(n&1){let o=T();m(0,"mat-year-view",3),gt("activeDateChange",function(t){y(o);let i=p();return ft(i.activeDate,t)||(i.activeDate=t),C(t)}),g("monthSelected",function(t){y(o);let i=p();return C(i._monthSelectedInYearView(t))})("selectedChange",function(t){y(o);let i=p();return C(i._goToDateInView(t,"month"))}),u()}if(n&2){let o=p();_t("activeDate",o.activeDate),l("selected",o.selected)("dateFilter",o.dateFilter)("maxDate",o.maxDate)("minDate",o.minDate)("dateClass",o.dateClass)}}function zr(n,a){if(n&1){let o=T();m(0,"mat-multi-year-view",4),gt("activeDateChange",function(t){y(o);let i=p();return ft(i.activeDate,t)||(i.activeDate=t),C(t)}),g("yearSelected",function(t){y(o);let i=p();return C(i._yearSelectedInMultiYearView(t))})("selectedChange",function(t){y(o);let i=p();return C(i._goToDateInView(t,"year"))}),u()}if(n&2){let o=p();_t("activeDate",o.activeDate),l("selected",o.selected)("dateFilter",o.dateFilter)("maxDate",o.maxDate)("minDate",o.minDate)("dateClass",o.dateClass)}}function qr(n,a){}var Wr=["button"],Gr=[[["","matDatepickerToggleIcon",""]]],Qr=["[matDatepickerToggleIcon]"];function $r(n,a){n&1&&(Lt(),m(0,"svg",2),v(1,"path",3),u())}var $t=(()=>{let a=class a{constructor(){this.changes=new K,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Cho
1ose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(e,t){return`${e} \u2013 ${t}`}formatYearRangeLabel(e,t){return`${e} to ${t}`}};a.\u0275fac=function(t){return new(t||a)},a.\u0275prov=xe({token:a,factory:a.\u0275fac,providedIn:"root"});let n=a;return n})(),Wt=class{constructor(a,o,e,t,i={},r=a,s){this.value=a,this.displayValue=o,this.ariaLabel=e,this.enabled=t,this.cssClasses=i,this.compareValue=r,this.rawValue=s}},Ur=1,Rn=si({passive:!1,capture:!0}),lt=si({passive:!0,capture:!0}),xi=si({passive:!0}),Ot=(()=>{let a=class a{ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}constructor(e,t){this._elementRef=e,this._ngZone=t,this._platform=Ee(oi),this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new f,this.previewChange=new f,this.activeDateChange=new f,this.dragStarted=new f,this.dragEnded=new f,this._didDragSinceMouseDown=!1,this._enterHandler=i=>{if(this._skipNextFocus&&i.type==="focus"){this._skipNextFocus=!1;return}if(i.target&&this.isRange){let r=this._getCellFromElement(i.target);r&&this._ngZone.run(()=>this.previewChange.emit({value:r.enabled?r:null,event:i}))}},this._touchmoveHandler=i=>{if(!this.isRange)return;let r=Pn(i),s=r?this._getCellFromElement(r):null;r!==i.target&&(this._didDragSinceMouseDown=!0),da(i.target)&&i.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:s?.enabled?s:null,event:i}))},this._leaveHandler=i=>{this.previewEnd!==null&&this.isRange&&(i.type!=="blur"&&(this._didDragSinceMouseDown=!0),i.target&&this._getCellFromElement(i.target)&&!(i.relatedTarget&&this._getCellFromElement(i.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:i})))},this._mousedownHandler=i=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;let r=i.target&&this._getCellFromElement(i.target);!r||!this._isInRange(r.compareValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:r.rawValue,event:i})})},this._mouseupHandler=i=>{if(!this.isRange)return;let r=da(i.target);if(!r){this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:i})});return}r.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{let s=this._getCellFromElement(r);this.dragEnded.emit({value:s?.rawValue??null,event:i})})},this._touchendHandler=i=>{let r=Pn(i);r&&this._mouseupHandler({target:r})},this._id=`mat-calendar-body-${Ur++}`,this._startDateLabelId=`${this._id}-start-date`,this._endDateLabelId=`${this._id}-end-date`,t.runOutsideAngular(()=>{let i=e.nativeElement;i.addEventListener("touchmove",this._touchmoveHandler,Rn),i.addEventListener("mouseenter",this._enterHandler,lt),i.addEventListener("focus",this._enterHandler,lt),i.addEventListener("mouseleave",this._leaveHandler,lt),i.addEventListener("blur",this._leaveHandler,lt),i.addEventListener("mousedown",this._mousedownHandler,xi),i.addEventListener("touchstart",this._mousedownHandler,xi),this._platform.isBrowser&&(window.addEventListener("mouseup",this._mouseupHandler),window.addEventListener("touchend",this._touchendHandler))})}_cellClicked(e,t){this._didDragSinceMouseDown||e.enabled&&this.selectedValueChange.emit({value:e.value,event:t})}_emitActiveDateChange(e,t){e.enabled&&this.activeDateChange.emit({value:e.value,event:t})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){let t=e.numCols,{rows:i,numCols:r}=this;(e.rows||t)&&(this._firstRowOffset=i&&i.length&&i[0].length?r-i[0].length:0),(e.cellAspectRatio||t||!this._cellPadding)&&(this._cellPadding=`${50*this.cellAspectRatio/r}%`),(t||!this._cellWidth)&&(this._cellWidth=`${100/r}%`)}ngOnDestroy(){let e=this._elementRef.nativeElement;e.removeEventListener("touchmove",this._touchmoveHandler,Rn),e.removeEventListener("mouseenter",this._enterHandler,lt),e.removeEventListener("focus",this._enterHandler,lt),e.removeEventListener("mouseleave",this._leaveHandler,lt),e.removeEventListener("blur",this._leaveHandler,lt),e.removeEventListener("mousedown",this._mousedownHandler,xi),e.removeEventListener("touchstart",this._mousedownHandler,xi),this._platform.isBrowser&&(window.removeEventListener("mouseup",this._mouseupHandler),window.removeEventListener("touchend",this._touchendHandler))}_isActiveCell(e,t){let i=e*this.numCols+t;return e&&(i-=this._firstRowOffset),i==this.activeCell}_focusActiveCell(e=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Se(1)).subscribe(()=>{setTimeout(()=>{let t=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");t&&(e||(this._skipNextFocus=!0),t.focus())})})})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(e){return ca(e,this.startValue,this.endValue)}_isRangeEnd(e){return pa(e,this.startValue,this.endValue)}_isInRange(e){return ma(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return ca(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,t,i){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let r=this.rows[t][i-1];if(!r){let s=this.rows[t-1];r=s&&s[s.length-1]}return r&&!this._isRangeEnd(r.compareValue)}_isComparisonBridgeEnd(e,t,i){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let r=this.rows[t][i+1];if(!r){let s=this.rows[t+1];r=s&&s[0]}return r&&!this._isRangeStart(r.compareValue)}_isComparisonEnd(e){return pa(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return ma(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return ca(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return pa(e,this.previewStart,this.previewEnd)}_isInPreview(e){return ma(e,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(e){return this.isRange?this.startValue===e&&this.endValue===e?`${this._startDateLabelId} ${this._endDateLabelId}`:this.startValue===e?this._startDateLabelId:this.endValue===e?this._endDateLabelId:null:null}_getCellFromElement(e){let t=da(e);if(t){let i=t.getAttribute("data-mat-row"),r=t.getAttribute("data-mat-col");if(i&&r)return this.rows[parseInt(i)][parseInt(r)]}return null}};a.\u0275fac=function(t){return new(t||a)(c(P),c(ct))},a.\u0275cmp=A({type:a,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numC
1ols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange",dragStarted:"dragStarted",dragEnded:"dragEnded"},exportAs:["matCalendarBody"],standalone:!0,features:[oe,G],attrs:Vr,decls:7,vars:5,consts:[["aria-hidden","true"],["role","row"],[1,"mat-calendar-body-hidden-label",3,"id"],[1,"mat-calendar-body-label"],[1,"mat-calendar-body-label",3,"paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"click","focus","ngClass","tabindex"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(t,i){t&1&&(h(0,Rr,3,6,"tr",0),ni(1,Nr,4,1,"tr",1,ai),m(3,"label",2),V(4),u(),m(5,"label",2),V(6),u()),t&2&&(Xe(0,i._firstRowOffset<i.labelMinRequiredCells?0:-1),d(),ri(i.rows),d(2),l("id",i._startDateLabelId),d(),le(" ",i.startDateAccessibleName,` 2`),d(),l("id",i._endDateLabelId),d(),le(" ",i.endDateAccessibleName,` 3`))},dependencies:[ee],styles:['.mat-calendar-body{min-width:224px}.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-outline-color)}.mat-calendar-body-label{height:0;line-height:0;text-align:start;padding-left:4.7142857143%;padding-right:4.7142857143%;font-size:var(--mat-datepicker-calendar-body-label-text-size);font-weight:var(--mat-datepicker-calendar-body-label-text-weight);color:var(--mat-datepicker-calendar-body-label-text-color)}.mat-calendar-body-hidden-label{display:none}.mat-calendar-body-cell-container{position:relative;height:0;line-height:0}.mat-calendar-body-cell{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);position:absolute;top:0;left:0;width:100%;height:100%;background:none;text-align:center;outline:none;font-family:inherit;margin:0}.mat-calendar-body-cell::-moz-focus-inner{border:0}.mat-calendar-body-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-cell-preview{content:"";position:absolute;top:5%;left:0;z-index:0;box-sizing:border-box;display:block;height:90%;width:100%}.mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-start::after,.mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,.mat-calendar-body-comparison-start::after,.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:5%;width:95%;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,[dir=rtl] .mat-calendar-body-comparison-start::after,[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:0;border-radius:0;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,.mat-calendar-body-comparison-end::after,.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}[dir=rtl] .mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,[dir=rtl] .mat-calendar-body-comparison-e
3nd::after,[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{left:5%;border-radius:0;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-comparison-bridge-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-bridge-end.mat-calendar-body-range-start::after{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end.mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-end.mat-calendar-body-range-start::after{width:90%}.mat-calendar-body-in-preview{color:var(--mat-datepicker-calendar-date-preview-state-outline-color)}.mat-calendar-body-in-preview .mat-calendar-body-cell-preview{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:0;border-right:dashed 1px}.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:0;border-left:dashed 1px}.mat-calendar-body-disabled{cursor:default}.mat-calendar-body-disabled>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){color:var(--mat-datepicker-calendar-date-disabled-state-text-color)}.mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-disabled-state-outline-color)}.cdk-high-contrast-active .mat-calendar-body-disabled{opacity:.5}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px;color:var(--mat-datepicker-calendar-date-text-color);border-color:var(--mat-datepicker-calendar-date-outline-color)}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-focus-state-background-color)}@media(hover: hover){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-hover-state-background-color)}}.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-state-background-color);color:var(--mat-datepicker-calendar-date-selected-state-text-color)}.mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-disabled-state-background-color)}.mat-calendar-body-selected.mat-calendar-body-today{box-shadow:inset 0 0 0 1px var(--mat-datepicker-calendar-date-today-selected-state-outline-color)}.mat-calendar-body-in-range::before{background:var(--mat-datepicker-calendar-date-in-range-state-background-color)}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color)}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color)}.mat-calendar-body-comparison-bridge-start::before,[dir=rtl] .mat-calendar-body-comparison-bridge-end::before{background:linear-gradient(to right, var(--mat-datepicker-calendar-date-in-range-state-background-color) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color) 50%)}.mat-calendar-body-comparison-bridge-end::before,[dir=rtl] .mat-calendar-body-comparison-bridge-start::before{background:linear-gradient(to left, var(--mat-datepicker-calendar-date-in-range-state-background-color) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color) 50%)}.mat-calendar-body-in-range>.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range.mat-calendar-body-in-range::after{background:var(--mat-datepicker-calendar-date-in-overlap-range-state-background-color)}.mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:var(--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color)}.cdk-high-contrast-active .mat-datepicker-popup:not(:empty),.cdk-high-contrast-active .mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.cdk-high-contrast-active .mat-calendar-body-today{outline:dotted 1px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}
3.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}'],encapsulation:2,changeDetection:0});let n=a;return n})();function la(n){return n?.nodeName==="TD"}function da(n){let a;return la(n)?a=n:la(n.parentNode)?a=n.parentNode:la(n.parentNode?.parentNode)&&(a=n.parentNode.parentNode),a?.getAttribute("data-mat-row")!=null?a:null}function ca(n,a,o){return o!==null&&a!==o&&n<o&&n===a}function pa(n,a,o){return a!==null&&a!==o&&n>=a&&n===o}function ma(n,a,o,e){return e&&a!==null&&o!==null&&a!==o&&n>=a&&n<=o}function Pn(n){let a=n.changedTouches[0];return document.elementFromPoint(a.clientX,a.clientY)}var De=class{constructor(a,o){this.start=a,this.end=o}},Gt=(()=>{let a=class a{constructor(e,t){this.selection=e,this._adapter=t,this._selectionChanged=new K,this.selectionChanged=this._selectionChanged,this.selection=e}updateSelection(e,t){let i=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:t,oldValue:i})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}};a.\u0275fac=function(t){Fa()},a.\u0275prov=xe({token:a,factory:a.\u0275fac});let n=a;return n})(),Xr=(()=>{let a=class a extends Gt{constructor(e){super(null,e)}add(e){super.updateSelection(e,this)}isValid(){return this.selection!=null&&this._isValidDateInstance(this.selection)}isComplete(){return this.selection!=null}clone(){let e=new a(this._adapter);return e.updateSelection(this.selection,this),e}};a.\u0275fac=function(t){return new(t||a)(ze(Y))},a.\u0275prov=xe({token:a,factory:a.\u0275fac});let n=a;return n})();function Zr(n,a){return n||new Xr(a)}var Yn={provide:Gt,deps:[[new xa,new Ea,Gt],Y],useFactory:Zr};var Kn=new U("MAT_DATE_RANGE_SELECTION_STRATEGY");var ua=7,Ln=(()=>{let a=class a{get activeDate(){return this._activeDate}set activeDate(e){let t=this._activeDate,i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),this._hasSameMonthAndYear(t,this._activeDate)||this._init()}get selected(){return this._selected}set selected(e){e instanceof De?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}constructor(e,t,i,r,s){this._changeDetectorRef=e,this._dateFormats=t,this._dateAdapter=i,this._dir=r,this._rangeStrategy=s,this._rerenderSubscription=$.EMPTY,this.activeDrag=null,this.selectedChange=new f,this._userSelection=new f,this.dragStarted=new f,this.dragEnded=new f,this.activeDateChange=new f,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(re(null)).subscribe(()=>this._init())}ngOnChanges(e){let t=e.comparisonStart||e.comparisonEnd;t&&!t.firstChange&&this._setRanges(this.selected),e.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(e){let t=e.value,i=this._getDateFromDayOfMonth(t),r,s;this._selected instanceof De?(r=this._getDateInCurrentMonth(this._selected.start),s=this._getDateInCurrentMonth(this._selected.end)):r=s=this._getDateInCurrentMonth(this._selected),(r!==t||s!==t)&&this.selectedChange.emit(i),this._userSelection.emit({value:i,event:e.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(e){let t=e.value,i=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(t),this._dateAdapter.compareDate(i,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(e){let t=this._activeDate,i=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,i?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,i?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:this._selectionKeyPressed=!0,this._canSelect(this._activeDate)&&e.preventDefault();return;case 27:this._previewEnd!=null&&!te(e)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:e}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e})),e.preventDefault(),e.stopPropagation());return;default:return}this._dateAdapter.compareDate(t,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(ua+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%ua,this._initWeek
3days(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(e){this._matCalendarBody._focusActiveCell(e)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:e,value:t}){if(this._rangeStrategy){let i=t?t.rawValue:null,r=this._rangeStrategy.createPreview(i,this.selected,e);if(this._previewStart=this._getCellCompareValue(r.start),this._previewEnd=this._getCellCompareValue(r.end),this.activeDrag&&i){let s=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,i,e);s&&(this._previewStart=this._getCellCompareValue(s.start),this._previewEnd=this._getCellCompareValue(s.end))}this._changeDetectorRef.detectChanges()}}_dragEnded(e){if(this.activeDrag)if(e.value){let t=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,e.value,e.event);this.dragEnded.emit({value:t??null,event:e.event})}else this.dragEnded.emit({value:null,event:e.event})}_getDateFromDayOfMonth(e){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),e)}_initWeekdays(){let e=this._dateAdapter.getFirstDayOfWeek(),t=this._dateAdapter.getDayOfWeekNames("narrow"),r=this._dateAdapter.getDayOfWeekNames("long").map((s,b)=>({long:s,narrow:t[b]}));this._weekdays=r.slice(e).concat(r.slice(0,e))}_createWeekCells(){let e=this._dateAdapter.getNumDaysInMonth(this.activeDate),t=this._dateAdapter.getDateNames();this._weeks=[[]];for(let i=0,r=this._firstWeekOffset;i<e;i++,r++){r==ua&&(this._weeks.push([]),r=0);let s=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),i+1),b=this._shouldEnableDate(s),F=this._dateAdapter.format(s,this._dateFormats.display.dateA11yLabel),Ge=this.dateClass?this.dateClass(s,"month"):void 0;this._weeks[this._weeks.length-1].push(new Wt(i+1,t[i],F,b,Ge,this._getCellCompareValue(s),s))}}_shouldEnableDate(e){return!!e&&(!this.minDate||this._dateAdapter.compareDate(e,this.minDate)>=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))}_getDateInCurrentMonth(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}_hasSameMonthAndYear(e,t){return!!(e&&t&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(t)&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(t))}_getCellCompareValue(e){if(e){let t=this._dateAdapter.getYear(e),i=this._dateAdapter.getMonth(e),r=this._dateAdapter.getDate(e);return new Date(t,i,r).getTime()}return null}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setRanges(e){e instanceof De?(this._rangeStart=this._getCellCompareValue(e.start),this._rangeEnd=this._getCellCompareValue(e.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(e),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(e){return!this.dateFilter||this.dateFilter(e)}_clearPreview(){this._previewStart=this._previewEnd=null}};a.\u0275fac=function(t){return new(t||a)(c(z),c(ye,8),c(Y,8),c(qe,8),c(Kn,8))},a.\u0275cmp=A({type:a,selectors:[["mat-month-view"]],viewQuery:function(t,i){if(t&1&&E(Ot,5),t&2){let r;D(r=S())&&(i._matCalendarBody=r.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName",activeDrag:"activeDrag"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",dragStarted:"dragStarted",dragEnded:"dragEnded",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],standalone:!0,features:[oe,G],decls:8,vars:14,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col"],["aria-hidden","true"],["colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","previewChange","dragStarted","dragEnded","keyup","keydown","label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","startDateAccessibleName","endDateAccessibleName"],[1,"cdk-visually-hidden"]],template:function(t,i){t&1&&(m(0,"table",0)(1,"thead",1)(2,"tr"),ni(3,Br,5,2,"th",2,ai),u(),m(5,"tr",3),v(6,"th",4),u()(),m(7,"tbody",5),g("selectedValueChange",function(s){return i._dateSelected(s)})("activeDateChange",function(s){return i._updateActiveDate(s)})("previewChange",function(s){return i._previewChanged(s)})("dragStarted",function(s){return i.dragStarted.emit(s)})("dragEnded",function(s){return i._dragEnded(s)})("keyup",function(s){return i._handleCalendarBodyKeyup(s)})("keydown",function(s){return i._handleCalendarBodyKeydown(s)}),u()()),t&2&&(d(3),ri(i._weekdays),d(4),l("label",i._monthLabel)("rows",i._weeks)("todayValue",i._todayDate)("startValue",i._rangeStart)("endValue",i._rangeEnd)("comparisonStart",i._comparisonRangeStart)("comparisonEnd",i._comparisonRangeEnd)("previewStart",i._previewStart)("previewEnd",i._previewEnd)("isRange",i._isRange)("labelMinRequiredCells",3)("activeCell",i._dateAdapter.getDate(i.activeDate)-1)("startDateAccessibleName",i.startDateAccessibleName)("endDateAccessibleName",i.endDateAccessibleName))},dependencies:[Ot],encapsulation:2,changeDetection:0});let n=a;return n})(),pe=24,ha=4,Nn=(()=>{let a=class a{get activeDate(){return this._activeDate}set activeDate(e){let t=this._activeDate,i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),zn(this._dateAdapter,t,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(e){e instanceof De?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e)}
3get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}constructor(e,t,i){this._changeDetectorRef=e,this._dateAdapter=t,this._dir=i,this._rerenderSubscription=$.EMPTY,this.selectedChange=new f,this.yearSelected=new f,this.activeDateChange=new f,this._dateAdapter,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(re(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());let t=this._dateAdapter.getYear(this._activeDate)-qt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let i=0,r=[];i<pe;i++)r.push(t+i),r.length==ha&&(this._years.push(r.map(s=>this._createCellForYear(s))),r=[]);this._changeDetectorRef.markForCheck()}_yearSelected(e){let t=e.value,i=this._dateAdapter.createDate(t,0,1),r=this._getDateFromYear(t);this.yearSelected.emit(i),this.selectedChange.emit(r)}_updateActiveDate(e){let t=e.value,i=this._activeDate;this.activeDate=this._getDateFromYear(t),this._dateAdapter.compareDate(i,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let t=this._activeDate,i=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,i?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,i?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-ha);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,ha);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-qt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,pe-qt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-pe*10:-pe);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?pe*10:pe);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(t,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_getActiveCell(){return qt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(e){let t=this._dateAdapter.getMonth(this.activeDate),i=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,t,1));return this._dateAdapter.createDate(e,t,Math.min(this._dateAdapter.getDate(this.activeDate),i))}_createCellForYear(e){let t=this._dateAdapter.createDate(e,0,1),i=this._dateAdapter.getYearName(t),r=this.dateClass?this.dateClass(t,"multi-year"):void 0;return new Wt(e,i,i,this._shouldEnableYear(e),r)}_shouldEnableYear(e){if(e==null||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e<this._dateAdapter.getYear(this.minDate))return!1;if(!this.dateFilter)return!0;let t=this._dateAdapter.createDate(e,0,1);for(let i=t;this._dateAdapter.getYear(i)==e;i=this._dateAdapter.addCalendarDays(i,1))if(this.dateFilter(i))return!0;return!1}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setSelectedYear(e){if(this._selectedYear=null,e instanceof De){let t=e.start||e.end;t&&(this._selectedYear=this._dateAdapter.getYear(t))}else e&&(this._selectedYear=this._dateAdapter.getYear(e))}};a.\u0275fac=function(t){return new(t||a)(c(z),c(Y,8),c(qe,8))},a.\u0275cmp=A({type:a,selectors:[["mat-multi-year-view"]],viewQuery:function(t,i){if(t&1&&E(Ot,5),t&2){let r;D(r=S())&&(i._matCalendarBody=r.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",activeDateChange:"activeDateChange"},exportAs:["matMultiYearView"],standalone:!0,features:[G],decls:5,vars:7,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden","true",1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","keyup","keydown","rows","todayValue","startValue","endValue","numCols","cellAspectRatio","activeCell"]],template:function(t,i){t&1&&(m(0,"table",0)(1,"thead",1)(2,"tr"),v(3,"th",2),u()(),m(4,"tbody",3),g("selectedValueChange",function(s){return i._yearSelected(s)})("activeDateChange",function(s){return i._updateActiveDate(s)})("keyup",function(s){return i._handleCalendarBodyKeyup(s)})("keydown",function(s){return i._handleCalendarBodyKeydown(s)}),u()()),t&2&&(d(4),l("rows",i._years)("todayValue",i._todayYear)("startValue",i._selectedYear)("endValue",i._selectedYear)("numCols",4)("cellAspectRatio",4/7)("activeCell",i._getActiveCell()))},dependencies:[Ot],encapsulation:2,changeDetection:0});let n=a;return n})();function zn(n,a,o,e,t){let i=n.getYear(a),r=n.getYear(o),s=qn(n,e,t);return Math.floor((i-s)/pe)===Math.floor((r-s)/pe)}function qt(n,a,o,e){let t=n.getYear(a);return Jr(t-qn(n,o,e),pe)}function qn(n,a,o){let e=0;return o?e=n.getYear(o)-pe+1:a&&(e=n.getYear(a)),e}function Jr(n,a){return(n%a+a)%a}var Bn=(()=>{let a=class a{get activeDate(){return this._activeDate}set activeDate(e){let t=this._activeDate,i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),this._dateAdapter.getYear(t)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(e){e instanceof De?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e)}
3get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}constructor(e,t,i,r){this._changeDetectorRef=e,this._dateFormats=t,this._dateAdapter=i,this._dir=r,this._rerenderSubscription=$.EMPTY,this.selectedChange=new f,this.monthSelected=new f,this.activeDateChange=new f,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(re(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(e){let t=e.value,i=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1);this.monthSelected.emit(i);let r=this._getDateFromMonth(t);this.selectedChange.emit(r)}_updateActiveDate(e){let t=e.value,i=this._activeDate;this.activeDate=this._getDateFromMonth(t),this._dateAdapter.compareDate(i,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let t=this._activeDate,i=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,i?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,i?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(t,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let e=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(t=>t.map(i=>this._createCellForMonth(i,e[i]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_getDateFromMonth(e){let t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),i=this._dateAdapter.getNumDaysInMonth(t);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),i))}_createCellForMonth(e,t){let i=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),r=this._dateAdapter.format(i,this._dateFormats.display.monthYearA11yLabel),s=this.dateClass?this.dateClass(i,"year"):void 0;return new Wt(e,t.toLocaleUpperCase(),r,this._shouldEnableMonth(e),s)}_shouldEnableMonth(e){let t=this._dateAdapter.getYear(this.activeDate);if(e==null||this._isYearAndMonthAfterMaxDate(t,e)||this._isYearAndMonthBeforeMinDate(t,e))return!1;if(!this.dateFilter)return!0;let i=this._dateAdapter.createDate(t,e,1);for(let r=i;this._dateAdapter.getMonth(r)==e;r=this._dateAdapter.addCalendarDays(r,1))if(this.dateFilter(r))return!0;return!1}_isYearAndMonthAfterMaxDate(e,t){if(this.maxDate){let i=this._dateAdapter.getYear(this.maxDate),r=this._dateAdapter.getMonth(this.maxDate);return e>i||e===i&&t>r}return!1}_isYearAndMonthBeforeMinDate(e,t){if(this.minDate){let i=this._dateAdapter.getYear(this.minDate),r=this._dateAdapter.getMonth(this.minDate);return e<i||e===i&&t<r}return!1}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setSelectedMonth(e){e instanceof De?this._selectedMonth=this._getMonthInCurrentYear(e.start)||this._getMonthInCurrentYear(e.end):this._selectedMonth=this._getMonthInCurrentYear(e)}};a.\u0275fac=function(t){return new(t||a)(c(z),c(ye,8),c(Y,8),c(qe,8))},a.\u0275cmp=A({type:a,selectors:[["mat-year-view"]],viewQuery:function(t,i){if(t&1&&E(Ot,5),t&2){let r;D(r=S())&&(i._matCalendarBody=r.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",monthSelected:"monthSelected",activeDateChange:"activeDateChange"},exportAs:["matYearView"],standalone:!0,features:[G],decls:5,vars:9,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden","true",1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","keyup","keydown","label","rows","todayValue","startValue","endValue","labelMinRequiredCells","numCols","cellAspectRatio","activeCell"]],template:function(t,i){t&1&&(m(0,"table",0)(1,"thead",1)(2,"tr"),v(3,"th",2),u()(),m(4,"tbody",3),g("selectedValueChange",function(s){return i._monthSelected(s)})("activeDateChange",function(s){return i._updateActiveDate(s)})("keyup",function(s){return i._handleCalendarBodyKeyup(s)})("keydown",function(s){return i._handleCalendarBodyKeydown(s)}),u()()),t&2&&(d(4),l("label",i._yearLabel)("rows",i._months)("todayValue",i._todayMonth)("startValue",i._selectedMonth)("endValue",i._selectedMonth)("labelMinRequiredCells",2)("numCols",4)("cellAspectRatio",4/7)("activeCell",i._dateAdapter.getMonth(i.activeDate)))},dependencies:[Ot],encapsulation:2,changeDetection:0});let n=a;return n})(),eo=1,Wn=(()=>{let a=class a{constructor(e,t,i,r,s){this._intl=e,this.calendar=t,this._dateAdapter=i,this._dateFormats=r,this._id=`mat-calendar-header-${eo++}`,this._periodButtonLabelId=`${this._id}-period-label`,this.calendar.stateChanges.subscribe(()=>s.markForCheck())}get periodButtonText(){return this.calendar.currentView=="month"?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():this.calendar.currentView=="year"?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRange(...this._formatMinAndMaxYearLabels())}get periodButtonDescription(){return this.calendar.currentView=="month"?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():this.calendar.currentView=="year"?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRangeLabel(...this._formatMinAndMaxYearLabels())}get periodButtonLabel(){return this.calendar.currentView=="month"?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView=this.calendar.currentView=="month"?"multi-year":"month"}previousClicked(){this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?-1:-pe)}nextClicked(){this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?1:pe)}previousEnabled(){return this.calendar.minDate?!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate):!0}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(e,t){return this.calendar.currentView=="month"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(t)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(t):this.calendar.currentView=="year"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(t):zn(this._dateAdapter,e,t,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){let t=this._dateAdapter.getYear(this.calendar.activeDate)-qt(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),i=t+pe-1,r=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1)),s=this._dateAdapter.getYearName(this._dateAdapter.createDate(i,0,1));return[r,s]}};a.\u0275fac=function(t){return new(t||a)(c($t),c($e(()=>Qt)),c(Y,8),c(ye,8),c(z))},a.\u0275cmp=A({type:a,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],standalone:!0,features:[G],ngContentSelectors:Hr,decls:13,vars:11,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-control
3s"],[1,"cdk-visually-hidden",3,"id"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"click","disabled"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"click","disabled"]],template:function(t,i){t&1&&(we(),m(0,"div",0)(1,"div",1)(2,"label",2),V(3),u(),m(4,"button",3),g("click",function(){return i.currentPeriodClicked()}),m(5,"span",4),V(6),u(),Lt(),m(7,"svg",5),v(8,"polygon",6),u()(),Ta(),v(9,"div",7),_e(10),m(11,"button",8),g("click",function(){return i.previousClicked()}),u(),m(12,"button",9),g("click",function(){return i.nextClicked()}),u()()()),t&2&&(d(2),l("id",i._periodButtonLabelId),d(),Ae(i.periodButtonDescription),d(),w("aria-label",i.periodButtonLabel)("aria-describedby",i._periodButtonLabelId),d(2),Ae(i.periodButtonText),d(),q("mat-calendar-invert",i.calendar.currentView!=="month"),d(4),l("disabled",!i.previousEnabled()),w("aria-label",i.prevButtonLabel),d(),l("disabled",!i.nextEnabled()),w("aria-label",i.nextButtonLabel))},dependencies:[ta,Kt],encapsulation:2,changeDetection:0});let n=a;return n})(),Qt=(()=>{let a=class a{get startAt(){return this._startAt}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get selected(){return this._selected}set selected(e){e instanceof De?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get activeDate(){return this._clampedActiveDate}set activeDate(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(e){let t=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),t&&this.viewChanged.emit(t)}constructor(e,t,i,r){this._dateAdapter=t,this._dateFormats=i,this._changeDetectorRef=r,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new f,this.yearSelected=new f,this.monthSelected=new f,this.viewChanged=new f(!0),this._userSelection=new f,this._userDragDrop=new f,this._activeDrag=null,this.stateChanges=new K,this._intlChanges=e.changes.subscribe(()=>{r.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new Ki(this.headerComponent||Wn),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(e){let t=e.minDate&&!this._dateAdapter.sameDate(e.minDate.previousValue,e.minDate.currentValue)?e.minDate:void 0,i=e.maxDate&&!this._dateAdapter.sameDate(e.maxDate.previousValue,e.maxDate.currentValue)?e.maxDate:void 0,r=t||i||e.dateFilter;if(r&&!r.firstChange){let s=this._getCurrentViewComponent();s&&(this._changeDetectorRef.detectChanges(),s._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(e){let t=e.value;(this.selected instanceof De||t&&!this._dateAdapter.sameDate(t,this.selected))&&this.selectedChange.emit(t),this._userSelection.emit(e)}_yearSelectedInMultiYearView(e){this.yearSelected.emit(e)}_monthSelectedInYearView(e){this.monthSelected.emit(e)}_goToDateInView(e,t){this.activeDate=e,this.currentView=t}_dragStarted(e){this._activeDrag=e}_dragEnded(e){this._activeDrag&&(e.value&&this._userDragDrop.emit(e),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}};a.\u0275fac=function(t){return new(t||a)(c($t),c(Y,8),c(ye,8),c(z))},a.\u0275cmp=A({type:a,selectors:[["mat-calendar"]],viewQuery:function(t,i){if(t&1&&(E(Ln,5),E(Bn,5),E(Nn,5)),t&2){let r;D(r=S())&&(i.monthView=r.first),D(r=S())&&(i.yearView=r.first),D(r=S())&&(i.multiYearView=r.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection",_userDragDrop:"_userDragDrop"},exportAs:["matCalendar"],standalone:!0,features:[de([Yn]),oe,G],decls:5,vars:2,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content"],[3,"activeDateChange","_userSelection","dragStarted","dragEnded","activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDateChange","monthSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","yearSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"]],template:function(t,i){if(t&1&&(h(0,jr,0,0,"ng-template",0),m(1,"div",1),h(2,Yr,1,11)(3,Kr,1,6)(4,zr,1,6),u()),t&2){let r;
3l("cdkPortalOutlet",i._calendarHeaderPortal),d(2),Xe(2,(r=i.currentView)==="month"?2:r==="year"?3:r==="multi-year"?4:-1)}},dependencies:[qi,Wa,Ln,Bn,Nn],styles:['.mat-calendar{display:block;font-family:var(--mat-datepicker-calendar-text-font);font-size:var(--mat-datepicker-calendar-text-size)}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;align-items:center;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0;margin:0 8px;font-size:var(--mat-datepicker-calendar-period-button-text-size);font-weight:var(--mat-datepicker-calendar-period-button-text-weight);--mdc-text-button-label-text-color:var(--mat-datepicker-calendar-period-button-text-color)}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle;fill:var(--mat-datepicker-calendar-period-button-icon-color)}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-datepicker-content .mat-calendar-previous-button:not(.mat-mdc-button-disabled),.mat-datepicker-content .mat-calendar-next-button:not(.mat-mdc-button-disabled){color:var(--mat-datepicker-calendar-navigation-button-icon-color)}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0;color:var(--mat-datepicker-calendar-header-text-color);font-size:var(--mat-datepicker-calendar-header-text-size);font-weight:var(--mat-datepicker-calendar-header-text-weight)}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px;background:var(--mat-datepicker-calendar-header-divider-color)}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0});let n=a;return n})(),Hn={transformPanel:et("transformPanel",[be("void => enter-dropdown",ve("120ms cubic-bezier(0, 0, 0.2, 1)",Qi([W({opacity:0,transform:"scale(1, 0.8)"}),W({opacity:1,transform:"scale(1, 1)"})]))),be("void => enter-dialog",ve("150ms cubic-bezier(0, 0, 0.2, 1)",Qi([W({opacity:0,transform:"scale(0.7)"}),W({transform:"none",opacity:1})]))),be("* => void",ve("100ms linear",W({opacity:0})))]),fadeInCalendar:et("fadeInCalendar",[ut("void",W({opacity:0})),ut("enter",W({opacity:1})),be("void => *",ve("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])},to=0,Gn=new U("mat-datepicker-scroll-strategy",{providedIn:"root",factory:()=>{let n=Ee(ce);return()=>n.scrollStrategies.reposition()}});function io(n){return()=>n.scrollStrategies.reposition()}var ao={provide:Gn,deps:[ce],useFactory:io},Qn=(()=>{let a=class a{constructor(e,t,i,r,s,b){this._elementRef=e,this._changeDetectorRef=t,this._globalModel=i,this._dateAdapter=r,this._rangeSelectionStrategy=s,this._subscriptions=new $,this._animationDone=new K,this._isAnimating=!1,this._actionsPortal=null,this._closeButtonText=b.closeCalendarLabel}ngOnInit(){this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(e){let t=this._model.selection,i=e.value,r=t instanceof De;if(r&&this._rangeSelectionStrategy){let s=this._rangeSelectionStrategy.selectionFinished(i,t,e.event);this._model.updateSelection(s,this)}else i&&(r||!this._dateAdapter.sameDate(i,t))&&this._model.add(i);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(e){this._model.updateSelection(e.value,this)}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_handleAnimationEvent(e){this._isAnimating=e.phaseName==="start",this._isAnimating||this._animationDone.next()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(e,t){this._model=e?this._globalModel.clone():this._globalModel,this._actionsPortal=e,t&&this._changeDetectorRef.detectChanges()}};a.\u0275fac=function(t){return new(t||a)(c(P),c(z),c(Gt),c(Y),c(Kn,8),c($t))},a.\u0275cmp=A({type:a,selectors:[["mat-datepicker-content"]],viewQuery:function(t,i){if(t&1&&E(Qt,5),t&2){let r;D(r=S())&&(i._calendar=r.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:5,hostBindings:function(t,i){t&1&&La("@transformPanel.start",function(s){return i._handleAnimationEvent(s)})("@transformPanel.done",function(s){return i._handleAnimationEvent(s)}),t&2&&(Pa("@transformPanel",i._animationState),Bt(i.color?"mat-"+i.color:""),q("mat-datepicker-content-touch",i.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],standalone:!0,features:[G],decls:5,vars:27,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop","id","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"focus","blur","click","color"]],template:function(t,i){if(t&1&&(m(0,"div",0)(1,"mat-calendar",1),g("yearSelected",function(s){return i.datepicker._selectYear(s)})("monthSelected",function(s){return i.datepicker._selectMonth(s)})("viewChanged",function(s){return i.datepicker._viewChanged(s)})("_userSelection",function(s){return i._handleUserSelection(s)})("_userDragDrop",function(s){return i._handleUserDragDrop(s)}),u(),h(2,qr,0,0,"ng-template",2),m(3,"button",3),g("focus",function(){return i._closeButtonF
3ocused=!0})("blur",function(){return i._closeButtonFocused=!1})("click",function(){return i.datepicker.close()}),V(4),u()()),t&2){let r;q("mat-datepicker-content-container-with-custom-header",i.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",i._actionsPortal),w("aria-modal",!0)("aria-labelledby",(r=i._dialogLabelId)!==null&&r!==void 0?r:void 0),d(),Bt(i.datepicker.panelClass),l("id",i.datepicker.id)("startAt",i.datepicker.startAt)("startView",i.datepicker.startView)("minDate",i.datepicker._getMinDate())("maxDate",i.datepicker._getMaxDate())("dateFilter",i.datepicker._getDateFilter())("headerComponent",i.datepicker.calendarHeaderComponent)("selected",i._getSelected())("dateClass",i.datepicker.dateClass)("comparisonStart",i.comparisonStart)("comparisonEnd",i.comparisonEnd)("@fadeInCalendar","enter")("startDateAccessibleName",i.startDateAccessibleName)("endDateAccessibleName",i.endDateAccessibleName),d(),l("cdkPortalOutlet",i._actionsPortal),d(),q("cdk-visually-hidden",!i._closeButtonFocused),l("color",i.color||"primary"),d(),Ae(i._closeButtonText)}},dependencies:[Ka,Qt,qi,ta],styles:[".mat-datepicker-content{display:block;border-radius:4px;background-color:var(--mat-datepicker-calendar-container-background-color);color:var(--mat-datepicker-calendar-container-text-color);box-shadow:var(--mat-datepicker-calendar-container-elevation-shadow);border-radius:var(--mat-datepicker-calendar-container-shape)}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;box-shadow:var(--mat-datepicker-calendar-container-touch-elevation-shadow);border-radius:var(--mat-datepicker-calendar-container-touch-shape);position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}"],encapsulation:2,data:{animation:[Hn.transformPanel,Hn.fadeInCalendar]},changeDetection:0});let n=a;return n})(),jn=(()=>{let a=class a{get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(e){this._color=e}get disabled(){return this._disabled===void 0&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(e){e!==this._disabled&&(this._disabled=e,this.stateChanges.next(void 0))}get panelClass(){return this._panelClass}set panelClass(e){this._panelClass=Ya(e)}get opened(){return this._opened}set opened(e){e?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}constructor(e,t,i,r,s,b,F){this._overlay=e,this._ngZone=t,this._viewContainerRef=i,this._dateAdapter=s,this._dir=b,this._model=F,this._inputStateChanges=$.EMPTY,this._document=Ee(Ct),this.startView="month",this.touchUi=!1,this.xPosition="start",this.yPosition="below",this.restoreFocus=!0,this.yearSelected=new f,this.monthSelected=new f,this.viewChanged=new f(!0),this.openedStream
3=new f,this.closedStream=new f,this._opened=!1,this.id=`mat-datepicker-${to++}`,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new K,this._dateAdapter,this._scrollStrategy=r}ngOnChanges(e){let t=e.xPosition||e.yPosition;if(t&&!t.firstChange&&this._overlayRef){let i=this._overlayRef.getConfig().positionStrategy;i instanceof Xa&&(this._setConnectedPositions(i),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(e){this._model.add(e)}_selectYear(e){this.yearSelected.emit(e)}_selectMonth(e){this.monthSelected.emit(e)}_viewChanged(e){this.viewChanged.emit(e)}registerInput(e){return this.datepickerInput,this._inputStateChanges.unsubscribe(),this.datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(e){this._actionsPortal,this._actionsPortal=e,this._componentRef?.instance._assignActions(e,!0)}removeActions(e){e===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this.datepickerInput,this._focusedElementBeforeOpen=Ha(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;let e=this.restoreFocus&&this._focusedElementBeforeOpen&&typeof this._focusedElementBeforeOpen.focus=="function",t=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){let{instance:i,location:r}=this._componentRef;i._startExitAnimation(),i._animationDone.pipe(Se(1)).subscribe(()=>{let s=this._document.activeElement;e&&(!s||s===this._document.activeElement||r.nativeElement.contains(s))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()})}e?setTimeout(t):t()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(e){e.datepicker=this,e.color=this.color,e._dialogLabelId=this.datepickerInput.getOverlayLabelId(),e._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();let e=this.touchUi,t=new Ki(Qn,this._viewContainerRef),i=this._overlayRef=this._overlay.create(new ci({positionStrategy:e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:e?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:`mat-datepicker-${e?"dialog":"popup"}`}));this._getCloseStream(i).subscribe(r=>{r&&r.preventDefault(),this.close()}),i.keydownEvents().subscribe(r=>{let s=r.keyCode;(s===38||s===40||s===37||s===39||s===33||s===34)&&r.preventDefault()}),this._componentRef=i.attach(t),this._forwardContentValues(this._componentRef.instance),e||this._ngZone.onStable.pipe(Se(1)).subscribe(()=>i.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){let e=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(e)}_setConnectedPositions(e){let t=this.xPosition==="end"?"end":"start",i=t==="start"?"end":"start",r=this.yPosition==="above"?"bottom":"top",s=r==="top"?"bottom":"top";return e.withPositions([{originX:t,originY:s,overlayX:t,overlayY:r},{originX:t,originY:r,overlayX:t,overlayY:s},{originX:i,originY:s,overlayX:i,overlayY:r},{originX:i,originY:r,overlayX:i,overlayY:s}])}_getCloseStream(e){let t=["ctrlKey","shiftKey","metaKey"];return ne(e.backdropClick(),e.detachments(),e.keydownEvents().pipe(Ye(i=>i.keyCode===27&&!te(i)||this.datepickerInput&&te(i,"altKey")&&i.keyCode===38&&t.every(r=>!te(i,r)))))}};a.\u0275fac=function(t){return new(t||a)(c(ce),c(ct),c(ti),c(Gn),c(Y,8),c(qe,8),c(Gt))}
3,a.\u0275dir=R({type:a,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:[_.HasDecoratorInputTransform,"touchUi","touchUi",M],disabled:[_.HasDecoratorInputTransform,"disabled","disabled",M],xPosition:"xPosition",yPosition:"yPosition",restoreFocus:[_.HasDecoratorInputTransform,"restoreFocus","restoreFocus",M],dateClass:"dateClass",panelClass:"panelClass",opened:[_.HasDecoratorInputTransform,"opened","opened",M]},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[ue,oe]});let n=a;return n})(),$n=(()=>{let a=class a extends jn{};a.\u0275fac=(()=>{let e;return function(i){return(e||(e=Te(a)))(i||a)}})(),a.\u0275cmp=A({type:a,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],standalone:!0,features:[de([Yn,{provide:jn,useExisting:a}]),x,G],decls:0,vars:0,template:function(t,i){},encapsulation:2,changeDetection:0});let n=a;return n})(),Tt=class{constructor(a,o){this.target=a,this.targetElement=o,this.value=this.target.value}},no=(()=>{let a=class a{get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(e){this._assignValueProgrammatically(e)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(e){let t=e,i=this._elementRef.nativeElement;this._disabled!==t&&(this._disabled=t,this.stateChanges.next(void 0)),t&&this._isInitialized&&i.blur&&i.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(e){this._model=e,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(t=>{if(this._shouldHandleChangeEvent(t)){let i=this._getValueFromModel(t.selection);this._lastValueValid=this._isValidValue(i),this._cvaOnChange(i),this._onTouched(),this._formatValue(i),this.dateInput.emit(new Tt(this,this._elementRef.nativeElement)),this.dateChange.emit(new Tt(this,this._elementRef.nativeElement))}})}constructor(e,t,i){this._elementRef=e,this._dateAdapter=t,this._dateFormats=i,this.dateChange=new f,this.dateInput=new f,this.stateChanges=new K,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=$.EMPTY,this._localeSubscription=$.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=r=>{let s=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(r.value));return!s||this._matchesFilter(s)?null:{matDatepickerFilter:!0}},this._minValidator=r=>{let s=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(r.value)),b=this._getMinDate();return!b||!s||this._dateAdapter.compareDate(b,s)<=0?null:{matDatepickerMin:{min:b,actual:s}}},this._maxValidator=r=>{let s=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(r.value)),b=this._getMaxDate();return!b||!s||this._dateAdapter.compareDate(b,s)>=0?null:{matDatepickerMax:{max:b,actual:s}}},this._lastValueValid=!1,this._localeSubscription=t.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){ro(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(e){this._validatorOnChange=e}validate(e){return this._validator?this._validator(e):null}writeValue(e){this._assignValueProgrammatically(e)}registerOnChange(e){this._cvaOnChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_onKeydown(e){let t=["ctrlKey","shiftKey","metaKey"];te(e,"altKey")&&e.keyCode===40&&t.every(r=>!te(e,r))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())}_onInput(e){let t=this._lastValueValid,i=this._dateAdapter.parse(e,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(i),i=this._dateAdapter.getValidDateOrNull(i);let r=!this._dateAdapter.sameDate(i,this.value);!i||r?this._cvaOnChange(i):(e&&!this.value&&this._cvaOnChange(i),t!==this._lastValueValid&&this._val
3idatorOnChange()),r&&(this._assignValue(i),this.dateInput.emit(new Tt(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new Tt(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(e){this._elementRef.nativeElement.value=e!=null?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""}_assignValue(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e}_isValidValue(e){return!e||this._dateAdapter.isValid(e)}_parentDisabled(){return!1}_assignValueProgrammatically(e){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e),this._assignValue(e),this._formatValue(e)}_matchesFilter(e){let t=this._getDateFilter();return!t||t(e)}};a.\u0275fac=function(t){return new(t||a)(c(P),c(Y,8),c(ye,8))},a.\u0275dir=R({type:a,inputs:{value:"value",disabled:[_.HasDecoratorInputTransform,"disabled","disabled",M]},outputs:{dateChange:"dateChange",dateInput:"dateInput"},standalone:!0,features:[ue,oe]});let n=a;return n})();function ro(n,a){let o=Object.keys(n);for(let e of o){let{previousValue:t,currentValue:i}=n[e];if(a.isDateInstance(t)&&a.isDateInstance(i)){if(!a.sameDate(t,i))return!0}else return!0}return!1}var oo={provide:At,useExisting:$e(()=>Fi),multi:!0},so={provide:tn,useExisting:$e(()=>Fi),multi:!0},Fi=(()=>{let a=class a extends no{set matDatepicker(e){e&&(this._datepicker=e,this._closedSubscription=e.closedStream.subscribe(()=>this._onTouched()),this._registerModel(e.registerInput(this)))}get min(){return this._min}set min(e){let t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(t,this._min)||(this._min=t,this._validatorOnChange())}get max(){return this._max}set max(e){let t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(t,this._max)||(this._max=t,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(e){let t=this._matchesFilter(this.value);this._dateFilter=e,this._matchesFilter(this.value)!==t&&this._validatorOnChange()}constructor(e,t,i,r){super(e,t,i),this._formField=r,this._closedSubscription=$.EMPTY,this._validator=ui.compose(super._getValidators())}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(e){return e}_assignValueToModel(e){this._model&&this._model.updateSelection(e,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(e){return e.source!==this}};a.\u0275fac=function(t){return new(t||a)(c(P),c(Y,8),c(ye,8),c(xt,8))},a.\u0275dir=R({type:a,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(t,i){t&1&&g("input",function(s){return i._onInput(s.target.value)})("change",function(){return i._onChange()})("blur",function(){return i._onBlur()})("keydown",function(s){return i._onKeydown(s)}),t&2&&(Ra("disabled",i.disabled),w("aria-haspopup",i._datepicker?"dialog":null)("aria-owns",(i._datepicker==null?null:i._datepicker.opened)&&i._datepicker.id||null)("min",i.min?i._dateAdapter.toIso8601(i.min):null)("max",i.max?i._dateAdapter.toIso8601(i.max):null)("data-mat-calendar",i._datepicker?i._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:[_.None,"matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],standalone:!0,features:[de([oo,so,{provide:bn,useExisting:a}]),x]});let n=a;return n})(),ga=(()=>{let a=class a{};a.\u0275fac=function(t){return new(t||a)},a.\u0275dir=R({type:a,selectors:[["","matDatepickerToggleIcon",""]],standalone:!0});let n=a;return n})(),va=(()=>{let a=class a{get disabled(){return this._disabled===void 0&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=e}constructor(e,t,i){this._intl=e,this._changeDetectorRef=t,this._stateChanges=$.EMPTY;let r=Number(i);this.tabIndex=r||r===0?r:null}ngOnChanges(e){e.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())}_watchStateChanges(){let e=this.datepicker?this.datepicker.stateChanges:Qe(),t=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:Qe(),i=this.datepicker?ne(this.datepicker.openedStream,this.datepicker.closedStream):Qe();this._stateChanges.unsubscribe(),this._stateChanges=ne(this._intl.changes,e,t,i).subscribe(()=>this._changeDetectorRef.markForCheck())}};a.\u0275fac=function(t){return new(t||a)(c($t),c(z),ht("tabindex"))}
3,a.\u0275cmp=A({type:a,selectors:[["mat-datepicker-toggle"]],contentQueries:function(t,i,r){if(t&1&&se(r,ga,5),t&2){let s;D(s=S())&&(i._customIcon=s.first)}},viewQuery:function(t,i){if(t&1&&E(Wr,5),t&2){let r;D(r=S())&&(i._button=r.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(t,i){t&1&&g("click",function(s){return i._open(s)}),t&2&&(w("tabindex",null)("data-mat-calendar",i.datepicker?i.datepicker.id:null),q("mat-datepicker-toggle-active",i.datepicker&&i.datepicker.opened)("mat-accent",i.datepicker&&i.datepicker.color==="accent")("mat-warn",i.datepicker&&i.datepicker.color==="warn"))},inputs:{datepicker:[_.None,"for","datepicker"],tabIndex:"tabIndex",ariaLabel:[_.None,"aria-label","ariaLabel"],disabled:[_.HasDecoratorInputTransform,"disabled","disabled",M],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],standalone:!0,features:[ue,oe,G],ngContentSelectors:Qr,decls:4,vars:6,consts:[["button",""],["mat-icon-button","","type","button",3,"disabled","disableRipple"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(t,i){t&1&&(we(Gr),m(0,"button",1,0),h(2,$r,2,0,":svg:svg",2),_e(3),u()),t&2&&(l("disabled",i.disabled)("disableRipple",i.disableRipple),w("aria-haspopup",i.datepicker?"dialog":null)("aria-label",i.ariaLabel||i._intl.openCalendarLabel)("tabindex",i.disabled?-1:i.tabIndex),d(2),Xe(2,i._customIcon?-1:2))},dependencies:[Kt],styles:[".mat-datepicker-toggle{pointer-events:auto;color:var(--mat-datepicker-toggle-icon-color)}.mat-datepicker-toggle-active{color:var(--mat-datepicker-toggle-active-state-icon-color)}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0});let n=a;return n})();var Un=(()=>{let a=class a{};a.\u0275fac=function(t){return new(t||a)},a.\u0275mod=j({type:a}),a.\u0275inj=H({providers:[$t,ao],imports:[Q,Ai,Je,Ga,Ua,ke,Qn,va,Wn,St]});let n=a;return n})();var co=["trigger"],po=["panel"],mo=[[["mat-select-trigger"]],"*"],uo=["mat-select-trigger","*"];function ho(n,a){if(n&1&&(m(0,"span",4),V(1),u()),n&2){let o=p();d(),Ae(o.placeholder)}}function _o(n,a){n&1&&_e(0)}function fo(n,a){if(n&1&&(m(0,"span",11),V(1),u()),n&2){let o=p(2);d(),Ae(o.triggerValue)}}function go(n,a){if(n&1&&(m(0,"span",10),h(1,_o,1,0)(2,fo,2,1),u()),n&2){let o=p();d(),Xe(1,o.customTrigger?1:2)}}function vo(n,a){if(n&1){let o=T();m(0,"div",12,1),g("@transformPanel.done",function(t){y(o);let i=p();return C(i._panelDoneAnimatingStream.next(t.toState))})("keydown",function(t){y(o);let i=p();return C(i._handleKeydown(t))}),_e(2,1),u()}if(n&2){let o=p();Va("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",o._getPanelTheme(),""),l("ngClass",o.panelClass)("@transformPanel","showing"),w("id",o.id+"-panel")("aria-multiselectable",o.multiple)("aria-label",o.ariaLabel||null)("aria-labelledby",o._getPanelAriaLabelledby())}}var bo={transformPanelWrap:et("transformPanelWrap",[be("* => void",en("@transformPanel",[Ja()],{optional:!0}))]),transformPanel:et("transformPanel",[ut("void",W({opacity:0,transform:"scale(1, 0.8)"})),be("void => showing",ve("120ms cubic-bezier(0, 0, 0.2, 1)",W({opacity:1,transform:"scale(1, 1)"}))),be("* => void",ve("100ms linear",W({opacity:0})))])};var Zn=0,Jn=new U("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let n=Ee(ce);return()=>n.scrollStrategies.reposition()}});function yo(n){return()=>n.scrollStrategies.reposition()}var Co=new U("MAT_SELECT_CONFIG"),Do={provide:Jn,deps:[ce],useFactory:yo},So=new U("MatSelectTrigger"),ba=class{constructor(a,o){this.source=a,this.value=o}},er=(()=>{let a=class a{_scrollOptionIntoView(e){let t=this.options.toArray()[e];if(t){let i=this.panel.nativeElement,r=vi(e,this.options,this.optionGroups),s=t._getHostElement();e===0&&r===1?i.scrollTop=0:i.scrollTop=bi(s.offsetTop,s.offsetHeight,i.scrollTop,i.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new ba(this,e)}get focused(){return this._focused||this._panelOpen}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(ui.required)??!1}set required(e){this._required=e,this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._selectionModel,this._multiple=e}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}constructor(e,t,i,r,s,b,F,Ge,Ni,Xt,Bi,ie,Hi,ji){this._viewportRuler
3=e,this._changeDetectorRef=t,this._elementRef=s,this._dir=b,this._parentFormField=Ni,this.ngControl=Xt,this._liveAnnouncer=Hi,this._defaultOptions=ji,this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._panelOpen=!1,this._compareWith=(me,Yi)=>me===Yi,this._uid=`mat-select-${Zn++}`,this._triggerAriaLabelledBy=null,this._destroy=new K,this.stateChanges=new K,this.disableAutomaticLabeling=!0,this._onChange=()=>{},this._onTouched=()=>{},this._valueId=`mat-select-value-${Zn++}`,this._panelDoneAnimatingStream=new K,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this._multiple=!1,this.disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto",this._initialized=new K,this.optionSelectionChanges=Zt(()=>{let me=this.options;return me?me.changes.pipe(re(me),Ke(()=>ne(...me.map(Yi=>Yi.onSelectionChange)))):this._initialized.pipe(Ke(()=>this.optionSelectionChanges))}),this.openedChange=new f,this._openedStream=this.openedChange.pipe(Ye(me=>me),ae(()=>{}
3)),this._closedStream=this.openedChange.pipe(Ye(me=>!me),ae(()=>{})),this.selectionChange=new f,this.valueChange=new f,this._trackedModal=null,this._skipPredicate=me=>this.panelOpen?!1:me.disabled,this.ngControl&&(this.ngControl.valueAccessor=this),ji?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=ji.typeaheadDebounceInterval),this._errorStateTracker=new Xi(r,Xt,Ge,F,this.stateChanges),this._scrollStrategyFactory=ie,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(Bi)||0,this.id=this.id}ngOnInit(){this._selectionModel=new Qa(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Ma(),dt(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen)),this._viewportRuler.change().pipe(dt(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}ngAfterContentInit(){this._initialized.next(),this._initialized.complete(),this._initKeyManager(),this._selectionModel.changed.pipe(dt(this._destroy)).subscribe(e=>{e.added.forEach(t=>t.select()),e.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(re(null),dt(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let e=this._getTriggerAriaLabelledby(),t=this.ngControl;if(e!==this._triggerAriaLabelledBy){let i=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?i.setAttribute("aria-labelledby",e):i.removeAttribute("aria-labelledby")}t&&(this._previousControl!==t.control&&(this._previousControl!==void 0&&t.disabled!==null&&t.disabled!==this.disabled&&(this.disabled=t.disabled),this._previousControl=t.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_applyModalPanelOwnership(){let e=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;let t=`${this.id}-panel`;this._trackedModal&&mt(this._trackedModal,"aria-owns",t),Ht(e,"aria-owns",t),this._trackedModal=e}_clearFromModal(){if(!this._trackedModal)return;let e=`${this.id}-panel`;mt(this._trackedModal,"aria-owns",e),this._trackedModal=null}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next())}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){let e=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return this._dir?this._dir.value==="rtl":!1}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){let t=e.keyCode,i=t===40||t===38||t===37||t===39,r=t===13||t===32,s=this._keyManager;if(!s.isTyping()&&r&&!te(e)||(this.multiple||e.altKey)&&i)e.preventDefault(),this.open();else if(!this.multiple){let b=this.selected;s.onKeydown(e);let F=this.selected;F&&b!==F&&this._liveAnnouncer.announce(F.viewValue,1e4)}}_handleOpenKeydown(e){let t=this._keyManager,i=e.keyCode,r=i===40||i===38,s=t.isTyping();if(r&&e.altKey)e.preventDefault(),this.close();else if(!s&&(i===13||i===32)&&t.activeItem&&!te(e))e.preventDefault(),t.activeItem._selectViaInteraction();else if(!s&&this._multiple&&i===65&&e.ctrlKey){e.preventDefault();let b=this.options.some(F=>!F.disabled&&!F.selected);this.options.forEach(F=>
3{F.disabled||(b?F.select():F.deselect())})}else{let b=t.activeItemIndex;t.onKeydown(e),this._multiple&&r&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==b&&t.activeItem._selectViaInteraction()}}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(Se(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this.options.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(t=>this._selectOptionByValue(t)),this._sortValues();else{let t=this._selectOptionByValue(e);t?this._keyManager.updateActiveItem(t):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){let t=this.options.find(i=>{if(this._selectionModel.isSelected(i))return!1;try{return i.value!=null&&this._compareWith(i.value,e)}catch{return!1}});return t&&this._selectionModel.select(t),t}_assignValue(e){return e!==this._value||this._multiple&&Array.isArray(e)?(this.options&&this._setSelectionByValue(e),this._value=e,!0):!1}_getOverlayWidth(e){return this.panelWidth==="auto"?(e instanceof Wi?e.elementRef:e||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new li(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){let e=ne(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(dt(e)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),ne(...this.options.map(t=>t._stateChanges)).pipe(dt(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,t){let i=this._selectionModel.isSelected(e);e.value==null&&!this._multiple?(e.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(e.value)):(i!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())),i!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let e=this.options.toArray();this._selectionModel.sort((t,i)=>this.sortComparator?this.sortComparator(t,i,e):e.indexOf(t)-e.indexOf(i)),this.stateChanges.next()}}_propagateChanges(e){let t;this.multiple?t=this.selected.map(i=>i.value):t=this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let e=-1;for(let t=0;t<this.options.length;t++)if(!this.options.get(t).disabled){e=t;break}this._keyManager.setActiveItem(e)}else this._keyManager.setActiveItem(this._selectionModel.selected[0])}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId(),t=e?e+" ":"";return this.ariaLabelledby?t+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId(),t=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(t+=" "+this.ariaLabelledby),t}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}};a.\u0275fac=function(t){return new(t||a)(c(di),c(z),c(ct),c(jt),c(P),c(qe,8),c(an,8),c(rn,8),c(xt,8),c($i,10),ht("tabindex"),c(Jn),c(za),c(Co,8))},a.\u0275cmp=A({type:a,selectors:[["mat-select"]],contentQueries:function(t,i,r){if(t&1&&(se(r,So,5),se(r,it,5),se(r,gi,5)),t&2){let s;D(s=S())&&(i.customTrigger=s.first),D(s=S())&&(i.options=s),D(s=S())&&(i.optionGroups=s)}},viewQuery:function(t,i){if(t&1&&(E(co,5),E(po,5),E(Gi,5)),t&2){let r;D(r=S())&&(i.trigger=r.first),D(r=S())&&(i.panel=r.first),D(r=S())&&(i._overlayDir=r.first)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(t,i){t&1&&g("keydown",function(s){return i._handleKeydown(s)})("focus",function(){return i._onFocus()})("blur",function(){return i._onBlur()}),t&2&&(w("id",i.id)("tabindex",i.disabled?-1:i.tabIndex)("aria-controls",i.panelOpen?i.id+"-panel":null)("aria-expanded",i.panelOpen)("aria-label",i.ariaLabel||null)("aria-required",i.required.toString())("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState)("aria-activedescendant",i._getAriaActiveDescendant()),q("mat-mdc-select-disabled",i.disabled)("mat-mdc-select-invalid",i.errorState)("mat-mdc-select-required",i.required)("mat-mdc-select-empty",i.empty)("mat-mdc-select-multiple",i.multiple))},inputs:{userAriaDescribedBy:[_.None,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[_.HasDecoratorInputTransform,"disabled","disabled",M],disableRipple:[_.HasDecoratorInputTransform,"disableRipple","disableRipple",M],tabIndex:[_.HasDecoratorInputTransform,"tabIndex","tabIndex",e=>e==null?0:yt(e)],hideSingleSelectionIndicator:[_.HasDecoratorInputTransform,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",M],placeholder:"placeholder",required:[_.HasDecoratorInputTransform,"required","required",M],multiple:[_.HasDecoratorInputTransform,"multiple","multiple",M],disableOptionCentering:[_.HasDecoratorInputTransform,"disableOptionCentering","disableOptionCentering",M],compareWith:"compareWith",value:"value",ariaLabel:[_.None,"aria-label","ariaLabel"],ariaLabelledby:[_.None,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[_.HasDecoratorInputTransform,"typeaheadDebounceInterval","typeaheadDebounceInterval",yt],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],standalone:!0,features:[de([{provide:Yt,useExisting:a},{provide:fi,useExisting:a}]),ue,oe,G],ngContentSelectors:uo,decls:11,vars:8,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"backdropClick","attach","detach","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(t,i){if(t&1){let r=T();we(mo),m(0,"div",2,0),g("click",function(){return y(r),C(i.open())}
3),m(3,"div",3),h(4,ho,2,1,"span",4)(5,go,3,1),u(),m(6,"div",5)(7,"div",6),Lt(),m(8,"svg",7),v(9,"path",8),u()()()(),h(10,vo,3,9,"ng-template",9),g("backdropClick",function(){return y(r),C(i.close())})("attach",function(){return y(r),C(i._onAttached())})("detach",function(){return y(r),C(i.close())})}if(t&2){let r=J(1);d(3),w("id",i._valueId),d(),Xe(4,i.empty?4:5),d(6),l("cdkConnectedOverlayPanelClass",i._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",i._scrollStrategy)("cdkConnectedOverlayOrigin",i._preferredOverlayOrigin||r)("cdkConnectedOverlayOpen",i.panelOpen)("cdkConnectedOverlayPositions",i._positions)("cdkConnectedOverlayWidth",i._overlayWidth)}},dependencies:[Wi,Gi,ee],styles:['.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color);font-family:var(--mat-select-trigger-text-font);line-height:var(--mat-select-trigger-text-line-height);font-size:var(--mat-select-trigger-text-size);font-weight:var(--mat-select-trigger-text-weight);letter-spacing:var(--mat-select-trigger-text-tracking)}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow)}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color)}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color)}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color)}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color)}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color)}.cdk-high-contrast-active div.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}div.mat-mdc-select-panel .mat-mdc-option{--mdc-list-list-item-container-color: var(--mat-select-panel-background-color)}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color)}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform)}'],encapsulation:2,data:{animation:[bo.transformPanel]},changeDetection:0});let n=a;return n})();var tr=(()=>{let a=class a{};a.\u0275fac=function(t){return new(t||a)},a.\u0275mod=j({type:a}),a.\u0275inj=H({providers:[Do],imports:[Q,Je,It,ke,St,Si,It,ke]});let n=a;return n})();var Ao=["formFieldEl"],ko=["*"],Io=(n,a,o)=>({mandatory:n,formErrorKey:a,disabled:o}),Mo=n=>({static:n}),xo=n=>["select-custom-arrow",n],ir=n=>["mat-custom-select",n];function Eo(n,a){if(n&1&&v(0,"mat-label",14),n&2){let o=p(3);l("innerHTML",o.labelText,Z)}}function To(n,a){if(n&1&&(m(0,"option",19),V(1),k(2,"cxTranslate"),u()),n&2){let o=p(4).sipLet,e=p();l("ngValue",null)("disabled",o.mandatory),d(),le(" ",I(2,3,e.skipBlankMessageKey)," ")}}function Oo(n,a){if(n&1&&(m(0,"option",20),V(1),k(2,"cxTranslate"),u()),n&2){let o,e=a.$implicit,t=p(5);l("ngValue",e[t.itemValue]),d(),le(" ",(o=e[t.itemLabel])!==null&&o!==void 0?o:I(2,2,e[t.itemLabelKey])," ")}}function Fo(n,a){if(n&1&&(L(0),h(1,To,3,5,"option",17)(2,Oo,3,4,"o
3ption",18),N()),n&2){let o=p(4);d(),l("ngIf",o.skipBlankMessageKey),d(),l("ngForOf",o.items)}}function Vo(n,a){n&1&&he(0)}function Ro(n,a){if(n&1){let o=T();m(0,"select",15),g("change",function(t){y(o);let i=p(3);return C(i.onNativeSelectChange(t))}),h(1,Fo,3,2,"ng-container",3)(2,Vo,1,0,"ng-container",16),u()}if(n&2){let o,e=p(2).sipLet,t=p(),i=J(5);l("id",t.idKey)("ngClass",X(8,ir,(o=t.controlsCSS)!==null&&o!==void 0?o:""))("formControl",t.control)("readonly",t.readOnly)("required",e.mandatory),w("aria-disabled",t.readOnly||(t.control==null?null:t.control.disabled)),d(),l("ngIf",t.items),d(),l("ngTemplateOutlet",i)}}function Po(n,a){if(n&1&&(m(0,"option",19),V(1),k(2,"cxTranslate"),u()),n&2){let o=p(4).sipLet,e=p();l("ngValue",null)("disabled",o.mandatory),d(),le(" ",I(2,3,e.skipBlankMessageKey)," ")}}function Lo(n,a){if(n&1&&(m(0,"option",20),V(1),k(2,"cxTranslate"),u()),n&2){let o,e=a.$implicit,t=p(5);l("ngValue",e[t.itemValue]),d(),le(" ",(o=e[t.itemLabel])!==null&&o!==void 0?o:I(2,2,e[t.itemLabelKey])," ")}}function No(n,a){if(n&1&&(L(0),h(1,Po,3,5,"option",17)(2,Lo,3,4,"option",18),N()),n&2){let o=p(4);d(),l("ngIf",o.skipBlankMessageKey),d(),l("ngForOf",o.items)}}function Bo(n,a){n&1&&he(0)}function Ho(n,a){if(n&1){let o=T();m(0,"select",21),g("change",function(t){y(o);let i=p(3);return C(i.onNativeSelectChange(t))}),h(1,No,3,2,"ng-container",3)(2,Bo,1,0,"ng-container",16),u()}if(n&2){let o,e=p(3),t=J(5);l("id",e.idKey)("ngClass",X(4,ir,(o=e.controlsCSS)!==null&&o!==void 0?o:"")),d(),l("ngIf",e.items),d(),l("ngTemplateOutlet",t)}}function jo(n,a){if(n&1&&(m(0,"mat-option",25),V(1),k(2,"cxTranslate"),u()),n&2){let o=p(4).sipLet,e=p();l("value",null)("disabled",o.mandatory),d(),le(" ",I(2,3,e.skipBlankMessageKey)," ")}}function Yo(n,a){if(n&1&&(m(0,"mat-option",26),V(1),k(2,"cxTranslate"),u()),n&2){let o,e=a.$implicit,t=p(5);l("value",e[t.itemValue]),d(),le(" ",(o=e[t.itemLabel])!==null&&o!==void 0?o:I(2,2,e[t.itemLabelKey])," ")}}function Ko(n,a){if(n&1&&(L(0),h(1,jo,3,5,"mat-option",23)(2,Yo,3,4,"mat-option",24),N()),n&2){let o=p(4);d(),l("ngIf",o.skipBlankMessageKey),d(),l("ngForOf",o.items)}}function zo(n,a){n&1&&he(0)}function qo(n,a){if(n&1){let o=T();m(0,"mat-select",22),g("selectionChange",function(t){y(o);let i=p(3);return C(i.onMatSelectChange(t))}),gt("valueChange",function(t){y(o);let i=p(3);return ft(i.selectedValue,t)||(i.selectedValue=t),C(t)}),h(1,Ko,3,2,"ng-container",3)(2,zo,1,0,"ng-container",16),u()}if(n&2){let o=p(3),e=J(5);l("id",o.idKey),_t("value",o.selectedValue),d(),l("ngIf",o.items),d(),l("ngTemplateOutlet",e)}}function Wo(n,a){n&1&&he(0)}function Go(n,a){if(n&1&&(m(0,"div",27),h(1,Wo,1,0,"ng-container",16),u()),n&2){let o=p(3);d(),l("ngTemplateOutlet",o.prefixTpl)}}function Qo(n,a){if(n&1&&v(0,"mat-error",28),n&2){let o=p(2).sipLet,e=p();l("formErrorKey",e.showManualError?e.manualErrorKey:o.formErrorKey)}}function $o(n,a){if(n&1&&v(0,"sip-field-hint",29),n&2){let o=p(3);l("hintKey",o.hintKey)}}function Uo(n,a){if(n&1&&(L(0),m(1,"mat-form-field",4,1),h(3,Eo,1,1,"mat-label",5)(4,Ro,3,10,"select",6)(5,Ho,3,6,"select",7)(6,qo,3,4,"mat-select",8),m(7,"div",9),v(8,"mat-icon",10),u(),h(9,Go,2,1,"div",11)(10,Qo,1,1,"mat-error",12),u(),h(11,$o,1,1,"sip-field-hint",13),N()),n&2){let o=p().sipLet,e=p();d(),q("mat-drop-down",!e.native),l("sipDataSelector",X(12,Mo,e.SIP_DATA_SELECTOR.SELECT_BOX)),d(2),l("ngIf",e.labelText),d(),l("ngIf",e.control&&e.native),d(),l("ngIf",!e.control&&e.native),d(),l("ngIf",!e.control&&!e.native),d(),l("ngClass",X(14,xo,o.disabled?"arrow-disabled":"")),d(),l("fontIcon",e.SipCostcoIcon.CHEVRON_DOWN),d(),l("ngIf",e.prefixTpl),d(),l("ngIf",o.formErrorKey||e.showManualError),d(),l("ngIf",e.hintKey)}}function Xo(n,a){if(n&1&&(L(0),h(1,Uo,12,16,"ng-container",3),N()),n&2){let o=p();d(),l("ngIf",!o.hideControl)}}function Zo(n,a){n&1&&_e(0)}var Zc=(()=>{let a=class a extends Ce{constructor(e){super(),this.cdRef=e,this.itemValue="code",this.itemLabel="name",this.itemLabelKey="nameKey",this.native=!0,this.items=[],this.handleChange=new f,this.SipCostcoIcon=tt,this.SIP_DATA_SELECTOR=Mt}focus(){throw new Error("focus is not implemented for SipSelectBoxComponent")}ngOnChanges(e){super.ngOnChanges(e),(e.items||e.itemValue||e.itemLabel||e.skipBlankMessageKey)&&this.control&&(!this.skipBlankMessageKey&&this.control.value===null?this.control.setValue(void 0):(this.control.setValue(this.control.value,{emitEvent:!1}),e.items&&(this.cdRef.detectChanges(),this.cdRef.markForCheck())))}onNativeSelectChange(e){let t=e.target;this.handleChange.emit(t.value)}onMatSelectChange(e){this.handleChange.emit(e.value)}};a.\u0275fac=function(t){return new(t||a)(c(z))},a.\u0275cmp=A({type:a,selectors:[["sip-select-box"]],viewQuery:function(t,i){if(t&1&&E(Ao,5),t&2){let r;D(r=S())&&(i.formFieldEl=r.first)}},inputs:{itemValue:"itemValue",itemLabel:"itemLabel",itemLabelKey:"itemLabelKey",native:"native",selectedValue:"selectedValue",skipBlankMessageKey:"skipBlankMessageKey",items:"items"},outputs:{handleChange:"handleChange"},features:[x,oe],ngContentSelectors:ko,decls:6,vars:11,consts:[["contentTpl",""],["formFieldEl",""],[4,"sipLet"],[4,"ngIf"],[1,"cds-form-field",3,"sipDataSelector"],[3,"innerHTML",4,"ngIf"],["matNativeControl","",3,"id","ngClass","formControl","readonly","required","change",4,"ngIf"],["matNativeControl","",3,"id","ngClass","change",4,"ngIf"],["panelClass","custom-panel",3,"id","value","selectionChange","valueChange",4,"ngIf"],[3,"ngClass"],["matSuffix","",3,"fontIcon"],["matPrefix","",4,"ngIf"],["sipFieldError","",3,"formErrorKey",4,"ngIf"],[3,"hintKey",4,"ngIf"],[3,"innerHTML"],["matNativeControl","",3,"change","id","ngClass","formControl","readonly","required"],[4,"ngTemplateOutlet"],[3,"ngValue","disabled",4,"ngIf"],[3,"ngValue",4,"ngFor","ngForOf"],[3,"ngValue","disabled"],[3,"ngValue"],["matNativeControl","",3,"change","id","ngClass"],["panelClass","custom-panel",3,"selectionChange","valueChange","id","value"],["class","custom-option",3,"value","disabled",4,"ngIf"],["class","custom-option",3,"value",4,"ngFor","ngForOf"],[1,"custom-option",3,"value","disabled"],[1,"custom-option",3,"value"],["matPrefix",""],["sipFieldError","",3,"formErrorKey"],[3,"hintKey"]],template:function(t,i){t&1&&(we(),h(0,Xo,2,1,"ng-container",2),k(1,"async"),k(2,"async"),k(3,"async"),h(4,Zo,1,0,"ng-template",null,0,bt)),t&2&&l("sipLet",Na(7,Io,I(1,1,i.isRequired$),I(2,3,i.formErrorKey$),I(3,5,i.controlDisabled$)))},dependencies:[ee,Dt,fe,Ze,sn,ln,on,Oe,hi,Fe,wi,Be,Pe,Le,Di,Ne,Ve,Re,at,it,er,He,nt,ge,mi],styles:["[_nghost-%COMP%] .mdc-text-field--outlined{padding-left:0}[_nghost-%COMP%] .mat-drop-down .mat-mdc-select{padding-left:16px;padding-right:28px}[_nghost-%COMP%] .mat-drop-down .mat-mdc-select-arrow-wrapper{display:none}[_nghost-%COMP%] .mat-drop-down .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading, [_nghost-%COMP%] .mat-drop-down .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border:none}[_nghost-%COMP%] .mat-drop-down .mat-mdc-select-min-line{font-size:14px}.cds-form-field[_ngcontent-%COMP%] .mat-custom-select[_ngcontent-%COMP%]{padding-left:16px;padding-right:28px;overflow:hidden}.select-custom-arrow[_ngcontent-%COMP%]{position:absolute;pointer-events:none;color:#005dab;top:8px;right:8px}.select-custom-arrow.arrow-disabled[_ngcontent-%COMP%]{color:#eff7fb}"],changeDetection:0});let n=a;return n})();var Jo=(n,a)=>({mandatory:n,formErrorKey:a}),es=()=>[];function ts(n,a){if(n&1&&v(0,"mat-label",8),n&2){let o=p(3);l("innerHTML",o.labelText,Z)}}function is(n,a){if(n&1&&v(0,"mat-icon",9),n&2){let o=p(3);l("fontIcon",o.icon)}}function as(n,a){if(n&1&&v(0,"mat-error",10),n&2){let o=p(2).sipLet,e=p();l("formErrorKey",e.showManualError?e.manualErrorKey:o.formErrorKey)}}function ns(n,a){if(n&1&&v(0,"sip-field-hint",11),n&2){let o=p(3);l("hintKey",o.hintKey)}}function rs(n,a){if(n&1&&(L(0),m(1,"mat-form-field",2),h(2,ts,1,1,"mat-label",3),v(3,"textarea",4),h(4,is,1,1,"mat-icon",5)(5,as,1,1,"mat-error",6),u(),h(6,ns,1,1,"sip-field-hint",7),N()),n&2){let o,e=p().sipLet,t=p();d(2),l("ngIf",t.labelText),d(),l("cdkAutosizeMinRows",t.minRows)("cdkAutosizeMaxRows",t.maxRows)("formControl",t.control)("readonly",t.readOnly)("id",t.idKey)("placeholder",t.placeholder)("ngClass",(o=t.controlsCSS)!==null&&o!==void 0?o:vt(13,es)),w("aria-disabled",t.readOnly||(t.control==null?null:t.control.disabled))("maxlength",t.maxlength),d(),l("ngIf",t.icon),d(),l("ngIf",e.formErrorKey||t.showManualError),d(),l("ngIf",t.hintKey)}}function os(n,a){if(n&1&&(L(0),h(1,rs,7,14,"ng-container",1),N()),n&2){let o=p();d(),l("ngIf",o.control&&!o.hideControl)}}var ip=(()=>{let a=class a extends Ce{constructor(){super(...arguments),this.placeholder="",this.maxlength=null}focus(){throw new Error("focus is not implemented for SipTextAreaComponent")}};a.\u0275fac=(()=>{let e;return function(i){return(e||(e=Te(a)))(i||a)}}
3)(),a.\u0275cmp=A({type:a,selectors:[["sip-text-area"]],inputs:{minRows:"minRows",maxRows:"maxRows",placeholder:"placeholder",maxlength:"maxlength"},features:[x],decls:3,vars:8,consts:[[4,"sipLet"],[4,"ngIf"],[1,"cds-form-field"],[3,"innerHTML",4,"ngIf"],["sipMatInput","","cdkTextareaAutosize","",3,"cdkAutosizeMinRows","cdkAutosizeMaxRows","formControl","readonly","id","placeholder","ngClass"],["matSuffix","",3,"fontIcon",4,"ngIf"],["sipFieldError","",3,"formErrorKey",4,"ngIf"],[3,"hintKey",4,"ngIf"],[3,"innerHTML"],["matSuffix","",3,"fontIcon"],["sipFieldError","",3,"formErrorKey"],[3,"hintKey"]],template:function(t,i){t&1&&(h(0,os,2,1,"ng-container",0),k(1,"async"),k(2,"async")),t&2&&l("sipLet",pt(5,Jo,I(1,1,i.isRequired$),I(2,3,i.formErrorKey$)))},dependencies:[ee,fe,kt,Oe,Fe,Be,Pe,Le,Ne,vn,Ve,Re,He,nt,Et,ge],encapsulation:2,changeDetection:0});let n=a;return n})();var nr=(()=>{let a=class a{constructor(){this.loading=new Pt(!1)}getLoading(){return this.loading.asObservable()}};a.\u0275fac=function(t){return new(t||a)},a.\u0275prov=xe({token:a,factory:a.\u0275fac,providedIn:"root"});let n=a;return n})();var ss=(n,a)=>({mandatory:n,formErrorKey:a}),ls=(n,a)=>({static:n,dynamic:a}),ds=()=>[],cs=n=>({result:n});function ps(n,a){if(n&1&&v(0,"mat-label",13),n&2){let o=p(3);l("innerHTML",o.labelText,Z)}}function ms(n,a){n&1&&he(0)}function us(n,a){if(n&1&&(m(0,"mat-option",14),h(1,ms,1,0,"ng-container",15),u()),n&2){let o=a.$implicit,e=p(3);l("value",o),d(),l("ngTemplateOutlet",e.optionTemplate)("ngTemplateOutletContext",X(3,cs,o))}}function hs(n,a){if(n&1&&v(0,"mat-icon",16),n&2){let o=p(3);l("fontIcon",o.SipCostcoIcon.SEARCH)}}function _s(n,a){n&1&&v(0,"sip-spinner",17)}function fs(n,a){if(n&1&&v(0,"mat-icon",18),n&2){let o=p(3);l("fontIcon",o.icon)}}function gs(n,a){if(n&1&&v(0,"mat-error",19),n&2){let o=p(2).sipLet,e=p();l("formErrorKey",e.showManualError?e.manualErrorKey:o.formErrorKey)}}function vs(n,a){if(n&1&&v(0,"sip-field-hint",20),n&2){let o=p(3);l("hintKey",o.hintKey)}}function bs(n,a){if(n&1){let o=T();L(0),m(1,"mat-form-field",3),h(2,ps,1,1,"mat-label",4),m(3,"input",5),g("input",function(t){y(o);let i=p(2);return C(i.onInput(t))}),u(),m(4,"mat-autocomplete",6,0),g("optionSelected",function(t){y(o);let i=p(2);return C(i.selectOption(t))}),h(6,us,2,5,"mat-option",7),k(7,"async"),u(),h(8,hs,1,1,"mat-icon",8)(9,_s,1,0,"sip-spinner",9),k(10,"async"),h(11,fs,1,1,"mat-icon",10)(12,gs,1,1,"mat-error",11),u(),h(13,vs,1,1,"sip-field-hint",12),N()}if(n&2){let o,e=J(5),t=p().sipLet,i=p();d(2),l("ngIf",i.labelText),d(),l("formControl",i.control)("id",i.idKey)("name",i.name)("sipDataSelector",pt(22,ls,i.SIP_DATA_SELECTOR.TEXT_INPUT,i.idKey||i.name))("placeholder",i.placeholder)("ngClass",(o=i.controlsCSS)!==null&&o!==void 0?o:vt(25,ds))("readonly",i.readOnly)("required",t.mandatory)("matAutocomplete",e),w("aria-disabled",i.readOnly||(i.control==null?null:i.control.disabled)),d(),l("disableRipple",!0),d(2),l("ngForOf",I(7,18,i.results$)),d(2),l("ngIf",i.searchIcon),d(),l("ngIf",i.showLoadingIndicator&&I(10,20,i.loading$)),d(2),l("ngIf",i.icon&&!i.showLoadingIndicator),d(),l("ngIf",t.formErrorKey||i.showManualError),d(),l("ngIf",i.hintKey)}}function ys(n,a){if(n&1&&(L(0),h(1,bs,14,26,"ng-container",2),N()),n&2){let o=p();d(),l("ngIf",o.control&&!o.hideControl)}}var vp=(()=>{let a=class a extends Ce{constructor(){super(),this.handleResultSelect=new f,this.showResults$=new K,this.SipCostcoIcon=tt,this.autocompleteService=Ee(nr)}focus(){throw new Error("focus is not implemented for SipAutocompleteComponent")}selectOption(e){this.handleResultSelect.emit(e.option.value),this.showResults$.next("")}onInput(e){let t=e.target.value;this.showResults$.next(t)}ngOnInit(){super.ngOnInit(),this.loading$=this.autocompleteService.getLoading(),this.results$=this.showResults$.pipe(ka(500),ae(e=>e??""),Ke(e=>e.length<(this.minLength??1)?Qe([]):this.autocompleteService.getResults(e,this.extraParams)))}};a.\u0275fac=function(t){return new(t||a)},a.\u0275cmp=A({type:a,selectors:[["sip-autocomplete"]],contentQueries:function(t,i,r){if(t&1&&se(r,Nt,5),t&2){let s;D(s=S())&&(i.optionTemplate=s.first)}},inputs:{placeholder:"placeholder",extraParams:"extraParams",showLoadingIndicator:"showLoadingIndicator",minLength:"minLength",searchIcon:"searchIcon"},outputs:{handleResultSelect:"handleResultSelect"},features:[x],decls:3,vars:8,consts:[["autoComplete","matAutocomplete"],[4,"sipLet"],[4,"ngIf"],[1,"cds-form-field"],[3,"innerHTML",4,"ngIf"],["sipMatInput","",3,"input","formControl","id","name","sipDataSelector","placeholder","ngClass","readonly","required","matAutocomplete"],["autoActiveFirstOption","",3,"optionSelected","disableRipple"],[3,"value",4,"ngFor","ngForOf"],["matPrefix","",3,"fontIcon",4,"ngIf"],["customClass","no-margin","matSuffix","",4,"ngIf"],["matSuffix","",3,"fontIcon",4,"ngIf"],["sipFieldError","",3,"formErrorKey",4,"ngIf"],[3,"hintKey",4,"ngIf"],[3,"innerHTML"],[3,"value"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["matPrefix","",3,"fontIcon"],["customClass","no-margin","matSuffix",""],["matSuffix","",3,"fontIcon"],["sipFieldError","",3,"formErrorKey"],[3,"hintKey"]],template:function(t,i){t&1&&(h(0,ys,2,1,"ng-container",1),k(1,"async"),k(2,"async")),t&2&&l("sipLet",pt(5,ss,I(1,1,i.isRequired$),I(2,3,i.formErrorKey$)))},dependencies:[ee,Dt,fe,Ze,kt,Oe,hi,Fe,Be,Pe,Le,Di,Ne,Ve,Re,at,xn,it,oa,gn,He,nt,Et,ge],styles:[".autocomplete-results[_ngcontent-%COMP%]{width:100%;overflow:auto;max-height:250px}.autocomplete-results[_ngcontent-%COMP%] .autocomplete-item[_ngcontent-%COMP%]{padding:8px}"],changeDetection:0});let n=a;return n})();
3var Cs=n=>({"radio-inner":!0,"radio-inner-column-variant":n}),Ds=n=>({static:n}),rr=n=>({option:n});function Ss(n,a){if(n&1&&v(0,"label",7),n&2){let o,e=p();l("ngClass",(o=e.labelCSS)!==null&&o!==void 0?o:"")("innerHTML",e.labelText,Z)}}function ws(n,a){if(n&1&&(m(0,"mat-radio-button",8),he(1,9),u()),n&2){let o=a.$implicit,e=p(),t=J(5);l("disableRipple",!0)("ngClass",e.optionCss)("value",o.value)("disabled",o.disabled),d(),l("ngTemplateOutlet",t)("ngTemplateOutletContext",X(6,rr,o))}}function As(n,a){if(n&1&&(L(0),he(1,9),N()),n&2){let o=p().option,e=p();d(),l("ngTemplateOutlet",e.optionTemplate)("ngTemplateOutletContext",X(2,rr,o))}}function ks(n,a){if(n&1&&(L(0),v(1,"span",11),N()),n&2){let o=p(2).option;d(),l("innerHTML",o.labelText,Z)}}function Is(n,a){if(n&1&&(v(0,"span",11),k(1,"cxTranslate")),n&2){let o=p(2).option;l("innerHTML",I(1,1,o.labelKey),Z)}}function Ms(n,a){if(n&1&&h(0,ks,2,1,"ng-container",10)(1,Is,2,3,"ng-template",null,2,bt),n&2){let o=J(2),e=p().option;l("ngIf",e.labelText)("ngIfElse",o)}}function xs(n,a){if(n&1&&h(0,As,2,4,"ng-container",10)(1,Ms,3,2,"ng-template",null,1,bt),n&2){let o=J(2),e=p();l("ngIf",e.optionTemplate)("ngIfElse",o)}}var Mp=(()=>{let a=class a extends Ce{constructor(){super(...arguments),this.optionCss="",this.hideOptionalLabel=!0,this.handleChange=new f,this.SIP_DATA_SELECTOR=Mt}focus(){throw new Error("focus is not implemented for SipRadioGroupComponent")}trackData(e,t){return JSON.stringify(t)}ngOnInit(){this.control?this.selectedValue=this.control.value:(this.selectedValue=this.radioInitialValue,this.control=new nn(this.radioInitialValue)),super.ngOnInit()}onChange(e){this.selectedValue=e.value,this.handleChange.emit(this.selectedValue)}};a.\u0275fac=(()=>{let e;return function(i){return(e||(e=Te(a)))(i||a)}})(),a.\u0275cmp=A({type:a,selectors:[["sip-radio-group"]],inputs:{radioOptions:"radioOptions",optionTemplate:"optionTemplate",groupName:"groupName",optionCss:"optionCss",radioColumnType:"radioColumnType",radioInitialValue:"radioInitialValue",hideOptionalLabel:"hideOptionalLabel"},outputs:{handleChange:"handleChange"},features:[x],decls:6,vars:13,consts:[["radioOpt",""],["defaultOptionTpl",""],["defaultOptionLabelKey",""],[1,"radio-outer"],[3,"ngClass","innerHTML",4,"ngIf"],["color","primary",3,"change","ngClass","formControl","name","value","sipDataSelector"],["class","radio-button",3,"disableRipple","ngClass","value","disabled",4,"ngFor","ngForOf","ngForTrackBy"],[3,"ngClass","innerHTML"],[1,"radio-button",3,"disableRipple","ngClass","value","disabled"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngIf","ngIfElse"],[3,"innerHTML"]],template:function(t,i){if(t&1){let r=T();m(0,"div",3),h(1,Ss,1,2,"label",4),m(2,"mat-radio-group",5),g("change",function(b){return y(r),C(i.onChange(b))}),h(3,ws,2,8,"mat-radio-button",6),u()(),h(4,xs,3,2,"ng-template",null,0,bt)}t&2&&(d(),l("ngIf",i.labelText),d(),l("ngClass",X(9,Cs,i.radioColumnType))("formControl",i.control)("name",i.groupName)("value",i.selectedValue)("sipDataSelector",X(11,Ds,i.SIP_DATA_SELECTOR.RADIO_GROUP)),w("aria-label",i.labelText),d(),l("ngForOf",i.radioOptions)("ngForTrackBy",i.trackData))},dependencies:[ee,Dt,fe,Ze,Oe,Fe,at,sa,Mi,mi],styles:[".radio-outer[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{margin-bottom:12px}.radio-outer[_ngcontent-%COMP%] .radio-inner[_ngcontent-%COMP%]{display:flex;align-items:center;gap:16px}.radio-outer[_ngcontent-%COMP%] .radio-inner.radio-inner-column-variant[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start;gap:0}[_nghost-%COMP%] .radio-outer .radio-inner .mdc-radio{padding:0 8px 0 0}[_nghost-%COMP%] .mdc-radio{align-self:flex-start}[_nghost-%COMP%] .mdc-form-field{width:100%;padding:8px 0}[_nghost-%COMP%] .mdc-form-field>label{display:flex;align-items:flex-start;justify-content:space-between;width:100%}"],changeDetection:0});let n=a;return n})();var Es=n=>({static:n,dynamic:"prev-btn"}),Ts=n=>({static:n,dynamic:"next-btn"}),or=(()=>{let a=class a{constructor(e,t,i){this._calendar=e,this._dateAdapter=t,this._dateFormats=i,this.SipCostcoIcon=tt,this.SIP_DATA_SELECTOR=Mt}ngOnInit(){this.periodLabel$=this._calendar.stateChanges.pipe(re(void 0),ae(()=>this.getPeriodLabel())),this.previousDisabled$=this._calendar.stateChanges.pipe(re(void 0),ae(()=>this.getPreviousDisabled())),this.nextDisabled$=this._calendar.stateChanges.pipe(re(void 0),ae(()=>this.getNextDisabled()))}getPeriodLabel(){return this._dateAdapter.format(this._calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase()}getPreviousDisabled(){return this._calendar.minDate>this.prevMonthDate().endOf("month")}getNextDisabled(){return this._calendar.maxDate<this.nextMonthDate().startOf("month")}previousClicked(){this._calendar.activeDate=this.prevMonthDate()}nextClicked(){this._calendar.activeDate=this.nextMonthDate()}prevMonthDate(){return this._dateAdapter.addCalendarMonths(this._calendar.activeDate,-1)}nextMonthDate(){return this._dateAdapter.addCalendarMonths(this._calendar.activeDate,1)}};a.\u0275fac=function(t){return new(t||a)(c(Qt),c(Y),c(ye))},a.\u0275cmp=A({type:a,selectors:[["sip-date-picker-header"]],decls:10,vars:17,consts:[[1,"cds-datepicker-header"],["mat-icon-button","",3,"click","disabled","sipDataSelector"],[3,"fontIcon"],[1,"cds-datepicker-header-label"]],template:function(t,i){t&1&&(m(0,"div",0)(1,"button",1),k(2,"async"),g("click",function(){return i.previousClicked()}),v(3,"mat-icon",2),u(),m(4,"span",3),V(5),k(6,"async"),u(),m(7,"button",1),k(8,"async"),g("click",function(){return i.nextClicked()}),v(9,"mat-icon",2),u()()),t&2&&(d(),l("disabled",I(2,7,i.previousDisabled$))("sipDataSelector",X(13,Es,i.SIP_DATA_SELECTOR.DATE_PICKER)),d(2),l("fontIcon",i.SipCostcoIcon.CHEVRON_LEFT),d(2),Ae(I(6,9,i.periodLabel$)),d(2),l("disabled",I(8,11,i.nextDisabled$))("sipDataSelector",X(1
35,Ts,i.SIP_DATA_SELECTOR.DATE_PICKER)),d(2),l("fontIcon",i.SipCostcoIcon.CHEVRON_RIGHT))},dependencies:[Ve,at,Kt,ge],styles:[".cds-datepicker-header[_ngcontent-%COMP%]{display:flex;align-items:center;padding:4px}.cds-datepicker-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-top:-10px}.cds-datepicker-header-label[_ngcontent-%COMP%]{flex:1;height:1em;font-size:16px;text-align:center}"],changeDetection:0});let n=a;return n})();var Os=["datePicker"],Fs=(n,a)=>({mandatory:n,formErrorKey:a}),Vs=()=>[];function Rs(n,a){if(n&1&&v(0,"mat-label",11),n&2){let o=p(3);l("innerHTML",o.labelText,Z)}}function Ps(n,a){if(n&1&&v(0,"mat-error",12),n&2){let o=p(2).sipLet,e=p();l("formErrorKey",e.showManualError?e.manualErrorKey:o.formErrorKey)}}function Ls(n,a){if(n&1&&v(0,"sip-field-hint",13),n&2){let o=p(3);l("hintKey",o.hintKey)}}function Ns(n,a){if(n&1){let o=T();L(0),m(1,"mat-form-field",3),g("click",function(t){y(o);let i=p(2);return C(i.onClick(t))}),h(2,Rs,1,1,"mat-label",4),v(3,"input",5),m(4,"mat-datepicker-toggle",6),v(5,"mat-icon",7),u(),v(6,"mat-datepicker",8,0),h(8,Ps,1,1,"mat-error",9),u(),h(9,Ls,1,1,"sip-field-hint",10),N()}if(n&2){let o,e=J(7),t=p().sipLet,i=p();d(2),l("ngIf",i.labelText),d(),l("formControl",i.control)("id",i.idKey)("readonly",i.readOnly)("ngClass",(o=i.controlsCSS)!==null&&o!==void 0?o:vt(17,Vs))("placeholder",i.placeholder)("matDatepicker",e)("min",i.minDate)("max",i.maxDate)("matDatepickerFilter",i.dateFilter),w("aria-disabled",i.readOnly||(i.control==null?null:i.control.disabled)),d(),l("for",e),d(),l("fontIcon",i.SipCostcoIcon.CALENDAR),d(),l("dateClass",i.dateClassFunction)("calendarHeaderComponent",i.headerComponent),d(2),l("ngIf",t.formErrorKey||i.showManualError),d(),l("ngIf",i.hintKey)}}function Bs(n,a){if(n&1&&(L(0),h(1,Ns,10,18,"ng-container",2),N()),n&2){let o=p();d(),l("ngIf",o.control&&!o.hideControl)}}var jp=(()=>{let a=class a extends Ce{constructor(e){super(),this._dateTimeService=e,this.dateClassFunction=(t,i)=>{let r=B.now();if(i==="month"){if(t>=this.minDate&&t<=this.maxDate)return t.hasSame(r,"day")?"cds-custom-date-cell date-available date-today":"cds-custom-date-cell date-available";if(t.hasSame(r,"day"))return"cds-custom-date-cell date-today"}return"cds-custom-date-cell"},this.SipCostcoIcon=tt,this.headerComponent=or}ngOnInit(){super.ngOnInit(),this.placeholder=this.placeholder??this._dateTimeService.getDatePickerFormat()}focus(){throw new Error("focus is not implemented for SipDatePickerComponent")}onClick(e){this.toggleDatePicker()}toggleDatePicker(){this.datePicker.opened?this.datePicker.close():this.datePicker.open()}};a.\u0275fac=function(t){return new(t||a)(c(Ci))},a.\u0275cmp=A({type:a,selectors:[["sip-date-picker"]],viewQuery:function(t,i){if(t&1&&E(Os,5),t&2){let r;D(r=S())&&(i.datePicker=r.first)}},inputs:{minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",placeholder:"placeholder"},features:[x],decls:3,vars:8,consts:[["datePicker","matDatepicker"],[4,"sipLet"],[4,"ngIf"],[1,"cds-form-field","notranslate",3,"click"],[3,"innerHTML",4,"ngIf"],["sipMatInput","",3,"formControl","id","readonly","ngClass","placeholder","matDatepicker","min","max","matDatepickerFilter"],["matIconSuffix","",3,"for"],["matDatepickerToggleIcon","",3,"fontIcon"],["panelClass","notranslate",3,"dateClass","calendarHeaderComponent"],["sipFieldError","",3,"formErrorKey",4,"ngIf"],[3,"hintKey",4,"ngIf"],[3,"innerHTML"],["sipFieldError","",3,"formErrorKey"],[3,"hintKey"]],template:function(t,i){t&1&&(h(0,Bs,2,1,"ng-container",1),k(1,"async"),k(2,"async")),t&2&&l("sipLet",pt(5,Fs,I(1,1,i.isRequired$),I(2,3,i.formErrorKey$)))},dependencies:[ee,fe,kt,Oe,Fe,Be,Pe,Le,Ne,Ve,Re,$n,Fi,va,ga,He,nt,Et,ge],styles:["[_nghost-%COMP%]{position:relative;z-index:1}"],changeDetection:0});let n=a;return n})();var sr=(()=>{let a=class a{get microform(){if(this._microform===null)throw new Error("Microform is not initalized yet, inject the script and call initMicroform");return this._microform}constructor(e,t,i){this.winRef=e,this.cybersourceConnector=t,this.document=i,this._microform=null,this.updateV
3alidity=new K,this.updateValidity$=this.updateValidity.asObservable()}getMicroformCaptureContext(e){return this.cybersourceConnector.getMicroformContext(e)}injectMicroformScript(e,t){return new Promise(i=>{let r="cybersource-microform";if(this.document.getElementById(r))i();else{let b=this.document.createElement("script");b.id=r,b.src=e,b.integrity=t,b.crossOrigin="anonymous",b.addEventListener("load",()=>{i()},{once:!0}),this.document.head.appendChild(b)}})}initMicroform(e,t,i){this._microform=new this.winRef.nativeWindow.Flex(e).microform("card",{styles:{input:{"font-size":Ji.fontB1,"font-family":Ji.fontFamily}}});let r=this.microform.createField("number"),s=this.microform.createField("securityCode");return r.load(t),s.load(i),{number:r,securityCode:s}}triggerValidityUpdate(){this.updateValidity.next()}createToken(e,t){return new Promise((i,r)=>{this.microform.createToken({expirationMonth:e,expirationYear:t},(s,b)=>{s?r(s):i(b)})})}};a.\u0275fac=function(t){return new(t||a)(ze(pi),ze(wn),ze(Ct))},a.\u0275prov=xe({token:a,factory:a.\u0275fac,providedIn:"root"});let n=a;return n})();var lr=(()=>{let a=class a extends wi{constructor(){super(...arguments),this.containerClick=new f,this.focused=!1,this._hasText=!1}set errorState(e){this._errorState=e}get errorState(){return this._errorState}get hasText(){return this._hasText}setFocused(e){this.focused=e,this.stateChanges.next()}setHasText(e){this._hasText=e,this.stateChanges.next()}get shouldLabelFloat(){return this.focused||this._hasText}onContainerClick(){this.containerClick.emit()}};a.\u0275fac=(()=>{let e;return function(i){return(e||(e=Te(a)))(i||a)}})(),a.\u0275dir=R({type:a,selectors:[["input","sipManualMatInput",""]],inputs:{errorState:"errorState"},outputs:{containerClick:"containerClick"},exportAs:["sipManualMatInput"],features:[de([{provide:Yt,useExisting:a}]),x]});let n=a;return n})();var Ys=["inputOverlay"],Ks=["manualMatInput"];function zs(n,a){if(n&1&&v(0,"mat-label",10),n&2){let o=p(3);l("innerHTML",o.labelText,Z)}}function qs(n,a){n&1&&he(0)}function Ws(n,a){if(n&1&&(m(0,"div",11),h(1,qs,1,0,"ng-container",12),u()),n&2){let o=p(3);d(),l("ngTemplateOutlet",o.suffixTpl)}}function Gs(n,a){if(n&1&&v(0,"mat-error",13),n&2){let o=p(3);l("formErrorKey",o.invalidErrorKey)}}function Qs(n,a){if(n&1){let o=T();L(0),m(1,"mat-form-field",4),h(2,zs,1,1,"mat-label",5),v(3,"div",6,0),m(5,"input",7,1),g("containerClick",function(){y(o);let t=p(2);return C(t.onMatContainerClick())}),u(),h(7,Ws,2,1,"div",8)(8,Gs,1,1,"mat-error",9),u(),N()}if(n&2){let o=p().sipLet,e=p();d(2),l("ngIf",e.labelText),d(3),l("errorState",o),d(2),l("ngIf",e.suffixTpl),d(),l("ngIf",o)}}function $s(n,a){if(n&1&&(L(0),h(1,Qs,9,4,"ng-container",3),N()),n&2){let o=p();d(),l("ngIf",!o.hideControl)}}var lm=(()=>{let a=class a extends Ce{set microformField(e){this._microformField!==null&&this._microformField!==void 0&&this.unregisterMicroformFieldEventHandlers(),this._microformField=e,this._microformField!==null&&this._microformField!==void 0&&this.registerMicroformFieldEventHandlers()}set control(e){}focus(){this._microformField?.focus()}constructor(e){super(),this.microformService=e,this.microformChange=new f,this.fieldDirty$=new Pt(!1),this.fieldValid$=new Pt(!1),this.validityUpdateSubscription=new $,this.onMicroformFocus=()=>{this.manualMatInput.setFocused(!0)},this.onMicroformBlur=()=>{this.manualMatInput.setFocused(!1)},this.onMicroformChange=t=>{this.fieldDirty$.next(!0),t.empty?this.manualMatInput.setHasText(!1):this.manualMatInput.setHasText(!0),this.fieldValid$.next(t.valid),this.microformChange.emit(t)}}ngOnInit(){super.ngOnInit(),this.isErrorState$=Aa([this.fieldDirty$,this.fieldValid$]).pipe(ae(([e,t])=>e&&!t)),this.validityUpdateSubscription=this.microformService.updateValidity$.pipe(ei(()=>{this.fieldDirty$.next(!0),this.manualMatInput?.hasText||this.fieldValid$.next(!1)})).subscribe()}get overlayElement(){return this.inputOverlay?.nativeElement}onMatContainerClick(){this._microformField?.focus()}registerMicroformFieldEventHandlers(){this._microformField.on("focus",this.onMicroformFocus),this._microformField.on("blur",this.onMicroformBlur),this._microformField.on("change",this.onMicroformChange)}unregisterMicroformFieldEventHandlers(){this._microformField.off("focus",this.onMicroformFocus),this._microformField.off("blur",this.onMicroformBlur),this._microformField.off("
3change",this.onMicroformChange)}ngOnDestroy(){this._microformField!==null&&this._microformField!==void 0&&this.unregisterMicroformFieldEventHandlers(),this.validityUpdateSubscription.unsubscribe()}};a.\u0275fac=function(t){return new(t||a)(c(sr))},a.\u0275cmp=A({type:a,selectors:[["sip-microform-input"]],viewQuery:function(t,i){if(t&1&&(E(Ys,5),E(Ks,5)),t&2){let r;D(r=S())&&(i.inputOverlay=r.first),D(r=S())&&(i.manualMatInput=r.first)}},inputs:{microformField:"microformField",invalidErrorKey:"invalidErrorKey",control:"control"},outputs:{microformChange:"microformChange"},features:[x],decls:2,vars:3,consts:[["inputOverlay",""],["manualMatInput","sipManualMatInput"],[4,"sipLet"],[4,"ngIf"],[1,"cds-form-field"],[3,"innerHTML",4,"ngIf"],[1,"microform-overlay-container"],["tabindex","-1","inert","","sipManualMatInput","",3,"containerClick","errorState"],["matSuffix","",4,"ngIf"],["sipFieldError","",3,"formErrorKey",4,"ngIf"],[3,"innerHTML"],["matSuffix",""],[4,"ngTemplateOutlet"],["sipFieldError","",3,"formErrorKey"]],template:function(t,i){t&1&&(h(0,$s,2,1,"ng-container",2),k(1,"async")),t&2&&l("sipLet",I(1,1,i.isErrorState$))},dependencies:[fe,Ze,Be,Pe,Le,Ne,Re,He,lr,ge],styles:[".microform-overlay-container[_ngcontent-%COMP%]{position:absolute;height:20px;width:100%}"],changeDetection:0});let n=a;return n})();var dr=(()=>{let a=class a{};a.\u0275fac=function(t){return new(t||a)},a.\u0275mod=j({type:a}),a.\u0275inj=H({imports:[Q,Sn,wt]});let n=a;return n})();var Da=new U("MAT_LUXON_DATE_ADAPTER_OPTIONS",{providedIn:"root",factory:Us});function Us(){return{useUtc:!1,firstDayOfWeek:0,defaultOutputCalendar:"gregory"}}function Xs(n,a){let o=Array(n);for(let e=0;e<n;e++)o[e]=a(e);return o}var cr=(()=>{let a=class a extends Y{constructor(e,t){super(),this._useUTC=!!t?.useUtc,this._firstDayOfWeek=t?.firstDayOfWeek||0,this._defaultOutputCalendar=t?.defaultOutputCalendar||"gregory",this.setLocale(e||B.local().locale)}getYear(e){return e.year}getMonth(e){return e.month-1}getDate(e){return e.day}getDayOfWeek(e){return e.weekday}getMonthNames(e){return Zi.months(e,{locale:this.locale,outputCalendar:this._defaultOutputCalendar})}getDateNames(){let e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Xs(31,t=>e.format(B.utc(2017,1,t+1).toJSDate()))}getDayOfWeekNames(e){let t=Zi.weekdays(e,{locale:this.locale});return t.unshift(t.pop()),t}getYearName(e){return e.toFormat("yyyy",this._getOptions())}getFirstDayOfWeek(){return this._firstDayOfWeek}getNumDaysInMonth(e){return e.daysInMonth}clone(e){return B.fromObject(e.toObject(),this._getOptions())}createDate(e,t,i){let r=this._getOptions();if(t<0||t>11)throw Error(`Invalid month index "${t}". Month index has to be between 0 and 11.`);if(i<1)throw Error(`Invalid date "${i}". Date has to be greater than 0.`);let s=this._useUTC?B.utc(e,t+1,i,r):B.local(e,t+1,i,r);if(!this.isValid(s))throw Error(`Invalid date "${i}". Reason: "${s.invalidReason}".`);return s}today(){let e=this._getOptions();return this._useUTC?B.utc(e):B.local(e)}parse(e,t){let i=this._getOptions();if(typeof e=="string"&&e.length>0){let r=B.fromISO(e,i);if(this.isValid(r))return r;let s=Array.isArray(t)?t:[t];if(!t.length)throw Error("Formats array must not be empty.");for(let b of s){let F=B.fromFormat(e,b,i);if(this.isValid(F))return F}return this.invalid()}else{if(typeof e=="number")return B.fromMillis(e,i);if(e instanceof Date)return B.fromJSDate(e,i);if(e instanceof B)return B.fromMillis(e.toMillis(),i)}return null}format(e,t){if(!this.isValid(e))throw Error("LuxonDateAdapter: Cannot format invalid date.");return this._useUTC?e.setLocale(this.locale).setZone("utc").toFormat(t):e.setLocale(this.locale).toFormat(t)}addCalendarYears(e,t){return e.reconfigure(this._getOptions()).plus({years:t})}addCalendarMonths(e,t){return e.reconfigure(this._getOptions()).plus({months:t})}addCalendarDays(e,t){return e.reconfigure(this._getOptions()).plus({days:t})}toIso8601(e){return e.toISO()}deserialize(e){let t=this._getOptions(),i;if(e instanceof Date&&(i=B.fromJSDate(e,t)),typeof e=="string"){if(!e)return null;i=B.fromISO(e,t)}return i&&this.isValid(i)?i:super.deserialize(e)}isDateInstance(e){return e instanceof B}isValid(e){return e.isValid}invalid(){return B.invalid("Invalid Luxon DateTime object.")}_getOptions(){return{zone:this._useUTC?"utc":void 0,locale:this.locale,outputCalendar:this._defaultOutputCalendar}}};a.\u0275fac=function(t){return new(t||a)(ze(_i,8),ze(Da,8))},a.\u0275prov=xe({token:a,factory:a.\u0275fac});let n=a;return n})(),pr={parse:{dateInput:"D"},display:{dateInput:"D",monthYearLabel:"LLL yyyy",dateA11yLabel:"DD",monthYearA11yLabel:"LLLL yyyy"}};function Zs(n){let a=wa({},pr);return a.parse.dateInput=n.getDatePickerFormat(),a.display.dateInput=n.getDatePickerFormat(),a}var mr=(()=>{let a=class a{};a.\u0275fac=function(t){return new(t||a)},a.\u0275mod=j({type:a}),a.\u0275inj=H({providers:[{provide:ye,useFactory:Zs,deps:[Ci]},{provide:Y,useClass:cr,deps:[_i,Da]}]});let n=a;return n})();var Js={invalid:"costcoValidation.field.required",missing:"costcoValidation.address.name.full-required",required:"costcoValidation.field.required",requiredLength:"costcoValidation.field.length",cxEmail
3sMustMatch:"costcoEmail.messages.emailConfirmError",cxPhonesMustMatch:"smsLogin.authentication.phoneNumberError",cxPasswordsMustMatch:"membership.validation.checkPasswordConfirm",email:"costcoEmail.messages.emailError",containsSpecialCharacters:"costcomemberregister.messages.invalidError"},Sa=class{isErrorState(a,o){return!!(a&&a.invalid&&a.dirty)}},Mu=(()=>{let a=class a{};a.\u0275fac=function(t){return new(t||a)},a.\u0275mod=j({type:a}),a.\u0275inj=H({providers:[{provide:_n,useValue:Js,multi:!0},{provide:fn,useValue:{appearance:"outline",subscriptSizing:"dynamic",hideRequiredMarker:!0}},{provide:jt,useClass:Sa}],imports:[Q,wt,cn,ea,yi,Ui,ki,An,Cn,Vn,Tn,Dn,Ai,Ui,Un,mr,kn,dr,Si,tr,ea,dn]});let n=a;return n})();export{xn as a,oa as b,Tn as c,Zc as d,ip as e,nr as f,vp as g,Mp as h,tl as i,An as j,jp as k,sr as l,lm as m,wl as n,Il as o,El as p,Fl as q,kn as r,Js as s,Mu as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.