UNPKG

date-fns

Version:

Modern JavaScript date utility library

4 lines 114 kB
(()=>{function jK(B,G){var K=typeof Symbol<"u"&&B[Symbol.iterator]||B["@@iterator"];if(!K){if(Array.isArray(B)||(K=pB(B))||G&&B&&typeof B.length=="number"){K&&(B=K);var X=0,U=function(){};return{s:U,n:function(){return X>=B.length?{done:!0}:{done:!1,value:B[X++]}},e:function(q){throw q},f:U}}throw TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Z,Q=!0,J=!1;return{s:function(){K=K.call(B)},n:function(){var q=K.next();return Q=q.done,q},e:function(q){J=!0,Z=q},f:function(){try{Q||K.return==null||K.return()}finally{if(J)throw Z}}}}function W(B,G,K){return G=_B(G),u0(B,QK()?Reflect.construct(G,K||[],_B(B).constructor):G.apply(B,K))}function u0(B,G){if(G&&(n(G)=="object"||typeof G=="function"))return G;if(G!==void 0)throw TypeError("Derived constructors may only return object or undefined");return _0(B)}function _0(B){if(B===void 0)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return B}function QK(){try{var B=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(G){}return(QK=function(){return!!B})()}function _B(B){return _B=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(G){return G.__proto__||Object.getPrototypeOf(G)},_B(B)}function z(B,G){if(typeof G!="function"&&G!==null)throw TypeError("Super expression must either be null or a function");B.prototype=Object.create(G&&G.prototype,{constructor:{value:B,writable:!0,configurable:!0}}),Object.defineProperty(B,"prototype",{writable:!1}),G&&FG(B,G)}function FG(B,G){return FG=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(K,X){return K.__proto__=X,K},FG(B,G)}function Y(B,G){if(!(B instanceof G))throw TypeError("Cannot call a class as a function")}function JK(B,G){for(var K=0;K<G.length;K++){var X=G[K];X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X&&(X.writable=!0),Object.defineProperty(B,VK(X.key),X)}}function T(B,G,K){return G&&JK(B.prototype,G),K&&JK(B,K),Object.defineProperty(B,"prototype",{writable:!1}),B}function l0(B){return qK(B)||AK(B)||pB(B)||HK()}function P(B,G){return qK(B)||p0(B,G)||pB(B,G)||HK()}function HK(){throw TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function p0(B,G){var K=B==null?null:typeof Symbol<"u"&&B[Symbol.iterator]||B["@@iterator"];if(K!=null){var X,U,Z,Q,J=[],H=!0,q=!1;try{if(Z=(K=K.call(B)).next,G===0){if(Object(K)!==K)return;H=!1}else for(;!(H=(X=Z.call(K)).done)&&(J.push(X.value),J.length!==G);H=!0);}catch(N){q=!0,U=N}finally{try{if(!H&&K.return!=null&&(Q=K.return(),Object(Q)!==Q))return}finally{if(q)throw U}}return J}}function qK(B){if(Array.isArray(B))return B}function NK(B,G){var K=Object.keys(B);if(Object.getOwnPropertySymbols){var X=Object.getOwnPropertySymbols(B);G&&(X=X.filter(function(U){return Object.getOwnPropertyDescriptor(B,U).enumerable})),K.push.apply(K,X)}return K}function i(B){for(var G=1;G<arguments.length;G++){var K=arguments[G]!=null?arguments[G]:{};G%2?NK(Object(K),!0).forEach(function(X){E(B,X,K[X])}):Object.getOwnPropertyDescriptors?Object.defineProperties(B,Object.getOwnPropertyDescriptors(K)):NK(Object(K)).forEach(function(X){Object.defineProperty(B,X,Object.getOwnPropertyDescriptor(K,X))})}return B}function E(B,G,K){return(G=VK(G))in B?Object.defineProperty(B,G,{value:K,enumerable:!0,configurable:!0,writable:!0}):B[G]=K,B}function VK(B){var G=d0(B,"string");return n(G)=="symbol"?G:G+""}function d0(B,G){if(n(B)!="object"||!B)return B;var K=B[Symbol.toPrimitive];if(K!==void 0){var X=K.call(B,G||"default");if(n(X)!="object")return X;throw TypeError("@@toPrimitive must return a primitive value.")}return(G==="string"?String:Number)(B)}function lB(B){return s0(B)||AK(B)||pB(B)||r0()}function r0(){throw TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pB(B,G){if(B){if(typeof B=="string")return EG(B,G);var K={}.toString.call(B).slice(8,-1);return K==="Object"&&B.constructor&&(K=B.constructor.name),K==="Map"||K==="Set"?Array.from(B):K==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(K)?EG(B,G):void 0}}function AK(B){if(typeof Symbol<"u"&&B[Symbol.iterator]!=null||B["@@iterator"]!=null)return Array.from(B)}function s0(B){if(Array.isArray(B))return EG(B)}function EG(B,G){(G==null||G>B.length)&&(G=B.length);for(var K=0,X=Array(G);K<G;K++)X[K]=B[K];return X}function n(B){return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(G){return typeof G}:function(G){return G&&typeof Symbol=="function"&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G},n(B)}var i0=Object.defineProperty,n0=function(G){return G};function a0(B,G){this[B]=n0.bind(null,G)}var o0=function(G,K){for(var X in K)i0(G,X,{get:K[X],enumerable:!0,configurable:!0,set:a0.bind(K,X)})},FK={};o0(FK,{yearsToQuarters:function(){return QF},yearsToMonths:function(){return ZF},yearsToDays:function(){return XF},weeksToDays:function(){return GF},transpose:function(){return tA},toDate:function(){return eA},subYearsWithOptions:function(){return oA},subYears:function(){return aA},subWithOptions:function(){return nA},subWeeksWithOptions:function(){return iA},subWeeks:function(){return sA},subSecondsWithOptions:function(){return rA},subSeconds:function(){return dA},subQuartersWithOptions:function(){return pA},subQuarters:function(){return lA},subMonthsWithOptions:function(){return _A},subMonths:function(){return uA},subMinutesWithOptions:function(){return cA},subMinutes:function(){return fA},subMillisecondsWithOptions:function(){return mA},subMilliseconds:function(){return gA},subISOWeekYearsWithOptions:function(){return kA},subISOWeekYears:function(){return hA},subHoursWithOptions:function(){return yA},subHours:function(){return SA},subDaysWithOptions:function(){return DA},subDays:function(){return vA},subBusinessDaysWithOptions:function(){return OA},subBusinessDays:function(){return $A},sub:function(){return PA},startOfYearWithOptions:function(){return zA},startOfYear:function(){return WA},startOfWeekYearWithOptions:function(){return bA},startOfWeekYear:function(){return TA},startOfWeekWithOptions:function(){return YA},startOfWeek:function(){return MA},startOfSecondWithOptions:function(){return wA},startOfSecond:function(){return LA},startOfQuarterWithOptions:function(){return CA},startOfQuarter:function(){return IA},startOfMonthWithOptions:function(){return RA},startOfMonth:function(){return xA},startOfMinuteWithOptions:function(){return EA},startOfMinute:function(){return FA},startOfISOWeekYearWithOptions:function(){return AA},startOfISOWeekYear:function(){return VA},startOfISOWeekWithOptions:function(){return NA},startOfISOWeek:function(){return qA},startOfHourWithOptions:function(){return HA},startOfHour:function(){return JA},startOfDecadeWithOptions:function(){return QA},startOfDecade:function(){return jA},startOfDayWithOptions:function(){return ZA},startOfDay:function(){return UA},setYearWithOptions:function(){return XA},setYear:function(){return KA},setWithOptions:function(){return GA},setWeekYearWithOptions:function(){return BA},setWeekYear:function(){return tV},setWeekWithOptions:function(){return eV},setWeek:function(){return oV},setSecondsWithOptions:function(){return aV},setSeconds:function(){return nV},setQuarterWithOptions:function(){return iV},setQuarter:function(){return sV},setMonthWithOptions:function(){return rV},setMonth:function(){return dV},setMinutesWithOptions:function(){return pV},setMinutes:function(){return lV},setMillisecondsWithOptions:function(){return _V},setMilliseconds:function(){return uV},setISOWeekYearWithOptions:function(){return cV},setISOWeekYear:function(){return fV},setISOWeekWithOptions:function(){return mV},setISOWeek:function(){return gV},setISODayWithOptions:function(){return kV},setISODay:function(){return hV},setHoursWithOptions:function(){return yV},setHours:function(){return SV},setDayWithOptions:function(){return DV},setDayOfYearWithOptions:function(){return vV},setDayOfYear:function(){return OV},setDay:function(){return $V},setDateWithOptions:function(){return PV},setDate:function(){return zV},set:function(){return WV},secondsToMinutes:function(){return bV},secondsToMilliseconds:function(){return YV},secondsToHours:function(){return wV},roundToNearestMinutesWithOptions:function(){return CV},roundToNearestMinutes:function(){return IV},roundToNearestHoursWithOptions:function(){return RV},roundToNearestHours:function(){return xV},quartersToYears:function(){return EV},quartersToMonths:function(){return AV},previousWednesdayWithOptions:function(){return NV},previousWednesday:function(){return qV},previousTuesdayWithOptions:function(){return HV},previousTuesday:function(){return JV},previousThursdayWithOptions:function(){return QV},previousThursday:function(){return jV},previousSundayWithOptions:function(){return ZV},previousSunday:function(){return UV},previousSaturdayWithOptions:function(){return XV},previousSaturday:function(){return KV},previousMondayWithOptions:function(){return GV},previousMonday:function(){return BV},previousFridayWithOptions:function(){return tN},previousFriday:function(){return eN},previousDayWithOptions:function(){return oN},previousDay:function(){return aN},parseWithOptions:function(){return nN},parseJSONWithOptions:function(){return iN},parseJSON:function(){return sN},parseISOWithOptions:function(){return rN},parseISO:function(){return dN},parse:function(){return $N},nextWednesdayWithOptions:function(){return PN},nextWednesday:function(){return zN},nextTuesdayWithOptions:function(){return WN},nextTuesday:function(){return bN},nextThursdayWithOptions:function(){return TN},nextThursday:function(){return YN},nextSundayWithOptions:function(){return MN},nextSunday:function(){return wN},nextSaturdayWithOptions:function(){return LN},nextSaturday:function(){return CN},nextMondayWithOptions:function(){return IN},nextMonday:function(){return RN},nextFridayWithOptions:function(){return xN},nextFriday:function(){return EN},nextDayWithOptions:function(){return FN},nextDay:function(){return AN},monthsToYears:function(){return VN},monthsToQuarters:function(){return qN},minutesToSeconds:function(){return JN},minutesToMilliseconds:function(){return jN},minutesToHours:function(){return UN},minWithOptions:function(){return KN},min:function(){return GN},millisecondsToSeconds:function(){return BN},millisecondsToMinutes:function(){return eq},millisecondsToHours:function(){return aq},milliseconds:function(){return iq},maxWithOptions:function(){return rq},max:function(){return dq},lightFormat:function(){return pq},lastDayOfYearWithOptions:function(){return gq},lastDayOfYear:function(){return kq},lastDayOfWeekWithOptions:function(){return hq},lastDayOfWeek:function(){return yq},lastDayOfQuarterWithOptions:function(){return Sq},lastDayOfQuarter:function(){return Dq},lastDayOfMonthWithOptions:function(){return vq},lastDayOfMonth:function(){return Oq},lastDayOfISOWeekYearWithOptions:function(){return $q},lastDayOfISOWeekYear:function(){return Pq},lastDayOfISOWeekWithOptions:function(){return zq},lastDayOfISOWeek:function(){return Wq},lastDayOfDecadeWithOptions:function(){return bq},lastDayOfDecade:function(){return Tq},isWithinIntervalWithOptions:function(){return Yq},isWithinInterval:function(){return Mq},isWeekendWithOptions:function(){return wq},isWeekend:function(){return Lq},isWednesdayWithOptions:function(){return Cq},isWednesday:function(){return Iq},isValid:function(){return Rq},isTuesdayWithOptions:function(){return xq},isTuesday:function(){return Eq},isThursdayWithOptions:function(){return Fq},isThursday:function(){return Aq},isSundayWithOptions:function(){return Vq},isSunday:function(){return Nq},isSaturdayWithOptions:function(){return qq},isSaturday:function(){return Hq},isSameYearWithOptions:function(){return Jq},isSameYear:function(){return Qq},isSameWeekWithOptions:function(){return jq},isSameWeek:function(){return Zq},isSameSecond:function(){return Uq},isSameQuarterWithOptions:function(){return Kq},isSameQuarter:function(){return Gq},isSameMonthWithOptions:function(){return Bq},isSameMonth:function(){return tH},isSameMinute:function(){return eH},isSameISOWeekYearWithOptions:function(){return aH},isSameISOWeekYear:function(){return nH},isSameISOWeekWithOptions:function(){return iH},isSameISOWeek:function(){return sH},isSameHourWithOptions:function(){return rH},isSameHour:function(){return dH},isSameDayWithOptions:function(){return pH},isSameDay:function(){return lH},isMondayWithOptions:function(){return _H},isMonday:function(){return uH},isMatchWithOptions:function(){return cH},isMatch:function(){return fH},isLeapYearWithOptions:function(){return rJ},isLeapYear:function(){return dJ},isLastDayOfMonthWithOptions:function(){return pJ},isLastDayOfMonth:function(){return lJ},isFridayWithOptions:function(){return _J},isFriday:function(){return uJ},isFirstDayOfMonthWithOptions:function(){return cJ},isFirstDayOfMonth:function(){return fJ},isExists:function(){return mJ},isEqual:function(){return kJ},isDate:function(){return yJ},isBefore:function(){return SJ},isAfter:function(){return vJ},intlFormatDistanceWithOptions:function(){return $J},intlFormatDistance:function(){return PJ},intlFormat:function(){return zJ},intervalWithOptions:function(){return TJ},intervalToDurationWithOptions:function(){return YJ},intervalToDuration:function(){return MJ},interval:function(){return wJ},hoursToSeconds:function(){return LJ},hoursToMinutes:function(){return IJ},hoursToMilliseconds:function(){return xJ},getYearWithOptions:function(){return FJ},getYear:function(){return AJ},getWeeksInMonthWithOptions:function(){return VJ},getWeeksInMonth:function(){return NJ},getWeekYearWithOptions:function(){return qJ},getWeekYear:function(){return HJ},getWeekWithOptions:function(){return JJ},getWeekOfMonthWithOptions:function(){return QJ},getWeekOfMonth:function(){return jJ},getWeek:function(){return ZJ},getUnixTime:function(){return UJ},getTime:function(){return KJ},getSeconds:function(){return BJ},getQuarterWithOptions:function(){return eQ},getQuarter:function(){return oQ},getOverlappingDaysInIntervals:function(){return aQ},getMonthWithOptions:function(){return iQ},getMonth:function(){return sQ},getMinutesWithOptions:function(){return rQ},getMinutes:function(){return dQ},getMilliseconds:function(){return pQ},getISOWeeksInYearWithOptions:function(){return _Q},getISOWeeksInYear:function(){return uQ},getISOWeekYearWithOptions:function(){return cQ},getISOWeekYear:function(){return fQ},getISOWeekWithOptions:function(){return mQ},getISOWeek:function(){return gQ},getISODayWithOptions:function(){return kQ},getISODay:function(){return hQ},getHoursWithOptions:function(){return yQ},getHours:function(){return SQ},getDecadeWithOptions:function(){return DQ},getDecade:function(){return vQ},getDaysInYearWithOptions:function(){return OQ},getDaysInYear:function(){return $Q},getDaysInMonthWithOptions:function(){return PQ},getDaysInMonth:function(){return zQ},getDayWithOptions:function(){return WQ},getDayOfYearWithOptions:function(){return bQ},getDayOfYear:function(){return TQ},getDay:function(){return YQ},getDateWithOptions:function(){return MQ},getDate:function(){return wQ},fromUnixTimeWithOptions:function(){return LQ},fromUnixTime:function(){return CQ},formatWithOptions:function(){return IQ},formatRelativeWithOptions:function(){return RQ},formatRelative:function(){return xQ},formatRFC7231:function(){return EQ},formatRFC3339WithOptions:function(){return NQ},formatRFC3339:function(){return qQ},formatISOWithOptions:function(){return HQ},formatISODuration:function(){return JQ},formatISO9075WithOptions:function(){return jQ},formatISO9075:function(){return ZQ},formatISO:function(){return UQ},formatDurationWithOptions:function(){return XQ},formatDuration:function(){return KQ},formatDistanceWithOptions:function(){return BQ},formatDistanceStrictWithOptions:function(){return tj},formatDistanceStrict:function(){return ej},formatDistance:function(){return oj},format:function(){return aj},endOfYearWithOptions:function(){return jj},endOfYear:function(){return Zj},endOfWeekWithOptions:function(){return Uj},endOfWeek:function(){return Xj},endOfSecondWithOptions:function(){return Kj},endOfSecond:function(){return Gj},endOfQuarterWithOptions:function(){return Bj},endOfQuarter:function(){return tZ},endOfMonthWithOptions:function(){return eZ},endOfMonth:function(){return oZ},endOfMinuteWithOptions:function(){return aZ},endOfMinute:function(){return nZ},endOfISOWeekYearWithOptions:function(){return iZ},endOfISOWeekYear:function(){return sZ},endOfISOWeekWithOptions:function(){return rZ},endOfISOWeek:function(){return dZ},endOfHourWithOptions:function(){return pZ},endOfHour:function(){return lZ},endOfDecadeWithOptions:function(){return _Z},endOfDecade:function(){return uZ},endOfDayWithOptions:function(){return cZ},endOfDay:function(){return fZ},eachYearOfIntervalWithOptions:function(){return mZ},eachYearOfInterval:function(){return gZ},eachWeekendOfYearWithOptions:function(){return kZ},eachWeekendOfYear:function(){return hZ},eachWeekendOfMonthWithOptions:function(){return yZ},eachWeekendOfMonth:function(){return SZ},eachWeekendOfIntervalWithOptions:function(){return DZ},eachWeekendOfInterval:function(){return vZ},eachWeekOfIntervalWithOptions:function(){return OZ},eachWeekOfInterval:function(){return $Z},eachQuarterOfIntervalWithOptions:function(){return PZ},eachQuarterOfInterval:function(){return zZ},eachMonthOfIntervalWithOptions:function(){return WZ},eachMonthOfInterval:function(){return bZ},eachMinuteOfIntervalWithOptions:function(){return TZ},eachMinuteOfInterval:function(){return YZ},eachHourOfIntervalWithOptions:function(){return MZ},eachHourOfInterval:function(){return wZ},eachDayOfIntervalWithOptions:function(){return LZ},eachDayOfInterval:function(){return CZ},differenceInYearsWithOptions:function(){return IZ},differenceInYears:function(){return RZ},differenceInWeeksWithOptions:function(){return xZ},differenceInWeeks:function(){return EZ},differenceInSecondsWithOptions:function(){return FZ},differenceInSeconds:function(){return AZ},differenceInQuartersWithOptions:function(){return VZ},differenceInQuarters:function(){return NZ},differenceInMonthsWithOptions:function(){return qZ},differenceInMonths:function(){return HZ},differenceInMinutesWithOptions:function(){return JZ},differenceInMinutes:function(){return QZ},differenceInMilliseconds:function(){return jZ},differenceInISOWeekYearsWithOptions:function(){return ZZ},differenceInISOWeekYears:function(){return UZ},differenceInHoursWithOptions:function(){return XZ},differenceInHours:function(){return KZ},differenceInDaysWithOptions:function(){return GZ},differenceInDays:function(){return BZ},differenceInCalendarYearsWithOptions:function(){return tU},differenceInCalendarYears:function(){return eU},differenceInCalendarWeeksWithOptions:function(){return oU},differenceInCalendarWeeks:function(){return aU},differenceInCalendarQuartersWithOptions:function(){return nU},differenceInCalendarQuarters:function(){return iU},differenceInCalendarMonthsWithOptions:function(){return sU},differenceInCalendarMonths:function(){return rU},differenceInCalendarISOWeeksWithOptions:function(){return dU},differenceInCalendarISOWeeks:function(){return pU},differenceInCalendarISOWeekYearsWithOptions:function(){return lU},differenceInCalendarISOWeekYears:function(){return _U},differenceInCalendarDaysWithOptions:function(){return uU},differenceInCalendarDays:function(){return cU},differenceInBusinessDaysWithOptions:function(){return fU},differenceInBusinessDays:function(){return mU},daysToWeeks:function(){return gU},constructFrom:function(){return hU},compareDesc:function(){return yU},compareAsc:function(){return DU},closestToWithOptions:function(){return vU},closestTo:function(){return OU},closestIndexTo:function(){return $U},clampWithOptions:function(){return PU},clamp:function(){return zU},areIntervalsOverlappingWithOptions:function(){return WU},areIntervalsOverlapping:function(){return bU},addYearsWithOptions:function(){return TU},addYears:function(){return YU},addWithOptions:function(){return MU},addWeeksWithOptions:function(){return wU},addWeeks:function(){return LU},addSecondsWithOptions:function(){return CU},addSeconds:function(){return IU},addQuartersWithOptions:function(){return RU},addQuarters:function(){return xU},addMonthsWithOptions:function(){return EU},addMonths:function(){return FU},addMinutesWithOptions:function(){return AU},addMinutes:function(){return VU},addMillisecondsWithOptions:function(){return NU},addMilliseconds:function(){return qU},addISOWeekYearsWithOptions:function(){return HU},addISOWeekYears:function(){return JU},addHoursWithOptions:function(){return QU},addHours:function(){return jU},addDaysWithOptions:function(){return ZU},addDays:function(){return UU},addBusinessDaysWithOptions:function(){return XU},addBusinessDays:function(){return KU},add:function(){return GU}});var EK=7,dB=365.2425,e0=Math.pow(10,8)*24*60*60*1000,qF=-e0,bB=604800000,xK=86400000,GB=60000,AB=3600000,xG=1000,RK=525600,IB=43200,rB=1440,IK=60,CK=3,LK=12,wK=4,sB=3600,RG=60,IG=sB*24,t0=IG*7,MK=IG*dB,YK=MK/12,BU=YK*3,TK=Symbol.for("constructDateFrom");function L(B,G){if(typeof B==="function")return B(G);if(B&&n(B)==="object"&&TK in B)return B[TK](G);if(B instanceof Date)return new B.constructor(G);return new Date(G)}function V(B,G){return L(G||B,B)}function o(B,G,K){var X=V(B,K===null||K===void 0?void 0:K.in);if(isNaN(G))return L((K===null||K===void 0?void 0:K.in)||B,NaN);if(!G)return X;return X.setDate(X.getDate()+G),X}function CB(B,G,K){var X=V(B,K===null||K===void 0?void 0:K.in);if(isNaN(G))return L((K===null||K===void 0?void 0:K.in)||B,NaN);if(!G)return X;var U=X.getDate(),Z=L((K===null||K===void 0?void 0:K.in)||B,X.getTime());Z.setMonth(X.getMonth()+G+1,0);var Q=Z.getDate();if(U>=Q)return Z;else return X.setFullYear(Z.getFullYear(),Z.getMonth(),U),X}function FB(B,G,K){var X=G.years,U=X===void 0?0:X,Z=G.months,Q=Z===void 0?0:Z,J=G.weeks,H=J===void 0?0:J,q=G.days,N=q===void 0?0:q,A=G.hours,F=A===void 0?0:A,C=G.minutes,I=C===void 0?0:C,w=G.seconds,x=w===void 0?0:w,b=V(B,K===null||K===void 0?void 0:K.in),M=Q||U?CB(b,Q+U*12):b,O=N||H?o(M,N+H*7):M,D=I+F*60,_=x+D*60,l=_*1000;return L((K===null||K===void 0?void 0:K.in)||B,+O+l)}function j(B,G){var K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return K.length>=G?B.apply(void 0,lB(K.slice(0,G).reverse())):function(){for(var X=arguments.length,U=Array(X),Z=0;Z<X;Z++)U[Z]=arguments[Z];return j(B,G,K.concat(U))}}var GU=j(FB,2);function CG(B,G){return V(B,G===null||G===void 0?void 0:G.in).getDay()===6}function LG(B,G){return V(B,G===null||G===void 0?void 0:G.in).getDay()===0}function EB(B,G){var K=V(B,G===null||G===void 0?void 0:G.in).getDay();return K===0||K===6}function wG(B,G,K){var X=V(B,K===null||K===void 0?void 0:K.in),U=EB(X,K);if(isNaN(G))return L(K===null||K===void 0?void 0:K.in,NaN);var Z=X.getHours(),Q=G<0?-1:1,J=Math.trunc(G/5);X.setDate(X.getDate()+J*7);var H=Math.abs(G%5);while(H>0)if(X.setDate(X.getDate()+Q),!EB(X,K))H-=1;if(U&&EB(X,K)&&G!==0){if(CG(X,K))X.setDate(X.getDate()+(Q<0?2:-1));if(LG(X,K))X.setDate(X.getDate()+(Q<0?1:-2))}return X.setHours(Z),X}var KU=j(wG,2),XU=j(wG,3),UU=j(o,2),ZU=j(o,3);function WB(B,G,K){return L((K===null||K===void 0?void 0:K.in)||B,+V(B)+G)}function MG(B,G,K){return WB(B,G*AB,K)}var jU=j(MG,2),QU=j(MG,3),bK={};function p(){return bK}function NF(B){bK=B}function u(B,G){var K,X,U,Z,Q,J,H=p(),q=(K=(X=(U=(Z=G===null||G===void 0?void 0:G.weekStartsOn)!==null&&Z!==void 0?Z:G===null||G===void 0||(Q=G.locale)===null||Q===void 0||(Q=Q.options)===null||Q===void 0?void 0:Q.weekStartsOn)!==null&&U!==void 0?U:H.weekStartsOn)!==null&&X!==void 0?X:(J=H.locale)===null||J===void 0||(J=J.options)===null||J===void 0?void 0:J.weekStartsOn)!==null&&K!==void 0?K:0,N=V(B,G===null||G===void 0?void 0:G.in),A=N.getDay(),F=(A<q?7:0)+A-q;return N.setDate(N.getDate()-F),N.setHours(0,0,0,0),N}function r(B,G){return u(B,i(i({},G),{},{weekStartsOn:1}))}function KB(B,G){var K=V(B,G===null||G===void 0?void 0:G.in),X=K.getFullYear(),U=L(K,0);U.setFullYear(X+1,0,4),U.setHours(0,0,0,0);var Z=r(U),Q=L(K,0);Q.setFullYear(X,0,4),Q.setHours(0,0,0,0);var J=r(Q);if(K.getTime()>=Z.getTime())return X+1;else if(K.getTime()>=J.getTime())return X;else return X-1}function d(B){var G=V(B),K=new Date(Date.UTC(G.getFullYear(),G.getMonth(),G.getDate(),G.getHours(),G.getMinutes(),G.getSeconds(),G.getMilliseconds()));return K.setUTCFullYear(G.getFullYear()),+B-+K}function v(B){for(var G=arguments.length,K=Array(G>1?G-1:0),X=1;X<G;X++)K[X-1]=arguments[X];var U=L.bind(null,B||K.find(function(Z){return n(Z)==="object"}));return K.map(U)}function LB(B,G){var K=V(B,G===null||G===void 0?void 0:G.in);return K.setHours(0,0,0,0),K}function a(B,G,K){var X=v(K===null||K===void 0?void 0:K.in,B,G),U=P(X,2),Z=U[0],Q=U[1],J=LB(Z),H=LB(Q),q=+J-d(J),N=+H-d(H);return Math.round((q-N)/xK)}function XB(B,G){var K=KB(B,G),X=L((G===null||G===void 0?void 0:G.in)||B,0);return X.setFullYear(K,0,4),X.setHours(0,0,0,0),r(X)}function YG(B,G,K){var X=V(B,K===null||K===void 0?void 0:K.in),U=a(X,XB(X,K)),Z=L((K===null||K===void 0?void 0:K.in)||B,0);return Z.setFullYear(G,0,4),Z.setHours(0,0,0,0),X=XB(Z),X.setDate(X.getDate()+U),X}function TG(B,G,K){return YG(B,KB(B,K)+G,K)}var JU=j(TG,2),HU=j(TG,3),qU=j(WB,2),NU=j(WB,3);function iB(B,G,K){var X=V(B,K===null||K===void 0?void 0:K.in);return X.setTime(X.getTime()+G*GB),X}var VU=j(iB,2),AU=j(iB,3),FU=j(CB,2),EU=j(CB,3);function nB(B,G,K){return CB(B,G*3,K)}var xU=j(nB,2),RU=j(nB,3);function bG(B,G,K){return WB(B,G*1000,K)}var IU=j(bG,2),CU=j(bG,3);function zB(B,G,K){return o(B,G*7,K)}var LU=j(zB,2),wU=j(zB,3),MU=j(FB,3);function WG(B,G,K){return CB(B,G*12,K)}var YU=j(WG,2),TU=j(WG,3);function WK(B,G,K){var X=[+V(B.start,K===null||K===void 0?void 0:K.in),+V(B.end,K===null||K===void 0?void 0:K.in)].sort(function(A,F){return A-F}),U=P(X,2),Z=U[0],Q=U[1],J=[+V(G.start,K===null||K===void 0?void 0:K.in),+V(G.end,K===null||K===void 0?void 0:K.in)].sort(function(A,F){return A-F}),H=P(J,2),q=H[0],N=H[1];if(K!==null&&K!==void 0&&K.inclusive)return Z<=N&&q<=Q;return Z<N&&q<Q}var bU=j(WK,2),WU=j(WK,3);function zG(B,G){var K,X=G===null||G===void 0?void 0:G.in;return B.forEach(function(U){if(!X&&n(U)==="object")X=L.bind(null,U);var Z=V(U,X);if(!K||K<Z||isNaN(+Z))K=Z}),L(X,K||NaN)}function PG(B,G){var K,X=G===null||G===void 0?void 0:G.in;return B.forEach(function(U){if(!X&&n(U)==="object")X=L.bind(null,U);var Z=V(U,X);if(!K||K>Z||isNaN(+Z))K=Z}),L(X,K||NaN)}function zK(B,G,K){var X=v(K===null||K===void 0?void 0:K.in,B,G.start,G.end),U=P(X,3),Z=U[0],Q=U[1],J=U[2];return PG([zG([Z,Q],K),J],K)}var zU=j(zK,2),PU=j(zK,3);function PK(B,G){var K=+V(B);if(isNaN(K))return NaN;var X,U;return G.forEach(function(Z,Q){var J=V(Z);if(isNaN(+J)){X=NaN,U=NaN;return}var H=Math.abs(K-+J);if(X==null||H<U)X=Q,U=H}),X}var $U=j(PK,2);function $K(B,G,K){var X=v.apply(void 0,[K===null||K===void 0?void 0:K.in,B].concat(lB(G))),U=l0(X),Z=U[0],Q=U.slice(1),J=PK(Z,Q);if(typeof J==="number"&&isNaN(J))return L(Z,NaN);if(J!==void 0)return Q[J]}var OU=j($K,2),vU=j($K,3);function e(B,G){var K=+V(B)-+V(G);if(K<0)return-1;else if(K>0)return 1;return K}var DU=j(e,2);function SU(B,G){var K=+V(B)-+V(G);if(K>0)return-1;else if(K<0)return 1;return K}var yU=j(SU,2),hU=j(L,2);function kU(B){var G=Math.trunc(B/EK);return G===0?0:G}var gU=j(kU,1);function $G(B,G,K){var X=v(K===null||K===void 0?void 0:K.in,B,G),U=P(X,2),Z=U[0],Q=U[1];return+LB(Z)===+LB(Q)}function OK(B){return B instanceof Date||n(B)==="object"&&Object.prototype.toString.call(B)==="[object Date]"}function UB(B){return!(!OK(B)&&typeof B!=="number"||isNaN(+V(B)))}function vK(B,G,K){var X=v(K===null||K===void 0?void 0:K.in,B,G),U=P(X,2),Z=U[0],Q=U[1];if(!UB(Z)||!UB(Q))return NaN;var J=a(Z,Q),H=J<0?-1:1,q=Math.trunc(J/7),N=q*5,A=o(Q,q*7);while(!$G(Z,A))N+=EB(A,K)?0:H,A=o(A,H);return N===0?0:N}var mU=j(vK,2),fU=j(vK,3),cU=j(a,2),uU=j(a,3);function OG(B,G,K){var X=v(K===null||K===void 0?void 0:K.in,B,G),U=P(X,2),Z=U[0],Q=U[1];return KB(Z,K)-KB(Q,K)}var _U=j(OG,2),lU=j(OG,3);function DK(B,G,K){var X=v(K===null||K===void 0?void 0:K.in,B,G),U=P(X,2),Z=U[0],Q=U[1],J=r(Z),H=r(Q),q=+J-d(J),N=+H-d(H);return Math.round((q-N)/bB)}var pU=j(DK,2),dU=j(DK,3);function PB(B,G,K){var X=v(K===null||K===void 0?void 0:K.in,B,G),U=P(X,2),Z=U[0],Q=U[1],J=Z.getFullYear()-Q.getFullYear(),H=Z.getMonth()-Q.getMonth();return J*12+H}var rU=j(PB,2),sU=j(PB,3);function aB(B,G){var K=V(B,G===null||G===void 0?void 0:G.in),X=Math.trunc(K.getMonth()/3)+1;return X}function $B(B,G,K){var X=v(K===null||K===void 0?void 0:K.in,B,G),U=P(X,2),Z=U[0],Q=U[1],J=Z.getFullYear()-Q.getFullYear(),H=aB(Z)-aB(Q);return J*4+H}var iU=j($B,2),nU=j($B,3);function OB(B,G,K){var X=v(K===null||K===void 0?void 0:K.in,B,G),U=P(X,2),Z=U[0],Q=U[1],J=u(Z,K),H=u(Q,K),q=+J-d(J),N=+H-d(H);return Math.round((q-N)/bB)}var aU=j(OB,2),oU=j(OB,3);function wB(B,G,K){var X=v(K===null||K===void 0?void 0:K.in,B,G),U=P(X,2),Z=U[0],Q=U[1];return Z.getFullYear()-Q.getFullYear()}var eU=j(wB,2),tU=j(wB,3);function oB(B,G,K){var X=v(K===null||K===void 0?void 0:K.in,B,G),U=P(X,2),Z=U[0],Q=U[1],J=SK(Z,Q),H=Math.abs(a(Z,Q));Z.setDate(Z.getDate()-J*H);var q=Number(SK(Z,Q)===-J),N=J*(H-q);return N===0?0:N}function SK(B,G){var K=B.getFullYear()-G.getFullYear()||B.getMonth()-G.getMonth()||B.getDate()-G.getDate()||B.getHours()-G.getHours()||B.getMinutes()-G.getMinutes()||B.getSeconds()-G.getSeconds()||B.getMilliseconds()-G.getMilliseconds();if(K<0)return-1;if(K>0)return 1;return K}var BZ=j(oB,2),GZ=j(oB,3);function NB(B){return function(G){var K=B?Math[B]:Math.trunc,X=K(G);return X===0?0:X}}function vB(B,G,K){var X=v(K===null||K===void 0?void 0:K.in,B,G),U=P(X,2),Z=U[0],Q=U[1],J=(+Z-+Q)/AB;return NB(K===null||K===void 0?void 0:K.roundingMethod)(J)}var KZ=j(vB,2),XZ=j(vB,3);function vG(B,G,K){return TG(B,-G,K)}function yK(B,G,K){var X=v(K===null||K===void 0?void 0:K.in,B,G),U=P(X,2),Z=U[0],Q=U[1],J=e(Z,Q),H=Math.abs(OG(Z,Q,K)),q=vG(Z,J*H,K),N=Number(e(q,Q)===-J),A=J*(H-N);return A===0?0:A}var UZ=j(yK,2),ZZ=j(yK,3);function DG(B,G){return+V(B)-+V(G)}var jZ=j(DG,2);function DB(B,G,K){var X=DG(B,G)/GB;return NB(K===null||K===void 0?void 0:K.roundingMethod)(X)}var QZ=j(DB,2),JZ=j(DB,3);function SG(B,G){var K=V(B,G===null||G===void 0?void 0:G.in);return K.setHours(23,59,59,999),K}function eB(B,G){var K=V(B,G===null||G===void 0?void 0:G.in),X=K.getMonth();return K.setFullYear(K.getFullYear(),X+1,0),K.setHours(23,59,59,999),K}function yG(B,G){var K=V(B,G===null||G===void 0?void 0:G.in);return+SG(K,G)===+eB(K,G)}function SB(B,G,K){var X=v(K===null||K===void 0?void 0:K.in,B,B,G),U=P(X,3),Z=U[0],Q=U[1],J=U[2],H=e(Q,J),q=Math.abs(PB(Q,J));if(q<1)return 0;if(Q.getMonth()===1&&Q.getDate()>27)Q.setDate(30);Q.setMonth(Q.getMonth()-H*q);var N=e(Q,J)===-H;if(yG(Z)&&q===1&&e(Z,J)===1)N=!1;var A=H*(q-+N);return A===0?0:A}var HZ=j(SB,2),qZ=j(SB,3);function hK(B,G,K){var X=SB(B,G,K)/3;return NB(K===null||K===void 0?void 0:K.roundingMethod)(X)}var NZ=j(hK,2),VZ=j(hK,3);function xB(B,G,K){var X=DG(B,G)/1000;return NB(K===null||K===void 0?void 0:K.roundingMethod)(X)}var AZ=j(xB,2),FZ=j(xB,3);function kK(B,G,K){var X=oB(B,G,K)/7;return NB(K===null||K===void 0?void 0:K.roundingMethod)(X)}var EZ=j(kK,2),xZ=j(kK,3);function hG(B,G,K){var X=v(K===null||K===void 0?void 0:K.in,B,G),U=P(X,2),Z=U[0],Q=U[1],J=e(Z,Q),H=Math.abs(wB(Z,Q));Z.setFullYear(1584),Q.setFullYear(1584);var q=e(Z,Q)===-J,N=J*(H-+q);return N===0?0:N}var RZ=j(hG,2),IZ=j(hG,3);function ZB(B,G){var K=v(B,G.start,G.end),X=P(K,2),U=X[0],Z=X[1];return{start:U,end:Z}}function kG(B,G){var K,X=ZB(G===null||G===void 0?void 0:G.in,B),U=X.start,Z=X.end,Q=+U>+Z,J=Q?+U:+Z,H=Q?Z:U;H.setHours(0,0,0,0);var q=(K=G===null||G===void 0?void 0:G.step)!==null&&K!==void 0?K:1;if(!q)return[];if(q<0)q=-q,Q=!Q;var N=[];while(+H<=J)N.push(L(U,H)),H.setDate(H.getDate()+q),H.setHours(0,0,0,0);return Q?N.reverse():N}var CZ=j(kG,1),LZ=j(kG,2);function gK(B,G){var K,X=ZB(G===null||G===void 0?void 0:G.in,B),U=X.start,Z=X.end,Q=+U>+Z,J=Q?+U:+Z,H=Q?Z:U;H.setMinutes(0,0,0);var q=(K=G===null||G===void 0?void 0:G.step)!==null&&K!==void 0?K:1;if(!q)return[];if(q<0)q=-q,Q=!Q;var N=[];while(+H<=J)N.push(L(U,H)),H.setHours(H.getHours()+q);return Q?N.reverse():N}var wZ=j(gK,1),MZ=j(gK,2);function mK(B,G){var K,X=ZB(G===null||G===void 0?void 0:G.in,B),U=X.start,Z=X.end;U.setSeconds(0,0);var Q=+U>+Z,J=Q?+U:+Z,H=Q?Z:U,q=(K=G===null||G===void 0?void 0:G.step)!==null&&K!==void 0?K:1;if(!q)return[];if(q<0)q=-q,Q=!Q;var N=[];while(+H<=J)N.push(L(U,H)),H=iB(H,q);return Q?N.reverse():N}var YZ=j(mK,1),TZ=j(mK,2);function fK(B,G){var K,X=ZB(G===null||G===void 0?void 0:G.in,B),U=X.start,Z=X.end,Q=+U>+Z,J=Q?+U:+Z,H=Q?Z:U;H.setHours(0,0,0,0),H.setDate(1);var q=(K=G===null||G===void 0?void 0:G.step)!==null&&K!==void 0?K:1;if(!q)return[];if(q<0)q=-q,Q=!Q;var N=[];while(+H<=J)N.push(L(U,H)),H.setMonth(H.getMonth()+q);return Q?N.reverse():N}var bZ=j(fK,1),WZ=j(fK,2);function VB(B,G){var K=V(B,G===null||G===void 0?void 0:G.in),X=K.getMonth(),U=X-X%3;return K.setMonth(U,1),K.setHours(0,0,0,0),K}function cK(B,G){var K,X=ZB(G===null||G===void 0?void 0:G.in,B),U=X.start,Z=X.end,Q=+U>+Z,J=Q?+VB(U):+VB(Z),H=Q?VB(Z):VB(U),q=(K=G===null||G===void 0?void 0:G.step)!==null&&K!==void 0?K:1;if(!q)return[];if(q<0)q=-q,Q=!Q;var N=[];while(+H<=J)N.push(L(U,H)),H=nB(H,q);return Q?N.reverse():N}var zZ=j(cK,1),PZ=j(cK,2);function uK(B,G){var K,X=ZB(G===null||G===void 0?void 0:G.in,B),U=X.start,Z=X.end,Q=+U>+Z,J=Q?u(Z,G):u(U,G),H=Q?u(U,G):u(Z,G);J.setHours(15),H.setHours(15);var q=+H.getTime(),N=J,A=(K=G===null||G===void 0?void 0:G.step)!==null&&K!==void 0?K:1;if(!A)return[];if(A<0)A=-A,Q=!Q;var F=[];while(+N<=q)N.setHours(0),F.push(L(U,N)),N=zB(N,A),N.setHours(15);return Q?F.reverse():F}var $Z=j(uK,1),OZ=j(uK,2);function tB(B,G){var K=ZB(G===null||G===void 0?void 0:G.in,B),X=K.start,U=K.end,Z=kG({start:X,end:U},G),Q=[],J=0;while(J<Z.length){var H=Z[J++];if(EB(H))Q.push(L(X,H))}return Q}var vZ=j(tB,1),DZ=j(tB,2);function yB(B,G){var K=V(B,G===null||G===void 0?void 0:G.in);return K.setDate(1),K.setHours(0,0,0,0),K}function _K(B,G){var K=yB(B,G),X=eB(B,G);return tB({start:K,end:X},G)}var SZ=j(_K,1),yZ=j(_K,2);function gG(B,G){var K=V(B,G===null||G===void 0?void 0:G.in),X=K.getFullYear();return K.setFullYear(X+1,0,0),K.setHours(23,59,59,999),K}function BG(B,G){var K=V(B,G===null||G===void 0?void 0:G.in);return K.setFullYear(K.getFullYear(),0,1),K.setHours(0,0,0,0),K}function lK(B,G){var K=BG(B,G),X=gG(B,G);return tB({start:K,end:X},G)}var hZ=j(lK,1),kZ=j(lK,2);function pK(B,G){var K,X=ZB(G===null||G===void 0?void 0:G.in,B),U=X.start,Z=X.end,Q=+U>+Z,J=Q?+U:+Z,H=Q?Z:U;H.setHours(0,0,0,0),H.setMonth(0,1);var q=(K=G===null||G===void 0?void 0:G.step)!==null&&K!==void 0?K:1;if(!q)return[];if(q<0)q=-q,Q=!Q;var N=[];while(+H<=J)N.push(L(U,H)),H.setFullYear(H.getFullYear()+q);return Q?N.reverse():N}var gZ=j(pK,1),mZ=j(pK,2),fZ=j(SG,1),cZ=j(SG,2);function dK(B,G){var K=V(B,G===null||G===void 0?void 0:G.in),X=K.getFullYear(),U=9+Math.floor(X/10)*10;return K.setFullYear(U,11,31),K.setHours(23,59,59,999),K}var uZ=j(dK,1),_Z=j(dK,2);function rK(B,G){var K=V(B,G===null||G===void 0?void 0:G.in);return K.setMinutes(59,59,999),K}var lZ=j(rK,1),pZ=j(rK,2);function mG(B,G){var K,X,U,Z,Q,J,H=p(),q=(K=(X=(U=(Z=G===null||G===void 0?void 0:G.weekStartsOn)!==null&&Z!==void 0?Z:G===null||G===void 0||(Q=G.locale)===null||Q===void 0||(Q=Q.options)===null||Q===void 0?void 0:Q.weekStartsOn)!==null&&U!==void 0?U:H.weekStartsOn)!==null&&X!==void 0?X:(J=H.locale)===null||J===void 0||(J=J.options)===null||J===void 0?void 0:J.weekStartsOn)!==null&&K!==void 0?K:0,N=V(B,G===null||G===void 0?void 0:G.in),A=N.getDay(),F=(A<q?-7:0)+6-(A-q);return N.setDate(N.getDate()+F),N.setHours(23,59,59,999),N}function sK(B,G){return mG(B,i(i({},G),{},{weekStartsOn:1}))}var dZ=j(sK,1),rZ=j(sK,2);function iK(B,G){var K=KB(B,G),X=L((G===null||G===void 0?void 0:G.in)||B,0);X.setFullYear(K+1,0,4),X.setHours(0,0,0,0);var U=r(X,G);return U.setMilliseconds(U.getMilliseconds()-1),U}var sZ=j(iK,1),iZ=j(iK,2);function nK(B,G){var K=V(B,G===null||G===void 0?void 0:G.in);return K.setSeconds(59,999),K}var nZ=j(nK,1),aZ=j(nK,2),oZ=j(eB,1),eZ=j(eB,2);function aK(B,G){var K=V(B,G===null||G===void 0?void 0:G.in),X=K.getMonth(),U=X-X%3+3;return K.setMonth(U,0),K.setHours(23,59,59,999),K}var tZ=j(aK,1),Bj=j(aK,2);function oK(B,G){var K=V(B,G===null||G===void 0?void 0:G.in);return K.setMilliseconds(999),K}var Gj=j(oK,1),Kj=j(oK,2),Xj=j(mG,1),Uj=j(mG,2),Zj=j(gG,1),jj=j(gG,2),Qj={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Jj=function(G,K,X){var U,Z=Qj[G];if(typeof Z==="string")U=Z;else if(K===1)U=Z.one;else U=Z.other.replace("{{count}}",K.toString());if(X!==null&&X!==void 0&&X.addSuffix)if(X.comparison&&X.comparison>0)return"in "+U;else return U+" ago";return U};function fG(B){return function(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},K=G.width?String(G.width):B.defaultWidth,X=B.formats[K]||B.formats[B.defaultWidth];return X}}var Hj={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},qj={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Nj={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Vj={date:fG({formats:Hj,defaultWidth:"full"}),time:fG({formats:qj,defaultWidth:"full"}),dateTime:fG({formats:Nj,defaultWidth:"full"})},Aj={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Fj=function(G,K,X,U){return Aj[G]};function hB(B){return function(G,K){var X=K!==null&&K!==void 0&&K.context?String(K.context):"standalone",U;if(X==="formatting"&&B.formattingValues){var Z=B.defaultFormattingWidth||B.defaultWidth,Q=K!==null&&K!==void 0&&K.width?String(K.width):Z;U=B.formattingValues[Q]||B.formattingValues[Z]}else{var J=B.defaultWidth,H=K!==null&&K!==void 0&&K.width?String(K.width):B.defaultWidth;U=B.values[H]||B.values[J]}var q=B.argumentCallback?B.argumentCallback(G):G;return U[q]}}var Ej={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},xj={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Rj={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Ij={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Cj={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Lj={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},wj=function(G,K){var X=Number(G),U=X%100;if(U>20||U<10)switch(U%10){case 1:return X+"st";case 2:return X+"nd";case 3:return X+"rd"}return X+"th"},Mj={ordinalNumber:wj,era:hB({values:Ej,defaultWidth:"wide"}),quarter:hB({values:xj,defaultWidth:"wide",argumentCallback:function(G){return G-1}}),month:hB({values:Rj,defaultWidth:"wide"}),day:hB({values:Ij,defaultWidth:"wide"}),dayPeriod:hB({values:Cj,defaultWidth:"wide",formattingValues:Lj,defaultFormattingWidth:"wide"})};function kB(B){return function(G){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X=K.width,U=X&&B.matchPatterns[X]||B.matchPatterns[B.defaultMatchWidth],Z=G.match(U);if(!Z)return null;var Q=Z[0],J=X&&B.parsePatterns[X]||B.parsePatterns[B.defaultParseWidth],H=Array.isArray(J)?Tj(J,function(A){return A.test(Q)}):Yj(J,function(A){return A.test(Q)}),q;q=B.valueCallback?B.valueCallback(H):H,q=K.valueCallback?K.valueCallback(q):q;var N=G.slice(Q.length);return{value:q,rest:N}}}function Yj(B,G){for(var K in B)if(Object.prototype.hasOwnProperty.call(B,K)&&G(B[K]))return K;return}function Tj(B,G){for(var K=0;K<B.length;K++)if(G(B[K]))return K;return}function bj(B){return function(G){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X=G.match(B.matchPattern);if(!X)return null;var U=X[0],Z=G.match(B.parsePattern);if(!Z)return null;var Q=B.valueCallback?B.valueCallback(Z[0]):Z[0];Q=K.valueCallback?K.valueCallback(Q):Q;var J=G.slice(U.length);return{value:Q,rest:J}}}var Wj=/^(\d+)(th|st|nd|rd)?/i,zj=/\d+/i,Pj={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},$j={any:[/^b/i,/^(a|c)/i]},Oj={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},vj={any:[/1/i,/2/i,/3/i,/4/i]},Dj={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Sj={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},yj={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},hj={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},kj={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},gj={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},mj={ordinalNumber:bj({matchPattern:Wj,parsePattern:zj,valueCallback:function(G){return parseInt(G,10)}}),era:kB({matchPatterns:Pj,defaultMatchWidth:"wide",parsePatterns:$j,defaultParseWidth:"any"}),quarter:kB({matchPatterns:Oj,defaultMatchWidth:"wide",parsePatterns:vj,defaultParseWidth:"any",valueCallback:function(G){return G+1}}),month:kB({matchPatterns:Dj,defaultMatchWidth:"wide",parsePatterns:Sj,defaultParseWidth:"any"}),day:kB({matchPatterns:yj,defaultMatchWidth:"wide",parsePatterns:hj,defaultParseWidth:"any"}),dayPeriod:kB({matchPatterns:kj,defaultMatchWidth:"any",parsePatterns:gj,defaultParseWidth:"any"})},MB={code:"en-US",formatDistance:Jj,formatLong:Vj,formatRelative:Fj,localize:Mj,match:mj,options:{weekStartsOn:0,firstWeekContainsDate:1}};function cG(B,G){var K=V(B,G===null||G===void 0?void 0:G.in),X=a(K,BG(K)),U=X+1;return U}function GG(B,G){var K=V(B,G===null||G===void 0?void 0:G.in),X=+r(K)-+XB(K);return Math.round(X/bB)+1}function gB(B,G){var K,X,U,Z,Q,J,H=V(B,G===null||G===void 0?void 0:G.in),q=H.getFullYear(),N=p(),A=(K=(X=(U=(Z=G===null||G===void 0?void 0:G.firstWeekContainsDate)!==null&&Z!==void 0?Z:G===null||G===void 0||(Q=G.locale)===null||Q===void 0||(Q=Q.options)===null||Q===void 0?void 0:Q.firstWeekContainsDate)!==null&&U!==void 0?U:N.firstWeekContainsDate)!==null&&X!==void 0?X:(J=N.locale)===null||J===void 0||(J=J.options)===null||J===void 0?void 0:J.firstWeekContainsDate)!==null&&K!==void 0?K:1,F=L((G===null||G===void 0?void 0:G.in)||B,0);F.setFullYear(q+1,0,A),F.setHours(0,0,0,0);var C=u(F,G),I=L((G===null||G===void 0?void 0:G.in)||B,0);I.setFullYear(q,0,A),I.setHours(0,0,0,0);var w=u(I,G);if(+H>=+C)return q+1;else if(+H>=+w)return q;else return q-1}function mB(B,G){var K,X,U,Z,Q,J,H=p(),q=(K=(X=(U=(Z=G===null||G===void 0?void 0:G.firstWeekContainsDate)!==null&&Z!==void 0?Z:G===null||G===void 0||(Q=G.locale)===null||Q===void 0||(Q=Q.options)===null||Q===void 0?void 0:Q.firstWeekContainsDate)!==null&&U!==void 0?U:H.firstWeekContainsDate)!==null&&X!==void 0?X:(J=H.locale)===null||J===void 0||(J=J.options)===null||J===void 0?void 0:J.firstWeekContainsDate)!==null&&K!==void 0?K:1,N=gB(B,G),A=L((G===null||G===void 0?void 0:G.in)||B,0);A.setFullYear(N,0,q),A.setHours(0,0,0,0);var F=u(A,G);return F}function KG(B,G){var K=V(B,G===null||G===void 0?void 0:G.in),X=+u(K,G)-+mB(K,G);return Math.round(X/bB)+1}function R(B,G){var K=B<0?"-":"",X=Math.abs(B).toString().padStart(G,"0");return K+X}var jB={y:function(G,K){var X=G.getFullYear(),U=X>0?X:1-X;return R(K==="yy"?U%100:U,K.length)},M:function(G,K){var X=G.getMonth();return K==="M"?String(X+1):R(X+1,2)},d:function(G,K){return R(G.getDate(),K.length)},a:function(G,K){var X=G.getHours()/12>=1?"pm":"am";switch(K){case"a":case"aa":return X.toUpperCase();case"aaa":return X;case"aaaaa":return X[0];case"aaaa":default:return X==="am"?"a.m.":"p.m."}},h:function(G,K){return R(G.getHours()%12||12,K.length)},H:function(G,K){return R(G.getHours(),K.length)},m:function(G,K){return R(G.getMinutes(),K.length)},s:function(G,K){return R(G.getSeconds(),K.length)},S:function(G,K){var X=K.length,U=G.getMilliseconds(),Z=Math.trunc(U*Math.pow(10,X-3));return R(Z,K.length)}},YB={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},eK={G:function(G,K,X){var U=G.getFullYear()>0?1:0;switch(K){case"G":case"GG":case"GGG":return X.era(U,{width:"abbreviated"});case"GGGGG":return X.era(U,{width:"narrow"});case"GGGG":default:return X.era(U,{width:"wide"})}},y:function(G,K,X){if(K==="yo"){var U=G.getFullYear(),Z=U>0?U:1-U;return X.ordinalNumber(Z,{unit:"year"})}return jB.y(G,K)},Y:function(G,K,X,U){var Z=gB(G,U),Q=Z>0?Z:1-Z;if(K==="YY"){var J=Q%100;return R(J,2)}if(K==="Yo")return X.ordinalNumber(Q,{unit:"year"});return R(Q,K.length)},R:function(G,K){var X=KB(G);return R(X,K.length)},u:function(G,K){var X=G.getFullYear();return R(X,K.length)},Q:function(G,K,X){var U=Math.ceil((G.getMonth()+1)/3);switch(K){case"Q":return String(U);case"QQ":return R(U,2);case"Qo":return X.ordinalNumber(U,{unit:"quarter"});case"QQQ":return X.quarter(U,{width:"abbreviated",context:"formatting"});case"QQQQQ":return X.quarter(U,{width:"narrow",context:"formatting"});case"QQQQ":default:return X.quarter(U,{width:"wide",context:"formatting"})}},q:function(G,K,X){var U=Math.ceil((G.getMonth()+1)/3);switch(K){case"q":return String(U);case"qq":return R(U,2);case"qo":return X.ordinalNumber(U,{unit:"quarter"});case"qqq":return X.quarter(U,{width:"abbreviated",context:"standalone"});case"qqqqq":return X.quarter(U,{width:"narrow",context:"standalone"});case"qqqq":default:return X.quarter(U,{width:"wide",context:"standalone"})}},M:function(G,K,X){var U=G.getMonth();switch(K){case"M":case"MM":return jB.M(G,K);case"Mo":return X.ordinalNumber(U+1,{unit:"month"});case"MMM":return X.month(U,{width:"abbreviated",context:"formatting"});case"MMMMM":return X.month(U,{width:"narrow",context:"formatting"});case"MMMM":default:return X.month(U,{width:"wide",context:"formatting"})}},L:function(G,K,X){var U=G.getMonth();switch(K){case"L":return String(U+1);case"LL":return R(U+1,2);case"Lo":return X.ordinalNumber(U+1,{unit:"month"});case"LLL":return X.month(U,{width:"abbreviated",context:"standalone"});case"LLLLL":return X.month(U,{width:"narrow",context:"standalone"});case"LLLL":default:return X.month(U,{width:"wide",context:"standalone"})}},w:function(G,K,X,U){var Z=KG(G,U);if(K==="wo")return X.ordinalNumber(Z,{unit:"week"});return R(Z,K.length)},I:function(G,K,X){var U=GG(G);if(K==="Io")return X.ordinalNumber(U,{unit:"week"});return R(U,K.length)},d:function(G,K,X){if(K==="do")return X.ordinalNumber(G.getDate(),{unit:"date"});return jB.d(G,K)},D:function(G,K,X){var U=cG(G);if(K==="Do")return X.ordinalNumber(U,{unit:"dayOfYear"});return R(U,K.length)},E:function(G,K,X){var U=G.getDay();switch(K){case"E":case"EE":case"EEE":return X.day(U,{width:"abbreviated",context:"formatting"});case"EEEEE":return X.day(U,{width:"narrow",context:"formatting"});case"EEEEEE":return X.day(U,{width:"short",context:"formatting"});case"EEEE":default:return X.day(U,{width:"wide",context:"formatting"})}},e:function(G,K,X,U){var Z=G.getDay(),Q=(Z-U.weekStartsOn+8)%7||7;switch(K){case"e":return String(Q);case"ee":return R(Q,2);case"eo":return X.ordinalNumber(Q,{unit:"day"});case"eee":return X.day(Z,{width:"abbreviated",context:"formatting"});case"eeeee":return X.day(Z,{width:"narrow",context:"formatting"});case"eeeeee":return X.day(Z,{width:"short",context:"formatting"});case"eeee":default:return