UNPKG

106 kBJavaScriptView Raw
1(()=>{function SX(K,G){var X=typeof Symbol!=="undefined"&&K[Symbol.iterator]||K["@@iterator"];if(!X){if(Array.isArray(K)||(X=DG(K))||G&&K&&typeof K.length==="number"){if(X)K=X;var B=0,U=function q(){};return{s:U,n:function q(){if(B>=K.length)return{done:!0};return{done:!1,value:K[B++]}},e:function q(Q){throw Q},f:U}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var Z=!0,j=!1,J;return{s:function q(){X=X.call(K)},n:function q(){var Q=X.next();return Z=Q.done,Q},e:function q(Q){j=!0,J=Q},f:function q(){try{if(!Z&&X.return!=null)X.return()}finally{if(j)throw J}}}}function W(K,G,X){return G=OG(G),JK(K,hX()?Reflect.construct(G,X||[],OG(K).constructor):G.apply(K,X))}function JK(K,G){if(G&&(n(G)==="object"||typeof G==="function"))return G;else if(G!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return R(K)}function R(K){if(K===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return K}function hX(){try{var K=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(G){}return(hX=function G(){return!!K})()}function OG(K){return OG=Object.setPrototypeOf?Object.getPrototypeOf.bind():function G(X){return X.__proto__||Object.getPrototypeOf(X)},OG(K)}function z(K,G){if(typeof G!=="function"&&G!==null)throw new TypeError("Super expression must either be null or a function");if(K.prototype=Object.create(G&&G.prototype,{constructor:{value:K,writable:!0,configurable:!0}}),Object.defineProperty(K,"prototype",{writable:!1}),G)BX(K,G)}function BX(K,G){return BX=Object.setPrototypeOf?Object.setPrototypeOf.bind():function X(B,U){return B.__proto__=U,B},BX(K,G)}function Y(K,G){if(!(K instanceof G))throw new TypeError("Cannot call a class as a function")}function yX(K,G){for(var X=0;X<G.length;X++){var B=G[X];if(B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B)B.writable=!0;Object.defineProperty(K,cX(B.key),B)}}function I(K,G,X){if(G)yX(K.prototype,G);if(X)yX(K,X);return Object.defineProperty(K,"prototype",{writable:!1}),K}function UX(K){return QK(K)||kX(K)||DG(K)||qK()}function qK(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function QK(K){if(Array.isArray(K))return ZX(K)}function HK(K){return fX(K)||kX(K)||DG(K)||gX()}function kX(K){if(typeof Symbol!=="undefined"&&K[Symbol.iterator]!=null||K["@@iterator"]!=null)return Array.from(K)}function $(K,G){return fX(K)||NK(K,G)||DG(K,G)||gX()}function gX(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function DG(K,G){if(!K)return;if(typeof K==="string")return ZX(K,G);var X=Object.prototype.toString.call(K).slice(8,-1);if(X==="Object"&&K.constructor)X=K.constructor.name;if(X==="Map"||X==="Set")return Array.from(K);if(X==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(X))return ZX(K,G)}function ZX(K,G){if(G==null||G>K.length)G=K.length;for(var X=0,B=new Array(G);X<G;X++)B[X]=K[X];return B}function NK(K,G){var X=K==null?null:typeof Symbol!="undefined"&&K[Symbol.iterator]||K["@@iterator"];if(X!=null){var B,U,Z,j,J=[],q=!0,Q=!1;try{if(Z=(X=X.call(K)).next,G===0){if(Object(X)!==X)return;q=!1}else for(;!(q=(B=Z.call(X)).done)&&(J.push(B.value),J.length!==G);q=!0);}catch(H){Q=!0,U=H}finally{try{if(!q&&X.return!=null&&(j=X.return(),Object(j)!==j))return}finally{if(Q)throw U}}return J}}function fX(K){if(Array.isArray(K))return K}function mX(K,G){var X=Object.keys(K);if(Object.getOwnPropertySymbols){var B=Object.getOwnPropertySymbols(K);G&&(B=B.filter(function(U){return Object.getOwnPropertyDescriptor(K,U).enumerable})),X.push.apply(X,B)}return X}function s(K){for(var G=1;G<arguments.length;G++){var X=arguments[G]!=null?arguments[G]:{};G%2?mX(Object(X),!0).forEach(function(B){E(K,B,X[B])}):Object.getOwnPropertyDescriptors?Object.defineProperties(K,Object.getOwnPropertyDescriptors(X)):mX(Object(X)).forEach(function(B){Object.defineProperty(K,B,Object.getOwnPropertyDescriptor(X,B))})}return K}function E(K,G,X){if(G=cX(G),G in K)Object.defineProperty(K,G,{value:X,enumerable:!0,configurable:!0,writable:!0});else K[G]=X;return K}function cX(K){var G=VK(K,"string");return n(G)=="symbol"?G:String(G)}function VK(K,G){if(n(K)!="object"||!K)return K;var X=K[Symbol.toPrimitive];if(X!==void 0){var B=X.call(K,G||"default");if(n(B)!="object")return B;throw new TypeError("@@toPrimitive must return a primitive value.")}return(G==="string"?String:Number)(K)}function n(K){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(K)}var xK=Object.defineProperty,EK=function K(G,X){for(var B in X)xK(G,B,{get:X[B],enumerable:!0,configurable:!0,set:function U(Z){return X[B]=function(){return Z}}})},uX={};EK(uX,{yearsToQuarters:function K(){return HJ},yearsToMonths:function K(){return QJ},yearsToDays:function K(){return qJ},weeksToDays:function K(){return JJ},transpose:function K(){return h0},toDate:function K(){return N},subYears:function K(){return jJ},subWeeks:function K(){return ZJ},subSeconds:function K(){return UJ},subQuarters:function K(){return BJ},subMonths:function K(){return t0},subMinutes:function K(){return KJ},subMilliseconds:function K(){return XJ},subISOWeekYears:function K(){return x0},subHours:function K(){return GJ},subDays:function K(){return oG},subBusinessDays:function K(){return tj},sub:function K(){return ej},startOfYesterday:function K(){return oj},startOfYear:function K(){return LX},startOfWeekYear:function K(){return rG},startOfWeek:function K(){return _},startOfTomorrow:function K(){return aj},startOfToday:function K(){return nj},startOfSecond:function K(){return $X},startOfQuarter:function K(){return EG},startOfMonth:function K(){return pG},startOfMinute:function K(){return zX},startOfISOWeekYear:function K(){return QG},startOfISOWeek:function K(){return a},startOfHour:function K(){return TX},startOfDecade:function K(){return sj},startOfDay:function K(){return wG},setYear:function K(){return ij},setWeekYear:function K(){return rj},setWeek:function K(){return m0},setSeconds:function K(){return dj},setQuarter:function K(){return pj},setMonth:function K(){return vX},setMinutes:function K(){return lj},setMilliseconds:function K(){return _j},setISOWeekYear:function K(){return B0},setISOWeek:function K(){return c0},setISODay:function K(){return u0},setHours:function K(){return uj},setDefaultOptions:function K(){return cj},setDayOfYear:function K(){return mj},setDay:function K(){return aG},setDate:function K(){return fj},set:function K(){return gj},secondsToMinutes:function K(){return kj},secondsToMilliseconds:function K(){return yj},secondsToHours:function K(){return hj},roundToNearestMinutes:function K(){return Sj},roundToNearestHours:function K(){return Dj},quartersToYears:function K(){return Oj},quartersToMonths:function K(){return vj},previousWednesday:function K(){return Pj},previousTuesday:function K(){return $j},previousThursday:function K(){return zj},previousSunday:function K(){return Wj},previousSaturday:function K(){return Tj},previousMonday:function K(){return Ij},previousFriday:function K(){return Yj},previousDay:function K(){return VG},parsers:function K(){return _0},parseJSON:function K(){return bj},parseISO:function K(){return jj},parse:function K(){return l0},nextWednesday:function K(){return Zj},nextTuesday:function K(){return Uj},nextThursday:function K(){return Bj},nextSunday:function K(){return Kj},nextSaturday:function K(){return Xj},nextMonday:function K(){return Gj},nextFriday:function K(){return tZ},nextDay:function K(){return NG},monthsToYears:function K(){return eZ},monthsToQuarters:function K(){return oZ},minutesToSeconds:function K(){return aZ},minutesToMilliseconds:function K(){return nZ},minutesToHours:function K(){return sZ},min:function K(){return q0},millisecondsToSeconds:function K(){return iZ},millisecondsToMinutes:function K(){return rZ},millisecondsToHours:function K(){return dZ},milliseconds:function K(){return pZ},max:function K(){return J0},longFormatters:function K(){return iG},lightFormatters:function K(){return GG},lightFormat:function K(){return fZ},lastDayOfYear:function K(){return gZ},lastDayOfWeek:function K(){return o0},lastDayOfQuarter:function K(){return kZ},lastDayOfMonth:function K(){return S0},lastDayOfISOWeekYear:function K(){return yZ},lastDayOfISOWeek:function K(){return hZ},lastDayOfDecade:function K(){return SZ},isYesterday:function K(){return DZ},isWithinInterval:function K(){return OZ},isWeekend:function K(){return FG},isWednesday:function K(){return vZ},isValid:function K(){return UG},isTuesday:function K(){return PZ},isTomorrow:function K(){return $Z},isToday:function K(){return zZ},isThursday:function K(){return WZ},isThisYear:function K(){return TZ},isThisWeek:function K(){return IZ},isThisSecond:function K(){return YZ},isThisQuarter:function K(){return bZ},isThisMonth:function K(){return MZ},isThisMinute:function K(){return CZ},isThisISOWeek:function K(){return wZ},isThisHour:function K(){return FZ},isSunday:function K(){return tX},isSaturday:function K(){return eX},isSameYear:function K(){return a0},isSameWeek:function K(){return WX},isSameSecond:function K(){return n0},isSameQuarter:function K(){return s0},isSameMonth:function K(){return i0},isSameMinute:function K(){return r0},isSameISOWeekYear:function K(){return LZ},isSameISOWeek:function K(){return d0},isSameHour:function K(){return p0},isSameDay:function K(){return WG},isPast:function K(){return AZ},isMonday:function K(){return RZ},isMatch:function K(){return EZ},isLeapYear:function K(){return v0},isLastDayOfMonth:function K(){return E0},isFuture:function K(){return YU},isFriday:function K(){return bU},isFirstDayOfMonth:function K(){return MU},isExists:function K(){return CU},isEqual:function K(){return wU},isDate:function K(){return H0},isBefore:function K(){return FU},isAfter:function K(){return LU},intlFormatDistance:function K(){return AU},intlFormat:function K(){return EU},intervalToDuration:function K(){return xU},interval:function K(){return VU},hoursToSeconds:function K(){return NU},hoursToMinutes:function K(){return HU},hoursToMilliseconds:function K(){return QU},getYear:function K(){return qU},getWeeksInMonth:function K(){return JU},getWeekYear:function K(){return dG},getWeekOfMonth:function K(){return jU},getWeek:function K(){return CX},getUnixTime:function K(){return ZU},getTime:function K(){return UU},getSeconds:function K(){return BU},getQuarter:function K(){return NX},getOverlappingDaysInIntervals:function K(){return KU},getMonth:function K(){return XU},getMinutes:function K(){return GU},getMilliseconds:function K(){return tB},getISOWeeksInYear:function K(){return eB},getISOWeekYear:function K(){return qG},getISOWeek:function K(){return wX},getISODay:function K(){return D0},getHours:function K(){return oB},getDefaultOptions:function K(){return O0},getDecade:function K(){return aB},getDaysInYear:function K(){return nB},getDaysInMonth:function K(){return P0},getDayOfYear:function K(){return w0},getDay:function K(){return sG},getDate:function K(){return $0},fromUnixTime:function K(){return sB},formatters:function K(){return MX},formatRelative:function K(){return iB},formatRFC7231:function K(){return pB},formatRFC3339:function K(){return lB},formatISODuration:function K(){return _B},formatISO9075:function K(){return uB},formatISO:function K(){return cB},formatDuration:function K(){return fB},formatDistanceToNowStrict:function K(){return gB},formatDistanceToNow:function K(){return kB},formatDistanceStrict:function K(){return z0},formatDistance:function K(){return W0},formatDate:function K(){return YX},format:function K(){return YX},endOfYesterday:function K(){return rK},endOfYear:function K(){return L0},endOfWeek:function K(){return F0},endOfTomorrow:function K(){return dK},endOfToday:function K(){return pK},endOfSecond:function K(){return lK},endOfQuarter:function K(){return _K},endOfMonth:function K(){return RX},endOfMinute:function K(){return uK},endOfISOWeekYear:function K(){return cK},endOfISOWeek:function K(){return mK},endOfHour:function K(){return fK},endOfDecade:function K(){return gK},endOfDay:function K(){return EX},eachYearOfInterval:function K(){return kK},eachWeekendOfYear:function K(){return yK},eachWeekendOfMonth:function K(){return hK},eachWeekendOfInterval:function K(){return AX},eachWeekOfInterval:function K(){return SK},eachQuarterOfInterval:function K(){return DK},eachMonthOfInterval:function K(){return OK},eachMinuteOfInterval:function K(){return vK},eachHourOfInterval:function K(){return PK},eachDayOfInterval:function K(){return A0},differenceInYears:function K(){return R0},differenceInWeeks:function K(){return $K},differenceInSeconds:function K(){return CG},differenceInQuarters:function K(){return zK},differenceInMonths:function K(){return lG},differenceInMinutes:function K(){return _G},differenceInMilliseconds:function K(){return xX},differenceInISOWeekYears:function K(){return WK},differenceInHours:function K(){return uG},differenceInDays:function K(){return VX},differenceInCalendarYears:function K(){return zG},differenceInCalendarWeeks:function K(){return cG},differenceInCalendarQuarters:function K(){return mG},differenceInCalendarMonths:function K(){return fG},differenceInCalendarISOWeeks:function K(){return TK},differenceInCalendarISOWeekYears:function K(){return N0},differenceInCalendarDays:function K(){return e},differenceInBusinessDays:function K(){return IK},daysToWeeks:function K(){return YK},constructNow:function K(){return f},constructFrom:function K(){return L},compareDesc:function K(){return bK},compareAsc:function K(){return t},closestTo:function K(){return MK},closestIndexTo:function K(){return Q0},clamp:function K(){return CK},areIntervalsOverlapping:function K(){return wK},addYears:function K(){return j0},addWeeks:function K(){return gG},addSeconds:function K(){return Z0},addQuarters:function K(){return HX},addMonths:function K(){return TG},addMinutes:function K(){return QX},addMilliseconds:function K(){return kG},addISOWeekYears:function K(){return U0},addHours:function K(){return X0},addDays:function K(){return o},addBusinessDays:function K(){return G0},add:function K(){return LG}});var _X=7,SG=365.2425,RK=Math.pow(10,8)*24*60*60*1000,xJ=-RK,IG=604800000,lX=86400000,BG=60000,xG=3600000,jX=1000,pX=525600,AG=43200,hG=1440,dX=60,rX=3,iX=12,sX=4,yG=3600,JX=60,qX=yG*24,AK=qX*7,nX=qX*SG,aX=nX/12,LK=aX*3,oX=Symbol.for("constructDateFrom");function L(K,G){if(typeof K==="function")return K(G);if(K&&n(K)==="object"&&oX in K)return K[oX](G);if(K instanceof Date)return new K.constructor(G);return new Date(G)}function N(K,G){return L(G||K,K)}function o(K,G,X){var B=N(K,X===null||X===void 0?void 0:X.in);if(isNaN(G))return L((X===null||X===void 0?void 0:X.in)||K,NaN);if(!G)return B;return B.setDate(B.getDate()+G),B}function TG(K,G,X){var B=N(K,X===null||X===void 0?void 0:X.in);if(isNaN(G))return L((X===null||X===void 0?void 0:X.in)||K,NaN);if(!G)return B;var U=B.getDate(),Z=L((X===null||X===void 0?void 0:X.in)||K,B.getTime());Z.setMonth(B.getMonth()+G+1,0);var j=Z.getDate();if(U>=j)return Z;else return B.setFullYear(Z.getFullYear(),Z.getMonth(),U),B}function LG(K,G,X){var B=G.years,U=B===void 0?0:B,Z=G.months,j=Z===void 0?0:Z,J=G.weeks,q=J===void 0?0:J,Q=G.days,H=Q===void 0?0:Q,V=G.hours,x=V===void 0?0:V,C=G.minutes,w=C===void 0?0:C,M=G.seconds,A=M===void 0?0:M,T=N(K,X===null||X===void 0?void 0:X.in),b=j||U?TG(T,j+U*12):T,v=H||q?o(b,H+q*7):b,D=w+x*60,l=A+D*60,d=l*1000;return L((X===null||X===void 0?void 0:X.in)||K,+v+d)}function eX(K,G){return N(K,G===null||G===void 0?void 0:G.in).getDay()===6}function tX(K,G){return N(K,G===null||G===void 0?void 0:G.in).getDay()===0}function FG(K,G){var X=N(K,G===null||G===void 0?void 0:G.in).getDay();return X===0||X===6}function G0(K,G,X){var B=N(K,X===null||X===void 0?void 0:X.in),U=FG(B,X);if(isNaN(G))return L(X===null||X===void 0?void 0:X.in,NaN);var Z=B.getHours(),j=G<0?-1:1,J=Math.trunc(G/5);B.setDate(B.getDate()+J*7);var q=Math.abs(G%5);while(q>0)if(B.setDate(B.getDate()+j),!FG(B,X))q-=1;if(U&&FG(B,X)&&G!==0){if(eX(B,X))B.setDate(B.getDate()+(j<0?2:-1));if(tX(B,X))B.setDate(B.getDate()+(j<0?1:-2))}return B.setHours(Z),B}function kG(K,G,X){return L((X===null||X===void 0?void 0:X.in)||K,+N(K)+G)}function X0(K,G,X){return kG(K,G*xG,X)}function p(){return K0}function FK(K){K0=K}var K0={};function _(K,G){var X,B,U,Z,j,J,q=p(),Q=(X=(B=(U=(Z=G===null||G===void 0?void 0:G.weekStartsOn)!==null&&Z!==void 0?Z:G===null||G===void 0||(j=G.locale)===null||j===void 0||(j=j.options)===null||j===void 0?void 0:j.weekStartsOn)!==null&&U!==void 0?U:q.weekStartsOn)!==null&&B!==void 0?B:(J=q.locale)===null||J===void 0||(J=J.options)===null||J===void 0?void 0:J.weekStartsOn)!==null&&X!==void 0?X:0,H=N(K,G===null||G===void 0?void 0:G.in),V=H.getDay(),x=(V<Q?7:0)+V-Q;return H.setDate(H.getDate()-x),H.setHours(0,0,0,0),H}function a(K,G){return _(K,s(s({},G),{},{weekStartsOn:1}))}function qG(K,G){var X=N(K,G===null||G===void 0?void 0:G.in),B=X.getFullYear(),U=L(X,0);U.setFullYear(B+1,0,4),U.setHours(0,0,0,0);var Z=a(U),j=L(X,0);j.setFullYear(B,0,4),j.setHours(0,0,0,0);var J=a(j);if(X.getTime()>=Z.getTime())return B+1;else if(X.getTime()>=J.getTime())return B;else return B-1}function r(K){var G=N(K),X=new Date(Date.UTC(G.getFullYear(),G.getMonth(),G.getDate(),G.getHours(),G.getMinutes(),G.getSeconds(),G.getMilliseconds()));return X.setUTCFullYear(G.getFullYear()),+K-+X}function O(K){for(var G=arguments.length,X=new Array(G>1?G-1:0),B=1;B<G;B++)X[B-1]=arguments[B];var U=L.bind(null,K||X.find(function(Z){return n(Z)==="object"}));return X.map(U)}function wG(K,G){var X=N(K,G===null||G===void 0?void 0:G.in);return X.setHours(0,0,0,0),X}function e(K,G,X){var B=O(X===null||X===void 0?void 0:X.in,K,G),U=$(B,2),Z=U[0],j=U[1],J=wG(Z),q=wG(j),Q=+J-r(J),H=+q-r(q);return Math.round((Q-H)/lX)}function QG(K,G){var X=qG(K,G),B=L((G===null||G===void 0?void 0:G.in)||K,0);return B.setFullYear(X,0,4),B.setHours(0,0,0,0),a(B)}function B0(K,G,X){var B=N(K,X===null||X===void 0?void 0:X.in),U=e(B,QG(B,X)),Z=L((X===null||X===void 0?void 0:X.in)||K,0);return Z.setFullYear(G,0,4),Z.setHours(0,0,0,0),B=QG(Z),B.setDate(B.getDate()+U),B}function U0(K,G,X){return B0(K,qG(K,X)+G,X)}function QX(K,G,X){var B=N(K,X===null||X===void 0?void 0:X.in);return B.setTime(B.getTime()+G*BG),B}function HX(K,G,X){return TG(K,G*3,X)}function Z0(K,G,X){return kG(K,G*1000,X)}function gG(K,G,X){return o(K,G*7,X)}function j0(K,G,X){return TG(K,G*12,X)}function wK(K,G,X){var B=[+N(K.start,X===null||X===void 0?void 0:X.in),+N(K.end,X===null||X===void 0?void 0:X.in)].sort(function(V,x){return V-x}),U=$(B,2),Z=U[0],j=U[1],J=[+N(G.start,X===null||X===void 0?void 0:X.in),+N(G.end,X===null||X===void 0?void 0:X.in)].sort(function(V,x){return V-x}),q=$(J,2),Q=q[0],H=q[1];if(X!==null&&X!==void 0&&X.inclusive)return Z<=H&&Q<=j;return Z<H&&Q<j}function J0(K,G){var X,B=G===null||G===void 0?void 0:G.in;return K.forEach(function(U){if(!B&&n(U)==="object")B=L.bind(null,U);var Z=N(U,B);if(!X||X<Z||isNaN(+Z))X=Z}),L(B,X||NaN)}function q0(K,G){var X,B=G===null||G===void 0?void 0:G.in;return K.forEach(function(U){if(!B&&n(U)==="object")B=L.bind(null,U);var Z=N(U,B);if(!X||X>Z||isNaN(+Z))X=Z}),L(B,X||NaN)}function CK(K,G,X){var B=O(X===null||X===void 0?void 0:X.in,K,G.start,G.end),U=$(B,3),Z=U[0],j=U[1],J=U[2];return q0([J0([Z,j],X),J],X)}function Q0(K,G){var X=+N(K);if(isNaN(X))return NaN;var B,U;return G.forEach(function(Z,j){var J=N(Z);if(isNaN(+J)){B=NaN,U=NaN;return}var q=Math.abs(X-+J);if(B==null||q<U)B=j,U=q}),B}function MK(K,G,X){var B=O.apply(void 0,[X===null||X===void 0?void 0:X.in,K].concat(UX(G))),U=HK(B),Z=U[0],j=U.slice(1),J=Q0(Z,j);if(typeof J==="number"&&isNaN(J))return L(Z,NaN);if(J!==void 0)return j[J]}function t(K,G){var X=+N(K)-+N(G);if(X<0)return-1;else if(X>0)return 1;return X}function bK(K,G){var X=+N(K)-+N(G);if(X>0)return-1;else if(X<0)return 1;return X}function f(K){return L(K,Date.now())}function YK(K){var G=Math.trunc(K/_X);return G===0?0:G}function WG(K,G,X){var B=O(X===null||X===void 0?void 0:X.in,K,G),U=$(B,2),Z=U[0],j=U[1];return+wG(Z)===+wG(j)}function H0(K){return K instanceof Date||n(K)==="object"&&Object.prototype.toString.call(K)==="[object Date]"}function UG(K){return!(!H0(K)&&typeof K!=="number"||isNaN(+N(K)))}function IK(K,G,X){var B=O(X===null||X===void 0?void 0:X.in,K,G),U=$(B,2),Z=U[0],j=U[1];if(!UG(Z)||!UG(j))return NaN;var J=e(Z,j),q=J<0?-1:1,Q=Math.trunc(J/7),H=Q*5,V=o(j,Q*7);while(!WG(Z,V))H+=FG(V,X)?0:q,V=o(V,q);return H===0?0:H}function N0(K,G,X){var B=O(X===null||X===void 0?void 0:X.in,K,G),U=$(B,2),Z=U[0],j=U[1];return qG(Z,X)-qG(j,X)}function TK(K,G,X){var B=O(X===null||X===void 0?void 0:X.in,K,G),U=$(B,2),Z=U[0],j=U[1],J=a(Z),q=a(j),Q=+J-r(J),H=+q-r(q);return Math.round((Q-H)/IG)}function fG(K,G,X){var B=O(X===null||X===void 0?void 0:X.in,K,G),U=$(B,2),Z=U[0],j=U[1],J=Z.getFullYear()-j.getFullYear(),q=Z.getMonth()-j.getMonth();return J*12+q}function NX(K,G){var X=N(K,G===null||G===void 0?void 0:G.in),B=Math.trunc(X.getMonth()/3)+1;return B}function mG(K,G,X){var B=O(X===null||X===void 0?void 0:X.in,K,G),U=$(B,2),Z=U[0],j=U[1],J=Z.getFullYear()-j.getFullYear(),q=NX(Z)-NX(j);return J*4+q}function cG(K,G,X){var B=O(X===null||X===void 0?void 0:X.in,K,G),U=$(B,2),Z=U[0],j=U[1],J=_(Z,X),q=_(j,X),Q=+J-r(J),H=+q-r(q);return Math.round((Q-H)/IG)}function zG(K,G,X){var B=O(X===null||X===void 0?void 0:X.in,K,G),U=$(B,2),Z=U[0],j=U[1];return Z.getFullYear()-j.getFullYear()}function VX(K,G,X){var B=O(X===null||X===void 0?void 0:X.in,K,G),U=$(B,2),Z=U[0],j=U[1],J=V0(Z,j),q=Math.abs(e(Z,j));Z.setDate(Z.getDate()-J*q);var Q=Number(V0(Z,j)===-J),H=J*(q-Q);return H===0?0:H}function V0(K,G){var X=K.getFullYear()-G.getFullYear()||K.getMonth()-G.getMonth()||K.getDate()-G.getDate()||K.getHours()-G.getHours()||K.getMinutes()-G.getMinutes()||K.getSeconds()-G.getSeconds()||K.getMilliseconds()-G.getMilliseconds();if(X<0)return-1;if(X>0)return 1;return X}function HG(K){return function(G){var X=K?Math[K]:Math.trunc,B=X(G);return B===0?0:B}}function uG(K,G,X){var B=O(X===null||X===void 0?void 0:X.in,K,G),U=$(B,2),Z=U[0],j=U[1],J=(+Z-+j)/xG;return HG(X===null||X===void 0?void 0:X.roundingMethod)(J)}function x0(K,G,X){return U0(K,-G,X)}function WK(K,G,X){var B=O(X===null||X===void 0?void 0:X.in,K,G),U=$(B,2),Z=U[0],j=U[1],J=t(Z,j),q=Math.abs(N0(Z,j,X)),Q=x0(Z,J*q,X),H=Number(t(Q,j)===-J),V=J*(q-H);return V===0?0:V}function xX(K,G){return+N(K)-+N(G)}function _G(K,G,X){var B=xX(K,G)/BG;return HG(X===null||X===void 0?void 0:X.roundingMethod)(B)}function EX(K,G){var X=N(K,G===null||G===void 0?void 0:G.in);return X.setHours(23,59,59,999),X}function RX(K,G){var X=N(K,G===null||G===void 0?void 0:G.in),B=X.getMonth();return X.setFullYear(X.getFullYear(),B+1,0),X.setHours(23,59,59,999),X}function E0(K,G){var X=N(K,G===null||G===void 0?void 0:G.in);return+EX(X,G)===+RX(X,G)}function lG(K,G,X){var B=O(X===null||X===void 0?void 0:X.in,K,K,G),U=$(B,3),Z=U[0],j=U[1],J=U[2],q=t(j,J),Q=Math.abs(fG(j,J));if(Q<1)return 0;if(j.getMonth()===1&&j.getDate()>27)j.setDate(30);j.setMonth(j.getMonth()-q*Q);var H=t(j,J)===-q;if(E0(Z)&&Q===1&&t(Z,J)===1)H=!1;var V=q*(Q-+H);return V===0?0:V}function zK(K,G,X){var B=lG(K,G,X)/3;return HG(X===null||X===void 0?void 0:X.roundingMethod)(B)}function CG(K,G,X){var B=xX(K,G)/1000;return HG(X===null||X===void 0?void 0:X.roundingMethod)(B)}function $K(K,G,X){var B=VX(K,G,X)/7;return HG(X===null||X===void 0?void 0:X.roundingMethod)(B)}function R0(K,G,X){var B=O(X===null||X===void 0?void 0:X.in,K,G),U=$(B,2),Z=U[0],j=U[1],J=t(Z,j),q=Math.abs(zG(Z,j));Z.setFullYear(1584),j.setFullYear(1584);var Q=t(Z,j)===-J,H=J*(q-+Q);return H===0?0:H}function ZG(K,G){var X=O(K,G.start,G.end),B=$(X,2),U=B[0],Z=B[1];return{start:U,end:Z}}function A0(K,G){var X,B=ZG(G===null||G===void 0?void 0:G.in,K),U=B.start,Z=B.end,j=+U>+Z,J=j?+U:+Z,q=j?Z:U;q.setHours(0,0,0,0);var Q=(X=G===null||G===void 0?void 0:G.step)!==null&&X!==void 0?X:1;if(!Q)return[];if(Q<0)Q=-Q,j=!j;var H=[];while(+q<=J)H.push(L(U,q)),q.setDate(q.getDate()+Q),q.setHours(0,0,0,0);return j?H.reverse():H}function PK(K,G){var X,B=ZG(G===null||G===void 0?void 0:G.in,K),U=B.start,Z=B.end,j=+U>+Z,J=j?+U:+Z,q=j?Z:U;q.setMinutes(0,0,0);var Q=(X=G===null||G===void 0?void 0:G.step)!==null&&X!==void 0?X:1;if(!Q)return[];if(Q<0)Q=-Q,j=!j;var H=[];while(+q<=J)H.push(L(U,q)),q.setHours(q.getHours()+Q);return j?H.reverse():H}function vK(K,G){var X,B=ZG(G===null||G===void 0?void 0:G.in,K),U=B.start,Z=B.end;U.setSeconds(0,0);var j=+U>+Z,J=j?+U:+Z,q=j?Z:U,Q=(X=G===null||G===void 0?void 0:G.step)!==null&&X!==void 0?X:1;if(!Q)return[];if(Q<0)Q=-Q,j=!j;var H=[];while(+q<=J)H.push(L(U,q)),q=QX(q,Q);return j?H.reverse():H}function OK(K,G){var X,B=ZG(G===null||G===void 0?void 0:G.in,K),U=B.start,Z=B.end,j=+U>+Z,J=j?+U:+Z,q=j?Z:U;q.setHours(0,0,0,0),q.setDate(1);var Q=(X=G===null||G===void 0?void 0:G.step)!==null&&X!==void 0?X:1;if(!Q)return[];if(Q<0)Q=-Q,j=!j;var H=[];while(+q<=J)H.push(L(U,q)),q.setMonth(q.getMonth()+Q);return j?H.reverse():H}function EG(K,G){var X=N(K,G===null||G===void 0?void 0:G.in),B=X.getMonth(),U=B-B%3;return X.setMonth(U,1),X.setHours(0,0,0,0),X}function DK(K,G){var X,B=ZG(G===null||G===void 0?void 0:G.in,K),U=B.start,Z=B.end,j=+U>+Z,J=j?+EG(U):+EG(Z),q=j?EG(Z):EG(U),Q=(X=G===null||G===void 0?void 0:G.step)!==null&&X!==void 0?X:1;if(!Q)return[];if(Q<0)Q=-Q,j=!j;var H=[];while(+q<=J)H.push(L(U,q)),q=HX(q,Q);return j?H.reverse():H}function SK(K,G){var X,B=ZG(G===null||G===void 0?void 0:G.in,K),U=B.start,Z=B.end,j=+U>+Z,J=j?_(Z,G):_(U,G),q=j?_(U,G):_(Z,G);J.setHours(15),q.setHours(15);var Q=+q.getTime(),H=J,V=(X=G===null||G===void 0?void 0:G.step)!==null&&X!==void 0?X:1;if(!V)return[];if(V<0)V=-V,j=!j;var x=[];while(+H<=Q)H.setHours(0),x.push(L(U,H)),H=gG(H,V),H.setHours(15);return j?x.reverse():x}function AX(K,G){var X=ZG(G===null||G===void 0?void 0:G.in,K),B=X.start,U=X.end,Z=A0({start:B,end:U},G),j=[],J=0;while(J<Z.length){var q=Z[J++];if(FG(q))j.push(L(B,q))}return j}function pG(K,G){var X=N(K,G===null||G===void 0?void 0:G.in);return X.setDate(1),X.setHours(0,0,0,0),X}function hK(K,G){var X=pG(K,G),B=RX(K,G);return AX({start:X,end:B},G)}function L0(K,G){var X=N(K,G===null||G===void 0?void 0:G.in),B=X.getFullYear();return X.setFullYear(B+1,0,0),X.setHours(23,59,59,999),X}function LX(K,G){var X=N(K,G===null||G===void 0?void 0:G.in);return X.setFullYear(X.getFullYear(),0,1),X.setHours(0,0,0,0),X}function yK(K,G){var X=LX(K,G),B=L0(K,G);return AX({start:X,end:B},G)}function kK(K,G){var X,B=ZG(G===null||G===void 0?void 0:G.in,K),U=B.start,Z=B.end,j=+U>+Z,J=j?+U:+Z,q=j?Z:U;q.setHours(0,0,0,0),q.setMonth(0,1);var Q=(X=G===null||G===void 0?void 0:G.step)!==null&&X!==void 0?X:1;if(!Q)return[];if(Q<0)Q=-Q,j=!j;var H=[];while(+q<=J)H.push(L(U,q)),q.setFullYear(q.getFullYear()+Q);return j?H.reverse():H}function gK(K,G){var X=N(K,G===null||G===void 0?void 0:G.in),B=X.getFullYear(),U=9+Math.floor(B/10)*10;return X.setFullYear(U,11,31),X.setHours(23,59,59,999),X}function fK(K,G){var X=N(K,G===null||G===void 0?void 0:G.in);return X.setMinutes(59,59,999),X}function F0(K,G){var X,B,U,Z,j,J,q=p(),Q=(X=(B=(U=(Z=G===null||G===void 0?void 0:G.weekStartsOn)!==null&&Z!==void 0?Z:G===null||G===void 0||(j=G.locale)===null||j===void 0||(j=j.options)===null||j===void 0?void 0:j.weekStartsOn)!==null&&U!==void 0?U:q.weekStartsOn)!==null&&B!==void 0?B:(J=q.locale)===null||J===void 0||(J=J.options)===null||J===void 0?void 0:J.weekStartsOn)!==null&&X!==void 0?X:0,H=N(K,G===null||G===void 0?void 0:G.in),V=H.getDay(),x=(V<Q?-7:0)+6-(V-Q);return H.setDate(H.getDate()+x),H.setHours(23,59,59,999),H}function mK(K,G){return F0(K,s(s({},G),{},{weekStartsOn:1}))}function cK(K,G){var X=qG(K,G),B=L((G===null||G===void 0?void 0:G.in)||K,0);B.setFullYear(X+1,0,4),B.setHours(0,0,0,0);var U=a(B,G);return U.setMilliseconds(U.getMilliseconds()-1),U}function uK(K,G){var X=N(K,G===null||G===void 0?void 0:G.in);return X.setSeconds(59,999),X}function _K(K,G){var X=N(K,G===null||G===void 0?void 0:G.in),B=X.getMonth(),U=B-B%3+3;return X.setMonth(U,0),X.setHours(23,59,59,999),X}function lK(K,G){var X=N(K,G===null||G===void 0?void 0:G.in);return X.setMilliseconds(999),X}function pK(K){return EX(Date.now(),K)}function dK(K){var G=f(K===null||K===void 0?void 0:K.in),X=G.getFullYear(),B=G.getMonth(),U=G.getDate(),Z=f(K===null||K===void 0?void 0:K.in);return Z.setFullYear(X,B,U+1),Z.setHours(23,59,59,999),K!==null&&K!==void 0&&K.in?K.in(Z):Z}function rK(K){var G=f(K===null||K===void 0?void 0:K.in),X=L(K===null||K===void 0?void 0:K.in,0);return X.setFullYear(G.getFullYear(),G.getMonth(),G.getDate()-1),X.setHours(23,59,59,999),X}var iK={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"}},sK=function K(G,X,B){var U,Z=iK[G];if(typeof Z==="string")U=Z;else if(X===1)U=Z.one;else U=Z.other.replace("{{count}}",X.toString());if(B!==null&&B!==void 0&&B.addSuffix)if(B.comparison&&B.comparison>0)return"in "+U;else return U+" ago";return U};function FX(K){return function(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},X=G.width?String(G.width):K.defaultWidth,B=K.formats[X]||K.formats[K.defaultWidth];return B}}var nK={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},aK={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},oK={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},eK={date:FX({formats:nK,defaultWidth:"full"}),time:FX({formats:aK,defaultWidth:"full"}),dateTime:FX({formats:oK,defaultWidth:"full"})},tK={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},GB=function K(G,X,B,U){return tK[G]};function $G(K){return function(G,X){var B=X!==null&&X!==void 0&&X.context?String(X.context):"standalone",U;if(B==="formatting"&&K.formattingValues){var Z=K.defaultFormattingWidth||K.defaultWidth,j=X!==null&&X!==void 0&&X.width?String(X.width):Z;U=K.formattingValues[j]||K.formattingValues[Z]}else{var J=K.defaultWidth,q=X!==null&&X!==void 0&&X.width?String(X.width):K.defaultWidth;U=K.values[q]||K.values[J]}var Q=K.argumentCallback?K.argumentCallback(G):G;return U[Q]}}var XB={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},KB={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},BB={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"]},UB={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"]},ZB={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"}},jB={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"}},JB=function K(G,X){var B=Number(G),U=B%100;if(U>20||U<10)switch(U%10){case 1:return B+"st";case 2:return B+"nd";case 3:return B+"rd"}return B+"th"},qB={ordinalNumber:JB,era:$G({values:XB,defaultWidth:"wide"}),quarter:$G({values:KB,defaultWidth:"wide",argumentCallback:function K(G){return G-1}}),month:$G({values:BB,defaultWidth:"wide"}),day:$G({values:UB,defaultWidth:"wide"}),dayPeriod:$G({values:ZB,defaultWidth:"wide",formattingValues:jB,defaultFormattingWidth:"wide"})};function PG(K){return function(G){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},B=X.width,U=B&&K.matchPatterns[B]||K.matchPatterns[K.defaultMatchWidth],Z=G.match(U);if(!Z)return null;var j=Z[0],J=B&&K.parsePatterns[B]||K.parsePatterns[K.defaultParseWidth],q=Array.isArray(J)?HB(J,function(V){return V.test(j)}):QB(J,function(V){return V.test(j)}),Q;Q=K.valueCallback?K.valueCallback(q):q,Q=X.valueCallback?X.valueCallback(Q):Q;var H=G.slice(j.length);return{value:Q,rest:H}}}function QB(K,G){for(var X in K)if(Object.prototype.hasOwnProperty.call(K,X)&&G(K[X]))return X;return}function HB(K,G){for(var X=0;X<K.length;X++)if(G(K[X]))return X;return}function NB(K){return function(G){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},B=G.match(K.matchPattern);if(!B)return null;var U=B[0],Z=G.match(K.parsePattern);if(!Z)return null;var j=K.valueCallback?K.valueCallback(Z[0]):Z[0];j=X.valueCallback?X.valueCallback(j):j;var J=G.slice(U.length);return{value:j,rest:J}}}var VB=/^(\d+)(th|st|nd|rd)?/i,xB=/\d+/i,EB={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},RB={any:[/^b/i,/^(a|c)/i]},AB={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},LB={any:[/1/i,/2/i,/3/i,/4/i]},FB={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},wB={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]},CB={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},MB={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]},bB={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},YB={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}},IB={ordinalNumber:NB({matchPattern:VB,parsePattern:xB,valueCallback:function K(G){return parseInt(G,10)}}),era:PG({matchPatterns:EB,defaultMatchWidth:"wide",parsePatterns:RB,defaultParseWidth:"any"}),quarter:PG({matchPatterns:AB,defaultMatchWidth:"wide",parsePatterns:LB,defaultParseWidth:"any",valueCallback:function K(G){return G+1}}),month:PG({matchPatterns:FB,defaultMatchWidth:"wide",parsePatterns:wB,defaultParseWidth:"any"}),day:PG({matchPatterns:CB,defaultMatchWidth:"wide",parsePatterns:MB,defaultParseWidth:"any"}),dayPeriod:PG({matchPatterns:bB,defaultMatchWidth:"any",parsePatterns:YB,defaultParseWidth:"any"})},MG={code:"en-US",formatDistance:sK,formatLong:eK,formatRelative:GB,localize:qB,match:IB,options:{weekStartsOn:0,firstWeekContainsDate:1}};function w0(K,G){var X=N(K,G===null||G===void 0?void 0:G.in),B=e(X,LX(X)),U=B+1;return U}function wX(K,G){var X=N(K,G===null||G===void 0?void 0:G.in),B=+a(X)-+QG(X);return Math.round(B/IG)+1}function dG(K,G){var X,B,U,Z,j,J,q=N(K,G===null||G===void 0?void 0:G.in),Q=q.getFullYear(),H=p(),V=(X=(B=(U=(Z=G===null||G===void 0?void 0:G.firstWeekContainsDate)!==null&&Z!==void 0?Z:G===null||G===void 0||(j=G.locale)===null||j===void 0||(j=j.options)===null||j===void 0?void 0:j.firstWeekContainsDate)!==null&&U!==void 0?U:H.firstWeekContainsDate)!==null&&B!==void 0?B:(J=H.locale)===null||J===void 0||(J=J.options)===null||J===void 0?void 0:J.firstWeekContainsDate)!==null&&X!==void 0?X:1,x=L((G===null||G===void 0?void 0:G.in)||K,0);x.setFullYear(Q+1,0,V),x.setHours(0,0,0,0);var C=_(x,G),w=L((G===null||G===void 0?void 0:G.in)||K,0);w.setFullYear(Q,0,V),w.setHours(0,0,0,0);var M=_(w,G);if(+q>=+C)return Q+1;else if(+q>=+M)return Q;else return Q-1}function rG(K,G){var X,B,U,Z,j,J,q=p(),Q=(X=(B=(U=(Z=G===null||G===void 0?void 0:G.firstWeekContainsDate)!==null&&Z!==void 0?Z:G===null||G===void 0||(j=G.locale)===null||j===void 0||(j=j.options)===null||j===void 0?void 0:j.firstWeekContainsDate)!==null&&U!==void 0?U:q.firstWeekContainsDate)!==null&&B!==void 0?B:(J=q.locale)===null||J===void 0||(J=J.options)===null||J===void 0?void 0:J.firstWeekContainsDate)!==null&&X!==void 0?X:1,H=dG(K,G),V=L((G===null||G===void 0?void 0:G.in)||K,0);V.setFullYear(H,0,Q),V.setHours(0,0,0,0);var x=_(V,G);return x}function CX(K,G){var X=N(K,G===null||G===void 0?void 0:G.in),B=+_(X,G)-+rG(X,G);return Math.round(B/IG)+1}function F(K,G){var X=K<0?"-":"",B=Math.abs(K).toString().padStart(G,"0");return X+B}var GG={y:function K(G,X){var B=G.getFullYear(),U=B>0?B:1-B;return F(X==="yy"?U%100:U,X.length)},M:function K(G,X){var B=G.getMonth();return X==="M"?String(B+1):F(B+1,2)},d:function K(G,X){return F(G.getDate(),X.length)},a:function K(G,X){var B=G.getHours()/12>=1?"pm":"am";switch(X){case"a":case"aa":return B.toUpperCase();case"aaa":return B;case"aaaaa":return B[0];case"aaaa":default:return B==="am"?"a.m.":"p.m."}},h:function K(G,X){return F(G.getHours()%12||12,X.length)},H:function K(G,X){return F(G.getHours(),X.length)},m:function K(G,X){return F(G.getMinutes(),X.length)},s:function K(G,X){return F(G.getSeconds(),X.length)},S:function K(G,X){var B=X.length,U=G.getMilliseconds(),Z=Math.trunc(U*Math.pow(10,B-3));return F(Z,X.length)}};function C0(K){var G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",X=K>0?"-":"+",B=Math.abs(K),U=Math.trunc(B/60),Z=B%60;if(Z===0)return X+String(U);return X+String(U)+G+F(Z,2)}function M0(K,G){if(K%60===0){var X=K>0?"-":"+";return X+F(Math.abs(K)/60,2)}return RG(K,G)}function RG(K){var G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",X=K>0?"-":"+",B=Math.abs(K),U=F(Math.trunc(B/60),2),Z=F(B%60,2);return X+U+G+Z}var bG={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},MX={G:function K(G,X,B){var U=G.getFullYear()>0?1:0;switch(X){case"G":case"GG":case"GGG":return B.era(U,{width:"abbreviated"});case"GGGGG":return B.era(U,{width:"narrow"});case"GGGG":default:return B.era(U,{width:"wide"})}},y:function K(G,X,B){if(X==="yo"){var U=G.getFullYear(),Z=U>0?U:1-U;return B.ordinalNumber(Z,{unit:"year"})}return GG.y(G,X)},Y:function K(G,X,B,U){var Z=dG(G,U),j=Z>0?Z:1-Z;if(X==="YY"){var J=j%100;return F(J,2)}if(X==="Yo")return B.ordinalNumber(j,{unit:"year"});return F(j,X.length)},R:function K(G,X){var B=qG(G);return F(B,X.length)},u:function K(G,X){var B=G.getFullYear();return F(B,X.length)},Q:function K(G,X,B){var U=Math.ceil((G.getMonth()+1)/3);switch(X){case"Q":return String(U);case"QQ":return F(U,2);case"Qo":return B.ordinalNumber(U,{unit:"quarter"});case"QQQ":return B.quarter(U,{width:"abbreviated",context:"formatting"});case"QQQQQ":return B.quarter(U,{width:"narrow",context:"formatting"});case"QQQQ":default:return B.quarter(U,{width:"wide",context:"formatting"})}},q:function K(G,X,B){var U=Math.ceil((G.getMonth()+1)/3);switch(X){case"q":return String(U);case"qq":return F(U,2);case"qo":return B.ordinalNumber(U,{unit:"quarter"});case"qqq":return B.quarter(U,{width:"abbreviated",context:"standalone"});case"qqqqq":return B.quarter(U,{width:"narrow",context:"standalone"});case"qqqq":default:return B.quarter(U,{width:"wide",context:"standalone"})}},M:function K(G,X,B){var U=G.getMonth();switch(X){case"M":case"MM":return GG.M(G,X);case"Mo":return B.ordinalNumber(U+1,{unit:"month"});case"MMM":return B.month(U,{width:"abbreviated",context:"formatting"});case"MMMMM":return B.month(U,{width:"narrow",context:"formatting"});case"MMMM":default:return B.month(U,{width:"wide",context:"formatting"})}},L:function K(G,X,B){var U=G.getMonth();switch(X){case"L":return String(U+1);case"LL":return F(U+1,2);case"Lo":return B.ordinalNumber(U+1,{unit:"month"});case"LLL":return B.month(U,{width:"abbreviated",context:"standalone"});case"LLLLL":return B.month(U,{width:"narrow",context:"standalone"});case"LLLL":default:return B.month(U,{width:"wide",context:"standalone"})}},w:function K(G,X,B,U){var Z=CX(G,U);if(X==="wo")return B.ordinalNumber(Z,{unit:"week"});return F(Z,X.length)},I:function K(G,X,B){var U=wX(G);if(X==="Io")return B.ordinalNumber(U,{unit:"week"});return F(U,X.length)},d:function K(G,X,B){if(X==="do")return B.ordinalNumber(G.getDate(),{unit:"date"});return GG.d(G,X)},D:function K(G,X,B){var U=w0(G);if(X==="Do")return B.ordinalNumber(U,{unit:"dayOfYear"});return F(U,X.length)},E:function K(G,X,B){var U=G.getDay();switch(X){case"E":case"EE":case"EEE":return B.day(U,{width:"abbreviated",context:"formatting"});case"EEEEE":return B.day(U,{width:"narrow",context:"formatting"});case"EEEEEE":return B.day(U,{width:"short",context:"formatting"});case"EEEE":default:return B.day(U,{width:"wide",context:"formatting"})}},e:function K(G,X,B,U){var Z=G.getDay(),j=(Z-U.weekStartsOn+8)%7||7;switch(X){case"e":return String(j);case"ee":return F(j,2);case"eo":return B.ordinalNumber(j,{unit:"day"});case"eee":return B.day(Z,{width:"abbreviated",context:"formatting"});case"eeeee":return B.day(Z,{width:"narrow",context:"formatting"});case"eeeeee":return B.day(Z,{width:"short",context:"formatting"});case"eeee":default:return B.day(Z,{width:"wide",context:"formatting"})}},c:function K(G,X,B,U){var Z=G.getDay(),j=(Z-U.weekStartsOn+8)%7||7;switch(X){case"c":return String(j);case"cc":return F(j,X.length);case"co":return B.ordinalNumber(j,{unit:"day"});case"ccc":return B.day(Z,{width:"abbreviated",context:"standalone"});case"ccccc":return B.day(Z,{width:"narrow",context:"standalone"});case"cccccc":return B.day(Z,{width:"short",context:"standalone"});case"cccc":default:return B.day(Z,{width:"wide",context:"standalone"})}},i:function K(G,X,B){var U=G.getDay(),Z=U===0?7:U;switch(X){case"i":return String(Z);case"ii":return F(Z,X.length);case"io":return B.ordinalNumber(Z,{unit:"day"});case"iii":return B.day(U,{width:"abbreviated",context:"formatting"});case"iiiii":return B.day(U,{width:"narrow",context:"formatting"});case"iiiiii":return B.day(U,{width:"short",context:"formatting"});case"iiii":default:return B.day(U,{width:"wide",context:"formatting"})}},a:function K(G,X,B){var U=G.getHours(),Z=U/12>=1?"pm":"am";switch(X){case"a":case"aa":return B.dayPeriod(Z,{width:"abbreviated",context:"formatting"});case"aaa":return B.dayPeriod(Z,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return B.dayPeriod(Z,{width:"narrow",context:"formatting"});case"aaaa":default:return B.dayPeriod(Z,{width:"wide",context:"formatting"})}},b:function K(G,X,B){var U=G.getHours(),Z;if(U===12)Z=bG.noon;else if(U===0)Z=bG.midnight;else Z=U/12>=1?"pm":"am";switch(X){case"b":case"bb":return B.dayPeriod(Z,{width:"abbreviated",context:"formatting"});case"bbb":return B.dayPeriod(Z,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return B.dayPeriod(Z,{width:"narrow",context:"formatting"});case"bbbb":default:return B.dayPeriod(Z,{width:"wide",context:"formatting"})}},B:function K(G,X,B){var U=G.getHours(),Z;if(U>=17)Z=bG.evening;else if(U>=12)Z=bG.afternoon;else if(U>=4)Z=bG.morning;else Z=bG.night;switch(X){case"B":case"BB":case"BBB":return B.dayPeriod(Z,{width:"abbreviated",context:"formatting"});case"BBBBB":return B.dayPeriod(Z,{width:"narrow",context:"formatting"});case"BBBB":default:return B.dayPeriod(Z,{width:"wide",context:"formatting"})}},h:function K(G,X,B){if(X==="ho"){var U=G.getHours()%12;if(U===0)U=12;return B.ordinalNumber(U,{unit:"hour"})}return GG.h(G,X)},H:function K(G,X,B){if(X==="Ho")return B.ordinalNumber(G.getHours(),{unit:"hour"});return GG.H(G,X)},K:function K(G,X,B){var U=G.getHours()%12;if(X==="Ko")return B.ordinalNumber(U,{unit:"hour"});return F(U,X.length)},k:function K(G,X,B){var U=G.getHours();if(U===0)U=24;if(X==="ko")return B.ordinalNumber(U,{unit:"hour"});return F(U,X.length)},m:function K(G,X,B){if(X==="mo")return B.ordinalNumber(G.getMinutes(),{unit:"minute"});return GG.m(G,X)},s:function K(G,X,B){if(X==="so")return B.ordinalNumber(G.getSeconds(),{unit:"second"});return GG.s(G,X)},S:function K(G,X){return GG.S(G,X)},X:function K(G,X,B){var U=G.getTimezoneOffset();if(U===0)return"Z";switch(X){case"X":return M0(U);case"XXXX":case"XX":return RG(U);case"XXXXX":case"XXX":default:return RG(U,":")}},x:function K(G,X,B){var U=G.getTimezoneOffset();switch(X){case"x":return M0(U);case"xxxx":case"xx":return RG(U);case"xxxxx":case"xxx":default:return RG(U,":")}},O:function K(G,X,B){var U=G.getTimezoneOffset();switch(X){case"O":case"OO":case"OOO":return"GMT"+C0(U,":");case"OOOO":default:return"GMT"+RG(U,":")}},z:function K(G,X,B){var U=G.getTimezoneOffset();switch(X){case"z":case"zz":case"zzz":return"GMT"+C0(U,":");case"zzzz":default:return"GMT"+RG(U,":")}},t:function K(G,X,B){var U=Math.trunc(+G/1000);return F(U,X.length)},T:function K(G,X,B){return F(+G,X.length)}},b0=function K(G,X){switch(G){case"P":return X.date({width:"short"});case"PP":return X.date({width:"medium"});case"PPP":return X.date({width:"long"});case"PPPP":default:return X.date({width:"full"})}},Y0=function K(G,X){switch(G){case"p":return X.time({width:"short"});case"pp":return X.time({width:"medium"});case"ppp":return X.time({width:"long"});case"pppp":default:return X.time({width:"full"})}},TB=function K(G,X){var B=G.match(/(P+)(p+)?/)||[],U=B[1],Z=B[2];if(!Z)return b0(G,X);var j;switch(U){case"P":j=X.dateTime({width:"short"});break;case"PP":j=X.dateTime({width:"medium"});break;case"PPP":j=X.dateTime({width:"long"});break;case"PPPP":default:j=X.dateTime({width:"full"});break}return j.replace("{{date}}",b0(U,X)).replace("{{time}}",Y0(Z,X))},iG={p:Y0,P:TB};function I0(K){return zB.test(K)}function T0(K){return $B.test(K)}function bX(K,G,X){var B=WB(K,G,X);if(console.warn(B),PB.includes(K))throw new RangeError(B)}function WB(K,G,X){var B=K[0]==="Y"?"years":"days of the month";return"Use `".concat(K.toLowerCase(),"` instead of `").concat(K,"` (in `").concat(G,"`) for formatting ").concat(B," to the input `").concat(X,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md")}var zB=/^D+$/,$B=/^Y+$/,PB=["D","DD","YY","YYYY"];function YX(K,G,X){var B,U,Z,j,J,q,Q,H,V,x,C,w,M,A,T=p(),b=(B=(U=X===null||X===void 0?void 0:X.locale)!==null&&U!==void 0?U:T.locale)!==null&&B!==void 0?B:MG,v=(Z=(j=(J=(q=X===null||X===void 0?void 0:X.firstWeekContainsDate)!==null&&q!==void 0?q:X===null||X===void 0||(Q=X.locale)===null||Q===void 0||(Q=Q.options)===null||Q===void 0?void 0:Q.firstWeekContainsDate)!==null&&J!==void 0?J:T.firstWeekContainsDate)!==null&&j!==void 0?j:(H=T.locale)===null||H===void 0||(H=H.options)===null||H===void 0?void 0:H.firstWeekContainsDate)!==null&&Z!==void 0?Z:1,D=(V=(x=(C=(w=X===null||X===void 0?void 0:X.weekStartsOn)!==null&&w!==void 0?w:X===null||X===void 0||(M=X.locale)===null||M===void 0||(M=M.options)===null||M===void 0?void 0:M.weekStartsOn)!==null&&C!==void 0?C:T.weekStartsOn)!==null&&x!==void 0?x:(A=T.locale)===null||A===void 0||(A=A.options)===null||A===void 0?void 0:A.weekStartsOn)!==null&&V!==void 0?V:0,l=N(K,X===null||X===void 0?void 0:X.in);if(!UG(l))throw new RangeError("Invalid time value");var d=G.match(DB).map(function(m){var c=m[0];if(c==="p"||c==="P"){var JG=iG[c];return JG(m,b.formatLong)}return m}).join("").match(OB).map(function(m){if(m==="''")return{isToken:!1,value:"'"};var c=m[0];if(c==="'")return{isToken:!1,value:vB(m)};if(MX[c])return{isToken:!0,value:m};if(c.match(yB))throw new RangeError("Format string contains an unescaped latin alphabet character `"+c+"`");return{isToken:!1,value:m}});if(b.localize.preprocessor)d=b.localize.preprocessor(l,d);var jG={firstWeekContainsDate:v,weekStartsOn:D,locale:b};return d.map(function(m){if(!m.isToken)return m.value;var c=m.value;if(!(X!==null&&X!==void 0&&X.useAdditionalWeekYearTokens)&&T0(c)||!(X!==null&&X!==void 0&&X.useAdditionalDayOfYearTokens)&&I0(c))bX(c,G,String(K));var JG=MX[c[0]];return JG(l,c,b.localize,jG)}).join("")}function vB(K){var G=K.match(SB);if(!G)return K;return G[1].replace(hB,"'")}var OB=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,DB=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,SB=/^'([^]*?)'?$/,hB=/''/g,yB=/[a-zA-Z]/;function W0(K,G,X){var B,U,Z=p(),j=(B=(U=X===null||X===void 0?void 0:X.locale)!==null&&U!==void 0?U:Z.locale)!==null&&B!==void 0?B:MG,J=2520,q=t(K,G);if(isNaN(q))throw new RangeError("Invalid time value");var Q=Object.assign({},X,{addSuffix:X===null||X===void 0?void 0:X.addSuffix,comparison:q}),H=O.apply(void 0,[X===null||X===void 0?void 0:X.in].concat(UX(q>0?[G,K]:[K,G]))),V=$(H,2),x=V[0],C=V[1],w=CG(C,x),M=(r(C)-r(x))/1000,A=Math.round((w-M)/60),T;if(A<2)if(X!==null&&X!==void 0&&X.includeSeconds)if(w<5)return j.formatDistance("lessThanXSeconds",5,Q);else if(w<10)return j.formatDistance("lessThanXSeconds",10,Q);else if(w<20)return j.formatDistance("lessThanXSeconds",20,Q);else if(w<40)return j.formatDistance("halfAMinute",0,Q);else if(w<60)return j.formatDistance("lessThanXMinutes",1,Q);else return j.formatDistance("xMinutes",1,Q);else if(A===0)return j.formatDistance("lessThanXMinutes",1,Q);else return j.formatDistance("xMinutes",A,Q);else if(A<45)return j.formatDistance("xMinutes",A,Q);else if(A<90)return j.formatDistance("aboutXHours",1,Q);else if(A<hG){var b=Math.round(A/60);return j.formatDistance("aboutXHours",b,Q)}else if(A<J)return j.formatDistance("xDays",1,Q);else if(A<AG){var v=Math.round(A/hG);return j.formatDistance("xDays",v,Q)}else if(A<AG*2)return T=Math.round(A/AG),j.formatDistance("aboutXMonths",T,Q);if(T=lG(C,x),T<12){var D=Math.round(A/AG);return j.formatDistance("xMonths",D,Q)}else{var l=T%12,d=Math.trunc(T/12);if(l<3)return j.formatDistance("aboutXYears",d,Q);else if(l<9)return j.formatDistance("overXYears",d,Q);else return j.formatDistance("almostXYears",d+1,Q)}}function z0(K,G,X){var B,U,Z,j=p(),J=(B=(U=X===null||X===void 0?void 0:X.locale)!==null&&U!==void 0?U:j.locale)!==null&&B!==void 0?B:MG,q=t(K,G);if(isNaN(q))throw new RangeError("Invalid time value");var Q=Object.assign({},X,{addSuffix:X===null||X===void 0?void 0:X.addSuffix,comparison:q}),H=O.apply(void 0,[X===null||X===void 0?void 0:X.in].concat(UX(q>0?[G,K]:[K,G]))),V=$(H,2),x=V[0],C=V[1],w=HG((Z=X===null||X===void 0?void 0:X.roundingMethod)!==null&&Z!==void 0?Z:"round"),M=C.getTime()-x.getTime(),A=M/BG,T=r(C)-r(x),b=(M-T)/BG,v=X===null||X===void 0?void 0:X.unit,D;if(!v)if(A<1)D="second";else if(A<60)D="minute";else if(A<hG)D="hour";else if(b<AG)D="day";else if(b<pX)D="month";else D="year";else D=v;if(D==="second"){var l=w(M/1000);return J.formatDistance("xSeconds",l,Q)}else if(D==="minute"){var d=w(A);return J.formatDistance("xMinutes",d,Q)}else if(D==="hour"){var jG=w(A/60);return J.formatDistance("xHours",jG,Q)}else if(D==="day"){var m=w(b/hG);return J.formatDistance("xDays",m,Q)}else if(D==="month"){var c=w(b/AG);return c===12&&v!=="month"?J.formatDistance("xYears",1,Q):J.formatDistance("xMonths",c,Q)}else{var JG=w(b/pX);return J.formatDistance("xYears",JG,Q)}}function kB(K,G){return W0(K,f(K),G)}function gB(K,G){return z0(K,f(K),G)}function fB(K,G){var X,B,U,Z,j,J=p(),q=(X=(B=G===null||G===void 0?void 0:G.locale)!==null&&B!==void 0?B:J.locale)!==null&&X!==void 0?X:MG,Q=(U=G===null||G===void 0?void 0:G.format)!==null&&U!==void 0?U:mB,H=(Z=G===null||G===void 0?void 0:G.zero)!==null&&Z!==void 0?Z:!1,V=(j=G===null||G===void 0?void 0:G.delimiter)!==null&&j!==void 0?j:" ";if(!q.formatDistance)return"";var x=Q.reduce(function(C,w){var M="x".concat(w.replace(/(^.)/,function(T){return T.toUpperCase()})),A=K[w];if(A!==void 0&&(H||K[w]))return C.concat(q.formatDistance(M,A));return C},[]).join(V);return x}var mB=["years","months","weeks","days","hours","minutes","seconds"];function cB(K,G){var X,B,U=N(K,G===null||G===void 0?void 0:G.in);if(isNaN(+U))throw new RangeError("Invalid time value");var Z=(X=G===null||G===void 0?void 0:G.format)!==null&&X!==void 0?X:"extended",j=(B=G===null||G===void 0?void 0:G.representation)!==null&&B!==void 0?B:"complete",J="",q="",Q=Z==="extended"?"-":"",H=Z==="extended"?":":"";if(j!=="time"){var V=F(U.getDate(),2),x=F(U.getMonth()+1,2),C=F(U.getFullYear(),4);J="".concat(C).concat(Q).concat(x).concat(Q).concat(V)}if(j!=="date"){var w=U.getTimezoneOffset();if(w!==0){var M=Math.abs(w),A=F(Math.trunc(M/60),2),T=F(M%60,2),b=w<0?"+":"-";q="".concat(b).concat(A,":").concat(T)}else q="Z";var v=F(U.getHours(),2),D=F(U.getMinutes(),2),l=F(U.getSeconds(),2),d=J===""?"":"T",jG=[v,D,l].join(H);J="".concat(J).concat(d).concat(jG).concat(q)}return J}function uB(K,G){var X,B,U=N(K,G===null||G===void 0?void 0:G.in);if(!UG(U))throw new RangeError("Invalid time value");var Z=(X=G===null||G===void 0?void 0:G.format)!==null&&X!==void 0?X:"extended",j=(B=G===null||G===void 0?void 0:G.representation)!==null&&B!==void 0?B:"complete",J="",q=Z==="extended"?"-":"",Q=Z==="extended"?":":"";if(j!=="time"){var H=F(U.getDate(),2),V=F(U.getMonth()+1,2),x=F(U.getFullYear(),4);J="".concat(x).concat(q).concat(V).concat(q).concat(H)}if(j!=="date"){var C=F(U.getHours(),2),w=F(U.getMinutes(),2),M=F(U.getSeconds(),2),A=J===""?"":" ";J="".concat(J).concat(A).concat(C).concat(Q).concat(w).concat(Q).concat(M)}return J}function _B(K){var G=K.years,X=G===void 0?0:G,B=K.months,U=B===void 0?0:B,Z=K.days,j=Z===void 0?0:Z,J=K.hours,q=J===void 0?0:J,Q=K.minutes,H=Q===void 0?0:Q,V=K.seconds,x=V===void 0?0:V;return"P".concat(X,"Y").concat(U,"M").concat(j,"DT").concat(q,"H").concat(H,"M").concat(x,"S")}function lB(K,G){var X,B=N(K,G===null||G===void 0?void 0:G.in);if(!UG(B))throw new RangeError("Invalid time value");var U=(X=G===null||G===void 0?void 0:G.fractionDigits)!==null&&X!==void 0?X:0,Z=F(B.getDate(),2),j=F(B.getMonth()+1,2),J=B.getFullYear(),q=F(B.getHours(),2),Q=F(B.getMinutes(),2),H=F(B.getSeconds(),2),V="";if(U>0){var x=B.getMilliseconds(),C=Math.trunc(x*Math.pow(10,U-3));V="."+F(C,U)}var w="",M=B.getTimezoneOffset();if(M!==0){var A=Math.abs(M),T=F(Math.trunc(A/60),2),b=F(A%60,2),v=M<0?"+":"-";w="".concat(v).concat(T,":").concat(b)}else w="Z";return"".concat(J,"-").concat(j,"-").concat(Z,"T").concat(q,":").concat(Q,":").concat(H).concat(V).concat(w)}function pB(K){var G=N(K);if(!UG(G))throw new RangeError("Invalid time value");var X=dB[G.getUTCDay()],B=F(G.getUTCDate(),2),U=rB[G.getUTCMonth()],Z=G.getUTCFullYear(),j=F(G.getUTCHours(),2),J=F(G.getUTCMinutes(),2),q=F(G.getUTCSeconds(),2);return"".concat(X,", ").concat(B," ").concat(U," ").concat(Z," ").concat(j,":").concat(J,":").concat(q," GMT")}var dB=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],rB=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function iB(K,G,X){var B,U,Z,j,J,q,Q,H,V=O(X===null||X===void 0?void 0:X.in,K,G),x=$(V,2),C=x[0],w=x[1],M=p(),A=(B=(U=X===null||X===void 0?void 0:X.locale)!==null&&U!==void 0?U:M.locale)!==null&&B!==void 0?B:MG,T=(Z=(j=(J=(q=X===null||X===void 0?void 0:X.weekStartsOn)!==null&&q!==void 0?q:X===null||X===void 0||(Q=X.locale)===null||Q===void 0||(Q=Q.options)===null||Q===void 0?void 0:Q.weekStartsOn)!==null&&J!==void 0?J:M.weekStartsOn)!==null&&j!==void 0?j:(H=M.locale)===null||H===void 0||(H=H.options)===null||H===void 0?void 0:H.weekStartsOn)!==null&&Z!==void 0?Z:0,b=e(C,w);if(isNaN(b))throw new RangeError("Invalid time value");var v;if(b<-6)v="other";else if(b<-1)v="lastWeek";else if(b<0)v="yesterday";else if(b<1)v="today";else if(b<2)v="tomorrow";else if(b<7)v="nextWeek";else v="other";var D=A.formatRelative(v,C,w,{locale:A,weekStartsOn:T});return YX(C,D,{locale:A,weekStartsOn:T})}function sB(K,G){return N(K*1000,G===null||G===void 0?void 0:G.in)}function $0(K,G){return N(K,G===null||G===void 0?void 0:G.in).getDate()}function sG(K,G){return N(K,G===null||G===void 0?void 0:G.in).getDay()}function P0(K,G){var X=N(K,G===null||G===void 0?void 0:G.in),B=X.getFullYear(),U=X.getMonth(),Z=L(X,0);return Z.setFullYear(B,U+1,0),Z.setHours(0,0,0,0),Z.getDate()}function v0(K,G){var X=N(K,G===null||G===void 0?void 0:G.in),B=X.getFullYear();return B%400===0||B%4===0&&B%100!==0}function nB(K,G){var X=N(K,G===null||G===void 0?void 0:G.in);if(Number.isNaN(+X))return NaN;return v0(X)?366:365}function aB(K,G){var X=N(K,G===null||G===void 0?void 0:G.in),B=X.getFullYear(),U=Math.floor(B/10)*10;return U}function O0(){return Object.assign({},p())}function oB(K,G){return N(K,G===null||G===void 0?void 0:G.in).getHours()}function D0(K,G){var X=N(K,G===null||G===void 0?void 0:G.in).getDay();return X===0?7:X}function eB(K,G){var X=QG(K,G),B=QG(gG(X,60)),U=+B-+X;return Math.round(U/IG)}function tB(K){return N(K).getMilliseconds()}function GU(K,G){return N(K,G===null||G===void 0?void 0:G.in).getMinutes()}function XU(K,G){return N(K,G===null||G===void 0?void 0:G.in).getMonth()}function KU(K,G){var X=[+N(K.start),+N(K.end)].sort(function(M,A){return M-A}),B=$(X,2),U=B[0],Z=B[1],j=[+N(G.start),+N(G.end)].sort(function(M,A){return M-A}),J=$(j,2),q=J[0],Q=J[1],H=U<Q&&q<Z;if(!H)return 0;var V=q<U?U:q,x=V-r(V),C=Q>Z?Z:Q,w=C-r(C);return Math.ceil((w-x)/lX)}function BU(K){return N(K).getSeconds()}function UU(K){return+N(K)}function ZU(K){return Math.trunc(+N(K)/1000)}function jU(K,G){var X,B,U,Z,j,J,q=p(),Q=(X=(B=(U=(Z=G===null||G===void 0?void 0:G.weekStartsOn)!==null&&Z!==void 0?Z:G===null||G===void 0||(j=G.locale)===null||j===void 0||(j=j.options)===null||j===void 0?void 0:j.weekStartsOn)!==null&&U!==void 0?U:q.weekStartsOn)!==null&&B!==void 0?B:(J=q.locale)===null||J===void 0||(J=J.options)===null||J===void 0?void 0:J.weekStartsOn)!==null&&X!==void 0?X:0,H=$0(N(K,G===null||G===void 0?void 0:G.in));if(isNaN(H))return NaN;var V=sG(pG(K,G)),x=Q-V;if(x<=0)x+=7;var C=H-x;return Math.ceil(C/7)+1}function S0(K,G){var X=N(K,G===null||G===void 0?void 0:G.in),B=X.getMonth();return X.setFullYear(X.getFullYear(),B+1,0),X.setHours(0,0,0,0),N(X,G===null||G===void 0?void 0:G.in)}function JU(K,G){var X=N(K,G===null||G===void 0?void 0:G.in);return cG(S0(X,G),pG(X,G),G)+1}function qU(K,G){return N(K,G===null||G===void 0?void 0:G.in).getFullYear()}function QU(K){return Math.trunc(K*xG)}function HU(K){return Math.trunc(K*dX)}function NU(K){return Math.trunc(K*yG)}function VU(K,G,X){var B=O(X===null||X===void 0?void 0:X.in,K,G),U=$(B,2),Z=U[0],j=U[1];if(isNaN(+Z))throw new TypeError("Start date is invalid");if(isNaN(+j))throw new TypeError("End date is invalid");if(X!==null&&X!==void 0&&X.assertPositive&&+Z>+j)throw new TypeError("End date must be after start date");return{start:Z,end:j}}function xU(K,G){var X=ZG(G===null||G===void 0?void 0:G.in,K),B=X.start,U=X.end,Z={},j=R0(U,B);if(j)Z.years=j;var J=LG(B,{years:Z.years}),q=lG(U,J);if(q)Z.months=q;var Q=LG(J,{months:Z.months}),H=VX(U,Q);if(H)Z.days=H;var V=LG(Q,{days:Z.days}),x=uG(U,V);if(x)Z.hours=x;var C=LG(V,{hours:Z.hours}),w=_G(U,C);if(w)Z.minutes=w;var M=LG(C,{minutes:Z.minutes}),A=CG(U,M);if(A)Z.seconds=A;return Z}function EU(K,G,X){var B,U;if(RU(G))U=G;else X=G;return new Intl.DateTimeFormat((B=X)===null||B===void 0?void 0:B.locale,U).format(N(K))}function RU(K){return K!==void 0&&!("locale"in K)}function AU(K,G,X){var B=0,U,Z=O(X===null||X===void 0?void 0:X.in,K,G),j=$(Z,2),J=j[0],q=j[1];if(!(X!==null&&X!==void 0&&X.unit)){var Q=CG(J,q);if(Math.abs(Q)<JX)B=CG(J,q),U="second";else if(Math.abs(Q)<yG)B=_G(J,q),U="minute";else if(Math.abs(Q)<qX&&Math.abs(e(J,q))<1)B=uG(J,q),U="hour";else if(Math.abs(Q)<AK&&(B=e(J,q))&&Math.abs(B)<7)U="day";else if(Math.abs(Q)<aX)B=cG(J,q),U="week";else if(Math.abs(Q)<LK)B=fG(J,q),U="month";else if(Math.abs(Q)<nX)if(mG(J,q)<4)B=mG(J,q),U="quarter";else B=zG(J,q),U="year";else B=zG(J,q),U="year"}else if(U=X===null||X===void 0?void 0:X.unit,U==="second")B=CG(J,q);else if(U==="minute")B=_G(J,q);else if(U==="hour")B=uG(J,q);else if(U==="day")B=e(J,q);else if(U==="week")B=cG(J,q);else if(U==="month")B=fG(J,q);else if(U==="quarter")B=mG(J,q);else if(U==="year")B=zG(J,q);var H=new Intl.RelativeTimeFormat(X===null||X===void 0?void 0:X.locale,s({numeric:"auto"},X));return H.format(B,U)}function LU(K,G){return+N(K)>+N(G)}function FU(K,G){return+N(K)<+N(G)}function wU(K,G){return+N(K)===+N(G)}function CU(K,G,X){var B=new Date(K,G,X);return B.getFullYear()===K&&B.getMonth()===G&&B.getDate()===X}function MU(K,G){return N(K,G===null||G===void 0?void 0:G.in).getDate()===1}function bU(K,G){return N(K,G===null||G===void 0?void 0:G.in).getDay()===5}function YU(K){return+N(K)>Date.now()}function h0(K,G){var X=IU(G)?new G(0):L(G,0);return X.setFullYear(K.getFullYear(),K.getMonth(),K.getDate()),X.setHours(K.getHours(),K.getMinutes(),K.getSeconds(),K.getMilliseconds()),X}function IU(K){var G;return typeof K==="function"&&((G=K.prototype)===null||G===void 0?void 0:G.constructor)===K}var TU=10,y0=function(){function K(){Y(this,K),E(this,"subPriority",0)}return I(K,[{key:"validate",value:function G(X,B){return!0}}]),K}(),WU=function(K){z(G,K);function G(X,B,U,Z,j){var J;if(Y(this,G),J=W(this,G),J.value=X,J.validateValue=B,J.setValue=U,J.priority=Z,j)J.subPriority=j;return J}return I(G,[{key:"validate",value:function X(B,U){return this.validateValue(B,this.value,U)}},{key:"set",value:function X(B,U,Z){return this.setValue(B,U,this.value,Z)}}]),G}(y0),zU=function(K){z(G,K);function G(X,B){var U;return Y(this,G),U=W(this,G),E(R(U),"priority",TU),E(R(U),"subPriority",-1),U.context=X||function(Z){return L(B,Z)},U}return I(G,[{key:"set",value:function X(B,U){if(U.timestampIsSet)return B;return L(B,h0(B,this.context))}}]),G}(y0),P=function(){function K(){Y(this,K)}return I(K,[{key:"run",value:function G(X,B,U,Z){var j=this.parse(X,B,U,Z);if(!j)return null;return{setter:new WU(j.value,this.validate,this.set,this.priority,this.subPriority),rest:j.rest}}},{key:"validate",value:function G(X,B,U){return!0}}]),K}(),$U=function(K){z(G,K);function G(){var X;Y(this,G);for(var B=arguments.length,U=new Array(B),Z=0;Z<B;Z++)U[Z]=arguments[Z];return X=W(this,G,[].concat(U)),E(R(X),"priority",140),E(R(X),"incompatibleTokens",["R","u","t","T"]),X}return I(G,[{key:"parse",value:function X(B,U,Z){switch(U){case"G":case"GG":case"GGG":return Z.era(B,{width:"abbreviated"})||Z.era(B,{width:"narrow"});case"GGGGG":return Z.era(B,{width:"narrow"});case"GGGG":default:return Z.era(B,{width:"wide"})||Z.era(B,{width:"abbreviated"})||Z.era(B,{width:"narrow"})}}},{key:"set",value:function X(B,U,Z){return U.era=Z,B.setFullYear(Z,0,1),B.setHours(0,0,0,0),B}}]),G}(P),k={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},XG={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function g(K,G){if(!K)return K;return{value:G(K.value),rest:K.rest}}function h(K,G){var X=G.match(K);if(!X)return null;return{value:parseInt(X[0],10),rest:G.slice(X[0].length)}}function KG(K,G){var X=G.match(K);if(!X)return null;if(X[0]==="Z")return{value:0,rest:G.slice(1)};var B=X[1]==="+"?1:-1,U=X[2]?parseInt(X[2],10):0,Z=X[3]?parseInt(X[3],10):0,j=X[5]?parseInt(X[5],10):0;return{value:B*(U*xG+Z*BG+j*jX),rest:G.slice(X[0].length)}}function k0(K){return h(k.anyDigitsSigned,K)}function y(K,G){switch(K){case 1:return h(k.singleDigit,G);case 2:return h(k.twoDigits,G);case 3:return h(k.threeDigits,G);case 4:return h(k.fourDigits,G);default:return h(new RegExp("^\\d{1,"+K+"}"),G)}}function nG(K,G){switch(K){case 1:return h(k.singleDigitSigned,G);case 2:return h(k.twoDigitsSigned,G);case 3:return h(k.threeDigitsSigned,G);case 4:return h(k.fourDigitsSigned,G);default:return h(new RegExp("^-?\\d{1,"+K+"}"),G)}}function IX(K){switch(K){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function g0(K,G){var X=G>0,B=X?G:1-G,U;if(B<=50)U=K||100;else{var Z=B+50,j=Math.trunc(Z/100)*100,J=K>=Z%100;U=K+j-(J?100:0)}return X?U:1-U}function f0(K){return K%400===0||K%4===0&&K%100!==0}var PU=function(K){z(G,K);function G(){var X;Y(this,G);for(var B=arguments.length,U=new Array(B),Z=0;Z<B;Z++)U[Z]=arguments[Z];return X=W(this,G,[].concat(U)),E(R(X),"priority",130),E(R(X),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),X}return I(G,[{key:"parse",value:function X(B,U,Z){var j=function J(q){return{year:q,isTwoDigitYear:U==="yy"}};switch(U){case"y":return g(y(4,B),j);case"yo":return g(Z.ordinalNumber(B,{unit:"year"}),j);default:return g(y(U.length,B),j)}}},{key:"validate",value:function X(B,U){return U.isTwoDigitYear||U.year>0}},{key:"set",value:function X(B,U,Z){var j=B.getFullYear();if(Z.isTwoDigitYear){var J=g0(Z.year,j);return B.setFullYear(J,0,1),B.setHours(0,0,0,0),B}var q=!("era"in U)||U.era===1?Z.year:1-Z.year;return B.setFullYear(q,0,1),B.setHours(0,0,0,0),B}}]),G}(P),vU=function(K){z(G,K);function G(){var X;Y(this,G);for(var B=arguments.length,U=new Array(B),Z=0;Z<B;Z++)U[Z]=arguments[Z];return X=W(this,G,[].concat(U)),E(R(X),"priority",130),E(R(X),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),X}return I(G,[{key:"parse",value:function X(B,U,Z){var j=function J(q){return{year:q,isTwoDigitYear:U==="YY"}};switch(U){case"Y":return g(y(4,B),j);case"Yo":return g(Z.ordinalNumber(B,{unit:"year"}),j);default:return g(y(U.length,B),j)}}},{key:"validate",value:function X(B,U){return U.isTwoDigitYear||U.year>0}},{key:"set",value:function X(B,U,Z,j){var J=dG(B,j);if(Z.isTwoDigitYear){var q=g0(Z.year,J);return B.setFullYear(q,0,j.firstWeekContainsDate),B.setHours(0,0,0,0),_(B,j)}var Q=!("era"in U)||U.era===1?Z.year:1-Z.year;return B.setFullYear(Q,0,j.firstWeekContainsDate),B.setHours(0,0,0,0),_(B,j)}}]),G}(P),OU=function(K){z(G,K);function G(){var X;Y(this,G);for(var B=arguments.length,U=new Array(B),Z=0;Z<B;Z++)U[Z]=arguments[Z];return X=W(this,G,[].concat(U)),E(R(X),"priority",130),E(R(X),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),X}return I(G,[{key:"parse",value:function X(B,U){if(U==="R")return nG(4,B);return nG(U.length,B)}},{key:"set",value:function X(B,U,Z){var j=L(B,0);return j.setFullYear(Z,0,4),j.setHours(0,0,0,0),a(j)}}]),G}(P),DU=function(K){z(G,K);function G(){var X;Y(this,G);for(var B=arguments.length,U=new Array(B),Z=0;Z<B;Z++)U[Z]=arguments[Z];return X=W(this,G,[].concat(U)),E(R(X),"priority",130),E(R(X),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),X}return I(G,[{key:"parse",value:function X(B,U){if(U==="u")return nG(4,B);return nG(U.length,B)}},{key:"set",value:function X(B,U,Z){return B.setFullYear(Z,0,1),B.setHours(0,0,0,0),B}}]),G}(P),SU=function(K){z(G,K);function G(){var X;Y(this,G);for(var B=arguments.length,U=new Array(B),Z=0;Z<B;Z++)U[Z]=arguments[Z];return X=W(this,G,[].concat(U)),E(R(X),"priority",120),E(R(X),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),X}return I(G,[{key:"parse",value:function X(B,U,Z){switch(U){case"Q":case"QQ":return y(U.length,B);case"Qo":return Z.ordinalNumber(B,{unit:"quarter"});case"QQQ":return Z.quarter(B,{width:"abbreviated",context:"formatting"})||Z.quarter(B,{width:"narrow",context:"formatting"});case"QQQQQ":return Z.quarter(B,{width:"narrow",context:"formatting"});case"QQQQ":default:return Z.quarter(B,{width:"wide",context:"formatting"})||Z.quarter(B,{width:"abbreviated",context:"formatting"})||Z.quarter(B,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function X(B,U){return U>=1&&U<=4}},{key:"set",value:function X(B,U,Z){return B.setMonth((Z-1)*3,1),B.setHours(0,0,0,0),B}}]),G}(P),hU=function(K){z(G,K);function G(){var X;Y(this,G);for(var B=arguments.length,U=new Array(B),Z=0;Z<B;Z++)U[Z]=arguments[Z];return X=W(this,G,[].concat(U)),E(R(X),"priority",120),E(R(X),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),X}return I(G,[{key:"parse",value:function X(B,U,Z){switch(U){case"q":case"qq":return y(U.length,B);case"qo":return Z.ordinalNumber(B,{unit:"quarter"});case"qqq":return Z.quarter(B,{width:"abbreviated",context:"standalone"})||Z.quarter(B,{width:"narrow",context:"standalone"});case"qqqqq":return Z.quarter(B,{width:"narrow",context:"standalone"});case"qqqq":default:return Z.quarter(B,{width:"wide",context:"standalone"})||Z.quarter(B,{width:"abbreviated",context:"standalone"})||Z.quarter(B,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function X(B,U){return U>=1&&U<=4}},{key:"set",value:function X(B,U,Z){return B.setMonth((Z-1)*3,1),B.setHours(0,0,0,0),B}}]),G}(P),yU=function(K){z(G,K);function G(){var X;Y(this,G);for(var B=arguments.length,U=new Array(B),Z=0;Z<B;Z++)U[Z]=arguments[Z];return X=W(this,G,[].concat(U)),E(R(X),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),E(R(X),"priority",110),X}return I(G,[{key:"parse",value:function X(B,U,Z){var j=function J(q){return q-1};switch(U){case"M":return g(h(k.month,B),j);case"MM":return g(y(2,B),j);case"Mo":return g(Z.ordinalNumber(B,{unit:"month"}),j);case"MMM":return Z.month(B,{width:"abbreviated",context:"formatting"})||Z.month(B,{width:"narrow",context:"formatting"});case"MMMMM":return Z.month(B,{width:"narrow",context:"formatting"});case"MMMM":default:return Z.month(B,{width:"wide",context:"formatting"})||Z.month(B,{width:"abbreviated",context:"formatting"})||Z.month(B,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function X(B,U){return U>=0&&U<=11}},{key:"set",value:function X(B,U,Z){return B.setMonth(Z,1),B.setHours(0,0,0,0),B}}]),G}(P),kU=function(K){z(G,K);function G(){var X;Y(this,G);for(var B=arguments.length,U=new Array(B),Z=0;Z<B;Z++)U[Z]=arguments[Z];return X=W(this,G,[].concat(U)),E(R(X),"priority",110),E(R(X),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),X}return I(G,[{key:"parse",value:function X(B,U,Z){var j=function J(q){return q-1};switch(U){case"L":return g(h(k.month,B),j);case"LL":return g(y(2,B),j);case"Lo":return g(Z.ordinalNumber(B,{unit:"month"}),j);case"LLL":return Z.month(B,{width:"abbreviated",context:"standalone"})||Z.month(B,{width:"narrow",context:"standalone"});case"LLLLL":return Z.month(B,{width:"narrow",context:"standalone"});case"LLLL":default:return Z.month(B,{width:"wide",context:"standalone"})||Z.month(B,{width:"abbreviated",context:"standalone"})||Z.month(B,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function X(B,U){return U>=0&&U<=11}},{key:"set",value:function X(B,U,Z){return B.setMonth(Z,1),B.setHours(0,0,0,0),B}}]),G}(P);function m0(K,G,X){var B=N(K,X===null||X===void 0?void 0:X.in),U=CX(B,X)-G;return B.setDate(B.getDate()-U*7),N(B,X===null||X===void 0?void 0:X.in)}var gU=function(K){z(G,K);function G(){var X;Y(this,G);for(var B=arguments.length,U=new Array(B),Z=0;Z<B;Z++)U[Z]=arguments[Z];return X=W(this,G,[].concat(U)),E(R(X),"priority",100),E(R(X),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),X}return I(G,[{key:"parse",value:function X(B,U,Z){switch(U){case"w":return h(k.week,B);case"wo":return Z.ordinalNumber(B,{unit:"week"});default:return y(U.length,B)}}},{key:"validate",value:function X(B,U){return U>=1&&U<=53}},{key:"set",value:function X(B,U,Z,j){return _(m0(B,Z,j),j)}}]),G}(P);function c0(K,G,X){var B=N(K,X===null||X===void 0?void 0:X.in),U=wX(B,X)-G;return B.setDate(B.getDate()-U*7),B}var fU=function(K){z(G,K);function G(){var X;Y(this,G);for(var B=arguments.length,U=new Array(B),Z=0;Z<B;Z++)U[Z]=arguments[Z];return X=W(this,G,[].concat(U)),E(R(X),"priority",100),E(R(X),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),X}return I(G,[{key:"parse",value:function X(B,U,Z){switch(U){case"I":return h(k.week,B);case"Io":return Z.ordinalNumber(B,{unit:"week"});default:return y(U.length,B)}}},{key:"validate",value:function X(B,U){return U>=1&&U<=53}},{key:"set",value:function X(B,U,Z){return a(c0(B,Z))}}]),G}(P),mU=[31,28,31,30,31,30,31,31,30,31,30,31],cU=[31,29,31,30,31,30,31,31,30,31,30,31],uU=function(K){z(G,K);function G(){var X;Y(this,G);for(var B=arguments.length,U=new Array(B),Z=0;Z<B;Z++)U[Z]=arguments[Z];return X=W(this,G,[].concat(U)),E(R(X),"priority",90),E(R(X),"subPriority",1),E(R(X),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),X}return I(G,[{key:"parse",value:function X(B,U,Z){switch(U){case"d":return h(k.date,B);case"do":return Z.ordinalNumber(B,{unit:"date"});default:return y(U.length,B)}}},{key:"validate",value:function X(B,U){var Z=B.getFullYear(),j=f0(Z),J=B.getMonth();if(j)return U>=1&&U<=cU[J];else return U>=1&&U<=mU[J]}},{key:"set",value:function X(B,U,Z){return B.setDate(Z),B.setHours(0,0,0,0),B}}]),G}(P),_U=function(K){z(G,K);function G(){var X;Y(this,G);for(var B=arguments.length,U=new Array(B),Z=0;Z<B;Z++)U[Z]=arguments[Z];return X=W(this,G,[].concat(U)),E(R(X),"priority",90),E(R(X),"subpriority",1),E(R(X),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),X}return I(G,[{key:"parse",value:function X(B,U,Z){switch(U){case"D":case"DD":return h(k.dayOfYear,B);case"Do":return Z.ordinalNumber(B,{unit:"date"});default:return y(U.length,B)}}},{key:"validate",value:function X(B,U){var Z=B.getFullYear(),j=f0(Z);if(j)return U>=1&&U<=366;else return U>=1&&U<=365}},{key:"set",value:function X(B,U,Z){return B.setMonth(0,Z),B.setHours(0,0,0,0),B}}]),G}(P);function aG(K,G,X){var B,U,Z,j,J,q,Q=p(),H=(B=(U=(Z=(j=X===null||X===void 0?void 0:X.weekStartsOn)!==null&&j!==void 0?j:X===null||X===void 0||(J=X.locale)===null||J===void 0||(J=J.options)===null||J===void 0?void 0:J.weekStartsOn)!==null&&Z!==void 0?Z:Q.weekStartsOn)!==null&&U!==void 0?U:(q=Q.locale)===null||q===void 0||(q=q.options)===null||q===void 0?void 0:q.weekStartsOn)!==null&&B!==void 0?B:0,V=N(K,X===null||X===void 0?void 0:X.in),x=V.getDay(),C=G%7,w=(C+7)%7,M=7-H,A=G<0||G>6?G-(x+M)%7:(w+M)%7-(x+M)%7;return o(V,A,X)}var lU=function(K){z(G,K);function G(){var X;Y(this,G);for(var B=arguments.length,U=new Array(B),Z=0;Z<B;Z++)U[Z]=arguments[Z];return X=W(this,G,[].concat(U)),E(R(X),"priority",90),E(R(X),"incompatibleTokens",["D","i","e","c","t","T"]),X}return I(G,[{key:"parse",value:function X(B,U,Z){switch(U){case"E":case"EE":case"EEE":return Z.day(B,{width:"abbreviated",context:"formatting"})||Z.day(B,{width:"short",context:"formatting"})||Z.day(B,{width:"narrow",context:"formatting"});case"EEEEE":return Z.day(B,{width:"narrow",context:"formatting"});case"EEEEEE":return Z.day(B,{width:"short",context:"formatting"})||Z.day(B,{width:"narrow",context:"formatting"});case"EEEE":default:return Z.day(B,{width:"wide",context:"formatting"})||Z.day(B,{width:"abbreviated",context:"formatting"})||Z.day(B,{width:"short",context:"formatting"})||Z.day(B,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function X(B,U){return U>=0&&U<=6}},{key:"set",value:function X(B,U,Z,j){return B=aG(B,Z,j),B.setHours(0,0,0,0),B}}]),G}(P),pU=function(K){z(G,K);function G(){var X;Y(this,G);for(var B=arguments.length,U=new Array(B),Z=0;Z<B;Z++)U[Z]=arguments[Z];return X=W(this,G,[].concat(U)),E(R(X),"priority",90),E(R(X),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),X}return I(G,[{key:"parse",value:function X(B,U,Z,j){var J=function q(Q){var H=Math.floor((Q-1)/7)*7;return(Q+j.weekStartsOn+6)%7+H};switch(U){case"e":case"ee":return g(y(U.length,B),J);case"eo":return g(Z.ordinalNumber(B,{unit:"day"}),J);case"eee":return Z.day(B,{width:"abbreviated",context:"formatting"})||Z.day(B,{width:"short",context:"formatting"})||Z.day(B,{width:"narrow",context:"formatting"});case"eeeee":return Z.day(B,{width:"narrow",context:"formatting"});case"eeeeee":return Z.day(B,{width:"short",context:"formatting"})||Z.day(B,{width:"narrow",context:"formatting"});case"eeee":default:return Z.day(B,{width:"wide",context:"formatting"})||Z.day(B,{width:"abbreviated",context:"formatting"})||Z.day(B,{width:"short",context:"formatting"})||Z.day(B,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function X(B,U){return U>=0&&U<=6}},{key:"set",value:function X(B,U,Z,j){return B=aG(B,Z,j),B.setHours(0,0,0,0),B}}]),G}(P),dU=function(K){z(G,K);function G(){var X;Y(this,G);for(var B=arguments.length,U=new Array(B),Z=0;Z<B;Z++)U[Z]=arguments[Z];return X=W(this,G,[].concat(U)),E(R(X),"priority",90),E(R(X),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),X}return I(G,[{key:"parse",value:function X(B,U,Z,j){var J=function q(Q){var H=Math.floor((Q-1)/7)*7;return(Q+j.weekStartsOn+6)%7+H};switch(U){case"c":case"cc":return g(y(U.length,B),J);case"co":return g(Z.ordinalNumber(B,{unit:"day"}),J);case"ccc":return Z.day(B,{width:"abbreviated",context:"standalone"})||Z.day(B,{width:"short",context:"standalone"})||Z.day(B,{width:"narrow",context:"standalone"});case"ccccc":return Z.day(B,{width:"narrow",context:"standalone"});case"cccccc":return Z.day(B,{width:"short",context:"standalone"})||Z.day(B,{width:"narrow",context:"standalone"});case"cccc":default:return Z.day(B,{width:"wide",context:"standalone"})||Z.day(B,{width:"abbreviated",context:"standalone"})||Z.day(B,{width:"short",context:"standalone"})||Z.day(B,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function X(B,U){return U>=0&&U<=6}},{key:"set",value:function X(B,U,Z,j){return B=aG(B,Z,j),B.setHours(0,0,0,0),B}}]),G}(P);function u0(K,G,X){var B=N(K,X===null||X===void 0?void 0:X.in),U=D0(B,X),Z=G-U;return o(B,Z,X)}var rU=function(K){z(G,K);function G(){var X;Y(this,G);for(var B=arguments.length,U=new Array(B),Z=0;Z<B;Z++)U[Z]=arguments[Z];return X=W(this,G,[].concat(U)),E(R(X),"priority",90),E(R(X),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),X}return I(G,[{key:"parse",value:function X(B,U,Z){var j=function J(q){if(q===0)return 7;return q};switch(U){case"i":case"ii":return y(U.length,B);case"io":return Z.ordinalNumber(B,{unit:"day"});case"iii":return g(Z.day(B,{width:"abbreviated",context:"formatting"})||Z.day(B,{width:"short",context:"formatting"})||Z.day(B,{width:"narrow",context:"formatting"}),j);case"iiiii":return g(Z.day(B,{width:"narrow",context:"formatting"}),j);case"iiiiii":return g(Z.day(B,{width:"short",context:"formatting"})||Z.day(B,{width:"narrow",context:"formatting"}),j);case"iiii":default:return g(Z.day(B,{width:"wide",context:"formatting"})||Z.day(B,{width:"abbreviated",context:"formatting"})||Z.day(B,{width:"short",context:"formatting"})||Z.day(B,{width:"narrow",context:"formatting"}),j)}}},{key:"validate",value:function X(B,U){return U>=1&&U<=7}},{key:"set",value:function X(B,U,Z){return B=u0(B,Z),B.setHours(0,0,0,0),B}}]),G}(P),iU=function(K){z(G,K);function G(){var X;Y(this,G);for(var B=arguments.length,U=new Array(B),Z=0;Z<B;Z++)U[Z]=arguments[Z];return X=W(this,G,[].concat(U)),E(R(X),"priority",80),E(R(X),"incompatibleTokens",["b","B","H","k","t","T"]),X}return I(G,[{key:"parse",value:function X(B,U,Z){switch(U){case"a":case"aa":case"aaa":return Z.dayPeriod(B,{width:"abbreviated",context:"formatting"})||Z.dayPeriod(B,{width:"narrow",context:"formatting"});case"aaaaa":return Z.dayPeriod(B,{width:"narrow",context:"formatting"});case"aaaa":default:return Z.dayPeriod(B,{width:"wide",context:"formatting"})||Z.dayPeriod(B,{width:"abbreviated",context:"formatting"})||Z.dayPeriod(B,{width:"narrow",context:"formatting"})}}},{key:"set",value:function X(B,U,Z){return B.setHours(IX(Z),0,0,0),B}}]),G}(P),sU=function(K){z(G,K);function G(){var X;Y(this,G);for(var B=arguments.length,U=new Array(B),Z=0;Z<B;Z++)U[Z]=arguments[Z];return X=W(this,G,[].concat(U)),E(R(X),"priority",80),E(R(X),"incompatibleTokens",["a","B","H","k","t","T"]),X}return I(G,[{key:"parse",value:function X(B,U,Z){switch(U){case"b":case"bb":case"bbb":return Z.dayPeriod(B,{width:"abbreviated",context:"formatting"})||Z.dayPeriod(B,{width:"narrow",context:"formatting"});case"bbbbb":return Z.dayPeriod(B,{width:"narrow",context:"formatting"});case"bbbb":default:return Z.dayPeriod(B,{width:"wide",context:"formatting"})||Z.dayPeriod(B,{width:"abbreviated",context:"formatting"})||Z.dayPeriod(B,{width:"narrow",context:"formatting"})}}},{key:"set",value:function X(B,U,Z){return B.setHours(IX(Z),0,0,0),B}}]),G}(P),nU=function(K){z(G,K);function G(){var X;Y(this,G);for(var B=arguments.length,U=new Array(B),Z=0;Z<B;Z++)U[Z]=arguments[Z];return X=W(this,G,[].concat(U)),E(R(X),"priority",80),E(R(X),"incompatibleTokens",["a","b","t","T"]),X}return I(G,[{key:"parse",value:function X(B,U,Z){switch(U){case"B":case"BB":case"BBB":return Z.dayPeriod(B,{width:"abbreviated",context:"formatting"})||Z.dayPeriod(B,{width:"narrow",context:"formatting"});case"BBBBB":return Z.dayPeriod(B,{width:"narrow",context:"formatting"});case"BBBB":default:return Z.dayPeriod(B,{width:"wide",context:"formatting"})||Z.dayPeriod(B,{width:"abbreviated",context:"formatting"})||Z.dayPeriod(B,{width:"narrow",context:"formatting"})}}},{key:"set",value:function X(B,U,Z){return B.setHours(IX(Z),0,0,0),B}}]),G}(P),aU=function(K){z(G,K);function G(){var X;Y(this,G);for(var B=arguments.length,U=new Array(B),Z=0;Z<B;Z++)U[Z]=arguments[Z];return X=W(this,G,[].concat(U)),E(R(X),"priority",70),E(R(X),"incompatibleTokens",["H","K","k","t","T"]),X}return I(G,[{key:"parse",value:function X(B,U,Z){switch(U){case"h":return h(k.hour12h,B);case"ho":return Z.ordinalNumber(B,{unit:"hour"});default:return y(U.length,B)}}},{key:"validate",value:function X(B,U){return U>=1&&U<=12}},{key:"set",value:function X(B,U,Z){var j=B.getHours()>=12;if(j&&Z<12)B.setHours(Z+12,0,0,0);else if(!j&&Z===12)B.setHours(0,0,0,0);else B.setHours(Z,0,0,0);return B}}]),G}(P),oU=function(K){z(G,K);function G(){var X;Y(this,G);for(var B=arguments.length,U=new Array(B),Z=0;Z<B;Z++)U[Z]=arguments[Z];return X=W(this,G,[].concat(U)),E(R(X),"priority",70),E(R(X),"incompatibleTokens",["a","b","h","K","k","t","T"]),X}return I(G,[{key:"parse",value:function X(B,U,Z){switch(U){case"H":return h(k.hour23h,B);case"Ho":return Z.ordinalNumber(B,{unit:"hour"});default:return y(U.length,B)}}},{key:"validate",value:function X(B,U){return U>=0&&U<=23}},{key:"set",value:function X(B,U,Z){return B.setHours(Z,0,0,0),B}}]),G}(P),eU=function(K){z(G,K);function G(){var X;Y(this,G);for(var B=arguments.length,U=new Array(B),Z=0;Z<B;Z++)U[Z]=arguments[Z];return X=W(this,G,[].concat(U)),E(R(X),"priority",70),E(R(X),"incompatibleTokens",["h","H","k","t","T"]),X}return I(G,[{key:"parse",value:function X(B,U,Z){switch(U){case"K":return h(k.hour11h,B);case"Ko":return Z.ordinalNumber(B,{unit:"hour"});default:return y(U.length,B)}}},{key:"validate",value:function X(B,U){return U>=0&&U<=11}},{key:"set",value:function X(B,U,Z){var j=B.getHours()>=12;if(j&&Z<12)B.setHours(Z+12,0,0,0);else B.setHours(Z,0,0,0);return B}}]),G}(P),tU=function(K){z(G,K);function G(){var X;Y(this,G);for(var B=arguments.length,U=new Array(B),Z=0;Z<B;Z++)U[Z]=arguments[Z];return X=W(this,G,[].concat(U)),E(R(X),"priority",70),E(R(X),"incompatibleTokens",["a","b","h","H","K","t","T"]),X}return I(G,[{key:"parse",value:function X(B,U,Z){switch(U){case"k":return h(k.hour24h,B);case"ko":return Z.ordinalNumber(B,{unit:"hour"});default:return y(U.length,B)}}},{key:"validate",value:function X(B,U){return U>=1&&U<=24}},{key:"set",value:function X(B,U,Z){var j=Z<=24?Z%24:Z;return B.setHours(j,0,0,0),B}}]),G}(P),GZ=function(K){z(G,K);function G(){var X;Y(this,G);for(var B=arguments.length,U=new Array(B),Z=0;Z<B;Z++)U[Z]=arguments[Z];return X=W(this,G,[].concat(U)),E(R(X),"priority",60),E(R(X),"incompatibleTokens",["t","T"]),X}return I(G,[{key:"parse",value:function X(B,U,Z){switch(U){case"m":return h(k.minute,B);case"mo":return Z.ordinalNumber(B,{unit:"minute"});default:return y(U.length,B)}}},{key:"validate",value:function X(B,U){return U>=0&&U<=59}},{key:"set",value:function X(B,U,Z){return B.setMinutes(Z,0,0),B}}]),G}(P),XZ=function(K){z(G,K);function G(){var X;Y(this,G);for(var B=arguments.length,U=new Array(B),Z=0;Z<B;Z++)U[Z]=arguments[Z];return X=W(this,G,[].concat(U)),E(R(X),"priority",50),E(R(X),"incompatibleTokens",["t","T"]),X}return I(G,[{key:"parse",value:function X(B,U,Z){switch(U){case"s":return h(k.second,B);case"so":return Z.ordinalNumber(B,{unit:"second"});default:return y(U.length,B)}}},{key:"validate",value:function X(B,U){return U>=0&&U<=59}},{key:"set",value:function X(B,U,Z){return B.setSeconds(Z,0),B}}]),G}(P),KZ=function(K){z(G,K);function G(){var X;Y(this,G);for(var B=arguments.length,U=new Array(B),Z=0;Z<B;Z++)U[Z]=arguments[Z];return X=W(this,G,[].concat(U)),E(R(X),"priority",30),E(R(X),"incompatibleTokens",["t","T"]),X}return I(G,[{key:"parse",value:function X(B,U){var Z=function j(J){return Math.trunc(J*Math.pow(10,-U.length+3))};return g(y(U.length,B),Z)}},{key:"set",value:function X(B,U,Z){return B.setMilliseconds(Z),B}}]),G}(P),BZ=function(K){z(G,K);function G(){var X;Y(this,G);for(var B=arguments.length,U=new Array(B),Z=0;Z<B;Z++)U[Z]=arguments[Z];return X=W(this,G,[].concat(U)),E(R(X),"priority",10),E(R(X),"incompatibleTokens",["t","T","x"]),X}return I(G,[{key:"parse",value:function X(B,U){switch(U){case"X":return KG(XG.basicOptionalMinutes,B);case"XX":return KG(XG.basic,B);case"XXXX":return KG(XG.basicOptionalSeconds,B);case"XXXXX":return KG(XG.extendedOptionalSeconds,B);case"XXX":default:return KG(XG.extended,B)}}},{key:"set",value:function X(B,U,Z){if(U.timestampIsSet)return B;return L(B,B.getTime()-r(B)-Z)}}]),G}(P),UZ=function(K){z(G,K);function G(){var X;Y(this,G);for(var B=arguments.length,U=new Array(B),Z=0;Z<B;Z++)U[Z]=arguments[Z];return X=W(this,G,[].concat(U)),E(R(X),"priority",10),E(R(X),"incompatibleTokens",["t","T","X"]),X}return I(G,[{key:"parse",value:function X(B,U){switch(U){case"x":return KG(XG.basicOptionalMinutes,B);case"xx":return KG(XG.basic,B);case"xxxx":return KG(XG.basicOptionalSeconds,B);case"xxxxx":return KG(XG.extendedOptionalSeconds,B);case"xxx":default:return KG(XG.extended,B)}}},{key:"set",value:function X(B,U,Z){if(U.timestampIsSet)return B;return L(B,B.getTime()-r(B)-Z)}}]),G}(P),ZZ=function(K){z(G,K);function G(){var X;Y(this,G);for(var B=arguments.length,U=new Array(B),Z=0;Z<B;Z++)U[Z]=arguments[Z];return X=W(this,G,[].concat(U)),E(R(X),"priority",40),E(R(X),"incompatibleTokens","*"),X}return I(G,[{key:"parse",value:function X(B){return k0(B)}},{key:"set",value:function X(B,U,Z){return[L(B,Z*1000),{timestampIsSet:!0}]}}]),G}(P),jZ=function(K){z(G,K);function G(){var X;Y(this,G);for(var B=arguments.length,U=new Array(B),Z=0;Z<B;Z++)U[Z]=arguments[Z];return X=W(this,G,[].concat(U)),E(R(X),"priority",20),E(R(X),"incompatibleTokens","*"),X}return I(G,[{key:"parse",value:function X(B){return k0(B)}},{key:"set",value:function X(B,U,Z){return[L(B,Z),{timestampIsSet:!0}]}}]),G}(P),_0={G:new $U,y:new PU,Y:new vU,R:new OU,u:new DU,Q:new SU,q:new hU,M:new yU,L:new kU,w:new gU,I:new fU,d:new uU,D:new _U,E:new lU,e:new pU,c:new dU,i:new rU,a:new iU,b:new sU,B:new nU,h:new aU,H:new oU,K:new eU,k:new tU,m:new GZ,s:new XZ,S:new KZ,X:new BZ,x:new UZ,t:new ZZ,T:new jZ};function l0(K,G,X,B){var U,Z,j,J,q,Q,H,V,x,C,w,M,A,T,b=function u(){return L((B===null||B===void 0?void 0:B.in)||X,NaN)},v=O0(),D=(U=(Z=B===null||B===void 0?void 0:B.locale)!==null&&Z!==void 0?Z:v.locale)!==null&&U!==void 0?U:MG,l=(j=(J=(q=(Q=B===null||B===void 0?void 0:B.firstWeekContainsDate)!==null&&Q!==void 0?Q:B===null||B===void 0||(H=B.locale)===null||H===void 0||(H=H.options)===null||H===void 0?void 0:H.firstWeekContainsDate)!==null&&q!==void 0?q:v.firstWeekContainsDate)!==null&&J!==void 0?J:(V=v.locale)===null||V===void 0||(V=V.options)===null||V===void 0?void 0:V.firstWeekContainsDate)!==null&&j!==void 0?j:1,d=(x=(C=(w=(M=B===null||B===void 0?void 0:B.weekStartsOn)!==null&&M!==void 0?M:B===null||B===void 0||(A=B.locale)===null||A===void 0||(A=A.options)===null||A===void 0?void 0:A.weekStartsOn)!==null&&w!==void 0?w:v.weekStartsOn)!==null&&C!==void 0?C:(T=v.locale)===null||T===void 0||(T=T.options)===null||T===void 0?void 0:T.weekStartsOn)!==null&&x!==void 0?x:0;if(!G)return K?b():N(X,B===null||B===void 0?void 0:B.in);var jG={firstWeekContainsDate:l,weekStartsOn:d,locale:D},m=[new zU(B===null||B===void 0?void 0:B.in,X)],c=G.match(QZ).map(function(u){var S=u[0];if(S in iG){var i=iG[S];return i(u,D.formatLong)}return u}).join("").match(qZ),JG=[],tG=SX(c),GK;try{var NJ=function u(){var S=GK.value;if(!(B!==null&&B!==void 0&&B.useAdditionalWeekYearTokens)&&T0(S))bX(S,G,K);if(!(B!==null&&B!==void 0&&B.useAdditionalDayOfYearTokens)&&I0(S))bX(S,G,K);var i=S[0],KX=_0[i];if(KX){var UK=KX.incompatibleTokens;if(Array.isArray(UK)){var ZK=JG.find(function(jK){return UK.includes(jK.token)||jK.token===i});if(ZK)throw new RangeError("The format string mustn't contain `".concat(ZK.fullToken,"` and `").concat(S,"` at the same time"))}else if(KX.incompatibleTokens==="*"&&JG.length>0)throw new RangeError("The format string mustn't contain `".concat(S,"` and any other token at the same time"));JG.push({token:i,fullToken:S});var DX=KX.run(K,S,D.match,jG);if(!DX)return{v:b()};m.push(DX.setter),K=DX.rest}else{if(i.match(xZ))throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");if(S==="''")S="'";else if(i==="'")S=JZ(S);if(K.indexOf(S)===0)K=K.slice(S.length);else return{v:b()}}},OX;for(tG.s();!(GK=tG.n()).done;)if(OX=NJ(),OX)return OX.v}catch(u){tG.e(u)}finally{tG.f()}if(K.length>0&&VZ.test(K))return b();var VJ=m.map(function(u){return u.priority}).sort(function(u,S){return S-u}).filter(function(u,S,i){return i.indexOf(u)===S}).map(function(u){return m.filter(function(S){return S.priority===u}).sort(function(S,i){return i.subPriority-S.subPriority})}).map(function(u){return u[0]}),YG=N(X,B===null||B===void 0?void 0:B.in);if(isNaN(+YG))return b();var XK={},GX=SX(VJ),KK;try{for(GX.s();!(KK=GX.n()).done;){var BK=KK.value;if(!BK.validate(YG,jG))return b();var XX=BK.set(YG,XK,jG);if(Array.isArray(XX))YG=XX[0],Object.assign(XK,XX[1]);else YG=XX}}catch(u){GX.e(u)}finally{GX.f()}return YG}function JZ(K){return K.match(HZ)[1].replace(NZ,"'")}var qZ=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,QZ=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,HZ=/^'([^]*?)'?$/,NZ=/''/g,VZ=/\S/,xZ=/[a-zA-Z]/;function EZ(K,G,X){return UG(l0(K,G,new Date,X))}function RZ(K,G){return N(K,G===null||G===void 0?void 0:G.in).getDay()===1}function AZ(K){return+N(K)<Date.now()}function TX(K,G){var X=N(K,G===null||G===void 0?void 0:G.in);return X.setMinutes(0,0,0),X}function p0(K,G,X){var B=O(X===null||X===void 0?void 0:X.in,K,G),U=$(B,2),Z=U[0],j=U[1];return+TX(Z)===+TX(j)}function WX(K,G,X){var B=O(X===null||X===void 0?void 0:X.in,K,G),U=$(B,2),Z=U[0],j=U[1];return+_(Z,X)===+_(j,X)}function d0(K,G,X){return WX(K,G,s(s({},X),{},{weekStartsOn:1}))}function LZ(K,G,X){var B=O(X===null||X===void 0?void 0:X.in,K,G),U=$(B,2),Z=U[0],j=U[1];return+QG(Z)===+QG(j)}function zX(K,G){var X=N(K,G===null||G===void 0?void 0:G.in);return X.setSeconds(0,0),X}function r0(K,G){return+zX(K)===+zX(G)}function i0(K,G,X){var B=O(X===null||X===void 0?void 0:X.in,K,G),U=$(B,2),Z=U[0],j=U[1];return Z.getFullYear()===j.getFullYear()&&Z.getMonth()===j.getMonth()}function s0(K,G,X){var B=O(X===null||X===void 0?void 0:X.in,K,G),U=$(B,2),Z=U[0],j=U[1];return+EG(Z)===+EG(j)}function $X(K,G){var X=N(K,G===null||G===void 0?void 0:G.in);return X.setMilliseconds(0),X}function n0(K,G){return+$X(K)===+$X(G)}function a0(K,G,X){var B=O(X===null||X===void 0?void 0:X.in,K,G),U=$(B,2),Z=U[0],j=U[1];return Z.getFullYear()===j.getFullYear()}function FZ(K,G){return p0(N(K,G===null||G===void 0?void 0:G.in),f((G===null||G===void 0?void 0:G.in)||K))}function wZ(K,G){return d0(L((G===null||G===void 0?void 0:G.in)||K,K),f((G===null||G===void 0?void 0:G.in)||K))}function CZ(K){return r0(K,f(K))}function MZ(K,G){return i0(L((G===null||G===void 0?void 0:G.in)||K,K),f((G===null||G===void 0?void 0:G.in)||K))}function bZ(K,G){return s0(L((G===null||G===void 0?void 0:G.in)||K,K),f((G===null||G===void 0?void 0:G.in)||K))}function YZ(K){return n0(K,f(K))}function IZ(K,G){return WX(L((G===null||G===void 0?void 0:G.in)||K,K),f((G===null||G===void 0?void 0:G.in)||K),G)}function TZ(K,G){return a0(L((G===null||G===void 0?void 0:G.in)||K,K),f((G===null||G===void 0?void 0:G.in)||K))}function WZ(K,G){return N(K,G===null||G===void 0?void 0:G.in).getDay()===4}function zZ(K,G){return WG(L((G===null||G===void 0?void 0:G.in)||K,K),f((G===null||G===void 0?void 0:G.in)||K))}function $Z(K,G){return WG(K,o(f((G===null||G===void 0?void 0:G.in)||K),1),G)}function PZ(K,G){return N(K,G===null||G===void 0?void 0:G.in).getDay()===2}function vZ(K,G){return N(K,G===null||G===void 0?void 0:G.in).getDay()===3}function OZ(K,G,X){var B=+N(K,X===null||X===void 0?void 0:X.in),U=[+N(G.start,X===null||X===void 0?void 0:X.in),+N(G.end,X===null||X===void 0?void 0:X.in)].sort(function(q,Q){return q-Q}),Z=$(U,2),j=Z[0],J=Z[1];return B>=j&&B<=J}function oG(K,G,X){return o(K,-G,X)}function DZ(K,G){return WG(L((G===null||G===void 0?void 0:G.in)||K,K),oG(f((G===null||G===void 0?void 0:G.in)||K),1))}function SZ(K,G){var X=N(K,G===null||G===void 0?void 0:G.in),B=X.getFullYear(),U=9+Math.floor(B/10)*10;return X.setFullYear(U+1,0,0),X.setHours(0,0,0,0),N(X,G===null||G===void 0?void 0:G.in)}function o0(K,G){var X,B,U,Z,j,J,q=p(),Q=(X=(B=(U=(Z=G===null||G===void 0?void 0:G.weekStartsOn)!==null&&Z!==void 0?Z:G===null||G===void 0||(j=G.locale)===null||j===void 0||(j=j.options)===null||j===void 0?void 0:j.weekStartsOn)!==null&&U!==void 0?U:q.weekStartsOn)!==null&&B!==void 0?B:(J=q.locale)===null||J===void 0||(J=J.options)===null||J===void 0?void 0:J.weekStartsOn)!==null&&X!==void 0?X:0,H=N(K,G===null||G===void 0?void 0:G.in),V=H.getDay(),x=(V<Q?-7:0)+6-(V-Q);return H.setHours(0,0,0,0),H.setDate(H.getDate()+x),H}function hZ(K,G){return o0(K,s(s({},G),{},{weekStartsOn:1}))}function yZ(K,G){var X=qG(K,G),B=L((G===null||G===void 0?void 0:G.in)||K,0);B.setFullYear(X+1,0,4),B.setHours(0,0,0,0);var U=a(B,G);return U.setDate(U.getDate()-1),U}function kZ(K,G){var X=N(K,G===null||G===void 0?void 0:G.in),B=X.getMonth(),U=B-B%3+3;return X.setMonth(U,0),X.setHours(0,0,0,0),X}function gZ(K,G){var X=N(K,G===null||G===void 0?void 0:G.in),B=X.getFullYear();return X.setFullYear(B+1,0,0),X.setHours(0,0,0,0),X}function fZ(K,G){var X=N(K);if(!UG(X))throw new RangeError("Invalid time value");var B=G.match(cZ);if(!B)return"";var U=B.map(function(Z){if(Z==="''")return"'";var j=Z[0];if(j==="'")return mZ(Z);var J=GG[j];if(J)return J(X,Z);if(j.match(lZ))throw new RangeError("Format string contains an unescaped latin alphabet character `"+j+"`");return Z}).join("");return U}function mZ(K){var G=K.match(uZ);if(!G)return K;return G[1].replace(_Z,"'")}var cZ=/(\w)\1*|''|'(''|[^'])+('|$)|./g,uZ=/^'([^]*?)'?$/,_Z=/''/g,lZ=/[a-zA-Z]/;function pZ(K){var{years:G,months:X,weeks:B,days:U,hours:Z,minutes:j,seconds:J}=K,q=0;if(G)q+=G*SG;if(X)q+=X*(SG/12);if(B)q+=B*7;if(U)q+=U;var Q=q*24*60*60;if(Z)Q+=Z*60*60;if(j)Q+=j*60;if(J)Q+=J;return Math.trunc(Q*1000)}function dZ(K){var G=K/xG;return Math.trunc(G)}function rZ(K){var G=K/BG;return Math.trunc(G)}function iZ(K){var G=K/jX;return Math.trunc(G)}function sZ(K){var G=K/dX;return Math.trunc(G)}function nZ(K){return Math.trunc(K*BG)}function aZ(K){return Math.trunc(K*JX)}function oZ(K){var G=K/rX;return Math.trunc(G)}function eZ(K){var G=K/iX;return Math.trunc(G)}function NG(K,G,X){var B=G-sG(K,X);if(B<=0)B+=7;return o(K,B,X)}function tZ(K,G){return NG(K,5,G)}function Gj(K,G){return NG(K,1,G)}function Xj(K,G){return NG(K,6,G)}function Kj(K,G){return NG(K,0,G)}function Bj(K,G){return NG(K,4,G)}function Uj(K,G){return NG(K,2,G)}function Zj(K,G){return NG(K,3,G)}function jj(K,G){var X,B=function C(){return L(G===null||G===void 0?void 0:G.in,NaN)},U=(X=G===null||G===void 0?void 0:G.additionalDigits)!==null&&X!==void 0?X:2,Z=Jj(K),j;if(Z.date){var J=qj(Z.date,U);j=Qj(J.restDateString,J.year)}if(!j||isNaN(+j))return B();var q=+j,Q=0,H;if(Z.time){if(Q=Hj(Z.time),isNaN(Q))return B()}if(Z.timezone){if(H=Nj(Z.timezone),isNaN(H))return B()}else{var V=new Date(q+Q),x=N(0,G===null||G===void 0?void 0:G.in);return x.setFullYear(V.getUTCFullYear(),V.getUTCMonth(),V.getUTCDate()),x.setHours(V.getUTCHours(),V.getUTCMinutes(),V.getUTCSeconds(),V.getUTCMilliseconds()),x}return N(q+Q+H,G===null||G===void 0?void 0:G.in)}function Jj(K){var G={},X=K.split(eG.dateTimeDelimiter),B;if(X.length>2)return G;if(/:/.test(X[0]))B=X[0];else if(G.date=X[0],B=X[1],eG.timeZoneDelimiter.test(G.date))G.date=K.split(eG.timeZoneDelimiter)[0],B=K.substr(G.date.length,K.length);if(B){var U=eG.timezone.exec(B);if(U)G.time=B.replace(U[1],""),G.timezone=U[1];else G.time=B}return G}function qj(K,G){var X=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+G)+"})|(\\d{2}|[+-]\\d{"+(2+G)+"})$)"),B=K.match(X);if(!B)return{year:NaN,restDateString:""};var U=B[1]?parseInt(B[1]):null,Z=B[2]?parseInt(B[2]):null;return{year:Z===null?U:Z*100,restDateString:K.slice((B[1]||B[2]).length)}}function Qj(K,G){if(G===null)return new Date(NaN);var X=K.match(Fj);if(!X)return new Date(NaN);var B=!!X[4],U=vG(X[1]),Z=vG(X[2])-1,j=vG(X[3]),J=vG(X[4]),q=vG(X[5])-1;if(B){if(!Rj(G,J,q))return new Date(NaN);return Vj(G,J,q)}else{var Q=new Date(0);if(!xj(G,Z,j)||!Ej(G,U))return new Date(NaN);return Q.setUTCFullYear(G,Z,Math.max(U,j)),Q}}function vG(K){return K?parseInt(K):1}function Hj(K){var G=K.match(wj);if(!G)return NaN;var X=PX(G[1]),B=PX(G[2]),U=PX(G[3]);if(!Aj(X,B,U))return NaN;return X*xG+B*BG+U*1000}function PX(K){return K&&parseFloat(K.replace(",","."))||0}function Nj(K){if(K==="Z")return 0;var G=K.match(Cj);if(!G)return 0;var X=G[1]==="+"?-1:1,B=parseInt(G[2]),U=G[3]&&parseInt(G[3])||0;if(!Lj(B,U))return NaN;return X*(B*xG+U*BG)}function Vj(K,G,X){var B=new Date(0);B.setUTCFullYear(K,0,4);var U=B.getUTCDay()||7,Z=(G-1)*7+X+1-U;return B.setUTCDate(B.getUTCDate()+Z),B}function e0(K){return K%400===0||K%4===0&&K%100!==0}function xj(K,G,X){return G>=0&&G<=11&&X>=1&&X<=(Mj[G]||(e0(K)?29:28))}function Ej(K,G){return G>=1&&G<=(e0(K)?366:365)}function Rj(K,G,X){return G>=1&&G<=53&&X>=0&&X<=6}function Aj(K,G,X){if(K===24)return G===0&&X===0;return X>=0&&X<60&&G>=0&&G<60&&K>=0&&K<25}function Lj(K,G){return G>=0&&G<=59}var eG={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Fj=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,wj=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Cj=/^([+-])(\d{2})(?::?(\d{2}))?$/,Mj=[31,null,31,30,31,30,31,31,30,31,30,31];function bj(K,G){var X=K.match(/(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(?:\.(\d{0,7}))?(?:Z|(.)(\d{2}):?(\d{2})?)?/);if(!X)return N(NaN,G===null||G===void 0?void 0:G.in);return N(Date.UTC(+X[1],+X[2]-1,+X[3],+X[4]-(+X[9]||0)*(X[8]=="-"?-1:1),+X[5]-(+X[10]||0)*(X[8]=="-"?-1:1),+X[6],+((X[7]||"0")+"00").substring(0,3)),G===null||G===void 0?void 0:G.in)}function VG(K,G,X){var B=sG(K,X)-G;if(B<=0)B+=7;return oG(K,B,X)}function Yj(K,G){return VG(K,5,G)}function Ij(K,G){return VG(K,1,G)}function Tj(K,G){return VG(K,6,G)}function Wj(K,G){return VG(K,0,G)}function zj(K,G){return VG(K,4,G)}function $j(K,G){return VG(K,2,G)}function Pj(K,G){return VG(K,3,G)}function vj(K){return Math.trunc(K*rX)}function Oj(K){var G=K/sX;return Math.trunc(G)}function Dj(K,G){var X,B,U=(X=G===null||G===void 0?void 0:G.nearestTo)!==null&&X!==void 0?X:1;if(U<1||U>12)return L((G===null||G===void 0?void 0:G.in)||K,NaN);var Z=N(K,G===null||G===void 0?void 0:G.in),j=Z.getMinutes()/60,J=Z.getSeconds()/60/60,q=Z.getMilliseconds()/1000/60/60,Q=Z.getHours()+j+J+q,H=(B=G===null||G===void 0?void 0:G.roundingMethod)!==null&&B!==void 0?B:"round",V=HG(H),x=V(Q/U)*U;return Z.setHours(x,0,0,0),Z}function Sj(K,G){var X,B,U=(X=G===null||G===void 0?void 0:G.nearestTo)!==null&&X!==void 0?X:1;if(U<1||U>30)return L(K,NaN);var Z=N(K,G===null||G===void 0?void 0:G.in),j=Z.getSeconds()/60,J=Z.getMilliseconds()/1000/60,q=Z.getMinutes()+j+J,Q=(B=G===null||G===void 0?void 0:G.roundingMethod)!==null&&B!==void 0?B:"round",H=HG(Q),V=H(q/U)*U;return Z.setMinutes(V,0,0),Z}function hj(K){var G=K/yG;return Math.trunc(G)}function yj(K){return K*jX}function kj(K){var G=K/JX;return Math.trunc(G)}function vX(K,G,X){var B=N(K,X===null||X===void 0?void 0:X.in),U=B.getFullYear(),Z=B.getDate(),j=L((X===null||X===void 0?void 0:X.in)||K,0);j.setFullYear(U,G,15),j.setHours(0,0,0,0);var J=P0(j);return B.setMonth(G,Math.min(Z,J)),B}function gj(K,G,X){var B=N(K,X===null||X===void 0?void 0:X.in);if(isNaN(+B))return L((X===null||X===void 0?void 0:X.in)||K,NaN);if(G.year!=null)B.setFullYear(G.year);if(G.month!=null)B=vX(B,G.month);if(G.date!=null)B.setDate(G.date);if(G.hours!=null)B.setHours(G.hours);if(G.minutes!=null)B.setMinutes(G.minutes);if(G.seconds!=null)B.setSeconds(G.seconds);if(G.milliseconds!=null)B.setMilliseconds(G.milliseconds);return B}function fj(K,G,X){var B=N(K,X===null||X===void 0?void 0:X.in);return B.setDate(G),B}function mj(K,G,X){var B=N(K,X===null||X===void 0?void 0:X.in);return B.setMonth(0),B.setDate(G),B}function cj(K){var G={},X=p();for(var B in X)if(Object.prototype.hasOwnProperty.call(X,B))G[B]=X[B];for(var U in K)if(Object.prototype.hasOwnProperty.call(K,U))if(K[U]===void 0)delete G[U];else G[U]=K[U];FK(G)}function uj(K,G,X){var B=N(K,X===null||X===void 0?void 0:X.in);return B.setHours(G),B}function _j(K,G,X){var B=N(K,X===null||X===void 0?void 0:X.in);return B.setMilliseconds(G),B}function lj(K,G,X){var B=N(K,X===null||X===void 0?void 0:X.in);return B.setMinutes(G),B}function pj(K,G,X){var B=N(K,X===null||X===void 0?void 0:X.in),U=Math.trunc(B.getMonth()/3)+1,Z=G-U;return vX(B,B.getMonth()+Z*3)}function dj(K,G,X){var B=N(K,X===null||X===void 0?void 0:X.in);return B.setSeconds(G),B}function rj(K,G,X){var B,U,Z,j,J,q,Q=p(),H=(B=(U=(Z=(j=X===null||X===void 0?void 0:X.firstWeekContainsDate)!==null&&j!==void 0?j:X===null||X===void 0||(J=X.locale)===null||J===void 0||(J=J.options)===null||J===void 0?void 0:J.firstWeekContainsDate)!==null&&Z!==void 0?Z:Q.firstWeekContainsDate)!==null&&U!==void 0?U:(q=Q.locale)===null||q===void 0||(q=q.options)===null||q===void 0?void 0:q.firstWeekContainsDate)!==null&&B!==void 0?B:1,V=e(N(K,X===null||X===void 0?void 0:X.in),rG(K,X),X),x=L((X===null||X===void 0?void 0:X.in)||K,0);x.setFullYear(G,0,H),x.setHours(0,0,0,0);var C=rG(x,X);return C.setDate(C.getDate()+V),C}function ij(K,G,X){var B=N(K,X===null||X===void 0?void 0:X.in);if(isNaN(+B))return L((X===null||X===void 0?void 0:X.in)||K,NaN);return B.setFullYear(G),B}function sj(K,G){var X=N(K,G===null||G===void 0?void 0:G.in),B=X.getFullYear(),U=Math.floor(B/10)*10;return X.setFullYear(U,0,1),X.setHours(0,0,0,0),X}function nj(K){return wG(Date.now(),K)}function aj(K){var G=f(K===null||K===void 0?void 0:K.in),X=G.getFullYear(),B=G.getMonth(),U=G.getDate(),Z=L(K===null||K===void 0?void 0:K.in,0);return Z.setFullYear(X,B,U+1),Z.setHours(0,0,0,0),Z}function oj(K){var G=f(K===null||K===void 0?void 0:K.in),X=G.getFullYear(),B=G.getMonth(),U=G.getDate(),Z=f(K===null||K===void 0?void 0:K.in);return Z.setFullYear(X,B,U-1),Z.setHours(0,0,0,0),Z}function t0(K,G,X){return TG(K,-G,X)}function ej(K,G,X){var B=G.years,U=B===void 0?0:B,Z=G.months,j=Z===void 0?0:Z,J=G.weeks,q=J===void 0?0:J,Q=G.days,H=Q===void 0?0:Q,V=G.hours,x=V===void 0?0:V,C=G.minutes,w=C===void 0?0:C,M=G.seconds,A=M===void 0?0:M,T=t0(K,j+U*12,X),b=oG(T,H+q*7,X),v=w+x*60,D=A+v*60,l=D*1000;return L((X===null||X===void 0?void 0:X.in)||K,+b-l)}function tj(K,G,X){return G0(K,-G,X)}function GJ(K,G,X){return X0(K,-G,X)}function XJ(K,G,X){return kG(K,-G,X)}function KJ(K,G,X){return QX(K,-G,X)}function BJ(K,G,X){return HX(K,-G,X)}function UJ(K,G,X){return Z0(K,-G,X)}function ZJ(K,G,X){return gG(K,-G,X)}function jJ(K,G,X){return j0(K,-G,X)}function JJ(K){return Math.trunc(K*_X)}function qJ(K){return Math.trunc(K*SG)}function QJ(K){return Math.trunc(K*iX)}function HJ(K){return Math.trunc(K*sX)}window.dateFns=s(s({},window.dateFns),uX)})();
2
3//# debugId=B4330B5F171A262E64756E2164756E21