1import{aj as n}from"./5FX1_Lmk.js";class h{constructor(t,r,a,s){this._language="",this._months=[],this._monthsAbbr=[],this._days=[],this.language=t,this.months=r,this.monthsAbbr=a,this.days=s,this.rtl=!1,this.ymd=!1}get language(){return this._language}set language(t){if(typeof t!="string")throw new TypeError("Language must be a string");this._language=t}get months(){return this._months}set months(t){if(t.length!==12)throw new RangeError(`There must be 12 months for ${this.language} language`);this._months=t}get monthsAbbr(){return this._monthsAbbr}set monthsAbbr(t){if(t.length!==12)throw new RangeError(`There must be 12 abbreviated months for ${this.language} language`);this._monthsAbbr=t}get days(){return this._days}set days(t){if(t.length!==7)throw new RangeError(`There must be 7 days for ${this.language} language`);this._days=t}}const i=new h("English",["date.picker.month.short.january","date.picker.month.short.february","date.picker.month.short.march","date.picker.month.short.april","date.picker.month.short.may","date.picker.month.short.june","date.picker.month.short.july","date.picker.month.short.august","date.picker.month.short.september","date.picker.month.short.october","date.picker.month.short.november","date.picker.month.short.december"],["date.picker.month.short.january","date.picker.month.short.february","date.picker.month.short.march","date.picker.month.short.april","date.picker.month.short.may","date.picker.month.short.june","date.picker.month.short.july","date.picker.month.short.august","date.picker.month.short.september","date.picker.month.short.october","date.picker.month.short.november","date.picker.month.short.december"],["date.picker.day.short.sunday","date.picker.day.short.monday","date.picker.day.short.tuesday","date.picker.day.short.wednesday","date.picker.day.short.thursday","date.picker.day.short.friday","date.picker.day.short.saturday"]),g={isValidDate(e){return Object.prototype.toString.call(e)!=="[object Date]"?!1:!isNaN(e.getTime())},getDayNameAbbr(e,t){if(typeof e!="object")throw new TypeError("Invalid Type");return t[e.getDay()]},getMonthName(e,t){if(!t)throw new Error("missing 2nd parameter Months array");if(typeof e=="object")return t[e.getMonth()];if(typeof e=="number")return t[e];throw new TypeError("Invalid type")},getMonthNameAbbr(e,t){if(!t)throw new Error("missing 2nd paramter Months array");if(typeof e=="object")return t[e.getMonth()];if(typeof e=="number")return t[e];throw new TypeError("Invalid type")},daysInMonth(e,t){return/8|3|5|10/.test(t.toString())?30:t===1?!(e%4)&&e%100||!(e%400)?29:28:31},getNthSuffix(e){switch(e){case 1:case 21:case 31:return"st";case 2:case 22:return"nd";case 3:case 23:return"rd";default:return"th"}},formatDate(e,t,r){r=r||i;const a=e.getFullYear(),s=e.getMonth()+1,o=e.getDate();return t.replace(/dd/,("0"+o).slice(-2)).replace(/d/,o.toString()).replace(/yyyy/,a.toString()).replace(/yy/,String(a).slice(2)).replace(/MMMM/,this.getMonthName(e.getMonth(),r.months)).replace(/MMM/,this.getMonthNameAbbr(e.getMonth(),r.monthsAbbr)).replace(/MM/,("0"+s).slice(-2)).replace(/M(?!a|ä|e)/,s.toString()).replace(/su/,this.getNthSuffix(e.getDate())).replace(/D(?!e|é|i)/,this.getDayNameAbbr(e,r.days))},createDateArray(e,t){const r=[];for(;e<=t;)r.push(new Date(e)),e=new Date(e).setDate(new Date(e).getDate()+1);return r},async loadDayJSLocale(e){const t=["de"],r=["en","en-au","en-gb"];return e.startsWith("de")?t.includes(e)||(e="de"):e.startsWith("en")&&r.includes(e)||(e="en"),e==="de"?n.locale("de"):e==="en-au"?n.locale("en-au"):e==="en-gb"?n.locale("en-gb"):n.locale("en"),e}};export{g as D,h as L,i as e}; 2//# sourceMappingURL=DEBozr8s.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.