Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
overpastor
/
wp
/
wp.
/
wp-content
/
plugins
/
imunify-security
/
assets
/
ui-app
/
assets
/
static
/
shared-dependencies
:
datepicker.min.c926943f5449.js
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
System.register(["@angular/cdk/a11y","@angular/cdk/overlay","@angular/cdk/portal","@angular/common","@angular/core","@angular/material/button","@angular/cdk/scrolling","@angular/material/core","rxjs","@angular/cdk/keycodes","@angular/cdk/bidi","@angular/cdk/platform","rxjs/operators","@angular/cdk/coercion","@angular/animations","@angular/forms","@angular/material/form-field","@angular/material/input"],(function(e){"use strict";var t,a,i,n,r,s,d,o,l,c,h,u,p,m,_,g,v,b,f,D,y,C,A,w,k,x,S,I,V,E,M,R,F,O,P,N,Y,T,L,j,B,z,H,K,q,Q,U,G,W,$,Z,X,J,ee,te,ae,ie,ne,re,se,de,oe,le,ce,he,ue,pe,me,_e,ge,ve,be;return{setters:[function(e){t=e,a=e.A11yModule},function(e){i=e.FlexibleConnectedPositionStrategy,n=e.OverlayConfig,r=e,s=e.OverlayModule,d=e.Overlay},function(e){o=e.ComponentPortal,l=e,c=e.TemplatePortal,h=e.PortalModule},function(e){u=e,p=e.DOCUMENT,m=e.CommonModule},function(e){_=e,e.Injectable,g=e.inject,v=e.EventEmitter,e.Component,e.ViewEncapsulation,e.ChangeDetectionStrategy,e.Input,e.Output,b=e.Optional,f=e.SkipSelf,D=e.InjectionToken,e.Inject,e.ViewChild,y=e.forwardRef,e.Directive,e.Attribute,e.ContentChild,e.Self,C=e.TemplateRef,e.NgModule},function(e){A=e,w=e.MatButtonModule},function(e){k=e.CdkScrollableModule},function(e){x=e,S=e.DateAdapter,I=e.MAT_DATE_FORMATS,V=e.mixinColor,E=e.mixinErrorState,M=e.MatCommonModule},function(e){R=e.Subject,F=e.Subscription,O=e.merge,P=e.of},function(e){N=e.ESCAPE,Y=e.hasModifierKey,T=e.SPACE,L=e.ENTER,j=e.PAGE_DOWN,B=e.PAGE_UP,z=e.END,H=e.HOME,K=e.DOWN_ARROW,q=e.UP_ARROW,Q=e.RIGHT_ARROW,U=e.LEFT_ARROW,G=e.BACKSPACE},function(e){W=e,$=e.Directionality},function(e){Z=e.normalizePassiveListenerOptions,X=e.Platform,J=e._getFocusedElementPierceShadowDom},function(e){ee=e.take,te=e.startWith,ae=e.filter},function(e){ie=e.coerceBooleanProperty,ne=e.coerceStringArray},function(e){re=e.trigger,se=e.transition,de=e.animate,oe=e.keyframes,le=e.style,ce=e.state},function(e){he=e.NG_VALUE_ACCESSOR,ue=e.NG_VALIDATORS,pe=e.Validators,me=e.NgControl,_e=e},function(e){ge=e.MAT_FORM_FIELD,ve=e.MatFormFieldControl},function(e){be=e.MAT_INPUT_VALUE_ACCESSOR}],execute:function(){e({MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY:Ct,MAT_RANGE_DATE_SELECTION_MODEL_FACTORY:it,MAT_SINGLE_DATE_SELECTION_MODEL_FACTORY:tt});const fe=["mat-calendar-body",""];function De(e,t){if(1&e&&(_.\u0275\u0275elementStart(0,"tr",3)(1,"td",4),_.\u0275\u0275text(2),_.\u0275\u0275elementEnd()()),2&e){const e=_.\u0275\u0275nextContext();_.\u0275\u0275advance(1),_.\u0275\u0275styleProp("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),_.\u0275\u0275attribute("colspan",e.numCols),_.\u0275\u0275advance(1),_.\u0275\u0275textInterpolate1(" ",e.label," ")}}function ye(e,t){if(1&e&&(_.\u0275\u0275elementStart(0,"td",4),_.\u0275\u0275text(1),_.\u0275\u0275elementEnd()),2&e){const e=_.\u0275\u0275nextContext(2);_.\u0275\u0275styleProp("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),_.\u0275\u0275attribute("colspan",e._firstRowOffset),_.\u0275\u0275advance(1),_.\u0275\u0275textInterpolate1(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ")}}function Ce(e,t){if(1&e){const e=_.\u0275\u0275getCurrentView();_.\u0275\u0275elementStart(0,"td",8)(1,"button",9),_.\u0275\u0275listener("click",(function(t){const a=_.\u0275\u0275restoreView(e).$implicit,i=_.\u0275\u0275nextContext(2);return _.\u0275\u0275resetView(i._cellClicked(a,t))}))("focus",(function(t){const a=_.\u0275\u0275restoreView(e).$implicit,i=_.\u0275\u0275nextContext(2);return _.\u0275\u0275resetView(i._emitActiveDateChange(a,t))})),_.\u0275\u0275elementStart(2,"span",10),_.\u0275\u0275text(3),_.\u0275\u0275elementEnd(),_.\u0275\u0275element(4,"span",11),_.\u0275\u0275elementEnd()()}if(2&e){const e=t.$implicit,a=t.index,i=_.\u0275\u0275nextContext().index,n=_.\u0275\u0275nextContext();_.\u0275\u0275styleProp("width",n._cellWidth)("padding-top",n._cellPadding)("padding-bottom",n._cellPadding),_.\u0275\u0275attribute("data-mat-row",i)("data-mat-col",a),_.\u0275\u0275advance(1),_.\u0275\u0275classProp("mat-calendar-body-disabled",!e.enabled)("mat-calendar-body-active",n._isActiveCell(i,a))("mat-calendar-body-range-start",n._isRangeStart(e.compareValue))("mat-calendar-body-range-end",n._isRangeEnd(e.compareValue))("mat-calendar-body-in-range",n._isInRange(e.compareValue))("mat-calendar-body-comparison-bridge-start",n._isComparisonBridgeStart(e.compareValue,i,a))("mat-calendar-body-comparison-bridge-end",n._isComparisonBridgeEnd(e.compareValue,i,a))("mat-calendar-body-comparison-start",n._isComparisonStart(e.compareValue))("mat-calendar-body-comparison-end",n._isComparisonEnd(e.compareValue))("mat-calendar-body-in-comparison-range",n._isInComparisonRange(e.compareValue))("mat-calendar-body-preview-start",n._isPreviewStart(e.compareValue))("mat-calendar-body-preview-end",n._isPreviewEnd(e.compareValue))("mat-calendar-body-in-preview",n._isInPreview(e.compareValue)),_.\u0275\u0275property("ngClass",e.cssClasses)("tabindex",n._isActiveCell(i,a)?0:-1),_.\u0275\u0275attribute("aria-label",e.ariaLabel)("aria-disabled",!e.enabled||null)("aria-pressed",n._isSelected(e.compareValue))("aria-current",n.todayValue===e.compareValue?"date":null)("aria-describedby",n._getDescribedby(e.compareValue)),_.\u0275\u0275advance(1),_.\u0275\u0275classProp("mat-calendar-body-selected",n._isSelected(e.compareValue))("mat-calendar-body-comparison-identical",n._isComparisonIdentical(e.compareValue))("mat-calendar-body-today",n.todayValue===e.compareValue),_.\u0275\u0275advance(1),_.\u0275\u0275textInterpolate1(" ",e.displayValue," ")}}function Ae(e,t){if(1&e&&(_.\u0275\u0275elementStart(0,"tr",5),_.\u0275\u0275template(1,ye,2,6,"td",6),_.\u0275\u0275template(2,Ce,5,48,"td",7),_.\u0275\u0275elementEnd()),2&e){const e=t.$implicit,a=t.index,i=_.\u0275\u0275nextContext();_.\u0275\u0275advance(1),_.\u0275\u0275property("ngIf",0===a&&i._firstRowOffset),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngForOf",e)}}function we(e,t){if(1&e&&(_.\u0275\u0275elementStart(0,"th",5)(1,"span",6),_.\u0275\u0275text(2),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementStart(3,"span",7),_.\u0275\u0275text(4),_.\u0275\u0275elementEnd()()),2&e){const e=t.$implicit;_.\u0275\u0275advance(2),_.\u0275\u0275textInterpolate(e.long),_.\u0275\u0275advance(2),_.\u0275\u0275textInterpolate(e.narrow)}}const ke=["*"];function xe(e,t){}function Se(e,t){if(1&e){const e=_.\u0275\u0275getCurrentView();_.\u0275\u0275elementStart(0,"mat-month-view",5),_.\u0275\u0275listener("activeDateChange",(function(t){_.\u0275\u0275restoreView(e);const a=_.\u0275\u0275nextContext();return _.\u0275\u0275resetView(a.activeDate=t)}))("_userSelection",(function(t){_.\u0275\u0275restoreView(e);const a=_.\u0275\u0275nextContext();return _.\u0275\u0275resetView(a._dateSelected(t))}))("dragStarted",(function(t){_.\u0275\u0275restoreView(e);const a=_.\u0275\u0275nextContext();return _.\u0275\u0275resetView(a._dragStarted(t))}))("dragEnded",(function(t){_.\u0275\u0275restoreView(e);const a=_.\u0275\u0275nextContext();return _.\u0275\u0275resetView(a._dragEnded(t))})),_.\u0275\u0275elementEnd()}if(2&e){const e=_.\u0275\u0275nextContext();_.\u0275\u0275property("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("startDateAccessibleName",e.startDateAccessibleName)("endDateAccessibleName",e.endDateAccessibleName)("activeDrag",e._activeDrag)}}function Ie(e,t){if(1&e){const e=_.\u0275\u0275getCurrentView();_.\u0275\u0275elementStart(0,"mat-year-view",6),_.\u0275\u0275listener("activeDateChange",(function(t){_.\u0275\u0275restoreView(e);const a=_.\u0275\u0275nextContext();return _.\u0275\u0275resetView(a.activeDate=t)}))("monthSelected",(function(t){_.\u0275\u0275restoreView(e);const a=_.\u0275\u0275nextContext();return _.\u0275\u0275resetView(a._monthSelectedInYearView(t))}))("selectedChange",(function(t){_.\u0275\u0275restoreView(e);const a=_.\u0275\u0275nextContext();return _.\u0275\u0275resetView(a._goToDateInView(t,"month"))})),_.\u0275\u0275elementEnd()}if(2&e){const e=_.\u0275\u0275nextContext();_.\u0275\u0275property("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function Ve(e,t){if(1&e){const e=_.\u0275\u0275getCurrentView();_.\u0275\u0275elementStart(0,"mat-multi-year-view",7),_.\u0275\u0275listener("activeDateChange",(function(t){_.\u0275\u0275restoreView(e);const a=_.\u0275\u0275nextContext();return _.\u0275\u0275resetView(a.activeDate=t)}))("yearSelected",(function(t){_.\u0275\u0275restoreView(e);const a=_.\u0275\u0275nextContext();return _.\u0275\u0275resetView(a._yearSelectedInMultiYearView(t))}))("selectedChange",(function(t){_.\u0275\u0275restoreView(e);const a=_.\u0275\u0275nextContext();return _.\u0275\u0275resetView(a._goToDateInView(t,"year"))})),_.\u0275\u0275elementEnd()}if(2&e){const e=_.\u0275\u0275nextContext();_.\u0275\u0275property("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function Ee(e,t){}const Me=["button"];function Re(e,t){1&e&&(_.\u0275\u0275namespaceSVG(),_.\u0275\u0275elementStart(0,"svg",3),_.\u0275\u0275element(1,"path",4),_.\u0275\u0275elementEnd())}const Fe=[[["","matDatepickerToggleIcon",""]]],Oe=["[matDatepickerToggleIcon]"],Pe=[[["input","matStartDate",""]],[["input","matEndDate",""]]],Ne=["input[matStartDate]","input[matEndDate]"];function Ye(e,t){1&e&&(_.\u0275\u0275elementStart(0,"div",0),_.\u0275\u0275projection(1),_.\u0275\u0275elementEnd())}class Te{constructor(){this.changes=new R,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(e,t){return`${e} \u2013 ${t}`}formatYearRangeLabel(e,t){return`${e} to ${t}`}static{this.\u0275fac=function(e){return new(e||Te)}}static{this.\u0275prov=_.\u0275\u0275defineInjectable({token:Te,factory:Te.\u0275fac,providedIn:"root"})}}e("MatDatepickerIntl",Te);class Le{constructor(e,t,a,i,n={},r=e,s){this.value=e,this.displayValue=t,this.ariaLabel=a,this.enabled=i,this.cssClasses=n,this.compareValue=r,this.rawValue=s}}e("MatCalendarCell",Le);let je=1;const Be=Z({passive:!1,capture:!0}),ze=Z({passive:!0,capture:!0}),He=Z({passive:!0});class Ke{ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}constructor(e,t){this._elementRef=e,this._ngZone=t,this._platform=g(X),this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new v,this.previewChange=new v,this.activeDateChange=new v,this.dragStarted=new v,this.dragEnded=new v,this._didDragSinceMouseDown=!1,this._enterHandler=e=>{if(this._skipNextFocus&&"focus"===e.type)this._skipNextFocus=!1;else if(e.target&&this.isRange){const t=this._getCellFromElement(e.target);t&&this._ngZone.run((()=>this.previewChange.emit({value:t.enabled?t:null,event:e})))}},this._touchmoveHandler=e=>{if(!this.isRange)return;const t=$e(e),a=t?this._getCellFromElement(t):null;t!==e.target&&(this._didDragSinceMouseDown=!0),Qe(e.target)&&e.preventDefault(),this._ngZone.run((()=>this.previewChange.emit({value:a?.enabled?a:null,event:e})))},this._leaveHandler=e=>{null!==this.previewEnd&&this.isRange&&("blur"!==e.type&&(this._didDragSinceMouseDown=!0),!e.target||!this._getCellFromElement(e.target)||e.relatedTarget&&this._getCellFromElement(e.relatedTarget)||this._ngZone.run((()=>this.previewChange.emit({value:null,event:e}))))},this._mousedownHandler=e=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;const t=e.target&&this._getCellFromElement(e.target);t&&this._isInRange(t.rawValue)&&this._ngZone.run((()=>{this.dragStarted.emit({value:t.rawValue,event:e})}))},this._mouseupHandler=e=>{if(!this.isRange)return;const t=Qe(e.target);t?t.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run((()=>{const a=this._getCellFromElement(t);this.dragEnded.emit({value:a?.rawValue??null,event:e})})):this._ngZone.run((()=>{this.dragEnded.emit({value:null,event:e})}))},this._touchendHandler=e=>{const t=$e(e);t&&this._mouseupHandler({target:t})},this._id="mat-calendar-body-"+je++,this._startDateLabelId=`${this._id}-start-date`,this._endDateLabelId=`${this._id}-end-date`,t.runOutsideAngular((()=>{const t=e.nativeElement;t.addEventListener("touchmove",this._touchmoveHandler,Be),t.addEventListener("mouseenter",this._enterHandler,ze),t.addEventListener("focus",this._enterHandler,ze),t.addEventListener("mouseleave",this._leaveHandler,ze),t.addEventListener("blur",this._leaveHandler,ze),t.addEventListener("mousedown",this._mousedownHandler,He),t.addEventListener("touchstart",this._mousedownHandler,He),this._platform.isBrowser&&(window.addEventListener("mouseup",this._mouseupHandler),window.addEventListener("touchend",this._touchendHandler))}))}_cellClicked(e,t){this._didDragSinceMouseDown||e.enabled&&this.selectedValueChange.emit({value:e.value,event:t})}_emitActiveDateChange(e,t){e.enabled&&this.activeDateChange.emit({value:e.value,event:t})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){const t=e.numCols,{rows:a,numCols:i}=this;(e.rows||t)&&(this._firstRowOffset=a&&a.length&&a[0].length?i-a[0].length:0),(e.cellAspectRatio||t||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/i+"%"),!t&&this._cellWidth||(this._cellWidth=100/i+"%")}ngOnDestroy(){const e=this._elementRef.nativeElement;e.removeEventListener("touchmove",this._touchmoveHandler,Be),e.removeEventListener("mouseenter",this._enterHandler,ze),e.removeEventListener("focus",this._enterHandler,ze),e.removeEventListener("mouseleave",this._leaveHandler,ze),e.removeEventListener("blur",this._leaveHandler,ze),e.removeEventListener("mousedown",this._mousedownHandler,He),e.removeEventListener("touchstart",this._mousedownHandler,He),this._platform.isBrowser&&(window.removeEventListener("mouseup",this._mouseupHandler),window.removeEventListener("touchend",this._touchendHandler))}_isActiveCell(e,t){let a=e*this.numCols+t;return e&&(a-=this._firstRowOffset),a==this.activeCell}_focusActiveCell(e=!0){this._ngZone.runOutsideAngular((()=>{this._ngZone.onStable.pipe(ee(1)).subscribe((()=>{setTimeout((()=>{const t=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");t&&(e||(this._skipNextFocus=!0),t.focus())}))}))}))}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(e){return Ue(e,this.startValue,this.endValue)}_isRangeEnd(e){return Ge(e,this.startValue,this.endValue)}_isInRange(e){return We(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return Ue(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,t,a){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let i=this.rows[t][a-1];if(!i){const e=this.rows[t-1];i=e&&e[e.length-1]}return i&&!this._isRangeEnd(i.compareValue)}_isComparisonBridgeEnd(e,t,a){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let i=this.rows[t][a+1];if(!i){const e=this.rows[t+1];i=e&&e[0]}return i&&!this._isRangeStart(i.compareValue)}_isComparisonEnd(e){return Ge(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return We(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return Ue(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return Ge(e,this.previewStart,this.previewEnd)}_isInPreview(e){return We(e,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(e){return this.isRange?this.startValue===e&&this.endValue===e?`${this._startDateLabelId} ${this._endDateLabelId}`:this.startValue===e?this._startDateLabelId:this.endValue===e?this._endDateLabelId:null:null}_getCellFromElement(e){const t=Qe(e);if(t){const e=t.getAttribute("data-mat-row"),a=t.getAttribute("data-mat-col");if(e&&a)return this.rows[parseInt(e)][parseInt(a)]}return null}static{this.\u0275fac=function(e){return new(e||Ke)(_.\u0275\u0275directiveInject(_.ElementRef),_.\u0275\u0275directiveInject(_.NgZone))}}static{this.\u0275cmp=_.\u0275\u0275defineComponent({type:Ke,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"],features:[_.\u0275\u0275NgOnChangesFeature],attrs:fe,decls:6,vars:6,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],[1,"mat-calendar-body-hidden-label",3,"id"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click","focus"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(e,t){1&e&&(_.\u0275\u0275template(0,De,3,6,"tr",0),_.\u0275\u0275template(1,Ae,3,2,"tr",1),_.\u0275\u0275elementStart(2,"label",2),_.\u0275\u0275text(3),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementStart(4,"label",2),_.\u0275\u0275text(5),_.\u0275\u0275elementEnd()),2&e&&(_.\u0275\u0275property("ngIf",t._firstRowOffset<t.labelMinRequiredCells),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngForOf",t.rows),_.\u0275\u0275advance(1),_.\u0275\u0275property("id",t._startDateLabelId),_.\u0275\u0275advance(1),_.\u0275\u0275textInterpolate1(" ",t.startDateAccessibleName,"\n"),_.\u0275\u0275advance(1),_.\u0275\u0275property("id",t._endDateLabelId),_.\u0275\u0275advance(1),_.\u0275\u0275textInterpolate1(" ",t.endDateAccessibleName,"\n"))},dependencies:[u.NgClass,u.NgForOf,u.NgIf],styles:['.mat-calendar-body{min-width:224px}.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-outline-color)}.mat-calendar-body-label{height:0;line-height:0;text-align:left;padding-left:4.7142857143%;padding-right:4.7142857143%;font-size:var(--mat-datepicker-calendar-body-label-text-size);font-weight:var(--mat-datepicker-calendar-body-label-text-weight);color:var(--mat-datepicker-calendar-body-label-text-color)}.mat-calendar-body-hidden-label{display:none}.mat-calendar-body-cell-container{position:relative;height:0;line-height:0}.mat-calendar-body-cell{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);position:absolute;top:0;left:0;width:100%;height:100%;background:none;text-align:center;outline:none;font-family:inherit;margin:0}.mat-calendar-body-cell::-moz-focus-inner{border:0}.mat-calendar-body-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-cell-preview{content:"";position:absolute;top:5%;left:0;z-index:0;box-sizing:border-box;display:block;height:90%;width:100%}.mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-start::after,.mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,.mat-calendar-body-comparison-start::after,.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:5%;width:95%;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,[dir=rtl] .mat-calendar-body-comparison-start::after,[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:0;border-radius:0;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,.mat-calendar-body-comparison-end::after,.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}[dir=rtl] .mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,[dir=rtl] .mat-calendar-body-comparison-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)}.mat-calendar-body-in-preview .mat-calendar-body-cell-preview{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:0;border-right:dashed 1px}.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:0;border-left:dashed 1px}.mat-calendar-body-disabled{cursor:default}.mat-calendar-body-disabled>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){color:var(--mat-datepicker-calendar-date-disabled-state-text-color)}.mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-disabled-state-outline-color)}.cdk-high-contrast-active .mat-calendar-body-disabled{opacity:.5}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px;color:var(--mat-datepicker-calendar-date-text-color);border-color:var(--mat-datepicker-calendar-date-outline-color)}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-focus-state-background-color)}@media(hover: hover){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-hover-state-background-color)}}.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-state-background-color);color:var(--mat-datepicker-calendar-date-selected-state-text-color)}.mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-disabled-state-background-color)}.mat-calendar-body-selected.mat-calendar-body-today{box-shadow:inset 0 0 0 1px var(--mat-datepicker-calendar-date-today-selected-state-outline-color)}.mat-calendar-body-in-range::before{background:var(--mat-datepicker-calendar-date-in-range-state-background-color)}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color)}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color)}.mat-calendar-body-comparison-bridge-start::before,[dir=rtl] .mat-calendar-body-comparison-bridge-end::before{background:linear-gradient(to right, var(--mat-datepicker-calendar-date-in-range-state-background-color) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color) 50%)}.mat-calendar-body-comparison-bridge-end::before,[dir=rtl] .mat-calendar-body-comparison-bridge-start::before{background:linear-gradient(to left, var(--mat-datepicker-calendar-date-in-range-state-background-color) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color) 50%)}.mat-calendar-body-in-range>.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range.mat-calendar-body-in-range::after{background:var(--mat-datepicker-calendar-date-in-overlap-range-state-background-color)}.mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:var(--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color)}.cdk-high-contrast-active .mat-datepicker-popup:not(:empty),.cdk-high-contrast-active .mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.cdk-high-contrast-active .mat-calendar-body-today{outline:dotted 1px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.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}[dir=rtl] .mat-calendar-body-label{text-align:right}'],encapsulation:2,changeDetection:0})}}function qe(e){return"TD"===e?.nodeName}function Qe(e){let t;return qe(e)?t=e:qe(e.parentNode)?t=e.parentNode:qe(e.parentNode?.parentNode)&&(t=e.parentNode.parentNode),null!=t?.getAttribute("data-mat-row")?t:null}function Ue(e,t,a){return null!==a&&t!==a&&e<a&&e===t}function Ge(e,t,a){return null!==t&&t!==a&&e>=t&&e===a}function We(e,t,a,i){return i&&null!==t&&null!==a&&t!==a&&e>=t&&e<=a}function $e(e){const t=e.changedTouches[0];return document.elementFromPoint(t.clientX,t.clientY)}e("MatCalendarBody",Ke);class Ze{constructor(e,t){this.start=e,this.end=t}}e("DateRange",Ze);class Xe{constructor(e,t){this.selection=e,this._adapter=t,this._selectionChanged=new R,this.selectionChanged=this._selectionChanged,this.selection=e}updateSelection(e,t){const a=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:t,oldValue:a})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}static{this.\u0275fac=function(e){_.\u0275\u0275invalidFactory()}}static{this.\u0275prov=_.\u0275\u0275defineInjectable({token:Xe,factory:Xe.\u0275fac})}}e("MatDateSelectionModel",Xe);class Je extends Xe{constructor(e){super(null,e)}add(e){super.updateSelection(e,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const e=new Je(this._adapter);return e.updateSelection(this.selection,this),e}static{this.\u0275fac=function(e){return new(e||Je)(_.\u0275\u0275inject(x.DateAdapter))}}static{this.\u0275prov=_.\u0275\u0275defineInjectable({token:Je,factory:Je.\u0275fac})}}e("MatSingleDateSelectionModel",Je);class et extends Xe{constructor(e){super(new Ze(null,null),e)}add(e){let{start:t,end:a}=this.selection;null==t?t=e:null==a?a=e:(t=e,a=null),super.updateSelection(new Ze(t,a),this)}isValid(){const{start:e,end:t}=this.selection;return null==e&&null==t||(null!=e&&null!=t?this._isValidDateInstance(e)&&this._isValidDateInstance(t)&&this._adapter.compareDate(e,t)<=0:(null==e||this._isValidDateInstance(e))&&(null==t||this._isValidDateInstance(t)))}isComplete(){return null!=this.selection.start&&null!=this.selection.end}clone(){const e=new et(this._adapter);return e.updateSelection(this.selection,this),e}static{this.\u0275fac=function(e){return new(e||et)(_.\u0275\u0275inject(x.DateAdapter))}}static{this.\u0275prov=_.\u0275\u0275defineInjectable({token:et,factory:et.\u0275fac})}}function tt(e,t){return e||new Je(t)}e("MatRangeDateSelectionModel",et);const at=e("MAT_SINGLE_DATE_SELECTION_MODEL_PROVIDER",{provide:Xe,deps:[[new b,new f,Xe],S],useFactory:tt});function it(e,t){return e||new et(t)}const nt=e("MAT_RANGE_DATE_SELECTION_MODEL_PROVIDER",{provide:Xe,deps:[[new b,new f,Xe],S],useFactory:it}),rt=e("MAT_DATE_RANGE_SELECTION_STRATEGY",new D("MAT_DATE_RANGE_SELECTION_STRATEGY"));class st{constructor(e){this._dateAdapter=e}selectionFinished(e,t){let{start:a,end:i}=t;return null==a?a=e:null==i&&e&&this._dateAdapter.compareDate(e,a)>=0?i=e:(a=e,i=null),new Ze(a,i)}createPreview(e,t){let a=null,i=null;return t.start&&!t.end&&e&&(a=t.start,i=e),new Ze(a,i)}createDrag(e,t,a){let i=t.start,n=t.end;if(!i||!n)return null;const r=this._dateAdapter,s=0!==r.compareDate(i,n),d=r.getYear(a)-r.getYear(e),o=r.getMonth(a)-r.getMonth(e),l=r.getDate(a)-r.getDate(e);return s&&r.sameDate(e,t.start)?(i=a,r.compareDate(a,n)>0&&(n=r.addCalendarYears(n,d),n=r.addCalendarMonths(n,o),n=r.addCalendarDays(n,l))):s&&r.sameDate(e,t.end)?(n=a,r.compareDate(a,i)<0&&(i=r.addCalendarYears(i,d),i=r.addCalendarMonths(i,o),i=r.addCalendarDays(i,l))):(i=r.addCalendarYears(i,d),i=r.addCalendarMonths(i,o),i=r.addCalendarDays(i,l),n=r.addCalendarYears(n,d),n=r.addCalendarMonths(n,o),n=r.addCalendarDays(n,l)),new Ze(i,n)}static{this.\u0275fac=function(e){return new(e||st)(_.\u0275\u0275inject(x.DateAdapter))}}static{this.\u0275prov=_.\u0275\u0275defineInjectable({token:st,factory:st.\u0275fac})}}e("DefaultMatCalendarRangeStrategy",st);const dt={provide:rt,deps:[[new b,new f,rt],S],useFactory:function(e,t){return e||new st(t)}};class ot{get activeDate(){return this._activeDate}set activeDate(e){const t=this._activeDate,a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(a,this.minDate,this.maxDate),this._hasSameMonthAndYear(t,this._activeDate)||this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof Ze?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}constructor(e,t,a,i,n){this._changeDetectorRef=e,this._dateFormats=t,this._dateAdapter=a,this._dir=i,this._rangeStrategy=n,this._rerenderSubscription=F.EMPTY,this.activeDrag=null,this.selectedChange=new v,this._userSelection=new v,this.dragStarted=new v,this.dragEnded=new v,this.activeDateChange=new v,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(te(null)).subscribe((()=>this._init()))}ngOnChanges(e){const t=e.comparisonStart||e.comparisonEnd;t&&!t.firstChange&&this._setRanges(this.selected),e.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(e){const t=e.value,a=this._getDateFromDayOfMonth(t);let i,n;this._selected instanceof Ze?(i=this._getDateInCurrentMonth(this._selected.start),n=this._getDateInCurrentMonth(this._selected.end)):i=n=this._getDateInCurrentMonth(this._selected),i===t&&n===t||this.selectedChange.emit(a),this._userSelection.emit({value:a,event:e.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(e){const t=e.value,a=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(t),this._dateAdapter.compareDate(a,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(e){const t=this._activeDate,a=this._isRtl();switch(e.keyCode){case U:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,a?1:-1);break;case Q:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,a?-1:1);break;case q:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case K:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case H:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case z:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case B:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case j:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case L:case T:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&e.preventDefault());case N:return void(null==this._previewEnd||Y(e)||(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:e}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e})),e.preventDefault(),e.stopPropagation()));default:return}this._dateAdapter.compareDate(t,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){e.keyCode!==T&&e.keyCode!==L||(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(e){this._matCalendarBody._focusActiveCell(e)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:e,value:t}){if(this._rangeStrategy){const a=t?t.rawValue:null,i=this._rangeStrategy.createPreview(a,this.selected,e);if(this._previewStart=this._getCellCompareValue(i.start),this._previewEnd=this._getCellCompareValue(i.end),this.activeDrag&&a){const t=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,a,e);t&&(this._previewStart=this._getCellCompareValue(t.start),this._previewEnd=this._getCellCompareValue(t.end))}this._changeDetectorRef.detectChanges()}}_dragEnded(e){if(this.activeDrag)if(e.value){const t=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,e.value,e.event);this.dragEnded.emit({value:t??null,event:e.event})}else this.dragEnded.emit({value:null,event:e.event})}_getDateFromDayOfMonth(e){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),e)}_initWeekdays(){const e=this._dateAdapter.getFirstDayOfWeek(),t=this._dateAdapter.getDayOfWeekNames("narrow");let a=this._dateAdapter.getDayOfWeekNames("long").map(((e,a)=>({long:e,narrow:t[a]})));this._weekdays=a.slice(e).concat(a.slice(0,e))}_createWeekCells(){const e=this._dateAdapter.getNumDaysInMonth(this.activeDate),t=this._dateAdapter.getDateNames();this._weeks=[[]];for(let a=0,i=this._firstWeekOffset;a<e;a++,i++){7==i&&(this._weeks.push([]),i=0);const e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),a+1),n=this._shouldEnableDate(e),r=this._dateAdapter.format(e,this._dateFormats.display.dateA11yLabel),s=this.dateClass?this.dateClass(e,"month"):void 0;this._weeks[this._weeks.length-1].push(new Le(a+1,t[a],r,n,s,this._getCellCompareValue(e),e))}}_shouldEnableDate(e){return!!e&&(!this.minDate||this._dateAdapter.compareDate(e,this.minDate)>=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))}_getDateInCurrentMonth(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}_hasSameMonthAndYear(e,t){return!(!e||!t||this._dateAdapter.getMonth(e)!=this._dateAdapter.getMonth(t)||this._dateAdapter.getYear(e)!=this._dateAdapter.getYear(t))}_getCellCompareValue(e){if(e){const t=this._dateAdapter.getYear(e),a=this._dateAdapter.getMonth(e),i=this._dateAdapter.getDate(e);return new Date(t,a,i).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(e){e instanceof Ze?(this._rangeStart=this._getCellCompareValue(e.start),this._rangeEnd=this._getCellCompareValue(e.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(e),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(e){return!this.dateFilter||this.dateFilter(e)}_clearPreview(){this._previewStart=this._previewEnd=null}static{this.\u0275fac=function(e){return new(e||ot)(_.\u0275\u0275directiveInject(_.ChangeDetectorRef),_.\u0275\u0275directiveInject(I,8),_.\u0275\u0275directiveInject(x.DateAdapter,8),_.\u0275\u0275directiveInject(W.Directionality,8),_.\u0275\u0275directiveInject(rt,8))}}static{this.\u0275cmp=_.\u0275\u0275defineComponent({type:ot,selectors:[["mat-month-view"]],viewQuery:function(e,t){if(1&e&&_.\u0275\u0275viewQuery(Ke,5),2&e){let e;_.\u0275\u0275queryRefresh(e=_.\u0275\u0275loadQuery())&&(t._matCalendarBody=e.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"],features:[_.\u0275\u0275NgOnChangesFeature],decls:7,vars:15,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","startDateAccessibleName","endDateAccessibleName","selectedValueChange","activeDateChange","previewChange","dragStarted","dragEnded","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],["aria-hidden","true"]],template:function(e,t){1&e&&(_.\u0275\u0275elementStart(0,"table",0)(1,"thead",1)(2,"tr"),_.\u0275\u0275template(3,we,5,2,"th",2),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementStart(4,"tr"),_.\u0275\u0275element(5,"th",3),_.\u0275\u0275elementEnd()(),_.\u0275\u0275elementStart(6,"tbody",4),_.\u0275\u0275listener("selectedValueChange",(function(e){return t._dateSelected(e)}))("activeDateChange",(function(e){return t._updateActiveDate(e)}))("previewChange",(function(e){return t._previewChanged(e)}))("dragStarted",(function(e){return t.dragStarted.emit(e)}))("dragEnded",(function(e){return t._dragEnded(e)}))("keyup",(function(e){return t._handleCalendarBodyKeyup(e)}))("keydown",(function(e){return t._handleCalendarBodyKeydown(e)})),_.\u0275\u0275elementEnd()()),2&e&&(_.\u0275\u0275advance(3),_.\u0275\u0275property("ngForOf",t._weekdays),_.\u0275\u0275advance(3),_.\u0275\u0275property("label",t._monthLabel)("rows",t._weeks)("todayValue",t._todayDate)("startValue",t._rangeStart)("endValue",t._rangeEnd)("comparisonStart",t._comparisonRangeStart)("comparisonEnd",t._comparisonRangeEnd)("previewStart",t._previewStart)("previewEnd",t._previewEnd)("isRange",t._isRange)("labelMinRequiredCells",3)("activeCell",t._dateAdapter.getDate(t.activeDate)-1)("startDateAccessibleName",t.startDateAccessibleName)("endDateAccessibleName",t.endDateAccessibleName))},dependencies:[u.NgForOf,Ke],encapsulation:2,changeDetection:0})}}e("MatMonthView",ot);const lt=e("yearsPerPage",24),ct=e("yearsPerRow",4);class ht{get activeDate(){return this._activeDate}set activeDate(e){let t=this._activeDate;const a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(a,this.minDate,this.maxDate),ut(this._dateAdapter,t,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof Ze?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}constructor(e,t,a){this._changeDetectorRef=e,this._dateAdapter=t,this._dir=a,this._rerenderSubscription=F.EMPTY,this.selectedChange=new v,this.yearSelected=new v,this.activeDateChange=new v,this._dateAdapter,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(te(null)).subscribe((()=>this._init()))}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const e=this._dateAdapter.getYear(this._activeDate)-pt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let t=0,a=[];t<lt;t++)a.push(e+t),a.length==ct&&(this._years.push(a.map((e=>this._createCellForYear(e)))),a=[]);this._changeDetectorRef.markForCheck()}_yearSelected(e){const t=e.value,a=this._dateAdapter.createDate(t,0,1),i=this._getDateFromYear(t);this.yearSelected.emit(a),this.selectedChange.emit(i)}_updateActiveDate(e){const t=e.value,a=this._activeDate;this.activeDate=this._getDateFromYear(t),this._dateAdapter.compareDate(a,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){const t=this._activeDate,a=this._isRtl();switch(e.keyCode){case U:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,a?1:-1);break;case Q:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,a?-1:1);break;case q:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-ct);break;case K:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,ct);break;case H:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-pt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case z:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,lt-pt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case B:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10*-lt:-lt);break;case j:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10*lt:lt);break;case L:case T:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(t,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),e.preventDefault()}_handleCalendarBodyKeyup(e){e.keyCode!==T&&e.keyCode!==L||(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_getActiveCell(){return pt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(e){const t=this._dateAdapter.getMonth(this.activeDate),a=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,t,1));return this._dateAdapter.createDate(e,t,Math.min(this._dateAdapter.getDate(this.activeDate),a))}_createCellForYear(e){const t=this._dateAdapter.createDate(e,0,1),a=this._dateAdapter.getYearName(t),i=this.dateClass?this.dateClass(t,"multi-year"):void 0;return new Le(e,a,a,this._shouldEnableYear(e),i)}_shouldEnableYear(e){if(null==e||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e<this._dateAdapter.getYear(this.minDate))return!1;if(!this.dateFilter)return!0;for(let t=this._dateAdapter.createDate(e,0,1);this._dateAdapter.getYear(t)==e;t=this._dateAdapter.addCalendarDays(t,1))if(this.dateFilter(t))return!0;return!1}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setSelectedYear(e){if(this._selectedYear=null,e instanceof Ze){const t=e.start||e.end;t&&(this._selectedYear=this._dateAdapter.getYear(t))}else e&&(this._selectedYear=this._dateAdapter.getYear(e))}static{this.\u0275fac=function(e){return new(e||ht)(_.\u0275\u0275directiveInject(_.ChangeDetectorRef),_.\u0275\u0275directiveInject(x.DateAdapter,8),_.\u0275\u0275directiveInject(W.Directionality,8))}}static{this.\u0275cmp=_.\u0275\u0275defineComponent({type:ht,selectors:[["mat-multi-year-view"]],viewQuery:function(e,t){if(1&e&&_.\u0275\u0275viewQuery(Ke,5),2&e){let e;_.\u0275\u0275queryRefresh(e=_.\u0275\u0275loadQuery())&&(t._matCalendarBody=e.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",activeDateChange:"activeDateChange"},exportAs:["matMultiYearView"],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,"rows","todayValue","startValue","endValue","numCols","cellAspectRatio","activeCell","selectedValueChange","activeDateChange","keyup","keydown"]],template:function(e,t){1&e&&(_.\u0275\u0275elementStart(0,"table",0)(1,"thead",1)(2,"tr"),_.\u0275\u0275element(3,"th",2),_.\u0275\u0275elementEnd()(),_.\u0275\u0275elementStart(4,"tbody",3),_.\u0275\u0275listener("selectedValueChange",(function(e){return t._yearSelected(e)}))("activeDateChange",(function(e){return t._updateActiveDate(e)}))("keyup",(function(e){return t._handleCalendarBodyKeyup(e)}))("keydown",(function(e){return t._handleCalendarBodyKeydown(e)})),_.\u0275\u0275elementEnd()()),2&e&&(_.\u0275\u0275advance(4),_.\u0275\u0275property("rows",t._years)("todayValue",t._todayYear)("startValue",t._selectedYear)("endValue",t._selectedYear)("numCols",4)("cellAspectRatio",4/7)("activeCell",t._getActiveCell()))},dependencies:[Ke],encapsulation:2,changeDetection:0})}}function ut(e,t,a,i,n){const r=e.getYear(t),s=e.getYear(a),d=mt(e,i,n);return Math.floor((r-d)/lt)===Math.floor((s-d)/lt)}function pt(e,t,a,i){const n=e.getYear(t);return((n-mt(e,a,i))%(r=lt)+r)%r;var r}function mt(e,t,a){let i=0;if(a){i=e.getYear(a)-lt+1}else t&&(i=e.getYear(t));return i}e("MatMultiYearView",ht);class _t{get activeDate(){return this._activeDate}set activeDate(e){let t=this._activeDate;const a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(a,this.minDate,this.maxDate),this._dateAdapter.getYear(t)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof Ze?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}constructor(e,t,a,i){this._changeDetectorRef=e,this._dateFormats=t,this._dateAdapter=a,this._dir=i,this._rerenderSubscription=F.EMPTY,this.selectedChange=new v,this.monthSelected=new v,this.activeDateChange=new v,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(te(null)).subscribe((()=>this._init()))}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(e){const t=e.value,a=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1);this.monthSelected.emit(a);const i=this._getDateFromMonth(t);this.selectedChange.emit(i)}_updateActiveDate(e){const t=e.value,a=this._activeDate;this.activeDate=this._getDateFromMonth(t),this._dateAdapter.compareDate(a,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){const t=this._activeDate,a=this._isRtl();switch(e.keyCode){case U:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,a?1:-1);break;case Q:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,a?-1:1);break;case q:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case K:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case H:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case z:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case B:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-10:-1);break;case j:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10:1);break;case L:case T:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(t,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){e.keyCode!==T&&e.keyCode!==L||(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let e=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map((t=>t.map((t=>this._createCellForMonth(t,e[t]))))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_getDateFromMonth(e){const t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),a=this._dateAdapter.getNumDaysInMonth(t);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),a))}_createCellForMonth(e,t){const a=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),i=this._dateAdapter.format(a,this._dateFormats.display.monthYearA11yLabel),n=this.dateClass?this.dateClass(a,"year"):void 0;return new Le(e,t.toLocaleUpperCase(),i,this._shouldEnableMonth(e),n)}_shouldEnableMonth(e){const t=this._dateAdapter.getYear(this.activeDate);if(null==e||this._isYearAndMonthAfterMaxDate(t,e)||this._isYearAndMonthBeforeMinDate(t,e))return!1;if(!this.dateFilter)return!0;for(let a=this._dateAdapter.createDate(t,e,1);this._dateAdapter.getMonth(a)==e;a=this._dateAdapter.addCalendarDays(a,1))if(this.dateFilter(a))return!0;return!1}_isYearAndMonthAfterMaxDate(e,t){if(this.maxDate){const a=this._dateAdapter.getYear(this.maxDate),i=this._dateAdapter.getMonth(this.maxDate);return e>a||e===a&&t>i}return!1}_isYearAndMonthBeforeMinDate(e,t){if(this.minDate){const a=this._dateAdapter.getYear(this.minDate),i=this._dateAdapter.getMonth(this.minDate);return e<a||e===a&&t<i}return!1}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setSelectedMonth(e){this._selectedMonth=e instanceof Ze?this._getMonthInCurrentYear(e.start)||this._getMonthInCurrentYear(e.end):this._getMonthInCurrentYear(e)}static{this.\u0275fac=function(e){return new(e||_t)(_.\u0275\u0275directiveInject(_.ChangeDetectorRef),_.\u0275\u0275directiveInject(I,8),_.\u0275\u0275directiveInject(x.DateAdapter,8),_.\u0275\u0275directiveInject(W.Directionality,8))}}static{this.\u0275cmp=_.\u0275\u0275defineComponent({type:_t,selectors:[["mat-year-view"]],viewQuery:function(e,t){if(1&e&&_.\u0275\u0275viewQuery(Ke,5),2&e){let e;_.\u0275\u0275queryRefresh(e=_.\u0275\u0275loadQuery())&&(t._matCalendarBody=e.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",monthSelected:"monthSelected",activeDateChange:"activeDateChange"},exportAs:["matYearView"],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,"label","rows","todayValue","startValue","endValue","labelMinRequiredCells","numCols","cellAspectRatio","activeCell","selectedValueChange","activeDateChange","keyup","keydown"]],template:function(e,t){1&e&&(_.\u0275\u0275elementStart(0,"table",0)(1,"thead",1)(2,"tr"),_.\u0275\u0275element(3,"th",2),_.\u0275\u0275elementEnd()(),_.\u0275\u0275elementStart(4,"tbody",3),_.\u0275\u0275listener("selectedValueChange",(function(e){return t._monthSelected(e)}))("activeDateChange",(function(e){return t._updateActiveDate(e)}))("keyup",(function(e){return t._handleCalendarBodyKeyup(e)}))("keydown",(function(e){return t._handleCalendarBodyKeydown(e)})),_.\u0275\u0275elementEnd()()),2&e&&(_.\u0275\u0275advance(4),_.\u0275\u0275property("label",t._yearLabel)("rows",t._months)("todayValue",t._todayMonth)("startValue",t._selectedMonth)("endValue",t._selectedMonth)("labelMinRequiredCells",2)("numCols",4)("cellAspectRatio",4/7)("activeCell",t._dateAdapter.getMonth(t.activeDate)))},dependencies:[Ke],encapsulation:2,changeDetection:0})}}e("MatYearView",_t);let gt=1;class vt{constructor(e,t,a,i,n){this._intl=e,this.calendar=t,this._dateAdapter=a,this._dateFormats=i,this._id="mat-calendar-header-"+gt++,this._periodButtonLabelId=`${this._id}-period-label`,this.calendar.stateChanges.subscribe((()=>n.markForCheck()))}get periodButtonText(){return"month"==this.calendar.currentView?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():"year"==this.calendar.currentView?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRange(...this._formatMinAndMaxYearLabels())}get periodButtonDescription(){return"month"==this.calendar.currentView?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():"year"==this.calendar.currentView?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRangeLabel(...this._formatMinAndMaxYearLabels())}get periodButtonLabel(){return"month"==this.calendar.currentView?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="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-lt)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:lt)}previousEnabled(){return!this.calendar.minDate||(!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate))}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(e,t){return"month"==this.calendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(t)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(t):"year"==this.calendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(t):ut(this._dateAdapter,e,t,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){const e=this._dateAdapter.getYear(this.calendar.activeDate)-pt(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),t=e+lt-1;return[this._dateAdapter.getYearName(this._dateAdapter.createDate(e,0,1)),this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1))]}static{this.\u0275fac=function(e){return new(e||vt)(_.\u0275\u0275directiveInject(Te),_.\u0275\u0275directiveInject(y((()=>bt))),_.\u0275\u0275directiveInject(x.DateAdapter,8),_.\u0275\u0275directiveInject(I,8),_.\u0275\u0275directiveInject(_.ChangeDetectorRef))}}static{this.\u0275cmp=_.\u0275\u0275defineComponent({type:vt,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:ke,decls:13,vars:11,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"],[1,"mat-calendar-hidden-label",3,"id"]],template:function(e,t){1&e&&(_.\u0275\u0275projectionDef(),_.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"button",2),_.\u0275\u0275listener("click",(function(){return t.currentPeriodClicked()})),_.\u0275\u0275elementStart(3,"span",3),_.\u0275\u0275text(4),_.\u0275\u0275elementEnd(),_.\u0275\u0275namespaceSVG(),_.\u0275\u0275elementStart(5,"svg",4),_.\u0275\u0275element(6,"polygon",5),_.\u0275\u0275elementEnd()(),_.\u0275\u0275namespaceHTML(),_.\u0275\u0275element(7,"div",6),_.\u0275\u0275projection(8),_.\u0275\u0275elementStart(9,"button",7),_.\u0275\u0275listener("click",(function(){return t.previousClicked()})),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementStart(10,"button",8),_.\u0275\u0275listener("click",(function(){return t.nextClicked()})),_.\u0275\u0275elementEnd()()(),_.\u0275\u0275elementStart(11,"label",9),_.\u0275\u0275text(12),_.\u0275\u0275elementEnd()),2&e&&(_.\u0275\u0275advance(2),_.\u0275\u0275attribute("aria-label",t.periodButtonLabel)("aria-describedby",t._periodButtonLabelId),_.\u0275\u0275advance(2),_.\u0275\u0275textInterpolate(t.periodButtonText),_.\u0275\u0275advance(1),_.\u0275\u0275classProp("mat-calendar-invert","month"!==t.calendar.currentView),_.\u0275\u0275advance(4),_.\u0275\u0275property("disabled",!t.previousEnabled()),_.\u0275\u0275attribute("aria-label",t.prevButtonLabel),_.\u0275\u0275advance(1),_.\u0275\u0275property("disabled",!t.nextEnabled()),_.\u0275\u0275attribute("aria-label",t.nextButtonLabel),_.\u0275\u0275advance(1),_.\u0275\u0275property("id",t._periodButtonLabelId),_.\u0275\u0275advance(1),_.\u0275\u0275textInterpolate(t.periodButtonDescription))},dependencies:[A.MatButton,A.MatIconButton],encapsulation:2,changeDetection:0})}}e("MatCalendarHeader",vt);class bt{get startAt(){return this._startAt}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get selected(){return this._selected}set selected(e){this._selected=e instanceof Ze?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get activeDate(){return this._clampedActiveDate}set activeDate(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(e){const t=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),t&&this.viewChanged.emit(t)}constructor(e,t,a,i){this._dateAdapter=t,this._dateFormats=a,this._changeDetectorRef=i,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new v,this.yearSelected=new v,this.monthSelected=new v,this.viewChanged=new v(!0),this._userSelection=new v,this._userDragDrop=new v,this._activeDrag=null,this.stateChanges=new R,this._intlChanges=e.changes.subscribe((()=>{i.markForCheck(),this.stateChanges.next()}))}ngAfterContentInit(){this._calendarHeaderPortal=new o(this.headerComponent||vt),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(e){const t=e.minDate&&!this._dateAdapter.sameDate(e.minDate.previousValue,e.minDate.currentValue)?e.minDate:void 0,a=e.maxDate&&!this._dateAdapter.sameDate(e.maxDate.previousValue,e.maxDate.currentValue)?e.maxDate:void 0,i=t||a||e.dateFilter;if(i&&!i.firstChange){const e=this._getCurrentViewComponent();e&&(this._changeDetectorRef.detectChanges(),e._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(e){const t=e.value;(this.selected instanceof Ze||t&&!this._dateAdapter.sameDate(t,this.selected))&&this.selectedChange.emit(t),this._userSelection.emit(e)}_yearSelectedInMultiYearView(e){this.yearSelected.emit(e)}_monthSelectedInYearView(e){this.monthSelected.emit(e)}_goToDateInView(e,t){this.activeDate=e,this.currentView=t}_dragStarted(e){this._activeDrag=e}_dragEnded(e){this._activeDrag&&(e.value&&this._userDragDrop.emit(e),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}static{this.\u0275fac=function(e){return new(e||bt)(_.\u0275\u0275directiveInject(Te),_.\u0275\u0275directiveInject(x.DateAdapter,8),_.\u0275\u0275directiveInject(I,8),_.\u0275\u0275directiveInject(_.ChangeDetectorRef))}}static{this.\u0275cmp=_.\u0275\u0275defineComponent({type:bt,selectors:[["mat-calendar"]],viewQuery:function(e,t){if(1&e&&(_.\u0275\u0275viewQuery(ot,5),_.\u0275\u0275viewQuery(_t,5),_.\u0275\u0275viewQuery(ht,5)),2&e){let e;_.\u0275\u0275queryRefresh(e=_.\u0275\u0275loadQuery())&&(t.monthView=e.first),_.\u0275\u0275queryRefresh(e=_.\u0275\u0275loadQuery())&&(t.yearView=e.first),_.\u0275\u0275queryRefresh(e=_.\u0275\u0275loadQuery())&&(t.multiYearView=e.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"],features:[_.\u0275\u0275ProvidersFeature([at]),_.\u0275\u0275NgOnChangesFeature],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag","activeDateChange","_userSelection","dragStarted","dragEnded",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag","activeDateChange","_userSelection","dragStarted","dragEnded"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(e,t){1&e&&(_.\u0275\u0275template(0,xe,0,0,"ng-template",0),_.\u0275\u0275elementStart(1,"div",1),_.\u0275\u0275template(2,Se,1,11,"mat-month-view",2),_.\u0275\u0275template(3,Ie,1,6,"mat-year-view",3),_.\u0275\u0275template(4,Ve,1,6,"mat-multi-year-view",4),_.\u0275\u0275elementEnd()),2&e&&(_.\u0275\u0275property("cdkPortalOutlet",t._calendarHeaderPortal),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngSwitch",t.currentView),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngSwitchCase","month"),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngSwitchCase","year"),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngSwitchCase","multi-year"))},dependencies:[u.NgSwitch,u.NgSwitchCase,t.CdkMonitorFocus,l.CdkPortalOutlet,ot,_t,ht],styles:['.mat-calendar{display:block;font-family:var(--mat-datepicker-calendar-text-font);font-size:var(--mat-datepicker-calendar-text-size)}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;align-items:center;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0;margin:0 8px;font-size:var(--mat-datepicker-calendar-period-button-text-size);font-weight:var(--mat-datepicker-calendar-period-button-text-weight)}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle;fill:var(--mat-datepicker-calendar-period-button-icon-color)}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-datepicker-content .mat-calendar-previous-button,.mat-datepicker-content .mat-calendar-next-button{color:var(--mat-datepicker-calendar-navigation-button-icon-color)}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0;color:var(--mat-datepicker-calendar-header-text-color);font-size:var(--mat-datepicker-calendar-header-text-size);font-weight:var(--mat-datepicker-calendar-header-text-weight)}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px;background:var(--mat-datepicker-calendar-header-divider-color)}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}.mat-calendar-hidden-label{display:none}'],encapsulation:2,changeDetection:0})}}e("MatCalendar",bt);const ft=e("matDatepickerAnimations",{transformPanel:re("transformPanel",[se("void => enter-dropdown",de("120ms cubic-bezier(0, 0, 0.2, 1)",oe([le({opacity:0,transform:"scale(1, 0.8)"}),le({opacity:1,transform:"scale(1, 1)"})]))),se("void => enter-dialog",de("150ms cubic-bezier(0, 0, 0.2, 1)",oe([le({opacity:0,transform:"scale(0.7)"}),le({transform:"none",opacity:1})]))),se("* => void",de("100ms linear",le({opacity:0})))]),fadeInCalendar:re("fadeInCalendar",[ce("void",le({opacity:0})),ce("enter",le({opacity:1})),se("void => *",de("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])});let Dt=0;const yt=e("MAT_DATEPICKER_SCROLL_STRATEGY",new D("mat-datepicker-scroll-strategy"));function Ct(e){return()=>e.scrollStrategies.reposition()}const At=e("MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER",{provide:yt,deps:[d],useFactory:Ct}),wt=V(class{constructor(e){this._elementRef=e}});class kt extends wt{constructor(e,t,a,i,n,r){super(e),this._changeDetectorRef=t,this._globalModel=a,this._dateAdapter=i,this._rangeSelectionStrategy=n,this._subscriptions=new F,this._animationDone=new R,this._isAnimating=!1,this._actionsPortal=null,this._closeButtonText=r.closeCalendarLabel}ngOnInit(){this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe((()=>{this._changeDetectorRef.markForCheck()}))),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(e){const t=this._model.selection,a=e.value,i=t instanceof Ze;if(i&&this._rangeSelectionStrategy){const i=this._rangeSelectionStrategy.selectionFinished(a,t,e.event);this._model.updateSelection(i,this)}else!a||!i&&this._dateAdapter.sameDate(a,t)||this._model.add(a);this._model&&!this._model.isComplete()||this._actionsPortal||this.datepicker.close()}_handleUserDragDrop(e){this._model.updateSelection(e.value,this)}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_handleAnimationEvent(e){this._isAnimating="start"===e.phaseName,this._isAnimating||this._animationDone.next()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(e,t){this._model=e?this._globalModel.clone():this._globalModel,this._actionsPortal=e,t&&this._changeDetectorRef.detectChanges()}static{this.\u0275fac=function(e){return new(e||kt)(_.\u0275\u0275directiveInject(_.ElementRef),_.\u0275\u0275directiveInject(_.ChangeDetectorRef),_.\u0275\u0275directiveInject(Xe),_.\u0275\u0275directiveInject(x.DateAdapter),_.\u0275\u0275directiveInject(rt,8),_.\u0275\u0275directiveInject(Te))}}static{this.\u0275cmp=_.\u0275\u0275defineComponent({type:kt,selectors:[["mat-datepicker-content"]],viewQuery:function(e,t){if(1&e&&_.\u0275\u0275viewQuery(bt,5),2&e){let e;_.\u0275\u0275queryRefresh(e=_.\u0275\u0275loadQuery())&&(t._calendar=e.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(e,t){1&e&&_.\u0275\u0275syntheticHostListener("@transformPanel.start",(function(e){return t._handleAnimationEvent(e)}))("@transformPanel.done",(function(e){return t._handleAnimationEvent(e)})),2&e&&(_.\u0275\u0275syntheticHostProperty("@transformPanel",t._animationState),_.\u0275\u0275classProp("mat-datepicker-content-touch",t.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[_.\u0275\u0275InheritDefinitionFeature],decls:5,vars:26,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(e,t){if(1&e&&(_.\u0275\u0275elementStart(0,"div",0)(1,"mat-calendar",1),_.\u0275\u0275listener("yearSelected",(function(e){return t.datepicker._selectYear(e)}))("monthSelected",(function(e){return t.datepicker._selectMonth(e)}))("viewChanged",(function(e){return t.datepicker._viewChanged(e)}))("_userSelection",(function(e){return t._handleUserSelection(e)}))("_userDragDrop",(function(e){return t._handleUserDragDrop(e)})),_.\u0275\u0275elementEnd(),_.\u0275\u0275template(2,Ee,0,0,"ng-template",2),_.\u0275\u0275elementStart(3,"button",3),_.\u0275\u0275listener("focus",(function(){return t._closeButtonFocused=!0}))("blur",(function(){return t._closeButtonFocused=!1}))("click",(function(){return t.datepicker.close()})),_.\u0275\u0275text(4),_.\u0275\u0275elementEnd()()),2&e){let e;_.\u0275\u0275classProp("mat-datepicker-content-container-with-custom-header",t.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",t._actionsPortal),_.\u0275\u0275attribute("aria-modal",!0)("aria-labelledby",null!==(e=t._dialogLabelId)&&void 0!==e?e:void 0),_.\u0275\u0275advance(1),_.\u0275\u0275property("id",t.datepicker.id)("ngClass",t.datepicker.panelClass)("startAt",t.datepicker.startAt)("startView",t.datepicker.startView)("minDate",t.datepicker._getMinDate())("maxDate",t.datepicker._getMaxDate())("dateFilter",t.datepicker._getDateFilter())("headerComponent",t.datepicker.calendarHeaderComponent)("selected",t._getSelected())("dateClass",t.datepicker.dateClass)("comparisonStart",t.comparisonStart)("comparisonEnd",t.comparisonEnd)("@fadeInCalendar","enter")("startDateAccessibleName",t.startDateAccessibleName)("endDateAccessibleName",t.endDateAccessibleName),_.\u0275\u0275advance(1),_.\u0275\u0275property("cdkPortalOutlet",t._actionsPortal),_.\u0275\u0275advance(1),_.\u0275\u0275classProp("cdk-visually-hidden",!t._closeButtonFocused),_.\u0275\u0275property("color",t.color||"primary"),_.\u0275\u0275advance(1),_.\u0275\u0275textInterpolate(t._closeButtonText)}},dependencies:[u.NgClass,A.MatButton,t.CdkTrapFocus,l.CdkPortalOutlet,bt],styles:[".mat-datepicker-content{box-shadow:0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);display:block;border-radius:4px;background-color:var(--mat-datepicker-calendar-container-background-color);color:var(--mat-datepicker-calendar-container-text-color)}.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{box-shadow:0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12);display:block;max-height:80vh;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:[ft.transformPanel,ft.fadeInCalendar]},changeDetection:0})}}e("MatDatepickerContent",kt);class xt{get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(e){this._color=e}get touchUi(){return this._touchUi}set touchUi(e){this._touchUi=ie(e)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(e){const t=ie(e);t!==this._disabled&&(this._disabled=t,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(e){this._restoreFocus=ie(e)}get panelClass(){return this._panelClass}set panelClass(e){this._panelClass=ne(e)}get opened(){return this._opened}set opened(e){ie(e)?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}constructor(e,t,a,i,n,r,s){this._overlay=e,this._ngZone=t,this._viewContainerRef=a,this._dateAdapter=n,this._dir=r,this._model=s,this._inputStateChanges=F.EMPTY,this._document=g(p),this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new v,this.monthSelected=new v,this.viewChanged=new v(!0),this.openedStream=new v,this.closedStream=new v,this._opened=!1,this.id="mat-datepicker-"+Dt++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new R,this._dateAdapter,this._scrollStrategy=i}ngOnChanges(e){const t=e.xPosition||e.yPosition;if(t&&!t.firstChange&&this._overlayRef){const e=this._overlayRef.getConfig().positionStrategy;e instanceof i&&(this._setConnectedPositions(e),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(e){this._model.add(e)}_selectYear(e){this.yearSelected.emit(e)}_selectMonth(e){this.monthSelected.emit(e)}_viewChanged(e){this.viewChanged.emit(e)}registerInput(e){return this.datepickerInput,this._inputStateChanges.unsubscribe(),this.datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe((()=>this.stateChanges.next(void 0))),this._model}registerActions(e){this._actionsPortal,this._actionsPortal=e,this._componentRef?.instance._assignActions(e,!0)}removeActions(e){e===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this.datepickerInput,this._focusedElementBeforeOpen=J(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;const e=this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus,t=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){const{instance:t,location:a}=this._componentRef;t._startExitAnimation(),t._animationDone.pipe(ee(1)).subscribe((()=>{const t=this._document.activeElement;!e||t&&t!==this._document.activeElement&&!a.nativeElement.contains(t)||this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()}))}e?setTimeout(t):t()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(e){e.datepicker=this,e.color=this.color,e._dialogLabelId=this.datepickerInput.getOverlayLabelId(),e._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();const e=this.touchUi,t=new o(kt,this._viewContainerRef),a=this._overlayRef=this._overlay.create(new n({positionStrategy:e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:e?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(e?"dialog":"popup")}));this._getCloseStream(a).subscribe((e=>{e&&e.preventDefault(),this.close()})),a.keydownEvents().subscribe((e=>{const t=e.keyCode;t!==q&&t!==K&&t!==U&&t!==Q&&t!==B&&t!==j||e.preventDefault()})),this._componentRef=a.attach(t),this._forwardContentValues(this._componentRef.instance),e||this._ngZone.onStable.pipe(ee(1)).subscribe((()=>a.updatePosition()))}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const e=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(e)}_setConnectedPositions(e){const t="end"===this.xPosition?"end":"start",a="start"===t?"end":"start",i="above"===this.yPosition?"bottom":"top",n="top"===i?"bottom":"top";return e.withPositions([{originX:t,originY:n,overlayX:t,overlayY:i},{originX:t,originY:i,overlayX:t,overlayY:n},{originX:a,originY:n,overlayX:a,overlayY:i},{originX:a,originY:i,overlayX:a,overlayY:n}])}_getCloseStream(e){const t=["ctrlKey","shiftKey","metaKey"];return O(e.backdropClick(),e.detachments(),e.keydownEvents().pipe(ae((e=>e.keyCode===N&&!Y(e)||this.datepickerInput&&Y(e,"altKey")&&e.keyCode===q&&t.every((t=>!Y(e,t)))))))}static{this.\u0275fac=function(e){return new(e||xt)(_.\u0275\u0275directiveInject(r.Overlay),_.\u0275\u0275directiveInject(_.NgZone),_.\u0275\u0275directiveInject(_.ViewContainerRef),_.\u0275\u0275directiveInject(yt),_.\u0275\u0275directiveInject(x.DateAdapter,8),_.\u0275\u0275directiveInject(W.Directionality,8),_.\u0275\u0275directiveInject(Xe))}}static{this.\u0275dir=_.\u0275\u0275defineDirective({type:xt,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:"touchUi",disabled:"disabled",xPosition:"xPosition",yPosition:"yPosition",restoreFocus:"restoreFocus",dateClass:"dateClass",panelClass:"panelClass",opened:"opened"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[_.\u0275\u0275NgOnChangesFeature]})}}class St extends xt{static{this.\u0275fac=function(){let e;return function(t){return(e||(e=_.\u0275\u0275getInheritedFactory(St)))(t||St)}}()}static{this.\u0275cmp=_.\u0275\u0275defineComponent({type:St,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[_.\u0275\u0275ProvidersFeature([at,{provide:xt,useExisting:St}]),_.\u0275\u0275InheritDefinitionFeature],decls:0,vars:0,template:function(e,t){},encapsulation:2,changeDetection:0})}}e("MatDatepicker",St);class It{constructor(e,t){this.target=e,this.targetElement=t,this.value=this.target.value}}e("MatDatepickerInputEvent",It);class Vt{get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(e){this._assignValueProgrammatically(e)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(e){const t=ie(e),a=this._elementRef.nativeElement;this._disabled!==t&&(this._disabled=t,this.stateChanges.next(void 0)),t&&this._isInitialized&&a.blur&&a.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(e){this._model=e,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe((e=>{if(this._shouldHandleChangeEvent(e)){const t=this._getValueFromModel(e.selection);this._lastValueValid=this._isValidValue(t),this._cvaOnChange(t),this._onTouched(),this._formatValue(t),this.dateInput.emit(new It(this,this._elementRef.nativeElement)),this.dateChange.emit(new It(this,this._elementRef.nativeElement))}}))}constructor(e,t,a){this._elementRef=e,this._dateAdapter=t,this._dateFormats=a,this.dateChange=new v,this.dateInput=new v,this.stateChanges=new R,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=F.EMPTY,this._localeSubscription=F.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=e=>{const t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value));return!t||this._matchesFilter(t)?null:{matDatepickerFilter:!0}},this._minValidator=e=>{const t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),a=this._getMinDate();return!a||!t||this._dateAdapter.compareDate(a,t)<=0?null:{matDatepickerMin:{min:a,actual:t}}},this._maxValidator=e=>{const t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),a=this._getMaxDate();return!a||!t||this._dateAdapter.compareDate(a,t)>=0?null:{matDatepickerMax:{max:a,actual:t}}},this._lastValueValid=!1,this._localeSubscription=t.localeChanges.subscribe((()=>{this._assignValueProgrammatically(this.value)}))}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){Et(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(e){this._validatorOnChange=e}validate(e){return this._validator?this._validator(e):null}writeValue(e){this._assignValueProgrammatically(e)}registerOnChange(e){this._cvaOnChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_onKeydown(e){Y(e,"altKey")&&e.keyCode===K&&["ctrlKey","shiftKey","metaKey"].every((t=>!Y(e,t)))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())}_onInput(e){const t=this._lastValueValid;let a=this._dateAdapter.parse(e,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(a),a=this._dateAdapter.getValidDateOrNull(a);const i=!this._dateAdapter.sameDate(a,this.value);!a||i?this._cvaOnChange(a):(e&&!this.value&&this._cvaOnChange(a),t!==this._lastValueValid&&this._validatorOnChange()),i&&(this._assignValue(a),this.dateInput.emit(new It(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new It(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(e){this._elementRef.nativeElement.value=null!=e?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""}_assignValue(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e}_isValidValue(e){return!e||this._dateAdapter.isValid(e)}_parentDisabled(){return!1}_assignValueProgrammatically(e){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e),this._assignValue(e),this._formatValue(e)}_matchesFilter(e){const t=this._getDateFilter();return!t||t(e)}static{this.\u0275fac=function(e){return new(e||Vt)(_.\u0275\u0275directiveInject(_.ElementRef),_.\u0275\u0275directiveInject(x.DateAdapter,8),_.\u0275\u0275directiveInject(I,8))}}static{this.\u0275dir=_.\u0275\u0275defineDirective({type:Vt,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[_.\u0275\u0275NgOnChangesFeature]})}}function Et(e,t){const a=Object.keys(e);for(let i of a){const{previousValue:a,currentValue:n}=e[i];if(!t.isDateInstance(a)||!t.isDateInstance(n))return!0;if(!t.sameDate(a,n))return!0}return!1}const Mt=e("MAT_DATEPICKER_VALUE_ACCESSOR",{provide:he,useExisting:y((()=>Ft)),multi:!0}),Rt=e("MAT_DATEPICKER_VALIDATORS",{provide:ue,useExisting:y((()=>Ft)),multi:!0});class Ft extends Vt{set matDatepicker(e){e&&(this._datepicker=e,this._closedSubscription=e.closedStream.subscribe((()=>this._onTouched())),this._registerModel(e.registerInput(this)))}get min(){return this._min}set min(e){const t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(t,this._min)||(this._min=t,this._validatorOnChange())}get max(){return this._max}set max(e){const t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(t,this._max)||(this._max=t,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(e){const t=this._matchesFilter(this.value);this._dateFilter=e,this._matchesFilter(this.value)!==t&&this._validatorOnChange()}constructor(e,t,a,i){super(e,t,a),this._formField=i,this._closedSubscription=F.EMPTY,this._validator=pe.compose(super._getValidators())}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(e){return e}_assignValueToModel(e){this._model&&this._model.updateSelection(e,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(e){return e.source!==this}static{this.\u0275fac=function(e){return new(e||Ft)(_.\u0275\u0275directiveInject(_.ElementRef),_.\u0275\u0275directiveInject(x.DateAdapter,8),_.\u0275\u0275directiveInject(I,8),_.\u0275\u0275directiveInject(ge,8))}}static{this.\u0275dir=_.\u0275\u0275defineDirective({type:Ft,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(e,t){1&e&&_.\u0275\u0275listener("input",(function(e){return t._onInput(e.target.value)}))("change",(function(){return t._onChange()}))("blur",(function(){return t._onBlur()}))("keydown",(function(e){return t._onKeydown(e)})),2&e&&(_.\u0275\u0275hostProperty("disabled",t.disabled),_.\u0275\u0275attribute("aria-haspopup",t._datepicker?"dialog":null)("aria-owns",(null==t._datepicker?null:t._datepicker.opened)&&t._datepicker.id||null)("min",t.min?t._dateAdapter.toIso8601(t.min):null)("max",t.max?t._dateAdapter.toIso8601(t.max):null)("data-mat-calendar",t._datepicker?t._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[_.\u0275\u0275ProvidersFeature([Mt,Rt,{provide:be,useExisting:Ft}]),_.\u0275\u0275InheritDefinitionFeature]})}}e("MatDatepickerInput",Ft);class Ot{static{this.\u0275fac=function(e){return new(e||Ot)}}static{this.\u0275dir=_.\u0275\u0275defineDirective({type:Ot,selectors:[["","matDatepickerToggleIcon",""]]})}}e("MatDatepickerToggleIcon",Ot);class Pt{get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=ie(e)}constructor(e,t,a){this._intl=e,this._changeDetectorRef=t,this._stateChanges=F.EMPTY;const i=Number(a);this.tabIndex=i||0===i?i:null}ngOnChanges(e){e.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())}_watchStateChanges(){const e=this.datepicker?this.datepicker.stateChanges:P(),t=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:P(),a=this.datepicker?O(this.datepicker.openedStream,this.datepicker.closedStream):P();this._stateChanges.unsubscribe(),this._stateChanges=O(this._intl.changes,e,t,a).subscribe((()=>this._changeDetectorRef.markForCheck()))}static{this.\u0275fac=function(e){return new(e||Pt)(_.\u0275\u0275directiveInject(Te),_.\u0275\u0275directiveInject(_.ChangeDetectorRef),_.\u0275\u0275injectAttribute("tabindex"))}}static{this.\u0275cmp=_.\u0275\u0275defineComponent({type:Pt,selectors:[["mat-datepicker-toggle"]],contentQueries:function(e,t,a){if(1&e&&_.\u0275\u0275contentQuery(a,Ot,5),2&e){let e;_.\u0275\u0275queryRefresh(e=_.\u0275\u0275loadQuery())&&(t._customIcon=e.first)}},viewQuery:function(e,t){if(1&e&&_.\u0275\u0275viewQuery(Me,5),2&e){let e;_.\u0275\u0275queryRefresh(e=_.\u0275\u0275loadQuery())&&(t._button=e.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(e,t){1&e&&_.\u0275\u0275listener("click",(function(e){return t._open(e)})),2&e&&(_.\u0275\u0275attribute("tabindex",null)("data-mat-calendar",t.datepicker?t.datepicker.id:null),_.\u0275\u0275classProp("mat-datepicker-toggle-active",t.datepicker&&t.datepicker.opened)("mat-accent",t.datepicker&&"accent"===t.datepicker.color)("mat-warn",t.datepicker&&"warn"===t.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[_.\u0275\u0275NgOnChangesFeature],ngContentSelectors:Oe,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true",4,"ngIf"],["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(e,t){1&e&&(_.\u0275\u0275projectionDef(Fe),_.\u0275\u0275elementStart(0,"button",0,1),_.\u0275\u0275template(2,Re,2,0,"svg",2),_.\u0275\u0275projection(3),_.\u0275\u0275elementEnd()),2&e&&(_.\u0275\u0275property("disabled",t.disabled)("disableRipple",t.disableRipple),_.\u0275\u0275attribute("aria-haspopup",t.datepicker?"dialog":null)("aria-label",t.ariaLabel||t._intl.openCalendarLabel)("tabindex",t.disabled?-1:t.tabIndex),_.\u0275\u0275advance(2),_.\u0275\u0275property("ngIf",!t._customIcon))},dependencies:[u.NgIf,A.MatIconButton],styles:[".mat-datepicker-toggle{pointer-events:auto;color:var(--mat-datepicker-toggle-icon-color)}.mat-datepicker-toggle-active{color:var(--mat-datepicker-toggle-active-state-icon-color)}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0})}}function Nt(e){return Tt(e,!0)}function Yt(e){return e.nodeType===Node.ELEMENT_NODE}function Tt(e,t){if(Yt(e)&&t){const t=(e.getAttribute?.("aria-labelledby")?.split(/\s+/g)||[]).reduce(((e,t)=>{const a=document.getElementById(t);return a&&e.push(a),e}),[]);if(t.length)return t.map((e=>Tt(e,!1))).join(" ")}if(Yt(e)){const t=e.getAttribute("aria-label")?.trim();if(t)return t}if("INPUT"===e.nodeName||function(e){return"TEXTAREA"===e.nodeName}(e)){if(e.labels?.length)return Array.from(e.labels).map((e=>Tt(e,!1))).join(" ");const t=e.getAttribute("placeholder")?.trim();if(t)return t;const a=e.getAttribute("title")?.trim();if(a)return a}return(e.textContent||"").replace(/\s+/g," ").trim()}e("MatDatepickerToggle",Pt);const Lt=new D("MAT_DATE_RANGE_INPUT_PARENT");class jt extends Vt{constructor(e,t,a,i,n,r,s,d){super(t,s,d),this._rangeInput=e,this._elementRef=t,this._defaultErrorStateMatcher=a,this._injector=i,this._parentForm=n,this._parentFormGroup=r,this._dir=g($,{optional:!0})}ngOnInit(){const e=this._injector.get(me,null,{optional:!0,self:!0});e&&(this.ngControl=e)}ngDoCheck(){this.ngControl&&this.updateErrorState()}isEmpty(){return 0===this._elementRef.nativeElement.value.length}_getPlaceholder(){return this._elementRef.nativeElement.placeholder}focus(){this._elementRef.nativeElement.focus()}getMirrorValue(){const e=this._elementRef.nativeElement,t=e.value;return t.length>0?t:e.placeholder}_onInput(e){super._onInput(e),this._rangeInput._handleChildValueChange()}_openPopup(){this._rangeInput._openDatepicker()}_getMinDate(){return this._rangeInput.min}_getMaxDate(){return this._rangeInput.max}_getDateFilter(){return this._rangeInput.dateFilter}_parentDisabled(){return this._rangeInput._groupDisabled}_shouldHandleChangeEvent({source:e}){return e!==this._rangeInput._startInput&&e!==this._rangeInput._endInput}_assignValueProgrammatically(e){super._assignValueProgrammatically(e);const t=this===this._rangeInput._startInput?this._rangeInput._endInput:this._rangeInput._startInput;t?._validatorOnChange()}_getAccessibleName(){return Nt(this._elementRef.nativeElement)}static{this.\u0275fac=function(e){return new(e||jt)(_.\u0275\u0275directiveInject(Lt),_.\u0275\u0275directiveInject(_.ElementRef),_.\u0275\u0275directiveInject(x.ErrorStateMatcher),_.\u0275\u0275directiveInject(_.Injector),_.\u0275\u0275directiveInject(_e.NgForm,8),_.\u0275\u0275directiveInject(_e.FormGroupDirective,8),_.\u0275\u0275directiveInject(x.DateAdapter,8),_.\u0275\u0275directiveInject(I,8))}}static{this.\u0275dir=_.\u0275\u0275defineDirective({type:jt,features:[_.\u0275\u0275InheritDefinitionFeature]})}}const Bt=E(jt);class zt extends Bt{constructor(e,t,a,i,n,r,s,d){super(e,t,a,i,n,r,s,d),this._startValidator=e=>{const t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),a=this._model?this._model.selection.end:null;return!t||!a||this._dateAdapter.compareDate(t,a)<=0?null:{matStartDateInvalid:{end:a,actual:t}}},this._validator=pe.compose([...super._getValidators(),this._startValidator])}_getValueFromModel(e){return e.start}_shouldHandleChangeEvent(e){return!!super._shouldHandleChangeEvent(e)&&(e.oldValue?.start?!e.selection.start||!!this._dateAdapter.compareDate(e.oldValue.start,e.selection.start):!!e.selection.start)}_assignValueToModel(e){if(this._model){const t=new Ze(e,this._model.selection.end);this._model.updateSelection(t,this)}}_formatValue(e){super._formatValue(e),this._rangeInput._handleChildValueChange()}_onKeydown(e){const t=this._rangeInput._endInput,a=this._elementRef.nativeElement,i="rtl"!==this._dir?.value;(e.keyCode===Q&&i||e.keyCode===U&&!i)&&a.selectionStart===a.value.length&&a.selectionEnd===a.value.length?(e.preventDefault(),t._elementRef.nativeElement.setSelectionRange(0,0),t.focus()):super._onKeydown(e)}static{this.\u0275fac=function(e){return new(e||zt)(_.\u0275\u0275directiveInject(Lt),_.\u0275\u0275directiveInject(_.ElementRef),_.\u0275\u0275directiveInject(x.ErrorStateMatcher),_.\u0275\u0275directiveInject(_.Injector),_.\u0275\u0275directiveInject(_e.NgForm,8),_.\u0275\u0275directiveInject(_e.FormGroupDirective,8),_.\u0275\u0275directiveInject(x.DateAdapter,8),_.\u0275\u0275directiveInject(I,8))}}static{this.\u0275dir=_.\u0275\u0275defineDirective({type:zt,selectors:[["input","matStartDate",""]],hostAttrs:["type","text",1,"mat-start-date","mat-date-range-input-inner"],hostVars:5,hostBindings:function(e,t){1&e&&_.\u0275\u0275listener("input",(function(e){return t._onInput(e.target.value)}))("change",(function(){return t._onChange()}))("keydown",(function(e){return t._onKeydown(e)}))("blur",(function(){return t._onBlur()})),2&e&&(_.\u0275\u0275hostProperty("disabled",t.disabled),_.\u0275\u0275attribute("aria-haspopup",t._rangeInput.rangePicker?"dialog":null)("aria-owns",(null==t._rangeInput.rangePicker?null:t._rangeInput.rangePicker.opened)&&t._rangeInput.rangePicker.id||null)("min",t._getMinDate()?t._dateAdapter.toIso8601(t._getMinDate()):null)("max",t._getMaxDate()?t._dateAdapter.toIso8601(t._getMaxDate()):null))},inputs:{errorStateMatcher:"errorStateMatcher"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[_.\u0275\u0275ProvidersFeature([{provide:he,useExisting:zt,multi:!0},{provide:ue,useExisting:zt,multi:!0}]),_.\u0275\u0275InheritDefinitionFeature]})}}e("MatStartDate",zt);class Ht extends Bt{constructor(e,t,a,i,n,r,s,d){super(e,t,a,i,n,r,s,d),this._endValidator=e=>{const t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),a=this._model?this._model.selection.start:null;return!t||!a||this._dateAdapter.compareDate(t,a)>=0?null:{matEndDateInvalid:{start:a,actual:t}}},this._validator=pe.compose([...super._getValidators(),this._endValidator])}_getValueFromModel(e){return e.end}_shouldHandleChangeEvent(e){return!!super._shouldHandleChangeEvent(e)&&(e.oldValue?.end?!e.selection.end||!!this._dateAdapter.compareDate(e.oldValue.end,e.selection.end):!!e.selection.end)}_assignValueToModel(e){if(this._model){const t=new Ze(this._model.selection.start,e);this._model.updateSelection(t,this)}}_onKeydown(e){const t=this._rangeInput._startInput,a=this._elementRef.nativeElement,i="rtl"!==this._dir?.value;if(e.keyCode!==G||a.value)if((e.keyCode===U&&i||e.keyCode===Q&&!i)&&0===a.selectionStart&&0===a.selectionEnd){e.preventDefault();const a=t._elementRef.nativeElement.value.length;t._elementRef.nativeElement.setSelectionRange(a,a),t.focus()}else super._onKeydown(e);else t.focus()}static{this.\u0275fac=function(e){return new(e||Ht)(_.\u0275\u0275directiveInject(Lt),_.\u0275\u0275directiveInject(_.ElementRef),_.\u0275\u0275directiveInject(x.ErrorStateMatcher),_.\u0275\u0275directiveInject(_.Injector),_.\u0275\u0275directiveInject(_e.NgForm,8),_.\u0275\u0275directiveInject(_e.FormGroupDirective,8),_.\u0275\u0275directiveInject(x.DateAdapter,8),_.\u0275\u0275directiveInject(I,8))}}static{this.\u0275dir=_.\u0275\u0275defineDirective({type:Ht,selectors:[["input","matEndDate",""]],hostAttrs:["type","text",1,"mat-end-date","mat-date-range-input-inner"],hostVars:5,hostBindings:function(e,t){1&e&&_.\u0275\u0275listener("input",(function(e){return t._onInput(e.target.value)}))("change",(function(){return t._onChange()}))("keydown",(function(e){return t._onKeydown(e)}))("blur",(function(){return t._onBlur()})),2&e&&(_.\u0275\u0275hostProperty("disabled",t.disabled),_.\u0275\u0275attribute("aria-haspopup",t._rangeInput.rangePicker?"dialog":null)("aria-owns",(null==t._rangeInput.rangePicker?null:t._rangeInput.rangePicker.opened)&&t._rangeInput.rangePicker.id||null)("min",t._getMinDate()?t._dateAdapter.toIso8601(t._getMinDate()):null)("max",t._getMaxDate()?t._dateAdapter.toIso8601(t._getMaxDate()):null))},inputs:{errorStateMatcher:"errorStateMatcher"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[_.\u0275\u0275ProvidersFeature([{provide:he,useExisting:Ht,multi:!0},{provide:ue,useExisting:Ht,multi:!0}]),_.\u0275\u0275InheritDefinitionFeature]})}}e("MatEndDate",Ht);let Kt=0;class qt{get value(){return this._model?this._model.selection:null}get shouldLabelFloat(){return this.focused||!this.empty}get placeholder(){const e=this._startInput?._getPlaceholder()||"",t=this._endInput?._getPlaceholder()||"";return e||t?`${e} ${this.separator} ${t}`:""}get rangePicker(){return this._rangePicker}set rangePicker(e){e&&(this._model=e.registerInput(this),this._rangePicker=e,this._closedSubscription.unsubscribe(),this._closedSubscription=e.closedStream.subscribe((()=>{this._startInput?._onTouched(),this._endInput?._onTouched()})),this._registerModel(this._model))}get required(){return this._required??(this._isTargetRequired(this)||this._isTargetRequired(this._startInput)||this._isTargetRequired(this._endInput))??!1}set required(e){this._required=ie(e)}get dateFilter(){return this._dateFilter}set dateFilter(e){const t=this._startInput,a=this._endInput,i=t&&t._matchesFilter(t.value),n=a&&a._matchesFilter(t.value);this._dateFilter=e,t&&t._matchesFilter(t.value)!==i&&t._validatorOnChange(),a&&a._matchesFilter(a.value)!==n&&a._validatorOnChange()}get min(){return this._min}set min(e){const t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(t,this._min)||(this._min=t,this._revalidate())}get max(){return this._max}set max(e){const t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(t,this._max)||(this._max=t,this._revalidate())}get disabled(){return this._startInput&&this._endInput?this._startInput.disabled&&this._endInput.disabled:this._groupDisabled}set disabled(e){const t=ie(e);t!==this._groupDisabled&&(this._groupDisabled=t,this.stateChanges.next(void 0))}get errorState(){return!(!this._startInput||!this._endInput)&&(this._startInput.errorState||this._endInput.errorState)}get empty(){const e=!!this._startInput&&this._startInput.isEmpty(),t=!!this._endInput&&this._endInput.isEmpty();return e&&t}constructor(e,t,a,i,n){this._changeDetectorRef=e,this._elementRef=t,this._dateAdapter=i,this._formField=n,this._closedSubscription=F.EMPTY,this.id="mat-date-range-input-"+Kt++,this.focused=!1,this.controlType="mat-date-range-input",this._groupDisabled=!1,this._ariaDescribedBy=null,this.separator="\u2013",this.comparisonStart=null,this.comparisonEnd=null,this.stateChanges=new R,n?._elementRef.nativeElement.classList.contains("mat-mdc-form-field")&&t.nativeElement.classList.add("mat-mdc-input-element","mat-mdc-form-field-input-control","mdc-text-field__input"),this.ngControl=a}setDescribedByIds(e){this._ariaDescribedBy=e.length?e.join(" "):null}onContainerClick(){this.focused||this.disabled||(this._model&&this._model.selection.start?this._endInput.focus():this._startInput.focus())}ngAfterContentInit(){this._model&&this._registerModel(this._model),O(this._startInput.stateChanges,this._endInput.stateChanges).subscribe((()=>{this.stateChanges.next(void 0)}))}ngOnChanges(e){Et(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._closedSubscription.unsubscribe(),this.stateChanges.complete()}getStartValue(){return this.value?this.value.start:null}getThemePalette(){return this._formField?this._formField.color:void 0}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():null}_getInputMirrorValue(e){const t="start"===e?this._startInput:this._endInput;return t?t.getMirrorValue():""}_shouldHidePlaceholders(){return!!this._startInput&&!this._startInput.isEmpty()}_handleChildValueChange(){this.stateChanges.next(void 0),this._changeDetectorRef.markForCheck()}_openDatepicker(){this._rangePicker&&this._rangePicker.open()}_shouldHideSeparator(){return(!this._formField||this._formField.getLabelId()&&!this._formField._shouldLabelFloat())&&this.empty}_getAriaLabelledby(){const e=this._formField;return e&&e._hasFloatingLabel()?e._labelId:null}_getStartDateAccessibleName(){return this._startInput._getAccessibleName()}_getEndDateAccessibleName(){return this._endInput._getAccessibleName()}_updateFocus(e){this.focused=null!==e,this.stateChanges.next()}_revalidate(){this._startInput&&this._startInput._validatorOnChange(),this._endInput&&this._endInput._validatorOnChange()}_registerModel(e){this._startInput&&this._startInput._registerModel(e),this._endInput&&this._endInput._registerModel(e)}_isTargetRequired(e){return e?.ngControl?.control?.hasValidator(pe.required)}static{this.\u0275fac=function(e){return new(e||qt)(_.\u0275\u0275directiveInject(_.ChangeDetectorRef),_.\u0275\u0275directiveInject(_.ElementRef),_.\u0275\u0275directiveInject(_e.ControlContainer,10),_.\u0275\u0275directiveInject(x.DateAdapter,8),_.\u0275\u0275directiveInject(ge,8))}}static{this.\u0275cmp=_.\u0275\u0275defineComponent({type:qt,selectors:[["mat-date-range-input"]],contentQueries:function(e,t,a){if(1&e&&(_.\u0275\u0275contentQuery(a,zt,5),_.\u0275\u0275contentQuery(a,Ht,5)),2&e){let e;_.\u0275\u0275queryRefresh(e=_.\u0275\u0275loadQuery())&&(t._startInput=e.first),_.\u0275\u0275queryRefresh(e=_.\u0275\u0275loadQuery())&&(t._endInput=e.first)}},hostAttrs:["role","group",1,"mat-date-range-input"],hostVars:8,hostBindings:function(e,t){2&e&&(_.\u0275\u0275attribute("id",t.id)("aria-labelledby",t._getAriaLabelledby())("aria-describedby",t._ariaDescribedBy)("data-mat-calendar",t.rangePicker?t.rangePicker.id:null),_.\u0275\u0275classProp("mat-date-range-input-hide-placeholders",t._shouldHidePlaceholders())("mat-date-range-input-required",t.required))},inputs:{rangePicker:"rangePicker",required:"required",dateFilter:"dateFilter",min:"min",max:"max",disabled:"disabled",separator:"separator",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},exportAs:["matDateRangeInput"],features:[_.\u0275\u0275ProvidersFeature([{provide:ve,useExisting:qt},{provide:Lt,useExisting:qt}]),_.\u0275\u0275NgOnChangesFeature],ngContentSelectors:Ne,decls:11,vars:5,consts:[["cdkMonitorSubtreeFocus","",1,"mat-date-range-input-container",3,"cdkFocusChange"],[1,"mat-date-range-input-wrapper"],["aria-hidden","true",1,"mat-date-range-input-mirror"],[1,"mat-date-range-input-separator"],[1,"mat-date-range-input-wrapper","mat-date-range-input-end-wrapper"]],template:function(e,t){1&e&&(_.\u0275\u0275projectionDef(Pe),_.\u0275\u0275elementStart(0,"div",0),_.\u0275\u0275listener("cdkFocusChange",(function(e){return t._updateFocus(e)})),_.\u0275\u0275elementStart(1,"div",1),_.\u0275\u0275projection(2),_.\u0275\u0275elementStart(3,"span",2),_.\u0275\u0275text(4),_.\u0275\u0275elementEnd()(),_.\u0275\u0275elementStart(5,"span",3),_.\u0275\u0275text(6),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementStart(7,"div",4),_.\u0275\u0275projection(8,1),_.\u0275\u0275elementStart(9,"span",2),_.\u0275\u0275text(10),_.\u0275\u0275elementEnd()()()),2&e&&(_.\u0275\u0275advance(4),_.\u0275\u0275textInterpolate(t._getInputMirrorValue("start")),_.\u0275\u0275advance(1),_.\u0275\u0275classProp("mat-date-range-input-separator-hidden",t._shouldHideSeparator()),_.\u0275\u0275advance(1),_.\u0275\u0275textInterpolate(t.separator),_.\u0275\u0275advance(4),_.\u0275\u0275textInterpolate(t._getInputMirrorValue("end")))},dependencies:[t.CdkMonitorFocus],styles:[".mat-date-range-input{display:block;width:100%}.mat-date-range-input-container{display:flex;align-items:center}.mat-date-range-input-separator{transition:opacity 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);margin:0 4px;color:var(--mat-datepicker-range-input-separator-color)}.mat-form-field-disabled .mat-date-range-input-separator{color:var(--mat-datepicker-range-input-disabled-state-separator-color)}._mat-animation-noopable .mat-date-range-input-separator{transition:none}.mat-date-range-input-separator-hidden{-webkit-user-select:none;user-select:none;opacity:0;transition:none}.mat-date-range-input-wrapper{position:relative;overflow:hidden;max-width:calc(50% - 4px)}.mat-date-range-input-end-wrapper{flex-grow:1}.mat-date-range-input-inner{position:absolute;top:0;left:0;font:inherit;background:rgba(0,0,0,0);color:currentColor;border:none;outline:none;padding:0;margin:0;vertical-align:bottom;text-align:inherit;-webkit-appearance:none;width:100%;height:100%}.mat-date-range-input-inner:-moz-ui-invalid{box-shadow:none}.mat-date-range-input-inner::placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-moz-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-webkit-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner:-ms-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner[disabled]{color:var(--mat-datepicker-range-input-disabled-state-text-color)}.mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{opacity:0}._mat-animation-noopable .mat-date-range-input-inner::placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner::-moz-placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner::-webkit-input-placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner:-ms-input-placeholder{transition:none}.mat-date-range-input-mirror{-webkit-user-select:none;user-select:none;visibility:hidden;white-space:nowrap;display:inline-block;min-width:2px}.mat-mdc-form-field-type-mat-date-range-input .mat-mdc-form-field-infix{width:200px}"],encapsulation:2,changeDetection:0})}}e("MatDateRangeInput",qt);class Qt extends xt{_forwardContentValues(e){super._forwardContentValues(e);const t=this.datepickerInput;t&&(e.comparisonStart=t.comparisonStart,e.comparisonEnd=t.comparisonEnd,e.startDateAccessibleName=t._getStartDateAccessibleName(),e.endDateAccessibleName=t._getEndDateAccessibleName())}static{this.\u0275fac=function(){let e;return function(t){return(e||(e=_.\u0275\u0275getInheritedFactory(Qt)))(t||Qt)}}()}static{this.\u0275cmp=_.\u0275\u0275defineComponent({type:Qt,selectors:[["mat-date-range-picker"]],exportAs:["matDateRangePicker"],features:[_.\u0275\u0275ProvidersFeature([nt,dt,{provide:xt,useExisting:Qt}]),_.\u0275\u0275InheritDefinitionFeature],decls:0,vars:0,template:function(e,t){},encapsulation:2,changeDetection:0})}}e("MatDateRangePicker",Qt);class Ut{constructor(e){this._datepicker=e}_applySelection(){this._datepicker._applyPendingSelection(),this._datepicker.close()}static{this.\u0275fac=function(e){return new(e||Ut)(_.\u0275\u0275directiveInject(xt))}}static{this.\u0275dir=_.\u0275\u0275defineDirective({type:Ut,selectors:[["","matDatepickerApply",""],["","matDateRangePickerApply",""]],hostBindings:function(e,t){1&e&&_.\u0275\u0275listener("click",(function(){return t._applySelection()}))}})}}e("MatDatepickerApply",Ut);class Gt{constructor(e){this._datepicker=e}static{this.\u0275fac=function(e){return new(e||Gt)(_.\u0275\u0275directiveInject(xt))}}static{this.\u0275dir=_.\u0275\u0275defineDirective({type:Gt,selectors:[["","matDatepickerCancel",""],["","matDateRangePickerCancel",""]],hostBindings:function(e,t){1&e&&_.\u0275\u0275listener("click",(function(){return t._datepicker.close()}))}})}}e("MatDatepickerCancel",Gt);class Wt{constructor(e,t){this._datepicker=e,this._viewContainerRef=t}ngAfterViewInit(){this._portal=new c(this._template,this._viewContainerRef),this._datepicker.registerActions(this._portal)}ngOnDestroy(){this._datepicker.removeActions(this._portal),this._portal&&this._portal.isAttached&&this._portal?.detach()}static{this.\u0275fac=function(e){return new(e||Wt)(_.\u0275\u0275directiveInject(xt),_.\u0275\u0275directiveInject(_.ViewContainerRef))}}static{this.\u0275cmp=_.\u0275\u0275defineComponent({type:Wt,selectors:[["mat-datepicker-actions"],["mat-date-range-picker-actions"]],viewQuery:function(e,t){if(1&e&&_.\u0275\u0275viewQuery(C,5),2&e){let e;_.\u0275\u0275queryRefresh(e=_.\u0275\u0275loadQuery())&&(t._template=e.first)}},ngContentSelectors:ke,decls:1,vars:0,consts:[[1,"mat-datepicker-actions"]],template:function(e,t){1&e&&(_.\u0275\u0275projectionDef(),_.\u0275\u0275template(0,Ye,2,0,"ng-template"))},styles:[".mat-datepicker-actions{display:flex;justify-content:flex-end;align-items:center;padding:0 8px 8px 8px}.mat-datepicker-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-datepicker-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0})}}e("MatDatepickerActions",Wt);class $t{static{this.\u0275fac=function(e){return new(e||$t)}}static{this.\u0275mod=_.\u0275\u0275defineNgModule({type:$t})}static{this.\u0275inj=_.\u0275\u0275defineInjector({providers:[Te,At],imports:[m,w,s,a,h,M,k]})}}e("MatDatepickerModule",$t)}}}));