Your IP : 3.129.71.156


Current Path : /usr/local/mgr5/skins/dragon/
Upload File :
Current File : //usr/local/mgr5/skins/dragon/chunk-WDCLQCI6.js

import{$ as V,Q as sa,T as da,W as la,X as ca,Y as ma,Z as xt,aa as At,ba as ha,c as re,ca as ua,d as Ct,g as J,h as oe,i as se,j as kt}from"./chunk-WUJDRKKX.js";import{e as ra,g as me,j as oa,k as he}from"./chunk-KU75D4PT.js";import{a as ut,b as na}from"./chunk-BATIAXZ4.js";import{A as Z,B as Kt,D as ia,H as le,I as ce,x as de,y}from"./chunk-KX5BXGZT.js";import{$ as Nt,Ba as Ue,C as Y,Ca as K,Cb as aa,Da as H,Ea as X,F as vt,Ka as N,L as p,La as mt,M as c,Ma as ht,N as Tt,P as jt,Pa as Ht,Qa as Xt,Ra as Wt,S as Yt,Sa as ne,Ta as T,X as dt,Y as yt,Z as nt,_ as Ze,aa as A,b as Xe,ba as D,c as x,ca as Lt,d as q,da as P,db as Ge,e as et,f as u,fa as lt,g as z,gb as $,ha as Dt,i as ee,ib as G,j as ae,k as F,ka as Bt,l as Q,la as zt,lb as Je,m as at,ma as b,na as f,o as We,oa as R,p as st,pb as L,q as M,r as I,s as ie,sa as wt,sb as ta,t as Ke,tb as ea,ua as qe,v as $e,va as E,w as it,wa as Qe,xa as v,y as _,ya as ct,z as j,za as U}from"./chunk-SXUPRFOU.js";import{A as Ft,Q as gt,S as te,a as Ot,b as ze,n as W,s as S,sa as Pt,va as He}from"./chunk-ERDNNTNA.js";var Et=class{attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;e!=null&&(this._attachedHost=null,e.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(e){this._attachedHost=e}},St=class extends Et{constructor(e,r,t,a,i){super(),this.component=e,this.viewContainerRef=r,this.injector=t,this.componentFactoryResolver=a,this.projectableNodes=i}},Mt=class extends Et{constructor(e,r,t,a){super(),this.templateRef=e,this.viewContainerRef=r,this.context=t,this.injector=a}get origin(){return this.templateRef.elementRef}attach(e,r=this.context){return this.context=r,super.attach(e)}detach(){return this.context=void 0,super.detach()}},ue=class extends Et{constructor(e){super(),this.element=e instanceof Y?e.nativeElement:e}},$t=class{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(e){if(e instanceof St)return this._attachedPortal=e,this.attachComponentPortal(e);if(e instanceof Mt)return this._attachedPortal=e,this.attachTemplatePortal(e);if(this.attachDomPortal&&e instanceof ue)return this._attachedPortal=e,this.attachDomPortal(e)}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}};var Zt=class extends $t{constructor(e,r,t,a,i){super(),this.outletElement=e,this._componentFactoryResolver=r,this._appRef=t,this._defaultInjector=a,this.attachDomPortal=n=>{this._document;let s=n.element;s.parentNode;let d=this._document.createComment("dom-portal");s.parentNode.insertBefore(d,s),this.outletElement.appendChild(s),this._attachedPortal=n,super.setDisposeFn(()=>{d.parentNode&&d.parentNode.replaceChild(s,d)})},this._document=i}attachComponentPortal(e){let t=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),a;return e.viewContainerRef?(a=e.viewContainerRef.createComponent(t,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector,e.projectableNodes||void 0),this.setDisposeFn(()=>a.destroy())):(a=t.create(e.injector||this._defaultInjector||it.NULL),this._appRef.attachView(a.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(a.hostView),a.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(a)),this._attachedPortal=e,a}attachTemplatePortal(e){let r=e.viewContainerRef,t=r.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return t.rootNodes.forEach(a=>this.outletElement.appendChild(a)),t.detectChanges(),this.setDisposeFn(()=>{let a=r.indexOf(t);a!==-1&&r.remove(a)}),this._attachedPortal=e,t}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(e){return e.hostView.rootNodes[0]}};var be=(()=>{let e=class e extends $t{constructor(t,a,i){super(),this._componentFactoryResolver=t,this._viewContainerRef=a,this._isInitialized=!1,this.attached=new _,this.attachDomPortal=n=>{this._document;let s=n.element;s.parentNode;let d=this._document.createComment("dom-portal");n.setAttachedHost(this),s.parentNode.insertBefore(d,s),this._getRootNode().appendChild(s),this._attachedPortal=n,super.setDisposeFn(()=>{d.parentNode&&d.parentNode.replaceChild(s,d)})},this._document=i}get portal(){return this._attachedPortal}set portal(t){this.hasAttached()&&!t&&!this._isInitialized||(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(t){t.setAttachedHost(this);let a=t.viewContainerRef!=null?t.viewContainerRef:this._viewContainerRef,n=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),s=a.createComponent(n,a.length,t.injector||a.injector,t.projectableNodes||void 0);return a!==this._viewContainerRef&&this._getRootNode().appendChild(s.hostView.rootNodes[0]),super.setDisposeFn(()=>s.destroy()),this._attachedPortal=t,this._attachedRef=s,this.attached.emit(s),s}attachTemplatePortal(t){t.setAttachedHost(this);let a=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=a,this.attached.emit(a),a}_getRootNode(){let t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}};e.\u0275fac=function(a){return new(a||e)(c(jt),c(Yt),c(L))},e.\u0275dir=at({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],standalone:!0,features:[dt]});let o=e;return o})();var qt=(()=>{let e=class e{};e.\u0275fac=function(a){return new(a||e)},e.\u0275mod=Q({type:e}),e.\u0275inj=q({});let o=e;return o})();var ba=ia(),fe=class{constructor(e,r){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=r}attach(){}enable(){if(this._canBeEnabled()){let e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=y(-this._previousScrollPosition.left),e.style.top=y(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let e=this._document.documentElement,r=this._document.body,t=e.style,a=r.style,i=t.scrollBehavior||"",n=a.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),ba&&(t.scrollBehavior=a.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),ba&&(t.scrollBehavior=i,a.scrollBehavior=n)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let r=this._document.body,t=this._viewportRuler.getViewportSize();return r.scrollHeight>t.height||r.scrollWidth>t.width}};var _e=class{constructor(e,r,t,a){this._scrollDispatcher=e,this._ngZone=r,this._viewportRuler=t,this._config=a,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(e){this._overlayRef,this._overlayRef=e}enable(){if(this._scrollSubscription)return;let e=this._scrollDispatcher.scrolled(0).pipe(te(r=>!r||!this._overlayRef.overlayElement.contains(r.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{let r=this._viewportRuler.getViewportScrollPosition().top;Math.abs(r-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},Qt=class{enable(){}disable(){}attach(){}};function ge(o,e){return e.some(r=>{let t=o.bottom<r.top,a=o.top>r.bottom,i=o.right<r.left,n=o.left>r.right;return t||a||i||n})}function fa(o,e){return e.some(r=>{let t=o.top<r.top,a=o.bottom>r.bottom,i=o.left<r.left,n=o.right>r.right;return t||a||i||n})}var ve=class{constructor(e,r,t,a){this._scrollDispatcher=e,this._viewportRuler=r,this._ngZone=t,this._config=a,this._scrollSubscription=null}attach(e){this._overlayRef,this._overlayRef=e}enable(){if(!this._scrollSubscription){let e=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(e).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let r=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:a}=this._viewportRuler.getViewportSize();ge(r,[{width:t,height:a,bottom:a,right:t,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}})}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},Ba=(()=>{let e=class e{constructor(t,a,i,n){this._scrollDispatcher=t,this._viewportRuler=a,this._ngZone=i,this.noop=()=>new Qt,this.close=s=>new _e(this._scrollDispatcher,this._ngZone,this._viewportRuler,s),this.block=()=>new fe(this._viewportRuler,this._document),this.reposition=s=>new ve(this._scrollDispatcher,this._viewportRuler,this._ngZone,s),this._document=n}};e.\u0275fac=function(a){return new(a||e)(u(ra),u(me),u(j),u(L))},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"});let o=e;return o})(),Ut=class{constructor(e){if(this.scrollStrategy=new Qt,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e){let r=Object.keys(e);for(let t of r)e[t]!==void 0&&(this[t]=e[t])}}};var ye=class{constructor(e,r){this.connectionPair=e,this.scrollableViewProperties=r}};var wa=(()=>{let e=class e{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){let a=this._attachedOverlays.indexOf(t);a>-1&&this._attachedOverlays.splice(a,1),this._attachedOverlays.length===0&&this.detach()}};e.\u0275fac=function(a){return new(a||e)(u(L))},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"});let o=e;return o})(),za=(()=>{let e=class e extends wa{constructor(t,a){super(t),this._ngZone=a,this._keydownListener=i=>{let n=this._attachedOverlays;for(let s=n.length-1;s>-1;s--)if(n[s]._keydownEvents.observers.length>0){let d=n[s]._keydownEvents;this._ngZone?this._ngZone.run(()=>d.next(i)):d.next(i);break}}}add(t){super.add(t),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}};e.\u0275fac=function(a){return new(a||e)(u(L),u(j,8))},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"});let o=e;return o})(),Ha=(()=>{let e=class e extends wa{constructor(t,a,i){super(t),this._platform=a,this._ngZone=i,this._cursorStyleIsSet=!1,this._pointerDownListener=n=>{this._pointerDownEventTarget=le(n)},this._clickListener=n=>{let s=le(n),d=n.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:s;this._pointerDownEventTarget=null;let m=this._attachedOverlays.slice();for(let l=m.length-1;l>-1;l--){let h=m[l];if(h._outsidePointerEvents.observers.length<1||!h.hasAttached())continue;if(_a(h.overlayElement,s)||_a(h.overlayElement,d))break;let g=h._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>g.next(n)):g.next(n)}}}add(t){if(super.add(t),!this._isAttached){let a=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(a)):this._addEventListeners(a),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=a.style.cursor,a.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){let t=this._document.body;t.removeEventListener("pointerdown",this._pointerDownListener,!0),t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(t){t.addEventListener("pointerdown",this._pointerDownListener,!0),t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0)}};e.\u0275fac=function(a){return new(a||e)(u(L),u(Z),u(j,8))},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"});let o=e;return o})();function _a(o,e){let r=typeof ShadowRoot<"u"&&ShadowRoot,t=e;for(;t;){if(t===o)return!0;t=r&&t instanceof ShadowRoot?t.host:t.parentNode}return!1}var Ca=(()=>{let e=class e{constructor(t,a){this._platform=a,this._document=t}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let t="cdk-overlay-container";if(this._platform.isBrowser||ce()){let i=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let n=0;n<i.length;n++)i[n].remove()}let a=this._document.createElement("div");a.classList.add(t),ce()?a.setAttribute("platform","test"):this._platform.isBrowser||a.setAttribute("platform","server"),this._document.body.appendChild(a),this._containerElement=a}};e.\u0275fac=function(a){return new(a||e)(u(L),u(Z))},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"});let o=e;return o})(),De=class{constructor(e,r,t,a,i,n,s,d,m,l=!1,h){this._portalOutlet=e,this._host=r,this._pane=t,this._config=a,this._ngZone=i,this._keyboardDispatcher=n,this._document=s,this._location=d,this._outsideClickDispatcher=m,this._animationsDisabled=l,this._injector=h,this._backdropElement=null,this._backdropClick=new S,this._attachments=new S,this._detachments=new S,this._locationChanges=W.EMPTY,this._backdropClickHandler=g=>this._backdropClick.next(g),this._backdropTransitionendHandler=g=>{this._disposeBackdrop(g.target)},this._keydownEvents=new S,this._outsidePointerEvents=new S,this._renders=new S,a.scrollStrategy&&(this._scrollStrategy=a.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=a.positionStrategy,this._afterRenderRef=Je(()=>Ze(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(e){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let r=this._portalOutlet.attach(e);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=Nt(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof r?.onDestroy=="function"&&r.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),r}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){let e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=null,e&&this._detachments.next(),this._detachments.complete(),this._afterRenderRef.destroy(),this._renders.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config=Ot(Ot({},this._config),e),this._updateElementSize()}setDirection(e){this._config=ze(Ot({},this._config),{direction:e}),this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){let e=this._config.direction;return e?typeof e=="string"?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let e=this._pane.style;e.width=y(this._config.width),e.height=y(this._config.height),e.minWidth=y(this._config.minWidth),e.minHeight=y(this._config.minHeight),e.maxWidth=y(this._config.maxWidth),e.maxHeight=y(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){let e="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(e)})}):this._backdropElement.classList.add(e)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let e=this._backdropElement;if(e){if(this._animationsDisabled){this._disposeBackdrop(e);return}e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",this._backdropTransitionendHandler)}),e.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(e)},500))}}_toggleClasses(e,r,t){let a=de(r||[]).filter(i=>!!i);a.length&&(t?e.classList.add(...a):e.classList.remove(...a))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{let e=this._renders.pipe(He(gt(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),e.unsubscribe())})})}_disposeScrollStrategy(){let e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}_disposeBackdrop(e){e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",this._backdropTransitionendHandler),e.remove(),this._backdropElement===e&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}},ga="cdk-overlay-connected-position-bounding-box",Xa=/([A-Za-z%]+)$/,Gt=class{get positions(){return this._preferredPositions}constructor(e,r,t,a,i){this._viewportRuler=r,this._document=t,this._platform=a,this._overlayContainer=i,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new S,this._resizeSubscription=W.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(e)}attach(e){this._overlayRef&&this._overlayRef,this._validatePositions(),e.hostElement.classList.add(ga),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let e=this._originRect,r=this._overlayRect,t=this._viewportRect,a=this._containerRect,i=[],n;for(let s of this._preferredPositions){let d=this._getOriginPoint(e,a,s),m=this._getOverlayPoint(d,r,s),l=this._getOverlayFit(m,r,t,s);if(l.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(s,d);return}if(this._canFitWithFlexibleDimensions(l,m,t)){i.push({position:s,origin:d,overlayRect:r,boundingBoxRect:this._calculateBoundingBoxRect(d,s)});continue}(!n||n.overlayFit.visibleArea<l.visibleArea)&&(n={overlayFit:l,overlayPoint:m,originPoint:d,position:s,overlayRect:r})}if(i.length){let s=null,d=-1;for(let m of i){let l=m.boundingBoxRect.width*m.boundingBoxRect.height*(m.position.weight||1);l>d&&(d=l,s=m)}this._isPushed=!1,this._applyPosition(s.position,s.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(n.position,n.originPoint);return}this._applyPosition(n.position,n.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&rt(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(ga),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let e=this._lastPosition;if(e){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let r=this._getOriginPoint(this._originRect,this._containerRect,e);this._applyPosition(e,r)}else this.apply()}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,e.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=!0){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=!0){return this._growAfterOpen=e,this}withPush(e=!0){return this._canPush=e,this}withLockedPosition(e=!0){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}_getOriginPoint(e,r,t){let a;if(t.originX=="center")a=e.left+e.width/2;else{let n=this._isRtl()?e.right:e.left,s=this._isRtl()?e.left:e.right;a=t.originX=="start"?n:s}r.left<0&&(a-=r.left);let i;return t.originY=="center"?i=e.top+e.height/2:i=t.originY=="top"?e.top:e.bottom,r.top<0&&(i-=r.top),{x:a,y:i}}_getOverlayPoint(e,r,t){let a;t.overlayX=="center"?a=-r.width/2:t.overlayX==="start"?a=this._isRtl()?-r.width:0:a=this._isRtl()?0:-r.width;let i;return t.overlayY=="center"?i=-r.height/2:i=t.overlayY=="top"?0:-r.height,{x:e.x+a,y:e.y+i}}_getOverlayFit(e,r,t,a){let i=ya(r),{x:n,y:s}=e,d=this._getOffset(a,"x"),m=this._getOffset(a,"y");d&&(n+=d),m&&(s+=m);let l=0-n,h=n+i.width-t.width,g=0-s,k=s+i.height-t.height,C=this._subtractOverflows(i.width,l,h),B=this._subtractOverflows(i.height,g,k),Be=C*B;return{visibleArea:Be,isCompletelyWithinViewport:i.width*i.height===Be,fitsInViewportVertically:B===i.height,fitsInViewportHorizontally:C==i.width}}_canFitWithFlexibleDimensions(e,r,t){if(this._hasFlexibleDimensions){let a=t.bottom-r.y,i=t.right-r.x,n=va(this._overlayRef.getConfig().minHeight),s=va(this._overlayRef.getConfig().minWidth),d=e.fitsInViewportVertically||n!=null&&n<=a,m=e.fitsInViewportHorizontally||s!=null&&s<=i;return d&&m}return!1}_pushOverlayOnScreen(e,r,t){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};let a=ya(r),i=this._viewportRect,n=Math.max(e.x+a.width-i.width,0),s=Math.max(e.y+a.height-i.height,0),d=Math.max(i.top-t.top-e.y,0),m=Math.max(i.left-t.left-e.x,0),l=0,h=0;return a.width<=i.width?l=m||-n:l=e.x<this._viewportMargin?i.left-t.left-e.x:0,a.height<=i.height?h=d||-s:h=e.y<this._viewportMargin?i.top-t.top-e.y:0,this._previousPushAmount={x:l,y:h},{x:e.x+l,y:e.y+h}}_applyPosition(e,r){if(this._setTransformOrigin(e),this._setOverlayElementStyles(r,e),this._setBoundingBoxStyles(r,e),e.panelClass&&this._addPanelClasses(e.panelClass),this._positionChanges.observers.length){let t=this._getScrollVisibility();if(e!==this._lastPosition||!this._lastScrollVisibility||!Wa(this._lastScrollVisibility,t)){let a=new ye(e,t);this._positionChanges.next(a)}this._lastScrollVisibility=t}this._lastPosition=e,this._isInitialRender=!1}_setTransformOrigin(e){if(!this._transformOriginSelector)return;let r=this._boundingBox.querySelectorAll(this._transformOriginSelector),t,a=e.overlayY;e.overlayX==="center"?t="center":this._isRtl()?t=e.overlayX==="start"?"right":"left":t=e.overlayX==="start"?"left":"right";for(let i=0;i<r.length;i++)r[i].style.transformOrigin=`${t} ${a}`}_calculateBoundingBoxRect(e,r){let t=this._viewportRect,a=this._isRtl(),i,n,s;if(r.overlayY==="top")n=e.y,i=t.height-n+this._viewportMargin;else if(r.overlayY==="bottom")s=t.height-e.y+this._viewportMargin*2,i=t.height-s+this._viewportMargin;else{let k=Math.min(t.bottom-e.y+t.top,e.y),C=this._lastBoundingBoxSize.height;i=k*2,n=e.y-k,i>C&&!this._isInitialRender&&!this._growAfterOpen&&(n=e.y-C/2)}let d=r.overlayX==="start"&&!a||r.overlayX==="end"&&a,m=r.overlayX==="end"&&!a||r.overlayX==="start"&&a,l,h,g;if(m)g=t.width-e.x+this._viewportMargin*2,l=e.x-this._viewportMargin;else if(d)h=e.x,l=t.right-e.x;else{let k=Math.min(t.right-e.x+t.left,e.x),C=this._lastBoundingBoxSize.width;l=k*2,h=e.x-k,l>C&&!this._isInitialRender&&!this._growAfterOpen&&(h=e.x-C/2)}return{top:n,left:h,bottom:s,right:g,width:l,height:i}}_setBoundingBoxStyles(e,r){let t=this._calculateBoundingBoxRect(e,r);!this._isInitialRender&&!this._growAfterOpen&&(t.height=Math.min(t.height,this._lastBoundingBoxSize.height),t.width=Math.min(t.width,this._lastBoundingBoxSize.width));let a={};if(this._hasExactPosition())a.top=a.left="0",a.bottom=a.right=a.maxHeight=a.maxWidth="",a.width=a.height="100%";else{let i=this._overlayRef.getConfig().maxHeight,n=this._overlayRef.getConfig().maxWidth;a.height=y(t.height),a.top=y(t.top),a.bottom=y(t.bottom),a.width=y(t.width),a.left=y(t.left),a.right=y(t.right),r.overlayX==="center"?a.alignItems="center":a.alignItems=r.overlayX==="end"?"flex-end":"flex-start",r.overlayY==="center"?a.justifyContent="center":a.justifyContent=r.overlayY==="bottom"?"flex-end":"flex-start",i&&(a.maxHeight=y(i)),n&&(a.maxWidth=y(n))}this._lastBoundingBoxSize=t,rt(this._boundingBox.style,a)}_resetBoundingBoxStyles(){rt(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){rt(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,r){let t={},a=this._hasExactPosition(),i=this._hasFlexibleDimensions,n=this._overlayRef.getConfig();if(a){let l=this._viewportRuler.getViewportScrollPosition();rt(t,this._getExactOverlayY(r,e,l)),rt(t,this._getExactOverlayX(r,e,l))}else t.position="static";let s="",d=this._getOffset(r,"x"),m=this._getOffset(r,"y");d&&(s+=`translateX(${d}px) `),m&&(s+=`translateY(${m}px)`),t.transform=s.trim(),n.maxHeight&&(a?t.maxHeight=y(n.maxHeight):i&&(t.maxHeight="")),n.maxWidth&&(a?t.maxWidth=y(n.maxWidth):i&&(t.maxWidth="")),rt(this._pane.style,t)}_getExactOverlayY(e,r,t){let a={top:"",bottom:""},i=this._getOverlayPoint(r,this._overlayRect,e);if(this._isPushed&&(i=this._pushOverlayOnScreen(i,this._overlayRect,t)),e.overlayY==="bottom"){let n=this._document.documentElement.clientHeight;a.bottom=`${n-(i.y+this._overlayRect.height)}px`}else a.top=y(i.y);return a}_getExactOverlayX(e,r,t){let a={left:"",right:""},i=this._getOverlayPoint(r,this._overlayRect,e);this._isPushed&&(i=this._pushOverlayOnScreen(i,this._overlayRect,t));let n;if(this._isRtl()?n=e.overlayX==="end"?"left":"right":n=e.overlayX==="end"?"right":"left",n==="right"){let s=this._document.documentElement.clientWidth;a.right=`${s-(i.x+this._overlayRect.width)}px`}else a.left=y(i.x);return a}_getScrollVisibility(){let e=this._getOriginRect(),r=this._pane.getBoundingClientRect(),t=this._scrollables.map(a=>a.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:fa(e,t),isOriginOutsideView:ge(e,t),isOverlayClipped:fa(r,t),isOverlayOutsideView:ge(r,t)}}_subtractOverflows(e,...r){return r.reduce((t,a)=>t-Math.max(a,0),e)}_getNarrowedViewportRect(){let e=this._document.documentElement.clientWidth,r=this._document.documentElement.clientHeight,t=this._viewportRuler.getViewportScrollPosition();return{top:t.top+this._viewportMargin,left:t.left+this._viewportMargin,right:t.left+e-this._viewportMargin,bottom:t.top+r-this._viewportMargin,width:e-2*this._viewportMargin,height:r-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,r){return r==="x"?e.offsetX==null?this._offsetX:e.offsetX:e.offsetY==null?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&de(e).forEach(r=>{r!==""&&this._appliedPanelClasses.indexOf(r)===-1&&(this._appliedPanelClasses.push(r),this._pane.classList.add(r))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){let e=this._origin;if(e instanceof Y)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();let r=e.width||0,t=e.height||0;return{top:e.y,bottom:e.y+t,left:e.x,right:e.x+r,height:t,width:r}}};function rt(o,e){for(let r in e)e.hasOwnProperty(r)&&(o[r]=e[r]);return o}function va(o){if(typeof o!="number"&&o!=null){let[e,r]=o.split(Xa);return!r||r==="px"?parseFloat(e):null}return o||null}function ya(o){return{top:Math.floor(o.top),right:Math.floor(o.right),bottom:Math.floor(o.bottom),left:Math.floor(o.left),width:Math.floor(o.width),height:Math.floor(o.height)}}function Wa(o,e){return o===e?!0:o.isOriginClipped===e.isOriginClipped&&o.isOriginOutsideView===e.isOriginOutsideView&&o.isOverlayClipped===e.isOverlayClipped&&o.isOverlayOutsideView===e.isOverlayOutsideView}var Da="cdk-global-overlay-wrapper",we=class{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(e){let r=e.getConfig();this._overlayRef=e,this._width&&!r.width&&e.updateSize({width:this._width}),this._height&&!r.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(Da),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._xOffset=e,this._xPosition="left",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._xOffset=e,this._xPosition="right",this}start(e=""){return this._xOffset=e,this._xPosition="start",this}end(e=""){return this._xOffset=e,this._xPosition="end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._xPosition="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let e=this._overlayRef.overlayElement.style,r=this._overlayRef.hostElement.style,t=this._overlayRef.getConfig(),{width:a,height:i,maxWidth:n,maxHeight:s}=t,d=(a==="100%"||a==="100vw")&&(!n||n==="100%"||n==="100vw"),m=(i==="100%"||i==="100vh")&&(!s||s==="100%"||s==="100vh"),l=this._xPosition,h=this._xOffset,g=this._overlayRef.getConfig().direction==="rtl",k="",C="",B="";d?B="flex-start":l==="center"?(B="center",g?C=h:k=h):g?l==="left"||l==="end"?(B="flex-end",k=h):(l==="right"||l==="start")&&(B="flex-start",C=h):l==="left"||l==="start"?(B="flex-start",k=h):(l==="right"||l==="end")&&(B="flex-end",C=h),e.position=this._cssPosition,e.marginLeft=d?"0":k,e.marginTop=m?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=d?"0":C,r.justifyContent=B,r.alignItems=m?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let e=this._overlayRef.overlayElement.style,r=this._overlayRef.hostElement,t=r.style;r.classList.remove(Da),t.justifyContent=t.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}},Ka=(()=>{let e=class e{constructor(t,a,i,n){this._viewportRuler=t,this._document=a,this._platform=i,this._overlayContainer=n}global(){return new we}flexibleConnectedTo(t){return new Gt(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}};e.\u0275fac=function(a){return new(a||e)(u(me),u(L),u(Z),u(Ca))},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"});let o=e;return o})(),$a=0,pt=(()=>{let e=class e{constructor(t,a,i,n,s,d,m,l,h,g,k,C){this.scrollStrategies=t,this._overlayContainer=a,this._componentFactoryResolver=i,this._positionBuilder=n,this._keyboardDispatcher=s,this._injector=d,this._ngZone=m,this._document=l,this._directionality=h,this._location=g,this._outsideClickDispatcher=k,this._animationsModuleType=C}create(t){let a=this._createHostElement(),i=this._createPaneElement(a),n=this._createPortalOutlet(i),s=new Ut(t);return s.direction=s.direction||this._directionality.value,new De(n,a,i,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,this._animationsModuleType==="NoopAnimations",this._injector.get(We))}position(){return this._positionBuilder}_createPaneElement(t){let a=this._document.createElement("div");return a.id=`cdk-overlay-${$a++}`,a.classList.add("cdk-overlay-pane"),t.appendChild(a),a}_createHostElement(){let t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(Ge)),new Zt(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}};e.\u0275fac=function(a){return new(a||e)(u(Ba),u(Ca),u(jt),u(Ka),u(za),u(it),u(j),u(L),u(ut),u(ta),u(Ha),u(vt,8))},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"});let o=e;return o})();var Za=new et("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let o=z(pt);return()=>o.scrollStrategies.reposition()}});function qa(o){return()=>o.scrollStrategies.reposition()}var Qa={provide:Za,deps:[pt],useFactory:qa},ka=(()=>{let e=class e{};e.\u0275fac=function(a){return new(a||e)},e.\u0275mod=Q({type:e}),e.\u0275inj=q({providers:[pt,Qa],imports:[na,qt,he,he]});let o=e;return o})();var Ua=["mat-button",""],Ga=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],Ja=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"];var ti=".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}";var ei=["mat-icon-button",""],ai=["*"];var ii=new et("MAT_BUTTON_CONFIG");var ni=[{attribute:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{attribute:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{attribute:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{attribute:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{attribute:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mat-mdc-fab"]},{attribute:"mat-mini-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mdc-fab--mini","mat-mdc-mini-fab"]},{attribute:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],xa=(()=>{let e=class e{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(t){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,t)}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=t,this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._updateRippleDisabled()}constructor(t,a,i,n){this._elementRef=t,this._platform=a,this._ngZone=i,this._animationMode=n,this._focusMonitor=z(la),this._rippleLoader=z(ua),this._isFab=!1,this._disableRipple=!1,this._disabled=!1;let s=z(ii,{optional:!0}),d=t.nativeElement,m=d.classList;this.disabledInteractive=s?.disabledInteractive??!1,this.color=s?.color??null,this._rippleLoader?.configureRipple(d,{className:"mat-mdc-button-ripple"});for(let{attribute:l,mdcClasses:h}of ni)d.hasAttribute(l)&&m.add(...h)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(t="program",a){t?this._focusMonitor.focusVia(this._elementRef.nativeElement,t,a):this._elementRef.nativeElement.focus(a)}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this.disabled&&this.disabledInteractive?!0:null}_getDisabledAttribute(){return this.disabledInteractive||!this.disabled?null:!0}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}};e.\u0275fac=function(a){Tt()},e.\u0275dir=at({type:e,inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",G],disabled:[2,"disabled","disabled",G],ariaDisabled:[2,"aria-disabled","ariaDisabled",G],disabledInteractive:[2,"disabledInteractive","disabledInteractive",G]},features:[yt]});let o=e;return o})();var Ce=(()=>{let e=class e extends xa{constructor(t,a,i,n){super(t,a,i,n)}};e.\u0275fac=function(a){return new(a||e)(c(Y),c(Z),c(j),c(vt,8))},e.\u0275cmp=F({type:e,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(a,i){a&2&&(A("disabled",i._getDisabledAttribute())("aria-disabled",i._getAriaDisabled()),lt(i.color?"mat-"+i.color:""),P("mat-mdc-button-disabled",i.disabled)("mat-mdc-button-disabled-interactive",i.disabledInteractive)("_mat-animation-noopable",i._animationMode==="NoopAnimations")("mat-unthemed",!i.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[dt,T],attrs:Ua,ngContentSelectors:Ja,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(a,i){a&1&&(ct(Ga),R(0,"span",0),U(1),b(2,"span",1),U(3,1),f(),U(4,2),R(5,"span",2)(6,"span",3)),a&2&&P("mdc-button__ripple",!i._isFab)("mdc-fab__ripple",i._isFab)},styles:['.mat-mdc-button-base{text-decoration:none}.mdc-button{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__label{position:relative}.mat-mdc-button{padding:0 var(--mat-text-button-horizontal-padding, 8px);height:var(--mdc-text-button-container-height);font-family:var(--mdc-text-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-text-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-text-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-text-button-label-text-transform);font-weight:var(--mdc-text-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 8px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color, var(--mat-app-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display)}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mat-app-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, var(--mat-app-primary))}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-filled-button-horizontal-padding, 16px);height:var(--mdc-filled-button-container-height);font-family:var(--mdc-filled-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-filled-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-filled-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-filled-button-label-text-transform);font-weight:var(--mdc-filled-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color, var(--mat-app-on-primary))}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, var(--mat-app-on-primary));background-color:var(--mdc-filled-button-container-color, var(--mat-app-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mat-app-corner-full))}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color);background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-protected-button-horizontal-padding, 16px);box-shadow:var(--mdc-protected-button-container-elevation-shadow, var(--mat-app-level1));height:var(--mdc-protected-button-container-height);font-family:var(--mdc-protected-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-protected-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-protected-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-protected-button-label-text-transform);font-weight:var(--mdc-protected-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color, var(--mat-app-primary))}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, var(--mat-app-primary));background-color:var(--mdc-protected-button-container-color, var(--mat-app-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mat-app-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow, var(--mat-app-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow, var(--mat-app-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow, var(--mat-app-level1))}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color);background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow, var(--mat-app-level0))}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-outlined-button-horizontal-padding, 15px);height:var(--mdc-outlined-button-container-height);font-family:var(--mdc-outlined-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-outlined-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-outlined-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-outlined-button-label-text-transform);font-weight:var(--mdc-outlined-button-label-text-weight, var(--mat-app-label-large-weight));border-radius:var(--mdc-outlined-button-container-shape, var(--mat-app-corner-full));border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color, var(--mat-app-primary))}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, var(--mat-app-primary));border-color:var(--mdc-outlined-button-outline-color, var(--mat-app-outline))}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button .mdc-button__ripple{border-width:var(--mdc-outlined-button-outline-width);border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0});let o=e;return o})();var ke=(()=>{let e=class e extends xa{constructor(t,a,i,n){super(t,a,i,n),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}};e.\u0275fac=function(a){return new(a||e)(c(Y),c(Z),c(j),c(vt,8))},e.\u0275cmp=F({type:e,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(a,i){a&2&&(A("disabled",i._getDisabledAttribute())("aria-disabled",i._getAriaDisabled()),lt(i.color?"mat-"+i.color:""),P("mat-mdc-button-disabled",i.disabled)("mat-mdc-button-disabled-interactive",i.disabledInteractive)("_mat-animation-noopable",i._animationMode==="NoopAnimations")("mat-unthemed",!i.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[dt,T],attrs:ei,ngContentSelectors:ai,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(a,i){a&1&&(ct(),R(0,"span",0),U(1),R(2,"span",1)(3,"span",2))},styles:['.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 48px);height:var(--mdc-icon-button-state-layer-size, 48px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 48px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size);color:var(--mdc-icon-button-icon-color, var(--mat-app-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',ti],encapsulation:2,changeDetection:0});let o=e;return o})();var Aa=(()=>{let e=class e{};e.\u0275fac=function(a){return new(a||e)},e.\u0275mod=Q({type:e}),e.\u0275inj=q({imports:[xt,ha,xt]});let o=e;return o})();var oi=["mat-calendar-body",""];function si(o,e){return this._trackRow(e)}var Oa=(o,e)=>e.id;function di(o,e){if(o&1&&(b(0,"tr",0)(1,"td",3),N(2),f()()),o&2){let r=v();p(),Lt("padding-top",r._cellPadding)("padding-bottom",r._cellPadding),A("colspan",r.numCols),p(),ht(" ",r.label," ")}}function li(o,e){if(o&1&&(b(0,"td",3),N(1),f()),o&2){let r=v(2);Lt("padding-top",r._cellPadding)("padding-bottom",r._cellPadding),A("colspan",r._firstRowOffset),p(),ht(" ",r._firstRowOffset>=r.labelMinRequiredCells?r.label:""," ")}}function ci(o,e){if(o&1){let r=wt();b(0,"td",6)(1,"button",7),E("click",function(a){let i=M(r).$implicit,n=v(2);return I(n._cellClicked(i,a))})("focus",function(a){let i=M(r).$implicit,n=v(2);return I(n._emitActiveDateChange(i,a))}),b(2,"span",8),N(3),f(),R(4,"span",9),f()()}if(o&2){let r=e.$implicit,t=e.$index,a=v().$index,i=v();Lt("width",i._cellWidth)("padding-top",i._cellPadding)("padding-bottom",i._cellPadding),A("data-mat-row",a)("data-mat-col",t),p(),P("mat-calendar-body-disabled",!r.enabled)("mat-calendar-body-active",i._isActiveCell(a,t))("mat-calendar-body-range-start",i._isRangeStart(r.compareValue))("mat-calendar-body-range-end",i._isRangeEnd(r.compareValue))("mat-calendar-body-in-range",i._isInRange(r.compareValue))("mat-calendar-body-comparison-bridge-start",i._isComparisonBridgeStart(r.compareValue,a,t))("mat-calendar-body-comparison-bridge-end",i._isComparisonBridgeEnd(r.compareValue,a,t))("mat-calendar-body-comparison-start",i._isComparisonStart(r.compareValue))("mat-calendar-body-comparison-end",i._isComparisonEnd(r.compareValue))("mat-calendar-body-in-comparison-range",i._isInComparisonRange(r.compareValue))("mat-calendar-body-preview-start",i._isPreviewStart(r.compareValue))("mat-calendar-body-preview-end",i._isPreviewEnd(r.compareValue))("mat-calendar-body-in-preview",i._isInPreview(r.compareValue)),D("ngClass",r.cssClasses)("tabindex",i._isActiveCell(a,t)?0:-1),A("aria-label",r.ariaLabel)("aria-disabled",!r.enabled||null)("aria-pressed",i._isSelected(r.compareValue))("aria-current",i.todayValue===r.compareValue?"date":null)("aria-describedby",i._getDescribedby(r.compareValue)),p(),P("mat-calendar-body-selected",i._isSelected(r.compareValue))("mat-calendar-body-comparison-identical",i._isComparisonIdentical(r.compareValue))("mat-calendar-body-today",i.todayValue===r.compareValue),p(),ht(" ",r.displayValue," ")}}function mi(o,e){if(o&1&&(b(0,"tr",1),nt(1,li,2,6,"td",4),Bt(2,ci,5,48,"td",5,Oa),f()),o&2){let r=e.$implicit,t=e.$index,a=v();p(),Dt(t===0&&a._firstRowOffset?1:-1),p(),zt(r)}}function hi(o,e){if(o&1&&(b(0,"th",2)(1,"span",6),N(2),f(),b(3,"span",3),N(4),f()()),o&2){let r=e.$implicit;p(2),mt(r.long),p(2),mt(r.narrow)}}var ui=["*"];function pi(o,e){}function bi(o,e){if(o&1){let r=wt();b(0,"mat-month-view",4),Wt("activeDateChange",function(a){M(r);let i=v();return Xt(i.activeDate,a)||(i.activeDate=a),I(a)}),E("_userSelection",function(a){M(r);let i=v();return I(i._dateSelected(a))})("dragStarted",function(a){M(r);let i=v();return I(i._dragStarted(a))})("dragEnded",function(a){M(r);let i=v();return I(i._dragEnded(a))}),f()}if(o&2){let r=v();Ht("activeDate",r.activeDate),D("selected",r.selected)("dateFilter",r.dateFilter)("maxDate",r.maxDate)("minDate",r.minDate)("dateClass",r.dateClass)("comparisonStart",r.comparisonStart)("comparisonEnd",r.comparisonEnd)("startDateAccessibleName",r.startDateAccessibleName)("endDateAccessibleName",r.endDateAccessibleName)("activeDrag",r._activeDrag)}}function fi(o,e){if(o&1){let r=wt();b(0,"mat-year-view",5),Wt("activeDateChange",function(a){M(r);let i=v();return Xt(i.activeDate,a)||(i.activeDate=a),I(a)}),E("monthSelected",function(a){M(r);let i=v();return I(i._monthSelectedInYearView(a))})("selectedChange",function(a){M(r);let i=v();return I(i._goToDateInView(a,"month"))}),f()}if(o&2){let r=v();Ht("activeDate",r.activeDate),D("selected",r.selected)("dateFilter",r.dateFilter)("maxDate",r.maxDate)("minDate",r.minDate)("dateClass",r.dateClass)}}function _i(o,e){if(o&1){let r=wt();b(0,"mat-multi-year-view",6),Wt("activeDateChange",function(a){M(r);let i=v();return Xt(i.activeDate,a)||(i.activeDate=a),I(a)}),E("yearSelected",function(a){M(r);let i=v();return I(i._yearSelectedInMultiYearView(a))})("selectedChange",function(a){M(r);let i=v();return I(i._goToDateInView(a,"year"))}),f()}if(o&2){let r=v();Ht("activeDate",r.activeDate),D("selected",r.selected)("dateFilter",r.dateFilter)("maxDate",r.maxDate)("minDate",r.minDate)("dateClass",r.dateClass)}}function gi(o,e){}var vi=["button"],yi=[[["","matDatepickerToggleIcon",""]]],Di=["[matDatepickerToggleIcon]"];function wi(o,e){o&1&&(ie(),b(0,"svg",2),R(1,"path",3),f())}var Vt=(()=>{let e=class e{constructor(){this.changes=new S,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="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(t,a){return`${t} \u2013 ${a}`}formatYearRangeLabel(t,a){return`${t} to ${a}`}};e.\u0275fac=function(a){return new(a||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"});let o=e;return o})(),Ci=0,Rt=class{constructor(e,r,t,a,i={},n=e,s){this.value=e,this.displayValue=r,this.ariaLabel=t,this.enabled=a,this.cssClasses=i,this.compareValue=n,this.rawValue=s,this.id=Ci++}},ki=1,Ea=Kt({passive:!1,capture:!0}),tt=Kt({passive:!0,capture:!0}),Jt=Kt({passive:!0}),_t=(()=>{let e=class e{ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}constructor(t,a){this._elementRef=t,this._ngZone=a,this._platform=z(Z),this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new _,this.previewChange=new _,this.activeDateChange=new _,this.dragStarted=new _,this.dragEnded=new _,this._didDragSinceMouseDown=!1,this._injector=z(it),this._trackRow=i=>i,this._enterHandler=i=>{if(this._skipNextFocus&&i.type==="focus"){this._skipNextFocus=!1;return}if(i.target&&this.isRange){let n=this._getCellFromElement(i.target);n&&this._ngZone.run(()=>this.previewChange.emit({value:n.enabled?n:null,event:i}))}},this._touchmoveHandler=i=>{if(!this.isRange)return;let n=Sa(i),s=n?this._getCellFromElement(n):null;n!==i.target&&(this._didDragSinceMouseDown=!0),Ae(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 n=i.target&&this._getCellFromElement(i.target);!n||!this._isInRange(n.compareValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:n.rawValue,event:i})})},this._mouseupHandler=i=>{if(!this.isRange)return;let n=Ae(i.target);if(!n){this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:i})});return}n.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{let s=this._getCellFromElement(n);this.dragEnded.emit({value:s?.rawValue??null,event:i})})},this._touchendHandler=i=>{let n=Sa(i);n&&this._mouseupHandler({target:n})},this._id=`mat-calendar-body-${ki++}`,this._startDateLabelId=`${this._id}-start-date`,this._endDateLabelId=`${this._id}-end-date`,a.runOutsideAngular(()=>{let i=t.nativeElement;i.addEventListener("touchmove",this._touchmoveHandler,Ea),i.addEventListener("mouseenter",this._enterHandler,tt),i.addEventListener("focus",this._enterHandler,tt),i.addEventListener("mouseleave",this._leaveHandler,tt),i.addEventListener("blur",this._leaveHandler,tt),i.addEventListener("mousedown",this._mousedownHandler,Jt),i.addEventListener("touchstart",this._mousedownHandler,Jt),this._platform.isBrowser&&(window.addEventListener("mouseup",this._mouseupHandler),window.addEventListener("touchend",this._touchendHandler))})}_cellClicked(t,a){this._didDragSinceMouseDown||t.enabled&&this.selectedValueChange.emit({value:t.value,event:a})}_emitActiveDateChange(t,a){t.enabled&&this.activeDateChange.emit({value:t.value,event:a})}_isSelected(t){return this.startValue===t||this.endValue===t}ngOnChanges(t){let a=t.numCols,{rows:i,numCols:n}=this;(t.rows||a)&&(this._firstRowOffset=i&&i.length&&i[0].length?n-i[0].length:0),(t.cellAspectRatio||a||!this._cellPadding)&&(this._cellPadding=`${50*this.cellAspectRatio/n}%`),(a||!this._cellWidth)&&(this._cellWidth=`${100/n}%`)}ngOnDestroy(){let t=this._elementRef.nativeElement;t.removeEventListener("touchmove",this._touchmoveHandler,Ea),t.removeEventListener("mouseenter",this._enterHandler,tt),t.removeEventListener("focus",this._enterHandler,tt),t.removeEventListener("mouseleave",this._leaveHandler,tt),t.removeEventListener("blur",this._leaveHandler,tt),t.removeEventListener("mousedown",this._mousedownHandler,Jt),t.removeEventListener("touchstart",this._mousedownHandler,Jt),this._platform.isBrowser&&(window.removeEventListener("mouseup",this._mouseupHandler),window.removeEventListener("touchend",this._touchendHandler))}_isActiveCell(t,a){let i=t*this.numCols+a;return t&&(i-=this._firstRowOffset),i==this.activeCell}_focusActiveCell(t=!0){Nt(()=>{setTimeout(()=>{let a=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");a&&(t||(this._skipNextFocus=!0),a.focus())})},{injector:this._injector})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(t){return Ee(t,this.startValue,this.endValue)}_isRangeEnd(t){return Se(t,this.startValue,this.endValue)}_isInRange(t){return Me(t,this.startValue,this.endValue,this.isRange)}_isComparisonStart(t){return Ee(t,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(t,a,i){if(!this._isComparisonStart(t)||this._isRangeStart(t)||!this._isInRange(t))return!1;let n=this.rows[a][i-1];if(!n){let s=this.rows[a-1];n=s&&s[s.length-1]}return n&&!this._isRangeEnd(n.compareValue)}_isComparisonBridgeEnd(t,a,i){if(!this._isComparisonEnd(t)||this._isRangeEnd(t)||!this._isInRange(t))return!1;let n=this.rows[a][i+1];if(!n){let s=this.rows[a+1];n=s&&s[0]}return n&&!this._isRangeStart(n.compareValue)}_isComparisonEnd(t){return Se(t,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(t){return Me(t,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(t){return this.comparisonStart===this.comparisonEnd&&t===this.comparisonStart}_isPreviewStart(t){return Ee(t,this.previewStart,this.previewEnd)}_isPreviewEnd(t){return Se(t,this.previewStart,this.previewEnd)}_isInPreview(t){return Me(t,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(t){return this.isRange?this.startValue===t&&this.endValue===t?`${this._startDateLabelId} ${this._endDateLabelId}`:this.startValue===t?this._startDateLabelId:this.endValue===t?this._endDateLabelId:null:null}_getCellFromElement(t){let a=Ae(t);if(a){let i=a.getAttribute("data-mat-row"),n=a.getAttribute("data-mat-col");if(i&&n)return this.rows[parseInt(i)][parseInt(n)]}return null}};e.\u0275fac=function(a){return new(a||e)(c(Y),c(j))},e.\u0275cmp=F({type:e,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"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:[st,T],attrs:oi,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(a,i){a&1&&(nt(0,di,3,6,"tr",0),Bt(1,mi,4,1,"tr",1,si,!0),b(3,"span",2),N(4),f(),b(5,"span",2),N(6),f()),a&2&&(Dt(i._firstRowOffset<i.labelMinRequiredCells?0:-1),p(),zt(i.rows),p(2),D("id",i._startDateLabelId),p(),ht(" ",i.startDateAccessibleName,`
`),p(),D("id",i._endDateLabelId),p(),ht(" ",i.endDateAccessibleName,`
`))},dependencies:[ea],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, var(--mat-app-primary))}.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, var(--mat-app-title-small-size));font-weight:var(--mat-datepicker-calendar-body-label-text-weight, var(--mat-app-title-small-weight));color:var(--mat-datepicker-calendar-body-label-text-color, var(--mat-app-on-surface))}.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;font-family:var(--mat-datepicker-calendar-text-font, var(--mat-app-body-medium-font));font-size:var(--mat-datepicker-calendar-text-size, var(--mat-app-body-medium-size))}.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-end::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, var(--mat-app-primary))}.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, var(--mat-app-on-surface));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, var(--mat-app-primary));color:var(--mat-datepicker-calendar-date-selected-state-text-color, var(--mat-app-on-primary))}.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, var(--mat-app-primary))}.mat-calendar-body-in-range::before{background:var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-app-primary-container))}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-app-tertiary-container))}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-app-tertiary-container))}.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, var(--mat-app-primary-container)) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-app-tertiary-container)) 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, var(--mat-app-primary-container)) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-app-tertiary-container)) 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, var(--mat-app-secondary-container))}.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, var(--mat-app-secondary))}.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}.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 o=e;return o})();function xe(o){return o?.nodeName==="TD"}function Ae(o){let e;return xe(o)?e=o:xe(o.parentNode)?e=o.parentNode:xe(o.parentNode?.parentNode)&&(e=o.parentNode.parentNode),e?.getAttribute("data-mat-row")!=null?e:null}function Ee(o,e,r){return r!==null&&e!==r&&o<r&&o===e}function Se(o,e,r){return e!==null&&e!==r&&o>=e&&o===r}function Me(o,e,r,t){return t&&e!==null&&r!==null&&e!==r&&o>=e&&o<=r}function Sa(o){let e=o.changedTouches[0];return document.elementFromPoint(e.clientX,e.clientY)}var w=class{constructor(e,r){this.start=e,this.end=r}},ot=(()=>{let e=class e{constructor(t,a){this.selection=t,this._adapter=a,this._selectionChanged=new S,this.selectionChanged=this._selectionChanged,this.selection=t}updateSelection(t,a){let i=this.selection;this.selection=t,this._selectionChanged.next({selection:t,source:a,oldValue:i})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(t){return this._adapter.isDateInstance(t)&&this._adapter.isValid(t)}};e.\u0275fac=function(a){Tt()},e.\u0275prov=x({token:e,factory:e.\u0275fac});let o=e;return o})(),xi=(()=>{let e=class e extends ot{constructor(t){super(null,t)}add(t){super.updateSelection(t,this)}isValid(){return this.selection!=null&&this._isValidDateInstance(this.selection)}isComplete(){return this.selection!=null}clone(){let t=new e(this._adapter);return t.updateSelection(this.selection,this),t}};e.\u0275fac=function(a){return new(a||e)(u(V))},e.\u0275prov=x({token:e,factory:e.\u0275fac});let o=e;return o})(),Ai=(()=>{let e=class e extends ot{constructor(t){super(new w(null,null),t)}add(t){let{start:a,end:i}=this.selection;a==null?a=t:i==null?i=t:(a=t,i=null),super.updateSelection(new w(a,i),this)}isValid(){let{start:t,end:a}=this.selection;return t==null&&a==null?!0:t!=null&&a!=null?this._isValidDateInstance(t)&&this._isValidDateInstance(a)&&this._adapter.compareDate(t,a)<=0:(t==null||this._isValidDateInstance(t))&&(a==null||this._isValidDateInstance(a))}isComplete(){return this.selection.start!=null&&this.selection.end!=null}clone(){let t=new e(this._adapter);return t.updateSelection(this.selection,this),t}};e.\u0275fac=function(a){return new(a||e)(u(V))},e.\u0275prov=x({token:e,factory:e.\u0275fac});let o=e;return o})();function Ei(o,e){return o||new xi(e)}var Si={provide:ot,deps:[[new ee,new ae,ot],V],useFactory:Ei};function Mi(o,e){return o||new Ai(e)}var dr={provide:ot,deps:[[new ee,new ae,ot],V],useFactory:Mi},Fa=new et("MAT_DATE_RANGE_SELECTION_STRATEGY"),lr=(()=>{let e=class e{constructor(t){this._dateAdapter=t}selectionFinished(t,a){let{start:i,end:n}=a;return i==null?i=t:n==null&&t&&this._dateAdapter.compareDate(t,i)>=0?n=t:(i=t,n=null),new w(i,n)}createPreview(t,a){let i=null,n=null;return a.start&&!a.end&&t&&(i=a.start,n=t),new w(i,n)}createDrag(t,a,i){let n=a.start,s=a.end;if(!n||!s)return null;let d=this._dateAdapter,m=d.compareDate(n,s)!==0,l=d.getYear(i)-d.getYear(t),h=d.getMonth(i)-d.getMonth(t),g=d.getDate(i)-d.getDate(t);return m&&d.sameDate(t,a.start)?(n=i,d.compareDate(i,s)>0&&(s=d.addCalendarYears(s,l),s=d.addCalendarMonths(s,h),s=d.addCalendarDays(s,g))):m&&d.sameDate(t,a.end)?(s=i,d.compareDate(i,n)<0&&(n=d.addCalendarYears(n,l),n=d.addCalendarMonths(n,h),n=d.addCalendarDays(n,g))):(n=d.addCalendarYears(n,l),n=d.addCalendarMonths(n,h),n=d.addCalendarDays(n,g),s=d.addCalendarYears(s,l),s=d.addCalendarMonths(s,h),s=d.addCalendarDays(s,g)),new w(n,s)}};e.\u0275fac=function(a){return new(a||e)(u(V))},e.\u0275prov=x({token:e,factory:e.\u0275fac});let o=e;return o})();var Ie=7,Ii=0,Ma=(()=>{let e=class e{get activeDate(){return this._activeDate}set activeDate(t){let a=this._activeDate,i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),this._hasSameMonthAndYear(a,this._activeDate)||this._init()}get selected(){return this._selected}set selected(t){t instanceof w?this._selected=t:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}constructor(t,a,i,n,s){this._changeDetectorRef=t,this._dateFormats=a,this._dateAdapter=i,this._dir=n,this._rangeStrategy=s,this._rerenderSubscription=W.EMPTY,this.activeDrag=null,this.selectedChange=new _,this._userSelection=new _,this.dragStarted=new _,this.dragEnded=new _,this.activeDateChange=new _,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Pt(null)).subscribe(()=>this._init())}ngOnChanges(t){let a=t.comparisonStart||t.comparisonEnd;a&&!a.firstChange&&this._setRanges(this.selected),t.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(t){let a=t.value,i=this._getDateFromDayOfMonth(a),n,s;this._selected instanceof w?(n=this._getDateInCurrentMonth(this._selected.start),s=this._getDateInCurrentMonth(this._selected.end)):n=s=this._getDateInCurrentMonth(this._selected),(n!==a||s!==a)&&this.selectedChange.emit(i),this._userSelection.emit({value:i,event:t.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(t){let a=t.value,i=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(a),this._dateAdapter.compareDate(i,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(t){let a=this._activeDate,i=this._isRtl();switch(t.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=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=t.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)&&t.preventDefault();return;case 27:this._previewEnd!=null&&!sa(t)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:t}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:t})),t.preventDefault(),t.stopPropagation());return;default:return}this._dateAdapter.compareDate(a,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),t.preventDefault()}_handleCalendarBodyKeyup(t){(t.keyCode===32||t.keyCode===13)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:t}),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 t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(Ie+this._dateAdapter.getDayOfWeek(t)-this._dateAdapter.getFirstDayOfWeek())%Ie,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(t){this._matCalendarBody._focusActiveCell(t)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:t,value:a}){if(this._rangeStrategy){let i=a?a.rawValue:null,n=this._rangeStrategy.createPreview(i,this.selected,t);if(this._previewStart=this._getCellCompareValue(n.start),this._previewEnd=this._getCellCompareValue(n.end),this.activeDrag&&i){let s=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,i,t);s&&(this._previewStart=this._getCellCompareValue(s.start),this._previewEnd=this._getCellCompareValue(s.end))}this._changeDetectorRef.detectChanges()}}_dragEnded(t){if(this.activeDrag)if(t.value){let a=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,t.value,t.event);this.dragEnded.emit({value:a??null,event:t.event})}else this.dragEnded.emit({value:null,event:t.event})}_getDateFromDayOfMonth(t){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),t)}_initWeekdays(){let t=this._dateAdapter.getFirstDayOfWeek(),a=this._dateAdapter.getDayOfWeekNames("narrow"),n=this._dateAdapter.getDayOfWeekNames("long").map((s,d)=>({long:s,narrow:a[d],id:Ii++}));this._weekdays=n.slice(t).concat(n.slice(0,t))}_createWeekCells(){let t=this._dateAdapter.getNumDaysInMonth(this.activeDate),a=this._dateAdapter.getDateNames();this._weeks=[[]];for(let i=0,n=this._firstWeekOffset;i<t;i++,n++){n==Ie&&(this._weeks.push([]),n=0);let s=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),i+1),d=this._shouldEnableDate(s),m=this._dateAdapter.format(s,this._dateFormats.display.dateA11yLabel),l=this.dateClass?this.dateClass(s,"month"):void 0;this._weeks[this._weeks.length-1].push(new Rt(i+1,a[i],m,d,l,this._getCellCompareValue(s),s))}}_shouldEnableDate(t){return!!t&&(!this.minDate||this._dateAdapter.compareDate(t,this.minDate)>=0)&&(!this.maxDate||this._dateAdapter.compareDate(t,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(t))}_getDateInCurrentMonth(t){return t&&this._hasSameMonthAndYear(t,this.activeDate)?this._dateAdapter.getDate(t):null}_hasSameMonthAndYear(t,a){return!!(t&&a&&this._dateAdapter.getMonth(t)==this._dateAdapter.getMonth(a)&&this._dateAdapter.getYear(t)==this._dateAdapter.getYear(a))}_getCellCompareValue(t){if(t){let a=this._dateAdapter.getYear(t),i=this._dateAdapter.getMonth(t),n=this._dateAdapter.getDate(t);return new Date(a,i,n).getTime()}return null}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setRanges(t){t instanceof w?(this._rangeStart=this._getCellCompareValue(t.start),this._rangeEnd=this._getCellCompareValue(t.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(t),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(t){return!this.dateFilter||this.dateFilter(t)}_clearPreview(){this._previewStart=this._previewEnd=null}};e.\u0275fac=function(a){return new(a||e)(c($),c(At,8),c(V,8),c(ut,8),c(Fa,8))},e.\u0275cmp=F({type:e,selectors:[["mat-month-view"]],viewQuery:function(a,i){if(a&1&&K(_t,5),a&2){let n;H(n=X())&&(i._matCalendarBody=n.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:[st,T],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(a,i){a&1&&(b(0,"table",0)(1,"thead",1)(2,"tr"),Bt(3,hi,5,2,"th",2,Oa),f(),b(5,"tr",3),R(6,"th",4),f()(),b(7,"tbody",5),E("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)}),f()()),a&2&&(p(3),zt(i._weekdays),p(4),D("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:[_t],encapsulation:2,changeDetection:0});let o=e;return o})(),O=24,Re=4,Ia=(()=>{let e=class e{get activeDate(){return this._activeDate}set activeDate(t){let a=this._activeDate,i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),Pa(this._dateAdapter,a,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(t){t instanceof w?this._selected=t:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setSelectedYear(t)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}constructor(t,a,i){this._changeDetectorRef=t,this._dateAdapter=a,this._dir=i,this._rerenderSubscription=W.EMPTY,this.selectedChange=new _,this.yearSelected=new _,this.activeDateChange=new _,this._dateAdapter,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Pt(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());let a=this._dateAdapter.getYear(this._activeDate)-It(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let i=0,n=[];i<O;i++)n.push(a+i),n.length==Re&&(this._years.push(n.map(s=>this._createCellForYear(s))),n=[]);this._changeDetectorRef.markForCheck()}_yearSelected(t){let a=t.value,i=this._dateAdapter.createDate(a,0,1),n=this._getDateFromYear(a);this.yearSelected.emit(i),this.selectedChange.emit(n)}_updateActiveDate(t){let a=t.value,i=this._activeDate;this.activeDate=this._getDateFromYear(a),this._dateAdapter.compareDate(i,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(t){let a=this._activeDate,i=this._isRtl();switch(t.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,-Re);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Re);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-It(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,O-It(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-O*10:-O);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?O*10:O);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(a,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),t.preventDefault()}_handleCalendarBodyKeyup(t){(t.keyCode===32||t.keyCode===13)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:t}),this._selectionKeyPressed=!1)}_getActiveCell(){return It(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(t){let a=this._dateAdapter.getMonth(this.activeDate),i=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(t,a,1));return this._dateAdapter.createDate(t,a,Math.min(this._dateAdapter.getDate(this.activeDate),i))}_createCellForYear(t){let a=this._dateAdapter.createDate(t,0,1),i=this._dateAdapter.getYearName(a),n=this.dateClass?this.dateClass(a,"multi-year"):void 0;return new Rt(t,i,i,this._shouldEnableYear(t),n)}_shouldEnableYear(t){if(t==null||this.maxDate&&t>this._dateAdapter.getYear(this.maxDate)||this.minDate&&t<this._dateAdapter.getYear(this.minDate))return!1;if(!this.dateFilter)return!0;let a=this._dateAdapter.createDate(t,0,1);for(let i=a;this._dateAdapter.getYear(i)==t;i=this._dateAdapter.addCalendarDays(i,1))if(this.dateFilter(i))return!0;return!1}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setSelectedYear(t){if(this._selectedYear=null,t instanceof w){let a=t.start||t.end;a&&(this._selectedYear=this._dateAdapter.getYear(a))}else t&&(this._selectedYear=this._dateAdapter.getYear(t))}};e.\u0275fac=function(a){return new(a||e)(c($),c(V,8),c(ut,8))},e.\u0275cmp=F({type:e,selectors:[["mat-multi-year-view"]],viewQuery:function(a,i){if(a&1&&K(_t,5),a&2){let n;H(n=X())&&(i._matCalendarBody=n.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:[T],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(a,i){a&1&&(b(0,"table",0)(1,"thead",1)(2,"tr"),R(3,"th",2),f()(),b(4,"tbody",3),E("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)}),f()()),a&2&&(p(4),D("rows",i._years)("todayValue",i._todayYear)("startValue",i._selectedYear)("endValue",i._selectedYear)("numCols",4)("cellAspectRatio",4/7)("activeCell",i._getActiveCell()))},dependencies:[_t],encapsulation:2,changeDetection:0});let o=e;return o})();function Pa(o,e,r,t,a){let i=o.getYear(e),n=o.getYear(r),s=Ta(o,t,a);return Math.floor((i-s)/O)===Math.floor((n-s)/O)}function It(o,e,r,t){let a=o.getYear(e);return Ri(a-Ta(o,r,t),O)}function Ta(o,e,r){let t=0;return r?t=o.getYear(r)-O+1:e&&(t=o.getYear(e)),t}function Ri(o,e){return(o%e+e)%e}var Ra=(()=>{let e=class e{get activeDate(){return this._activeDate}set activeDate(t){let a=this._activeDate,i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),this._dateAdapter.getYear(a)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(t){t instanceof w?this._selected=t:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setSelectedMonth(t)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}constructor(t,a,i,n){this._changeDetectorRef=t,this._dateFormats=a,this._dateAdapter=i,this._dir=n,this._rerenderSubscription=W.EMPTY,this.selectedChange=new _,this.monthSelected=new _,this.activeDateChange=new _,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Pt(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(t){let a=t.value,i=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),a,1);this.monthSelected.emit(i);let n=this._getDateFromMonth(a);this.selectedChange.emit(n)}_updateActiveDate(t){let a=t.value,i=this._activeDate;this.activeDate=this._getDateFromMonth(a),this._dateAdapter.compareDate(i,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(t){let a=this._activeDate,i=this._isRtl();switch(t.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,t.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(a,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),t.preventDefault()}_handleCalendarBodyKeyup(t){(t.keyCode===32||t.keyCode===13)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:t}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let t=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(a=>a.map(i=>this._createCellForMonth(i,t[i]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(t){return t&&this._dateAdapter.getYear(t)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(t):null}_getDateFromMonth(t){let a=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1),i=this._dateAdapter.getNumDaysInMonth(a);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,Math.min(this._dateAdapter.getDate(this.activeDate),i))}_createCellForMonth(t,a){let i=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1),n=this._dateAdapter.format(i,this._dateFormats.display.monthYearA11yLabel),s=this.dateClass?this.dateClass(i,"year"):void 0;return new Rt(t,a.toLocaleUpperCase(),n,this._shouldEnableMonth(t),s)}_shouldEnableMonth(t){let a=this._dateAdapter.getYear(this.activeDate);if(t==null||this._isYearAndMonthAfterMaxDate(a,t)||this._isYearAndMonthBeforeMinDate(a,t))return!1;if(!this.dateFilter)return!0;let i=this._dateAdapter.createDate(a,t,1);for(let n=i;this._dateAdapter.getMonth(n)==t;n=this._dateAdapter.addCalendarDays(n,1))if(this.dateFilter(n))return!0;return!1}_isYearAndMonthAfterMaxDate(t,a){if(this.maxDate){let i=this._dateAdapter.getYear(this.maxDate),n=this._dateAdapter.getMonth(this.maxDate);return t>i||t===i&&a>n}return!1}_isYearAndMonthBeforeMinDate(t,a){if(this.minDate){let i=this._dateAdapter.getYear(this.minDate),n=this._dateAdapter.getMonth(this.minDate);return t<i||t===i&&a<n}return!1}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setSelectedMonth(t){t instanceof w?this._selectedMonth=this._getMonthInCurrentYear(t.start)||this._getMonthInCurrentYear(t.end):this._selectedMonth=this._getMonthInCurrentYear(t)}};e.\u0275fac=function(a){return new(a||e)(c($),c(At,8),c(V,8),c(ut,8))},e.\u0275cmp=F({type:e,selectors:[["mat-year-view"]],viewQuery:function(a,i){if(a&1&&K(_t,5),a&2){let n;H(n=X())&&(i._matCalendarBody=n.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:[T],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(a,i){a&1&&(b(0,"table",0)(1,"thead",1)(2,"tr"),R(3,"th",2),f()(),b(4,"tbody",3),E("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)}),f()()),a&2&&(p(4),D("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:[_t],encapsulation:2,changeDetection:0});let o=e;return o})(),Vi=1,ja=(()=>{let e=class e{constructor(t,a,i,n,s){this._intl=t,this.calendar=a,this._dateAdapter=i,this._dateFormats=n,this._id=`mat-calendar-header-${Vi++}`,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:-O)}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:O)}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(t,a){return this.calendar.currentView=="month"?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(a)&&this._dateAdapter.getMonth(t)==this._dateAdapter.getMonth(a):this.calendar.currentView=="year"?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(a):Pa(this._dateAdapter,t,a,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){let a=this._dateAdapter.getYear(this.calendar.activeDate)-It(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),i=a+O-1,n=this._dateAdapter.getYearName(this._dateAdapter.createDate(a,0,1)),s=this._dateAdapter.getYearName(this._dateAdapter.createDate(i,0,1));return[n,s]}};e.\u0275fac=function(a){return new(a||e)(c(Vt),c(Xe(()=>Ve)),c(V,8),c(At,8),c($))},e.\u0275cmp=F({type:e,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],standalone:!0,features:[T],ngContentSelectors:ui,decls:13,vars:11,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["aria-live","polite",1,"cdk-visually-hidden",3,"id"],["mat-button","","type","button",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(a,i){a&1&&(ct(),b(0,"div",0)(1,"div",1)(2,"span",2),N(3),f(),b(4,"button",3),E("click",function(){return i.currentPeriodClicked()}),b(5,"span",4),N(6),f(),ie(),b(7,"svg",5),R(8,"polygon",6),f()(),Ke(),R(9,"div",7),U(10),b(11,"button",8),E("click",function(){return i.previousClicked()}),f(),b(12,"button",9),E("click",function(){return i.nextClicked()}),f()()()),a&2&&(p(2),D("id",i._periodButtonLabelId),p(),mt(i.periodButtonDescription),p(),A("aria-label",i.periodButtonLabel)("aria-describedby",i._periodButtonLabelId),p(2),mt(i.periodButtonText),p(),P("mat-calendar-invert",i.calendar.currentView!=="month"),p(4),D("disabled",!i.previousEnabled()),A("aria-label",i.prevButtonLabel),p(),D("disabled",!i.nextEnabled()),A("aria-label",i.nextButtonLabel))},dependencies:[Ce,ke],encapsulation:2,changeDetection:0});let o=e;return o})(),Ve=(()=>{let e=class e{get startAt(){return this._startAt}set startAt(t){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get selected(){return this._selected}set selected(t){t instanceof w?this._selected=t:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get activeDate(){return this._clampedActiveDate}set activeDate(t){this._clampedActiveDate=this._dateAdapter.clampDate(t,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(t){let a=this._currentView!==t?t:null;this._currentView=t,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),a&&this.viewChanged.emit(a)}constructor(t,a,i,n){this._dateAdapter=a,this._dateFormats=i,this._changeDetectorRef=n,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new _,this.yearSelected=new _,this.monthSelected=new _,this.viewChanged=new _(!0),this._userSelection=new _,this._userDragDrop=new _,this._activeDrag=null,this.stateChanges=new S,this._intlChanges=t.changes.subscribe(()=>{n.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new St(this.headerComponent||ja),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(t){let a=t.minDate&&!this._dateAdapter.sameDate(t.minDate.previousValue,t.minDate.currentValue)?t.minDate:void 0,i=t.maxDate&&!this._dateAdapter.sameDate(t.maxDate.previousValue,t.maxDate.currentValue)?t.maxDate:void 0,n=a||i||t.dateFilter;if(n&&!n.firstChange){let s=this._getCurrentViewComponent();s&&(this._moveFocusOnNextTick=!0,this._changeDetectorRef.detectChanges(),s._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(t){let a=t.value;(this.selected instanceof w||a&&!this._dateAdapter.sameDate(a,this.selected))&&this.selectedChange.emit(a),this._userSelection.emit(t)}_yearSelectedInMultiYearView(t){this.yearSelected.emit(t)}_monthSelectedInYearView(t){this.monthSelected.emit(t)}_goToDateInView(t,a){this.activeDate=t,this.currentView=a}_dragStarted(t){this._activeDrag=t}_dragEnded(t){this._activeDrag&&(t.value&&this._userDragDrop.emit(t),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}};e.\u0275fac=function(a){return new(a||e)(c(Vt),c(V,8),c(At,8),c($))},e.\u0275cmp=F({type:e,selectors:[["mat-calendar"]],viewQuery:function(a,i){if(a&1&&(K(Ma,5),K(Ra,5),K(Ia,5)),a&2){let n;H(n=X())&&(i.monthView=n.first),H(n=X())&&(i.yearView=n.first),H(n=X())&&(i.multiYearView=n.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:[ne([Si]),st,T],decls:5,vars:2,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[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(a,i){if(a&1&&(nt(0,pi,0,0,"ng-template",0),b(1,"div",1),nt(2,bi,1,11,"mat-month-view",2)(3,fi,1,6,"mat-year-view",3)(4,_i,1,6,"mat-multi-year-view",3),f()),a&2){let n;D("cdkPortalOutlet",i._calendarHeaderPortal),p(2),Dt((n=i.currentView)==="month"?2:n==="year"?3:n==="multi-year"?4:-1)}},dependencies:[be,ca,Ma,Ra,Ia],styles:['.mat-calendar{display:block;line-height:normal;font-family:var(--mat-datepicker-calendar-text-font, var(--mat-app-body-medium-font));font-size:var(--mat-datepicker-calendar-text-size, var(--mat-app-body-medium-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, var(--mat-app-title-small-size));font-weight:var(--mat-datepicker-calendar-period-button-text-weight, var(--mat-app-title-small-weight));--mdc-text-button-label-text-color:var(--mat-datepicker-calendar-period-button-text-color, var(--mat-app-on-surface-variant))}.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, var(--mat-app-on-surface-variant))}.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, var(--mat-app-on-surface-variant))}.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, var(--mat-app-on-surface-variant));font-size:var(--mat-datepicker-calendar-header-text-size, var(--mat-app-title-small-size));font-weight:var(--mat-datepicker-calendar-header-text-weight, var(--mat-app-title-small-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 o=e;return o})(),Va={transformPanel:re("transformPanel",[kt("void => enter-dropdown",Ct("120ms cubic-bezier(0, 0, 0.2, 1)",se([J({opacity:0,transform:"scale(1, 0.8)"}),J({opacity:1,transform:"scale(1, 1)"})]))),kt("void => enter-dialog",Ct("150ms cubic-bezier(0, 0, 0.2, 1)",se([J({opacity:0,transform:"scale(0.7)"}),J({transform:"none",opacity:1})]))),kt("* => void",Ct("100ms linear",J({opacity:0})))]),fadeInCalendar:re("fadeInCalendar",[oe("void",J({opacity:0})),oe("enter",J({opacity:1})),kt("void => *",Ct("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};var Oi=new et("mat-datepicker-scroll-strategy",{providedIn:"root",factory:()=>{let o=z(pt);return()=>o.scrollStrategies.reposition()}});function Fi(o){return()=>o.scrollStrategies.reposition()}var Pi={provide:Oi,deps:[pt],useFactory:Fi},Ti=(()=>{let e=class e{constructor(t,a,i,n,s,d){this._elementRef=t,this._changeDetectorRef=a,this._globalModel=i,this._dateAdapter=n,this._rangeSelectionStrategy=s,this._subscriptions=new W,this._animationDone=new S,this._isAnimating=!1,this._actionsPortal=null,this._closeButtonText=d.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(t){let a=this._model.selection,i=t.value,n=a instanceof w;if(n&&this._rangeSelectionStrategy){let s=this._rangeSelectionStrategy.selectionFinished(i,a,t.event);this._model.updateSelection(s,this)}else i&&(n||!this._dateAdapter.sameDate(i,a))&&this._model.add(i);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(t){this._model.updateSelection(t.value,this)}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_handleAnimationEvent(t){this._isAnimating=t.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(t,a){this._model=t?this._globalModel.clone():this._globalModel,this._actionsPortal=t,a&&this._changeDetectorRef.detectChanges()}};e.\u0275fac=function(a){return new(a||e)(c(Y),c($),c(ot),c(V),c(Fa,8),c(Vt))},e.\u0275cmp=F({type:e,selectors:[["mat-datepicker-content"]],viewQuery:function(a,i){if(a&1&&K(Ve,5),a&2){let n;H(n=X())&&(i._calendar=n.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:5,hostBindings:function(a,i){a&1&&Qe("@transformPanel.start",function(s){return i._handleAnimationEvent(s)})("@transformPanel.done",function(s){return i._handleAnimationEvent(s)}),a&2&&(qe("@transformPanel",i._animationState),lt(i.color?"mat-"+i.color:""),P("mat-datepicker-content-touch",i.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],standalone:!0,features:[T],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(a,i){if(a&1&&(b(0,"div",0)(1,"mat-calendar",1),E("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)}),f(),nt(2,gi,0,0,"ng-template",2),b(3,"button",3),E("focus",function(){return i._closeButtonFocused=!0})("blur",function(){return i._closeButtonFocused=!1})("click",function(){return i.datepicker.close()}),N(4),f()()),a&2){let n;P("mat-datepicker-content-container-with-custom-header",i.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",i._actionsPortal),A("aria-modal",!0)("aria-labelledby",(n=i._dialogLabelId)!==null&&n!==void 0?n:void 0),p(),lt(i.datepicker.panelClass),D("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),p(),D("cdkPortalOutlet",i._actionsPortal),p(),P("cdk-visually-hidden",!i._closeButtonFocused),D("color",i.color||"primary"),p(),mt(i._closeButtonText)}},dependencies:[da,Ve,be,Ce],styles:[".mat-datepicker-content{display:block;border-radius:4px;background-color:var(--mat-datepicker-calendar-container-background-color, var(--mat-app-surface-container-high));color:var(--mat-datepicker-calendar-container-text-color, var(--mat-app-on-surface));box-shadow:var(--mat-datepicker-calendar-container-elevation-shadow);border-radius:var(--mat-datepicker-calendar-container-shape, var(--mat-app-corner-large))}.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, var(--mat-app-corner-extra-large));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:[Va.transformPanel,Va.fadeInCalendar]},changeDetection:0});let o=e;return o})();var ji=(()=>{let e=class e{};e.\u0275fac=function(a){return new(a||e)},e.\u0275dir=at({type:e,selectors:[["","matDatepickerToggleIcon",""]],standalone:!0});let o=e;return o})(),Yi=(()=>{let e=class e{get disabled(){return this._disabled===void 0&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(t){this._disabled=t}constructor(t,a,i){this._intl=t,this._changeDetectorRef=a,this._stateChanges=W.EMPTY;let n=Number(i);this.tabIndex=n||n===0?n:null}ngOnChanges(t){t.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(t){this.datepicker&&!this.disabled&&(this.datepicker.open(),t.stopPropagation())}_watchStateChanges(){let t=this.datepicker?this.datepicker.stateChanges:Ft(),a=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:Ft(),i=this.datepicker?gt(this.datepicker.openedStream,this.datepicker.closedStream):Ft();this._stateChanges.unsubscribe(),this._stateChanges=gt(this._intl.changes,t,a,i).subscribe(()=>this._changeDetectorRef.markForCheck())}};e.\u0275fac=function(a){return new(a||e)(c(Vt),c($),$e("tabindex"))},e.\u0275cmp=F({type:e,selectors:[["mat-datepicker-toggle"]],contentQueries:function(a,i,n){if(a&1&&Ue(n,ji,5),a&2){let s;H(s=X())&&(i._customIcon=s.first)}},viewQuery:function(a,i){if(a&1&&K(vi,5),a&2){let n;H(n=X())&&(i._button=n.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(a,i){a&1&&E("click",function(s){return i._open(s)}),a&2&&(A("tabindex",null)("data-mat-calendar",i.datepicker?i.datepicker.id:null),P("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:[0,"for","datepicker"],tabIndex:"tabIndex",ariaLabel:[0,"aria-label","ariaLabel"],disabled:[2,"disabled","disabled",G],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],standalone:!0,features:[yt,st,T],ngContentSelectors:Di,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(a,i){a&1&&(ct(yi),b(0,"button",1,0),nt(2,wi,2,0,":svg:svg",2),U(3),f()),a&2&&(D("disabled",i.disabled)("disableRipple",i.disableRipple),A("aria-haspopup",i.datepicker?"dialog":null)("aria-label",i.ariaLabel||i._intl.openCalendarLabel)("tabindex",i.disabled?-1:i.tabIndex),p(2),Dt(i._customIcon?-1:2))},dependencies:[ke],styles:[".mat-datepicker-toggle{pointer-events:auto;color:var(--mat-datepicker-toggle-icon-color, var(--mat-app-on-surface-variant))}.mat-datepicker-toggle-active{color:var(--mat-datepicker-toggle-active-state-icon-color, var(--mat-app-on-surface-variant))}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0});let o=e;return o})();var cr=(()=>{let e=class e{};e.\u0275fac=function(a){return new(a||e)},e.\u0275mod=Q({type:e}),e.\u0275inj=q({providers:[Vt,Pi],imports:[aa,Aa,ka,ma,qt,xt,Ti,Yi,ja,oa]});let o=e;return o})();function hr(o,e){return Array.isArray(o[e])?o[e][0]:o[e]}export{hr as a,w as b,dr as c,Fa as d,lr as e,Ve as f,cr as g};