UNPKG

date-fns

Version:

Modern JavaScript date utility library

5 lines 380 kB
{ "version": 3, "sources": ["lib/cdn.js"], "sourcesContent": [ "(() => {\nfunction _createForOfIteratorHelper(o, allowArrayLike) {var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"];if (!it) {if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") {if (it) o = it;var i = 0;var F = function F() {};return { s: F, n: function n() {if (i >= o.length) return { done: true };return { done: false, value: o[i++] };}, e: function e(_e) {throw _e;}, f: F };}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 normalCompletion = true,didErr = false,err;return { s: function s() {it = it.call(o);}, n: function n() {var step = it.next();normalCompletion = step.done;return step;}, e: function e(_e2) {didErr = true;err = _e2;}, f: function f() {try {if (!normalCompletion && it.return != null) it.return();} finally {if (didErr) throw err;}} };}function _callSuper(t, o, e) {return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));}function _possibleConstructorReturn(self, call) {if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {return call;} else if (call !== void 0) {throw new TypeError(\"Derived constructors may only return object or undefined\");}return _assertThisInitialized(self);}function _assertThisInitialized(self) {if (self === void 0) {throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");}return self;}function _isNativeReflectConstruct() {try {var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));} catch (t) {}return (_isNativeReflectConstruct = function _isNativeReflectConstruct() {return !!t;})();}function _getPrototypeOf(o) {_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {return o.__proto__ || Object.getPrototypeOf(o);};return _getPrototypeOf(o);}function _inherits(subClass, superClass) {if (typeof superClass !== \"function\" && superClass !== null) {throw new TypeError(\"Super expression must either be null or a function\");}subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } });Object.defineProperty(subClass, \"prototype\", { writable: false });if (superClass) _setPrototypeOf(subClass, superClass);}function _setPrototypeOf(o, p) {_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {o.__proto__ = p;return o;};return _setPrototypeOf(o, p);}function _classCallCheck(instance, Constructor) {if (!(instance instanceof Constructor)) {throw new TypeError(\"Cannot call a class as a function\");}}function _defineProperties(target, props) {for (var i = 0; i < props.length; i++) {var descriptor = props[i];descriptor.enumerable = descriptor.enumerable || false;descriptor.configurable = true;if (\"value\" in descriptor) descriptor.writable = true;Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);}}function _createClass(Constructor, protoProps, staticProps) {if (protoProps) _defineProperties(Constructor.prototype, protoProps);if (staticProps) _defineProperties(Constructor, staticProps);Object.defineProperty(Constructor, \"prototype\", { writable: false });return Constructor;}function _toConsumableArray(arr) {return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();}function _nonIterableSpread() {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 _arrayWithoutHoles(arr) {if (Array.isArray(arr)) return _arrayLikeToArray(arr);}function _toArray(arr) {return _arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableRest();}function _iterableToArray(iter) {if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);}function _slicedToArray(arr, i) {return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();}function _nonIterableRest() {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 _unsupportedIterableToArray(o, minLen) {if (!o) return;if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);var n = Object.prototype.toString.call(o).slice(8, -1);if (n === \"Object\" && o.constructor) n = o.constructor.name;if (n === \"Map\" || n === \"Set\") return Array.from(o);if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);}function _arrayLikeToArray(arr, len) {if (len == null || len > arr.length) len = arr.length;for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];return arr2;}function _iterableToArrayLimit(r, l) {var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"];if (null != t) {var e,n,i,u,a = [],f = !0,o = !1;try {if (i = (t = t.call(r)).next, 0 === l) {if (Object(t) !== t) return;f = !1;} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);} catch (r) {o = !0, n = r;} finally {try {if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;} finally {if (o) throw n;}}return a;}}function _arrayWithHoles(arr) {if (Array.isArray(arr)) return arr;}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(obj, key, value) {key = _toPropertyKey(key);if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}function _toPropertyKey(t) {var i = _toPrimitive(t, \"string\");return \"symbol\" == _typeof(i) ? i : String(i);}function _toPrimitive(t, r) {if (\"object\" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || \"default\");if (\"object\" != _typeof(i)) return i;throw new TypeError(\"@@toPrimitive must return a primitive value.\");}return (\"string\" === r ? String : Number)(t);}function _typeof(o) {\"@babel/helpers - typeof\";return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;}, _typeof(o);}var __defProp = Object.defineProperty;\nvar __export = function __export(target, all) {\n for (var name in all)\n __defProp(target, name, {\n get: all[name],\n enumerable: true,\n configurable: true,\n set: function set(newValue) {return all[name] = function () {return newValue;};}\n });\n};\n\n// lib/index.js\nvar exports_lib = {};\n__export(exports_lib, {\n yearsToQuarters: function yearsToQuarters() {return _yearsToQuarters;},\n yearsToMonths: function yearsToMonths() {return _yearsToMonths;},\n yearsToDays: function yearsToDays() {return _yearsToDays;},\n weeksToDays: function weeksToDays() {return _weeksToDays;},\n transpose: function transpose() {return _transpose;},\n toDate: function toDate() {return _toDate;},\n subYears: function subYears() {return _subYears;},\n subWeeks: function subWeeks() {return _subWeeks;},\n subSeconds: function subSeconds() {return _subSeconds;},\n subQuarters: function subQuarters() {return _subQuarters;},\n subMonths: function subMonths() {return _subMonths;},\n subMinutes: function subMinutes() {return _subMinutes;},\n subMilliseconds: function subMilliseconds() {return _subMilliseconds;},\n subISOWeekYears: function subISOWeekYears() {return _subISOWeekYears;},\n subHours: function subHours() {return _subHours;},\n subDays: function subDays() {return _subDays;},\n subBusinessDays: function subBusinessDays() {return _subBusinessDays;},\n sub: function sub() {return _sub;},\n startOfYesterday: function startOfYesterday() {return _startOfYesterday;},\n startOfYear: function startOfYear() {return _startOfYear;},\n startOfWeekYear: function startOfWeekYear() {return _startOfWeekYear;},\n startOfWeek: function startOfWeek() {return _startOfWeek;},\n startOfTomorrow: function startOfTomorrow() {return _startOfTomorrow;},\n startOfToday: function startOfToday() {return _startOfToday;},\n startOfSecond: function startOfSecond() {return _startOfSecond;},\n startOfQuarter: function startOfQuarter() {return _startOfQuarter;},\n startOfMonth: function startOfMonth() {return _startOfMonth;},\n startOfMinute: function startOfMinute() {return _startOfMinute;},\n startOfISOWeekYear: function startOfISOWeekYear() {return _startOfISOWeekYear;},\n startOfISOWeek: function startOfISOWeek() {return _startOfISOWeek;},\n startOfHour: function startOfHour() {return _startOfHour;},\n startOfDecade: function startOfDecade() {return _startOfDecade;},\n startOfDay: function startOfDay() {return _startOfDay;},\n setYear: function setYear() {return _setYear;},\n setWeekYear: function setWeekYear() {return _setWeekYear;},\n setWeek: function setWeek() {return _setWeek;},\n setSeconds: function setSeconds() {return _setSeconds;},\n setQuarter: function setQuarter() {return _setQuarter;},\n setMonth: function setMonth() {return _setMonth;},\n setMinutes: function setMinutes() {return _setMinutes;},\n setMilliseconds: function setMilliseconds() {return _setMilliseconds;},\n setISOWeekYear: function setISOWeekYear() {return _setISOWeekYear;},\n setISOWeek: function setISOWeek() {return _setISOWeek;},\n setISODay: function setISODay() {return _setISODay;},\n setHours: function setHours() {return _setHours;},\n setDefaultOptions: function setDefaultOptions() {return setDefaultOptions2;},\n setDayOfYear: function setDayOfYear() {return _setDayOfYear;},\n setDay: function setDay() {return _setDay;},\n setDate: function setDate() {return _setDate;},\n set: function set() {return _set;},\n secondsToMinutes: function secondsToMinutes() {return _secondsToMinutes;},\n secondsToMilliseconds: function secondsToMilliseconds() {return _secondsToMilliseconds;},\n secondsToHours: function secondsToHours() {return _secondsToHours;},\n roundToNearestMinutes: function roundToNearestMinutes() {return _roundToNearestMinutes;},\n roundToNearestHours: function roundToNearestHours() {return _roundToNearestHours;},\n quartersToYears: function quartersToYears() {return _quartersToYears;},\n quartersToMonths: function quartersToMonths() {return _quartersToMonths;},\n previousWednesday: function previousWednesday() {return _previousWednesday;},\n previousTuesday: function previousTuesday() {return _previousTuesday;},\n previousThursday: function previousThursday() {return _previousThursday;},\n previousSunday: function previousSunday() {return _previousSunday;},\n previousSaturday: function previousSaturday() {return _previousSaturday;},\n previousMonday: function previousMonday() {return _previousMonday;},\n previousFriday: function previousFriday() {return _previousFriday;},\n previousDay: function previousDay() {return _previousDay;},\n parsers: function parsers() {return _parsers;},\n parseJSON: function parseJSON() {return _parseJSON;},\n parseISO: function parseISO() {return _parseISO;},\n parse: function parse() {return _parse;},\n nextWednesday: function nextWednesday() {return _nextWednesday;},\n nextTuesday: function nextTuesday() {return _nextTuesday;},\n nextThursday: function nextThursday() {return _nextThursday;},\n nextSunday: function nextSunday() {return _nextSunday;},\n nextSaturday: function nextSaturday() {return _nextSaturday;},\n nextMonday: function nextMonday() {return _nextMonday;},\n nextFriday: function nextFriday() {return _nextFriday;},\n nextDay: function nextDay() {return _nextDay;},\n monthsToYears: function monthsToYears() {return _monthsToYears;},\n monthsToQuarters: function monthsToQuarters() {return _monthsToQuarters;},\n minutesToSeconds: function minutesToSeconds() {return _minutesToSeconds;},\n minutesToMilliseconds: function minutesToMilliseconds() {return _minutesToMilliseconds;},\n minutesToHours: function minutesToHours() {return _minutesToHours;},\n min: function min() {return _min;},\n millisecondsToSeconds: function millisecondsToSeconds() {return _millisecondsToSeconds;},\n millisecondsToMinutes: function millisecondsToMinutes() {return _millisecondsToMinutes;},\n millisecondsToHours: function millisecondsToHours() {return _millisecondsToHours;},\n milliseconds: function milliseconds() {return _milliseconds;},\n max: function max() {return _max;},\n longFormatters: function longFormatters() {return _longFormatters;},\n lightFormatters: function lightFormatters() {return _lightFormatters;},\n lightFormat: function lightFormat() {return _lightFormat;},\n lastDayOfYear: function lastDayOfYear() {return _lastDayOfYear;},\n lastDayOfWeek: function lastDayOfWeek() {return _lastDayOfWeek;},\n lastDayOfQuarter: function lastDayOfQuarter() {return _lastDayOfQuarter;},\n lastDayOfMonth: function lastDayOfMonth() {return _lastDayOfMonth;},\n lastDayOfISOWeekYear: function lastDayOfISOWeekYear() {return _lastDayOfISOWeekYear;},\n lastDayOfISOWeek: function lastDayOfISOWeek() {return _lastDayOfISOWeek;},\n lastDayOfDecade: function lastDayOfDecade() {return _lastDayOfDecade;},\n isYesterday: function isYesterday() {return _isYesterday;},\n isWithinInterval: function isWithinInterval() {return _isWithinInterval;},\n isWeekend: function isWeekend() {return _isWeekend;},\n isWednesday: function isWednesday() {return _isWednesday;},\n isValid: function isValid() {return _isValid;},\n isTuesday: function isTuesday() {return _isTuesday;},\n isTomorrow: function isTomorrow() {return _isTomorrow;},\n isToday: function isToday() {return _isToday;},\n isThursday: function isThursday() {return _isThursday;},\n isThisYear: function isThisYear() {return _isThisYear;},\n isThisWeek: function isThisWeek() {return _isThisWeek;},\n isThisSecond: function isThisSecond() {return _isThisSecond;},\n isThisQuarter: function isThisQuarter() {return _isThisQuarter;},\n isThisMonth: function isThisMonth() {return _isThisMonth;},\n isThisMinute: function isThisMinute() {return _isThisMinute;},\n isThisISOWeek: function isThisISOWeek() {return _isThisISOWeek;},\n isThisHour: function isThisHour() {return _isThisHour;},\n isSunday: function isSunday() {return _isSunday;},\n isSaturday: function isSaturday() {return _isSaturday;},\n isSameYear: function isSameYear() {return _isSameYear;},\n isSameWeek: function isSameWeek() {return _isSameWeek;},\n isSameSecond: function isSameSecond() {return _isSameSecond;},\n isSameQuarter: function isSameQuarter() {return _isSameQuarter;},\n isSameMonth: function isSameMonth() {return _isSameMonth;},\n isSameMinute: function isSameMinute() {return _isSameMinute;},\n isSameISOWeekYear: function isSameISOWeekYear() {return _isSameISOWeekYear;},\n isSameISOWeek: function isSameISOWeek() {return _isSameISOWeek;},\n isSameHour: function isSameHour() {return _isSameHour;},\n isSameDay: function isSameDay() {return _isSameDay;},\n isPast: function isPast() {return _isPast;},\n isMonday: function isMonday() {return _isMonday;},\n isMatch: function isMatch() {return _isMatch;},\n isLeapYear: function isLeapYear() {return _isLeapYear;},\n isLastDayOfMonth: function isLastDayOfMonth() {return _isLastDayOfMonth;},\n isFuture: function isFuture() {return _isFuture;},\n isFriday: function isFriday() {return _isFriday;},\n isFirstDayOfMonth: function isFirstDayOfMonth() {return _isFirstDayOfMonth;},\n isExists: function isExists() {return _isExists;},\n isEqual: function isEqual() {return _isEqual;},\n isDate: function isDate() {return _isDate;},\n isBefore: function isBefore() {return _isBefore;},\n isAfter: function isAfter() {return _isAfter;},\n intlFormatDistance: function intlFormatDistance() {return _intlFormatDistance;},\n intlFormat: function intlFormat() {return _intlFormat;},\n intervalToDuration: function intervalToDuration() {return _intervalToDuration;},\n interval: function interval() {return _interval;},\n hoursToSeconds: function hoursToSeconds() {return _hoursToSeconds;},\n hoursToMinutes: function hoursToMinutes() {return _hoursToMinutes;},\n hoursToMilliseconds: function hoursToMilliseconds() {return _hoursToMilliseconds;},\n getYear: function getYear() {return _getYear;},\n getWeeksInMonth: function getWeeksInMonth() {return _getWeeksInMonth;},\n getWeekYear: function getWeekYear() {return _getWeekYear;},\n getWeekOfMonth: function getWeekOfMonth() {return _getWeekOfMonth;},\n getWeek: function getWeek() {return _getWeek;},\n getUnixTime: function getUnixTime() {return _getUnixTime;},\n getTime: function getTime() {return _getTime;},\n getSeconds: function getSeconds() {return _getSeconds;},\n getQuarter: function getQuarter() {return _getQuarter;},\n getOverlappingDaysInIntervals: function getOverlappingDaysInIntervals() {return _getOverlappingDaysInIntervals;},\n getMonth: function getMonth() {return _getMonth;},\n getMinutes: function getMinutes() {return _getMinutes;},\n getMilliseconds: function getMilliseconds() {return _getMilliseconds;},\n getISOWeeksInYear: function getISOWeeksInYear() {return _getISOWeeksInYear;},\n getISOWeekYear: function getISOWeekYear() {return _getISOWeekYear;},\n getISOWeek: function getISOWeek() {return _getISOWeek;},\n getISODay: function getISODay() {return _getISODay;},\n getHours: function getHours() {return _getHours;},\n getDefaultOptions: function getDefaultOptions() {return getDefaultOptions2;},\n getDecade: function getDecade() {return _getDecade;},\n getDaysInYear: function getDaysInYear() {return _getDaysInYear;},\n getDaysInMonth: function getDaysInMonth() {return _getDaysInMonth;},\n getDayOfYear: function getDayOfYear() {return _getDayOfYear;},\n getDay: function getDay() {return _getDay;},\n getDate: function getDate() {return _getDate;},\n fromUnixTime: function fromUnixTime() {return _fromUnixTime;},\n formatters: function formatters() {return _formatters;},\n formatRelative: function formatRelative() {return formatRelative3;},\n formatRFC7231: function formatRFC7231() {return _formatRFC;},\n formatRFC3339: function formatRFC3339() {return _formatRFC2;},\n formatISODuration: function formatISODuration() {return _formatISODuration;},\n formatISO9075: function formatISO9075() {return _formatISO;},\n formatISO: function formatISO() {return _formatISO2;},\n formatDuration: function formatDuration() {return _formatDuration;},\n formatDistanceToNowStrict: function formatDistanceToNowStrict() {return _formatDistanceToNowStrict;},\n formatDistanceToNow: function formatDistanceToNow() {return _formatDistanceToNow;},\n formatDistanceStrict: function formatDistanceStrict() {return _formatDistanceStrict;},\n formatDistance: function formatDistance() {return formatDistance3;},\n formatDate: function formatDate() {return _format;},\n format: function format() {return _format;},\n endOfYesterday: function endOfYesterday() {return _endOfYesterday;},\n endOfYear: function endOfYear() {return _endOfYear;},\n endOfWeek: function endOfWeek() {return _endOfWeek;},\n endOfTomorrow: function endOfTomorrow() {return _endOfTomorrow;},\n endOfToday: function endOfToday() {return _endOfToday;},\n endOfSecond: function endOfSecond() {return _endOfSecond;},\n endOfQuarter: function endOfQuarter() {return _endOfQuarter;},\n endOfMonth: function endOfMonth() {return _endOfMonth;},\n endOfMinute: function endOfMinute() {return _endOfMinute;},\n endOfISOWeekYear: function endOfISOWeekYear() {return _endOfISOWeekYear;},\n endOfISOWeek: function endOfISOWeek() {return _endOfISOWeek;},\n endOfHour: function endOfHour() {return _endOfHour;},\n endOfDecade: function endOfDecade() {return _endOfDecade;},\n endOfDay: function endOfDay() {return _endOfDay;},\n eachYearOfInterval: function eachYearOfInterval() {return _eachYearOfInterval;},\n eachWeekendOfYear: function eachWeekendOfYear() {return _eachWeekendOfYear;},\n eachWeekendOfMonth: function eachWeekendOfMonth() {return _eachWeekendOfMonth;},\n eachWeekendOfInterval: function eachWeekendOfInterval() {return _eachWeekendOfInterval;},\n eachWeekOfInterval: function eachWeekOfInterval() {return _eachWeekOfInterval;},\n eachQuarterOfInterval: function eachQuarterOfInterval() {return _eachQuarterOfInterval;},\n eachMonthOfInterval: function eachMonthOfInterval() {return _eachMonthOfInterval;},\n eachMinuteOfInterval: function eachMinuteOfInterval() {return _eachMinuteOfInterval;},\n eachHourOfInterval: function eachHourOfInterval() {return _eachHourOfInterval;},\n eachDayOfInterval: function eachDayOfInterval() {return _eachDayOfInterval;},\n differenceInYears: function differenceInYears() {return _differenceInYears;},\n differenceInWeeks: function differenceInWeeks() {return _differenceInWeeks;},\n differenceInSeconds: function differenceInSeconds() {return _differenceInSeconds;},\n differenceInQuarters: function differenceInQuarters() {return _differenceInQuarters;},\n differenceInMonths: function differenceInMonths() {return _differenceInMonths;},\n differenceInMinutes: function differenceInMinutes() {return _differenceInMinutes;},\n differenceInMilliseconds: function differenceInMilliseconds() {return _differenceInMilliseconds;},\n differenceInISOWeekYears: function differenceInISOWeekYears() {return _differenceInISOWeekYears;},\n differenceInHours: function differenceInHours() {return _differenceInHours;},\n differenceInDays: function differenceInDays() {return _differenceInDays;},\n differenceInCalendarYears: function differenceInCalendarYears() {return _differenceInCalendarYears;},\n differenceInCalendarWeeks: function differenceInCalendarWeeks() {return _differenceInCalendarWeeks;},\n differenceInCalendarQuarters: function differenceInCalendarQuarters() {return _differenceInCalendarQuarters;},\n differenceInCalendarMonths: function differenceInCalendarMonths() {return _differenceInCalendarMonths;},\n differenceInCalendarISOWeeks: function differenceInCalendarISOWeeks() {return _differenceInCalendarISOWeeks;},\n differenceInCalendarISOWeekYears: function differenceInCalendarISOWeekYears() {return _differenceInCalendarISOWeekYears;},\n differenceInCalendarDays: function differenceInCalendarDays() {return _differenceInCalendarDays;},\n differenceInBusinessDays: function differenceInBusinessDays() {return _differenceInBusinessDays;},\n daysToWeeks: function daysToWeeks() {return _daysToWeeks;},\n constructNow: function constructNow() {return _constructNow;},\n constructFrom: function constructFrom() {return _constructFrom;},\n compareDesc: function compareDesc() {return _compareDesc;},\n compareAsc: function compareAsc() {return _compareAsc;},\n closestTo: function closestTo() {return _closestTo;},\n closestIndexTo: function closestIndexTo() {return _closestIndexTo;},\n clamp: function clamp() {return _clamp;},\n areIntervalsOverlapping: function areIntervalsOverlapping() {return _areIntervalsOverlapping;},\n addYears: function addYears() {return _addYears;},\n addWeeks: function addWeeks() {return _addWeeks;},\n addSeconds: function addSeconds() {return _addSeconds;},\n addQuarters: function addQuarters() {return _addQuarters;},\n addMonths: function addMonths() {return _addMonths;},\n addMinutes: function addMinutes() {return _addMinutes;},\n addMilliseconds: function addMilliseconds() {return _addMilliseconds;},\n addISOWeekYears: function addISOWeekYears() {return _addISOWeekYears;},\n addHours: function addHours() {return _addHours;},\n addDays: function addDays() {return _addDays;},\n addBusinessDays: function addBusinessDays() {return _addBusinessDays;},\n add: function add() {return _add;}\n});\n\n// lib/constants.js\nvar daysInWeek = 7;\nvar daysInYear = 365.2425;\nvar maxTime = Math.pow(10, 8) * 24 * 60 * 60 * 1000;\nvar minTime = -maxTime;\nvar millisecondsInWeek = 604800000;\nvar millisecondsInDay = 86400000;\nvar millisecondsInMinute = 60000;\nvar millisecondsInHour = 3600000;\nvar millisecondsInSecond = 1000;\nvar minutesInYear = 525600;\nvar minutesInMonth = 43200;\nvar minutesInDay = 1440;\nvar minutesInHour = 60;\nvar monthsInQuarter = 3;\nvar monthsInYear = 12;\nvar quartersInYear = 4;\nvar secondsInHour = 3600;\nvar secondsInMinute = 60;\nvar secondsInDay = secondsInHour * 24;\nvar secondsInWeek = secondsInDay * 7;\nvar secondsInYear = secondsInDay * daysInYear;\nvar secondsInMonth = secondsInYear / 12;\nvar secondsInQuarter = secondsInMonth * 3;\nvar constructFromSymbol = Symbol.for(\"constructDateFrom\");\n\n// lib/constructFrom.js\nfunction _constructFrom(date, value) {\n if (typeof date === \"function\")\n return date(value);\n if (date && _typeof(date) === \"object\" && constructFromSymbol in date)\n return date[constructFromSymbol](value);\n if (date instanceof Date)\n return new date.constructor(value);\n return new Date(value);\n}\n\n// lib/toDate.js\nfunction _toDate(argument, context) {\n return _constructFrom(context || argument, argument);\n}\n\n// lib/addDays.js\nfunction _addDays(date, amount, options) {\n var _date = _toDate(date, options === null || options === void 0 ? void 0 : options.in);\n if (isNaN(amount))\n return _constructFrom((options === null || options === void 0 ? void 0 : options.in) || date, NaN);\n if (!amount)\n return _date;\n _date.setDate(_date.getDate() + amount);\n return _date;\n}\n\n// lib/addMonths.js\nfunction _addMonths(date, amount, options) {\n var _date = _toDate(date, options === null || options === void 0 ? void 0 : options.in);\n if (isNaN(amount))\n return _constructFrom((options === null || options === void 0 ? void 0 : options.in) || date, NaN);\n if (!amount) {\n return _date;\n }\n var dayOfMonth = _date.getDate();\n var endOfDesiredMonth = _constructFrom((options === null || options === void 0 ? void 0 : options.in) || date, _date.getTime());\n endOfDesiredMonth.setMonth(_date.getMonth() + amount + 1, 0);\n var daysInMonth = endOfDesiredMonth.getDate();\n if (dayOfMonth >= daysInMonth) {\n return endOfDesiredMonth;\n } else {\n _date.setFullYear(endOfDesiredMonth.getFullYear(), endOfDesiredMonth.getMonth(), dayOfMonth);\n return _date;\n }\n}\n\n// lib/add.js\nfunction _add(date, duration, options) {\n var _duration$years =\n\n\n\n\n\n\n\n duration.years,years = _duration$years === void 0 ? 0 : _duration$years,_duration$months = duration.months,months = _duration$months === void 0 ? 0 : _duration$months,_duration$weeks = duration.weeks,weeks = _duration$weeks === void 0 ? 0 : _duration$weeks,_duration$days = duration.days,days = _duration$days === void 0 ? 0 : _duration$days,_duration$hours = duration.hours,hours = _duration$hours === void 0 ? 0 : _duration$hours,_duration$minutes = duration.minutes,minutes = _duration$minutes === void 0 ? 0 : _duration$minutes,_duration$seconds = duration.seconds,seconds = _duration$seconds === void 0 ? 0 : _duration$seconds;\n var _date = _toDate(date, options === null || options === void 0 ? void 0 : options.in);\n var dateWithMonths = months || years ? _addMonths(_date, months + years * 12) : _date;\n var dateWithDays = days || weeks ? _addDays(dateWithMonths, days + weeks * 7) : dateWithMonths;\n var minutesToAdd = minutes + hours * 60;\n var secondsToAdd = seconds + minutesToAdd * 60;\n var msToAdd = secondsToAdd * 1000;\n return _constructFrom((options === null || options === void 0 ? void 0 : options.in) || date, +dateWithDays + msToAdd);\n}\n// lib/isSaturday.js\nfunction _isSaturday(date, options) {\n return _toDate(date, options === null || options === void 0 ? void 0 : options.in).getDay() === 6;\n}\n\n// lib/isSunday.js\nfunction _isSunday(date, options) {\n return _toDate(date, options === null || options === void 0 ? void 0 : options.in).getDay() === 0;\n}\n\n// lib/isWeekend.js\nfunction _isWeekend(date, options) {\n var day = _toDate(date, options === null || options === void 0 ? void 0 : options.in).getDay();\n return day === 0 || day === 6;\n}\n\n// lib/addBusinessDays.js\nfunction _addBusinessDays(date, amount, options) {\n var _date = _toDate(date, options === null || options === void 0 ? void 0 : options.in);\n var startedOnWeekend = _isWeekend(_date, options);\n if (isNaN(amount))\n return _constructFrom(options === null || options === void 0 ? void 0 : options.in, NaN);\n var hours = _date.getHours();\n var sign = amount < 0 ? -1 : 1;\n var fullWeeks = Math.trunc(amount / 5);\n _date.setDate(_date.getDate() + fullWeeks * 7);\n var restDays = Math.abs(amount % 5);\n while (restDays > 0) {\n _date.setDate(_date.getDate() + sign);\n if (!_isWeekend(_date, options))\n restDays -= 1;\n }\n if (startedOnWeekend && _isWeekend(_date, options) && amount !== 0) {\n if (_isSaturday(_date, options))\n _date.setDate(_date.getDate() + (sign < 0 ? 2 : -1));\n if (_isSunday(_date, options))\n _date.setDate(_date.getDate() + (sign < 0 ? 1 : -2));\n }\n _date.setHours(hours);\n return _date;\n}\n// lib/addMilliseconds.js\nfunction _addMilliseconds(date, amount, options) {\n return _constructFrom((options === null || options === void 0 ? void 0 : options.in) || date, +_toDate(date) + amount);\n}\n\n// lib/addHours.js\nfunction _addHours(date, amount, options) {\n return _addMilliseconds(date, amount * millisecondsInHour, options);\n}\n// lib/_lib/defaultOptions.js\nfunction getDefaultOptions() {\n return defaultOptions;\n}\nfunction setDefaultOptions(newOptions) {\n defaultOptions = newOptions;\n}\nvar defaultOptions = {};\n\n// lib/startOfWeek.js\nfunction _startOfWeek(date, options) {var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _defaultOptions3$loca;\n var defaultOptions3 = getDefaultOptions();\n var weekStartsOn = (_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 || (_options$locale = options.locale) === null || _options$locale === void 0 || (_options$locale = _options$locale.options) === null || _options$locale === void 0 ? void 0 : _options$locale.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions3.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions3$loca = defaultOptions3.locale) === null || _defaultOptions3$loca === void 0 || (_defaultOptions3$loca = _defaultOptions3$loca.options) === null || _defaultOptions3$loca === void 0 ? void 0 : _defaultOptions3$loca.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0;\n var _date = _toDate(date, options === null || options === void 0 ? void 0 : options.in);\n var day = _date.getDay();\n var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;\n _date.setDate(_date.getDate() - diff);\n _date.setHours(0, 0, 0, 0);\n return _date;\n}\n\n// lib/startOfISOWeek.js\nfunction _startOfISOWeek(date, options) {\n return _startOfWeek(date, _objectSpread(_objectSpread({}, options), {}, { weekStartsOn: 1 }));\n}\n\n// lib/getISOWeekYear.js\nfunction _getISOWeekYear(date, options) {\n var _date = _toDate(date, options === null || options === void 0 ? void 0 : options.in);\n var year = _date.getFullYear();\n var fourthOfJanuaryOfNextYear = _constructFrom(_date, 0);\n fourthOfJanuaryOfNextYear.setFullYear(year + 1, 0, 4);\n fourthOfJanuaryOfNextYear.setHours(0, 0, 0, 0);\n var startOfNextYear = _startOfISOWeek(fourthOfJanuaryOfNextYear);\n var fourthOfJanuaryOfThisYear = _constructFrom(_date, 0);\n fourthOfJanuaryOfThisYear.setFullYear(year, 0, 4);\n fourthOfJanuaryOfThisYear.setHours(0, 0, 0, 0);\n var startOfThisYear = _startOfISOWeek(fourthOfJanuaryOfThisYear);\n if (_date.getTime() >= startOfNextYear.getTime()) {\n return year + 1;\n } else if (_date.getTime() >= startOfThisYear.getTime()) {\n return year;\n } else {\n return year - 1;\n }\n}\n\n// lib/_lib/getTimezoneOffsetInMilliseconds.js\nfunction getTimezoneOffsetInMilliseconds(date) {\n var _date = _toDate(date);\n var utcDate = new Date(Date.UTC(_date.getFullYear(), _date.getMonth(), _date.getDate(), _date.getHours(), _date.getMinutes(), _date.getSeconds(), _date.getMilliseconds()));\n utcDate.setUTCFullYear(_date.getFullYear());\n return +date - +utcDate;\n}\n\n// lib/_lib/normalizeDates.js\nfunction normalizeDates(context) {for (var _len = arguments.length, dates = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {dates[_key - 1] = arguments[_key];}\n var normalize = _constructFrom.bind(null, context || dates.find(function (date) {return _typeof(date) === \"object\";}));\n return dates.map(normalize);\n}\n\n// lib/startOfDay.js\nfunction _startOfDay(date, options) {\n var _date = _toDate(date, options === null || options === void 0 ? void 0 : options.in);\n _date.setHours(0, 0, 0, 0);\n return _date;\n}\n\n// lib/differenceInCalendarDays.js\nfunction _differenceInCalendarDays(laterDate, earlierDate, options) {\n var _normalizeDates = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates2 = _slicedToArray(_normalizeDates, 2),laterDate_ = _normalizeDates2[0],earlierDate_ = _normalizeDates2[1];\n var laterStartOfDay = _startOfDay(laterDate_);\n var earlierStartOfDay = _startOfDay(earlierDate_);\n var laterTimestamp = +laterStartOfDay - getTimezoneOffsetInMilliseconds(laterStartOfDay);\n var earlierTimestamp = +earlierStartOfDay - getTimezoneOffsetInMilliseconds(earlierStartOfDay);\n return Math.round((laterTimestamp - earlierTimestamp) / millisecondsInDay);\n}\n\n// lib/startOfISOWeekYear.js\nfunction _startOfISOWeekYear(date, options) {\n var year = _getISOWeekYear(date, options);\n var fourthOfJanuary = _constructFrom((options === null || options === void 0 ? void 0 : options.in) || date, 0);\n fourthOfJanuary.setFullYear(year, 0, 4);\n fourthOfJanuary.setHours(0, 0, 0, 0);\n return _startOfISOWeek(fourthOfJanuary);\n}\n\n// lib/setISOWeekYear.js\nfunction _setISOWeekYear(date, weekYear, options) {\n var _date = _toDate(date, options === null || options === void 0 ? void 0 : options.in);\n var diff = _differenceInCalendarDays(_date, _startOfISOWeekYear(_date, options));\n var fourthOfJanuary = _constructFrom((options === null || options === void 0 ? void 0 : options.in) || date, 0);\n fourthOfJanuary.setFullYear(weekYear, 0, 4);\n fourthOfJanuary.setHours(0, 0, 0, 0);\n _date = _startOfISOWeekYear(fourthOfJanuary);\n _date.setDate(_date.getDate() + diff);\n return _date;\n}\n\n// lib/addISOWeekYears.js\nfunction _addISOWeekYears(date, amount, options) {\n return _setISOWeekYear(date, _getISOWeekYear(date, options) + amount, options);\n}\n// lib/addMinutes.js\nfunction _addMinutes(date, amount, options) {\n var _date = _toDate(date, options === null || options === void 0 ? void 0 : options.in);\n _date.setTime(_date.getTime() + amount * millisecondsInMinute);\n return _date;\n}\n// lib/addQuarters.js\nfunction _addQuarters(date, amount, options) {\n return _addMonths(date, amount * 3, options);\n}\n// lib/addSeconds.js\nfunction _addSeconds(date, amount, options) {\n return _addMilliseconds(date, amount * 1000, options);\n}\n// lib/addWeeks.js\nfunction _addWeeks(date, amount, options) {\n return _addDays(date, amount * 7, options);\n}\n// lib/addYears.js\nfunction _addYears(date, amount, options) {\n return _addMonths(date, amount * 12, options);\n}\n// lib/areIntervalsOverlapping.js\nfunction _areIntervalsOverlapping(intervalLeft, intervalRight, options) {\n var _sort = [\n +_toDate(intervalLeft.start, options === null || options === void 0 ? void 0 : options.in),\n +_toDate(intervalLeft.end, options === null || options === void 0 ? void 0 : options.in)].\n sort(function (a, b) {return a - b;}),_sort2 = _slicedToArray(_sort, 2),leftStartTime = _sort2[0],leftEndTime = _sort2[1];\n var _sort3 = [\n +_toDate(intervalRight.start, options === null || options === void 0 ? void 0 : options.in),\n +_toDate(intervalRight.end, options === null || options === void 0 ? void 0 : options.in)].\n sort(function (a, b) {return a - b;}),_sort4 = _slicedToArray(_sort3, 2),rightStartTime = _sort4[0],rightEndTime = _sort4[1];\n if (options !== null && options !== void 0 && options.inclusive)\n return leftStartTime <= rightEndTime && rightStartTime <= leftEndTime;\n return leftStartTime < rightEndTime && rightStartTime < leftEndTime;\n}\n// lib/max.js\nfunction _max(dates, options) {\n var result;\n var context = options === null || options === void 0 ? void 0 : options.in;\n dates.forEach(function (date) {\n if (!context && _typeof(date) === \"object\")\n context = _constructFrom.bind(null, date);\n var date_ = _toDate(date, context);\n if (!result || result < date_ || isNaN(+date_))\n result = date_;\n });\n return _constructFrom(context, result || NaN);\n}\n\n// lib/min.js\nfunction _min(dates, options) {\n var result;\n var context = options === null || options === void 0 ? void 0 : options.in;\n dates.forEach(function (date) {\n if (!context && _typeof(date) === \"object\")\n context = _constructFrom.bind(null, date);\n var date_ = _toDate(date, context);\n if (!result || result > date_ || isNaN(+date_))\n result = date_;\n });\n return _constructFrom(context, result || NaN);\n}\n\n// lib/clamp.js\nfunction _clamp(date, interval, options) {\n var _normalizeDates3 = normalizeDates(options === null || options === void 0 ? void 0 : options.in, date, interval.start, interval.end),_normalizeDates4 = _slicedToArray(_normalizeDates3, 3),date_ = _normalizeDates4[0],start = _normalizeDates4[1],end = _normalizeDates4[2];\n return _min([_max([date_, start], options), end], options);\n}\n// lib/closestIndexTo.js\nfunction _closestIndexTo(dateToCompare, dates) {\n var timeToCompare = +_toDate(dateToCompare);\n if (isNaN(timeToCompare))\n return NaN;\n var result;\n var minDistance;\n dates.forEach(function (date, index) {\n var date_ = _toDate(date);\n if (isNaN(+date_)) {\n result = NaN;\n minDistance = NaN;\n return;\n }\n var distance = Math.abs(timeToCompare - +date_);\n if (result == null || distance < minDistance) {\n result = index;\n minDistance = distance;\n }\n });\n return result;\n}\n// lib/closestTo.js\nfunction _closestTo(dateToCompare, dates, options) {\n var _normalizeDates5 = normalizeDates.apply(void 0, [options === null || options === void 0 ? void 0 : options.in, dateToCompare].concat(_toConsumableArray(dates))),_normalizeDates6 = _toArray(_normalizeDates5),dateToCompare_ = _normalizeDates6[0],dates_ = _normalizeDates6.slice(1);\n var index = _closestIndexTo(dateToCompare_, dates_);\n if (typeof index === \"number\" && isNaN(index))\n return _constructFrom(dateToCompare_, NaN);\n if (index !== undefined)\n return dates_[index];\n}\n// lib/compareAsc.js\nfunction _compareAsc(dateLeft, dateRight) {\n var diff = +_toDate(dateLeft) - +_toDate(dateRight);\n if (diff < 0)\n return -1;else\n if (diff > 0)\n return 1;\n return diff;\n}\n// lib/compareDesc.js\nfunction _compareDesc(dateLeft, dateRight) {\n var diff = +_toDate(dateLeft) - +_toDate(dateRight);\n if (diff > 0)\n return -1;else\n if (diff < 0)\n return 1;\n return diff;\n}\n// lib/constructNow.js\nfunction _constructNow(date) {\n return _constructFrom(date, Date.now());\n}\n// lib/daysToWeeks.js\nfunction _daysToWeeks(days) {\n var result = Math.trunc(days / daysInWeek);\n return result === 0 ? 0 : result;\n}\n// lib/isSameDay.js\nfunction _isSameDay(laterDate, earlierDate, options) {\n var _normalizeDates7 = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates8 = _slicedToArray(_normalizeDates7, 2),dateLeft_ = _normalizeDates8[0],dateRight_ = _normalizeDates8[1];\n return +_startOfDay(dateLeft_) === +_startOfDay(dateRight_);\n}\n\n// lib/isDate.js\nfunction _isDate(value) {\n return value instanceof Date || _typeof(value) === \"object\" && Object.prototype.toString.call(value) === \"[object Date]\";\n}\n\n// lib/isValid.js\nfunction _isValid(date) {\n return !(!_isDate(date) && typeof date !== \"number\" || isNaN(+_toDate(date)));\n}\n\n// lib/differenceInBusinessDays.js\nfunction _differenceInBusinessDays(laterDate, earlierDate, options) {\n var _normalizeDates9 = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates10 = _slicedToArray(_normalizeDates9, 2),laterDate_ = _normalizeDates10[0],earlierDate_ = _normalizeDates10[1];\n if (!_isValid(laterDate_) || !_isValid(earlierDate_))\n return NaN;\n var diff = _differenceInCalendarDays(laterDate_, earlierDate_);\n var sign = diff < 0 ? -1 : 1;\n var weeks = Math.trunc(diff / 7);\n var result = weeks * 5;\n var movingDate = _addDays(earlierDate_, weeks * 7);\n while (!_isSameDay(laterDate_, movingDate)) {\n result += _isWeekend(movingDate, options) ? 0 : sign;\n movingDate = _addDays(movingDate, sign);\n }\n return result === 0 ? 0 : result;\n}\n// lib/differenceInCalendarISOWeekYears.js\nfunction _differenceInCalendarISOWeekYears(laterDate, earlierDate, options) {\n var _normalizeDates11 = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates12 = _slicedToArray(_normalizeDates11, 2),laterDate_ = _normalizeDates12[0],earlierDate_ = _normalizeDates12[1];\n return _getISOWeekYear(laterDate_, options) - _getISOWeekYear(earlierDate_, options);\n}\n// lib/differenceInCalendarISOWeeks.js\nfunction _differenceInCalendarISOWeeks(laterDate, earlierDate, options) {\n var _normalizeDates13 = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates14 = _slicedToArray(_normalizeDates13, 2),laterDate_ = _normalizeDates14[0],earlierDate_ = _normalizeDates14[1];\n var startOfISOWeekLeft = _startOfISOWeek(laterDate_);\n var startOfISOWeekRight = _startOfISOWeek(earlierDate_);\n var timestampLeft = +startOfISOWeekLeft - getTimezoneOffsetInMilliseconds(startOfISOWeekLeft);\n var timestampRight = +startOfISOWeekRight - getTimezoneOffsetInMilliseconds(startOfISOWeekRight);\n return Math.round((timestampLeft - timestampRight) / millisecondsInWeek);\n}\n// lib/differenceInCalendarMonths.js\nfunction _differenceInCalendarMonths(laterDate, earlierDate, options) {\n var _normalizeDates15 = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates16 = _slicedToArray(_normalizeDates15, 2),laterDate_ = _normalizeDates16[0],earlierDate_ = _normalizeDates16[1];\n var yearsDiff = laterDate_.getFullYear() - earlierDate_.getFullYear();\n var monthsDiff = laterDate_.getMonth() - earlierDate_.getMonth();\n return yearsDiff * 12 + monthsDiff;\n}\n// lib/getQuarter.js\nfunction _getQuarter(date, options) {\n var _date = _toDate(date, options === null || options === void 0 ? void 0 : options.in);\n var quarter = Math.trunc(_date.getMonth() / 3) + 1;\n return quarter;\n}\n\n// lib/differenceInCalendarQuarters.js\nfunction _differenceInCalendarQuarters(laterDate, earlierDate, options) {\n var _normalizeDates17 = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates18 = _slicedToArray(_normalizeDates17, 2),laterDate_ = _normalizeDates18[0],earlierDate_ = _normalizeDates18[1];\n var yearsDiff = laterDate_.getFullYear() - earlierDate_.getFullYear();\n var quartersDiff = _getQuarter(laterDate_) - _getQuarter(earlierDate_);\n return yearsDiff * 4 + quartersDiff;\n}\n// lib/differenceInCalendarWeeks.js\nfunction _differenceInCalendarWeeks(laterDate, earlierDate, options) {\n var _normalizeDates19 = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates20 = _slicedToArray(_normalizeDates19, 2),laterDate_ = _normalizeDates20[0],earlierDate_ = _normalizeDates20[1];\n var laterStartOfWeek = _startOfWeek(laterDate_, options);\n var earlierStartOfWeek = _startOfWeek(earlierDate_, options);\n var laterTimestamp = +laterStartOfWeek - getTimezoneOffsetInMilliseconds(laterStartOfWeek);\n var earlierTimestamp = +earlierStartOfWeek - getTimezoneOffsetInMilliseconds(earlierStartOfWeek);\n return Math.round((laterTimestamp - earlierTimestamp) / millisecondsInWeek);\n}\n// lib/differenceInCalendarYears.js\nfunction _differenceInCalendarYears(laterDate, earlierDate, options) {\n var _normalizeDates21 = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates22 = _slicedToArray(_normalizeDates21, 2),laterDate_ = _normalizeDates22[0],earlierDate_ = _normalizeDates22[1];\n return laterDate_.getFullYear() - earlierDate_.getFullYear();\n}\n// lib/differenceInDays.js\nfunction _differenceInDays(laterDate, earlierDate, options) {\n var _normalizeDates23 = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates24 = _slicedToArray(_normalizeDates23, 2),laterDate_ = _normalizeDates24[0],earlierDate_ = _normalizeDates24[1];\n var sign = compareLocalAsc(laterDate_, earlierDate_);\n var difference = Math.abs(_differenceInCalendarDays(laterDate_, earlierDate_));\n laterDate_.setDate(laterDate_.getDate() - sign * difference);\n var isLastDayNotFull = Number(compareLocalAsc(laterDate_, earlierDate_) === -sign);\n var result = sign * (difference - isLastDayNotFull);\n return result === 0 ? 0 : result;\n}\nfunction compareLocalAsc(laterDate, earlierDate) {\n var diff = laterDate.getFullYear() - earlierDate.getFullYear() || laterDate.getMonth() - earlierDate.getMonth() || laterDate.getDate() - earlierDate.getDate() || laterDate.getHours() - earlierDate.getHours() || laterDate.getMinutes() - earlierDate.getMinutes() || laterDate.getSeconds() - earlierDate.getSeconds() || laterDate.getMilliseconds() - earlierDate.getMilliseconds();\n if (diff < 0)\n return -1;\n if (diff > 0)\n return 1;\n return diff;\n}\n// lib/_lib/getRoundingMethod.js\nfunction getRoundingMethod(method) {\n return function (number) {\n var round = method ? Math[method] : Math.trunc;\n var result = round(number);\n return result === 0 ? 0 : result;\n };\n}\n\n// lib/differenceInHours.js\nfunction _differenceInHours(laterDate, earlierDate, options) {\n var _normalizeDates25 = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates26 = _slicedToArray(_normalizeDates25, 2),laterDate_ = _normalizeDates26[0],earlierDate_ = _normalizeDates26[1];\n var diff = (+laterDate_ - +earlierDate_) / millisecondsInHour;\n return getRoundingMethod(options === null || options === void 0 ? void 0 : options.roundingMethod)(diff);\n}\n// lib/subISOWeekYears.js\nfunction _subISOWeekYears(date, amount, options) {\n return _addISOWeekYears(date, -amount, options);\n}\n\n// lib/differenceInISOWeekYears.js\nfunction _differenceInISOWeekYears(laterDate, earlierDate, options) {\n var _normalizeDates27 = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates28 = _slicedToArray(_normalizeDates27, 2),laterDate_ = _normalizeDates28[0],earlierDate_ = _normalizeDates28[1];\n var sign = _compareAsc(laterDate_, earlierDate_);\n var diff = Math.abs(_differenceInCalendarISOWeekYears(laterDate_, earlierDate_, options));\n var adjustedDate = _subISOWeekYears(laterDate_, sign * diff, options);\n var isLastISOWeekYearNotFull = Number(_compareAsc(adjustedDate, earlierDate_) === -sign);\n var result = sign * (diff - isLastISOWeekYearNotFull);\n return result === 0 ? 0 : result;\n}\n// lib/differenceInMilliseconds.js\nfunction _differenceInMilliseconds(laterDate, earlierDate) {\n return +_toDate(laterDate) - +_toDate(earlierDate);\n}\n// lib/differenceInMinutes.js\nfunction _differenceInMinutes(dateLeft, dateRight, options) {\n var diff = _differenceInMilliseconds(dateLeft, dateRight) / millisecondsInMinute;\n return getRoundingMethod(options === null || options === void 0 ? void 0 : options.roundingMethod)(diff);\n}\n// lib/endOfDay.js\nfunction _endOfDay(date, options) {\n var _date = _toDate(date, options === null || options === void 0 ? void 0 : options.in);\n _date.setHours(23, 59, 59, 999);\n return _date;\n}\n\n// lib/endOfMonth.js\nfunction _endOfMonth(date, options) {\n var _date = _toDate(date, options === null || options === void 0 ? void 0 : options.in);\n var month = _date.getMonth();\n _date.setFullYear(_date.getFullYear(), month + 1, 0);\n _d