import{ea as s,ga as o,k as n,kc as h}from"./chunk-BXH3QC5E.js";var d=new s("MAT_DATE_LOCALE",{providedIn:"root",factory:u});function u(){return o(h)}var a="Method not implemented",l=class{locale;_localeChanges=new n;localeChanges=this._localeChanges;setTime(t,e,r,i){throw new Error(a)}getHours(t){throw new Error(a)}getMinutes(t){throw new Error(a)}getSeconds(t){throw new Error(a)}parseTime(t,e){throw new Error(a)}addSeconds(t,e){throw new Error(a)}getValidDateOrNull(t){return this.isDateInstance(t)&&this.isValid(t)?t:null}deserialize(t){return t==null||this.isDateInstance(t)&&this.isValid(t)?t:this.invalid()}setLocale(t){this.locale=t,this._localeChanges.next()}compareDate(t,e){return this.getYear(t)-this.getYear(e)||this.getMonth(t)-this.getMonth(e)||this.getDate(t)-this.getDate(e)}compareTime(t,e){return this.getHours(t)-this.getHours(e)||this.getMinutes(t)-this.getMinutes(e)||this.getSeconds(t)-this.getSeconds(e)}sameDate(t,e){if(t&&e){let r=this.isValid(t),i=this.isValid(e);return r&&i?!this.compareDate(t,e):r==i}return t==e}sameTime(t,e){if(t&&e){let r=this.isValid(t),i=this.isValid(e);return r&&i?!this.compareTime(t,e):r==i}return t==e}clampDate(t,e,r){return e&&this.compareDate(t,e)<0?e:r&&this.compareDate(t,r)>0?r:t}},T=new s("mat-date-formats");export{d as a,l as b,T as c};
